Description

This demo shows how to customize and restrict the movement behavior of nodes.

This is done with custom implementations of the interface IPositionHandler that are added to the lookup of the nodes.

Things to Try

Select and move the nodes.

Node Types

  • Red nodes are unmovable.
  • Green nodes move only vertically or horizontally from the current start point.
  • Orange nodes move freely within the displayed rectangle but cannot leave it.
  • Blue nodes combine the green and orange restrictions: they move only vertically or horizontally and cannot leave the rectangle.
Legal Disclosure | Privacy Policy | View on GitHub