mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 16:55:55 +00:00
Path Precision Tools: bounding shapes name a shape with no size and stop at the canvas edge
When every shape is left out because it would have no size, for example Add Bounding Rectangle on a straight horizontal line, the error is now "the shape would have no size" instead of "nothing to enclose", which stays for objects with no outline. A shape that would reach more than 4,000,000 pt from the origin, for example with a very large `offset`, is refused with "the shape would reach past the edge of the canvas" before anything is drawn. Both messages are in the 24 catalogs that translate messages. The params text of addon.pathtools.boundingCircle now names the sublayer rules that docs/mcp.md states: sublayers that clip their contents count by their clipping paths, other sublayers by their shown objects. Both commands' params text lists the errors. The menu items open no dialog and draw one shape around the whole selection with no offset. docs/ui-parity.md, docs/target-app-parity.md, docs/mcp.md and the ROADMAP line now say so, and name `each` and `offset` as command parameters only. New tests: the menu items in vectorcraft-ui-egui, the canvas-edge error in vectorcraft-engine, and shapes::convex_hull in vectorcraft-geom.
This commit is contained in:
+1
-1
@@ -149,7 +149,7 @@ Ranked; detail in [docs/roadmap.md](docs/roadmap.md) and [docs/gaps.md](docs/gap
|
||||
- 2026-11-01: Randomize Opacity joins the Arrange Tools add-on (Object › Plug-ins › Arrange Tools): each selected object gets its own opacity at random between a minimum and a maximum percent, with a seed that repeats the result, as one undo step (`addon.arrange.randomizeOpacity`, #4925).
|
||||
- 2026-11-01: Sort Objects joins the Arrange Tools add-on (Object › Plug-ins › Arrange Tools): the selected objects are sorted by width, height, area, position, opacity or stacking order (small to large, large to small or at random) and take another of those in that order, trading their values or stepping them evenly, as one undo step (`addon.arrange.sort`, #4917).
|
||||
- 2026-11-15: Tangent Circle joins the Path Precision Tools add-on (Object › Plug-ins › Path Precision Tools): the circles that touch two selected paths or compound paths at a set radius, or three of them (up to eight for three circles), touching each outline without crossing it; circles, rotated ellipses and other paths alike. A dialog that previews every circle or one picked by number, the current paint, one undo step (`addon.pathtools.tangentCircle`). A VectorCraft addition: headline numbers unchanged.
|
||||
- 2026-11-17: Add Bounding Rectangle and Add Bounding Circle join the Path Precision Tools add-on (Object › Plug-ins › Path Precision Tools): a live rectangle on the selection's geometric bounding box, or the smallest live circle that holds its outlines, around the whole selection or around each object, with an optional offset, the current paint and one undo step (`addon.pathtools.boundingRectangle`, `addon.pathtools.boundingCircle`, #6966). A VectorCraft addition: headline numbers unchanged.
|
||||
- 2026-11-17: Add Bounding Rectangle and Add Bounding Circle join the Path Precision Tools add-on (Object › Plug-ins › Path Precision Tools): a live rectangle on the selection's geometric bounding box, or the smallest live circle that holds its outlines, around the whole selection, with the current paint and one undo step; the commands also take `each` (one shape around each object) and `offset` (`addon.pathtools.boundingRectangle`, `addon.pathtools.boundingCircle`, #6966). A VectorCraft addition: headline numbers unchanged.
|
||||
- 2026-11-01: New Symbols from Layers joins the Document Tools add-on (Object › Plug-ins › Document Tools): one symbol of each top-level layer's art (the layers highlighted in the Layers panel when two or more are, else every layer), named after the layer, made as New Symbol makes one; Convert Layers to Symbols also puts an instance of each in place of its layer's art. Empty layers are skipped and reported; one undo step. A VectorCraft addition: headline numbers unchanged.
|
||||
- 2026-11-01: Document Tools, a built-in add-on (Object › Plug-ins › Document Tools), starts with Save a Timestamped Copy: a copy of the document named `<name>_YYYY-MM-DD_HH-MM` (UTC; `-2`, `-3`… when that name is taken) goes next to it, or into a folder picked for a document never saved, written as File › Save a Copy writes it, so the document keeps its path, title and modified state. Off on the web, which has no clock. A VectorCraft addition: headline numbers unchanged.
|
||||
- 2026-11-01: Divide into Dashes joins the Path Precision Tools add-on (Object › Plug-ins › Path Precision Tools): the selected paths, or only their direct-selected segments, are cut into separate open paths of a dash length measured along the curve, with an optional gap (left empty, or kept as pieces), each keeping the path's appearance; Fit to Corners and Ends stretches or squeezes the lengths so every run starts and ends on a dash. A dialog with Preview, one undo step, at most 100000 pieces. A VectorCraft addition: headline numbers unchanged.
|
||||
|
||||
@@ -7,8 +7,8 @@ use vectorcraft_doc::{Document, LiveShape, Node, NodeId, NodeKind, SymbolBoxes};
|
||||
use vectorcraft_geom::{Affine, CubicBez, FillRule, ParamCurve, PathSeg, Point, Rect, shapes};
|
||||
|
||||
use super::super::super::edit::selected_roots;
|
||||
use super::super::super::{CommandSpec, bad, check_switches, cmd, has_selection, number_or, switch_or};
|
||||
use crate::{Result, Session};
|
||||
use super::super::super::{CommandSpec, bad, cmd, has_selection, number_or, switch_or};
|
||||
use crate::{MAX_COORD, Result, Session};
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
@@ -29,7 +29,7 @@ pub(super) fn specs() -> Vec<CommandSpec> {
|
||||
"Add Bounding Rectangle",
|
||||
["Object", "Plug-ins", "Path Precision Tools"],
|
||||
None,
|
||||
"{each?: bool (default false: one rectangle around the whole selection; true: one around each selected object), offset?: pt (0 or more; default 0: added on every side)} draw a live rectangle on the geometric bounding box of the selected objects (strokes and effects left out), with the current paint, on top of the current layer or of the isolated group, as other new art; the rectangles are selected; one undo step. An object whose box has no width or no height (a straight horizontal or vertical line) gets no rectangle unless `offset` is more than 0, nor does an object with no bounds (an empty group); with `each` the result's `skipped` counts them, and it is an error when no rectangle is left → {id: the first rectangle, ids, skipped?}",
|
||||
"{each?: bool (default false: one rectangle around the whole selection; true: one around each selected object), offset?: pt (0 or more; default 0: added on every side)} draw a live rectangle on the geometric bounding box of the selected objects (strokes and effects left out), with the current paint, on top of the current layer or of the isolated group, as other new art; the rectangles are selected; one undo step. An object whose box has no width or no height (a straight horizontal or vertical line) gets no rectangle unless `offset` is more than 0, nor does an object with no bounds (an empty group); with `each` the result's `skipped` counts them. It is an error when no rectangle is left (\"the shape would have no size\" when a rectangle with no size was left out, else \"nothing to enclose\") and when a rectangle would reach more than 4,000,000 pt from the origin → {id: the first rectangle, ids, skipped?}",
|
||||
has_selection,
|
||||
bounding_rectangle
|
||||
),
|
||||
@@ -38,7 +38,7 @@ pub(super) fn specs() -> Vec<CommandSpec> {
|
||||
"Add Bounding Circle",
|
||||
["Object", "Plug-ins", "Path Precision Tools"],
|
||||
None,
|
||||
"{each?: bool (default false: one circle around the whole selection; true: one around each selected object), offset?: pt (0 or more; default 0: added to the radius)} draw the smallest live circle that holds the outlines of the selected objects (paths and compound paths by their curves, clip groups by their clipping paths, images by their corners, type and other objects by the corners of their bounding box; strokes and effects left out), with the radius 0.01 pt larger so it holds the curves themselves, with the current paint, on top of the current layer or of the isolated group, as other new art; the circles are selected; one undo step. An object at a single point gets no circle unless `offset` is more than 0, nor does an object with no outline (an empty group); with `each` the result's `skipped` counts them, and it is an error when no circle is left → {id: the first circle, ids, skipped?}",
|
||||
"{each?: bool (default false: one circle around the whole selection; true: one around each selected object), offset?: pt (0 or more; default 0: added to the radius)} draw the smallest live circle that holds the outlines of the selected objects (paths and compound paths by their curves, clip groups and sublayers that clip their contents by their clipping paths, other sublayers by their shown objects, images by their corners, type and other objects by the corners of their bounding box; strokes and effects left out), with the radius 0.01 pt larger so it holds the curves themselves, with the current paint, on top of the current layer or of the isolated group, as other new art; the circles are selected; one undo step. An object at a single point gets no circle unless `offset` is more than 0, nor does an object with no outline (an empty group); with `each` the result's `skipped` counts them. It is an error when no circle is left (\"the shape would have no size\" when a circle with no size was left out, else \"nothing to enclose\") and when a circle would reach more than 4,000,000 pt from the origin → {id: the first circle, ids, skipped?}",
|
||||
has_selection,
|
||||
bounding_circle
|
||||
),
|
||||
@@ -65,7 +65,6 @@ fn add(s: &mut Session, p: &Value, kind: Kind) -> Result<Value> {
|
||||
Kind::Rectangle => (RECTANGLE, "Add Bounding Rectangle"),
|
||||
Kind::Circle => (CIRCLE, "Add Bounding Circle"),
|
||||
};
|
||||
check_switches(p, &["each"], c)?;
|
||||
let each = switch_or(p, "each", false, c)?;
|
||||
let offset = number_or(p, "offset", 0.0, c)?;
|
||||
if !(offset.is_finite() && offset >= 0.0) {
|
||||
@@ -78,14 +77,20 @@ fn add(s: &mut Session, p: &Value, kind: Kind) -> Result<Value> {
|
||||
let mut made: Vec<LiveShape> = vec![];
|
||||
// Objects that get no shape: no outline, or a shape with no size.
|
||||
let mut skipped = 0;
|
||||
let mut no_size = false;
|
||||
for ids in &groups {
|
||||
match shape_around(d, &symbols, ids, kind, offset) {
|
||||
Some(live) => made.push(live),
|
||||
None => skipped += 1,
|
||||
Around::Shape(live) => made.push(live),
|
||||
Around::NoOutline => skipped += 1,
|
||||
Around::NoSize => {
|
||||
skipped += 1;
|
||||
no_size = true;
|
||||
}
|
||||
Around::PastCanvas => return Err(bad(c, "the shape would reach past the edge of the canvas")),
|
||||
}
|
||||
}
|
||||
if made.is_empty() {
|
||||
return Err(bad(c, "nothing to enclose"));
|
||||
return Err(bad(c, if no_size { "the shape would have no size" } else { "nothing to enclose" }));
|
||||
}
|
||||
let parent = s.doc()?.target_parent()?;
|
||||
let look = s.new_art_look(s.paint.fill.clone(), s.paint.stroke.clone(), s.paint.stroke_width);
|
||||
@@ -109,16 +114,35 @@ fn add(s: &mut Session, p: &Value, kind: Kind) -> Result<Value> {
|
||||
Ok(out)
|
||||
}
|
||||
|
||||
/// The live rectangle or circle around `ids`, grown by `offset`; `None` when they have no bounds
|
||||
/// or the shape would have no width or no height.
|
||||
fn shape_around(d: &Document, symbols: &SymbolBoxes, ids: &[NodeId], kind: Kind, offset: f64) -> Option<LiveShape> {
|
||||
/// What [`shape_around`] finds.
|
||||
enum Around {
|
||||
Shape(LiveShape),
|
||||
/// The objects have no bounds or no outline.
|
||||
NoOutline,
|
||||
/// The rectangle would have no width or no height, or the circle no radius.
|
||||
NoSize,
|
||||
/// The shape would reach past [`MAX_COORD`] from the origin.
|
||||
PastCanvas,
|
||||
}
|
||||
|
||||
/// Is every edge of `r` finite and within [`MAX_COORD`] of the origin?
|
||||
fn on_canvas(r: Rect) -> bool {
|
||||
[r.x0, r.y0, r.x1, r.y1].iter().all(|v| v.abs() <= MAX_COORD)
|
||||
}
|
||||
|
||||
/// The live rectangle or circle around `ids`, grown by `offset`.
|
||||
fn shape_around(d: &Document, symbols: &SymbolBoxes, ids: &[NodeId], kind: Kind, offset: f64) -> Around {
|
||||
match kind {
|
||||
Kind::Rectangle => {
|
||||
let r = d.bounds_of_with(ids, false, symbols)?.inflate(offset, offset);
|
||||
if !r.is_finite() || r.width() <= 0.0 || r.height() <= 0.0 {
|
||||
return None;
|
||||
let Some(r) = d.bounds_of_with(ids, false, symbols) else { return Around::NoOutline };
|
||||
let r = r.inflate(offset, offset);
|
||||
if !on_canvas(r) {
|
||||
return Around::PastCanvas;
|
||||
}
|
||||
Some(LiveShape::Rectangle {
|
||||
if r.width() <= 0.0 || r.height() <= 0.0 {
|
||||
return Around::NoSize;
|
||||
}
|
||||
Around::Shape(LiveShape::Rectangle {
|
||||
w: r.width(),
|
||||
h: r.height(),
|
||||
radii: [0.0; 4],
|
||||
@@ -133,16 +157,16 @@ fn shape_around(d: &Document, symbols: &SymbolBoxes, ids: &[NodeId], kind: Kind,
|
||||
outline_points(n, symbols, &mut gathered, 0);
|
||||
gathered.compact();
|
||||
}
|
||||
let (center, radius) = shapes::enclosing_circle(&gathered.points)?;
|
||||
let Some((center, radius)) = shapes::enclosing_circle(&gathered.points) else { return Around::NoOutline };
|
||||
if radius + offset <= 0.0 {
|
||||
return None;
|
||||
return Around::NoSize;
|
||||
}
|
||||
let r = radius + FLATNESS + offset;
|
||||
let b = Rect::new(center.x - r, center.y - r, center.x + r, center.y + r);
|
||||
if !b.is_finite() {
|
||||
return None;
|
||||
if !on_canvas(b) {
|
||||
return Around::PastCanvas;
|
||||
}
|
||||
Some(LiveShape::Ellipse { w: b.width(), h: b.height(), pie: (0.0, 360.0), xf: Affine::translate(b.origin().to_vec2()) })
|
||||
Around::Shape(LiveShape::Ellipse { w: b.width(), h: b.height(), pie: (0.0, 360.0), xf: Affine::translate(b.origin().to_vec2()) })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ fn shapes_of_no_size_are_skipped_unless_offset_gives_them_room() {
|
||||
let lone = id_of(&s.execute("path.create", &json!({"anchors": [{"x": 50, "y": 70}]})).unwrap());
|
||||
let box_ = rect(&mut s, 200.0, 200.0, 10.0, 10.0);
|
||||
s.execute("select.set", &json!({"ids": [line.0]})).unwrap();
|
||||
assert!(refused(&mut s, RECTANGLE, json!({})).contains("nothing to enclose"));
|
||||
assert!(refused(&mut s, RECTANGLE, json!({})).contains("the shape would have no size"));
|
||||
let r = id_of(&s.execute(RECTANGLE, &json!({"offset": 2})).unwrap());
|
||||
assert!(rect_near(bounds(&s, r), Rect::new(8.0, 48.0, 92.0, 52.0), 1e-9), "{:?}", bounds(&s, r));
|
||||
// The line has length, so its circle has size.
|
||||
@@ -159,7 +159,7 @@ fn shapes_of_no_size_are_skipped_unless_offset_gives_them_room() {
|
||||
assert!(rect_near(bounds(&s, c), Rect::new(9.99, 9.99, 90.01, 90.01), 1e-9), "{:?}", bounds(&s, c));
|
||||
|
||||
s.execute("select.set", &json!({"ids": [lone.0]})).unwrap();
|
||||
assert!(refused(&mut s, CIRCLE, json!({})).contains("nothing to enclose"));
|
||||
assert!(refused(&mut s, CIRCLE, json!({})).contains("the shape would have no size"));
|
||||
let c = id_of(&s.execute(CIRCLE, &json!({"offset": 3})).unwrap());
|
||||
assert!(rect_near(bounds(&s, c), Rect::new(46.99, 66.99, 53.01, 73.01), 1e-9), "{:?}", bounds(&s, c));
|
||||
|
||||
@@ -345,6 +345,23 @@ fn bad_params_and_an_empty_selection_draw_nothing() {
|
||||
}
|
||||
}
|
||||
|
||||
/// An offset that would take the shape more than 4,000,000 pt from the origin is an error that
|
||||
/// names the canvas edge, and nothing is drawn; the largest offset that stays inside is drawn.
|
||||
#[test]
|
||||
fn an_offset_past_the_canvas_edge_draws_nothing() {
|
||||
let mut s = session();
|
||||
let a = rect(&mut s, 0.0, 0.0, 10.0, 10.0);
|
||||
s.execute("select.set", &json!({"ids": [a.0]})).unwrap();
|
||||
for command in [RECTANGLE, CIRCLE] {
|
||||
for offset in [1e308, 4.0e6] {
|
||||
let e = refused(&mut s, command, json!({ "offset": offset }));
|
||||
assert!(e.contains("the shape would reach past the edge of the canvas"), "{command} {offset}: {e}");
|
||||
}
|
||||
}
|
||||
let r = id_of(&s.execute(RECTANGLE, &json!({"offset": 3.99e6})).unwrap());
|
||||
assert!(rect_near(bounds(&s, r), Rect::new(-3.99e6, -3.99e6, 3.99e6 + 10.0, 3.99e6 + 10.0), 1e-3));
|
||||
}
|
||||
|
||||
/// Many points keep only their hull's corners, and the circle around them is the one around all
|
||||
/// of the points.
|
||||
#[test]
|
||||
|
||||
@@ -905,6 +905,32 @@ mod tests {
|
||||
assert_eq!(enclosing_circle(&[Point::new(f64::INFINITY, 0.0)]), None);
|
||||
}
|
||||
|
||||
/// The hull keeps a square's corners counter-clockwise (y up) from the lowest-leftmost one,
|
||||
/// without points inside, points on its edges, repeated corners or points that are not finite;
|
||||
/// points on one line give their ends, and one or two points give themselves.
|
||||
#[test]
|
||||
fn the_convex_hull_keeps_only_the_corners() {
|
||||
let p = Point::new;
|
||||
let pts = vec![
|
||||
p(5.0, 5.0),
|
||||
p(10.0, 10.0),
|
||||
p(0.0, 10.0),
|
||||
p(5.0, 0.0),
|
||||
p(0.0, 0.0),
|
||||
p(10.0, 0.0),
|
||||
p(10.0, 10.0),
|
||||
p(0.0, 5.0),
|
||||
p(f64::NAN, 3.0),
|
||||
p(2.0, 7.0),
|
||||
];
|
||||
assert_eq!(convex_hull(pts), vec![p(0.0, 0.0), p(10.0, 0.0), p(10.0, 10.0), p(0.0, 10.0)]);
|
||||
let line: Vec<Point> = (0..9).rev().map(|i| p(f64::from(i), 2.0 * f64::from(i))).collect();
|
||||
assert_eq!(convex_hull(line), vec![p(0.0, 0.0), p(8.0, 16.0)]);
|
||||
assert_eq!(convex_hull(vec![p(3.0, 1.0), p(1.0, 2.0)]), vec![p(1.0, 2.0), p(3.0, 1.0)]);
|
||||
assert_eq!(convex_hull(vec![p(1.0, 1.0), p(1.0, 1.0)]), vec![p(1.0, 1.0)]);
|
||||
assert_eq!(convex_hull(vec![p(f64::INFINITY, 1.0)]), vec![]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rect_is_4_corners_clockwise() {
|
||||
let p = rectangle(Rect::new(0.0, 0.0, 100.0, 50.0));
|
||||
|
||||
@@ -329,3 +329,44 @@ fn common_tangents_previews_cancels_and_runs_on_ok() {
|
||||
assert_eq!((steps(&app), count(&app)), (n, nodes));
|
||||
assert!(app.ui.status.contains("inside the other"), "{}", app.ui.status);
|
||||
}
|
||||
|
||||
/// Object › Plug-ins › Path Precision Tools › Add Bounding Rectangle and Add Bounding Circle are
|
||||
/// dimmed with nothing selected, open no dialog, and draw one shape around the whole selection with
|
||||
/// no offset as one undo step.
|
||||
#[test]
|
||||
fn add_bounding_rectangle_and_circle_draw_around_the_whole_selection() {
|
||||
let mut app = app();
|
||||
let items = [("Add Bounding Rectangle", "addon.pathtools.boundingRectangle"), ("Add Bounding Circle", "addon.pathtools.boundingCircle")];
|
||||
for (label, command) in items {
|
||||
let entries = menus::menu_entries(&app);
|
||||
let item = entries.iter().find(|e| e.path == ["Object", "Plug-ins", "Path Precision Tools"] && e.label == label).expect(label);
|
||||
assert_eq!((item.command.as_deref(), &item.params), (Some(command), &json!({})));
|
||||
assert!(!item.enabled, "{label} with nothing selected");
|
||||
}
|
||||
let a = app.run("shape.rectangle", json!({"x": 10, "y": 20, "width": 30, "height": 40})).unwrap()["id"].as_u64().unwrap();
|
||||
let b = app.run("shape.rectangle", json!({"x": 100, "y": 20, "width": 20, "height": 40})).unwrap()["id"].as_u64().unwrap();
|
||||
// The selection's box.
|
||||
let [x0, y0, x1, y1] = [10.0, 20.0, 120.0, 60.0];
|
||||
for (label, _) in items {
|
||||
app.run("select.set", json!({"ids": [a, b]})).unwrap();
|
||||
let steps = app.session.doc().unwrap().history.undo.len();
|
||||
let entries = menus::menu_entries(&app);
|
||||
let item = entries.iter().find(|e| e.path == ["Object", "Plug-ins", "Path Precision Tools"] && e.label == label).unwrap();
|
||||
assert!(item.enabled, "{label}");
|
||||
let (cmd, p) = menus::click_target(&item.label, item.command.as_deref().unwrap(), &item.params);
|
||||
menus::invoke(&mut app, &cmd, p);
|
||||
assert!(app.ui.dialog.is_none(), "{label} opens no dialog");
|
||||
assert_eq!(app.session.doc().unwrap().history.undo.len(), steps + 1, "{label}: one undo step");
|
||||
let made = app.session.doc().unwrap().selection.objects.clone();
|
||||
assert_eq!(made.len(), 1, "{label}: one shape around the whole selection");
|
||||
let r = app.session.doc().unwrap().doc.bounds_of(&made, false).unwrap();
|
||||
assert!(r.x0 <= x0 + 1e-6 && r.y0 <= y0 + 1e-6 && r.x1 >= x1 - 1e-6 && r.y1 >= y1 - 1e-6, "{label}: {r:?}");
|
||||
if label == "Add Bounding Rectangle" {
|
||||
assert!((r.x0 - x0).abs() < 1e-6 && (r.y0 - y0).abs() < 1e-6 && (r.x1 - x1).abs() < 1e-6 && (r.y1 - y1).abs() < 1e-6, "no offset: {r:?}");
|
||||
} else {
|
||||
// The circle on the diagonal from (10, 20) to (120, 60), with the 0.01 pt allowance.
|
||||
let radius = (110.0f64.hypot(40.0)) / 2.0 + 0.01;
|
||||
assert!((r.width() / 2.0 - radius).abs() < 1e-6, "no offset: {r:?}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7784,6 +7784,8 @@ breakText Glyphs Glifs
|
||||
Add Bounding Circle Afegeix un cercle delimitador
|
||||
@msg nothing to enclose no hi ha res per envoltar
|
||||
@msg `offset` must be 0 or more `offset` ha de ser 0 o més
|
||||
@msg the shape would have no size la forma no tindria mida
|
||||
@msg the shape would reach past the edge of the canvas la forma sobrepassaria la vora del llenç
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools Eines del document
|
||||
Save a Timestamped Copy Desa una còpia amb data i hora
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -7769,6 +7769,8 @@ breakText Glyphs Glyfy
|
||||
Add Bounding Circle Přidat ohraničující kružnici
|
||||
@msg nothing to enclose není co ohraničit
|
||||
@msg `offset` must be 0 or more `offset` musí být 0 nebo více
|
||||
@msg the shape would have no size tvar by neměl žádnou velikost
|
||||
@msg the shape would reach past the edge of the canvas tvar by přesáhl okraj plátna
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools Nástroje dokumentu
|
||||
Save a Timestamped Copy Uložit kopii s datem a časem
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9828,6 +9828,8 @@ breakText Glyphs Glyffer
|
||||
Add Bounding Circle Tilføj afgrænsende cirkel
|
||||
@msg nothing to enclose intet at omslutte
|
||||
@msg `offset` must be 0 or more `offset` skal være 0 eller mere
|
||||
@msg the shape would have no size formen ville ikke have nogen størrelse
|
||||
@msg the shape would reach past the edge of the canvas formen ville gå ud over lærredets kant
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools Dokumentværktøjer
|
||||
Save a Timestamped Copy Gem en kopi med dato og klokkeslæt
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7364,6 +7364,8 @@ breakText Glyphs Glyphen
|
||||
Add Bounding Circle Begrenzungskreis hinzufügen
|
||||
@msg nothing to enclose nichts zu umschließen
|
||||
@msg `offset` must be 0 or more `offset` muss 0 oder größer sein
|
||||
@msg the shape would have no size die Form hätte keine Größe
|
||||
@msg the shape would reach past the edge of the canvas die Form würde über den Rand der Arbeitsfläche hinausreichen
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools Dokumentwerkzeuge
|
||||
Save a Timestamped Copy Kopie mit Zeitstempel speichern
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7757,6 +7757,8 @@ breakText Glyphs Γλύφοι
|
||||
Add Bounding Circle Προσθήκη κύκλου οριοθέτησης
|
||||
@msg nothing to enclose δεν υπάρχει τίποτα για περίκλειση
|
||||
@msg `offset` must be 0 or more το `offset` πρέπει να είναι 0 ή μεγαλύτερο
|
||||
@msg the shape would have no size το σχήμα δεν θα είχε μέγεθος
|
||||
@msg the shape would reach past the edge of the canvas το σχήμα θα ξεπερνούσε την άκρη του καμβά
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools Εργαλεία εγγράφου
|
||||
Save a Timestamped Copy Αποθήκευση αντιγράφου με ημερομηνία και ώρα
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7745,6 +7745,8 @@ breakText Glyphs Glifos
|
||||
Add Bounding Circle Agregar círculo delimitador
|
||||
@msg nothing to enclose no hay nada que rodear
|
||||
@msg `offset` must be 0 or more `offset` debe ser 0 o más
|
||||
@msg the shape would have no size la forma no tendría tamaño
|
||||
@msg the shape would reach past the edge of the canvas la forma sobrepasaría el borde del lienzo
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools Herramientas de documento
|
||||
Save a Timestamped Copy Guardar una copia con fecha y hora
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -7833,6 +7833,8 @@ breakText Glyphs Merkit
|
||||
Add Bounding Circle Lisää rajaava ympyrä
|
||||
@msg nothing to enclose ei ympäröitävää
|
||||
@msg `offset` must be 0 or more `offset` on oltava 0 tai enemmän
|
||||
@msg the shape would have no size muodolla ei olisi kokoa
|
||||
@msg the shape would reach past the edge of the canvas muoto ulottuisi kankaan reunan yli
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools Asiakirjatyökalut
|
||||
Save a Timestamped Copy Tallenna kopio aikaleimalla
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -7764,6 +7764,8 @@ breakText Glyphs Glyphes
|
||||
Add Bounding Circle Ajouter un cercle englobant
|
||||
@msg nothing to enclose rien à entourer
|
||||
@msg `offset` must be 0 or more `offset` doit être supérieur ou égal à 0
|
||||
@msg the shape would have no size la forme n’aurait aucune taille
|
||||
@msg the shape would reach past the edge of the canvas la forme dépasserait le bord de la zone de travail
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools Outils de document
|
||||
Save a Timestamped Copy Enregistrer une copie horodatée
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -8406,6 +8406,8 @@ liquify-list-end {0}, {1} {0} और {1}
|
||||
Add Bounding Circle बाउंडिंग वृत्त जोड़ें
|
||||
@msg nothing to enclose घेरने के लिए कुछ नहीं
|
||||
@msg `offset` must be 0 or more `offset` 0 या उससे अधिक होना चाहिए
|
||||
@msg the shape would have no size आकृति का कोई आकार नहीं होगा
|
||||
@msg the shape would reach past the edge of the canvas आकृति कैनवास के किनारे से आगे निकल जाएगी
|
||||
@msg select plain rectangles, ellipses or regular polygons to convert बदलने के लिए सादे आयत, अंडाकार या नियमित बहुभुजों सिलेक्ट करें
|
||||
@msg Select point type पॉइंट टाइप सिलेक्ट करें
|
||||
@msg select two or three paths or compound paths दो या तीन पाथ या यौगिक पाथ सिलेक्ट करें
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7754,6 +7754,8 @@ breakText Glyphs Glifák
|
||||
Add Bounding Circle Befoglaló kör hozzáadása
|
||||
@msg nothing to enclose nincs mit körülvenni
|
||||
@msg `offset` must be 0 or more `offset`: 0 vagy nagyobb érték kell
|
||||
@msg the shape would have no size az alakzatnak nem lenne mérete
|
||||
@msg the shape would reach past the edge of the canvas az alakzat túlnyúlna a vászon szélén
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools Dokumentumeszközök
|
||||
Save a Timestamped Copy Másolat mentése időbélyeggel
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7402,6 +7402,8 @@ breakText Glyphs Glifi
|
||||
Add Bounding Circle Aggiungi cerchio di delimitazione
|
||||
@msg nothing to enclose niente da racchiudere
|
||||
@msg `offset` must be 0 or more `offset` deve essere 0 o maggiore
|
||||
@msg the shape would have no size la forma non avrebbe dimensioni
|
||||
@msg the shape would reach past the edge of the canvas la forma supererebbe il bordo dell'area di disegno
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools Strumenti documento
|
||||
Save a Timestamped Copy Salva una copia con data e ora
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9285,6 +9285,8 @@ breakText Glyphs 字形
|
||||
Add Bounding Circle 外接円を追加
|
||||
@msg nothing to enclose 囲むものがありません
|
||||
@msg `offset` must be 0 or more `offset` には 0 以上を指定してください
|
||||
@msg the shape would have no size 図形にサイズがありません
|
||||
@msg the shape would reach past the edge of the canvas 図形がカンバスの端を超えます
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools ドキュメントツール
|
||||
Save a Timestamped Copy 日時付きのコピーを保存
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9980,6 +9980,8 @@ breakText Glyphs გლიფები
|
||||
Add Bounding Circle შემომსაზღვრელი წრეწირის დამატება
|
||||
@msg nothing to enclose შემოსაზღვრელი არაფერია
|
||||
@msg `offset` must be 0 or more `offset` უნდა იყოს 0 ან მეტი
|
||||
@msg the shape would have no size ფიგურას ზომა არ ექნებოდა
|
||||
@msg the shape would reach past the edge of the canvas ფიგურა ტილოს კიდეს გასცდებოდა
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools დოკუმენტის ხელსაწყოები
|
||||
Save a Timestamped Copy ასლის შენახვა თარიღითა და დროით
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7366,6 +7366,8 @@ breakText Glyphs 글리프
|
||||
Add Bounding Circle 경계 원 추가
|
||||
@msg nothing to enclose 둘러쌀 항목이 없습니다
|
||||
@msg `offset` must be 0 or more `offset`은(는) 0 이상이어야 합니다
|
||||
@msg the shape would have no size 도형의 크기가 없습니다
|
||||
@msg the shape would reach past the edge of the canvas 도형이 캔버스 가장자리를 벗어납니다
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools 문서 도구
|
||||
Save a Timestamped Copy 날짜와 시간이 붙은 사본 저장
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9660,6 +9660,8 @@ breakText Glyphs Glyphs
|
||||
Add Bounding Circle Begrenzingscirkel toevoegen
|
||||
@msg nothing to enclose niets om te omsluiten
|
||||
@msg `offset` must be 0 or more `offset` moet 0 of meer zijn
|
||||
@msg the shape would have no size de vorm zou geen grootte hebben
|
||||
@msg the shape would reach past the edge of the canvas de vorm zou voorbij de rand van het canvas reiken
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools Documentgereedschappen
|
||||
Save a Timestamped Copy Een kopie met tijdstempel opslaan
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7632,6 +7632,8 @@ breakText Glyphs Glify
|
||||
Add Bounding Circle Dodaj okrąg otaczający
|
||||
@msg nothing to enclose nie ma czego otoczyć
|
||||
@msg `offset` must be 0 or more `offset` musi wynosić 0 lub więcej
|
||||
@msg the shape would have no size kształt nie miałby rozmiaru
|
||||
@msg the shape would reach past the edge of the canvas kształt wykroczyłby poza krawędź płótna
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools Narzędzia dokumentu
|
||||
Save a Timestamped Copy Zapisz kopię z datą i godziną
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7796,6 +7796,8 @@ breakText Glyphs Glifos
|
||||
Add Bounding Circle Adicionar Círculo Delimitador
|
||||
@msg nothing to enclose nada para envolver
|
||||
@msg `offset` must be 0 or more `offset` deve ser 0 ou mais
|
||||
@msg the shape would have no size a forma não teria tamanho
|
||||
@msg the shape would reach past the edge of the canvas a forma ultrapassaria a borda da tela
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools Ferramentas de Documento
|
||||
Save a Timestamped Copy Salvar uma Cópia com Data e Hora
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7759,6 +7759,8 @@ breakText Glyphs Глифы
|
||||
Add Bounding Circle Добавить описанную окружность
|
||||
@msg nothing to enclose нечего окружать
|
||||
@msg `offset` must be 0 or more `offset` должно быть 0 или больше
|
||||
@msg the shape would have no size у фигуры не было бы размера
|
||||
@msg the shape would reach past the edge of the canvas фигура вышла бы за край холста
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools Инструменты документа
|
||||
Save a Timestamped Copy Сохранить копию с датой и временем
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7803,6 +7803,8 @@ breakText Glyphs Glyfer
|
||||
Add Bounding Circle Lägg till omslutande cirkel
|
||||
@msg nothing to enclose inget att omsluta
|
||||
@msg `offset` must be 0 or more `offset` måste vara 0 eller mer
|
||||
@msg the shape would have no size formen skulle inte ha någon storlek
|
||||
@msg the shape would reach past the edge of the canvas formen skulle sträcka sig utanför arbetsytans kant
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools Dokumentverktyg
|
||||
Save a Timestamped Copy Spara en kopia med tidsstämpel
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9658,6 +9658,8 @@ breakText Glyphs Glifler
|
||||
Add Bounding Circle Çevreleyen Daire Ekle
|
||||
@msg nothing to enclose çevrelenecek hiçbir şey yok
|
||||
@msg `offset` must be 0 or more `offset` 0 veya daha büyük olmalıdır
|
||||
@msg the shape would have no size şeklin boyutu olmayacaktır
|
||||
@msg the shape would reach past the edge of the canvas şekil tuvalin kenarını aşacaktır
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools Belge Araçları
|
||||
Save a Timestamped Copy Zaman Damgalı Bir Kopya Kaydet
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7384,6 +7384,8 @@ breakText Glyphs Гліфи
|
||||
Add Bounding Circle Додати описане коло
|
||||
@msg nothing to enclose нічого обводити
|
||||
@msg `offset` must be 0 or more `offset` має бути 0 або більше
|
||||
@msg the shape would have no size фігура не мала б розміру
|
||||
@msg the shape would reach past the edge of the canvas фігура вийшла б за край полотна
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools Інструменти документа
|
||||
Save a Timestamped Copy Зберегти копію з датою і часом
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7420,6 +7420,8 @@ breakText Glyphs Glyph
|
||||
Add Bounding Circle Thêm hình tròn bao quanh
|
||||
@msg nothing to enclose không có gì để bao quanh
|
||||
@msg `offset` must be 0 or more `offset` phải từ 0 trở lên
|
||||
@msg the shape would have no size hình sẽ không có kích thước
|
||||
@msg the shape would reach past the edge of the canvas hình sẽ vượt quá mép vùng vẽ
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools Công cụ tài liệu
|
||||
Save a Timestamped Copy Lưu bản sao có ngày giờ
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 206 and column 5.
|
@@ -7614,6 +7614,8 @@ breakText Glyphs 字形
|
||||
Add Bounding Circle 添加外接圆
|
||||
@msg nothing to enclose 没有可包围的内容
|
||||
@msg `offset` must be 0 or more `offset` 必须大于或等于 0
|
||||
@msg the shape would have no size 形状将没有大小
|
||||
@msg the shape would reach past the edge of the canvas 形状将超出画布边缘
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools 文档工具
|
||||
Save a Timestamped Copy 保存带时间戳的副本
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7425,6 +7425,8 @@ breakText Glyphs 字符
|
||||
Add Bounding Circle 新增外接圓形
|
||||
@msg nothing to enclose 沒有可包圍的內容
|
||||
@msg `offset` must be 0 or more `offset` 必須大於或等於 0
|
||||
@msg the shape would have no size 形狀將沒有大小
|
||||
@msg the shape would reach past the edge of the canvas 形狀會超出畫布邊緣
|
||||
# Document Tools add-on (Object › Plug-ins › Document Tools): Save a Timestamped Copy.
|
||||
Document Tools 文件工具
|
||||
Save a Timestamped Copy 儲存附時間戳記的拷貝
|
||||
|
||||
|
Can't render this file because it is too large.
|
+6
-3
@@ -13109,15 +13109,18 @@ Commands:
|
||||
most; a piece that still bends more counts by its control points, which can make the circle slightly larger than the
|
||||
smallest one. `offset` (0 or more, default 0) adds space: a rectangle grows by `offset` on each side and a circle's
|
||||
radius grows by `offset`. `each: true` draws one shape around each selected object instead of one around the whole
|
||||
selection.
|
||||
selection. The two menu items open no dialog: they draw one shape around the whole selection with no offset, and
|
||||
`each` and `offset` are set only through the commands.
|
||||
|
||||
Each shape gets the current paint and goes on top of the current layer, or of the isolated group, as other new art
|
||||
does; inside an isolated compound path it goes beside the compound path and does not join it. The new shapes are
|
||||
selected, and one undo removes them all. An object with no outline (an empty group) gets no shape, and neither does
|
||||
a shape with no size: the rectangle around a straight horizontal or vertical line, or the circle around a single
|
||||
point, unless `offset` is more than 0. With `each`, the result's `skipped` counts those objects. It is an error, with
|
||||
the document unchanged, when no shape is left to draw and when `offset` is below 0. → `{id: the first shape, ids,
|
||||
skipped?}`
|
||||
the document unchanged, when no shape is left to draw ("the shape would have no size" when a shape with no size was
|
||||
left out, else "nothing to enclose"), when a shape would reach more than 4,000,000 pt from the origin ("the shape
|
||||
would reach past the edge of the canvas", for example with a very large `offset`), and when `offset` is below 0.
|
||||
→ `{id: the first shape, ids, skipped?}`
|
||||
|
||||
```json
|
||||
{"name":"run_command","arguments":{"command":"addon.pathtools.boundingCircle","params":{"offset":2}}}
|
||||
|
||||
@@ -2696,7 +2696,7 @@ A VectorCraft addition, so no area score moves. Object › Plug-ins › Path Pre
|
||||
|
||||
## Path Precision Tools add-on: Add Bounding Rectangle and Add Bounding Circle (2026-11-17)
|
||||
|
||||
A VectorCraft addition, so no area score moves. Object › Plug-ins › Path Precision Tools › Add Bounding Rectangle (`addon.pathtools.boundingRectangle`) draws a live rectangle on the selection's geometric bounding box, and Add Bounding Circle (`addon.pathtools.boundingCircle`) draws the [smallest enclosing circle](https://en.wikipedia.org/wiki/Smallest-circle_problem) of the selected outlines, with curves flattened to within 0.01 pt and the radius 0.01 pt larger, so the circle holds the curves. Both take `each` (one shape per object) and `offset`, use the current paint, go on top of the current layer or the isolated group, and are one undo step; shapes with no size are skipped (#6966). Tests: `shapes::tests` in `vectorcraft-geom` (`enclosing`) and `cmd::addons::pathtools::bounding::tests` in `vectorcraft-engine`. Commands: `docs/mcp.md` › Path Precision Tools add-on.
|
||||
A VectorCraft addition, so no area score moves. Object › Plug-ins › Path Precision Tools › Add Bounding Rectangle (`addon.pathtools.boundingRectangle`) draws a live rectangle on the selection's geometric bounding box, and Add Bounding Circle (`addon.pathtools.boundingCircle`) draws the [smallest enclosing circle](https://en.wikipedia.org/wiki/Smallest-circle_problem) of the selected outlines, with curves flattened to within 0.01 pt and the radius 0.01 pt larger, so the circle holds the curves. Both use the current paint, go on top of the current layer or the isolated group, and are one undo step; shapes with no size are skipped (#6966). The menu items draw one shape around the whole selection with no offset; the commands also take `each` (one shape per object) and `offset`. Tests: `shapes::tests` in `vectorcraft-geom` (`enclosing`, `convex_hull`), `cmd::addons::pathtools::bounding::tests` in `vectorcraft-engine` and `addons::pathtools::tests` in `vectorcraft-ui-egui` (`add_bounding_rectangle_and_circle`). Commands: `docs/mcp.md` › Path Precision Tools add-on.
|
||||
|
||||
## Path Precision Tools add-on: Expand Dashes into Paths (2026-11-01)
|
||||
|
||||
|
||||
+1
-1
@@ -501,7 +501,7 @@ next unit in the order a right-click on a ruler lists them, from Feet back to Po
|
||||
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools › Trim at Crossings Tool (also in the Scissors tool's group in both shipped toolbars, after the Knife, and listed there in the All Tools drawer; a toolbar edited before keeps its saved layout until Reset Toolbar; no shortcut until one is set in Edit › Keyboard Shortcuts › Tools; the Knife's cursor, drawn as a knife with the blade's point on the hotspot) removes stretches of paths between the places where they are crossed, on any editable path, selected or not: a click removes the stretch under the pointer, a drag removes every stretch its rectangle touches, and an Alt-drag removes every stretch its freehand line crosses; one undo step each; Escape during a drag removes nothing; hovering shows in red the stretch a click would remove, and a drag that reaches few paths shows what its release would remove | done | `addon.pathtools.trim` (in `crates/engine/src/cmd/addons/pathtools/trim.rs`), `crates/tools/src/addons/trim.rs` and their tests; not a feature of the reference app, so it is not scored |
|
||||
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools › Expand Dashes into Paths turns each selected path's dashed stroke into separate open paths, one per dash, laid out as the stroke draws them (pattern, offset, Align Dashes to Corners and Path Ends), each keeping the stroke with the dashes off; one undo step | done | #4922; `addon.pathtools.expandDashes` (in `crates/engine/src/cmd/addons/pathtools.rs`, using the renderer's dash layout) and its tests; not a feature of the reference app, so it is not scored |
|
||||
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools › Tangent Circle… draws the circles that touch two selected paths or compound paths at a radius, or three of them, each touching the outlines without crossing them; Radius (two shapes), a Circle menu (All or one by number) and Preview; one undo step | done | `addon.pathtools.tangentCircle` (in `crates/engine/src/cmd/addons/pathtools/tangent_circle.rs`, geometry in `crates/pathops/src/addons/pathtools/tangent_circle.rs`) and its tests; a VectorCraft addition, so it is not scored |
|
||||
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools › Add Bounding Rectangle and Add Bounding Circle draw a live rectangle on the selection's geometric bounding box, or the smallest live circle that holds its outlines, around the whole selection or each object, with an optional offset; one undo step | done | `addon.pathtools.boundingRectangle` and `addon.pathtools.boundingCircle` (in `crates/engine/src/cmd/addons/pathtools/bounding.rs`, the circle in `crates/geom/src/shapes.rs`, `enclosing_circle`) and their tests; a VectorCraft addition, so it is not scored |
|
||||
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools › Add Bounding Rectangle and Add Bounding Circle draw a live rectangle on the selection's geometric bounding box, or the smallest live circle that holds its outlines, around the whole selection with no offset, without a dialog; one undo step | done | `addon.pathtools.boundingRectangle` and `addon.pathtools.boundingCircle` (in `crates/engine/src/cmd/addons/pathtools/bounding.rs`, the circle in `crates/geom/src/shapes.rs`, `enclosing_circle`; `each` and `offset` are command parameters only) and their tests, with the menu items' test `add_bounding_rectangle_and_circle_draw_around_the_whole_selection` in `crates/ui-egui/src/addons/pathtools/tests.rs`; a VectorCraft addition, so it is not scored |
|
||||
| Path Precision Tools add-on (VectorCraft addition): Effect › Path Effects lists its live effects (Dashes to Geometry, Add Anchors, Extend Path, Close Path, Smooth Anchors, Retract Handles, Reverse Direction, Simplify Anchors, Split at Anchors), each with the effect dialog's live Preview except Reverse Direction, which has no options, and listed in the Appearance panel like any effect | done | `addon.path.*`, `crates/effects/src/addons/path.rs`, `crates/ui-egui/src/addons/pathtools.rs` and their tests; not a feature of the reference app, so it is not scored |
|
||||
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools selects its four tools (Anchor Eraser Brush, Extend Path, Measure & Inspect, Parametric Shape), which the All Tools drawer lists under their own heading but neither toolbar shows as shipped, opens the Anchor Inspector panel (the selected anchor's X/Y and handle lengths and angles as fields; Make Smooth, Make Corner, Equalize Handles, Remove Points Keep Shape, Add Points, the three ways to close) and the Parametric Shape panel (kind, count, W/H, rotation, the kind's own values and corner radius of the selected parametric shape, or of the tool's next one), and runs Add Points at / Split at Crossings and Convert to Parametric Shape; the Parametric Shape Tool draws ten re-editable kinds from the centre (↑/↓ and ←/→ change their numbers while dragging) and edits a selected one with handles; a double-click on the brush or Extend Path tool opens its options | done | `addon.pathtools.*`, `crates/tools/src/addons/`, `crates/ui-egui/src/addons/pathtools.rs`, `crates/ui-egui/src/addons/pathtools/shape.rs` and their tests; not a feature of the reference app, so it is not scored |
|
||||
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools selects its six tools (Anchor Eraser Brush, Extend Path, Measure & Inspect, Parametric Shape, Corner Tool, Slide Anchor Along Path), which the All Tools drawer lists under their own heading but neither toolbar shows as shipped, opens the Anchor Inspector panel (the selected anchor's X/Y and handle lengths and angles as fields; Make Smooth, Make Corner, Equalize Handles, Remove Points Keep Shape, Add Points, the three ways to close) and the Parametric Shape panel (kind, count, W/H, rotation, the kind's own values and corner radius of the selected parametric shape, or of the tool's next one), and runs Add Points at / Split at Crossings and Convert to Parametric Shape; the Parametric Shape Tool draws ten re-editable kinds from the centre (↑/↓ and ←/→ change their numbers while dragging) and edits a selected one with handles; the Corner Tool cuts editable corners on any path (hover shows the anchor, a click uses its radius and kind, a drag sizes the corner, Shift whole values; a corner's marker selects it and loads its values, drags to resize, to 0 or double-clicked removes it; never past what fits; Alt-marquee cuts every anchor inside) with a Corners section in the Anchor Inspector (radius, kind, selected count, Apply to Selected Anchors); Slide Anchor Along Path drags an anchor along its curve with the segments beside it refitted, Shift snapping where the tangent is a multiple of 45°; a double-click on the brush or Extend Path tool opens its options | done | `addon.pathtools.*`, `crates/tools/src/addons/`, `crates/ui-egui/src/addons/pathtools.rs`, `crates/ui-egui/src/addons/pathtools/` and their tests; not a feature of the reference app, so it is not scored |
|
||||
|
||||
Reference in New Issue
Block a user