Share Posted April 10, 2015 Hi there, i need to constrain an element to a convex polygonal object. I made a test with an svg set for the Draggable's bounds, however i had the impression Draggable just used the svg's BoundingBox. Is that so? Any ideas or hints as to how to accomplish this task? Thanks a lot Nadja Link to comment Share on other sites More sharing options...
Share Posted April 10, 2015 Yeah, sorry but bounds can only be rectangles. It's immensely more complex to accommodate a polygonal shape. It'd probably cost at least 10x more processing every time you move your mouse, plus it'd be expensive kb-wise. I wish I had an easy solution for you. Maybe you could write your own logic and drop it into an onDrag, but that'd be non-trivial. 1 Link to comment Share on other sites More sharing options...
Author Share Posted April 12, 2015 Hej Jack, yeah, i tried doing something in onDrag, and it seems to somewhat work. Still have to iron out some kinks... or maybe i can convince the designer to change the layout a bit Thanks Nadja Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now