How zorkai/yunotes works
YuNotes is a Windows digital notebook for creating and editing pen-based notes, with PDF/PNG interchange and configurable input. The main workflow is HomePage document selection or creation, then EditorPage edits through canvas tools, rendering, and document persistence; settings configure the experience separately. The graph includes documented selection, templates, input handling, and export capabilities. Some subsystem paths and their wiring are only documented in the README, so those links are marked unverified where source evidence was unavailable.
Main entry points: EditorPage.xaml.cs Editor workspace · PageCanvas.cs Page canvas · EditorContext.cs Editor state and bounds · InkCanvasControl.xaml.cs Ink input control
Components 27
App and navigation
- Home and recents
src/YuNotes/Views/HomePage.xaml.cs - Editor workspace
src/YuNotes/Views/EditorPage.xaml.cs - Settings screen
src/YuNotes/Views/SettingsPage.xaml.cs
Canvas and editing
- Ink input control
src/YuNotes/Controls/InkCanvasControl.xaml.cs - Page canvas
src/YuNotes/Controls/PageCanvas.cs - Live ink surface
src/YuNotes/Controls/LiveInkSurface.cs - Pen and highlighter
src/YuNotes/Tools/PenTool.cs - Stroke and pixel eraser
src/YuNotes/Tools/EraserTool.cs - Lasso and rectangle selection
src/YuNotes/Tools/SelectionTools.cs - Shape tools and recognition
src/YuNotes/Tools/ShapeTool.cs - Text editing
src/YuNotes/Tools/TextTool.cs - Editor state and bounds
src/YuNotes/Tools/EditorContext.cs - Page renderer
src/YuNotes/Rendering/PageRenderer.cs - Page templates
src/YuNotes/Services/TemplateService.cs
Documents and persistence
- Document and page model
src/YuNotes/Models/Document.cs - Editable ink and elements
src/YuNotes/Models/Stroke.cs - Document persistence
src/YuNotes/Services/DocumentService.cs - Undo and redo history
src/YuNotes/Services/HistoryService.cs
Import and export
- PDF note container
src/YuNotes/Services/PdfContainerService.cs - PDF import
src/YuNotes/Services/PdfImportService.cs - PDF export
src/YuNotes/Services/PdfExportService.cs - PNG export
src/YuNotes/Services/PngExportService.cs
Input and settings
- App settings model
src/YuNotes/Models/AppSettings.cs - Settings persistence
src/YuNotes/Services/SettingsService.cs - Palm rejection
src/YuNotes/Input/PalmRejection.cs - Pen button routing
src/YuNotes/Input/PenButtonRouter.cs
Other components
- Notebook user
Connections 40
- Notebook user → Home and recents: opens notebook
- Home and recents → Editor workspace: opens document
- Notebook user → Settings screen: configures app
- Editor workspace → Ink input control: hosts canvas
- Editor workspace → Document persistence: loads and saves
src/YuNotes/Views/EditorPage.xaml.cs - Editor workspace → Pen and highlighter: selects tools
src/YuNotes/Views/EditorPage.xaml.cs - Editor workspace → Stroke and pixel eraser: selects tools
src/YuNotes/Views/EditorPage.xaml.cs - Editor workspace → Text editing: selects tools
src/YuNotes/Views/EditorPage.xaml.cs - Editor workspace → Shape tools and recognition: selects tools
src/YuNotes/Views/EditorPage.xaml.cs - Ink input control → Page canvas: hosts canvas
src/YuNotes/Controls/InkCanvasControl.xaml.cs - Ink input control → Editor state and bounds: updates state
src/YuNotes/Controls/InkCanvasControl.xaml.cs - Ink input control → Palm rejection: filters touch
src/YuNotes/Controls/InkCanvasControl.xaml.cs - Ink input control → Pen button routing: routes buttons
src/YuNotes/Controls/InkCanvasControl.xaml.cs - Page canvas → Editor state and bounds: updates state
src/YuNotes/Controls/PageCanvas.cs - Page canvas → Live ink surface: hosts overlay
src/YuNotes/Controls/PageCanvas.cs - Page canvas → Page renderer: draws page
src/YuNotes/Controls/PageCanvas.cs - Page canvas → Pen and highlighter: dispatches input
src/YuNotes/Controls/PageCanvas.cs - Page canvas → Stroke and pixel eraser: dispatches input
src/YuNotes/Controls/PageCanvas.cs - Page canvas → Shape tools and recognition: dispatches input
src/YuNotes/Controls/PageCanvas.cs - Pen and highlighter → Editor state and bounds: mutates state
src/YuNotes/Tools/PenTool.cs - Pen and highlighter → Editable ink and elements: creates strokes
src/YuNotes/Tools/PenTool.cs - Pen and highlighter → Shape tools and recognition: snaps strokes
src/YuNotes/Tools/PenTool.cs - Stroke and pixel eraser → Editor state and bounds: edits state
src/YuNotes/Tools/EraserTool.cs - Lasso and rectangle selection → Editor state and bounds: updates selection
src/YuNotes/Tools/SelectionTools.cs - Shape tools and recognition → Editor state and bounds: edits state
src/YuNotes/Tools/ShapeTool.cs - Text editing → Editor state and bounds: edits state
src/YuNotes/Tools/TextTool.cs - Page renderer → Page templates: draws backgrounds
src/YuNotes/Rendering/PageRenderer.cs - Page renderer → Editable ink and elements: renders elements
src/YuNotes/Rendering/PageRenderer.cs - Document persistence → Document and page model: loads and writes
src/YuNotes/Services/DocumentService.cs - Document persistence → PDF import: imports PDF
src/YuNotes/Services/DocumentService.cs - Document persistence → PDF note container: reads embedded data
src/YuNotes/Services/DocumentService.cs - Document and page model → Editable ink and elements: contains editable content
src/YuNotes/Models/Document.cs - Settings screen → Settings persistence: persists preferences
- Settings persistence → App settings model: loads and saves
src/YuNotes/Services/SettingsService.cs - Palm rejection → App settings model: reads thresholds
src/YuNotes/Input/PalmRejection.cs - Pen button routing → App settings model: reads bindings
src/YuNotes/Input/PenButtonRouter.cs - Editor workspace → Lasso and rectangle selection: offers selection
- Editor workspace → PDF export: exports PDF
- Editor workspace → PNG export: exports PNG
- Document persistence → Undo and redo history: tracks edits