SpatialItemFactories extension

Extension to provide factory-style constructors for spatial items.

on

Static Methods

annotation({required String annotationId, required Rect bounds}) AnnotationSpatialItem

Available on SpatialItem, provided by the SpatialItemFactories extension

Creates a spatial item for an annotation.
connectionSegment({required String connectionId, required int segmentIndex, required Rect bounds}) ConnectionSegmentItem

Available on SpatialItem, provided by the SpatialItemFactories extension

Creates a spatial item for a connection segment.
node({required String nodeId, required Rect bounds}) NodeSpatialItem

Available on SpatialItem, provided by the SpatialItemFactories extension

Creates a spatial item for a node.
port({required String portId, required String nodeId, required bool isOutput, required Rect bounds}) PortSpatialItem

Available on SpatialItem, provided by the SpatialItemFactories extension

Creates a spatial item for a port.