Commit Graph
6465 Commits
Author SHA1 Message Date
dotCooCoo 52e959d4be 3D (Classic): Map Art keeps to the limits the art draws within
- When any solid's mapped art passes the shared limits, every solid in
  the effect draws without its mapped art, so Invisible Geometry hides
  all of them or none.
- A revolved group lists its surfaces with the members' shared curve
  sampling, and an extruded group lists none past the faces of one
  object.
- Commands refuse art on walls, bevels and Revolve's side whose curves,
  cut into straight pieces at the map's scale and placed about the
  surface's center, pass 400,000 points. Caps are not counted.
- Each contour's bounds test counts as a cut, in Map Art and in the side
  graphics.
- On a facet whose curved edge bows out of its cell, the art reaches the
  whole facet.
- A bevel as deep as the solid leaves no walls, and its bevels take the
  numbers after the caps.
- Surfaces past the face limit are refused as the side is.
- threeD.mapArt keeps a deleted symbol only while the request leaves
  `symbol` out.
2026-11-18 16:25:43 -08:00
dotCooCoo d6bc984cad Merge main into feat/distorted-image-commands 2026-11-18 16:24:18 -08:00
dotCooCoo e6b6a3dc78 Merge main into feat/circle-tool-options 2026-11-18 16:24:04 -08:00
dotCooCoo 8c22c4cbe3 Brushes: check Vector Packs tinting and the applied brush
The Vector Packs test now renders each brush with a teal stroke and checks
that every generated path is filled with that color, and after each
brush.addFromLibrary call it checks that the line's stroke uses the brush.
The black-stroke render still checks that each mark repeats along the path.

G5's Missing entry in docs/gaps.md now counts thirteen built-in brush
libraries, matching the Done entry.
2026-11-18 16:20:50 -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 db71faca9a Brushes: test Artistic tints and list the library in the progress docs
The Artistic test now draws each brush with a red stroke and checks that every path takes the stroke color. A second check covers a loaded library named Artistic Brushes: the name selects the built-in library, as for every built-in name, and the loaded library's id still selects it.

docs/mcp.md now describes that rule, says that the exact id `artistic` selects the built-in library and that `Artistic` selects it only when no library has that name, and counts thirteen built-in libraries. The G5 entry, the UI brush-library row, the M10 row and the area rows list Artistic Brushes with thirteen libraries.
2026-11-18 16:03:40 -08:00
dotCooCoo 1ea9a2775a Three-Point Arc: save the direction option, fix two placement cases
- `tool.setOption` (and the Tool Options dialog) now accepts `direction`
  as true or false and refuses other values or unknown options.
- The first press counts as a drag when the pointer moves 2 pt from
  where it was pressed, not from the point it snapped to.
- `]` pressed while the third point is held down places that point as
  the new mode keeps it.
2026-11-18 16:01:23 -08:00
dotCooCoo f4071dd56a Merge main into feat/image-trace-split-view 2026-11-18 15:58:59 -08:00
dotCooCoo c332e13600 Merge main into feat/color-wheel-hsl-sliders 2026-11-18 15:58:55 -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 c7d78a2dac File formats: open and place .cmx files
.cmx exchange files with 32-bit coordinates open and place as editable
art. vectorcraft-cdr reads the RIFF form CMX1, its header, the color,
pen, line type, dash, outline and arrowhead tables, and each page's
instructions in drawing order, into the drawing model the .cdr reader
uses, so the importer maps pages, layers, groups and curves with uniform
fills and outlines the same way. A layer that holds nothing is left out.
A page that gives no size of its own takes the size of the drawing's
bounds, which the page header stores, and is centered on them.

Text, images, rectangles, ellipses, clipping paths, fills other than
uniform ones and arrowheads are left out, and lenses are not applied;
the warnings name each kind, with rows in every complete catalog.
Big-endian files and files with 16-bit coordinates are refused with a
message. Layouts and their sources are rows R53 to R63 of
crates/cdr/PROVENANCE.md; tests use synthetic files only.
2026-11-18 15:52:44 -08:00
dotCooCoo 95ed13dd80 Color Settings: answer the review of the profile prompts
- An absolute-colorimetric conversion from CMYK starts from the source's
  absolute appearance.
- An assigned profile that was removed counts as the working space when
  copied colors are compared.
- Colors that can't convert are listed with convertible false, start on
  Preserve Numbers, and the dialog disables Convert for them.
- Paste on All Artboards leaves the backgrounds of copied artboards out of
  the question (clipboard.profileMismatch allArtboards).
- A converting paste into its own document keeps its image keys.
- An open answer is refused once Color Settings change the question; the
  dialog asks the new question, or opens by the policy.
- Files opened while a question is open ask their own questions in turn.
- OK on the paste question and on Swatch Conflict checks again where the
  paste runs and asks again when the question changed.
- docs/mcp.md and the command help describe these rules.
2026-11-18 15:42:03 -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 1d7f3f6f22 Color Wheel: fix OKLCH and HSL slider review findings
- The largest chroma at a hue near a primary color finds the stretch past
  the first gamut edge, so pure blue at chroma 0.4 stays blue. The C track
  dims the gap between the two stretches.
- Oklab conversions use the signed sRGB transfer curve for channels below 0.
- HSL hues wrap before the channel offsets; Color::to_hsl and from_hsl are
  removed, so callers pass the color settings themselves.
- color.convert {to: "oklch"} clips RGB numbers past 0 to 1, as hex does.
- A hue on a gray, or a saturation on black or white, leaves a Gray paint
  unchanged and records no undo step.
- Remembered row and wheel components are dropped once the panel shows
  another color or target.
- Hiding or switching the rows during a row drag keeps the preview as one
  undo step and ends the interaction.
- The L and H tracks keep their colors until the other two components
  change, so a frame does not search the gamut for every track color.
- Docs name the document's assigned profile as the RGB space OKLCH Sliders
  need, and give color.convert's example its color.
2026-11-18 15:37:33 -08:00
dotCooCoo 6aaf741118 Merge main into feat/vector-packs-library 2026-11-18 15:24:50 -08:00
dotCooCoo 021587a113 Brushes: keep the Pattern Borders doc comment on its own function 2026-11-18 15:22:44 -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 ec699365f2 Merge main into feat/ornamental-brush-library 2026-11-18 15:21:58 -08:00
dotCooCoo bf4c7955d1 Brushes: library test finds built-in entries by id
The built-in library test read names and counts at fixed positions in
the list, so adding Decorative and Arrows moved the entries it expected
and the Dry Media check read Energy Beams. It now looks each entry up by
id and also checks Decorative's count.

The Decorative test now checks that a path four tiles long places each
motif four times, one tile apart, and tells the brushes apart by their
tile geometry instead of their anchor counts.

The G5 Missing entry counts thirteen brush libraries, and the M10 row
names Decorative beside Arrows.
2026-11-18 15:13:31 -08:00
dotCooCoo a7d9609ce6 Merge main into feat/paint-brush-library 2026-11-18 15:12:11 -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 24d04bd50b Merge main into feat/hpgl-options-dialog 2026-11-18 15:10:32 -08:00
dotCooCoo 480571af82 Layers: layer.locate opens the rows around a row it does not scroll to
Locate Object opens the layers around the object even when the row is
not in the list, and only the scroll depends on the row being listed.
Editing an opacity mask on another layer also leaves the row out
(crates/ui-egui/src/panels/layers/model.rs). The params text and
docs/mcp.md now say both.
2026-11-18 15:05:37 -08:00
dotCooCoo 97a2b802a4 Symbolism: tool.setOption takes every Symbolism option, and OK checks ranges first
- The Symbolism tools' check_option accepts usePressure, method,
  showBrush, the six Sprayer options, proportional and affectsDensity,
  so tool.setOption and the options dialog's OK save them.
- OK runs both of tool.setOption's checks, ranges included, before
  symbol.setDensity, so a refused diameter leaves the sets' density.
- Average skips a stain or style at opacity 0: the Sprayer's mean and
  the Stainer and Styler take the visible one's paint.
- symbol.adjust reads an instance's look only for Average and the Shift
  recolor, so the Shifter moves an instance whose transform flattens it.
- restack collects the parents in a BTreeSet.
- The symbol.spray, symbol.setDensity and symbol.adjust texts and
  docs/mcp.md describe the size base and jitter, the third point value,
  the starting density, the Random and Alt Styler, and density errors.
2026-11-18 15:02:02 -08:00
dotCooCoo d41ba36f36 Merge main into feat/artistic-brush-library 2026-11-18 14:58:43 -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 269e8d85fe Dimension: arrowhead names in every complete catalog
The de, gu, it, ja, ko, uk, vi, zh-hans and zh-hant catalogs had no rows
for the built-in arrowhead names, so the Stroke panel and the Dimension
tool's Arrow Style showed them in English, and no catalog had Line Arrow.
Those nine catalogs get the names, every catalog gets Line Arrow, and
built_in_arrowhead_names_are_in_complete_catalogs checks them. Feather is
left out of the nine: a plain Feather row would also rename the History
steps of the Feather effect.

Dimension art is saved as child paths whose strokes carry the arrowhead,
so the docs, params text and comments no longer say that older versions
draw arrowStyle in place of arrowHead.
2026-11-18 14:47:13 -08:00
dotCooCoo c5e318772f Merge main into feat/edit-tracing-presets 2026-11-18 14:47:07 -08:00
dotCooCoo 51da822541 Brushes: Filigree Arrow's shaft runs into its head with no gap
The shaft ended at x = 84 while the head's inner edge starts at about
x = 84.5 at the shaft's edges and x = 85 on its center line, so a straight
stroke drew a gap between them. The shaft now ends at x = 86, overlapping
the head without moving the tip.
2026-11-18 14:42:09 -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 c103a88649 Merge main into feat/cdr-import-all 2026-11-18 14:27:18 -08:00
dotCooCoo 92dc3fa63d Layers: layer.locate's reference names when the panel does not scroll
The Layers panel scrolls to the located row only when that row is in its
list (crates/ui-egui/src/panels/layers.rs, where `revealed` is the row's
position in the listed rows). With Show Layers Only, a search or the
filter leaving the row out, a Locate does not scroll. The command's
params text and docs/mcp.md said it scrolls on every call.
2026-11-18 14:24:51 -08:00
dotCooCoo 4b3a543cf3 Merge main into feat/decorative-brush-library 2026-11-18 14:16:18 -08:00
dotCooCoo cf4dd8b375 Merge main into feat/control-bar-shape-widgets 2026-11-18 14:13:10 -08:00
dotCooCoo fa87b41da1 Swatches: Add to Swatches brings a library color group with its gradient and pattern swatches
swatch.library.add no longer refuses a library color group that holds a
gradient or pattern swatch. main now adds a .ai library's pattern swatch
in its color group (#8081), and Recolor Artwork keeps a group's gradient
and pattern swatches at their places (#8556), so the group comes in
whole, each swatch at its place.
2026-11-18 14:01:22 -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
dotCooCoo f918e29044 Merge main into feat/color-wheel-document-colors 2026-11-18 13:36:14 -08:00
dotCooCoo 247bfeb11d Merge main into feat/symbolism-options-method 2026-11-18 13:32:30 -08:00
dotCooCoo 13d944539b Merge main into feat/3d-classic-map-art 2026-11-18 13:31:00 -08:00
dotCooCoo f9b9957363 Merge main into fix/point-tangents-same-lines-test 2026-11-18 13:30:47 -08:00
dotCooCoo 8fdc9b6f2b Merge main into fix/export3d-revolve-side-graphics 2026-11-18 13:30:18 -08:00
dotCooCoo 49c4ae5851 Merge main into feat/reflect-tool-two-click-axis 2026-11-18 13:24:45 -08:00
dotCooCoo a05fb2b014 Merge main into feat/transform-rect-ellipse-angle 2026-11-18 13:24:00 -08:00
dotCooCoo bcfeca7c48 Merge main into feat/tool-cards 2026-11-18 13:19:27 -08:00
dotCooCoo a9cd206c04 Merge main into feat/tangent-circle-tool 2026-11-18 13:19:09 -08:00
dotCooCoo 1fb7a864de Merge main into feat/kinsoku-sets 2026-11-18 13:18:16 -08:00
dotCooCoo 7c4cfbf82f Merge main into feat/swatches-color-group-options 2026-11-18 13:17:44 -08:00