A right-click on a wheel marker or a color bar offers Set As Base Color,
Select Shade (a 7 by 7 grid of the color's hue), Color Picker and Remove
Color. A right-click elsewhere on the wheel offers Add New Color, and a
color added on a marker's line moves with that marker while the colors
are unlinked. Set Current Color As Base Color makes the selected color
the base.
The base color is stored on its row (`base: true`) instead of being the
first selected row, so the harmony rules build from it whichever color
is selected for the sliders. Merge, Separate, Randomize and Prominent
Colors keep the marks, and the rows sent to `recolor.apply` leave them
out.
Clicking an Effect › Pathfinder item applies the effect with the
Pathfinder Options in force, and effect.apply journals them. Insert
Menu Item now stores the same params in the item's step, so playback
applies the effect as the click did and a later Pathfinder Options
change does not change the step. The effect dialog takes the options
in force from the same helper.
The pieces a Warp effect cuts an image into share one <image> in the
defs. The writer counted every piece, hidden ones included, so pieces
the file leaves out (hidden, or in a hidden clip group) still put an
<image> into the defs, with the linked file's path under Images: Link.
A confined caller's read-root check looks only at the art the file
draws and did not refuse it.
Image sharing and the colorized-image counts now walk only the art the
writer draws: hidden layers and objects only with hidden layers kept,
and never a template layer's art.
- Test files whose image→craft-image-codecs rewrites didn't compile against
main's newer tests go back to main's versions (engine fileio/tests.rs,
tests_tiffbmp.rs, tests/menucmds.rs, eps tests.rs); they still use the image
crate, which keeps its format features.
- craft_jxl::encode, craft_image_codecs::encode and Image::icc at d6cd7836d.
- jp2read and pdf export pass DecodeOptions, not Limits.
- EPS DCTDecode: grey JPEGs no longer use the image after moving it, and keep
main's one-channel output.
- svg keeps its direct usvg dependency for main's image href code; pdf keeps
jpeg-encoder for CMYK JPEGs.
- clippy -D warnings and rustfmt clean.
When Noise picks the nearest color for a speck, the speck's average now
leaves out the semi-transparent pixels along a cut-out image's edge that
are the color beside them blended with the transparent background.
settle_cut_edges returns which pixels those are. A speck made only of
them merges by border. In Grayscale the speck's gray is read with luma,
the gray Grayscale traces with, and the test probe shift_probe denoises
as a trace does.
The docs now say the rule applies in Color and Grayscale (in Black and
White a region has only one neighboring color, so Black and White Logo
changes only by its Noise value), name `ea3f81d9c3` as the base of the
measurements, and say that the gradient-border test sets Noise 15
because at Noise 8 its borders stray 0.92 px against a 0.9 px limit.
`through` now takes only the ids of the group's edges, each once: a face's
id, an unknown id, another group's edge or an edge given twice is an error
and changes nothing. A hidden edge in it is still skipped by the join. For
a double-click the Bucket passes only edges of the group, each once, so an
earlier click that filled a face whose fill was the edge's stroke paint
(Paint Fills and Paint Strokes both on) no longer sends that face.
The Bucket finds the faces a fill drag crossed among those whose bounds
meet the drag's bounds only.
A canvas test covers the middle-button press and the Space-held press
between two Bucket clicks. The progress-doc line lists the new tests, and
docs/mcp.md says which edges the tool passes in `through`.
Follows #7875.
Extrude & Bevel (Classic) already checked the art of its mapped symbols
against the 400,000-element limit when the effect is applied or edited.
Revolve (Classic) now checks it too, on the object and on a fill or
stroke, instead of accepting the maps and drawing the solid without them.
- A symbol set duplicated in the same document gets the Symbol Set
Density recorded for its source, and a pasted set gets the density
recorded for it at Copy (also after Cut, after the source changed, and
in another document), so symbol.setDensity spaces the copy from that
density. A set with no record at Copy pastes with none.
Document::reid copies the record only when the source is the
document's own node with that id; the clipboard carries the records.
- symbol.adjust counts only the instances it changed: an instance the
brush reached but left as it was (the Symbol Screener at a limit) is
not counted, and a stroke that changes none adds no undo step.
- Method Average gives the Symbol Sprayer's new instance and the Symbol
Screener's instances the mean opacity also when it is below 5%.
- With Use Pressure Pen, a pressure change of 0.05 or more within a step
of the last point gives that point the new pressure. Once a drag has
its most points, a change away from the last point is not kept, and
a pressure change on a long stroke waits for the next preview or the
release instead of sending the whole stroke again.
- The Symbolism Tools Options rows scroll, so OK and Cancel stay in view
in a short window.
With Preserve Numbers, a non-sRGB RGB destination and RGB colors
ICC-tagged as sRGB (the `all` profiles setting, PDF/A-2b, PDF/X-3 and
PDF/X-4), a gray image that carries an ICC profile was converted to sRGB
grays and lost its profile. It now keeps its profile there, as in the
other destinations other than sRGB.
When a pasted pie's wedge links a global swatch that the document gives
another color (swatchConflict "merge", the default), the wedge takes the
document's color. Its legend label kept the contrast it had in the copy,
so a wedge that turned dark could show a black label, and one that
turned light a white label, until the pie was drawn again.
Pasting now reads which wedges show a dark fill before the copy is
linked to the document's swatches. A pie whose wedges change darkness
gets the legend label contrast a redraw sets: white on a dark wedge,
black on a light one. Pies whose legend labels have a fill of their own
keep it. This applies to every paste command, Paste without Formatting
included, and to pies inside opacity masks.
- edit.dropSelection takes profileMismatch and reports what it did, and
clipboard.profileMismatch {sourceDocument, ids} lists what a drop
brings, so with Ask When Pasting on the desktop app asks before a drag
from a document with another profile.
- OK on the paste question asks again when the profiles the paste or
drop brings have changed since it asked.
- A profile question for an open runs under the automation roots in
force where it was asked and those of the caller that confirms it.
- An assignProfile beside another choice than assign is refused with a
message that says it goes with assign only, with catalog rows.
- edit.pasteWithoutFormatting's params text names profileMismatch, and
two doc comments and a docs/mcp.md paragraph are rewrapped.
The Brushes panel menu gains Options of Selected Object…. It opens the
brush type's options dialog for the selected brushed paths, without the
Name row, and OK stores the changed values on those paths' strokes only.
The brush and its other strokes keep their settings.
- brush.objectOptions {ids?, params?, reset?} sets the settings, clears
them with reset, and returns them when given neither. It refuses
params with reset, a selection with no brushed path, brushes of
different types, a bristle brush, a field the type does not take and
a value of the wrong kind. One undo step, none when nothing changes.
- The stroke saves the settings as brush_options in the native file, and
the brush renderer, the expansion of pattern tiles whose brushes vary
at random and color conversion of Hue Shift keys read them.
- Applying another brush, removing the brush or a brush change carried
by Global Edit clears them; renaming the brush keeps them.
- Docs: docs/mcp.md, docs/ui-parity.md; i18n rows for the new strings.
- The flattened symbol points and the points drawn on faces are counted
apart, so the art drawn on earlier surfaces no longer uses up the next
symbol's 400,000-point allowance and drops every map.
- `threeD.mapArt` with `symbol: null` removes a map kept past the
object's surface count (for example after Depth goes to 0); a surface
past the count without a map is still refused.
- The Map Art dialog's Symbol menu is unavailable on an unmapped surface
while the object already has its 64 maps, so no 65th map is written.
- docs: the Feature areas rows no longer list Map Art as missing, and
three-d.md no longer calls 3D export unbuilt.
A version 6 slices resource may follow a record with a descriptor of
version 16, and the reader took any record that starts with the value
16 for one. A record whose ID is 16 then had its first bytes read as a
descriptor, and the records after it were misread or left out. When the
records read one after another, followed by nothing or by one
descriptor (the layout ag-psd writes), only the last record is checked
for a descriptor. Files that follow each record with a descriptor are
read as before.
When image resource 1050 declared more bytes than the image resources
hold, the lookup stopped as if the file stored no slices, and Open and
Place brought the artwork in without the warning that the slices were
left out. The new psdread::resource tells a cut-short resource 1050
apart from one that is absent or that follows another block cut short,
and the slices reader passes that error on, so the warning names it.
Other resource readers keep their behavior.
Paste without Formatting sets each pie legend label in a wedge to white or
black from the wedge colors before it pastes, but a wedge linked to a global
swatch that the document gives another color takes the document's color
only during the paste (swatchConflict "merge", the default). A light wedge
merged into a dark swatch kept a black label, and a later redraw turned it
white.
The copied colors linked to merged swatches now take the document's color
before the labels are set, so the labels match what a redraw sets. Graphic
style links are left for the paste to relink.
A double triangle at the right end of the tab strip of Align, Attributes,
Character, Color, Flattener Preview, Gradient, Info, Paragraph, Stroke,
Transform and Transparency steps the active panel through its display
sizes. The sizes are the states the panel menu's Show/Hide Options items
set (Transparency: thumbnails and options, thumbnails alone, neither),
largest first, and the smallest goes back to the largest.
window.panel.cycleOptions {panel} does the same and returns
{panel, size, sizes}. An unknown panel or a panel without sizes is an
error and changes nothing.
Docs: docs/mcp.md, docs/control-protocol.md, docs/ui-parity.md.
A compound shape closes the open paths in it, so a straight line
encloses no area and contributes no area to the shape. Make Compound
Shape (and Alt-clicking a Shape Mode) still makes the shape as before,
and now returns a warning, shown in the status bar, when a member is or
holds an open path that encloses no area once closed, a line inside a
group or a compound path included. The warning names Object › Path ›
Outline Stroke. A self-crossing open path is measured by its fill rule,
so a bow tie whose signed area is zero gives no warning.
The warning has a row in each complete-message catalog.
Reported in #7849.
file.place.queue read each file without a password, so an encrypted
PDF, .ai or .ait file was skipped and never reached the cursor. It now
stays in the cursor at 612 x 792 pt, VectorCraft's own size, with
needsPassword: true and no thumbnail. A click or drag on it in the app
asks for its password, with the Place dialog's Show Import Options on
or off; headless, a click on it places nothing. A file that fails for
a bad option or for another reason is still refused or skipped.
File > Place of an encrypted PDF given a page and no password, with
Show Import Options on, now asks for the password too, as it does with
the option off; it used to fail for want of the password.
With the art of a graph design in a series given first and aligned: true,
effect.remove and effect.duplicate with `indices` skipped an effect of the
art that no other object has, and edited the others. With art [shadow,
roughen], a mark [shadow] and indices [0, 1], effect.remove took the
mark's shadow off and succeeded. Such an edit is now an error that leaves
the document and its undo history as they are, as the same index given
alone already was. An object that lacks one of the effects while another
object has it is still left out for that effect.
paint.invert and paint.complement given only the art of a graph design,
with no item, returned success for a target other than "object" or
"contents", because the topmost-fill path read the target only after the
early return for design art. The target is now read before that return.
Conflicts resolved in favour of main/#7664 in the 13 source files both touched
(doc/cmyk.rs, metafile/dib.rs, pdf images, svg import/files.rs, render paint and
encode tests, trace, engine load.rs), keeping main's newer TIFF/CMYK, DIB and PDF
image fixes. vectorcraft-doc stays on main's version until its CMYK reader moves
to craft-tiff. The image crate keeps its format features, and usvg, tiff,
zune-jpeg, hayro-ccitt and jpeg-encoder stay for the readers not yet moved.
Codec crates pinned to craft-libs d6cd7836d364177661b0ae17f48a0805e83a5f32.
Also fixes the compile errors CodeRabbit flagged (jp2read DecodeOptions,
filters.rs use-after-move) and the encode() arity at d6cd7836d.
A Radial Blur whose saved centerX or centerY lies outside 0 to 1 draws
at the nearest edge, and its dialog showed the center there. The dialog
kept the saved value in its fields, though, so OK without moving the
center sent that value, and effect.setParams refused it.
The Blur Center box now writes the center it shows, kept within 0 to 1,
into the dialog's fields on every frame, so OK stores the edge.
With span: "selection", paint.setStroke placed the gradient on the union of
each target's topmost stroke box, also when `item` named a lower stroke,
including an aligned row of a graph design's art. With a 40 pt lower stroke
under a 1 pt topmost one, the gradient reached 0.5 pt past the objects
instead of 20 pt. Each target's box is now that of the row it edits.
main added the built-in Neon & Glow graphic style library, so the
style-name check now lists 86 names. Each complete catalog gets rows for
Cyan Neon, Magenta Laser, Amber Tube, Electric Lime, Pulse Violet and
Cobalt Phosphor, after the other style rows.
- ka: main already has rows for Weather Icons, Soft Shadow and Hard
Shadow, so the branch's copies of those rows are removed.
- hi: Triad Coral and Triad Teal use त्रिक, the term of the Triad row,
as the Hindi glossary check requires.
A Reset button next to Extrude & Bevel's Bevel heading, on the Object
tab of the options dialog and of the 3D and Materials panel, sets Bevel
Shape, Width, Height, Repeat, Space, Bevel Inside and Bevel both sides
back to their defaults. Depth, Twist, Taper, Cap, the rotation, the
lights and the graphics keep their values. In the panel the reset goes
to each selected Extrude & Bevel as one undo step. The button is
unavailable while every bevel setting is at its default, and a setting
the selected effects hold with different values counts as changed.
Setting the Variable field through ui.dialog.set clears Name and Kind
until a frame fills them from the chosen variable. Setting Name or Kind
alone before that frame marked the fields as filled, so the other field
stayed null and the dialog showed "null" for Name or a blank Kind. OK
already read a null field as the variable's own value, so only the
displayed field was wrong.
A frame now fills every field when the chosen variable changes, and
after that fills only a field that is still null, keeping a field that
was set.