fix(editor): guard keeps pending series, mode end said, R-9 hook
- guardDrawing commits a keyboard or size series the focus still holds (its blur) and ends only the mode: a pending series is never dropped. - A started move ended by a selection change is said (R-13). - handleSize: no module-level state; useHandleSizes reads the device once per handle layer. The layer reads ResizeObserver contentRect. - Dead kind check removed in SelectionPointCommands; long lines wrapped (code, doc). - e2e: the zoom check waits for the transform to change; the move-mode arrow clicks are under expectNoShift.
This commit is contained in:
1 parent
e01d8519ea
commit
463e0a2621
11 files changed
+157
-40
No files matched your search
@@ -149,8 +149,9 @@ annotation: the markers stay the core's (`view.canvas`) and the drawing is never
|
||||
modified. The overlay holds numbers only, drawn from the editor's state: the
|
||||
selection outline (dashed), the vertex circles, the tracing in progress, the
|
||||
pending or dragged outline, the hollow cross of a corrected position and the
|
||||
crop rectangle. It is `aria-hidden` and never takes the pointer. It sets `pointer-events: none` on its own shapes; the pointer
|
||||
is read on the canvas box and mapped to drawing units through the overlay's
|
||||
crop rectangle. It is `aria-hidden` and never takes the pointer. It sets
|
||||
`pointer-events: none` on its own shapes; the pointer is read on the canvas
|
||||
box and mapped to drawing units through the overlay's
|
||||
`getScreenCTM().inverse()`. No overlay shape carries `data-anno-id`, so click
|
||||
targeting still reads the core's markers only.
|
||||
|
||||
@@ -158,13 +159,14 @@ Handles live in a third `<svg>` of their own (the handle layer), above the
|
||||
overlay in the same transformed container, with the same `viewBox` and
|
||||
`preserveAspectRatio`. It is not `aria-hidden`: each handle is a focusable
|
||||
`role="button"` (`tabindex="0"`) named after what it moves (« Point {nom} » for
|
||||
a point), with a visible focus ring. The layer's root sets
|
||||
`pointer-events: none`; each handle's hit shape turns it back on
|
||||
(`pointer-events: auto`, painted shapes only) with a transparent fill and carries `data-handle` (the JSON of its handle
|
||||
reference), which the press machine reads through `elementsFromPoint`. Handle
|
||||
sizes are constant in CSS px under zoom: the layer divides them by the drawing's
|
||||
px per unit (the box size over the frame, times the zoom). The device size is
|
||||
read once from `(any-pointer: coarse)`:
|
||||
a point, « Accès {nom} » for a link circle), with a visible focus ring. The
|
||||
layer's root sets `pointer-events: none`; each handle's hit shape turns it
|
||||
back on (`pointer-events: auto`, painted shapes only) with a transparent fill
|
||||
and carries `data-handle` (the JSON of its handle reference), which the press
|
||||
machine reads through `elementsFromPoint`. Handle sizes are constant in CSS px
|
||||
under zoom: the layer divides them by the drawing's px per unit (the box size
|
||||
over the frame, times the zoom). The device size is read once per handle layer
|
||||
from `(any-pointer: coarse)`:
|
||||
|
||||
| Device | Vertex | « + » | « − » bubble | Hit radius |
|
||||
|---|---|---|---|---|
|
||||
|
||||
Reference in new issue
Block a user