Commit Graph
133 Commits
Author SHA1 Message Date
BFlat 5537e02cb0 Merge pull request #8403 from dotCooCoo/feat/toast-messages
Messages: app.toast shows a message over the window without stopping work
2026-11-19 00:41:29 +07:00
BFlat a0de8aad6f Merge pull request #7894 from dotCooCoo/fix/issue-7849
Pathfinder: Make Compound Shape warns when a line adds no area
2026-11-19 00:39:34 +07:00
BFlat 0cde4439fd Merge pull request #7711 from dotCooCoo/feat/object-mosaic-dialog
Object Mosaic: Create Object Mosaic opens a dialog with its size, ratio and percentage options
2026-11-19 00:39:07 +07:00
BFlat 16e7216c16 Merge pull request #8441 from ruchirguitar/feat/4934-retype
Type › Retype, phase 1: outlined text that matches an available font becomes live type (#4934)
2026-11-19 00:38:40 +07:00
dotCooCoo 34ec4ab745 Merge main into feat/object-mosaic-dialog 2026-11-18 07:31:04 -08:00
Dylan M. Taylor 7841c6601b Merge remote-tracking branch 'origin/main' into pr-7907 2026-11-18 09:21:49 -05:00
dotCooCoo ccedee483f Merge main into fix/issue-7849 2026-11-18 06:21:28 -08:00
dotCooCoo 6d4af2cb6a Merge main into feat/object-mosaic-dialog 2026-11-18 06:12:45 -08:00
ruchirguitar 9c9410e3cc Merge remote-tracking branch 'upstream/main' into feat/4934-retype
# Conflicts:
#	docs/gaps.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-18 16:41:13 +05:30
dotCooCoo 6a4b08f660 Merge main into fix/issue-7849 2026-11-18 01:57:42 -08:00
bflatastic ca187dfcbf Merge main into #8424 2026-11-18 16:25:39 +07:00
dotCooCoo cd5d611196 Merge main into feat/toast-messages 2026-11-18 01:21:20 -08:00
ruchirguitar fbff89f475 Merge remote-tracking branch 'upstream/main' into feat/4934-retype
# Conflicts:
#	docs/gaps.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-18 14:10:12 +05:30
bflatastic 6c337442d9 Merge main into #8424 2026-11-18 14:04:27 +07:00
dotCooCoo e2d7976794 Merge main into fix/shear-angle-range 2026-11-17 22:56:09 -08:00
ruchirguitar a56ffe0949 Merge remote-tracking branch 'upstream/main' into feat/4934-retype
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-18 12:05:01 +05:30
BFlat 50c7208fe3 Merge pull request #8466 from dotCooCoo/perf/find-command-index
Commands: find_command looks commands up in an index built once
2026-11-18 13:15:20 +07:00
BFlat bc30887624 Merge pull request #8382 from dotCooCoo/fix/undo-keeps-view-state
Undo: undo and redo keep the settings changed without an undo step
2026-11-18 12:57:41 +07:00
dotCooCoo cd5baebc41 Merge main into fix/issue-7849 2026-11-17 20:09:10 -08:00
dotCooCoo 44bd7ba6df Merge main into feat/toast-messages 2026-11-17 19:59:56 -08:00
dotCooCoo c0dce666c9 Merge main into feat/object-mosaic-dialog 2026-11-17 19:59:54 -08:00
ruchirguitar 81d38d0d70 Merge remote-tracking branch 'upstream/main' into feat/4934-retype
# Conflicts:
#	docs/target-app-parity.md
2026-11-18 09:15:33 +05:30
BFlat bbf6165fc8 Merge pull request #8206 from dotCooCoo/feat/packaging-fold-preview
Packaging Tools: Fold Preview folds the blank in 3D with the printed art on its panels
2026-11-18 10:30:50 +07:00
BFlat 2a28193517 Merge pull request #8167 from dotCooCoo/fix/issue-7849-shape-mode
Pathfinder: Shape Mode buttons warn when a line encloses no area
2026-11-18 10:21:50 +07:00
BFlat dd3a1886a6 Merge pull request #7764 from dotCooCoo/feat/dataset-import-graph-columns
Variables: Import Data Sets reads % columns of graph data files
2026-11-18 10:15:07 +07:00
dotCooCoo 9f84820d88 MCP: transform checks scale, reflect and shear before any step runs
The transform tool runs move, rotate, scale, reflect and shear as separate
commands. A shear angle that object.shear refuses, such as 90, a reflect
axis other than vertical or horizontal, or a scale of 0 failed only after
the earlier steps had changed the art and recorded undo steps. The tool now
checks those params first with the rules the commands use
(scale_factors, reflect_axis and shear_tangent, shared with object.scale,
object.reflect and object.shear), so a refused request changes nothing and
records no undo step.
2026-11-17 17:42:44 -08:00
dotCooCoo ad5db819be Merge main into fix/issue-7849 2026-11-17 15:41:34 -08:00
dotCooCoo f623a28bb0 Commands: find_command looks commands up in an index built once
find_command searched the list of about 1,000 built-in command specs in
order on every call, and a top-level command looks its id up at least
three times before it runs. It now finds a built-in in a map from id to
spec that is made on the first call. When an id is listed twice, the
map keeps the first spec, which is the one the search returned. An id
that is not a built-in still goes to the installed plug-ins' commands
at the time of the call, so installing or removing a plug-in shows at
once and built-ins keep precedence.
2026-11-17 14:27:14 -08:00
ruchirguitar 75d9d61ce9 M7/G4: rustfmt the retype module declaration (#4934) 2026-11-18 02:36:38 +05:30
ruchirguitar 24a37f8ba3 M7/G4: Type › Retype, phase 1 (#4934)
type.retype turns selected outlined text back into live point text when
each glyph shape is exactly a glyph of a loaded font, a font the document
uses or a family named in fonts: the same up to uniform scale, rotation
and translation. Matched glyphs map back to characters through the cmap
and become point text in that font and size at the same baseline and
turn, one object per line, with the first glyph's fill and stroke, in one
undo step. Shapes that match no font stay and are reported.

Matching (vectorcraft_text::retype) samples each contour at equal steps of
arc length and fits a similarity transform; it is bounded (faces, glyphs,
path elements, contours) and panic-free. Near matches, the ranked font
list, installed fonts not yet loaded and images are phase 2.
2026-11-18 02:20:06 +05:30
ruchirguitar d6ff2f54ce Production Preflight: add output checks and repair panel 2026-11-18 01:35:12 +05:30
dotCooCoo 17a8152cd0 Merge main into feat/object-mosaic-dialog 2026-11-17 09:44:16 -08:00
dotCooCoo 6e44c63cc3 Undo: undo and redo keep the settings changed without an undo step
Undo and redo put back the whole document a step stored, so settings
that change without an undo step went back with it. Undoing any
earlier edit turned the perspective grid's Lock Grid off again, turned
its Snap to Grid back on, showed a hidden grid and switched the active
plane back. It also reset the grid from Gridline every and
Subdivisions, the export settings assets.settings.set stores, and the
current brush and symbol.

Each undo step now also records these settings as the step left them.
Undo and redo compare that record with the document they bring back:
a setting the step did not change stays as it is now, and a setting
the step changed comes back with the step. So undoing a perspective
grid preset still hides the grid the preset showed, and undoing a grid
definition that locked the grid unlocks it. The point Automatic Plane
Positioning holds still follows the steps, and is let go when the
active plane kept is another one.
2026-11-17 08:40:50 -08:00
dotCooCoo 04c65a85af Messages: app.toast shows a message over the window without stopping work
`app.toast {message, level?, seconds?}` queues a short message that the
desktop app shows at the window's bottom right. It closes after its time
(4 seconds by default, 0.5 to 60) or when clicked. At most 5 show at
once, the newest lowest; a message shows at most 6 lines with the whole
text on hover, and a stack taller than the window scrolls. `level`
(info, success, warning, error) sets the color of its edge.

Scripts raise one with `vc.run`, MCP clients and plug-ins through the
command, and an action records it as a step. The app's own code calls
`Session::toast`. The command edits no document and adds no undo step;
invalid values are errors. Part of #7523: the tick sound is not
included.

Docs: docs/mcp.md, the Automation evidence in docs/target-app-parity.md.
2026-11-17 08:30:51 -08:00
dotCooCoo 4911e102b1 Packaging Tools: Fold Preview folds the blank in 3D with the printed art on its panels
Fold Preview (Object › Plug-ins › Packaging Tools, and the Fold Lines panel's button) shows the
document's blank folded about its largest panel, or the panel double-clicked. Creases and
perforations fold 90° away from the printed side and partial cuts 90° toward it. Each panel
samples a raster of the print, with the fold lines and non-printing layers left out, through its
projective map, with a depth buffer; the back shows the board's inside color. The window has a
Fold slider, seven view presets, orbit, zoom, pan and perspective, and its status line reports a
joint that does not close and panels that pass through each other.

- addon.packaging.fold returns each panel's frame, the hinges with their angle and gap, and the
  collisions. A closing hinge's gap is measured with every hinge folded all the way.
- ui.foldPreview sets the window and rejects values of the wrong kind or out of range; saved
  settings out of range are brought into range.
- The print renders off the UI thread where a worker exists and once per document revision. The
  fold and the view image are worked out again only when the document, the settings or the
  window's size change.
2026-11-16 10:20:36 -08:00
dotCooCoo ce6a84bbd9 Merge main into fix/issue-7849-shape-mode 2026-11-16 09:56:10 -08:00
dotCooCoo 9b1823c54c Pathfinder: Shape Mode buttons warn when a line encloses no area
Unite, Minus Front, Intersect, Exclude and Minus Back close open paths,
so a straight line encloses no area and does not change the result.
Until now the line was dropped with no message. Reported in #7849.

- The reply of object.pathfinder.unite, minusFront, intersect, exclude
  and minusBack now carries a warning, which the status bar shows, when
  a selected object is or holds an open path that encloses no area once
  closed (a line in a group or compound path included). The message
  names Object › Path › Outline Stroke. The area is measured with the
  path's fill rule, as Make Compound Shape's check in #7894 does.
- When such a path is what leaves the result empty (Intersect, or a
  line at the back in Minus Front), the error says so. Objects that
  leave nothing without the line keep the plain error.
- Both messages have rows in each complete-message catalog. The params
  text and docs/mcp.md describe the reply field.
2026-11-16 07:37:40 -08:00
dotCooCoo 75b02ea8df Symbols: the panel reads the current symbol without running symbol.list
The Symbols panel and its panel menu asked for the current symbol on
every frame by running symbol.list, which builds a row per symbol and
walks the whole document once per symbol to count its instances. They
now read it from the active document with cmd::current_symbol, the
rule symbol.list itself uses for its `current`: the stored name while
a symbol has it, else the first symbol. symbol.sortByName,
symbol.place, symbol.options and text.insertInline use the same
function, and symbol.list's reply is unchanged.

An idle frame of the panel or its menu now runs no command, so on
macOS the native menu is not brought up to date on every frame while
the panel is open. In a document with 200 symbols and 50,000 objects
the read takes 0.035 us instead of 48.5 ms in a release build (thread
CPU time on Linux, median of 7 runs). The gain matters on large
documents; on small ones it is too small to notice.
2026-11-16 05:29:31 -08:00
BFlat 844f57a209 Merge pull request #7953 from dotCooCoo/feat/trim-hover-preview
Path Precision Tools: Trim at Crossings shows the stretch a click would remove
2026-11-16 09:32:44 +07:00
dotCooCoo 0eae49d4f8 Merge main into feat/object-mosaic-dialog 2026-11-15 13:41:18 -08:00
dotCooCoo 5bba196c4f Path Precision Tools: Trim at Crossings shows the stretch a click would remove
Hovering with the Trim at Crossings Tool draws in red the stretch a click
there would remove, on the same paths and by the same rules as the click,
and nothing over empty canvas or hidden and locked paths. A drag draws
every stretch its rectangle or freehand line would remove while it
reaches at most 32 paths. In isolation mode only paths inside the
isolated object are highlighted.

What a pick removes moves from the command into
vectorcraft_tools::addons::trim::plan, which the command and the tool
both use. A preview spends at most a twentieth of the crossing work a
click may (Work::share); past that it shows nothing, and the click or
release still removes what it reaches. The tool keeps the crossings it
found for the document as it is, so moving along one path does not
search again, and kept crossings still count against a pick's work
budget. Work::spent_since and Work::draw in vectorcraft-pathops measure
and charge that work.

Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md.
2026-11-15 11:24:17 -08:00
Dylan M. Taylor 09dda7bd9a Use shared strict XML attribute validation 2026-11-15 17:44:53 +00:00
dotCooCoo 91f3f812c9 Merge main into feat/object-mosaic-dialog 2026-11-15 09:08:24 -08:00
dotCooCoo 0f5a12b58d Pathfinder: Make Compound Shape warns when a line adds no area
A compound shape closes the open paths in it, so a straight line
encloses no area and contributes no area to the shape. Make Compound
Shape (and Alt-clicking a Shape Mode) still makes the shape as before,
and now returns a warning, shown in the status bar, when a member is or
holds an open path that encloses no area once closed, a line inside a
group or a compound path included. The warning names Object › Path ›
Outline Stroke. A self-crossing open path is measured by its fill rule,
so a bow tie whose signed area is zero gives no warning.

The warning has a row in each complete-message catalog.

Reported in #7849.
2026-11-15 08:38:52 -08:00
FredApps c9cad8d017 Merge main into fix/restore-codec-cutover-ci
Port main's new variable-library parsing (variable kinds, image, visibility
and graph values) from roxmltree to craft-xml with the branch's strict
options and attribute validation. Keep both sides' variable tests.
Drop the stale docx::nesting doc link.
2026-11-15 15:43:44 +01:00
dotCooCoo ef3a632869 Merge main into feat/dataset-import-graph-columns 2026-11-15 06:16:34 -08:00
BFlat 97c3226d72 Merge pull request #7773 from dotCooCoo/feat/variables-panel-sort-columns
Variables: Variables, Objects and type columns sort the variable list
2026-11-15 14:43:04 +07:00
BFlat 4a5f07b8c3 Merge pull request #7753 from dotCooCoo/feat/info-panel-tool-readouts
Info: the panel shows the move, transform, Zoom and Paintbrush values of the tool in use
2026-11-15 13:50:30 +07:00
dotCooCoo d5ccac5646 Variables: Variables, Objects and type columns sort the variable list
The Variables panel drew each variable as one "name · object" line in
the order the variables were defined, with no headers and no sorting.

The list now has three columns with headers: the type icon, Variables
and Objects. A click on a header sorts the list by that column, and a
second click reverses the order. The new command variable.sort {by:
name|object|type|none, descending?} sets the order, which is panel
state: not saved and not an undo step. variable.list lists the
variables in that order and reports it as sort. An unknown by, or a
descending that is not true or false, is an error.
2026-11-14 22:21:08 -08:00
dotCooCoo 8f5aed7ea4 Variables: Import Data Sets reads % columns of graph data files
dataset.import refused every header cell that starts with % unless it was
a variable's exact name, so the five-column example on the data source
set-up page did not import. A %Name header now defines the graph variable
Name, or names it when the document has it, and each cell of the column is
the path of a graph data file. The file is read as the Graph Data window's
Import Data reads one, and the data becomes the data set's graph value,
which applies as graph.setData applies it.

A relative path is taken from the new base parameter, else from the folder
of the CSV file at path. A file that is missing, can't be read or is larger
than 1 MB, a file that gives a graph value longer than 256 KB, and %
columns that hold more than 256 MB in all refuse the import with the line
and the column, and the document is left as it was. Each file is read once
per import.

Import Data's text decoding, cell splitting and sheet-to-data steps move
from the Graph Data dialog to the engine (graph/data.rs), so both imports
read a file the same way. dataset.export's warning now lists a % header
over values as refused and a %-prefixed variable of another kind as read
back with another kind.
2026-11-14 22:07:06 -08:00