Giter VIP home page Giter VIP logo

jquery-connections's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery-connections's Issues

How to change the start side and the end side of the connection between two elements?

I'm actually working on a binary tree and i need to connect nodes. The code works good for me, but i would like to change the starting point of the connection. When i connect a partent node to child nodes, the connections starts from bottom of parent node, but i want it to start from left and the connect to top border of the child(for left child, right for the right child)

mouseover events for overlapped connections

screenshot from 2018-05-09 11-56-36 copy png

Trying to get the mouseover event on connections. since the connection divs are overlapped, not able to get the mouseover event of overlapped connections (part of 2 and 3 in picture)

Is there a way to capture the mouseover events of connecting lines accurately ..?

Any way to force side connections

Is there any way to force the lines to connect to the left and right sides only?

image

I would like to be able to link specific line items "tr" 's of different tables but can not have the lines go over other line items, so need to force the lines to go to the sides only so you can tell which items belong together.

How to obtain id from en to from connection line

After a connection has been made between two draggabke divs i would like to get the ids from the from and the to draggabke divs after clicking on the connection line.
Is this possible?
Any directions how to obtain are appreciated.

Styling the ends of a connector

Hi,
is it possible to style each end of a connector ? By example a different color, or shape.
Thanks and congrats for this simple and useful lib.
Yann

Anchors not always connected

Hi, sometimes the lines are not correctly connected to the anchor.

to make this happen i used two anchors, you can see this in the images below.

lineProblem
lineProblem1

The anchors and line are build like this :

.connected {
	height: 0px;
	width: 0px;
	position: absolute;
	border: none;
	background: rgba(0, 111, 186, 1);
}

connection {
	border: 10px solid rgba(0, 111, 186, 1);
	border-radius: 30px;
	pointer-events: none;
	box-sizing: content-box;
	z-index: 9;
}

When i scroll sometimes it fits perfect, other times you see an small space in between the lines.

is there a way to fix this?

anchor position at center by default

Hi, Can you brief if there is a way to set anchor point for the connection like left,right,top or bottom? It is always creating center anchor for the source element which I don't want in my case.

Connection lines are drawn inconsistently

I create boxes and connect them and the connection lines are drawn just fine. When I refresh the page the lines come back differently and I can't predict how/why/when they are different. Are the "rules" for drawing lines documented anywhere besides in the code? Can I do anything about this?

For instance, when I move a box (and save its new location) and update the lines they display one way. Then I refresh the page and the lines change. The boxes don't move at all but the connection line changes. Like going between the same two boxes in different paths:

   +--------- 1
   |
   |
   2

or

             1
             |
             |
   2 --------+

Any help is appreciated.

Remove connections created by $().connections

I'm not sure I understand how to use "remove" in this situation:

I have a bunch of connections, created like this:

$('.class1').each(function(){
    var div1=$(this);
    var toid=$(this).attr('data-id');
    var div2 = $('.to." + toid);
    $().connections({
        from: div1,
        to: div2
    });
});

Next I want to remove (either one or all) but none of these work:

$('.class1').each(function(){
    $(this).connections('remove');
});
$('.class1').connections('remove');
$('.class1').each(function(){
    var toid=$(this).attr('data-id');
    var div2 = $('.to." + toid);
    $(div2).connections('remove');
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.