ShapeRegistry class final

The validated grammar of one DiagramExtensionRegistry: the shapes, text elements, connectors, routes, arrowheads, port shapes and content its installed extensions contribute. The extension registry is the one place a grammar is assembled; read it as DiagramExtensionRegistry(extensions: [...]).shapeRegistry.

Constructors

ShapeRegistry(DiagramExtensionRegistry extensions)

Properties

arrowheads → DiagramArrowheadRegistry
final
connectorTypes → Map<String, DiagramConnectorDefinition>
Connector definitions keyed by connector type.
final
contentProviders → Map<String, ShapeContentLayoutProvider>
final
definitions → Iterable<ShapeDefinition>
no setter
hashCode → int
The hash code for this object.
no setterinherited
portShapes → DiagramPortShapeRegistry
Port marker geometry, keyed by PortShape.
final
routes → DiagramConnectorRouteRegistry
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textTypes → Map<String, TextElementDefinition>
Standalone text element definitions keyed by text type.
final

Methods

admitsStory(DiagramElement owner, TextStory story) → bool
Whether every paragraph of story is admitted by the text filling its slot, within that text's line limit. The one text admission check.
connectorFor(ConnectorElement element) → DiagramConnectorDefinition
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
require(String type) → ShapeDefinition
requireText(String type) → TextElementDefinition
textFor(DiagramElement? owner, {String? slotId}) → DiagramTextDefinition
The text filling slotId of owner: a shape's text part or table cell, a standalone text element's region or a connector's labels.
toString() → String
A string representation of this object.
inherited
validateShape(ShapeElement shape) → void
Validates one authored shape against its registered production.
validateStory(TextStory story) → void
Validates run appearance and nested content, independent of the owner.
validateText(TextElement element) → void

Operators

operator ==(Object other) → bool
The equality operator.
inherited