fix(anatomy): V1-2.2 marker layer and halo outside the drawing's group

Owner-approved lot B (brief 2026-11-01). The composition root is the
engine's (namespaces and frame); the drawing's root becomes a group and
the marker layer and halo are its siblings, so no root property reaches
a marker. Point hitboxes declare stroke none and visibleFill. Census over
the reader's whole allowlist; R3 references compared under the declared
transform; click proofs in three engines.
This commit is contained in:
bchanot committed 2026-11-01 00:39:57 +01:00
1 parent f1bb19b30b
commit 4f52f5e1c4
23 files changed
+933 -112

No files matched your search

+13 -12
View File
@@ -23,7 +23,7 @@ trigger.
| Annotation | Elements |
|---|---|
| `detail_trigger`, any geometry | one dashed shape: fill and stroke = the colour, `fill-opacity` 0.06, `stroke-width` 2, `stroke-dasharray` `8,4`, `pointer-events` all, `style` `cursor:pointer`, class `detail-zone` |
| `point` or `zone` with a circle | a transparent hitbox (the geometry's `r`, `fill` transparent, `pointer-events` all, `style` `cursor:pointer`) then a visible twin on top (radius `max(2, r − 12)`, the colour, `fill-opacity` 0.65 on the main view / 0.5 on a detail view, stroke `#000` 1.5, `pointer-events` none) |
| `point` or `zone` with a circle | a transparent hitbox (the geometry's `r`, `fill` transparent, `stroke` none, `pointer-events` visibleFill, `style` `cursor:pointer`; the R3 form kept for the seed review drawings has no `stroke` and `pointer-events` all) then a visible twin on top (radius `max(2, r − 12)`, the colour, `fill-opacity` 0.65 on the main view / 0.5 on a detail view, stroke `#000` 1.5, `pointer-events` none) |
| `point` or `zone` with a polygon or a path | one filled shape: fill and stroke = the colour, `fill-opacity` 0.3, `stroke-width` 2, `pointer-events` all, `style` `cursor:pointer` |
Annotations without geometry draw nothing. Annotations follow the document
@@ -111,22 +111,23 @@ a pointer cursor and brightens on hover.
The engine composes the observation's zones of one view: the markers of the
other annotations are dropped (not hidden), every `data-*` attribute is
removed, the kept elements get fill `#b85a3f` at 0.85 and, on the main view,
the `osteo-halo` filter (two Gaussian blurs merged with the source), added to
the first `<defs>` of the drawing or to a new `<defs>` placed first. The PDF
the `osteo-halo` filter (two Gaussian blurs merged with the source), in a
`<defs>` of the engine placed after the drawing's group, before the layer. The PDF
view keeps the drawing's ids, so `osteo-halo` is reserved (V1-2.2, owner brief
2026-10-30): the reader refuses a drawing holding it in any letter case
(`reserved_id`) and both composers refuse such a tree, so the halo the markers
name is always the engine's.
Both forms append the layer as the root's last child, so it inherits the
root's `visibility`. A root `visibility` other than `visible` is refused by
the reader (`root_visibility`) and by both composers: a drawing could
otherwise hide every marker while its own children set `visible` back. The
root's `class`, `style`, `transform`, `filter`, `mask` and `clip-path` are
removed by the reader; `opacity` and `display` on the root act on the drawing
and the markers alike. Still open (RUST.md §12.10): `stroke-opacity`,
`stroke-dasharray` and `stroke-width` on the root reach the markers, which do
not set them (the frame of a view: see Views, RUST.md §12.11).
The composition root is the engine's (V1-2.2, owner brief 2026-10-30, RUST.md
§12.12): `xmlns`, `xmlns:xlink` and the frame only. The drawing's root becomes
a `<g>` holding its other attributes and its children; the layer (and the
halo's `<defs>`) are that group's siblings, so no property the drawing sets,
inherited (`stroke-*`, `fill*`, `visibility`…) or acting on a whole group
(`opacity`, `display`), reaches a marker: a root `opacity="0"` or
`display="none"` hides the drawing alone. A root `visibility` other than
`visible` stays refused by the reader (`root_visibility`) and by both
composers. The R3 trees stay frozen; the tests apply this declared change
(`withIsolatedLayer`, `withDeclaredHitboxes`, `with_isolated_layer`).
## Checking the look