Comments (5)
Hiya, looks like that got missed out, I think because the original conversion didn't have it in, so has never been part of it to try and get working.
from snap.svg.freetransform.
Thanks for letting me know.
https://github.com/AliasIO/Raphael.FreeTransform
This version has it build in, but i prefer your fork, because of the awkward rotation/resize handle on the original version.
Also great job so far on your plugin!
from snap.svg.freetransform.
Just out if interest, what's the main desire for the boundary....is it to keep the element with a limited area, or a dragger, or the center of an element within an area, or something else ?
from snap.svg.freetransform.
The goal is to restrict the element to a container on a dragevent. So basically making sure that rectangle A (element) stays within the borders of rectangle B (container)
from snap.svg.freetransform.
I think this is probably more complicated to do a decent solution than it sounds...
For example, suppose it's a rotated set of rects. Then we scale it by 2...what do we want to happen. It will be 'over' the edge.
You can possibly hook into the callback that ft takes, and check for the apply/drag events, and do some tests on that, and try and figure a case that works for you.
from snap.svg.freetransform.
Related Issues (7)
- Nested transforms create problem when dragging. HOT 1
- Handles' position is not updated after window resizing HOT 20
- Update bbox() values of the transform tool HOT 31
- Change center.disc to a rectangle shape and fill the highlighted area HOT 2
- Transform box trails go beyond the svg borders HOT 4
- customCorners not working !
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snap.svg.freetransform.