Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow custom shapes in Perimeter Anchors #5

Open
sporritt opened this issue Jun 7, 2013 · 0 comments
Open

allow custom shapes in Perimeter Anchors #5

sporritt opened this issue Jun 7, 2013 · 0 comments
Labels
enhancement New feature or request

Comments

@sporritt
Copy link
Member

sporritt commented Jun 7, 2013

it would be nice to support custom, named, shapes in the perimeter anchors. one user added this to the source code, for example:

"Parallelogram":function() {
return _shape([
[ 0.25, 0, 1, 0 ], [ 1, 0, 0.75, 1 ], [ 0.75, 1, 0, 1 ], [ 0, 1, 0.25, 0 ]
]);
},

so instead if we could say something like

jsPlumb.Anchors.Perimeter.Parallelogram = [ 0.25, 0, 1, 0 ], [ 1, 0, 0.75, 1 ], [ 0.75, 1, 0, 1 ], [ 0, 1, 0.25, 0 ];

it would be useful for people.

@sporritt sporritt transferred this issue from jsplumb/jsplumb Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant