Skip to content

[FEAT]: Limit the Viewport Movement #33

@Finestwork

Description

@Finestwork

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 ~

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions