From 0227c4f6cac0325df75ca1fb5047efd107c95c9f Mon Sep 17 00:00:00 2001 From: DuBearte <130190089+DuBearte@users.noreply.github.com> Date: Sat, 7 Nov 2026 02:55:29 -0500 Subject: [PATCH 1/6] fix(ui): a Perspective Crop drag from the pasteboard starts at the canvas edge (#11803) With View > Snap on, a new Perspective Crop quad dragged from the pasteboard kept its start point out there, so its corners lay outside the canvas. A drag that starts beyond a canvas corner (outside on both axes) now starts at that corner, and one that starts within the snap distance of an edge starts on it, when Snap To > Document Bounds is on. Snap off, clicked corners, corner drags and moves are unchanged. Co-Authored-By: Claude Opus 5.5 --- .../src/tools/perspective_crop_snap_tests.rs | 80 +++++++++++++++++++ .../ui-egui/src/tools/perspective_crop_ui.rs | 30 +++++++ 2 files changed, 110 insertions(+) create mode 100644 crates/ui-egui/src/tools/perspective_crop_snap_tests.rs diff --git a/crates/ui-egui/src/tools/perspective_crop_snap_tests.rs b/crates/ui-egui/src/tools/perspective_crop_snap_tests.rs new file mode 100644 index 00000000000..4df970dbfea --- /dev/null +++ b/crates/ui-egui/src/tools/perspective_crop_snap_tests.rs @@ -0,0 +1,80 @@ +//! #11803: with View › Snap on, a Perspective Crop drag that starts on the pasteboard beyond a +//! canvas corner starts at that corner, and one starting within the snap distance of an edge starts +//! on it. Snap off, clicked corners, corner drags and moves are as before. + +use super::*; + +fn app(snap: bool) -> PhotocraftApp { + let mut s = photocraft_engine::Session::new(); + s.execute("file.new", serde_json::json!({"width": 800, "height": 500})).unwrap(); + let mut app = PhotocraftApp::new(s, crate::Services::default()); + app.ui.tool = Tool::PerspectiveCrop; + app.ui.extras.snap = snap; + app.ui.view.snap_to.document_bounds = true; + app +} + +fn drag(app: &mut PhotocraftApp, from: [f64; 2], to: [f64; 2]) { + pointer(app, ToolEvent::Down { x: from[0], y: from[1], pressure: 1.0 }); + pointer(app, ToolEvent::Move { x: to[0], y: to[1], pressure: 1.0 }); + pointer(app, ToolEvent::Up { x: to[0], y: to[1] }); +} + +fn click(app: &mut PhotocraftApp, p: [f64; 2]) { + drag(app, p, p); +} + +#[test] +fn a_drag_from_the_pasteboard_starts_at_the_canvas_corner() { + let mut app = app(true); + drag(&mut app, [-78.0, -100.0], [700.0, 450.0]); + assert_eq!(app.ui.perspective_crop, Some([[0.0, 0.0], [700.0, 0.0], [700.0, 450.0], [0.0, 450.0]])); +} + +#[test] +fn a_drag_near_an_edge_starts_on_it() { + let mut app = app(true); + drag(&mut app, [3.0, 4.0], [700.0, 450.0]); + assert_eq!(app.ui.perspective_crop, Some([[0.0, 0.0], [700.0, 0.0], [700.0, 450.0], [0.0, 450.0]])); + // Well inside, nothing moves. + let mut app = self::app(true); + drag(&mut app, [100.0, 120.0], [700.0, 450.0]); + assert_eq!(app.ui.perspective_crop.map(|q| q[0]), Some([100.0, 120.0])); +} + +#[test] +fn with_snap_off_the_drag_is_as_before() { + let mut app = app(false); + drag(&mut app, [-78.0, -100.0], [700.0, 450.0]); + assert_eq!(app.ui.perspective_crop, Some([[-78.0, -100.0], [700.0, -100.0], [700.0, 450.0], [-78.0, 450.0]])); +} + +#[test] +fn clicked_corners_stay_where_they_were_clicked() { + let mut app = app(true); + for p in [[-50.0, -40.0], [850.0, -30.0], [820.0, 540.0], [-20.0, 520.0]] { + click(&mut app, p); + } + assert_eq!(app.ui.perspective_crop, Some([[-50.0, -40.0], [850.0, -30.0], [820.0, 540.0], [-20.0, 520.0]])); +} + +#[test] +fn corner_drags_and_moves_are_as_before() { + let mut app = app(true); + app.ui.perspective_crop = Some([[100.0, 100.0], [600.0, 100.0], [600.0, 400.0], [100.0, 400.0]]); + drag(&mut app, [100.0, 100.0], [-60.0, -60.0]); + assert_eq!(app.ui.perspective_crop.map(|q| q[0]), Some([-60.0, -60.0]), "a corner goes where it is dragged"); + drag(&mut app, [300.0, 250.0], [310.0, 250.0]); + assert_eq!(app.ui.perspective_crop.map(|q| q[1]), Some([610.0, 100.0]), "a move keeps its offset"); +} + +#[test] +fn far_presses_and_no_document_never_panic() { + let mut app = app(true); + drag(&mut app, [-1.0e12, -1.0e12], [1.0e12, 1.0e12]); + assert!(app.ui.perspective_crop.is_some_and(|q| q.iter().flatten().all(|v| v.is_finite()))); + let mut empty = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default()); + empty.ui.tool = Tool::PerspectiveCrop; + drag(&mut empty, [-100.0, -100.0], [50.0, 50.0]); + assert_eq!(empty.ui.perspective_crop, None); +} diff --git a/crates/ui-egui/src/tools/perspective_crop_ui.rs b/crates/ui-egui/src/tools/perspective_crop_ui.rs index ed60c90d414..8704177239f 100644 --- a/crates/ui-egui/src/tools/perspective_crop_ui.rs +++ b/crates/ui-egui/src/tools/perspective_crop_ui.rs @@ -147,6 +147,7 @@ pub fn pointer(app: &mut PhotocraftApp, ev: ToolEvent) -> bool { } } else { app.pcrop.clicks.clear(); + let start = snap_start(app, start); let (x0, y0, x1, y1) = (start[0].min(cur[0]), start[1].min(cur[1]), start[0].max(cur[0]), start[1].max(cur[1])); // A straight drag has no area: no box (it could neither be committed nor // replaced by a new drag). @@ -159,6 +160,31 @@ pub fn pointer(app: &mut PhotocraftApp, ev: ToolEvent) -> bool { true } +/// Where a new quad's drag starts, with View › Snap and Snap To › Document Bounds on (#11803): a +/// press on the pasteboard beyond a canvas corner (outside on both axes) starts at that corner, +/// and one within the snap distance of a canvas edge starts on it. Clicked corners keep their place. +fn snap_start(app: &PhotocraftApp, p: [f64; 2]) -> [f64; 2] { + let Some(size) = app.session.active().map(|s| s.doc.size) else { return p }; + if !(app.ui.extras.snap && crate::snap_ui::options(app).document) { + return p; + } + let tol = crate::snap_ui::tolerance(app); + let (w, h) = (f64::from(size.width), f64::from(size.height)); + let corner = !(0.0..=w).contains(&p[0]) && !(0.0..=h).contains(&p[1]); + let snap = |v: f64, max: f64| { + if corner { + v.clamp(0.0, max) + } else if v.abs() <= tol { + 0.0 + } else if (v - max).abs() <= tol { + max + } else { + v + } + }; + [snap(p[0], w), snap(p[1], h)] +} + fn drag_to(app: &mut PhotocraftApp, p: [f64; 2]) { match app.pcrop.drag { Some(Drag::New { start, .. }) => app.pcrop.drag = Some(Drag::New { start, cur: p }), @@ -618,3 +644,7 @@ mod tests { assert!(app.pcrop.drag.is_none() && app.pcrop.clicks.is_empty()); } } + +#[cfg(test)] +#[path = "perspective_crop_snap_tests.rs"] +mod perspective_crop_snap_tests; From dfcc11c999c9bd29bb79cceb53e9326f92edd919 Mon Sep 17 00:00:00 2001 From: David Mann Date: Sun, 8 Nov 2026 15:30:30 +0100 Subject: [PATCH 2/6] PR #11859: show the snapped Perspective Crop start while dragging The drag preview drew the box from the raw press, so a drag from the pasteboard showed its start outside the canvas and jumped to the corner only on release. The preview and the release now build the box the same way. Tests: the preview during the drag, a press outside on one side only, and the snap distance at 75% and 200% zoom (views pinned to 100% for the other tests). Co-Authored-By: DuBearte Co-Authored-By: Claude Opus 5.5 --- .../src/tools/perspective_crop_snap_tests.rs | 39 +++++++++++++++++++ .../ui-egui/src/tools/perspective_crop_ui.rs | 36 +++++++++++------ 2 files changed, 63 insertions(+), 12 deletions(-) diff --git a/crates/ui-egui/src/tools/perspective_crop_snap_tests.rs b/crates/ui-egui/src/tools/perspective_crop_snap_tests.rs index 4df970dbfea..76f5d9a9d0a 100644 --- a/crates/ui-egui/src/tools/perspective_crop_snap_tests.rs +++ b/crates/ui-egui/src/tools/perspective_crop_snap_tests.rs @@ -11,9 +11,15 @@ fn app(snap: bool) -> PhotocraftApp { app.ui.tool = Tool::PerspectiveCrop; app.ui.extras.snap = snap; app.ui.view.snap_to.document_bounds = true; + set_zoom(&mut app, 1.0); app } +fn set_zoom(app: &mut PhotocraftApp, zoom: f32) { + app.ui.views = vec![crate::state::View { zoom, ..Default::default() }]; + assert_eq!(app.point_zoom(), zoom); +} + fn drag(app: &mut PhotocraftApp, from: [f64; 2], to: [f64; 2]) { pointer(app, ToolEvent::Down { x: from[0], y: from[1], pressure: 1.0 }); pointer(app, ToolEvent::Move { x: to[0], y: to[1], pressure: 1.0 }); @@ -78,3 +84,36 @@ fn far_presses_and_no_document_never_panic() { drag(&mut empty, [-100.0, -100.0], [50.0, 50.0]); assert_eq!(empty.ui.perspective_crop, None); } + +#[test] +fn the_drag_preview_shows_the_snapped_start() { + let mut app = app(true); + pointer(&mut app, ToolEvent::Down { x: -78.0, y: -100.0, pressure: 1.0 }); + pointer(&mut app, ToolEvent::Move { x: 700.0, y: 450.0, pressure: 1.0 }); + assert_eq!(shown_quad(&app), Some([[0.0, 0.0], [700.0, 0.0], [700.0, 450.0], [0.0, 450.0]]), "while dragging"); + pointer(&mut app, ToolEvent::Up { x: 700.0, y: 450.0 }); + assert_eq!(shown_quad(&app), app.ui.perspective_crop, "after the release"); +} + +#[test] +fn a_press_outside_on_one_side_only_stays_put() { + for from in [[-50.0, 100.0], [100.0, -50.0], [850.0, 100.0], [100.0, 550.0]] { + let mut app = app(true); + drag(&mut app, from, [400.0, 300.0]); + let q = app.ui.perspective_crop.unwrap_or_default(); + assert!(q.contains(&from), "{from:?} -> {q:?}"); + } +} + +#[test] +fn the_snap_distance_is_in_screen_pixels() { + // 8 screen px: about 10.7 document px at 75%, 4 at 200%. + let mut app = app(true); + set_zoom(&mut app, 0.75); + drag(&mut app, [9.0, 9.0], [700.0, 450.0]); + assert_eq!(app.ui.perspective_crop.map(|q| q[0]), Some([0.0, 0.0]), "75%"); + let mut app = self::app(true); + set_zoom(&mut app, 2.0); + drag(&mut app, [6.0, 6.0], [700.0, 450.0]); + assert_eq!(app.ui.perspective_crop.map(|q| q[0]), Some([6.0, 6.0]), "200%"); +} diff --git a/crates/ui-egui/src/tools/perspective_crop_ui.rs b/crates/ui-egui/src/tools/perspective_crop_ui.rs index 8704177239f..80e7f2423cf 100644 --- a/crates/ui-egui/src/tools/perspective_crop_ui.rs +++ b/crates/ui-egui/src/tools/perspective_crop_ui.rs @@ -147,11 +147,7 @@ pub fn pointer(app: &mut PhotocraftApp, ev: ToolEvent) -> bool { } } else { app.pcrop.clicks.clear(); - let start = snap_start(app, start); - let (x0, y0, x1, y1) = (start[0].min(cur[0]), start[1].min(cur[1]), start[0].max(cur[0]), start[1].max(cur[1])); - // A straight drag has no area: no box (it could neither be committed nor - // replaced by a new drag). - app.ui.perspective_crop = (x1 > x0 && y1 > y0).then_some([[x0, y0], [x1, y0], [x1, y1], [x0, y1]]); + app.ui.perspective_crop = new_box(app, start, cur); } } app.pcrop.drag = None; @@ -160,6 +156,28 @@ pub fn pointer(app: &mut PhotocraftApp, ev: ToolEvent) -> bool { true } +/// The box a new-quad drag from `start` to `cur` makes, its start snapped ([`snap_start`]). A +/// straight drag has no area: no box (it could neither be committed nor replaced by a new drag). +fn new_box(app: &PhotocraftApp, start: [f64; 2], cur: [f64; 2]) -> Option<[[f64; 2]; 4]> { + rect(snap_start(app, start), cur) +} + +fn rect(a: [f64; 2], b: [f64; 2]) -> Option<[[f64; 2]; 4]> { + let (x0, y0, x1, y1) = (a[0].min(b[0]), a[1].min(b[1]), a[0].max(b[0]), a[1].max(b[1])); + (x1 > x0 && y1 > y0).then_some([[x0, y0], [x1, y0], [x1, y1], [x0, y1]]) +} + +/// The quad the overlay draws: while a new box is being dragged, the box its release would make +/// (so a snapped start shows during the drag, not only after it; a press still within click +/// distance shows its raw box); otherwise the current quad. +fn shown_quad(app: &PhotocraftApp) -> Option<[[f64; 2]; 4]> { + match app.pcrop.drag { + Some(Drag::New { start, cur }) if is_click(app, start, cur) => rect(start, cur), + Some(Drag::New { start, cur }) => new_box(app, start, cur), + _ => app.ui.perspective_crop, + } +} + /// Where a new quad's drag starts, with View › Snap and Snap To › Document Bounds on (#11803): a /// press on the pasteboard beyond a canvas corner (outside on both axes) starts at that corner, /// and one within the snap distance of a canvas edge starts on it. Clicked corners keep their place. @@ -266,13 +284,7 @@ pub fn draw_overlay(app: &PhotocraftApp, painter: &egui::Painter, xf: &ViewXform } let scr = |p: [f64; 2]| xf.to_screen(p[0] as f32, p[1] as f32); let accent = crate::theme::Tokens::get(painter.ctx()).accent; - let quad = match app.pcrop.drag { - Some(Drag::New { start, cur }) => { - let (x0, y0, x1, y1) = (start[0].min(cur[0]), start[1].min(cur[1]), start[0].max(cur[0]), start[1].max(cur[1])); - (x1 > x0 && y1 > y0).then_some([[x0, y0], [x1, y0], [x1, y1], [x0, y1]]) - } - _ => app.ui.perspective_crop, - }; + let quad = shown_quad(app); if let Some(q) = quad.filter(|q| q.iter().flatten().all(|v| v.is_finite())) { let ok = convex_quad(&q); let color = if ok { accent } else { Color32::from_rgb(0xe5, 0x3e, 0x3e) }; From 2e20353937b2ca461c1748fd9c16a35adfedef6c Mon Sep 17 00:00:00 2001 From: David Mann Date: Sun, 15 Nov 2026 20:22:38 +0100 Subject: [PATCH 3/6] Adapt to main: the snap tests pass the modifiers Perspective Crop's pointer takes now --- .../ui-egui/src/tools/perspective_crop_snap_tests.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/ui-egui/src/tools/perspective_crop_snap_tests.rs b/crates/ui-egui/src/tools/perspective_crop_snap_tests.rs index 76f5d9a9d0a..75d9e075ce7 100644 --- a/crates/ui-egui/src/tools/perspective_crop_snap_tests.rs +++ b/crates/ui-egui/src/tools/perspective_crop_snap_tests.rs @@ -21,9 +21,9 @@ fn set_zoom(app: &mut PhotocraftApp, zoom: f32) { } fn drag(app: &mut PhotocraftApp, from: [f64; 2], to: [f64; 2]) { - pointer(app, ToolEvent::Down { x: from[0], y: from[1], pressure: 1.0 }); - pointer(app, ToolEvent::Move { x: to[0], y: to[1], pressure: 1.0 }); - pointer(app, ToolEvent::Up { x: to[0], y: to[1] }); + pointer(app, ToolEvent::Down { x: from[0], y: from[1], pressure: 1.0 }, egui::Modifiers::NONE); + pointer(app, ToolEvent::Move { x: to[0], y: to[1], pressure: 1.0 }, egui::Modifiers::NONE); + pointer(app, ToolEvent::Up { x: to[0], y: to[1] }, egui::Modifiers::NONE); } fn click(app: &mut PhotocraftApp, p: [f64; 2]) { @@ -88,10 +88,10 @@ fn far_presses_and_no_document_never_panic() { #[test] fn the_drag_preview_shows_the_snapped_start() { let mut app = app(true); - pointer(&mut app, ToolEvent::Down { x: -78.0, y: -100.0, pressure: 1.0 }); - pointer(&mut app, ToolEvent::Move { x: 700.0, y: 450.0, pressure: 1.0 }); + pointer(&mut app, ToolEvent::Down { x: -78.0, y: -100.0, pressure: 1.0 }, egui::Modifiers::NONE); + pointer(&mut app, ToolEvent::Move { x: 700.0, y: 450.0, pressure: 1.0 }, egui::Modifiers::NONE); assert_eq!(shown_quad(&app), Some([[0.0, 0.0], [700.0, 0.0], [700.0, 450.0], [0.0, 450.0]]), "while dragging"); - pointer(&mut app, ToolEvent::Up { x: 700.0, y: 450.0 }); + pointer(&mut app, ToolEvent::Up { x: 700.0, y: 450.0 }, egui::Modifiers::NONE); assert_eq!(shown_quad(&app), app.ui.perspective_crop, "after the release"); } From 38bc5fd07792d0e68854cb5036ae3e5082037063 Mon Sep 17 00:00:00 2001 From: ruchirguitar Date: Sun, 29 Nov 2026 00:25:40 +0530 Subject: [PATCH 4/6] Type: draw digits in an Indic script, Western or by the letters before them (#10996) --- crates/doc/src/text.rs | 26 +++++++ crates/engine-core/src/cmd/type_cmds.rs | 35 ++++++++- crates/text/src/digits.rs | 97 +++++++++++++++++++++++++ crates/text/src/digits_tests.rs | 68 +++++++++++++++++ crates/text/src/layout/shaping.rs | 65 +++++++++++++++-- crates/text/src/lib.rs | 3 + docs/scorecard.md | 3 +- scorecard/type.toml | 7 ++ 8 files changed, 295 insertions(+), 9 deletions(-) create mode 100644 crates/text/src/digits.rs create mode 100644 crates/text/src/digits_tests.rs diff --git a/crates/doc/src/text.rs b/crates/doc/src/text.rs index e24f267d6d0..41bb2096c54 100644 --- a/crates/doc/src/text.rs +++ b/crates/doc/src/text.rs @@ -24,6 +24,29 @@ pub enum Kerning { Off, } +/// Which digits the text's 0–9 are drawn with. The stored text keeps the digits as typed, so a +/// search, a copy and a PSD keep them; only the drawn glyphs change. +#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize, craft_ui_macros::PlainData)] +pub enum Digits { + /// As typed. + #[default] + AsTyped, + /// Western digits (0–9), also for digits typed in an Indic script. + Western, + /// The digits of the Indic script of the last letter before them in the paragraph; Western + /// after a letter of any other script, or with none before. + Contextual, + Devanagari, + Bengali, + Gurmukhi, + Gujarati, + Odia, + Tamil, + Telugu, + Kannada, + Malayalam, +} + #[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize, craft_ui_macros::PlainData)] pub enum Caps { #[default] @@ -101,6 +124,8 @@ pub struct CharStyle { pub variations: Vec, /// BCP-47 language tag (affects shaping and line breaking). pub language: Option, + /// Digit style: which script's digits 0–9 are drawn with. + pub digits: Digits, /// Vertical type: roman text (Latin, digits) runs rotated 90° clockwise along the column /// (PSD `BaselineDirection` 2) instead of standing upright one character per em /// (`BaselineDirection` 1, what Photoshop's Vertical Type tool sets, #9470). CJK text stands @@ -140,6 +165,7 @@ impl Default for CharStyle { features: Vec::new(), variations: Vec::new(), language: None, + digits: Digits::AsTyped, rotate_roman: false, style_sheet: None, } diff --git a/crates/engine-core/src/cmd/type_cmds.rs b/crates/engine-core/src/cmd/type_cmds.rs index b5bf1f93452..03f4fbdbb37 100644 --- a/crates/engine-core/src/cmd/type_cmds.rs +++ b/crates/engine-core/src/cmd/type_cmds.rs @@ -10,7 +10,7 @@ use std::sync::Arc; use photocraft_color::{Color, ColorMode, PixelFormat}; use photocraft_doc::text::{ - AntiAlias, Caps, CharStyle, FontBaseline, FontFeature, FontVariation, Kerning, Orientation, ParagraphRun, ParagraphStyle, TextAlign, TextDirection, + AntiAlias, Caps, CharStyle, Digits, FontBaseline, FontFeature, FontVariation, Kerning, Orientation, ParagraphRun, ParagraphStyle, TextAlign, TextDirection, TextRun, TextShape, }; use photocraft_doc::{Affine, Document, Layer, LayerContent, LayerId, TextLayer}; @@ -141,6 +141,11 @@ pub fn check_size_tracking(p: &Value) -> std::result::Result<(), String> { { return Err("baseline must be \"normal\", \"superscript\" or \"subscript\"".into()); } + if let Some(v) = p.get("digits").filter(|v| !v.is_null()) + && v.as_str().and_then(digits_of).is_none() + { + return Err(format!("digits must be one of {DIGIT_NAMES}")); + } for key in ["horizontalScale", "verticalScale"] { if let Some(v) = p.get(key) { match v.as_f64() { @@ -433,9 +438,35 @@ fn apply_char_features(s: &mut CharStyle, p: &Value) -> bool { s.language = v.as_str().map(str::to_string); hit(true); } + // An unknown value keeps the style (the commands reject it in `check_size_tracking`). + if let Some(d) = p.get("digits").and_then(Value::as_str).and_then(digits_of) { + s.digits = d; + hit(true); + } any } +const DIGIT_NAMES: &str = "asTyped, western, contextual, devanagari, bengali, gurmukhi, gujarati, odia, tamil, telugu, kannada, malayalam"; + +/// The digit style named `v` (the `digits` key of the type commands). +fn digits_of(v: &str) -> Option { + Some(match v { + "asTyped" => Digits::AsTyped, + "western" => Digits::Western, + "contextual" => Digits::Contextual, + "devanagari" => Digits::Devanagari, + "bengali" => Digits::Bengali, + "gurmukhi" => Digits::Gurmukhi, + "gujarati" => Digits::Gujarati, + "odia" => Digits::Odia, + "tamil" => Digits::Tamil, + "telugu" => Digits::Telugu, + "kannada" => Digits::Kannada, + "malayalam" => Digits::Malayalam, + _ => return None, + }) +} + /// Applies paragraph-style keys from JSON. Returns true if any key was present. pub fn apply_para_props(s: &mut ParagraphStyle, p: &Value) -> bool { let mut any = false; @@ -1004,7 +1035,7 @@ pub fn name_selection_commit(s: &mut Session) { } } -const CHAR_PARAMS: &str = r##""font":str,"fontStyle":str,"weight":100..900,"italic":bool,"size":0.1..=1296 pt,"color":"#rrggbb"|[r,g,b,a],"tracking":-1000..=10000 (1/1000 em),"leading":pt|"auto","baselineShift":pt,"horizontalScale":%,"verticalScale":%,"underline":bool,"strikethrough":bool,"fauxBold":bool,"fauxItalic":bool,"kerning":1/1000em (manual, after each character)|"metrics"|"optical"|"off","caps":"normal|small|all","baseline":"normal|superscript|subscript","ligatures":bool,"discretionaryLigatures":bool,"features":{"ss01":1},"variations":{"wght":650},"language":str"##; +const CHAR_PARAMS: &str = r##""font":str,"fontStyle":str,"weight":100..900,"italic":bool,"size":0.1..=1296 pt,"color":"#rrggbb"|[r,g,b,a],"tracking":-1000..=10000 (1/1000 em),"leading":pt|"auto","baselineShift":pt,"horizontalScale":%,"verticalScale":%,"underline":bool,"strikethrough":bool,"fauxBold":bool,"fauxItalic":bool,"kerning":1/1000em (manual, after each character)|"metrics"|"optical"|"off","caps":"normal|small|all","baseline":"normal|superscript|subscript","ligatures":bool,"discretionaryLigatures":bool,"features":{"ss01":1},"variations":{"wght":650},"language":str,"digits":"asTyped|western|contextual|devanagari|bengali|gurmukhi|gujarati|odia|tamil|telugu|kannada|malayalam""##; /// The Type commands: create and edit type layers, set styles, fill paths, and the queries about them. pub fn specs() -> Vec { diff --git a/crates/text/src/digits.rs b/crates/text/src/digits.rs new file mode 100644 index 00000000000..8a4b8b9f8f0 --- /dev/null +++ b/crates/text/src/digits.rs @@ -0,0 +1,97 @@ +//! Digit style: the digits a style's 0–9 are drawn with (Western, or an Indic script's). The +//! layer's text keeps the digits as typed; only the shaped paragraph text changes. + +use photocraft_doc::text::Digits; + +/// The Indic blocks U+0900–U+0D7F are 128 code points each, with their digits at +0x66. +const INDIC_FIRST: u32 = 0x0900; +const INDIC_END: u32 = 0x0D80; +const DIGITS_AT: u32 = 0x66; + +/// The block start of an Indic script's digits, for a style naming one. +fn block_of(d: Digits) -> Option { + Some(match d { + Digits::Devanagari => 0x0900, + Digits::Bengali => 0x0980, + Digits::Gurmukhi => 0x0A00, + Digits::Gujarati => 0x0A80, + Digits::Odia => 0x0B00, + Digits::Tamil => 0x0B80, + Digits::Telugu => 0x0C00, + Digits::Kannada => 0x0C80, + Digits::Malayalam => 0x0D00, + Digits::AsTyped | Digits::Western | Digits::Contextual => return None, + }) +} + +/// The value 0–9 of a Western or Indic digit. +fn digit_value(ch: char) -> Option { + let c = ch as u32; + if ch.is_ascii_digit() { + return Some(c - '0' as u32); + } + let off = c.checked_sub(INDIC_FIRST)? % 0x80; + ((INDIC_FIRST..INDIC_END).contains(&c) && (DIGITS_AT..DIGITS_AT + 10).contains(&off)).then(|| off - DIGITS_AT) +} + +/// For a letter, `Some` of its Indic block (`None` inside for any other script's letter); `None` +/// for a non-letter (digit, punctuation, space), which leaves the context as it is. +fn letter_block(ch: char) -> Option> { + if !ch.is_alphabetic() { + return None; + } + let c = ch as u32; + if (0xA8E0..0xA900).contains(&c) { + // Devanagari Extended. + return Some(Some(0x0900)); + } + Some((INDIC_FIRST..INDIC_END).contains(&c).then_some(c & !0x7F)) +} + +/// Whether the first letter of `text` is of a right-to-left script (Hebrew, Arabic and their +/// neighbours), as the bidi algorithm would find it in the typed text. Digits drawn in an Indic +/// script are left-to-right letters to it, so a paragraph that opens with them takes its +/// direction from the typed text instead. +pub(crate) fn starts_rtl(text: &str) -> bool { + text.chars().find(|c| c.is_alphabetic()).is_some_and(|c| { + let c = c as u32; + (0x0590..0x0900).contains(&c) + || (0xFB1D..0xFE00).contains(&c) + || (0xFE70..0xFF00).contains(&c) + || (0x10800..0x11000).contains(&c) + || (0x1E800..0x1F000).contains(&c) + }) +} + +/// The last letter's script, followed through a paragraph for [`Digits::Contextual`]. +#[derive(Clone, Copy, Default)] +pub(crate) struct Context(Option); + +impl Context { + /// Notes `ch` (as typed), which may be a letter that sets the context. + pub(crate) fn see(&mut self, ch: char) { + if let Some(block) = letter_block(ch) { + self.0 = block; + } + } +} + +/// `ch` as style `d` draws it after the letters `ctx` has seen. +pub(crate) fn styled(ch: char, d: Digits, ctx: Context) -> char { + if d == Digits::AsTyped { + return ch; + } + let Some(v) = digit_value(ch) else { + return ch; + }; + let block = match d { + Digits::Western => None, + Digits::Contextual => ctx.0, + _ => block_of(d), + }; + let c = match block { + Some(b) => b + DIGITS_AT + v, + None => '0' as u32 + v, + }; + char::from_u32(c).unwrap_or(ch) +} diff --git a/crates/text/src/digits_tests.rs b/crates/text/src/digits_tests.rs new file mode 100644 index 00000000000..f87f61afc3b --- /dev/null +++ b/crates/text/src/digits_tests.rs @@ -0,0 +1,68 @@ +use photocraft_doc::TextLayer; +use photocraft_doc::text::{CharStyle, Digits, TextRun}; + +use crate::TextEngine; +use crate::digits::{Context, styled}; + +fn drawn(text: &str, d: Digits) -> String { + let mut ctx = Context::default(); + text.chars() + .map(|ch| { + let out = styled(ch, d, ctx); + ctx.see(ch); + out + }) + .collect() +} + +#[test] +fn contextual_digits_follow_the_last_letter() { + // After Gujarati letters, Gujarati digits; after a Latin letter, Western again; punctuation + // and spaces between don't reset the context. + assert_eq!(drawn("ક 12, A 3", Digits::Contextual), "ક ૧૨, A 3"); + // Digits typed in one Indic script follow the context too. + assert_eq!(drawn("क ૩", Digits::Contextual), "क ३"); + assert_eq!(drawn("३ and ૪", Digits::Western), "3 and 4"); + assert_eq!(drawn("क 12", Digits::AsTyped), "क 12"); +} + +fn layer(text: &str, digits: Digits) -> TextLayer { + let style = CharStyle { font_family: "Inter".into(), size_pt: 24.0, digits, ..Default::default() }; + TextLayer { text: text.into(), runs: vec![TextRun { len: text.len(), style }], ..Default::default() } +} + +/// A digit drawn in an Indic script is three UTF-8 bytes for the one typed: glyphs, clusters and +/// carets must still point into the layer's own text. +#[test] +fn indic_digits_keep_text_offsets() { + let mut e = TextEngine::new(); + let src = "No 12 x\n34 y"; + let typed = e.layout(&layer(src, Digits::AsTyped), 72.0); + let deva = e.layout(&layer(src, Digits::Devanagari), 72.0); + let ids = |l: &crate::TextLayout| l.glyphs.iter().map(|g| g.id).collect::>(); + assert_ne!(ids(&typed), ids(&deva), "the digits are drawn differently"); + for r in deva.glyph_ranges.iter().chain(deva.clusters.iter().map(|c| &c.range)) { + assert!(src.get(r.clone()).is_some(), "{r:?} is not a range of the layer text"); + } + let x_after = |l: &crate::TextLayout| l.clusters.iter().find(|c| c.range.start == 5).map(|c| c.x); + assert!(x_after(&deva).is_some(), "the space after the digits keeps its offset"); + assert!(deva.caret(5).0 > deva.caret(3).0, "the caret moves across the digits"); +} + +#[test] +fn devanagari_extended_letters_set_the_context() { + assert_eq!(drawn("\u{A8FE}12", Digits::Contextual), "\u{A8FE}१२"); +} + +/// Drawn Indic digits are left-to-right letters to the bidi algorithm; a paragraph of automatic +/// direction that opens with them still takes its direction from the typed text. +#[test] +fn indic_digits_keep_an_rtl_paragraph_rtl() { + let mut e = TextEngine::new(); + let src = "12 אב"; + let x = |l: &crate::TextLayout, at: usize| l.clusters.iter().find(|c| c.range.start == at).map(|c| c.x).unwrap(); + let typed = e.layout(&layer(src, Digits::AsTyped), 72.0); + let deva = e.layout(&layer(src, Digits::Devanagari), 72.0); + let hebrew = src.find('א').unwrap(); + assert_eq!(x(&typed, 0) > x(&typed, hebrew), x(&deva, 0) > x(&deva, hebrew), "the digits stay on the same side of the word"); +} diff --git a/crates/text/src/layout/shaping.rs b/crates/text/src/layout/shaping.rs index c7d701c5d78..399b39843c1 100644 --- a/crates/text/src/layout/shaping.rs +++ b/crates/text/src/layout/shaping.rs @@ -85,6 +85,32 @@ struct ParaText { synthetic_small_caps: Vec<(Range, f32)>, /// Offsets in `ptext` of the spaces standing in for tabs. tabs: Vec, + /// Where a digit style drew a digit with another UTF-8 length. + remap: Remap, +} + +/// Where `ptext` and the paragraph content stop lining up byte for byte: after each digit drawn in +/// a script whose digits have another UTF-8 length, the pair (content offset, `ptext` offset) +/// just past it, both ascending. +#[derive(Default)] +struct Remap(Vec<(usize, usize)>); + +impl Remap { + /// The `ptext` offset of content offset `c`. + fn to_ptext(&self, c: usize, prefix: usize) -> usize { + match self.0.partition_point(|&(sc, _)| sc <= c).checked_sub(1) { + Some(i) => self.0[i].1 + (c - self.0[i].0), + None => prefix + c, + } + } + + /// The content offset of `ptext` offset `o`, a character boundary. + fn to_content(&self, o: usize, prefix: usize) -> usize { + match self.0.partition_point(|&(_, po)| po <= o).checked_sub(1) { + Some(i) => self.0[i].0 + (o - self.0[i].1), + None => o.saturating_sub(prefix), + } + } } /// The shaped text of the paragraph at `range` (`content_end` excludes its break), led by `prefix`. @@ -94,6 +120,8 @@ fn paragraph_text(env: &Env<'_>, prefix: &str, range: &Range, content_end ptext.push_str(prefix); let mut synthetic_small_caps = Vec::new(); let mut tabs = Vec::new(); + let mut remap = Remap::default(); + let mut ctx = crate::digits::Context::default(); for (i, ch) in content.char_indices() { // A forced line break ends the line but not the paragraph. The line breaker knows // it as a newline, which has the same length, so text offsets don't move. @@ -111,10 +139,25 @@ fn paragraph_text(env: &Env<'_>, prefix: &str, range: &Range, content_end continue; } let si = env.style_at(range.start + i); + let drawn = crate::digits::styled(ch, env.styles[si].digits, ctx); + ctx.see(ch); + if drawn != ch { + ptext.push(drawn); + if drawn.len_utf8() != ch.len_utf8() { + remap.0.push((i + ch.len_utf8(), ptext.len())); + } + continue; + } let synthetic = env.small_caps[si] == SmallCapsMode::Synthetic; push_cased(&mut ptext, &mut synthetic_small_caps, ch, &env.styles[si], synthetic, env.k); } - ParaText { ptext, synthetic_small_caps, tabs } + ParaText { ptext, synthetic_small_caps, tabs, remap } +} + +/// Whether a style in text `range` draws digits other than as typed. +fn restyles_digits(env: &Env<'_>, range: &Range) -> bool { + let (si0, si_end) = (env.style_at(range.start), env.run_starts.partition_point(|&rs| rs < range.end).max(env.style_at(range.start) + 1)); + env.styles.get(si0..si_end.min(env.styles.len())).is_some_and(|s| s.iter().any(|st| st.digits != photocraft_doc::text::Digits::AsTyped)) } /// Appends `ch` as its style sets it: uppercased for all caps and synthetic small caps (when the @@ -193,6 +236,7 @@ pub(super) struct Para<'a> { synthetic_small_caps: Vec<(Range, f32)>, /// Offsets in the paragraph text of the spaces standing in for tabs. pub(super) tabs: Vec, + remap: Remap, /// Runs intersecting the paragraph: `si0..si_end`. si0: usize, si_end: usize, @@ -216,11 +260,14 @@ impl<'a> Para<'a> { let k = env.k; let content_end = strip_break(env.text, &range); let prefix = match ps.direction { + // Drawn Indic digits would count as the first left-to-right letter: keep the typed + // text's direction. + TextDirection::Auto if restyles_digits(env, &range) && crate::digits::starts_rtl(&env.text[range.start..content_end]) => RLM, TextDirection::Auto => "", TextDirection::Ltr => LRM, TextDirection::Rtl => RLM, }; - let ParaText { ptext, synthetic_small_caps, tabs } = paragraph_text(env, prefix, &range, content_end); + let ParaText { ptext, synthetic_small_caps, tabs, remap } = paragraph_text(env, prefix, &range, content_end); // Scripts the loaded fonts may lack (Arabic, Japanese, …): a host serving a font for them // fetches it (`served`); it joins the fallback stack once it arrives. crate::served::request_for_text(&ptext); @@ -244,6 +291,7 @@ impl<'a> Para<'a> { ptext, synthetic_small_caps, tabs, + remap, si0, si_end, roman: Vec::new(), @@ -272,8 +320,8 @@ impl<'a> Para<'a> { if a >= z || st.rotate_roman { continue; } - let base = a - self.start + self.prefix.len(); - let piece = self.ptext.get(base..base + (z - a)).unwrap_or(""); + let base = self.to_ptext(a); + let piece = self.ptext.get(base..self.to_ptext(z)).unwrap_or(""); let px = st.size_pt * env.k; for (i, ch) in piece.char_indices() { if upright_roman(ch) && !ch.is_whitespace() { @@ -291,7 +339,12 @@ impl<'a> Para<'a> { /// Text offset of the paragraph text's byte `o`, as the layer's text offset. pub(super) fn map_offset(&self, o: usize) -> usize { - (self.start + o.saturating_sub(self.prefix.len())).min(self.content_end) + (self.start + self.remap.to_content(o, self.prefix.len())).min(self.content_end) + } + + /// The paragraph text offset of the layer text offset `t` (inside this paragraph). + fn to_ptext(&self, t: usize) -> usize { + self.remap.to_ptext(t - self.start, self.prefix.len()) } /// The paragraph text up to the end of the run piece at text range `range`. @@ -364,7 +417,7 @@ impl<'a> Para<'a> { if a >= z { return; } - let range = (a - self.start + self.prefix.len())..(z - self.start + self.prefix.len()); + let range = self.to_ptext(a)..self.to_ptext(z); for p in style_props(&env.styles[ri], env.k, &self.fallback, ri as u32, env.small_caps[ri]) { b.push(p, range.clone()); } diff --git a/crates/text/src/lib.rs b/crates/text/src/lib.rs index 8755434a2ad..fb394898cd2 100644 --- a/crates/text/src/lib.rs +++ b/crates/text/src/lib.rs @@ -21,6 +21,9 @@ pub mod area; pub mod cjk; mod color_glyphs; pub mod craft_fonts; +mod digits; +#[cfg(test)] +mod digits_tests; mod embolden; // The EngineData syntax of type layers is PSD format code: it lives in craft-psd. pub use craft_psd::engine_data; diff --git a/docs/scorecard.md b/docs/scorecard.md index 98360898f21..8f257f698b9 100644 --- a/docs/scorecard.md +++ b/docs/scorecard.md @@ -10,7 +10,7 @@ Generated by `cargo xtask scorecard` from `perf/budgets.toml`, `perf/baseline.js | [File compatibility](#file-compatibility) | 11 | 14 | 2 | io corpus: oracle ≥ 148/170, round trip ≥ 169/170; psd-tools corpus: oracle ≥ 249/309, round trip ≥ 308/309; photoshop oracles: oracle ≥ 190/258, round trip ≥ 258/258 | | [Tools](#tools) | 36 | 9 | 0 | | | [Workspace and UI](#workspace-and-ui) | 15 | 6 | 2 | settings that do nothing: 9 of 204 (target 0) | -| [Type](#type) | 5 | 5 | 0 | | +| [Type](#type) | 5 | 6 | 0 | | | [Automation](#automation) | 6 | 4 | 2 | 664 of 664 menu items live (100.0%) | | [Reliability](#reliability) | 5 | 2 | 0 | never-crash lints on 28 of 28 crates; panic_hunt present | | [Distribution](#distribution) | 5 | 5 | 1 | | @@ -261,6 +261,7 @@ Unread: `general.color_picker`, `workspace.auto_show_hidden_panels`, `workspace. | TYPE-218-8 | Text editing: select all, double/triple/quadruple-click selection, paste, with tests | done | [#218](https://github.com/storytold/photocraft/issues/218) | Like Photoshop, 2 clicks select the word, 3 the laid-out line (a column in vertical type), 4 the paragraph up to the hard return, 5 all text, and the next quick click starts over (#3493; type_tool.rs next_click_count, click_selection, multi_click). Tested through real canvas clicks in point, paragraph and vertical type, with paste replacing the selection and Cmd+A selecting all (type_tool_tests.rs multi_click_selects_word_line_paragraph_and_all_in_point_text, multi_click_separates_wrapped_lines_from_paragraphs, click_counts_cycle_and_restart, click_selection_without_layout_and_on_hostile_input, multi_click_without_a_session_does_nothing) | | TYPE-218-9 | Distort/Perspective/Warp on live type as in Photoshop (was: offer 'Rasterize and continue?'; Photoshop doesn't prompt) | done | [#218](https://github.com/storytold/photocraft/issues/218) | Photoshop 2026 prompts for none of these: Edit › Transform › Warp on live type stays enabled with no rasterize prompt and offers only the warp styles (the mesh can't be dragged), so the type stays editable; Distort, Perspective and the split warps are greyed. PhotoCraft does the same: Warp on type commits the layer's Warp Text in one step (transform_tool.rs enter_type_warp, warp_cmds.rs warp_type_layer, #3004; warp_on_type_takes_a_style_and_keeps_the_type_editable), Distort/Perspective greyed (enable_rules.rs, #2701) | | TYPE-218-10 | Area type: Type tool click inside a closed path or shape wraps text inside it, holes and dents included, PSD round trip | partial | [#218](https://github.com/storytold/photocraft/issues/218) | TextShape::Area (doc text.rs) laid out line by line into the spans the path leaves (text area.rs, layout.rs break_area), type.fillPath (engine type_area_cmds.rs), released to box text by type.detachFromPath, area/path cursors and click-to-place (ui-egui type_tool.rs path_target), .pcraft round trip. Missing: PSD area type (saves as paragraph text over the path's bounds, with an export warning); mixed type sizes in one area paragraph space at its largest line; area type takes paths of at most 4096 anchors: beyond that a Type tool click makes point text (the pointer shows the plain I-beam), and type.fillPath refuses the path with "the path has too many anchor points" (type.attachToPath still takes a subpath of up to 100,000 anchors); a word too wide for every span in the shape overflows its span (box text breaks it at the edge, #6694); the first line starts about 0.24 em lower than in a text box of the same size; Photoshop area type in a PSD opens as box text; the area path has no handles to edit it after the type is placed | +| TYPE-10996-1 | Digit style: digits drawn as typed, Western, by the script of the letters before them, or in an Indic script (Devanagari, Bengali, Gurmukhi, Gujarati, Odia, Tamil, Telugu, Kannada, Malayalam) | partial | [#10996](https://github.com/storytold/photocraft/issues/10996) | CharStyle `digits` (doc text.rs), drawn in shaping (text digits.rs) while the layer text keeps the typed digits; set through the type commands' `digits` key. No Character panel control yet (needs the shared panel in craft-libs); Arabic and Persian digits are #6685; not saved in PSD | ## Automation diff --git a/scorecard/type.toml b/scorecard/type.toml index 9bba03a0565..579e92e5715 100644 --- a/scorecard/type.toml +++ b/scorecard/type.toml @@ -73,3 +73,10 @@ target = "Area type: Type tool click inside a closed path or shape wraps text in status = "partial" issue = 218 note = "TextShape::Area (doc text.rs) laid out line by line into the spans the path leaves (text area.rs, layout.rs break_area), type.fillPath (engine type_area_cmds.rs), released to box text by type.detachFromPath, area/path cursors and click-to-place (ui-egui type_tool.rs path_target), .pcraft round trip. Missing: PSD area type (saves as paragraph text over the path's bounds, with an export warning); mixed type sizes in one area paragraph space at its largest line; area type takes paths of at most 4096 anchors: beyond that a Type tool click makes point text (the pointer shows the plain I-beam), and type.fillPath refuses the path with \"the path has too many anchor points\" (type.attachToPath still takes a subpath of up to 100,000 anchors); a word too wide for every span in the shape overflows its span (box text breaks it at the edge, #6694); the first line starts about 0.24 em lower than in a text box of the same size; Photoshop area type in a PSD opens as box text; the area path has no handles to edit it after the type is placed" + +[[item]] +id = "TYPE-10996-1" +target = "Digit style: digits drawn as typed, Western, by the script of the letters before them, or in an Indic script (Devanagari, Bengali, Gurmukhi, Gujarati, Odia, Tamil, Telugu, Kannada, Malayalam)" +status = "partial" +issue = 10996 +note = "CharStyle `digits` (doc text.rs), drawn in shaping (text digits.rs) while the layer text keeps the typed digits; set through the type commands' `digits` key. No Character panel control yet (needs the shared panel in craft-libs); Arabic and Persian digits are #6685; not saved in PSD" From 45b2b55493806c17f3059b6aa41b960a3f11a026 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Mon, 30 Nov 2026 01:28:52 +0700 Subject: [PATCH 5/6] Type: the perturbed character style sets digits too (#10996) --- crates/engine-vector/src/cmd/type_styles_cmds.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/engine-vector/src/cmd/type_styles_cmds.rs b/crates/engine-vector/src/cmd/type_styles_cmds.rs index 98088d94784..0b588be77f7 100644 --- a/crates/engine-vector/src/cmd/type_styles_cmds.rs +++ b/crates/engine-vector/src/cmd/type_styles_cmds.rs @@ -84,7 +84,7 @@ fn id_param(cmd: &str, p: &Value) -> Result> { /// A character style with every field changed from the default, to see which fields a set of /// Character-panel keys touches. fn perturbed_char() -> CharStyle { - use photocraft_doc::text::{Caps, FontBaseline, FontFeature, FontVariation, Kerning}; + use photocraft_doc::text::{Caps, Digits, FontBaseline, FontFeature, FontVariation, Kerning}; CharStyle { font_family: "\u{1}".into(), font_style: "\u{1}".into(), @@ -111,6 +111,7 @@ fn perturbed_char() -> CharStyle { features: vec![FontFeature { tag: "\u{1}".into(), value: 9 }], variations: vec![FontVariation { axis: "\u{1}".into(), value: -1.0 }], language: Some("\u{1}".into()), + digits: Digits::Malayalam, rotate_roman: true, style_sheet: None, } From 24738d4dd48cb93ff9c048a69d24e486d8c40c29 Mon Sep 17 00:00:00 2001 From: David Mann Date: Sun, 29 Nov 2026 20:00:19 +0100 Subject: [PATCH 6/6] Perspective Crop: snap the drag start through the framework (#11803) Main moved the tool's press and drag handling into craft-libs, so the app-side snap_start is gone. storytold/craft-libs#4274 put the rule in the framework's PerspectiveCropTool, which snaps through the canvas's Snap the app already gives. Pin craft-libs at its current main, which carries it, and port the tests to the new tool: a drag from beyond a corner starts at it (also while dragging), one near an edge starts on it, one inside or outside on one axis stays, Snap or Document Bounds off changes nothing, and clicked corners stay put. Co-Authored-By: Claude Opus 5.5 --- Cargo.lock | 189 +++++++++--------- Cargo.toml | 82 ++++---- crates/engine-core/Cargo.toml | 2 +- crates/ipp/Cargo.toml | 2 +- .../src/tools/perspective_crop_snap_tests.rs | 149 ++++++-------- .../ui-egui/src/tools/perspective_crop_ui.rs | 4 + 6 files changed, 202 insertions(+), 226 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6e398054e1f..368341024a1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1365,7 +1365,7 @@ dependencies = [ [[package]] name = "craft" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-automation", "craft-behavior", @@ -1406,7 +1406,7 @@ dependencies = [ [[package]] name = "craft-affinity" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "crc32fast", "flate2", @@ -1427,7 +1427,7 @@ dependencies = [ [[package]] name = "craft-appkit" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "block2 0.6.2", "objc2 0.6.5", @@ -1438,7 +1438,7 @@ dependencies = [ [[package]] name = "craft-atomic" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "rustix 1.1.6", ] @@ -1446,7 +1446,7 @@ dependencies = [ [[package]] name = "craft-automation" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "base64 0.23.1", "craft-behavior", @@ -1471,7 +1471,7 @@ dependencies = [ [[package]] name = "craft-behavior" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "accesskit", "bitflags 2.13.2", @@ -1489,7 +1489,7 @@ dependencies = [ [[package]] name = "craft-browse" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-behavior", "craft-docpath", @@ -1507,7 +1507,7 @@ dependencies = [ [[package]] name = "craft-cloud-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "egui", ] @@ -1515,7 +1515,7 @@ dependencies = [ [[package]] name = "craft-cms" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "md-5", "rayon", @@ -1524,12 +1524,12 @@ dependencies = [ [[package]] name = "craft-codepage" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" [[package]] name = "craft-color" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "serde", ] @@ -1537,7 +1537,7 @@ dependencies = [ [[package]] name = "craft-color-transform" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-cms", "craft-color", @@ -1547,7 +1547,7 @@ dependencies = [ [[package]] name = "craft-color-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-behavior", "craft-cms", @@ -1567,7 +1567,7 @@ dependencies = [ [[package]] name = "craft-control" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-ai-agents", "craft-atomic", @@ -1583,7 +1583,7 @@ dependencies = [ [[package]] name = "craft-control-protocol" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "getrandom 0.3.4", "serde_json", @@ -1593,7 +1593,7 @@ dependencies = [ [[package]] name = "craft-crs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-metadata", "craft-xml", @@ -1603,7 +1603,7 @@ dependencies = [ [[package]] name = "craft-crw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "thiserror 2.0.21", ] @@ -1611,7 +1611,7 @@ dependencies = [ [[package]] name = "craft-dds" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "rayon", ] @@ -1619,7 +1619,7 @@ dependencies = [ [[package]] name = "craft-develop" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-color", "craft-color-transform", @@ -1634,7 +1634,7 @@ dependencies = [ [[package]] name = "craft-develop-model" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-geom", "craft-metadata", @@ -1646,7 +1646,7 @@ dependencies = [ [[package]] name = "craft-dialogs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "block2 0.6.2", "craft-appkit", @@ -1672,7 +1672,7 @@ dependencies = [ [[package]] name = "craft-docpath" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "serde", ] @@ -1680,7 +1680,7 @@ dependencies = [ [[package]] name = "craft-draw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1699,12 +1699,12 @@ dependencies = [ [[package]] name = "craft-eps" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" [[package]] name = "craft-file-formats" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-eps", "craft-idml", @@ -1722,7 +1722,7 @@ dependencies = [ [[package]] name = "craft-flags" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-atomic", "dirs", @@ -1732,7 +1732,7 @@ dependencies = [ [[package]] name = "craft-font-catalog" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "fontique", "harfrust 0.13.3", @@ -1747,7 +1747,7 @@ dependencies = [ [[package]] name = "craft-font-manager" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-behavior", "craft-font-catalog", @@ -1767,7 +1767,7 @@ dependencies = [ [[package]] name = "craft-font-os-windows" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "windows-registry", "windows-sys 0.61.2", @@ -1776,7 +1776,7 @@ dependencies = [ [[package]] name = "craft-font-store" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "cap-primitives", "craft-atomic", @@ -1799,12 +1799,12 @@ dependencies = [ [[package]] name = "craft-fonts-build" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" [[package]] name = "craft-geom" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "serde", ] @@ -1812,7 +1812,7 @@ dependencies = [ [[package]] name = "craft-heif" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "heic-rs", "rayon", @@ -1821,7 +1821,7 @@ dependencies = [ [[package]] name = "craft-host" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "bitflags 2.13.2", "craft-i18n", @@ -1834,7 +1834,7 @@ dependencies = [ [[package]] name = "craft-i18n" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "chrono", "fixed_decimal", @@ -1862,7 +1862,7 @@ dependencies = [ [[package]] name = "craft-idml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-xml", "craft-zip", @@ -1872,7 +1872,7 @@ dependencies = [ [[package]] name = "craft-image-codecs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-dds", "craft-heif", @@ -1900,7 +1900,7 @@ dependencies = [ [[package]] name = "craft-imaging" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1918,12 +1918,12 @@ dependencies = [ [[package]] name = "craft-ipp" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" [[package]] name = "craft-jpeg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "thiserror 2.0.21", ] @@ -1931,7 +1931,7 @@ dependencies = [ [[package]] name = "craft-keymap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-host", "craft-i18n", @@ -1946,7 +1946,7 @@ dependencies = [ [[package]] name = "craft-kra" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-xml", "craft-zip", @@ -1956,7 +1956,7 @@ dependencies = [ [[package]] name = "craft-layers" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-behavior", "craft-i18n", @@ -1970,7 +1970,7 @@ dependencies = [ [[package]] name = "craft-menu" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-behavior", "craft-host", @@ -1988,7 +1988,7 @@ dependencies = [ [[package]] name = "craft-metadata" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "brotli-decompressor 6.3.2", "chrono", @@ -2000,7 +2000,7 @@ dependencies = [ [[package]] name = "craft-ora" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-xml", "craft-zip", @@ -2010,7 +2010,7 @@ dependencies = [ [[package]] name = "craft-pages" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-behavior", "craft-keymap", @@ -2026,7 +2026,7 @@ dependencies = [ [[package]] name = "craft-pcraft-bundle" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "blake3", "craft-atomic", @@ -2039,7 +2039,7 @@ dependencies = [ [[package]] name = "craft-pcraft-format" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "flate2", "serde", @@ -2050,7 +2050,7 @@ dependencies = [ [[package]] name = "craft-pdf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "bytemuck", "flate2", @@ -2065,7 +2065,7 @@ dependencies = [ [[package]] name = "craft-pdn" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "flate2", "thiserror 2.0.21", @@ -2074,7 +2074,7 @@ dependencies = [ [[package]] name = "craft-platform" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "async-channel", "async-io", @@ -2105,7 +2105,7 @@ dependencies = [ [[package]] name = "craft-plist" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "thiserror 2.0.21", ] @@ -2113,7 +2113,7 @@ dependencies = [ [[package]] name = "craft-print" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-behavior", "craft-host", @@ -2137,7 +2137,7 @@ dependencies = [ [[package]] name = "craft-psd" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "encoding_rs", "flate2", @@ -2148,7 +2148,7 @@ dependencies = [ [[package]] name = "craft-quit" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "dispatch2", "egui", @@ -2161,7 +2161,7 @@ dependencies = [ [[package]] name = "craft-raw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "chrono", "craft-crw", @@ -2179,7 +2179,7 @@ dependencies = [ [[package]] name = "craft-review" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "base64 0.23.1", "craft-behavior", @@ -2198,7 +2198,7 @@ dependencies = [ [[package]] name = "craft-settings" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-atomic", "craft-host", @@ -2215,7 +2215,7 @@ dependencies = [ [[package]] name = "craft-svg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-image-codecs", "craft-xml", @@ -2236,7 +2236,7 @@ dependencies = [ [[package]] name = "craft-table" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-behavior", "craft-keymap", @@ -2248,16 +2248,17 @@ dependencies = [ [[package]] name = "craft-testkit" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "rustix 1.1.6", + "tempfile", "toml", ] [[package]] name = "craft-text" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-behavior", "craft-font-manager", @@ -2280,7 +2281,7 @@ dependencies = [ [[package]] name = "craft-theme" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "bitflags 2.13.2", "craft-tracked", @@ -2295,7 +2296,7 @@ dependencies = [ [[package]] name = "craft-theme-editor" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-behavior", "craft-theme", @@ -2306,7 +2307,7 @@ dependencies = [ [[package]] name = "craft-theme-store" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-atomic", "craft-behavior", @@ -2321,7 +2322,7 @@ dependencies = [ [[package]] name = "craft-tiff" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "serde", "thiserror 2.0.21", @@ -2331,7 +2332,7 @@ dependencies = [ [[package]] name = "craft-time" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "serde", "thiserror 2.0.21", @@ -2340,7 +2341,7 @@ dependencies = [ [[package]] name = "craft-timeline" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-behavior", "craft-keymap", @@ -2355,7 +2356,7 @@ dependencies = [ [[package]] name = "craft-tracked" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "serde", ] @@ -2363,7 +2364,7 @@ dependencies = [ [[package]] name = "craft-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-cloud-ui", "craft-ui-canvas", @@ -2377,7 +2378,7 @@ dependencies = [ [[package]] name = "craft-ui-canvas" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-behavior", "craft-i18n", @@ -2393,7 +2394,7 @@ dependencies = [ [[package]] name = "craft-ui-contract" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "accesskit", "craft-behavior", @@ -2435,7 +2436,7 @@ dependencies = [ [[package]] name = "craft-ui-macros" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -2446,7 +2447,7 @@ dependencies = [ [[package]] name = "craft-ui-panels" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-behavior", "craft-host", @@ -2464,7 +2465,7 @@ dependencies = [ [[package]] name = "craft-ui-patterns" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-behavior", "craft-host", @@ -2485,7 +2486,7 @@ dependencies = [ [[package]] name = "craft-ui-shell" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-behavior", "craft-host", @@ -2505,7 +2506,7 @@ dependencies = [ [[package]] name = "craft-ui-widgets" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-behavior", "craft-host", @@ -2524,7 +2525,7 @@ dependencies = [ [[package]] name = "craft-update" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "base64 0.22.1", "chrono", @@ -2556,7 +2557,7 @@ dependencies = [ [[package]] name = "craft-win32" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "winsafe", ] @@ -2564,7 +2565,7 @@ dependencies = [ [[package]] name = "craft-window" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "craft-appkit", "craft-atomic", @@ -2596,7 +2597,7 @@ dependencies = [ [[package]] name = "craft-xcf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "flate2", "thiserror 2.0.21", @@ -2605,7 +2606,7 @@ dependencies = [ [[package]] name = "craft-xml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "quick-xml 0.41.0", "serde", @@ -2615,7 +2616,7 @@ dependencies = [ [[package]] name = "craft-zip" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "flate2", "thiserror 2.0.21", @@ -4135,7 +4136,7 @@ dependencies = [ [[package]] name = "hayro" version = "0.7.1" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "bytemuck", "hayro-interpret", @@ -4165,7 +4166,7 @@ dependencies = [ [[package]] name = "hayro-interpret" version = "0.7.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "bitflags 2.13.2", "hayro-cmap", @@ -4183,7 +4184,7 @@ dependencies = [ [[package]] name = "hayro-jbig2" version = "0.3.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "fearless_simd", "hayro-ccitt", @@ -4207,7 +4208,7 @@ checksum = "bc2d80da85f31c3fdc0366431f44cfd645a9da1e242ed1f4a61f213d9765660f" [[package]] name = "hayro-syntax" version = "0.7.2" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "flate2", "hayro-ccitt", @@ -5300,7 +5301,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4" [[package]] name = "linesweeper" version = "0.5.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "arrayvec", "kurbo 0.13.1", @@ -9810,7 +9811,7 @@ dependencies = [ [[package]] name = "vello_common" version = "0.0.8" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "bytemuck", "fearless_simd", @@ -9858,7 +9859,7 @@ dependencies = [ [[package]] name = "vello_cpu" version = "0.0.8" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" dependencies = [ "bytemuck", "glifo 0.1.1", @@ -11504,14 +11505,14 @@ source = "git+https://github.com/storytold/egui.git?rev=14c39fed181756be6f357c28 [[patch.unused]] name = "hayro-cmap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" [[patch.unused]] name = "hayro-postscript" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" [[patch.unused]] name = "krilla" version = "0.8.2" -source = "git+https://github.com/storytold/craft-libs?rev=9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5#9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" +source = "git+https://github.com/storytold/craft-libs?rev=f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa#f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" diff --git a/Cargo.toml b/Cargo.toml index 7ca33668805..cb9fb0ef3be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,21 +12,21 @@ rust-version = "1.95" [workspace.dependencies] # The craft framework through its facade (`craft::ui::…`). The egui `[patch]` below must match # `craft::egui_fork::REV` (checked by `cargo xtask ci`). -craft = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5", default-features = false } -craft-tracked = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -craft-ui-macros = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } +craft = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa", default-features = false } +craft-tracked = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +craft-ui-macros = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } # internal photocraft-geom = { path = "crates/geom" } photocraft-color = { path = "crates/color" } photocraft-raster = { path = "crates/raster" } photocraft-doc = { path = "crates/doc" } photocraft-ops = { path = "crates/ops" } -craft-plist = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -photocraft-codecs = { package = "craft-image-codecs", git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -photocraft-formats = { package = "craft-file-formats", git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5", features = ["raster-codecs", "pdf", "svg", "ora", "kra", "xcf", "pdn", "raw", "psd", "affinity", "pcraft"] } +craft-plist = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +photocraft-codecs = { package = "craft-image-codecs", git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +photocraft-formats = { package = "craft-file-formats", git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa", features = ["raster-codecs", "pdf", "svg", "ora", "kra", "xcf", "pdn", "raw", "psd", "affinity", "pcraft"] } photocraft-raw = { path = "crates/raw" } -craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } +craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } photocraft-compose = { path = "crates/compose" } photocraft-gpu = { path = "crates/gpu" } photocraft-paint = { path = "crates/paint" } @@ -48,36 +48,36 @@ photocraft-ipp = { path = "crates/ipp" } # external # ICC colour management: the shared crate (replaces crates/cms; craft-libs#779). -craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -craft-print = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } +craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +craft-print = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } # HEIC/HEIF: the shared decoder (replaces crates/heif; craft-libs#784). -craft-heif = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5", features = ["raster", "write-raster"] } -craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -craft-pcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -craft-pcraft-bundle = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -craft-ora = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -craft-kra = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -craft-xcf = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -craft-pdn = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } +craft-heif = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa", features = ["raster", "write-raster"] } +craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +craft-pcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +craft-pcraft-bundle = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +craft-ora = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +craft-kra = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +craft-xcf = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +craft-pdn = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } # Keep the shared embedded-image validation API until the framework revision includes it. -craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5", features = ["tree-render", "tree-render-system-fonts"] } -craft-raw = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } +craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa", features = ["tree-render", "tree-render-system-fonts"] } +craft-raw = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } # Camera-field EXIF reader/writer, shared prerequisite craft-libs#1563. -craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -craft-crs = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -craft-develop = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -craft-develop-model = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } +craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +craft-crs = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +craft-develop = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +craft-develop-model = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } # Interface translations: lookup, fallback, CLDR plurals and language names over the craft-i18n # catalogs that `crates/ui-egui/build.rs` embeds from `CRAFT_I18N_DIR` (storytold/craft-i18n, at # the commit in `craft-i18n.rev`). Already in the tree through craft. -craft-i18n = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } +craft-i18n = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } # craft-update: app-specific pretend versions apply to startup and manual checks. -craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5", features = ["ui"] } +craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa", features = ["ui"] } thiserror = "2" serde = { version = "1", features = ["derive", "rc"] } serde_json = "1" @@ -350,16 +350,16 @@ opt-level = 3 # Keep the complete egui family and native event bridge on reviewed fork commits. [patch.crates-io] -krilla = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -hayro = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -vello_common = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } -vello_cpu = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } +krilla = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +hayro = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +vello_common = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } +vello_cpu = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } ecolor = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" } emath = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" } epaint = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" } diff --git a/crates/engine-core/Cargo.toml b/crates/engine-core/Cargo.toml index c6aded57438..41bb4f31eaf 100644 --- a/crates/engine-core/Cargo.toml +++ b/crates/engine-core/Cargo.toml @@ -19,7 +19,7 @@ photocraft-geom = { workspace = true } photocraft-color = { workspace = true } craft-cms = { workspace = true } # PCTIP codec from craft-libs#1564; kept at the same shared revision as the workspace. -craft-pcraft-tip = { package = "craft-pcraft-format", git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } +craft-pcraft-tip = { package = "craft-pcraft-format", git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } photocraft-raster = { workspace = true } photocraft-doc = { workspace = true } photocraft-ops = { workspace = true } diff --git a/crates/ipp/Cargo.toml b/crates/ipp/Cargo.toml index ec4d5b91e1e..23fc19a72fd 100644 --- a/crates/ipp/Cargo.toml +++ b/crates/ipp/Cargo.toml @@ -7,7 +7,7 @@ license.workspace = true rust-version.workspace = true [dependencies] -craft-ipp = { git = "https://github.com/storytold/craft-libs", rev = "9ad1dbf1b4e6c1b89e0d333d556bd6fb908eaeb5" } +craft-ipp = { git = "https://github.com/storytold/craft-libs", rev = "f0f9bb38ff21cd1bf7fa68f08f9f0cc7f22983fa" } [lints] workspace = true diff --git a/crates/ui-egui/src/tools/perspective_crop_snap_tests.rs b/crates/ui-egui/src/tools/perspective_crop_snap_tests.rs index 75d9e075ce7..57aab49a73d 100644 --- a/crates/ui-egui/src/tools/perspective_crop_snap_tests.rs +++ b/crates/ui-egui/src/tools/perspective_crop_snap_tests.rs @@ -1,119 +1,90 @@ -//! #11803: with View › Snap on, a Perspective Crop drag that starts on the pasteboard beyond a -//! canvas corner starts at that corner, and one starting within the snap distance of an edge starts -//! on it. Snap off, clicked corners, corner drags and moves are as before. +//! #11803: with View › Snap and Snap To › Document Bounds on, a Perspective Crop box dragged from +//! the pasteboard beyond a canvas corner starts at that corner, and one started within the snap +//! distance of an edge starts on it, already while it is dragged. Snap off, Document Bounds off and +//! clicked corners are as before. The rule lives in the framework's tool; these tests drive it +//! through the app's canvas, which hands it View › Snap To. + +use egui::Modifiers; +use serde_json::json; use super::*; +use crate::canvas::testing::{ToolEvent, tool_event}; -fn app(snap: bool) -> PhotocraftApp { - let mut s = photocraft_engine::Session::new(); - s.execute("file.new", serde_json::json!({"width": 800, "height": 500})).unwrap(); - let mut app = PhotocraftApp::new(s, crate::Services::default()); +/// A small document, so the canvas shows it at 100 % with pasteboard all round; the Perspective +/// Crop tool with Snap and Document Bounds as given. +fn app(snap: bool, document_bounds: bool) -> Box { + let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default()); + app.run("file.new", json!({"width": 200, "height": 150})).unwrap(); + app.sync_views(); app.ui.tool = Tool::PerspectiveCrop; app.ui.extras.snap = snap; - app.ui.view.snap_to.document_bounds = true; - set_zoom(&mut app, 1.0); + app.ui.view.snap_to.document_bounds = document_bounds; app } -fn set_zoom(app: &mut PhotocraftApp, zoom: f32) { - app.ui.views = vec![crate::state::View { zoom, ..Default::default() }]; - assert_eq!(app.point_zoom(), zoom); +fn press_and_move(app: &mut PhotocraftApp, from: [f64; 2], to: [f64; 2]) { + tool_event(app, ToolEvent::Down { x: from[0], y: from[1], pressure: 1.0 }, Modifiers::NONE); + let mid = [(from[0] + to[0]) / 2.0, (from[1] + to[1]) / 2.0]; + tool_event(app, ToolEvent::Move { x: mid[0], y: mid[1], pressure: 1.0 }, Modifiers::NONE); + tool_event(app, ToolEvent::Move { x: to[0], y: to[1], pressure: 1.0 }, Modifiers::NONE); } fn drag(app: &mut PhotocraftApp, from: [f64; 2], to: [f64; 2]) { - pointer(app, ToolEvent::Down { x: from[0], y: from[1], pressure: 1.0 }, egui::Modifiers::NONE); - pointer(app, ToolEvent::Move { x: to[0], y: to[1], pressure: 1.0 }, egui::Modifiers::NONE); - pointer(app, ToolEvent::Up { x: to[0], y: to[1] }, egui::Modifiers::NONE); + press_and_move(app, from, to); + tool_event(app, ToolEvent::Up { x: to[0], y: to[1] }, Modifiers::NONE); } fn click(app: &mut PhotocraftApp, p: [f64; 2]) { - drag(app, p, p); + tool_event(app, ToolEvent::Down { x: p[0], y: p[1], pressure: 1.0 }, Modifiers::NONE); + tool_event(app, ToolEvent::Up { x: p[0], y: p[1] }, Modifiers::NONE); +} + +/// Whether the quad's corners are `want` (the drag maps through the view, a fraction of a pixel off). +fn quad_is(app: &PhotocraftApp, want: [[f64; 2]; 4]) -> bool { + quad(app).is_some_and(|q| q.iter().flatten().zip(want.iter().flatten()).all(|(got, want)| (got - want).abs() < 1e-2)) } #[test] -fn a_drag_from_the_pasteboard_starts_at_the_canvas_corner() { - let mut app = app(true); - drag(&mut app, [-78.0, -100.0], [700.0, 450.0]); - assert_eq!(app.ui.perspective_crop, Some([[0.0, 0.0], [700.0, 0.0], [700.0, 450.0], [0.0, 450.0]])); +fn a_drag_from_the_pasteboard_beyond_a_corner_starts_at_it() { + let mut app = app(true, true); + press_and_move(&mut app, [-30.0, -40.0], [150.0, 100.0]); + assert!(quad_is(&app, [[0.0, 0.0], [150.0, 0.0], [150.0, 100.0], [0.0, 100.0]]), "while dragging: {:?}", quad(&app)); + tool_event(&mut app, ToolEvent::Up { x: 150.0, y: 100.0 }, Modifiers::NONE); + assert!(quad_is(&app, [[0.0, 0.0], [150.0, 0.0], [150.0, 100.0], [0.0, 100.0]]), "{:?}", quad(&app)); + // The bottom right corner too. + let mut app = self::app(true, true); + drag(&mut app, [240.0, 190.0], [50.0, 40.0]); + assert!(quad_is(&app, [[50.0, 40.0], [200.0, 40.0], [200.0, 150.0], [50.0, 150.0]]), "{:?}", quad(&app)); } #[test] -fn a_drag_near_an_edge_starts_on_it() { - let mut app = app(true); - drag(&mut app, [3.0, 4.0], [700.0, 450.0]); - assert_eq!(app.ui.perspective_crop, Some([[0.0, 0.0], [700.0, 0.0], [700.0, 450.0], [0.0, 450.0]])); - // Well inside, nothing moves. - let mut app = self::app(true); - drag(&mut app, [100.0, 120.0], [700.0, 450.0]); - assert_eq!(app.ui.perspective_crop.map(|q| q[0]), Some([100.0, 120.0])); +fn a_drag_near_an_edge_starts_on_it_and_one_inside_stays() { + let mut app = app(true, true); + drag(&mut app, [2.0, 3.0], [150.0, 100.0]); + assert!(quad_is(&app, [[0.0, 0.0], [150.0, 0.0], [150.0, 100.0], [0.0, 100.0]]), "{:?}", quad(&app)); + let mut app = self::app(true, true); + drag(&mut app, [60.0, 50.0], [150.0, 100.0]); + assert!(quad_is(&app, [[60.0, 50.0], [150.0, 50.0], [150.0, 100.0], [60.0, 100.0]]), "{:?}", quad(&app)); + // Outside on one axis only, beyond the snap distance: the start stays. + let mut app = self::app(true, true); + drag(&mut app, [-30.0, 50.0], [150.0, 100.0]); + assert!(quad_is(&app, [[-30.0, 50.0], [150.0, 50.0], [150.0, 100.0], [-30.0, 100.0]]), "{:?}", quad(&app)); } #[test] -fn with_snap_off_the_drag_is_as_before() { - let mut app = app(false); - drag(&mut app, [-78.0, -100.0], [700.0, 450.0]); - assert_eq!(app.ui.perspective_crop, Some([[-78.0, -100.0], [700.0, -100.0], [700.0, 450.0], [-78.0, 450.0]])); +fn with_snap_or_document_bounds_off_the_drag_starts_where_it_was_pressed() { + for (snap, bounds) in [(false, true), (true, false)] { + let mut app = app(snap, bounds); + drag(&mut app, [-30.0, -40.0], [150.0, 100.0]); + assert!(quad_is(&app, [[-30.0, -40.0], [150.0, -40.0], [150.0, 100.0], [-30.0, 100.0]]), "snap {snap}, bounds {bounds}: {:?}", quad(&app)); + } } #[test] fn clicked_corners_stay_where_they_were_clicked() { - let mut app = app(true); - for p in [[-50.0, -40.0], [850.0, -30.0], [820.0, 540.0], [-20.0, 520.0]] { + let mut app = app(true, true); + for p in [[-30.0, -30.0], [100.0, 2.0], [180.0, 140.0], [2.0, 120.0]] { click(&mut app, p); } - assert_eq!(app.ui.perspective_crop, Some([[-50.0, -40.0], [850.0, -30.0], [820.0, 540.0], [-20.0, 520.0]])); -} - -#[test] -fn corner_drags_and_moves_are_as_before() { - let mut app = app(true); - app.ui.perspective_crop = Some([[100.0, 100.0], [600.0, 100.0], [600.0, 400.0], [100.0, 400.0]]); - drag(&mut app, [100.0, 100.0], [-60.0, -60.0]); - assert_eq!(app.ui.perspective_crop.map(|q| q[0]), Some([-60.0, -60.0]), "a corner goes where it is dragged"); - drag(&mut app, [300.0, 250.0], [310.0, 250.0]); - assert_eq!(app.ui.perspective_crop.map(|q| q[1]), Some([610.0, 100.0]), "a move keeps its offset"); -} - -#[test] -fn far_presses_and_no_document_never_panic() { - let mut app = app(true); - drag(&mut app, [-1.0e12, -1.0e12], [1.0e12, 1.0e12]); - assert!(app.ui.perspective_crop.is_some_and(|q| q.iter().flatten().all(|v| v.is_finite()))); - let mut empty = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default()); - empty.ui.tool = Tool::PerspectiveCrop; - drag(&mut empty, [-100.0, -100.0], [50.0, 50.0]); - assert_eq!(empty.ui.perspective_crop, None); -} - -#[test] -fn the_drag_preview_shows_the_snapped_start() { - let mut app = app(true); - pointer(&mut app, ToolEvent::Down { x: -78.0, y: -100.0, pressure: 1.0 }, egui::Modifiers::NONE); - pointer(&mut app, ToolEvent::Move { x: 700.0, y: 450.0, pressure: 1.0 }, egui::Modifiers::NONE); - assert_eq!(shown_quad(&app), Some([[0.0, 0.0], [700.0, 0.0], [700.0, 450.0], [0.0, 450.0]]), "while dragging"); - pointer(&mut app, ToolEvent::Up { x: 700.0, y: 450.0 }, egui::Modifiers::NONE); - assert_eq!(shown_quad(&app), app.ui.perspective_crop, "after the release"); -} - -#[test] -fn a_press_outside_on_one_side_only_stays_put() { - for from in [[-50.0, 100.0], [100.0, -50.0], [850.0, 100.0], [100.0, 550.0]] { - let mut app = app(true); - drag(&mut app, from, [400.0, 300.0]); - let q = app.ui.perspective_crop.unwrap_or_default(); - assert!(q.contains(&from), "{from:?} -> {q:?}"); - } -} - -#[test] -fn the_snap_distance_is_in_screen_pixels() { - // 8 screen px: about 10.7 document px at 75%, 4 at 200%. - let mut app = app(true); - set_zoom(&mut app, 0.75); - drag(&mut app, [9.0, 9.0], [700.0, 450.0]); - assert_eq!(app.ui.perspective_crop.map(|q| q[0]), Some([0.0, 0.0]), "75%"); - let mut app = self::app(true); - set_zoom(&mut app, 2.0); - drag(&mut app, [6.0, 6.0], [700.0, 450.0]); - assert_eq!(app.ui.perspective_crop.map(|q| q[0]), Some([6.0, 6.0]), "200%"); + assert!(quad_is(&app, [[-30.0, -30.0], [100.0, 2.0], [180.0, 140.0], [2.0, 120.0]]), "{:?}", quad(&app)); } diff --git a/crates/ui-egui/src/tools/perspective_crop_ui.rs b/crates/ui-egui/src/tools/perspective_crop_ui.rs index ebab323c531..58c1499dddc 100644 --- a/crates/ui-egui/src/tools/perspective_crop_ui.rs +++ b/crates/ui-egui/src/tools/perspective_crop_ui.rs @@ -230,6 +230,10 @@ mod perspective_crop_deselect_tests; #[path = "perspective_crop_mirrored_tests.rs"] mod perspective_crop_mirrored_tests; +#[cfg(test)] +#[path = "perspective_crop_snap_tests.rs"] +mod perspective_crop_snap_tests; + #[cfg(test)] mod tests { use craft::behavior::kurbo::Point;