VectorPathOutline class final
One shared adaptive contour drives drawing, picking and SVG output. Nodes and tangents remain available for editing in the same local space.
- Inheritance
-
- Object
- ResolvedOutline
- VectorPathOutline
Constructors
- VectorPathOutline.local(DiagramRect frame, DiagramVectorPath localPath, {double cornerRadius = 0})
-
Resolves
localPath, in shape-local units measured from theframeorigin (not unit coordinates), atframe.factory
Properties
- bounds → DiagramRect
-
finalinherited
- closed → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
nodes
→ List<
DiagramPathNode> -
final
-
points
→ List<
DiagramPoint> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
segmentMidpoints
→ List<
DiagramPoint> -
no setter
Methods
-
boundaryToward(
DiagramPoint point) → DiagramPoint -
override
-
contains(
DiagramPoint point) → bool -
override
-
containsBounds(
DiagramRect rectangle) → bool -
Proves a complete axis-aligned rectangle is inside this local outline.
False may mean unknown; custom and concave outlines remain conservative.
inherited
-
hitTest(
DiagramPoint point, {required double tolerance}) → bool -
Picking with a caller tolerance. Closed outlines pick their interior only;
stroke-like outlines widen their stroke to
toleranceinstead of the fixed diagramStrokeHitTolerance used by contains.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
strokedBounds(
double width) → DiagramRect -
Conservative exterior ink bounds for the renderer's miter limit of four.
Curved/rectangular outlines need only half the stroke width; arbitrary
corners may extend to four times that distance. This is a culling envelope,
not a replacement for the outline used by hit testing or attachments.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
translated(
DiagramPoint delta) → VectorPathOutline -
This outline moved by
delta, or null when the implementation cannot translate itself. Resolution then re-runs the full shape pipeline.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- curveTolerance → const double
- Maximum chord deviation, in document units, of the flattened contour. The contour is resolved once per outline and shared by paint, picking and SVG output, so it stays independent of zoom: a tenth of a unit stays sub-pixel up to 10x magnification.