DiagramExtensionRegistry class final
The one place installed extensions become a grammar.
diagramCoreExtensions are installed first as defaults: an extension
with the id of a core extension replaces it, and another extension's
contribution with the same key, such as a select tool or the text
element, replaces the core one; two other extensions claiming one key
conflict. Each extension's DiagramExtension.dependencies are installed
unless an extension with the same id is. Shared instances are installed
once; distinct instances claiming one id conflict. Two extensions
declaring the same options type conflict.
Constructors
-
DiagramExtensionRegistry({Iterable<
DiagramExtension> extensions = const []})
Properties
-
arrowheads
↔ Map<
ArrowheadKind, DiagramArrowheadDefinition> -
latefinal
- codecs ↔ DiagramModelCodecs
-
Persistence of installed content and text attributes, for document
format adapters such as the JSON codec.
latefinal
-
connectors
↔ Map<
String, DiagramConnectorDefinition> -
latefinal
-
contentLayouts
↔ Map<
String, ShapeContentLayoutProvider> -
latefinal
-
contents
↔ Map<
String, DiagramContentDefinition> -
latefinal
-
extensions
↔ Map<
String, DiagramExtension> -
The installed extensions by id: the core defaults not replaced, then
the application's extensions and their dependencies.
latefinal
-
graphLayouts
↔ Map<
Type, GraphLayoutAlgorithm< Layout> > -
The installed graph layout algorithms, by Layout type.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
optionOwnerIds
↔ Map<
Type, String> -
The id of the extension owning each options type.
latefinal
-
options
↔ Map<
Type, Object> -
The initial options of every installed extension, by options type.
latefinal
- output ↔ DiagramOutput?
-
The installed output backend, or null.
latefinal
-
palette
↔ List<
DiagramTool> ? -
The installed tool palette, or null for every supported tool.
latefinal
-
portShapes
↔ Map<
PortShape, DiagramPortShapeDefinition> -
Port marker geometry, keyed by PortShape.
latefinal
- routes ↔ DiagramConnectorRouteRegistry
-
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shapeRegistry ↔ ShapeRegistry
-
The validated grammar the resolver and controller read.
latefinal
-
shapes
↔ Map<
String, ShapeDefinition> -
latefinal
-
textElements
↔ Map<
String, TextElementDefinition> -
latefinal
- textLayout ↔ DiagramTextLayoutEngine?
-
The installed text layout backend, or null.
latefinal
-
tools
↔ Map<
DiagramTool, DiagramToolDefinition> -
latefinal
-
verbs
↔ List<
DiagramVerb> -
The element and diagram verbs of every installed extension.
latefinal
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited