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

Snap to grid on multiple objects #36

Open
ArthurDavis opened this issue Jun 21, 2019 · 4 comments
Open

Snap to grid on multiple objects #36

ArthurDavis opened this issue Jun 21, 2019 · 4 comments

Comments

@ArthurDavis
Copy link

When selecting multiple objects and moving them, these objects no longer snap to grid. Is it possible to extend this policy to a group selection?

@freegroup
Copy link
Owner

is this ticket still relevant?...if yes I can start to implement a policy to support this feature

@ucandoit1010
Copy link

ucandoit1010 commented Mar 3, 2020

is this ticket still relevant?...if yes I can start to implement a policy to support this feature

yes !! This is powerful draw2d.

@Samanoova
Copy link

Hi @freegroup did you implement the policy?

@28raining
Copy link

Hey, I hit this. When user selects multiple instances and drags, then draw2D crashes. I have a snapToGrid policy.

Crash message:

RangeError: Maximum call stack size exceeded
    at Class.getStartPosition (draw2d.js:9013:46)
    at prototype.<computed> [as getStartPosition] (eval at ./node_modules/script-loader/addScript.js.module.exports (draw2d.js:3671:9), <anonymous>:79:26)
    at Class.halfRoute (draw2d.js:22872:23)
    at Class.route (draw2d.js:22845:12)
    at prototype.<computed> [as route] (eval at ./node_modules/script-loader/addScript.js.module.exports (draw2d.js:3671:9), <anonymous>:79:26)
    at Class.calculatePath (draw2d.js:43336:17)
    at Class.calculatePath (draw2d.js:8802:10)
    at prototype.<computed> [as calculatePath] (eval at ./node_modules/script-loader/addScript.js.module.exports (draw2d.js:3671:9), <anonymous>:79:26)
    at Class.repaint (draw2d.js:43351:12)
    at prototype.<computed> [as repaint] (eval at ./node_modules/script-loader/addScript.js.module.exports (draw2d.js:3671:9), <anonymous>:79:26)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants