Commit Graph
9192 Commits
Author SHA1 Message Date
BFlat 0cdec14ccc Merge pull request #5034 from dotCooCoo/fix/image-cache-follows-memory-r
Render: the decoded-image cache can grow to a quarter of installed memory on every desktop OS
2026-11-09 01:15:58 +08:00
BFlat 7feb683ca6 Merge pull request #5027 from dotCooCoo/feat/type-orientation-follows-thread-r
Type: Type Orientation is a setting of the whole thread
2026-11-09 01:15:39 +08:00
BFlat 7d7d6f8d21 Merge pull request #5025 from dotCooCoo/fix/paragraph-reset-panel-mojikumi-tabs-r
Paragraph: Reset Panel also resets the Mojikumi Set and tab stops
2026-11-09 01:15:22 +08:00
BFlat 0121890cba Merge pull request #5023 from dotCooCoo/feat/wheel-ctrl-scrolls-sideways-r
Canvas: a General option makes Cmd/Ctrl-wheel scroll the canvas sideways
2026-11-09 01:15:04 +08:00
BFlat 970150b01a Merge pull request #5015 from dotCooCoo/fix/batch-save-close-data-sets
Actions: Batch over data sets keeps Save and Close and warns when each data set saves over one file
2026-11-09 01:14:45 +08:00
BFlat 8e1a35daa2 Merge pull request #4058 from dotCooCoo/feat/trace-expand-by-color
Image Trace: Expand can group the traced paths by color
2026-11-09 01:14:26 +08:00
BFlat 8cd371e1fc Merge pull request #3995 from dotCooCoo/feat/document-compare-image
Document: document.compare measures how far an artboard's render is from an image
2026-11-09 01:14:08 +08:00
BFlat 90506ff84e Merge pull request #3946 from dotCooCoo/feat/flat-logo-named-colors-only
Image Trace: Flat Logo can trace only the named colors, without a white of its own
2026-11-09 01:13:52 +08:00
BFlat 38a019a47e Merge pull request #2642 from dotCooCoo/fix/one-text-variable-per-object
Variables: a second text variable on one type object is refused
2026-11-09 01:13:32 +08:00
dotCooCoo 3f4d1a2512 Render: the decoded-image cache can grow to a quarter of installed memory on every desktop OS
Squashed from #5034 onto main.
2026-11-08 23:50:32 +07:00
dotCooCoo be391e541a Type: Type Orientation is a setting of the whole thread
Squashed from #5027 onto main.
2026-11-08 23:50:32 +07:00
dotCooCoo 6cd4171fbd Paragraph: Reset Panel also resets the Mojikumi Set and tab stops
Squashed from #5025 onto main.
2026-11-08 23:50:31 +07:00
dotCooCoo a33d6a6ec8 Canvas: a General option makes Cmd/Ctrl-wheel scroll the canvas sideways
Squashed from #5023 onto main.
2026-11-08 23:50:31 +07:00
dotCooCoo 0d1a8b6ffa Actions: Batch Save and Close over data sets counts only saves that make the file the document's own
A recorded save in the template format writes a copy and leaves the
document's file as it was, so it no longer clears the warning or the
refusals. A recorded Save or Save As with its own path gives a never-saved,
converted or restored document its file before Save and Close, so the
batch runs and warns that every data set saves over that one file.
2026-11-08 23:50:30 +07:00
dotCooCoo 427029def6 Actions: Batch Save and Close over data sets follows a redirected Save step
With a destination folder and Override Save on, a recorded Save or Save As
step writes each data set to its own file in that folder and makes that
file the document's own, so Save and Close then saves each data set to its
own file. The batch no longer warns that every data set saves over one
file in that case, and no longer refuses a document that was never saved,
converted or restored, since the recorded step gives it a file first.
2026-11-08 23:50:30 +07:00
dotCooCoo 64cfa8b553 Actions: Batch over data sets warns about PDF, EPS, DXF and web exports and refuses Save and Close on converted documents
A recorded PDF, EPS, DXF, Save for Web or Save for Office Documents step
that gives a `path` writes the same file for every data set, because the
batch does not point these steps into the destination folder. The one-file
rule now counts them, so the dialog and `action.batch` warn.

Save and Close over the data sets of a document converted from an older
version or restored by Data Recovery is refused with "save the document
with Save As before Save and Close" before a data set is selected. Saving
such a document does not write its file, so the batch reported success
without saving anything. The message has a row in each of the 26 catalogs.
2026-11-08 23:50:29 +07:00
dotCooCoo 2ad0268388 Actions: Batch over data sets keeps Save and Close and warns when each data set saves over one file
Batch… with a Data Sets source offers None, Save and Close and Folder again.
Save and Close saves the open document over its own file after each data
set. When every data set saves over the same file, the dialog shows a
warning and `action.batch` returns `warning`: with Save and Close, or with
a recorded step that writes a file and that the batch does not point into
the destination folder. A Save step without a path counts when it writes
the document's own file; Save As, Save a Copy, Save as Template and Export
steps count when they give a path; Export for Screens counts when its
folder, given or from its preset, names a folder. Save and Close over the
data sets of a document that was never saved is refused with "the
document has never been saved" before a data set is selected.
2026-11-08 23:50:28 +07:00
dotCooCoo 8a52d50154 i18n: French rows keep the no-break space before punctuation 2026-11-08 23:50:27 +07:00
dotCooCoo 7fd287238f Actions: Batch refuses Save and Close over data sets instead of saving each one over the open document
Data sets share one open document, so Save and Close saved every data set
over the same file and only the last one survived. action.batch now
returns an error for source datasets with destination saveAndClose before
it selects a data set or runs a step, and the Batch dialog offers None and
Folder for a Data Sets source, moving a Save and Close choice to Folder.
2026-11-08 23:50:27 +07:00
dotCooCoo f118cf6aa6 Image Trace: Expand can group the traced paths by color
Squashed from #4058 onto main.
2026-11-08 23:50:26 +07:00
bflatastic 743b8031d3 Document: the compare test expects main's wording for one missing linked image 2026-11-08 23:50:26 +07:00
dotCooCoo 8888128822 Image Trace: Flat Logo can trace only the named colors, without a white of its own
Squashed from #3946 onto main.
2026-11-08 23:50:25 +07:00
dotCooCoo 7c813e7171 Document: document.compare measures how far an artboard's render is from an image
Squashed from #3995 onto main.
2026-11-08 23:50:25 +07:00
dotCooCoo 4b4a97ce1e Variables: a second text variable on one type object is refused
Squashed from #2642 onto main.
2026-11-08 23:50:24 +07:00
FredApps 65adb7b211 Merge pull request #2480 from vangel76/fix/2414-svg-classes
SVG: keep CSS classes of imported elements on export (#2414)
2026-11-08 17:01:22 +01:00
FredApps ef4740f6f0 Merge pull request #5284 from vangel76/perf/web-wasm-simd128-2786
Fix #2786: the web build uses WebAssembly SIMD, so the canvas renders about 2.5x faster
2026-11-08 16:54:58 +01:00
BFlat 0a702cc0a5 Merge pull request #6190 from dotCooCoo/fix/plugin-bulk-memory-fuel
Plug-ins: a run keeps the fuel left in a slice at a bulk memory instruction
2026-11-08 14:42:28 +08:00
BFlat cc8770a57d Merge pull request #6188 from dotCooCoo/fix/ai-scatter-tints-brush-frame
.ai import: Scatter brushes in Tints open in Tints, and brush art drops its frame
2026-11-08 14:42:14 +08:00
BFlat 0a0ff46e9c Merge pull request #6187 from dotCooCoo/fix/generic-cmyk-solver-converges
Color: Generic CMYK separates nearby colors alike when an ink sits at 0 or 100%
2026-11-08 14:41:59 +08:00
BFlat 3fe5314fcc Merge pull request #6186 from dotCooCoo/fix/modal-dialogs-fit-content
Dialogs: New Workspace and New Toolbar fit their contents instead of opening 420 pt tall
2026-11-08 14:41:45 +08:00
BFlat 8c772c8a62 Merge pull request #6184 from dotCooCoo/feat/plugin-progress-cancel-log
Plug-ins: API level 2 lets a plug-in report progress, see Cancel and write log lines
2026-11-08 14:41:30 +08:00
BFlat cd4a23246d Merge pull request #6183 from dotCooCoo/feat/ai-legacy-binding-punctuation
.ai import: legacy binding punctuation opens as Burasagari's Force setting
2026-11-08 14:41:15 +08:00
BFlat 0633fe29de Merge pull request #6182 from dotCooCoo/feat/relink-replace-scopes
Links: Relink can replace all instances, the folder's missing links or each link separately
2026-11-08 14:41:00 +08:00
BFlat 158a1de4f7 Merge pull request #6177 from dotCooCoo/perf/swatch-used-colors
Swatches: Add Used Colors, Select All Unused and new swatch naming use hash lookups for colors and names
2026-11-08 14:40:44 +08:00
BFlat 0dbbfaa743 Merge pull request #6176 from dotCooCoo/feat/plugin-permissions
Plug-ins: manifests list permissions, the user grants them at install, and the host enforces the grant
2026-11-08 14:40:29 +08:00
BFlat 30d0ce15f2 Merge pull request #6173 from dotCooCoo/fix/envelope-type-glyph-bounds
Envelopes: type maps from its glyph outline bounds
2026-11-08 14:40:17 +08:00
BFlat 7acea20e3d Merge pull request #6172 from dotCooCoo/feat/hold-to-use-tool-keys
Shortcuts: holding a tool's single-key shortcut uses the tool until the key is let go
2026-11-08 14:40:01 +08:00
BFlat 21d3253a9c Merge pull request #6163 from dotCooCoo/fix/targets-id-param
Commands: an id that is not an object id is refused by commands that otherwise use the selection
2026-11-08 14:39:51 +08:00
BFlat d70db21882 Merge pull request #6159 from dotCooCoo/fix/refpoint-one-tab-stop
Reference point: the locator is one Tab stop, and the arrow keys move the point
2026-11-08 14:39:36 +08:00
BFlat 735fad865e Merge pull request #6155 from dotCooCoo/feat/js-parser
JavaScript: vectorcraft-js parses ES5 scripts into a syntax tree, checked with cargo xtask test262
2026-11-08 14:39:22 +08:00
dotCooCoo 9ebf258b7c Docs: list the bulk memory fuel line beside the exporter plug-ins entry 2026-11-08 13:23:35 +07:00
dotCooCoo 1bcd19e6b6 Plug-ins: a run keeps the fuel left in a slice at a bulk memory instruction
wasmi pauses a run before an instruction the store's fuel can't pay for
and charges nothing for it. A memory.fill or memory.copy is charged for
its whole length, so a pause can leave up to that cost in the store.
Plugin::call replaced the store's fuel with the next slice and compared
the instruction's cost with the rest of the budget alone, so a run whose
budget covered its work could end with Limit("instruction budget").

Each pause now tops the store up to the slice size, keeping what it
held, and ends the run only when the store's fuel and the rest of the
budget together can't pay for the next instruction.
2026-11-08 13:23:34 +07:00
dotCooCoo c85b286994 .ai import: Scatter brushes in Tints open in Tints, and brush art drops its frame
A Scatter brush in a .ai or EPS file's editing data always came into
the Brushes panel keeping its art's colors. A Scatter brush whose last
15 numbers start with 1 now opens in Tints, and one whose numbers start
with 0 keeps its art's colors. Other values are not read and keep the
art's colors. The field before the art's name does not decide it: an
object whose first field is 1 is read by its 15 numbers, and a Scatter
object with 8 numbers is still left out.

A brush's art usually comes in a group after its frame, an unpainted
rectangle around the art. The reader kept that rectangle as part of
the brush's art. It now leaves out a frame at the art's bounds (within
1/1000 pt): an unnamed, unpainted rectangle with its four corners in
order, closed, or open with its first corner again at the end, and no
settings of its own (shown, unlocked, at full opacity in Normal, with
no effects, note or other attributes). A wider frame stays in the art,
and so do a path that crosses the corners, an open path along three
sides and a rectangle with settings of its own. A group left with one
object becomes that object, unless it has a state or look of its own
(hidden, locked, isolated, knockout, an opacity, a blend mode, a name,
a mask, a note or another setting, or an appearance); then it stays a
group without the frame. The rule applies to every brush art section.

Existing files with such brushes now open with Tints and without the
extra frame path in the brush's art. With an exact frame, the pieces
that a Scatter or Art brush draws along a path stay where they were.

The Scatter, Art and Pattern brush colorization options, Tints among
them, are described on pages 281-282 of
https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=281

Tests cover Scatter brushes whose numbers start with 1 and 0, with a
first field of 1 and 2, and an 8-number object. They cover frames kept
or left out (exact, wider, open, filled, named, crossing the corners,
along three sides, with a note, Show Center or hidden), a group's own
state and note kept, and the pieces a Scatter and an Art brush draw
along a path with and without the frame. The import fuzz test reads
brush art after frames of any corners and paint.
2026-11-08 13:23:23 +07:00
dotCooCoo 1ea4eefa80 Color: Generic CMYK separates nearby colors alike when an ink sits at 0 or 100%
The Generic CMYK solver clamps each ink to 0..1 after a step. When an
ink sits at 0 or 1 and the step pushes it further out, the clamp
removes most of the step, and the solve can stop after a step under
1e-6. Where it stopped depended on the input's last float bits. For hex
ed1e79, magenta ranged from 93.2% to 93.9% and yellow from 15.3% to
16.3% over 4,001 f32 values of its red, with 230 jumps over 0.001
between neighboring values.

An ink at 0 or 1 whose descent direction points out of the range now
stays where it is, and the step moves the other inks. The solve stops
when every ink is held. Two new tests step a channel one f32 at a time
and check that every ink stays within 0.001: the red of ed1e79 (cyan
held at 0) and the blue of sRGB (0, 0, 0.25) (cyan and magenta held at
1).

The solver still minimizes plain Lab distance to the gamut-mapped
target. The CMYK values of many RGB colors change; hex 00ff00 now
separates to C=61 M=0 Y=100 K=0 (cyan 0.6235 before, 0.6064 now), and
the swatch test that pins its name is updated.
2026-11-08 13:23:18 +07:00
dotCooCoo b0ef9d610d Dialogs: New Workspace and New Toolbar fit their contents instead of opening 420 pt tall
New Workspace, Manage Workspaces, New Toolbar and Manage Toolbars put
their OK and Cancel row in a right-to-left layout directly in the modal
window. That layout took all the height left in the window's default
420 pt content area and centered the buttons in it, so each dialog
opened 420 pt tall with the buttons floating in an empty band.

The button row is now as wide as the fields above it and as tall as the
buttons, as the shared dialog shell already does (dialogs.rs), so each
window ends just below its buttons.
2026-11-08 13:23:14 +07:00
dotCooCoo 960bc64197 Plug-ins: recording a grant keeps the grants file entries it can't read
A grants.json entry this version can't use (a permission it doesn't know,
an invalid id) is now skipped on its own instead of dropping every grant in
the file, and recording or removing a grant writes it back unchanged,
except an entry for that plug-in. A grants.json that is too large, can't be
read or is not a JSON list is left as it is, and a rewrite that would pass
the 1 MiB read limit is written compactly, or not at all.
2026-11-08 13:21:16 +07:00
dotCooCoo f2cd22e0c3 i18n: French rows keep the no-break space before punctuation 2026-11-08 13:21:16 +07:00
dotCooCoo 0383c9f408 Plug-ins: a run keeps what a failing start function reported
A module's start function runs before vc_run. When it logged or reported progress and then failed, the run's report came back empty. The report now holds what the start function reported.
2026-11-08 13:21:16 +07:00
dotCooCoo b071fb109c Plug-ins: the host import fuzz test reaches vc_log's text checks
The fuzz test for hostile host import arguments drew vc_log's level from every i32, so almost
every call stopped at the level check and never read memory. Levels are now also drawn from -1
to 4. The module docs, a test doc comment and docs/plugins.md now say that with an unknown total
each change of done is passed on.
2026-11-08 13:21:16 +07:00
dotCooCoo a5867c8077 Plug-ins: a new progress total at the same tenth of a percent is not passed on
A plug-in that changed its total while its share stayed the same had
every report passed on, up to the 2,000-report limit. Reports with a
known total are now compared by their tenth of a percent alone.
2026-11-08 13:21:16 +07:00