Moves every craft-libs rev (Cargo.toml, Cargo.lock, apps/vectorcraft-web,
xtask pdf_deps) from 138ce9929e to craft-libs main 6b67abe4b3. The egui,
winit and acadrust revs match the ones that craft-libs rev pins.
- Canvas: the drag-session restart after a Removed cancel (resume_carry
and CanvasCache::removed_press) is removed; craft-libs #5281 keeps the
session running while the canvas is hidden for a pass.
- DXF export: blocks_compat is removed; group blocks are written through
craft_dxf::drawing::Block, Drawing::blocks and Codes::insert
(craft-libs #5381), so Drawing::blocks now holds them.
- DXF import: VectorCraft's copy of the REGION reader (import/acis.rs and
the region helpers in reader.rs) is removed; regions are read with
craft_dxf::acis (craft-libs #5513), capped at the import's element limit.
The hex and size checks of the binary data are tested in craft-dxf.
- CGM import: the cgm feature is removed, so binary CGM files open and
place in every build (craft-libs #5410). The reader's notes on unread
fonts, appended text, continuous alignment, marker types and character
sets now come back as warnings too. docs/mcp.md describes the import.
- Canvas: the anchor marks draw a mark's fill and edge as one shape and
leave out other paths' handles that cannot reach the canvas, as
BezierOverlay does since craft-libs #4938, so they keep painting what
the overlay paints.
- Native files: craft-vectorcraft-format's VERSION is 5 (craft-libs
#5366). Saves for version 4 keep placed documents, Color Halftone's Max
Radius in pixels and Twist angles as before (new PLACED_SINCE), and only
live stars become paths there (LIVE_STAR_SINCE). A version 4 file from
0.21.0 or later still opens with its Twist angles as saved. Save As
lists version 5, and the version option defaults to 5.
- Layers panel test: icons share packed atlas pages since craft-libs
#4275, so the test tells icons apart by texture and atlas rectangle.
The shadow plane needs Shading on, a light above 0% intensity and the
widened shadow bounds on the plane, and a plane image counts toward the
16-image limit even when it shows no shadow. A 0% opacity solid stays in
the shared bounds the projection uses, so it can change the image's size.
With Background set to Transparent, the 3D rendered image's Bitmap color
model now makes each pixel opaque black or fully transparent: a dark pixel
at least half covered is black, and a light pixel or one less than half
covered is transparent. Before, white pixels stayed white and edge pixels
kept partial coverage. With a white background each pixel is still black
or white.
`RENDER_COLOR_MODELS` is exported from the effects crate beside
`RENDER_BACKGROUNDS` and `RENDER_QUALITIES`.
Docs: docs/three-d.md, docs/mcp.md, docs/target-app-parity.md, params text.
docs/mcp.md names all twenty-one built-in libraries, adding Paint, Ornamental, Image Brush, Artistic Brushes and Vector Packs; the Strokes rows count twenty-one; the Impact Bursts bullet drops a brush length its art does not share.
docs/mcp.md names Impact Bursts and its six brushes with id impact-bursts, and the Dry Media brushes go back to Dry Media; the Strokes rows count sixteen generated libraries; an evidence bullet describes the library. The gaps.md status line keeps main's text.
The 3D effects' `render` object takes `colorModel` (`document`, the default,
`grayscale` or `bitmap`). Grayscale gives each pixel of the rendered image the
Rec. 709 luma of its color, and Bitmap makes it black or white, after the
background and with each pixel's transparency kept, as Effect › Rasterize does
with the same model ids. Edge pixels are mapped from their straight color
before the coverage is rounded. Grayscale and Bitmap images are stored as gray
PNGs, and the model is part of the rendered image's cache key.
Any other value is refused with an error and leaves the object and the undo
history unchanged. The setting is saved with the effect.
Render Settings › Raster Settings… gets a Color row (RGB, Grayscale, Bitmap).
It opens blank for a selection that holds different models, and OK sets the
picked model on every selected object in one undo step.
Docs: docs/three-d.md, docs/mcp.md, docs/target-app-parity.md, params text.
Scene::stroke returned from the brush branch before it checked the stroke's
blending mode, so a brushed stroke with Multiply lost its blend in WMF, EMF
and PICT output without the blending warning. The check now runs first.
docs/mcp.md: name the output files for one and several artboards, the
visible-art frame limit, and when oversized fills are split or thinned.
docs/control-protocol.md: Open and Place also read .pct, .pic and .pict.
Render Settings > Rendered drew the shaded faces instead of the image whenever
a solid's fill or stroke was below 100% opacity or in a blending mode other
than Normal. Such a solid now draws its own image in that opacity and blending
mode, lit and shadowed as in the single image, in the order of the fills and
strokes; with Shadows on, the shadow plane draws first, one image for each run
of solids in the same opacity and blending mode. An effect on one fill or
stroke draws its shadow plane behind the object's other fills and strokes, and
with background white one white rectangle goes behind its images. A solid at
0% opacity draws nothing, casts no shadow and is left out of the image's size
and of the rendered mesh budget. The images share the pixel and work limits;
past 16 images the shaded faces are drawn.
Revolve on a group still draws its shaded faces when a member's surface is
see-through or blended, now with its own warning. Gradients, patterns,
mapped graphics and masked members keep the shaded faces.
A block's symbol was looked up by its scale alone, so a placement whose
art the nesting limit cut short, or that left out a block placing one of
its ancestors, could hand that shortened art to a complete placement at
the same scale. The symbol key now also holds the depth where the
block's art reaches the nesting limit (counted under the ancestors it
places) and the ancestors it places within that limit.
The scale scan reuses a "yes" only while none of the blocks it went
into to reach the dashes is an ancestor, and keeps up to four of them;
it checks anonymous blocks with everything they inherit, as they are
drawn. Inserts on hidden layers are not followed. The new shape checks
have an import-wide work budget and a memory budget.
Rows of the Profile drop-down below Uniform can be dragged to a new
place, and stroke.widthProfile.move {name, to} does the same from a
script. Uniform stays first. The order is kept with the preferences
(widthProfileOrder) and is stored only while it differs from the
default one.
- move takes a profile's id or its label, and refuses Uniform, an
unknown name and a `to` past the last row.
- Moving a profile to the place it already has changes nothing.
- A deleted saved profile leaves the order, so one saved later under
the same name goes to the end of the list.
- Reset Profiles also puts the built-ins back in their first order,
and is enabled when only the order changed.
Ported from the reordering part of #10920.
Co-authored-by: erolkarino <[email protected]>
The CMYK fields of a script's picker now convert through the CMYK profile
of the script's document whenever one is given, not only in a CMYK
document, matching the gamut warning. An RGB color opens through the
active RGB profile, which the picker's RGB fields read its channel values
in, so the opening swatch and the fields agree. docs/mcp.md names the
profiles the picker uses.
A curved fill with more points than one polygon holds is first flattened
more coarsely. That loses detail, so the export now adds a warning for it,
and docs/mcp.md names the warning with the others.
craft-libs moves to the current head of storytold/craft-libs#5541
(c192150685), which stops counting polygon points at the limit and sets a
black foreground before each pixel map.
File > Open refuses an RTF file that ends inside a group as damaged
instead of opening the text read before the end; File > Place still
places that text. Binary data and bytes after the document's closing
brace are skipped, as the reader skips them.
Text Import Options for a file File > Open asks about now waits while
any dialog is open, as Missing Fonts does, so the two never show at
once.
The File > Open filter test uses the extensions and formats this build
reads, so it holds where no DWG decoder is built in.
docs/mcp.md's Width profiles section says which commands the footer's
Add to Profiles, Delete Profile and Reset Profiles run, and the
progress doc gets a line for the footer with its tests.
A .txt, .rtf, .docx or .doc file that starts with a PDF header (%PDF-
and a version such as 1.7) or an Affinity signature opens as that
format again, as it did before File > Open read text documents, and
File > Open asks no Text Import Options for it. A plain text note that
only starts with "%PDF" or "<svg" still opens as text.
Docs: docs/mcp.md (open_file), open_file's description.
With an add-on dialog previewing (Arrange in Grid, for example),
File > Place ran inside the preview's interaction, because every
`file.*` command other than `file.documentColorMode` was treated as one
that reads the drawing on show. The placed art went into the preview
document with no undo step of its own, and Cancel removed it.
`file.place` now runs on the document without the preview, as other
edits do: it records its own undo step and stays after Cancel and OK.
Save, Export, Copy and the other `file.*` commands still act on the
drawing as the preview shows it.
Docs: docs/mcp.md (undo/redo row).
A fill with more points than one polygon holds is flattened more
coarsely, and a small figure of two curves could then shrink to two
points and be left out. Each figure now keeps its finer outline when
the coarser one would drop it.
The warnings and docs/mcp.md now give the polygon limits as 8,189 and
8,187 points, since a polygon's size is a signed 16-bit count.
Takes main's craft-libs rev 4f3e34d0dd. Character Style Options and Paragraph Style Options canvas support and their two tests move to #10953, which waits on storytold/craft-libs#5510.