Commit Graph
11080 Commits
Author SHA1 Message Date
dotCooCoo d4bbacc3eb Export: live effects in symbol art apply in EMF, WMF and SVG
EMF, WMF and SVG wrote a symbol instance from its symbol's art as stored,
so live effects inside that art were missing: a square moved 100 pt by a
Transform effect stayed in place in the file while the canvas drew it
moved. Art whose own place is off the artboard was left out even when
the effect moved it onto it.

These exports now call bake_document_placing_symbols, as PDF, print, EPS
and DXF do: each instance of a symbol whose art needs baking is written
as that art placed by the instance and then baked, so an instance that
scales or turns its art does not scale what its effects do. EMF and SVG
clip 9-slice cells and WMF does not, as each places other instances. In
SVG those instances are written as groups; instances of symbols without
such effects still share one <symbol>. Preserve Editing still embeds the
document with its live effects.

WrittenLayers gains hidden_objects. SVG sets it with Hidden Layers on,
since it then writes hidden objects too, so a hidden instance is written
hidden with its effects applied. The other exporters leave it off.

An SVG instance nested in another instance's art was shared through
<use> when the def allowed its own transform, while the <use> writes
that transform after the outer instances'. A stroked symbol nested in a
scaled instance then drew its stroke at double weight. The check now
uses the transform the <use> writes.
2026-11-15 10:57:09 -08:00
dotCooCoo 7ced0d5c9a Type: Tsume applies in vertical type and to color glyphs
Tsume no longer stops at horizontal type. In vertical type an upright
character loses its share of the blank space above and below its ink,
inside its cell down the column (the font's vertical metrics, else at
least one em, with the Proportional Metrics change), in point type and
on a path. A character lying on its side is measured along its own
width, and the characters of a tate-chu-yoko block close up across the
column while the block keeps its one em.

Tsume now measures what a glyph paints: its COLR or SVG art, else its
color bitmap, else its outline, so a color glyph is no longer measured
by the outline its art replaces.

Docs: docs/mcp.md, docs/target-app-parity.md, text.setRangeStyle and
text.setFormat params.
2026-11-15 10:56:09 -08:00
dotCooCoo af64010722 Merge main into fix/flatten-staggered-boxes-sweep-order 2026-11-15 10:56:05 -08:00
dotCooCoo 8d9a467005 Flatten: boxes staggered right and up meet only the box before in the grouping sweep
When an arriving box that joins everything it overlaps covers an open
box to the right and above, and ends higher than it, the open box now
keeps only its part below the arriving box's bottom. The sweep's tree
holds each open box by its current top, at a place that is either a
box's top or just below a box's bottom, so a box can be cut short from
above, from below, or both. Any later box that would have met a removed
part meets the arriving box instead, which is open at least as long and
in the same set, so the groups stay the same. A box held by an open box
is not opened and cuts nothing short.

512 boxes, each 1 pt right of and above the one before, or left of and
below it, now meet 511 open boxes in the sweep instead of 130,816, with
and without transparency.
2026-11-15 10:54:58 -08:00
dotCooCoo f1507ccec3 Merge main into fix/an-image-whose-recode-fails-is-written-without 2026-11-15 10:54:25 -08:00
dotCooCoo 831e539ecc SVG export: a drawn repeat mark in scaled type keeps its character's width
In horizontally scaled type, live SVG text stretched the character a
repeat mark is drawn as (Kurikaeshi Moji Shori) to the mark's advance with
textLength, so a reader narrowed or widened it whenever the two glyphs'
widths differ. Its textLength now takes the width the canvas draws that
character at; the text after it is still placed anew.
2026-11-15 10:54:05 -08:00
dotCooCoo c1ba6e8cd3 Merge main into feat/recolor-add-remove-color-tools 2026-11-15 10:51:23 -08:00
dotCooCoo a8cb5d03ec i18n: drop Georgian and Russian script error rows that main already has
main's Georgian and Russian catalogs now translate the thirteen script
interpreter core errors themselves, so the rows this branch added for
them were duplicates and bundled_catalogs_are_consistent rejected the
catalogs. The rows main has stay as they are.
2026-11-15 10:51:15 -08:00
dotCooCoo db61abcef0 Eraser: the drag's area outline matches the release when pressure or a mode starts mid-drag
Once the pen pressed less than fully, the steps of the outline already
built kept the tip of a stroke without pressure, while the release reads
full pressure at those points. The outline now starts again when the
pressure first counts.

A Tilt, Bearing or Rotation mode set during the drag gave the early
points the pose of later ones. The release reads no poses for such a
stroke, so the outline now keeps the set values for them too, and the
same for a Pressure mode set during the drag.
2026-11-15 10:50:23 -08:00
dotCooCoo f92a366e3c Merge main into fix/svg-import-absolute-ltr-character 2026-11-15 10:48:48 -08:00
dotCooCoo 250b642812 Merge main into fix/svg-import-png-keeps-icc-profile 2026-11-15 10:48:38 -08:00
dotCooCoo d154d72890 SVG import: absolutely placed characters one text object cannot place import as a group
SVG reorders right-to-left characters only within a text chunk, while one
text object reorders the whole line. In
<text x="100 160 220" direction="rtl">אbג</text> the left-to-right b is
drawn right before ג with no kerning between them, so ג stayed where the
line put it and the import warned.

When kerning cannot put every absolutely placed character on its x, the
text is now cut before each such character and each piece is placed
again, and the text imports as a group of point type objects named after
the element. A text one object can place stays one object. A split text
in a clip path clips by the outlines of all its objects.
2026-11-15 10:48:26 -08:00
dotCooCoo 2d361e2ad7 SVG import: a raster stored again as PNG keeps its ICC profile
An image that SVG import writes again as PNG (a TIFF, or a PNG, JPEG,
GIF or WebP whose orientation turns it) now keeps the ICC profile its
file carries, as an iCCP chunk, when the profile's color space is the
stored samples': gray for gray samples, RGB for RGB ones. Open and
Place already keep it. Profiles of another color space, ones too short
to be a profile, and the profile of a TIFF whose own reader converts
its pixels to RGBA are left out, and the image still imports. Sample
types a PNG doesn't hold are stored as 8-bit RGBA, as Open and Place
store them.
2026-11-15 10:47:47 -08:00
dotCooCoo 2123ecd397 Properties: the Graph section test expects the Graph Type dialog
Graph Type… now opens Object › Graph › Type…'s own dialog (graphType)
since main made Graph Type a dialog of its own, so the test checks that
kind and the graph's column type instead of the generic command dialog.
2026-11-15 10:44:37 -08:00
dotCooCoo 2f432926b2 Smooth tool: keep corners on a path cut into very many short segments
The Smooth tool measured the turn around each corner by walking at most
256 segments from the anchor, and did not keep an anchor as a corner
when twice the reach lay farther than that. A corner of a path cut into
short segments was rounded off: an open path with 0.05 pt segments at
the default 12 pt reach, or a square in 0.25 pt segments with a 40 pt
reach.

The walk now has no segment limit. Each segment's length is measured
once per path, and the lengths are added up in blocks of 2, 4, 8 and
more segments, so finding the point a reach away skips whole blocks and
measures only the segment it lands in. Each block adds up only its own
segments, so short segments keep their lengths next to very long ones.
2026-11-15 10:41:11 -08:00
dotCooCoo 08b3c0b00a Keyboard Shortcuts: Export Text… also saves the list as a CSV file
Export Text…'s save dialog in the desktop app adds a CSV type after
Text and Shortcut sheet, and shortcuts.exportText takes `format: "csv"`.

The CSV file is UTF-8 with a byte order mark, CRLF line ends and RFC
4180 quoting. Its header row is Group,Command,Shortcut in every UI
language, then one record per row the dialog lists, in the sheet's
groups (Tools, then a group per top-level menu) with names and
shortcuts in the UI language. A row with no shortcut has an empty
Shortcut field. A field that starts with =, +, - or @ and has more
after it, or that starts with a tab or a carriage return, starts with
an apostrophe.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-15 10:39:56 -08:00
dotCooCoo 8f9cdb5988 Merge main into fix/js-interp-errors-translated 2026-11-15 10:39:47 -08:00
dotCooCoo f60d329363 Graphs: rewritten axis line paint and no-op reorders keep what a kind keeps
paint.setFill, paint.setStroke, addon.color.fillToStroke and
addon.color.strokeToFill on an axis line, tick mark or radar ring that
already showed the paint they write stored nothing, so a paint its kind
kept from another line came back when the graph was drawn again. The
paint written to the line's topmost visible fill or stroke row is now
stored for its kind; its other attributes stay as the kind keeps them.
That capture runs after the change-based one, so the frontmost written
line sets the paint its kind keeps.

An appearance.moveItem that left a graph label's rows or Contents row
where they were stored that label's rows for its kind, replacing the
rows the kind kept from another label, and recorded an undo step. A
reorder now keeps rows only for the labels and lines whose stack it
changed.
2026-11-15 10:39:30 -08:00
dotCooCoo 90708361c0 Merge main into fix/export-nested-symbol-reshape-budget 2026-11-15 10:37:36 -08:00
dotCooCoo 878c6ba1e1 Export: nested symbol instances count their baked art against the symbol art limit
An export that bakes a symbol instance with geometry effects inside the
art of another such instance counted only the symbol's art before its
effects against the 262,144 objects of nested symbol art one export
bakes. Copies the art's effects made were not counted, so the baked art
could pass the limit. The art the instance bakes to now takes the place
of the symbol's art in the count; when it does not fit, the instance
stays as it is with its effects and gives back what its art held while
it baked, as it does when reshaping it gives nothing.
2026-11-15 10:36:47 -08:00
BFlat 957397e7a1 Merge pull request #7710 from dotCooCoo/feat/packaging-fold-roles
Packaging Tools: Make … Line gives paths a fold line role that their swatch carries
2026-11-16 01:35:03 +07:00
BFlat 9776feb15c Merge pull request #7887 from dotCooCoo/fix/aligned-effect-indices-unmatched
Effects: removing or duplicating several aligned effects of a design's art refuses one that no object has
2026-11-16 01:34:54 +07:00
BFlat 6080a8a87f Merge pull request #7886 from dotCooCoo/fix/span-gradient-stroke-row
Gradients: a gradient spanning the selection on a lower stroke fits the box that stroke paints
2026-11-16 01:34:45 +07:00
BFlat 39336f44d9 Merge pull request #7863 from dotCooCoo/feat/diacritic-position
Type: Adjust Horizontal and Vertical Diacritic Position move marks off their letters
2026-11-16 01:34:36 +07:00
BFlat 689d60d5b8 Merge pull request #7891 from dotCooCoo/fix/plain-paste-merged-swatch-label-contrast
Paste: Paste without Formatting sets pie legend label contrast from merged swatch colors
2026-11-16 01:34:28 +07:00
BFlat 38aec2b2fb Merge pull request #7797 from dotCooCoo/fix/outlined-strokes-under-a-non-uniform-type
Type: outlined strokes on unevenly scaled type keep their thickness in each direction
2026-11-16 01:34:20 +07:00
dotCooCoo a6d9dd2881 Import PDF: artboards on trim boxes keep the bleed between them
Opening a PDF with Crop To Trim Box put each artboard 36 pt after the
one before, while the bleed boxes round the trim boxes became the
document's bleed. With a bleed over 18 pt, one page's bleed reached
into the next artboard, and a page exported with its bleed showed part
of its neighbor. The document's bleed is now read from every picked
page first, and the artboards are 36 pt apart plus that bleed on both
sides, as linked pages on their trim boxes are laid out since #7723.
2026-11-15 10:34:12 -08:00
BFlat ad03b850a5 Merge pull request #7851 from dotCooCoo/fix/intertwine-hit-walk-limit
Selection: an Intertwine group's members in symbol art count toward a click's object limit
2026-11-16 01:34:11 +07:00
BFlat f8af52bba1 Merge pull request #7790 from dotCooCoo/fix/directional-pixel-effects-before-a-rotating-or
Effects: directional pixel effects before a rotating or reflecting Transform effect keep their angle
2026-11-16 01:34:02 +07:00
BFlat 6c0c5fa031 Merge pull request #7861 from dotCooCoo/fix/one-point-brush-continuation-keep-selected
Brushes: a one-point brush.freehand continuation follows keepSelected
2026-11-16 01:33:54 +07:00
BFlat 54d20b303c Merge pull request #7860 from dotCooCoo/feat/variables-data-set-box-rename
Variables: the Data Set box renames the current data set
2026-11-16 01:33:45 +07:00
BFlat 1add7b2643 Merge pull request #7858 from dotCooCoo/fix/symbol-controls-spacer-keeps-transform-room
Control bar: symbol instance controls keep the Transform link's room in a narrow bar
2026-11-16 01:33:37 +07:00
BFlat 0be78d03a3 Merge pull request #7885 from dotCooCoo/fix/radial-blur-center-clamped-field
Effects: Radial Blur's dialog sends a saved Blur Center outside the bounds at the edge
2026-11-16 01:33:27 +07:00
BFlat f4f0c49501 Merge pull request #7892 from dotCooCoo/fix/psd-cut-short-slices-warn
PSD: a slices resource cut short warns that the slices were left out
2026-11-16 01:33:18 +07:00
dotCooCoo c0db7a8426 .ai save: envelopes on a large canvas stay editable
The editing copy of a large canvas wrote every envelope as its drawn
art. It now writes warp, mesh and top object envelopes live at 1/10 of
their size with the rest of the art, under the same checks as on a
normal canvas, and the reader opens them at their size from the editing
data alone or beside the PDF part.

Read from the editing data alone, a Large Canvas copy also gets:
- an envelope's saved box size compared with its contents at the
  declared scale, so a bounds margin kept with Distort Appearance is no
  longer lost;
- every path's stroke weight, dashes and dash offset at the declared
  scale, not at 1/10.
2026-11-15 10:33:11 -08:00
BFlat a1ec9d7e84 Merge pull request #7852 from dotCooCoo/feat/3d-panel-export-3d-object
3D and Materials: Export 3D Object adds the selection to Asset Export
2026-11-16 01:33:09 +07:00
BFlat b759c9e369 Merge pull request #7874 from dotCooCoo/fix/pdf-dont-include-profiles-removes-image-profiles
PDF export: a set Don't Include Profiles removes image color profiles
2026-11-16 01:33:00 +07:00
BFlat a156cf31f7 Merge pull request #7859 from dotCooCoo/fix/peek-stays-until-pointer-moves
Window: panels shown from the edge hide only after the pointer moves away or a hold ends
2026-11-16 01:32:51 +07:00
BFlat 57e573d914 Merge pull request #7880 from dotCooCoo/fix/drop-target-import-dialogs
Place: an import dialog a drop opened places in the document the file was dropped on
2026-11-16 01:32:43 +07:00
BFlat eaadc48d5a Merge pull request #7835 from dotCooCoo/feat/contextual-task-bar-smooth-free-transform
Contextual Task Bar: the Smooth tool shows its Fidelity and Tool Options
2026-11-16 01:32:29 +07:00
BFlat e1f8a15d61 Merge pull request #7855 from dotCooCoo/fix/live-paint-shift-triple-click-joined-faces
Live Paint: test that a Shift-triple-click keeps joined faces of the same fill
2026-11-16 01:32:15 +07:00
BFlat 351e9cfe1e Merge pull request #7856 from dotCooCoo/fix/pdf-knockout-overprint-isolation
PDF import: an isolated group with overprinting art inside stays isolated
2026-11-16 01:31:50 +07:00
BFlat a505c34ceb Merge pull request #7853 from dotCooCoo/fix/svg-blur-by-direction
SVG import: a blur that differs by direction is kept as its SVG filter
2026-11-16 01:31:37 +07:00
BFlat fa7e26aa11 Merge pull request #7882 from dotCooCoo/fix/variable-options-fills-unset-field
Variables: Variable Options fills the field left unset after the Variable changes
2026-11-16 01:31:28 +07:00
BFlat 20e577fe45 Merge pull request #7758 from dotCooCoo/feat/recolor-find-colors
Recolor Artwork: Find shows the selected rows' art and dims the rest
2026-11-16 01:31:19 +07:00
BFlat fe5787405e Merge pull request #7879 from dotCooCoo/fix/screens-artboard-name-keys
Export for Screens: artboard name fields close on a first-frame key and commit when another opens
2026-11-16 01:31:09 +07:00
BFlat f23d7f9d00 Merge pull request #7744 from ruchirguitar/feat/4936-check-spelling-dialog
feat(ui): implement Check Spelling modal dialog (#4936)
2026-11-16 01:31:00 +07:00
dotCooCoo 3607c70efe Glyphs: a cell's corner triangle opens a pop-up of its glyph's alternates
A Glyphs panel cell whose glyph has alternates shows a small triangle in
its lower right corner. A click on it opens a pop-up of that glyph and
its alternates in the font's order. Picking one inserts the character at
the Type tool's caret drawn with that glyph, or draws the selected
character with it, in one undo step; the cell's own glyph inserts the
character as a double-click does. In Entire Font a glyph no character
maps has the triangle too, and a pick goes on the selected character as
a double-click on that glyph's cell does.

A pick is tried on a copy of the document first, so one the character
cannot be drawn with (All Caps, for example) changes nothing and the
status says why. A Select All over a threaded story is replaced as
typing replaces it. The triangle's size and the pop-up's eight columns
and six rows are VectorCraft's own.
2026-11-15 10:25:04 -08:00
dotCooCoo 58fc13a1e0 Eraser: the drag's area outline takes the tip the pen gives at each step
The outline of the area an Eraser drag covers used the set Angle and
Roundness and varied the Size only with Pressure, while the release
(since #7726) erases with the tip the pen gives at each point on the
Pressure, Tilt, Bearing and Rotation modes.

Each step now takes the tip halfway between those at its ends, read as
the release reads the stroke. A step whose angle or roundness varies is
outlined where its own tip is round, and the parts inside other steps'
areas are removed as before. A pen turned in place gives the last step
the new tip, and a changed mode or Variation starts the outline again.
A round tip whose Size follows the pen shows each step that wide.
Random shows the value itself until the release draws it.
2026-11-15 10:23:55 -08:00
dotCooCoo 6bc3249fdf Keyboard Shortcuts: Export Text… also saves a printable shortcut sheet
Export Text…'s save dialog in the desktop app offers two file types:
Text (the text file as before, still the first and default type) and
Shortcut sheet (PDF). The type picked decides the file.

The sheet lists the rows that have a shortcut, Tools and then a group
per top-level menu, each under a colored band, shortcut on the left and
name on the right. The groups flow down four columns of landscape Letter
or A4 pages, titled with the set's name. A row with several shortcuts
has a line for each, a shortcut too wide for its column is set smaller,
and a long name ends in "…". The sheet is laid out as a document and
written by the PDF writer.

shortcuts.exportText takes `format` ("text" or "sheet"; default text)
and `pageSize` ("letter" or "a4"). Without `pageSize` the sheet is on A4
when the current document prints on A4, else on Letter. A `path` is
written as given, as text without `format`, and a bad value is an error.
When `format` names a format, or the save dialog reports the type
picked, the name the dialog returns gets that format's extension, and a
file already at the changed path is replaced only after asking.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-15 10:20:55 -08:00