community-edition icon indicating copy to clipboard operation
community-edition copied to clipboard

Endpoint Label offset in Pixels broken

Open jezaman opened this issue 8 years ago • 0 comments

The jsPlumb documents state the following:

For an Endpoint, the same principles apply, but location is specified as an [x,y] array. For instance, this would specify an Overlay that was positioned in the center of an Endpoint: location:[ 0.5, 0.5 ]

Whereas this would specify an Overlay that was positioned 5 pixels along the x axis from the top left corner: location: [ 5, 0 ]

And this would specify an Overlay that was positioned 5 pixels along the x axis from the bottom right corner: location: [ -5, 0 ]

However, this does not work. I'm trying to put a label right next to an endpoint on the left side. using values greater than 1, it does not seem to be using pixels. It seems like the distance from the endpoint seems to be scaling with something. so [5, 0] is not 5 pixels but 5.X pixels.

jezaman avatar Nov 09 '16 15:11 jezaman