ResolvedShape class final
A shape resolved to geometry: its outline, text, content, layers, widget slots and ports.
source is the authored shape and definition its registered definition.
- Inheritance
-
- Object
- ResolvedElement
- ResolvedFramedElement
- ResolvedShape
- Available extensions
Constructors
-
ResolvedShape({required String id, bool isLocked = false, required int zIndex, required DiagramRect bounds, required ShapeElement source, required ShapeDefinition definition, required ResolvedOutline outline, required ResolvedTextStory? text, DiagramRect? collapseControlBounds, List<
ResolvedShapeContent> contents = const [], List<ResolvedShapeLayer> layers = const [], List<ResolvedShapeWidgetSlot> widgetSlots = const [], List<ResolvedShapePort> ports = const []}) -
ResolvedShape.placed(ResolvedShape local, {required DiagramPoint origin, required ShapeElement source, required ResolvedOutline outline, required List<
ResolvedShapePort> ports, int? textRevisionKey}) -
local, resolved with its frame at the origin, moved toorigin. - ResolvedShape.withSource(ResolvedShape previous, {required ShapeElement source})
-
Reuses all geometry when only paint order or opacity changes.
sourcemust have the same geometry asprevious.source.
Properties
- behavior → ShapeBehavior
-
What a person may do to this element now: its declared behavior,
narrowed while it is locked, collapsed or holds constraining content.
latefinal
- bounds → DiagramRect
-
finalinherited
- collapseControlBounds → DiagramRect?
-
Local bounds of the header control, resolved beside an external title.
final
- connection → ShapeConnectionDefinition
-
no setteroverride
-
connectionPoints
→ List<
ResolvedConnectionPoint> -
Available on ResolvedFramedElement, provided by the DiagramResolvedConnectionPoints extension
no setter - container → ShapeContainer?
-
The container policy of a shape that owns children, else null.
no setteroverride
-
contents
→ List<
ResolvedShapeContent> -
final
- definition → ShapeDefinition
-
final
- editablePath → VectorPathOutline?
-
The path instances edit point by point, with its nodes at this frame;
null unless the outline is an editable path.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- hostsText → bool
-
Whether this element owns a text story.
no setteroverride
- id → String
-
finalinherited
-
images
→ List<
DiagramImageSource> -
The images this shape shows, in paint order.
latefinal
- isLocked → bool
-
finalinherited
-
layers
→ List<
ResolvedShapeLayer> -
latefinal
- layerStrokeWidth → double
-
The width of dividers and placeholders drawn inside the shape.
no setter
- minimumSize → DiagramSize
-
no setteroverride
- opacity → double
-
Complete-element opacity from canonical appearance.
no setterinherited
- outline → ResolvedOutline
-
final
-
ports
→ List<
ResolvedShapePort> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → ShapeElement
-
final
- text → ResolvedTextStory?
-
latefinal
- textEditable → bool
-
Whether this element's text can be edited now.
no setteroverride
- textStory → TextStory?
-
no setterinherited
- visibleBorderStyle → ShapeStyle
-
Resolved fallback for the separate always-visible border pass: the
shape's own stroke, or a dark hairline when it has none.
no setter
-
widgetSlots
→ List<
ResolvedShapeWidgetSlot> -
latefinal
- zIndex → int
-
finalinherited
Methods
-
boundaryToward(
DiagramPoint worldTarget) → DiagramPoint -
inherited
-
containsTextRegion(
DiagramPoint worldPoint) → bool - Text activation follows declared regions, including external frame titles.
-
hitTest(
DiagramPoint worldPoint, {double tolerance = diagramStrokeHitTolerance}) → bool -
Closed outlines pick their interior; stroke outlines widen to
tolerance, which defaults to their fixed pick radius.override -
layerAt(
DiagramPoint worldPoint) → ResolvedShapeLayer? -
localToWorld(
DiagramPoint point) → DiagramPoint -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
portAt(
DiagramPoint worldPoint, {double tolerance = 0}) → ResolvedShapePort? -
portById(
String id) → ResolvedShapePort? -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
worldToLocal(
DiagramPoint point) → DiagramPoint -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
visibleBorderWidth(
ShapeStyle style) → double -
The width of an always-visible border drawn for
style.