mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 06:39:10 +00:00
The export walks for type and fonts and the artboard crop shared one SymbolBoxes for every object. A SymbolBoxes also holds measuring budgets (effect reaches, 9-slice placements), so in a large document objects late in a walk could be measured by estimates where main measured them exactly. SymbolBoxes::unmeasured makes new boxes that share the name index, and each object is measured in boxes of its own again. - The live-object walk (render/src/live.rs) finds symbols through the frame's SymbolBoxes. - SVG export's filter regions measure each object in unmeasured boxes, and the region boxes share the writer's index. - SVG import keeps each imported symbol's index, so a symbol whose art holds instances no longer scans or indexes the list again. - Object › Rasterize's clipping mask is left as it is on main, with drawn_outline_with removed. - The symbol-read-count feature of vectorcraft-doc gives other crates' tests vectorcraft_doc::symbols_read. New tests check that a frame, an SVG export, a PDF export, the type walk and the artboard crop read the symbol list once among 2,000 symbols and 300 instances with drop shadows.
38 lines
1.2 KiB
TOML
38 lines
1.2 KiB
TOML
[package]
|
|
name = "vectorcraft-doc"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "VectorCraft document model: artboards, layers, objects, appearance (pure data + serde)"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
# `vectorcraft_doc::blend::spines_built` for other crates' tests (dev-dependencies only).
|
|
spine-count = []
|
|
# `vectorcraft_doc::symbols_read` for other crates' tests (dev-dependencies only).
|
|
symbol-read-count = []
|
|
|
|
[dependencies]
|
|
vectorcraft-geom = { workspace = true }
|
|
vectorcraft-color = { workspace = true }
|
|
kurbo = { workspace = true }
|
|
image = { workspace = true }
|
|
# Image headers (PNG and JPEG sizes, `pixels::header_size`) and CMYK JPEG inks (`cmyk`).
|
|
craft-image-codecs = { workspace = true }
|
|
tiff = { workspace = true }
|
|
# 1-bit TIFFs compressed with CCITT Group 3 (Compression 2 and 3).
|
|
craft-stream-codecs = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
chrono = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
flate2 = { workspace = true }
|
|
# The CMYK JPEG reader `cmyk` had before craft-image-codecs, kept as the reference its inks match.
|
|
zune-jpeg = { workspace = true }
|
|
jpeg-encoder = { workspace = true }
|
|
proptest = { workspace = true }
|