Shape Builder: the status bar says why a click or drag built nothing

A Shape Builder gesture that builds nothing now says why when it is
released: "select paths or compound paths" when nothing usable is
selected, "select all paths you want to merge" when the pointer is over
a path or compound path outside the selection, and "no region under the
pointer" otherwise. The message changes nothing in the document, the
selection or the undo history, and the next gesture that builds
something clears it. A gesture made while a large selection's map is
being built gives its message once, when it is replayed.

Tools get Action::Status, which the session passes to the status bar;
the new message has a row in every complete-message catalog.
This commit is contained in:
dotCooCoo
2026-11-16 05:05:16 -08:00
parent 7452b6f383
commit edecf9bf41
31 changed files with 241 additions and 12 deletions
+33
View File
@@ -582,6 +582,39 @@ fn shape_builder_tool_drives_the_command() {
assert_eq!(layer_children(&s), 1);
}
/// A Shape Builder click that builds nothing puts the reason in the status bar and leaves the
/// document, its undo history and the selection as they were; a click that merges shows no status.
#[test]
fn shape_builder_click_that_builds_nothing_shows_why() {
use vectorcraft_tools::builder::{NO_REGION, SELECT_ALL_PATHS, SELECT_PATHS};
let mut s = session();
let (a, _) = two(&mut s);
let v = ViewInfo::default();
s.select_tool("shapeBuilder", v).unwrap();
let click = |s: &mut Session, x: f64, y: f64| {
s.pointer(&PointerEvent::new(PointerKind::Down, x, y), v).unwrap();
s.pointer(&PointerEvent::new(PointerKind::Up, x, y), v).unwrap()
};
let state = |s: &Session| {
let st = s.doc().unwrap();
(st.revision, st.history.undo.len(), st.history.redo.len(), st.selection.objects.clone(), st.is_dirty())
};
s.execute("select.set", &json!({"ids": [a.0]})).unwrap();
let before = state(&s);
assert_eq!(click(&mut s, 125.0, 50.0), vec![UiRequest::Status(SELECT_ALL_PATHS.into())]);
assert_eq!(click(&mut s, 400.0, 400.0), vec![UiRequest::Status(NO_REGION.into())]);
assert_eq!(state(&s), before, "nothing changed");
s.execute("select.none", &json!({})).unwrap();
let before = state(&s);
assert_eq!(click(&mut s, 75.0, 50.0), vec![UiRequest::Status(SELECT_PATHS.into())]);
assert_eq!(state(&s), before, "nothing changed");
s.execute("select.set", &json!({"ids": [a.0]})).unwrap();
assert_eq!(click(&mut s, 75.0, 50.0), vec![UiRequest::Status(String::new())], "a click that merges clears the status");
assert_eq!(s.journal.last().unwrap().0, "shapeBuilder.merge");
assert!(click(&mut s, 25.0, 50.0).is_empty(), "the next merge shows no status");
assert_eq!(s.journal.last().unwrap().0, "shapeBuilder.merge");
}
/// A click of the Shape Builder merges over the map the tool built for the hover, as does the
/// command over the same inputs with the same gap; another gap needs a map of its own.
#[test]
+1
View File
@@ -1530,6 +1530,7 @@ impl Session {
}
Action::Dialog(k, p) => ui.push(UiRequest::Dialog(k, p)),
Action::SwitchTool(t) => ui.push(UiRequest::SwitchTool(t)),
Action::Status(msg) => ui.push(UiRequest::Status(msg)),
Action::Notify(what) => {
let view = self.last_view;
self.with_tool_cx(view, |t, cx| t.notify(cx, &what));
+57 -7
View File
@@ -211,8 +211,26 @@ pub struct ShapeBuilderTool {
prepared: Option<Arc<PreparedMerge>>,
/// A gesture made while the map of a large selection is being built on another thread.
deferred: Option<Deferred>,
/// The button went down with nothing selected: the release says what to select.
empty_press: bool,
/// The last gesture put one of [`SHAPE_BUILDER_STATUS`] in the status bar: the next gesture that
/// builds something clears it.
diagnosed: bool,
}
/// The status a Shape Builder gesture gives when the selection holds no path or compound path.
pub const SELECT_PATHS: &str = "Shape Builder: select paths or compound paths";
/// The status a Shape Builder gesture that touched nothing gives when it ends over a path or
/// compound path that is not selected.
pub const SELECT_ALL_PATHS: &str = "Shape Builder: select all paths you want to merge";
/// The status a Shape Builder gesture that touched nothing gives anywhere else.
pub const NO_REGION: &str = "Shape Builder: no region under the pointer";
/// The status messages the Shape Builder tool gives.
pub const SHAPE_BUILDER_STATUS: [&str; 3] = [SELECT_PATHS, SELECT_ALL_PATHS, NO_REGION];
/// A Shape Builder gesture made while the map of the selection was being built on another
/// thread: the map key and the inputs it was made over, its pointer events, which [`Tool::poll`]
/// replays once the map is there, and whether the release has come.
@@ -455,6 +473,26 @@ impl ShapeBuilderTool {
}
}
/// Why a gesture released at `p` that touched nothing built nothing: the selection gives no path
/// or compound path ([`SELECT_PATHS`]); the pointer is over a path or compound path that a click
/// can pick and that is neither selected nor inside a selected object ([`SELECT_ALL_PATHS`]); or
/// neither ([`NO_REGION`]).
fn nothing_built(&mut self, cx: &ToolContext, p: Point) -> Action {
self.diagnosed = true;
if self.cache.get(cx, self.opts.open_filled_as_closed).shapes.is_empty() {
return Action::Status(SELECT_PATHS.into());
}
let unselected = vectorcraft_doc::hit::hit_test(cx.doc, p, cx.hit_options()).is_some_and(|h| {
let chain: Vec<NodeId> = h.ancestry.iter().copied().chain([h.leaf]).collect();
let path = chain
.iter()
.filter_map(|id| cx.doc.node(*id))
.any(|n| matches!(n.kind, NodeKind::Path { guide: false, clipping: false, .. } | NodeKind::Compound { .. }));
path && !chain.iter().any(|id| cx.selection.contains(*id))
});
Action::Status(if unselected { SELECT_ALL_PATHS } else { NO_REGION }.into())
}
/// The cursor swatch preview: the swatch before the current fill, the current fill (ringed)
/// and the swatch after it, side by side above the pointer.
fn swatch_chips(&self, cx: &ToolContext) -> Vec<Overlay> {
@@ -479,7 +517,9 @@ impl Tool for ShapeBuilderTool {
vec![]
}
PointerKind::Down => {
// While a merge is being computed, a press starts no gesture.
// While a merge is being computed, a press starts no gesture. With nothing
// selected, the release says what to select.
self.empty_press = cx.selection.is_empty() && !self.editing();
if cx.selection.is_empty() || self.editing() {
return vec![];
}
@@ -564,7 +604,7 @@ impl Tool for ShapeBuilderTool {
let press = points.first().copied().filter(|s| marquee.is_none() && !self.far && s.distance(p) <= cx.tol(CLICK_TOL_PX));
let split = press.filter(|q| self.stroke_at(cx, *q, erase).is_some());
if std::mem::take(&mut self.touched).is_empty() && split.is_none() {
return vec![];
return vec![self.nothing_built(cx, p)];
}
self.stroke = None;
let roots = sorted_roots(cx.doc, &cx.selection.objects);
@@ -590,11 +630,17 @@ impl Tool for ShapeBuilderTool {
if self.opts.swatches {
params["pickColorFrom"] = json!("swatches");
}
// The gesture builds something: the reason the last one built nothing goes.
let mut acts: Vec<Action> = std::mem::take(&mut self.diagnosed).then(|| Action::Status(String::new())).into_iter().collect();
// A large selection's merge is computed on another thread; `poll` applies it.
if self.start_merge(cx, &params) {
return vec![];
if !self.start_merge(cx, &params) {
acts.push(Action::Exec("shapeBuilder.merge".into(), params));
}
vec![Action::Exec("shapeBuilder.merge".into(), params)]
acts
}
PointerKind::Up if std::mem::take(&mut self.empty_press) => {
self.diagnosed = true;
vec![Action::Status(SELECT_PATHS.into())]
}
_ => vec![],
}
@@ -693,6 +739,7 @@ impl Tool for ShapeBuilderTool {
/// Choosing another tool or another document applies the merge being computed first.
fn deactivate(&mut self, cx: &ToolContext) -> Vec<Action> {
self.empty_press = false;
self.finish_edit(cx)
}
@@ -735,9 +782,11 @@ impl Tool for ShapeBuilderTool {
/// With Pick Color From Color Swatches, the Left and Right arrow keys pick the color swatch
/// before or after the current fill. Escape during a drag cancels it: the release after it
/// merges and deletes nothing.
/// merges and deletes nothing, and Escape while a press with nothing selected is held keeps its
/// release from showing a status.
fn claims_key(&self, _cx: &ToolContext, key: ToolKey) -> bool {
(self.opts.swatches && !self.dragging && matches!(key, ToolKey::Left | ToolKey::Right)) || (self.dragging && key == ToolKey::Escape)
(self.opts.swatches && !self.dragging && matches!(key, ToolKey::Left | ToolKey::Right))
|| ((self.dragging || self.empty_press) && key == ToolKey::Escape)
}
/// The arrows pick swatches only without modifiers; Shift, Alt and Cmd/Ctrl arrows keep their
@@ -753,6 +802,7 @@ impl Tool for ShapeBuilderTool {
}
if key == ToolKey::Escape {
self.dragging = false;
self.empty_press = false;
self.points.clear();
self.touched = Touched::default();
// A gesture recorded while the map is being built is canceled with it.
+106 -5
View File
@@ -471,6 +471,106 @@ fn shape_builder_hover_builds_a_small_map_at_once() {
assert_eq!((t.cache.builds, t.cache.background), (1, 0));
}
fn status(msg: &str) -> Vec<Action> {
vec![Action::Status(msg.into())]
}
/// A click or drag with nothing selected shows what to select when it is released, and Escape
/// during the press keeps the release quiet.
#[test]
fn shape_builder_with_nothing_selected_says_what_to_select() {
let (d, _, _) = two_rects();
let s = Selection::default();
let p = paint();
let cx = cx(&d, &s, &p);
let mut t = ShapeBuilderTool::default();
assert!(t.pointer(&cx, &ev(PointerKind::Down, 75.0, 50.0)).is_empty());
assert_eq!(t.pointer(&cx, &ev(PointerKind::Up, 75.0, 50.0)), status(SELECT_PATHS), "a click");
assert!(t.pointer(&cx, &ev(PointerKind::Down, 25.0, 50.0)).is_empty());
assert!(t.pointer(&cx, &ev(PointerKind::Drag, 125.0, 50.0)).is_empty());
assert_eq!(t.pointer(&cx, &ev(PointerKind::Up, 125.0, 50.0)), status(SELECT_PATHS), "a drag");
assert!(t.pointer(&cx, &ev(PointerKind::Up, 125.0, 50.0)).is_empty(), "a release without a press");
t.pointer(&cx, &ev(PointerKind::Down, 75.0, 50.0));
assert!(t.claims_key(&cx, ToolKey::Escape));
assert!(t.key(&cx, ToolKey::Escape, Mods::default()).is_empty());
assert!(t.pointer(&cx, &ev(PointerKind::Up, 75.0, 50.0)).is_empty(), "a canceled press");
assert!(!t.claims_key(&cx, ToolKey::Escape));
}
/// With A of the overlapping squares A and B selected, a click on the part of B outside A builds
/// nothing and says to select every path to merge; a click on empty canvas says there is no
/// region; a click inside A still merges A alone and clears that status, and the click after it
/// gives the merge alone.
#[test]
fn shape_builder_names_the_unselected_path_under_a_release_that_built_nothing() {
let (d, a, _) = two_rects();
let mut s = Selection::default();
s.set([a]);
let p = paint();
let cx = cx(&d, &s, &p);
let mut t = ShapeBuilderTool::default();
t.pointer(&cx, &ev(PointerKind::Down, 125.0, 50.0));
assert_eq!(t.pointer(&cx, &ev(PointerKind::Up, 125.0, 50.0)), status(SELECT_ALL_PATHS));
t.pointer(&cx, &ev(PointerKind::Down, 300.0, 300.0));
assert_eq!(t.pointer(&cx, &ev(PointerKind::Up, 300.0, 300.0)), status(NO_REGION));
t.pointer(&cx, &ev(PointerKind::Down, 75.0, 50.0));
let acts = t.pointer(&cx, &ev(PointerKind::Up, 75.0, 50.0));
assert!(
matches!(acts.as_slice(), [Action::Status(m), Action::Exec(id, v)] if m.is_empty() && id == "shapeBuilder.merge" && v["ids"] == json!([a.0])),
"{acts:?}"
);
t.pointer(&cx, &ev(PointerKind::Down, 75.0, 50.0));
let acts = t.pointer(&cx, &ev(PointerKind::Up, 75.0, 50.0));
assert!(matches!(acts.as_slice(), [Action::Exec(id, _)] if id == "shapeBuilder.merge"), "{acts:?}");
// A locked or hidden B cannot be picked, so the release says there is no region.
for hide in [false, true] {
let (mut d, a, b) = two_rects();
let n = d.node_mut(b).unwrap();
if hide {
n.visible = false;
} else {
n.locked = true;
}
let mut s = Selection::default();
s.set([a]);
let cx = crate::testutil::cx(&d, &s, &p);
let mut t = ShapeBuilderTool::default();
t.pointer(&cx, &ev(PointerKind::Down, 125.0, 50.0));
assert_eq!(t.pointer(&cx, &ev(PointerKind::Up, 125.0, 50.0)), status(NO_REGION), "hidden: {hide}");
}
}
/// A selection that holds no path or compound path says to select one.
#[test]
fn shape_builder_with_no_path_selected_says_to_select_paths() {
let (mut d, a, _) = two_rects();
d.node_mut(a).unwrap().locked = true;
let mut s = Selection::default();
s.set([a]);
let p = paint();
let cx = cx(&d, &s, &p);
let mut t = ShapeBuilderTool::default();
t.pointer(&cx, &ev(PointerKind::Down, 75.0, 50.0));
assert_eq!(t.pointer(&cx, &ev(PointerKind::Up, 75.0, 50.0)), status(SELECT_PATHS));
}
/// A gesture made while the map of a large selection is being built and released over nothing
/// gives its status once, when it is replayed.
#[test]
fn shape_builder_replayed_gesture_over_nothing_gives_its_status_once() {
let (d, s) = square_row(200);
let p = paint();
let cx = cx(&d, &s, &p);
let mut t = ShapeBuilderTool::default();
t.pointer(&cx, &ev(PointerKind::Move, 15.0, 10.0));
assert!(t.pointer(&cx, &ev(PointerKind::Down, 450.0, 450.0)).is_empty());
assert_eq!(t.cache.builds, 0, "the gesture did not wait for the map");
assert!(t.pointer(&cx, &ev(PointerKind::Up, 450.0, 450.0)).is_empty(), "the gesture waits for the map");
assert!(t.editing());
assert_eq!(t.finish_edit(&cx), status(NO_REGION));
assert!(t.finish_edit(&cx).is_empty() && !t.editing());
}
#[test]
fn shape_builder_alt_drag_erases_and_empty_drag_does_nothing() {
let (d, a, b) = two_rects();
@@ -485,7 +585,7 @@ fn shape_builder_alt_drag_erases_and_empty_drag_does_nothing() {
let Action::Exec(_, v) = &acts[0] else { panic!() };
assert_eq!(v["erase"], true);
t.pointer(&cx, &ev(PointerKind::Down, 300.0, 300.0));
assert!(t.pointer(&cx, &ev(PointerKind::Up, 300.0, 300.0)).is_empty());
assert_eq!(t.pointer(&cx, &ev(PointerKind::Up, 300.0, 300.0)), status(NO_REGION), "the release edits nothing and says why");
}
/// Squares A (0..100) and B (50..150 both ways), overlapping at a corner, selected.
@@ -998,9 +1098,9 @@ fn shape_builder_stroke_options_round_trip_and_pick_the_side_under_the_pointer()
let acts = t.pointer(&cx, &ev(PointerKind::Up, 0.5, 27.0));
let [Action::Exec(_, v)] = acts.as_slice() else { panic!("{acts:?}") };
assert_eq!((&v["splitStroke"], &v["points"]), (&json!(true), &json!([[-1.0, 25.0]])));
// A release farther away is a drag, which splits nothing.
// A release farther away is a drag, which splits nothing and says it touched no region.
t.pointer(&cx, &ev(PointerKind::Down, -1.0, 25.0));
assert!(t.pointer(&cx, &ev(PointerKind::Up, -1.0, 30.0)).is_empty());
assert_eq!(t.pointer(&cx, &ev(PointerKind::Up, -1.0, 30.0)), status(NO_REGION));
// So is a Straight Line drag that goes away and ends back near the press.
t.set_option("selection", &json!("straightLine"));
t.pointer(&cx, &ev(PointerKind::Down, -1.0, 25.0));
@@ -1008,11 +1108,12 @@ fn shape_builder_stroke_options_round_trip_and_pick_the_side_under_the_pointer()
let acts = t.pointer(&cx, &ev(PointerKind::Up, -0.5, 25.5));
assert!(!acts.iter().any(|a| matches!(a, Action::Exec(_, v) if v.get("splitStroke").is_some())), "{acts:?}");
t.set_option("selection", &json!("freeform"));
// A drag merges as before and sends no switch.
// A drag merges as before and sends no switch; it clears the status the drag before it gave.
t.pointer(&cx, &ev(PointerKind::Down, 25.0, 25.0));
t.pointer(&cx, &ev(PointerKind::Drag, 75.0, 75.0));
let acts = t.pointer(&cx, &ev(PointerKind::Up, 75.0, 75.0));
let [Action::Exec(_, v)] = acts.as_slice() else { panic!("{acts:?}") };
let [Action::Status(m), Action::Exec(_, v)] = acts.as_slice() else { panic!("{acts:?}") };
assert!(m.is_empty(), "{m}");
assert!(v.get("splitStroke").is_none(), "{v}");
}
+4
View File
@@ -218,4 +218,8 @@ pub enum Action {
SwitchTool(String),
/// Call the tool's `notify` after the preceding actions ran (e.g. to pick up a created object).
Notify(String),
/// Show this English message in the status bar (e.g. why a Shape Builder gesture built
/// nothing); an empty message clears the status bar. It changes nothing in the document and
/// records no undo step.
Status(String),
}
+1
View File
@@ -6392,6 +6392,7 @@ liquify-list-end {0}, {1} {0} i {1}
@msg shadings of more than 4096 patches or triangles were left out els ombrejats de més de 4096 pedaços o triangles s’han omès
@msg shadings whose functions are of an unknown type are filled with their middle colour els ombrejats les funcions dels quals són d’un tipus desconegut s’omplen amb el seu color central
@msg Shape Builder: no region under the pointer Constructor de formes: no hi ha cap regió sota el punter
@msg Shape Builder: select all paths you want to merge Constructor de formes: selecciona tots els traçats que vulguis combinar
@msg Shape Builder: select paths or compound paths Constructor de formes: selecciona traçats o traçats compostos
@msg shortcut for `{k}` must be a string la drecera de `{k}` ha de ser una cadena
@msg Show All Hidden Attributes: nothing is hidden Mostra tots els atributs ocults: no hi ha res d’ocult
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -4972,6 +4972,7 @@ liquify-list-end {0}, {1} {0} a {1}
@msg Saved {path} Uloženo: {path}
@msg Select text or click into text with the Type tool to insert glyphs Glyfy vložíte, když vyberete text nebo do něj kliknete nástrojem Text
@msg Shape Builder: no region under the pointer Tvorba tvarů: pod ukazatelem není žádná oblast
@msg Shape Builder: select all paths you want to merge Tvorba tvarů: vyberte všechny cesty, které chcete sloučit
@msg Shape Builder: select paths or compound paths Tvorba tvarů: vyberte cesty nebo složené cesty
@msg Show All Hidden Attributes: nothing is hidden Zobrazit všechny skryté atributy: nic není skryto
@msg Split Into Grid: select paths large enough for the grid Rozdělit do mřížky: vyberte cesty dost velké pro mřížku
Can't render this file because it is too large.
+1
View File
@@ -7181,6 +7181,7 @@ imageTrace Outline Kontur
@msg Saved {path} Gemte {path}
@msg Select text or click into text with the Type tool to insert glyphs Markér tekst, eller klik i tekst med tekstværktøjet, for at indsætte glyffer
@msg Shape Builder: no region under the pointer Figurbygger: intet område under markøren
@msg Shape Builder: select all paths you want to merge Figurbygger: markér alle kurver, du vil flette
@msg Shape Builder: select paths or compound paths Figurbygger: markér kurver eller sammensatte kurver
@msg Show All Hidden Attributes: nothing is hidden Vis alle skjulte attributter: intet er skjult
@msg Split Into Grid: select paths large enough for the grid Opdel i gitter: markér kurver, der er store nok til gitteret
Can't render this file because it is too large.
+1
View File
@@ -4570,6 +4570,7 @@ liquify-list-end {0}, {1} {0} und {1}
@msg Saved {path} {path} gespeichert
@msg Select text or click into text with the Type tool to insert glyphs Wählen Sie Text aus oder klicken Sie mit dem Text-Werkzeug in einen Text, um Glyphen einzufügen
@msg Shape Builder: no region under the pointer Formerstellung: kein Bereich unter dem Zeiger
@msg Shape Builder: select all paths you want to merge Formerstellung: Wählen Sie alle Pfade aus, die Sie zusammenfügen möchten
@msg Shape Builder: select paths or compound paths Formerstellung: Wählen Sie Pfade oder zusammengesetzte Pfade aus
@msg Show All Hidden Attributes: nothing is hidden Alle ausgeblendeten Attribute einblenden: Es ist nichts ausgeblendet
@msg Split Into Grid: select paths large enough for the grid In Raster teilen: Wählen Sie Pfade aus, die groß genug für das Raster sind
Can't render this file because it is too large.
+1
View File
@@ -2667,6 +2667,7 @@ liquify-list-end {0}, {1} {0} και {1}
@msg Saved {path} Αποθηκεύτηκε το {path}
@msg Select text or click into text with the Type tool to insert glyphs Επιλέξτε κείμενο ή κάντε κλικ μέσα σε κείμενο με το εργαλείο κειμένου για εισαγωγή γλύφων
@msg Shape Builder: no region under the pointer Δημιουργία σχημάτων: δεν υπάρχει περιοχή κάτω από τον δείκτη
@msg Shape Builder: select all paths you want to merge Δημιουργία σχημάτων: επιλέξτε όλες τις διαδρομές που θέλετε να συγχωνεύσετε
@msg Shape Builder: select paths or compound paths Δημιουργία σχημάτων: επιλέξτε διαδρομές ή σύνθετες διαδρομές
@msg Show All Hidden Attributes: nothing is hidden Εμφάνιση όλων των κρυφών χαρακτηριστικών: δεν υπάρχουν κρυφά χαρακτηριστικά
@msg Split Into Grid: select paths large enough for the grid Διαίρεση σε πλέγμα: επιλέξτε αρκετά μεγάλες διαδρομές για το πλέγμα
Can't render this file because it is too large.
+1
View File
@@ -4676,6 +4676,7 @@ liquify-list-end {0}, {1} {0}, {1}
@msg Saved {path} Se guardó {path}
@msg Select text or click into text with the Type tool to insert glyphs Selecciona texto o haz clic dentro del texto con la herramienta Texto para insertar glifos
@msg Shape Builder: no region under the pointer Generador de formas: no hay ninguna región bajo el puntero
@msg Shape Builder: select all paths you want to merge Generador de formas: selecciona todos los trazados que quieras combinar
@msg Shape Builder: select paths or compound paths Generador de formas: selecciona trazados o trazados compuestos
@msg Show All Hidden Attributes: nothing is hidden Mostrar todos los atributos ocultos: no hay nada oculto
@msg Split Into Grid: select paths large enough for the grid Dividir en cuadrícula: selecciona trazados lo bastante grandes para la cuadrícula
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -4909,6 +4909,7 @@ liquify-list-end {0}, {1} {0} ja {1}
@msg Saved {path} Tallennettiin {path}
@msg Select text or click into text with the Type tool to insert glyphs Valitse tekstiä tai napsauta tekstiin tekstityökalulla, niin voit lisätä merkkejä
@msg Shape Builder: no region under the pointer Muodonmuodostin: osoittimen alla ei ole aluetta
@msg Shape Builder: select all paths you want to merge Muodonmuodostin: valitse kaikki polut, jotka haluat yhdistää
@msg Shape Builder: select paths or compound paths Muodonmuodostin: valitse polkuja tai yhdistelmäpolkuja
@msg Show All Hidden Attributes: nothing is hidden Näytä kaikki piilotetut attribuutit: mitään ei ole piilotettu
@msg Split Into Grid: select paths large enough for the grid Jaa ruudukoksi: valitse ruudukolle riittävän suuret polut
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -4638,6 +4638,7 @@ liquify-list-end {0}, {1} {0} et {1}
@msg Saved {path} {path} enregistré
@msg Select text or click into text with the Type tool to insert glyphs Sélectionnez du texte ou cliquez dans un texte avec l’outil Texte pour insérer des glyphes
@msg Shape Builder: no region under the pointer Concepteur de forme : aucune zone sous le pointeur
@msg Shape Builder: select all paths you want to merge Concepteur de forme : sélectionnez tous les tracés à fusionner
@msg Shape Builder: select paths or compound paths Concepteur de forme : sélectionnez des tracés ou des tracés transparents
@msg Show All Hidden Attributes: nothing is hidden Afficher tous les attributs masqués : rien n’est masqué
@msg Split Into Grid: select paths large enough for the grid Découper en grille : sélectionnez des tracés assez grands pour la grille
Can't render this file because it is too large.
+1
View File
@@ -8221,6 +8221,7 @@ liquify-list-end {0}, {1} {0} और {1}
@msg shadings of more than 4096 patches or triangles were left out 4096 से अधिक पैच या त्रिकोणों के छायांकन को छोड़ दिया गया था
@msg shadings whose functions are of an unknown type are filled with their middle colour छायांकन जिसका कार्य अज्ञात प्रकार के होते हैं, उनके मध्य रंग से भरे होते हैं
@msg Shape Builder: no region under the pointer आकृति बिल्डर: सूचक के तहत कोई क्षेत्र नहीं
@msg Shape Builder: select all paths you want to merge आकृति बिल्डर: वे सभी पाथ सिलेक्ट करें जिन्हें आप मर्ज करना चाहते हैं
@msg Shape Builder: select paths or compound paths आकृति बिल्डर: पाथ या मिश्रित पाथ सिलेक्ट करें
@msg Shaper needs 1–64 source paths शेपर के लिए 1–64 स्रोत पाथ चाहिए
@msg shortcut for `{k}` must be a string `{k}` के लिए शॉर्टकट एक स्ट्रिंग होना चाहिए
Can't render this file because it is too large.
+1
View File
@@ -5904,6 +5904,7 @@ liquify-list-end {0}, {1} {0} és {1}
@msg shadings of more than 4096 patches or triangles were left out kimaradtak a 4096-nál több foltból vagy háromszögből álló árnyalások
@msg shadings whose functions are of an unknown type are filled with their middle colour az ismeretlen típusú függvényt használó árnyalások a középső színükkel kitöltve jelennek meg
@msg Shape Builder: no region under the pointer Alakzatépítő: a mutató alatt nincs terület
@msg Shape Builder: select all paths you want to merge Alakzatépítő: jelöld ki az összes egyesítendő útvonalat
@msg Shape Builder: select paths or compound paths Alakzatépítő: jelölj ki útvonalakat vagy összetett útvonalakat
@msg shortcut for `{k}` must be a string `{k}` billentyűparancsa csak szöveg lehet
@msg Show All Hidden Attributes: nothing is hidden Összes rejtett attribútum megjelenítése: nincs rejtett elem
Can't render this file because it is too large.
+1
View File
@@ -4704,6 +4704,7 @@ liquify-list-end {0}, {1} {0} e {1}
@msg Saved {path} Salvato {path}
@msg Select text or click into text with the Type tool to insert glyphs Seleziona del testo o fai clic nel testo con lo strumento Testo per inserire glifi
@msg Shape Builder: no region under the pointer Generatore forme: nessuna regione sotto il puntatore
@msg Shape Builder: select all paths you want to merge Generatore forme: seleziona tutti i tracciati da unire
@msg Shape Builder: select paths or compound paths Generatore forme: seleziona tracciati o tracciati composti
@msg Show All Hidden Attributes: nothing is hidden Mostra tutti gli attributi nascosti: non c'è nulla di nascosto
@msg Split Into Grid: select paths large enough for the grid Dividi in griglia: seleziona tracciati abbastanza grandi per la griglia
Can't render this file because it is too large.
+1
View File
@@ -4570,6 +4570,7 @@ swatch Bright Violet ビビッドバイオレット
@msg Live Paint: select paths or compound paths ライブペイント: パスまたは複合パスを選択してください
@msg Live Paint: these paths are too degenerate to paint ライブペイント: これらのパスは形状がつぶれすぎていてペイントできません
@msg Shape Builder: no region under the pointer シェイプ形成ツール: ポインターの下に領域がありません
@msg Shape Builder: select all paths you want to merge シェイプ形成ツール: 結合するパスをすべて選択してください
@msg Shape Builder: select paths or compound paths シェイプ形成ツール: パスまたは複合パスを選択してください
@msg image data `{_1}` is missing 画像データ `{_1}` が見つかりません
@msg no Live Paint edge near that point その位置の近くにライブペイントのエッジがありません
Can't render this file because it is too large.
+1
View File
@@ -6392,6 +6392,7 @@ font-technology Variable ცვლადი
@msg Saved {path} შენახულია: {path}
@msg Select text or click into text with the Type tool to insert glyphs გლიფების ჩასასმელად მონიშნეთ ტექსტი ან ტექსტის ხელსაწყოთი დაწკაპეთ ტექსტში
@msg Shape Builder: no region under the pointer ფიგურების კონსტრუქტორი: მაჩვენებლის ქვეშ არე არ არის
@msg Shape Builder: select all paths you want to merge ფიგურების კონსტრუქტორი: მონიშნეთ ყველა ტრაექტორია, რომლის გაერთიანებაც გსურთ
@msg Shape Builder: select paths or compound paths ფიგურების კონსტრუქტორი: მონიშნეთ ტრაექტორიები ან შედგენილი ტრაექტორიები
@msg Show All Hidden Attributes: nothing is hidden ყველა დამალული ატრიბუტის ჩვენება: დამალული არაფერია
@msg Split Into Grid: select paths large enough for the grid ბადედ გაყოფა: მონიშნეთ ბადისთვის საკმარისად დიდი ტრაექტორიები
Can't render this file because it is too large.
+1
View File
@@ -4497,6 +4497,7 @@ theme Appearance 외관
@msg Live Paint: select paths or compound paths 라이브 페인트: 패스 또는 컴파운드 패스를 선택하세요
@msg Live Paint: these paths are too degenerate to paint 라이브 페인트: 이 패스는 퇴화되어 칠할 수 없습니다
@msg Shape Builder: no region under the pointer 모양 빌더: 포인터 아래에 영역이 없습니다
@msg Shape Builder: select all paths you want to merge 모양 빌더: 병합할 패스를 모두 선택하세요
@msg Shape Builder: select paths or compound paths 모양 빌더: 패스 또는 컴파운드 패스를 선택하세요
@msg image data `{_1}` is missing 이미지 데이터 `{_1}`이(가) 없습니다
@msg no Live Paint edge near that point 그 지점 근처에 라이브 페인트 가장자리가 없습니다
Can't render this file because it is too large.
+1
View File
@@ -5076,6 +5076,7 @@ imageTrace Outline Contour
@msg Saved {path} {path} opgeslagen
@msg Select text or click into text with the Type tool to insert glyphs Selecteer tekst of klik met het tekstgereedschap in tekst om glyphs in te voegen
@msg Shape Builder: no region under the pointer Vormbouwer: geen gebied onder de aanwijzer
@msg Shape Builder: select all paths you want to merge Vormbouwer: selecteer alle paden die je wilt samenvoegen
@msg Shape Builder: select paths or compound paths Vormbouwer: selecteer paden of samengestelde paden
@msg Show All Hidden Attributes: nothing is hidden Alle verborgen kenmerken tonen: er is niets verborgen
@msg Split Into Grid: select paths large enough for the grid In raster verdelen: selecteer paden die groot genoeg zijn voor het raster
Can't render this file because it is too large.
+1
View File
@@ -4795,6 +4795,7 @@ liquify-list-end {0}, {1} {0} i {1}
@msg Saved {path} Zapisano {path}
@msg Select text or click into text with the Type tool to insert glyphs Zaznacz tekst lub kliknij w tekst narzędziem Tekst, aby wstawić glify
@msg Shape Builder: no region under the pointer Kreator kształtów: brak obszaru pod wskaźnikiem
@msg Shape Builder: select all paths you want to merge Kreator kształtów: zaznacz wszystkie ścieżki, które chcesz scalić
@msg Shape Builder: select paths or compound paths Kreator kształtów: zaznacz ścieżki lub ścieżki złożone
@msg Show All Hidden Attributes: nothing is hidden Pokaż wszystkie ukryte atrybuty: nic nie jest ukryte
@msg Split Into Grid: select paths large enough for the grid Podziel na siatkę: zaznacz ścieżki wystarczająco duże dla siatki
Can't render this file because it is too large.
+1
View File
@@ -3991,6 +3991,7 @@ axis Both Ambos
@msg Saved {path} {path} salvo
@msg Select text or click into text with the Type tool to insert glyphs Selecione texto ou clique em um texto com a ferramenta Texto para inserir glifos
@msg Shape Builder: no region under the pointer Criador de formas: nenhuma região sob o ponteiro
@msg Shape Builder: select all paths you want to merge Criador de formas: selecione todos os traçados que deseja mesclar
@msg Shape Builder: select paths or compound paths Criador de formas: selecione traçados ou traçados compostos
@msg Show All Hidden Attributes: nothing is hidden Mostrar todos os atributos ocultos: nada está oculto
@msg Split Into Grid: select paths large enough for the grid Dividir em grade: selecione traçados grandes o bastante para a grade
Can't render this file because it is too large.
+1
View File
@@ -4700,6 +4700,7 @@ liquify-list-end {0}, {1} {0} и {1}
@msg Saved {path} Сохранено: {path}
@msg Select text or click into text with the Type tool to insert glyphs Выделите текст или щёлкните внутри текста инструментом «Текст», чтобы вставить глифы
@msg Shape Builder: no region under the pointer Создание фигур: под указателем нет области
@msg Shape Builder: select all paths you want to merge Создание фигур: выделите все контуры, которые нужно объединить
@msg Shape Builder: select paths or compound paths Создание фигур: выделите контуры или составные контуры
@msg Show All Hidden Attributes: nothing is hidden Показать все скрытые атрибуты: ничего не скрыто
@msg Split Into Grid: select paths large enough for the grid Разделение на сетку: выделите контуры, достаточно большие для сетки
Can't render this file because it is too large.
+1
View File
@@ -4582,6 +4582,7 @@ liquify-list-end {0}, {1} {0} och {1}
@msg Saved {path} Sparade {path}
@msg Select text or click into text with the Type tool to insert glyphs Markera text eller klicka i text med textverktyget för att infoga glyfer
@msg Shape Builder: no region under the pointer Formbyggare: inget område under pekaren
@msg Shape Builder: select all paths you want to merge Formbyggare: markera alla banor du vill sammanfoga
@msg Shape Builder: select paths or compound paths Formbyggare: markera banor eller sammansatta banor
@msg Show All Hidden Attributes: nothing is hidden Visa alla dolda attribut: ingenting är dolt
@msg Split Into Grid: select paths large enough for the grid Dela upp i rutnät: markera banor som är tillräckligt stora för rutnätet
Can't render this file because it is too large.
+15
View File
@@ -451,6 +451,21 @@ fn objects_on_path_detach_strings_are_in_complete_catalogs() {
}
}
/// The status messages the Shape Builder tool gives when a gesture builds nothing come from the
/// tools crate, which [`message_literals`] does not scan, so every complete catalog is checked for
/// them here.
#[test]
fn shape_builder_status_messages_are_in_complete_catalogs() {
use vectorcraft_tools::builder::SHAPE_BUILDER_STATUS;
for code in COMPLETE_MESSAGES {
let lang = Lang::from_code(code).expect("registered");
for s in SHAPE_BUILDER_STATUS {
assert_ne!(message(lang, s), s, "{code}: {s}");
}
}
assert_eq!(message(de(), SHAPE_BUILDER_STATUS[1]), "Formerstellung: Wählen Sie alle Pfade aus, die Sie zusammenfügen möchten");
}
/// The Window › Brush Libraries menu, built from the built-in library table, names each library.
#[test]
fn built_in_brush_library_names_are_in_complete_catalogs() {
+1
View File
@@ -4413,6 +4413,7 @@ liquify-list-end {0}, {1} {0} ve {1}
@msg Saved {path} {path} kaydedildi
@msg Select text or click into text with the Type tool to insert glyphs Glif eklemek için metni seçin veya Yazım aracıyla metne tıklayın
@msg Shape Builder: no region under the pointer Şekil Oluşturucu: işaretçinin altında bölge yok
@msg Shape Builder: select all paths you want to merge Şekil Oluşturucu: birleştirmek istediğiniz tüm yolları seçin
@msg Shape Builder: select paths or compound paths Şekil Oluşturucu: yolları veya bileşik yolları seçin
@msg Show All Hidden Attributes: nothing is hidden Tüm Gizli Özellikleri Göster: hiçbir şey gizli değildir
@msg Split Into Grid: select paths large enough for the grid Izgaraya Böl: ızgara için yeterince büyük yollar seçin
Can't render this file because it is too large.
+1
View File
@@ -4688,6 +4688,7 @@ liquify-list-end {0}, {1} {0} і {1}
@msg Saved {path} Збережено: {path}
@msg Select text or click into text with the Type tool to insert glyphs Виділіть текст або клацніть всередині тексту інструментом «Текст», щоб вставити гліфи
@msg Shape Builder: no region under the pointer Створення фігур: під вказівником немає області
@msg Shape Builder: select all paths you want to merge Створення фігур: виділіть усі контури, які потрібно об’єднати
@msg Shape Builder: select paths or compound paths Створення фігур: виділіть контури або складені контури
@msg Show All Hidden Attributes: nothing is hidden Показати всі приховані атрибути: нічого не приховано
@msg Split Into Grid: select paths large enough for the grid Поділ на сітку: виділіть контури, досить великі для сітки
Can't render this file because it is too large.
+1
View File
@@ -5592,6 +5592,7 @@ liquify-list-end {0}, {1} {0} và {1}
@msg shadings of more than 4096 patches or triangles were left out các vùng tô có hơn 4096 mảnh hoặc tam giác đã bị bỏ qua
@msg shadings whose functions are of an unknown type are filled with their middle colour các vùng tô có hàm loại không xác định được tô bằng màu giữa
@msg Shape Builder: no region under the pointer Xây dựng hình dạng: không có vùng nào dưới con trỏ
@msg Shape Builder: select all paths you want to merge Xây dựng hình dạng: chọn tất cả đường dẫn bạn muốn hợp nhất
@msg Shape Builder: select paths or compound paths Xây dựng hình dạng: chọn đường dẫn hoặc đường dẫn phức
@msg shortcut for `{k}` must be a string phím tắt cho `{k}` phải là chuỗi
@msg Show All Hidden Attributes: nothing is hidden Hiện tất cả thuộc tính ẩn: không có gì bị ẩn
Can't render this file because it contains an unexpected character in line 205 and column 5.
+1
View File
@@ -4284,6 +4284,7 @@ imageTrace Outline 轮廓
@msg Live Paint: select paths or compound paths 实时上色:请选择路径或复合路径
@msg Live Paint: these paths are too degenerate to paint 实时上色:这些路径过于退化,无法上色
@msg Shape Builder: no region under the pointer 形状生成器:指针下方没有区域
@msg Shape Builder: select all paths you want to merge 形状生成器:请选择要合并的所有路径
@msg Shape Builder: select paths or compound paths 形状生成器:请选择路径或复合路径
@msg image data `{_1}` is missing 缺少图像数据 `{_1}`
@msg no Live Paint edge near that point 该点附近没有实时上色边缘
Can't render this file because it is too large.
+1
View File
@@ -1915,6 +1915,7 @@ file-filter Templates 範本
@msg Live Paint: select paths or compound paths 即時上色:請選取路徑或複合路徑
@msg Live Paint: these paths are too degenerate to paint 即時上色:這些路徑過度退化,無法上色
@msg Shape Builder: no region under the pointer 形狀建立:指標下方沒有區域
@msg Shape Builder: select all paths you want to merge 形狀建立:請選取要合併的所有路徑
@msg Shape Builder: select paths or compound paths 形狀建立:請選取路徑或複合路徑
@msg image data `{_1}` is missing 找不到影像資料 `{_1}`
@msg no Live Paint edge near that point 該點附近沒有即時上色邊緣
Can't render this file because it is too large.
+1
View File
@@ -1295,6 +1295,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
As VectorCraft's own rule, OK in Shape Builder Tool Options gives an error for a highlight Color with an alpha part (`#rrggbbaa` or `#rgba`) and changes nothing. Regression test: `dialogs::shape_builder_options::tests::a_highlight_color_with_an_alpha_part_is_refused`.
With Pick Color From Artwork, a merged shape takes the appearance, opacity and blending mode of the object where the drag starts, else of the object where it ends, else of the front-most selected object, as the [Shape Builder combine page](https://web.archive.org/web/20251006211643/https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/draw-shapes/combine-shapes-with-shape-builder-tool.html) describes. A click in an area that no selected object covers, such as a hole other shapes enclose, takes the front-most selected object's look (`shapeBuilder.merge` `points`: the first point is where the drag starts, and the last point is where it ends).
A Shift-drag with the Shape Builder tool draws a rectangular marquee for merging many paths at once, as [Combine shapes with the Shape Builder tool](https://web.archive.org/web/20251006211643/https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/draw-shapes/combine-shapes-with-shape-builder-tool.html) describes: the regions it reaches are shaded while it is drawn and merge into one shape on release, or with Alt they are deleted. The marquee reaches each region whose outline crosses it or has an anchor inside it, and the region that holds the whole marquee; this rule is VectorCraft's own. For Pick Color From Artwork, the marquee's starting corner is where the drag starts and the opposite corner is where it ends (`shapeBuilder.merge` `rect`).
The Shape Builder works on the selected paths, as [Combine shapes with the Shape Builder tool](https://web.archive.org/web/20251006211643/https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/draw-shapes/combine-shapes-with-shape-builder-tool.html) describes. As VectorCraft's own rule, a click or drag that builds nothing says why in the status bar when it is released: "Shape Builder: select paths or compound paths" when nothing is selected or the selection holds no unlocked, visible path; "Shape Builder: select all paths you want to merge" when the release is over a path or compound path that is not selected; and "Shape Builder: no region under the pointer" otherwise. The document, the selection and the undo history stay as they were, and the next gesture that builds something clears the message. Regression tests: `shape_builder_with_nothing_selected_says_what_to_select`, `shape_builder_names_the_unselected_path_under_a_release_that_built_nothing` and `shape_builder_replayed_gesture_over_nothing_gives_its_status_once` in `builder/tests.rs`, and `tests::build::shape_builder_click_that_builds_nothing_shows_why`.
Shape Builder pieces on dense hatches (lines at exact 0.25 or 0.5 pt steps across another line) come back one per stretch between crossings, with no speck where the sweep cut a line's two passes a rounding error apart: the planar map contracts the stub between such cuts into one vertex, bounded by each cluster's extent so a run of tiny level segments keeps its length (`crates/pathops/src/planar.rs` tests `a_dense_hatch_at_exact_binary_steps_cuts_each_line_once_per_crossing`, `a_run_of_tiny_level_segments_is_not_contracted_as_stubs`, `a_line_crossed_where_its_two_passes_part_is_cut_once`).
The planar map's edge-source grid stays linear in memory on any input: a segment is filed once per cell it crosses, and the grid holds at most a budget of cell references (a few dozen per item plus a few rows' worth), past which the remaining items go to a short scanned list and are still found, so thousands of coincident segments cannot make the index quadratic (`crates/pathops/src/planar.rs` test `rect_index_holds_a_bounded_number_of_references`).
The Blob Brush Tool Options have Keep selected and Merge only with selection, both off by default: while Keep selected is off, the blob a stroke draws or merges into is not selected afterwards, and while Merge only with selection is on, a stroke merges only with selected blobs of its color that it touches (`path.blob` `keepSelected` and `mergeOnlySelection`).