Commit Graph
2684 Commits
Author SHA1 Message Date
BFlat 778b95918d Merge pull request #8460 from dotCooCoo/feat/transform-rect-ellipse-angle
Transform: Rectangle and Ellipse Properties show the shape's angle
2026-11-19 20:44:43 +07:00
BFlat 2ef4858543 Merge pull request #8698 from Hassan1305/fix-8693-script-io-real-temp
Tests: script_io makes its temp folders by their real paths
2026-11-19 20:02:19 +07:00
dotCooCoo b0bebd324d Merge main into feat/transform-rect-ellipse-angle 2026-11-19 04:42:52 -08:00
HassanKhan 24da5d2936 Tests: script_io makes its temp folders by their real paths
On macOS the temp folder /var/... is a link to /private/var/.... Kept
script file grants hold real paths, and ScriptScope refuses a path by
its names alone when they don't start with a granted path, so the 11
grant tests that name their files under the temp folder were refused
and asked again. folder() now returns the real path of the folder it
makes.

ui_inspect_script_report_leaves_out_files_outside_the_read_root failed
on macOS for the same reason: the report names the included file by
its real path, and the test compared it with the /var spelling. It now
compares with the real path. No change outside the tests.

Fixes #8693
2026-11-19 16:50:28 +05:00
BFlat 2bc41aeb86 Merge pull request #8685 from dotCooCoo/fix/live-paint-group-faces-edges
Live Paint: a fill given to a whole group paints its faces and a stroke paints its edges
2026-11-19 18:41:35 +07:00
dotCooCoo ddd1a961fb Live Paint: Swap leaves faces with freeform gradients as they are
Swap Fill and Stroke on a whole Live Paint group compared the faces'
fills without gradient placement, so faces with freeform gradients
counted as one shared fill and the edges took a freeform gradient
without its points. A freeform gradient on any face or edge now counts
as a paint the parts do not share, and the group keeps its paint.

- docs/mcp.md says that a face or edge given with its whole group follows
  the group's rule, and that Default Fill and Stroke replaces the parts'
  appearance also when the Default Graphic Style is redefined.
- The progress-doc line states the behavior as VectorCraft's own rule and
  lists all eight tests.
- Tests cover freeform faces in Swap, an edge given with its group, and
  Default Fill and Stroke with a redefined Default Graphic Style.
2026-11-19 02:10:41 -08:00
dotCooCoo df614fb80c Pen: Quick Pen tool draws lines, continuous arcs and sharp-corner arcs
A new tool in the Pen tool's group, chosen with Alt+P (Option+P on
macOS), draws paths of straight lines and circular arcs, as the Quick
Pen help pages describe:
https://helpx.adobe.com/illustrator/web/add-and-edit-artwork/draw-and-edit-paths/draw-with-quick-pen-tool.html
https://helpx.adobe.com/illustrator/web/add-and-edit-artwork/draw-and-edit-paths/quick-pen-tool-keyboard-shortcuts.html

- A click sets the start point; each click, or a press dragged to where
  it is let go, adds a line, a continuous arc (it leaves the last point
  in the path's direction) or a sharp-corner arc, as the tool's action
  says. Each piece is one undo step.
- Alt (Option) pressed and let go on its own switches to the next
  action. C flips the last sharp-corner arc to the other side of its
  chord, and [ and ] make the arc size 15 degrees smaller or larger.
- A click on the first point closes the path, a click on an end of an
  open path continues it, and Escape or Enter ends it. An edit made to
  the path from outside the tool also ends it.
- path.quickPen {start | id, subpath?, keep?, pieces, closed?} draws
  the same path for agents and scripts. The action and arc size are
  kept with the preferences.

The 180 degree default arc size, its 15 degree steps, the side an arc
bulges to and Enter ending the path are VectorCraft's own rules.

Part of #2660 (reported by earlvanze). Not yet: the on-canvas toolbar,
dragging a path's ends to change its length, Ctrl+scroll for the arc
size, and editing and deleting with the tool.
2026-11-19 01:29:06 -08:00
dotCooCoo 42766fea24 Live Paint: a fill given to a whole group paints its faces and a stroke paints its edges
With a tool other than the Live Paint Bucket, a fill given to a whole
selected Live Paint group paints its faces only and a stroke paints its
edges only, instead of applying to the group as a whole. The hidden
source paths keep their paint.

- paint.setFill, paint.setStroke, paint.none, paint.lastColor,
  paint.lastGradient, paint.editGradient, paint.setGradientGeom, the
  paint.freeform point and line edits, paint.invert and
  paint.complement go to the faces for a fill and the edges for a
  stroke, also for a group given in ids or inside a selected group.
- stroke.set, stroke.weightUp, stroke.weightDown and stroke.setAdvanced
  change the edges.
- The Fill proxy shows the faces' fill, and the Stroke proxy, the Stroke
  panel and the Control bar show the edges' stroke. When the first
  selected object is a Live Paint group with no faces (or no edges),
  they show the next selected object's paint.
- paint.swap gives the faces the stroke the edges share and gives the
  edges the fill the faces share, with a gradient fitted to each face
  or edge. A group whose faces' fills or edges' strokes differ, or that
  has no face or no edge, is left as it is.
- paint.default leaves the faces with no fill and gives the edges a
  0.5 pt black stroke; with only Live Paint groups selected, the
  settings for new art take the same.

Docs: docs/mcp.md (Live Paint), docs/target-app-parity.md (Live Paint
evidence), params text of the changed commands.
2026-11-19 01:06:55 -08:00
bflatastic a82a968b25 Merge main into #8645
# Conflicts:
#	docs/gaps.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 15:27:12 +07:00
bflatastic 43950a1874 Merge main into #8451
# Conflicts:
#	crates/ui-egui/src/i18n/bg.tsv
#	crates/ui-egui/src/i18n/bs.tsv
#	crates/ui-egui/src/i18n/ca.tsv
#	crates/ui-egui/src/i18n/cs.tsv
#	crates/ui-egui/src/i18n/da.tsv
#	crates/ui-egui/src/i18n/de.tsv
#	crates/ui-egui/src/i18n/el.tsv
#	crates/ui-egui/src/i18n/es.tsv
#	crates/ui-egui/src/i18n/fi.tsv
#	crates/ui-egui/src/i18n/fr.tsv
#	crates/ui-egui/src/i18n/gu.tsv
#	crates/ui-egui/src/i18n/hi.tsv
#	crates/ui-egui/src/i18n/hu.tsv
#	crates/ui-egui/src/i18n/id.tsv
#	crates/ui-egui/src/i18n/it.tsv
#	crates/ui-egui/src/i18n/ja.tsv
#	crates/ui-egui/src/i18n/ka.tsv
#	crates/ui-egui/src/i18n/ko.tsv
#	crates/ui-egui/src/i18n/nl.tsv
#	crates/ui-egui/src/i18n/pl.tsv
#	crates/ui-egui/src/i18n/pt-br.tsv
#	crates/ui-egui/src/i18n/ru.tsv
#	crates/ui-egui/src/i18n/sv.tsv
#	crates/ui-egui/src/i18n/tr.tsv
#	crates/ui-egui/src/i18n/uk.tsv
#	crates/ui-egui/src/i18n/vi.tsv
#	crates/ui-egui/src/i18n/zh-hans.tsv
#	crates/ui-egui/src/i18n/zh-hant.tsv
#	docs/mcp.md
#	docs/target-app-parity.md
2026-11-19 15:10:17 +07:00
BFlat f5a35d3fa2 Merge pull request #8629 from dotCooCoo/fix/linked-handle-repeat-no-undo
Anchor Point: a repeated linked handle request records no undo step
2026-11-19 15:07:02 +07:00
BFlat cb094669ae Merge pull request #8628 from dotCooCoo/fix/live-paint-bucket-fill-color
Live Paint: a color chosen with the Live Paint Bucket is the color it paints with
2026-11-19 15:06:53 +07:00
BFlat fd0ff592b7 Merge pull request #8624 from dotCooCoo/fix/followup-8408
Type: the missing-font question takes its answer through tool.setOption
2026-11-19 15:06:39 +07:00
BFlat 8ed64fe0f4 Merge pull request #8622 from dotCooCoo/fix/followup-8405
Live Paint: Layers drags keep the sources group and rebuild on hidden moves
2026-11-19 15:06:18 +07:00
bflatastic feb024d8a7 Merge main into #8347
# Conflicts:
#	crates/ui-egui/src/i18n/bg.tsv
#	crates/ui-egui/src/i18n/bs.tsv
#	crates/ui-egui/src/i18n/ca.tsv
#	crates/ui-egui/src/i18n/da.tsv
#	crates/ui-egui/src/i18n/el.tsv
#	crates/ui-egui/src/i18n/es.tsv
#	crates/ui-egui/src/i18n/fi.tsv
#	crates/ui-egui/src/i18n/gu.tsv
#	crates/ui-egui/src/i18n/id.tsv
#	crates/ui-egui/src/i18n/ka.tsv
#	crates/ui-egui/src/i18n/ru.tsv
#	crates/ui-egui/src/i18n/sv.tsv
#	crates/ui-egui/src/i18n/vi.tsv
#	crates/ui-egui/src/i18n/zh-hans.tsv
#	crates/ui-egui/src/i18n/zh-hant.tsv
#	docs/gaps.md
2026-11-19 15:04:59 +07:00
bflatastic 497af8e79b Merge main into #8341
# Conflicts:
#	crates/ui-egui/src/i18n/bg.tsv
#	crates/ui-egui/src/i18n/bs.tsv
#	crates/ui-egui/src/i18n/ca.tsv
#	crates/ui-egui/src/i18n/da.tsv
#	crates/ui-egui/src/i18n/el.tsv
#	crates/ui-egui/src/i18n/es.tsv
#	crates/ui-egui/src/i18n/fi.tsv
#	crates/ui-egui/src/i18n/fr.tsv
#	crates/ui-egui/src/i18n/gu.tsv
#	crates/ui-egui/src/i18n/id.tsv
#	crates/ui-egui/src/i18n/ka.tsv
#	crates/ui-egui/src/i18n/ru.tsv
#	crates/ui-egui/src/i18n/sv.tsv
#	crates/ui-egui/src/i18n/vi.tsv
#	crates/ui-egui/src/i18n/zh-hans.tsv
#	crates/ui-egui/src/i18n/zh-hant.tsv
2026-11-19 15:03:22 +07:00
BFlat 2769afa489 Merge pull request #8540 from dotCooCoo/fix/classic-overprint-separations
Separations Preview: keep Classic 3D black shading on the Black plate
2026-11-19 15:01:48 +07:00
BFlat 7784d2f1a5 Merge pull request #8528 from dotCooCoo/feat/curvature-circle
Shapes: the Curvature Circle tool draws the circle a path bends along
2026-11-19 15:01:28 +07:00
BFlat 3892841db0 Merge pull request #8511 from dotCooCoo/fix/export3d-revolve-side-graphics
3D: Export 3D Object writes the art mapped onto a Revolve's side
2026-11-19 15:00:20 +07:00
BFlat 0a648aa23e Merge pull request #8497 from dotCooCoo/feat/layers-panel-isolation-list
Layers: isolation mode lists only the isolated art
2026-11-19 15:00:00 +07:00
BFlat 5a07d30f73 Merge pull request #8476 from dotCooCoo/feat/reflect-tool-two-click-axis
Reflect tool: a second click reflects across the line through both points
2026-11-19 14:59:20 +07:00
BFlat e78c20a543 Merge pull request #8456 from dotCooCoo/feat/swatches-color-group-options
Swatches: Color Group Options renames the selected color group
2026-11-19 14:58:45 +07:00
BFlat c9f742fc2c Merge pull request #8183 from dotCooCoo/feat/transform-show-on-shape-creation
Transform panel: Show on Shape Creation shows the panel after a shape is drawn
2026-11-19 14:56:18 +07:00
BFlat 4c1b27bc41 Merge pull request #8178 from dotCooCoo/feat/image-trace-split-view
Image Trace: Split View shows the source image and the result on either side of a divider
2026-11-19 14:56:07 +07:00
dotCooCoo 4696b3b010 Merge main into feat/transform-rect-ellipse-angle 2026-11-18 23:55:03 -08:00
BFlat 408c94c0ed Merge pull request #7701 from dotCooCoo/feat/symbolism-options-method
Symbols: Symbolism Tools Options gain Method, pen pressure and the Sprayer and Sizer options
2026-11-19 14:52:13 +07:00
BFlat a8a16041cd Merge pull request #7565 from dotCooCoo/feat/docinfo-font-details
Document Info: Fonts gives each font's type and number of uses
2026-11-19 14:49:29 +07:00
dotCooCoo ea7e831c2d Live Paint: Stroke Weight Up and Down use the same bucket routing as stroke.set
stroke.weightUp and stroke.weightDown now go through bucket_color_params and
item_target, as stroke.set and stroke.setAdvanced do, instead of skipping
item_target while the Live Paint Bucket is active. Each command still
refuses `target` and `aligned` with any tool, since neither is one of its
parameters.

- live_paint_bucket_refuses_a_bad_target_or_aligned (renamed from
  live_paint_bucket_refuses_a_bad_target) runs with the Selection tool and
  with the bucket, and adds stroke.set, stroke.weightUp, stroke.weightDown,
  paint.swap and paint.default.
- live_paint_bucket_paint_and_stroke_commands_leave_the_selection_unpainted
  adds stroke.set with `ids: null` and stroke.weightUp with `id: null`.
- The params text of the bucket-routed commands says a null ids or id
  counts as none.
- docs/mcp.md names gradient.presets.apply next to paint.editGradient for a
  picked symbol part, lists when a stop selected on the bucket's gradient is
  deselected, and rewraps the two long lines.
2026-11-18 21:32:55 -08:00
ruchirguitar 0c65ede5de G5: Add built-in Media Controls symbol library
# Conflicts:
#	docs/gaps.md
#	docs/target-app-parity.md
2026-11-19 10:08:20 +05:30
dotCooCoo db8301307c Live Paint: null ids and bad options under the bucket; docs
- While the Live Paint Bucket is active, a paint or stroke command with
  a null ids or id goes to the bucket's colors, as one without them does.
  Before, it painted the selection, since other commands read a null ids
  or id as no target.
- A bad target or aligned value is refused while the bucket is active,
  as it is with any other tool, instead of changing the bucket's colors.
- stroke.weightUp and stroke.weightDown no longer read the selection's
  active Appearance row while the bucket takes the weight, as stroke.set
  and stroke.setAdvanced already do. The row was not used in that case.
- The params text of gradient.selectStop says that, while the bucket is
  active, it selects a stop of the default paint's gradient, also with an
  object of a symbol instance picked. docs/mcp.md says the same, and that
  paint.editGradient without ids, id or item then changes the bucket's
  gradient.
- docs/mcp.md again says that another tool chosen after the bucket keeps
  its colors until a command or a new selection changes them.
2026-11-18 20:29:39 -08:00
dotCooCoo 2b0d6e5b14 Live Paint: bucket previews, gradient stops and presets use the bucket's colors
While the Live Paint Bucket is the active tool:
- each preview in one interaction starts from the colors the
  interaction began with, so previewing paint.swap twice and committing
  swaps once;
- a gradient stop selected on the selection's gradient is not selected,
  and one selected on the bucket's gradient is not selected after
  another tool is chosen;
- gradient.selectStop selects a stop of the bucket's gradient even
  with an object of a symbol instance picked;
- gradient.presets.apply picks the fill or stroke by the active proxy,
  not by the selection's active Appearance row;
- stroke.set and stroke.setAdvanced no longer read the selection's
  Appearance row;
- the Stroke panel's Align Stroke buttons are on, as with nothing
  selected, matching stroke.set, which takes every alignment.

The params text of paint.sampleColor, gradient.presets.apply,
stroke.set, stroke.weightUp and stroke.setAdvanced, the set_paint note
and the Live Paint paragraph of docs/mcp.md now describe this, and say
that the bucket takes only the color and weight of the stroke for new
art.
2026-11-18 18:44:05 -08:00
dotCooCoo eb7f64d5b3 Transform: a shape turn past the coordinate limit is an error
- object.setLiveShape checks every shape named in `ids` against the
  coordinate limit (±4,000,000 pt) after the edit, so a rectangle,
  ellipse or polygon that is not selected can no longer be turned
  out of range; the call is an error and changes nothing.
- LiveShape::set_shape_angle brings the angle into [0, 360) before it
  works out the turn, so a very large angle reaches the same final
  angle from any starting angle.
- The params text and docs/mcp.md say that `null` counts as an
  omitted key, that a pixel-aligned shape goes back on the pixel grid
  after the turn, and that a turn out of range is an error.
- The panel test reads the Rotate and Angle fields by name, and checks
  that the Angle field is empty for mixed angles.
2026-11-18 18:25:27 -08:00
dotCooCoo 00e3d4a921 Shapes: the Curvature Circle's other-side circle on an arc touches the path at the clicked point
On a cubic that counts as a circular arc but strays slightly from the arc's circle, the circle on the other side was placed against the arc's circle, a few points off the path. It now sits one radius out from the point on the path. The Undo test also checks that the click after Undo draws the first circle's own circle.
2026-11-18 17:58:22 -08:00
dotCooCoo 8e98dbb310 Isolation: object.isolate refuses a ruler guide
An isolated ruler guide left the Layers panel with no rows, since the
panel lists no object row for a ruler guide. object.isolate now returns
"ruler guides can't be isolated" and isolation mode stays as it was.
2026-11-18 17:36:46 -08:00
dotCooCoo bae4defa45 Symbols: Average sizes are sizes on the page, and a pen pressure change where the pen stays is kept
The Sizer's and the Sprayer's Average compare each instance's size on the page, so a set that
holds instances of different symbols meets at their mean drawn size. A symbol without a recorded
size is measured by its art, once per command. With Size: Average and no instance under the brush,
a sprayed instance has its symbol's own size whatever `scale` is, and new instances are spaced by
the size they are placed at. With Use Pressure Pen, a drag sample at the same position is kept when
the pressure changes by 0.05 or more.
2026-11-18 17:34:48 -08:00
dotCooCoo 4080708714 Merge main into feat/stylus-wheel 2026-11-18 17:25:37 -08:00
dotCooCoo f5b2dfa8b4 Merge main into feat/curvature-circle 2026-11-18 17:15:45 -08:00
dotCooCoo 59752f7ebf Swatches: Color Group Options renames only the group it opened on
OK closes the dialog and renames nothing when another document has
become the active one, or when the color group at the group's place in
the list no longer has the name and swatches the dialog opened with.

swatch.renameGroup makes a drag still in progress an undo step of its
own first, so canceling or undoing the drag leaves the rename.

ui.colorGroupOptions without group opens on the color group selected
alone in the Swatches panel, as long as the panel's selection still
belongs to the active document and art.

The panel's selection follows renames in a command.batch only up to the
first step that may switch documents or replace a group. Ungroup Color
Group and Delete Swatch take the names they removed out of the
selection.

The es catalog had the missing `group` and no colour group `{group}`
rows twice after the last merge of main; the duplicates are removed.
2026-11-18 16:58:21 -08:00
dotCooCoo cd21f4c1bc Anchor Point: a repeated linked handle request records no undo step
path.setHandle with link: true treated a request as a change whenever the
whole anchor differed after the other handle was turned again. Turning it
again from its stored end measures its length anew, which can round its
end differently in the last bit, so the same request sent twice recorded
a second Reshape step and moved the other handle by one unit in the last
place.

The request now also counts as unchanged when the anchor is smooth, the
requested handle is already at (x, y), and the other handle sits exactly
where turning it puts it at some positive length, with the same
arithmetic. Any other handle is turned and records a step, including one
slightly off line, a short one at right angles, one on the same side, and
a retracted one that is pulled out.
2026-11-18 16:13:30 -08:00
dotCooCoo e39e6713d9 Reflect tool: Enter or a dropped press ends a press not yet a drag
Enter between the press and the release of a click now ends that press,
so the release sets no reference point and starts no Reflect axis behind
the dialog. A press the engine drops ends whether or not it became a
drag, and drops a waiting axis, so the release sent after it starts no
axis. A press whose document or selection changes before it becomes a
drag is dropped, so the reference point or axis set for one selection
is never applied to another.

The engine test checks that the Alt copy is reflected across y = 300.
The docs state that the first click is a plain click, that the 3 px
check compares the snapped points, and what a double-click does while
an axis waits.
2026-11-18 16:09:31 -08:00
dotCooCoo f4071dd56a Merge main into feat/image-trace-split-view 2026-11-18 15:58:59 -08:00
dotCooCoo 0705716dc9 Live Paint: a color chosen with the Live Paint Bucket is the color it paints with
With a Live Paint group selected and the Live Paint Bucket active,
choosing a fill color (a swatch, the Color Picker, the Fill box) painted
the whole selection, so every face and edge of the group took one color
before the bucket painted anything.

While the bucket is the active tool and no ids, id or item are given:
- paint.setFill, paint.setStroke, paint.none, paint.lastColor,
  paint.lastGradient, paint.editGradient, paint.invert,
  paint.complement, paint.swap and paint.default change only the
  defaults, the colors the bucket paints with, and record no undo step;
- stroke.set, stroke.weightUp, stroke.weightDown and stroke.setAdvanced
  (without a brush) change only the stroke for new art;
- the Fill and Stroke proxies, the Stroke panel and its Profile list
  follow those defaults, as they do with nothing selected;
- New Art Has Basic Appearance off no longer copies the selection's
  appearance into them after a command;
- canceling a Color Picker preview puts the bucket's color back.
2026-11-18 15:56:14 -08:00
dotCooCoo d94d3ef097 Type: the missing-font question takes its answer through tool.setOption
- `tool.setOption {key: "missingFontEdit", value: {token, ok}}` now passes
  the Type tool's option check, so a client can answer the question that
  a click on type in a missing font asks. Before, it failed as an unknown
  option.
- A press on such type that reaches the Type tool while another dialog is
  open (sent with `pointer_gesture`) leaves that dialog open and starts no
  edit, instead of replacing it.
- docs/mcp.md says which double-clicks ask, and that OK starts no edit
  when the document changed after the question opened.
- The doc comment of `GENERIC_FAMILIES` notes that `emoji` is kept
  although CSS Fonts Module Level 4 dropped it.
2026-11-18 15:41:34 -08:00
dotCooCoo a5df7cc22b Live Paint: Layers drags keep the sources group and rebuild on hidden moves
- Moving a Live Paint group's sources group out of the group is refused,
  so the group no longer loses its paths and keeps stale faces.
- A shown path moved into or out of a hidden group among the same
  group's paths makes the faces and edges again.
- A Live Paint group with no paths dropped into another with none joins
  it and is left with no faces or edges, instead of failing.
2026-11-18 15:22:01 -08:00
dotCooCoo 3ef0e5e588 Symbols: the Symbolism tools take their new options, and OK checks them before any change
tool.setOption now accepts usePressure, method, showBrush, the Symbol
Sprayer options, proportional and affectsDensity for the Symbolism
tools, so the Symbolism Tools Options dialog can save them. The dialog
checks every option, the number ranges included, before
symbol.setDensity re-spaces the selected symbol sets.

- Size: Average gives a sprayed instance the mean size under the brush,
  or the symbol's own size with none there, without the size jitter.
- A stroke that moves an instance away and back again does not count
  it, and adds no undo step.
- symbol.adjust reads an instance's own values for Average only.
2026-11-18 15:10:38 -08:00
dotCooCoo eb334e5d14 Tests: look up brush libraries by id and check Stipple's tint and opacity
The library list test finds each library's count by its id, so a library added to the list does not shift the checks. The Stipple test draws each brush with a red stroke and checks that every dot takes the stroke color and that only Soft Stipple's dots are translucent.
2026-11-18 14:55:48 -08:00
dotCooCoo f02f35a7da Merge main into feat/paper-cutouts-style-library 2026-11-18 14:50:56 -08:00
dotCooCoo 70c0f533f6 Transform: Show on Shape Creation counts shapes drawn in perspective
With the perspective grid shown and a plane active, a Rectangle,
Ellipse, Polygon, Star or Line Segment drag is journaled as
perspective.draw naming the shape command. note_shape_drawn now counts
that entry, alone or as a batch step, so the Transform panel opens for
a shape drawn on the plane too. perspective.draw naming another shape
(a flare, for example) still does not count.

The Transform tests now move a selected rectangle and check that the
move succeeded before checking that the panel stays closed, and check
that the frames after a shape draw the panel's controls, with a control
run where the option is off.
2026-11-18 14:27:27 -08:00
dotCooCoo da5985eeab Merge main into feat/stipple-brush-library 2026-11-18 14:00:16 -08:00
dotCooCoo 6513b42ff7 Merge main into feat/image-brush-library 2026-11-18 13:57:44 -08:00