Coder Social home page Coder Social logo

Comments (5)

ibrierley avatar ibrierley commented on July 17, 2024

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.

arminneman avatar arminneman commented on July 17, 2024

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.

ibrierley avatar ibrierley commented on July 17, 2024

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.

arminneman avatar arminneman commented on July 17, 2024

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.

ibrierley avatar ibrierley commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.