diff --git a/Cargo.toml b/Cargo.toml index 8aa545a1bf..2396b9cb2f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,46 +11,46 @@ rust-version = "1.95" repository = "https://github.com/storytold/vectorcraft" [workspace.dependencies] -craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57", default-features = false, features = ["interpret", "write"] } -craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } +craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59", default-features = false, features = ["interpret", "write"] } +craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } # The `.vectorcraft` envelope: its members, version, embedded images and the data after the JSON. -craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } +craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } # `.pcraft` documents: their manifest, full-size composite, preview, layer pixels and ICC profile. -craft-doc = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57", features = ["pcraft-pixels"] } +craft-doc = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59", features = ["pcraft-pixels"] } # Native Affinity documents (craft-libs#914). -craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } +craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } # Bounded CDR (v1-v27) and CMX (32-bit) reader (craft-libs#778). -craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } +craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } # SVG parsing, limits, SVGZ and writer (craft-libs#778). -craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57", features = ["tree"] } -craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } +craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59", features = ["tree"] } +craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } # EPS container, previews, ASCII85 and DSC comments (craft-libs#778). -craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } +craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } # DXF tags, reader and writer (craft-libs#778, #926, #927). -craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } +craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } # WMF, EMF and EMF+ reader (craft-libs#778). -craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57", default-features = false, features = ["read", "write"] } -craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } +craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59", default-features = false, features = ["read", "write"] } +craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } # The framework facade (`craft::ui`, `craft::settings`, `craft::platform`, ...). No default features: each crate names # the members it imports. -craft = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } +craft = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } # Below the egui layer, so not through the facade: the colour harmony rules and their settings (craft-color-ui # without its `ui` feature), the colour type they work in, and the craft-fonts tables the text crate's build writes. -craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } +craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } # internal vectorcraft-geom = { path = "crates/geom" } vectorcraft-color = { path = "crates/color" } @@ -193,13 +193,13 @@ lto = "thin" codegen-units = 1 [patch.crates-io] -hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -krilla = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } -linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57" } +hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +krilla = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } +linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59" } ecolor = { git = "https://github.com/storytold/egui.git", rev = "932a73b28560acb1a695533307b2cd0d66a42081" } emath = { git = "https://github.com/storytold/egui.git", rev = "932a73b28560acb1a695533307b2cd0d66a42081" } epaint = { git = "https://github.com/storytold/egui.git", rev = "932a73b28560acb1a695533307b2cd0d66a42081" } diff --git a/apps/vectorcraft-web/Cargo.toml b/apps/vectorcraft-web/Cargo.toml index c59556472e..f8748d719d 100644 --- a/apps/vectorcraft-web/Cargo.toml +++ b/apps/vectorcraft-web/Cargo.toml @@ -27,7 +27,7 @@ log = { workspace = true } # `wgpu` pulls egui-wgpu's defaults: WebGPU plus the WebGL2 fallback. eframe = { workspace = true, features = ["default_fonts", "wgpu", "accesskit"] } # The page command API (storytold/craft-libs#413): the request plumbing behind window.vectorcraft. -craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "8bea6009f99f1d7ba955a672ebebf38fe4ec2c57", version = "0.1.0" } +craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "869c9704d9fdce1c3341fe8e16030e12b85e1d59", version = "0.1.0" } wasm-bindgen = "0.2" serde_json = { workspace = true } diff --git a/crates/ui-egui/src/panels/image_trace/tests.rs b/crates/ui-egui/src/panels/image_trace/tests.rs index 29ed937ca9..1c7a51edc3 100644 --- a/crates/ui-egui/src/panels/image_trace/tests.rs +++ b/crates/ui-egui/src/panels/image_trace/tests.rs @@ -860,7 +860,8 @@ fn create_strokes_traces_again_and_keeps_one_kind_on() { for s in ["Create:", "Fills", "Strokes", "Stroke"] { assert!(panel.shows(s), "{s}"); } - assert_eq!(panel.value("Stroke").as_deref().and_then(number), Some(10.0)); + // The dimmed row holds a slider and a number box under one name: read the slider. + assert_eq!(panel.value_role("Stroke", craft::ui::contract::Role::SLIDER).as_deref().and_then(number), Some(10.0)); // Fills alone can't be turned off. panel.click("Fills"); assert_eq!(create(&panel), (Some(json!(true)), Some(json!(false))));