RenderingExtension class final

Rendering tuning for a canvas: level of detail at low zoom and how painted content is retained. Without it installed a canvas uses the defaults. A canvas reads its RenderingOptions when it mounts.

Inheritance

Constructors

RenderingExtension({DiagramLodPolicy lod = const DiagramLodPolicy(), DiagramRenderPolicy render = const DiagramRenderPolicy()})

Properties

arrowheads → List<DiagramArrowheadDefinition>
finalinherited
connectors → List<DiagramConnectorDefinition>
finalinherited
container → DiagramCanvasContainerBuilder?
Wraps the canvas; the first installed container is innermost.
finalinherited
contents → List<DiagramContentDefinition>
Structured content, such as tables, that shapes place in content layers.
finalinherited
dependencies → List<DiagramExtension>
Extensions this one needs, installed with these defaults unless the application installs an extension with the same id.
finalinherited
diagnostics → List<DiagramDiagnosticRule>
Checks run on demand by DiagramController.checkDiagnostics.
finalinherited
editable → bool
Whether this extension makes the canvas edit: tools, gestures and text input. The editor is editable.
finalinherited
effects → List<EffectDefinition>
finalinherited
graphLayouts → List<GraphLayoutAlgorithm<Layout>>
Graph layout algorithms, one per Layout type.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
id → String
Unique among installed extensions, namespaced like vyuh.table.
finalinherited
options → Object?
This extension's initial options, keyed by their Dart type.
finalinherited
output → DiagramOutput?
SVG and PNG output. At most one installed extension supplies it; a mounted canvas supplies its own otherwise.
finalinherited
palette → List<DiagramTool>?
The tools a controller offers, in order, or null. At most one installed extension declares a palette; without one, every installed tool the grammar supports is offered.
finalinherited
paste → DiagramPasteHandler?
Handles external text pasted on the canvas, or null.
finalinherited
portShapes → List<DiagramPortShapeDefinition>
Port marker geometry, keyed by PortShape.
finalinherited
propertyEditors → List<DiagramPropertyEditor>
Inspector controls for this extension's custom properties.
finalinherited
routes → List<DiagramConnectorRouteProvider>
Route algorithms any connector may select by route name.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shapes → List<ShapeDefinition>
finalinherited
shortcuts → List<DiagramKeyBinding>
finalinherited
textLayout → DiagramTextLayoutEngine?
Text shaping for the diagram, such as a native server backend. At most one installed extension supplies it; a mounted canvas supplies its own otherwise.
finalinherited
textTypes → List<DiagramTextDefinition>
Text types, such as rich text, that shape slots and connector labels may use by definition. Each is also a type of the core's standalone text element, whose element type is the text type's name.
finalinherited
tools → List<DiagramToolDefinition>
finalinherited
verbs → List<DiagramVerb>
Element and diagram verbs this extension adds. Verbs that belong to one shape or part are declared on its definition instead.
finalinherited
widgets → Map<String, ShapeWidgetBuilder>
finalinherited

Methods

build(BuildContext context, DiagramCanvasExtensionHost host) → Widget
A viewport overlay, such as a minimap. Observe the host's controller and canvas state inside an Observer.
inherited
createBehavior(DiagramCanvasExtensionHost host) → DiagramCanvasBehavior?
Behavior in the canvas's input pipeline while it edits, or null.
inherited
createMoveAdjuster(DiagramController controller) → DiagramMoveAdjuster?
Adjusts selection moves on the canvas of controller, such as snapping them into alignment, or null. Created when the canvas mounts; adjusters apply in installation order and the host shows their DiagramCanvasExtensionHost.moveGuides.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
propertiesFor(DiagramPropertyScope scope) → Iterable<DiagramProperty<Object?, Object?>>
Property panel entries this extension contributes, such as its options while the canvas is inspected.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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