chore(docs): split 11 CLAUDE.md sections into .claude/rules/

This commit is contained in:
bchanot committed 2026-10-27 16:04:30 +01:00
1 parent 78aacc09e1
commit 7a75974dc3
13 files changed
+175 -139

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
---
paths: ["crates/core/src/anatomy/**", "docs/ANNOTATION-RENDERING.md"]
---
# Annotation rendering
- docs/ANNOTATION-RENDERING.md is the source of truth: the drawing carries no annotation element, the markers are
drawn from the document (the Rust core, `crates/core/src/anatomy`, for the canvas since R3, the PDF since R4 and
the pipeline's review drawings since R5), with the attributes listed there
- Every SVG the product draws goes through the core's one reader (`anatomy::svg::read_svg`): caps before any parse,
allowlist, reference graph; a product drawing with anything removed is refused at load, never repaired
- Never rely on element id, className or a label for click targeting or behaviour — always `data-anno-id`
and the annotation's fields (`laterality`, `vertebral_region_code`, `opens_view_id`)
- Marker look (radii, opacities, strokes) is renderer style; colours are document data (`color` on categories
and annotations); no graphic redesign without prior validation