Commit Graph

15514 Commits

Author SHA1 Message Date
bflatastic d922e22206 A drag on the Recolor Artwork and Color Themes wheels runs to its release for colours kept in CMYK: each wheel gets the host's round trip (HarmonyWheel::stored_as), the colour written in the row's model and read back, so the drag's own echo no longer reads as an outside change 2026-11-24 08:11:29 +07:00
bflatastic 14efb81a42 A held action key plays its action once: its repeats play nothing, as production's action keys ignored repeats 2026-11-24 08:07:49 +07:00
bflatastic ccb2a0d32c Format: import order in the font lookup 2026-11-24 08:00:38 +07:00
bflatastic 65edb2444f Merge branch 'area/app6' into area/app4 2026-11-24 07:55:46 +07:00
bflatastic 4690694273 Merge branch 'area/app5' into area/app4 2026-11-24 07:55:41 +07:00
bflatastic fa337e8af7 The Type tool's editor takes the keys back when a press on its canvas ends while the edit goes on: the press focused the canvas, so after a Cmd+Space zoom or a caret press Space lent the Hand and typing reached nothing, where production kept typing in the text 2026-11-24 07:51:44 +07:00
bflatastic 48340b7bc3 Copy and Cut with text selected in another window's label copy and cut the art: the Copy or Cut is left to the labels, and when no label of the window copied anything in that pass it runs in the next pass on the selection it was given, as production did; production's test assertions and its two tests of a Cut left to the labels come back 2026-11-24 07:51:13 +07:00
bflatastic bb166fb8b2 Merge branch 'area/app8' into area/app4 2026-11-24 07:39:15 +07:00
bflatastic ba7e8bfc02 Merge branch 'area/app2' into area/app4 2026-11-24 07:39:11 +07:00
bflatastic a56797c21f Unlinked corner rows: each corner's label in the shared label column, its radius field after it and its Corner menu beside the field, wrapping under it in a narrow panel, as production laid them out; the rows no longer overlap 2026-11-24 07:37:26 +07:00
bflatastic 4b12f63989 Merge branch 'area/app7' into area/app4 2026-11-24 07:33:35 +07:00
bflatastic fa5fcf167b Injected input reads as injected for the whole pass that carries it: the app answers the requests waiting on injected input at the end of its pass (VectorcraftApp::poll_input after ui), not in tick at the pass's start, where ControlChannel::poll_input counted the pass's step as run before the dialogs read WindowHost::injected_pass; an OK that injected input presses on the install approval stays open and the status line says why, as production did, instead of closing and asking again 2026-11-24 07:30:41 +07:00
bflatastic 2c7bdda6ad Merge branch 'area/app7' into area/app4 2026-11-24 07:28:35 +07:00
bflatastic 91a1942f89 Tests: the Image Trace object's Control bar and Properties checks find the Preset and View labels as drawn, their colons being runs of their own 2026-11-24 07:25:20 +07:00
bflatastic 691c697041 An open Keyboard Shortcuts dialog takes the window's commands whenever they differ from its own, not only when their count does
A plug-in removed and another installed between two frames left the count equal, and the dialog kept listing the removed plug-in's row (an_open_dialog_follows_live_effect_plugins, when another test installed a plug-in meanwhile).
2026-11-24 07:25:12 +07:00
bflatastic 9dde889711 Merge branch 'area/app3' into area/app4
# Conflicts:
#	apps/vectorcraft-web/Cargo.toml
2026-11-24 07:15:04 +07:00
bflatastic 52f7763643 Tests: the plug-in run tests that start a run from a dialog's OK hold its job until they run it, so a fast run is still running when they look
The OK frame runs two passes, and the second pass's tick applies the runs that are done: a light run whose thread ended between the passes was already applied when the test checked that it runs in the background. The window-driven run tests give the app a host over ManualJobs and run the held job when they choose.
2026-11-24 07:06:07 +07:00
bflatastic ec9a06b494 A click on the Image Trace button's arrow opens the presets list without tracing: the button's main part runs imageTrace.make with the Default preset as its bound command, which the arrow's toggle does not activate, as production's separate main and arrow parts did 2026-11-24 07:04:50 +07:00
bflatastic b80cf382df Merge branch 'area/app8' into area/app4 2026-11-24 06:52:56 +07:00
bflatastic 44ae88619f Merge branch 'area/app6' into area/app4 2026-11-24 06:52:52 +07:00
bflatastic c766e909a2 Tests: the Option-8 step of brackets_size_the_blob_brush_and_the_eraser runs on a macOS shell, as the Turkish Mac keyboard it models: elsewhere Alt+digit starts an Alt code 2026-11-24 06:50:15 +07:00
bflatastic 864534ca84 Tests: the read after a script that left the folder is seen asking for a frame through the repaint observer, which sees every request; the repaint callback dropped it behind the first read's request, still pending in a context that runs no pass 2026-11-24 06:49:37 +07:00
bflatastic c1959b6faa Merge remote-tracking branch 'origin/main' into area/app4
# Conflicts:
#	apps/vectorcraft/src/app.rs
2026-11-24 06:45:53 +07:00
bflatastic a7a7ad0e1f Web build: native-only items are compiled only off wasm, egui_extras is a dev-dependency (only a test uses it), and geom drops its unused thiserror 2026-11-24 06:34:27 +07:00
bflatastic 490b12dd0d Tests: the palette's build count is checked step by step, on the steps the shared parts of the catalog held still through, instead of rerunning the trial until a whole run held still
Plug-in installs, the Scripts folder and the fonts of tests running alongside move the catalog's generation. Each step now notes them as it begins and ends: a build exactly when the key moves, the language step moves the key, and every other step whose shared parts held still keeps it.
2026-11-24 03:04:25 +07:00
bflatastic 531e349ea8 Tests: the tests that read or change process-wide state the canvas and the spelling walk depend on take turns
The custom dictionary is the whole process's, and each change moves its generation: a Check Spelling walk that sees it move between the word shown and the next step checks its scope again from the start, so a test in another thread adding or removing a word made change_to_the_same_word_changes_nothing_and_goes_on show the first word again. The walk tests and the tests that change the dictionary now hold testing::custom_dictionary.

The proof view (Proof Colors, Overprint Preview, Separations Preview) is the whole process's too, and the canvas renders through it: a Proof Setup test turning Proof Colors on between two of a canvas test's renders made them differ (a_drag_on_the_canvas_draws_raster_effects_at_a_lower_resolution, dragging_an_object_with_raster_effects_draws_its_rasters_moved). The Proof Setup tests' lock moves to testing::DefaultProofView, which the canvas tests that compare renders (keeping_color_settings) and the control test that sets the view also hold.
2026-11-24 02:51:19 +07:00
bflatastic 968db52379 Quick Pen bar: below or above the path's end gives way where it runs off the canvas and the other side fits or runs off by less, from the bar's height in the last pass, as production did; the framework's flip lined the bar up with the gapped point over the end's row 2026-11-24 02:50:50 +07:00
bflatastic 6d51736e27 A held key repeats its command again (RootEnv::shortcuts_repeat), as production's dispatcher did with repeat on 2026-11-24 02:49:53 +07:00
bflatastic 8e8bbdb8a5 Tests: the Alt character chords are typed in a context whose last frame had the Type tool's editor focused, as a window that has drawn a while has: the framework holds an Alt chord's text back for a binding around the last pass's focus 2026-11-24 01:38:09 +07:00
bflatastic ef9bd533aa The Type tool's editor lets the app's Cmd chords and function keys run while it types (KeyUse::with_command_keys), as production did; Enter on a dimmed palette result closes the palette and the status line says why (PaletteOutput::refused), as production did 2026-11-24 01:38:08 +07:00
bflatastic aeadffa8d8 Merge branch 'area/app3' into area/app4 2026-11-24 01:01:19 +07:00
bflatastic e2365ead0b Tests: the OS-window hosts list the main window and every OS window in each pass, as egui-winit does; the native harness holds files over a window before it drops them, as the OS does; F7's text-field guard clicks the Layers panel's search field once the dialog has gone and releases it with a canvas click; the column-places case finds the end dock by its path; the Tools panel's ••• button is looked up outside the drawer, whose title has the same name; icon_column moves from the tests to the module 2026-11-24 00:59:33 +07:00
bflatastic ada0caaf16 Docking and drops as production: the area's edits of the pass are kept unless a command changed the workspace in it (the revision read before the pass), so a native window's OS placement is recorded; a float command that moves an OS window moves its recorded placement with it; Dock column n and Dock icon count from the icon column (the iconic column holding the most icon-group panels, production's icon_column), and a column docked out of the icon column opens expanded; a dropped file with no name opens or is placed by its sniffed format (an SVG opens, a raster image is placed) 2026-11-24 00:59:32 +07:00
bflatastic 7ea8572e70 Merge branch 'area/app2' into area/app4 2026-11-24 00:55:10 +07:00
dotCooCoo a149f93392 Script checker: code the check can't read keeps a Folder's length, hidden and readonly setters
The check leaves out `length`, `hidden` and `readonly` set on `new
Folder(...)`, a `Folder` place, or a variable holding one, but a script
can give that name a File object in ways the check does not read. Such a
setter now counts as a file write in a check whose files:

- use `with`, or name `eval`, `Function`, `evalFile` or `constructor`,
  as a word or as a string literal in brackets (`this['eval'](s)`,
  `$['evalFile'](f)`, `(function () {}).constructor(s)`)
- read, call or assign a property in brackets when the brackets hold
  anything but one string or number literal (`this[k](s)`,
  `this['ev' + 'al'](s)`, `this[('eval')](s)`, `this[0, 'eval'](s)`,
  `$[k](f)`, `g[k] = ...`), including a preprocessor line inside the
  brackets
- assign a property in brackets whose name is a string literal longer
  than 256 characters, or properties of more than 1,000 names
- assign or declare `Folder`

A variable whose name a member assignment writes (`$.global.d = ...`,
`this.d = ...`, `this['d'] = ...`) counts as one that may hold a File
object. Array literals, `o['plain']` and `a[0]` leave the Folder alone.

docs/mcp.md and the progress line in docs/target-app-parity.md state the
rule.
2026-11-23 09:54:50 -08:00
bflatastic 328e8ccb56 Tests: the palette's build count is read on a run the process-wide fonts, plug-ins and scripts held still through, as the font menu's tests do (tests alongside move the catalog's generation); the raster-effects drag test says which pixels differ from a fresh renderer's when it fails 2026-11-24 00:53:04 +07:00
bflatastic 1a595fffae Quick Pen bar sits a gap below and beside the path's end, as production's corner did; Save PDF closes when its write asks first (the save panel, or whether to replace the opened file), as production did; tests: Save a Copy's Cancel cancels, Save PDF's path is read from the app's job, the recolor right-click takes the New chip, the Keyboard Shortcuts import clicks the dialog's Import… and reads its review, the in-window menu's paste is answered as egui-winit answers RequestPaste, a press and release in one frame gets the release's pass, a new Type edit follows a frame without the last one's editor, trace presets are found past a menu row's check space 2026-11-24 00:36:22 +07:00
bflatastic 317ec6b197 Tests: Help F1 sends each key's release, as a keyboard does (a second press of a key still down is a repeat); the bracket test gives the tool its first frame before typing, as its key claims start there; a Type tool command moved to another chord runs on it while typing 2026-11-24 00:15:37 +07:00
bflatastic 48b1adc3b4 Type tool: its app commands with a chord (align, justify, underline, super- and subscript, size steps, reset tracking and horizontal scale, highlight font name and kerning, hidden characters, line composer, hyphenate, create outlines) join the type editor's typing command set, so their chords run while it types under TypingRule::AllWait, on the app command's chords with the user's own; an Alt chord that types a character loses its press when the layout typed other text with it, so that text is typed as it came (raw_input in the desktop, web and test hosts) 2026-11-24 00:15:36 +07:00
bflatastic 0c2b00d904 Tests: a swatch click reaches the panel's apply, as the panel's used does (it forwards no Select); rustfmt on the files of the last three commits, formatting only; the Corner Tool panel test passes its show function as it is 2026-11-23 23:01:06 +07:00
bflatastic 8411ac7bae Rulings: no shortcut runs while a text field has the keys (TypingRule::AllWait, in place of the app's own field-keys rule); Escape in a text field gives up its focus (RootEnv::escape_leaves_fields); files dropped under an alert are placed or opened (under_modal on the canvas and window targets); Numbers Without Units Are Points reaches every length field, from the General, Type and Stroke lengths and the dialogs that build their own, as production applied it to every field 2026-11-23 22:41:28 +07:00
bflatastic 5de7a786e1 Use the framework's rulers, palm rejection, rail locate mark and size-field share: signed ruler labels (TickLabels::Signed), a finger after a pen only navigates (ToolHost::navigates), the Learn panel's located tool marked and revealed on the Tools panel and toolbars, a lone 50% in the six size fields read against the size the edit began on (NumberCodec::share_of_start); the app's ruler_label, share_of and length_reader go 2026-11-23 22:34:02 +07:00
bflatastic d1b80a7513 Swatches panel: every click on a swatch comes as the panel's used, gradient, pattern and None swatches too, and applies it as production did; the never-forwarded Select arm goes 2026-11-23 22:27:50 +07:00
bflatastic 8e77d341f8 Merge branch 'area/app1' into area/app4 2026-11-23 22:10:42 +07:00
bflatastic d408113028 Tests: the Control bar and canvas frames pass their show functions as they are, as clippy asks 2026-11-23 21:57:12 +07:00
bflatastic b02f4e19e4 rustfmt: panels/transform.rs, formatting only 2026-11-23 21:53:57 +07:00
bflatastic f5ea2d2dfb Tests: the panel harness finds a control by its label alone again: Fixture::by_label passes over a caption link to the field it captions (craft-libs b72fc4200) 2026-11-23 21:52:58 +07:00
bflatastic 8bc4d0543d The Type tool's editor asks for the keys once, as its edit starts: the framework keeps a focus request made in a press's pass (craft-libs b14f3a313), so it no longer takes them back from its canvas each pass 2026-11-23 21:52:57 +07:00
bflatastic b2fb4f9101 The selection's Transform fields take the box as it is again: the framework keeps a running gesture's start box itself (craft-libs a7f40c447) 2026-11-23 21:52:56 +07:00
bflatastic d6ab5d69a1 The web app builds for the browser again: the host's file service is the framework's BrowserFiles (the app's WebFiles lacked Files::save, can_pick and browser_saves), the font stack fetches the served interface faces through BrowserFetcher, the page's key filter reads the running context through its slot, a drop the page followed lands where VectorcraftApp::drop_spot says, and the calls the framework replaced (want_chars, drop_paste_key_presses, the native-only embed::before_ui) are gone 2026-11-23 21:40:48 +07:00