Commit Graph
11138 Commits
Author SHA1 Message Date
BFlat 8574f0d83a Merge pull request #8796 from dotCooCoo/fix/value-fields-arithmetic
Fields: number fields outside the shared widgets read field arithmetic
2026-11-25 15:56:38 +07:00
BFlat 0dcb2809f0 Merge pull request #8620 from dotCooCoo/fix/followup-8269
Swatches: New Swatch and Delete Swatch drops carry hidden selected swatches
2026-11-25 15:56:19 +07:00
Taha-Mahmoodi f9e4a77aa0 Merge pinned main into outline stroke eligibility 2026-11-25 13:19:27 +04:30
dotCooCoo caf68eee85 Merge main into feat/scripts-doc-defaults 2026-11-25 00:32:37 -08:00
dotCooCoo 1e382904fa Merge feat/scripts-api-d2-paths-colors into feat/scripts-doc-defaults 2026-11-25 00:32:34 -08:00
dotCooCoo e97b0b49ae Scripts: Document default fill and stroke members and scaleFactor
A script that read or assigned a document's defaultFillColor,
defaultStrokeWidth or another default paint member, or read scaleFactor,
got undefined. The twelve default members now read and set the fill,
stroke and stroke options of the next object drawn, and scaleFactor
reads 1.

- appearance.setNewArt sets new art's fill, stroke and stroke options
  whatever is selected, leaving the selection, its art, the active proxy
  and Recent Colors as they were. Every value is checked before anything
  changes.
- The default members run it only when the value changes. A bad value
  throws an error with nothing changed.
- paths.rs shares its dash length checks with defaultStrokeDashes.
2026-11-25 00:31:11 -08:00
dotCooCoo a303ef2283 Merge main into feat/scripts-document-views 2026-11-25 00:26:34 -08:00
dotCooCoo 656aafffd7 Merge #9019's branch into feat/scripts-document-views
# Conflicts:
#	crates/engine/src/lib.rs
#	crates/engine/src/script/dom.rs
#	crates/ui-egui/src/script_runs.rs
#	crates/ui-egui/src/tests/script_run.rs
#	docs/target-app-parity.md
2026-11-25 00:26:34 -08:00
dotCooCoo 5986c0d94b Scripts: Document.views gives the document's view with its bounds, center and zoom
Document.views holds one view while the desktop app shows the document
on its canvas: every document's while documents are under the tabs, and
only the current document's while they are tiled or one floats in a
window. Without a window (headless) it holds none. The view has
typename, parent, bounds (the part of the document the canvas shows),
centerPoint, zoom (1 is 100%, from 0.0313 to 640) and screenMode.

Setting zoom, centerPoint or screenMode changes the window when the
slice ends, runs no command and adds no undo step, and a run that fails
keeps the change. The screen mode is the app's, so setting it on one
view sets it on every view. A bad value throws and leaves the view as
it was.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-25 00:24:55 -08:00
FredApps 929c09f2a4 Merge main into the Document Info path area branch
Keep the current Document Info command fields when adding Path Area, and cover selecting a compound path member by itself and with its parent.
2026-11-25 09:13:15 +01:00
dotCooCoo dd72983847 Merge main into feat/scripts-app-redraw 2026-11-24 23:59:19 -08:00
dotCooCoo 950cf819dd Merge feat/scripts-api-d1a-app-documents into feat/scripts-app-redraw 2026-11-24 23:59:14 -08:00
dotCooCoo e45b922802 Scripts: app.redraw returns without changing the documents
A script that called app.redraw() stopped with an error, because app had
no such member. The call now returns undefined and adds no undo step. A
run works on its own copy of the documents, and the app draws the
documents as they were before the run until the run ends, so the call
has nothing new to draw.
2026-11-24 23:58:24 -08:00
dotCooCoo 263223d604 Scripts: Run checks the script again before running it
When the script's report has changed since the Other Script… warning
opened, Run runs nothing, says so in the status bar and opens the
warning again with the new report.
2026-11-24 23:57:54 -08:00
dotCooCoo adf9fb23f6 Color Wheel: Copy Color As does not report a copy without a window
Without a window to copy through, a Copy Color As item still answers its
text, puts nothing on the clipboard and leaves the status bar as it was.
Before, the status bar said the color was copied.
2026-11-24 23:48:52 -08:00
dotCooCoo c6b92415f9 i18n: file pickers show file types in the interface language
The save panel and the Tracing Presets Import... picker passed each file
type's English label to the picker. They now name it with its
file-filter row, falling back to the plain row and then to English.
2026-11-24 23:46:51 -08:00
dotCooCoo f9f0659fc4 Merge main into feat/packaging-fold-angle 2026-11-24 23:45:27 -08:00
dotCooCoo ddfeaef890 Merge main into feat/scripts-scriptui-dialogs 2026-11-24 23:37:30 -08:00
dotCooCoo a28882a78c Scripts: a hidden ScriptUI control takes no room, and a confirmed event waits behind queued ones
A control whose visible is false, and everything in it, no longer adds to
its container's size or pushes the next control along. An event sent with
ui.dialog.confirm while the dialog still holds events the script has not
taken goes after them, so handlers run in the order the events were given.
2026-11-24 23:37:24 -08:00
dotCooCoo 76bb8b74d9 Merge main into feat/script-warning-reaches 2026-11-24 23:34:19 -08:00
dotCooCoo d5e305232d Merge main into feat/scripts-page-item-blending-mode 2026-11-24 23:33:02 -08:00
dotCooCoo 630716c81c Scripts: PageItem.blendingMode reads and sets an object's blending mode
A page item's blendingMode gives the object's own blend mode as a
BlendModes value, and assigning one sets it through object.setProps.
The global BlendModes holds the 16 members the scripting constants page
lists; COLORBLEND and SATURATIONBLEND set the Color and Saturation
modes. Any other value throws "blendingMode needs a BlendModes value"
and changes nothing. Assigning the mode the object has adds no undo
step. An object in a hidden or locked layer refuses the change with
"Cannot edit", as opacity does.
2026-11-24 23:33:02 -08:00
dotCooCoo 9d225ba091 Merge main into feat/plugins-load-on-workers
The Safe Mode choice after a stopped launch moves to main's dialog host and keeps listing every
plug-in that was loading: one name in the sentence, or the list with "Disable Listed Plug-ins and
Continue". Automation requests wait in the queue while plug-ins load, and one past its deadline is
answered as expired. File > Open and opening a file still wait for the plug-ins still loading.
2026-11-24 23:31:07 -08:00
dotCooCoo 34b5706d1f Merge main into feat/eyedropper-hover-highlight 2026-11-24 23:28:44 -08:00
dotCooCoo e85c87ca2c Merge main into feat/transform-polygon-sides-slider
The Sides slider is now a framework Slider beside the Sides field in transform/shape.rs; the framework's gesture handling replaces the hand-kept drag state, the end-of-pass hook and the Escape checks in shortcuts.rs.
2026-11-24 23:19:45 -08:00
.CooCoo 99f7de5262 Direct Selection: Double-Click Adds Anchor Points preference adds an anchor on a segment (#9122) 2026-11-25 14:18:29 +07:00
dotCooCoo ad8c80dba6 Merge main into perf/type-overlays-shared-layout
Show Hidden Characters and Auto Spell Check now share the list of the type in canvas/marks.rs, where main draws both overlays; the tests move to canvas/marks/tests.rs.
2026-11-24 23:16:48 -08:00
dotCooCoo dd8ea1da13 Merge main into feat/color-wheel-copy-color-as 2026-11-24 23:14:48 -08:00
dotCooCoo 717b1e1670 Merge main into feat/plugin-api-javascript-runtime 2026-11-24 23:13:32 -08:00
dotCooCoo cf1712e034 Merge main into fix/i18n-tracing-presets-file-filter 2026-11-24 23:12:06 -08:00
dotCooCoo ca35b94985 Merge main into fix/width-point-edit-target 2026-11-24 23:08:50 -08:00
dotCooCoo 2721c5701e Merge main into fix/banner-hem-and-grommet-messages-and-saving 2026-11-24 23:03:05 -08:00
dotCooCoo 73d954fd3c Merge main into feat/opentype-proportional-metrics
Proportional Metrics and the East Asian feature toggles apply typing left unapplied with Real-time Drawing off before they read the text, so the item turns the setting the right way.
2026-11-24 22:56:58 -08:00
dotCooCoo 3ca2cf7d34 Merge main into feat/plugin-api-document-info 2026-11-24 22:49:15 -08:00
dotCooCoo 34abb11d0e Merge main into feat/scripts-execute-menu-command 2026-11-24 22:46:32 -08:00
dotCooCoo 66efae46f2 Scripts: app.executeMenuCommand runs a menu command
app.executeMenuCommand(name) runs the command of a menu item on the
active document. It takes the names selectall, deselectall, group,
ungroup, makeMask, releaseMask, compoundPath, noCompoundPath and
"Fit Artboard to artwork bounds", which fits the active artboard.
Names are matched exactly. Any other name throws an error that names
it, and a name that is not a string throws a TypeError. A menu item
that is not available, with no document open or nothing selected,
does nothing and adds no undo step.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-24 22:45:55 -08:00
dotCooCoo 254bcf4226 Merge main into feat/corners-link-popup 2026-11-24 22:39:31 -08:00
dotCooCoo 5449209275 Merge main into feat/plugin-api-importer-output-kinds 2026-11-24 22:38:00 -08:00
dotCooCoo 6bb47e42bd Merge main into feat/link-info-show-in-folder 2026-11-24 22:33:55 -08:00
dotCooCoo 57190738b1 Merge main into feat/link-info-show-in-folder 2026-11-24 22:33:50 -08:00
BFlat 461e758fe7 Look: Home, the dock frame and the panels' spacing as production 0.24.1 draws them (#9276)
* Dock: rail_cards is now column_cards in craft-libs

* Dock: pill panel tabs and rounded floating bodies, as production drew them

* Root looks: neutral link labels, hover command highlight, strong choices, accent slider tracks, filled dialog buttons, spaced sections

* Canvas: artboard edges black for the active artboard and grey for the others, as production drew them

* Canvas: smart guide labels in their overlay's colour, as production drew them

* Canvas: bleed in the error red and artboard marks in the grid grey, as production drew them

* Document tabs: production's strip heights, regular and large

* Floating window close test: aim at the title bar above the window's tab strip

* Place the selection widgets over the canvas, so a frame runs its UI once

SelectionWidgets was laid out in the canvas body's flow, which the layout
check found changed in every frame the canvas drew: the frame was discarded
and its whole UI ran a second time. It is placed over the canvas's rect, as
the other canvas controls are.

* Give nine trials the frames their behaviour needs now that a frame runs its UI once

* Give the merge-press and corner-list trials what their behaviour needs now that a frame runs its UI once

A merge the press frame applies changes the layout, so that frame runs again and its second pass already makes
the held press: the check accepts the lent tool once the merge is no longer pending. The picked corner list fades
out on the clock, which the trial now moves past before it checks the list is gone.

* Pin craft-libs at 357f332549af53e1a273c2952c3e9c44157bef72

* Field labels in the normal ink, semibold document tabs, Stroke and Opacity without a colon, a plain Properties Rotate field, as production drew them

* Only the shown pass of the canvas body starts the frame's panes, so a release over a floating window in the frame the pointer reached it drops the art

* Pin craft-libs at 75efd247498d47e41604f418bceb2adaf0e3b329

* A collapsed panel column's icon groups stand apart by a hairline, as production drew them

* Fill and Stroke chips: production's small square wells with their arrow, in the Properties panel and the Control bar

* The dock's columns stand flush and square at production's widths: a 310-point panel column and a 38-point icon column, the panel tabs in the framework's plain look

* The app bar's end shows Discord, a search icon and the workspace switcher, as production 0.24.1 does; tutorials and Arrange Documents stay in the Window menu

* Home: StartScreen's Column layout as production lays it out: the centred welcome title and subtitle, New and Open, the recent files as rows, Learn, the presets as page cards under Quickly start a new file, and Community's links with Join our Discord as the call to action; the Home title is 26-point (typography.display). The recent-files trial finds rows by name and folder. Needs the framework's StartLayout::Column (craft-libs fix/vc-home)

* Properties: the kind line heads the sections under it (QuietHeader::Heads), so the first draws no divider above it, as production's did

* Link labels (Stroke, Opacity:) draw their underline inside the label (LinkLabelUnderline::Inside), under the text as production drew it; it was clipped away

* Push buttons stand 24 points high (size.button), as production's flat buttons; fields stay 26

* Quiet headings (the kind line, Ellipse Properties:) stand a line of text high over their fields (QuietTitleRow::Text), as production's did

* Layers rows: the thumbnail with a tight gap and 14 points of indent per level (ThumbRows::Tight): 26-point rows as production's

* Layers: the Objects search field fills the filter bar up to its Filter button (ObjectsSearch::Fill), as production's did

* Home: production's "New file" and "Open" words, 60 points of page margin above the title and a 36-point Join our Discord (size.page.margin, size.page.action); New Document's preset cards show blank paper on flat cards (PresetCardLook::Page), as production drew them. Needs craft-libs fix/vc-home 9cf00b80e or later

* Control screenshots: frames keep coming until a capture is answered, not only until it is issued; its readback finishes in a later frame, so with nothing else repainting (the Color flyout open) a screenshot waited for the next wake, where production's capture kept painting

* Icon buttons draw 16-point glyphs (size.icon.glyph_md) in their 26-point buttons, as production's did (60% of the button): Align, the Transform flips, More Options

* craft-libs at next 461493afc: the panel spacing options, the menu Copy after Select All and Home's Column page options; pdf-deps follows

* Files dropped on a floating panel window open as before: the dock now names the panel each drop landed on (craft-libs a2967e3cc), which the app does not use

* The dock takes production 0.24.1's frame: block panel tabs on canvas strips with the column bars 14 points high, the tool column the only card with a square canvas strip on top, docks flush against the canvas with framed icon columns and square docked flyouts, the open panel's icon on the control surface; the status bar's rotation and artboard selects are filled

* craft-libs at next 4bed21baa: VectorCraft's dock frame options (block panel tabs, stepped column cards, flush docks, ruled icon groups with production's grip bands, filled status selects); egui follows the framework to b15ffe9bf; pdf-deps follows

* Color Wheel: the opacity row reads the target and color from the rows' pick

#7642's opacity row used the target, color and color settings of the old panel function, which #9256 split into show_rows. It now reads them from the Pick show_rows gets, and leaves the gap to the stack, as the other rows do.
2026-11-25 13:29:00 +07:00
dotCooCoo 53179a19fc Merge main into feat/scripts-api-d2-paths-colors 2026-11-24 21:56:32 -08:00
dotCooCoo 4ebe9d9bbd Merge main into feat/scripts-api-d1a-app-documents 2026-11-24 21:40:17 -08:00
dotCooCoo 1f1c8ccf8c Merge main into feat/scripts-api-d1a-app-documents 2026-11-24 20:48:43 -08:00
dotCooCoo 07d2950d83 Merge feat/color-wheel-opacity into feat/color-wheel-copy-color-as 2026-11-24 20:45:24 -08:00
dotCooCoo 2b4e34c7a2 Merge main into feat/corners-link-popup 2026-11-24 20:39:43 -08:00
dotCooCoo cecaf16bae Circle: switching Third Point by Dragging keeps a center placed with From Center 2026-11-24 20:39:34 -08:00
dotCooCoo b187e886d7 Merge main into fix/issue-1232 2026-11-24 20:35:20 -08:00
dotCooCoo a061629a15 Merge main into feat/corner-widget-hover 2026-11-24 20:33:41 -08:00
dotCooCoo bd597c019d Merge main into feat/circle-from-center 2026-11-24 20:32:39 -08:00