docs(docs): the touch loupe in the editor overlay contract

This commit is contained in:
bchanot committed 2026-11-18 00:18:14 +01:00
1 parent 837ec9f436
commit d39603ab6a
1 file changed
+12
+12
View File
@@ -204,6 +204,18 @@ Marks of a gesture in progress, drawn by the overlay:
stored outline in grey dashes stays until the new tracing closes, without
vertices or handles; the new tracing is drawn as any tracing.
The loupe (U2 Task 8, board 13): while a finger drags a handle (a vertex, the
point) or the move mode's target, a 120 px disc sits 90 px above the finger,
clamped inside the canvas box, and shows the place under the finger at twice
its size on screen. It is a sibling of the transformed container inside the
canvas box, `aria-hidden`, `inert` and `pointer-events: none`, so it never
takes a press and is never a hit target. Its content is a copy of the core's
drawing taken once when the drag starts, with every `data-anno-id` removed
(the copy is a picture, never a marker), then the preview outline and its
vertices on top, as the overlay draws them. Per move only its transform
changes; it goes away on the drop, the cancel and the end of the press. A
mouse or pen drag shows no loupe.
A creation (U2 Task 7, A2, A4, A12) is drawn by the overlay too, never by the
core, since the new shape is not in the document until « Créer »: