-
Notifications
You must be signed in to change notification settings - Fork 771
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
draw: Added Grid #7786
draw: Added Grid #7786
Conversation
6570e7c
to
efeb49d
Compare
efeb49d
to
d81eabf
Compare
- Added src/layer/vector/Path.Constraint.ts Issue #7933 Signed-off-by: Hubert Figuière <[email protected]> Change-Id: Ie39c15a8552276bc5919ffbbd5dd859695048b9c
Also in Impress Set this._map._docLayer._snapToGrid in the Canvas. Issue #7406 Signed-off-by: Hubert Figuière <[email protected]> Change-Id: I582d4c4970ce2d92dd552425b65ee14138ff57df
d81eabf
to
677e6c3
Compare
cc : @gokaysatir it something from this PR useful now? I think we have competing solution merged already. |
I think we could use a section for the task? Also we can use simplePoint class instead of point i think. I think i'd prefer to position the Path.Constraints.ts file as a section inside canvas->sections directory. If it cannot be the section itself but a helper, then we have "app" folder for middlewares. But it seems we need a section, either as a base class or with the content of Constraints.ts file. If we can solve this without touching Path.Drag.js file, that'd be awesome. All above should be possible. Can you check CanvasSectionContainer and a few sections if you are new to structure and share your comments? That's the new way we use and if you use too much of old structures, we may need to refactor your code in the future. |
oh so you are actually talking about this PR #7958 - "draw: constrain object move with Shift " (this one is currently on top of it) |
Ah, yes it seems, they seem to share code. |
Note that #7958 is now broken since some of the front-end code got re-architectured. |
closing, we just merged: #10147 |
Summary
This provide Grid visibility in both draw and impress, as well as enable snap to grid.
TODO
Checklist
make check
make run
and manually verified that everything looks okay