Svg.Editor.Skia contains the editing math and overlay-rendering helpers used by the interactive canvas.
dotnet add package Svg.Editor.Skia
| Type | Role |
|---|---|
SvgEditorInteractionController |
Public adapter over selection and path-edit behavior |
SvgEditorOverlayRenderer |
Public adapter over overlay drawing |
SelectionService |
Bounds, transforms, resizing, skewing, flipping, and handle hit-testing |
PathService |
Editable path points and path operations |
AlignService |
Align and distribute commands |
RenderingService |
Grid, layer, selection, and path overlay drawing |
BoundsInfo |
Computed selection handles |
PathPoint |
Individual editable path point |
using Svg.Editor.Skia;
var interaction = new SvgEditorInteractionController
{
SnapToGrid = true,
GridSize = 10
};
var overlays = new SvgEditorOverlayRenderer();
In a custom surface, the interaction controller is the entry point for:
GetBoundsInfo(...)HitHandle(...)SetRotation(...)SetTranslation(...)SetScale(...)SetSkew(...)ResizeElement(...)StartPathEditing(...), MoveActivePathPoint(...), and MakePathPointSmooth(...)Svg.Editor.Skia.Avalonia exposes these helpers on SvgEditorSurface through the InteractionController and OverlayRenderer properties. Use Svg.Editor.Skia directly only when the host owns the rest of the UI composition.