Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
translate ▾

Modern-Apps.git / library / ink / AGENTS.md

AGENTS.md1.1 KiBRenderedCodeRaw
1# AGENTS.md — library/ink/ (':library:ink')
2
3> Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/ink/` + allowed shared modules. Do not root-scan.
4
5- Gradle: :library:ink / dir: library/ink/
6- Package roots present: (stylus-ink view + serialization — one package)
7- Entry files: InkCanvasView.kt (no MainActivity/Route — library)
8- Deps: (none)
9- Metadata: metadata_data/library-ink.md (absent — libraries have none by design)
10- Rust: no / screenshotTest: no
11
12## Overview
13**Purpose:** Stylus/finger ink input — `InkCanvasView` capture + `InkSerialization` persistence. Used by notes (ink editor pages).
14**How to use:** Embed `InkCanvasView`, persist strokes via `InkSerialization`; keep stroke data alongside the note model, not in the view.
15**Entry points:** `InkCanvasView.kt` → `InkSerialization.kt`.
16**Gotchas:** Palm rejection and stroke smoothing vary by device — test with hardware stylus, not mouse.
17
18## Key files
19- com/vayunmathur/library/ink/InkCanvasView.kt
20- com/vayunmathur/library/ink/InkSerialization.kt
21
22## Verify (this module only)
23```
24./gradlew :library:ink:compileDevKotlin
25./gradlew :library:ink:lint
26```