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:
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
Gets or sets the opacity.
Type: Single
X
Gets or sets the x coordinate, if the parent is not null the x coordinate will be relative to the parent.
Type: Single
Y
Gets or sets the y coordinate, if the parent is not null the y coordinate will be relative to the parent.
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 a value indicating whether the instance has transform.
Type: Boolean
Gets a value indicating whether the instance has translation.
Type: Boolean
Gets a value indicating whether the instance has translation.
Type: Boolean
Gets a value indicating whether the instance has skew.
Type: Boolean
Gets a value indicating whether the instance has rotation.
Type: Boolean
Gets or sets the stroke.
Type: Paint
Gets or sets the fill.
Type: Paint
Gets a value indicating whether the instance is valid.
Type: Boolean
Gets or sets the current time, this property is used to animate the instance.
Type: Int64
Gets or sets a value indicating whether the instance should be removed from the canvas when all the animations are completed.
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

// Draws the instance in the user interface with for the specified context.
SkiaSharpDrawingContext context//
)
// Measures the instance.
// Sets the transition for the specified properties.
Animation animation, // The animation.
String[] propertyName// The property name, null to select all properties.
)
// Removes the transition for the specified properties.
String[] propertyName// The properties to remove, null to select all properties.
)
// Completes the transition for the specified properties.
String[] propertyName// The properties, null to seledct all.
)