mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
Switch whiteboard note storage from legacy DB rows to per-note JSON files and add migration support. Update WhiteboardNoteSnapshot schema (version bump, viewport, canvas, expires, PathSvgData) and change IWhiteboardNotePersistenceService.SaveNote to return bool to surface write failures (e.g. read-only files). Implement file-based WhiteboardNotePersistenceService with legacy DB migration/cleanup, retention handling, and logging. Add comprehensive unit tests for persistence, stroke path builder, SVG import and viewport helper. Also add ThirdParty/DotNetCampus.InkCanvas project and reference it in the main csproj, and bump PostHog package to 2.6.0.
773 B
773 B
DotNetCampus.InkCanvas Avalonia 12 Compatibility Fork
This source is vendored from dotnet-campus/DotNetCampus.InkCanvas at commit
e4383cadc3ae206dd96f5b72ba889a007ebc44fa, matching the
DotNetCampus.AvaloniaInkCanvas 1.0.1 NuGet package previously used by the app.
The local project keeps the assembly name DotNetCampus.AvaloniaInkCanvas so the
host code can continue using the existing namespaces and APIs.
Local compatibility changes:
- Replace Avalonia 11
Visual.VisualRootrender scaling access withTopLevel.GetTopLevel(this)?.RenderScaling. - Reference Avalonia 12 packages from a local project instead of the Avalonia 11-targeted NuGet package.
- Import the Avalonia 12 optional feature extension namespace for Skia custom drawing operations.