Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Svg.Skia.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@
<Folder Name="/src/">
<Project Path="src/ShimSkiaSharp/ShimSkiaSharp.csproj" />
<Project Path="src/Skia.Controls.Avalonia/Skia.Controls.Avalonia.csproj" />
<Project Path="src/Svg.Editor.Avalonia/Svg.Editor.Avalonia.csproj" />
<Project Path="src/Svg.Editor.Core/Svg.Editor.Core.csproj" />
<Project Path="src/Svg.Editor.Skia/Svg.Editor.Skia.csproj" />
<Project Path="src/Svg.Editor.Skia.Avalonia/Svg.Editor.Skia.Avalonia.csproj" />
<Project Path="src/Svg.Editor.Svg/Svg.Editor.Svg.csproj" />
<Project Path="src/Svg.CodeGen.Skia/Svg.CodeGen.Skia.csproj" />
<Project Path="src/Svg.Controls.Avalonia/Svg.Controls.Avalonia.csproj" />
<Project Path="src/Svg.Controls.Skia.Avalonia/Svg.Controls.Skia.Avalonia.csproj" />
Expand All @@ -82,6 +87,9 @@
<Project Path="tests/ShimSkiaSharp.UnitTests/ShimSkiaSharp.UnitTests.csproj" />
<Project Path="tests/Svg.Controls.Avalonia.UnitTests/Svg.Controls.Avalonia.UnitTests.csproj" />
<Project Path="tests/Svg.Controls.Skia.Avalonia.UnitTests/Svg.Controls.Skia.Avalonia.UnitTests.csproj" />
<Project Path="tests/Svg.Editor.Skia.Avalonia.UnitTests/Svg.Editor.Skia.Avalonia.UnitTests.csproj" />
<Project Path="tests/Svg.Editor.Skia.UnitTests/Svg.Editor.Skia.UnitTests.csproj" />
<Project Path="tests/Svg.Editor.Svg.UnitTests/Svg.Editor.Svg.UnitTests.csproj" />
<Project Path="tests/Svg.Model.UnitTests/Svg.Model.UnitTests.csproj" />
<Project Path="tests/Svg.Skia.UnitTests/Svg.Skia.UnitTests.csproj" />
</Folder>
Expand Down
23 changes: 23 additions & 0 deletions docs/editor-packages.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Svg.Editor package layout

`samples/AvalonDraw` is now the demo host for the extracted editor stack.

Reference `Svg.Editor.Skia.Avalonia` when you want the ready-made editor workspace and interactive canvas.
It now exposes `SvgEditorWorkspace` for the full composed editor and `SvgEditorSurface` for the canvas only.

Reference `Svg.Editor.Avalonia` when you only need the editor dialogs and other Avalonia-specific UI pieces without the Skia editing surface.
It now contains the reusable side-panel controls: `DocumentOutlineView`, `ResourceBrowserView`, `PropertyInspectorView`, `ToolPaletteView`, and `StatusBarView`.
It also exposes the standalone editor views used by the default dialog host, including `InsertElementPickerView`, `PatternEditorView`, `GradientStopsEditorView`, `GradientMeshEditorView`, `StrokeProfileEditorView`, `TextEditorView`, `PathSegmentsEditorView`, `SwatchEditorView`, `SymbolPickerView`, `SymbolNameEditorView`, and `SettingsEditorView`.
Use `ISvgEditorDialogService` and `ISvgEditorFileDialogService` to replace the default window/file-picker flow when embedding the editor into a host application.

Reference `Svg.Editor.Skia` when you need rendering/editing helpers and overlay logic but are composing your own UI.
It exposes the public editor-side helpers `SvgEditorOverlayRenderer`, `SvgEditorInteractionController`, `BoundsInfo`, and `PathPoint`.

Reference `Svg.Editor.Svg` for SVG document mutation services, resource management, and property editing support.

Reference `Svg.Editor.Core` for shared editor state types such as `SvgEditorSession`, `SvgEditorSettings`, `SvgNode`, and `ArtboardInfo`.

`SvgEditorWorkspace` now keeps host-owned seams public:
- assign `DialogService` to customize modal presentation and inline editor hosting
- assign `FileDialogService` to customize open/save/export/image picking
- call `OpenDocumentAsync`, `SaveDocumentAsync`, `ExportSelectedElementAsync`, `ExportPdfAsync`, `ExportXpsAsync`, `PlaceImageAsync`, and `ShowSettingsAsync` from host menus or commands instead of relying on the built-in menu bar
2 changes: 1 addition & 1 deletion samples/AvalonDraw/AvalonDraw.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Svg.Controls.Skia.Avalonia\Svg.Controls.Skia.Avalonia.csproj" />
<ProjectReference Include="..\..\src\Svg.Editor.Skia.Avalonia\Svg.Editor.Skia.Avalonia.csproj" />
</ItemGroup>

</Project>
17 changes: 0 additions & 17 deletions samples/AvalonDraw/GradientMeshEditorWindow.axaml

This file was deleted.

77 changes: 0 additions & 77 deletions samples/AvalonDraw/GradientMeshEditorWindow.axaml.cs

This file was deleted.

41 changes: 0 additions & 41 deletions samples/AvalonDraw/InsertElementWindow.axaml.cs

This file was deleted.

Loading
Loading