From ff7c147ddeecd3f5c0af8bfb4e089376ec50a55d Mon Sep 17 00:00:00 2001 From: mocenigo Date: Tue, 1 Dec 2026 00:40:02 +0100 Subject: [PATCH 1/6] macOS: the window keeps its colours while it is resized wgpu-hal 30.0.1 set the Metal layer's colour space to nil each time the surface was configured, which egui does on every resize event. Until the next frame tagged the layer sRGB again, macOS showed the canvas untagged, in the display's own gamut, so the background changed shade while the window was resized and could stay so when it stopped. wgpu-hal 30.0.2 tags the layer sRGB when it configures the surface (gfx-rs/wgpu#10013). --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 772196967a..3b20a522f2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9756,9 +9756,9 @@ dependencies = [ [[package]] name = "wgpu-hal" -version = "30.0.1" +version = "30.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6b7fb58561a792bc237628ba0792e332de418fefe145f13b5ed8201e6d52f58" +checksum = "a57452fe453658e141aafdb09de1028afa498805fab518238ddf372a518813ff" dependencies = [ "android_system_properties", "arrayvec", From 9d768d61936c70db261b5ec4c991d17ef811fc93 Mon Sep 17 00:00:00 2001 From: ruchirguitar <113586074+ruchirguitar@users.noreply.github.com> Date: Fri, 4 Dec 2026 19:42:38 +0530 Subject: [PATCH 2/6] Type menu: show conversions for the selected text kinds --- crates/ui-egui/src/menus/state.rs | 59 ++++++++++++++++++------------- crates/ui-egui/src/menus/tests.rs | 45 +++++++++++++++++++++++ 2 files changed, 80 insertions(+), 24 deletions(-) diff --git a/crates/ui-egui/src/menus/state.rs b/crates/ui-egui/src/menus/state.rs index 6ae7c66be0..f00d98a243 100644 --- a/crates/ui-egui/src/menus/state.rs +++ b/crates/ui-egui/src/menus/state.rs @@ -4,6 +4,37 @@ use super::{Brightness, Value, VectorcraftApp}; use crate::i18n::LangExt as _; use craft::keymap::{Chord, CommandRef}; use craft::ui::runtime::commands; +use vectorcraft_engine::doc::{NodeKind, TextKind, TextObject}; + +/// The first matching text object among the selection and its descendants, in command order. +fn selected_text(app: &VectorcraftApp, matches_kind: fn(&TextKind) -> bool) -> Option<&TextObject> { + let st = app.session.active()?; + for node in st.selection.objects.iter().filter_map(|id| st.doc.node(*id)) { + let mut found = None; + node.walk(&mut |child| { + if found.is_none() + && let NodeKind::Text(text) = &child.kind + && matches_kind(&text.kind) + { + found = Some(text); + } + }); + if found.is_some() { + return found; + } + } + None +} + +/// Conversion rows in the Type menu require an object of the source kind. +fn type_conversion_hidden(app: &VectorcraftApp, id: &str) -> bool { + let matches_kind: fn(&TextKind) -> bool = match id { + "type.convertToAreaType" => |kind| matches!(kind, TextKind::Point), + "type.convertToPointType" => |kind| matches!(kind, TextKind::Area { .. }), + _ => return false, + }; + selected_text(app, matches_kind).is_none() +} /// Checked state for toggle items. pub fn checked(app: &VectorcraftApp, id: &str, p: &Value) -> Option { @@ -19,26 +50,6 @@ pub fn checked(app: &VectorcraftApp, id: &str, p: &Value) -> Option { let v = &app.ui.view; // An item that can be on or off is `Some` whatever the document and selection (off with none): // the macOS menu bar can't change an item's kind without rebuilding. - // The first type object of a kind `kinds` takes among the selected objects and the objects - // inside them, in the order the type commands act on them. - let selected_text = |kinds: fn(&vectorcraft_engine::doc::TextKind) -> bool| { - let st = app.session.active()?; - let mut found = None; - for n in st.selection.objects.iter().filter_map(|id| st.doc.node(*id)) { - n.walk(&mut |c| { - if found.is_none() - && let vectorcraft_engine::doc::NodeKind::Text(t) = &c.kind - && kinds(&t.kind) - { - found = Some(t); - } - }); - if found.is_some() { - break; - } - } - found - }; Some(match id { "type.orientation.vertical" | "type.orientation.horizontal" => { crate::panels::character::shared_text_flag(app, |t| t.vertical) == Some(id == "type.orientation.vertical") @@ -46,14 +57,14 @@ pub fn checked(app: &VectorcraftApp, id: &str, p: &Value) -> Option { "type.opticalMarginAlignment" => crate::panels::character::shared_text_flag(app, |t| t.optical_margin) == Some(true), // Dynamic Text of the first selected type, which the item turns the other way (point type // counts as off: the item turns it into area type with Block on). - "type.dynamicText" => selected_text(|_| true).is_some_and(|t| t.dynamic_text && !matches!(t.kind, vectorcraft_engine::doc::TextKind::Point)), + "type.dynamicText" => selected_text(app, |_| true).is_some_and(|t| t.dynamic_text && !matches!(t.kind, TextKind::Point)), "view.outline" => app.outline_view(), "view.pixelPreview" => v.pixel_preview, "view.trimView" => v.trim_view, "view.snapToPixel" => v.snap_to_pixel, "view.snapToGlyph" => v.snap_to_glyph, // Type on a Path effect of the selected path type. - "type.pathOptions" if p.get("effect").is_some() => selected_text(|k| matches!(k, vectorcraft_engine::doc::TextKind::OnPath { .. })) + "type.pathOptions" if p.get("effect").is_some() => selected_text(app, |k| matches!(k, TextKind::OnPath { .. })) .is_some_and(|t| p.get("effect").and_then(Value::as_str) == Some(t.path_effect.id())), "view.smartGuides" => v.smart_guides, "edit.autoSpellCheck" => v.auto_spell_check, @@ -172,7 +183,7 @@ fn east_asian_hidden(app: &VectorcraftApp, id: &str) -> bool { /// How the menus show item `id` (params `p`) now: (enabled, checked: `Some` for an item that is on /// or off), or `None` while they leave it out: an empty slot ([`hidden_when_disabled`]), an item /// another stands in for ([`swapped_out`]) or an East Asian item with those options hidden -/// ([`east_asian_hidden`]). +/// ([`east_asian_hidden`]), or a type conversion without eligible text ([`type_conversion_hidden`]). pub fn shown_state(app: &VectorcraftApp, id: &str, p: &Value) -> Option<(bool, Option)> { shown_state_with(app, id, p, &mut |id| why_off(app, id)) } @@ -188,7 +199,7 @@ pub(crate) fn shown_state_with( let en = why_off(id).is_none() && (id != crate::addons::select::link_status::COMMAND || crate::addons::select::link_status::enabled(app, p)) && (!vectorcraft_engine::cmd::plugin::is_command_id(id) || crate::dialogs::plugin::canvas_item_enabled(app, id, p)); - if (!en && hidden_when_disabled(id)) || swapped_out(id, why_off) || east_asian_hidden(app, id) { + if (!en && hidden_when_disabled(id)) || swapped_out(id, why_off) || east_asian_hidden(app, id) || type_conversion_hidden(app, id) { return None; } Some((en, checked(app, id, p))) diff --git a/crates/ui-egui/src/menus/tests.rs b/crates/ui-egui/src/menus/tests.rs index 39909b57eb..df23d8edf9 100644 --- a/crates/ui-egui/src/menus/tests.rs +++ b/crates/ui-egui/src/menus/tests.rs @@ -164,6 +164,51 @@ fn snapping_menu_clicks_toggle_view_state_and_painted_checkmarks() { assert_eq!(menu.toggled("Pixel Snapping Options…"), None); } +#[test] +fn type_menu_offers_only_conversions_that_apply_to_selected_text() { + use crate::tests::panel_harness::Panel; + use craft::ui::contract::Role; + + fn draw(app: &mut VectorcraftApp, ui: &mut egui::Ui) { + model::refresh(app, ui.ctx()); + craft::menu::MenuBarUi::new(&app.menus.laid).show(ui); + } + + const TO_AREA: &str = "Convert To Area Type"; + const TO_POINT: &str = "Convert To Point Type"; + crate::i18n::set_current(crate::i18n::Lang::EN); + let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), crate::Services::default()); + app.run("file.new", json!({})).unwrap(); + let point = app.run("text.create", json!({"x": 20, "y": 40, "text": "Point type"})).unwrap()["id"].clone(); + let area = app.run("text.create", json!({"x": 20, "y": 100, "text": "Area type", "area": {"width": 120, "height": 60}})).unwrap()["id"].clone(); + + app.run("select.set", json!({"ids": [point.clone()]})).unwrap(); + let mut menu = Panel::new(app, draw); + menu.click("Type"); + assert!(menu.menu_item_enabled(TO_AREA)); + assert!(!menu.shows_role(TO_POINT, Role::MENU_ITEM)); + menu.click_menu_item(TO_AREA); + menu.click("Type"); + assert!(menu.menu_item_enabled(TO_POINT)); + assert!(!menu.shows_role(TO_AREA, Role::MENU_ITEM)); + menu.click_menu_item(TO_POINT); + menu.click("Type"); + assert!(menu.menu_item_enabled(TO_AREA)); + assert!(!menu.shows_role(TO_POINT, Role::MENU_ITEM)); + menu.click("Type"); + + menu.app().run("select.set", json!({"ids": [point, area]})).unwrap(); + menu.click("Type"); + assert!(menu.menu_item_enabled(TO_AREA)); + assert!(menu.menu_item_enabled(TO_POINT)); + menu.click("Type"); + + menu.app().run("select.set", json!({"ids": []})).unwrap(); + menu.click("Type"); + assert!(!menu.shows_role(TO_AREA, Role::MENU_ITEM)); + assert!(!menu.shows_role(TO_POINT, Role::MENU_ITEM)); +} + /// The Window menu keeps one check column: the labels of checked and unchecked panels, of plain /// commands and of submenus all start at the same x. #[test] From e29814c6dc813da29a68d26595c085a2cca51f84 Mon Sep 17 00:00:00 2001 From: ruchirguitar <113586074+ruchirguitar@users.noreply.github.com> Date: Fri, 4 Dec 2026 19:53:47 +0530 Subject: [PATCH 3/6] Borrow the selected text object from its node --- crates/ui-egui/src/menus/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/menus/state.rs b/crates/ui-egui/src/menus/state.rs index f00d98a243..c102276b0b 100644 --- a/crates/ui-egui/src/menus/state.rs +++ b/crates/ui-egui/src/menus/state.rs @@ -16,7 +16,7 @@ fn selected_text(app: &VectorcraftApp, matches_kind: fn(&TextKind) -> bool) -> O && let NodeKind::Text(text) = &child.kind && matches_kind(&text.kind) { - found = Some(text); + found = Some(text.as_ref()); } }); if found.is_some() { From eb4b84e601f3c30a9b909d9c3f6a1cfd87c7d56b Mon Sep 17 00:00:00 2001 From: ruchirguitar <113586074+ruchirguitar@users.noreply.github.com> Date: Fri, 4 Dec 2026 21:22:43 +0530 Subject: [PATCH 4/6] Type menu: share conversion availability across commands --- crates/engine/src/cmd/typemenu.rs | 18 ++++++++- crates/engine/src/tests/menucmds.rs | 37 ++++++++++++++--- crates/ui-egui/src/menus/state.rs | 61 ++++++++++++----------------- crates/ui-egui/src/menus/tests.rs | 17 +++++++- 4 files changed, 89 insertions(+), 44 deletions(-) diff --git a/crates/engine/src/cmd/typemenu.rs b/crates/engine/src/cmd/typemenu.rs index 70aa0ee07c..81f5c7a5ef 100644 --- a/crates/engine/src/cmd/typemenu.rs +++ b/crates/engine/src/cmd/typemenu.rs @@ -2,6 +2,8 @@ //! Options, Dynamic Text, Fill with Placeholder Text, Insert Special/Whitespace/Break characters) //! and the text commands of the Edit menu (Find and Replace, Find Next, Paste without Formatting). +use std::ops::ControlFlow; + use serde_json::{Value, json}; use vectorcraft_doc::{AreaFit, CharStyle, Document, Justify, LockedArtboards, Node, NodeId, NodeKind, Quotes, TextKind, TextObject, TextRun}; use vectorcraft_geom::{Affine, Rect, shapes}; @@ -40,7 +42,7 @@ pub fn specs() -> Vec { ["Type"], None, "{ids?|id?} point type → area type framed by its current layout bounds → {ids}", - has_selection, + |s| has_selected_text_kind(s, |kind| matches!(kind, TextKind::Point), "select point type"), to_area ), cmd!( @@ -49,7 +51,7 @@ pub fn specs() -> Vec { ["Type"], None, "{ids?|id?} area type → point type; soft line wraps become line breaks, a frame of threaded text leaves its thread with the text it holds, and Dynamic Text (Block) is turned off, keeping the sizes it set → {ids}", - has_selection, + |s| has_selected_text_kind(s, |kind| matches!(kind, TextKind::Area { .. }), "select area type"), to_point ), cmd!( @@ -154,6 +156,18 @@ pub fn specs() -> Vec { ] } +/// A selected object or one of its descendants has the source kind a conversion needs. +fn has_selected_text_kind(s: &Session, matches_kind: fn(&TextKind) -> bool, reason: &str) -> std::result::Result<(), String> { + let st = s.active().ok_or("no document open")?; + let found = st.selection.objects.iter().filter_map(|id| st.doc.node(*id)).any(|node| { + node.try_walk(&mut |child| { + if matches!(&child.kind, NodeKind::Text(text) if matches_kind(&text.kind)) { ControlFlow::Break(()) } else { ControlFlow::Continue(()) } + }) + .is_break() + }); + found.then_some(()).ok_or_else(|| reason.into()) +} + /// Text objects among `ids` and their descendants. pub(crate) fn text_ids(d: &Document, ids: &[NodeId]) -> Vec { let paths = d.index_paths(ids.iter().copied()); diff --git a/crates/engine/src/tests/menucmds.rs b/crates/engine/src/tests/menucmds.rs index 6896802a68..78c0578678 100644 --- a/crates/engine/src/tests/menucmds.rs +++ b/crates/engine/src/tests/menucmds.rs @@ -4275,19 +4275,44 @@ fn convert_point_area_roundtrip() { assert_eq!(tt.plain_text(), "Some words"); } -/// Convert To Area Type with no point type selected, and Convert To Point Type with no area type -/// selected, record no undo step and reply with the objects. With point type and area type -/// selected, Convert To Area Type converts the point type in one undo step, and Convert To Point -/// Type then converts both in another. #[test] -fn converting_type_to_the_kind_it_is_records_no_undo_step() { +fn type_conversion_availability_requires_its_source_kind() { + let mut s = session(); + let point = text(&mut s, "Point"); + let area = id_of(&s.execute("text.create", &json!({"x": 0, "y": 100, "text": "Area", "area": {"width": 100, "height": 50}})).unwrap()); + let rectangle = rect(&mut s, 200.0, 50.0, 20.0, 20.0); + let to_area = find_command("type.convertToAreaType").unwrap(); + let to_point = find_command("type.convertToPointType").unwrap(); + for (selection, can_convert_to_area, can_convert_to_point) in + [(&[point][..], true, false), (&[area][..], false, true), (&[rectangle][..], false, false), (&[area, point][..], true, true)] + { + sel(&mut s, selection); + for (spec, can_convert) in [(to_area, can_convert_to_area), (to_point, can_convert_to_point)] { + let info = spec.info(&s); + assert_eq!(info.enabled, can_convert, "{} on {selection:?}", info.id); + assert_eq!(info.disabled_reason.is_some(), !can_convert, "{} on {selection:?}", info.id); + } + } + + sel(&mut s, &[rectangle, point]); + let group = id_of(&s.execute("object.group", &json!({})).unwrap()); + sel(&mut s, &[group]); + assert!(to_area.info(&s).enabled); + assert!(!to_point.info(&s).enabled); +} + +/// An inapplicable conversion is disabled and leaves undo history intact. With point type and +/// area type selected, Convert To Area Type converts the point type in one undo step, and +/// Convert To Point Type then converts both in another. +#[test] +fn inapplicable_type_conversions_record_no_undo_step() { let mut s = session(); let p = text(&mut s, "Point"); let a = id_of(&s.execute("text.create", &json!({"x": 0, "y": 100, "text": "Area", "area": {"width": 100, "height": 50}})).unwrap()); for (c, id) in [("type.convertToAreaType", a), ("type.convertToPointType", p)] { select_with_a_step_to_redo(&mut s, &[id]); let before = history(&s); - assert_eq!(s.execute(c, &json!({})).unwrap(), json!({"ids": [id.0]}), "{c}"); + assert!(matches!(s.execute(c, &json!({})), Err(EngineError::Disabled(..))), "{c}"); assert_eq!(history(&s), before, "{c}"); } for c in ["type.convertToAreaType", "type.convertToPointType"] { diff --git a/crates/ui-egui/src/menus/state.rs b/crates/ui-egui/src/menus/state.rs index c102276b0b..d04f5d488a 100644 --- a/crates/ui-egui/src/menus/state.rs +++ b/crates/ui-egui/src/menus/state.rs @@ -4,37 +4,6 @@ use super::{Brightness, Value, VectorcraftApp}; use crate::i18n::LangExt as _; use craft::keymap::{Chord, CommandRef}; use craft::ui::runtime::commands; -use vectorcraft_engine::doc::{NodeKind, TextKind, TextObject}; - -/// The first matching text object among the selection and its descendants, in command order. -fn selected_text(app: &VectorcraftApp, matches_kind: fn(&TextKind) -> bool) -> Option<&TextObject> { - let st = app.session.active()?; - for node in st.selection.objects.iter().filter_map(|id| st.doc.node(*id)) { - let mut found = None; - node.walk(&mut |child| { - if found.is_none() - && let NodeKind::Text(text) = &child.kind - && matches_kind(&text.kind) - { - found = Some(text.as_ref()); - } - }); - if found.is_some() { - return found; - } - } - None -} - -/// Conversion rows in the Type menu require an object of the source kind. -fn type_conversion_hidden(app: &VectorcraftApp, id: &str) -> bool { - let matches_kind: fn(&TextKind) -> bool = match id { - "type.convertToAreaType" => |kind| matches!(kind, TextKind::Point), - "type.convertToPointType" => |kind| matches!(kind, TextKind::Area { .. }), - _ => return false, - }; - selected_text(app, matches_kind).is_none() -} /// Checked state for toggle items. pub fn checked(app: &VectorcraftApp, id: &str, p: &Value) -> Option { @@ -50,6 +19,26 @@ pub fn checked(app: &VectorcraftApp, id: &str, p: &Value) -> Option { let v = &app.ui.view; // An item that can be on or off is `Some` whatever the document and selection (off with none): // the macOS menu bar can't change an item's kind without rebuilding. + // The first type object of a kind `kinds` takes among the selected objects and the objects + // inside them, in the order the type commands act on them. + let selected_text = |kinds: fn(&vectorcraft_engine::doc::TextKind) -> bool| { + let st = app.session.active()?; + let mut found = None; + for n in st.selection.objects.iter().filter_map(|id| st.doc.node(*id)) { + n.walk(&mut |c| { + if found.is_none() + && let vectorcraft_engine::doc::NodeKind::Text(t) = &c.kind + && kinds(&t.kind) + { + found = Some(t); + } + }); + if found.is_some() { + break; + } + } + found + }; Some(match id { "type.orientation.vertical" | "type.orientation.horizontal" => { crate::panels::character::shared_text_flag(app, |t| t.vertical) == Some(id == "type.orientation.vertical") @@ -57,14 +46,14 @@ pub fn checked(app: &VectorcraftApp, id: &str, p: &Value) -> Option { "type.opticalMarginAlignment" => crate::panels::character::shared_text_flag(app, |t| t.optical_margin) == Some(true), // Dynamic Text of the first selected type, which the item turns the other way (point type // counts as off: the item turns it into area type with Block on). - "type.dynamicText" => selected_text(app, |_| true).is_some_and(|t| t.dynamic_text && !matches!(t.kind, TextKind::Point)), + "type.dynamicText" => selected_text(|_| true).is_some_and(|t| t.dynamic_text && !matches!(t.kind, vectorcraft_engine::doc::TextKind::Point)), "view.outline" => app.outline_view(), "view.pixelPreview" => v.pixel_preview, "view.trimView" => v.trim_view, "view.snapToPixel" => v.snap_to_pixel, "view.snapToGlyph" => v.snap_to_glyph, // Type on a Path effect of the selected path type. - "type.pathOptions" if p.get("effect").is_some() => selected_text(app, |k| matches!(k, TextKind::OnPath { .. })) + "type.pathOptions" if p.get("effect").is_some() => selected_text(|k| matches!(k, vectorcraft_engine::doc::TextKind::OnPath { .. })) .is_some_and(|t| p.get("effect").and_then(Value::as_str) == Some(t.path_effect.id())), "view.smartGuides" => v.smart_guides, "edit.autoSpellCheck" => v.auto_spell_check, @@ -183,7 +172,7 @@ fn east_asian_hidden(app: &VectorcraftApp, id: &str) -> bool { /// How the menus show item `id` (params `p`) now: (enabled, checked: `Some` for an item that is on /// or off), or `None` while they leave it out: an empty slot ([`hidden_when_disabled`]), an item /// another stands in for ([`swapped_out`]) or an East Asian item with those options hidden -/// ([`east_asian_hidden`]), or a type conversion without eligible text ([`type_conversion_hidden`]). +/// ([`east_asian_hidden`]), or a disabled type conversion. pub fn shown_state(app: &VectorcraftApp, id: &str, p: &Value) -> Option<(bool, Option)> { shown_state_with(app, id, p, &mut |id| why_off(app, id)) } @@ -199,7 +188,9 @@ pub(crate) fn shown_state_with( let en = why_off(id).is_none() && (id != crate::addons::select::link_status::COMMAND || crate::addons::select::link_status::enabled(app, p)) && (!vectorcraft_engine::cmd::plugin::is_command_id(id) || crate::dialogs::plugin::canvas_item_enabled(app, id, p)); - if (!en && hidden_when_disabled(id)) || swapped_out(id, why_off) || east_asian_hidden(app, id) || type_conversion_hidden(app, id) { + // Keep conversion labels in the catalog while leaving unavailable rows out of the Type menu. + let hide_disabled = hidden_when_disabled(id) || matches!(id, "type.convertToAreaType" | "type.convertToPointType"); + if (!en && hide_disabled) || swapped_out(id, why_off) || east_asian_hidden(app, id) { return None; } Some((en, checked(app, id, p))) diff --git a/crates/ui-egui/src/menus/tests.rs b/crates/ui-egui/src/menus/tests.rs index df23d8edf9..51ac2dd658 100644 --- a/crates/ui-egui/src/menus/tests.rs +++ b/crates/ui-egui/src/menus/tests.rs @@ -181,6 +181,7 @@ fn type_menu_offers_only_conversions_that_apply_to_selected_text() { app.run("file.new", json!({})).unwrap(); let point = app.run("text.create", json!({"x": 20, "y": 40, "text": "Point type"})).unwrap()["id"].clone(); let area = app.run("text.create", json!({"x": 20, "y": 100, "text": "Area type", "area": {"width": 120, "height": 60}})).unwrap()["id"].clone(); + let rectangle = app.run("shape.rectangle", json!({"x": 160, "y": 40, "width": 40, "height": 40})).unwrap()["id"].clone(); app.run("select.set", json!({"ids": [point.clone()]})).unwrap(); let mut menu = Panel::new(app, draw); @@ -197,7 +198,7 @@ fn type_menu_offers_only_conversions_that_apply_to_selected_text() { assert!(!menu.shows_role(TO_POINT, Role::MENU_ITEM)); menu.click("Type"); - menu.app().run("select.set", json!({"ids": [point, area]})).unwrap(); + menu.app().run("select.set", json!({"ids": [point.clone(), area]})).unwrap(); menu.click("Type"); assert!(menu.menu_item_enabled(TO_AREA)); assert!(menu.menu_item_enabled(TO_POINT)); @@ -207,6 +208,20 @@ fn type_menu_offers_only_conversions_that_apply_to_selected_text() { menu.click("Type"); assert!(!menu.shows_role(TO_AREA, Role::MENU_ITEM)); assert!(!menu.shows_role(TO_POINT, Role::MENU_ITEM)); + menu.click("Type"); + + menu.app().run("select.set", json!({"ids": [rectangle.clone()]})).unwrap(); + menu.click("Type"); + assert!(!menu.shows_role(TO_AREA, Role::MENU_ITEM)); + assert!(!menu.shows_role(TO_POINT, Role::MENU_ITEM)); + menu.click("Type"); + + menu.app().run("select.set", json!({"ids": [rectangle, point]})).unwrap(); + let group = menu.app().run("object.group", json!({})).unwrap()["id"].clone(); + menu.app().run("select.set", json!({"ids": [group]})).unwrap(); + menu.click("Type"); + assert!(menu.menu_item_enabled(TO_AREA)); + assert!(!menu.shows_role(TO_POINT, Role::MENU_ITEM)); } /// The Window menu keeps one check column: the labels of checked and unchecked panels, of plain From 181a471e6caeca96bc40af15d052c6836f615f71 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Fri, 4 Dec 2026 21:22:30 -0800 Subject: [PATCH 5/6] Swatches: the panel checks a large selection in one read of the swatches The Swatches panel's body in craft-libs drops selected keys that no longer name a swatch or a group on every repaint while the panel is hovered, and checked each key with a scan of every swatch name. With 2,000 swatches in 20 groups and every swatch and group selected, one run compared about two million names. Every craft-libs rev moves from 4c330f6bd1 to dbc6b20e78, which reads the swatch names once per run and stops when it has found every selected name. Delete events and the footer's Delete answer the first lookup of a swatch or a group name with a scan and later lookups of that kind from a map of the names. Cargo.lock changes only the craft-libs source lines. --- Cargo.lock | 182 ++++++++++++++++---------------- Cargo.toml | 82 +++++++------- apps/vectorcraft-web/Cargo.toml | 2 +- xtask/src/pdf_deps.rs | 2 +- 4 files changed, 134 insertions(+), 134 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b878d75456..e99a0ac16f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1256,7 +1256,7 @@ dependencies = [ [[package]] name = "craft" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-automation", "craft-behavior", @@ -1298,7 +1298,7 @@ dependencies = [ [[package]] name = "craft-affinity" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "crc32fast", "flate2", @@ -1319,7 +1319,7 @@ dependencies = [ [[package]] name = "craft-appkit" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "block2 0.6.2", "objc2 0.6.5", @@ -1331,7 +1331,7 @@ dependencies = [ [[package]] name = "craft-atomic" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "rustix 1.1.6", ] @@ -1339,7 +1339,7 @@ dependencies = [ [[package]] name = "craft-automation" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "base64 0.23.1", "craft-behavior", @@ -1364,7 +1364,7 @@ dependencies = [ [[package]] name = "craft-behavior" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "accesskit", "bitflags 2.13.2", @@ -1383,7 +1383,7 @@ dependencies = [ [[package]] name = "craft-browse" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-behavior", "craft-docpath", @@ -1401,7 +1401,7 @@ dependencies = [ [[package]] name = "craft-cdr" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "crc32fast", "flate2", @@ -1410,7 +1410,7 @@ dependencies = [ [[package]] name = "craft-cloud-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "egui", ] @@ -1418,7 +1418,7 @@ dependencies = [ [[package]] name = "craft-cms" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "md-5", "rayon", @@ -1427,12 +1427,12 @@ dependencies = [ [[package]] name = "craft-codepage" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" [[package]] name = "craft-color-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-behavior", "craft-cms", @@ -1452,7 +1452,7 @@ dependencies = [ [[package]] name = "craft-control" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-ai-agents", "craft-atomic", @@ -1468,7 +1468,7 @@ dependencies = [ [[package]] name = "craft-control-protocol" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "getrandom 0.3.4", "serde_json", @@ -1478,7 +1478,7 @@ dependencies = [ [[package]] name = "craft-dds" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "rayon", ] @@ -1486,7 +1486,7 @@ dependencies = [ [[package]] name = "craft-dialogs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "block2 0.6.2", "craft-appkit", @@ -1512,7 +1512,7 @@ dependencies = [ [[package]] name = "craft-doc" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "blake3", "craft-ecproj-format", @@ -1528,7 +1528,7 @@ dependencies = [ [[package]] name = "craft-docpath" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "serde", ] @@ -1536,7 +1536,7 @@ dependencies = [ [[package]] name = "craft-draw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1555,7 +1555,7 @@ dependencies = [ [[package]] name = "craft-dwg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "acadrust", "craft-dxf", @@ -1565,7 +1565,7 @@ dependencies = [ [[package]] name = "craft-dxf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-codepage", "encoding_rs", @@ -1577,7 +1577,7 @@ dependencies = [ [[package]] name = "craft-ecproj-format" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "serde", "serde_json", @@ -1587,12 +1587,12 @@ dependencies = [ [[package]] name = "craft-eps" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" [[package]] name = "craft-flags" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-atomic", "dirs", @@ -1602,7 +1602,7 @@ dependencies = [ [[package]] name = "craft-font-catalog" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "fontique", "harfrust 0.13.3", @@ -1617,7 +1617,7 @@ dependencies = [ [[package]] name = "craft-font-manager" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-behavior", "craft-font-catalog", @@ -1636,7 +1636,7 @@ dependencies = [ [[package]] name = "craft-font-os-windows" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "windows-registry", "windows-sys 0.61.2", @@ -1645,7 +1645,7 @@ dependencies = [ [[package]] name = "craft-font-store" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "cap-primitives", "craft-atomic", @@ -1668,12 +1668,12 @@ dependencies = [ [[package]] name = "craft-fonts-build" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" [[package]] name = "craft-gif" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "gif", ] @@ -1681,7 +1681,7 @@ dependencies = [ [[package]] name = "craft-gzip" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "flate2", ] @@ -1689,7 +1689,7 @@ dependencies = [ [[package]] name = "craft-host" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "bitflags 2.13.2", "craft-i18n", @@ -1702,7 +1702,7 @@ dependencies = [ [[package]] name = "craft-i18n" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "brotli 9.1.3", "brotli-decompressor 6.3.2", @@ -1732,7 +1732,7 @@ dependencies = [ [[package]] name = "craft-image-codecs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-dds", "craft-jpeg", @@ -1759,7 +1759,7 @@ dependencies = [ [[package]] name = "craft-imaging" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1777,7 +1777,7 @@ dependencies = [ [[package]] name = "craft-jpeg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "thiserror 2.0.21", ] @@ -1785,7 +1785,7 @@ dependencies = [ [[package]] name = "craft-jxl" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "brotli-decompressor 5.0.3", "jixel", @@ -1796,7 +1796,7 @@ dependencies = [ [[package]] name = "craft-keymap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-host", "craft-i18n", @@ -1811,7 +1811,7 @@ dependencies = [ [[package]] name = "craft-layers" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-behavior", "craft-i18n", @@ -1825,7 +1825,7 @@ dependencies = [ [[package]] name = "craft-menu" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-behavior", "craft-host", @@ -1843,7 +1843,7 @@ dependencies = [ [[package]] name = "craft-metadata" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "brotli-decompressor 6.3.2", "chrono", @@ -1855,7 +1855,7 @@ dependencies = [ [[package]] name = "craft-metafile" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "encoding_rs", "image", @@ -1866,7 +1866,7 @@ dependencies = [ [[package]] name = "craft-mime" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "chrono", "craft-codepage", @@ -1876,7 +1876,7 @@ dependencies = [ [[package]] name = "craft-nightly" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "uds_windows", "winsafe", @@ -1885,7 +1885,7 @@ dependencies = [ [[package]] name = "craft-pages" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-behavior", "craft-keymap", @@ -1901,7 +1901,7 @@ dependencies = [ [[package]] name = "craft-pbr" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-texture", "thiserror 2.0.21", @@ -1910,7 +1910,7 @@ dependencies = [ [[package]] name = "craft-pcraft-format" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "flate2", "serde", @@ -1921,7 +1921,7 @@ dependencies = [ [[package]] name = "craft-pdf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "hayro-interpret", "hayro-syntax", @@ -1933,7 +1933,7 @@ dependencies = [ [[package]] name = "craft-platform" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "async-channel", "async-io", @@ -1966,7 +1966,7 @@ dependencies = [ [[package]] name = "craft-plotter" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "kurbo 0.13.1", "thiserror 2.0.21", @@ -1975,7 +1975,7 @@ dependencies = [ [[package]] name = "craft-print" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-behavior", "craft-host", @@ -1999,7 +1999,7 @@ dependencies = [ [[package]] name = "craft-proof" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "log", "miniz_oxide 0.9.1", @@ -2010,7 +2010,7 @@ dependencies = [ [[package]] name = "craft-ps" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-eps", "flate2", @@ -2024,7 +2024,7 @@ dependencies = [ [[package]] name = "craft-psd" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "encoding_rs", "flate2", @@ -2035,7 +2035,7 @@ dependencies = [ [[package]] name = "craft-quit" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "dispatch2", "egui", @@ -2048,7 +2048,7 @@ dependencies = [ [[package]] name = "craft-raster3d" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "rayon", "thiserror 2.0.21", @@ -2057,7 +2057,7 @@ dependencies = [ [[package]] name = "craft-review" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "base64 0.23.1", "craft-behavior", @@ -2076,7 +2076,7 @@ dependencies = [ [[package]] name = "craft-settings" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-atomic", "craft-host", @@ -2093,7 +2093,7 @@ dependencies = [ [[package]] name = "craft-stream-codecs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "fax", "hayro-ccitt", @@ -2104,7 +2104,7 @@ dependencies = [ [[package]] name = "craft-svg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-image-codecs", "craft-xml", @@ -2125,7 +2125,7 @@ dependencies = [ [[package]] name = "craft-table" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-behavior", "craft-keymap", @@ -2137,7 +2137,7 @@ dependencies = [ [[package]] name = "craft-text" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-behavior", "craft-font-manager", @@ -2162,7 +2162,7 @@ dependencies = [ [[package]] name = "craft-texture" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "thiserror 2.0.21", ] @@ -2170,7 +2170,7 @@ dependencies = [ [[package]] name = "craft-theme" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "bitflags 2.13.2", "craft-tracked", @@ -2185,7 +2185,7 @@ dependencies = [ [[package]] name = "craft-theme-store" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-atomic", "craft-behavior", @@ -2200,7 +2200,7 @@ dependencies = [ [[package]] name = "craft-tiff" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "serde", "thiserror 2.0.21", @@ -2210,7 +2210,7 @@ dependencies = [ [[package]] name = "craft-time" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "serde", "thiserror 2.0.21", @@ -2219,7 +2219,7 @@ dependencies = [ [[package]] name = "craft-timeline" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-behavior", "craft-keymap", @@ -2234,12 +2234,12 @@ dependencies = [ [[package]] name = "craft-tracked" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" [[package]] name = "craft-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-cloud-ui", "craft-ui-canvas", @@ -2253,7 +2253,7 @@ dependencies = [ [[package]] name = "craft-ui-canvas" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-behavior", "craft-font-catalog", @@ -2270,7 +2270,7 @@ dependencies = [ [[package]] name = "craft-ui-contract" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "accesskit", "craft-behavior", @@ -2308,7 +2308,7 @@ dependencies = [ [[package]] name = "craft-ui-macros" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -2319,7 +2319,7 @@ dependencies = [ [[package]] name = "craft-ui-panels" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-behavior", "craft-host", @@ -2337,7 +2337,7 @@ dependencies = [ [[package]] name = "craft-ui-patterns" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-behavior", "craft-host", @@ -2358,7 +2358,7 @@ dependencies = [ [[package]] name = "craft-ui-shell" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-behavior", "craft-host", @@ -2379,7 +2379,7 @@ dependencies = [ [[package]] name = "craft-ui-widgets" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-behavior", "craft-host", @@ -2398,7 +2398,7 @@ dependencies = [ [[package]] name = "craft-update" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "base64 0.22.1", "chrono", @@ -2430,7 +2430,7 @@ dependencies = [ [[package]] name = "craft-vectorcraft-format" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "flate2", "serde", @@ -2441,7 +2441,7 @@ dependencies = [ [[package]] name = "craft-wayland" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "raw-window-handle", "wayland-backend", @@ -2451,7 +2451,7 @@ dependencies = [ [[package]] name = "craft-web-api" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "js-sys", "serde_json", @@ -2462,7 +2462,7 @@ dependencies = [ [[package]] name = "craft-win32" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "winsafe", ] @@ -2470,7 +2470,7 @@ dependencies = [ [[package]] name = "craft-window" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "craft-appkit", "craft-atomic", @@ -2502,7 +2502,7 @@ dependencies = [ [[package]] name = "craft-xml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "quick-xml 0.41.0", "serde", @@ -3862,7 +3862,7 @@ checksum = "9f4d0e94ddd48749f06bbe4e5389fb9799a0c45bcaf00495042076ef05e3241a" [[package]] name = "hayro-cmap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "brotli 8.0.4", "hayro-postscript", @@ -3871,7 +3871,7 @@ dependencies = [ [[package]] name = "hayro-interpret" version = "0.7.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "bitflags 2.13.2", "hayro-cmap", @@ -3889,7 +3889,7 @@ dependencies = [ [[package]] name = "hayro-jbig2" version = "0.3.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "fearless_simd", "hayro-ccitt", @@ -3907,12 +3907,12 @@ dependencies = [ [[package]] name = "hayro-postscript" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" [[package]] name = "hayro-syntax" version = "0.7.2" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "flate2", "hayro-ccitt", @@ -4895,7 +4895,7 @@ dependencies = [ [[package]] name = "krilla" version = "0.8.2" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "base64 0.22.1", "bumpalo", @@ -5052,7 +5052,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4" [[package]] name = "linesweeper" version = "0.5.0" -source = "git+https://github.com/storytold/craft-libs?rev=4c330f6bd1f38dd536f830483ea9618db2cb2bd8#4c330f6bd1f38dd536f830483ea9618db2cb2bd8" +source = "git+https://github.com/storytold/craft-libs?rev=dbc6b20e78327f702371fcfc7887fc099fbedee8#dbc6b20e78327f702371fcfc7887fc099fbedee8" dependencies = [ "arrayvec", "kurbo 0.13.1", diff --git a/Cargo.toml b/Cargo.toml index a48e3c1330..494a5ca085 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,57 +10,57 @@ license = "MIT OR Apache-2.0" rust-version = "1.95" [workspace.dependencies] -craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8", default-features = false, features = ["interpret", "write"] } -craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } +craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8", default-features = false, features = ["interpret", "write"] } +craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } # Language packs: the Craft apps' shared font store installs them (#4936). -craft-font-store = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } +craft-font-store = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } # 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 = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } +craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } # `.pcraft` documents: their manifest, full-size composite, preview, layer pixels and ICC profile. -craft-doc = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8", features = ["pcraft-pixels"] } +craft-doc = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8", features = ["pcraft-pixels"] } # Native Affinity documents (craft-libs#914). -craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } +craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } # Bounded CDR (v1-v27) and CMX (32-bit) reader (craft-libs#778). -craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } +craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } # SVG parsing, limits, SVGZ and writer (craft-libs#778). -craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8", features = ["tree"] } -craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } +craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8", features = ["tree"] } +craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } # EPS container, previews, ASCII85 and DSC comments (craft-libs#778). -craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } +craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } # DXF tags, reader and writer (craft-libs#778, #926, #927). -craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } +craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } # DWG to DXF bytes, in a child process on desktop builds (acadrust 0.6.6, MPL-2.0, unmodified). -craft-dwg = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } +craft-dwg = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } # WMF, EMF and EMF+ reader (craft-libs#778). -craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8", default-features = false, features = ["read", "write"] } -craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } +craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8", default-features = false, features = ["read", "write"] } +craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } # The metallic-roughness BRDF and environment light the 3D effects' Roughness and Metallic shade with. -craft-pbr = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } +craft-pbr = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } # The CPU rasterizer that draws a 3D effect's Render Settings › Rendered image: depth-buffered triangles, shadow maps. -craft-raster3d = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } +craft-raster3d = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } # 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 = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } +craft = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } # 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 = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } +craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } # Nightly profile isolation, launch protocol, and security fence. -craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } +craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } # internal vectorcraft-geom = { path = "crates/geom" } vectorcraft-color = { path = "crates/color" } @@ -200,13 +200,13 @@ lto = "thin" codegen-units = 1 [patch.crates-io] -hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -krilla = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } -linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8" } +hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +krilla = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } +linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8" } # skrifa 0.44 (epaint, glifo, usvg) with the automatic hinter's long blue-zone exit (craft-libs vendor/skrifa). # It stays at this rev until craft-libs#5222 merges. skrifa = { git = "https://github.com/storytold/craft-libs", rev = "37d0532f42eb3421769c8a454e3e25a20fbcff97" } diff --git a/apps/vectorcraft-web/Cargo.toml b/apps/vectorcraft-web/Cargo.toml index 4db9a1dac2..580355f80e 100644 --- a/apps/vectorcraft-web/Cargo.toml +++ b/apps/vectorcraft-web/Cargo.toml @@ -28,7 +28,7 @@ egui_extras = { 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 = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8", version = "0.1.0" } +craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "dbc6b20e78327f702371fcfc7887fc099fbedee8", version = "0.1.0" } wasm-bindgen = "0.2" serde_json = { workspace = true } diff --git a/xtask/src/pdf_deps.rs b/xtask/src/pdf_deps.rs index 04cf313ca0..72a17d1408 100644 --- a/xtask/src/pdf_deps.rs +++ b/xtask/src/pdf_deps.rs @@ -5,7 +5,7 @@ use std::process::Command; use serde_json::Value; -const REV: &str = "4c330f6bd1f38dd536f830483ea9618db2cb2bd8"; +const REV: &str = "dbc6b20e78327f702371fcfc7887fc099fbedee8"; const PACKAGES: &[(&str, &str, &str)] = &[ ("craft-pdf", "0.1.0", REV), ("krilla", "0.8.2", REV), From fc84b657d32811e17df0f852e5caf116aa26b7dc Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sat, 5 Dec 2026 08:26:28 -0800 Subject: [PATCH 6/6] Scripting: a self-crossing clip path counts as enclosing an area The clip-outline check behind `pathItems.removeAll()` measured each subpath by its signed area. The loops of a figure eight turn opposite ways and cancel, so the check treated the outline as enclosing nothing, although both fill rules fill it. A subpath whose signed area is within roundoff of zero is now measured by the area it fills under nonzero. A subpath whose points all lie on one line still encloses nothing. --- crates/engine/src/script/dom/paths.rs | 58 +++++++++++++++++++++++++-- 1 file changed, 55 insertions(+), 3 deletions(-) diff --git a/crates/engine/src/script/dom/paths.rs b/crates/engine/src/script/dom/paths.rs index 3f6a1ef1d4..417a7ddfcd 100644 --- a/crates/engine/src/script/dom/paths.rs +++ b/crates/engine/src/script/dom/paths.rs @@ -869,7 +869,9 @@ fn items_remove_all(h: &super::Host, a: &[Data]) -> Answer { /// Whether a subpath of `outline` encloses an area. Each subpath's area is measured from its first /// point, so its position does not change the result, and an area within roundoff of its own -/// bounding box's is counted as none. +/// bounding box's is counted as none. A subpath that crosses itself, such as a figure eight whose +/// loops turn opposite ways and cancel in its signed area, is measured by the area it fills under +/// nonzero, which every loop counts toward. fn encloses(outline: &kurbo::BezPath) -> bool { let mut subpaths: Vec = Vec::new(); for el in outline.elements() { @@ -883,11 +885,35 @@ fn encloses(outline: &kurbo::BezPath) -> bool { subpaths.into_iter().any(|mut sub| { let Some(start) = sub.elements().iter().find_map(|e| e.end_point()) else { return false }; sub.apply_affine(kurbo::Affine::translate(-start.to_vec2())); - let area = kurbo::Shape::area(&sub).abs(); - area > 0.0 && area > 64.0 * f64::EPSILON * kurbo::Shape::bounding_box(&sub).area() + let floor = 64.0 * f64::EPSILON * kurbo::Shape::bounding_box(&sub).area(); + let counts = |area: f64| area > 0.0 && area > floor; + counts(kurbo::Shape::area(&sub).abs()) + || (!collinear(&sub) + && vectorcraft_pathops::try_area(&vectorcraft_geom::PathData::from_bezpath(&sub), vectorcraft_geom::FillRule::NonZero) + .is_ok_and(counts)) }) } +/// Whether every point and control point of `sub` lies within roundoff of one straight line, as +/// in a frame collapsed to a line, which encloses no area however the path operations snap it. +fn collinear(sub: &kurbo::BezPath) -> bool { + let points: Vec = sub + .elements() + .iter() + .flat_map(|e| match *e { + kurbo::PathEl::MoveTo(p) | kurbo::PathEl::LineTo(p) => vec![p], + kurbo::PathEl::QuadTo(a, p) => vec![a, p], + kurbo::PathEl::CurveTo(a, b, p) => vec![a, b, p], + kurbo::PathEl::ClosePath => vec![], + }) + .collect(); + let Some(&first) = points.first() else { return true }; + let Some(&far) = points.iter().max_by(|a, b| a.distance(first).total_cmp(&b.distance(first))) else { return true }; + let axis = far - first; + let length = axis.hypot(); + length == 0.0 || points.iter().all(|p| axis.cross(*p - first).abs() <= 64.0 * f64::EPSILON * length * length) +} + /// Whether `outline` fills an area under `rule`: a subpath encloses an area ([`encloses`]) and the /// outline with its overlaps resolved, thin strips included, has an area. An outline the path /// operations refuse is judged by [`encloses`] alone. @@ -2536,6 +2562,32 @@ mod tests { assert_eq!(anchors, vec![(0, 1), (0, 3)], "the undo puts back the selection the write changed"); } + #[test] + fn a_figure_eight_clip_outline_fills_its_loops() { + let mut eight = kurbo::BezPath::new(); + eight.move_to((0.0, 0.0)); + eight.line_to((10.0, 10.0)); + eight.line_to((10.0, 0.0)); + eight.line_to((0.0, 10.0)); + eight.close_path(); + assert!(kurbo::Shape::area(&eight).abs() < 1e-9, "the loops cancel in the signed area"); + assert!(encloses(&eight), "each loop of the figure eight encloses an area"); + assert!(fills(&eight, vectorcraft_geom::FillRule::NonZero)); + assert!(fills(&eight, vectorcraft_geom::FillRule::EvenOdd)); + let mut line = kurbo::BezPath::new(); + line.move_to((0.0, 0.0)); + line.line_to((10.0, 10.0)); + line.close_path(); + assert!(!encloses(&line), "a closed line still encloses nothing"); + let mut flat = kurbo::BezPath::new(); + flat.move_to((0.0, 0.0)); + flat.line_to((1000.0, 0.001)); + flat.line_to((2000.0, 0.002)); + flat.line_to((1000.0, 0.001)); + flat.close_path(); + assert!(!encloses(&flat), "a frame collapsed onto a shallow diagonal encloses nothing"); + } + #[test] fn a_made_id_above_two_to_the_53_stays_exact() { let made = |v: Value| made_id(&(Data::Undefined, v));