mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-24 19:36:42 +00:00
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.
29 lines
1.0 KiB
TOML
29 lines
1.0 KiB
TOML
[package]
|
|
name = "vectorcraft-tools"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "VectorCraft tool state machines: pointer events in, commands and overlays out"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
vectorcraft-geom = { workspace = true }
|
|
vectorcraft-color = { workspace = true }
|
|
vectorcraft-doc = { workspace = true }
|
|
vectorcraft-brush = { workspace = true }
|
|
vectorcraft-pathops = { workspace = true }
|
|
vectorcraft-effects = { workspace = true }
|
|
vectorcraft-text = { workspace = true }
|
|
kurbo = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
craft-image-codecs = { workspace = true }
|
|
# The tests lay type out in the bundled fonts (the workspace leaves turning them on to the engine).
|
|
vectorcraft-text = { workspace = true, features = ["test-fonts", "bundled-fonts"] }
|
|
# How many times a path is flattened, and how often art is measured for the locked artboards.
|
|
vectorcraft-doc = { workspace = true, features = ["spine-count", "locked-artboard-count"] }
|