mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-03 15:21:17 -05:00
125ab66348
The type, pie, side count and corner widgets, the Objects on Path, Mirror, Grid and Radial Repeat controls, the Image Trace Split divider and the center point now check that a selected object is of a kind that has the widget before asking whether it is editable. With an artboard locked, the editability check measures the art of the layer object holding the object, so a large selected group of another kind was measured on every repaint and pointer move. The widgets shown are the same. A test-only counter (vectorcraft-doc feature locked-artboard-count) counts those measurements; widget_order_tests checks that objects of other kinds are not measured, compares every widget with the editability-first result on a mixed document, and holds an ignored timing test, widget_order_perf.
40 lines
1.4 KiB
TOML
40 lines
1.4 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 = []
|
|
# `vectorcraft_doc::locked_artboard_measures` for other crates' tests (dev-dependencies only).
|
|
locked-artboard-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 }
|