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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT]: Limit the Viewport Movement #33

Open
Finestwork opened this issue Jan 19, 2024 · 0 comments
Open

[FEAT]: Limit the Viewport Movement #33

Finestwork opened this issue Jan 19, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Finestwork
Copy link
Owner

Mabuhay, contributors! 馃専

MySchemaFlow needs your assitance. Your task is to create a feature where user can enable a setting to restrict the viewport's movement. You can use this translateExtent property to set a boundary.

Tip:

  • Calculate the total width and left position of each node
  • Calculate the total height and top position of each node
  • This will provide you with an idea of the minimum and maximum values for the translateExtent property.
  • You can use Math.min and Math.max.

Happy Coding ~

@Finestwork Finestwork added enhancement New feature or request good first issue Good for newcomers labels Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant