Layout Specification - modelint/flatland-model-diagram-editor GitHub Wiki
Defines a set of values that determine how a Diagram and Grid is positioned on a Canvas and how Nodes are positioned relative to the Diagram and Grid.
Identifiers
- Name
Attributes
Name
In this version there is assumed to be only a single specification instance, so the name is here merely expresses unique model identity.
Type: Layout Specification Name, based on Name
Default margin
The distance from each canvas edge that may not be occupied by the Diagram.
Type: Padding
Default diagram origin
The lower left corner of the Diagram in Canvas coordinates.
Type: Position
Default cell padding
The distance from each Cell edge inward that may not be occupied by any Node. This prevents two Nodes in adjacent Cells from being too close together.
Type: Padding
Default cell alignment
The horizontal and vertical alignment of a Node in its Cell or Cells.
Type: Padding