VariableSVGPathGeometry
Class

Assembly LiveChartsCore.SkiaSharpView
Namespace LiveChartsCore.SkiaSharpView.Drawing.Geometries

Summary:
Defines a geometry that is built from a svg path, the path can change at runtime, this geometry has a performance penalty, use it only when you need to change the path at runtime, if the geometry is static use any other geometry defined in the library, or inherit from BaseSVGPathGeometry class instead, and set the path in the constructor.

Inheritance:
Object =>
Animatable =>
Drawable =>
Geometry =>
SizedGeometry =>
BaseSVGPathGeometry =>
VariableSVGPathGeometry
Implements:
Derived:

Constructors

// Initializes a new instance of the BaseSVGPathGeometry class.

Properties

Gets or sets the svg path.
Type: String
The SVG path.
Type: SKPath
Gets or sets whether the path should fit the size of the geometry.
Type: Boolean
Gets or sets the width.
Type: Single
Gets or sets the height.
Type: Single
X
Gets or sets the x coordinate. When the parent is null the coordinates are relative to the canvas. When the parent is not null the setter coordinates are relative to the parent but the getter is relative to the canvas.
Type: Single
Y
Gets or sets the y coordinate. When the parent is null the coordinates are relative to the canvas. When the parent is not null the setter coordinates are relative to the parent but the getter is relative to the canvas.
Type: Single
Gets or sets the transform origin.
Type: LvcPoint
Gets or sets the translate transform.
Type: LvcPoint
Gets or sets the rotation transform in degrees.
Type: Single
Gets or sets the scale transform.
Type: LvcPoint
Gets or sets the skew transform.
Type: LvcPoint
Gets or sets the matrix transform.
Type: SKMatrix
Gets or sets the opacity.
Type: Single
Gets or sets the stroke paint.
Type: IPaint<SkiaSharpDrawingContext>
Gets or sets the fill paint.
Type: IPaint<SkiaSharpDrawingContext>
Gets or sets the parent shape, if any the X and Y properties will be relative to the parent.
Type: IGeometry<SkiaSharpDrawingContext>
Gets or sets a value indicating whether this instance is completed.
Type: Boolean
Gets or sets the current time.
Type: Int64
Gets or sets a value indicating whether the element is removed when all the transitions complete.
Type: Boolean
Gets the motion properties.
Type: Dictionary<String, IMotionProperty>

Public static fields

Svg paths are cached in this dictionary to prevent parsing multiple times the same path, when you use the VariableSVGPathGeometry class, keep in mind that the parsed paths are living in memory, this has no secondary effects in most of the cases, but if you are parsing a lot of paths (maybe over 500) then you must consider cleaning the cache when you no longer need a path.
Type: Dictionary<String, SKPath>

Methods

// Called when the geometry is drawn.
SkiaSharpDrawingContext context, // The context.
SKPaint paint// The paint.
)
// Draws the geometry in the user interface.
SkiaSharpDrawingContext context// The context.
)
// Measures the geometry.
IPaint<SkiaSharpDrawingContext> drawableTask// The drawable task.
)
// Sets a property transition for the specified property or properties.
Animation animation, // The animation.
String[] propertyName// Name of the property, use null to set all the animatable properties.
)
// Removes a property or properties transitions.
String[] propertyName// Name of the property, null to remove them all.
)
// Completes the property or properties transitions.
String[] propertyName// Name of the property, null to select them all.
)