Commit Graph
7507 Commits
Author SHA1 Message Date
dotCooCoo e990b43681 Merge main into feat/scripts-api-d7b-tags-notes-uuid
New Document's More Settings now shows the columns a preset's rows give
the current artboards, and a new layout or column count replaces those
rows, in the dialog main rewrote.
2026-11-24 10:50:38 -08:00
dotCooCoo a58150198f Pathfinder: Outline's junction distance scales with the art and the precision together
Outline joined crossings closer together than the art-size tolerance
multiplied by precision / 0.01. Scale Strokes & Effects scales the art and
the precision together, so scaling both by 10 made that distance 100 times
larger, and crossings that were apart could become one junction.

The distance is now precision / 10000, or the tolerance for the art's
size when that is larger. At the 0.01 pt default it is 0.000001 pt as
before, and scaling the art and the precision together gives the same
pieces at the new size. The params text of object.pathfinder.options and
of the Pathfinder effects, docs/mcp.md and the Pathfinder Options line in
docs/target-app-parity.md describe the new rule.
2026-11-24 10:47:51 -08:00
dotCooCoo 06b483320e Merge main into fix/command-during-interaction 2026-11-24 10:12:16 -08:00
.CooCoo 4c60269d1a Select: adding objects one at a time checks and reads only the added ones (#9145) 2026-11-25 00:55:44 +07:00
.CooCoo 5f35daad7b Scripts: File and Folder give their localizedName (#9185) 2026-11-25 00:54:37 +07:00
dotCooCoo 782715d467 Undo: a drag after a command replays on its own objects
When a command run during a tool drag deletes, hides or locks an object
that the drag's preview names in its ids, the preview applied again
leaves that object out, so the drag still edits the others. A preview
left naming no object records no step.

When the command changes the selection, the journal also records the
drag's own selection after the command (select.set, with its anchors,
segments, guides and key, or its slices, target, symbol part or Objects
on Path member), so replaying the journal moves the objects the drag
moved. A targeted object keeps its guides and key, and a path with
every anchor selected keeps them selected as anchors. The current layer
and the highlighted Layers panel rows are left as the drag left them.
2026-11-24 09:52:58 -08:00
dotCooCoo 798b829c28 Merge main into feat/plugin-api-javascript-runtime 2026-11-24 09:30:33 -08:00
dotCooCoo cef8a6d897 Plug-ins: background loads check stored files and ids again before they install
- A stored module's file is read again on its worker thread once the module
  has loaded, whatever the file's modified time, and the install still skips
  a file whose stamp changed since. The UI thread no longer reads the file.
- Stored and folder modules install through registry::install_for_load,
  which checks for an install or removal of the id elsewhere while the
  plug-ins' write lock is held, and records the module's grant in the same
  step. A grant is forgotten only while the plug-in that took that revision
  is still installed (registry::revoke_if_installed).
- A grant that a stored load removed and must put back for a later file is
  written to grants.json first; when that write fails, the module is not
  installed, and a grant put back for a module that then did not install is
  removed again.
- A folder load in which a file found no loader thread is loaded again the
  next time the preferences are applied. A plugin.reload keeps its report as
  the folder last loaded only when no load started after it.
- Loads: a job's time is read while it is marked finished, the deadline check
  reads the clock under the same lock, and only the jobs taken from the queue
  fail when no worker is left. wait() counts outcomes taken with ready() as
  released, so the jobs after them start.
- File › Open checks the path again after waiting for the plug-in loads.
- Tests wait for workers with bounded receives.
2026-11-24 09:27:50 -08:00
dotCooCoo 287a05c857 EPS: spot white keeps overprinting with Discard White Overprint
Discard White Overprint covers process white only. A white fill or
stroke linked to a spot swatch at a tint above 0% is written as its own
Separation ink and now keeps overprinting. Global process swatches, a
0% tint and a spot swatch without a color still knock out.
2026-11-24 09:23:14 -08:00
dotCooCoo b4c214169b Merge main into feat/quick-pen-length-handles 2026-11-24 09:16:09 -08:00
dotCooCoo c318de5b01 Merge main into fix/dynamic-text-leading-line-gap 2026-11-24 05:04:32 -08:00
BFlat d48c4207f7 Merge pull request #9102 from dotCooCoo/feat/colorized-image-overprint
Images: Overprint Fill makes a colorized image's color overprint
2026-11-24 16:39:55 +07:00
BFlat 11a26acb0b Merge pull request #9109 from dotCooCoo/feat/js-es2020-optional-chaining-nullish
Scripts: .js scripts read optional chains and the ?? operator
2026-11-24 16:09:45 +07:00
BFlat cf2c4ae3f7 Merge pull request #9187 from dotCooCoo/fix/js-dollar-stack-script-frame
Scripts: $.stack starts with a line that names the running script
2026-11-24 16:08:08 +07:00
BFlat 0773e17df5 Merge pull request #9161 from dotCooCoo/feat/outline-linked-image-x
Outline view: linked images and placed documents show their box with an X
2026-11-24 16:07:52 +07:00
BFlat 3049775dee Merge pull request #9156 from dotCooCoo/fix/plugin-compound-member-state
Plug-ins: a filter keeps a compound path's hidden and locked members
2026-11-24 16:07:35 +07:00
BFlat 74870a8fb8 Merge pull request #9150 from dotCooCoo/fix/delete-keeps-id-cache
Delete: removing objects one at a time keeps the id lookup cache
2026-11-24 16:07:15 +07:00
BFlat c3c02f81e0 Merge pull request #9128 from dotCooCoo/fix/print-fonts-setting
Print: the Fonts setting chooses how PostScript output sends type
2026-11-24 16:06:58 +07:00
BFlat 87de595305 Merge pull request #9096 from dotCooCoo/fix/plugin-run-no-op-undo
Plug-ins: a run that changes nothing records no undo step
2026-11-24 16:06:33 +07:00
BFlat 7696b503e6 Merge pull request #9079 from dotCooCoo/feat/js-es2015-block-arrow-template
Scripts: .js scripts run let, const, arrows, templates, default and rest parameters and spread
2026-11-24 16:06:07 +07:00
BFlat c79555c25c Merge pull request #9070 from dotCooCoo/feat/scripts-unitvalue
Scripts: UnitValue measurements convert and calculate with their units
2026-11-24 16:05:51 +07:00
BFlat 50a4d049fb Merge pull request #9063 from dotCooCoo/feat/three-d-mesh-attributes
3D: meshes carry UVs, smooth bevel normals and a part index
2026-11-24 16:05:34 +07:00
BFlat 2e09e5135f Merge pull request #9046 from dotCooCoo/feat/quick-pen-arc-center-i9314
Pen: Quick Pen marks an arc's center with a cross while the arc is drawn
2026-11-24 16:05:16 +07:00
BFlat fd349e4d11 Merge pull request #9015 from dotCooCoo/fix/smooth-no-worse-pass
Smooth: a drag that would not make a path smoother leaves it as it was
2026-11-24 16:05:00 +07:00
BFlat 1bd8c8cb6e Merge pull request #8987 from dotCooCoo/fix/script-export-linked-files
Scripts: vc.run export of an open document reads its own linked files
2026-11-24 16:04:43 +07:00
BFlat 86a03fcdff Merge pull request #8986 from dotCooCoo/feat/dimension-alt-object-size
Dimension tool: Alt over a path places its overall width or height
2026-11-24 16:04:27 +07:00
BFlat 293dde3d19 Merge pull request #8981 from dotCooCoo/fix/smooth-region-bounds-prefilter
Smooth: a drag over a long path measures only the anchors and segments near it
2026-11-24 16:04:10 +07:00
BFlat 7d984fc7f3 Merge pull request #8964 from dotCooCoo/feat/plugin-manifest-section
Plug-ins: read the manifest from a custom section before running any code
2026-11-24 16:03:53 +07:00
BFlat 8b4a57f4e3 Merge pull request #8818 from dotCooCoo/fix/selection-widget-double-click-transform
Live Corners: a Selection tool double-click on a corner widget shows the Transform panel
2026-11-24 16:01:41 +07:00
BFlat 066aaed62f Merge pull request #8814 from dotCooCoo/fix/retype-drawn-shape-font-state
Retype: no retyped line starts with a combining mark
2026-11-24 16:01:24 +07:00
BFlat 2ef89d479e Merge pull request #8798 from dotCooCoo/fix/live-paint-bucket-journal-replay
Live Paint: bucket paint commands replay from the journal with any tool
2026-11-24 16:01:02 +07:00
dotCooCoo 9a282ee84a Merge main into feat/plugin-api-document-info 2026-11-24 00:46:36 -08:00
dotCooCoo 50cf5ef9c7 Merge main into feat/quick-pen-length-handles 2026-11-24 00:31:54 -08:00
dotCooCoo 2130eab3a5 Merge main into fix/plugin-grants-integrity 2026-11-23 23:57:23 -08:00
dotCooCoo 696bff8a42 Merge main into feat/plugin-api-javascript-runtime 2026-11-23 23:44:07 -08:00
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
Jürg Lehni 53f5cf4228 Direct Selection: the arrow keys bend a selected curved segment
- Its anchors stay, and each handle keeps its direction and changes length by the step projected onto it
- The curve's middle moves one keyboard increment toward the arrow, less when the handles lie across it
- A retracted handle grows toward the other handle's end; a straight segment still moves whole
- A handle that flips through a smooth anchor leaves the next segment as it is
2026-11-23 23:41:33 +01:00
dotCooCoo 6b778a4c70 Scripts: setters refuse art in a hidden or locked layer, and empty objects read zero bounds
- Assigning hidden, locked, position, left, top, width or height to an
  object in a hidden or locked layer throws Cannot edit, as opacity
  does, and changes nothing. Its name and note still change.
- An object with nothing in it, such as an empty group or a compound
  path whose paths moved out, reads its bounds, position, width and
  height as zeros, and assigning them does nothing, so reading every
  property for-in lists does not throw on it.
- Assigning selection without app. sets the active document's
  selection, and app.selection can be assigned the same way. Assigning
  activeDocument without app. activates a document, and assigning
  documents keeps its value.
- JSON.stringify writes a collection, or data that holds one, without
  reading toJSON through the collection's name lookup, which threw
  Not found.
- The docs state that Object.keys, Object.getOwnPropertyNames and
  Object.getOwnPropertyDescriptor do not report the members, that a
  value assigned to a member the class lacks is not kept, and that the
  selection order is VectorCraft's own rule.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-23 13:24:33 -08:00
dotCooCoo 9872e6b679 Scripts: page items report their own members, and lists start with the topmost object
Scripts that check a member with hasOwnProperty before using it skipped
every page item, because the members live on the class prototype. Now
hasOwnProperty and propertyIsEnumerable are true for each member of an
object's class that is available, and for-in lists its properties but
not its methods. Members that only throw "not available yet" stay false.

- An empty selection is an empty list instead of null.
- pageItems lists art topmost first, as the CMYKColor example reads the
  frontmost path as pathItems[0]
  (https://ai-scripting.docsforadobe.dev/jsobjref/CMYKColor/). A
  document's selection lists the selected objects in that order too,
  whatever order they were picked in. That selection order is
  VectorCraft's own rule.
- A collection read with a name, such as pageItems["Logo"], gives what
  getByName gives, as
  https://ai-scripting.docsforadobe.dev/scriptingJavascript/objectReferences/
  shows. A name nothing has throws Not found, and assigning to such a
  name throws the same error.
- activeDocument, documents and selection can be named without app., as
  that page describes for the application's members.
- move() with the object itself and PLACEBEFORE or PLACEAFTER leaves it
  where it is and adds no undo step.
- move() keeps a compound path whose last path moves out, so a script
  that holds it can still read it.
- Assigning opacity to an object in a hidden or locked layer throws
  Cannot edit and changes nothing.
- name takes a number or a Boolean as its text.
- String() of an object gives its class and name, such as
  [PathItem Logo].

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-23 13:24:32 -08:00
dotCooCoo 6af6b2b13e Quick Pen: a length drag shows no Smart Guide from the hover before it
A press on a length handle kept the Smart Guides of the hover before
it, so a guide or label at the handle stayed on screen for the whole
drag. The press now clears them, as a press away from a handle does
when it places a point.
2026-11-23 12:16:38 -08:00
dotCooCoo c2967e257e Tests: short_stack keeps the run's name line as written
The first line of $.stack names the running script. The helper now
passes it through unchanged instead of reading it as a frame, and its
doc comment says so.
2026-11-23 11:36:23 -08:00
dotCooCoo f205705617 Scripts: $.stack starts with a line that names the running script
$.stack is the current stack trace
(https://extendscript.docsforadobe.dev/extendscript-tools-features/dollar-object/).
It now starts with a line holding the run's name in square brackets, such
as `[main.jsx]`, the name the console shows for the run: the `name` given
to `script.run`, else the `#script` name, else the file's name, else
`script`. The frames follow as before. Scripts that look for a bracketed
line in the trace to find their own name, for example to name a
preferences file, now find it.

The name line comes before the `…` line that stands for frames past 64.
A realm without a name (`Realm::set_script_name(None)`) writes no such
line.

Docs: docs/mcp.md ($ object table), docs/target-app-parity.md.
2026-11-23 11:17:06 -08:00
ViktorBystrov72 01566a4120 Place: measure aligned point type in embedded native artwork 2026-11-23 16:52:04 +05:00
dotCooCoo 26d2a08fe3 Merge main into fix/script-export-linked-files 2026-11-22 23:41:56 -08:00
dotCooCoo 6e713caf33 Merge main into feat/retype-installed-fonts 2026-11-22 23:39:38 -08:00
dotCooCoo f2f70faecf Merge main into feat/plugin-api-filter-type-images-symbols 2026-11-22 22:54:30 -08:00
dotCooCoo a6572d450a Merge main into feat/colorized-image-overprint 2026-11-22 22:38:01 -08:00
dotCooCoo edadc82827 Plug-ins: state what a compound path's reshape resets, and test an unflagged flatten of a guide member
docs/plugins.md now says that each new member keeps only the id of the
old member in its place, with its name, live shape, opacity, blending
mode, appearance, opacity mask and other settings of its own reset, and
that `guide: false` on a compound path makes each guide member an
ordinary path.

The compound path test also checks that `type: "path"` without `guide`
is refused for a compound path with a guide member and leaves the member
a guide, and its doc comment names members that are not paths.
2026-11-22 19:59:44 -08:00
ncic 563cbb298c Pencil: a redraw on an open path follows the way its ends run along it (#3793)
A stroke that starts and ends on an open path away from its ends now looks
at the way it runs along the path at each end. Where it starts it replaces
the part it runs along; where it lands it joins the part it runs into. So it
replaces the part between (and the path stays open), keeps the part between
and closes the path along the stroke, or, when its two ends disagree, keeps
the start's choice and ends where the pen is lifted.

An end runs along the path when its first stretch, as long as Edit Selected
Paths' distance, stays within that distance and moves along the path more
than away from it. An end that leaves or meets the path squarely follows the
other end; when both do, the stroke closes the path only if it goes round
both pieces beyond its ends.

This brings back closing across an open shape's opening (a C drawn over both
arms closes into a ring), which the previous commit had taken out, and keeps
a bump over an L's corner redrawing the corner.
2026-11-23 04:58:44 +01:00
dotCooCoo 97ac3c8c8b Outline view: linked images and placed documents show their box with an X
In Outline mode, with File > Document Setup > Show Images in Outline Mode
off, a linked image's frame is crossed from corner to corner, following
the corners of a turned or distorted image. A placed document shows its
box crossed, and its file's art no longer draws in Outline mode unless
the option is on. Embedded images keep a plain frame, and so do the
pieces that an envelope cuts an image into.

A placed document with raster effects or color adjustments stays
crossed. One with an effect that changes geometry, its own or its
group's, still draws its file's art reshaped and is not crossed yet.

With the option on, images show their pixels in gray and placed
documents show their art. The art inside a placed document now follows
the option of the document it is placed in rather than the placed
file's own setting.

Linked files showing as a box with an X in Outline mode is described at
https://helpx.adobe.com/illustrator/using/viewing-artwork.html; the
other rules are VectorCraft's own.

Docs: docs/ui-parity.md, docs/mcp.md; document.setup params text for
outlineImages.
2026-11-22 19:49:08 -08:00