Represents the layout of a LayoutNode, defining its size and position within a two-dimensional plane.
Implements
- I
Remarks
The NodeLayout class encapsulates the dimensions and location of a node. It can be accessed through the layout property, allowing for detailed manipulation of the node's spatial properties.
See Also
Developer's Guide
API
- layout
Members
No filters for this type
Constructors
Initializes a new instance of the NodeLayout class with specified coordinates and dimensions.
Initializes a new instance of the NodeLayout class with specified coordinates and dimensions.
Parameters
- x: number
- The absolute x-coordinate of the upper-left corner of the node layout.
- y: number
- The absolute y-coordinate of the upper-left corner of the node layout.
- width?: number
- The width of the node layout. Defaults to 30 if not specified.
- height?: number
- The height of the node layout. Defaults to 30 if not specified.
Properties
Gets or sets the bounds of the node layout.
Gets or sets the bounds of the node layout.
conversionfinal
Property Value
A Rect representing the bounds of the node layout.
See Also
Developer's Guide
Implements
IPlaneObject.boundsGets or sets the position of the layout's center.
Gets or sets the position of the layout's center.
conversionfinal
Property Value
The position of the layout's center.
See Also
Developer's Guide
final
Property Value
The x-coordinate of the layout's center.
final
Property Value
The y-coordinate of the layout's center.
The height represents the vertical span of the node.
final
Property Value
The height of the node layout.
Gets or sets the size of the node layout.
Gets or sets the size of the node layout.
Adjusting the size of the layout will preserve the position of the layout's top-left corner. Consequently, the positions of the layout's center and other corners may change.
conversionfinal
Property Value
A Size representing the size of the layout.
See Also
Developer's Guide
Gets or sets the position of the layout's top-left corner.
Gets or sets the position of the layout's top-left corner.
conversionfinal
Property Value
The position of the layout's top-left corner as a Point.
See Also
Developer's Guide
The width represents the horizontal span of the node.
final
Property Value
The width of the node layout.
The location is described by the coordinates of the upper-left corner.
final
Property Value
The x-coordinate of the node layout.