From ad0675d4f9b5989f9f03098297040ec975ed73b1 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Mon, 16 Nov 2026 08:16:01 -0800 Subject: [PATCH 1/3] Transform panel: Show on Shape Creation shows the panel after a shape is drawn The Transform panel menu has a Show on Shape Creation check item, the `showOnShapeCreation` preference (off until chosen, kept with the preferences). With it on, the app shows the Transform panel, as Window > Transform shows it, after a shape is drawn: a drag or OK in the dialog of the Rectangle, Rounded Rectangle, Ellipse, Polygon, Star or Line Segment tool, a shape the Shaper tool recognizes, or a shape.rectangle, shape.ellipse, shape.polygon, shape.star or shape.line command, alone or as a batch step. A panel that is showing already stays as it is. A canceled drag or dialog, a failed command, saved steps an action plays, a script's commands and Presentation Mode leave the panels as they are. The engine notes a drawn shape where it journals the command (`Session::take_shape_drawn`), and the app checks it once per frame. Help page: https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/transform-panel-overview.html --- crates/engine/src/cmd/fileio/batch.rs | 1 + crates/engine/src/cmd/prefscmds.rs | 2 + crates/engine/src/command_sets.rs | 5 + crates/engine/src/lib.rs | 5 +- crates/engine/src/prefs.rs | 6 ++ crates/engine/src/session.rs | 2 +- crates/engine/src/session/documents.rs | 1 + crates/engine/src/session/edit.rs | 1 + crates/engine/src/session/execute.rs | 28 ++++- crates/engine/src/tests/journal.rs | 100 ++++++++++++++++++ crates/ui-egui/src/app.rs | 3 + crates/ui-egui/src/i18n/bg.tsv | 1 + crates/ui-egui/src/i18n/bs.tsv | 1 + crates/ui-egui/src/i18n/ca.tsv | 1 + crates/ui-egui/src/i18n/cs.tsv | 1 + crates/ui-egui/src/i18n/da.tsv | 1 + crates/ui-egui/src/i18n/de.tsv | 1 + crates/ui-egui/src/i18n/el.tsv | 1 + crates/ui-egui/src/i18n/es.tsv | 1 + crates/ui-egui/src/i18n/fi.tsv | 1 + crates/ui-egui/src/i18n/fr.tsv | 1 + crates/ui-egui/src/i18n/gu.tsv | 1 + crates/ui-egui/src/i18n/hi.tsv | 1 + crates/ui-egui/src/i18n/hu.tsv | 1 + crates/ui-egui/src/i18n/id.tsv | 1 + crates/ui-egui/src/i18n/it.tsv | 1 + crates/ui-egui/src/i18n/ja.tsv | 1 + crates/ui-egui/src/i18n/ka.tsv | 1 + crates/ui-egui/src/i18n/ko.tsv | 1 + crates/ui-egui/src/i18n/nl.tsv | 1 + crates/ui-egui/src/i18n/pl.tsv | 1 + crates/ui-egui/src/i18n/pt-br.tsv | 1 + crates/ui-egui/src/i18n/ru.tsv | 1 + crates/ui-egui/src/i18n/sv.tsv | 1 + crates/ui-egui/src/i18n/tr.tsv | 1 + crates/ui-egui/src/i18n/uk.tsv | 1 + crates/ui-egui/src/i18n/vi.tsv | 1 + crates/ui-egui/src/i18n/zh-hans.tsv | 1 + crates/ui-egui/src/i18n/zh-hant.tsv | 1 + crates/ui-egui/src/panels/transform.rs | 20 ++++ crates/ui-egui/src/panels/transform/tests.rs | 104 +++++++++++++++++++ docs/mcp.md | 8 +- docs/target-app-parity.md | 1 + 43 files changed, 310 insertions(+), 5 deletions(-) diff --git a/crates/engine/src/cmd/fileio/batch.rs b/crates/engine/src/cmd/fileio/batch.rs index 5863dd4ff7..93670cefd9 100644 --- a/crates/engine/src/cmd/fileio/batch.rs +++ b/crates/engine/src/cmd/fileio/batch.rs @@ -68,6 +68,7 @@ pub(super) fn batch(s: &mut Session, p: &Value) -> Result { o.insert("commands".into(), Value::Array(cmds)); } if !s.previewing { + s.note_shape_drawn("command.batch", &entry); s.journal.push(("command.batch".into(), entry)); } Ok(json!({ "results": results })) diff --git a/crates/engine/src/cmd/prefscmds.rs b/crates/engine/src/cmd/prefscmds.rs index 1d5286b11d..fc02c06ca1 100644 --- a/crates/engine/src/cmd/prefscmds.rs +++ b/crates/engine/src/cmd/prefscmds.rs @@ -442,6 +442,8 @@ pub const PREF_SPECS: &[PrefSpec] = &[ choice(&[("default", "Default"), ("object", "Transform Object Only"), ("pattern", "Transform Pattern Only"), ("both", "Transform Both")]) ), p!("useRegistrationPointForSymbol", "General", "Transform Panel", "Use Registration Point for Symbol", bool), + // The Transform panel menu: drawing a shape shows the panel. + p!("showOnShapeCreation", "General", "Transform Panel", "Show on Shape Creation", bool), // The Align panel menu's Align to Glyph Bounds: Align and Distribute measure type by its glyphs' ink. p!("alignGlyphBoundsPoint", "Type", "Align to Glyph Bounds", "Point Text", bool), p!("alignGlyphBoundsArea", "Type", "Align to Glyph Bounds", "Area Text", bool), diff --git a/crates/engine/src/command_sets.rs b/crates/engine/src/command_sets.rs index ee594bae25..82e090a3ef 100644 --- a/crates/engine/src/command_sets.rs +++ b/crates/engine/src/command_sets.rs @@ -24,6 +24,11 @@ pub const ON_ACTIVE_ARTBOARD: [&str; 8] = [ /// `indices` instead. pub const FIT_ACTIVE_ARTBOARD: [&str; 2] = ["artboard.fitToArt", "artboard.fitToSelection"]; +/// The commands that the Rectangle, Rounded Rectangle, Ellipse, Polygon, Star and Line Segment +/// tools and their dialogs, and the Shaper tool for a shape it recognizes, run to draw a shape +/// ([`crate::Session::take_shape_drawn`]). +pub const DRAWS_SHAPE: [&str; 5] = ["shape.rectangle", "shape.ellipse", "shape.polygon", "shape.star", "shape.line"]; + /// `(command, param)` pairs the journal records only so a replay reproduces the original run /// (dates from the clock: `cmd::clock_date`; the artboards the app passes to the /// [`ON_ACTIVE_ARTBOARD`] and [`FIT_ACTIVE_ARTBOARD`] commands and to a batch; the artboards the diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs index 4f7532108d..df070fe1e1 100644 --- a/crates/engine/src/lib.rs +++ b/crates/engine/src/lib.rs @@ -109,6 +109,9 @@ pub struct Session { /// Set while saved steps play ([`Session::replay`]): [`Session::execute`] then takes keys the /// command's params description doesn't name instead of refusing them. replaying: bool, + /// Set when a command that draws a shape was journaled outside saved steps + /// ([`Session::take_shape_drawn`]). + shape_drawn: bool, /// Set when the active tool panicked (see [`guard`]); reported by the next tool event. tool_panic: Option, /// How many times switching or closing documents, or replacing the active one, has started the @@ -403,7 +406,7 @@ mod session; pub(crate) use command_sets::SELECTS_GIVEN_IDS; #[cfg(test)] use command_sets::given_ids; -pub use command_sets::{FIT_ACTIVE_ARTBOARD, ON_ACTIVE_ARTBOARD, waits_for_tool_edit}; +pub use command_sets::{DRAWS_SHAPE, FIT_ACTIVE_ARTBOARD, ON_ACTIVE_ARTBOARD, waits_for_tool_edit}; pub use doc_state::{DocState, OpenRows, RecalledSelection}; pub use error::{EngineError, READ_ONLY_LOCATION, Result, SCRIPT_BUSY}; #[cfg(test)] diff --git a/crates/engine/src/prefs.rs b/crates/engine/src/prefs.rs index 86525e9214..55328b3057 100644 --- a/crates/engine/src/prefs.rs +++ b/crates/engine/src/prefs.rs @@ -358,6 +358,11 @@ pub struct Prefs { /// selected, the panel and the Properties panel's Transform section measure and transform it /// from its symbol's registration point instead of the reference point. pub use_registration_point_for_symbol: bool, + /// The Transform panel menu's Show on Shape Creation: drawing a shape with the Rectangle, + /// Rounded Rectangle, Ellipse, Polygon, Star or Line Segment tool (a drag or OK in the tool's + /// dialog), a shape the Shaper tool recognizes, or running one of [`crate::DRAWS_SHAPE`], shows + /// the Transform panel. + pub show_on_shape_creation: bool, /// The tools' persistent options by store (a tool id, or a store a family shares: `liquify` /// holds the Liquify tools' Global Brush Dimensions), see [`vectorcraft_tools::settings`]: /// kept across tool switches and saved with the preferences. Not a Preferences dialog field: @@ -559,6 +564,7 @@ impl Default for Prefs { single_corner_radius: true, transform_panel_patterns: "default".to_string(), use_registration_point_for_symbol: false, + show_on_shape_creation: false, tool_settings: Default::default(), perspective_presets: vec![], blend_options: None, diff --git a/crates/engine/src/session.rs b/crates/engine/src/session.rs index d6af60fee1..e48a8f6f38 100644 --- a/crates/engine/src/session.rs +++ b/crates/engine/src/session.rs @@ -1,4 +1,4 @@ -use super::command_sets::{JOURNALED_READS, SELECTS_GIVEN_IDS, TAKES_GUIDE_IDS, given_ids, strip_replay_only, waits_for_tool_edit}; +use super::command_sets::{DRAWS_SHAPE, JOURNALED_READS, SELECTS_GIVEN_IDS, TAKES_GUIDE_IDS, given_ids, strip_replay_only, waits_for_tool_edit}; use super::doc_state::DocState; use super::error::{EngineError, Result}; use super::history::NamedStep; diff --git a/crates/engine/src/session/documents.rs b/crates/engine/src/session/documents.rs index 4415566d13..f4ca11a923 100644 --- a/crates/engine/src/session/documents.rs +++ b/crates/engine/src/session/documents.rs @@ -68,6 +68,7 @@ impl Session { preview_memo: Default::default(), depth: 0, replaying: false, + shape_drawn: false, tool_panic: None, tool_resets: 0, tool_set_since_reset: false, diff --git a/crates/engine/src/session/edit.rs b/crates/engine/src/session/edit.rs index 4f47b325b9..0265bffaa0 100644 --- a/crates/engine/src/session/edit.rs +++ b/crates/engine/src/session/edit.rs @@ -436,6 +436,7 @@ impl Session { st.last_perspective = perspective_again; } let (doc, journal, grouped) = (self.active().map(|d| d.uid), self.journal.len(), self.undo_group_docs()); + self.note_shape_drawn(&preview.0, &preview.1); self.journal.push(preview); self.journal_in_undo_groups(doc, &grouped, journal); if self.depth == 0 { diff --git a/crates/engine/src/session/execute.rs b/crates/engine/src/session/execute.rs index 3bc5c72378..7b0c5629ed 100644 --- a/crates/engine/src/session/execute.rs +++ b/crates/engine/src/session/execute.rs @@ -1,6 +1,6 @@ use super::{ - CommandSpec, EngineError, JOURNALED_READS, NodeId, Result, SELECTS_GIVEN_IDS, Selection, Session, TAKES_GUIDE_IDS, Value, cmd, find_command, - given_ids, guard, strip_replay_only, waits_for_tool_edit, + CommandSpec, DRAWS_SHAPE, EngineError, JOURNALED_READS, NodeId, Result, SELECTS_GIVEN_IDS, Selection, Session, TAKES_GUIDE_IDS, Value, cmd, + find_command, given_ids, guard, strip_replay_only, waits_for_tool_edit, }; /// A command's result `r` with the warnings of the previews that settling an interaction applied @@ -242,6 +242,7 @@ impl Session { let journaled = spec.journal || (self.depth == 0 && std::mem::take(&mut self.journal_query)); if journaled && self.depth == 0 && self.active().is_none_or(|d| d.interaction.is_none()) { let p = self.noted(params); + self.note_shape_drawn(id, &p); self.journal.push((id.to_string(), p)); } if self.depth == 0 { @@ -313,6 +314,29 @@ impl Session { self.replaying } + /// Note that journal entry `id` with `params` drew a shape ([`DRAWS_SHAPE`], also as a step of + /// `command.batch`), unless saved steps are playing or a script runs. + pub(crate) fn note_shape_drawn(&mut self, id: &str, params: &Value) { + let draws = |id: &str| DRAWS_SHAPE.contains(&id); + let in_batch = || { + params + .get("commands") + .and_then(Value::as_array) + .is_some_and(|steps| steps.iter().any(|step| step.get("command").and_then(Value::as_str).is_some_and(draws))) + }; + if !self.replaying && !self.script_in_run && (draws(id) || (id == "command.batch" && in_batch())) { + self.shape_drawn = true; + } + } + + /// Whether a shape was drawn since the last call: a drag of a shape tool that was committed, OK + /// in its dialog, or a [`DRAWS_SHAPE`] command (alone or as a batch step). Saved steps that play + /// ([`Session::replay`]) and a script's commands do not count. A frontend that shows the + /// Transform panel after a new shape asks this. + pub fn take_shape_drawn(&mut self) -> bool { + std::mem::take(&mut self.shape_drawn) + } + /// The journal from entry `start` on, as an action records it: without the params that only /// pin a replay to the original run ([`REPLAY_ONLY`]), so playing the action later acts now. pub fn journal_for_action(&self, start: usize) -> Vec<(String, Value)> { diff --git a/crates/engine/src/tests/journal.rs b/crates/engine/src/tests/journal.rs index 93c2390237..a6b730872f 100644 --- a/crates/engine/src/tests/journal.rs +++ b/crates/engine/src/tests/journal.rs @@ -1290,3 +1290,103 @@ fn a_failed_preview_is_not_journaled_at_commit() { s.commit_interaction().unwrap(); assert_eq!(s.journal.len(), journal); } + +/// `take_shape_drawn` is true once after a shape tool's drag is released, a shape command runs (alone +/// or as a batch step), and false after a drag in progress, a canceled or failed one, a click (which +/// opens the tool's dialog), other commands and saved steps that play. +#[test] +fn take_shape_drawn_follows_the_shapes_that_were_drawn() { + use vectorcraft_tools::{Action, PointerEvent, PointerKind}; + let mut s = Session::new(); + s.execute("file.new", &json!({"width": 400, "height": 300})).unwrap(); + assert!(!s.take_shape_drawn(), "a new document draws no shape"); + let v = crate::tooling::ViewInfo { smart_guides: false, ..Default::default() }; + for (tool, kind) in [ + ("rectangle", "Rectangle"), + ("roundedRectangle", "Rectangle"), + ("ellipse", "Ellipse"), + ("polygon", "Polygon"), + ("star", "Star"), + ("lineSegment", "Line"), + ] { + s.select_tool(tool, v).unwrap(); + s.pointer(&PointerEvent::new(PointerKind::Down, 50.0, 50.0), v).unwrap(); + s.pointer(&PointerEvent::new(PointerKind::Drag, 120.0, 110.0), v).unwrap(); + assert!(!s.take_shape_drawn(), "{tool}: a drag in progress"); + s.pointer(&PointerEvent::new(PointerKind::Up, 150.0, 130.0), v).unwrap(); + assert!(s.take_shape_drawn(), "{tool} ({kind}): the released drag"); + assert!(!s.take_shape_drawn(), "{tool}: once"); + // Nothing selected, so the next press is not on the new shape's bounding box. + s.execute("select.none", &json!({})).unwrap(); + // A click asks for the tool's dialog and draws nothing yet. + s.pointer(&PointerEvent::new(PointerKind::Down, 200.0, 200.0), v).unwrap(); + s.pointer(&PointerEvent::new(PointerKind::Up, 200.0, 200.0), v).unwrap(); + assert!(!s.take_shape_drawn(), "{tool}: a click"); + } + // A canceled drag, and a drag whose preview failed. + let rect = json!({"x": 10, "y": 10, "width": 40, "height": 30}); + s.apply_actions(vec![Action::Begin("Rectangle".into()), Action::Preview("shape.rectangle".into(), rect.clone()), Action::Cancel]).unwrap(); + assert!(!s.take_shape_drawn(), "a canceled drag"); + let bad = json!({"x": 10, "y": 10, "width": "wide", "height": 30}); + s.apply_actions(vec![Action::Begin("Rectangle".into()), Action::Preview("shape.rectangle".into(), bad.clone()), Action::Commit]).unwrap(); + assert!(!s.take_shape_drawn(), "a failed drag"); + // Commands: each shape command, a failed one, a batch with and without a shape, other edits. + for (id, p) in [ + ("shape.rectangle", rect.clone()), + ("shape.ellipse", rect.clone()), + ("shape.polygon", json!({"cx": 100, "cy": 100, "radius": 30})), + ("shape.star", json!({"cx": 100, "cy": 100, "radius1": 30, "radius2": 15, "points": 5})), + ("shape.line", json!({"x1": 0, "y1": 0, "x2": 50, "y2": 50})), + ] { + s.execute(id, &p).unwrap(); + assert!(s.take_shape_drawn(), "{id}"); + } + assert!(s.execute("shape.rectangle", &bad).is_err()); + assert!(!s.take_shape_drawn(), "a failed command"); + s.execute( + "command.batch", + &json!({"commands": [{"command": "shape.ellipse", "params": rect}, {"command": "object.move", "params": {"dx": 5, "dy": 0}}]}), + ) + .unwrap(); + assert!(s.take_shape_drawn(), "a batch that draws"); + s.execute("command.batch", &json!({"commands": [{"command": "object.move", "params": {"dx": 5, "dy": 0}}]})).unwrap(); + assert!(!s.take_shape_drawn(), "a batch that draws nothing"); + s.execute("shape.rectangularGrid", &json!({"x": 0, "y": 0, "width": 100, "height": 100})).unwrap(); + s.execute("edit.undo", &json!({})).unwrap(); + s.execute("edit.undo", &json!({})).unwrap(); + s.execute("edit.redo", &json!({})).unwrap(); + assert!(!s.take_shape_drawn(), "other commands, undo and redo"); + // Saved steps that play. + s.replay("shape.rectangle", &rect).unwrap(); + s.replay( + "command.batch", + &json!({"commands": [{"command": "shape.star", "params": {"cx": 50, "cy": 50, "radius1": 20, "radius2": 10, "points": 5}}]}), + ) + .unwrap(); + assert!(!s.take_shape_drawn(), "saved steps"); + // A script's commands. + let count = |s: &Session| s.doc().unwrap().doc.layers[0].children().map_or(0, |c| c.len()); + let shapes = count(&s); + s.execute("script.run", &json!({"source": "vc.run('shape.rectangle', {x:100,y:0,width:5,height:5});", "name": "t.js"})).unwrap(); + assert_eq!(count(&s), shapes + 1, "the script drew"); + assert!(!s.take_shape_drawn(), "a script"); +} + +/// Show on Shape Creation (`showOnShapeCreation`) is off until set, is set and read through +/// `prefs.set` and `prefs.get`, refuses a value that is not a boolean, and is kept with the saved +/// preferences. +#[test] +fn show_on_shape_creation_is_a_saved_preference() { + let mut s = Session::new(); + assert!(!s.prefs.show_on_shape_creation); + assert_eq!(s.execute("prefs.get", &json!({"key": "showOnShapeCreation"})).unwrap(), json!(false)); + s.execute("prefs.set", &json!({"key": "showOnShapeCreation", "value": true})).unwrap(); + assert!(s.prefs.show_on_shape_creation); + assert_eq!(s.execute("prefs.get", &json!({"key": "showOnShapeCreation"})).unwrap(), json!(true)); + assert!(s.execute("prefs.set", &json!({"key": "showOnShapeCreation", "value": "yes"})).is_err()); + assert!(s.prefs.show_on_shape_creation, "a refused value changes nothing"); + let saved = serde_json::to_value(&s.prefs).unwrap(); + assert_eq!(saved["showOnShapeCreation"], json!(true)); + let read: Prefs = serde_json::from_value(saved).unwrap(); + assert!(read.show_on_shape_creation); +} diff --git a/crates/ui-egui/src/app.rs b/crates/ui-egui/src/app.rs index f708d0f454..310df34ff4 100644 --- a/crates/ui-egui/src/app.rs +++ b/crates/ui-egui/src/app.rs @@ -621,6 +621,9 @@ impl VectorcraftApp { trace_runs::show(self, &ctx); opening::show(self, &ctx); palette::show(self, &ctx); + // A shape drawn on the canvas, in a dialog or by a command in this pass shows the Transform + // panel (Show on Shape Creation). + panels::transform::show_on_shape_creation(self, &ctx); // After every panel had its chance to draw in this pass. crate::panels::three_d::end_stale_drag(self, &ctx); if self.custom_titlebar { diff --git a/crates/ui-egui/src/i18n/bg.tsv b/crates/ui-egui/src/i18n/bg.tsv index 0d124dacc4..dee4e4b922 100644 --- a/crates/ui-egui/src/i18n/bg.tsv +++ b/crates/ui-egui/src/i18n/bg.tsv @@ -3357,6 +3357,7 @@ digits Malayalam Малаялам Show Modified Показване на променените Show Note Показване на бележка Show Options Показване на опциите + Show on Shape Creation Показване при създаване на фигура Show Recent Colors Показване на скорошните цветове Toggle RGB Percent Превключване на RGB в проценти Show Original Path Показване на оригиналния път diff --git a/crates/ui-egui/src/i18n/bs.tsv b/crates/ui-egui/src/i18n/bs.tsv index 571962db44..9c361f015a 100644 --- a/crates/ui-egui/src/i18n/bs.tsv +++ b/crates/ui-egui/src/i18n/bs.tsv @@ -1635,6 +1635,7 @@ digits Malayalam Malajalam Roman Baseline Latinična osnovna linija Select a text object to edit its character attributes. Odaberite tekstualni objekat da uredite njegove atribute znakova. Show Options Prikaži opcije + Show on Shape Creation Prikaži pri kreiranju oblika Show Recent Colors Prikaži nedavne boje Toggle RGB Percent Uključi/isključi RGB u postocima Color Panel Options Opcije panela boja diff --git a/crates/ui-egui/src/i18n/ca.tsv b/crates/ui-egui/src/i18n/ca.tsv index 9381aa96a7..6ff4a1756c 100644 --- a/crates/ui-egui/src/i18n/ca.tsv +++ b/crates/ui-egui/src/i18n/ca.tsv @@ -4397,6 +4397,7 @@ digits Malayalam Malaiàlam Show Modified Mostra els modificats Show Note Mostra la nota Show Options Mostra les opcions + Show on Shape Creation Mostra en crear formes Show Recent Colors Mostra els colors recents Toggle RGB Percent Commuta RGB en percentatge Show Original Path Mostra el traçat original diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsv index 0b06ffe205..ecddacdb69 100644 --- a/crates/ui-egui/src/i18n/cs.tsv +++ b/crates/ui-egui/src/i18n/cs.tsv @@ -1664,6 +1664,7 @@ digits Malayalam Malajálamské Roman Baseline Latinková účaří Select a text object to edit its character attributes. Vyberte textový objekt, abyste mohli upravit atributy jeho znaků. Show Options Zobrazit možnosti + Show on Shape Creation Zobrazit při vytvoření tvaru Show Recent Colors Zobrazit nedávné barvy Toggle RGB Percent Přepnout RGB v procentech Color Panel Options Možnosti panelu Barva diff --git a/crates/ui-egui/src/i18n/da.tsv b/crates/ui-egui/src/i18n/da.tsv index f039593aaa..1893c271a7 100644 --- a/crates/ui-egui/src/i18n/da.tsv +++ b/crates/ui-egui/src/i18n/da.tsv @@ -4237,6 +4237,7 @@ digits Malayalam Malayalam Roman Baseline Romersk grundlinje Select a text object to edit its character attributes. Markér et tekstobjekt for at redigere dets tegnattributter. Show Options Vis indstillinger + Show on Shape Creation Vis ved oprettelse af form Show Recent Colors Vis seneste farver Toggle RGB Percent Skift RGB i procent Small Caps Kapitæler diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv index 10f44a78b9..c8975a71a8 100644 --- a/crates/ui-egui/src/i18n/de.tsv +++ b/crates/ui-egui/src/i18n/de.tsv @@ -3421,6 +3421,7 @@ digits Malayalam Malayalam Show Modified Geänderte einblenden Show Note Notiz einblenden Show Options Optionen einblenden + Show on Shape Creation Beim Erstellen von Formen einblenden Show Recent Colors Zuletzt verwendete Farben einblenden Toggle RGB Percent RGB in Prozent umschalten Show Original Path Originalpfad einblenden diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv index 352c47f83a..96d1469ec5 100644 --- a/crates/ui-egui/src/i18n/el.tsv +++ b/crates/ui-egui/src/i18n/el.tsv @@ -4093,6 +4093,7 @@ digits Malayalam Μαλαγιάλαμ Show Modified Εμφάνιση τροποποιημένων Show Note Εμφάνιση σημείωσης Show Options Εμφάνιση επιλογών + Show on Shape Creation Εμφάνιση κατά τη δημιουργία σχήματος Show Recent Colors Εμφάνιση πρόσφατων χρωμάτων Toggle RGB Percent Εναλλαγή RGB σε ποσοστό Show Original Path Εμφάνιση αρχικής διαδρομής diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index 55f561d6b1..db1b2af8fa 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -3459,6 +3459,7 @@ digits Malayalam Malayálam Show Modified Mostrar modificados Show Note Mostrar nota Show Options Mostrar opciones + Show on Shape Creation Mostrar al crear formas Show Recent Colors Mostrar colores recientes Toggle RGB Percent Alternar RGB en porcentaje Show Original Path Mostrar trazado original diff --git a/crates/ui-egui/src/i18n/fi.tsv b/crates/ui-egui/src/i18n/fi.tsv index 08650843e3..6a0f99e59d 100644 --- a/crates/ui-egui/src/i18n/fi.tsv +++ b/crates/ui-egui/src/i18n/fi.tsv @@ -1638,6 +1638,7 @@ digits Malayalam Malajalam Roman Baseline Latinalainen perusviiva Select a text object to edit its character attributes. Valitse tekstiobjekti, jonka merkkimääritteitä haluat muokata. Show Options Näytä asetukset + Show on Shape Creation Näytä muotoa luotaessa Show Recent Colors Näytä viimeisimmät värit Toggle RGB Percent Vaihda RGB prosentteina Small Caps Kapiteelit diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsv index 397797d5e8..a5184ef035 100644 --- a/crates/ui-egui/src/i18n/fr.tsv +++ b/crates/ui-egui/src/i18n/fr.tsv @@ -3447,6 +3447,7 @@ digits Malayalam Malayalam Show Modified Afficher les éléments modifiés Show Note Afficher la note Show Options Afficher les options + Show on Shape Creation Afficher à la création de formes Show Recent Colors Afficher les couleurs récentes Toggle RGB Percent Basculer RVB en pourcentage Show Original Path Afficher le tracé d’origine diff --git a/crates/ui-egui/src/i18n/gu.tsv b/crates/ui-egui/src/i18n/gu.tsv index 7959370e04..518fd36b29 100644 --- a/crates/ui-egui/src/i18n/gu.tsv +++ b/crates/ui-egui/src/i18n/gu.tsv @@ -3578,6 +3578,7 @@ Show Live Paint Gaps લાઇવ પેઇન્ટ ગેપ બતાવો Show Note નોંધ બતાવો Show Options વિકલ્પો બતાવો + Show on Shape Creation શેપ બનાવતી વખતે બતાવો Show Original Path મૂળ પાથ બતાવો Show Package પૅકેજ બતાવો Show Panel પેનલ બતાવો diff --git a/crates/ui-egui/src/i18n/hi.tsv b/crates/ui-egui/src/i18n/hi.tsv index 88ec0a8f19..f3f627c476 100644 --- a/crates/ui-egui/src/i18n/hi.tsv +++ b/crates/ui-egui/src/i18n/hi.tsv @@ -4729,6 +4729,7 @@ antiAlias Sharp शार्प Show Modified संशोधित दिखाएँ Show Note नोट दिखाएं Show Options ऑप्शन्स दिखाएँ + Show on Shape Creation शेप बनाते समय दिखाएँ Show Recent Colors हाल के रंग दिखाएँ Toggle RGB Percent RGB प्रतिशत में बदलें Show Original Path मूल पाथ दिखाएं diff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsv index e83fd78c1f..a127653c6b 100644 --- a/crates/ui-egui/src/i18n/hu.tsv +++ b/crates/ui-egui/src/i18n/hu.tsv @@ -4110,6 +4110,7 @@ mark-style Japanese Japán Show Modified Módosultak megjelenítése Show Note Megjegyzés megjelenítése Show Options Beállítások megjelenítése + Show on Shape Creation Megjelenítés alakzat létrehozásakor Show Recent Colors Legutóbbi színek megjelenítése Toggle RGB Percent RGB százalékos megjelenítésének váltása Show Original Path Eredeti útvonal megjelenítése diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsv index 7ce0201583..a07122b067 100644 --- a/crates/ui-egui/src/i18n/id.tsv +++ b/crates/ui-egui/src/i18n/id.tsv @@ -1563,6 +1563,7 @@ digits Malayalam Malayalam Roman Baseline Baseline Romawi Select a text object to edit its character attributes. Pilih objek teks untuk mengedit atribut karakternya. Show Options Tampilkan opsi + Show on Shape Creation Tampilkan saat membuat bentuk Show Recent Colors Tampilkan warna terbaru Toggle RGB Percent Alihkan RGB dalam persen Small Caps Kapital kecil diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index feb39ff415..e83b931899 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -3502,6 +3502,7 @@ digits Malayalam Malayalam Show Modified Mostra modificati Show Note Mostra nota Show Options Mostra opzioni + Show on Shape Creation Mostra alla creazione di forme Show Recent Colors Mostra colori recenti Toggle RGB Percent Alterna RGB in percentuale Show Original Path Mostra tracciato originale diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv index ab94df078d..80c4bf582a 100644 --- a/crates/ui-egui/src/i18n/ja.tsv +++ b/crates/ui-egui/src/i18n/ja.tsv @@ -3298,6 +3298,7 @@ mark-style Japanese 日本式 Show List View リスト表示 Show Note メモを表示 Show Options オプションを表示 + Show on Shape Creation シェイプ作成時に表示 Show Recent Colors 最近使用したカラーを表示 Toggle RGB Percent RGB のパーセント表示を切り替え Show Original Path 元のパスを表示 diff --git a/crates/ui-egui/src/i18n/ka.tsv b/crates/ui-egui/src/i18n/ka.tsv index 1d3922373f..b6e8f961dc 100644 --- a/crates/ui-egui/src/i18n/ka.tsv +++ b/crates/ui-egui/src/i18n/ka.tsv @@ -3586,6 +3586,7 @@ digits Malayalam მალაიალამური Roman Baseline რომაული საბაზისო ხაზი Select a text object to edit its character attributes. სიმბოლოების ატრიბუტების რედაქტირებისთვის მონიშნეთ ტექსტური ობიექტი. Show Options პარამეტრების ჩვენება + Show on Shape Creation ჩვენება ფიგურის შექმნისას Show Recent Colors ბოლოდროინდელი ფერების ჩვენება Toggle RGB Percent RGB-ის პროცენტებში ჩვენების გადართვა Small Caps პატარა მთავრული diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv index f59f64976e..0c5fc86953 100644 --- a/crates/ui-egui/src/i18n/ko.tsv +++ b/crates/ui-egui/src/i18n/ko.tsv @@ -3287,6 +3287,7 @@ mark-style Japanese 일본식 Show List View 목록 보기 표시 Show Note 메모 표시 Show Options 옵션 표시 + Show on Shape Creation 모양 생성 시 표시 Show Recent Colors 최근 색상 표시 Toggle RGB Percent RGB 백분율 표시 전환 Show Original Path 원래 패스 표시 diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsv index 8a78919fb9..8e7a038ce3 100644 --- a/crates/ui-egui/src/i18n/nl.tsv +++ b/crates/ui-egui/src/i18n/nl.tsv @@ -2131,6 +2131,7 @@ digits Malayalam Malayalam Roman Baseline Romeinse basislijn Select a text object to edit its character attributes. Selecteer een tekstobject om de tekenkenmerken ervan te bewerken. Show Options Opties tonen + Show on Shape Creation Tonen bij maken van vorm Show Recent Colors Recente kleuren tonen Toggle RGB Percent RGB in procenten wisselen Small Caps Kleine kapitalen diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv index 7646357fb3..833d97bdb8 100644 --- a/crates/ui-egui/src/i18n/pl.tsv +++ b/crates/ui-egui/src/i18n/pl.tsv @@ -1576,6 +1576,7 @@ digits Malayalam Malajalam Roman Baseline Linia bazowa łacińska Select a text object to edit its character attributes. Zaznacz obiekt tekstowy, aby edytować atrybuty znaków. Show Options Pokaż opcje + Show on Shape Creation Pokaż przy tworzeniu kształtu Show Recent Colors Pokaż ostatnie kolory Toggle RGB Percent Przełącz RGB w procentach Color Panel Options Opcje panelu Kolor diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv index e680cebdc6..6b5c61d8ee 100644 --- a/crates/ui-egui/src/i18n/pt-br.tsv +++ b/crates/ui-egui/src/i18n/pt-br.tsv @@ -2892,6 +2892,7 @@ digits Malayalam Malaiala Show List View Mostrar Exibição de Lista Show Note Mostrar Nota Show Options Mostrar Opções + Show on Shape Creation Mostrar ao Criar Formas Show Recent Colors Mostrar Cores Recentes Toggle RGB Percent Alternar RGB em Porcentagem Show Original Path Mostrar Caminho Original diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv index 1d79eece33..9fcb8fe14d 100644 --- a/crates/ui-egui/src/i18n/ru.tsv +++ b/crates/ui-egui/src/i18n/ru.tsv @@ -3491,6 +3491,7 @@ digits Malayalam Малаялам Show Modified Показать изменённые Show Note Показать примечание Show Options Показать параметры + Show on Shape Creation Показывать при создании фигуры Show Recent Colors Показать последние цвета Toggle RGB Percent Переключить RGB в процентах Show Original Path Показать исходный контур diff --git a/crates/ui-egui/src/i18n/sv.tsv b/crates/ui-egui/src/i18n/sv.tsv index 49580ff0a1..e55545d0de 100644 --- a/crates/ui-egui/src/i18n/sv.tsv +++ b/crates/ui-egui/src/i18n/sv.tsv @@ -3377,6 +3377,7 @@ digits Malayalam Malayalam Show Modified Visa ändrade Show Note Visa anteckning Show Options Visa alternativ + Show on Shape Creation Visa när form skapas Show Recent Colors Visa senaste färger Toggle RGB Percent Växla RGB i procent Show Original Path Visa ursprunglig bana diff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsv index 97b89af485..a3323ce3b3 100644 --- a/crates/ui-egui/src/i18n/tr.tsv +++ b/crates/ui-egui/src/i18n/tr.tsv @@ -3249,6 +3249,7 @@ digits Malayalam Malayalam Show Modified Değiştirilenleri Göster Show Note Notu Göster Show Options Seçenekleri Göster + Show on Shape Creation Şekil Oluştururken Göster Show Recent Colors Son Renkleri Göster Toggle RGB Percent RGB Yüzde Gösterimini Değiştir Show Original Path Orijinal Yolu Göster diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsv index 2479f1c629..52df33c0e3 100644 --- a/crates/ui-egui/src/i18n/uk.tsv +++ b/crates/ui-egui/src/i18n/uk.tsv @@ -3494,6 +3494,7 @@ digits Malayalam Малаялам Show Modified Показати змінені Show Note Показати примітку Show Options Показати параметри + Show on Shape Creation Показувати під час створення фігури Show Recent Colors Показати останні кольори Toggle RGB Percent Переключити RGB у відсотках Show Original Path Показати початковий контур diff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsv index 850d4a890c..f5ea4f8173 100644 --- a/crates/ui-egui/src/i18n/vi.tsv +++ b/crates/ui-egui/src/i18n/vi.tsv @@ -3858,6 +3858,7 @@ mark-style Japanese Kiểu Nhật Show Modified Hiện đã sửa đổi Show Note Hiện ghi chú Show Options Hiện tùy chọn + Show on Shape Creation Hiện khi tạo hình dạng Show Recent Colors Hiện màu gần đây Toggle RGB Percent Chuyển đổi RGB theo phần trăm Show Original Path Hiện đường dẫn gốc diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsv index 9821a31331..d5fefd22fc 100644 --- a/crates/ui-egui/src/i18n/zh-hans.tsv +++ b/crates/ui-egui/src/i18n/zh-hans.tsv @@ -3316,6 +3316,7 @@ digits Malayalam 马拉雅拉姆数字 Show Modified 显示已修改 Show Note 显示注解 Show Options 显示选项 + Show on Shape Creation 创建形状时显示 Show Recent Colors 显示最近使用的颜色 Toggle RGB Percent 切换 RGB 百分比显示 Show Original Path 显示原始路径 diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsv index 0a6ddb0207..f73df56c59 100644 --- a/crates/ui-egui/src/i18n/zh-hant.tsv +++ b/crates/ui-egui/src/i18n/zh-hant.tsv @@ -4627,6 +4627,7 @@ digits Malayalam 馬來亞拉姆數字 Show Modified 顯示已修改 Show Note 顯示註解 Show Options 顯示選項 + Show on Shape Creation 建立形狀時顯示 Show Recent Colors 顯示最近使用的顏色 Toggle RGB Percent 切換 RGB 百分比顯示 Show Original Path 顯示原始路徑 diff --git a/crates/ui-egui/src/panels/transform.rs b/crates/ui-egui/src/panels/transform.rs index 64bd1d7a08..ae6bf6a477 100644 --- a/crates/ui-egui/src/panels/transform.rs +++ b/crates/ui-egui/src/panels/transform.rs @@ -557,6 +557,22 @@ pub fn set_pref(app: &mut VectorcraftApp, key: &str, on: bool) { } } +/// Show on Shape Creation (`showOnShapeCreation`): after a shape was drawn +/// ([`vectorcraft_engine::Session::take_shape_drawn`]), the Transform panel shows as Window › +/// Transform shows it, unless it can be seen already. In Presentation Mode, or with the option off, +/// the panels stay as they are. Called once per frame, after the canvas and the dialogs; a frame +/// that shows the panel asks `ctx` for another, which draws it. +pub fn show_on_shape_creation(app: &mut VectorcraftApp, ctx: &egui::Context) { + let drawn = app.session.take_shape_drawn(); + if !drawn || !app.session.prefs.show_on_shape_creation || app.ui.screen_mode >= 3 || crate::panel_docking::visible(&app.ui, "transform") { + return; + } + match app.run("window.panel", json!({ "panel": "transform" })) { + Ok(_) => ctx.request_repaint(), + Err(e) => app.status(e), + } +} + pub fn menu(app: &mut VectorcraftApp, ui: &mut Ui) { let hidden: bool = pstate(ui.ctx(), "xf-hide-options"); let has = super::selection_len(app) > 0; @@ -565,6 +581,10 @@ pub fn menu(app: &mut VectorcraftApp, ui: &mut Ui) { if menu_item(ui, if hidden { tl!("Show Options") } else { tl!("Hide Options") }, true, false) { set_pstate(ui.ctx(), "xf-hide-options", !hidden); } + let on_creation = app.session.prefs.show_on_shape_creation; + if menu_item(ui, tl!("Show on Shape Creation"), true, on_creation) { + set_pref(app, "showOnShapeCreation", !on_creation); + } ui.separator(); if menu_item(ui, tl!("Flip Horizontal"), has, false) { run_transform(app, "object.reflect", json!({"axis": "vertical", "origin": origin})); diff --git a/crates/ui-egui/src/panels/transform/tests.rs b/crates/ui-egui/src/panels/transform/tests.rs index dd2752cb2b..824b5378bd 100644 --- a/crates/ui-egui/src/panels/transform/tests.rs +++ b/crates/ui-egui/src/panels/transform/tests.rs @@ -598,3 +598,107 @@ fn align_new_objects_menu_item_toggles_the_active_document() { menu_click(&ctx, &mut app, item); assert_eq!((on(&app, 0), on(&app, 1)), (true, false)); } + +/// An app with a document and the Transform panel closed. +fn app_without_transform_panel() -> VectorcraftApp { + let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), Default::default()); + app.run("file.new", json!({"width": 300, "height": 300})).unwrap(); + if crate::panel_docking::visible(&app.ui, "transform") { + app.run("window.panel.close", json!({"panel": "transform"})).unwrap(); + } + assert!(!crate::panel_docking::visible(&app.ui, "transform")); + app.session.take_shape_drawn(); + app +} + +/// The panel menu's Show on Shape Creation is unchecked until chosen, and choosing it sets and +/// clears `showOnShapeCreation`. +#[test] +fn show_on_shape_creation_is_a_check_item_in_the_panel_menu() { + let mut app = app_without_transform_panel(); + let ctx = egui::Context::default(); + crate::theme::install_fonts(&ctx); + assert!(menu_texts(&ctx, &mut app).contains(&" Show on Shape Creation".to_string())); + menu_click(&ctx, &mut app, "Show on Shape Creation"); + assert!(app.session.prefs.show_on_shape_creation); + assert!(menu_texts(&ctx, &mut app).contains(&"✓ Show on Shape Creation".to_string())); + menu_click(&ctx, &mut app, "Show on Shape Creation"); + assert!(!app.session.prefs.show_on_shape_creation); +} + +/// With Show on Shape Creation on, a shape drawn by a command or with OK in a shape tool's dialog +/// shows the closed Transform panel; with it off, after a canceled dialog, for other edits, for +/// saved steps and in Presentation Mode the panel stays closed. +#[test] +fn show_on_shape_creation_shows_the_transform_panel_after_a_shape() { + let ctx = egui::Context::default(); + let visible = |app: &VectorcraftApp| crate::panel_docking::visible(&app.ui, "transform"); + let rect = json!({"x": 10, "y": 10, "width": 40, "height": 30}); + + let mut app = app_without_transform_panel(); + app.run("shape.rectangle", rect.clone()).unwrap(); + show_on_shape_creation(&mut app, &ctx); + assert!(!visible(&app), "off: the panel stays closed"); + + let mut app = app_without_transform_panel(); + set_pref(&mut app, "showOnShapeCreation", true); + app.run("object.move", json!({"dx": 5, "dy": 0})).ok(); + show_on_shape_creation(&mut app, &ctx); + assert!(!visible(&app), "an edit that draws no shape"); + app.replay("shape.rectangle", rect.clone()).unwrap(); + show_on_shape_creation(&mut app, &ctx); + assert!(!visible(&app), "saved steps"); + // A dialog that is canceled draws nothing; OK draws the shape. + app.run("tool.select", json!({"tool": "ellipse"})).unwrap(); + crate::dialogs::open_tool_dialog(&mut app, "ellipse", json!({"x": 10.0, "y": 10.0})); + app.ui.dialog = None; + show_on_shape_creation(&mut app, &ctx); + assert!(!visible(&app), "a canceled dialog"); + crate::dialogs::open_tool_dialog(&mut app, "ellipse", json!({"x": 10.0, "y": 10.0})); + crate::dialogs::confirm(&mut app).unwrap(); + show_on_shape_creation(&mut app, &ctx); + assert!(visible(&app), "OK in the Ellipse dialog"); + // Shown already: another shape leaves it showing. + app.run("shape.polygon", json!({"cx": 100, "cy": 100, "radius": 30})).unwrap(); + show_on_shape_creation(&mut app, &ctx); + assert!(visible(&app), "a shape with the panel showing"); + + // Presentation Mode keeps the panels hidden, also once it ends. + let mut app = app_without_transform_panel(); + set_pref(&mut app, "showOnShapeCreation", true); + app.ui.screen_mode = 3; + app.run("shape.star", json!({"cx": 100, "cy": 100, "radius1": 30, "radius2": 15, "points": 5})).unwrap(); + show_on_shape_creation(&mut app, &ctx); + app.ui.screen_mode = 0; + show_on_shape_creation(&mut app, &ctx); + assert!(!visible(&app), "Presentation Mode"); + + // A floating Transform panel in front stays showing (Window › Transform would close it). + let mut app = app_without_transform_panel(); + set_pref(&mut app, "showOnShapeCreation", true); + app.run("window.panel.float", json!({"panel": "transform"})).unwrap(); + assert!(visible(&app)); + app.run("shape.line", json!({"x1": 0, "y1": 0, "x2": 50, "y2": 50})).unwrap(); + show_on_shape_creation(&mut app, &ctx); + assert!(visible(&app), "a floating panel"); +} + +/// The app's frame shows the Transform panel after a shape is drawn, with Show on Shape Creation on. +#[test] +fn a_frame_after_a_shape_shows_the_transform_panel() { + let mut app = app_without_transform_panel(); + set_pref(&mut app, "showOnShapeCreation", true); + let ctx = egui::Context::default(); + let screen = egui::Rect::from_min_size(egui::Pos2::ZERO, egui::vec2(1200.0, 800.0)); + let frame = |app: &mut VectorcraftApp| { + let mut out = ctx.run_ui(egui::RawInput { screen_rect: Some(screen), ..Default::default() }, |ui| app.ui(ui)); + out.textures_delta.clear(); + }; + for _ in 0..3 { + frame(&mut app); + } + assert!(!crate::panel_docking::visible(&app.ui, "transform")); + app.run("shape.rectangle", json!({"x": 10, "y": 10, "width": 40, "height": 30})).unwrap(); + frame(&mut app); + assert!(crate::panel_docking::visible(&app.ui, "transform")); +} diff --git a/docs/mcp.md b/docs/mcp.md index 7c45340f2b..b6055acb5c 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -11009,11 +11009,17 @@ Transform Object Only while it is off. Use Registration Point for Symbol is the `useRegistrationPointForSymbol` preference: with it on and one symbol instance selected, those panels show and set X and Y at the symbol's registration point (`symbol.options` `registration`) where the instance's transform puts it (after a flip the art's top-left corner is the box's top-right one), give `reference` as the box's point nearest it -and turn, shear and flip about it (`origin`). +and turn, shear and flip about it (`origin`). Show on Shape Creation is the `showOnShapeCreation` preference (off +until set): with it on, the app shows the Transform panel, as `window.panel {"panel": "transform"}` does, after a +`shape.rectangle`, `shape.ellipse`, `shape.polygon`, `shape.star` or `shape.line` succeeds, alone or as a +`command.batch` step, whether a shape tool's drag, its dialog, the Shaper tool or an agent ran it. A panel that is showing already +stays as it is. Failed commands, saved steps an action plays, a script's commands and Presentation Mode leave the +panels as they are. ```json {"name":"run_command","arguments":{"command":"prefs.set","params":{"key":"transformPanelPatterns","value":"pattern"}}} {"name":"run_command","arguments":{"command":"object.setBounds","params":{"x":170,"reference":4,"objects":false,"patterns":true}}} +{"name":"run_command","arguments":{"command":"prefs.set","params":{"key":"showOnShapeCreation","value":true}}} ``` ## Plug-ins diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index ea070aeba0..805b5f3166 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -1014,6 +1014,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur - The History panel menu's Clear History (`edit.clearHistory`) removes every step to undo and to redo and leaves the document as it is; it is not an undo step itself, and it is disabled when there is no step to clear. - The New Document from State button at the bottom of the History panel (`edit.newDocumentFromState`) makes a new document, which becomes active, from the state the panel has selected ([public source](https://helpx.adobe.com/illustrator/desktop/get-started/learn-the-basics/undo-edits-and-manage-design-history.html)). VectorCraft's own rules: the new document takes the next Untitled-N name, is marked unsaved, has nothing selected and has no steps to undo or redo, and the source document and its steps stay as they are. - The Transform panel menu's Transform Object Only, Transform Pattern Only and Transform Both (`transformPanelPatterns`) choose whether the fields, flips and menu flips of the Transform panel and the Properties panel's Transform section move the object and leave its pattern tiles, move the tiles alone, or both (until a choice they follow General › Transform Pattern Tiles, as before); Use Registration Point for Symbol (`useRegistrationPointForSymbol`) measures and transforms one selected symbol instance from its symbol's registration point, where the instance's flips, rotations and shears put it ([Transform panel overview](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/transform-panel-overview.html); `panels::transform::tests::the_menu_chooses_whether_the_object_its_pattern_or_both_transform`, `use_registration_point_for_symbol_measures_an_instance_from_its_registration_point`, `use_registration_point_for_symbol_follows_a_transformed_instance`, `tests_prefs::transform_panel_patterns_defaults_to_following_the_general_preference`). + - The Transform panel menu's Show on Shape Creation (`showOnShapeCreation`) shows the Transform panel after a shape is drawn: with the Rectangle, Rounded Rectangle, Ellipse, Polygon, Star or Line Segment tool (a drag, or OK in the tool's dialog), as a rectangle, ellipse, polygon or line that the Shaper tool recognizes, or by a `shape.rectangle`, `shape.ellipse`, `shape.polygon`, `shape.star` or `shape.line` command, alone or as a batch step ([the help page](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/transform-panel-overview.html)). VectorCraft's own rules: the option is off until chosen and is kept with the preferences; the panel shows where Window › Transform shows it, and a panel that is showing already stays as it is; a canceled drag or dialog, saved steps an action plays, a script's commands and Presentation Mode leave the panels as they are (`panels::transform::tests::show_on_shape_creation_shows_the_transform_panel_after_a_shape`, `a_frame_after_a_shape_shows_the_transform_panel`, `tests::journal::take_shape_drawn_follows_the_shapes_that_were_drawn`). - The Transform panel's Align to Pixel Grid checkbox (`object.setPixelAligned`) gives paths and compound paths a pixel-aligned property, saved in the native file: their horizontal and vertical straight segments sit on whole points (half points under an odd centered stroke) with whole stroke weights, and every move, scale, rotation, reflection, Transform Each, Align move, Transform panel change, move of direct-selected anchors or of one anchor, move of a compound path's path on its own, artboard move, resize or copy that carries the art, Duplicate or paste that moves a copy, stroke edit and appearance edit that adds, removes, hides, repaints or reweighs a stroke snaps them again, while diagonal segments and curves keep their shape; a compound path made from an aligned path or compound path is aligned and snaps its paths with its own stroke; the box shows a dash for a mixed selection and is unavailable for type, images and groups ([Pixel-aligned property](https://helpx.adobe.com/illustrator/desktop/get-started/learn-the-basics/pixel-preview-mode-for-web-graphics.html); `tests::pixelalign::turning_it_on_snaps_the_path_in_one_undo_step`, `it_stays_aligned_through_transforms`, `it_stays_aligned_when_its_artboard_moves`, `diagonal_segments_and_curves_keep_their_shape`, `type_and_images_cannot_be_aligned`, `the_property_is_saved_and_read_back`, `stroke_edits_keep_it_aligned`, `a_compound_path_of_aligned_paths_is_aligned`, `a_compound_path_of_an_aligned_compound_path_is_aligned`, `a_stroke_without_paint_snaps_to_whole_points`, `moving_direct_selected_anchors_keeps_it_aligned`, `moving_one_anchor_keeps_it_aligned`, `moving_a_path_of_an_aligned_compound_path_keeps_it_aligned`, `artboard_options_and_artboard_copies_keep_it_aligned`, `appearance_edits_keep_it_aligned`, `placed_gradients_follow_the_snapped_path`, `duplicates_and_pastes_keep_it_aligned`, `paths_added_to_or_moved_in_an_aligned_compound_path_keep_it_aligned`, `the_art_of_a_linked_opacity_mask_keeps_it_aligned`, `a_linked_opacity_mask_follows_a_snap`, `aligning_direct_selected_anchors_keeps_it_aligned`, `global_edit_keeps_its_members_aligned`, `a_path_with_live_corners_snaps_its_inner_edges`, `geometry_edits_keep_it_aligned`, `other_path_edits_keep_it_aligned`, `panels::transform::tests::align_to_pixel_grid_shows_and_sets_the_property`). - Align New Objects to Pixel Grid (`document.setup {alignNewObjectsToPixelGrid}`, a checkbox in New Document's Advanced Options and a checked item in the Transform panel menu) gives every path and compound path drawn in the document, the paths of a new grid or flare included, the pixel-aligned property, snapped in the step that draws it; it is on in the Mobile and Web presets and off in the others, saved presets and Recent keep it, and the document saves it. Type, images and groups do not take it, and art already in the document, pasted, duplicated or placed keeps its own property (VectorCraft's own rules) ([Pixel-aligned property](https://helpx.adobe.com/illustrator/desktop/get-started/learn-the-basics/pixel-preview-mode-for-web-graphics.html); `tests::pixelalign::align_new_objects_makes_new_paths_pixel_aligned`, `align_new_objects_reaches_grids_flares_and_add_on_shapes`, `align_new_objects_is_saved_and_read_back`, `tests::newdoc::align_new_objects_to_pixel_grid_follows_the_preset`, `panels::transform::tests::align_new_objects_menu_item_toggles_the_active_document`, `dialogs::new_document::tests::align_new_objects_checkbox_follows_the_preset_and_reaches_the_document`). - Break Link to Symbol and Object › Expand give a symbol instance's art the instance's own bounding box: after Reset Bounding Box the art stands square to the page, an object turned inside the symbol keeps its angle relative to the instance's box, a group added for the instance's opacity takes the instance's box, and the clip groups of 9-slice art take the angle of their cell. Compound shapes and Pathfinder receive an instance's art with the same angles (VectorCraft's own behavior; `bboxrotate::reset_bounding_box_then_expand_symbol_instance`, `reset_bounding_box_then_expand_keeps_the_angles_inside_the_symbol`, `expanding_a_faded_symbol_instance_gives_its_group_the_instance_box`, `expanding_a_reflected_symbol_instance_keeps_its_box`, `symbol_nine_slice::break_link_turns_the_cells_of_a_sliced_instance_with_its_box`, effects `outline_object_turns_an_instances_art_with_its_box`). From 8dd42206d575f321a4254ce71cd47a454f73a578 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Tue, 17 Nov 2026 17:42:07 -0800 Subject: [PATCH 2/3] Preferences: the line under the fields describes Show on Shape Creation General's Show on Shape Creation gets its sentence for the description line, with a row in every catalog, so every_general_selection_guides_and_smart_guides_setting_has_one_description passes with main merged. --- crates/ui-egui/src/i18n/bg.tsv | 1 + crates/ui-egui/src/i18n/bs.tsv | 1 + crates/ui-egui/src/i18n/ca.tsv | 1 + crates/ui-egui/src/i18n/cs.tsv | 1 + crates/ui-egui/src/i18n/da.tsv | 1 + crates/ui-egui/src/i18n/de.tsv | 1 + crates/ui-egui/src/i18n/el.tsv | 1 + crates/ui-egui/src/i18n/es.tsv | 1 + crates/ui-egui/src/i18n/fi.tsv | 1 + crates/ui-egui/src/i18n/fr.tsv | 1 + crates/ui-egui/src/i18n/gu.tsv | 1 + crates/ui-egui/src/i18n/hi.tsv | 1 + crates/ui-egui/src/i18n/hu.tsv | 1 + crates/ui-egui/src/i18n/id.tsv | 1 + crates/ui-egui/src/i18n/it.tsv | 1 + crates/ui-egui/src/i18n/ja.tsv | 1 + crates/ui-egui/src/i18n/ka.tsv | 1 + crates/ui-egui/src/i18n/ko.tsv | 1 + crates/ui-egui/src/i18n/nl.tsv | 1 + crates/ui-egui/src/i18n/pl.tsv | 1 + crates/ui-egui/src/i18n/pt-br.tsv | 1 + crates/ui-egui/src/i18n/ru.tsv | 1 + crates/ui-egui/src/i18n/sv.tsv | 1 + crates/ui-egui/src/i18n/tr.tsv | 1 + crates/ui-egui/src/i18n/uk.tsv | 1 + crates/ui-egui/src/i18n/vi.tsv | 1 + crates/ui-egui/src/i18n/zh-hans.tsv | 1 + crates/ui-egui/src/i18n/zh-hant.tsv | 1 + crates/ui-egui/src/prefs_dialog/descriptions.rs | 1 + 29 files changed, 29 insertions(+) diff --git a/crates/ui-egui/src/i18n/bg.tsv b/crates/ui-egui/src/i18n/bg.tsv index a2831f57f6..783357f145 100644 --- a/crates/ui-egui/src/i18n/bg.tsv +++ b/crates/ui-egui/src/i18n/bg.tsv @@ -3023,6 +3023,7 @@ digits Malayalam Малаялам A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Свойствата на динамичен правоъгълник показват едно поле „Радиус на ъгъла“ за четирите ъгъла; ако е изключено, всеки ъгъл има свое поле. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Какво трансформират промените в панела „Трансформиране“: обекта, плочките на мострата му или и двете; „По подразбиране“ следва „Трансформиране на плочките на мострата“. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Когато е избран един екземпляр на символ, панелът „Трансформиране“ използва регистрационната точка на символа като опорна точка. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Рисуването на правоъгълник, елипса, многоъгълник, звезда или линия отваря панела „Трансформиране“, ако е затворен. Darkens the canvas outside the artboards while the Artboard tool is active. Затъмнява платното извън работните области, докато инструментът „Работна област“ е активен. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Когато „Затъмняване на областта извън работната област“ е включено, областта извън работните области остава тъмна, докато влачите с инструмента „Работна област“. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Колко близо в пиксели трябва да е показалецът до обект, опорна точка или дръжка, за да го избере щракване. diff --git a/crates/ui-egui/src/i18n/bs.tsv b/crates/ui-egui/src/i18n/bs.tsv index afe81fa6a3..4fa3789563 100644 --- a/crates/ui-egui/src/i18n/bs.tsv +++ b/crates/ui-egui/src/i18n/bs.tsv @@ -4461,6 +4461,7 @@ font-technology Variable Varijabilni A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Svojstva dinamičnog pravougaonika prikazuju jedno polje Poluprečnik ugla za sva četiri ugla; kada je isključeno, svaki ugao ima svoje polje. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Šta transformišu izmjene u panelu Transformiši: objekat, pločice njegovog uzorka ili oboje; Zadano prati Transformiši pločice uzorka. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Kada je odabrana jedna instanca simbola, panel Transformiši koristi tačku registracije simbola kao referentnu tačku. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Crtanje pravougaonika, elipse, poligona, zvijezde ili linije otvara panel Transformiši ako je zatvoren. Darkens the canvas outside the artboards while the Artboard tool is active. Zatamnjuje platno izvan radnih ploča dok je alat Radna ploča aktivan. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Kada je uključeno Zatamni područje izvan radne ploče, područje izvan radnih ploča ostaje tamno dok prevlačite alatom Radna ploča. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Koliko blizu, u pikselima, pokazivač mora biti objektu, sidrenoj tački ili ručki da bi ga klik odabrao. diff --git a/crates/ui-egui/src/i18n/ca.tsv b/crates/ui-egui/src/i18n/ca.tsv index c6fa311703..11d02e7870 100644 --- a/crates/ui-egui/src/i18n/ca.tsv +++ b/crates/ui-egui/src/i18n/ca.tsv @@ -3853,6 +3853,7 @@ digits Malayalam Malaiàlam A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Les propietats d’un rectangle dinàmic mostren un sol camp Radi de cantonada per a les quatre cantonades; desactivada, cada cantonada té el seu propi camp. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Què transformen els canvis al panell Transforma: l’objecte, les peces del seu motiu o tots dos; Predeterminat segueix Transforma les peces del motiu. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Amb una instància de símbol seleccionada, el panell Transforma fa servir el punt de registre del símbol com a punt de referència. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Dibuixar un rectangle, una el·lipse, un polígon, una estrella o una línia obre el panell Transforma si està tancat. Darkens the canvas outside the artboards while the Artboard tool is active. Enfosqueix el llenç fora dels taulers mentre l’eina Tauler està activa. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Amb Enfosqueix la regió fora del tauler activat, l’àrea fora dels taulers continua fosca mentre arrossegueu amb l’eina Tauler. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. A quina distància, en píxels, ha d’estar el punter d’un objecte, punt d’ancoratge o tirador perquè un clic el seleccioni. diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsv index a719bfa20d..a8239a4b97 100644 --- a/crates/ui-egui/src/i18n/cs.tsv +++ b/crates/ui-egui/src/i18n/cs.tsv @@ -4565,6 +4565,7 @@ font-technology Variable Variabilní A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Vlastnosti živého obdélníku zobrazí jedno pole Poloměr rohu pro všechny čtyři rohy; když je vypnuto, má každý roh vlastní pole. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Co úpravy v panelu Transformace transformují: objekt, dlaždice jeho vzorku nebo obojí; Výchozí se řídí volbou Transformovat dlaždice vzorku. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Když je vybraná jedna instance symbolu, panel Transformace použije registrační bod symbolu jako referenční bod. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Nakreslení obdélníku, elipsy, mnohoúhelníku, hvězdy nebo čáry otevře panel Transformace, pokud je zavřený. Darkens the canvas outside the artboards while the Artboard tool is active. Ztmaví plátno mimo pracovní plochy, dokud je aktivní nástroj Pracovní plocha. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Když je zapnuto Ztmavit oblast mimo pracovní plochu, zůstane oblast mimo pracovní plochy tmavá i při tažení nástrojem Pracovní plocha. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Jak blízko v obrazových bodech musí být ukazatel k objektu, kotevnímu bodu nebo úchytu, aby jej kliknutí vybralo. diff --git a/crates/ui-egui/src/i18n/da.tsv b/crates/ui-egui/src/i18n/da.tsv index 2c00597df1..a521bd6f64 100644 --- a/crates/ui-egui/src/i18n/da.tsv +++ b/crates/ui-egui/src/i18n/da.tsv @@ -6964,6 +6964,7 @@ font-technology Variable Variable A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Egenskaberne for et live-rektangel viser ét felt Hjørneradius for alle fire hjørner; når den er slået fra, har hvert hjørne sit eget felt. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Hvad ændringer i panelet Transformér transformerer: objektet, dets mønsterfliser eller begge; Standard følger Transformer mønsterfliser. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Når én symbolforekomst er markeret, bruger panelet Transformér symbolets registreringspunkt som referencepunkt. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Når du tegner et rektangel, en ellipse, en polygon, en stjerne eller en linje, åbnes panelet Transformér, hvis det er lukket. Darkens the canvas outside the artboards while the Artboard tool is active. Gør lærredet uden for kunstpladerne mørkere, mens værktøjet Kunstplade er aktivt. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Når Ton området uden for kunstpladen ned er slået til, forbliver området uden for kunstpladerne mørkt, mens du trækker med værktøjet Kunstplade. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Hvor tæt markøren i pixels skal være på et objekt, ankerpunkt eller håndtag, for at et klik markerer det. diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv index 750c34b7e3..c11a65eeb1 100644 --- a/crates/ui-egui/src/i18n/de.tsv +++ b/crates/ui-egui/src/i18n/de.tsv @@ -3075,6 +3075,7 @@ digits Malayalam Malayalam A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Die Eigenschaften eines Live-Rechtecks zeigen ein Feld „Eckenradius“ für alle vier Ecken; ist die Option aus, hat jede Ecke ihr eigenes Feld. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Was Änderungen im Bedienfeld „Transformieren“ transformieren: das Objekt, seine Musterkacheln oder beides; „Standard“ folgt „Musterkacheln transformieren“. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Ist eine Symbolinstanz ausgewählt, verwendet das Bedienfeld „Transformieren“ den Registrierungspunkt des Symbols als Referenzpunkt. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Wenn Sie ein Rechteck, eine Ellipse, ein Polygon, einen Stern oder eine Linie zeichnen, wird das Bedienfeld „Transformieren“ geöffnet, falls es geschlossen ist. Darkens the canvas outside the artboards while the Artboard tool is active. Dunkelt die Arbeitsfläche außerhalb der Zeichenflächen ab, solange das Zeichenflächen-Werkzeug aktiv ist. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Ist „Bereich außerhalb der Zeichenfläche abblenden“ an, bleibt der Bereich außerhalb der Zeichenflächen dunkel, während Sie mit dem Zeichenflächen-Werkzeug ziehen. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Wie nah der Zeiger in Pixeln an einem Objekt, Ankerpunkt oder Griff sein muss, damit ein Klick es auswählt. diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv index c4f8cf073a..011b05c96e 100644 --- a/crates/ui-egui/src/i18n/el.tsv +++ b/crates/ui-egui/src/i18n/el.tsv @@ -3893,6 +3893,7 @@ digits Malayalam Μαλαγιάλαμ A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Οι ιδιότητες ενός δυναμικού ορθογωνίου εμφανίζουν ένα πεδίο Ακτίνα γωνίας και για τις τέσσερις γωνίες· όταν είναι ανενεργό, κάθε γωνία έχει δικό της πεδίο. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Τι μετασχηματίζουν οι αλλαγές στο πλαίσιο Μετασχηματισμός: το αντικείμενο, τα πλακίδια του μοτίβου του ή και τα δύο· η Προεπιλογή ακολουθεί τον Μετασχηματισμό πλακιδίων μοτίβου. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Όταν είναι επιλεγμένη μία παρουσία συμβόλου, το πλαίσιο Μετασχηματισμός χρησιμοποιεί το σημείο καταχώρισης του συμβόλου ως σημείο αναφοράς. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Η σχεδίαση ορθογωνίου, έλλειψης, πολυγώνου, αστεριού ή γραμμής ανοίγει το πλαίσιο Μετασχηματισμός, αν είναι κλειστό. Darkens the canvas outside the artboards while the Artboard tool is active. Σκουραίνει τον καμβά έξω από τους πίνακες σχεδίασης όσο είναι ενεργό το εργαλείο Πίνακας σχεδίασης. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Όταν είναι ενεργή η Σκίαση περιοχής εκτός πίνακα σχεδίασης, η περιοχή έξω από τους πίνακες σχεδίασης μένει σκοτεινή όσο σύρετε με το εργαλείο Πίνακας σχεδίασης. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Πόσο κοντά, σε εικονοστοιχεία, πρέπει να είναι ο δείκτης σε αντικείμενο, σημείο αγκύρωσης ή λαβή για να το επιλέξει ένα κλικ. diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index 47a828d048..4085d13b95 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -3113,6 +3113,7 @@ digits Malayalam Malayálam A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Las propiedades de un rectángulo dinámico muestran un solo campo Radio de esquina para las cuatro esquinas; desactivada, cada esquina tiene su propio campo. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Lo que transforman los cambios del panel Transformar: el objeto, sus mosaicos de motivo o ambos; Predeterminado sigue a Transformar mosaicos de motivo. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Con una instancia de símbolo seleccionada, el panel Transformar usa el punto de registro del símbolo como punto de referencia. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Al dibujar un rectángulo, una elipse, un polígono, una estrella o una línea, se abre el panel Transformar si está cerrado. Darkens the canvas outside the artboards while the Artboard tool is active. Oscurece el lienzo fuera de las mesas de trabajo mientras la herramienta Mesa de trabajo está activa. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Con Atenuar región fuera de la mesa de trabajo activado, el área fuera de las mesas de trabajo sigue oscura mientras arrastra con la herramienta Mesa de trabajo. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Qué tan cerca, en píxeles, debe estar el puntero de un objeto, ancla o manejador para que un clic lo seleccione. diff --git a/crates/ui-egui/src/i18n/fi.tsv b/crates/ui-egui/src/i18n/fi.tsv index d70d596563..3673978c92 100644 --- a/crates/ui-egui/src/i18n/fi.tsv +++ b/crates/ui-egui/src/i18n/fi.tsv @@ -4484,6 +4484,7 @@ font-technology Variable Muuttuvat A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Dynaamisen suorakulmion ominaisuuksissa on yksi Kulman säde -kenttä kaikille neljälle kulmalle; kun asetus ei ole käytössä, jokaisella kulmalla on oma kenttänsä. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Mitä Muunna-paneelin muokkaukset muuntavat: objektin, sen kuvioruudut tai molemmat; Oletus noudattaa asetusta Muunna kuvioruudut. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Kun yksi symbolin esiintymä on valittuna, Muunna-paneeli käyttää symbolin kohdistuspistettä viitepisteenä. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Suorakulmion, ellipsin, monikulmion, tähden tai viivan piirtäminen avaa Muunna-paneelin, jos se on suljettu. Darkens the canvas outside the artboards while the Artboard tool is active. Tummentaa piirtopinnan piirtoalustojen ulkopuolelta, kun Piirtoalusta-työkalu on käytössä. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Kun Himmennä piirtoalustan ulkopuolinen alue on käytössä, piirtoalustojen ulkopuolinen alue pysyy tummana, kun vedät Piirtoalusta-työkalulla. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Kuinka lähellä, pikseleinä, osoittimen on oltava objektia, ankkuripistettä tai kahvaa, jotta napsautus valitsee sen. diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsv index 20f3e46352..898042d2f4 100644 --- a/crates/ui-egui/src/i18n/fr.tsv +++ b/crates/ui-egui/src/i18n/fr.tsv @@ -3101,6 +3101,7 @@ digits Malayalam Malayalam A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Les propriétés d’un rectangle dynamique affichent un seul champ Rayon de l’angle pour les quatre angles. Désactivée, chaque angle a son propre champ. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Les modifications du panneau Transformation transforment l’objet, ses carreaux de motif ou les deux, et Par défaut suit Transformer les carreaux de motif. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Quand une occurrence de symbole est sélectionnée, le panneau Transformation utilise le point d’alignement du symbole comme point de référence. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Dessiner un rectangle, une ellipse, un polygone, une étoile ou une ligne ouvre le panneau Transformation s’il est fermé. Darkens the canvas outside the artboards while the Artboard tool is active. Assombrit la zone de travail hors des plans de travail tant que l’outil Plan de travail est actif. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Avec Assombrir la zone hors du plan de travail activé, la zone hors des plans de travail reste sombre pendant que vous faites glisser avec l’outil Plan de travail. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Distance en pixels à laquelle le pointeur doit se trouver d’un objet, d’un point d’ancrage ou d’une poignée pour qu’un clic le sélectionne. diff --git a/crates/ui-egui/src/i18n/gu.tsv b/crates/ui-egui/src/i18n/gu.tsv index c8d63a6561..00d4daed38 100644 --- a/crates/ui-egui/src/i18n/gu.tsv +++ b/crates/ui-egui/src/i18n/gu.tsv @@ -3187,6 +3187,7 @@ A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. લાઇવ લંબચોરસના ગુણધર્મો ચારેય ખૂણા માટે ખૂણાની ત્રિજ્યાનું એક જ ફીલ્ડ બતાવે છે; બંધ હોય ત્યારે દરેક ખૂણાનું પોતાનું ફીલ્ડ હોય છે. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. ટ્રાન્સફોર્મ પેનલમાંના ફેરફારો શું ટ્રાન્સફોર્મ કરે છે: ઑબ્જેક્ટ, તેની પૅટર્ન ટાઇલ્સ કે બંને; ડિફૉલ્ટ પૅટર્ન ટાઇલ્સ ટ્રાન્સફોર્મ કરો ને અનુસરે છે. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. એક સિમ્બોલ ઇન્સ્ટન્સ પસંદ હોય ત્યારે ટ્રાન્સફોર્મ પેનલ સિમ્બોલના રજિસ્ટ્રેશન પોઇન્ટને સંદર્ભ પોઇન્ટ તરીકે વાપરે છે. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. લંબચોરસ, લંબવર્તુળ, બહુકોણ, તારો કે રેખા દોરવાથી ટ્રાન્સફોર્મ પેનલ બંધ હોય તો ખૂલે છે. Darkens the canvas outside the artboards while the Artboard tool is active. આર્ટબોર્ડ ટૂલ સક્રિય હોય ત્યારે આર્ટબોર્ડ બહારનો કેનવાસ ઘાટો કરે છે. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. આર્ટબોર્ડ બહારનો વિસ્તાર ઝાંખો કરો ચાલુ હોય ત્યારે, આર્ટબોર્ડ ટૂલથી ખેંચતી વખતે આર્ટબોર્ડ બહારનો વિસ્તાર ઘાટો રહે છે. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. ક્લિક કોઈ ઑબ્જેક્ટ, એન્કર પોઇન્ટ કે હૅન્ડલને પસંદ કરે તે માટે પોઇન્ટર તેનાથી કેટલા પિક્સેલ નજીક હોવો જોઈએ. diff --git a/crates/ui-egui/src/i18n/hi.tsv b/crates/ui-egui/src/i18n/hi.tsv index 04cccb5029..a8be031155 100644 --- a/crates/ui-egui/src/i18n/hi.tsv +++ b/crates/ui-egui/src/i18n/hi.tsv @@ -4223,6 +4223,7 @@ antiAlias Sharp शार्प A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. लाइव आयत की प्रॉपर्टीज़ चारों कोनों के लिए कोने की त्रिज्या का एक ही फ़ील्ड दिखाती हैं; बंद होने पर हर कोने का अपना फ़ील्ड होता है। What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. रूपांतरण पैनल में किए गए बदलाव क्या रूपांतरित करते हैं: ऑब्जेक्ट, उसकी पैटर्न टाइलें या दोनों; डिफ़ॉल्ट ट्रांसफॉर्म पैटर्न टाइलें का पालन करता है। With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. एक सिंबल इंस्टेंस चुना होने पर रूपांतरण पैनल सिंबल के रजिस्ट्रेशन पॉइंट को संदर्भ पॉइंट के रूप में इस्तेमाल करता है। + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. आयत, दीर्घवृत्त, बहुभुज, तारा या रेखा ड्रॉ करने पर रूपांतरण पैनल बंद हो तो खुल जाता है। Darkens the canvas outside the artboards while the Artboard tool is active. आर्टबोर्ड टूल सक्रिय रहने पर आर्टबोर्ड के बाहर का कैनवास गहरा करता है। With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. आर्टबोर्ड के बाहर का क्षेत्र धुंधला करें चालू होने पर आर्टबोर्ड टूल से ड्रैग करते समय आर्टबोर्ड के बाहर का क्षेत्र गहरा बना रहता है। How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. किसी क्लिक से ऑब्जेक्ट, एंकर पॉइंट या हैंडल चुनने के लिए पॉइंटर को उससे कितने पिक्सेल पास होना चाहिए। diff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsv index 98e6e15fb5..906c18d866 100644 --- a/crates/ui-egui/src/i18n/hu.tsv +++ b/crates/ui-egui/src/i18n/hu.tsv @@ -3694,6 +3694,7 @@ mark-style Japanese Japán A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Egy élő téglalap tulajdonságai egyetlen Sarokkerekítés sugara mezőt mutatnak mind a négy sarokhoz; kikapcsolva minden saroknak saját mezője van. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Mit alakítanak át az Átalakítás panel módosításai: az objektumot, a mintázatcsempéit vagy mindkettőt; az Alapértelmezett a Mintázatcsempék átalakítása beállítást követi. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Ha egy szimbólumpéldány van kijelölve, az Átalakítás panel a szimbólum regisztrációs pontját használja referenciapontként. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Téglalap, ellipszis, sokszög, csillag vagy vonal rajzolása megnyitja az Átalakítás panelt, ha zárva van. Darkens the canvas outside the artboards while the Artboard tool is active. Elsötétíti a vásznat a rajztáblákon kívül, amíg a Rajztábla eszköz aktív. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Ha A rajztáblán kívüli terület elhalványítása be van kapcsolva, a rajztáblákon kívüli terület sötét marad, miközben a Rajztábla eszközzel húz. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Hány pixelnyire kell a mutatónak egy objektumhoz, horgonyponthoz vagy fogantyúhoz lennie, hogy egy kattintás kijelölje. diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsv index d1b04d95bd..a734d47210 100644 --- a/crates/ui-egui/src/i18n/id.tsv +++ b/crates/ui-egui/src/i18n/id.tsv @@ -4216,6 +4216,7 @@ font-technology Variable Variabel A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Properti persegi panjang dinamis menampilkan satu bidang Radius sudut untuk keempat sudut; saat nonaktif, setiap sudut punya bidangnya sendiri. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Apa yang ditransformasi oleh pengeditan di panel Transformasi: objek, ubin polanya, atau keduanya; Default mengikuti Transformasi ubin pola. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Saat satu instans simbol dipilih, panel Transformasi memakai titik registrasi simbol sebagai titik referensi. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Menggambar persegi panjang, elips, poligon, bintang, atau garis membuka panel Transformasi jika panel itu tertutup. Darkens the canvas outside the artboards while the Artboard tool is active. Menggelapkan kanvas di luar artboard selama alat Artboard aktif. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Saat Redupkan wilayah di luar artboard aktif, area di luar artboard tetap gelap selama Anda menyeret dengan alat Artboard. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Seberapa dekat, dalam piksel, penunjuk harus berada dari objek, titik jangkar, atau pegangan agar klik memilihnya. diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index ca2cdc3020..740cbbc226 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -3156,6 +3156,7 @@ digits Malayalam Malayalam A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Le proprietà di un rettangolo dinamico mostrano un solo campo Raggio angolo per tutti e quattro gli angoli; se disattivata, ogni angolo ha il proprio campo. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Cosa trasformano le modifiche nel pannello Trasforma: l'oggetto, i suoi tasselli motivo o entrambi; Predefinito segue Trasforma tasselli motivo. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Con un'istanza di simbolo selezionata, il pannello Trasforma usa il punto di registrazione del simbolo come punto di riferimento. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Disegnare un rettangolo, un'ellisse, un poligono, una stella o una linea apre il pannello Trasforma se è chiuso. Darkens the canvas outside the artboards while the Artboard tool is active. Scurisce l'area di lavoro fuori dalle tavole da disegno mentre lo strumento Tavola da disegno è attivo. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Con Attenua area esterna alla tavola da disegno attivo, l'area fuori dalle tavole da disegno resta scura mentre trascini con lo strumento Tavola da disegno. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Quanto vicino, in pixel, deve trovarsi il puntatore a un oggetto, punto di ancoraggio o maniglia perché un clic lo selezioni. diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv index 9e9521e3c7..ea3c7b9307 100644 --- a/crates/ui-egui/src/i18n/ja.tsv +++ b/crates/ui-egui/src/i18n/ja.tsv @@ -3133,6 +3133,7 @@ mark-style Japanese 日本式 A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. ライブ長方形のプロパティで、4 つの角に共通の角丸の半径フィールドを 1 つ表示します。オフのときは角ごとにフィールドを表示します。 What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. 変形パネルでの編集が変形する対象で、オブジェクト、パターンタイル、またはその両方です。デフォルトはパターンタイルを変形に従います。 With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. シンボルインスタンスを 1 つ選択したとき、変形パネルはシンボルの基準点を基準点として使います。 + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. 長方形、楕円形、多角形、スター、直線を描画すると、閉じている変形パネルが開きます。 Darkens the canvas outside the artboards while the Artboard tool is active. アートボードツールを使っている間、アートボードの外側のカンバスを暗く表示します。 With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. アートボードの外側を暗く表示がオンのとき、アートボードツールでドラッグしている間もアートボードの外側を暗いままにします。 How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. クリックでオブジェクト、アンカーポイント、ハンドルを選択できる、ポインターからの距離(ピクセル)です。 diff --git a/crates/ui-egui/src/i18n/ka.tsv b/crates/ui-egui/src/i18n/ka.tsv index dd109f7619..6f1c6043c5 100644 --- a/crates/ui-egui/src/i18n/ka.tsv +++ b/crates/ui-egui/src/i18n/ka.tsv @@ -6282,6 +6282,7 @@ font-technology Variable ცვლადი A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. დინამიკური მართკუთხედის თვისებები ოთხივე კუთხისთვის კუთხის რადიუსის ერთ ველს აჩვენებს; გამორთვისას თითოეულ კუთხეს თავისი ველი აქვს. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. რას გარდაქმნის ცვლილებები გარდაქმნის პანელში: ობიექტს, მისი პატერნის ფილებს ან ორივეს; ნაგულისხმევი მისდევს პატერნის ფილების გარდაქმნას. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. როცა სიმბოლოს ერთი ეგზემპლარია მონიშნული, გარდაქმნის პანელი სიმბოლოს რეგისტრაციის წერტილს საყრდენ წერტილად იყენებს. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. მართკუთხედის, ელიფსის, მრავალკუთხედის, ვარსკვლავის ან ხაზის დახატვა ხსნის გარდაქმნის პანელს, თუ ის დახურულია. Darkens the canvas outside the artboards while the Artboard tool is active. სანამ სამუშაო დაფის ხელსაწყო აქტიურია, სამუშაო დაფების გარეთ ტილოს აბნელებს. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. როცა სამუშაო დაფის გარეთ არის დაბნელება ჩართულია, სამუშაო დაფის ხელსაწყოთი გადათრევისას სამუშაო დაფების გარეთ არე ბნელი რჩება. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. რამდენად ახლოს, პიქსელებში, უნდა იყოს მაჩვენებელი ობიექტთან, საყრდენ წერტილთან ან სახელურთან, რომ დაწკაპუნებამ ის მონიშნოს. diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv index bd1e7f45a2..c2452dc735 100644 --- a/crates/ui-egui/src/i18n/ko.tsv +++ b/crates/ui-egui/src/i18n/ko.tsv @@ -3122,6 +3122,7 @@ mark-style Japanese 일본식 A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. 라이브 사각형의 속성에 네 모퉁이 모두에 쓰는 모퉁이 반지름 필드 하나를 표시합니다. 끄면 모퉁이마다 필드가 따로 있습니다. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. 변형 패널에서 편집할 때 변형되는 대상으로, 개체, 패턴 타일 또는 둘 다입니다. 기본값은 패턴 타일 변형을 따릅니다. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. 심볼 인스턴스 하나를 선택하면 변형 패널은 심볼의 등록 지점을 참조점으로 사용합니다. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. 사각형, 타원, 다각형, 별 또는 선을 그리면 변형 패널이 닫혀 있을 때 열립니다. Darkens the canvas outside the artboards while the Artboard tool is active. 아트보드 도구를 사용하는 동안 아트보드 바깥의 캔버스를 어둡게 표시합니다. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. 아트보드 외부 영역 어둡게 표시가 켜져 있으면 아트보드 도구로 드래그하는 동안에도 아트보드 바깥 영역이 어둡게 유지됩니다. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. 클릭으로 개체, 고정점 또는 핸들을 선택하려면 포인터가 얼마나 가까이(픽셀) 있어야 하는지입니다. diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsv index 32ac21bfb5..ed17a66606 100644 --- a/crates/ui-egui/src/i18n/nl.tsv +++ b/crates/ui-egui/src/i18n/nl.tsv @@ -4838,6 +4838,7 @@ font-technology Variable Variabel A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. De eigenschappen van een dynamische rechthoek tonen één veld Hoekradius voor alle vier hoeken; uitgeschakeld heeft elke hoek een eigen veld. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Wat bewerkingen in het deelvenster Transformeren transformeren: het object, de patroontegels ervan of beide; Standaard volgt Patroontegels transformeren. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Met één symboolinstantie geselecteerd gebruikt het deelvenster Transformeren het registratiepunt van het symbool als referentiepunt. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Als u een rechthoek, ellips, veelhoek, ster of lijn tekent, wordt het deelvenster Transformeren geopend als het gesloten is. Darkens the canvas outside the artboards while the Artboard tool is active. Maakt het canvas buiten de tekenborden donkerder zolang het gereedschap Tekenbord actief is. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Met Gebied buiten tekenbord dimmen aan blijft het gebied buiten de tekenborden donker terwijl u sleept met het gereedschap Tekenbord. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Hoe dicht, in pixels, de aanwijzer bij een object, ankerpunt of greep moet zijn om het met een klik te selecteren. diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv index 0f74e5f6b4..54950a65e0 100644 --- a/crates/ui-egui/src/i18n/pl.tsv +++ b/crates/ui-egui/src/i18n/pl.tsv @@ -4406,6 +4406,7 @@ font-technology Variable Zmienne A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Właściwości dynamicznego prostokąta pokazują jedno pole Promień narożnika dla wszystkich czterech narożników; po wyłączeniu każdy narożnik ma własne pole. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Co przekształcają zmiany w panelu Przekształć: obiekt, kafelki jego wzorka lub oba; Domyślne podąża za opcją Przekształcaj kafelki wzorków. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Gdy zaznaczone jest jedno wystąpienie symbolu, panel Przekształć używa punktu rejestracji symbolu jako punktu odniesienia. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Narysowanie prostokąta, elipsy, wielokąta, gwiazdy lub linii otwiera panel Przekształć, jeśli jest zamknięty. Darkens the canvas outside the artboards while the Artboard tool is active. Przyciemnia obszar roboczy poza obszarami kompozycji, gdy aktywne jest narzędzie Obszar kompozycji. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Gdy włączone jest Przyciemnij obszar poza obszarem kompozycji, obszar poza obszarami kompozycji pozostaje ciemny podczas przeciągania narzędziem Obszar kompozycji. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Jak blisko, w pikselach, wskaźnik musi być od obiektu, punktu kontrolnego lub uchwytu, aby kliknięcie go zaznaczyło. diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv index f7459b0028..2c228388af 100644 --- a/crates/ui-egui/src/i18n/pt-br.tsv +++ b/crates/ui-egui/src/i18n/pt-br.tsv @@ -2605,6 +2605,7 @@ digits Malayalam Malaiala A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. As propriedades de um retângulo dinâmico mostram um só campo Raio do Canto para os quatro cantos; desativada, cada canto tem seu próprio campo. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. O que as edições no painel Transformar transformam: o objeto, seus blocos de padrão ou ambos; Padrão segue Transformar Blocos de Padrão. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Com uma instância de símbolo selecionada, o painel Transformar usa o ponto de registro do símbolo como ponto de referência. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Desenhar um retângulo, uma elipse, um polígono, uma estrela ou uma linha abre o painel Transformar se ele estiver fechado. Darkens the canvas outside the artboards while the Artboard tool is active. Escurece a tela fora das pranchetas enquanto a ferramenta Prancheta está ativa. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Com Escurecer Região Fora da Prancheta ativado, a área fora das pranchetas continua escura enquanto você arrasta com a ferramenta Prancheta. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Quão perto, em pixels, o ponteiro precisa estar de um objeto, ponto de ancoragem ou alça para que um clique o selecione. diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv index 1d04d796e1..4761d4e4c7 100644 --- a/crates/ui-egui/src/i18n/ru.tsv +++ b/crates/ui-egui/src/i18n/ru.tsv @@ -3143,6 +3143,7 @@ digits Malayalam Малаялам A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Свойства динамического прямоугольника показывают одно поле «Радиус угла» для всех четырёх углов; если выключено, у каждого угла своё поле. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Что трансформируют изменения на панели «Трансформировать»: объект, плитки его узора или и то и другое; «По умолчанию» следует «Трансформировать плитки узора». With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Когда выделен один экземпляр символа, панель «Трансформировать» использует точку регистрации символа как опорную точку. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Рисование прямоугольника, эллипса, многоугольника, звезды или линии открывает панель «Трансформировать», если она закрыта. Darkens the canvas outside the artboards while the Artboard tool is active. Затемняет холст вне монтажных областей, пока активен инструмент «Монтажная область». With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Когда включено «Затемнять область вне монтажной области», область вне монтажных областей остаётся тёмной, пока вы перетаскиваете инструментом «Монтажная область». How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Насколько близко, в пикселях, указатель должен быть к объекту, опорной точке или маркеру, чтобы щелчок выделил его. diff --git a/crates/ui-egui/src/i18n/sv.tsv b/crates/ui-egui/src/i18n/sv.tsv index 0b520dab3a..71676fe022 100644 --- a/crates/ui-egui/src/i18n/sv.tsv +++ b/crates/ui-egui/src/i18n/sv.tsv @@ -3043,6 +3043,7 @@ digits Malayalam Malayalam A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Egenskaperna för en dynamisk rektangel visar ett fält Hörnradie för alla fyra hörn; när det är av har varje hörn ett eget fält. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Vad ändringar i panelen Transformera transformerar: objektet, dess mönsterrutor eller båda; Standard följer Transformera mönsterrutor. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. När en symbolinstans är markerad använder panelen Transformera symbolens registreringspunkt som referenspunkt. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. När du ritar en rektangel, en ellips, en polygon, en stjärna eller en linje öppnas panelen Transformera om den är stängd. Darkens the canvas outside the artboards while the Artboard tool is active. Gör arbetsytan utanför ritytorna mörkare medan verktyget Rityta är aktivt. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. När Tona ned området utanför ritytan är på förblir området utanför ritytorna mörkt medan du drar med verktyget Rityta. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Hur nära, i pixlar, pekaren måste vara ett objekt, en ankarpunkt eller ett handtag för att ett klick ska markera det. diff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsv index e8c5de7ae8..024d351a33 100644 --- a/crates/ui-egui/src/i18n/tr.tsv +++ b/crates/ui-egui/src/i18n/tr.tsv @@ -2880,6 +2880,7 @@ digits Malayalam Malayalam A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Canlı bir dikdörtgenin özellikleri dört köşenin tümü için tek bir Köşe Yarıçapı alanı gösterir; kapalıyken her köşenin kendi alanı olur. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Dönüştür panelindeki düzenlemelerin neyi dönüştürdüğü: nesneyi, desen döşemelerini veya ikisini; Varsayılan, Desen Döşemelerini Dönüştür'ü izler. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Bir sembol örneği seçiliyken Dönüştür paneli, sembolün kayıt noktasını referans noktası olarak kullanır. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Dikdörtgen, elips, çokgen, yıldız veya çizgi çizmek, kapalıysa Dönüştür panelini açar. Darkens the canvas outside the artboards while the Artboard tool is active. Çalışma Yüzeyi aracı etkinken çalışma yüzeylerinin dışındaki tuvali karartır. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Çalışma Yüzeyi Dışındaki Bölgeyi Karart açıkken, Çalışma Yüzeyi aracıyla sürüklerken çalışma yüzeylerinin dışındaki alan karanlık kalır. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Bir tıklamanın nesneyi, bağlantı noktasını veya tutamacı seçmesi için işaretçinin ona piksel cinsinden ne kadar yakın olması gerektiği. diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsv index 3a32324ab5..7b336c559e 100644 --- a/crates/ui-egui/src/i18n/uk.tsv +++ b/crates/ui-egui/src/i18n/uk.tsv @@ -3148,6 +3148,7 @@ digits Malayalam Малаялам A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Властивості динамічного прямокутника показують одне поле «Радіус кута» для всіх чотирьох кутів; якщо вимкнено, кожен кут має власне поле. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Що трансформують зміни на панелі «Трансформувати»: об’єкт, плитки його візерунка або обидва; «За замовчуванням» слідує «Трансформувати плитки візерунка». With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Коли виділено один екземпляр символу, панель «Трансформувати» використовує точку реєстрації символу як опорну точку. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Малювання прямокутника, еліпса, багатокутника, зірки або лінії відкриває панель «Трансформувати», якщо вона закрита. Darkens the canvas outside the artboards while the Artboard tool is active. Затемнює полотно поза монтажними областями, поки активний інструмент «Монтажна область». With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Коли ввімкнено «Затемнювати ділянку поза монтажною областю», ділянка поза монтажними областями лишається темною, поки ви перетягуєте інструментом «Монтажна область». How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Наскільки близько, у пікселях, вказівник має бути до об’єкта, опорної точки або маркера, щоб клацання виділило його. diff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsv index 96b5906277..c7a32c0b9a 100644 --- a/crates/ui-egui/src/i18n/vi.tsv +++ b/crates/ui-egui/src/i18n/vi.tsv @@ -3463,6 +3463,7 @@ mark-style Japanese Kiểu Nhật A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. Thuộc tính của một hình chữ nhật động hiển thị một trường Bán kính góc cho cả bốn góc; khi tắt, mỗi góc có trường riêng. What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. Những gì thao tác trong bảng Biến đổi biến đổi: đối tượng, các ô họa tiết của nó hoặc cả hai; Mặc định theo Biến đổi ô họa tiết. With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. Khi chọn một thể hiện biểu tượng, bảng Biến đổi dùng điểm đăng ký của biểu tượng làm điểm tham chiếu. + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. Vẽ hình chữ nhật, hình elip, đa giác, ngôi sao hoặc đường thẳng sẽ mở bảng Biến đổi nếu bảng đang đóng. Darkens the canvas outside the artboards while the Artboard tool is active. Làm tối khung vẽ bên ngoài các bảng vẽ khi công cụ Bảng vẽ đang hoạt động. With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. Khi Làm tối vùng bên ngoài bảng vẽ đang bật, vùng bên ngoài các bảng vẽ vẫn tối trong khi bạn kéo bằng công cụ Bảng vẽ. How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. Con trỏ phải cách đối tượng, điểm neo hoặc tay nắm bao nhiêu pixel để một cú nhấp chọn được nó. diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsv index f22e1062c7..ca4849f259 100644 --- a/crates/ui-egui/src/i18n/zh-hans.tsv +++ b/crates/ui-egui/src/i18n/zh-hans.tsv @@ -3007,6 +3007,7 @@ digits Malayalam 马拉雅拉姆数字 A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. 实时矩形的属性中为四个角显示一个圆角半径字段;关闭时,每个角都有自己的字段。 What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. 变换面板中的编辑所变换的内容:对象、其图案拼贴或两者;默认跟随变换图案拼贴。 With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. 选中一个符号实例时,变换面板使用符号的注册点作为参考点。 + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. 绘制矩形、椭圆、多边形、星形或直线时,如果变换面板已关闭,则会打开它。 Darkens the canvas outside the artboards while the Artboard tool is active. 使用画板工具时调暗画板以外的画布。 With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. 调暗画板外的区域打开时,用画板工具拖动期间画板以外的区域保持变暗。 How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. 点击时指针需距离对象、锚点或手柄多少像素以内才能选中它。 diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsv index f531c724fe..c4abc3bb3b 100644 --- a/crates/ui-egui/src/i18n/zh-hant.tsv +++ b/crates/ui-egui/src/i18n/zh-hant.tsv @@ -4291,6 +4291,7 @@ digits Malayalam 馬來亞拉姆數字 A live rectangle's properties show one Corner Radius field for all four corners; off, each corner has its own field. 即時矩形的屬性中為四個角顯示一個圓角半徑欄位;關閉時,每個角都有自己的欄位。 What edits in the Transform panel transform: the object, its pattern tiles or both; Default follows Transform Pattern Tiles. 變形面板中的編輯所變形的內容:物件、其圖樣拼貼或兩者;預設依照變形圖樣拼貼。 With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point. 選取一個符號實體時,變形面板使用符號的註冊點作為參考點。 + Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed. 繪製矩形、橢圓形、多邊形、星形或直線時,如果變形面板已關閉,就會開啟它。 Darkens the canvas outside the artboards while the Artboard tool is active. 使用工作區域工具時調暗工作區域以外的畫布。 With Fade Region Outside Artboard on, the area outside the artboards stays dark while you drag with the Artboard tool. 調暗工作區域外的區域開啟時,用工作區域工具拖曳期間工作區域以外的區域保持變暗。 How near, in pixels, the pointer must be to an object, anchor or handle for a click to select it. 按一下時,指標需距離物件、錨點或控制把手多少像素以內才能選取它。 diff --git a/crates/ui-egui/src/prefs_dialog/descriptions.rs b/crates/ui-egui/src/prefs_dialog/descriptions.rs index eb8156f8dd..600d39fc71 100644 --- a/crates/ui-egui/src/prefs_dialog/descriptions.rs +++ b/crates/ui-egui/src/prefs_dialog/descriptions.rs @@ -56,6 +56,7 @@ pub(crate) const DESCRIPTIONS: &[(&str, &str)] = &[ "useRegistrationPointForSymbol", "With one symbol instance selected, the Transform panel uses the symbol's registration point as its reference point.", ), + ("showOnShapeCreation", "Drawing a rectangle, ellipse, polygon, star or line opens the Transform panel if it is closed."), ("fadeRegionOutsideArtboard", "Darkens the canvas outside the artboards while the Artboard tool is active."), ( "artboardUpdateWhileDragging", From 70c0f533f680a537937f8f41414b20b830eb98d5 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Wed, 18 Nov 2026 14:27:27 -0800 Subject: [PATCH 3/3] Transform: Show on Shape Creation counts shapes drawn in perspective With the perspective grid shown and a plane active, a Rectangle, Ellipse, Polygon, Star or Line Segment drag is journaled as perspective.draw naming the shape command. note_shape_drawn now counts that entry, alone or as a batch step, so the Transform panel opens for a shape drawn on the plane too. perspective.draw naming another shape (a flare, for example) still does not count. The Transform tests now move a selected rectangle and check that the move succeeded before checking that the panel stays closed, and check that the frames after a shape draw the panel's controls, with a control run where the option is off. --- crates/engine/src/prefs.rs | 4 +- crates/engine/src/session/execute.rs | 21 +++++---- crates/engine/src/tests/journal.rs | 29 ++++++++++++ crates/ui-egui/src/panels/transform/tests.rs | 48 ++++++++++++++++---- docs/mcp.md | 4 +- docs/target-app-parity.md | 2 +- 6 files changed, 85 insertions(+), 23 deletions(-) diff --git a/crates/engine/src/prefs.rs b/crates/engine/src/prefs.rs index 1f4395b8c4..3ebb6cb884 100644 --- a/crates/engine/src/prefs.rs +++ b/crates/engine/src/prefs.rs @@ -402,8 +402,8 @@ pub struct Prefs { pub use_registration_point_for_symbol: bool, /// The Transform panel menu's Show on Shape Creation: drawing a shape with the Rectangle, /// Rounded Rectangle, Ellipse, Polygon, Star or Line Segment tool (a drag or OK in the tool's - /// dialog), a shape the Shaper tool recognizes, or running one of [`crate::DRAWS_SHAPE`], shows - /// the Transform panel. + /// dialog, also on the active perspective plane), a shape the Shaper tool recognizes, or running + /// one of [`crate::DRAWS_SHAPE`], shows the Transform panel. pub show_on_shape_creation: bool, /// The tools' persistent options by store (a tool id, or a store a family shares: `liquify` /// holds the Liquify tools' Global Brush Dimensions), see [`vectorcraft_tools::settings`]: diff --git a/crates/engine/src/session/execute.rs b/crates/engine/src/session/execute.rs index 7b0c5629ed..046c480079 100644 --- a/crates/engine/src/session/execute.rs +++ b/crates/engine/src/session/execute.rs @@ -314,17 +314,20 @@ impl Session { self.replaying } - /// Note that journal entry `id` with `params` drew a shape ([`DRAWS_SHAPE`], also as a step of - /// `command.batch`), unless saved steps are playing or a script runs. + /// Note that journal entry `id` with `params` drew a shape ([`DRAWS_SHAPE`], also on the active + /// perspective plane as `perspective.draw` naming one, and as a step of `command.batch`), unless + /// saved steps are playing or a script runs. pub(crate) fn note_shape_drawn(&mut self, id: &str, params: &Value) { - let draws = |id: &str| DRAWS_SHAPE.contains(&id); - let in_batch = || { - params - .get("commands") - .and_then(Value::as_array) - .is_some_and(|steps| steps.iter().any(|step| step.get("command").and_then(Value::as_str).is_some_and(draws))) + let shape = |id: &str| DRAWS_SHAPE.contains(&id); + let draws = |id: &str, params: Option<&Value>| { + shape(id) || (id == "perspective.draw" && params.and_then(|p| p.get("command")).and_then(Value::as_str).is_some_and(shape)) }; - if !self.replaying && !self.script_in_run && (draws(id) || (id == "command.batch" && in_batch())) { + let in_batch = || { + params.get("commands").and_then(Value::as_array).is_some_and(|steps| { + steps.iter().any(|step| step.get("command").and_then(Value::as_str).is_some_and(|c| draws(c, step.get("params")))) + }) + }; + if !self.replaying && !self.script_in_run && (draws(id, Some(params)) || (id == "command.batch" && in_batch())) { self.shape_drawn = true; } } diff --git a/crates/engine/src/tests/journal.rs b/crates/engine/src/tests/journal.rs index a6b730872f..0b35b2f772 100644 --- a/crates/engine/src/tests/journal.rs +++ b/crates/engine/src/tests/journal.rs @@ -1372,6 +1372,35 @@ fn take_shape_drawn_follows_the_shapes_that_were_drawn() { assert!(!s.take_shape_drawn(), "a script"); } +/// With the perspective grid shown and a plane active, a shape tool's drag journals +/// `perspective.draw` naming the shape command: `take_shape_drawn` is true for a Rectangle drawn on +/// the plane and for `perspective.draw` naming a shape command (alone or as a batch step), and false +/// for one naming a shape outside [`crate::DRAWS_SHAPE`]. +#[test] +fn take_shape_drawn_counts_shapes_drawn_in_perspective() { + use vectorcraft_tools::{PointerEvent, PointerKind}; + let (mut s, _) = super::persp_select::persp_session(); + s.execute("perspective.grid.show", &json!({"visible": true})).unwrap(); + s.execute("perspective.plane.set", &json!({"plane": "left"})).unwrap(); + s.execute("select.none", &json!({})).unwrap(); + s.take_shape_drawn(); + let v = crate::tooling::ViewInfo { smart_guides: false, ..Default::default() }; + s.select_tool("rectangle", v).unwrap(); + s.pointer(&PointerEvent::new(PointerKind::Down, 250.0, 350.0), v).unwrap(); + s.pointer(&PointerEvent::new(PointerKind::Drag, 280.0, 380.0), v).unwrap(); + s.pointer(&PointerEvent::new(PointerKind::Up, 300.0, 410.0), v).unwrap(); + assert_eq!(s.journal.last().unwrap().0, "perspective.draw"); + assert!(s.take_shape_drawn(), "a Rectangle drawn on the plane"); + let rect = json!({"x": 260, "y": 360, "width": 30, "height": 30}); + s.execute("perspective.draw", &json!({"command": "shape.rectangle", "params": rect})).unwrap(); + assert!(s.take_shape_drawn(), "perspective.draw naming shape.rectangle"); + s.execute("command.batch", &json!({"commands": [{"command": "perspective.draw", "params": {"command": "shape.ellipse", "params": rect}}]})) + .unwrap(); + assert!(s.take_shape_drawn(), "a batch step drawing in perspective"); + s.execute("perspective.draw", &json!({"command": "shape.flare", "params": {"cx": 300, "cy": 380, "diameter": 40}})).unwrap(); + assert!(!s.take_shape_drawn(), "perspective.draw naming a flare"); +} + /// Show on Shape Creation (`showOnShapeCreation`) is off until set, is set and read through /// `prefs.set` and `prefs.get`, refuses a value that is not a boolean, and is kept with the saved /// preferences. diff --git a/crates/ui-egui/src/panels/transform/tests.rs b/crates/ui-egui/src/panels/transform/tests.rs index e31c3efdd0..bb6b5f5000 100644 --- a/crates/ui-egui/src/panels/transform/tests.rs +++ b/crates/ui-egui/src/panels/transform/tests.rs @@ -1069,8 +1069,14 @@ fn show_on_shape_creation_shows_the_transform_panel_after_a_shape() { assert!(!visible(&app), "off: the panel stays closed"); let mut app = app_without_transform_panel(); + // A selected rectangle to move, drawn while the preference is off. + let id = app.run("shape.rectangle", rect.clone()).unwrap()["id"].as_u64().unwrap(); + app.session.take_shape_drawn(); set_pref(&mut app, "showOnShapeCreation", true); - app.run("object.move", json!({"dx": 5, "dy": 0})).ok(); + let x0 = |app: &VectorcraftApp| app.session.active().unwrap().doc.node(vectorcraft_doc::NodeId(id)).unwrap().geometric_bounds().unwrap().x0; + let before = x0(&app); + app.run("object.move", json!({"dx": 5, "dy": 0})).unwrap(); + assert_eq!(x0(&app), before + 5.0, "the move moved the rectangle"); show_on_shape_creation(&mut app, &ctx); assert!(!visible(&app), "an edit that draws no shape"); app.replay("shape.rectangle", rect.clone()).unwrap(); @@ -1111,22 +1117,46 @@ fn show_on_shape_creation_shows_the_transform_panel_after_a_shape() { assert!(visible(&app), "a floating panel"); } -/// The app's frame shows the Transform panel after a shape is drawn, with Show on Shape Creation on. +/// The app's frame shows the Transform panel after a shape is drawn, with Show on Shape Creation on, +/// and the next frame draws the panel's controls; with it off, no frame draws them. #[test] fn a_frame_after_a_shape_shows_the_transform_panel() { - let mut app = app_without_transform_panel(); - set_pref(&mut app, "showOnShapeCreation", true); + fn walk(s: &egui::Shape, out: &mut Vec) { + match s { + egui::Shape::Text(t) => out.push(t.galley.text().to_string()), + egui::Shape::Vec(v) => v.iter().for_each(|s| walk(s, out)), + _ => {} + } + } let ctx = egui::Context::default(); + crate::theme::install_fonts(&ctx); let screen = egui::Rect::from_min_size(egui::Pos2::ZERO, egui::vec2(1200.0, 800.0)); + // One frame of the app: the texts it drew. let frame = |app: &mut VectorcraftApp| { let mut out = ctx.run_ui(egui::RawInput { screen_rect: Some(screen), ..Default::default() }, |ui| app.ui(ui)); out.textures_delta.clear(); + let mut texts = vec![]; + out.shapes.iter().for_each(|c| walk(&c.shape, &mut texts)); + texts }; - for _ in 0..3 { + // The Transform panel's heading for a selected live rectangle. + let heading = "Rectangle Properties:"; + let rect = json!({"x": 10, "y": 10, "width": 40, "height": 30}); + for on in [false, true] { + let mut app = app_without_transform_panel(); + set_pref(&mut app, "showOnShapeCreation", on); + for _ in 0..3 { + frame(&mut app); + } + assert!(!crate::panel_docking::visible(&app.ui, "transform")); + app.run("shape.rectangle", rect.clone()).unwrap(); frame(&mut app); + assert_eq!(crate::panel_docking::visible(&app.ui, "transform"), on, "on: {on}"); + // The panel opens in its icon column's flyout: the next pass draws the flyout's tabs and the + // one after it the panel's controls. + let tabs = frame(&mut app); + let texts = frame(&mut app); + assert!(!tabs.iter().any(|t| t == heading) || on, "on: {on}, {tabs:?}"); + assert_eq!(texts.iter().any(|t| t == heading), on, "on: {on}, {texts:?}"); } - assert!(!crate::panel_docking::visible(&app.ui, "transform")); - app.run("shape.rectangle", json!({"x": 10, "y": 10, "width": 40, "height": 30})).unwrap(); - frame(&mut app); - assert!(crate::panel_docking::visible(&app.ui, "transform")); } diff --git a/docs/mcp.md b/docs/mcp.md index 491b56f0d8..a5a5dd45c1 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -12119,8 +12119,8 @@ and Y at the symbol's registration point (`symbol.options` `registration`) where (after a flip the art's top-left corner is the box's top-right one), give `reference` as the box's point nearest it and turn, shear and flip about it (`origin`). Show on Shape Creation is the `showOnShapeCreation` preference (off until set): with it on, the app shows the Transform panel, as `window.panel {"panel": "transform"}` does, after a -`shape.rectangle`, `shape.ellipse`, `shape.polygon`, `shape.star` or `shape.line` succeeds, alone or as a -`command.batch` step, whether a shape tool's drag, its dialog, the Shaper tool or an agent ran it. A panel that is showing already +`shape.rectangle`, `shape.ellipse`, `shape.polygon`, `shape.star` or `shape.line` succeeds, alone, as a +`command.batch` step or on the active perspective plane as the `command` of `perspective.draw`, whether a shape tool's drag, its dialog, the Shaper tool or an agent ran it. A panel that is showing already stays as it is. Failed commands, saved steps an action plays, a script's commands and Presentation Mode leave the panels as they are. diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index ec825d8939..d6f49950a4 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -1110,7 +1110,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur - The History panel menu's Clear History (`edit.clearHistory`) removes every step to undo and to redo and leaves the document as it is; it is not an undo step itself, and it is disabled when there is no step to clear. - The New Document from State button at the bottom of the History panel (`edit.newDocumentFromState`) makes a new document, which becomes active, from the state the panel has selected ([public source](https://helpx.adobe.com/illustrator/desktop/get-started/learn-the-basics/undo-edits-and-manage-design-history.html)). VectorCraft's own rules: the new document takes the next Untitled-N name, is marked unsaved, has nothing selected and has no steps to undo or redo, and the source document and its steps stay as they are. - The Transform panel menu's Transform Object Only, Transform Pattern Only and Transform Both (`transformPanelPatterns`) choose whether the fields, flips and menu flips of the Transform panel and the Properties panel's Transform section, and the Control bar's inline X, Y, W and H, move the object and leave its pattern tiles, move the tiles alone, or both (until a choice they follow General › Transform Pattern Tiles, as before); Use Registration Point for Symbol (`useRegistrationPointForSymbol`) measures and transforms one selected symbol instance from its symbol's registration point, where the instance's flips, rotations and shears put it ([Transform panel overview](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/transform-panel-overview.html); `panels::transform::tests::the_menu_chooses_whether_the_object_its_pattern_or_both_transform`, `use_registration_point_for_symbol_measures_an_instance_from_its_registration_point`, `use_registration_point_for_symbol_follows_a_transformed_instance`, `tests_prefs::transform_panel_patterns_defaults_to_following_the_general_preference`). - - The Transform panel menu's Show on Shape Creation (`showOnShapeCreation`) shows the Transform panel after a shape is drawn: with the Rectangle, Rounded Rectangle, Ellipse, Polygon, Star or Line Segment tool (a drag, or OK in the tool's dialog), as a rectangle, ellipse, polygon or line that the Shaper tool recognizes, or by a `shape.rectangle`, `shape.ellipse`, `shape.polygon`, `shape.star` or `shape.line` command, alone or as a batch step ([the help page](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/transform-panel-overview.html)). VectorCraft's own rules: the option is off until chosen and is kept with the preferences; the panel shows where Window › Transform shows it, and a panel that is showing already stays as it is; a canceled drag or dialog, saved steps an action plays, a script's commands and Presentation Mode leave the panels as they are (`panels::transform::tests::show_on_shape_creation_shows_the_transform_panel_after_a_shape`, `a_frame_after_a_shape_shows_the_transform_panel`, `tests::journal::take_shape_drawn_follows_the_shapes_that_were_drawn`). + - The Transform panel menu's Show on Shape Creation (`showOnShapeCreation`) shows the Transform panel after a shape is drawn: with the Rectangle, Rounded Rectangle, Ellipse, Polygon, Star or Line Segment tool (a drag, or OK in the tool's dialog), as a rectangle, ellipse, polygon or line that the Shaper tool recognizes, or by a `shape.rectangle`, `shape.ellipse`, `shape.polygon`, `shape.star` or `shape.line` command, alone, as a batch step or on the active perspective plane ([the help page](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/transform-panel-overview.html)). VectorCraft's own rules: the option is off until chosen and is kept with the preferences; the panel shows where Window › Transform shows it, and a panel that is showing already stays as it is; a canceled drag or dialog, saved steps an action plays, a script's commands and Presentation Mode leave the panels as they are (`panels::transform::tests::show_on_shape_creation_shows_the_transform_panel_after_a_shape`, `a_frame_after_a_shape_shows_the_transform_panel`, `tests::journal::take_shape_drawn_follows_the_shapes_that_were_drawn`, `take_shape_drawn_counts_shapes_drawn_in_perspective`). - The Transform panel's Align to Pixel Grid checkbox (`object.setPixelAligned`) gives paths and compound paths a pixel-aligned property, saved in the native file: their horizontal and vertical straight segments sit on whole points (half points under an odd centered stroke) with whole stroke weights, and every move, scale, rotation, reflection, Transform Each, Align move, Transform panel change, move of direct-selected anchors or of one anchor, move of a compound path's path on its own, artboard move, resize or copy that carries the art, Duplicate or paste that moves a copy, stroke edit and appearance edit that adds, removes, hides, repaints or reweighs a stroke snaps them again, while diagonal segments and curves keep their shape; a compound path made from an aligned path or compound path is aligned and snaps its paths with its own stroke; the box shows a dash for a mixed selection and is unavailable for type, images and groups ([Pixel-aligned property](https://helpx.adobe.com/illustrator/desktop/get-started/learn-the-basics/pixel-preview-mode-for-web-graphics.html); `tests::pixelalign::turning_it_on_snaps_the_path_in_one_undo_step`, `it_stays_aligned_through_transforms`, `it_stays_aligned_when_its_artboard_moves`, `diagonal_segments_and_curves_keep_their_shape`, `type_and_images_cannot_be_aligned`, `the_property_is_saved_and_read_back`, `stroke_edits_keep_it_aligned`, `a_compound_path_of_aligned_paths_is_aligned`, `a_compound_path_of_an_aligned_compound_path_is_aligned`, `a_stroke_without_paint_snaps_to_whole_points`, `moving_direct_selected_anchors_keeps_it_aligned`, `moving_one_anchor_keeps_it_aligned`, `moving_a_path_of_an_aligned_compound_path_keeps_it_aligned`, `artboard_options_and_artboard_copies_keep_it_aligned`, `appearance_edits_keep_it_aligned`, `placed_gradients_follow_the_snapped_path`, `duplicates_and_pastes_keep_it_aligned`, `paths_added_to_or_moved_in_an_aligned_compound_path_keep_it_aligned`, `the_art_of_a_linked_opacity_mask_keeps_it_aligned`, `a_linked_opacity_mask_follows_a_snap`, `aligning_direct_selected_anchors_keeps_it_aligned`, `global_edit_keeps_its_members_aligned`, `a_path_with_live_corners_snaps_its_inner_edges`, `geometry_edits_keep_it_aligned`, `other_path_edits_keep_it_aligned`, `panels::transform::tests::align_to_pixel_grid_shows_and_sets_the_property`). - Align New Objects to Pixel Grid (`document.setup {alignNewObjectsToPixelGrid}`, a checkbox in New Document's Advanced Options and a checked item in the Transform panel menu) gives every path and compound path drawn in the document, the paths of a new grid or flare included, the pixel-aligned property, snapped in the step that draws it; it is on in the Mobile and Web presets and off in the others, saved presets and Recent keep it, and the document saves it. Type, images and groups do not take it, and art already in the document, pasted, duplicated or placed keeps its own property (VectorCraft's own rules) ([Pixel-aligned property](https://helpx.adobe.com/illustrator/desktop/get-started/learn-the-basics/pixel-preview-mode-for-web-graphics.html); `tests::pixelalign::align_new_objects_makes_new_paths_pixel_aligned`, `align_new_objects_reaches_grids_flares_and_add_on_shapes`, `align_new_objects_is_saved_and_read_back`, `tests::newdoc::align_new_objects_to_pixel_grid_follows_the_preset`, `panels::transform::tests::align_new_objects_menu_item_toggles_the_active_document`, `dialogs::new_document::tests::align_new_objects_checkbox_follows_the_preset_and_reaches_the_document`). - The Transform panel works out its Align to Pixel Grid checkbox once for each document revision and reuses it on later frames, and lists the selected objects' ids only when the box is clicked. The box shows the same state. With Select All of 99,500 objects (100,000 paths, 1,000 of them in 500 compound paths), working the state out on every frame took a median 33.5 ms of thread CPU time per frame in a release build on a loaded machine; the first frame after a change now takes 31.5 ms and later frames take about 1 ns (`panels::transform::tests::align_to_pixel_grid_kept_state_equals_a_full_measure`, `align_to_pixel_grid_state_is_measured_once_per_revision`, `pixel_aligned_state_timing`).