SankeyRibbonGeometry

SkiaSharp implementation of a sankey ribbon. Draws a closed Bezier band from the source node's right edge (at the SourceY0..SourceY1 band) to the target node's left edge (at the TargetY0..TargetY1 band), with the two cubic curves' control points placed at the horizontal midpoint — the classic d3-sankey ribbon shape.

Class · Namespace LiveChartsCore.SkiaSharpView.Drawing.Geometries · Assembly LiveChartsCore.SkiaSharpView · View source

Members

Properties

Color LvcColor
Gets or sets the color.
Opacity Single
Gets or sets the opacity.
TransformOrigin LvcPoint
Gets or sets the transform origin.
TranslateTransform LvcPoint
Gets or sets the translate transform.
RotateTransform Single
Gets or sets the rotation transform in degrees.
ScaleTransform LvcPoint
Gets or sets the scale transform.
SkewTransform LvcPoint
Gets or sets the skew transform.
Stroke Paint
Gets or sets the stroke.
Fill Paint
Gets or sets the fill.
DropShadow LvcDropShadow
Gets or sets the drop shadow.
HasTransform Boolean
Gets a value indicating whether the instance has transform.
StrokeThickness Single
Gets or sets the Stroke thickness.
ClippingBounds LvcRectangle
Gets or sets the clipping bounds.
X Single
Gets or sets the x coordinate, if the parent is not null the x coordinate will be relative to the parent.
Y Single
Gets or sets the y coordinate, if the parent is not null the y coordinate will be relative to the parent.
IsValid Boolean
Gets a value indicating whether the instance is valid.
RemoveOnCompleted Boolean
Gets or sets a value indicating whether the instance should be removed from the canvas when all the animations are completed.

Methods

Draw 1 parameter

Draws the instance in the user interface with for the specified context.

SkiaSharpDrawingContext context

Measure No parameters

Measures the instance.

SetTransition 2 parameters

Sets the transition for the specified properties.

Animation animation The animation.

PropertyDefinition[] properties The properties, null to select all properties.

RemoveTransition 1 parameter

Removes the transition for the specified properties.

PropertyDefinition[] properties The properties to remove, null to select all properties.

CompleteTransition 1 parameter

Completes the transition for the specified properties.

PropertyDefinition[] properties The properties to complete, null to select all properties.

GetPropertyDefinition 1 parameter

Gets the property definition by name.

String propertyName The name of the property.

Constructors

SankeyRibbonGeometry No parameters

Initializes BaseSankeyRibbonGeometry.Color to the LvcColor.Empty sentinel so the ribbon defaults to "use the shared paint color." Without this, the source-gen would default to default(LvcColor) = (0,0,0,0,IsEmpty=false), which the Draw's !Equals(Empty) check treats as a real (transparent black) override — and the ribbon renders invisible.