Editor: composition wireframe — pull-out, stacking, and simplify

This commit is contained in:
2026-06-30 15:42:22 +03:00
parent 26b383ff33
commit c019660692
13 changed files with 966 additions and 88 deletions
@@ -247,16 +247,22 @@ never by writing the draft text directly — so the wireframe and editor share o
the moved box for consecutive moves (so a screen reader re-announces its new position), a
**polite** live region states the result, and `aria-keyshortcuts` advertises the keys. _(Council:
APG listbox-rearrangeable.)_
- **Restructure by drag — edge-zone (dock) model.** The nearest edge of the box under the pointer
picks the **axis** (left/right → a row `hconcat`, top/bottom → a column `vconcat`) and **side**.
A drop **along** a sibling's own container reorders within it; a drop **across** it — or onto an
opaque `layer`/`facet`/`repeat` box — pairs the two in a new concat. The hit-test descends only
through `hconcat`/`vconcat` and treats `layer`/`facet`/`repeat`/grid as **opaque** targets (their
children overlap or are data-generated, so the unit is the target, never inside it). A 3px accent
line marks the landing edge; a `wrap` drop also rings + tints the partner box. The drag is a
pointer accelerator over capabilities that stay keyboard-reachable (in-container reorder via
`Alt+↑/↓`; cross-container wrap via the editor's wrap actions), so it adds **no keyboard-only
gap**. Transform invariants in [arch 08](08-vega-editor-techniques.md).
- **Restructure by drag — zone model against the children's box.** Intent is read from where the
pointer falls relative to a row/column's children, not one nearest edge, so each gesture owns a
generous target: the **interior central band reorders** (an insertion slot by main-axis position —
a drag _along_ the block rearranges it anywhere, not only on a sibling's edge); the **cross-axis
frame margin** (a row's top/bottom, a column's left/right — the gutter between frame and children,
or past the block) **pulls the source out** into a new full-span row/column wrapping the whole
container, the root included; a drop onto **a view's far cross edge** pairs the two in a
perpendicular split (`Shift` forces a pair from the centre). The source is the **innermost** view
under the pointer `beginDrag` stops propagation so a nested ancestor frame, itself draggable,
can't claim the drag (un-stopped, its handler runs last on bubble and wins). The hit-test descends
only through `hconcat`/`vconcat` and treats `layer`/`facet`/`repeat`/grid as **opaque**. Feedback:
a cursor **chip** names the pending action, the target previews it (reorder line, pair half-split,
pull-out band), and every frame's pull-out margins glow faintly while dragging. The drag is a
pointer accelerator over keyboard-reachable capabilities (in-container reorder via `Alt+↑/↓`;
cross-container restructure via the editor's wrap actions), so it adds **no keyboard-only gap**.
Transform invariants in [arch 08](08-vega-editor-techniques.md).
**Resolved — pane toggle strip.** The persistent show/hide strip (spec §01A) is a **WAI-ARIA
APG `toolbar`** (`role="toolbar"`, `aria-orientation="vertical"`, an `aria-label` such as