feat(editor): resumed trace edits the closed shape with its handles
« Reprendre le tracé » keeps the pending shape closed; the zone handles (vertex, « + », « − », vertex keys) edit it through the same press path and useZoneEdit, the target generalised to points + drop. A drop on PENDING_ID patches creation.pending only: document, history and unsaved count untouched, message without « Défaire ». Strip: « Tracé repris, saisie gardée » with « Revenir aux propriétés » and « Abandonner ». Handle names fall back to « la nouvelle zone » / « le nouvel accès ». Removed (resumed branch of popVertex, backToProperties -> closeTrace, CreationCommands tracedCount and its « Retirer le dernier sommet »). Removed assertions, editor-creation-dialog.test.tsx, « keeps the vertices and the form; a new vertex, then the dialog again »: - strip « Tracé repris, saisie gardée » -> kept in « keeps the shape closed and the form, shows its handles; two strip commands » - « Retirer le dernier sommet » enabled -> absent; commands are exactly « Revenir aux propriétés », « Abandonner » (same test) - a click on the drawing adds a 4th vertex -> « a click off the handles adds and selects nothing; a double « + » inserts once » - dialog again with Nom (FR) « Tibia » -> « « Revenir aux propriétés » shows the edited shape; « Créer » inserts it » - « Zone tracée, 4 sommets » -> « Zone tracée, 5 sommets » after « + » (same test)
This commit is contained in:
1 parent
816d0f4f9a
commit
a5896710e5
17 files changed
+679
-118
No files matched your search
@@ -195,7 +195,8 @@ while the polygon has three vertices. Above 40 vertices (`HANDLE_CAP`, 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
|
||||
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.
|
||||
path, or an annotation without geometry, gets no handle. The pending shape of
|
||||
a resumed creation gets the same handles (see the creation marks below).
|
||||
|
||||
Marks of a gesture in progress, drawn by the overlay:
|
||||
|
||||
@@ -238,7 +239,17 @@ core, since the new shape is not in the document until « Créer »:
|
||||
white stroke under it) and an accent dashed outline over the halo. It stays
|
||||
visible under the creation dialog's light veil;
|
||||
- the corrected position of a point (C26): the proposal in accent dashes and
|
||||
the click marked apart by a hollow cross.
|
||||
the click marked apart by a hollow cross;
|
||||
- a resumed trace (« Reprendre le tracé », board 04 C, rev 4): the closed
|
||||
ghost stays drawn as above, and the handle layer draws the polygon handles
|
||||
on it exactly as on a selected polygon (« + », vertices, the chosen vertex's
|
||||
« − » bubble, the 40-vertex cap, the R-9 zoom rule). Their names carry the
|
||||
form's name in the current locale, or « la nouvelle zone » / « le nouvel
|
||||
accès » while it is empty. During a vertex drag the ghost stays at its last
|
||||
place and the dragged outline is drawn as a selection preview (dashed ink,
|
||||
its vertices), without the grey old place; the loupe follows a finger as on
|
||||
a stored zone. A change of the shape only replaces the ghost's geometry: the
|
||||
document is untouched until « Créer ».
|
||||
|
||||
While a creation is in progress the canvas box carries `data-creating`. The
|
||||
stylesheet then dims every core marker (`[data-anno-id]` at 0.35 opacity, no
|
||||
|
||||
Reference in new issue
Block a user