Commit Graph
4648 Commits
Author SHA1 Message Date
BFlat 6f37bd839c VectorCraft on the craft UI framework (#8800)
VectorCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (`next`; the framework side is storytold/craft-libs#2809), as PhotoCraft's did. The app keeps its engine, document model, file formats, commands and automation; its windows, panels, bars, dialogs and canvas are now built and driven by the framework: shell, docking and panels, hosted dialogs, keyboard, focus, IME and pointer routing, and theme tokens.

About 264,000 lines of VectorCraft's own egui UI code are removed and about 154,000 added. craft-libs is pinned at bf62d509f (in `next`), the egui fork at f5025284.

Tests that drove the old UI were rewritten against the port where only their premise changed, with their assertions kept. The UI tests still failing at merge, and their follow-ups, are listed in the pull request.
2026-11-24 08:25:24 +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
5af36bae87 Fix #4568: PDF import keeps embedded fonts for text whose family isn't installed (#4569)
* PDF import: keep embedded fonts for text whose family isn't installed

Glyphs drawn in an embedded font whose family isn't available are gathered
during import and built into one small TrueType font per family and style,
kept with the document (font/ttf blob). Text objects record the fonts and a
hash of their text: layout and rendering draw them in the kept font until the
text is edited (undo restores it) or the family is installed. Lines are
spaced against the file's own widths with per-glyph placement (#3756).

* PDF import: satisfy crate layering constraints without format dev-dep

* FileFont: negate us_win_descent in i32 to prevent overflow on extreme negative descenders

* PDF import: a kept font carries the file font's licence flags, and the docs say what that means

Review of #4569: the fsType of the file's font is copied to the font built from its glyphs (a test pins it against Embedding), so exports honour it; the docs state the limits, that the file's font program is not parsed, and that a saved file carries third-party glyphs.

* PDF import: a glyph curve far outside any glyph is left out; docs say what the limits and the font program mean

CodeRabbit on #4569: coordinates beyond 1e6 font units are refused before the curve is subdivided. The docs say the 64-font limit is what draws one type object and that the file's font program is read only for its licence flags and metrics.

* PDF import: two programs of one font keep the stricter licence flags; the docs cite their sources

CodeRabbit on #4569: embedded programs of one family and style share one built font, which kept the first program's fsType; it now takes the stricter of the two, whichever came first. The docs entry cites the Acrobat Help pages and the OpenType fsType specification.

* fmt

* PDF import: embedded fonts are on by default, with an opt-out preference

Owner decision on #4568. Preferences > File Handling > Use fonts embedded in imported PDFs (pdfImportEmbeddedFonts, on by default) and the embeddedFonts param of document.open and file.place: off, a PDF's type in a font the machine lacks is set in the fallback font with the missing-font warning, as before. One test each for on and off, one for the preference reaching the options.

* fmt after merging main

* docs: restore the status lines damaged by merges (main's line plus this PR's note)

* PDF import: set embedded_fonts through a builder method (keeps read_opened under the complexity limit)

* PDF import: move the missing-font notes out of read_opened (complexity limit after the merge)

* #4569: isolate file-font resources and reclaim live faces (UNVERIFIED)

* Preserve carried-font ownership across placement and recovery

* Fix carried-font regression test dependencies and unwind probe

* Use explicit OS2 heights in owned-font reference regression

* Keep native font regression artwork inside document layers

* fix(engine): bind file fonts when reading document profiles

* test(engine): initialize file-font leases in new image fixtures

* test: complete file-font lease initialization in image fixtures

* docs: keep the #4568 entry in the file-format parity status line

* fix(pdf): keep a line with another glyph for the same character as outlines (review)

A font kept with the document has one glyph per character. A glyph of the file's font that
differs from the one already kept for its character (a stylistic alternate that maps to the same
Unicode scalar) marks its line, which is imported as outlines so each glyph draws as the file
does.

* docs: resolve the leftover status-line conflict

* Placed document blob: give the new ImageBlob literal its file_font

* Test: a PDF's two glyphs for one character survive a native save and reopen as the file draws them

* Test: move the native save and reopen half of the two-glyphs regression to the engine (layers: no format dev-dep in pdf)

* Fix embedded-font preference help and English fallback checks

* Format embedded-font preference help with the workspace edition

---------

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: skylartaylor <hi@skylar.cc>
2026-11-22 18:18:18 -06:00
BFlat db9acab4da Merge pull request #9004 from dotCooCoo/fix/retype-even-odd-turned-counters
Retype: a glyph in an even-odd compound matches with only some of its contours reversed
2026-11-22 11:38:53 +07:00
BFlat f03d04b91b Merge pull request #8996 from dotCooCoo/fix/simplify-smooth-keep-closed-start
Paths: Object > Path > Simplify and Smooth keep a closed path's start
2026-11-22 11:38:13 +07:00
BFlat 37610608f1 Merge pull request #8976 from dotCooCoo/fix/smooth-region-rejects-bad-params
Smooth: path.smoothRegion and path.joinScrub refuse a radius, fidelity or tolerance out of range
2026-11-22 11:37:54 +07:00
BFlat 1360f9ac6f Merge pull request #8961 from dotCooCoo/fix/safe-mode-expand-hidden-symbol-art
Expand Appearance: Safe Mode skips art that a group's raster image leaves out
2026-11-22 11:37:14 +07:00
BFlat 789f5033bb Merge pull request #8954 from dotCooCoo/fix/params-textedit-rest
Type: text commands refuse a parameter of the wrong type
2026-11-22 11:36:54 +07:00
BFlat 1cf0a2806a Merge pull request #9045 from dotCooCoo/feat/quick-pen-arc-protractor-i9314
Pen: Quick Pen shows a protractor around an arc's center and snaps to its ticks
2026-11-22 10:54:06 +07:00
BFlat f658b42bc6 Merge pull request #9013 from dotCooCoo/feat/psd-invert-threshold-posterize-layers
PSD import: apply Invert, Threshold and Posterize adjustment layers
2026-11-22 10:53:23 +07:00
BFlat 980bd43e34 Merge pull request #8979 from dotCooCoo/fix/smooth-never-rougher
Smooth: a drag that reaches only a sliver of the next segment no longer splits it
2026-11-22 10:52:20 +07:00
BFlat 8f27f7c4ba Merge pull request #8978 from dotCooCoo/fix/unembed-keeps-current-mask
Links: Unembed leaves a released or edited clipping mask as it is
2026-11-22 10:51:59 +07:00
BFlat e6e376e1ca Merge pull request #8974 from dotCooCoo/fix/sample-color-stop-of-given-objects
Eyedropper: sampling into a stop of given objects reads their gradient
2026-11-22 10:51:39 +07:00
BFlat 0882bd3850 Merge pull request #8970 from dotCooCoo/fix/image-quad-malformed-corner
Native file: a distorted image with a malformed saved corner opens placed by its transform
2026-11-22 10:50:58 +07:00
BFlat 4cea62ceee Merge pull request #8969 from dotCooCoo/fix/live-paint-bucket-freeform-points
Live Paint: freeform point edits without a target leave the selection alone under the bucket
2026-11-22 10:50:38 +07:00
BFlat 6767fefb11 Merge pull request #8968 from dotCooCoo/feat/script-file-hidden-create-alias
Scripts: File.hidden can be set and File.createAlias makes a link within the grants
2026-11-22 10:50:17 +07:00
BFlat ce062ce2a5 Merge pull request #8966 from dotCooCoo/fix/pattern-commands-unknown-ids
Patterns: pattern and Repeat commands refuse an ids entry that names no object
2026-11-22 10:49:36 +07:00
BFlat c2e1e28f87 Merge pull request #8958 from dotCooCoo/fix/duplicate-item-aligned-to-identical
Appearance: aligned copies go to `to` when the stacks are the same
2026-11-22 10:49:15 +07:00
BFlat 6ba9e7ab0a Merge pull request #8956 from dotCooCoo/fix/curvature-circle-skip-on-selection
Shapes: the Curvature Circle tool reaches its circles again after Deselect
2026-11-22 10:48:35 +07:00
BFlat bbf17b4daf Merge pull request #8955 from dotCooCoo/fix/save-for-web-fixed-palette-clear-slot
Save for Web: a Custom table keeps shifted and locked colors first, and 255 opaque colors beside transparent pixels
2026-11-22 10:48:14 +07:00
BFlat a79fab35fe Merge pull request #8945 from dotCooCoo/fix/scriptcheck-folder-ambiguity
Script checker: setting length, hidden or readonly on new Folder(...) or a Folder place is not a file write
2026-11-22 10:47:33 +07:00
BFlat b288f27bd8 Merge pull request #8930 from dotCooCoo/fix/flare-lone-x2-y2-error
Flare: a lone x2 or y2 in shape.flare is an error
2026-11-22 10:46:31 +07:00
BFlat b3c83f75ba Merge pull request #8923 from dotCooCoo/fix/library-pattern-color-copies
Swatch libraries: repeated adds reuse numbered colors, and tints link to a color of their kind
2026-11-22 10:45:30 +07:00
dotCooCoo ff26d5e4a3 Swatch libraries: colors a pattern brings skip the library's other names
A global or spot color that a library pattern's art brings under a
numbered name no longer takes a name the library gives another swatch.
Before, adding a pattern whose art uses "Ink" to a document with another
"Ink" brought the color as "Ink 2" even when the library has its own
"Ink 2"; adding that library swatch next then came in as "Ink 2 2". The
brought color now takes the next free name the library does not use
("Ink 3"), and every paint linked to it follows the new name, so adding
the library's "Ink 2" next adds it under its own name and adding both
again adds nothing.

A color the pattern's art brings or takes is the color a library tint
or gradient links to only when it has the library color's paint and its
process, global or spot kind, as for the other lookups in the same add.

The test a_numbered_copy_named_like_another_library_color_is_found now
makes the blue "Ink 2" itself, as an earlier version's pattern add left
it, since a pattern add no longer gives that name.
2026-11-21 15:38:19 -08:00
dotCooCoo ac28d0b6ba Pen: Alt tapped during a Quick Pen press moves the end on or off the tick at once
A press keeps the pointer and the snapped point for the end of the piece it adds. When Alt
changes the action during the press, the end goes through the protractor's tick again for the
new action, so a continuous arc that snapped to a tick and becomes a sharp-corner arc ends at the
pointer, and a piece that becomes a continuous arc goes onto the tick, without waiting for the
next drag. This also covers a press that has not dragged.
2026-11-21 14:41:30 -08:00
dotCooCoo a99702361a Pen: Quick Pen snaps no first continuous arc to a tick and hides a stale hover
A continuous arc that starts a path has no direction to follow and
sweeps the arc size, as a sharp-corner arc does. Moving its end onto a
protractor tick put the end on a circle the drawn arc does not follow,
so `tick_end` now gives no tick for it.

The hover keeps the snap settings it was made with (`SnapSettings` in
guides/snap.rs: the window, zoom, snapping options, tolerances,
Alignment Guides and construction angles). After one of them changes
under a still pointer, the hover's rubber band, protractor, distance
label and Smart Guides are hidden until the pointer moves, also through
a press, so the preview shows no point that a click would not place.
A press also drops the hover, so after a click puts an arc's end on a
tick no preview runs from that end back to the pointer. While the
pointer hovers, the tool asks the canvas to hover it again when the
view, the document or the selection changes (`wants_rehover`).
2026-11-21 13:27:49 -08:00
dotCooCoo fa3c5af490 Docs: when a group's mask, or a clipping base's, hides all of it on PSD import 2026-11-21 12:37:12 -08:00
dotCooCoo 81c7578cf0 Pen: Quick Pen shows a protractor around an arc's center and snaps to its ticks
While an arc is drawn, by a drag or as the piece the next click adds, the
Quick Pen tool shows a protractor around the arc's center: a tick every 15°
from where the arc starts, a longer one every 90°, and one where it ends. The
piece the next click adds shows its protractor only while Enable Rubber Band
for the Pen tool shows that piece.

With Smart Guides on, the end of a continuous arc snaps onto the nearest tick
of its protractor, on the same circle, when the tick lies within the snapping
tolerance of the pointer, no other Smart Guide snaps the point, and neither
Snap to Grid nor Snap to Pixel snaps drawn points. A sharp-corner arc sweeps
its arc size, so its end does not snap. Shift does not constrain Quick Pen
points, so it does not change the snapping. The protractor, its 15° step and
the snapping are VectorCraft's own behavior.

The Smart Guides targets now also report whether a point landed on one of
them (`Targets::snap_hit`), so a target whose label or line is hidden still
takes precedence over a tick.

Adds tests for the arc's circle, the tick snapping by drag and by click and
its precedence, and the protractor during a drag and while hovering. Also adds
tests of existing Quick Pen behavior: a point snapping to a Smart Guide, and
the distance label shown while hovering.
2026-11-21 11:18:45 -08:00
dotCooCoo 3b7c10acc4 PSD import: an adjustment layer in a nested group over drawn layers merges applied
A pass-through group's adjustment layers count as kept to change what is
below the outer pass-through group only when nothing below that group in
the outer one draws, as for adjustment layers directly in the outer group.
Before, a layer merged above them for its blend mode merged them applied
but the import counted them as not applied.

docs/mcp.md now says when a layer's mask hides all of it.
2026-11-21 10:56:48 -08:00
dotCooCoo 79dd33e228 Swatch libraries: a tint whose color was deleted brings it back
A library tint or gradient counts as already in the document only when
each color it links to is there. When the document's tint of that name
links to a color the document no longer has (deleted without unlinking),
the color comes back under its own name and is listed in `added`.

A picked pattern the document already holds keeps the copy of a color
its art takes (a numbered copy the library also names), and the picked
tints and gradients of that color link to it, so adding the pattern and
the tint again adds nothing. Without such a pattern, a numbered copy the
library also names stands for that library swatch alone.

docs/mcp.md also states that a pattern pasted with Merge for some colors
and Add for others is added again as a copy.
2026-11-21 09:30:26 -08:00
dotCooCoo 9b6519382c PSD import: layers their masks hide draw nothing
A layer or group whose layer mask, switched on, hides all of it now counts
as drawing nothing when the import decides what an adjustment layer
changes. A layer with stored pixels is hidden when its mask is 0 over all
of them. A group, an adjustment layer and a layer that stores no pixels
are hidden only when the mask is 0 everywhere, the value outside it
included.

- An adjustment layer above such a layer or group in a pass-through group
  is kept to change what is below the group, instead of merging with
  pixels that never show.
- A shallow knockout hidden by its mask merges nothing, so the adjustment
  layers kept below it in a pass-through group stay in the group's kept
  set: an adjustment layer above that group in an outer pass-through group
  is kept after them, and both change what is below.
- A clipping base hidden by its mask draws nothing, its clipped layers
  included.

Each mask is read once for this, only when it can hide all of the layer,
and the read is not counted against the import's memory allowance, since
the mask is read and counted again where it is drawn.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-21 09:12:19 -08:00
dotCooCoo 7f97df87d4 Swatch libraries: library tints link only to a color of their own kind
swatch.library.add linked a library tint to the wrong color in two cases.
When the document had a process color with the same name and paint as the
tint's global color, the global color counted as already present and the
tint linked to the process color. When a tint was added without its global
color and the document had another swatch of that color's name, the tint
linked to that swatch.

- A library color counts as already in the document only when the
  document's color of that name is the same kind: process, global or spot.
  A global color whose name the document gives a process color now comes
  in under a numbered name, and its tints link to that copy.
- A global or spot color that an added tint or gradient links to, and that
  the document does not have, now comes in with the tint or gradient. It
  keeps its own name when that name is free and gets a number otherwise.
  added lists it after the picked swatches.
- A library tint is not the document's tint of the same name and paint
  when the document's swatch of the base's name is another color or kind.
- A tint that a pattern brought is used for a picked library tint only
  when the color it links to is the library color's kind.
2026-11-21 07:54:43 -08:00
dotCooCoo 0d27204944 PSD import: keep clips and merges around adjustments that aren't applied
- An adjustment layer's mask is checked against the memory allowed beside
  the canvases held while it is read (the merged canvas, the base's shape
  and the copies kept for pass-through groups).
- A clipped adjustment layer whose mask is too large to read is left out
  without unclipping the layers clipped above it to the same base.
- An adjustment layer in a pass-through group whose mask is too large to
  read is left out without stopping the merge of the layer above the
  group; its own merge with the layers below it still isn't made.
- A layer whose stored pixels are all transparent draws nothing, so an
  adjustment layer above it in a pass-through group stays kept to change
  what is below the group.
- A layer merged in a pass-through group for its blend mode or its
  knockout takes the adjustment layers kept below it with it, so an
  adjustment layer above that group in an outer pass-through group merges
  with it instead of being dropped.
2026-11-21 06:11:57 -08:00
dotCooCoo 9772495468 Swatch libraries: check the color names a pattern copy gives
When a library tint waits for a color that a pattern's art brings,
swatch.library.add learns the color's name by importing the pattern into
a copy of the document. The import into the document now confirms those
names: when it gives a color another name, or none, the tints linked
from the copy are linked again.

- library.use and Add to Swatches report an error from the import that
  merges a pattern's colors instead of falling back to adding them.
- The params text, docs/mcp.md and docs/target-app-parity.md say that a
  tint or gradient links to the numbered copy its global or spot color
  comes in under or already has, and name a gradient test.
- The new code uses the HashMap import, and one helper relinks the
  added tints and gradients at both places that did it.
2026-11-21 05:42:17 -08:00
dotCooCoo aecf4b1284 PSD import: keep adjustment layers pending over layers that draw nothing
- A hidden pass-through group, kept with the hidden layers, and an
  adjustment layer at 0 opacity or 0 fill no longer hold back the
  adjustment layers above them in a pass-through group.
- Layers that draw nothing (no pixels stored, 0 opacity, or 0 fill with
  nothing clipped to them) and groups of only such layers don't count as
  content below an adjustment layer, so in a pass-through group it still
  changes what is below the group. Layers clipped to a layer at 0 fill
  or to an adjustment layer count as content.
- An adjustment layer whose layer mask is too large for the memory
  allowed is counted as not applied, merged or clipped, instead of
  stopping the layered import.
2026-11-21 05:21:56 -08:00
dotCooCoo 35e43f9cfe Swatch libraries: library tints and gradients link to their colors in any order
A library tint or gradient whose global or spot color comes in under a
numbered name now links to that copy whichever order the swatches are
picked in, when the color was added by an earlier call, and when a
pattern's art brought the color or took the document's copy of it.
Adding the same tints again finds the ones added before.

- Each tint's or gradient's color is looked up for itself before
  anything is added, past a process swatch of the same paint and past a
  color group of that name. A numbered copy that the library's own
  swatch of that name is stays that swatch's, and a new copy skips the
  library's other names.
- A tint links to a global or spot color of the same kind only, and to
  a color this call picks rather than to a copy a pattern took.
- Links are set as soon as the color's name is known. A tint waiting
  for a color that a pattern's art brings learns its name from an
  import into a copy, so the pattern does not add a second tint.
- A swatch a pattern brought takes a picked swatch's place only when
  its colors link where the picked one's do.
- A stop linked to the Registration swatch counts as linked.
- library.use, Add to Swatches and the reuse check share one import
  probe (patternlib::probe_import), and the probed copy is kept instead
  of importing a second time.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-21 04:57:24 -08:00
dotCooCoo 64dd48d801 PSD import: apply Invert, Threshold and Posterize adjustment layers
File › Open with a PSD or PSB file's layers as objects now reads the
nvrt, thrs and post blocks of the PSD file format specification and
merges each such adjustment layer with the visible layers below it in
its group, changing their colors. Clipped to a layer, it changes only
that layer and the layers clipped to it. In a pass-through group with
nothing below it in the group, it changes what is below the group when
the group is merged.

Each channel is taken as an 8-bit sRGB value: Invert turns v into
255 - v, Threshold compares the Rec. 709 luminance with its level, and
Posterize maps each channel to the nearest of its evenly spaced levels.
The adjusted color is composited in the layer's blend mode at its
opacity and fill opacity, through its layer mask.

A hidden one is left out. One that layers are clipped to, one clipped
to another adjustment layer, one whose data can't be read and one
whose merge needs more memory than allowed are not applied and are
counted in the existing adjustment-layer warning. Other adjustment
kinds are still not applied.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-21 02:52:41 -08:00
dotCooCoo c8d02b0dbd Retype: a glyph in an even-odd compound matches with only some of its contours reversed
An even-odd compound paints the same whichever way each contour runs, so
an o's counter may run the same way as its outer contour. Such a part
matched neither as it is nor with all its contours reversed, and stayed
an outline at tolerance 0. A part of a split compound is now also read
with each contour turned the way its depth gives (outer contours one way,
their counters the other), both ways round. In a nonzero compound those
contours paint the counter, and the painted-area check still keeps the
part an outline.

The containment test that splits a compound into glyphs moves into its
own function, `containers`, which the new reading also calls.

Docs: docs/mcp.md, docs/type-parity.md.
2026-11-21 01:58:44 -08:00
dotCooCoo 263718ffd2 Paths: a run across a closed path's start keeps the new start on that run
When a direct-selected run holds a closed path's first anchor, Simplify
and Smooth now look for the new start on that run alone, so an
unselected segment that passes through the old start is not split.
When the first anchor stays, the path already starts there and is left
as it is.
2026-11-21 01:58:10 -08:00
dotCooCoo 956a76baa6 Paths: tied start candidates at one point search the old path once
When several refit points tie for nearest to a closed path's old start,
the earliest-along-the-path tie rule now places each distinct point on
the old path once, so many segments meeting at one point no longer
search every old segment once each. The tie rule is unchanged. Also
"the same way around" in the docs.
2026-11-21 01:36:06 -08:00
dotCooCoo 38e36aeb81 Paths: Object > Path > Simplify and Smooth keep a closed path's start
Simplify and Smooth refit a closed path from its first corner and kept
that order, so the path's first anchor moved and its dashes started
somewhere else. A refit now starts at the old first anchor when it keeps
one there, otherwise at a new anchor where the refit passes nearest that
point while the result still has fewer anchors than the path had, and
otherwise at the refit's nearest anchor. Its direction stays the same.
A direct-selected run across the start follows the same rule; before,
the path started at the run's end anchor.

The Smooth tool's start_nearest moves into vectorcraft-pathops, and both
commands call it with the limit on anchor count above.
2026-11-21 01:00:16 -08:00
dotCooCoo 6458bdd9c5 Smooth: a drag that reaches only a sliver of the next segment no longer splits it
A Smooth drag that ends partway along a path splits each segment it
leaves at the edge of its reach, so the anchor it adds there lies on
that edge. The next drag over the same place reaches that anchor and
only a sliver of the segment beyond it. Splitting that sliver gave the
refit a segment of almost no length to end on, so the refit lost the
path's direction there: on an ellipse dragged along its lower half, the
second drag added two more anchors and left two 71.6° corners, and
later drags turned the ellipse more each time.

A segment leading out of the smoothed stretch that is in reach for no
more than 1/64 of the reach from the stretch's anchor is now left as it
is, and the stretch ends at that anchor. The same drags on the
ellipse now keep the anchors of the first drag and leave no corner.
2026-11-20 23:52:25 -08:00
dotCooCoo 342341a55f Smooth: path.smoothRegion and path.joinScrub refuse a radius, fidelity or tolerance outside its range
path.smoothRegion read a radius below 0 as 0 and moved a fidelity into its
range, and path.joinScrub read a tolerance below 0 as 0. Each now refuses
a value outside its range with an error naming the key, and the document,
the selection and the undo history do not change: radius and tolerance
0.001 to 1000 pt (the Path Eraser's width range), fidelity 0.000078125 to
about 3195 pt (the Smooth tool's 0.05 to 100 px at the highest and the
lowest zoom). A key left out or null keeps its default.

The Smooth, Join and Path Eraser tools, and an Alt smoothing drag with the
Pencil, Paintbrush or Blob Brush, keep what they send within these ranges
at any zoom, also when the interface zoom puts the tool's zoom past the
view's range.

Docs: params text, docs/mcp.md, docs/target-app-parity.md.
2026-11-20 23:42:48 -08:00
dotCooCoo 525dea58f0 Native file: a distorted image with a malformed saved corner opens placed by its transform
A native file whose `image_quad` held an entry that was not a point among
its first four failed to open: `image_corners` read each entry as a
`Point` and returned the error. Such corners, and an `image_quad` that is
not a list, are now dropped as the file is read, and the image opens
placed by its transform, as a list of other than four points already did.
A point is `[x, y]` or `{"x": x, "y": y}`; values that are not taken are
skipped without being kept in memory.

Follows #8392.
2026-11-20 22:40:02 -08:00
dotCooCoo ae9a11f661 Patterns: pattern and Repeat commands refuse an unknown object id
object.pattern.make, object.pattern.replaceArt and the object.repeat
commands dropped an `ids` entry that names no object and acted on the
other entries alone. They now return "no such object id N" and change
nothing.
2026-11-20 22:16:52 -08:00
dotCooCoo 133a5a4759 Shapes: the Curvature Circle tool reaches its circles again after Deselect
The tool passed over the circles it drew until the undo history moved, the
tool changed or another document became active. Deselect and a pick in the
Layers panel change only the selection, so the drawn circles stayed out of
reach. The tool now forgets them once the selection holds none of them,
after a command run from outside the tool and at the next pointer event.

docs/mcp.md and the tool's module comment name every case that makes the
circles reachable again. The engine's Undo test checks which path the click
hit, and a comment on the set in candidate_paths says the loop skips ids
that are already listed.
2026-11-20 21:54:15 -08:00
dotCooCoo 5adeec1151 Save for Web: a Custom table keeps shifted and locked colors first, and 255 opaque colors beside transparent pixels
- With transparent pixels, a fixed palette's colors mapped to
  transparent share the transparent pixels' slot, so at Colors 256 all
  255 opaque colors keep their entries.
- The preview's mappedToTransparent lists a color mapped to transparent
  that did not fit in the fixed palette when its pixels became
  transparent.
- When Colors leaves a fixed palette fewer slots than it has opaque
  colors, shifted colors keep their slots first, then locked ones, then
  the others in palette order. The file keeps the palette's order.
- quantize::nearest_entries hands each pixel's entry to a callback
  instead of collecting one per pixel.
- A GIF lossy test with one fixed entry of three.

Docs: params text, docs/mcp.md.
2026-11-20 21:51:57 -08:00
dotCooCoo a93cd03c35 Type: text commands refuse a parameter of the wrong type
text.editRange's insert, text.setText's text and text.createInPath's
mode and text must be strings, text.createInPath's at must be two
numbers, and start in text.touchType, text.glyphAlternates and
text.setGlyphAlternate must be a whole number of at least 0. A wrong
value was read as left out (an edit inserting nothing, area type, no
start point) or reported as a missing start; it is now an error naming
the parameter, and the document and undo history do not change. Null
still reads as the parameter left out.

Pathfinder precision no longer reads the leading number of a string
such as "1abc"; a number, a string that is all one number and a length
with a unit ("10 pt") still read.
2026-11-20 21:44:34 -08:00
dotCooCoo 36005d9a02 Appearance: aligned copies go to to when the stacks are the same
`appearance.duplicateItem` with `aligned: true` and `to` was refused for
every selection of two or more objects, so copying a row of a graph's
Legend group to `to` failed even when every label had the same rows. It
now refuses `to` with aligned rows only when the stacks differ, as the
params text says, and the copies land at `to` in each object as one
undo step.
2026-11-20 21:41:47 -08:00
dotCooCoo 999521e391 Scripts: File.hidden can be set and File.createAlias makes a link within the grants
On macOS and Linux, setting `hidden` renames the file or link in its folder with
one leading dot added, or its leading dots taken off. Both the old and the new
name must be places the script may write, and a name of dots alone, a name in
use and a folder are refused. A file the object has open stays open at the new
path.

`createAlias(target)` makes a symbolic link at the object's path to the real
path of a file the script may read. The link's place must be one the script may
write where nothing is, a link that leads nowhere included; the settings folder
is refused for both. When a folder above the link's place is replaced by a link
while the alias is made, the new link is removed and the call fails. `hidden`
reads a link's own name, and setting `hidden`, `rename` and `remove` act on the
link itself.

On Windows both still set `error` and change nothing. `execute` stays
unavailable.

Behavior: https://extendscript.docsforadobe.dev/file-system-access/file-object/
and https://extendscript.docsforadobe.dev/file-system-access/using-file-and-folder-objects/
2026-11-20 21:38:37 -08:00