Skip to content

Instantly share code, notes, and snippets.

@PhiLhoSoft
Created October 1, 2015 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PhiLhoSoft/43cf3e2809f5cc243530 to your computer and use it in GitHub Desktop.
Save PhiLhoSoft/43cf3e2809f5cc243530 to your computer and use it in GitHub Desktop.
jsPlumb anchor array quick reference - https://jsplumbtoolkit.com/community/doc/anchors.html
/* Anchor array: [ x, y, dx, dy ]
x, y (close of square): position on node, 0.0 to 1.0
dx, dy (end of arrows): direction, -1, 0 or 1
0,-1
^
|
+
0,0 0.5,0 1,0
+----------+
| |
| |
-1,0 <-+ 0,0.5| |1,0.5 +-> 1,0
| |
| |
+----------+
0,1 0.5,1 1,1
+
|
v
0,1
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment