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

draw: Added Grid #7786

Closed
wants to merge 2 commits into from
Closed

draw: Added Grid #7786

wants to merge 2 commits into from

Conversation

hfiguiere
Copy link
Contributor

@hfiguiere hfiguiere commented Dec 5, 2023

Summary

This provide Grid visibility in both draw and impress, as well as enable snap to grid.

TODO

  • Figure out how the have the action state report to the UI - this need a core patch
    • TBD
  • Snap to grid doesn't seem to be implemented and maybe need to be done first
  • Validate the location of the various UI items

Checklist

  • Code is properly formatted
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

@hfiguiere hfiguiere force-pushed the private/hub/draw-grid-visible branch from 6570e7c to efeb49d Compare December 7, 2023 21:06
@hfiguiere hfiguiere changed the title draw: Added GridVisible and GridUse commands draw: Added Grid and line helpers Dec 7, 2023
@hfiguiere hfiguiere force-pushed the private/hub/draw-grid-visible branch from efeb49d to d81eabf Compare January 25, 2024 13:44
@hfiguiere hfiguiere changed the title draw: Added Grid and line helpers draw: Added Grid Jan 25, 2024
- 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
@hfiguiere hfiguiere force-pushed the private/hub/draw-grid-visible branch from d81eabf to 677e6c3 Compare March 14, 2024 13:11
@eszkadev
Copy link
Contributor

cc : @gokaysatir it something from this PR useful now? I think we have competing solution merged already.
If not - can we close the PR? @hfiguiere

@hfiguiere
Copy link
Contributor Author

I don't see where the "GridVisible" command is made available beside the Shift F9 shortcut.

Also, it should be noted #9019 called for disabling it in LOKit as a workaround.

So it remain relevant but #9019 should be fixed first.

@gokaysatir
Copy link
Contributor

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.

@hfiguiere
Copy link
Contributor Author

hfiguiere commented Aug 26, 2024

oh so you are actually talking about this PR #7958 - "draw: constrain object move with Shift "

(this one is currently on top of it)

@gokaysatir
Copy link
Contributor

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.

@hfiguiere
Copy link
Contributor Author

Note that #7958 is now broken since some of the front-end code got re-architectured.

@eszkadev
Copy link
Contributor

closing, we just merged: #10147

@eszkadev eszkadev closed this Oct 11, 2024
@hfiguiere hfiguiere deleted the private/hub/draw-grid-visible branch October 11, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Draw: Display Grid
3 participants