chore(editor): rev 4 leftovers: closeTrace returns nothing, doc reflow

This commit is contained in:
bchanot committed 2026-11-19 15:04:27 +01:00
1 parent f3c4f7baa9
commit 7a9ccf149c
2 files changed
+17 -18

No files matched your search

@@ -100,11 +100,10 @@ export function popVertex(): void {
} }
/** The tracing closes (three vertices at least): « Nouvelle zone » opens. */ /** The tracing closes (three vertices at least): « Nouvelle zone » opens. */
export function closeTrace(): boolean { export function closeTrace(): void {
const points = tracedPoints(creation()) const points = tracedPoints(creation())
if (!points || points.length < 3) return false if (!points || points.length < 3) return
patch({ closed: true, dialog: true }) patch({ closed: true, dialog: true })
return true
} }
/** /**
+15 -15
View File
@@ -180,23 +180,23 @@ The point handle covers the selected point's own circle (at least the hit
radius), so the whole marker can be held. A chosen vertex is drawn bigger, radius), so the whole marker can be held. A chosen vertex is drawn bigger,
filled and ringed, never by colour alone. filled and ringed, never by colour alone.
A selected polygon (zone, or a link traced as a polygon) gets its handles in A selected polygon (zone, or a link traced as a polygon) gets its handles in the
the same layer, in this order: one « + » at the midpoint of each segment same layer, in this order: one « + » at the midpoint of each segment (wrapping
(wrapping from the last vertex to the first), then one vertex handle per from the last vertex to the first), then one vertex handle per vertex, then the
vertex, then the « − » bubble of the chosen vertex, a rounded rectangle drawn « − » bubble of the chosen vertex, a rounded rectangle drawn just above that
just above that vertex. Each is a `role="button"` with `tabindex="0"`, so Tab and vertex. Each is a `role="button"` with `tabindex="0"`, so Tab and Shift+Tab walk
Shift+Tab walk them in document order. They sit in one `<g role="group">` named them in document order. They sit in one `<g role="group">` named « Sommets de
« Sommets de {nom} »; each name carries the shape's display name in the current {nom} »; each name carries the shape's display name in the current locale:
locale: « Sommet {n} de {nom} », « Ajouter un sommet après le sommet {n} de « Sommet {n} de {nom} », « Ajouter un sommet après le sommet {n} de {nom} »,
{nom} », « Retirer le sommet {n} de {nom} ». A « + » is not drawn while its segment « Retirer le sommet {n} de {nom} ». A « + » is not drawn while its segment is
is shorter than two hit radii on screen at the current zoom (R-9); Insert or the shorter than two hit radii on screen at the current zoom (R-9); Insert or the
« + » key on a vertex still reaches it. The « − » bubble is `aria-disabled` and greyed « + » key on a vertex still reaches it. The « − » bubble is `aria-disabled` and
while the polygon has three vertices. Above 40 vertices (`HANDLE_CAP`, T18) greyed while the polygon has three vertices. Above 40 vertices (`HANDLE_CAP`,
the layer draws no handle at all: the overlay keeps the selection outline. T18) the layer draws no handle at all: the overlay keeps the selection outline.
No handle covers the polygon's interior: a press inside it still reads the No handle covers the polygon's interior: a press inside it still reads the
core's markers, so an annotation drawn on top is the one a click reaches. A core's markers, so an annotation drawn on top is the one a click reaches. A
path, or an annotation without geometry, gets no handle. The pending shape of path, or an annotation without geometry, gets no handle. The pending shape of a
a resumed creation gets the same handles (see the creation marks below). resumed creation gets the same handles (see the creation marks below).
Marks of a gesture in progress, drawn by the overlay: Marks of a gesture in progress, drawn by the overlay: