Commit Graph
19417 Commits
Author SHA1 Message Date
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 91fd78e27a PSD import: looking for drawn pixels takes nothing from the import's allowance
Checking whether a layer's pixels are all fully transparent no longer counts
its transparency against the memory allowed for the whole import. The layer
is counted where it is drawn, so an import that fits no longer fails because
the check counted the same pixels first.
2026-11-21 12:33:10 -08:00
dotCooCoo 365823add6 PSD import: masks hide layers and groups by the pixels they draw
A layer mask white outside its rectangle now hides a layer when the mask is
0 over every pixel the layer draws, even where the rectangle leaves fully
transparent pixels out. A group's mask is checked the same way against the
pixels of the group's layers, unless the group holds an adjustment layer or
a fill that stores no pixels. A base merged with the layers clipped to it
counts as drawing nothing when its mask hides the base. A check that was
skipped for lack of memory is made again later instead of being kept.
2026-11-21 11:52:13 -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 540711e1a5 PSD import: masks that hide a layer's drawn pixels or a pass-through group hide all of it
A layer's mask now hides all of it when it is 0 over every pixel that isn't
fully transparent, so a shallow knockout whose mask and transparency leave
nothing drawn no longer drops the adjustment layers kept below it.

A pass-through group whose mask hides all of it no longer counts its layers
as drawing, or its adjustment layers as kept, when deciding which adjustment
layers above it change what is below the group.
2026-11-21 10:23:48 -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 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 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 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
BFlat 9fff48d88f Merge pull request #8910 from dotCooCoo/fix/similar-fonts-thai-scan
Type: the font scan tells whether a family sets Thai as loading it does
2026-11-21 11:03:21 +07:00
BFlat f593dff00c Merge pull request #8903 from dotCooCoo/fix/plugins-folder-special-files
Plug-ins: the plug-ins folder can't block startup on a special file
2026-11-21 11:02:50 +07:00
BFlat 93388d642f Merge pull request #8887 from dotCooCoo/fix/tangent-circle-close-contacts
Path Precision Tools: the Tangent Circle Tool finds both circles where two second segments touch close together
2026-11-21 11:02:18 +07:00
BFlat 4ce43b1091 Merge pull request #8532 from dotCooCoo/feat/distorted-image-commands
Links: Relink, Embed and Unembed keep a distorted image's corners
2026-11-21 11:01:53 +07:00
BFlat ddcefb86c9 Merge pull request #8918 from storytold/train/carry8875
Path Precision Tools: the Tangent Circle Tool leaves out a circle that would reach past the canvas (#8875)
2026-11-21 11:00:19 +07:00
BFlat 5b52369187 Merge pull request #8919 from storytold/train/carry8873
Dimension: pointer moves read a compound path's members once per revision (#8873)
2026-11-21 10:58:44 +07:00
BFlat 1a1a939bdf Merge pull request #8858 from dotCooCoo/fix/style-redefine-series-own-links
Graphic Styles: Redefine Graphic Style keeps the own style of a path inside a series group linked to the target
2026-11-21 10:56:45 +07:00
BFlat 9078e13d78 Merge pull request #8867 from dotCooCoo/perf/selection-widgets-kind-first
Selection: on-canvas widgets check an object's kind before its editability
2026-11-21 10:56:16 +07:00
bflatastic 3bda231dd6 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/target-app-parity.md
2026-11-21 10:46:25 +07:00
bflatastic 8daaa2995b Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/tools/src/dimension.rs
2026-11-21 10:43:59 +07:00
BFlat 96726b1f41 Merge pull request #8837 from dotCooCoo/fix/live-paint-contents-group-targets
Live Paint: graphic styles on a group's contents give fills to its faces and strokes to its edges
2026-11-21 10:39:37 +07:00
BFlat d77b6d9309 Merge pull request #8870 from dotCooCoo/fix/dimension-guide-member-holder
Dimension: a guide member of a compound path does not hold a preview-bounds corner
2026-11-21 10:39:09 +07:00
BFlat 54f256f666 Merge pull request #8634 from dotCooCoo/fix/select-widget-drags-settle
Selection: widget drags read the release point and a tool switch cancels them
2026-11-21 10:38:43 +07:00
BFlat f558297963 Merge pull request #8681 from dotCooCoo/feat/retype-near-matches
Retype: near matches within a tolerance, and words outlined as one compound path
2026-11-21 10:38:18 +07:00
BFlat 911177c775 Merge pull request #8874 from dotCooCoo/docs/3d-shadow-expands-blurred-as-image
Docs: a blurred 3D shadow expands to an image
2026-11-21 10:37:51 +07:00
BFlat 53fe391488 Merge pull request #8865 from dotCooCoo/fix/palette-typo-order-docs
Command Palette: docs order typo matches by the field the word is met in
2026-11-21 10:37:26 +07:00
BFlat 193f110ebe Merge pull request #8864 from dotCooCoo/fix/relink-edited-mask-docs
Docs: Relink and Update Links keep a clipping mask edited in the document
2026-11-21 10:37:02 +07:00
BFlat de11798f93 Merge pull request #8892 from dotCooCoo/fix/kinsoku-paste-relayout-test
Kinsoku sets: tests for pasted type and shaped lines under a custom set
2026-11-21 10:36:41 +07:00
BFlat 43e0407cd0 Merge pull request #8891 from dotCooCoo/fix/eraser-drag-midpoint-tip
Eraser: a drag's outline takes the tip halfway along each step in two more cases
2026-11-21 10:36:19 +07:00
BFlat 6aaef5ad68 Merge pull request #8886 from dotCooCoo/fix/outline-compound-strokes-not-fill
Pathfinder: Outline of a compound shape with no fill adds no stroke of its own
2026-11-21 10:35:55 +07:00
BFlat 7945ef5c86 Merge pull request #8884 from dotCooCoo/fix/safe-mode-expand-symbol-art
Expand Appearance: Safe Mode checks symbol art that a group's raster effect draws
2026-11-21 10:35:31 +07:00
BFlat f39e3e06cf Merge pull request #8871 from dotCooCoo/feat/draw-behind-place-symbol
Symbols: in Draw Behind a placed instance goes directly below the selection
2026-11-21 10:35:08 +07:00
BFlat ada693c03c Merge pull request #8868 from dotCooCoo/perf/legacy-ai-gradient-index
Legacy .ai: gradient definitions are found by a key of their gradient
2026-11-21 10:34:44 +07:00
BFlat c86bb07a44 Merge pull request #8854 from dotCooCoo/fix/confined-single-pdf-test-artboards
Tests: a confined single-file PDF of several artboards checks every artboard it carries
2026-11-21 10:34:16 +07:00
BFlat e8b23c5ba9 Merge pull request #8852 from dotCooCoo/fix/mesh-picks-survive-tool-switch
Mesh: picked points stay picked between the mesh-point tools
2026-11-21 10:33:52 +07:00
BFlat a5f9966ca5 Merge pull request #8861 from dotCooCoo/feat/freeform-lines-leave-ends-line
Gradient: moving out of a freeform object ends the Lines mode line
2026-11-21 10:33:27 +07:00
BFlat 4c0edd8844 Merge pull request #8904 from dotCooCoo/feat/script-check-host-classes
Script checker: setting a File's length, hidden or readonly counts as a file write
2026-11-21 10:32:19 +07:00
BFlat 9704f52fc8 Merge pull request #8812 from dotCooCoo/fix/shape-tools-smart-guide-labels
Shape tools: the Smart Guide label of a hover goes when the pointer leaves the canvas
2026-11-21 10:31:04 +07:00
dotCooCoo 0b5620cf78 Type: the font scan tells whether a family sets Thai as loading it does
The system font scan built each face from its name, fvar, OS/2, head and
post tables only, so a family that was found but not loaded never had
Thai in its traits. The font menus' Thai filter left such families out,
and Show Similar Fonts grouped them with the other scripts until they
were loaded.

- A face sets Thai when its OS/2 table allows it (no OS/2 table, the
  Thai Unicode range, bit 24, or the Thai code page, bit 16) and its
  character map has Thai, loaded or scanned.
- The scan reads the cmap table of such a face only, up to 16 MiB.
  The search for a document's missing fonts reads no cmap table, so
  its byte limit covers the same tables as before.
2026-11-20 19:25:52 -08:00
BFlat 83d6c2133c Merge pull request #8876 from dotCooCoo/fix/single-line-composer-geometry-tests
Type: tests check where the Single-line Composer sets lines around text wrap
2026-11-21 10:19:16 +07:00
BFlat 3f5531a7d3 Merge pull request #8881 from dotCooCoo/fix/dimension-first-pick-link
Dimension: a first Linear point keeps its link when the art moves before the second click
2026-11-21 10:18:42 +07:00
BFlat b724e022cd Merge pull request #8882 from dotCooCoo/fix/type-overlay-layout-count-tests
Tests: font changes on other threads wait while a Type layout count runs
2026-11-21 10:18:32 +07:00
BFlat c176da5d0e Merge pull request #8905 from dotCooCoo/fix/pathfinder-intersect-empty-operand
Pathfinder: an Intersect effect with a group that has no area at its precision draws nothing
2026-11-21 10:17:57 +07:00
BFlat d323cf0c19 Merge pull request #8907 from dotCooCoo/fix/tangent-circle-canceled-preview
Path Precision Tools: the Tangent Circle Tool works out its circle again after a canceled live edit
2026-11-21 10:17:35 +07:00
dotCooCoo f4b114ae78 Path Precision Tools: check each place along the first segment once
When the same segment appears more than once among the second segments,
its roots were found once per copy, and each copy's places were checked
against every second segment. The sorted places now drop exact repeats
before they are checked. Places that differ, however close, are all kept,
so the circles found do not change.
2026-11-20 19:16:06 -08:00
dotCooCoo ce2fd22267 Path Precision Tools: the Tangent Circle Tool works out its circle again after a canceled live edit
A live edit changes the document without an undo step, so the tool was
not told about it. Circles found while a preview moved the second
segment stayed cached under the same segment key, and a click after the
preview was canceled drew the cached circle instead of one touching the
segment where it is again. A first segment picked during a preview kept
its old shape the same way.

The cache key now holds the shapes of the first segment and of the
segments a circle may touch, so moving along an unchanged segment still
reuses the search. The first segment is forgotten when its shape no
longer matches the document, and a press on the second segment follows
the segments as they are at the release; a pressed segment that is gone
leaves nothing to touch.
2026-11-20 19:15:06 -08:00
dotCooCoo b2e7784160 Docs: progress line for the script checker's File setters and host test
docs/target-app-parity.md gets a line for the file.write report on a
File object's length, hidden and readonly and for the test that lists
every name the script host adds, with the tests that cover them. The
test's comment on vc no longer names another app.
2026-11-20 19:05:54 -08:00
dotCooCoo e2d62de4fe Merge main into feat/distorted-image-commands 2026-11-20 18:54:01 -08:00
dotCooCoo 417ed94431 Script checker: setting a File's length, hidden or readonly counts as a file write
Setting a File object's length truncates or pads the file, and setting
readonly or hidden changes it, but script.check reported no outside
category for those assignments. It now reports file.write and
filesWritten for them: plain and compound assignment, ++ and -- before
or after, and the property name as a string literal in brackets.

A new integration test lists every global and member the script host
adds to the JavaScript engine (the own properties of the global object,
of each object or function it holds and of each function's prototype,
compared with a plain engine) and fails when one has no row. Each name
that reaches outside the document has a probe script, and the test
checks that script.check gives it the expected outside id. vc is listed
as not checked: script.check reads scripts written for the reference
app's scripting, and what vc.run does depends on the command. The test
also checks that the checker lists every preprocessor directive the
host reads, through the new DirectiveName::ALL.

File object properties:
https://extendscript.docsforadobe.dev/file-system-access/file-object/
2026-11-20 18:36:13 -08:00
BFlat 1759064a3e Merge pull request #8895 from dotCooCoo/fix/revolve-validates-member-fill-rule 2026-11-21 09:09:10 +07:00
BFlat 80c9dadf59 Merge pull request #8893 from dotCooCoo/fix/blends-live-in-file-formats-gap 2026-11-21 09:08:15 +07:00