VectorCraft: An open-source, vector art tool written by scratch in pure Rust
UI.6: reconcile shared docking with native panel sets
skylar taylor-barrick0c57b1d5d23a
diff --cc Cargo.lockindex 1707a65db,9b09db608..c8257cdf2--- a/Cargo.lock+++ b/Cargo.lock@@@ -4847,12 -4742,10 +4855,12 @@@ dependencies =[[package]]name = "vectorcraft-ui-egui"- version = "0.8.0"+ version = "0.9.0"dependencies = [+ "craft-ui","egui","egui_extras",+ "egui_kittest","image","log","serde",diff --cc ROADMAP.mdindex ed522733f,f945069e0..c25b14cbd--- a/ROADMAP.md+++ b/ROADMAP.md@@@ -1,282 -1,149 +1,153 @@@# VectorCraft Roadmap+- UI.5: Shared docking adds tab reordering, docking into other groups, dock splits and resizable floating panel groups. Panel positions and return locations persist with workspaces; the native icon rail and Tools panel remain available.++- UI.4: Dock and floating-panel headers use shared accessible tabs with bounded overflow. Widget-state theme application uses `craft-ui`; all four palettes, font stacks and preferences remain app-owned.+- VectorCraft is a clean-room, open-source, pure-Rust reimplementation of the Adobe Illustrator workflow. It runs on macOS, Windows, Linux and the web (WASM), and agents can drive it fully over a JSON control channel and MCP.+ **Stage: alpha** · next: beta, ~13 points (ready for real work ~62% → ~75%, and reliable `.ai` exchange) and ~170–270 h away- This file tracks **how far we are and what's left**. Time estimates are wall-clock hours of continuous Claude Opus 5.5 agent work (including builds and the CI gate), given both for **one agent** and for **4–6 parallel agents** on disjoint crates. They are counted from the remaining work (see [Parity estimate](#parity-estimate)), calibrated against measured throughput, and updated as work lands.+ > **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-11 · **Change:** minor (Effect › Brush Strokes landed: Photoshop-style filters 28 of 57, raster effects 40% → 48%) · **Target:** Adobe Illustrator 2026 (30.x)- _Last updated: 2026-10-10 (after placed documents (File › Place of a `.vectorcraft` file, linked), M4.14–M4.98, M8.1–M8.20, M14.4–M14.7, the MCP prompts, resource templates, completions and logging, the 2026-10-07 issue fixes, the Layers panel rework and the 2026-10-08 community contributions: Pen and shape-tool modifiers, path editing, Layers, Artboards, Swatches/Brushes and dialogs, Japanese composition and PDF text, Hebrew/Arabic type, interface languages (Spanish among them), the font menu, saved selections, MCP and EPS, the missing-font export warning (#319), open paths in the Shape Builder (#374), PDF/`.ai` import keeping strokes live and hidden and nested layers (#372), per-corner Live Corners (#381), SVG type opening at the size it draws at (#396), the Wayland clipboard with copied-file paste (#398), ruler guides that can be selected, moved and deleted (#414), two batches of Preferences options that were stored but unused (#394), skeleton reads with `document.find` for large documents over MCP (#416) and anchors dragged with Direct Selection snapping to points, segments and smart guides, clipped SVG layers opening as clipping layers (#420), PDF/`.ai` layers read on pages of tens of millions of operators (#419), Document Color Mode putting RGB greys on the black plate on request and converting pattern tiles (#421) and movable dialogs with Offset Path's Joins dropdown (#423) and numeric fields scrubbed by dragging their label (#400), stroke weight presets in the stroke unit (#426), the Appearance panel's Opacity popup (#430), type on a path brackets, flip and Type on a Path Options that keep the type in place (#429), Layers rows dragged with a ghost and dropped on the trash or New Layer (#435), tool flyouts opening on a right or corner press (#436), tool flyouts torn off into floating toolbars (#437), the Shape Builder's erase mode deleting edges too (#439), installed fonts registered outside the font folders and fonts installed while the app runs listed in the font menus (#443), alike circular corners on rectangles that aren't square (#442), tool cursors as OS cursors so the pointer no longer trails over the canvas (#444), artboards copied and pasted with their art (#446), guides dragged out of the rulers snapping to the art's side midpoints and the artboards, artboard guides (#451), the toolbar's double arrow and Window › Toolbars › Double Column switching between one and two columns in any window height (#455), the Smart Guides display options and Snapping Tolerance (#394), Font Size and Leading combo boxes with preset lists in the Character and Properties panels and the Control bar (#458), screenshots pasted from the clipboard on macOS, Windows and the web (#457), the Properties panel's Fill and Stroke matching the Control bar's, Illustrator's Window menu panel keys (Shift+F7 for Align…) and Alt-wheel zoom whatever the wheel preference (Discord feedback), the point/area type widget (Discord feedback), groups in legacy Illustrator .ai files (Discord feedback), a rotating desktop log file (#465), image controls in the Control bar and Properties panel: Image Trace with its presets, Mask, Crop Image, Embed/Unembed, and an Image Trace object's preset, Expand and Release (Discord feedback), the Pen working as the Anchor Point tool with Alt held over a selected path's handles and anchors, and anchor buttons that convert, connect and cut paths at the selected anchors (Discord feedback), Japanese hanging punctuation (burasagari, #463), Escape leaving Presentation Mode with no screen mode saved across restarts, documents dropped on the desktop app opening as tabs of their own and a note that an `.ai` file's art off its artboards isn't in the part read (#472), Add/Delete Anchor Point tool icons drawn from the Pen tool's (#479), EPS import running more of PostScript Level 3 (patterns, Type 3 fonts, mesh shadings, masked images, VM and resource probes), and a preview that stands in saying why (Discord feedback, #466, #469, #474), chords with modifiers recorded in Edit › Keyboard Shortcuts (#487), Type Object Selection by Path Only (#394), Anti-aliased Artwork (#394), Show Pixel Grid (#394), pen and touch taps pressed and lifted within one frame clicking where they tapped and the Linux/Wayland pen-tablet workaround (#491), bounding-box resizes landing on the other objects' anchors and centres with labels, and the Rotate, Scale, Shear and Reflect tools snapping their drags (#482), Shift-drag marquees that toggle the objects or anchors they reach and a Lasso whose Alt subtraction keeps the rest of the selection (#483), the mouse wheel stepping the focused numeric field, the dialogs' and preferences' drag values made such fields (#485), Show The Home Screen When No Documents Are Open (#394), Numbers Without Units Are Points (#394), Auto-Collapse Iconic Panels (#394), the Contextual Task Bar moved by its handle and its More Options menu pinning and resetting its position, a designed macOS DMG window (#493), panels, panel groups and the Tools panel undocking into floating panels that move, stack and dock again (#495), the 0.5.0 startup crash on dual-GPU Linux desktops under Wayland fixed: the desktop's own GPU by default and a restart on the next GPU when one can't show the window (#502), path editing while drawing: Cmd/Ctrl with the Pen borrowing Direct Selection and drawing on afterwards, Pen+Alt reshaping segments, handles of a whole selected path dragging, and handle drags no longer re-gathering snap targets every move (#494), the Control bar's and Properties panel's Convert buttons for a path selected as a whole with Direct Selection, the Pen and the anchor tools (#504), the Pen closing a path dragged out of its first anchor every time, without flicker (#501), the Paste menu checking the system clipboard on a background thread on Linux so an X11 clipboard owner that never answers no longer freezes the window (#510), PDF/`.ai` import keeping a type object's outline stroke on the type, wrapped lines as area type, barcode digits in place and layers in the file's stacking order (#508), the Italian interface (#514), EPS images with several data sources read in turn (#498), `restore` undoing dictionary changes in EPS import (part of #505), the macOS menu bar laid out as a Mac app's (the VectorCraft menu with Settings, Language and Appearance, the system's Hide, Services and Window items; owner's request), Object › Image Trace › Make tracing with the Default preset instead of asking for a preset's name (#543), the rulers' unit menu (#528), Live Corners on stars, polygons and pen paths (#511), the drawing tools snapping to Smart Guides as the Selection tool does, with Construction Guides (#506), the in-window menus' Select All, Cut, Copy and Paste acting on the text field they were opened from (#516), Windows rendering through DX12 before Vulkan (#545), Image Trace tracing colour layers in parallel and refusing traces too large for memory, with the canvas outlining huge selections by their bounds (#525), SVGs of chosen artboards holding only the art over each artboard (#550), the font menu scrolling only its list, under a search field and filters that stay put (#555), a click on an object of a selection making it the key object that Align aligns to and Distribute Spacing spaces from, drawn with a thicker outline (#541), Shape Builder merges taken from the planar map itself, so merged regions leave no inner edge, hairline gap or spur in their outline (#569), `.ai` written by the exports and the CLI (`--export`, `convert`) as Save As writes it (#526), SVG round trips keeping hidden objects and `data-*` attributes (#522), the gradient stop popover staying open after the click that opens it from the Gradient panel (#577), standard ligatures kept under small tracking and dropped only past about −8% / +22% of a word space or when the character asks for them (#583), the Color panel keeping its height as warnings come and go so a drag on its spectrum no longer flickers near white (#578), fonts that font services such as Adobe Fonts load on Windows, listed through DirectWrite (#579), `.ai` files writing their layers and sublayers as PDF layers, hidden ones with their art, and PDF layers nested in layers importing as sublayers (#372), file dialogs on Linux shown off the UI thread so the compositor no longer finds the window not responding, and parented to the window on Linux and Windows (#592), anchors and handle ends picked from 2 px past their drawn size before the segments through them (#593), an image copied in a browser pasting as the picture, not its address (#597), the Free Transform widget with Constrain, Free Transform, Perspective Distort and Free Distort (#598), touch gestures: a two-finger tap undoes and a three-finger tap redoes (#585), the font menus' live preview staying on the text instead of flickering on and off every frame (#563), Edit Artboards showing the active artboard in the Properties panel with New Artboard, Delete Artboard and Exit (#530), the same DirectWrite fonts in `vectorcraft-cli` and its MCP server (#579), SVG layers keeping their names when wrapped and sublayers round-tripping through SVG (#372), a Layers panel that lays out only the rows in view and keeps a document's open rows in its file (#638), a panel dropped on the dock lights up the icon column it goes back to and pops out of its icon (#649), Image Trace's View modes and an Advanced section that stays as it was left (part of #641), Image Trace's Palette: Limited, Full Tone, Automatic and Document Library (part of #641), Image Trace's Create Strokes: line art traced as stroked centre lines (part of #641), a dual-GPU Mac falling back to its other GPU when one fails to start (#651), two fingers dragged on a touch screen panning the canvas (part of #449), the Home screen's Recent Files and a double-clicked New Document preset creating the document (part of #663), quitting no longer crashing on Macs with a Touch Bar (#661), Animated Zoom, Large Tabs, Scale Cursor Proportional to UI and anti-aliased bitmaps in Pixel Preview acting (part of #394), Smart Guides › Spacing Guides (part of #394), Edit Artboards' Properties choosing an artboard's size preset and flipping it between portrait and landscape (#671), Preferences › Type › Additional Fonts Folder loading the fonts of a folder you choose (#683), Canvas Color's light, medium and dark grey (part of #663), a document tab's close box after its title on Windows and Linux, before it on macOS (part of #673), Rearrange All Artboards' layouts (a grid by row or by column, one row, one column) and right-to-left order, one click away in the Properties and Artboards panels (#681), User Interface › Show Tool Group Labels and Cmd+, opening Settings on the Mac (part of #663), the Windows taskbar and Alt+Tab showing VectorCraft's icon, a click with a selection tool making its artboard the active one, and Paste in Place, in Front and in Back pasting onto the active artboard (#693), Photoshop-style raster effects on a pixel-filter pipeline: Effect › Blur › Radial Blur and Smart Blur, Effect › Sharpen › Unsharp Mask (part of gap 2), the Properties panel's number fields all one width (#696), the rotate cursor drawn as a curved double arrow (#701), the Templates folder in the desktop's own documents folder, made when missing (#703), PDF and .ai glyphs whose ToUnicode names no character (U+FFFD) taking their character from the embedded font or keeping their outlines, with a warning (#708), Illustrator EPS and `.ai` files opening from their editing data with their colours, gradients, transparency, images, names and every artboard (part of #637), `.ai` files saved without PDF compatibility opening from their editing data (part of #637), guides left out of raster exports and Fit to Artwork Bounds, hidden art left out of Fit to Artwork Bounds, Illustrator files compared with their page object by object, and `editingData: false` opening only what the page prints (#735), art reaching past a PDF's page clipped to its crop box (#675), Package collecting what placed documents link to (#777), area type, threaded type and type on a path made whole from Illustrator files' text documents (part of #637), the missing-fonts dialog with Find Fonts and a folder search (#792), Effect › Stylize › Glowing Edges (#765), Offset Path's Joins and Zig Zag's Points as dropdowns and Relative/Absolute as radio buttons in the effect dialogs (#828), the control channel's `app.quit` reporting a pending save prompt (#830), blurred type that stays put while the view moves (#755), Windows starting on Direct3D 12 and loading no Vulkan driver unless asked (#806), the Artboard tool naming its artboard once (#824), Save for Web taking typed pixel sizes (#839), rulers ticked over their whole length in a rotated view (#826), the gradient stop popover opening beside the art (#862) and recent colours recolouring the selected stop (#835), every align button following Align To (#789), the Properties panel's Paragraph section with all seven alignments and Hyphenate (#775), isolation mode dimming and locking the art around the isolated group (#833), color books (`.acb`) opening as swatch libraries (#831), files that can't be opened reported in a dialog (#861), `run` and `command_batch` steps using earlier steps' results (#785), ruler guides pulling drawn points with Smart Guides on and Smart Guides labelling centres and anchors on hover (#812), shadows and glows keeping their blend modes in PDF (#827) and `.ai` import skipping layer checks that can't succeed (#758), the Curvature tool editing any selected path (#798), raster exports composited in floating point so translucent edges over opaque art stay opaque (#787), Calligraphic and Bristle Brush Options with pen-pressure Calligraphic brushes (part of #852), a polygon's Polygon Properties in the Properties and Transform panels, Flare Tool Options that last and more tools opening their options on a double-click (part of #812), MCP file access confined with --automation-read-root / --automation-write-root (#832), the Transform effect's dialog with the reference point, Random, sliders and an angle dial (part of #885), artboard X/Y edits in the Properties and Transform panels and Artboard Options taking their art along with Move Artwork with Artboard (#922), Effect › Pixelate's Color Halftone, Crystallize, Mezzotint and Pointillize (part of gap 2), linked files changed while the app was in the background following Update Links when its window comes back to the front (#925), the Tabs panel's Leader and Align On fields keeping what is typed until Enter (#924), the Properties panel's Gradient section with the gradient's type and a freeform gradient's Draw (Points or Lines) while the Gradient tool is active (#921), PSD and PSB files opened and placed, linked or embedded, as their merged image (#918), Direct Selection and Group Selection marquees selecting the type, images and other objects without anchors that they touch (#927), PDF and `.ai` glyphs that no mapping names found by their outline in the installed font, so their text stays one type object (#811), Effect › Video's De-Interlace and NTSC Colors (part of gap 2), the Libraries panel's search, groups and library export/import (#926), Live Corner widgets on every selected path, dragged together (#938), Scatter, Art and Pattern Brush Options with Colorization and Scatter values on pen pressure (part of gap 5), artboard names fitting their artboard's width on screen when zoomed out (#949), Effect › Texture's Craquelure, Grain, Mosaic Tiles, Patchwork, Stained Glass and Texturizer (part of gap 2), Inner Glow's Center/Edge Source as a dropdown (#962), the macOS window buttons centred on the app bar (#968), a compact 32-point app bar starting at File (File › Exit quits) with a search icon, and User Interface › System Title Bar on Windows and Linux (#969), the German interface (#934), Graph Type's value axis on the left, right or both sides with separate scales (#971), Graph Type's tick marks per axis, category tick marks and value-axis label prefixes and suffixes (#974), Effect › Distort's Diffuse Glow, Glass and Ocean Ripple (part of gap 2), Variables (data merge): text and visibility variables, data sets and the Variables panel (#761); see [Honest assessment](#honest-assessment-2026-10-05))._+ VectorCraft is a clean-room, open-source, pure-Rust reimplementation of the Adobe Illustrator workflow. It runs+ on macOS, Windows, Linux, FreeBSD and the web (WASM), and agents can drive all of it over MCP, the CLI and a JSON+ control channel. This page is the summary; the evidence is in [`docs/target-app-parity.md`](docs/target-app-parity.md)+ and the work list in [`docs/gaps.md`](docs/gaps.md).- ## Where we are+ **Why alpha:** the core workflows exist end to end (drawing and path editing, Pathfinder, paint and appearance,+ type, SVG/PDF/EPS, print, export) and feature depth is ~75%, but a professional can't yet switch: Illustrator's+ own `.ai` files open with a wrong layer structure in real cases and can't be saved back with Illustrator's+ editing data, the interaction details have never been checked side by side, and some machines fail to start the+ app. Beta needs those closed (the beta list in [gaps.md](docs/gaps.md)). It passes the core-workflow+ gate: all six core workflows (path drawing and editing, paint and style, type, layers/artboards/export, print+ production, file exchange) work end to end on macOS with save and reopen, and only the last is partial, without+ blocking it ([Alpha gate](docs/roadmap.md#alpha-gate)).- | Dimension | Status |- |---|---|- | Infrastructure (engine, command registry, history, render, formats, MCP, web, packaging, tests) | **~90%** |- | Look & feel vs Illustrator 2026 default workspace (measured) | **~75–80%** |- | Feature surface vs full Illustrator (weighted, see below) | **~75%** on the rubric · **69–75%** honest range (self-graded, see [Honest assessment](#honest-assessment-2026-10-05)) |- | Parity including interaction fidelity and hardening ("a power user can't tell the difference, but faster") | **~40–55%** |- | Time to **feature parity** (every menu item, tool, panel, effect and dialog functional) | **~210–330 h** one agent · **~55–95 h** with 4–6 agents |- | Time to **full parity** (feature parity + interaction-fidelity pass + hardening) | **~320–500 h** one agent · **~80–145 h** with 4–6 agents |-- ## Honest assessment (2026-10-05)-- **In one line:** about two-thirds to three-quarters of Illustrator's features exist and work, and for everyday- vector illustration (drawing, paths, paint and appearance, SVG/PDF/print) VectorCraft is close to usable. Measured- against "a power user can't tell the difference", it is closer to 40–55%. What stands between here and "anyone can- switch" is a handful of large subsystems plus a fidelity pass, not a long tail of small fixes.-- **How much to trust the numbers:** area scores are graded by the agents that built the features, from behaviour docs- (`plan/illustrator/`) and tests, not by side-by-side use of Illustrator. Treat them as upper bounds. Look & feel is- the only dimension measured against the reference app. Performance budgets haven't been re-run on an idle machine- since 2026-10-01.+ ## Headline numbers- ### By dimension-- | Dimension | Estimate | Evidence and what's missing |+ | | Value | Kind ||---|---|---|- | **Breadth:** menus, tools and panels exist | ~90% | 13 menu items still stubbed; every tool implemented except Touch Type; 51 panel modules |- | **Depth:** each feature behaves like Illustrator | ~69–75% | Strong: paint, appearance and colour (M3), Pathfinder and booleans, selection, drawing, files (M4). Weak: advanced type (~45%; inline symbols in text are beyond parity and don't raise it), brushes and symbols (in progress), raster effects (~20%) |- | **Large missing subsystems** | 0–20% | 3D & Materials (0%), Photoshop-style raster effects and the Effect Gallery (~19 of ~56 filters), SVG Filters, CJK composition (vertical type with kinsoku, tate-chu-yoko and the font's vertical metrics; ruby, mojikumi and proportional vertical metrics open), scripting |- | **Interaction fidelity:** modifiers, cursors, small behaviours | ~30–40% | The dedicated pass hasn't started, and there has been no side-by-side session with Illustrator yet. A power user notices this first |- | **Look & feel** | ~75–80% | Measured against Illustrator 2026 screenshots (2026-10-02); the panels added since haven't been re-measured |- | **File interop** | ~85% | SVG/SVGZ, PDF and PDF-compatible `.ai`, EPS, DXF, EMF/WMF, raster formats, PSD export and PSD/PSB placement (merged image), Place and Links, Package, Print, clipboard flavours. Affinity documents (Affinity 1–3) open natively as editable art, checked against 51 pinned public files (33 current `.af`), with selected saved-thumbnail comparisons and every-board native/SVG/PDF/PSD checks for current files; Affinity export is missing and effects, adjustments and brushes don't import. Affinity isn't an Illustrator feature, so this doesn't raise the parity score. The editing copy inside an Illustrator EPS or `.ai` is read for its structure: layers, groups, names, hidden objects and type, colours, gradients, transparency, images and every artboard (see Out of scope for what it doesn't read yet); DWG has no open spec |- | **Bundled content:** brush, symbol, style and swatch libraries | ~30% | Ours are original and generated in code, and far fewer than Illustrator ships; brush and symbol libraries are still missing |- | **Performance** | unverified | Multithreaded, off-thread rendering and caches are in place. The last budget run (2026-10-01, loaded machine) measured 290 ms for a 50k-path fit against a 16 ms budget. Re-run `vectorcraft-cli perf` on an idle machine |- | **Robustness** | good, new | ~2,840 tests, property tests, no panics in shipped code (lints, the `guard` safety net, import fuzzing), Data Recovery. Missing: a corpus of real-world files, Windows/Linux/browser QA |- | **Platforms and 1.0 polish** | ~60% | The macOS app and the web build work, and Finder opens every readable format with the macOS app (#295, #354); on macOS the menus are in the system menu bar, laid out as a Mac app's, with the in-window menus as a fallback (`--in-window-menus`; verified on Windows and by cross-compilation, not yet by hand on a Mac); hybrid-graphics laptops render on the power-saving GPU by default on Windows and macOS (#306), and Windows starts on Direct3D 12, falling back to OpenGL, and loads no Vulkan driver unless `WGPU_BACKEND` asks for it (#545: Vulkan flickered black on an Intel GPU, DX12 and OpenGL didn't; #806: a faulty Vulkan driver crashed the app before its window appeared; verified by unit tests and the reporter's runs with `WGPU_BACKEND`), and Linux on the GPU the desktop runs on, since a Wayland compositor may refuse frames from the other one; a window that fails on its GPU while starting up starts again on the next one instead of crashing (#502; the dual-GPU Wayland case is verified by unit tests and cross-compilation, not on such hardware); web drops land in the document they were dropped on (#359); desktop drops carry no pointer position (winit 0.30), so a dropped document opens as a tab of its own and a picture or text is placed in the middle of the view, while the web places anything dropped on the canvas and opens what is dropped off it, as Illustrator does (#472); a web page that loses its WebGPU device or WebGL context restarts its graphics with the same documents (#369); on Linux/Wayland the clipboard reads the compositor's own (data-control) and copied image files paste, but files can't be dropped on the window under Wayland until eframe moves to winit 0.31 (#398; the Wayland side is verified by compilation only); on Linux the Paste menu checks the system clipboard on a background thread, so a clipboard owner that never answers no longer freezes the window, while Windows and macOS keep their quick in-line check (#510; the X11 hang verified by the contributor, here by headless tests); on KDE Plasma 6.3+ under Wayland, pens and pen displays reach the app only under XWayland (`WAYLAND_DISPLAY=`) or with KWin's `KWIN_WAYLAND_EMULATE_TABLET=1`, since winit 0.30 has no Wayland tablet input (#491, not verified on hardware); Windows/Linux packaging and accessibility are pending; an experimental, unsupported Windows 7 x64 OpenGL build exists (community-contributed, not verified by maintainers) |- | **Agent automation** | beyond Illustrator | Every command, gesture and dialog is drivable over MCP, the CLI and the control channel; what an agent reads and writes on disk can be confined to chosen folders (`--automation-read-root` / `--automation-write-root`, as in PhotoCraft, #832) |- | **Scrubby numeric fields** | beyond Illustrator | As in Photoshop, dragging a numeric field's label (`W:`, `Opacity:`, the Character panel's icons) left or right steps its value live; one undo step per drag, Escape cancels (#400) |-- ### Where we're lacking (in priority order)-- Ordered by how much each gap blocks someone from switching. Sizes are one-agent hours from the parity table.-- 1. **Interaction fidelity:** go tool by tool and panel by panel against `plan/illustrator/05-tools.md`,- `06-panels.md` and `09-shortcuts.md`, covering modifier keys, cursors, the Properties panel per context and- isolation mode. The Shaper’s rough-square recognition and shape orientation steps are corrected; Shaper Groups now retain editable originals for region merges/punches and separate fill/stroke edits; their construction-mode widget and gesture refinements remain. 60–90 h.- 2. **Photoshop-style raster effects and the Effect Gallery:** about 36 filters (Artistic, Brush Strokes, Sketch,- Stylize) and the Effect Gallery. The pixel-filter pipeline is in place- (`vectorcraft_effects::pixel`: the object rendered offscreen, filtered in stack order with Gaussian Blur and- Feather, cached while panning, images in PDF/SVG/Expand Appearance) with Blur › Radial Blur and Smart Blur- (Normal mode only), Distort › Diffuse Glow, Glass (its Blocks, Canvas, Frosted and Tiny Lens surfaces made in- code; Load Texture is missing) and Ocean Ripple, Pixelate › Color Halftone, Crystallize, Mezzotint and Pointillize, Sharpen › Unsharp Mask,- Stylize › Glowing Edges, Texture › Craquelure, Grain, Mosaic Tiles, Patchwork, Stained Glass and Texturizer (its- Brick, Burlap, Canvas and Sandstone surfaces made in code; Load Texture is missing) and Video › De-Interlace and- NTSC Colors; each new filter is now one function, a catalogue row, menu and translations. Parallelizes- well across agents. 19–31 h.- 3. **3D and Materials:** Extrude & Bevel, Revolve, Inflate and Rotate with lighting and materials, using a software- renderer in its own crate (layering allows it below L6), with output in SVG/PDF as rasters or projected vectors.- The largest single gap. 50–80 h.- 4. **Advanced type:** CJK composition for vertical type (ruby, mojikumi, proportional vertical metrics, manual- tate-chu-yoko), Optical Margin Alignment, the hyphenation and justification options (the Every-line/Single-line- composer choice is done), tab leaders, a- spell-check dictionary (open licence), Touch Type and Snap to Glyph. Vertical point, area and path type have- initial support. 34–47 h across type core and advanced.- 5. **Brushes, symbols and libraries:** brush options depth (Brush Options exist for every brush type, Calligraphic- and Scatter with pen pressure; still missing are the Art brush's Overlap, auto-generated Pattern brush corners,- new tile art picked in Pattern Brush Options and the Key Color eyedropper); original brush, symbol and- graphic-style libraries generated in code (never Adobe's); dynamic symbols; Start Global Edit; brushes driven by- pen tilt, bearing and barrel rotation (6D art pens, #372), which needs tablet input beyond pressure on every- platform. 17–28 h.- 6. **Automation:** a scripting surface over the command registry, batch, and the rest of- Variables (data merge): image and graph variable kinds, dataset import/export. 6–10 h.- 7. **Views and windows:** multiple windows and arrange, Consolidate All Windows, video- rulers. 15–25 h.- 8. **Hardening at scale:** a corpus of real-world SVG/PDF/EPS files, Affinity files from more versions and platforms- (51 pinned files now include 28 original Affinity 3.2.3 feature probes; large interacting documents,- complex typography and independently paired `.af`/PSD renders reopened in Affinity remain missing), idle-machine perf budgets, Windows, Linux and- browser QA, pen tablets on Wayland and pen pressure beyond Windows (winit 0.31's tablet input, #491), accessibility, packaging. 50–80 h.-- ### Where we're going-- - **Next:** start the interaction-fidelity pass (1) in parallel with the raster-effects package (2). Both are broad,- so they split well across agents, and they move the "can't tell the difference" number most.- - **Then:** 3D (3) and advanced type (4), each a focused milestone with its own plan in `plan/` before coding.- - **Alongside:** keep closing the stubbed menu items. Run `vectorcraft-cli perf` on an idle machine, and fix any- budget it misses before 1.0.- - **1.0:** feature parity plus the fidelity pass, hardening (8) and packaging for all three desktop OSes and the web.-- **For agents:** pick work from the list above (or the milestone rows below), and write a task plan before coding.- When a task lands, update this section, the parity table and "Shipped so far" in the same PR. Keep the scores honest:- grade by behaviour against `plan/illustrator/`, not by whether a menu item exists.-- ## Shipped so far-- - **Architecture:** 19+ crates with enforced layering (`cargo xtask layers`). Every action is a command (~400 engine + ~50 UI). Undo is unlimited via structural sharing. `command.batch` runs several commands as one transaction.- - **Automation:**- - Actions panel (record/playback, persisted), generic parameter dialogs for every "…" command.- - Variables (data merge): text and visibility variables bound to objects (an object may carry several), dataset rows applied in one undo step (`variable.*`, `dataset.*`) from a Variables panel and Window › Variables, with dialogs to define, bind and edit, Make Text/Visibility Dynamic, Capture/Update Data Set, and a row in italics when an edit leaves the art not matching it; bindings let go of deleted art and locked art is left alone; every command, like the rest, is drivable over MCP and the CLI.- - JSON-lines control channel with real egui pointer and keyboard injection.- - MCP server with 25 tools (drawing, text, effects, Pathfinder, transforms, graphs, text wrap, export, screenshots, any command), attached to the running app or headless. Tool descriptions and replies agree with the engine: format lists come from its format table, `save_file` says it keeps the document's own format, `inspect_document` reports the paint type's characters show, and selection exports report the encoder's warnings. `--automation-read-root` / `--automation-write-root` (on `vectorcraft-cli mcp` and on `vectorcraft --control`) confine the files commands read and write to chosen folders, links followed, with the flags PhotoCraft takes (#832).- - MCP protocol: five prompts (`prompts/list` / `prompts/get`: poster, icon set, recolour, trace-and-style, export set), `completion/complete` for prompt arguments and template variables read from the live catalogues (formats, effect ids, command ids, trace presets, swatch and object ids), four resource templates (`vectorcraft://object/{id}`, `//command/{id}`, `//effect/{id}`, `//swatch/{name}`) so an agent reads one thing instead of the whole document, and `logging/setLevel` with `notifications/message`. `window.panel` ids are case-insensitive (display labels work too), `vectorcraft://object/{id}` reads through `document.node {summary: true}` (the same reply bytes from one lookup instead of summarizing the whole document: a leaf read on a 2,000-object document drops from ~20 ms to ~0.06 ms), large containers slice with `document.node {depth?, childLimit?}` (truncated levels report `childCount`), `document.inspect` and the `inspect_document` tool slice the same way so a depth-0 read is the layer skeleton (~9.7 KB instead of ~2 MB on a 2,000-object document), `document.find` locates nodes by name/kind/text with ancestor paths, and the CLI sweeps the protocol surface over stdio against the compiled binary. `docs/mcp.md` has a Protocol section covering the capability table and what is deliberately absent (subscriptions, progress, cancellation, sampling, elicitation, Streamable HTTP — all of which need the transport to interleave reads).- - Headless CLI (`vectorcraft-cli run`, `convert`, `info`, `bench`, `perf`, `mcp`). A `run` step, like a `command_batch` step over MCP, can use an earlier step's result (`"$1.id"`, #785).- - Actions panel that records and plays back commands.- - **UI:** Illustrator 2026 layout restyled to measured values:- - Medium Dark theme, categorized and Advanced toolbars (a tool group's flyout opens on a right press, a long press or a press on its corner triangle), 35 pt document tabs, 33 pt panel tabs.- - Hint bar, contextual task bar, 19 dock panels with ≡ menus.- - The contextual task bar's handle drags it anywhere on the canvas (kept whole on it as the window resizes); unpinned it keeps that offset as it follows the selection, and its More Options menu hides it, pins its position across selection changes (`window.taskBar.pin`), resets it under the selection (`window.taskBar.reset`) and shows the Properties panel. As in Illustrator the position isn't kept across launches. Not done: the bar's tool-specific variants (only the selection tools show it).- - Tool flyouts tear off: dragging or clicking the tear-off bar on a flyout's right side (or releasing the long press over it) floats its group as a strip of tool buttons, moved by the same bar and put back in the toolbar by the × at its top (`window.floatTools`). While a group floats, the presses that would open its flyout raise the strip instead. Floating strips are kept with the preferences and in user workspaces. Not done: turning a strip vertical, docking it.- - Panels undock (#495): ordinary tabs and panel icons can be dragged into floating groups, reordered, merged into another dock group, or placed beside it as a split. Floating groups stay inside the application window and can be resized; Dock Panel restores a panel’s saved placement. The default dock keeps its icon rail, group grip and Tools behavior, and custom layouts keep access to panels through the rail and Window menu. Grouping, split sizes, floating geometry and return locations persist with workspaces and preferences; UI gestures and control/MCP commands use the same docking actions. The Tools panel still floats by its title bar and docks on the left edge. Not done: panels in separate OS windows and collapsing a floating group to icons.- - The dock's double arrow collapses Properties, Layers and Libraries to icons at the top of the icon column, popping out like the other icon panels, and expands them again (`window.collapseDock`, kept with the preferences and in saved workspaces). The icon column's own arrow (expanding the icon panels into a full column) is not done.- - Localised UI: menus (in-window and native), panels, dialogs, toolbar and Preferences read from per-language catalogs (`crates/ui-egui/src/i18n`, see `docs/development.md`); Traditional Chinese (Taiwan), Simplified Chinese (mainland), Japanese, German, Spanish, French, Italian, Russian and Ukrainian ship complete, and Czech and Brazilian Portuguese cover every menu label (and more), with system-locale detection on macOS, Windows, Linux and the web (the browser's languages, or `?lang=`), a Language preference and, on macOS, a VectorCraft ▸ Language menu. Names are never translated (fonts and their styles, layers, artboards, saved presets, user libraries, custom workspaces, recent files, plug-ins).- - Native macOS menu bar, vector tool cursors, a ⌘K command palette, middle-button panning with any tool. Native menus explicitly end tracking on command selection, outside window presses and Escape; menu updates wait until tracking ends, and a dismissing press never starts a canvas gesture (M14.8).- - The macOS menu bar is built from the in-window menus (one model, `native_menu`) and laid out as a Mac app's: the VectorCraft menu holds About, Settings ▸ (each Preferences page, General… ⌘K), Language ▸, Appearance ▸ (UI brightness), Services, Hide VectorCraft ⌃⌘H (⌘H stays Hide Edges), Hide Others, Show All and Quit; Window gains Minimize ⌃⌘M, Zoom and Bring All to Front, and Help the system's search field. Its key equivalents go back to egui as key presses, so user shortcuts, focused text fields and the Type tool's input method behave as in the window, and nothing fires twice; enabled, check marks and labels update in place. `--in-window-menus` or `VECTORCRAFT_IN_WINDOW_MENUS=1` keeps the menus in the window; `ui.inspect` reports `nativeMenuBar`.- - macOS: Finder opens every format File › Open reads with VectorCraft (double-click, Open With, a drop on the Dock icon, `open -a`), at launch or while it runs; the release and `cargo xtask bundle` apps share one `Info.plist` that declares those document types, owning only VectorCraft's own formats. The DMG opens on a designed Finder window, VectorCraft.app beside the `Applications` link over a background with the app icon (#493).- - A canvas context menu: right-click selects the object under the pointer and lists what applies to the selection (Undo/Redo, clipboard, group, isolation, join, Remove Anchor Points when anchors are selected, masks, compound paths, guides, Transform, Arrange, Select, Export Selection), or the view commands on empty canvas.- - Save / Don't Save / Cancel before closing or quitting with unsaved documents (tabs, Close, Close All, Quit, window close).- - Four brightness themes, persistent preferences.- - Preferences that act (#394, in part): Show Tool Tips, Double Click To Isolate, Zoom with Mouse Wheel (the wheel zooms about the pointer, Shift-wheel scrolls up and down, Cmd/Ctrl-wheel sideways; Alt/Option-wheel and a trackpad pinch zoom about the pointer either way), Use Precise Cursors; Selection & Anchor Display › Tolerance (objects, anchors and handles), Object Selection by Path Only, Command Click to Select Objects Behind (cycling down the stack), Zoom to Selection, anchor Size, Highlight anchors on mouse over; Type › Number of Recent Fonts (up to 15); Guides & Grid › guide and grid Color and Style (lines or dots) and Grids In Back. Then Snap to Point (its distance, for moves, drawn points and reference points), Move Locked and Hidden Artwork with Artboard, Enable Rubber Band for the Pen and Curvature tools, Handles style, Show handles when multiple anchors are selected, Hide Corner Widget for angles greater than; General › Transform Pattern Tiles (the transforms' and dialogs' Transform Patterns) and Select Same Tint %; Type › Size/Leading, Tracking and Baseline Shift increments (`type.step`, Cmd+Shift+. and Cmd+Shift+, for the size, the Type tool's Alt+arrows), Enable Missing Glyph Protection and Fill New Type Objects With Placeholder Text. Then Smart Guides › Color, Alignment Guides, Anchor/Path Labels, Measurement Labels, Transform Tools, Object Highlighting (with Smart Guides on) and Snapping Tolerance (4 px by default, for every smart guide snap), then Construction Guides and their Angles (#506: a drawn point near a line at one of those angles through the point it leaves from lands on it). Then Type › Type Object Selection by Path Only (type is picked on the baseline of any of its lines, area type's frame or the path of type on a path, no longer anywhere in its bounds; the Type tools and the Eyedropper still take a click among the characters). Then General › Anti-aliased Artwork (off, the canvas draws the art with hard edges). Then Guides & Grid › Show Pixel Grid (Above 600% Zoom), a line at every document pixel over the art in Pixel Preview, turning with a rotated view as the document grid now does too. Then General › Show The Home Screen When No Documents Are Open (off, closing the last document leaves an empty window; the Home button still opens the screen). Then Units › Numbers Without Units Are Points (on by default: a number typed with no unit into a field in picas is read in points, a typed unit still wins; dimmed unless a unit is Picas). Then User Interface › Auto-Collapse Iconic Panels (off by default: on, a click away from a panel popped out of the icon column puts it away). Then Performance › Animated Zoom (on, with GPU Performance, which it needs and which dims it when off: the Zoom tool dragged sideways zooms about the press, right in and left out, and held still zooms on, Alt out; off, a drag zooms to the area dragged across, now drawn as a marquee), User Interface › Large Tabs (taller document tabs) and Scale Cursor Proportional to UI (off, the tool cursors keep their size whatever the UI Scaling), and File Handling › Display Bitmaps as Anti-aliased Images in Pixel Preview (off by default: Pixel Preview draws images with each pixel taking its nearest image pixel). Type › Auto Size New Area Type works too (new area type gets Auto Size). They reach agents too (`prefs.set`, then `pointer_gesture` or `press_key`; `ui.wheel` on the control channel). Then Smart Guides › Spacing Guides (moves space the selection evenly with its row or column, see Drawing aids). Then Hyphenation › Exceptions (comma-separated words that never break, or break only at their hyphens; `prefs.set` and restore push them into the hyphenator, #394). Then Type › Show Font Names in English (off, font menus label a family by its native-language name when the font has one; documents still use the English family, #394). Then General › Display Print Size at 100% Zoom (off by default: View › Actual Size is one document point per screen point; on, one document inch fills 96 screen points, an inch at the reference density display scaling is set against; `view.actualSize` / `prefs.set`, #394). About 17 stored options still do nothing yet (the rest of #394: Highlight Alternate Glyphs, Identify Objects By, East Asian Type units, Open Documents As Tabs, Real-time Drawing and Editing, GPU Performance beyond Animated Zoom, hyphenation language, scratch disks, the legacy clipboard, Appearance of Black, Touch Workspace).- - Dialogs move by dragging their heading (the band down from the top edge, as a title bar), stay on screen and keep where they were moved for the session; the form dialogs' choices are dropdowns (Offset Path's Joins, Average's and Shear's and Reflect's axis), and Offset Path lists Offset, Joins, Miter Limit and previews (#423).- - Dialogs open with their first field focused and its value selected: type a value and press Enter (Move, Rotate, Scale…). Number fields in panels, the Control bar and dialogs (preferences too) step with Up/Down, or with the mouse wheel over the focused field (#485: a notch a step; the panel under it then stays put, and an unfocused field leaves the wheel to scrolling) (Shift: ten, Ctrl/Cmd: a tenth of their unit), applied at once.- - Scrubby labels (#400, beyond Illustrator, as in Photoshop): dragging a numeric field's label left or right (the ↔ cursor shows over it) steps the value one unit every 2 points (Shift: ten, Ctrl/Cmd: a tenth; counts stay whole), in the field's unit and within its limits, applied live as the art follows; the whole drag is one undo step and Escape puts the value back. A click on the label focuses the field; the text box itself never scrubs, and a field with no label doesn't. Text labels before a field (Transform, Properties, Control bar, Stroke, Transparency, form rows in dialogs) and the Character and Paragraph panels' icons act as labels. Preferences › General › Scrub Numeric Fields by Dragging (on by default) turns it off.- - The Control bar's underlined Transform link opens the Transform panel in a popover under it (reference point, X/Y/W/H, Rotate and Shear with their icons and angle presets, flips, shape properties, Scale Corners and Scale Strokes & Effects), as its Stroke link does the Stroke panel; X/Y/W/H also show inline while the bar has room. The reference point locator is nine squares, the outer eight joined around the box.- - Tab shows and hides the panels (in the Type tool it types a tab) without moving the keyboard focus onto a field, so the next shortcut or letter still works; in dialogs and panel fields it moves between fields.- - Cmd/Ctrl+A follows the keyboard: in a panel, dialog or search field it selects the field's text, while the Type tool edits it selects all of that text (also `select.all` over MCP), and only otherwise every object. On macOS the menu bar's Select All, Cut, Copy and Paste (keys or clicks) act on a focused field too, and elsewhere the in-window menus' do: the field that had the keyboard when the menu opened gets them, with its selection, and the keyboard back (#516). Not yet: Select All across threaded frames (one frame's text is selected).- - On Windows and Linux the app bar is the window's title bar (its own minimize, maximize and close buttons, drag to move, edges to resize), with the dragon app icon as the brand mark; dialogs and menus size to their content. As on a native menu bar, once one menu is open, moving the pointer onto another title opens that one.- - **Tools:**- - **Shaper:** uneven squares and rectangles become live rectangles even when drawing begins mid-edge. Recognition uses uniformly spaced samples and closed-loop corners, fits rectangle edges/angles rather than requiring a nearly perfect bounding-box fill, and includes the pointer-release position. Rectangles/squares and ellipses snap to 45° steps, hexagons to 90°, and triangles point up or down; lines keep their free angle even with Shift. Shaper Groups retain the live originals, merge regions with the gesture-origin fill, punch fills independently from strokes, remove boundaries on exiting scribbles and trim protruding stroke pieces. Source moves/resizes re-evaluate the result in the same undo step; double-click enters construction editing. Native save/reopen, face recoloring, Release and Expand are covered. The construction-mode widget and finer gesture heuristics remain.- - **Selection:** Selection, Direct/Group Selection, Magic Wand, Lasso. A Shift-drag marquee toggles what it reaches: objects with the Selection tool, anchors with Direct and Group Selection (#483); the Lasso adds with Shift and subtracts with Alt. Dragging a path segment with Direct Selection bends it when it's curved (its anchors stay) and moves its two anchors when it's straight, one undo step; the fill, Shift or Alt still pick the whole path (Alt-drag copies it).- Agent selection commands validate every object id before changing the selection and report the resulting count and ids (#784).- Clear deletes individual selected compound-path members without deleting their siblings, and explicit object ids work without a selection; Cut still removes the same objects it copies (#786).- - **Saved selections:** Select ▸ Save Selection… asks for a name and keeps the selection in the document (saved with the file, undoable, up to 25); each one is listed at the bottom of the Select menu and a click selects its objects again; Edit Selection… lists them to rename or delete, applied together on OK. A file's saved selections are capped and checked against its objects when it opens. Not yet: Update Selection and the Layers panel's saved-selection menu.- - **Drawing:** Pen, Curvature, anchor tools, Pencil, Paintbrush, Blob Brush, Smooth, Path Eraser, Join. Direction handles dragged with Direct Selection or the Anchor Point tool snap to smart guides, and Shift keeps them at 45° steps from their anchor. The Pen continues any open path from the end clicked, and while drawing, a click on an end of another open path joins the two into one (#776). The Curvature tool edits any selected path, whatever drew it, keeping its shape except where edited (#798): a click on a point makes it current and a drag moves it, re-curving only its two segments; Alt-click or double-click toggles it smooth or corner and Delete removes it; a click on a segment adds a point without changing the shape; with an end of an open path current, clicks go on from it and its other end closes it (`path.curvatureEdit`). Every point a drawing tool places snaps to Smart Guides through one snapper (#506): the Pen's and Curvature tool's anchors, the Pencil's ends, the shape tools' start and dragged corner or radius (Rectangle, Rounded Rectangle, Ellipse, Polygon, Star, Line Segment, Arc, Spiral, the grids), the Type tool's click and frame, a new artboard's corners.- - **Shapes:** all shape tools (including Flare) and the line, arc, spiral and grid tools. Space held while dragging out a shape, line, arc, spiral or grid moves it at its current size. While a grid is dragged out, Up/Down change its rows (concentric dividers) and Left/Right its columns (radial dividers). An ellipse's Pie Start and End Angle and Invert Pie (Transform and Properties panels' Ellipse Properties, `object.setLiveShape {pieStart, pieEnd, invertPie}`) cut it as a pie (#812; the on-canvas pie widget is still to come). A live polygon's Polygon Properties there: side count, angle, corner type and radius, radius, side length and Make Sides Equal once an uneven scale has made its sides differ (`object.setLiveShape {sides, polygonAngle, polygonRadius, sideLength, makeSidesEqual}`, part of #812); a star is a plain path, as in Illustrator. The Flare Tool Options last as the tool's options: the next flare dragged out uses them, a click's dialog shows them and double-clicking the tool opens them (part of #812).- - **Cutting:** Eraser, Scissors, Knife, Mirror & Cut, Line Cut and Rectangle Cut (real geometry, compound paths keep their holes).- - **Transform:** Rotate, Reflect, Scale, Shear (click or Alt-click snaps the reference point to anchors and centres; Alt-click opens the tool's dialog, and a drag with Alt down at the release, from the press or pressed mid-drag, transforms a copy), Reshape, Free Transform (free and perspective distort and shear, switched by the keys held during a handle drag).- - **Live Corners:** drag a live rectangle's corner widgets (Selection or Direct Selection) to round all corners, with a radius readout; with Direct Selection, select corner anchors to show and round just those corners (#381). Each corner keeps its own radius and kind (Round, Inverted Round, Chamfer): Alt-click a widget to cycle the kind, double-click it for the Corners dialog, and the Properties and Transform radius fields set the selected corners (`object.setLiveShape {corners, radius, kind}`). Corners stay circular when the rectangle is scaled unevenly or along its own sides when rotated (the radius keeps its size, or scales by the mean scale with Scale Corners on); only a shear distorts them. On a rectangle that isn't square every corner is the same circle: a radius past half the shorter side stops there for all of them, the widgets sit on the corners as drawn and turn the edited corners red at that limit, CSS export writes the drawn radii, and rectangles saved stretched by older versions get circular corners when their corners are next set (#442). Live Corners work on any path's corners too, as on a rectangle's (#511): a star's, a live polygon's (which also shows them to the Selection tool, has a Corner Radius field in the Properties and Transform panels and keeps its radius as its sides change) and a pen path's, wherever two straight sides meet at an anchor. Direct Selection shows the widgets of every corner, or of the corners holding selected anchors; each corner is a circle tangent to both sides, drawn no larger than takes its cut halfway along its shorter side; a path keeps its uncut outline so its corners stay editable, and the same command, dialog, angle preference and View › Hide Corner Widget apply.- - **Pen:** Alt pressed in the middle of dragging out an anchor splits its handles and keeps the curve already shaped into it (only the outgoing handle follows the pointer); Space held while dragging out an anchor moves it, handles and all. A press on the first anchor of the path being drawn closes it whatever the drag then does: the drag shapes the closing curve (symmetric handles, Alt breaks them) and the release closes the path wherever it ends (#501). Clicking the last anchor of the path being drawn retracts its outgoing handle (convert cursor), and dragging from it pulls out a new one on its own. Auto Add/Delete: over a selected path, a click on a segment adds an anchor and a click on an anchor deletes it (add and delete cursors); Shift held, or Preferences › General › Disable Auto Add/Delete, starts a new path instead. Alt held over a handle end or an anchor of a selected path (the one being drawn too) works as the Anchor Point tool, with its convert cursor: dragging a handle moves it alone, clicking a smooth anchor makes it a corner, dragging an anchor pulls out new symmetric handles, dragging a segment reshapes it; drawing then goes on. Cmd (Ctrl) held drags with the selection tool chosen last, Direct Selection until one is (handles, anchors and segments of the path being drawn or another), and the Pen then goes on drawing its path while that stays selected; the pointer shows that tool's while Cmd is held. The same holds for agents (`pointer_gesture` with `mods.cmd`), as the borrowing now lives in the engine (#494).- - **Path editing (#494):** the handles shown are the handles that drag: Direct Selection drags those of a path selected as a whole (as the Pen leaves it), the Anchor Point tool and Pen+Alt no longer grab handles that Show handles when multiple anchors are selected hides, a handle shorter than the tolerance leaves its anchor to be picked, and the anchor tools pick within Selection & Anchor Display › Tolerance. A dragged segment keeps a smooth anchor at either end smooth. With Direct Selection, the Pen, the Curvature and the anchor tools, a path selected as a whole shows all its anchors selected, and the Control bar and the Properties panel offer Convert (corner, smooth) for them too; Remove and Cut wait for anchors direct-selected (#504). A handle drag gathers its snap targets once per drag (it took 21 ms per pointer move on a 20,000-path document, now 1 ms; `vectorcraft-cli perf` measures handle and segment drags on a 5,000-anchor path).- - **Graphs:** Column, Stacked Column, Bar, Stacked Bar, Line, Area, Scatter, Pie and Radar graph tools with Graph Data and Graph Type. A series starts in greyscale; Group Selection's fill and stroke are kept separately on the graph and reapplied when its data, type or size changes, and through save, open and undo. Graph Type's Override Calculated Values (both `axisMin` and `axisMax`) uses exactly that value-axis range, split into the tick count (5 when automatic). Line graphs take Edge-to-Edge Lines (off by default: the points sit at the centres of their categories; graphs saved before the option keep their edge-to-edge lines), and radar graphs follow Mark Data Points and Connect Data Points. Blank cells (an empty CSV cell or `null`) are values left out, not zeros: columns, bars and stacked segments skip them, lines and scatter lines break around them and the value axis ignores them, while area, pie and radar draw them as 0; a number in straight quotes is a label, and the data window writes it back quoted. Graph types combine: Graph Type on series picked with Group Selection (or `series` indexes) draws them as their own type, with column, stacked column, line and area mixing on the vertical value axis and bar and stacked bar on the horizontal one; stacked columns take one slot of the cluster, lines draw in front of columns and areas behind. The value axis goes on the left, the right or both sides (column, stacked column, line, area and scatter graphs; bar graphs keep theirs along the bottom), and Separate Scales gives the series assigned to the right axis a scale of their own with its own tick values. Each value axis takes tick marks of no, short or full (across the plot) length and a count per division, and a prefix and suffix for its numbers; the category axis takes tick marks too (none by default), at or between its labels. Graph Design, Column and Marker artwork remain open.- - **Other:** Eyedropper, Gradient annotator, Artboard (Alt-drag duplicates an artboard, and its art with Move/Copy Artwork with Artboard on; Copy, Cut and Paste take the artboard with its art, Paste right of the last artboard, Paste in Place where it was, into this or another document, #446; Object › Artboards › Rearrange All Artboards lays them out in a grid by row or by column, in one row or one column, left to right or right to left, from the menu, the Artboards panel or Properties' Rearrange All, #681; Scale Artwork with Artboard, in the Control bar and Properties beside Move Artwork with Artboard, resizes the artboard proportionally with the art fully inside it and its guides, strokes and corners per the Scale preferences, #602), Measure, Type, Hand, Zoom, Rotate View.- - **Editing type:** double-clicking type with a selection tool switches to the Type tool with the caret where it was clicked.- - **Temporary tools:** Cmd with any other tool drags with the selection tool used last (Selection, Direct Selection or Group Selection). Held Space pans and Cmd+Space zooms (Cmd+Alt+Space out) whatever the tool.- - **Panel drag and drop:** art dragged off the canvas onto the Symbols panel becomes a symbol, onto the Swatches panel a pattern swatch and onto the Brushes panel an Art brush; a symbol dragged onto the canvas places an instance where it is dropped, and a brush dragged onto a path is applied to it.- - **Tool double-clicks:** double-clicking a tool's button opens its options: Hand fits the artboard in the window, Zoom shows 100 %, Rotate, Scale, Reflect and Shear open their Object › Transform dialogs, the Selection, Direct Selection and Group Selection tools the Move dialog (Enter opens these seven tools' dialogs too), Gradient, Eyedropper, Blend and the Liquify tools their panels or options, the Pencil, Paintbrush, Smooth, Blob Brush and Eraser tools their Tool Options (Fidelity, fill, the tolerances, the brush size), and (#812) the Flare tool its Flare Tool Options, the Artboard tool the active artboard's Artboard Options, the graph tools Graph Type for the selected graph, the Symbolism tools the Symbolism Tools Options (Diameter, Intensity, Symbol Set Density) and the Magic Wand tool its panel.- - **Layers panel:** every layer, sublayer, group and object is a clickable row at any depth: a click highlights it and makes its layer current (new art goes there), Shift-click a range, Ctrl/Cmd-click toggles. Sublayers are no longer treated as objects: clicks, marquees, Select All and the Select menu take the art inside them, and each sublayer selects in its own colour. Selection squares on rows with selected art (click selects a row's art, Shift adds or removes; dragging the square moves the selection to another row, Alt copies), the eye and lock on every row with drag-down-the-column (one undo step), Ctrl/Cmd-click an eye for per-layer Outline, Alt-click an eye or lock to hide or lock the other layers (again: show or unlock them all), triangles with Alt to open or close everything inside, drag and drop rows above, below or into layers and groups with a drop line (Alt copies) and a dimmed copy of the row under the pointer (dropped on the trash rows are deleted, on New Layer duplicated, as in Illustrator), inline rename, Delete key on highlighted rows. Buttons and the full panel menu: New Layer/Sublayer (Alt: options, Ctrl: on top), Duplicate, Delete, Options for Selection, clipping mask, isolation, Locate Object, Merge Selected, Flatten Artwork, Collect in New Layer, Release to Layers (Sequence and Build), Reverse Order, Template, Hide/Outline/Lock Others and Show/Preview/Unlock All, Paste Remembers Layers, Panel Options (row size, thumbnails per kind, Show Layers Only). Layer Options: name, colour (presets, each with a chip of its colour, or custom), Template, Lock, Show, Print, Preview (outline drawing and clicking) and Dim Images to %. Every operation is a command (`layer.move`, `layer.highlight`, `layer.merge`…) with validation against cycles and invalid nesting. A document opens with only its top-level layers open; the rows left open are saved in the native file (nothing is written for the default) and reopen that way. Only the rows scrolled into view are laid out, from a row list made once per change: a layer of 5,000 groups of 10 paths, all open, draws the panel in 0.4 ms a frame instead of about 29 s (#638).- - **Drawing aids:** Smart Guides and snapping (moving, with the Selection, Group Selection or Direct Selection tool, and resizing by the bounding-box handles with the Selection or Free Transform tool, Shift and Alt too: the dragged corner or side lands on the other objects' anchors and centres ("anchor", "center") or lines up with their edges and centres (a line and "align"); with Smart Guides › Spacing Guides, a moved selection that lines up with nothing along an axis lands as far from its neighbour as two other objects of its row or column are apart, or halfway between its two neighbours, the equal gaps marked; with View › Snap to Grid on, a moved selection lands on the grid instead, by whichever of its edges or its centre is nearest a gridline on each axis, #740; the Rotate, Scale, Shear and Reflect tools drag from the anchor they grab and snap the pointer the same way, so a corner dragged onto another object's anchor scales exactly onto it, #482; anchors dragged with Direct Selection: the one pressed on lands on other anchors, its own path's that stay put among them, on path segments or in line with them, the others following, Shift keeps 45° steps, and with Smart Guides off Snap to Point pulls it onto anchors; the Artboard tool snaps artboards, and their bleed, to other artboards, bleeds and art, the grid or whole pixels while moving, copying and resizing them, and the Transform panel shows and edits the active artboard's X/Y/W/H; drawn points, #506: hovering shows where the press goes, the point lands on the other objects' anchors, centres and paths ("anchor", "center", "path") or lines up with their anchors, edges and centres ("align"), the Pen's on the path being drawn too, near a construction guide through the anchor before it on that guide (Preferences › Smart Guides › Construction Guides and Angles), and with Shift kept to its 45° step or a square's diagonal it slides along that way into line; the targets are gathered once per document state, from the art in the window, and the anchors, centres and lines near the pointer are found by bisection, so hovering never rescans the document), guides dragged out of the rulers (#451: they snap as moved guides do, Shift to the ruler's ticks; with the Artboard tool they are artboard guides, which run across their artboard only and move, copy and delete with it, `guide.add {artboard}`) that the Selection, Direct Selection and Group Selection tools then pick and drag (#414: the selected guides highlight and move together, Alt copies them, Shift snaps the dragged one to the ticks, otherwise it snaps to pixels, the grid or the edges, centres (so the sides' midpoints) and anchors of the art and the artboards, or with Smart Guides off Snap to Point pulls it onto anchors; the arrow keys nudge them, Delete deletes them, dragging one back onto its ruler deletes it, Lock Guides and Hide Guides leave them alone; `guide.list`, `guide.select`, `guide.move` and `guide.remove` reach agents), a right-click on either ruler or the origin box to pick the document's units (the current one checked; `document.setUnits`, one undo step, #528), and Draw Normal / Behind / Inside modes.- - **Views:** the status bar's artboard navigator (first, previous, next, last; `view.goToArtboard`) goes to an artboard and fits it, and Fit Artboard in Window and Actual Size show the navigator's artboard. The Artboards panel highlights that active artboard: clicking a row makes it active (the Artboard tool's too, while it is chosen) as does clicking an artboard with the Artboard tool, double-clicking its number also fits it in the window and double-clicking its name renames it. Duplicate Artboards, or a row dragged onto New Artboard, copies the artboard with its art (#446). Escape leaves Presentation Mode, F from it goes back to Normal Screen Mode, and the screen mode isn't saved with the preferences: the app always starts in Normal Screen Mode with its menus and panels (#472). View › Pixel Preview shows the art as the document pixels it rasterizes to, one per point and hard-edged when magnified, turning with a rotated view (it used to draw the smooth vectors, with only the pixel grid over them).- - **Geometry and effects:**- - Pathfinder (10 exact curve booleans), Offset, Outline Stroke, Simplify, Clean Up, Split Into Grid, Divide Objects Below. Object › Path › Remove Anchor Points (`path.removeAnchors`) removes the direct-selected anchors without opening their paths (the Delete key still deletes them with their segments): the neighbours keep their handle directions and their facing handles are refitted so one cubic follows the two old segments, and straight sides stay straight. The Delete Anchor Point tool uses the same refit. The Control bar, the contextual task bar, the Properties quick actions and the canvas context menu offer it when anchors are selected. With anchors selected, the Control bar and the Properties panel also convert them to corner or smooth (`path.convertAnchors`), connect end points (Join) and cut the path at them (`path.cutAtAnchors`, also on the task bar and the context menu): a closed path opens there and an open one becomes one path per piece, each cut leaving one of its two coincident anchors selected so a drag pulls the path apart.- - Live effects with previewing dialogs: Distort & Transform, Path, Convert to Shape, 15 Warp styles, Round Corners, Scribble, Effect → Pathfinder (all 10 operations, live on groups; several loose objects are grouped first, in one undo step), Color Adjustments (Brightness/Contrast, Curves, Levels, Hue/Saturation, Shift to Color, Temperature/Tint, on vectors, live type and embedded images), and raster drop shadow, glows and feather. SVG and PDF export keep live effects (geometry baked; SVG raster effects as filters).- - **Type:** Text Wrap, Type on a Path effects (Rainbow/Skew/3D Ribbon/Stair Step/Gravity) and Options (Flip, Align to Path, Spacing; OK keeps the type where it is), type on a path's start, centre and end brackets (Selection and Direct Selection drag them to set where the type runs, slide it along its path and, across the path, flip it: #429), Character and Paragraph Styles (override-preserving redefine), paragraph attributes per paragraph (alignment, indents, spacing, hyphenation, hanging punctuation, tab stops, paragraph style, direction, mojikumi and leading model; the Paragraph, Tabs and Paragraph Styles panels act on the paragraphs the Type tool's selection or caret touches, Return continues the paragraph's style, threads and SVG keep them), Area Type Options (rows/columns/inset/first baseline, vertical Align Top/Center/Bottom/Justify per row/column, reflowing non-rectangular frames and text wrap), threaded text across any closed shapes, Fit Headline, the Every-line Composer for justified and ragged text (paragraph-wide breaks for an even rag, Single-line per object from the Paragraph panel menu or `text.setFormat {composer}`). Area type resizes like Illustrator's type areas: a bounding-box handle drag (Selection tool) or Area Type Options Width/Height size the frame and the text reflows at its size (threads too); Direct Selection drags a frame corner or edge (`text.reshapeArea`). Point type still scales. Auto Size: the frame height follows the text after every edit, in the same undo step (rectangular frames of horizontal type in one row; columns get the least height that holds them; a height set by hand or threading turns it off), and the "Auto Size New Area Type" preference gives it to new area type. Shrink Text to Fit (beyond Illustrator): overflowing area type scales its sizes, leading and baseline shifts down by the largest factor (in 0.1 pt steps of the first run, down to a minimum percentage) that fits, at layout time so every export sees it. `text.areaOptions` and `document.inspect` report overflow and the shrink factor. The Selection tool shows the type widget beside selected type's bounding box (hollow on point type, filled on area type); double-clicking it converts between them (Type › Convert To Area Type / Convert To Point Type), keeping the text and its styles in place. Variable fonts list every named instance as a style of their family (Figtree Light to Black and their italics, Bahnschrift, Segoe UI Variable), and the instance chosen is shaped, drawn, outlined and measured at its axis settings; PDF and SVG embed it as that instance. Variation axis sliders are not done. Beyond Illustrator: inline graphics (`text.insertInline`, Type ▸ Insert Inline Symbol) set a document symbol in a run of type as one character that flows, wraps and justifies like a glyph (InDesign-style inline objects, e.g. mana symbols in card rules text): sized to a multiple of the font size, centred on the cap height, opening up tall lines, following Redefine Symbol; a character of its run's size for Character Alignment and Top-to-Top leading, placed by the bidi reordering in right-to-left text (a neutral U+FFFC); drawn on the canvas, kept as live text plus a `<use>` in SVG and as vector art in PDF; Backspace removes it whole. Hebrew and Arabic are laid out right to left with the Unicode bidirectional algorithm (embedded Latin and numbers keep their direction, lines put in visual order after wrapping) in point, area and path type, with caret, selection and arrow keys in visual order; each paragraph's direction comes from its first strong character unless Paragraph Direction sets it (Paragraph panel with Show Indic Options, `text.setFormat {direction}`), and new type aligns to the start of its direction. SVG export outlines right-to-left text. Arabic typefaces: builds made with a craft-fonts checkout that holds its Arabic families (Noto Sans Arabic, the Arabic fallback, plus Cairo, Tajawal, Almarai, IBM Plex Sans Arabic, Noto Kufi Arabic, Amiri, Alexandria, Fustat, Reem Kufi, Aref Ruqaa and Gulzar once craft-fonts adds them, storytold/craft-fonts#11; releases get them when their craft-fonts pin moves) list them in the font menus on desktop; the web build fetches them from beside the wasm (Noto Sans Arabic before start, so Arabic never shows as boxes, the rest in the background). Font Size and Leading are combo boxes in the Character and Properties panels (Font Size in the Control bar too, beside the Character link, font family and style): type, step with ↑/↓ or the spinner, scrub the label, or pick a preset (6–72 pt, shown in the type unit; Leading also Auto), each pick one undo step; Kerning and Tracking list -100…200; a size, leading, kerning or tracking the selected text doesn't share shows blank (#458). Type › Bold and Italic (beyond Illustrator, as page layout apps have them; Cmd+Shift+B / Cmd+Shift+I while the Type tool edits text) switch the selected type to its family's own Bold or Italic face and back, keeping its width (a Narrow face stays Narrow); a family without that face says so (#724).- - **Interface languages, vertical type:** Preferences ▸ User Interface (or VectorCraft ▸ Language on macOS) picks Automatic (the system locale) or a registered language, persisted as `interfaceLanguage`. Translations come from per-language catalogs (`i18n/*.tsv`): Traditional and Simplified Chinese, Japanese, German (every `de-*` locale), Spanish (neutral international Spanish, for every `es-*` locale), French (every `fr-*` locale), Italian (every `it-*` locale) Russian (every `ru-*` locale) and Ukrainian (every `uk-*` locale) cover the whole interface, Czech and Brazilian Portuguese every menu label, Brazilian Portuguese the shell's `tl!` literals too (tested); German, Spanish, French, Italian, Japanese, Russian and Ukrainian also translate status-bar and error messages as they are shown (`@msg` templates, every message literal tested; the messages themselves stay English for agents); untranslated text stays English. Japanese and Chinese glyphs come from the craft-fonts build input (release builds) or the installed fonts, Czech, German, Spanish, French, Italian, Russian and Ukrainian ones from the bundled UI fonts. The web app follows the browser's languages (or `?lang=`). The Basic toolbar's Type button holds Vertical Type in its flyout. Vertical Type, Vertical Area Type and Vertical Type on a Path create vertical text (columns right to left, upright CJK glyphs and marks with `vert` alternates, Latin and longer numbers on their side, two- and three-digit numbers set as tate-chu-yoko in one em of the column (kept whole when justified), upright glyphs centred on the column (tracked or justified too), point type's anchor on the first column's centre line); kinsoku applies to horizontal and vertical Japanese (Paragraph panel › Kinsoku Set, `text.setFormat {kinsoku}`: Hard, the default, keeps closing marks, iteration marks, the prolonged sound mark and small kana off the line start and opening brackets off its end; Soft lets 々, ー and small kana start a line as JLREQ's level 3 rules do; None turns it off), and justified Japanese lines spread their room between characters (not inside Latin words); Paragraph panel › Mojikumi Set (shown with Preferences › Type › Show East Asian Options, `text.setFormat {mojikumi}`): None or Line-end Punctuation Half Width (new type's default, as in Illustrator; older documents and imported text keep None) shares one half-em space between consecutive punctuation, sets a closing mark ending a line half width and an opening bracket starting a line flush with its start (a paragraph's first line at its first-line indent, JIS X 4051's principle in JLREQ 3.1.5), and puts a quarter em between Japanese and Latin letters or digits; Paragraph panel menu › Top-to-Top / Bottom-to-Bottom Leading measures leading from em box top to top (area type's first line touches the frame) or from baseline to baseline (new type in a Japanese interface starts top to top, with em box centre character alignment, #432); Paragraph panel menu › Burasagari None / Regular / Force (`text.setFormat {burasagari: "none"|"standard"|"forced"}`) hangs an East Asian comma or full stop (、。,.、。) ending an area type line outside it, Regular (new type's default) when it doesn't fit and Force always (the rest of the line then fills the measure; closing brackets and Latin punctuation don't hang); Character panel menu › Character Alignment (with the East Asian options; `text.setFormat` or `text.setRangeStyle {charAlign}`) lines characters smaller than the largest on their line up on the Roman baseline, the em box top/right, centre or bottom/left, or the ICF (ideographic character face) top/right or bottom/left, from the font's BASE table or, without one, the average ink box of some ideographs and kana; Type ▸ Type Orientation switches existing text; caret, selection, hit testing and arrow keys follow the writing direction. Vertical text exports to PDF as real text and to SVG as outlines.- - **Transparency:** opacity masks (clip/invert/disable/link), exported as SVG `<mask>` and PDF soft masks.- - **Image Trace Flat Logo mode:** a fourth mode beside Black and White, Grayscale and Color, for flat-colour logos. Each pixel is read as a blend of the logo's colours (found automatically or named), the blend is interpolated smoothly and every outline is placed where two colours are equally present, so edges are accurate to a fraction of a pixel. Outlines are then cleaned: corners the blur rounded are put back, near-straight runs and near-circular arcs become exact lines and arcs, the rest is fitted with as few Béziers as the tolerance allows, touching colours overlap by a hair so no gap opens, and an outline that strays from the raw contour is fitted plainly instead. Gradients and photos are refused with advice to use Color. *Measured* (a local experiment, not run in CI): a flat-colour logo's vector original was rendered down to a soft 199 × 100 px transparent PNG, traced, and the result compared with the original at 1600 px wide. The built-in colour presets (6 Colors, 16 Colors, High Fidelity Photo, Low Fidelity Photo) had a mean edge error of 2.5 to 3.4 px and region overlap of 0.88 to 0.91; Flat Logo had 0.78 px and 0.966 (0.48 px and 0.975 from a crisp source), in about 0.1 s. Limits: flat-colour art only; needle-thin sharp tips are shortened by about 1.7 source pixels because the blur erases them; it works at no more than 1024 px on the long side (larger images are averaged down first); only one logo family has been scored against a vector original.- - **Advanced art:** live Blends (steps/distance/smooth colour, editable spine, anchor-targeted Blend tool, faithful interpolation, knockout), Envelope Distort (warp/mesh/top object, Reset, full Envelope Options, mesh handles, Edit Contents; type, images, symbols, gradients, patterns and appearance distorted everywhere), Liquify tools with options and pen pressure, Puppet Warp with rotating pins, Perspective Grid with presets, movable planes and projected type (choosing a perspective tool shows the grid; Hide Grid hides it with the tool still chosen), Gradient Mesh, Shape Builder (stroke-only open paths and lines cut the regions they cross and enclose regions of their own; filled open paths count as closed; erase mode while Alt/Option is held: a minus pointer, red highlights of what will go, a click or drag deletes the regions touched, the pieces of open lines and the edges (outline pieces between the points where paths meet, opening their paths there) it passes over, one undo step, `shapeBuilder.merge {erase}` and `shapeBuilder.regions` edges over MCP), Live Paint (every path an edge, open lines included), Image Trace (12 presets, colour layers traced in parallel; a trace past two million anchor points or an image over 64 megapixels is refused with advice rather than running out of memory, and a selection too large to outline shows its bounds (#525); Object › Image Trace › Make and Make and Expand trace at once with the Default preset, #543; with an image selected the Control bar and the Properties panel show Image Trace, whose arrow traces with any preset, Mask (`object.maskImage`: a clipping path on the image's outline, selected so its handles crop), Crop Image (a crop box on the image, starting on its part over the artboard, dragged by its handles or inside it, the outside dimmed, with X/Y/W/H, Apply and Cancel in the Control bar, Enter and Escape, #734; `object.cropImage {rect}` for agents, `{trim: true}` cuts an image to its pixels that aren't fully transparent, pixel for pixel) and Embed or Unembed in place of Fill and Stroke; with an Image Trace object selected, its Preset (choosing another traces again), View, the Image Trace panel and Expand, plus Release in Properties; the five View modes (Tracing Result, with Outlines, Outlines, Outlines with Source Image, Source Image) redraw a trace on screen without tracing again, are saved with it and `imageTrace.setView` sets them, while exports and Expand keep the result; the panel's Advanced section is a header that stays open or closed as it was left (part of #641); Color mode's Palette: Limited, Full Tone (as many colours as the tones need, Less … More), Automatic (flat art with its own colours, else Full Tone; a heuristic) and Document Library (the most used colours of the document's swatches or a swatch library, filled with the swatch colours as they are), part of #641; Advanced › Create: Fills and/or Strokes, where lines up to the Stroke width trace as stroked centre lines (distance transform, thinning, a skeleton graph with spurs pruned, curve fitting; one width per line; without Fills, wider areas become stroked outlines), part of #641), pattern swatches with pattern editing mode, live Repeat (radial/grid/mirror).- - **Paint and appearance (M3):**- - **Swatches:** names follow the colour model and are unique; Swatch Options (process/spot, Global, Gray/RGB/HSB/CMYK/Web, live preview); editing a global or spot swatch recolours every linked fill, stroke and text run in one undo step; multi-select and delete with confirmation; New Swatch and New Color Group dialogs (a group from the selected artwork's colours); swatches in colour groups convert, separate and count like any other. The Swatches panel selects ranges and whole groups, has a find field, and drags swatches to reorder, regroup or paint art; Add Used Colors, Select All Unused, Merge, Ungroup and Sort by Kind; a CMYK document keeps applied colours in CMYK. Swatch libraries: nine generated colour libraries and five gradient libraries in a library panel, saved as `.vcswatches`, `.gpl`, swatch exchange (`.ase`) or CSS, and loaded from `.vcswatches`, `.gpl` and `.ase` files (`.ase` both ways: RGB, CMYK, Lab and Gray; global, spot and process; groups) and from color books (`.acb`, read only: the RGB, CMYK or Lab colors of a book such as a Pantone book a user owns, named with its prefix and suffix, spot unless it says process, #831); `swatch.library.copyToUser` copies a loaded library into the User Defined folder without replacing a file, and a file with the same extension and bytes as a User Defined library opens as that library. Tints of global and spot colours ("Name 40%") stay linked and separate as a percentage of their plate. Spot colours can be defined in Lab (Spot Colors options). A built-in [Registration] swatch prints on every plate.- - **Colour:** a Color Picker (colour field, H/S/B/R/G/B channel slider, HSB/RGB/Lab/CMYK fields, hex, web-only snapping, out-of-gamut correction); the Color panel follows each colour's own model and Alt-click paints the other proxy; proxies look through groups and show "?" for mixed paint; Invert, Complement, Apply Last Color (`,`) and Apply Last Gradient (`.`) keep the colour model; every paint command feeds the recent colours. The Color Guide has 21 harmony rules, Steps and Variation options and Limit to Library. Adjust Color Balance (its Global mode shifts tints) and Saturate preview live; Edit Colors and Recolor also reach meshes, images and patterns. Recolor Artwork has colour reduction, five recolour methods, presets, Limit to Library, a colour-wheel Edit tab and Edit Color Group; a local Color Themes panel saves five-colour themes. Fill/Stroke chips open swatch and mixer popovers (the Properties panel has the Control bar's Fill and Stroke chips, Stroke link and weight spinner, with nothing selected too), panels have Illustrator's Window menu keys (Align Shift+F7, Transform Shift+F8, Pathfinder Cmd+Shift+F9, Layers F7, Character Cmd+T…; every panel can be given one in Edit › Keyboard Shortcuts), and Eyedropper Options pick up and apply chosen attributes (Alt and Shift+Alt, image pixels). An ICC CMYK profile converts straight into the RGB working space (not through sRGB, so a wider space such as Wide Gamut RGB keeps colours sRGB can't hold) with the colour settings' black-point compensation, on the canvas and in RGB exports alike. Fills and strokes can overprint (Attributes panel, Overprint Black options), and CMYK documents blend in inks on screen, in PDF and when flattening. Document Color Mode converts the art, symbols, pattern tiles and swatches through the colour settings: Gray stays Gray, RGB greys separate into four-colour greys and a rich black as Illustrator does, or go on the black plate only with `grays: "black"` (also for `document.open {colorMode}`).- - **Gradients:** lossless, validated gradient params; gradients follow rotate, reflect, shear, non-uniform scale and distortions; the Gradient tool edits the fill or stroke of the active proxy, type included; an interactive on-canvas annotator (move, length/angle, rotate, add/move/delete/duplicate stops, midpoints, a stop popover, Delete and arrow keys). The Gradient panel has the Fill/Stroke proxy, a gradient-swatch dropdown with Save to Swatches, midpoint locations, Alt-drag to copy or swap stops, swatch drops on the ramp and a stop eyedropper; copied appearances and graphic styles place gradients on each target's own bounds; gradient handles snap and honour Constrain Angle. Gradient stops stay linked to global and spot swatches. Freeform gradients (points and lines) are edited on the canvas; radial gradients have an extent ellipse, an aspect handle and an off-centre focal point (SVG `fx`/`fy`, PDF two-point radials). A stroke's gradient runs within, along or across it. Object ▸ Expand turns gradients into N objects or a gradient mesh.- - **Strokes:** one stroke-geometry module shared by the canvas, SVG, PDF and Outline Stroke; dotted lines (zero-length dashes draw dots or squares); arrowheads with hollow outlines, tip-on-end or extend-past-end alignment and one opacity for line and head. SVG and PDF export arrowheads, width profiles, brushes and aligned strokes exactly as the canvas draws them; Outline Stroke and the live Outline Stroke effect outline every stroke item as drawn (dashes, heads, profiles, alignment); dashes can be fitted to corners and path ends; width profiles carry through dashes, and their corners take the join. The Stroke panel edits type's character strokes, follows the stroke units (its weight presets are round values in that unit: `0.25 mm`, `0.0625 in`, `1 px`, #426; fields show four decimals in mm, cm and inches, three in points), shows mixed values blank and opens from the Control bar. A width profile library, thirty more arrowheads, and Width Point Edit with multi-select and discontinuous points. Visual bounds and clicks cover the whole painted stroke. Scale Strokes & Effects, Scale Corners and Use Preview Bounds work everywhere, and new art inherits stroke options, a graphic style or the whole last appearance.- - **Brushes (part of #852):** double-clicking a brush in the Brushes panel (or the panel menu's Brush Options…) opens Calligraphic Brush Options (Name; Angle, Roundness and Size, each Fixed, Random or Pressure with its Variation; live previews of the nib and of a light–heavy–light stroke) or Bristle Brush Options (Shape and the bristle sliders); OK edits the brush and every stroke painted with it. The Paintbrush records the pen pressure along each stroke (kept with the path, saved, and joined when a stroke continues a path); a Calligraphic value on Pressure goes from value − variation at the lightest pressure to value + variation at the heaviest, on the canvas and in SVG, PDF and the other exports. Brushes saved before keep their look. Scatter Brush Options (Size, Spacing, Scatter and Rotation, each Fixed, Random between two values or Pressure from the first at the lightest pressure to the second at the heaviest; Rotation relative to Page or Path), Art Brush Options (Width, Scale Proportionately, Stretch to Fit Stroke Length or Stretch Between Guides with the guides' start and end, the four Directions, Flip Along and Across) and Pattern Brush Options (Scale, Spacing, the five tiles shown, Flip Along and Across, Stretch to fit, Add space to fit or Approximate path) each have Colorization (None, Tints, Tints and Shades, Hue Shift with its Key Color picked from the art's colours) and a live stroke preview; values from files and commands are clamped to their ranges. Still to come: the Art brush's Overlap, auto-generated Pattern brush corners, new tile art picked in Pattern Brush Options, Stylus Wheel, Tilt, Bearing and Rotation, and pen pressure on macOS.- - **Appearance:** the Appearance panel's selected row drives every paint, stroke, gradient and transparency edit (`item` on the commands); effects apply to one fill or stroke; per-item Opacity popups, whose blend-mode list and opacity slider stay open inside them (#430; the Control bar's Stroke popover too); Mixed Appearances, Layers target dots and basic-appearance rules. Effects can be reordered, moved between items and copied by dragging; Show All Hidden Attributes; clicking an effect edits it in place; the object thumbnail drags onto art; effects render on type, images, symbols, blends, envelopes, meshes and repeats, and per-item raster effects export. Groups, layers and type have their own fills, strokes and effects (Contents and Characters rows); the Layers panel's target circles target layers, groups and objects; Expand Appearance turns fills, strokes, effects and brushes into objects.- - **Masks and clipping:** opacity-mask controls work while the mask is being edited; transparency commands take ids and work without a selection; clipping sets clip by compound paths, even-odd paths, text and groups on screen and in raster export, matching SVG/PDF. Alt-click shows only the mask; SVG masks keep Clip and Invert; the transparency grid is per-document state; a clipping path's own fill and stroke paint behind and over the clipped art; layers can be clipping masks.- - **Transparency:** three-state Knockout Group (on, neutral, off), Opacity & Mask Define Knockout Shape, Page Isolated Blending and Page Knockout Group, on screen and in SVG/PDF. Blend modes match the standard formulas on screen, in SVG and in PDF, and non-isolated groups blend with the art below. Flatten Transparency with presets, a dialog and a Flattener Preview panel.- - **Graphic styles:** styles keep opacity and blend mode, capture groups and type, apply on top with Alt, and link to the objects using them; Redefine, Break Link, Graphic Style Options, Select All Unused, Sort by Name, and Select > Same Graphic Style / Appearance Attribute. The panel has list and thumbnail views with rendered previews, merge, reorder and drag and drop, plus a Control bar Style picker; six generated style libraries save and load as `.vcstyles`.- - **Neutral wording:** labels, MCP tool text, docs and packaging use neutral names, and `cargo xtask brands` (part of `cargo xtask ci`) fails on vendor names.- - **Colour, type and file workflows:** Recolor Artwork (dialog with harmonies), Edit Colors, Find & Replace, Change Case, Smart Punctuation, Guides, Lock/Hide Above, Transform Each, Rasterize.- - **Fonts:** a font is found by any of its names (family and style in every language of its name table, legacy family/style pairs, PostScript name), so documents from other apps open with the font they name; Find Font and `text.fonts` say for each font whether it was found exactly, by another name, substituted or missing, and how many glyphs are missing. PDF and `.ai` import brings Japanese text back as live type: CID fonts without a ToUnicode map read through the standard CMaps, vertical columns (WMode 1) as vertical type, letter spacing as tracking; a glyph is live type only when the installed font (in the closest style of its family) draws the same glyph, and text in a font that isn't installed comes in as live type shown in the fallback font until the font is installed (exports that draw it — PDF, EPS, EMF/WMF, raster, SVG outlines or embedded fonts — warn that they wrote the fallback font; `textAs: outlines` keeps the PDF's embedded glyphs). Two installed versions of one family and style (a font library keeping an old file beside a new one) both load, the first staying the one the family and style resolve to; PDF and `.ai` import tries each version when the glyphs differ, and type set in a version other than that one names it (`CharStyle::font_version`), which layout, the substituted-glyph highlight, Find Font, Package and Document Info follow. Fonts outside the font folders are listed too: those font services such as Adobe Fonts load on Windows, through DirectWrite, and those apps and font managers register with CoreText on macOS (#579). When a document opens with fonts that aren't available, fonts used only in symbols included, a Missing Fonts dialog lists them after the linked-file questions, with Find Fonts (Type › Find Font on them) and Close. Its Find in Folder… (in Find Font too) searches a folder on several threads, reads only what the font scan reads of font files and skips app packages, the Program Files and ProgramData folders, the system's folders and the app data folders in a home folder; Add Fonts copies the font files the user chooses, suitcase fonts with their resource fork, into VectorCraft's own Fonts folder, which the desktop app and `vectorcraft-cli` read (`text.missingFonts`, `text.findFontFiles`, `text.addFontFiles`).- - **Files (M4):**- - `.vectorcraft` (lossless JSON, compressed, atomic saves, save down to v1), Save As with a format chooser, Save a Copy, Revert, templates, Data Recovery after a crash (browser tabs hold their copies with Web Locks too, so a background tab's copies are never taken for a crash's, and a tab repairs copies another removed when it resumes: #367), background save and export. The desktop app writes its warnings and errors (graphics adapter, a lost graphics device, panics the guard recovered from) to standard error and to `logs/vectorcraft.log` next to the preferences, the two previous runs kept and each file capped at 16 MiB, so a launch without a terminal still leaves something to attach to a bug report (#465).- - SVG/SVGZ in and out with SVG Options, Preserve Editing, symbols, filters, rich text and physical units (SVG type under a transform or `viewBox` scale opens at the size it draws at, the scale moved into its size, leading, baseline shift and strokes, a stretch, skew or rotation kept as its transform: #396; a top-level group with a clip path, such as a clipped Inkscape layer, opens as a layer with a clipping mask, its name kept: #420; hidden objects written hidden on Save and `convert`, and `data-*` attributes kept as the objects' own data: #522; top-level groups open as layers named from `data-name`, else the id, also when one more group (a transform on all the art, a `<switch>`) wraps them, hidden ones hidden, and a file whose art sits loose under a root `<svg>` with an id (or `data-name`), as one-layer exports write it, opens with its one layer named from it; nested groups stay groups, except the sublayers VectorCraft writes, marked `data-vc-layer`, and Inkscape sublayers, which open as sublayers in their layer's colour: #372); PDF and PDF-compatible `.ai` in and out (layers, with hidden ones kept hidden with their art and nested ones as sublayers, on pages of up to 64 million operators, art whose layer can't be told going to a hidden, non-printing layer rather than showing or printing: #419; strokes kept live, a fill and a stroke of one outline as one object; a type object's stroke written as each glyph's outline stroked back on the type, so it stays one editable object; lines wrapped in a frame (each wrapped line ending in a space, one left edge, leading and font) back as one area type object, left aligned or justified with its paragraph spacing, where laying it out breaks the lines where the file does; glyphs set apart by gaps wider than a space (a barcode's digit groups) keeping their places; layers stacked as the pages mark them even when one first paints on a later page, art ending a layer's marked content or a clip closing in a later layer kept in its own layer, and layers with no art kept empty: #508; art reaching past a plain PDF's page clipped to its crop box, as PDF viewers show it, each such object in a clip group of its own (a PDF-compatible `.ai` opens whole: #675); masks, editable text with type set along a curve coming back as type on a path, each artboard's art on its own page only, an `.ai`'s white page under its layers left out rather than coming in as art, spot colours, presets, security, marks and bleed, ICC output intents, raster effects, subset fonts, PDF/X, PDF layers, overprint, page thumbnails, fast web view, PDF 1.3). CMYK images keep their ink amounts from PDF import (and from placed CMYK TIFFs) to PDF export: a CMYK JPEG passes through unchanged, others stay CMYK (DeviceCMYK, or ICC-based CMYK in PDF/X-3/X-4) unless the Output settings convert them; the canvas shows them through the working CMYK profile (#320). A masked CMYK image (`/SMask`, `/Mask` or a colour key) keeps its inks too, its alpha coming in as a greyscale opacity mask.- - EPS and DXF in and out, EMF/WMF in and out; PNG (with PNG-8), JPEG, WebP, GIF, TIFF, BMP, Targa and layered PSD export; PSD and PSB files open and place, linked or embedded, as their merged image in every colour mode and depth (#918). EPS import runs a PostScript Level 3 interpreter written from the PostScript Language Reference: resource categories and `resourceforall`, local and global VM (`currentglobal`/`setglobal`/`gcheck`), `clipsave`/`cliprestore`, subarrays and substrings that share storage, the standard dictionaries in `systemdict`, `dictstack`, `internaldict`, executable filters and strings, `load` by any key, `//name` immediate names, `token`, `execform`, user paths, `cshow`, `rootfont`, `cachestatus`, colour rendering and halftone queries, file `status` and data read with `flushfile`, and `pdfmark` marks dropped (Discord feedback, #466, #469, #474). Masked images (`ImageType 3` in its three interleavings) and reusable streams are read, and an image's several data sources are read in turn, as the reference defines (procedures that read one file get their own rows: such images came in banded, #498). `restore` puts dictionaries back as they were at the `save`, so programs that count their saves in a dictionary read to their end (part of #505). Tiling patterns come in as pattern swatches, uncoloured ones too; Type 3 fonts' glyphs as their outlines, spaced by `ashow`/`widthshow`/`xshow`/`kshow`; mesh and function-based shadings (types 1, 4–7) as gradient meshes; sampled functions (type 0) and Flate/LZW predictors are read. It is tested with programs written from the specification in the ways common generators use these features; Inkscape/cairo EPS files open as vectors. When a file's PostScript still can't be read, it opens as its TIFF preview, its Windows metafile preview (as vectors) or its EPSI preview, and the warning (in the status bar, `document.open`/`app.open`/MCP `open_file` replies and `vectorcraft-cli info`) names the error, the operator that raised it and the procedures it ran in. Legacy PostScript `.ai` files (Illustrator 3–8, written with the prolog that defines their operators) keep their groups and nested groups (`u` … `U`), between and inside clipping groups; EPS and EMF/WMF import nest clips (and groups) at most 128 deep, so a hostile file can't exhaust the stack. DXF TEXT justified Fit or Aligned spans its two points (stretched, or scaled as a whole). PDF export writes type as real, searchable text in embedded subset fonts by default, as Illustrator's PDF presets do (Convert Text to Outlines is an option; printer's marks stay shapes), so text-heavy PDFs stay small (#733). DXF export writes each fill as its outlines followed by its hatch, so laser and cutter software, which skips hatches, gets filled art and type too (#546).- - Affinity documents in (AF.1–AF.4): `.af` (Affinity 3) and `.afdesign`/`.afphoto`/`.afpub` (Affinity 1 and 2, container versions 8–12) open and place as editable art: layers and sublayers, groups (pass-through or isolated), artboards (with their names and backgrounds) and Publisher pages side by side, curves with live corners, parametric shapes (rectangles with corner radii, ellipses, polygons, stars, pies, triangles, trapezoids), compound shapes, solid/linear/elliptical gradient fills and strokes (weight, dashes, alignment, scale-with-object), clipping by nesting, vector and pixel masks, artistic and frame text with fonts, sizes, tracking, leading and alignment, placed images (their original JPEG/PNG) and pixel layers (8/16-bit RGB, CMYK), opacity, visibility, locking and blend modes, at the document's resolution in points. Effects, adjustments, brushes and pressure profiles, transparency gradients, master pages, symbol instances (imported as their cached picture), special shapes (cloud, heart, cog…, imported as ellipses) and Affinity-only blend modes are named in the import warning. A file whose native data can't be read opens as its embedded preview with the reason, and that preview can't be placed. Save never writes back over the Affinity file and there is no Affinity export. AF.4 adds Affinity 3 artboard recognition and actual-outline clipping, source-backed JPEG/PNG raster tiles, Unicode text-run recovery, stored fallback/exact installed fonts, OpenType feature flags and compound-geometry limits. 51 public CC0/MIT/Apache-2.0 files (33 current `.af`), pinned and sha256-verified (`cargo xtask corpus --affinity`), test native retention and every-board native/SVG/PDF/PSD output for current files; selected files compare their saved thumbnails. No Affinity reopen or independent paired PSD oracle was available; [source audit and complex-font gaps](docs/affinity-validation.md); [scope, provenance and limits](crates/affinity/README.md).- - Placed documents: File › Place of a `.vectorcraft` file links to it by default (`file.place`'s `link`): one locked object showing an artboard of the document (or its art's bounds), read the way placing it without Link reads it, its symbols, patterns and images kept apart from the document's; without Link (or from bytes, not a file) it is an editable copy as before. It stays vectors in every output (SVG, PDF, EPS, EMF, DXF), and so do placed documents inside it, read from their own files up to 8 levels deep (documents that place each other stop there). On screen they draw from bitmaps cached per file and zoom step, shared by every copy and made in the background (a placeholder until ready), so a sheet of them redraws in about a millisecond; exports and prints draw them exactly. Like linked images, a save keeps only a preview of each (JPEG when opaque) unless Include Linked Files; output, and zooming past the preview, read the file again, falling back to the preview with a warning when it is gone or changed. Saves for older versions write them as plain art. Links check, update, relink, Update Links on open, Link Info (the artboard's size), Placement Options, Break Link (also Embed, Object › Expand: the editable copy placing without Link gives, its resources joining the document), Edit Original (the document in a new tab) and the Links panel cover them; saving a document updates the open documents that place it. The native format (v4) keeps data of 8 KB or more after the JSON instead of base64 in it.- - Place and the Links panel, Package (placed `.vectorcraft` documents packaged with their own linked files and fonts, relinked to the copies: #777), File Info, Print with print presets, PostScript output and print tiling, slices and Save for Web, Export for Screens and Asset Export, CSS Properties, PNG/PDF/SVG/text clipboard flavours; files copied in a file manager paste as art (SVG, PDF, EMF/WMF, bitmaps) on every desktop platform, and Linux/Wayland reads the compositor's clipboard (#398); on Linux the Paste menu checks the clipboard off the UI thread, so an X11 owner that never answers can't freeze the window (#510); screenshots and other copied pictures paste as embedded images at the view centre everywhere, the web included (#457).- - Linked files another app changes while their document is open follow Preferences › File Handling › Update Links, as they do when it opens: Automatically reads them again (an Update Links undo step), Ask When Modified offers to, Manually leaves them modified in the Links panel. The desktop app compares the active document’s linked files by size and modification time every two seconds and when its window comes back to the front, on a worker thread; a file still being written is tried again (`links.updateChanged`).- - **Performance:** 20k shapes + 1k texts render in 27 ms per full-retina frame (7.8 ms zoomed), 7× faster than the first version. The UI thread never blocks. The web build is 7.1 MB gzipped.- - **Graphics processor:** the canvas is rasterized on the CPU and the GPU only composites it, so any GPU that can show the window will do. Preferences › Performance › Graphics Processor (`gpuPreference`) is Automatic by default: the power-saving GPU on Windows and macOS (the integrated one on hybrid-graphics laptops, where presenting from the discrete GPU made the window flicker, #306), and the GPU the desktop runs on under Linux, where KWin on an NVIDIA GPU refused frames from a Ryzen's integrated GPU and 0.5.0 crashed at startup (#502). Power Saving and High Performance pick a kind of GPU; `WGPU_POWER_PREF`, `WGPU_ADAPTER_NAME` and `WGPU_BACKEND` override them. The app picks among the adapters that can present to the window (native backends before OpenGL, hardware before software, and on Windows a GPU's DX12 adapter before its Vulkan one: Intel's Vulkan driver made the whole window flicker black, #545), and if the window fails on one while starting up it starts again without it instead of crashing; Help › About, `ui.inspect` and the log name the adapter in use. When the browser drops the page's WebGPU device or WebGL context, the web build writes recovery copies, starts again on new graphics with the same app and uploads its textures again; if it can't, it removes the stale canvas and says to reload, which offers the copies back. The desktop app writes the copies and says to restart (#369). On Windows and Linux the tools' cursors are OS cursors (bitmaps rasterized once per display scale), which the system moves itself: painted into the window, they trailed the pointer by the frames waiting to be shown, and the window now queues one frame instead of two (#444). macOS and the web still paint them (macOS sizes cursor bitmaps in points, eframe has no bitmap cursors on the web). Pens and touch drive the tools as the mouse does, and a tap pressed and lifted within one frame clicks where it tapped (#491); pen pressure reaches the Liquify tools' Use Pressure Pen on Windows, while winit 0.30 reports none on macOS or Linux and egui none on the web. On Linux, see `docs/development.md` for pens under Wayland.- - **Tests and robustness:** ~2,840 automated tests: model-based property tests, a junk-parameter sweep over every command, import fuzzing (SVG, PDF, libraries), golden renders, and MCP end-to-end tests over stdio. Shipped code never panics (workspace lints and a rollback safety net; see `docs/development.md`).-- ## Milestones and estimates-- | # | Milestone | Status | Est. remaining, one agent (h) |- |---|---|---|---|- | M0 | Skeleton + vertical slice | ✅ done | — |- | M1 | Selection, transform, layers, MCP (common command tools, strict keys, session resources and version-aware result hints) | ✅ mostly done (transform reference point snaps to anchors/centres; rotated objects keep a rotated bounding box and their angle; Free Transform, Scale and Reflect along a rotated box pending) | 4–6 |- | M2 | Drawing tools + smart guides | ✅ mostly done (Flare, Reshape, Live Corners widget dragging and per-corner radii and kinds landed, on any path's corners; Shaper rough-shape recognition and orientation steps, the remaining Pen modifier nuances; Shaper Groups with editable sources and separate fill/stroke edits landed; construction widget/refinements pending) | 12–18 |- | M3 | Paint & appearance (swatches, color, gradient, stroke, appearance, transparency, styles) | ✅ done (M3.7–M3.98): swatches, groups, libraries, tints, Lab spots and Registration; Color Picker, Color panel, Color Guide, Color Themes, Edit Colors and Recolor Artwork; gradients that follow every transform, the annotator, linked stops, freeform gradients, focal points, gradients on strokes and Expand; stroke geometry, arrowheads, dashes fitted to corners, stroke on type, width profiles and the Width tool, Scale Strokes and preview bounds; Appearance targeting, container appearance, target circles, Expand Appearance; knockout, isolation, blend accuracy, CMYK blending, overprint, Attributes, masks and clipping, Flatten Transparency; graphic styles, links and libraries. Left: freeform and mixed spot/process gradients export as stops or process colours to SVG/PDF; confirm the Scale Strokes & Effects default | 4–8 |- | M4 | Files (native, SVG, PDF, raster, Export for Screens, clipboard interop) | ✅ done (M4.14–M4.98 on 2026-10-05): Save As/Save a Copy/Revert/templates, Data Recovery and background save, SVG import and export fidelity (units, text, symbols, filters, SVGZ, Preserve Editing, SVG Options), PDF import (colours, layers, masks, editable text, security) and export (presets, marks, bleed, ICC and output intent, raster effects, subset fonts, PDF/X-1a, X-3 and X-4, PDF layers, overprint, page thumbnails, fast web view, PDF 1.3), Place and Links, Package, EPS and DXF in and out, EMF/WMF, TIFF/BMP/Targa/PSD/GIF/PNG-8 export, Print and print presets, slices, Save for Web, Asset Export, clipboard flavours, File Info; AF.1–AF.4 add Affinity import (native layers, artboards, vectors, text and images from Affinity 1–3 files; the embedded preview only as a warned fallback; AF.4 expands current `.af` fixtures and every-board round-trip validation). Left: DWG (use DXF), PSD placement as layers, overprint read back from PDF, Affinity export, polish | 3–6 (existing scope; Affinity export unestimated) |- | M5 | Performance | 🟡 background render + caches + MT done; `vectorcraft-cli bench` and `vectorcraft-cli perf` (budget suite); file format v2 opens 3× faster (50k paths: 722 → 244 ms); raster effects (glows, shadows, blur, feather) no longer force the whole frame single-threaded (filtered offscreen per effect, verified equal to the single-threaded reference); effect-heavy demos need a clean-machine benchmark; dirty-region rendering, GPU backend spike pending | 15–25 |- | M6 | Path operations (Pathfinder, Shape Builder, offset…) | ✅ mostly done (Boolean precision on almost-horizontal edges fixed and the property tests made deterministic; Shape Builder gap detection, large-offset bug open) | 3–6 |- | M7 | Type (point/area/path, editing, styles, OpenType, threading, glyphs) | 🟡 Character/Paragraph Styles, per-paragraph paragraph attributes, Area Type Options (with Width/Height, Auto Size and Shrink Text to Fit; overflow reported to agents and vertical Align), type areas resized by their handles and reshaped with Direct Selection, threaded text, Fit Headline, Glyphs, OpenType panel, Find Font, installed system fonts in every font menu (fonts registered with Windows outside its font folders, the XDG and Flatpak host font folders on Linux, and fonts installed while the app runs, listed when it comes back to the front; searchable; the Character and Properties menus show each family's sample of the selected text, preview it live under the pointer or ↑/↓, filter by script and kind, list a family's styles, and star favourites; the Glyphs panel and Find Font's Replace With use the same menu without the live preview) and found by name on open/import, variable fonts' named instances as styles, CJK names in the UI, input methods (marked text in place, candidate window at the caret; Japanese IME), Text Wrap (offset, invert, both sides of an object; follows edits), Type on a Path effects and Options with draggable start/centre/end brackets (slide, flip), tab stops + Tabs panel (Above Text floats it over the selected text, its ruler at the canvas zoom so stops line up with the columns, #729), inline symbols in text (beyond parity), Hebrew/Arabic bidirectional text, Paragraph Direction, Every-line/Single-line Composer per object (ragged text too) done; tab leaders, spell check, vertical type pending | 45–60 |- | M8 | Transform & distort (Puppet Warp, Liquify tools, Envelopes, Blends, Perspective Grid) | ✅ done (M8.1–M8.20 on 2026-10-06, fidelity pass): Liquify Tool Options with one shared brush, pen pressure, hold-to-apply, a safe scope and incremental strokes; tool options that last; Puppet Warp rotation, multi-select, Control bar and a rest-shape session that follows Undo; Width tool on compound paths; Envelope dialogs with preview, Reset with Warp/Mesh, full Envelope Options, type/images/symbols/appearance/gradients/patterns distorted on canvas and in every export, warps that keep their frame, Edit Contents, mesh handles and Control bar; Blend Options, anchor-targeted Blend tool, editable spine, keys picked on the canvas, faithful interpolation and knockout; Perspective Grid with Define Grid, presets, lock/snap/rulers, widgets, the 1–4 plane switch, movable planes, Perspective Selection scale/copy/perpendicular/Transform Again, and type and symbols truly projected with Edit Text. Left: Anti-Alias and Preserve Shape output, warp-envelope point editing, brush interpolation in blends, Free Transform/Scale/Reflect along a rotated box | 2–4 |- | M9 | Live effects (+ 3D & Materials) | 🟡 2D effects done incl. Effect → Pathfinder and Color Adjustments; SVG Filters, Document Raster Effects Settings, 3D pending | 86–135 |- | M10 | Brushes, symbols, patterns, Repeat | 🟡 pattern swatches (5 tile types, Pattern Options, editing mode, SVG `<pattern>`/PDF export) and live Repeat (radial/grid/mirror) done; brushes/symbols in progress | 23–37 |- | M11 | Artboards & views (artboard panel/tool with Move Artwork for X/Y fields and Artboard Options, Trim View, middle-button pan, print tiling and the status bar's artboard navigator done; multiple windows, presentation polish) | 🟡 | 15–25 |- | M12 | Advanced color & art (CMYK/ICC, separations, Gradient Mesh, Live Paint, Image Trace, Graphs) | 🟡 Gradient Mesh, Live Paint, Image Trace (13 presets, 18 ms/1k² image; the Flat Logo mode places edges to a fraction of a pixel, restores sharp corners, snaps lines and circles, and refuses gradients), Recolor Artwork, colour management (ICC, soft proofing, separations preview), Graphs (all 9 tools, Graph Data/Type, group-selected series colours persist through regenerate/save/open) done; graph Design/Column/Marker designs pending | 6–10 |- | M13 | Automation (Actions ✅ record/playback, persisted; variables, scripting, batch) | 🟡 | 18–27 |- | M14 | 1.0 polish (preferences, shortcut editor, workspaces, accessibility, packaging for all OSes) | 🟡 Preferences, shortcut editor (chords with Shift and a punctuation key fire as typed), workspaces, a custom title bar on Windows/Linux with a Home button, content-sized dialogs, menus that scroll when longer than the window and macOS native menu dismissal done (M14.8); an experimental, unsupported Windows 7 x64 portable OpenGL build (not verified by maintainers); accessibility and broader Windows/Linux packaging/QA pending | 18–28 |- | — | Interaction fidelity pass (every tool's modifiers, Properties panel per context, isolation, nuance) | ⬜ | 60–90 |- | — | Hardening at scale (big-file corpus, fuzzing, cross-platform + browser QA) | 🟡 | 50–80 |- | | **Total to full parity** (one agent; re-derived from the [Parity estimate](#parity-estimate) table) | | **~320–500** |-- ## Parity estimate-- _Method (2026-10-02; M3 rows re-derived 2026-10-04, file, export, print, links and UI-chrome rows after M4 on 2026-10-05):_ Illustrator's feature surface is split into 22 areas, weighted by how much of the app (and of- real users' work) each represents. Each area is scored by depth of behaviour, not by presence of a menu item: an area- is 100% only when every feature in it behaves like Illustrator. Feature parity = Σ weight × score / Σ weight. Remaining- time is counted per area from what is missing, calibrated on measured throughput: in the last session one agent landed- about 20 medium features (Text Wrap, Graphs, Effect → Pathfinder, export baking…) in ~16 h wall clock including builds- and CI on a heavily loaded machine — about 0.8 h per medium feature; large subsystems (3D, raster filters, vertical type)- are counted bottom-up. The M3 rows (colour, strokes, appearance) come from a detailed 92-task M3 plan whose review- found more missing depth than the first estimate; all 92 tasks landed on 2026-10-04 and 2026-10-05 with 6–8 agents in parallel; its packages, planned at 5–11 h each, took- about 1–1.5 agent-hours each, so the other rows (estimated on the older scale) are likely high.-- | Area | Weight | Done | Missing (main items) | One agent (h) |- |---|---:|---:|---|---:|- | Selection, transform & align tools | 6 | 85% | Free Transform/Scale/Reflect along a rotated box, Start Global Edit, transform nuances (the rotated persistent bounding box is done) | 4–6 |- | Drawing tools | 7 | 85% | rough-square Shaper recognition and orientation steps corrected; editable Shaper Groups landed; remaining: Shaper construction widget/gesture refinements, pencil and the remaining pen modifier nuances, the freehand Tool Options' Keep selected, Alt to the Smooth tool, Blob Brush Merge Only with Selection and brush angle/roundness, Touch Type, Live Corners on corners between curved sides (and Relative rounding) | 8–13 |- | Path operations, Pathfinder, Shape Builder, Live Paint | 5 | 86% | Live Paint gap options, Shape Builder gap detection, options (Tool Options dialog, clicking a stroke in merge mode) and Shift-drag marquee | 3–6 |- | Colour, swatches, gradients, patterns, mesh, recolor | 7 | 96% | freeform and mixed spot/process gradients in SVG/PDF (exported as stops or process colours), pattern fills in Expand | 2–4 |- | Strokes, brushes, width profiles | 5 | 90% | the Art brush's Overlap, auto-generated Pattern brush corners and new tile art in Pattern Brush Options (Brush Options for every brush type done), brush libraries (generated in code), pen pressure on macOS (the windowing layer reports none there), brushes driven by pen tilt, bearing and barrel rotation (6D art pens) | 8–15 |- | Appearance, transparency, graphic styles, masks | 5 | 98% | raster effect reach in preview bounds (flattener presets apply in PDF, EPS and print) | 1–2 |- | Live vector effects | 5 | 85% | Outline Object, Pathfinder Hard/Soft Mix and Trap, SVG Filters, the Transform effect's Transform Objects/Patterns and Scale Strokes & Effects options | 6–10 |- | Raster effects (Effect Gallery, Document Raster Effects Settings) | 4 | 35% | ~36 Photoshop-style filters (Artistic, Brush Strokes, Sketch, Stylize), Smart Blur's Edge Only / Overlay Edge modes, Glass's and Texturizer's Load Texture and the Effect Gallery; Document Raster Effects Settings, raster effects in PDF, the pixel-filter pipeline, Radial Blur, Smart Blur, Unsharp Mask, Glowing Edges, Distort (Diffuse Glow, Glass, Ocean Ripple), Pixelate (Color Halftone, Crystallize, Mezzotint, Pointillize), Texture (Craquelure, Grain, Mosaic Tiles, Patchwork, Stained Glass, Texturizer) and Video (De-Interlace, NTSC Colors) are done | 19–31 |- | 3D and Materials | 4 | 0% | Extrude & Bevel, Revolve, Inflate, Rotate, lighting, materials (software renderer) | 50–80 |- | Type core | 9 | 80% | Middle Eastern features beyond bidi layout and Paragraph Direction (Character Direction, digit types, kashidas, the Middle Eastern composers, editable bidirectional SVG text, a split caret where directions meet); Hyphenation… and Justification… options (Every-line Composer for justified and ragged text, per object, is done; it is tuned by eye, not yet compared side by side with Illustrator; mixed type sizes in a paragraph still break single-line), Optical Margin Alignment, paragraph spacing limit for vertically justified area type, hidden characters, paragraph attributes in the Type tool's copy and paste (the characters keep their styles, the paragraphs take the destination's), mixed-value display in the Paragraph panel for a selection across differing paragraphs, Transform Again after a type-area resize (it scales the type), partial selection of type-area anchors by marquee | 14–19 |- | Type advanced | 4 | 50% | CJK composition for vertical type (ruby, mojikumi beyond Line-end Punctuation Half Width — the other sets (and their paragraph-start bracket and indent rules), custom kinsoku sets (beyond Hard, Soft and None) and the Mojikumi Settings dialog —, proportional vertical metrics, manual tate-chu-yoko), variable font axis sliders (named instances are styles), tab leaders, spell check (open dictionary), Touch Type, Retype; vertical point/area/path type and Type Orientation have initial support (beyond parity, not scored: inline symbols in text) | 20–28 |- | Symbols, blends, envelopes, Repeat, perspective | 5 | 88% | symbol libraries (original), dynamic symbols, envelope Anti-Alias/Preserve Shape output and warp point editing, brush interpolation in blends (M8 fidelity pass done) | 5–8 |- | Image Trace, graphs, image tools | 3 | 72% | graph Design/Column/Marker artwork (series colours set with Group Selection are done), Create Object Mosaic, per-feature stroke/fill choice and varying widths in Image Trace's Create Strokes (Vector Halftone and the Image Trace View modes, Palette and Create Strokes are done) | 6–10 |- | Layers, artboards, document setup | 5 | 82% | Layers panel: a confirmation before deleting layers that hold art, Collect for Export, row context menus, the Layer Options dialog for several rows with mixed values, Paste Remembers Layers for sublayers, drag-scrolling a long panel while dragging rows; artboard preset polish (Move Artwork for artboard X/Y edits, Rearrange All Artboards, Document Setup, New Document and the rest of the Layers panel are done) | 4–7 |- | View & navigation | 3 | 70% | New View/Edit Views, multiple windows/arrange, Snap to Pixel/Glyph (print tiling is done) | 9–14 |- | Guides, grids, smart guides, snapping, rulers | 3 | 85% | global/video rulers, Spacing Guides' distance readouts and spacing for resized or drawn art, Smart Guides' angle and distance readouts while drawing, Alt swapping a ruler guide's orientation, ruler guides selected together with art (marquee, Shift-click), ruler guides as Layers rows with their own lock and hide (#451: Lock Guides locks them all; Make Guides paths are Layers rows already) (dragging existing guides is done, #414; new guides snapping to side midpoints and artboards, and artboard guides, #451; the drawing tools snapping, with Construction Guides, #506; Spacing Guides for moves, #394; moves snapping to the grid, #740; ruler guides pulling drawn points with Smart Guides on, and "center" and "anchor" labels while hovering with the Selection tool, #812) | 2–4 |- | File formats | 6 | 85% | Affinity export, and the rest of Affinity import (effects, adjustments, brushes, master pages, live symbol instances), DWG (no open spec: DXF instead), PSD placement as layers (Photoshop Import Options; the merged image is done), EPS checked against more real files users send (Inkscape files open as vectors; other generators' constructs are tested with programs written from the PostScript Language Reference only; CID-keyed CJK type and `CCITTFaxDecode` images not read), legacy `.ai` files saved without the prolog that defines their operators (their own operator set isn't read yet), the rest of Illustrator's editing data (appearances and live effects, symbols, pattern fills, brushes, placed files: #637), the remaining fidelity polish; EPS, DXF, EMF/WMF, TIFF, BMP, Targa, PSD export, SVGZ, PDF security, PDF/X, PDF layers, presets and Affinity import are done | 6–10 (existing scope; Affinity export unestimated) |- | Export for Screens, Asset Export, slices, Save for Web | 3 | 85% | polish only (all four are done) | 2–4 |- | Print, colour management, separations, flattener | 3 | 80% | print preview fidelity (flattener presets in PDF and print, overprint in PDF and composite print, Print dialog, presets, PostScript, marks, separations, Print Tiling, print overprint/flattener/bitmap options and printer profile are done) | 1–2 |- | Automation | 3 | 65% | scripting surface, batch (Variables: text/visibility variables bound to objects, an object may carry several, dataset rows applied in one undo step, panel and Window › Variables with dialogs; image/graph kinds and dataset import/export open) | 6–10 |- | UI chrome (panels, contextual Properties, workspaces, prefs) | 6 | 80% | macOS native menu dismissal fixed (M14.8); Variables, Links, Asset Export, CSS Properties, Attributes and the canvas context menu are done; remaining: SVG Interactivity, Properties per context, Consolidate All Windows, floating panels outside the app window and docked into any group, context menus beyond the canvas, about 17 Preferences options stored but not yet acted on (#394: Highlight Alternate Glyphs, Open Documents As Tabs, Real-time Drawing, hyphenation language, Appearance of Black, devices…) | 13–20 |- | Libraries, Links, Package | 2 | 82% | the Libraries panel is local only (no cloud by design: libraries are files on this machine) and has no shared libraries, linked graphics or gradients and patterns as items yet; its graphics, colours and text styles (#745) and its search, groups and library export/import as `.vclibrary` files (#926) are done; Links and Package are done; placed VectorCraft documents are done (linked by default, vectors in every output, previews, Break Link, Expand, Edit Original, refresh on save) | 2–3 |- | **Feature parity** | **103** | **~75%** | | **~210–330** |- | Interaction-fidelity pass (side by side with Illustrator: every tool modifier, cursor, dialog, Properties context) | | | | 60–90 |- | Hardening (big-file corpus, fuzzing, cross-platform and browser QA, accessibility, packaging) | | | | 50–80 |- | **Full parity** | | **~56%** | | **~320–500** |-- With 4–6 agents working on disjoint crates (as the layering allows) the wall-clock time divides by roughly 3.5–4- (integration, review and shared files such as `menus.rs` serialize some work): **~55–95 h** to feature parity,- **~80–145 h** to full parity.-- _Inventories (2026-10-07):_ 13 menu items still stubbed (`todo(…)` in `crates/ui-egui/src/menus.rs`); every tool- implemented except Touch Type; 51 panel modules; Illustrator-style live- effects ~44/54, Photoshop-style raster effects ~4/56, 3D 0/5; ~2,840 tests; ~221k lines of Rust.-- _Where we already beat Illustrator:_ exact curve booleans, off-thread multithreaded rendering, undo that never runs out,- lossless SVG/PDF export of live effects with SVG filters, a documented JSON format, the same app on the web, and every- command, gesture and dialog drivable by agents (MCP, CLI, control channel).-- ## Out of scope (by design or by law)- - **Native `.ai` private data, beyond its structure:** the app's own editing copy of a file (an EPS after its `%%EOF`, a `.ai`'s `AIPrivateData` streams, Zstandard or zlib, the EPS's in ASCII85) is not documented as a whole. VectorCraft reads its structure: layers and sublayers (names, order, visibility, lock, printing, preview, dimming, colour), groups as they were nested, compound paths, clipping groups and layer clipping, object names, hidden and locked objects, fills and strokes (grey, CMYK, RGB, named and spot colours), linear and radial gradients, opacity, blend modes, isolation and knockout, embedded images with their alpha channel, guides, and every artboard where it is. An object with several fills or strokes, effects or a brush comes in as its drawn look (a group named after it). Type is made from the file's text document, whole and editable, shown or not: point type, area type (a story in several frames as threaded type) and type on a path, with its characters, fonts, size, leading, tracking, scaling, baseline shift, fill and stroke (grey, RGB or CMYK), alignment, indents and paragraph spacing; the page's drawing of it (often in pieces) is left out. Where the text document can't say (a frame of another kind, or a document that doesn't agree with the page), type that shows comes from the page into its text object's place (no group around it), and hidden type is left out with a note. Kerning, underline and the other character and paragraph options aren't read yet. A `.ai` saved without PDF compatibility (a placeholder page) opens from its editing data alone, its point type, area type and type on a path made from the text document. Symbols, pattern fills, placed files and anything else it doesn't read make the file come in as its page (on a layer that doesn't show, they are left out of that layer), with a warning saying what. The layers' art is also compared with the page (by lightness, so colours written as their CMYK equivalents compare alike, and by whether a pixel is inked at all); the page is used when they differ by more than 5%, where one draws an object the other doesn't (away from type, whose lines may be laid out afresh), and when an EPS whose page is its art's box has art printed outside it (#735). `textAs: "outlines"` opens a `.ai` whose type shows from its PDF part, which has the outlines; `editingData: false` opens any of them as its page or PDF part only, for print pipelines (#735). A file whose import left something out (hidden text, art or layers) is never written over by an export or Save As to its own path unless `acknowledgeLoss: true` (`convert --replace-lossy`), so the original keeps what the document lacks. Where a `.ai` can't be read that way (or its layers are turned off in the import options), we read its PDF-compatible part, so Illustrator-only live objects arrive as appearance, and plain groups arrive ungrouped: that part draws each object on its own and marks only layers, clipping groups and groups with opacity, blending or a mask (those come back). Art outside the artboards isn't in that part at all (Illustrator's PDF part leaves it out), so it doesn't open; the import says so in a note (#472). That part also has no paragraphs: area type is written line by line, and comes back as area type only where its font is installed and lays the lines out with the same breaks, else as a point type object per line (#508). Art off the page that a PDF does draw opens on the pasteboard.- - **Adobe cloud services** (Libraries sync, Adobe Fonts, Firefly/generative): these are pluggable provider APIs, not built in.- - **Adobe's bundled assets** (swatch/brush/symbol libraries, presets, icons): ours are original.-- ## Where we aim to be better than Illustrator- - **Speed:** off-thread multithreaded rendering, instant startup, a responsive UI on huge files.- - **Robustness:** exact curve booleans (no "cannot perform operation"), property-tested undo/redo and file round trips.- - **Openness:** a documented native format, first-class SVG, and the same app in the browser.- - **Automation:** every command, gesture, dialog and widget is drivable by agents (JSON channel + MCP), with headless batch mode.-- ## How to update this file- After each milestone task lands, update the status column and remaining estimates, and move items into "Shipped so far". Keep estimates honest: re-derive them from what remains, never from wishful velocity.+ | **Feature breadth** (Illustrator's menu items, tools, effects, formats exist) | **~88%** | measured in part: menu items 348/375 wired (92.8%), tools 89/92, Illustrator effects 44/50, Photoshop effects 28/57, 3D 1/4 (initial Revolve) |+ | **Feature depth** (weighted by use, scored by behaviour) | **~75%** | estimated |+ | **To beta** | **~170–270 h** one agent · ~50–80 h with 4–6 agents | estimated |+ | **To full parity** | **~360–590 h** one agent · ~95–165 h with 4–6 agents | estimated |++ **Readiness by audience** (all estimated; method in [target-app-parity.md](docs/target-app-parity.md#ready-for-real-work)):++ | Audience | Ready % | Opus 5.5 agent hours to ~95% (one agent) | With 4–6 agents | Work that dominates |+ |---|---:|---:|---:|---|+ | **Full Illustrator** (ready for real work; decides the stage) | **~62%** (57–67%) | **~340–560 h** | ~95–160 h | the mainstream work below, plus 3D (50–85 h), raster effects (24–40 h), advanced type (20–28 h), generative AI (30–60 h), localization (70–110 h) and ecosystem |+ | **Mainstream illustrator** | **~65%** (60–70%) | **~230–380 h** | ~65–110 h | the interaction-fidelity pass (60–90 h), hardening and QA (30–50 h), stability (20–35 h), performance budgets (15–25 h), `.ai` exchange (10–20 h), the remaining depth of the everyday areas |+ | **Essentials user** | **~75%** (70–80%) | **~60–105 h** | ~25–45 h | launch and stability on Windows (20–35 h), in-app help and onboarding (8–15 h), basic QA (10–15 h), Shape Builder regions (4–8 h), UI polish |++ Hours are Opus 5.5 agent wall-clock hours, calibrated from this repo's merged-PR timestamps (e.g. 0.7–1.2 h per+ Photoshop-style filter, ~0.8 h per medium feature); see [calibration](docs/target-app-parity.md#calibration).+ The installed Illustrator was **not** inspected: the clean-room rule in [`AGENTS.md`](AGENTS.md) forbids it, so+ everything is measured from our code against Illustrator's public documentation.++ ## By dimension++ | Dimension | % | One agent (h) | Doc |+ |---|---:|---:|---|+ | Features (depth) | 75% | 220–360 | [target-app-parity.md](docs/target-app-parity.md) |+ | UI/UX fidelity | 55% | 70–110 | [ui-parity.md](docs/ui-parity.md) |+ | File formats | 75% | 15–30 | [file-format-parity.md](docs/file-format-parity.md) |+ | Hardware (GPU, pen, touch, displays) | 35% | 25–45 | [hardware-parity.md](docs/hardware-parity.md) |+ | Localization (12 key languages) | 54% (measured) | 70–110 | [localization-parity.md](docs/localization-parity.md) |+ | Performance | ~60% | 15–25 | [gaps.md › G15](docs/gaps.md#g15-performance-budgets-and-a-gpu-renderer) |+ | Stability | ~60% | 30–50 | [gaps.md › G10](docs/gaps.md#g10-launch-and-stability-on-real-machines) |+ | Platforms | 80% | 15–25 | [gaps.md › G8](docs/gaps.md#g8-hardening-at-scale) |+ | Ecosystem and plug-ins | 15% | 30–60 | [gaps.md › G17](docs/gaps.md#g17-ecosystem-third-party-plug-ins) |+ | AI features (generative) | 0% | 30–60 + owner decision | [gaps.md › G18](docs/gaps.md#g18-generative-ai-features) |+ | Agent automation | beyond Illustrator | — | [mcp.md](docs/mcp.md) |++ The dimension hours overlap (feature rows hold some UI, format and AI work), so they don't add up to the total.++ ## Features++ | Area | % | One agent (h) |+ |---|---:|---:|+ | Selection, transform & align | 85% | 4–6 |+ | Drawing tools | 85% | 8–13 |+ | Path operations, Pathfinder, Shape Builder, Live Paint | 80% | 4–8 |+ | Colour, swatches, gradients, patterns, mesh, recolor | 92% | 4–7 |+ | Strokes, brushes, width profiles | 88% | 8–15 |+ | Appearance, transparency, graphic styles, masks | 97% | 1–2 |+ | Live vector effects | 85% | 6–10 |+ | Raster effects (Effect Gallery) — [effects-parity.md](docs/effects-parity.md) | 48% | 24–40 |+ | 3D and Materials | ~8% | 50–85 |+ | Type core — [type-parity.md](docs/type-parity.md) | 80% | 14–19 |+ | Type advanced (CJK, spelling, Touch Type) | 50% | 20–28 |+ | Symbols, blends, envelopes, Repeat, perspective | 85% | 6–10 |+ | Image Trace, graphs, image tools | 75% | 5–8 |+ | Layers, artboards, document setup | 78% | 5–8 |+ | View & navigation | 70% | 9–14 |+ | Guides, grids, smart guides, snapping | 80% | 4–7 |+ | File formats — [file-format-parity.md](docs/file-format-parity.md) | 75% | 10–20 |+ | Export for Screens, Asset Export, slices | 85% | 2–4 |+ | Print, colour management, separations | 80% | 2–4 |+ | Automation (Actions, Variables, scripting) | 60% | 8–14 |+ | UI chrome (panels, Properties, preferences) | 80% | 13–20 |+ | Libraries, Links, Package | 82% | 2–3 |+ | Generative AI | 0% | 30–60 |++ Weights, evidence and the missing items per area: [target-app-parity.md](docs/target-app-parity.md#feature-areas).++ ## Languages++ | Language | Code | Status | Translated |+ |---|---|---|---:|+ | English | `en` | full | 100% |+ | Simplified Chinese | `zh-hans` | partial (messages in English) | 85% |+ | Spanish | `es` | full | 100% |+ | Hindi | `hi` | none | 0% |+ | Arabic | `ar` | none (no right-to-left interface) | 0% |+ | French | `fr` | full | 100% |+ | Portuguese (Brazil) | `pt-br` | partial | 68% |+ | Indonesian | `id` | none | 0% |+ | Japanese | `ja` | full | 100% |+ | German | `de` | full | 98% |+ | Korean | `ko` | none | 0% |+ | Vietnamese | `vi` | none | 0% |++ Also shipped: Traditional Chinese (partial, 80%), Italian, Russian and Ukrainian (full), Czech (menus only).+ No catalog has had a native speaker's review. Details: [localization-parity.md](docs/localization-parity.md).++ ## Upcoming++ Ranked; detail in [docs/roadmap.md](docs/roadmap.md) and [docs/gaps.md](docs/gaps.md).++ 1. **Interaction-fidelity pass** (G1), tool by tool from [ui-parity.md](docs/ui-parity.md): 60–90 h.+ 2. **`.ai` files from real users** (G9): layer structure, guides, speed: 10–20 h.+ 3. **Launch and stability on real machines** (G10): 20–35 h.+ 4. **Core-tool correctness** (G11: Shape Builder regions, Asset Export borders): 8–15 h.+ 5. **Raster effects** (G2) alongside: 29 filters and the Effect Gallery, 24–40 h.+ 6. **Then:** type core and advanced type (G4), the Illustrator 2026 additions (G13), 3D (G3).++ ## Progress log++ | Date | What landed |+ |---|---|+ | 2026-10-11 | Effect › Brush Strokes: Accented Edges, Angled Strokes, Crosshatch, Dark Strokes, Ink Outlines, Spatter, Sprayed Strokes, Sumi-e (G2). Command parameters from agents and files checked before anything changes (paint, place, cuts, dashes, crop, asset ids, anchors, paths, distort; #984–#999); command dialogs keep whole numbers whole, so Create Object Mosaic takes the tiles typed (#1000); stepper arrows take Shift (×10) and Ctrl/Cmd (÷10) like the arrow keys (#991). Exports and Rasterize supersample Art Optimized edges, so shapes meeting edge to edge leave no seam (#983). Character and paragraph styles take leading, kerning, mojikumi and the other attributes left out at their defaults (#1001). Drawing, typing and pasting with no layer shown and unlocked is refused instead of adding art to a hidden or locked layer (#1002). MCP `add_text` gives type on or in a path the colour asked for (#1003). MCP `screenshot` of a connected app renders the artboard asked for (#1004). `vectorcraft-cli run` ends quietly when its reader closes early (#1005). Select › All on Active Artboard selects on the artboard made active, not always the first (#1006). Reverse Gradient keeps off-centre midpoints, mirrored (#1007). A polar grid with no radial dividers draws none (#1008). Use Precise Cursors also covers the Pen's join pointer (#1009). SVGs with one absolute and one unitless root side import at their size, unstretched (#1010). DXF US survey inches, yards and miles open at their size and name (#1011). A file placed into a document with no other links follows its first change even while the app sits idle (#1031). PDF import keeps the style a font name says when the file doesn't embed the font (#1023). Shift selects ruler guides and art together, and Delete removes both (#1022). Open filled paths are hit by their fill on every side, the rotate cursor bows around the corner it is at, the flip icons match their flips, the Color Picker previews on the selection, and Properties › Transform reaches Scale Corners and Scale Strokes & Effects (#1036). Offset Path and the other booleans finish on outlines where the sweep used to loop until memory ran out (linesweeper 0.5, #1028). Floating panel groups stack into sets that move together, collapse to their tabs and dock as extra dock columns that scroll (#1020). Ruler guides live on layers: listed in the Layers panel, shown, hidden, locked, duplicated, merged and deleted with their layer, and moved between layers (#1021). A `.ai` whose editing data uses global process colours (`Xk`/`XK`) or pattern fills keeps its sublayers: the colours come in as global swatches at their tint, the patterns as pattern swatches (#1025). A `.ai` in PostScript form opens through its layers, read from the program itself, also when it names the prolog defining its operators without including it, as Rhino and other CAD apps write it (#1027). A fill or stroke chosen while the Type tool has characters selected colours just those characters (#1063). Scaled type shows its scaled font size, leading, baseline shift and horizontal scale in the Character panel, and a size typed there is the size you get (#1034). Character panel menu › Proportional Metrics sets Japanese and Chinese full-width glyphs on the font's proportional widths in horizontal type (#966). Align, Distribute, Move, Arrange, Lock, Hide, Ungroup and other Object commands that would change nothing no longer record an undo step or mark the document changed (#1060). Spot colours defined in Lab open with their Lab values from `.ai` and PDF files, instead of as wrong RGB colours or their CMYK equivalents (#1032). Build scripts leave a generated source they wouldn't change untouched, so the next build doesn't compile most of the workspace again where file times lose their sub-second part (#1051). A fill colour recolours the gradient mesh point last clicked with the Mesh tool or Direct Selection, and a Mesh tool click on a mesh's point selects that mesh (#1052). The All Tools drawer stays two tools wide instead of filling a wide window (#1054). Text Wrap's Make, Release and Options refuse a list of object ids with a malformed or unknown id instead of skipping it (#1055). A freeform gradient line with a malformed point index is refused instead of being shortened to the indices that are valid (#1056). The Corners dialog (`ui.corners`) refuses a malformed object id or a listed anchor that isn't a corner instead of editing the selection or the other corners (#1057). New View refuses a centre that isn't exactly [x, y] and a rotation that isn't a number, instead of trimming the one and saving the other as 0° (#1058). The command sweeps try junk scale, spacing and artboard values too, which they had skipped since before those bugs were fixed (#1059). EPS and PostScript `arc` and `arcn` with huge angles no longer hang the import, and an arc whose angles are whole turns apart is empty, as the PostScript reference defines it (#1062). Align and Distribute Spacing keep the key object still also when it is inside a selected group or compound path (#1074). |+ | 2026-10-10 | Initial live Revolve (Effect › 3D and Materials, #846, #605), in its own `three-d` crate. Progress docs re-measured and restructured to the craftrules standard (this page, `docs/target-app-parity.md`, `gaps.md`, `ui-parity.md`, the format, hardware, localization, effects and type checklists). Same day: v0.8.0; Effect › Distort, Pixelate and Texture filters (13); German interface; Variables (data merge); Graph Type value axes and tick marks; restart when the first frame never reaches the screen (#964) |+ | 2026-10-09 | Radial Blur, Smart Blur, Unsharp Mask (gap 2 begins); 340 commits, the busiest day |+ | 2026-10-08 | v0.5.0–v0.7.0; community contributions: Pen and shape-tool modifiers, Layers, Artboards, Japanese composition, Hebrew/Arabic type, interface languages, saved selections |+ | 2026-10-07 | v0.4.0; issue fixes; Layers panel rework |+ | 2026-10-06 | M8 transform and distort fidelity pass (M8.1–M8.20) |+ | 2026-10-05 | M4 files done (M4.14–M4.98); M3 paint and appearance done (92 tasks over two days) |+ | 2026-10-02 | First weighted parity estimate (22 areas); look and feel measured against public screenshots |+ | 2026-10-01 | Renamed from DrawCraft to VectorCraft |+ | 2026-09-30 | Repository history begins |++ The full pre-standard record of what landed is kept in [docs/roadmap.md](docs/roadmap.md#progress-log-before-the-progress-docs-standard).++ ## Revision history++ | Date | Change | Summary |+ |---|---|---|+ | 2026-10-10 | minor | Method aligned with the standard, no new evidence: full ready for real work is the additive weighted sum, ~62%; hours per audience; beta ~13 points away |+ | 2026-10-10 | minor | Added the essentials-user readiness score (~75%) |+ | 2026-10-10 | minor | Ready for real work re-examined against the issue tracker and user feedback: 50% → 55% (full), 65% mainstream added; see target-app-parity.md |+ | 2026-10-10 | minor | Applied the core-workflow gate (docs/roadmap.md › Alpha gate): passes, stage stays alpha |+ | 2026-10-10 | major | Re-measured against Illustrator 2026 (30.x) from code counts, 71 open issues and public docs; stage set to alpha; moved the parity estimate, honest assessment and "Shipped so far" to `docs/target-app-parity.md`, the gap list to `docs/gaps.md`, milestones to `docs/roadmap.md`, the `.ai` scope to `docs/file-format-parity.md` |+ | 2026-10-05 | major | Honest assessment by dimension and the prioritized gap list |+ | 2026-10-02 | major | First 22-area weighted parity estimate |diff --cc apps/vectorcraft/src/main.rsindex 4589a2e29,277788c14..e277f0e3f--- a/apps/vectorcraft/src/main.rs+++ b/apps/vectorcraft/src/main.rs@@@ -189,7 -189,7 +189,42 @@@ fn read_prefs() -> Option<vectorcraft_ureturn None;}let bytes = prefs_path().and_then(|p| std::fs::read(p).ok()).or_else(|| legacy_prefs_path().and_then(|p| std::fs::read(p).ok()))?;-- serde_json::from_slice(&bytes).ok()++ decode_saved_prefs(&bytes)++}++++/// Recover only optional persisted docking metadata. Runtime UiState and command decoding++/// remains strict, and an unreadable workspace layout cannot discard unrelated preferences.++fn decode_saved_prefs(bytes: &[u8]) -> Option<vectorcraft_ui_egui::UiState> {++ use serde_json::{Map, Value, json};++++ fn recover(object: &mut Map<String, Value>, hidden_key: &str) {++ if let Some(layout) = object.get("docking")++ && serde_json::from_value::<vectorcraft_ui_egui::UiState>(json!({"docking": layout})).is_err()++ {++ object.remove("docking");++ }++ if let Some(hidden) = object.get_mut(hidden_key) {++ if let Value::Object(entries) = hidden {++ entries.retain(|panel, location| {++ serde_json::from_value::<vectorcraft_ui_egui::UiState>(json!({"docking_hidden": {panel: location}})).is_ok()++ });++ } else {++ object.remove(hidden_key);++ }++ }++ }++++ let mut value: Value = serde_json::from_slice(bytes).ok()?;++ let object = value.as_object_mut()?;++ recover(object, "docking_hidden");++ if let Some(Value::Array(workspaces)) = object.get_mut("custom_workspaces") {++ for workspace in workspaces {++ if let Some(object) = workspace.as_object_mut() {++ recover(object, "dockingHidden");++ }++ }++ }++ serde_json::from_value(value).ok()}fn load_prefs(app: &mut VectorcraftApp, saved: Option<vectorcraft_ui_egui::UiState>) {@@@ -634,6 -649,6 +684,51 @@@ mod testsvectorcraft_ui_egui::UiState { engine_prefs, ..Default::default() }}++ #[test]++ fn unreadable_saved_docking_keeps_preferences_and_every_workspace() {++ use serde_json::json;++ let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), Default::default());++ app.run("window.panel.float", json!({"panel":"layers"})).unwrap();++ app.ui.toolbar = false;++ app.ui.engine_prefs = json!({"interfaceLanguage":"fr", "uiBrightness":"light"});++ app.ui.custom_workspaces =++ vec![vectorcraft_ui_egui::workspaces::capture(&app.ui, "Future"), vectorcraft_ui_egui::workspaces::capture(&app.ui, "Valid")];++ let original = serde_json::to_value(&app.ui).unwrap();++ let valid_location = original["docking_hidden"]["layers"].clone();++ assert!(valid_location.is_object());++ for invalid_layout in [json!({"root":{"FutureNode":{}},"floating":[]}), json!(false)] {++ for invalid_hidden in [json!({"layers":{"placement":{"FuturePlacement":{}}},"swatches":valid_location}), json!(["malformed"])] {++ let mut raw = original.clone();++ raw["docking"] = invalid_layout.clone();++ raw["docking_hidden"] = invalid_hidden.clone();++ raw["custom_workspaces"][0]["docking"] = invalid_layout.clone();++ raw["custom_workspaces"][0]["dockingHidden"] = invalid_hidden.clone();++ assert!(serde_json::from_value::<vectorcraft_ui_egui::UiState>(raw.clone()).is_err(), "runtime serde stays strict");++ let loaded = decode_saved_prefs(&serde_json::to_vec(&raw).unwrap()).unwrap();++ assert_eq!(loaded.engine_prefs, app.ui.engine_prefs);++ assert!(!loaded.toolbar);++ assert!(loaded.docking.is_none());++ assert!(!loaded.docking_hidden.contains_key("layers"));++ if invalid_hidden.is_object() {++ assert_eq!(serde_json::to_value(loaded.docking_hidden.get("swatches")).unwrap(), valid_location);++ } else {++ assert!(loaded.docking_hidden.is_empty());++ }++ assert_eq!(loaded.custom_workspaces.len(), 2);++ assert_eq!(loaded.custom_workspaces[0].name, "Future");++ assert!(loaded.custom_workspaces[0].docking.is_none());++ assert!(!loaded.custom_workspaces[0].docking_hidden.contains_key("layers"));++ assert_eq!(serde_json::to_value(&loaded.custom_workspaces[1]).unwrap(), original["custom_workspaces"][1]);++ }++ }++ let roundtrip = decode_saved_prefs(&serde_json::to_vec(&original).unwrap()).unwrap();++ assert_eq!(serde_json::to_value(roundtrip).unwrap(), original);++ assert!(++ decode_saved_prefs(&serde_json::to_vec(&json!({"toolbar":"invalid"})).unwrap()).is_none(),++ "unrelated fields retain normal strict parsing"++ );++ }++#[test]fn the_system_title_bar_preference_keeps_the_window_decorations() {// Preferences › User Interface › System Title Bar gives the window back its systemdiff --cc crates/ui-egui/src/dock.rsindex bdff9ef0d,899d56c47..62cf2df93--- a/crates/ui-egui/src/dock.rs+++ b/crates/ui-egui/src/dock.rs@@@ -23,6 -24,12 +24,12 @@@ fn column_left_id() -> egui::Idegui::Id::new("dock-icon-column-left")}+ /// Where the dock's left edge was drawn last: the icon column's, or the leftmost dock column's+ /// (egui temp memory, one frame old). Popped-out panels open left of it.-fn dock_left_id() -> egui::Id {++pub(crate) fn dock_left_id() -> egui::Id {+ egui::Id::new("dock-left")+ }+/// Collapse the tabbed group to icons or expand it again (`window.collapseDock`). Expanding while/// one of its panels is popped out shows that panel's tab instead.pub fn set_collapsed(app: &mut VectorcraftApp, collapsed: bool) {@@@ -64,6 -71,6 +71,7 @@@ fn panel_icon(app: &mut VectorcraftApp// Its own id: the icons below it move up when it floats, and mustn't take over its drag.let (_, rect) = ui.allocate_space(vec2(30.0, 30.0));let resp = widgets::paint_icon_button(ui, ui.interact(rect, ui.id().with(("panel-icon", id)), Sense::click_and_drag()), icon, label, open);++ resp.widget_info(|| egui::WidgetInfo::selected(egui::WidgetType::SelectableLabel, ui.is_enabled(), open, tl!(label)));if resp.clicked() {app.ui.open_panel = if open { None } else { Some(id.to_string()) };}diff --cc crates/ui-egui/src/floating.rsindex ce57a999a,d435a7a06..cd5ec9f6d--- a/crates/ui-egui/src/floating.rs+++ b/crates/ui-egui/src/floating.rs@@@ -65,6 -85,6 +86,15 @@@ fn move_id() -> IdId::new("floating-move")}++fn suppressed_id() -> Id {++ move_id().with("suppressed-until-primary-press")++}++++fn gesture_allowed(ctx: &egui::Context) -> bool {++ ctx.input(|input| input.focused && !input.key_pressed(egui::Key::Escape))++ && !ctx.data(|data| data.get_temp::<bool>(suppressed_id()).unwrap_or(false))++}++/// The dock (tabbed group and icon column) as last drawn: a group dropped there docks.pub(crate) fn dock_rect_id() -> Id {Id::new("floating-dock-rect")@@@ -173,9 -266,9 +276,12 @@@ pub fn clamp(pos: [f32; 2], size: Vec2}/// Start moving `what` with the pointer, held `grab` from its top-left corner.-fn start(ctx: &egui::Context, what: Moving, grab: Vec2) {+fn start(app: &VectorcraftApp, ctx: &egui::Context, what: Moving, grab: Vec2) {++ if !gesture_allowed(ctx) {++ return;++ }let Some(from) = ctx.input(|i| i.pointer.press_origin().or(i.pointer.interact_pos())) else { return };- ctx.data_mut(|d| d.insert_temp(move_id(), Move { what, grab, from }));+ ctx.data_mut(|d| d.insert_temp(move_id(), Move { what, grab, from, original: app.ui.clone() }));}/// Where the pointer holds a group torn off by a press `left` points right of where the group's@@@ -188,39 -281,23 +294,42 @@@ pub(crate) fn strip_grab(ctx: &egui::Co/// Float `ids` under the pointer, held `grab` from the new group's top-left corner, and carry on/// moving them with the pointer (a tab or group dragged out of the dock or out of its group).pub(crate) fn tear(app: &mut VectorcraftApp, ctx: &egui::Context, ids: &[&'static str], active: &'static str, grab: Vec2) {+ // A restored popout may retain its drag response in the cancellation frame. Do not+ // immediately tear it out again after track restored the gesture's original layout.- if ctx.input(|input| !input.focused || input.key_pressed(egui::Key::Escape)) {++ if !gesture_allowed(ctx) {+ return;+ }let Some(at) = ctx.input(|i| i.pointer.interact_pos()) else { return };- float(&mut app.ui, ids, active, at - grab);- start(ctx, Moving::Panel(active), grab);+ let original = app.ui.clone();+ let pos = at - grab;+ if let Err(error) = app.run("window.panel.float", json!({"panel":active,"group":ids.len() > 1,"x":pos.x,"y":pos.y})) {+ app.ui.status = error;+ return;+ }+ start(app, ctx, Moving::Panel(active), grab);+ ctx.data_mut(|data| {+ if let Some(mut drag) = data.get_temp::<Move>(move_id()) {+ drag.original = original;+ data.insert_temp(move_id(), drag);+ }+ });}/// The Tools panel's title bar was pressed (`title`, the panel's bounds `bounds`): docked, dragging/// it out of the panel floats the panel under the pointer; floating at `floating`, a drag moves it.pub(crate) fn drag_tools(app: &mut VectorcraftApp, ctx: &egui::Context, title: &egui::Response, bounds: Rect, floating: Option<Pos2>) {++ if !gesture_allowed(ctx) {++ return;++ }let Some(at) = ctx.input(|i| i.pointer.interact_pos()) else { return };match floating {- Some(pos) if title.drag_started() => start(ctx, Moving::Tools, at - pos),+ Some(pos) if title.drag_started() => start(app, ctx, Moving::Tools, at - pos),None if title.dragged() && !bounds.contains(at) => {// Held where the press grabbed the title bar.let grab = ctx.input(|i| i.pointer.press_origin()).map_or(vec2(10.0, 7.0), |p| p - bounds.min);let p = at - grab;- app.ui.toolbar_pos = Some([p.x, p.y]);+ start(app, ctx, Moving::Tools, grab);+ app.ui.toolbar_pos = Some([p.x, p.y]);- start(ctx, Moving::Tools, grab);}_ => {}}@@@ -231,15 -308,55 +340,87 @@@ pub(crate) fn drop_target(app: &Vectorclet zone = |id: Id| ctx.data(|d| d.get_temp::<Rect>(id)).filter(|r| r.contains(at));let Moving::Panel(id) = what else { return zone(tools_zone_id()).map(|r| (Drop::Dock, r)) };let own = group_of(&app.ui, id);- // Another group's title bar and tabs stack with it.+ let moving = own.map(|i| set_of(&app.ui, i)).unwrap_or_default();+ // The left edge of the icon column or of a dock column docks the moved groups as a new column+ // there.+ if app.ui.dock && app.ui.screen_mode < 3 {+ let icons = ctx.data(|d| d.get_temp::<Rect>(icons_rect_id()));+ let columns = ctx.data(|d| d.get_temp::<Vec<Rect>>(columns_id())).unwrap_or_default();+ for (k, r) in icons.into_iter().chain(columns).enumerate() {+ if Rect::from_x_y_ranges((r.left() - EDGE - 3.0)..=(r.left() + EDGE - 1.0), r.y_range()).contains(at) {+ let line = Rect::from_x_y_ranges((r.left() - 2.0)..=(r.left() + 2.0), r.y_range());+ return Some((Drop::Column(u32::try_from(k + 1).unwrap_or(u32::MAX)), line));+ }+ }+ }+ // Another group (floating or docked): its tabs (and a set's title bar) stack the moved groups+ // with it as tabs; the upper half of the group (and just above a set) puts them in its set+ // right above it, the lower half (and just below it) right below it.+ let columns = ctx.data(|d| d.get_temp::<Vec<Rect>>(columns_id())).unwrap_or_default();for (i, g) in app.ui.floating_panels.iter().enumerate() {- let Some((first, _)) = g.panels.first().and_then(|p| panel(p)).filter(|_| Some(i) != own) else { continue };- let area =- if app.ui.docking.is_some() { Id::new("vectorcraft-panel-docking").with(("floating", &first.to_string())) } else { area_id(first) };- let head = ctx.memory(|m| m.area_rect(area)).map(|r| Rect::from_min_size(r.min, vec2(r.width(), 1.0 + TITLE + STRIP)));- if let Some(head) = head.filter(|h| h.contains(at)) {+ let Some((first, _)) = g.panels.first().and_then(|p| panel(p)).filter(|_| !moving.contains(&i)) else { continue };- let Some(mut r) = ctx.data(|d| d.get_temp::<Rect>(group_rect_id(first))) else { continue };++ let Some(mut r) = ctx++ .data(|d| d.get_temp::<Rect>(group_rect_id(first)))++ .or_else(|| ctx.memory(|m| m.area_rect(Id::new("vectorcraft-panel-docking").with(("floating", &first.to_string())))))++ else {++ continue;++ };++ // A visible window owns hits inside its body. Old rectangles and lower windows++ // must not capture a drop through another panel or popup; edge insertion remains++ // available just outside the window. Dock columns reserve their own panel space.++ if g.docked.is_none() && r.contains(at) {++ let area = if app.ui.docking.is_some() && !crate::panel_docking::decorated(g) {++ Id::new("vectorcraft-panel-docking").with(("floating", &first.to_string()))++ } else {++ let lead = set_of(&app.ui, i).first().and_then(|&index| app.ui.floating_panels.get(index)).and_then(|group| group.panels.first());++ area_id(lead.map_or(first, String::as_str))++ };++ let moving_areas: Vec<Id> = moving++ .iter()++ .filter_map(|&index| app.ui.floating_panels.get(index).and_then(|group| group.panels.first()))++ .flat_map(|panel| [area_id(panel), Id::new("vectorcraft-panel-docking").with(("floating", panel))])++ .collect();++ let owner = ctx.memory(|memory| {++ let layers: Vec<_> = memory.layer_ids().collect();++ layers.into_iter().rev().find(|layer| {++ !moving_areas.contains(&layer.id)++ && memory.areas().is_visible(layer)++ && memory.area_rect(layer.id).is_some_and(|rect| rect.contains(at))++ })++ });++ if owner.is_some_and(|layer| layer.id != area) {++ continue;++ }++ }+ // In a dock column that scrolls, only the part in view: a group scrolled away takes nothing.+ if let Some(col) = g.docked.and_then(|d| columns.get(usize::try_from(d).ok()?.checked_sub(1)?)) {+ r = r.intersect(*col);+ if r.height() <= 0.0 || r.width() <= 0.0 {+ continue;+ }+ }+ let line = |y: f32| Rect::from_x_y_ranges(r.x_range(), (y - 2.0)..=(y + 2.0));+ let lead = leads(&app.ui, i);+ let head = Rect::from_min_size(r.min, vec2(r.width(), if lead { 1.0 + TITLE + STRIP } else { GAP + STRIP }));+ if head.contains(at) {return Some((Drop::Stack(first), head));}+ let above = if lead { EDGE } else { 0.0 };+ if Rect::from_x_y_ranges(r.x_range(), (r.top() - above)..=(r.bottom() + EDGE)).contains(at) {+ let mid = (head.bottom() + r.bottom()) / 2.0;+ return Some(if at.y < mid { (Drop::Above(first), line(r.top())) } else { (Drop::Below(first), line(r.bottom())) });+ }+ }+ // A dock column's room under its groups puts them at its bottom.+ for ((_, set), col) in docked_sets(&app.ui).into_iter().zip(columns) {+ if !col.contains(at) || set.iter().any(|i| moving.contains(i)) {+ continue;+ }+ let Some(last) = set.last().and_then(|&i| app.ui.floating_panels.get(i)).and_then(|g| g.panels.first()).and_then(|p| panel(p)) else {+ continue;+ };+ let y = ctx.data(|d| d.get_temp::<Rect>(group_rect_id(last.0))).map_or(col.bottom(), |r| r.bottom()).min(col.bottom() - 2.0);+ return Some((Drop::Below(last.0), Rect::from_x_y_ranges(col.x_range(), (y - 2.0)..=(y + 2.0))));}let dock = zone(dock_rect_id()).filter(|_| app.ui.dock && app.ui.screen_mode < 3)?;// Panels that aren't tabs of the tabbed group (or all of them, with it collapsed) go back to@@@ -257,25 -374,24 +438,57 @@@ pub(crate) fn highlight(ctx: &egui::Conpainter.rect(zone.shrink(1.0), CornerRadius::same(2), t.accent.gamma_multiply(0.2), Stroke::new(2.0, t.accent), egui::StrokeKind::Inside);}+ /// Light up the tabs a drop stacks the moved panels with, over the floating and docked groups.+ fn tab_zone(ctx: &egui::Context, tabs: Rect) {+ let t = Tokens::get(ctx);+ let painter = ctx.layer_painter(egui::LayerId::new(egui::Order::Foreground, Id::new("floating-drop-tabs")));+ painter.rect(tabs.shrink(1.0), CornerRadius::same(2), t.accent.gamma_multiply(0.25), Stroke::new(2.0, t.accent), egui::StrokeKind::Inside);+ }++ /// Show where a drop puts the moved groups in a set: a line over the floating groups.+ fn insertion_line(ctx: &egui::Context, line: Rect) {+ let t = Tokens::get(ctx);+ let painter = ctx.layer_painter(egui::LayerId::new(egui::Order::Foreground, Id::new("floating-drop-line")));+ painter.rect_filled(line, CornerRadius::same(2), t.accent);+ }+++pub(crate) fn preview(ctx: &egui::Context, target: Drop, rect: Rect) {++ match target {++ Drop::Below(_) | Drop::Above(_) | Drop::Column(_) => insertion_line(ctx, rect),++ Drop::Stack(_) => tab_zone(ctx, rect),++ Drop::Dock => highlight(ctx, rect),++ }++}++/// Carry a move on (at the start of a frame, before the panels are drawn): the group or Tools panel/// follows the pointer and the zone it would drop on lights up; the release drops it there.pub fn track(app: &mut VectorcraftApp, ctx: &egui::Context) {++ if ctx.input(|input| input.pointer.primary_pressed()) {++ ctx.data_mut(|data| data.remove::<bool>(suppressed_id()));++ }++ let before = app.ui.clone();let Some(m) = ctx.data(|d| d.get_temp::<Move>(move_id())) else { return };+ if m.original.docking_generation != app.ui.docking_generation {- ctx.data_mut(|data| data.remove::<Move>(move_id()));++ ctx.data_mut(|data| {++ data.remove::<Move>(move_id());++ data.insert_temp(suppressed_id(), true);++ });+ return;+ }+ if ctx.input(|input| !input.focused || input.key_pressed(egui::Key::Escape)) {+ app.ui.docking = m.original.docking;+ app.ui.docking_hidden = m.original.docking_hidden;+ app.ui.docking_icons = m.original.docking_icons;+ app.ui.floating_panels = m.original.floating_panels;+ app.ui.open_panel = m.original.open_panel;+ app.ui.dock_tab = m.original.dock_tab;+ app.ui.toolbar_pos = m.original.toolbar_pos;- ctx.data_mut(|data| data.remove::<Move>(move_id()));++ ctx.data_mut(|data| {++ data.remove::<Move>(move_id());++ data.insert_temp(suppressed_id(), true);++ });+ return;+ }let at = ctx.input(|i| i.pointer.interact_pos());let target = at.filter(|at| at.distance(m.from) > TRAVEL).and_then(|at| drop_target(app, ctx, m.what, at));if ctx.input(|i| i.pointer.primary_down()) {@@@ -298,8 -409,11 +506,14 @@@Moving::Tools => {}}}- if let Some((_, zone)) = target {- highlight(ctx, zone);++ if let Err(error) = crate::panel_docking::reconcile_native(app, before.clone()) {++ app.ui.status = error;++ }+ match target {+ Some((Drop::Below(_) | Drop::Above(_) | Drop::Column(_), line)) => insertion_line(ctx, line),+ Some((Drop::Stack(_), tabs)) => tab_zone(ctx, tabs),+ Some((_, zone)) => highlight(ctx, zone),+ None => {}}return;}@@@ -331,139 -437,370 +537,394 @@@}}Drop::Stack(onto) => stack(&mut app.ui, &ids, active, onto),+ Drop::Below(onto) => attach(&mut app.ui, &set, onto, true),+ Drop::Above(onto) => attach(&mut app.ui, &set, onto, false),+ Drop::Column(slot) => dock_column(&mut app.ui, &set, slot),+ }++ if let Err(error) = crate::panel_docking::reconcile_native(app, before) {++ app.ui.status = error;+ }}- /// What a press on a floating group did.+ /// What a press on a floating or docked group did.enum Action {/// Show the group's `k`th tab.Activate(usize, usize),- /// Its × puts the group's panels back in the dock.- Close(usize),- /// Move the group holding this panel, drawn at this corner.+ /// A double-click on a tab collapses the group to its tabs, or expands it.+ Collapse(usize),+ /// Its × puts the panels of the set's groups back in the dock.+ Close(Vec<usize>),+ /// Move the set of the group holding this panel, drawn at this corner.Move(&'static str, Pos2),+ /// Take this group out of its set and move it on its own; its tab strip began this far right.+ Detach(usize, f32),/// Float this panel out of its group; its tab began this far right.Tear(&'static str, f32),+ /// Float the docked column of this group, its top-left corner this far from the pointer.+ Undock(usize, Vec2),+ }++ /// A floating group as drawn: its index, panels, the one shown and whether it's collapsed.+ struct Shown {+ gi: usize,+ ids: Vec<&'static str>,+ active: &'static str,+ collapsed: bool,+ }++ /// The groups `set` as drawn, top to bottom.+ fn shown_groups(ui: &UiState, set: &[usize]) -> Vec<Shown> {+ set.iter()+ .filter_map(|&gi| {+ let g = ui.floating_panels.get(gi)?;+ let ids = ids_of(g);+ let active = ids.get(g.active).or(ids.first()).copied()?;+ Some(Shown { gi, ids, active, collapsed: g.collapsed })+ })+ .collect()+ }++ /// The groups `set` heads are docked as a dock column.+ fn docked(ui: &UiState, set: &[usize]) -> bool {+ set.first().and_then(|&i| ui.floating_panels.get(i)).is_some_and(|g| g.docked.is_some())}- /// The floating groups, each a stack of tabs under a title bar. Hidden with the dock (Tab,- /// Presentation Mode).+ /// The floating groups, each a stack of tabs, stacked in their sets under a title bar. Hidden with+ /// the dock (Tab, Presentation Mode). Sets docked as dock columns are drawn by [`docked_columns`].pub fn show(app: &mut VectorcraftApp, ctx: &egui::Context) {- if app.ui.docking.is_some() {- return;- }if app.ui.floating_panels.is_empty() || !app.ui.dock || app.ui.screen_mode >= 3 {++ crate::panel_docking::finish_native_drop(app, ctx);return;}- let t = Tokens::get(ctx);- let screen = ctx.content_rect();- let pointer = ctx.input(|i| i.pointer.interact_pos());let mut action = None;for gi in 0..app.ui.floating_panels.len() {- let Some(g) = app.ui.floating_panels.get(gi) else { break };- let ids = ids_of(g);- let Some(&first) = ids.first() else { continue };- let active = ids.get(g.active).copied().unwrap_or(first);- let given = g.width.map(|w| w.min(screen.width() - 16.0));- let area = area_id(first);- let size = ctx.memory(|m| m.area_rect(area)).map_or(vec2(dock::panel_width(active), 200.0), |r| r.size());- let pos = clamp(g.pos, size, screen);- // The tabbed group's panels fill (Layers) or scroll (Properties) to near the window's bottom,- // leaving room for their margins (a group that only just fitted would creep up a little each- // frame).- let tall = (screen.bottom() - pos.y - TITLE - STRIP - 60.0).clamp(120.0, 560.0);- let lone = ids.len() == 1;- egui::Area::new(area).order(egui::Order::Middle).fixed_pos(pos).show(ctx, |ui| {- let frame = egui::Frame::popup(ui.style()).fill(t.panel).corner_radius(CornerRadius::same(4)).inner_margin(egui::Margin::ZERO);- frame.show(ui, |ui| {- if leads(&app.ui, gi) {++ if leads(&app.ui, gi) && (app.ui.docking.is_none() || app.ui.floating_panels.get(gi).is_some_and(crate::panel_docking::decorated)) {+ let set = set_of(&app.ui, gi);+ if !docked(&app.ui, &set) {+ show_set(app, ctx, &set, &mut action);+ }+ }+ }+ apply(app, ctx, action);++ crate::panel_docking::finish_native_drop(app, ctx);+ }++ /// Carry out what a press on a floating or docked group did.+ fn apply(app: &mut VectorcraftApp, ctx: &egui::Context, action: Option<Action>) {++ if action.is_none() {++ return;++ }++ if matches!(action, Some(Action::Move(..) | Action::Detach(..) | Action::Tear(..) | Action::Undock(..))) && !gesture_allowed(ctx) {++ return;++ }++ let before = app.ui.clone();+ match action {+ Some(Action::Activate(gi, k)) => {+ if let Some(g) = app.ui.floating_panels.get_mut(gi)+ && g.active != k+ {+ g.active = k;+ g.collapsed = false;+ }+ }+ Some(Action::Collapse(gi)) => {+ if let Some(g) = app.ui.floating_panels.get_mut(gi) {+ g.collapsed = !g.collapsed;+ }+ }+ Some(Action::Close(set)) => {+ let ids = ids_in(&app.ui, &set);+ let active = set.first().and_then(|&i| shown(&app.ui, i)).unwrap_or_default();+ dock(&mut app.ui, &ids, active);+ }+ Some(Action::Move(id, pos)) => {+ // From where it is drawn (a position saved on a bigger window was clamped into this one).+ if let Some(gi) = group_of(&app.ui, id) {+ set_pos(&mut app.ui, gi, [pos.x, pos.y]);+ }+ if let Some(at) = ctx.input(|i| i.pointer.interact_pos()) {- start(ctx, Moving::Panel(id), at - pos);++ start(app, ctx, Moving::Panel(id), at - pos);+ }+ }+ Some(Action::Detach(gi, left)) => detach(app, ctx, gi, left),+ Some(Action::Tear(id, left)) => tear(app, ctx, &[id], id, strip_grab(ctx, left)),+ Some(Action::Undock(gi, grab)) => {+ let Some(at) = ctx.input(|i| i.pointer.interact_pos()) else { return };+ let Some(id) = set_of(&app.ui, gi).first().and_then(|&i| shown(&app.ui, i)) else { return };+ let p = at - grab;+ for i in set_of(&app.ui, gi) {+ if let Some(g) = app.ui.floating_panels.get_mut(i) {+ g.docked = None;+ g.pos = [p.x, p.y];+ }+ }+ FloatingPanels::tidy(&mut app.ui.floating_panels);- start(ctx, Moving::Panel(id), grab);++ start(app, ctx, Moving::Panel(id), grab);+ }+ None => {}+ }++ if let Err(error) = crate::panel_docking::reconcile_native(app, before.clone()) {++ app.ui.status = error;++ }++ ctx.data_mut(|data| {++ if let Some(mut drag) = data.get_temp::<Move>(move_id()) {++ drag.original = before;++ data.insert_temp(move_id(), drag);++ }++ });+ }++ /// Take group `gi` out of its set (or its dock column) under the pointer, its tab strip having+ /// begun `left` points from the window's left, and carry on moving it with the pointer.+ fn detach(app: &mut VectorcraftApp, ctx: &egui::Context, gi: usize, left: f32) {+ let Some(at) = ctx.input(|i| i.pointer.interact_pos()) else { return };+ let Some(id) = shown(&app.ui, gi) else { return };+ let grab = strip_grab(ctx, left);+ let p = at - grab;+ if let Some(g) = app.ui.floating_panels.get_mut(gi) {+ g.column = None;+ g.docked = None;+ g.pos = [p.x, p.y];+ }+ FloatingPanels::tidy(&mut app.ui.floating_panels);- start(ctx, Moving::Panel(id), grab);++ start(app, ctx, Moving::Panel(id), grab);+ }++ /// Put the groups `set` in the dock as a new column at `slot` (1: next to the icon column, counting+ /// left), moving the columns from there one further left.+ pub fn dock_column(ui: &mut UiState, set: &[usize], slot: u32) {+ let slot = slot.max(1);+ for (i, g) in ui.floating_panels.iter_mut().enumerate() {+ if set.contains(&i) {+ g.docked = Some(slot);+ } else if let Some(d) = g.docked.filter(|d| *d >= slot) {+ g.docked = Some(d.saturating_add(1));+ }+ }+ FloatingPanels::tidy(&mut ui.floating_panels);+ if let Some(tab) = shown_tab(ui) {+ ui.dock_tab = tab;+ }+ }++ /// The dock columns, as last drawn (egui temp memory), from the one next to the icon column+ /// leftwards.+ pub(crate) fn columns_id() -> Id {+ Id::new("dock-columns")+ }++ /// The sets docked as columns, by their column number (next to the icon column first).+ fn docked_sets(ui: &UiState) -> Vec<(u32, Vec<usize>)> {+ let mut sets: Vec<(u32, Vec<usize>)> = (0..ui.floating_panels.len())+ .filter(|&gi| leads(ui, gi))+ .filter_map(|gi| Some((ui.floating_panels.get(gi)?.docked?, set_of(ui, gi))))+ .collect();+ sets.sort_by_key(|(d, _)| *d);+ sets+ }++ /// The sets docked as columns, each a column left of the icon column (`ui`, the window's root, as+ /// [`dock::show`] lays it out): a strip along its top that floats the column when dragged and+ /// whose × puts its panels back in the dock, then its groups top to bottom. Returns the columns'+ /// bounds, next to the icon column first.+ pub(crate) fn docked_columns(app: &mut VectorcraftApp, ui: &mut egui::Ui) -> Vec<Rect> {+ let t = Tokens::get(ui.ctx());+ let mut rects = vec![];+ let mut action = None;+ for (_, set) in docked_sets(&app.ui) {+ let groups = shown_groups(&app.ui, &set);+ let Some(first) = groups.first().and_then(|g| g.ids.first().copied()) else { continue };+ let natural = groups.iter().flat_map(|g| g.ids.iter()).map(|id| dock::panel_width(id)).fold(200.0, f32::max);+ let panel = egui::Panel::right(Id::new(("dock-column", first)))+ .resizable(true)+ .default_size(natural)+ .size_range(200.0..=520.0)+ .frame(egui::Frame::NONE.fill(t.panel).stroke(Stroke::new(1.5, t.border)))+ .show(ui, |ui| {ui.spacing_mut().item_spacing = Vec2::ZERO;- let tabs: Vec<_> = ids- .iter()- .map(|id| {- let label = panel(id).map_or(*id, |(_, label)| label);- let color = if *id == active { t.text_strong } else { t.text_dim };- ui.painter().layout_no_wrap(tl!(label).to_string(), theme::semibold(12.0), color)- })- .collect();- let tabs_width: f32 = tabs.iter().map(|g| g.size().x + 24.0).sum();- let width = ids.iter().map(|id| dock::panel_width(id)).fold(tabs_width + 32.0, f32::max).max(given.unwrap_or(0.0));- ui.set_width(width);- // Title bar: a grip that moves the group, and the × that docks it.+ let width = ui.available_width();let (bar, _) = ui.allocate_exact_size(vec2(width, TITLE), Sense::hover());- ui.painter().rect_filled(bar, CornerRadius { nw: 4, ne: 4, sw: 0, se: 0 }, t.tab_strip);+ ui.painter().rect_filled(bar, 0.0, t.tab_strip);let close = Rect::from_center_size(bar.right_center() - vec2(10.0, 0.0), vec2(TITLE, TITLE));- let grip = ui.interact(Rect::from_min_max(bar.min, pos2(close.left(), bar.bottom())), ui.id().with("title"), Sense::drag());+ let grip = ui.interact(Rect::from_min_max(bar.min, pos2(close.left(), bar.bottom())), ui.id().with("column-bar"), Sense::drag());for k in 0..2 {let y = bar.center().y - 1.5 + k as f32 * 3.0;ui.painter().line_segment([pos2(bar.center().x - 9.0, y), pos2(bar.center().x + 9.0, y)], Stroke::new(0.6, t.text_disabled));}- if grip.drag_started() {- action = Some(Action::Move(active, pos));+ if grip.drag_started()+ && let (Some(at), Some(&gi)) = (ui.input(|i| i.pointer.press_origin()), set.first())+ {+ action = Some(Action::Undock(gi, at - bar.min));}- grip.on_hover_cursor(egui::CursorIcon::Grab).on_hover_text(tl!("Drag to move"));- let x = ui.interact(close, ui.id().with("close"), Sense::click());+ grip.on_hover_cursor(egui::CursorIcon::Grab).on_hover_text(tl!("Drag to float the panel group"));+ let x = ui.interact(close, ui.id().with("column-close"), Sense::click());icons::paint(ui, "x", close.shrink(3.0), if x.hovered() { t.text_strong } else { t.text_dim });if x.on_hover_text(tl!("Put back in the dock")).clicked() {- action = Some(Action::Close(gi));- }- // Tab strip: a click shows a tab, a drag out of the strip floats it on its own.- let (strip, _) = ui.allocate_exact_size(vec2(width, STRIP), Sense::hover());- ui.painter().rect_filled(strip, 0.0, t.panel_darker);- let menu = Rect::from_center_size(strip.right_center() - vec2(14.0, 0.0), vec2(16.0, 16.0));- let tab_area = Rect::from_min_max(strip.min, pos2((menu.left() - 4.0).max(strip.left()), strip.bottom()));- let names: Vec<_> = ids.iter().map(|&id| (id, panel(id).map_or(id, |(_, label)| label))).collect();- let selected = ids.iter().position(|&id| id == active).unwrap_or(0);- let out = dock::panel_tabs(ui, "tab", tab_area, &names, selected, theme::semibold(12.0), false);- for (k, resp) in out.responses {- let Some(&id) = ids.get(k) else { continue };- if resp.clicked() {- action = Some(Action::Activate(gi, k));- } else if lone && resp.drag_started() {- action = Some(Action::Move(id, pos));- } else if !lone && resp.dragged() && pointer.is_some_and(|p| !strip.expand(4.0).contains(p)) {- action = Some(Action::Tear(id, resp.rect.left()));- }- }- if let Some(k) = out.picked {- action = Some(Action::Activate(gi, k));+ action = Some(Action::Close(set.clone()));}- let rest = Rect::from_min_max(pos2(out.right, strip.top()), pos2(menu.left() - 4.0, strip.bottom()));- if rest.width() > 0.0 {- let resp = ui.interact(rest, ui.id().with("strip"), Sense::drag());- if resp.drag_started() {- action = Some(Action::Move(active, pos));- }- resp.on_hover_cursor(egui::CursorIcon::Grab).on_hover_text(tl!("Drag to move"));- }- panels::panel_menu(app, ui, active, menu);- dock::panel_body(app, ui, active, width, tall);+ let n = groups.len() as f32;+ let open = groups.iter().filter(|g| !g.collapsed).count().max(1) as f32;+ // The open panels share the column's height, each at least `MIN_TALL`: more than fit+ // scroll, with the column.+ let tall = ((ui.available_height() - n * STRIP - (n - 1.0) * GAP - 24.0 * open) / open).max(MIN_TALL);+ egui::ScrollArea::vertical().id_salt(("dock-column-scroll", first)).auto_shrink([false, false]).show(ui, |ui| {+ ui.spacing_mut().item_spacing = Vec2::ZERO;+ let width = ui.available_width();+ let top = ui.cursor().top();+ draw_groups(app, ui, &groups, width, tall, top, None, &mut action);+ });});- });+ rects.push(panel.response.rect);}- match action {- Some(Action::Activate(gi, k)) => {- if let Some(g) = app.ui.floating_panels.get_mut(gi) {- g.active = k;- }- ui.ctx().data_mut(|d| d.insert_temp(columns_id(), rects.clone()));++ ui.ctx().data_mut(|d| {++ let icons = d.get_temp::<Rect>(icons_rect_id());++ if let Some(left) = icons.map(|r| rects.iter().map(|r| r.left()).fold(r.left(), f32::min)) {++ d.insert_temp(dock::dock_left_id(), left);+ }- Some(Action::Close(gi)) => {- if let Some(g) = app.ui.floating_panels.get(gi) {- let ids = ids_of(g);- let active = ids.get(g.active).copied().unwrap_or_default();- dock(&mut app.ui, &ids, active);++ d.insert_temp(columns_id(), rects.clone());++ });+ let ctx = ui.ctx().clone();+ apply(app, &ctx, action);+ rects+ }++ /// Draw the set of floating groups `set` (top to bottom) as one floating box.+ fn show_set(app: &mut VectorcraftApp, ctx: &egui::Context, set: &[usize], action: &mut Option<Action>) {+ let t = Tokens::get(ctx);+ let screen = ctx.content_rect();+ let groups = shown_groups(&app.ui, set);+ let Some((lead, first)) = groups.first().and_then(|g| Some((g, *g.ids.first()?))) else { return };+ let Some(saved) = app.ui.floating_panels.get(lead.gi).map(|g| g.pos) else { return };+ let given = set.iter().filter_map(|&i| app.ui.floating_panels.get(i)?.width).reduce(f32::max).map(|w| w.min(screen.width() - 16.0));+ let area = area_id(first);+ let size = ctx.memory(|m| m.area_rect(area)).map_or(vec2(dock::panel_width(lead.active), 200.0), |r| r.size());+ let pos = clamp(saved, size, screen);+ // The tabbed group's panels fill (Layers) or scroll (Properties) to near the window's bottom,+ // leaving room for their margins (a group that only just fitted would creep up a little each+ // frame); the open panels of a set share that height.+ let n = groups.len() as f32;+ let open = groups.iter().filter(|g| !g.collapsed).count().max(1) as f32;+ let tall = ((screen.bottom() - pos.y - TITLE - n * STRIP - (n - 1.0) * GAP - 60.0) / open).clamp(120.0, 560.0);+ let lead_active = lead.active;+ egui::Area::new(area).order(egui::Order::Middle).fixed_pos(pos).show(ctx, |ui| {+ let frame = egui::Frame::popup(ui.style()).fill(t.panel).corner_radius(CornerRadius::same(4)).inner_margin(egui::Margin::ZERO);+ frame.show(ui, |ui| {+ ui.spacing_mut().item_spacing = Vec2::ZERO;+ let width = groups+ .iter()+ .map(|g| {+ let tabs_width: f32 = g+ .ids+ .iter()+ .map(|id| {+ let label = panel(id).map_or(*id, |(_, label)| label);+ ui.painter().layout_no_wrap(tl!(label).to_string(), theme::semibold(12.0), t.text).size().x + 24.0+ })+ .sum();+ g.ids.iter().map(|id| dock::panel_width(id)).fold(tabs_width + 32.0, f32::max)+ })+ .fold(given.unwrap_or(0.0), f32::max);+ ui.set_width(width);+ // Title bar: a grip that moves the set, and the × that docks it.+ let (bar, _) = ui.allocate_exact_size(vec2(width, TITLE), Sense::hover());+ ui.painter().rect_filled(bar, CornerRadius { nw: 4, ne: 4, sw: 0, se: 0 }, t.tab_strip);+ let close = Rect::from_center_size(bar.right_center() - vec2(10.0, 0.0), vec2(TITLE, TITLE));+ let grip = ui.interact(Rect::from_min_max(bar.min, pos2(close.left(), bar.bottom())), ui.id().with("title"), Sense::drag());+ for k in 0..2 {+ let y = bar.center().y - 1.5 + k as f32 * 3.0;+ ui.painter().line_segment([pos2(bar.center().x - 9.0, y), pos2(bar.center().x + 9.0, y)], Stroke::new(0.6, t.text_disabled));}- }- Some(Action::Move(id, pos)) => {- // From where it is drawn (a position saved on a bigger window was clamped into this one).- if let Some(g) = group_of(&app.ui, id).and_then(|i| app.ui.floating_panels.get_mut(i)) {- g.pos = [pos.x, pos.y];+ if grip.drag_started() {+ *action = Some(Action::Move(lead_active, pos));}- if let Some(at) = pointer {- start(app, ctx, Moving::Panel(id), at - pos);+ grip.on_hover_cursor(egui::CursorIcon::Grab).on_hover_text(tl!("Drag to move"));+ let x = ui.interact(close, ui.id().with("close"), Sense::click());+ icons::paint(ui, "x", close.shrink(3.0), if x.hovered() { t.text_strong } else { t.text_dim });+ if x.on_hover_text(tl!("Put back in the dock")).clicked() {+ *action = Some(Action::Close(set.to_vec()));+ }+ let alone = (groups.len() == 1).then_some(pos);+ draw_groups(app, ui, &groups, width, tall, bar.top(), alone, action);+ });+ });+ }++ /// Draw `groups` top to bottom, `width` wide, their open panels `tall`, the first one's bar having+ /// begun at `top`: a bar between groups, each group's tab strip, then its shown panel. `alone`, a+ /// lone floating group drawn at that corner: its tab strip moves it (else it takes its group out of+ /// the set or dock column).+ #[allow(clippy::too_many_arguments)]+ fn draw_groups(+ app: &mut VectorcraftApp,+ ui: &mut egui::Ui,+ groups: &[Shown],+ width: f32,+ tall: f32,+ top: f32,+ alone: Option<Pos2>,+ action: &mut Option<Action>,+ ) {+ let t = Tokens::get(ui.ctx());+ let pointer = ui.input(|i| i.pointer.interact_pos());+ for (k, g) in groups.iter().enumerate() {+ let top = if k == 0 {+ top+ } else {+ let (gap, _) = ui.allocate_exact_size(vec2(width, GAP), Sense::hover());+ ui.painter().rect_filled(gap, 0.0, t.tab_strip);+ gap.top()+ };+ // Tab strip: a click shows a tab, a double-click collapses the group, a drag out of the+ // strip floats a tab on its own; a lone tab or the strip right of the tabs moves the group+ // (out of its set).+ let (strip, _) = ui.allocate_exact_size(vec2(width, STRIP), Sense::hover());+ ui.painter().rect_filled(strip, 0.0, t.panel_darker);+ let lone = g.ids.len() == 1;- let mut left = strip.left();- for (j, &id) in g.ids.iter().enumerate() {- let label = panel(id).map_or(id, |(_, label)| label);- let color = if id == g.active { t.text_strong } else { t.text_dim };- let galley = ui.painter().layout_no_wrap(tl!(label).to_string(), theme::semibold(12.0), color);- let r = Rect::from_min_size(pos2(left, strip.top()), vec2(galley.size().x + 24.0, STRIP));- left = r.right();- let resp = ui.interact(r, ui.id().with(("tab", id)), Sense::click_and_drag());- if id == g.active && !g.collapsed {- ui.painter().rect_filled(r, 0.0, t.panel);- }- ui.painter().galley(pos2(r.left() + 12.0, r.center().y - galley.size().y / 2.0), galley, t.text);++ let menu = Rect::from_center_size(strip.right_center() - vec2(14.0, 0.0), vec2(16.0, 16.0));++ let tab_area = Rect::from_min_max(strip.min, pos2((menu.left() - 4.0).max(strip.left()), strip.bottom()));++ let names: Vec<_> = g.ids.iter().map(|&id| (id, panel(id).map_or(id, |(_, label)| label))).collect();++ let selected = g.ids.iter().position(|&id| id == g.active).unwrap_or(0);++ let out = dock::panel_tabs(ui, &format!("native-set-tabs-{}", g.gi), tab_area, &names, selected, theme::semibold(12.0), false);++ for (j, resp) in out.responses {++ let Some(&id) = g.ids.get(j) else { continue };+ if resp.double_clicked() {+ *action = Some(Action::Collapse(g.gi));+ } else if resp.clicked() {+ *action = Some(Action::Activate(g.gi, j));+ } else if lone && resp.drag_started() {+ *action = Some(match alone {+ Some(pos) => Action::Move(id, pos),+ None => Action::Detach(g.gi, strip.left()),+ });+ } else if !lone && resp.dragged() && pointer.is_some_and(|p| !strip.expand(4.0).contains(p)) {- *action = Some(Action::Tear(id, r.left()));++ *action = Some(Action::Tear(id, resp.rect.left()));}}- Some(Action::Tear(id, left)) => tear(app, ctx, &[id], id, strip_grab(ctx, left)),- None => {}- let menu = Rect::from_center_size(strip.right_center() - vec2(14.0, 0.0), vec2(16.0, 16.0));- let rest = Rect::from_min_max(pos2(left, strip.top()), pos2(menu.left() - 4.0, strip.bottom()));++ if let Some(j) = out.picked {++ *action = Some(Action::Activate(g.gi, j));++ }++ let rest = Rect::from_min_max(pos2(out.right, strip.top()), pos2(menu.left() - 4.0, strip.bottom()));+ if rest.width() > 0.0 {+ let resp = ui.interact(rest, ui.id().with(("strip", g.gi)), Sense::drag());+ if resp.drag_started() {+ *action = Some(match alone {+ Some(pos) => Action::Move(g.active, pos),+ None => Action::Detach(g.gi, strip.left()),+ });+ }+ let tip = if alone.is_some() { tl!("Drag to move") } else { tl!("Drag to move out of the set") };+ resp.on_hover_cursor(egui::CursorIcon::Grab).on_hover_text(tip);+ }+ panels::panel_menu(app, ui, g.active, menu);+ if !g.collapsed {+ dock::panel_body(app, ui, g.active, width, tall);+ }+ // Where the next widget would go: in a dock column, the ui's own bounds reach its bottom.+ let bottom = ui.cursor().top().max(strip.bottom());+ if let Some(&id) = g.ids.first() {+ let rect = Rect::from_min_max(pos2(strip.left(), top), pos2(strip.left() + width, bottom));+ ui.ctx().data_mut(|d| d.insert_temp(group_rect_id(id), rect));+ }}}@@@ -629,20 -1050,11 +1176,22 @@@ mod tests/// The floating group whose first panel is `first`, as drawn.fn group(&self, first: &str) -> Rect {- let id = if self.app.ui.docking.is_some() {- self.ctx.memory(|m| m.area_rect(area_id(first))).unwrap()++ let native = group_of(&self.app.ui, first).and_then(|i| self.app.ui.floating_panels.get(i)).is_some_and(crate::panel_docking::decorated);++ let id = if self.app.ui.docking.is_some() && !native {+ Id::new("vectorcraft-panel-docking").with(("floating", &first.to_string()))+ } else {+ area_id(first)+ };+ self.ctx.memory(|m| m.area_rect(id)).unwrap()}/// A point on a floating group's title bar (left of its ×).fn title(&self, first: &str) -> Pos2 {- if self.app.ui.docking.is_some() {++ let native = group_of(&self.app.ui, first).and_then(|i| self.app.ui.floating_panels.get(i)).is_some_and(crate::panel_docking::decorated);++ if self.app.ui.docking.is_some() && !native {+ let rect = self.group(first);+ return rect.left_top() + vec2(6.0, 16.0);+ }let r = self.group(first);pos2(r.left() + 30.0, r.top() + 1.0 + TITLE / 2.0)}@@@ -805,40 -1204,6 +1354,68 @@@assert!(h.groups().is_empty());}+ #[test]+ fn popped_out_title_drag_cancels_on_escape_focus_loss_and_workspace_change() {+ for reason in ["escape", "focus", "workspace"] {+ let mut h = Harness::new();+ h.app.run("window.panel", json!({"panel":"swatches"})).unwrap();+ h.settle();+ let original = h.app.ui.clone();+ let flyout = h.ctx.memory(|m| m.area_rect(Id::new("icon-panel"))).unwrap();+ let to = pos2(500.0, 400.0);+ h.hold(flyout.left_top() + vec2(20.0, 13.0), to);+ assert!(h.app.ui.floating_panels.iter().any(|g| g.panels.contains(&"swatches".into())));+ match reason {+ "escape" => h.frame(vec![Event::Key {+ key: egui::Key::Escape,+ physical_key: None,+ pressed: true,+ repeat: false,+ modifiers: Default::default(),+ }]),+ "focus" => h.frame(vec![Event::WindowFocused(false)]),+ _ => {+ crate::workspaces::apply(&mut h.app.ui, &crate::workspaces::Workspace::default());+ h.frame(vec![Event::PointerMoved(pos2(650.0, 450.0))]);+ }+ }+ assert!(h.ctx.data(|d| d.get_temp::<Move>(move_id())).is_none(), "{reason}: stale gesture removed");+ assert!(h.app.ui.docking.is_none(), "{reason}: original/selected workspace retained");+ assert!(h.app.ui.floating_panels.is_empty(), "{reason}: no stale floating group");+ if reason != "workspace" {+ assert_eq!(h.app.ui.open_panel, original.open_panel);+ }++ if reason == "focus" {++ h.frame(vec![Event::WindowFocused(true)]);++ }++ for step in 1..=3 {++ h.frame(vec![Event::PointerMoved(to + vec2(15.0 * step as f32, 8.0))]);++ assert!(h.app.ui.floating_panels.is_empty(), "{reason}: canceled drag stays canceled on held frame {step}");++ }++ h.frame(vec![Event::PointerButton { pos: to, button: PointerButton::Secondary, pressed: true, modifiers: Default::default() }]);++ assert!(h.app.ui.floating_panels.is_empty(), "{reason}: secondary press does not restart primary gesture");++ h.frame(vec![Event::PointerButton { pos: to, button: PointerButton::Secondary, pressed: false, modifiers: Default::default() }]);++ h.release(to);++ assert!(h.app.ui.floating_panels.is_empty(), "{reason}: release does not restart canceled gesture");+ }+ }+++ #[test]++ fn docked_tools_drag_cancellation_restores_the_docked_origin() {++ let mut h = Harness::new();++ let zone = h.temp_rect(tools_zone_id());++ let title = zone.left_top() + vec2(30.0, 7.0);++ let to = pos2(400.0, 300.0);++ h.hold(title, to);++ assert!(h.app.ui.toolbar_pos.is_some());++ h.frame(vec![Event::Key { key: egui::Key::Escape, physical_key: None, pressed: true, repeat: false, modifiers: Default::default() }]);++ assert_eq!(h.app.ui.toolbar_pos, None, "cancel restores docked Tools origin");++ h.frame(vec![Event::PointerMoved(to + vec2(30.0, 20.0))]);++ assert_eq!(h.app.ui.toolbar_pos, None);++ h.release(to);++ assert_eq!(h.app.ui.toolbar_pos, None);++ }++#[test]fn the_tools_panel_floats_by_its_title_bar_and_docks_on_the_left_edge() {let mut h = Harness::new();diff --cc crates/ui-egui/src/i18n/cs.tsvindex 393c4a18d,39ce8fc0d..345eb587c--- a/crates/ui-egui/src/i18n/cs.tsv+++ b/crates/ui-egui/src/i18n/cs.tsv@@@ -694,11 -695,42 +695,50 @@@Ocean Ripple… Vlnky na hladině…Rename Data Set Přejmenovat sadu datRename Variable Přejmenovat proměnnou+# Shared panel docking+ Activate Panel Aktivovat panel+ Change Panel Layout Změnit rozložení panelů+ Close Panel Zavřít panel+ Move Panel Přesunout panel+ Group with Seskupit s+ Resize panels Změnit velikost panelů+ Resize panel window Změnit velikost okna panelu++ # Interactive Revolve controls.+ Lighting Osvětlení+ Revolve angle Úhel otočení+ Axis side Strana osy+ Rotation X Otočení X+ Rotation Y Otočení Y+ Rotation Z Otočení Z+ Shading Stínování+ Direction Směr+ Elevation Výška světla+ Intensity Intenzita+ Ambient Okolní osvětlení+ Segments Segmenty+ Show axis Zobrazit osu+ Reset all Obnovit vše+ Reset to default Obnovit výchozí hodnotu+ Reset all Revolve settings to their defaults. Obnovit výchozí hodnoty všech nastavení rotačního tělesa.+ Drag values or labels. Double-click a value to type. Upravte hodnoty přetažením čísel nebo popisků. Dvojím kliknutím na hodnotu ji zadáte.+ Drag rings to rotate. Shift snaps to 15°. Otáčejte přetažením prstenců. Shift nastaví kroky po 15°.+ Drag the light, or its rings. Shift snaps to 15°. Přetáhněte světlo nebo jeho prstence. Shift nastaví kroky po 15°.+ lighting Light Světlo+ Keep visible surfaces only when expanding Při rozšíření ponechat pouze viditelné povrchy+ Trim covered geometry on Expand Appearance. Live preview keeps the full surface. Transparent paints and surfaces exceeding visibility limits retain all faces. Při rozšíření vzhledu oříznout zakrytou geometrii. Živý náhled zachová celý povrch. Průhledné výplně a povrchy překračující limity výpočtu viditelnosti zachovají všechny plochy.+ Left Vlevo+ Right Vpravo+ Offset Odsazení+ Rotation Otočení+ Cancel Zrušit+ Accented Edges… Zdůrazněné okraje…+ Angled Strokes… Šikmé tahy…+ Crosshatch… Křížové šrafování…+ Dark Strokes… Tmavé tahy…+ Ink Outlines… Obrysy tuší…+ Spatter… Rozstřik…+ Sprayed Strokes… Stříkané tahy…+ Sumi-e… Sumi-e…+ Vertical Guide Svislé vodítko+ Horizontal Guide Vodorovné vodítkodiff --cc crates/ui-egui/src/i18n/de.tsvindex 6cbb8b2cf,d4e97fdb4..513d77e51--- a/crates/ui-egui/src/i18n/de.tsv+++ b/crates/ui-egui/src/i18n/de.tsv@@@ -3994,28 -4007,56 +4007,84 @@@ theme Appearance ErscheinungsbilDefine a variable first Definieren Sie zuerst eine VariableText TextVisibility Sichtbarkeit++ Activate Panel Bedienfeld aktivieren+ Change Panel Layout Bedienfeldanordnung ändern+ Close Panel Bedienfeld schließen+ Move Panel Bedienfeld verschieben+ Group with Gruppieren mit+ Resize panel window Bedienfeldfenster skalieren+ Resize panels Bedienfelder skalieren+@msg Invalid panel layout; restored the default dock Ungültige Bedienfeldanordnung; Standarddock wiederhergestellt+@msg action is required Eine Aktion ist erforderlich+@msg anchor must name a registered panel Der Anker muss ein registriertes Bedienfeld benennen+@msg before must name a panel before muss ein Bedienfeld benennen+@msg docking action contains an unknown panel or an excessive split path Die Docking-Aktion enthält ein unbekanntes Bedienfeld oder einen zu langen Teilungspfad+@msg group must be true or false group muss true oder false sein+@msg move requires a destination panel Das Verschieben erfordert ein Zielbedienfeld+@msg move requires an existing destination panel Das Verschieben erfordert ein vorhandenes Zielbedienfeld+@msg onto must name a floating panel onto muss ein schwebendes Bedienfeld benennen+@msg panel group is empty Die Bedienfeldgruppe ist leer+@msg panel must name a registered panel panel muss ein registriertes Bedienfeld benennen+@msg saved panel layout is invalid; reset the workspace first Die gespeicherte Bedienfeldanordnung ist ungültig; zuerst den Arbeitsbereich zurücksetzen+@msg x and y must be provided together x und y müssen zusammen angegeben werden+@msg zone must be a string zone muss eine Zeichenfolge sein+@msg zone must be tab, center, left, right, top or bottom zone muss tab, center, left, right, top oder bottom sein+@msg {key} must be a finite coordinate {key} muss eine endliche Koordinate sein+@msg invalid restored panel group Ungültige wiederhergestellte Bedienfeldgruppe+ # 3D and Materials › Revolve: its options dialog and gizmos.+ Ambient Umgebungslicht+ Axis side Achsenseite+ Direction Richtung+ Drag rings to rotate. Shift snaps to 15°. Ziehen Sie die Ringe, um zu drehen. Mit Shift in 15°-Schritten.+ Drag the light, or its rings. Shift snaps to 15°. Ziehen Sie das Licht oder seine Ringe. Mit Shift in 15°-Schritten.+ Drag values or labels. Double-click a value to type. Ziehen Sie Werte oder Beschriftungen. Doppelklicken Sie auf einen Wert, um ihn einzugeben.+ Elevation Höhe+ Intensity Intensität+ Keep visible surfaces only when expanding Beim Umwandeln nur sichtbare Flächen behalten+ Lighting Beleuchtung+ Reset all Alle zurücksetzen+ Reset all Revolve settings to their defaults. Alle Einstellungen für „Kreiseln“ auf ihre Standardwerte zurücksetzen.+ Reset to default Auf Standard zurücksetzen+ Revolve angle Kreiselwinkel+ Rotation X Drehung X+ Rotation Y Drehung Y+ Rotation Z Drehung Z+ Segments Segmente+ Shading Schattierung+ Show axis Achse einblenden+ Trim covered geometry on Expand Appearance. Live preview keeps the full surface. Transparent paints and surfaces exceeding visibility limits retain all faces. Entfernt bei „Aussehen umwandeln“ verdeckte Geometrie. Die Live-Vorschau behält die ganze Oberfläche. Transparente Farben und Oberflächen jenseits der Sichtbarkeitsgrenzen behalten alle Flächen.+ Accented Edges… Kanten betonen…+ Angled Strokes… Schräge Striche…+ Crosshatch… Kreuzschraffur…+ Dark Strokes… Dunkle Striche…+ Ink Outlines… Tintenumrisse…+ Spatter… Spritzer…+ Sprayed Strokes… Gesprühte Striche…+ Sumi-e… Sumi-e…+ Accented Edges Kanten betonen+ Angled Strokes Schräge Striche+ Crosshatch Kreuzschraffur+ Dark Strokes Dunkle Striche+ Ink Outlines Tintenumrisse+ Spatter Spritzer+ Sprayed Strokes Gesprühte Striche+ Sumi-e Sumi-e+ Direction Balance Richtungsbalance+ Stroke Length Strichlänge+ Sharpness Schärfe+ Strength Stärke+ Balance Balance+ Black Intensity Schwarzintensität+ White Intensity Weißintensität+ Dark Intensity Dunkle Intensität+ Light Intensity Lichtintensität+ Spray Radius Sprühradius+ Stroke Direction Strichrichtung+ Stroke Width Strichbreite+ Stroke Pressure Strichdruck+ Right Diagonal Diagonal nach rechts+ Left Diagonal Diagonal nach links++@msg invalid native panel set Ungültiger nativer Bedienfeldsatz++@msg missing panel layout Bedienfeldanordnung fehlt++@msg unsupported native docking operation Nicht unterstützte native Docking-Operationdiff --cc crates/ui-egui/src/i18n/es.tsvindex bc0ecfafd,407905486..dd147da78--- a/crates/ui-egui/src/i18n/es.tsv+++ b/crates/ui-egui/src/i18n/es.tsv@@@ -4037,28 -4047,61 +4047,89 @@@ axis Both AmboDefine a variable first Defina primero una variableText TextoVisibility Visibilidad+# Shared panel docking+ Activate Panel Activar panel+ Change Panel Layout Cambiar distribución de paneles+ Close Panel Cerrar panel+ Move Panel Mover panel+ Group with Agrupar con+ Resize panels Cambiar tamaño de los paneles+ Resize panel window Cambiar tamaño de la ventana del panel+@msg Invalid panel layout; restored the default dock La distribución de paneles no es válida; se restauró el anclaje predeterminado+@msg action is required Se requiere action+@msg anchor must name a registered panel anchor debe indicar un panel registrado+@msg before must name a panel before debe indicar un panel+@msg docking action contains an unknown panel or an excessive split path La acción de anclaje contiene un panel desconocido o una ruta de divisiones demasiado larga+@msg group must be true or false group debe ser true o false+@msg move requires a destination panel Para mover se requiere un panel de destino+@msg move requires an existing destination panel Para mover se requiere un panel de destino existente+@msg onto must name a floating panel onto debe indicar un panel flotante+@msg panel group is empty El grupo de paneles está vacío+@msg panel must name a registered panel panel debe indicar un panel registrado+@msg saved panel layout is invalid; reset the workspace first La distribución guardada de paneles no es válida; primero restablece el espacio de trabajo+@msg zone must be a string zone debe ser una cadena de texto+@msg zone must be tab, center, left, right, top or bottom zone debe ser tab, center, left, right, top o bottom+@msg {key} must be a finite coordinate {key} debe ser una coordenada finita+@msg x and y must be provided together x e y deben proporcionarse juntos+@msg invalid restored panel group El grupo de paneles restaurado no es válido++ # Revolve profile guidance.++ # Interactive Revolve controls.+ Lighting Iluminación+ Revolve angle Ángulo de revolución+ Axis side Lado del eje+ Rotation X Rotación X+ Rotation Y Rotación Y+ Rotation Z Rotación Z+ Shading Sombreado+ Direction Dirección+ Elevation Elevación+ Ambient Luz ambiental+ Segments Segmentos+ Show axis Mostrar eje+ Reset all Restablecer todo+ Reset to default Restablecer valor predeterminado+ Reset all Revolve settings to their defaults. Restablece todos los ajustes de revolución a sus valores predeterminados.+ Drag values or labels. Double-click a value to type. Arrastra los valores o las etiquetas. Haz doble clic en un valor para escribir.+ Drag rings to rotate. Shift snaps to 15°. Arrastra los anillos para girar. Shift ajusta a pasos de 15°.+ Drag the light, or its rings. Shift snaps to 15°. Arrastra la luz o sus anillos. Shift ajusta a pasos de 15°.+ lighting Light Luz+ Keep visible surfaces only when expanding Conservar solo superficies visibles al expandir+ Trim covered geometry on Expand Appearance. Live preview keeps the full surface. Transparent paints and surfaces exceeding visibility limits retain all faces. Recorta la geometría oculta al expandir la apariencia. La vista previa conserva toda la superficie. Las pinturas transparentes y las superficies que superan los límites de visibilidad conservan todas las caras.+ Accented Edges… Bordes acentuados…+ Angled Strokes… Pinceladas en ángulo…+ Crosshatch… Sombreado cruzado…+ Dark Strokes… Pinceladas oscuras…+ Ink Outlines… Contornos de tinta…+ Spatter… Salpicadura…+ Sprayed Strokes… Pinceladas pulverizadas…+ Sumi-e… Sumi-e…+ Accented Edges Bordes acentuados+ Angled Strokes Pinceladas en ángulo+ Crosshatch Sombreado cruzado+ Dark Strokes Pinceladas oscuras+ Ink Outlines Contornos de tinta+ Spatter Salpicadura+ Sprayed Strokes Pinceladas pulverizadas+ Sumi-e Sumi-e+ Direction Balance Equilibrio de dirección+ Stroke Length Longitud de pincelada+ Sharpness Nitidez+ Strength Fuerza+ Balance Equilibrio+ Black Intensity Intensidad del negro+ White Intensity Intensidad del blanco+ Dark Intensity Intensidad oscura+ Spray Radius Radio de pulverización+ Stroke Direction Dirección de pincelada+ Stroke Width Anchura de pincelada+ Stroke Pressure Presión de pincelada+ Right Diagonal Diagonal derecha+ Left Diagonal Diagonal izquierda+ Vertical Guide Guía vertical+ Horizontal Guide Guía horizontal+ Move Guide to Layer Mover guía a capa++@msg invalid native panel set Conjunto nativo de paneles no válido++@msg missing panel layout Falta la distribución de paneles++@msg unsupported native docking operation Operación nativa de anclaje no admitidadiff --cc crates/ui-egui/src/i18n/fr.tsvindex b0dd7b144,9a7373ae1..12d62d3ac--- a/crates/ui-egui/src/i18n/fr.tsv+++ b/crates/ui-egui/src/i18n/fr.tsv@@@ -4049,28 -4059,59 +4059,87 @@@ effect Soft DouDefine a variable first Définissez d’abord une variableText TexteVisibility Visibilité+# Shared panel docking+ Activate Panel Activer le panneau+ Change Panel Layout Modifier la disposition des panneaux+ Close Panel Fermer le panneau+ Move Panel Déplacer le panneau+ Group with Regrouper avec+ Resize panels Redimensionner les panneaux+ Resize panel window Redimensionner la fenêtre du panneau+@msg Invalid panel layout; restored the default dock La disposition des panneaux est invalide ; la disposition ancrée par défaut a été restaurée+@msg action is required action est requis+@msg anchor must name a registered panel anchor doit désigner un panneau enregistré+@msg before must name a panel before doit désigner un panneau+@msg docking action contains an unknown panel or an excessive split path L’action d’ancrage contient un panneau inconnu ou un chemin de divisions trop long+@msg group must be true or false group doit être true ou false+@msg move requires a destination panel Le déplacement nécessite un panneau de destination+@msg move requires an existing destination panel Le déplacement nécessite un panneau de destination existant+@msg onto must name a floating panel onto doit désigner un panneau flottant+@msg panel group is empty Le groupe de panneaux est vide+@msg panel must name a registered panel panel doit désigner un panneau enregistré+@msg saved panel layout is invalid; reset the workspace first La disposition enregistrée des panneaux est invalide ; réinitialisez d’abord l’espace de travail+@msg zone must be a string zone doit être une chaîne de caractères+@msg zone must be tab, center, left, right, top or bottom zone doit être tab, center, left, right, top ou bottom+@msg {key} must be a finite coordinate {key} doit être une coordonnée finie+@msg x and y must be provided together x et y doivent être fournis ensemble+@msg invalid restored panel group Le groupe de panneaux restauré est invalide++ # Interactive Revolve controls.+ Lighting Éclairage+ Revolve angle Angle de révolution+ Axis side Côté de l’axe+ Rotation X Rotation X+ Rotation Y Rotation Y+ Rotation Z Rotation Z+ Shading Ombrage+ Direction Direction+ Elevation Élévation+ Ambient Lumière ambiante+ Segments Segments+ Show axis Afficher l’axe+ Reset all Tout réinitialiser+ Reset to default Valeur par défaut+ Reset all Revolve settings to their defaults. Rétablir les valeurs par défaut de tous les réglages de révolution.+ Drag values or labels. Double-click a value to type. Faites glisser les valeurs ou les libellés. Double-cliquez sur une valeur pour la saisir.+ Drag rings to rotate. Shift snaps to 15°. Faites glisser les anneaux pour tourner. Maj contraint par pas de 15°.+ Drag the light, or its rings. Shift snaps to 15°. Faites glisser la lumière ou ses anneaux. Maj contraint par pas de 15°.+ Keep visible surfaces only when expanding Conserver uniquement les surfaces visibles lors de la décomposition+ Trim covered geometry on Expand Appearance. Live preview keeps the full surface. Transparent paints and surfaces exceeding visibility limits retain all faces. Découpe la géométrie masquée lors de la décomposition de l’aspect. L’aperçu conserve toute la surface. Les peintures transparentes et les surfaces dépassant les limites de visibilité conservent toutes les faces.+ lighting Light Lumière+ Accented Edges… Contours accentués…+ Angled Strokes… Traits obliques…+ Crosshatch… Hachures croisées…+ Dark Strokes… Traits sombres…+ Ink Outlines… Contours à l'encre…+ Spatter… Éclaboussures…+ Sprayed Strokes… Traits pulvérisés…+ Sumi-e… Sumi-e…+ Accented Edges Contours accentués+ Angled Strokes Traits obliques+ Crosshatch Hachures croisées+ Dark Strokes Traits sombres+ Ink Outlines Contours à l'encre+ Spatter Éclaboussures+ Sprayed Strokes Traits pulvérisés+ Sumi-e Sumi-e+ Direction Balance Équilibre de direction+ Stroke Length Longueur des traits+ Sharpness Netteté+ Strength Force+ Balance Équilibre+ Black Intensity Intensité du noir+ White Intensity Intensité du blanc+ Dark Intensity Intensité sombre+ Spray Radius Rayon de pulvérisation+ Stroke Direction Direction des traits+ Stroke Width Largeur des traits+ Stroke Pressure Pression des traits+ Right Diagonal Diagonale droite+ Left Diagonal Diagonale gauche+ Vertical Guide Repère vertical+ Horizontal Guide Repère horizontal+ Move Guide to Layer Déplacer le repère vers le calque++@msg invalid native panel set Ensemble natif de panneaux invalide++@msg missing panel layout Disposition des panneaux manquante++@msg unsupported native docking operation Opération native d’ancrage non prise en chargediff --cc crates/ui-egui/src/i18n/it.tsvindex 940a2e985,d8c9a6b1f..e693ee6db--- a/crates/ui-egui/src/i18n/it.tsv+++ b/crates/ui-egui/src/i18n/it.tsv@@@ -4039,28 -4049,61 +4049,89 @@@ effect Regular NormalDefine a variable first Definisci prima una variabileText TestoVisibility Visibilità+# Shared panel docking+ Activate Panel Attiva pannello+ Change Panel Layout Modifica disposizione dei pannelli+ Close Panel Chiudi pannello+ Move Panel Sposta pannello+ Group with Raggruppa con+ Resize panels Ridimensiona pannelli+ Resize panel window Ridimensiona finestra del pannello+@msg Invalid panel layout; restored the default dock La disposizione dei pannelli non è valida; è stato ripristinato l’ancoraggio predefinito+@msg action is required action è obbligatorio+@msg anchor must name a registered panel anchor deve indicare un pannello registrato+@msg before must name a panel before deve indicare un pannello+@msg docking action contains an unknown panel or an excessive split path L’azione di ancoraggio contiene un pannello sconosciuto o un percorso di divisioni troppo lungo+@msg group must be true or false group deve essere true o false+@msg move requires a destination panel Lo spostamento richiede un pannello di destinazione+@msg move requires an existing destination panel Lo spostamento richiede un pannello di destinazione esistente+@msg onto must name a floating panel onto deve indicare un pannello mobile+@msg panel group is empty Il gruppo di pannelli è vuoto+@msg panel must name a registered panel panel deve indicare un pannello registrato+@msg saved panel layout is invalid; reset the workspace first La disposizione salvata dei pannelli non è valida; reimposta prima l’area di lavoro+@msg zone must be a string zone deve essere una stringa+@msg zone must be tab, center, left, right, top or bottom zone deve essere tab, center, left, right, top o bottom+@msg {key} must be a finite coordinate {key} deve essere una coordinata finita+@msg x and y must be provided together x e y devono essere forniti insieme+@msg invalid restored panel group Il gruppo di pannelli ripristinato non è valido++ # Revolve profile guidance.++ # Interactive Revolve controls.+ Lighting Illuminazione+ Revolve angle Angolo di rivoluzione+ Axis side Lato dell’asse+ Rotation X Rotazione X+ Rotation Y Rotazione Y+ Rotation Z Rotazione Z+ Shading Ombreggiatura+ Direction Direzione+ Elevation Elevazione+ Ambient Luce ambientale+ Segments Segmenti+ Show axis Mostra asse+ Reset all Ripristina tutto+ Reset to default Ripristina valore predefinito+ Reset all Revolve settings to their defaults. Ripristina tutte le impostazioni di rivoluzione ai valori predefiniti.+ Drag values or labels. Double-click a value to type. Trascina i valori o le etichette. Fai doppio clic su un valore per digitarlo.+ Drag rings to rotate. Shift snaps to 15°. Trascina gli anelli per ruotare. Shift usa incrementi di 15°.+ Drag the light, or its rings. Shift snaps to 15°. Trascina la luce o i suoi anelli. Shift usa incrementi di 15°.+ lighting Light Luce+ Keep visible surfaces only when expanding Mantieni solo le superfici visibili durante l’espansione+ Trim covered geometry on Expand Appearance. Live preview keeps the full surface. Transparent paints and surfaces exceeding visibility limits retain all faces. Ritaglia la geometria coperta durante Espandi aspetto. L’anteprima mantiene la superficie completa. Le tinte trasparenti e le superfici che superano i limiti di visibilità mantengono tutte le facce.+ Accented Edges… Bordi accentuati…+ Angled Strokes… Pennellate angolate…+ Crosshatch… Tratteggio incrociato…+ Dark Strokes… Pennellate scure…+ Ink Outlines… Contorni a china…+ Spatter… Spruzzo…+ Sprayed Strokes… Pennellate spruzzate…+ Sumi-e… Sumi-e…+ Accented Edges Bordi accentuati+ Angled Strokes Pennellate angolate+ Crosshatch Tratteggio incrociato+ Dark Strokes Pennellate scure+ Ink Outlines Contorni a china+ Spatter Spruzzo+ Sprayed Strokes Pennellate spruzzate+ Sumi-e Sumi-e+ Direction Balance Bilanciamento direzione+ Stroke Length Lunghezza pennellata+ Sharpness Nitidezza+ Strength Forza+ Balance Bilanciamento+ Black Intensity Intensità nero+ White Intensity Intensità bianco+ Dark Intensity Intensità scuri+ Spray Radius Raggio spruzzo+ Stroke Direction Direzione pennellata+ Stroke Width Larghezza pennellata+ Stroke Pressure Pressione pennellata+ Right Diagonal Diagonale destra+ Left Diagonal Diagonale sinistra+ Vertical Guide Guida verticale+ Horizontal Guide Guida orizzontale+ Move Guide to Layer Sposta guida nel livello++@msg invalid native panel set Gruppo nativo di pannelli non valido++@msg missing panel layout Disposizione dei pannelli mancante++@msg unsupported native docking operation Operazione nativa di ancoraggio non supportatadiff --cc crates/ui-egui/src/i18n/ja.tsvindex 402031deb,9d691732e..9a1339899--- a/crates/ui-egui/src/i18n/ja.tsv+++ b/crates/ui-egui/src/i18n/ja.tsv@@@ -4032,29 -4042,61 +4042,90 @@@ effect Vertical 垂�Define a variable first 先に変数を定義してくださいText テキストVisibility 表示状態+# tested). Left in English on purpose (`MENU_KEEP_AS_IS` in the tests): the product name, language+# Shared panel docking+ Activate Panel パネルをアクティブにする+ Change Panel Layout パネルの配置を変更+ Close Panel パネルを閉じる+ Move Panel パネルを移動+ Group with グループ化先+ Resize panels パネルのサイズを変更+ Resize panel window パネルウィンドウのサイズを変更+@msg invalid restored panel group 復元されたパネルグループが無効です+@msg Invalid panel layout; restored the default dock パネル配置が無効です。既定のドックを復元しました+@msg action is required action を指定してください+@msg anchor must name a registered panel anchor に登録済みパネルを指定してください+@msg before must name a panel before にパネルを指定してください+@msg docking action contains an unknown panel or an excessive split path ドッキング操作に不明なパネルまたは長すぎる分割パスが含まれています+@msg group must be true or false group は true または false にしてください+@msg move requires a destination panel 移動先のパネルを指定してください+@msg move requires an existing destination panel 移動先には既存のパネルを指定してください+@msg onto must name a floating panel onto にフローティングパネルを指定してください+@msg panel group is empty パネルグループが空です+@msg panel must name a registered panel panel に登録済みパネルを指定してください+@msg saved panel layout is invalid; reset the workspace first 保存されたパネル配置が無効です。先にワークスペースをリセットしてください+@msg x and y must be provided together x と y は両方指定してください+@msg zone must be a string zone は文字列にしてください+@msg zone must be tab, center, left, right, top or bottom zone は tab、center、left、right、top、bottom のいずれかにしてください+@msg {key} must be a finite coordinate {key} は有限の座標にしてください++ # Revolve profile guidance.++ # Interactive Revolve controls.+ Lighting 照明+ Revolve angle 回転体の角度+ Axis side 軸の位置+ Rotation X X 軸回転+ Rotation Y Y 軸回転+ Rotation Z Z 軸回転+ Shading 陰影+ Direction 方向+ Elevation 仰角+ Ambient 環境光+ Segments 分割数+ Show axis 軸を表示+ Reset all すべてリセット+ Reset to default 初期値に戻す+ Reset all Revolve settings to their defaults. 回転体のすべての設定を初期値に戻します。+ Drag values or labels. Double-click a value to type. 数値やラベルをドラッグして調整。数値をダブルクリックすると入力できます。+ Drag rings to rotate. Shift snaps to 15°. リングをドラッグして回転。Shiftで15°刻みに調整。+ Drag the light, or its rings. Shift snaps to 15°. ライトやリングをドラッグ。Shiftで15°刻みに調整。+ lighting Light ライト+ Keep visible surfaces only when expanding アピアランス分割時に見える面だけを保持+ Trim covered geometry on Expand Appearance. Live preview keeps the full surface. Transparent paints and surfaces exceeding visibility limits retain all faces. アピアランスの分割時に隠れた部分を除去します。プレビューでは面全体を保持します。透明なペイントや可視性処理の制限を超える面は、すべての面を保持します。+ Accented Edges… エッジの強調…+ Angled Strokes… 斜めのストローク…+ Crosshatch… クロスハッチ…+ Dark Strokes… 暗いストローク…+ Ink Outlines… インクの輪郭…+ Spatter… はね…+ Sprayed Strokes… スプレーストローク…+ Sumi-e… 墨絵…+ Accented Edges エッジの強調+ Angled Strokes 斜めのストローク+ Crosshatch クロスハッチ+ Dark Strokes 暗いストローク+ Ink Outlines インクの輪郭+ Spatter はね+ Sprayed Strokes スプレーストローク+ Sumi-e 墨絵+ Direction Balance 方向のバランス+ Stroke Length ストロークの長さ+ Sharpness シャープさ+ Strength 強度+ Balance バランス+ Black Intensity 黒の強さ+ White Intensity 白の強さ+ Dark Intensity 暗部の強さ+ Spray Radius スプレー半径+ Stroke Direction ストロークの方向+ Stroke Width ストロークの幅+ Stroke Pressure ストロークの筆圧+ Right Diagonal 右斜め+ Left Diagonal 左斜め+ Vertical Guide 垂直ガイド+ Horizontal Guide 水平ガイド+ Move Guide to Layer ガイドをレイヤーへ移動++@msg invalid native panel set ネイティブパネルセットが無効です++@msg missing panel layout パネル配置がありません++@msg unsupported native docking operation ネイティブドッキング操作は未対応ですdiff --cc crates/ui-egui/src/i18n/pt-br.tsvindex 0b7f987f4,b5039cb26..e4befb686--- a/crates/ui-egui/src/i18n/pt-br.tsv+++ b/crates/ui-egui/src/i18n/pt-br.tsv@@@ -2754,11 -2756,40 +2756,48 @@@Ocean Ripple… Ondulação oceânica…Rename Data Set Renomear conjunto de dadosRename Variable Renomear variável+# Shared panel docking+ Activate Panel Ativar Painel+ Change Panel Layout Alterar Layout dos Painéis+ Close Panel Fechar Painel+ Move Panel Mover Painel+ Group with Agrupar com+ Resize panels Redimensionar painéis+ Resize panel window Redimensionar janela do painel++ # Interactive Revolve controls.+ Lighting Iluminação+ Revolve angle Ângulo de giro+ Axis side Lado do eixo+ Rotation X Rotação X+ Rotation Y Rotação Y+ Rotation Z Rotação Z+ Shading Sombreamento+ Direction Direção+ Elevation Elevação+ Intensity Intensidade+ Ambient Luz ambiente+ Segments Segmentos+ Show axis Mostrar eixo+ Reset all Redefinir tudo+ Reset to default Restaurar padrão+ Reset all Revolve settings to their defaults. Restaurar os valores padrão de todas as configurações de revolução.+ Drag values or labels. Double-click a value to type. Arraste os valores ou rótulos. Clique duas vezes em um valor para digitá-lo.+ Drag rings to rotate. Shift snaps to 15°. Arraste os anéis para girar. Shift ajusta em incrementos de 15°.+ Drag the light, or its rings. Shift snaps to 15°. Arraste a luz ou seus anéis. Shift ajusta em incrementos de 15°.+ lighting Light Luz+ Keep visible surfaces only when expanding Manter apenas as superfícies visíveis ao expandir+ Trim covered geometry on Expand Appearance. Live preview keeps the full surface. Transparent paints and surfaces exceeding visibility limits retain all faces. Recortar a geometria coberta ao expandir a aparência. A visualização ao vivo mantém toda a superfície. Pinturas transparentes e superfícies que excedem os limites de visibilidade mantêm todas as faces.+ Left Esquerda+ Right Direita+ Offset Deslocamento+ Accented Edges… Bordas Acentuadas…+ Angled Strokes… Traços Angulares…+ Crosshatch… Hachura Cruzada…+ Dark Strokes… Traços Escuros…+ Ink Outlines… Contornos a Tinta…+ Spatter… Respingo…+ Sprayed Strokes… Traços Borrifados…+ Sumi-e… Sumi-e…+ Vertical Guide Guia vertical+ Horizontal Guide Guia horizontaldiff --cc crates/ui-egui/src/i18n/ru.tsvindex d4e9cc549,95591e31a..e805d0aff--- a/crates/ui-egui/src/i18n/ru.tsv+++ b/crates/ui-egui/src/i18n/ru.tsv@@@ -4035,28 -4045,61 +4045,89 @@@ axis Both Об�Define a variable first Сначала определите переменнуюText ТекстVisibility Видимость+# Shared panel docking+ Activate Panel Активировать панель+ Change Panel Layout Изменить расположение панелей+ Close Panel Закрыть панель+ Move Panel Переместить панель+ Group with Сгруппировать с+ Resize panels Изменить размер панелей+ Resize panel window Изменить размер окна панели+@msg Invalid panel layout; restored the default dock Недопустимое расположение панелей; восстановлено расположение по умолчанию+@msg action is required Необходимо указать action+@msg anchor must name a registered panel anchor должен указывать зарегистрированную панель+@msg before must name a panel before должен указывать панель+@msg docking action contains an unknown panel or an excessive split path Действие прикрепления содержит неизвестную панель или слишком длинный путь разделений+@msg group must be true or false group должен иметь значение true или false+@msg move requires a destination panel Для перемещения требуется целевая панель+@msg move requires an existing destination panel Для перемещения требуется существующая целевая панель+@msg onto must name a floating panel onto должен указывать плавающую панель+@msg panel group is empty Группа панелей пуста+@msg panel must name a registered panel panel должен указывать зарегистрированную панель+@msg saved panel layout is invalid; reset the workspace first Сохранённое расположение панелей недопустимо; сначала сбросьте рабочую среду+@msg zone must be a string zone должен быть строкой+@msg zone must be tab, center, left, right, top or bottom zone должен иметь значение tab, center, left, right, top или bottom+@msg {key} must be a finite coordinate {key} должен быть конечной координатой+@msg x and y must be provided together x и y необходимо указывать вместе+@msg invalid restored panel group Восстановленная группа панелей недопустима++ # Revolve profile guidance.++ # Interactive Revolve controls.+ Lighting Освещение+ Revolve angle Угол вращения профиля+ Axis side Сторона оси+ Rotation X Поворот X+ Rotation Y Поворот Y+ Rotation Z Поворот Z+ Shading Затенение+ Direction Направление+ Elevation Высота+ Ambient Фоновое освещение+ Segments Сегменты+ Show axis Показать ось+ Reset all Сбросить всё+ Reset to default Вернуть значение по умолчанию+ Reset all Revolve settings to their defaults. Возвращает все настройки вращения профиля к значениям по умолчанию.+ Drag values or labels. Double-click a value to type. Перетаскивайте значения или подписи. Для ввода дважды щёлкните значение.+ Drag rings to rotate. Shift snaps to 15°. Перетаскивайте кольца для вращения. Shift задаёт шаг 15°.+ Drag the light, or its rings. Shift snaps to 15°. Перетаскивайте источник света или кольца. Shift задаёт шаг 15°.+ lighting Light Свет+ Keep visible surfaces only when expanding При разборе сохранять только видимые поверхности+ Trim covered geometry on Expand Appearance. Live preview keeps the full surface. Transparent paints and surfaces exceeding visibility limits retain all faces. Удаляет скрытую геометрию при разборе оформления. Предпросмотр сохраняет всю поверхность. Прозрачные краски и поверхности, превышающие ограничения видимости, сохраняют все грани.+ Accented Edges… Акцент на краях…+ Angled Strokes… Наклонные мазки…+ Crosshatch… Перекрёстная штриховка…+ Dark Strokes… Тёмные мазки…+ Ink Outlines… Контуры тушью…+ Spatter… Разбрызгивание…+ Sprayed Strokes… Распылённые мазки…+ Sumi-e… Суми-э…+ Accented Edges Акцент на краях+ Angled Strokes Наклонные мазки+ Crosshatch Перекрёстная штриховка+ Dark Strokes Тёмные мазки+ Ink Outlines Контуры тушью+ Spatter Разбрызгивание+ Sprayed Strokes Распылённые мазки+ Sumi-e Суми-э+ Direction Balance Баланс направления+ Stroke Length Длина мазка+ Sharpness Резкость+ Strength Сила+ Balance Баланс+ Black Intensity Интенсивность чёрного+ White Intensity Интенсивность белого+ Dark Intensity Интенсивность тёмного+ Spray Radius Радиус распыления+ Stroke Direction Направление мазков+ Stroke Width Ширина мазка+ Stroke Pressure Нажим мазка+ Right Diagonal Диагональ вправо+ Left Diagonal Диагональ влево+ Vertical Guide Вертикальная направляющая+ Horizontal Guide Горизонтальная направляющая+ Move Guide to Layer Переместить направляющую на слой++@msg invalid native panel set Недопустимый собственный набор панелей++@msg missing panel layout Отсутствует расположение панелей++@msg unsupported native docking operation Неподдерживаемая собственная операция прикрепленияdiff --cc crates/ui-egui/src/i18n/uk.tsvindex 2f681dbf9,3410095a2..370f820e3--- a/crates/ui-egui/src/i18n/uk.tsv+++ b/crates/ui-egui/src/i18n/uk.tsv@@@ -4020,28 -4030,59 +4030,87 @@@ axis Both Обидв�Define a variable first Спочатку визначте зміннуText ТекстVisibility Видимість+# Shared panel docking+ Activate Panel Активувати панель+ Change Panel Layout Змінити розташування панелей+ Close Panel Закрити панель+ Move Panel Перемістити панель+ Group with Згрупувати з+ Resize panels Змінити розмір панелей+ Resize panel window Змінити розмір вікна панелі+@msg Invalid panel layout; restored the default dock Неприпустиме розташування панелей; відновлено типове розташування+@msg action is required Потрібно вказати action+@msg anchor must name a registered panel anchor має вказувати зареєстровану панель+@msg before must name a panel before має вказувати панель+@msg docking action contains an unknown panel or an excessive split path Дія прикріплення містить невідому панель або надто довгий шлях поділів+@msg group must be true or false group має мати значення true або false+@msg move requires a destination panel Для переміщення потрібна цільова панель+@msg move requires an existing destination panel Для переміщення потрібна наявна цільова панель+@msg onto must name a floating panel onto має вказувати плаваючу панель+@msg panel group is empty Група панелей порожня+@msg panel must name a registered panel panel має вказувати зареєстровану панель+@msg saved panel layout is invalid; reset the workspace first Збережене розташування панелей неприпустиме; спочатку скиньте робоче середовище+@msg zone must be a string zone має бути рядком+@msg zone must be tab, center, left, right, top or bottom zone має мати значення tab, center, left, right, top або bottom+@msg {key} must be a finite coordinate {key} має бути скінченною координатою+@msg x and y must be provided together x та y потрібно вказувати разом+@msg invalid restored panel group Відновлена група панелей неприпустима++ # Interactive Revolve controls.+ Lighting Освітлення+ Revolve angle Кут обертання+ Axis side Бік осі+ Rotation X Обертання X+ Rotation Y Обертання Y+ Rotation Z Обертання Z+ Shading Затінення+ Direction Напрямок+ Elevation Висота+ Ambient Навколишнє освітлення+ Segments Сегменти+ Show axis Показати вісь+ Reset all Скинути все+ Reset to default Відновити типове значення+ Reset all Revolve settings to their defaults. Відновити типові значення всіх параметрів обертання.+ Drag values or labels. Double-click a value to type. Перетягуйте значення або підписи. Двічі клацніть значення, щоб увести його.+ Drag rings to rotate. Shift snaps to 15°. Перетягуйте кільця для обертання. Shift задає крок 15°.+ Drag the light, or its rings. Shift snaps to 15°. Перетягуйте джерело світла або його кільця. Shift задає крок 15°.+ Keep visible surfaces only when expanding Під час розгортання зберігати лише видимі поверхні+ Trim covered geometry on Expand Appearance. Live preview keeps the full surface. Transparent paints and surfaces exceeding visibility limits retain all faces. Обрізає приховану геометрію під час розгортання оформлення. Попередній перегляд зберігає всю поверхню. Прозорі заливки та поверхні, що перевищують обмеження видимості, зберігають усі грані.+ lighting Light Світло+ Accented Edges… Акцент на краях…+ Angled Strokes… Похилі мазки…+ Crosshatch… Перехресне штрихування…+ Dark Strokes… Темні мазки…+ Ink Outlines… Контури тушшю…+ Spatter… Розбризкування…+ Sprayed Strokes… Розпилені мазки…+ Sumi-e… Сумі-е…+ Accented Edges Акцент на краях+ Angled Strokes Похилі мазки+ Crosshatch Перехресне штрихування+ Dark Strokes Темні мазки+ Ink Outlines Контури тушшю+ Spatter Розбризкування+ Sprayed Strokes Розпилені мазки+ Sumi-e Сумі-е+ Direction Balance Баланс напрямку+ Stroke Length Довжина мазка+ Sharpness Різкість+ Strength Сила+ Balance Баланс+ Black Intensity Інтенсивність чорного+ White Intensity Інтенсивність білого+ Dark Intensity Інтенсивність темного+ Spray Radius Радіус розпилення+ Stroke Direction Напрямок мазків+ Stroke Width Ширина мазка+ Stroke Pressure Натиск мазка+ Right Diagonal Діагональ праворуч+ Left Diagonal Діагональ ліворуч+ Vertical Guide Вертикальна напрямна+ Horizontal Guide Горизонтальна напрямна+ Move Guide to Layer Перемістити напрямну на шар++@msg invalid native panel set Неприпустимий власний набір панелей++@msg missing panel layout Відсутнє розташування панелей++@msg unsupported native docking operation Непідтримувана власна операція прикріпленняdiff --cc crates/ui-egui/src/i18n/zh-hans.tsvindex 6d3d74ed6,e293f0b92..576ea5117--- a/crates/ui-egui/src/i18n/zh-hans.tsv+++ b/crates/ui-egui/src/i18n/zh-hans.tsv@@@ -3668,11 -3670,61 +3670,69 @@@ effect Vertical 垂�Define a variable first 请先定义一个变量Text 文本Visibility 可见性+# Shared panel docking+ Activate Panel 激活面板+ Change Panel Layout 更改面板布局+ Close Panel 关闭面板+ Move Panel 移动面板+ Group with 组合到+ Resize panels 调整面板大小+ Resize panel window 调整面板窗口大小++ # Revolve profile guidance.++ # Interactive Revolve controls.+ Lighting 照明+ Revolve angle 旋转成形角度+ Axis side 轴的位置+ Rotation X X 轴旋转+ Rotation Y Y 轴旋转+ Rotation Z Z 轴旋转+ Shading 明暗处理+ Direction 方向+ Elevation 仰角+ Ambient 环境光+ Segments 分段数+ Show axis 显示轴+ Reset all 全部重置+ Reset to default 重置为默认值+ Reset all Revolve settings to their defaults. 将所有旋转成形设置重置为默认值。+ Drag values or labels. Double-click a value to type. 拖动数值或标签。双击数值即可输入。+ Drag rings to rotate. Shift snaps to 15°. 拖动圆环旋转。按住 Shift 以 15° 为步长调整。+ Drag the light, or its rings. Shift snaps to 15°. 拖动光源或圆环。按住 Shift 以 15° 为步长调整。+ lighting Light 光源+ Keep visible surfaces only when expanding 扩展时仅保留可见表面+ Trim covered geometry on Expand Appearance. Live preview keeps the full surface. Transparent paints and surfaces exceeding visibility limits retain all faces. 扩展外观时裁剪被遮挡的几何区域。实时预览保留完整表面。透明绘制或超出可见性处理限制的表面保留所有面。+ Accented Edges… 强化的边缘…+ Angled Strokes… 成角的线条…+ Crosshatch… 阴影线…+ Dark Strokes… 深色线条…+ Ink Outlines… 墨水轮廓…+ Spatter… 喷溅…+ Sprayed Strokes… 喷色描边…+ Sumi-e… 水墨画…+ Accented Edges 强化的边缘+ Angled Strokes 成角的线条+ Crosshatch 阴影线+ Dark Strokes 深色线条+ Ink Outlines 墨水轮廓+ Spatter 喷溅+ Sprayed Strokes 喷色描边+ Sumi-e 水墨画+ Direction Balance 方向平衡+ Stroke Length 描边长度+ Sharpness 锐化程度+ Strength 力度+ Balance 平衡+ Black Intensity 黑色强度+ White Intensity 白色强度+ Dark Intensity 深色强度+ Spray Radius 喷色半径+ Stroke Direction 描边方向+ Stroke Width 描边宽度+ Stroke Pressure 描边压力+ Right Diagonal 右对角线+ Left Diagonal 左对角线+ Vertical Guide 垂直参考线+ Horizontal Guide 水平参考线+ Move Guide to Layer 将参考线移至图层diff --cc crates/ui-egui/src/i18n/zh-hant.tsvindex 60f0ecf68,784465963..45e536342--- a/crates/ui-egui/src/i18n/zh-hant.tsv+++ b/crates/ui-egui/src/i18n/zh-hant.tsv@@@ -3449,11 -3451,61 +3451,69 @@@ effect Soft 柔�Define a variable first 請先定義一個變數Text 文字Visibility 可見性+# Shared panel docking+ Activate Panel 啟用面板+ Change Panel Layout 變更面板配置+ Close Panel 關閉面板+ Move Panel 移動面板+ Group with 群組至+ Resize panels 調整面板大小+ Resize panel window 調整面板視窗大小++ # Revolve profile guidance.++ # Interactive Revolve controls.+ Lighting 照明+ Revolve angle 旋轉成形角度+ Axis side 軸的位置+ Rotation X X 軸旋轉+ Rotation Y Y 軸旋轉+ Rotation Z Z 軸旋轉+ Shading 明暗處理+ Direction 方向+ Elevation 仰角+ Ambient 環境光+ Segments 分段數+ Show axis 顯示軸+ Reset all 全部重設+ Reset to default 重設為預設值+ Reset all Revolve settings to their defaults. 將所有旋轉成形設定重設為預設值。+ Drag values or labels. Double-click a value to type. 拖曳數值或標籤。按兩下數值即可輸入。+ Drag rings to rotate. Shift snaps to 15°. 拖曳圓環旋轉。按住 Shift 以 15° 為間距調整。+ Drag the light, or its rings. Shift snaps to 15°. 拖曳光源或圓環。按住 Shift 以 15° 為間距調整。+ lighting Light 光源+ Keep visible surfaces only when expanding 展開時僅保留可見表面+ Trim covered geometry on Expand Appearance. Live preview keeps the full surface. Transparent paints and surfaces exceeding visibility limits retain all faces. 展開外觀時裁剪被遮擋的幾何區域。即時預覽保留完整表面。透明繪製或超出可見性處理限制的表面保留所有面。+ Accented Edges… 強調邊緣…+ Angled Strokes… 傾斜筆觸…+ Crosshatch… 交叉影線…+ Dark Strokes… 深色筆觸…+ Ink Outlines… 墨水輪廓…+ Spatter… 噴濺…+ Sprayed Strokes… 噴灑筆觸…+ Sumi-e… 水墨畫…+ Accented Edges 強調邊緣+ Angled Strokes 傾斜筆觸+ Crosshatch 交叉影線+ Dark Strokes 深色筆觸+ Ink Outlines 墨水輪廓+ Spatter 噴濺+ Sprayed Strokes 噴灑筆觸+ Sumi-e 水墨畫+ Direction Balance 方向平衡+ Stroke Length 筆觸長度+ Sharpness 銳利度+ Strength 力度+ Balance 平衡+ Black Intensity 黑色強度+ White Intensity 白色強度+ Dark Intensity 暗部強度+ Spray Radius 噴灑半徑+ Stroke Direction 筆觸方向+ Stroke Width 筆觸寬度+ Stroke Pressure 筆觸壓力+ Right Diagonal 右對角線+ Left Diagonal 左對角線+ Vertical Guide 垂直參考線+ Horizontal Guide 水平參考線+ Move Guide to Layer 將參考線移至圖層diff --cc crates/ui-egui/src/panel_docking.rsindex 8efaf2c86,000000000..df21317eamode 100644,000000..100644--- a/crates/ui-egui/src/panel_docking.rs+++ b/crates/ui-egui/src/panel_docking.rs@@@ -1,809 -1,0 +1,991 @@@+//! Application-owned panel IDs and commands around the shared docking layout.++use craft_ui::docking::{Action, Floating, Layout, Node, Placement, Zone};+use serde_json::{Value, json};++use crate::VectorcraftApp;++#[derive(Clone, Default)]+struct LegacyDrag {+ layout: Option<Layout<String>>,+ open_panel: Option<String>,+ floating: Vec<crate::state::FloatingPanels>,+ icons: std::collections::BTreeSet<String>,+}++#[derive(Clone)]+struct RootGroupDrag {+ panel: String,+ layout: Layout<String>,+ hidden: std::collections::BTreeMap<String, craft_ui::docking::Location<String>>,+ generation: u64,+}++fn cancel_legacy_drag(app: &mut VectorcraftApp, ctx: &egui::Context) -> bool {+ let key = egui::Id::new("vectorcraft-panel-docking").with("legacy-origin");+ let previous = ctx.data_mut(|data| data.remove_temp::<LegacyDrag>(key));+ if let Some(previous) = previous {+ app.ui.open_panel = previous.open_panel;+ app.ui.floating_panels = previous.floating;+ app.ui.docking = previous.layout;+ app.ui.docking_icons = previous.icons;+ craft_ui::docking::cancel_drag::<String>(ctx, egui::Id::new("vectorcraft-panel-docking"));+ true+ } else {+ false+ }+}++fn normalize(raw: &str) -> Option<&'static str> {+ crate::menus::normalize_panel(raw)+}++pub(crate) fn valid(layout: &Layout<String>) -> bool {+ layout.validate().is_ok() && layout.panels().iter().all(|id| normalize(id) == Some(id.as_str()))+}++fn legacy(app: &VectorcraftApp) -> Layout<String> {+ let panels: Vec<String> = crate::floating::docked_tabs(&app.ui).map(|tab| tab.info().0.to_string()).collect();+ let active = panels.iter().position(|id| id == app.ui.dock_tab.info().0).unwrap_or(0);+ let root = (!panels.is_empty()).then_some(Node::Tabs { panels, active });+ let mut layout = Layout { root, floating: Vec::new() };+ for group in &app.ui.floating_panels {+ let panels: Vec<String> = group.panels.iter().filter(|id| normalize(id).is_some() && !layout.contains(id)).cloned().collect();+ if !panels.is_empty() && group.pos.iter().all(|v| v.is_finite()) {+ let active = group.active.min(panels.len().saturating_sub(1));+ layout.floating.push(Floating {+ panels,+ active,+ rect: [group.pos[0], group.pos[1], group.width.unwrap_or(300.0).clamp(200.0, 720.0), 400.0],+ });+ }+ }+ layout+}++fn icon_origins(app: &VectorcraftApp) -> std::collections::BTreeSet<String> {+ let mut icons = app.ui.docking_icons.clone();+ if app.ui.docking.is_none() {+ // Legacy workspaces have no custom groups in the dock. Icon-panel floats therefore+ // retain their native rail destination when first converted to a shared layout.+ icons.extend(+ app.ui+ .floating_panels+ .iter()+ .flat_map(|group| group.panels.iter())+ .filter(|id| crate::state::ICON_PANELS.iter().any(|entry| entry.0 == id.as_str()))+ .cloned(),+ );+ }+ icons+}++fn first_root(layout: &Layout<String>, except: &str) -> Option<String> {+ let root = Layout { root: layout.root.clone(), floating: Vec::new() };+ root.panels().into_iter().find(|p| p.as_str() != except).cloned()+}++// Preserve the native dock's selected tab when another tab leaves. If the selected tab+// itself leaves, the remaining group's first tab is the native fallback.+fn float_fallback(layout: &Layout<String>, panel: &str) -> Option<String> {+ let mut pending: Vec<_> = layout.root.iter().collect();+ while let Some(node) = pending.pop() {+ match node {+ Node::Tabs { panels, active } if panels.iter().any(|id| id == panel) => {+ return panels.get(*active).filter(|id| id.as_str() != panel).or_else(|| panels.iter().find(|id| id.as_str() != panel)).cloned();+ }+ Node::Split { first, second, .. } => pending.extend([second.as_ref(), first.as_ref()]),+ _ => {}+ }+ }+ None+}++fn restore_float_fallback(layout: &mut Layout<String>, panel: Option<String>) -> Result<(), String> {+ if let Some(panel) = panel.filter(|panel| Layout { root: layout.root.clone(), floating: Vec::new() }.contains(panel)) {+ layout.apply(Action::Activate { panel }).map_err(|error| error.to_string())?;+ }+ Ok(())+}++fn ensure(layout: &mut Layout<String>, panel: &str) -> Result<(), String> {+ let anchor = first_root(layout, panel);+ layout.apply(Action::Open { panel: panel.into(), anchor }).map_err(|e| e.to_string())+}++fn group_members(layout: &Layout<String>, panel: &str) -> Vec<String> {+ if let Some(group) = layout.floating.iter().find(|g| g.panels.iter().any(|id| id == panel)) {+ return group.panels.clone();+ }+ let mut visit: Vec<_> = layout.root.iter().collect();+ while let Some(node) = visit.pop() {+ match node {+ Node::Tabs { panels, .. } if panels.iter().any(|id| id == panel) => return panels.clone(),+ Node::Split { first, second, .. } => {+ visit.push(second);+ visit.push(first);+ }+ _ => {}+ }+ }+ vec![panel.into()]+}++fn number(params: &Value, key: &str, default: f32) -> Result<f32, String> {+ match params.get(key) {+ None => Ok(default),+ Some(v) => v+ .as_f64()+ .filter(|v| v.is_finite() && v.abs() <= 1_000_000.0)+ .map(|v| v as f32)+ .ok_or_else(|| format!("{key} must be a finite coordinate")),+ }+}++fn placement(params: &Value) -> Result<Placement<String>, String> {+ if let Some(before) = params.get("before") {+ let id = before.as_str().and_then(normalize).ok_or("before must name a panel")?;+ return Ok(Placement::Tab { before: Some(id.into()) });+ }+ let zone = match params.get("zone") {+ None => "tab",+ Some(value) => value.as_str().ok_or("zone must be a string")?,+ };+ Ok(match zone {+ "tab" => Placement::Tab { before: None },+ "center" => Placement::Split(Zone::Center),+ "left" => Placement::Split(Zone::Left),+ "right" => Placement::Split(Zone::Right),+ "top" => Placement::Split(Zone::Top),+ "bottom" => Placement::Split(Zone::Bottom),+ _ => return Err("zone must be tab, center, left, right, top or bottom".into()),+ })+}++pub(crate) fn command(app: &mut VectorcraftApp, id: &str, params: &Value) -> Option<Result<Value, String>> {++ if matches!(id, "window.panel.float" | "window.panel.dock")++ && (params.get("above").is_some()++ || params.get("below").is_some()++ || params.get("column").is_some()++ || params.get("collapsed").is_some()++ || params++ .get("onto")++ .and_then(Value::as_str)++ .and_then(normalize)++ .and_then(|id| crate::floating::group_of(&app.ui, id))++ .and_then(|i| app.ui.floating_panels.get(i))++ .is_some_and(decorated)++ || params++ .get("panel")++ .and_then(Value::as_str)++ .and_then(normalize)++ .and_then(|id| crate::floating::group_of(&app.ui, id))++ .and_then(|i| app.ui.floating_panels.get(i))++ .is_some_and(decorated))++ {++ return Some(native_change(app, id, params));++ }+ if id == "window.panel.layout" {+ return Some(+ params+ .get("action")+ .ok_or_else(|| "action is required".to_string())+ .and_then(|value| serde_json::from_value::<Action<String>>(value.clone()).map_err(|error| error.to_string()))+ .and_then(|action| apply_action(app, action)),+ );+ }+ if params.get("panel").and_then(Value::as_str).is_some_and(|s| s.eq_ignore_ascii_case("tools") || s.eq_ignore_ascii_case("toolbar")) {+ return None;+ }+ let operation = match id {+ "window.panel.move" => "move",+ "window.panel.float" => "float",+ "window.panel.dock" => "dock",+ "window.panel.activate" => "activate",+ "window.panel.close" => "close",+ "window.panel" if app.ui.docking.is_some() => "activate",+ _ => return None,+ };+ Some(change(app, operation, params).map(|value| {+ if id == "window.panel"+ && let Some(panel) = params.get("panel").and_then(Value::as_str).and_then(normalize)+ && let Some(group) = app.ui.floating_panels.iter().find(|group| group.panels.iter().any(|id| id == panel))+ {+ return json!({"floating":group.panels});+ }+ value+ }))+}++// UI output and automation share this atomic dispatcher. The application owns the registry+// and saved return locations; craft-ui owns tree validation and structural changes.+fn apply_action(app: &mut VectorcraftApp, action: Action<String>) -> Result<Value, String> {+ let registered = |id: &String| normalize(id) == Some(id.as_str());+ let known = match &action {+ Action::Move { panel, anchor, placement } | Action::OpenAt { panel, anchor, placement } => {+ registered(panel)+ && registered(anchor)+ && match placement {+ Placement::Tab { before: Some(id) } => registered(id),+ _ => true,+ }+ }+ Action::Open { panel, anchor } => registered(panel) && anchor.as_ref().is_none_or(registered),+ Action::Float { panel, .. }+ | Action::Close { panel }+ | Action::Activate { panel }+ | Action::MoveFloating { panel, .. }+ | Action::SetStackOpen { panel, .. }+ | Action::ResizeStack { panel, .. } => registered(panel),+ Action::ResizeSplit { path, .. } => path.len() <= craft_ui::docking::MAX_DEPTH,+ };+ if !known {+ return Err("docking action contains an unknown panel or an excessive split path".into());+ }+ if app.ui.docking.as_ref().is_some_and(|layout| !valid(layout)) {+ return Err("saved panel layout is invalid; reset the workspace first".into());+ }+ let mut layout = app.ui.docking.clone().unwrap_or_else(|| legacy(app));+ let mut icons = icon_origins(app);+ let explicit_dock = match &action {+ Action::Move { panel, anchor, .. } | Action::OpenAt { panel, anchor, .. }+ if (Layout { root: layout.root.clone(), floating: Vec::new() }).contains(anchor) =>+ {+ Some(panel.clone())+ }+ _ => None,+ };+ let returning = match &action {+ Action::Close { panel } => layout.location(panel).ok().map(|location| (panel.clone(), location)),+ Action::Float { panel, .. } => {+ layout.location(panel).ok().filter(|location| location.floating.is_none()).map(|location| (panel.clone(), location))+ }+ _ => None,+ };+ let fallback = match &action {+ Action::Float { panel, .. } => float_fallback(&layout, panel),+ _ => None,+ };++ let activated = match &action {++ Action::Activate { panel } => Some(panel.clone()),++ _ => None,++ };+ layout.apply(action).map_err(|error| error.to_string())?;+ restore_float_fallback(&mut layout, fallback)?;+ if let Some((panel, location)) = returning {+ app.ui.docking_hidden.insert(panel, location);+ }+ if let Some(panel) = explicit_dock {+ icons.remove(&panel);+ }+ app.ui.docking_icons = icons;+ app.ui.docking = Some(layout);++ if let Some(panel) = activated {++ for group in &mut app.ui.floating_panels {++ if group.panels.contains(&panel) {++ group.collapsed = false;++ }++ }++ }+ sync_legacy(app);+ app.ui.open_panel = None;+ Ok(json!({"layout": app.ui.docking}))+}++fn change(app: &mut VectorcraftApp, operation: &str, params: &Value) -> Result<Value, String> {+ let panel = params.get("panel").and_then(Value::as_str).and_then(normalize).ok_or("panel must name a registered panel")?;+ if app.ui.docking.as_ref().is_some_and(|layout| !valid(layout)) {+ return Err("saved panel layout is invalid; reset the workspace first".into());+ }+ let mut layout = app.ui.docking.clone().unwrap_or_else(|| legacy(app));+ if params.get("x").is_some() != params.get("y").is_some() {+ return Err("x and y must be provided together".into());+ }+ let whole_group = match params.get("group") {+ None => false,+ Some(Value::Bool(value)) => *value,+ Some(_) => return Err("group must be true or false".into()),+ };+ let members = if whole_group { group_members(&layout, panel) } else { vec![panel.to_string()] };+ let mut hidden: std::collections::BTreeMap<_, _> =+ app.ui.docking_hidden.iter().filter(|(id, _)| normalize(id).is_some()).take(64).map(|(id, at)| (id.clone(), at.clone())).collect();+ let mut icons = icon_origins(app);+ let icon_panel = crate::state::ICON_PANELS.iter().any(|entry| entry.0 == panel);+ if icon_panel && !layout.contains(&panel.to_string()) {+ icons.insert(panel.to_string());+ }+ if operation == "activate" && icon_panel && !layout.contains(&panel.to_string()) {+ app.ui.open_panel = if app.ui.open_panel.as_deref() == Some(panel) { None } else { Some(panel.into()) };+ return Ok(json!({"panel": panel, "open": app.ui.open_panel}));+ }+ if operation == "dock" && params.get("anchor").or_else(|| params.get("onto")).is_none() {+ let mut candidate = layout.clone();+ let mut open = None;+ for member in &members {+ if candidate.contains(member) {+ candidate.apply(Action::Close { panel: member.clone() }).map_err(|error| error.to_string())?;+ }+ }+ // Remove the complete group before restoring any saved neighbor. Otherwise a+ // still-floating group member can accidentally receive the first restored tab.+ for member in &members {+ if icons.contains(member) {+ open = Some(member.clone());+ } else if let Some(location) = hidden.get(member).filter(|location| {+ location.floating.is_none()+ && location.anchor.as_ref().is_none_or(|anchor| Layout { root: candidate.root.clone(), floating: Vec::new() }.contains(anchor))+ }) {+ if candidate.restore(member.clone(), location).is_err() {+ // A removed neighboring group uses the normal dock as its documented fallback.+ ensure(&mut candidate, member)?;+ }+ } else {+ ensure(&mut candidate, member)?;+ }+ }+ if candidate.contains(&panel.to_string()) {+ candidate.apply(Action::Activate { panel: panel.to_string() }).map_err(|error| error.to_string())?;+ } else if icons.contains(panel) {+ open = Some(panel.to_string());+ }+ if !valid(&candidate) {+ return Err("invalid restored panel group".into());+ }+ app.ui.docking = Some(candidate);+ app.ui.docking_icons = icons;+ for member in &members {+ hidden.remove(member);+ }+ app.ui.docking_hidden = hidden;+ sync_legacy(app);+ app.ui.open_panel = open;+ return Ok(json!({"panel": panel, "floating": false, "layout": app.ui.docking}));+ }+ let mut restored = false;+ if operation == "dock"+ && params.get("anchor").or_else(|| params.get("onto")).is_none()+ && let Some(location) = hidden.get(panel).filter(|location| {+ location.floating.is_none()+ && location.anchor.as_ref().is_none_or(|anchor| Layout { root: layout.root.clone(), floating: Vec::new() }.contains(anchor))+ })+ {+ let mut candidate = layout.clone();+ if candidate.contains(&panel.to_string()) {+ candidate.apply(Action::Close { panel: panel.into() }).map_err(|e| e.to_string())?;+ }+ if candidate.restore(panel.into(), location).is_ok() {+ layout = candidate;+ restored = true;+ hidden.remove(panel);+ }+ }+ match operation {+ "dock" if restored => {}+ "float" => {+ let old = layout+ .floating+ .iter()+ .find(|group| group.panels.iter().any(|id| id == panel) && group.panels.len() == members.len())+ .map(|group| group.rect)+ .unwrap_or([400.0 + 24.0 * layout.floating.len().min(12) as f32, 140.0 + 24.0 * layout.floating.len().min(12) as f32, 300.0, 400.0]);+ let rect =+ [number(params, "x", old[0])?, number(params, "y", old[1])?, number(params, "width", old[2])?, number(params, "height", old[3])?];+ let fallback = float_fallback(&layout, panel).or_else(|| first_root(&layout, panel));+ for member in &members {+ if let Ok(location) = layout.location(member)+ && location.floating.is_none()+ {+ hidden.insert(member.clone(), location);+ }+ }+ ensure(&mut layout, panel)?;+ if let Ok(location) = layout.location(&panel.to_string())+ && location.floating.is_none()+ {+ hidden.insert(panel.into(), location);+ }+ if let Some(onto) = params.get("onto") {+ let onto = onto.as_str().and_then(normalize).ok_or("onto must name a floating panel")?;+ if members.iter().any(|id| id == onto)+ || layout.floating.iter().any(|group| group.panels.iter().any(|id| id == panel) && group.panels.iter().any(|id| id == onto))+ || !layout.floating.iter().any(|group| group.panels.iter().any(|id| id == onto))+ {+ return Err("onto must name a panel floating in another group".into());+ }+ for member in &members {+ layout+ .apply(Action::Move { panel: member.clone(), anchor: onto.into(), placement: Placement::Tab { before: None } })+ .map_err(|e| e.to_string())?;+ }+ } else {+ let lead = members.first().ok_or("panel group is empty")?;+ layout.apply(Action::Float { panel: lead.clone(), rect }).map_err(|e| e.to_string())?;+ for member in members.iter().filter(|id| *id != lead) {+ layout+ .apply(Action::Move { panel: member.clone(), anchor: lead.clone(), placement: Placement::Tab { before: None } })+ .map_err(|e| e.to_string())?;+ }+ }+ layout.apply(Action::Activate { panel: panel.into() }).map_err(|e| e.to_string())?;+ restore_float_fallback(&mut layout, fallback)?;+ }+ "move" | "dock" => {+ if operation == "move" && params.get("anchor").or_else(|| params.get("onto")).is_none() {+ return Err("move requires a destination panel".into());+ }+ let anchor = match params.get("anchor").or_else(|| params.get("onto")) {+ Some(v) => Some(v.as_str().and_then(normalize).ok_or("anchor must name a registered panel")?.to_string()),+ None => first_root(&layout, panel),+ };+ let placement = placement(params)?;+ if let Some(anchor) = anchor {+ ensure(&mut layout, panel)?;+ layout.apply(Action::Move { panel: panel.into(), anchor, placement }).map_err(|e| e.to_string())?;+ } else if operation == "dock" {+ if layout.contains(&panel.to_string()) {+ layout.apply(Action::Close { panel: panel.into() }).map_err(|e| e.to_string())?;+ }+ layout.apply(Action::Open { panel: panel.into(), anchor: None }).map_err(|e| e.to_string())?;+ } else {+ return Err("move requires an existing destination panel".into());+ }+ }+ "close" => {+ hidden.insert(panel.into(), layout.location(&panel.to_string()).map_err(|e| e.to_string())?);+ layout.apply(Action::Close { panel: panel.into() }).map_err(|e| e.to_string())?;+ }+ _ => {+ if !layout.contains(&panel.to_string())+ && let Some(location) = hidden.get(panel)+ {+ // A missing neighbor is allowed: the normal visible dock becomes the fallback.+ let _ = layout.restore(panel.into(), location);+ }+ ensure(&mut layout, panel)?;+ hidden.remove(panel);+ }+ }+ if operation == "dock" && whole_group {+ for member in members.iter().filter(|id| id.as_str() != panel) {+ layout+ .apply(Action::Move { panel: member.clone(), anchor: panel.into(), placement: Placement::Tab { before: None } })+ .map_err(|e| e.to_string())?;+ }+ layout.apply(Action::Activate { panel: panel.into() }).map_err(|e| e.to_string())?;+ }+ let group = layout.floating.iter().find(|group| group.panels.iter().any(|id| id == panel));+ let result = json!({"panel": panel, "floating": group.is_some(), "group": group.map(|g| &g.panels), "pos": group.map(|g| [g.rect[0], g.rect[1]]), "layout": layout});+ if matches!(operation, "move" | "dock") && (Layout { root: layout.root.clone(), floating: Vec::new() }).contains(&panel.to_string()) {+ icons.remove(panel);+ }+ app.ui.docking = Some(layout);+ app.ui.docking_hidden = hidden;+ app.ui.docking_icons = icons;++ if operation == "activate" {++ for group in &mut app.ui.floating_panels {++ if group.panels.iter().any(|id| id == panel) {++ group.collapsed = false;++ }++ }++ }+ sync_legacy(app);+ app.ui.open_panel = None;+ app.ui.dock = true;+ if matches!(operation, "activate" | "move" | "dock") {+ app.ui.dock_collapsed = false;+ }+ Ok(result)+}++struct PanelContent<'a> {+ app: &'a mut VectorcraftApp,+ commands: Vec<(&'static str, Value)>,+}++impl craft_ui::docking::DockContent<String> for PanelContent<'_> {+ fn body(&mut self, ui: &mut egui::Ui, panel: &String) {+ let width = ui.available_width();+ let height = (ui.available_height() - 20.0).max(0.0);+ if crate::state::DockTab::from_id(panel).is_some() {+ crate::dock::panel_body(self.app, ui, panel, width, height);+ } else {+ egui::ScrollArea::vertical()+ .id_salt(("shared-panel-body", panel))+ .auto_shrink([false, false])+ .show(ui, |ui| crate::dock::panel_body(self.app, ui, panel, width, height));+ }+ }++ fn panel_menu(&mut self, ui: &mut egui::Ui, panel: &String) {+ crate::panels::panel_menu_items(self.app, ui, panel);+ }++ fn group_header_width(&self, _panels: &[String], _active: &String, floating: bool) -> f32 {+ if floating { 48.0 } else { 80.0 }+ }++ fn group_header(&mut self, ui: &mut egui::Ui, _panels: &[String], active: &String, floating: bool) {+ let rect = ui.max_rect();+ let menu = egui::Rect::from_center_size(rect.right_center() - egui::vec2(12.0, 0.0), egui::vec2(16.0, 16.0));+ crate::panels::panel_menu(self.app, ui, active, menu);+ let grip = egui::Rect::from_min_max(rect.min, egui::pos2(menu.left() - 4.0, rect.bottom()));+ if floating {+ let response = ui.put(grip, egui::Button::new("×")).on_hover_text(tl!("Dock Panel"));+ if response.clicked() {+ self.commands.push(("window.panel.dock", json!({"panel": active, "group": true})));+ }+ } else {+ let response = ui.interact(grip, ui.id().with("dock-group-bar"), egui::Sense::drag());+ if response.drag_started()+ && let Some(pos) = response.interact_pointer_pos()+ {+ ui.ctx().data_mut(|data| {+ data.insert_temp(+ egui::Id::new("vectorcraft-root-group-drag"),+ RootGroupDrag {+ panel: active.clone(),+ layout: self.app.ui.docking.clone().unwrap_or_else(|| legacy(self.app)),+ hidden: self.app.ui.docking_hidden.clone(),+ generation: self.app.ui.docking_generation,+ },+ )+ });+ self.commands.push(("window.panel.float", json!({"panel": active, "group": true, "x": pos.x, "y": pos.y})));+ }+ response.on_hover_cursor(egui::CursorIcon::Grab).on_hover_text(tl!("Drag to float the panel group"));+ }+ }+}++pub(crate) fn show(app: &mut VectorcraftApp, ui: &mut egui::Ui) -> bool {+ let root_key = egui::Id::new("vectorcraft-root-group-drag");+ if let Some(drag) = ui.ctx().data(|data| data.get_temp::<RootGroupDrag>(root_key)) {+ if drag.generation != app.ui.docking_generation {+ ui.ctx().data_mut(|data| data.remove::<RootGroupDrag>(root_key));+ } else if ui.input(|input| !input.focused || input.key_pressed(egui::Key::Escape)) {+ app.ui.docking = Some(drag.layout);+ app.ui.docking_hidden = drag.hidden;+ sync_legacy(app);+ ui.ctx().data_mut(|data| data.remove::<RootGroupDrag>(root_key));+ } else if let Some(pos) = ui.input(|input| input.pointer.interact_pos()) {+ if ui.input(|input| input.pointer.primary_down()) {+ if let Err(error) = app.run("window.panel.float", json!({"panel":drag.panel, "group":true, "x":pos.x, "y":pos.y})) {+ app.ui.status = error;+ }+ if let Some(panel) = normalize(&drag.panel)- && let Some((_, rect)) = crate::floating::drop_target(app, ui.ctx(), crate::floating::Moving::Panel(panel), pos)++ && let Some((target, rect)) = crate::floating::drop_target(app, ui.ctx(), crate::floating::Moving::Panel(panel), pos)+ {- crate::floating::highlight(ui.ctx(), rect);++ crate::floating::preview(ui.ctx(), target, rect);+ }+ } else {+ if let Some(panel) = normalize(&drag.panel)+ && let Some((target, _)) = crate::floating::drop_target(app, ui.ctx(), crate::floating::Moving::Panel(panel), pos)+ {+ let (id, params) = match target {+ crate::floating::Drop::Dock => ("window.panel.dock", json!({"panel":panel,"group":true})),+ crate::floating::Drop::Stack(onto) => ("window.panel.float", json!({"panel":panel,"group":true,"onto":onto})),++ crate::floating::Drop::Below(onto) => ("window.panel.float", json!({"panel":panel,"group":true,"below":onto})),++ crate::floating::Drop::Above(onto) => ("window.panel.float", json!({"panel":panel,"group":true,"above":onto})),++ crate::floating::Drop::Column(slot) => ("window.panel.dock", json!({"panel":panel,"group":true,"column":slot})),+ };+ if let Err(error) = app.run(id, params) {+ app.ui.status = error;+ }+ }+ ui.ctx().data_mut(|data| data.remove::<RootGroupDrag>(root_key));+ }+ }+ }+ let area = egui::Id::new("vectorcraft-panel-docking");+ let changed_workspace = ui.ctx().data_mut(|data| {+ let previous = data.get_temp::<u64>(area.with("generation"));+ data.insert_temp(area.with("generation"), app.ui.docking_generation);+ previous.is_some_and(|generation| generation != app.ui.docking_generation)+ });+ if changed_workspace {+ craft_ui::docking::cancel_drag::<String>(ui.ctx(), area);+ ui.ctx().data_mut(|data| data.remove::<LegacyDrag>(area.with("legacy-origin")));+ }++ let cancelled =+ ui.input(|input| !input.focused || input.key_pressed(egui::Key::Escape) || (!input.pointer.primary_down() && !input.pointer.any_released()));+ if cancelled && cancel_legacy_drag(app, ui.ctx()) && app.ui.docking.is_none() {+ return false;+ }+ let Some(layout) = app.ui.docking.as_ref() else { return false };+ if !valid(layout) {+ app.ui.docking = None;+ app.ui.status = "Invalid panel layout; restored the default dock".into();+ return false;+ }+ let layout = layout.clone();+ let t = crate::theme::Tokens::get(ui.ctx());+ let collapsed = app.ui.dock_collapsed;- let display = if collapsed { Layout { root: None, floating: layout.floating.clone() } } else { layout.clone() };++ let mut display = if collapsed { Layout { root: None, floating: layout.floating.clone() } } else { layout.clone() };++ display++ .floating++ .retain(|group| !app.ui.floating_panels.iter().any(|native| decorated(native) && native.panels.iter().any(|id| group.panels.contains(id))));+ let mut draw = |ui: &mut egui::Ui| {+ if layout.root.is_some() && crate::dock::collapse_header(ui, collapsed) {+ let _ = app.run("window.collapseDock", json!({"collapsed":!collapsed}));+ }+ if collapsed {+ let root = Layout { root: layout.root.clone(), floating: Vec::new() };+ for panel in root.panels() {+ let info = crate::state::DockTab::from_id(panel)+ .map(|tab| tab.info())+ .or_else(|| crate::state::ICON_PANELS.iter().find(|entry| entry.0 == panel).copied());+ if let Some((_, label, icon)) = info+ && crate::widgets::icon_button(ui, icon, tl!(label), app.ui.open_panel.as_ref() == Some(panel), 30.0).clicked()+ {+ app.ui.open_panel = if app.ui.open_panel.as_ref() == Some(panel) { None } else { Some(panel.clone()) };+ }+ }+ }+ let mut style = craft_ui::docking::DockStyle::from_ui(ui);+ style.tab_height = 33.0;+ style.background = t.panel;+ style.tab_background = t.tab_strip;+ style.active_background = t.panel;+ style.text = t.text_strong;+ style.inactive_text = t.text_dim;+ style.border = egui::Stroke::new(1.0, t.border);+ style.accent = t.accent;+ style.float_label = tl!("Float Panel").to_string();+ style.close_label = tl!("Close Panel").to_string();+ style.move_label = tl!("Group with").to_string();+ style.panels_label = tl!("Panels").to_string();+ style.resize_label = tl!("Resize panels").to_string();+ style.resize_window_label = tl!("Resize panel window").to_string();+ let mut content = PanelContent { app, commands: Vec::new() };+ let output = craft_ui::docking::DockArea::new(egui::Id::new("vectorcraft-panel-docking")).show_customized(+ ui,+ &display,+ &style,+ |id| crate::state::all_panels().find(|p| p.0 == id).map(|p| tl!(p.1).to_string()).unwrap_or_else(|| id.clone()),+ |_| craft_ui::docking::Permissions::default(),+ |_| craft_ui::docking::PanelLimits { min: egui::vec2(220.0, 80.0), ..Default::default() },+ &mut content,+ );+ for (id, params) in content.commands {+ if let Err(error) = app.run(id, params) {+ app.ui.status = error;+ }+ }+ output+ };+ let output = if layout.root.is_some() {+ let panel = egui::Panel::right("shared-panel-dock")+ .default_size(310.0)+ .size_range(220.0..=720.0)+ .resizable(true)+ .frame(egui::Frame::NONE.fill(t.panel));+ let panel = if collapsed { panel.exact_size(38.0).resizable(false) } else { panel };+ let shown = panel.show(ui, &mut draw);+ ui.ctx().data_mut(|data| data.insert_temp(crate::floating::dock_rect_id(), shown.response.rect));+ shown.inner+ } else {+ draw(ui)+ };+ if let Some(panel) = output.group_drag.as_deref().and_then(normalize)+ && let Some(pos) = ui.input(|input| input.pointer.interact_pos())- && let Some((_, rect)) = crate::floating::drop_target(app, ui.ctx(), crate::floating::Moving::Panel(panel), pos)++ && let Some((target, rect)) = crate::floating::drop_target(app, ui.ctx(), crate::floating::Moving::Panel(panel), pos)+ {- crate::floating::highlight(ui.ctx(), rect);++ crate::floating::preview(ui.ctx(), target, rect);+ }+ if let Some(error) = output.error {+ app.ui.status = error.to_string();+ }++ // Tab and icon tears finish as model actions; title moves finish as group_drop.++ // Native sets are absent from the shared render tree, so their pointer target must win++ // over a float proposal or a root target drawn behind the native window.++ let tab_drop = ui.input(|input| input.pointer.primary_released().then(|| input.pointer.interact_pos()).flatten()).and_then(|pos| {++ output.actions.iter().find_map(|action| {++ let panel = match action {++ Action::Float { panel, .. } | Action::Move { panel, .. } => normalize(panel)?,++ _ => return None,++ };++ crate::floating::drop_target(app, ui.ctx(), crate::floating::Moving::Panel(panel), pos)++ .filter(|(target, _)| !matches!(target, crate::floating::Drop::Dock))++ .map(|(target, _)| (panel, target))++ })++ });+ if ui.input(|input| input.pointer.any_released()) {- if !output.actions.iter().any(|action| matches!(action, Action::Move { .. } | Action::Float { .. })) && cancel_legacy_drag(app, ui.ctx()) {++ let native_drop = output.group_drop.as_ref().is_some_and(|(panel, pos)| {++ normalize(panel).and_then(|id| crate::floating::drop_target(app, ui.ctx(), crate::floating::Moving::Panel(id), *pos)).is_some()++ });++ if !output.actions.iter().any(|action| matches!(action, Action::Move { .. } | Action::Float { .. }))++ && !native_drop++ && tab_drop.is_none()++ && cancel_legacy_drag(app, ui.ctx())++ {+ return app.ui.docking.is_some();+ }+ ui.ctx().data_mut(|data| data.remove::<LegacyDrag>(egui::Id::new("vectorcraft-panel-docking").with("legacy-origin")));+ }+ for action in output.actions {++ if tab_drop++ .is_some_and(|(panel, _)| matches!(&action, Action::Float { panel: moved, .. } | Action::Move { panel: moved, .. } if moved == panel))++ {++ continue;++ }+ if let Err(error) = app.run("window.panel.layout", json!({"action": action})) {+ app.ui.status = error;+ }+ }- if let Some((panel, pos)) = output.group_drop- && let Some(panel) = normalize(&panel)- && let Some((target, _)) = crate::floating::drop_target(app, ui.ctx(), crate::floating::Moving::Panel(panel), pos)- {++ let group_drop = output.group_drop.and_then(|(panel, pos)| {++ let panel = normalize(&panel)?;++ crate::floating::drop_target(app, ui.ctx(), crate::floating::Moving::Panel(panel), pos).map(|(target, _)| (panel, target, true))++ });++ if let Some((panel, target, whole_group)) = group_drop.or_else(|| tab_drop.map(|(panel, target)| (panel, target, false))) {+ let (command, params) = match target {- crate::floating::Drop::Dock => ("window.panel.dock", json!({"panel": panel, "group": true})),- crate::floating::Drop::Stack(onto) => ("window.panel.float", json!({"panel": panel, "group": true, "onto": onto})),++ crate::floating::Drop::Dock => ("window.panel.dock", json!({"panel": panel, "group": whole_group})),++ crate::floating::Drop::Stack(onto) => ("window.panel.float", json!({"panel": panel, "group": whole_group, "onto": onto})),++ crate::floating::Drop::Below(onto) => ("window.panel.float", json!({"panel":panel,"group":whole_group,"below":onto})),++ crate::floating::Drop::Above(onto) => ("window.panel.float", json!({"panel":panel,"group":whole_group,"above":onto})),++ crate::floating::Drop::Column(slot) => ("window.panel.dock", json!({"panel":panel,"group":whole_group,"column":slot})),+ };- if let Err(error) = app.run(command, params) {- app.ui.status = error;++ // Shared and native windows have already chosen their render ownership for this++ // frame. Switch representations only after both renderers finish, so a panel's++ // widgets never appear in two layers in the same frame.++ ui.ctx().data_mut(|data| data.insert_temp(egui::Id::new("vectorcraft-native-panel-drop"), (command, params)));++ }++ for group in &display.floating {++ if let Some(first) = group.panels.first()++ && let Some(rect) = ui.ctx().memory(|memory| memory.area_rect(area.with(("floating", first))))++ {++ ui.ctx().data_mut(|data| data.insert_temp(crate::floating::group_rect_id(first), rect));+ }+ }+ icon_rail(app, ui);++ crate::floating::docked_columns(app, ui);+ true+}++fn icon_rail(app: &mut VectorcraftApp, ui: &mut egui::Ui) {+ let t = crate::theme::Tokens::get(ui.ctx());+ let column = egui::Panel::right("shared-panel-icons")+ .exact_size(38.0)+ .resizable(false)+ .frame(egui::Frame::NONE.fill(t.panel))+ .show(ui, |ui| {+ egui::ScrollArea::vertical().id_salt("shared-panel-icons-scroll").show(ui, |ui| {+ ui.spacing_mut().item_spacing.y = 2.0;+ for &(id, label, icon) in crate::state::ICON_PANEL_GROUPS+ .iter()+ .flat_map(|group| group.iter())+ .filter_map(|id| crate::state::ICON_PANELS.iter().find(|entry| entry.0 == *id))+ {+ if app.ui.docking.as_ref().is_some_and(|layout| layout.contains(&id.to_string())) {+ continue;+ }+ let (_, rect) = ui.allocate_space(egui::vec2(30.0, 30.0));+ let response = ui.interact(rect, ui.id().with(("panel-icon", id)), egui::Sense::click_and_drag());+ let response = crate::widgets::paint_icon_button(ui, response, icon, tl!(label), app.ui.open_panel.as_deref() == Some(id));+ if response.clicked() {+ app.ui.open_panel = if app.ui.open_panel.as_deref() == Some(id) { None } else { Some(id.into()) };+ }+ legacy_tab(app, ui, id, &response);+ }+ });+ })+ .response+ .rect;+ ui.ctx().data_mut(|data| {+ let dock = if app.ui.docking.as_ref().is_some_and(|layout| layout.root.is_some()) {+ data.get_temp::<egui::Rect>(crate::floating::dock_rect_id()).unwrap_or(column)+ } else {+ column+ };+ data.insert_temp(crate::floating::dock_rect_id(), dock.union(column));+ data.insert_temp(crate::floating::icons_rect_id(), column);+ data.insert_temp(egui::Id::new("dock-icon-column-left"), column.left());+ });+}++pub(crate) fn legacy_tab(app: &mut VectorcraftApp, ui: &mut egui::Ui, panel: &str, response: &egui::Response) {+ let Some(panel) = normalize(panel) else { return };+ response.context_menu(|ui| {+ if ui.button(tl!("Float Panel")).clicked() {+ if let Err(error) = app.run("window.panel.float", json!({"panel": panel})) {+ app.ui.status = error;+ }+ ui.close();+ }+ ui.menu_button(tl!("Group with"), |ui| {+ for (anchor, label) in crate::state::all_panels() {+ if anchor != panel && ui.button(tl!(label)).clicked() {+ // A closed icon panel is made visible before becoming the destination.+ let result = app+ .run("window.panel.activate", json!({"panel": anchor}))+ .and_then(|_| app.run("window.panel.move", json!({"panel":panel,"anchor":anchor})));+ if let Err(error) = result {+ app.ui.status = error;+ }+ ui.close();+ }+ }+ });+ });+ if response.drag_started()+ && let Some(id) = normalize(panel)+ {+ let mut layout = app.ui.docking.clone().unwrap_or_else(|| legacy(app));+ let bounds = ui.max_rect();+ let source = egui::Rect::from_min_size(+ egui::pos2(bounds.left(), response.rect.top()),+ egui::vec2(bounds.width().clamp(240.0, 600.0), bounds.height().clamp(200.0, 600.0)),+ );+ if ensure(&mut layout, id).is_ok()+ && craft_ui::docking::begin_drag(ui.ctx(), egui::Id::new("vectorcraft-panel-docking"), id.to_string(), source)+ {+ ui.ctx().data_mut(|data| {+ data.insert_temp(+ egui::Id::new("vectorcraft-panel-docking").with("legacy-origin"),+ LegacyDrag {+ layout: app.ui.docking.clone(),+ open_panel: app.ui.open_panel.clone(),+ floating: app.ui.floating_panels.clone(),+ icons: app.ui.docking_icons.clone(),+ },+ )+ });+ if !app.ui.docking.as_ref().unwrap_or(&legacy(app)).contains(&id.to_string())+ && crate::state::ICON_PANELS.iter().any(|entry| entry.0 == id)+ {+ app.ui.docking_icons.insert(id.into());+ }+ app.ui.docking = Some(layout);+ app.ui.open_panel = None;+ }+ }+}++// Keep the legacy inspection schema useful; shared layout remains the rendering authority.++pub(crate) fn decorated(group: &crate::state::FloatingPanels) -> bool {++ group.column.is_some() || group.docked.is_some() || group.collapsed++}++++/// Keep the native set metadata alongside the validated shared ownership tree. Return locations++/// and root splits survive the mirror update; failed reconciliation restores the whole UI state.++pub(crate) fn reconcile_native(app: &mut VectorcraftApp, before: crate::state::UiState) -> Result<(), String> {++ if before.docking.is_none() {++ return Ok(());++ }++ let desired = app.ui.floating_panels.clone();++ let result = (|| {++ let prior = before.docking.as_ref().ok_or("missing panel layout")?;++ app.ui.docking = Some(prior.clone());++ for group in &prior.floating {++ for panel in &group.panels {++ if !desired.iter().any(|g| g.panels.contains(panel)) {++ change(app, "dock", &json!({"panel":panel}))?;++ }++ }++ }++ let mut layout = app.ui.docking.clone().ok_or("missing panel layout")?;++ for group in &desired {++ for panel in &group.panels {++ if (Layout { root: layout.root.clone(), floating: vec![] }).contains(panel) {++ if let Ok(location) = layout.location(panel) {++ app.ui.docking_hidden.insert(panel.clone(), location);++ }++ layout.apply(Action::Close { panel: panel.clone() }).map_err(|e| e.to_string())?;++ }++ }++ }++ layout.floating = desired++ .iter()++ .map(|group| {++ let height = prior.floating.iter().find(|g| g.panels.iter().any(|id| group.panels.contains(id))).map_or(400.0, |g| g.rect[3]);++ Floating {++ panels: group.panels.clone(),++ active: group.active,++ rect: [group.pos[0], group.pos[1], group.width.unwrap_or(300.0), height],++ }++ })++ .collect();++ if !valid(&layout) {++ return Err("invalid native panel set".into());++ }++ app.ui.docking = Some(layout);++ app.ui.floating_panels = desired;++ Ok(())++ })();++ if result.is_err() {++ app.ui = before;++ }++ result++}++++fn native_change(app: &mut VectorcraftApp, id: &str, params: &Value) -> Result<Value, String> {++ let before = app.ui.clone();++ let result = (|| {++ let panel = params.get("panel").and_then(Value::as_str).and_then(normalize).ok_or("panel must name a registered panel")?;++ if crate::floating::group_of(&app.ui, panel).is_none() {++ let mut initial = params.clone();++ if let Some(object) = initial.as_object_mut() {++ for key in ["above", "below", "column", "collapsed", "onto"] {++ object.remove(key);++ }++ }++ change(app, "float", &initial)?;++ }++ let baseline = app.ui.clone();++ let value = crate::floating::command(app, id, params).ok_or("unsupported native docking operation")??;++ reconcile_native(app, baseline)?;++ Ok(value)++ })();++ if result.is_err() {++ app.ui = before;++ }++ result++}+++fn sync_legacy(app: &mut VectorcraftApp) {+ if let Some(layout) = &app.ui.docking {++ let old = app.ui.floating_panels.clone();+ let mut pending: Vec<_> = layout.root.iter().collect();+ while let Some(node) = pending.pop() {+ match node {+ Node::Tabs { panels, active } => {+ if let Some(tab) = panels.get(*active).and_then(|id| crate::state::DockTab::from_id(id)) {+ app.ui.dock_tab = tab;+ }+ }+ Node::Split { first, second, .. } => pending.extend([second.as_ref(), first.as_ref()]),+ _ => {}+ }+ }+ app.ui.floating_panels = layout+ .floating+ .iter()+ .map(|group| crate::state::FloatingPanels {+ panels: group.panels.clone(),+ active: group.active,+ pos: [group.rect[0], group.rect[1]],+ width: Some(group.rect[2]),++ column: old.iter().find(|native| group.panels.first().is_some_and(|first| native.panels.contains(first))).and_then(|g| g.column),++ collapsed: old++ .iter()++ .find(|native| group.panels.first().is_some_and(|first| native.panels.contains(first)))++ .is_some_and(|g| g.collapsed),++ docked: old.iter().find(|native| group.panels.first().is_some_and(|first| native.panels.contains(first))).and_then(|g| g.docked),+ })+ .collect();+ }+}++#[cfg(test)]+#[path = "panel_docking_tests.rs"]+mod tests;++++/// Commit a pointer drop after shared and native panel windows have finished rendering.++pub(crate) fn finish_native_drop(app: &mut VectorcraftApp, ctx: &egui::Context) {++ if let Some((command, params)) =++ ctx.data_mut(|data| data.remove_temp::<(&'static str, serde_json::Value)>(egui::Id::new("vectorcraft-native-panel-drop")))++ && let Err(error) = app.run(command, params)++ {++ app.ui.status = error;++ }++}diff --cc crates/ui-egui/src/panel_docking_tests.rsindex 5013a0483,000000000..5f1bdca43mode 100644,000000..100644--- a/crates/ui-egui/src/panel_docking_tests.rs+++ b/crates/ui-egui/src/panel_docking_tests.rs@@@ -1,417 -1,0 +1,575 @@@+use super::*;+use egui::{Event, Modifiers, PointerButton, Pos2, vec2};+use egui_kittest::{Harness, kittest::Queryable};++fn app() -> VectorcraftApp {+ VectorcraftApp::new(vectorcraft_engine::Session::new(), Default::default())+}++#[test]+fn panel_commands_group_split_reorder_float_and_restore_without_duplicate_ownership() {+ let mut app = app();+ app.run("window.panel.move", json!({"panel":"swatches", "anchor":"layers", "zone":"top"})).unwrap();+ app.run("window.panel.move", json!({"panel":"properties", "anchor":"swatches", "before":"swatches"})).unwrap();+ let before_float = app.ui.docking.clone().unwrap();+ app.run("window.panel.float", json!({"panel":"properties", "x":50,"y":70,"width":330,"height":410})).unwrap();+ assert!(app.ui.docking.as_ref().unwrap().floating.iter().any(|g| g.panels == ["properties"]));+ app.run("window.panel.dock", json!({"panel":"properties"})).unwrap();+ assert_eq!(app.ui.docking.as_ref().unwrap(), &before_float);+ app.run("window.panel.close", json!({"panel":"properties"})).unwrap();+ assert!(!app.ui.docking.as_ref().unwrap().contains(&"properties".into()));+ app.run("window.panel.activate", json!({"panel":"properties"})).unwrap();+ assert_eq!(app.ui.docking.as_ref().unwrap(), &before_float);+ let layout = app.ui.docking.as_ref().unwrap();+ assert!(valid(layout));+ let unique: std::collections::HashSet<_> = layout.panels().into_iter().collect();+ assert_eq!(unique.len(), layout.panels().len());+ let saved = serde_json::to_value(&app.ui).unwrap();+ let restored: crate::state::UiState = serde_json::from_value(saved).unwrap();+ assert_eq!(restored.docking, app.ui.docking);+ assert_eq!(restored.docking_hidden, app.ui.docking_hidden);+}++#[test]+fn invalid_panel_requests_are_atomic_and_do_not_enter_a_custom_workspace() {+ let mut app = app();+ for (id, params) in [+ ("window.panel.move", json!({"panel":"layers","anchor":"unknown"})),+ ("window.panel.move", json!({"panel":"layers","anchor":"properties","before":"unknown"})),+ ("window.panel.move", json!({"panel":"layers","anchor":"properties","zone":42})),+ ("window.panel.float", json!({"panel":"layers","width":-10})),+ ("window.panel.float", json!({"panel":"unknown"})),+ ("window.panel.float", json!({"panel":"layers","x":"invalid"})),+ ] {+ let old = app.ui.docking.clone();+ let hidden = app.ui.docking_hidden.clone();+ assert!(app.run(id, params).is_err(), "{id}");+ assert_eq!(app.ui.docking, old);+ assert_eq!(app.ui.docking_hidden, hidden);+ }+}++fn harness(app: VectorcraftApp, size: egui::Vec2) -> Harness<'static, VectorcraftApp> {+ let mut ready = false;+ let mut harness = Harness::builder().with_size(size).with_step_dt(1.0 / 60.0).build_ui_state(+ move |ui, app: &mut VectorcraftApp| {+ if !ready {+ crate::theme::install_fonts(ui.ctx());+ crate::theme::apply(ui.ctx(), crate::theme::Brightness::MediumDark);+ ready = true;+ return;+ }++ crate::floating::track(app, ui.ctx());+ crate::dock::show(app, ui);+ egui::CentralPanel::default().show(ui, |_| {});++ crate::floating::show(app, ui.ctx());+ },+ app,+ );+ harness.run_steps(4);+ harness+}++fn drag(h: &mut Harness<'static, VectorcraftApp>, from: Pos2, to: Pos2) {+ h.event(Event::PointerMoved(from));+ h.run_steps(1);+ h.event(Event::PointerButton { pos: from, button: PointerButton::Primary, pressed: true, modifiers: Modifiers::NONE });+ h.run_steps(1);+ for step in 1..=8 {+ h.event(Event::PointerMoved(from + (to - from) * (step as f32 / 8.0)));+ h.run_steps(1);+ }+ h.event(Event::PointerButton { pos: to, button: PointerButton::Primary, pressed: false, modifiers: Modifiers::NONE });+ h.run_steps(3);+}++#[test]+fn ordinary_panel_tab_drag_enters_shared_docking_and_can_redock_into_another_tab_group() {+ let mut h = harness(app(), vec2(1280.0, 800.0));+ let source = h.query_all_by_label("Layers").find(|node| node.rect().height() <= 45.0).unwrap().rect().center();+ drag(&mut h, source, egui::pos2(160.0, 140.0));+ let layout = h.state().ui.docking.as_ref().expect("ordinary tab drag starts shared docking");+ assert!(layout.floating.iter().any(|g| g.panels.contains(&"layers".into())), "{layout:?}");+ let source = h.ctx.read_response(egui::Id::new("vectorcraft-panel-docking").with(("tab", &"layers".to_string()))).unwrap().rect.center();+ let destination = h.ctx.read_response(egui::Id::new("vectorcraft-panel-docking").with(("tab", &"properties".to_string()))).unwrap().rect.center();+ drag(&mut h, source, destination);+ let layout = h.state().ui.docking.as_ref().unwrap();+ assert!(!layout.floating.iter().any(|g| g.panels.contains(&"layers".into())));+ assert!(valid(layout));+}++#[test]+fn saved_workspace_restores_the_custom_tree_and_hidden_panel_placement() {+ let mut app = app();++ app.run("window.panel.move", json!({"panel":"swatches","anchor":"layers","zone":"top"})).unwrap();+ app.run("window.panel.float", json!({"panel":"properties","x":50,"y":80})).unwrap();+ app.run("window.panel.close", json!({"panel":"swatches"})).unwrap();+ let layout = app.ui.docking.clone();+ let hidden = app.ui.docking_hidden.clone();+ app.run("window.workspace.new", json!({"name":"Custom docking"})).unwrap();+ app.run("window.workspace", json!({"name":"Essentials"})).unwrap();+ assert!(app.ui.docking.is_none());+ app.run("window.workspace", json!({"name":"Custom docking"})).unwrap();+ assert_eq!(app.ui.docking, layout);+ assert_eq!(app.ui.docking_hidden, hidden);+}++#[test]+fn legacy_float_group_aliases_use_atomic_shared_groups_and_preserve_tools() {+ let mut app = app();+ app.run("window.panel.float", json!({"panel":"layers","group":true,"x":30,"y":50})).unwrap();+ assert_eq!(app.ui.docking.as_ref().unwrap().floating[0].panels.len(), 3);+ app.run("window.panel.float", json!({"panel":"swatches","onto":"layers"})).unwrap();+ assert_eq!(app.ui.docking.as_ref().unwrap().floating[0].panels.len(), 4);+ let before = app.ui.docking.clone();+ assert!(app.run("window.panel.float", json!({"panel":"properties","onto":"missing","group":true})).is_err());+ assert_eq!(app.ui.docking, before);+ app.run("window.panel.float", json!({"panel":"tools","x":70,"y":90})).unwrap();+ assert_eq!(app.ui.toolbar_pos, Some([70.0, 90.0]));+ assert_eq!(app.ui.docking, before);+ app.run("window.panel.dock", json!({"panel":"layers","group":true})).unwrap();+ assert!(app.ui.docking.as_ref().unwrap().floating.is_empty());+}++/// Explicit offscreen evidence; this creates no native windows.+#[test]+fn capture_custom_panel_docking_visual_fixtures() {+ let Some(directory) = std::env::var_os("CRAFT_UI_DOCKING_FIXTURES").map(std::path::PathBuf::from) else { return };+ std::fs::create_dir_all(&directory).unwrap();+ for theme in crate::theme::Brightness::ALL {+ for width in [800.0, 1280.0] {+ for scale in [1.0, 1.5, 2.0] {+ let mut app = app();+ app.run("file.new", json!({})).unwrap();+ app.run("window.panel.move", json!({"panel":"swatches", "anchor":"layers", "zone":"top"})).unwrap();+ app.run("window.panel.float", json!({"panel":"properties","x":30,"y":90,"width":300,"height":440})).unwrap();+ let mut ready = false;+ let mut harness = Harness::builder().with_size(vec2(width, 800.0)).with_pixels_per_point(scale).wgpu().build_ui_state(+ move |ui, app: &mut VectorcraftApp| {+ if !ready {+ egui_extras::install_image_loaders(ui.ctx());+ crate::theme::install_fonts(ui.ctx());+ crate::theme::apply(ui.ctx(), theme);+ ready = true;+ return;+ }+ crate::dock::show(app, ui);+ egui::CentralPanel::default().show(ui, |ui| {+ ui.label("Custom panel workspace");+ });+ },+ app,+ );+ harness.input_mut().max_texture_side = Some(8192);+ harness.run_steps(5);+ assert!(valid(harness.state().ui.docking.as_ref().unwrap()));+ harness.render().unwrap().save(directory.join(format!("vectorcraft-shared-docking-{}-{width}-{scale}x.png", theme.id()))).unwrap();+ }+ }+ }+}++#[test]+fn escape_cancels_the_first_drag_without_replacing_the_legacy_workspace() {+ let mut h = harness(app(), vec2(1280.0, 800.0));+ let source = h.query_all_by_label("Layers").find(|node| node.rect().height() <= 45.0).unwrap().rect().center();+ h.event(Event::PointerMoved(source));+ h.run_steps(1);+ h.event(Event::PointerButton { pos: source, button: PointerButton::Primary, pressed: true, modifiers: Modifiers::NONE });+ h.run_steps(1);+ h.event(Event::PointerMoved(source - vec2(90.0, 0.0)));+ h.run_steps(2);+ assert!(h.state().ui.docking.is_some());+ h.event(Event::Key { key: egui::Key::Escape, physical_key: None, pressed: true, repeat: false, modifiers: Modifiers::NONE });+ h.run_steps(1);+ assert!(h.state().ui.docking.is_none());+ h.event(Event::PointerButton { pos: source, button: PointerButton::Primary, pressed: false, modifiers: Modifiers::NONE });+ h.run_steps(2);+ assert!(h.state().ui.docking.is_none());+}++#[test]+fn serialized_layout_actions_cover_geometry_reorder_accordion_and_atomic_rejection() {+ let mut app = app();+ app.run("window.panel.move", json!({"panel":"swatches","anchor":"layers","zone":"top"})).unwrap();+ app.run("window.panel.layout", json!({"action":{"ResizeSplit":{"path":[],"size":{"Ratio":0.35}}}})).unwrap();+ assert!(+ matches!(app.ui.docking.as_ref().unwrap().root, Some(Node::Split { size: craft_ui::layout::SplitSize::Ratio(value), .. }) if (value - 0.35).abs() < 0.001)+ );+ app.run("window.panel.float", json!({"panel":"properties"})).unwrap();+ app.run("window.panel.layout", json!({"action":{"MoveFloating":{"panel":"properties","rect":[44,66,360,450]}}})).unwrap();+ assert_eq!(+ app.ui.docking.as_ref().unwrap().floating.iter().find(|group| group.panels.iter().any(|p| p == "properties")).unwrap().rect,+ [44.0, 66.0, 360.0, 450.0]+ );+ app.run("window.panel.layout", json!({"action":{"Move":{"panel":"properties","anchor":"swatches","placement":{"Tab":{"before":"swatches"}}}}}))+ .unwrap();+ assert_eq!(group_members_for_test(app.ui.docking.as_ref().unwrap(), "swatches"), ["properties", "swatches"]);+ let before = app.ui.docking.clone();+ let hidden = app.ui.docking_hidden.clone();+ for action in [+ json!({"MoveFloating":{"panel":"properties","rect":[0,0,-5,30]}}),+ json!({"ResizeSplit":{"path":[true,true,true],"size":{"Ratio":0.2}}}),+ json!({"Open":{"panel":"unknown","anchor":null}}),+ json!({"Move":{"panel":"properties","anchor":"swatches","placement":{"Tab":{"before":"unknown"}}}}),+ ] {+ assert!(app.run("window.panel.layout", json!({"action":action})).is_err());+ assert_eq!(app.ui.docking, before);+ assert_eq!(app.ui.docking_hidden, hidden);+ }+ app.ui.docking = Some(Layout {+ root: Some(Node::Stack { entries: vec![craft_ui::docking::StackEntry { panel: "layers".into(), open: true, height: Some(100.0) }] }),+ floating: Vec::new(),+ });+ app.run("window.panel.layout", json!({"action":{"SetStackOpen":{"panel":"layers","open":false}}})).unwrap();+ app.run("window.panel.layout", json!({"action":{"ResizeStack":{"panel":"layers","height":150}}})).unwrap();+ let Some(Node::Stack { entries }) = &app.ui.docking.as_ref().unwrap().root else { panic!("expected stack") };+ assert!(!entries[0].open);+ assert_eq!(entries[0].height, Some(150.0));+}++fn group_members_for_test(layout: &Layout<String>, panel: &str) -> Vec<String> {+ let mut pending: Vec<_> = layout.root.iter().collect();+ while let Some(node) = pending.pop() {+ match node {+ Node::Tabs { panels, .. } if panels.iter().any(|p| p == panel) => return panels.clone(),+ Node::Split { first, second, .. } => pending.extend([first.as_ref(), second.as_ref()]),+ _ => {}+ }+ }+ Vec::new()+}++#[test]+fn populated_canvas_keeps_a_real_stroke_edit_after_floating_and_redocking() {+ let mut app = app();+ app.run("file.new", json!({"width":480,"height":360})).unwrap();+ let id = app.run("shape.rectangle", json!({"x":80,"y":70,"width":250,"height":160})).unwrap()["id"].clone();+ app.run("select.set", json!({"ids":[id]})).unwrap();+ app.run("paint.setFill", json!({"color":"#5297bb"})).unwrap();+ app.run("stroke.set", json!({"weight":8})).unwrap();+ app.run("window.panel.float", json!({"panel":"stroke","x":40,"y":140,"width":310,"height":490})).unwrap();+ let directory = std::env::var_os("CRAFT_UI_DOCKING_FIXTURES").map(std::path::PathBuf::from);+ let builder = Harness::builder().with_size(vec2(1280.0, 800.0));+ let builder = if directory.is_some() { builder.wgpu() } else { builder };+ let mut h = builder.build_ui_state(+ |ui, app: &mut VectorcraftApp| {+ app.logic(ui.ctx());+ app.ui(ui);+ },+ app,+ );+ h.input_mut().max_texture_side = Some(8192);+ h.run_steps(5);+ let mut pending: Vec<_> = h.output().shapes.iter().map(|shape| &shape.shape).collect();+ let mut checkbox = None;+ while let Some(shape) = pending.pop() {+ match shape {+ egui::Shape::Text(text) if text.galley.text() == "Dashed Line" => {+ checkbox = Some(text.visual_bounding_rect().center());+ break;+ }+ egui::Shape::Vec(shapes) => pending.extend(shapes),+ _ => {}+ }+ }+ let at = checkbox.expect("painted Dashed Line checkbox");+ h.hover_at(at);+ h.run_steps(1);+ for pressed in [true, false] {+ h.event(Event::PointerButton { pos: at, button: PointerButton::Primary, pressed, modifiers: Modifiers::NONE });+ h.run_steps(1);+ }+ h.run_steps(2);+ let dash = crate::panels::current_stroke(h.state()).unwrap().dash.unwrap();+ assert_eq!(dash.pattern, [12.0, 12.0]);+ if let Some(directory) = &directory {+ std::fs::create_dir_all(directory).unwrap();+ h.render().unwrap().save(directory.join("vectorcraft-populated-stroke-floating.png")).unwrap();+ }+ let from = h.ctx.read_response(egui::Id::new("vectorcraft-panel-docking").with(("tab", &"stroke".to_string()))).unwrap().rect.center();+ let to = h.ctx.read_response(egui::Id::new("vectorcraft-panel-docking").with(("tab", &"properties".to_string()))).unwrap().rect.center();+ drag(&mut h, from, to);+ assert!(h.state().ui.docking.as_ref().unwrap().floating.is_empty());+ assert_eq!(crate::panels::current_stroke(h.state()).unwrap().dash.unwrap(), dash);+ if let Some(directory) = &directory {+ h.render().unwrap().save(directory.join("vectorcraft-populated-stroke-redocked.png")).unwrap();+ }+}++#[test]+fn changing_workspace_during_a_drag_cancels_the_stale_gesture() {+ let mut app = app();+ app.run("window.panel.move", json!({"panel":"swatches","anchor":"layers","zone":"top"})).unwrap();+ let destination = app.ui.docking.clone();+ app.run("window.workspace.new", json!({"name":"Destination"})).unwrap();+ app.run("window.workspace", json!({"name":"Essentials"})).unwrap();+ let mut h = harness(app, vec2(1280.0, 800.0));+ let source = h.query_all_by_label("Layers").find(|node| node.rect().height() <= 45.0).unwrap().rect().center();+ h.event(Event::PointerMoved(source));+ h.run_steps(1);+ h.event(Event::PointerButton { pos: source, button: PointerButton::Primary, pressed: true, modifiers: Modifiers::NONE });+ h.run_steps(1);+ h.event(Event::PointerMoved(source - vec2(90.0, 0.0)));+ h.run_steps(2);+ h.state_mut().run("window.workspace", json!({"name":"Destination"})).unwrap();+ h.event(Event::Key { key: egui::Key::Escape, physical_key: None, pressed: true, repeat: false, modifiers: Modifiers::NONE });+ h.run_steps(1);+ assert_eq!(h.state().ui.docking, destination);+ h.event(Event::PointerButton { pos: source, button: PointerButton::Primary, pressed: false, modifiers: Modifiers::NONE });+ h.run_steps(2);+ assert_eq!(h.state().ui.docking, destination);+}++#[test]+fn floating_icon_groups_redock_to_the_rail_and_keep_saved_origins() {+ let mut app = app();+ app.run("window.panel.float", json!({"panel":"color"})).unwrap();+ app.run("window.panel.float", json!({"panel":"swatches", "onto":"color"})).unwrap();+ assert_eq!(app.ui.docking_icons.len(), 2);+ let workspace = crate::workspaces::capture(&app.ui, "Icon origins");+ let saved = serde_json::to_vec(&workspace).unwrap();+ let restored: crate::workspaces::Workspace = serde_json::from_slice(&saved).unwrap();+ crate::workspaces::apply(&mut app.ui, &restored);+ app.run("window.panel.dock", json!({"panel":"color", "group":true})).unwrap();+ let layout = app.ui.docking.as_ref().unwrap();+ assert!(!layout.contains(&"color".into()));+ assert!(!layout.contains(&"swatches".into()));+ assert!(app.ui.floating_panels.is_empty());+ assert_eq!(app.ui.open_panel.as_deref(), Some("color"), "the requested icon pops out after redocking");+ app.run("window.panel", json!({"panel":"color"})).unwrap();+ assert!(app.ui.open_panel.is_none(), "the same icon puts it away");+ app.run("window.panel", json!({"panel":"color"})).unwrap();+ assert_eq!(app.ui.open_panel.as_deref(), Some("color"));+}++#[test]+fn all_dock_group_origins_survive_float_and_return() {+ let mut app = app();+ app.run("window.panel.float", json!({"panel":"layers", "group":true})).unwrap();+ assert_eq!(app.ui.floating_panels[0].panels.len(), 3);+ assert!(app.ui.docking_hidden.contains_key("properties"));+ assert!(app.ui.docking_hidden.contains_key("layers"));+ assert!(app.ui.docking_hidden.contains_key("libraries"));+ app.run("window.panel.dock", json!({"panel":"layers", "group":true})).unwrap();+ let layout = app.ui.docking.as_ref().unwrap();+ assert!(layout.floating.is_empty());+ assert_eq!(layout.panels().into_iter().map(String::as_str).collect::<Vec<_>>(), ["properties", "layers", "libraries"]);+ assert_eq!(app.ui.dock_tab, crate::state::DockTab::Layers);+ assert!(valid(layout));+}++#[test]+fn panel_specific_menu_executes_after_first_float_regroup_and_reload() {+ let mut app = app();+ app.run("file.new", json!({})).unwrap();+ app.run("window.panel.float", json!({"panel":"swatches","x":40,"y":100})).unwrap();+ let mut h = harness(app, vec2(1280.0, 900.0));+ for stage in 0..3 {+ if stage == 1 {+ h.state_mut().run("window.panel.float", json!({"panel":"color","x":60,"y":120})).unwrap();+ h.state_mut().run("window.panel.float", json!({"panel":"swatches","onto":"color"})).unwrap();+ } else if stage == 2 {+ let saved = serde_json::to_vec(&h.state().ui).unwrap();+ h.state_mut().ui = serde_json::from_slice(&saved).unwrap();+ }+ h.run_steps(4);+ let at = h+ .query_all_by_label("Panel menu")+ .find(|node| node.rect().center().x < 800.0)+ .expect("floating panel menu has an accessible button")+ .rect()+ .center();+ h.hover_at(at);+ h.run_steps(1);+ for pressed in [true, false] {+ h.event(Event::PointerButton { pos: at, button: PointerButton::Primary, pressed, modifiers: Modifiers::NONE });+ h.run_steps(1);+ }+ h.run_steps(2);+ let action = h.query_all_by_label(" New Swatch…").next().expect("app-specific menu action remains reachable").rect().center();+ for pressed in [true, false] {+ h.event(Event::PointerButton { pos: action, button: PointerButton::Primary, pressed, modifiers: Modifiers::NONE });+ h.run_steps(1);+ }+ assert_eq!(h.state().ui.dialog.as_ref().map(|dialog| dialog.kind.as_str()), Some("newSwatch"), "stage {stage}: actual panel action executes");+ h.state_mut().ui.dialog = None;+ }+}++#[test]+fn iconic_origin_tracks_explicit_custom_dock_and_legacy_saved_floats() {+ let mut custom = app();+ custom.run("window.panel.move", json!({"panel":"color","anchor":"layers"})).unwrap();+ let before = custom.ui.docking.clone().unwrap();+ custom.run("window.panel.float", json!({"panel":"color"})).unwrap();+ custom.run("window.panel.dock", json!({"panel":"color"})).unwrap();+ assert_eq!(custom.ui.docking.as_ref(), Some(&before), "explicit custom tabs are the saved destination");+ assert!(custom.ui.open_panel.is_none(), "a docked custom tab is not an icon popout");++ let mut legacy = app();+ crate::floating::float(&mut legacy.ui, &["color"], "color", egui::pos2(120.0, 160.0));+ let saved = serde_json::to_vec(&legacy.ui).unwrap();+ legacy.ui = serde_json::from_slice(&saved).unwrap();+ assert!(legacy.ui.docking.is_none());+ legacy.run("window.panel.dock", json!({"panel":"color"})).unwrap();+ assert!(!legacy.ui.docking.as_ref().unwrap().contains(&"color".into()), "legacy icon floats return to rail");+ assert_eq!(legacy.ui.open_panel.as_deref(), Some("color"));+}++++#[test]++fn native_sets_columns_and_collapse_preserve_shared_splits_and_saved_origins() {++ let mut app = app();++ app.run("window.panel.move", json!({"panel":"swatches","anchor":"layers","zone":"top"})).unwrap();++ let original = app.ui.docking.clone().unwrap();++ app.run("window.panel.float", json!({"panel":"stroke","x":100,"y":100})).unwrap();++ app.run("window.panel.float", json!({"panel":"color","below":"stroke","collapsed":true})).unwrap();++ let root = app.ui.docking.as_ref().unwrap().root.clone();++ assert_eq!(root, original.root);++ let column = app.ui.floating_panels.first().unwrap().column;++ assert!(column.is_some());++ assert_eq!(app.ui.floating_panels.len(), 2);++ assert!(app.ui.floating_panels.iter().all(|g| g.column == column));++ app.run("window.panel.dock", json!({"panel":"stroke","group":true,"column":true})).unwrap();++ assert!(app.ui.floating_panels.iter().all(|g| g.docked == Some(1)));++ app.run("window.workspace.new", json!({"name":"Mixed shared native"})).unwrap();++ let saved = app.ui.floating_panels.clone();++ app.run("window.workspace", json!({"name":"Essentials"})).unwrap();++ app.run("window.workspace", json!({"name":"Mixed shared native"})).unwrap();++ assert_eq!(app.ui.floating_panels, saved);++ assert_eq!(app.ui.docking.as_ref().unwrap().root, root);++ app.run("window.panel.float", json!({"panel":"stroke","group":true})).unwrap();++ assert!(app.ui.floating_panels.iter().all(|g| g.docked.is_none()));++ let before = serde_json::to_value(&app.ui).unwrap();++ assert!(app.run("window.panel.float", json!({"panel":"stroke","below":"unknown"})).is_err());++ // Error reporting may change status, but ownership, metadata and root remain atomic.++ let mut after = serde_json::to_value(&app.ui).unwrap();++ let mut before = before;++ before.as_object_mut().unwrap().remove("status");++ after.as_object_mut().unwrap().remove("status");++ assert_eq!(before, after);++ app.run("window.panel.dock", json!({"panel":"stroke","group":true})).unwrap();++ app.run("window.panel.dock", json!({"panel":"color","group":true})).unwrap();++ assert_eq!(app.ui.docking.as_ref().unwrap().root, original.root);++ assert!(app.ui.floating_panels.is_empty());++ assert!(valid(app.ui.docking.as_ref().unwrap()));++}++++#[test]++fn native_set_close_pointer_restores_shared_split_ownership() {++ let mut app = app();++ app.run("window.panel.move", json!({"panel":"swatches","anchor":"layers","zone":"top"})).unwrap();++ let root = app.ui.docking.as_ref().unwrap().root.clone();++ app.run("window.panel.float", json!({"panel":"stroke","x":70,"y":90})).unwrap();++ app.run("window.panel.float", json!({"panel":"color","below":"stroke"})).unwrap();++ let mut h = harness(app, vec2(1280.0, 900.0));++ if let Some(directory) = std::env::var_os("CRAFT_UI_DOCKING_SNAPSHOT_DIR") {++ let directory = std::path::PathBuf::from(directory);++ std::fs::create_dir_all(&directory).unwrap();++ h.render().unwrap().save(directory.join("vectorcraft-native-set-shared-split.png")).unwrap();++ }++ let area = h.ctx.memory(|m| m.area_rect(crate::floating::area_id("stroke"))).unwrap();++ let at = egui::pos2(area.right() - 10.0, area.top() + 1.0 + crate::floating::TITLE / 2.0);++ for pressed in [true, false] {++ h.event(Event::PointerMoved(at));++ h.event(Event::PointerButton { pos: at, button: PointerButton::Primary, pressed, modifiers: Modifiers::NONE });++ h.run_steps(1);++ }++ h.run_steps(3);++ assert!(h.state().ui.floating_panels.is_empty());++ assert_eq!(h.state().ui.docking.as_ref().unwrap().root, root);++ assert!(valid(h.state().ui.docking.as_ref().unwrap()));++}++++#[test]++fn a_single_native_tab_redock_retains_the_remaining_float_and_return_origin() {++ let mut app = app();++ app.run("window.panel.move", json!({"panel":"swatches","anchor":"layers","zone":"top"})).unwrap();++ let root = app.ui.docking.as_ref().unwrap().root.clone();++ app.run("window.panel.float", json!({"panel":"swatches","x":80,"y":90})).unwrap();++ app.run("window.panel.float", json!({"panel":"color","onto":"swatches","collapsed":true})).unwrap();++ assert!(++ matches!(app.ui.docking.as_ref().unwrap().root.as_ref(), Some(Node::Tabs { panels, active }) if panels.get(*active).is_some_and(|panel| panel == "properties")),++ "floating Color intentionally activates the first root fallback, Properties"++ );++ let mut expected = Layout { root, floating: vec![] };++ expected.apply(Action::Activate { panel: "properties".to_string() }).unwrap();++ app.run("window.panel.dock", json!({"panel":"swatches"})).unwrap();++ assert_eq!(app.ui.docking.as_ref().unwrap().root, expected.root);++ assert_eq!(app.ui.floating_panels.len(), 1);++ assert_eq!(app.ui.floating_panels[0].panels, ["color"]);++ assert!(valid(app.ui.docking.as_ref().unwrap()));++}++++#[test]++fn explicit_shared_activation_expands_a_native_collapsed_owner() {++ let mut app = app();++ app.run("window.panel.float", json!({"panel":"layers","collapsed":true})).unwrap();++ assert!(app.ui.floating_panels[0].collapsed);++ app.run("window.panel.layout", json!({"action":Action::Activate { panel:"layers".to_string() }})).unwrap();++ assert!(!app.ui.floating_panels[0].collapsed);++ assert_eq!(app.ui.floating_panels[0].panels, ["layers"]);++ assert!(valid(app.ui.docking.as_ref().unwrap()));++}++++#[test]++fn escape_restores_native_set_position_and_metadata_after_several_frames() {++ let mut app = app();++ app.run("window.panel.float", json!({"panel":"stroke","x":80,"y":100})).unwrap();++ app.run("window.panel.float", json!({"panel":"color","below":"stroke"})).unwrap();++ let mut h = harness(app, vec2(1280.0, 900.0));++ let original = h.state().ui.floating_panels.clone();++ let layout = h.state().ui.docking.clone();++ let area = h.ctx.memory(|m| m.area_rect(crate::floating::area_id("stroke"))).unwrap();++ let from = area.left_top() + vec2(30.0, 1.0 + crate::floating::TITLE / 2.0);++ h.event(Event::PointerMoved(from));++ h.event(Event::PointerButton { pos: from, button: PointerButton::Primary, pressed: true, modifiers: Modifiers::NONE });++ h.run_steps(1);++ for step in 1..=8 {++ h.event(Event::PointerMoved(from + vec2(step as f32 * 12.0, step as f32 * 9.0)));++ h.run_steps(1);++ }++ assert_ne!(h.state().ui.floating_panels, original, "actual title gesture moved the set");++ h.event(Event::Key { key: egui::Key::Escape, physical_key: None, pressed: true, repeat: false, modifiers: Modifiers::NONE });++ h.run_steps(2);++ assert_eq!(h.state().ui.floating_panels, original);++ assert_eq!(h.state().ui.docking, layout);++}++++#[test]++fn first_legacy_icon_tear_can_join_a_native_set() {++ let mut app = app();++ crate::floating::float(&mut app.ui, &["stroke"], "stroke", egui::pos2(100.0, 100.0));++ crate::floating::float(&mut app.ui, &["color"], "color", egui::pos2(100.0, 100.0));++ crate::floating::attach(&mut app.ui, &[1], "stroke", true);++ assert!(app.ui.docking.is_none());++ let mut h = harness(app, vec2(1280.0, 900.0));++ let source = h.query_all_by_label("Swatches").find(|node| node.rect().height() <= 45.0).unwrap().rect().center();++ let color = h.ctx.data(|data| data.get_temp::<egui::Rect>(crate::floating::group_rect_id("color"))).unwrap();++ drag(&mut h, source, egui::pos2(color.center().x, color.bottom() + 2.0));++ assert!(h.state().ui.docking.is_some(), "successful first tear retains shared ownership");++ let groups = &h.state().ui.floating_panels;++ let color = groups.iter().find(|g| g.panels.iter().any(|p| p == "color")).unwrap();++ let swatches = groups.iter().find(|g| g.panels.iter().any(|p| p == "swatches")).unwrap();++ assert!(color.column.is_some());++ assert_eq!(swatches.column, color.column);++ assert!(valid(h.state().ui.docking.as_ref().unwrap()));++}++++#[test]++fn native_set_drop_targets_respect_the_visible_layer_above_an_ordinary_float() {++ let mut app = app();++ app.run("window.panel.float", json!({"panel":"swatches","x":100,"y":100})).unwrap();++ app.run("window.panel.float", json!({"panel":"stroke","x":100,"y":100})).unwrap();++ app.run("window.panel.float", json!({"panel":"color","below":"stroke"})).unwrap();++ let h = harness(app, vec2(1280.0, 900.0));++ let rect = h.ctx.data(|data| data.get_temp::<egui::Rect>(crate::floating::group_rect_id("stroke"))).unwrap();++ let at = rect.center();++ assert_eq!(h.ctx.layer_id_at(at).unwrap().id, crate::floating::area_id("stroke"), "native set is visibly above the ordinary shared float");++ let target = crate::floating::drop_target(h.state(), &h.ctx, crate::floating::Moving::Panel("layers"), at).unwrap().0;++ assert!(++ matches!(target, crate::floating::Drop::Above("stroke") | crate::floating::Drop::Below("stroke")),++ "visible native group owns the drop: {target:?}"++ );++}