LandAreaGeometry
Class
Assembly LiveChartsCore.SkiaSharpView
Namespace LiveChartsCore.SkiaSharpView.Drawing.Geometries
Summary:
Defines a land area geometry with cached path rendering for smooth zoom/pan.
Re-implements the draw interface to bypass per-frame path rebuilding.
Uses canvas matrix transform (GPU-accelerated) — zero allocations during zoom/pan.
Implements:
Constructors
// Initializes a new instance of the BaseVectorGeometry class.
Properties
Gets or sets the shared viewport transform applied during rendering.
Type: MapViewportTransform
Type: MapViewportTransform
Gets or sets the transform origin.
Type: LvcPoint
Type: LvcPoint
Gets or sets the translate transform.
Type: LvcPoint
Type: LvcPoint
Gets or sets the rotation transform in degrees.
Type: Single
Type: Single
Gets or sets the scale transform.
Type: LvcPoint
Type: LvcPoint
Gets or sets the skew transform.
Type: LvcPoint
Type: LvcPoint
Gets or sets the drop shadow.
Type: LvcDropShadow
Type: LvcDropShadow
Gets a value indicating whether the instance has transform.
Type: Boolean
Type: Boolean
Gets or sets the Stroke thickness.
Type: Single
Type: Single
Gets or sets the clipping bounds.
Type: LvcRectangle
Type: LvcRectangle
Gets the commands in the vector.
Type: LinkedList<Segment>
Type: LinkedList<Segment>
Gets or sets the closing method.
Type: VectorClosingMethod
Type: VectorClosingMethod
Gets or sets a value indicating whether the instance should be removed from the canvas when all the animations are completed.
Type: Boolean
Type: Boolean
Methods
// Marks the cached path as dirty, forcing a rebuild on the next draw.
Call this after modifying the Commands collection.
// Sets a pre-built base path directly, bypassing the Commands-based path building.
Used for combined geometries where multiple sub-paths need proper MoveTo calls.
| SKPath path | // The pre-built SKPath. Ownership is transferred to this geometry. |
)
// Draws the instance in the user interface with for the specified context.
Draw(
| SkiaSharpDrawingContext context | // |
)
// Completes the transition for the specified properties.
| PropertyDefinition[] properties | // The properties to complete, null to select all properties. |
)
// Measures the instance.
// Sets the transition for the specified properties.
| Animation animation, | // The animation. |
| PropertyDefinition[] properties | // The properties, null to select all properties. |
)
// Removes the transition for the specified properties.
| PropertyDefinition[] properties | // The properties to remove, null to select all properties. |
)