--- 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