Commit Graph
872 Commits
Author SHA1 Message Date
BFlat 20e2bfbda3 Merge pull request #8872 from dotCooCoo/feat/packaging-fold-angle
Packaging Tools: a crease, partial cut or perforation can fold at its own angle
2026-11-27 00:53:23 +07:00
dotCooCoo e5d9376b9d Merge main into feat/curvature-circle-options 2026-11-26 07:08:30 -08:00
dotCooCoo 789675bfeb Merge main into feat/packaging-fold-angle 2026-11-26 06:52:16 -08:00
BFlat b817534934 Merge pull request #9089 from dotCooCoo/fix/corners-relative-per-corner
Corners: a relative radius is a percentage of each corner's own maximum
2026-11-26 16:58:46 +07:00
dotCooCoo 0eec4f510f Toolbars: Dock Toolbar and Float Toolbar run again on the dock
window.toolbar.dock and window.toolbar.float were still listed in the
command catalogs, but the move to the framework dock removed their
handlers, so both returned "unknown command".

- window.toolbar.dock docks a toolbar made with New Toolbar as a column
  of the left or right edge's dock, at the column `order` asks for.
  Without `side` it uses the edge it docks at, else the edge of the
  docked panel it left, else the left.
- window.toolbar.float floats it at x, y, or as the dock floats a panel.
- A hidden toolbar that either command shows brings back the groups torn
  off it, and both commands end a Tab hide.
- window.toolbar.list reports that same edge for a floating toolbar
  instead of always "left".
- place_floating moves an open OS window's record with its rect, as
  float_actions does.

Docs: the params text in both catalogs, docs/mcp.md and
docs/control-protocol.md describe dock columns instead of lanes.
2026-11-25 21:46:05 -08:00
dotCooCoo 3001757362 Merge main into feat/packaging-fold-angle 2026-11-25 21:17:07 -08:00
dotCooCoo 046a97cb73 Merge main into feat/curvature-circle-options 2026-11-25 19:16:23 -08:00
BFlat a54d28887c Merge pull request #7718 from dotCooCoo/feat/color-wheel-contrast
Color Wheel: Show Contrast reports the WCAG contrast against the color behind the selection
2026-11-26 08:51:15 +07:00
BFlat f966e8d664 Merge pull request #9104 from dotCooCoo/feat/plugin-api-last-filter
Plug-ins: Apply Last Filter and Last Filter… repeat the last filter plug-in
2026-11-26 08:50:06 +07:00
BFlat daccee9065 Merge pull request #9100 from dotCooCoo/fix/shape-builder-color-pick
Shape Builder: a fill chosen while the tool is active leaves the selection's fills
2026-11-26 08:48:05 +07:00
BFlat 8ee6295e3e Merge pull request #9103 from dotCooCoo/feat/recolor-preset-library
Recolor with Preset: ask whether to limit colors to a swatch library first
2026-11-26 08:46:55 +07:00
BFlat c2b45ce9d1 Merge pull request #9091 from dotCooCoo/fix/issue-9051
Fix #9051: Display Print Size shows 100% at the display's physical size
2026-11-26 08:46:41 +07:00
dotCooCoo 1d6f0340e2 Merge main into feat/color-wheel-contrast
The contrast row, its menu rows and its tests move to the craft UI framework,
as main's Color Wheel panel now uses it:

- The row is a Row with a Swatch named Background (a color well whose value is
  the background's hex value) and Text for the ratio and the AA and AAA
  results, each with the WCAG minimums as its tooltip.
- Show Contrast, Contrast For and Contrast Background are rows of the panel
  menu's items (ui.colorWheel.contrast, contrastFor.<id>,
  contrastBackground.below and contrastBackground.current), after Show
  Opacity. Current Color is gray, and its row answers an error, while the
  active proxy has no solid color.
- The kept background and ratio answer are fields of WheelUi instead of panel
  state. The answer's key also holds whether the Live Paint Bucket paints,
  which changes the proxies' paint without a document revision.
- The row's tests run in the panel's Fixture by accessible name; the drag test
  runs an interaction whose previews set the fill, as the Show Document Colors
  drag test does.
- The settings lists in the params text, docs/mcp.md and the tests take both
  opacity and the contrast keys.
2026-11-25 16:36:08 -08:00
dotCooCoo b19905b054 Merge main into fix/issue-9051 2026-11-25 14:55:35 -08:00
dotCooCoo 9e3b3efed0 Merge main into fix/shape-builder-color-pick 2026-11-25 09:45:57 -08:00
dotCooCoo 7e8904f424 Merge main into feat/smart-pen-default-toolbar 2026-11-25 09:28:56 -08:00
dotCooCoo 356f5bec2c Merge main into fix/corners-relative-per-corner 2026-11-25 09:22:39 -08:00
dotCooCoo c71fc0a25b Merge main into feat/recolor-preset-library 2026-11-25 09:11:53 -08:00
dotCooCoo 335ed2cbb0 Merge main into feat/plugin-api-last-filter 2026-11-25 09:03:55 -08:00
dotCooCoo 391ea5dd4b Merge main into feat/curvature-circle-options 2026-11-25 04:30:52 -08:00
dotCooCoo f9f0659fc4 Merge main into feat/packaging-fold-angle 2026-11-24 23:45:27 -08:00
BFlat 461e758fe7 Look: Home, the dock frame and the panels' spacing as production 0.24.1 draws them (#9276)
* Dock: rail_cards is now column_cards in craft-libs

* Dock: pill panel tabs and rounded floating bodies, as production drew them

* Root looks: neutral link labels, hover command highlight, strong choices, accent slider tracks, filled dialog buttons, spaced sections

* Canvas: artboard edges black for the active artboard and grey for the others, as production drew them

* Canvas: smart guide labels in their overlay's colour, as production drew them

* Canvas: bleed in the error red and artboard marks in the grid grey, as production drew them

* Document tabs: production's strip heights, regular and large

* Floating window close test: aim at the title bar above the window's tab strip

* Place the selection widgets over the canvas, so a frame runs its UI once

SelectionWidgets was laid out in the canvas body's flow, which the layout
check found changed in every frame the canvas drew: the frame was discarded
and its whole UI ran a second time. It is placed over the canvas's rect, as
the other canvas controls are.

* Give nine trials the frames their behaviour needs now that a frame runs its UI once

* Give the merge-press and corner-list trials what their behaviour needs now that a frame runs its UI once

A merge the press frame applies changes the layout, so that frame runs again and its second pass already makes
the held press: the check accepts the lent tool once the merge is no longer pending. The picked corner list fades
out on the clock, which the trial now moves past before it checks the list is gone.

* Pin craft-libs at 357f332549af53e1a273c2952c3e9c44157bef72

* Field labels in the normal ink, semibold document tabs, Stroke and Opacity without a colon, a plain Properties Rotate field, as production drew them

* Only the shown pass of the canvas body starts the frame's panes, so a release over a floating window in the frame the pointer reached it drops the art

* Pin craft-libs at 75efd247498d47e41604f418bceb2adaf0e3b329

* A collapsed panel column's icon groups stand apart by a hairline, as production drew them

* Fill and Stroke chips: production's small square wells with their arrow, in the Properties panel and the Control bar

* The dock's columns stand flush and square at production's widths: a 310-point panel column and a 38-point icon column, the panel tabs in the framework's plain look

* The app bar's end shows Discord, a search icon and the workspace switcher, as production 0.24.1 does; tutorials and Arrange Documents stay in the Window menu

* Home: StartScreen's Column layout as production lays it out: the centred welcome title and subtitle, New and Open, the recent files as rows, Learn, the presets as page cards under Quickly start a new file, and Community's links with Join our Discord as the call to action; the Home title is 26-point (typography.display). The recent-files trial finds rows by name and folder. Needs the framework's StartLayout::Column (craft-libs fix/vc-home)

* Properties: the kind line heads the sections under it (QuietHeader::Heads), so the first draws no divider above it, as production's did

* Link labels (Stroke, Opacity:) draw their underline inside the label (LinkLabelUnderline::Inside), under the text as production drew it; it was clipped away

* Push buttons stand 24 points high (size.button), as production's flat buttons; fields stay 26

* Quiet headings (the kind line, Ellipse Properties:) stand a line of text high over their fields (QuietTitleRow::Text), as production's did

* Layers rows: the thumbnail with a tight gap and 14 points of indent per level (ThumbRows::Tight): 26-point rows as production's

* Layers: the Objects search field fills the filter bar up to its Filter button (ObjectsSearch::Fill), as production's did

* Home: production's "New file" and "Open" words, 60 points of page margin above the title and a 36-point Join our Discord (size.page.margin, size.page.action); New Document's preset cards show blank paper on flat cards (PresetCardLook::Page), as production drew them. Needs craft-libs fix/vc-home 9cf00b80e or later

* Control screenshots: frames keep coming until a capture is answered, not only until it is issued; its readback finishes in a later frame, so with nothing else repainting (the Color flyout open) a screenshot waited for the next wake, where production's capture kept painting

* Icon buttons draw 16-point glyphs (size.icon.glyph_md) in their 26-point buttons, as production's did (60% of the button): Align, the Transform flips, More Options

* craft-libs at next 461493afc: the panel spacing options, the menu Copy after Select All and Home's Column page options; pdf-deps follows

* Files dropped on a floating panel window open as before: the dock now names the panel each drop landed on (craft-libs a2967e3cc), which the app does not use

* The dock takes production 0.24.1's frame: block panel tabs on canvas strips with the column bars 14 points high, the tool column the only card with a square canvas strip on top, docks flush against the canvas with framed icon columns and square docked flyouts, the open panel's icon on the control surface; the status bar's rotation and artboard selects are filled

* craft-libs at next 4bed21baa: VectorCraft's dock frame options (block panel tabs, stepped column cards, flush docks, ruled icon groups with production's grip bands, filled status selects); egui follows the framework to b15ffe9bf; pdf-deps follows

* Color Wheel: the opacity row reads the target and color from the rows' pick

#7642's opacity row used the target, color and color settings of the old panel function, which #9256 split into show_rows. It now reads them from the Pick show_rows gets, and leaves the gap to the stack, as the other rows do.
2026-11-25 13:29:00 +07:00
dotCooCoo ecebe5f1d1 Merge main into feat/color-wheel-opacity 2026-11-24 12:33:59 -08:00
BFlat ca09a61d72 Merge pull request #8880 from dotCooCoo/fix/align-to-selection-anchors-docs
Align: align.toSelection returns "artboard" only for one object with no anchor points selected
2026-11-24 16:01:58 +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 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 23b6184c5b Recolor with Preset: reject a color group
ui.recolorDialog with preset: true and a group opened the preset dialog
and dropped the group, so OK recolored the art without rewriting the
group. That call is now an error. The params text and
docs/control-protocol.md say so.
2026-11-22 11:31:42 -08:00
dotCooCoo e2334a2165 Smart Pen: the tool is in the Pen tool's flyout
The Smart Pen Tool joins the Pen group in both shipped toolbars, after
the Quick Pen, and stays in Object › Plug-ins › Smart Pen. The All Tools
drawer lists it once, under Draw, and Edit › Keyboard Shortcuts › Tools
lists it once. It has no default shortcut, and the Pen keeps P. A
toolbar the user already edited keeps its saved layout; Reset Toolbar
adds the tool.

A group torn off the Tools panel's toolbar now shows the tools of the
current layout's group that starts with the same tool, after toolbar
edits, Reset Toolbar, a switch between Basic and Advanced, loading the
preferences and switching workspaces, as groups torn off a toolbar made
with New Toolbar already did. A strip with no such group keeps its
tools.

Part of #8326
2026-11-22 08:16:20 -08:00
dotCooCoo 1592cee7a8 Plug-ins: Apply Last Filter and Last Filter… repeat the last filter plug-in
Object › Plug-ins now starts with Apply Last Filter (plugin.applyLastFilter)
and Last Filter… (plugin.lastFilter). Once a filter plug-in's plugin.run
succeeds (its menu item, its dialog's OK, a shortcut, a request, the last
plugin.run step of a command.batch or of an Action Batch that processed a
file or data set, or a background run once its result is applied), Apply
<name> runs it again on the selection with the same parameters, without
its dialog, as one undo step, and <name>… opens its dialog with those
parameters. A filter's own dialog opens with the parameters it last ran
with in the session. Previews, Cancel, failed runs, a plug-in's own
commands and live effects don't count.

Both items are grayed out, and return an error through automation, with
no document open, before a filter ran, once that filter was removed or
installed again, or when its manifest no longer takes the parameters as
they are. The parameters are kept for the session only, for at most 64
filters.

The help page describes the same pair for filters:
https://help.adobe.com/archive/en_US/illustrator/cs3/illustrator_cs3_help.pdf#page=357
Where the items sit and when they are grayed out are VectorCraft's own
rules.

Docs: docs/plugins.md, docs/mcp.md, docs/target-app-parity.md.
2026-11-22 06:48:36 -08:00
dotCooCoo f7b7ca5f86 Recolor with Preset: ask whether to limit colors to a swatch library first
Edit > Edit Colors > Recolor with Preset (1, 2 and 3 Color Job, Color
Library) now opens a Recolor with Preset dialog with a Limit to Library
menu (None, Document Swatches or a library) before Recolor Artwork
opens; OK opens Recolor Artwork with the preset's colors and that
library, and Cancel opens nothing. The menu items run
ui.recolorDialog {preset: true}.

A 1 Color Job limited to the document's swatches, with a spot or global
ink picked for its row, gives gray art tints of that ink linked to its
swatch, so editing the swatch recolors the art.

Opening either dialog over another dialog now ends that dialog as
Cancel does, so a Recolor Artwork preview is rolled back.
2026-11-22 06:47:42 -08:00
dotCooCoo 1cecbb9aee Display Print Size: keep the last density, fits and percentages right
- A fit made while a floating window's display has not answered keeps
  counting from the density the window was last shown at, so Actual
  Size and the zoom field no longer fall back to 96 points to an inch
  meanwhile.
- A view that still fits its floating window keeps fitting it after a
  move to a display of another density: the fit kept for the window
  takes the settled zoom.
- The plausible range of a measured display applies to its pixels per
  inch, before the display scale divides them into points. A
  1920 x 1080 display of 527 x 296 mm at scale 4 now measures about
  23 points to an inch instead of falling back to 96, and Actual Size
  takes any finite, positive point density the host measured.
- View > Set Zoom, Zoom In and Zoom Out, the wheel and the Zoom tool
  clear the zoom a fit gave the view, so a percentage that equals the
  last fit's zoom keeps its percentage at the first reading.
- The Actual Size and preference descriptions say that a size no
  display has also counts 96 points to an inch.
2026-11-22 06:25:08 -08:00
dotCooCoo a1bd1ba906 Shape Builder: a fill chosen while the tool is active leaves the selection's fills
Choosing a fill while the Shape Builder was active (a swatch, the Color
panel, the Fill box or a paint command) ran paint.setFill on every
selected path, so all of them took the color. With Pick Color From set
to Color Swatches the tool merges with the current fill, so the pick is
the color for the next merge.

While the Shape Builder is active, a fill chosen without ids, id or item
now changes only the current fill, with either Pick Color From: with
Color Swatches the next merge fills with it, and with Artwork merges
still take their look from the art. A stroke chosen then still goes to
the selection. Swap Fill and Stroke and Default Fill and Stroke change
only the paint for new art, and Swap gives the current fill the stroke
the Stroke proxy shows. This is VectorCraft's own rule; no default
setting changes.

- painting_tool_of says which tool paints with the chosen fill or
  stroke: the Live Paint Bucket with both, the Shape Builder with the
  fill. Session::tool_paints(stroke) replaces bucket_paints, so the
  paint and gradient commands, previews, the proxies, the Stroke panel
  and the Gradient panel's eyedropper follow it for each kind.
- A new selection does not replace the tool's fill for new art, with
  New Art Has Basic Appearance on or off, and new art is not linked to
  a graphic style whose fill it does not have.
- A cancel puts back a fill previewed for the tool, also after another
  tool was chosen during the drag.
- An Eyedropper pick armed for a stop of the tool's gradient samples
  only into a stop of that gradient, and ends once that stop is gone.
  Choosing another tool drops the stop the pick was armed for, and a
  pick armed while the Eyedropper waits for a Cmd-drag keeps its stop.
- The paint.freeform commands refuse the Shape Builder's fill as they
  refuse the Live Paint Bucket's colors, which lie on no object. For
  the gradient either tool paints with, the Color panel, the Gradient
  panel, the stop popover and swatch drops edit its stops instead of
  points, and the Gradient panel shows its Draw toggle, ramp and stop
  fields in place of the point controls. paint.editGradient keeps the
  given stops of a freeform gradient that has no points yet.
- A gradient command that names no kind edits the proxy in front when
  the tool paints with it, else the kind the selection's active
  Appearance row stands for.
- set_paint lists the commands that painted no object in unpainted.
- Params text and docs/mcp.md describe the rule.

Help (Pick Color From, Color Swatches):
https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/draw-shapes/shape-builder-tool-options.html
https://help.adobe.com/archive/en_US/illustrator/cs5/illustrator_cs5_help.pdf#page=266
https://help.adobe.com/archive/en_US/illustrator/cs5/illustrator_cs5_help.pdf#page=267
2026-11-22 06:01:44 -08:00
dotCooCoo 050ddcb567 Fix #9051: Display Print Size shows 100% at the display's physical size
With Preferences › General › Display Print Size at 100% Zoom on, 100%
took 96 screen points to an inch on every display, so a ruler held to
the screen measured more or less than the document said on any display
of another density. The desktop app now measures the density of the
display that shows the main window from the physical size the system
reports (CGDisplayScreenSize on macOS, the monitor's raw DPI on
Windows, the RandR output's millimeters on X11, the wl_output geometry
on Wayland), and measures it again when the window moves to another
display, where every document window keeps its zoom percentage so the
art keeps its physical size. Actual Size, the zoom field, the zoom
stops and the tab titles count 100% from that density. Where the
system reports no size, or a size no display has (zero, an aspect
ratio given as the size, or axes that disagree), an inch stays 96
points, as on the web.

Zoom stepping takes the density from the app instead of a
process-wide flag, and the last zoom stop in each direction stays in
the zoom range.
2026-11-22 03:22:21 -08:00
dotCooCoo 0397283727 MCP: regenerate the UI catalog for the Corners relative radii
`cargo xtask ui-commands` copies the ui.corners description from
crates/ui-egui/src/menus/ui_commands.rs into crates/mcp/src/ui_catalog.rs,
so the headless MCP catalog now lists relativeRadii and the batch undo step.
2026-11-22 01:50:07 -08:00
dotCooCoo 7916ffc1d6 Merge main into feat/curvature-circle-options 2026-11-21 21:06:24 -08:00
dotCooCoo c6bea78bdf Shapes: Curvature Circle Tool Options set its reach, label, anchors and arc rule
Double-clicking the Curvature Circle tool opens Curvature Circle Tool
Options (`tool.options {tool: "curvatureCircle"}`, dialog
`curvatureCircleOptions`). OK sets the options with `tool.setOption`,
and the preferences keep them:

- Snap Tolerance (`snapTolerance`, 1 to 40 screen points, 5) is how
  near a path pulls the pointer; Smart Guides' Snapping Tolerance
  applies when it is larger.
- Snap with Smart Guides Off (`snapWithoutGuides`) unchecked keeps the
  reach within Selection & Anchor Display's Tolerance while Smart
  Guides are off.
- Annotate Radius (`annotateRadius`) unchecked hides the radius label.
- Anchors at Standard Positions (`standardAnchors`) unchecked draws a
  path with an anchor where the circle touches the path and one every
  90 degrees from there (`shape.curvatureCircle {anchors: "touch"}`).
- Use the Radius of Circular Arcs (`constantRadius`) unchecked gives
  the cubic's own curvature on the cubic of a circular arc too
  (`shape.curvatureCircle {constantRadius: false}`).

The range, the default and the Snap with Smart Guides Off rule are
VectorCraft's own. Every switch is on by default, so the tool draws as
before until an option is changed. The canvas check measures the path
drawn, whose cubics reach a little past the circle when its anchors
are where it touches.
2026-11-20 23:43:34 -08:00
dotCooCoo f2eb016e98 Tests: transform turns about the same pivot with a null or omitted origin
transform_rejects_a_mistyped_reflect_copy_or_origin_before_editing ran
a rotate with a null origin and checked only that the call succeeded.
It now compares the resulting path with the same rotate with origin
left out, so a null origin that moved the pivot would fail the test.
2026-11-20 20:26:14 -08:00
dotCooCoo d1a0cbe8c7 Merge main into feat/packaging-fold-angle 2026-11-20 20:07:44 -08:00
dotCooCoo a6c0557819 Align: align.toSelection returns "artboard" for one object only without the Artboard tool
With one object selected, no anchor points selected and the Artboard tool
chosen, align.toSelection returns "selection", the stored choice. The params
text and docs/mcp.md now name that condition, and crates/mcp/src/ui_catalog.rs
is regenerated. A test covers the case.
2026-11-20 19:28:21 -08:00
dotCooCoo f9d447b13b Tests: the side widget batch test checks that the batch switches documents
The test found the polygon's document by its uid, so it passed even when
the batch's document.activate step left the active document unchanged. It
now asserts that the batch makes document 0 active and leaves the
polygon's document.
2026-11-20 17:23:00 -08:00
dotCooCoo c4e360fec2 Align: align.toSelection returns "artboard" only for one object with no anchor points selected
The align.toSelection params text and docs/mcp.md said the command
returns "artboard" while one object is selected. With anchor points
selected (Direct Selection) it returns "selection", because the points
align to each other, and with the Artboard tool chosen it returns the
stored choice, Selection. The texts now name both cases, and
crates/mcp/src/ui_catalog.rs is regenerated with cargo xtask ui-commands.

A test covers two anchor points of one path selected while Artboard is
the stored choice.
2026-11-20 15:57:41 -08:00
ruchirguitar 0b57d2233b Properties panel: add contextual Quick Actions for text (Create Outlines, Retype, Find and Replace) (#8778)
* Properties panel: add contextual Quick Actions for text (Create Outlines, Retype, Find and Replace)

* Properties panel: address review comments on Retype reveal idempotency, test assertions and parity docs
2026-11-20 23:43:09 +07:00
dotCooCoo fd33180c84 Live Corners: a Selection tool double-click on a corner widget shows the Transform panel
With the Selection tool, a double-click on a visible corner widget of a
selected live rectangle or polygon now shows and selects the Transform
panel, where the shape's corner radius fields are, as the Rectangle,
Rounded Rectangle, Ellipse, Polygon and Star tools already do. It used to
open the Corners dialog. The tool, the selection, the document and the
undo history stay as they were. Direct Selection's double-click still
opens Corners.

Docs: docs/mcp.md (Live Corners), the ui.corners params text,
docs/ui-parity.md and docs/target-app-parity.md.

Part of #1232
2026-11-19 22:17:01 -08:00
dotCooCoo 089ab75553 Merge main into feat/color-wheel-opacity 2026-11-19 16:41:40 -08:00
dotCooCoo 4aa133a285 Merge main into feat/color-wheel-contrast 2026-11-19 16:36:02 -08:00
dotCooCoo c7de4acabf Merge main into feat/packaging-fold-angle 2026-11-19 15:35:38 -08:00
dotCooCoo 2ab519a630 Packaging Tools: a crease, partial cut or perforation can fold at its own angle
Set Fold Angle… (Object › Plug-ins › Packaging Tools) gives the selected
fold lines their own fold angle, from -180° to 180°, in place of their
role's 90° away from or toward the print, to the millionth of a degree;
reset: true takes it away. The angle is kept in the line's data under
vc-fold-angle, which native files and SVG with Preserve Editing keep and
plain SVG export leaves out of the path's attributes. A line keeps its
angle when it is given another role. The Fold Lines panel shows a Fold
Angle field for the selected lines it can change, empty when they
differ, and a Reset button.

- addon.packaging.setFoldAngle is one undo step, none when nothing
  changes, and is dimmed while the selection holds no Crease, Partial Cut
  or Perforation line that is neither locked nor hidden. An angle stored
  as other text for the same number counts as unchanged.
- addon.packaging.roles also returns foldLines, foldAngle, ownAngles and
  storedAngles for the lines Set Fold Angle can change, which are none
  while nothing is selected.
- A hinge folds at the angle of the line with the most length in it,
  counting a line the planar map splits into pieces whole and a line's
  subpaths on top of each other once; among lines of equal length the
  lowest id wins, in any line order. Before, it took the role of its
  longest piece, so a hinge whose lines have different roles can now
  fold the other way when a split line is the longer one.
- Fold Preview: a panel folded flat onto another (180°) is drawn behind
  that panel's printed side, and at -180° in front of it; a flap folded
  back over a folded panel lies between it and the panel before; a 0°
  hinge keeps its panel level with its parent. Panels in one plane keep
  their order when the panels they fold from are seen edge on, and a
  panel that comes round onto another's plane lies on the side it came
  from. Only panels in one plane stack by these rules; panels in
  different planes go by depth, so folds a hair short of flat stay in
  order wherever the blank lies in the document. The stack is worked out
  from the blank's largest panel whichever panel the window folds about,
  so a double-click on another panel moves the blank without changing
  which panel shows. Panels that 90° folds bring into one plane, such as
  a carton's closing flaps, now stack by these rules too.
- Set Fold Angle…'s dialog keeps the angle within -180° to 180° as it is
  typed, as the panel's field does. Both show every decimal place the
  angle has. ui.menuDialog opens the dialog for
  addon.packaging.setFoldAngle, and gives the command's reason while
  the selection holds no line it can change.
- Set Fold Angle skips a locked or hidden path of a compound path that is
  named by id or selected without its compound. addon.packaging.setRole
  (Make Cut Line and the other Make ... Line items) now skips it too;
  before, it changed the whole compound.
- Folding: a hinge whose middle falls in a cutout turns its panel by the
  side its parent lies on next to the hinge's own pieces, not by a point
  anywhere inside the parent, which folded a panel the wrong way when
  the parent also ran on past the hinge.

Docs: docs/mcp.md (Fold angles), ROADMAP.
2026-11-19 15:33:43 -08:00
dotCooCoo c55515ed41 Merge main into feat/color-wheel-opacity 2026-11-19 15:29:06 -08:00
bflatastic 0810ac5b87 Merge remote-tracking branch 'origin/main' into fix/8001
# Conflicts:
#	crates/mcp/src/ui_catalog.rs
#	crates/ui-egui/src/menus/ui_commands.rs
#	docs/roadmap.md
2026-11-20 05:47:07 +07:00
bflatastic 864ef2f200 Merge main into #8763
# Conflicts:
#	docs/target-app-parity.md
2026-11-20 05:45:14 +07:00