mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 17:58:10 +00:00
Pencil: path.freehand refuses connect without extend
path.freehand ignored a connect given without extend and drew a new path. It now refuses it with "connect needs extend". A connect given with extend is checked (its id, a path other than the one extended with an open end, and an end of "start" or "end") before a stroke of one point returns, so a bad connect is refused there too, and brush.freehand no longer changes the path's brush or the selection before refusing it. A null connect is still a key left out. Docs: params text, docs/mcp.md, docs/target-app-parity.md. i18n: the new message in the catalogs that carry the other connect messages.
This commit is contained in:
@@ -11,7 +11,7 @@ pub fn specs() -> Vec<CommandSpec> {
|
||||
"Pencil",
|
||||
[],
|
||||
None,
|
||||
"{points: [[x,y]…] or [[x,y,pressure]…] or [[x,y,pressure,tiltX,tiltY,rotation]…] (pen pressure 0..1: the stroke keeps it, for Calligraphic and Scatter brushes with Pressure variation; a point without one presses fully. Pen tilt in degrees, each −90..90, x positive leaning right and y leaning down the page, and barrel rotation in degrees clockwise, 0..360: the stroke keeps how far the pen leaned, which way and how far its barrel turned, for brushes with Tilt, Bearing and Rotation variation; null for what a point lacks. A pressure, tilt or rotation outside its range, or a point array of more than six numbers, is an error), fidelity?: pt (1.5; from 0.000015625 (0.01 / 640) to 100 / 0.0313 (about 3194.89), the Pencil's and the Paintbrush's 0.01 to 100 px Fidelity at the highest and the lowest zoom; a value outside that range is an error. The tools send their Fidelity in pixels divided by the zoom, kept within the range), fit?: bool (true; false: the points are joined by straight segments, as the Pencil previews a stroke with Live curve fitting off), closed?, style?: \"pencil\" (default) | \"brush\", fill?: bool, keepSelected?: bool (true: the drawn or continued path is selected; false: a new path leaves nothing selected, and a continued or redrawn one is deselected while the rest of the selection stays), extend?: {id, end?: \"end\" (default) | \"start\"}, connect?: {id, end: \"start\"|\"end\"}, redraw?: {id, within?: pt (12)}} fit a freehand stroke → {id}. extend continues the path from that end, and closes it when `closed` is true (left out, when the stroke ends within four Fidelities of the path's other end, 6 to 400 pt); with connect, the stroke ends on that end of another path's last open subpath and joins it on, in one path with the extended path's appearance (the other path is removed when nothing of it is left); redraw (Edit Selected Paths) replaces the section of the path between where the stroke starts and ends, each within `within` of one subpath (the shorter way round a closed one), and draws a new path when the stroke doesn't end on it. Any other style, extend end or connect end is an error, and nothing changes",
|
||||
"{points: [[x,y]…] or [[x,y,pressure]…] or [[x,y,pressure,tiltX,tiltY,rotation]…] (pen pressure 0..1: the stroke keeps it, for Calligraphic and Scatter brushes with Pressure variation; a point without one presses fully. Pen tilt in degrees, each −90..90, x positive leaning right and y leaning down the page, and barrel rotation in degrees clockwise, 0..360: the stroke keeps how far the pen leaned, which way and how far its barrel turned, for brushes with Tilt, Bearing and Rotation variation; null for what a point lacks. A pressure, tilt or rotation outside its range, or a point array of more than six numbers, is an error), fidelity?: pt (1.5; from 0.000015625 (0.01 / 640) to 100 / 0.0313 (about 3194.89), the Pencil's and the Paintbrush's 0.01 to 100 px Fidelity at the highest and the lowest zoom; a value outside that range is an error. The tools send their Fidelity in pixels divided by the zoom, kept within the range), fit?: bool (true; false: the points are joined by straight segments, as the Pencil previews a stroke with Live curve fitting off), closed?, style?: \"pencil\" (default) | \"brush\", fill?: bool, keepSelected?: bool (true: the drawn or continued path is selected; false: a new path leaves nothing selected, and a continued or redrawn one is deselected while the rest of the selection stays), extend?: {id, end?: \"end\" (default) | \"start\"}, connect?: {id, end: \"start\"|\"end\"} (only with extend), redraw?: {id, within?: pt (12)}} fit a freehand stroke → {id}. extend continues the path from that end, and closes it when `closed` is true (left out, when the stroke ends within four Fidelities of the path's other end, 6 to 400 pt); with connect, the stroke ends on that end of another path's last open subpath and joins it on, in one path with the extended path's appearance (the other path is removed when nothing of it is left); redraw (Edit Selected Paths) replaces the section of the path between where the stroke starts and ends, each within `within` of one subpath (the shorter way round a closed one), and draws a new path when the stroke doesn't end on it. Any other style, extend end or connect end, connect without extend, and a connect that names no other path with an open end are errors, a stroke of one point included, and nothing changes",
|
||||
has_doc,
|
||||
freehand
|
||||
),
|
||||
|
||||
@@ -209,7 +209,11 @@ pub(crate) fn freehand_brushed(s: &mut Session, p: &Value, brush_name: Option<&s
|
||||
let label = if brush || brush_name.is_some() { "Paintbrush" } else { "Pencil" };
|
||||
let keep_selected = switch_or(p, "keepSelected", true, C)?;
|
||||
let filled = switch_or(p, "fill", false, C)?;
|
||||
if let Some(ext) = p.get("extend").filter(|v| !v.is_null()) {
|
||||
let extend = p.get("extend").filter(|v| !v.is_null());
|
||||
if extend.is_none() && p.get("connect").is_some_and(|v| !v.is_null()) {
|
||||
return Err(bad(C, "connect needs extend"));
|
||||
}
|
||||
if let Some(ext) = extend {
|
||||
let id = object_param(ext, "id", C)?.ok_or_else(|| bad(C, "extend needs id"))?;
|
||||
let at_start = match ext.get("end").filter(|v| !v.is_null()).map(Value::as_str) {
|
||||
None | Some(Some("end")) => false,
|
||||
@@ -234,26 +238,9 @@ pub(crate) fn freehand_brushed(s: &mut Session, p: &Value, brush_name: Option<&s
|
||||
};
|
||||
let Some(p0) = pts.first_mut() else { return Err(bad(C, "needs points")) };
|
||||
*p0 = end;
|
||||
if pts.len() < 2 {
|
||||
// No stroke to add: the brush alone changes, when it is not the path's already, and the
|
||||
// path is selected or deselected as a longer continuation leaves it.
|
||||
if let Some(name) = brush_name
|
||||
&& s.doc()?.doc.node(target).and_then(|n| n.appearance.stroke()).is_some_and(|st| st.brush.as_deref() != Some(name))
|
||||
{
|
||||
s.edit("Paintbrush", |d, sel| {
|
||||
set_brush(d, target, name);
|
||||
if keep_selected {
|
||||
sel.set([id]);
|
||||
} else {
|
||||
sel.remove(id);
|
||||
}
|
||||
Ok(())
|
||||
})?;
|
||||
}
|
||||
return Ok(json!({ "id": id.0 }));
|
||||
}
|
||||
// A stroke that ends on an open end of another path connects the two: (that path, its last
|
||||
// open subpath, that subpath starting at the end the stroke ends on, it ends at its end).
|
||||
// It is checked before a stroke of one point returns, so a bad `connect` is refused there too.
|
||||
let connect = match p.get("connect").filter(|v| !v.is_null()) {
|
||||
Some(cn) => {
|
||||
let other = object_param(cn, "id", C)?.ok_or_else(|| bad(C, "connect needs id"))?;
|
||||
@@ -276,6 +263,24 @@ pub(crate) fn freehand_brushed(s: &mut Session, p: &Value, brush_name: Option<&s
|
||||
}
|
||||
None => None,
|
||||
};
|
||||
if pts.len() < 2 {
|
||||
// No stroke to add: the brush alone changes, when it is not the path's already, and the
|
||||
// path is selected or deselected as a longer continuation leaves it.
|
||||
if let Some(name) = brush_name
|
||||
&& s.doc()?.doc.node(target).and_then(|n| n.appearance.stroke()).is_some_and(|st| st.brush.as_deref() != Some(name))
|
||||
{
|
||||
s.edit("Paintbrush", |d, sel| {
|
||||
set_brush(d, target, name);
|
||||
if keep_selected {
|
||||
sel.set([id]);
|
||||
} else {
|
||||
sel.remove(id);
|
||||
}
|
||||
Ok(())
|
||||
})?;
|
||||
}
|
||||
return Ok(json!({ "id": id.0 }));
|
||||
}
|
||||
// `closed`, when given, says whether the stroke closes the path: the Pencil and the
|
||||
// Paintbrush send it, by their Close Paths When Ends Are Within and Alt at the release.
|
||||
// Left out, an extending stroke that ends within four Fidelities of the path's other end
|
||||
|
||||
@@ -1071,6 +1071,29 @@ fn brush_freehand_continued_by_one_point_follows_keep_selected() {
|
||||
assert_eq!(s.doc().unwrap().history.undo.len(), undo, "the same brush again: no undo step");
|
||||
}
|
||||
|
||||
/// A `brush.freehand` call that continues a path by one point with a bad `connect` is refused
|
||||
/// before the path's brush changes: the brush, the selection and the undo history stay as they were.
|
||||
#[test]
|
||||
fn brush_freehand_continued_by_one_point_refuses_a_bad_connect() {
|
||||
let mut s = session();
|
||||
let r = s.execute("brush.freehand", &json!({"points": [[10, 10], [60, 40], [120, 10]], "style": "brush", "brush": "Charcoal"})).unwrap();
|
||||
let p = NodeId(r["id"].as_u64().unwrap());
|
||||
let a = rect(&mut s, 200.0, 200.0, 10.0, 10.0);
|
||||
select(&mut s, &[a]);
|
||||
let undo = undo_steps(&s);
|
||||
let one = json!({"points": [[120, 10]], "extend": {"id": p.0, "end": "end"}, "brush": "Dots"});
|
||||
for connect in
|
||||
[json!({"id": p.0, "end": "end"}), json!({"id": a.0, "end": "middle"}), json!({"end": "end"}), json!({"id": 999_999, "end": "end"})]
|
||||
{
|
||||
let mut params = one.clone();
|
||||
params["connect"] = connect;
|
||||
assert!(s.execute("brush.freehand", ¶ms).is_err(), "{params}");
|
||||
assert_eq!(brush_of(&s, p).as_deref(), Some("Charcoal"), "{params}: the brush stays");
|
||||
assert_eq!(selected(&s), [a], "{params}: the selection stays");
|
||||
assert_eq!(undo_steps(&s), undo, "{params}: no undo step");
|
||||
}
|
||||
}
|
||||
|
||||
/// `brush.freehand` refuses a brush for a path with no stroke (a continued path, a redrawn one
|
||||
/// and a new filled pencil path while the stroke is None) instead of reporting it painted: the
|
||||
/// document, the selection and the undo history stay as they were. Without a brush the path is
|
||||
|
||||
@@ -414,6 +414,61 @@ fn pencil_refuses_an_unknown_style_or_extend_end() {
|
||||
assert!(ends.contains(&Point::new(0.0, 100.0)) && ends.contains(&Point::new(200.0, 100.0)), "continued from its start: {ends:?}");
|
||||
}
|
||||
|
||||
/// `path.freehand` refuses a `connect` without `extend`, and checks a `connect` given with `extend`
|
||||
/// before a stroke of one point returns, so a bad one is refused there too; a refused call changes
|
||||
/// neither the document nor the undo history. A `connect` of null is a key left out.
|
||||
#[test]
|
||||
fn pencil_refuses_connect_without_extend_and_a_bad_connect_for_one_point() {
|
||||
let mut s = session();
|
||||
let a = line(&mut s, 100.0, 100.0, 200.0, 100.0);
|
||||
let b = line(&mut s, 300.0, 200.0, 400.0, 200.0);
|
||||
let closed = NodeId(s.execute("path.create", &json!({"d": "M0 500 L50 500 L50 550 Z"})).unwrap()["id"].as_u64().unwrap());
|
||||
let inner = NodeId(s.execute("path.create", &json!({"d": "M600 500 L650 500"})).unwrap()["id"].as_u64().unwrap());
|
||||
s.execute("select.set", &json!({"ids": [inner.0]})).unwrap();
|
||||
let group = NodeId(s.execute("object.group", &json!({})).unwrap()["id"].as_u64().unwrap());
|
||||
let stroke = json!({"points": [[200, 100], [250, 150], [300, 200]]});
|
||||
for connect in [json!({"id": b.0, "end": "start"}), json!({"id": b.0, "end": "middle"}), json!({"id": b.0}), json!({})] {
|
||||
refuses_with(&mut s, "path.freehand", &with(&stroke, json!({ "connect": connect })), "connect needs extend");
|
||||
refuses_with(&mut s, "path.freehand", &with(&stroke, json!({"extend": null, "connect": connect})), "connect needs extend");
|
||||
}
|
||||
let refused = |s: &mut Session, p: &serde_json::Value| {
|
||||
let before = s.doc().unwrap().doc.clone();
|
||||
let undo = undo_steps(s);
|
||||
assert!(s.execute("path.freehand", p).is_err(), "{p}");
|
||||
assert!(s.doc().unwrap().doc == before, "{p} changed the document");
|
||||
assert_eq!(undo_steps(s), undo, "{p} left an undo step");
|
||||
};
|
||||
refused(&mut s, &with(&stroke, json!({"connect": "b"})));
|
||||
let one = json!({"points": [[200, 100]], "extend": {"id": a.0, "end": "end"}});
|
||||
let end = "connect end must be \"start\" or \"end\"";
|
||||
for e in [json!("middle"), json!(1), json!(null)] {
|
||||
refuses_with(&mut s, "path.freehand", &with(&one, json!({"connect": {"id": b.0, "end": e}})), end);
|
||||
}
|
||||
refuses_with(&mut s, "path.freehand", &with(&one, json!({"connect": {"id": b.0}})), end);
|
||||
refuses_with(&mut s, "path.freehand", &with(&one, json!({"connect": {"end": "end"}})), "connect needs id");
|
||||
refuses_with(&mut s, "path.freehand", &with(&one, json!({"connect": {"id": "b", "end": "end"}})), "`id` must be a whole number");
|
||||
let other = "connect needs a path other than the one extended";
|
||||
refuses_with(&mut s, "path.freehand", &with(&one, json!({"connect": {"id": a.0, "end": "end"}})), other);
|
||||
refuses_with(&mut s, "path.freehand", &with(&one, json!({"connect": {"id": closed.0, "end": "end"}})), "connect path has no open end");
|
||||
for p in [
|
||||
with(&one, json!({"connect": "b"})),
|
||||
with(&one, json!({"connect": {"id": 999_999, "end": "end"}})),
|
||||
with(&one, json!({"connect": {"id": group.0, "end": "end"}})),
|
||||
] {
|
||||
refused(&mut s, &p);
|
||||
}
|
||||
assert_eq!((paths(&s).len(), path(&s, a).anchor_count(), path(&s, b).anchor_count()), (4, 2, 2), "refused: nothing changed");
|
||||
// A good `connect`, or a null one, on a stroke of one point leaves the path as it was.
|
||||
let undo = undo_steps(&s);
|
||||
for connect in [json!({"id": b.0, "end": "start"}), json!(null)] {
|
||||
assert_eq!(s.execute("path.freehand", &with(&one, json!({ "connect": connect }))).unwrap()["id"], json!(a.0));
|
||||
}
|
||||
assert_eq!((path(&s, a).anchor_count(), undo_steps(&s)), (2, undo));
|
||||
// Null without `extend`, `connect` is left out, and the stroke draws a new path.
|
||||
s.execute("path.freehand", &with(&stroke, json!({"connect": null}))).unwrap();
|
||||
assert_eq!(paths(&s).len(), 5);
|
||||
}
|
||||
|
||||
/// With Keep selected off, a compound path whose direct-selected anchors all lie on the subpath
|
||||
/// that connect joins on is no longer selected, and Delete then has nothing to delete.
|
||||
#[test]
|
||||
|
||||
@@ -8689,6 +8689,7 @@ breakText Glyphs Glyfy
|
||||
@msg compound shapes take paths, compound paths, groups, compound shapes, type, blends and envelopes složené tvary přijímají cesty, složené cesty, skupiny, složené tvary, text, prolnutí a obálky
|
||||
@msg compound {_1} must contain exactly one open path to join složený objekt {_1} musí ke spojení obsahovat právě jednu otevřenou cestu
|
||||
@msg connect needs a path other than the one extended connect vyžaduje jinou cestu než tu prodlužovanou
|
||||
@msg connect needs extend connect vyžaduje extend
|
||||
@msg connect needs id connect vyžaduje id
|
||||
@msg connect path has no open end cesta v connect nemá žádný otevřený konec
|
||||
@msg continuation must be an array of path chunks continuation musí být pole úseků cesty
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1610,6 +1610,7 @@ liquify-list-end {0}, {1} {0} og {1}
|
||||
@msg compound shapes take paths, compound paths, groups, compound shapes, type, blends and envelopes sammensatte figurer tager kurver, sammensatte kurver, grupper, sammensatte figurer, tekst, blandinger og konvolutter
|
||||
@msg compound {_1} must contain exactly one open path to join sammensat {_1} skal indeholde præcis én åben kurve at sammenføje
|
||||
@msg connect needs a path other than the one extended connect kræver en anden kurve end den, der forlænges
|
||||
@msg connect needs extend connect kræver extend
|
||||
@msg connect needs id connect kræver id
|
||||
@msg connect path has no open end connect-kurven har ingen åben ende
|
||||
@msg continuation must be an array of path chunks continuation skal være et array af kurvestykker
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -8369,6 +8369,7 @@ breakText Glyphs Glyphen
|
||||
@msg compound {_1} must contain exactly one open path to join zusammengesetzter Pfad {_1} muss genau einen offenen Pfad zum Zusammenfügen enthalten
|
||||
@msg connect end must be "start" or "end" connect end muss „start“ oder „end“ sein
|
||||
@msg connect needs a path other than the one extended connect braucht einen anderen Pfad als den verlängerten
|
||||
@msg connect needs extend connect braucht extend
|
||||
@msg connect needs id connect braucht id
|
||||
@msg connect path has no open end der connect-Pfad hat kein offenes Ende
|
||||
@msg copy needs path: the file to copy into the document's folder copy braucht path: die Datei, die in den Ordner des Dokuments kopiert werden soll
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -8549,6 +8549,7 @@ breakText Glyphs Glyphes
|
||||
@msg compound {_1} must contain exactly one open path to join le tracé transparent {_1} doit contenir exactement un tracé ouvert à joindre
|
||||
@msg connect end must be "start" or "end" l’extrémité de connect doit valoir "start" ou "end"
|
||||
@msg connect needs a path other than the one extended connect nécessite un tracé autre que celui qui est prolongé
|
||||
@msg connect needs extend connect nécessite extend
|
||||
@msg connect needs id connect nécessite id
|
||||
@msg connect path has no open end le tracé de connect n’a pas d’extrémité ouverte
|
||||
@msg continuation must be an array of path chunks continuation doit être une liste de fragments de tracé
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -6883,6 +6883,7 @@ antiAlias Sharp शार्प
|
||||
@msg compressed (RLE) bitmaps can't be read yet संकुचित (RLE) bitmaps अभी तक पढ़ा नहीं जा सकता है
|
||||
@msg connect end must be "start" or "end" कनेक्ट अंत "start" या "end" होना चाहिए
|
||||
@msg connect needs a path other than the one extended connect के लिए बढ़ाए गए पाथ के अलावा कोई दूसरा पाथ चाहिए
|
||||
@msg connect needs extend connect के लिए extend चाहिए
|
||||
@msg connect needs id connect के लिए id चाहिए
|
||||
@msg connect path has no open end कनेक्ट पाथ का कोई खुला अंत नहीं है
|
||||
@msg Contour: select paths or shapes कंटूर: पाथ या आकृतियों सिलेक्ट करें
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -8559,6 +8559,7 @@ breakText Glyphs Glifák
|
||||
@msg compound shapes take paths, compound paths, groups, compound shapes, type, blends and envelopes összetett alakzatba útvonalak, összetett útvonalak, csoportok, összetett alakzatok, szöveg, összemosások és burkolók kerülhetnek
|
||||
@msg compound {_1} must contain exactly one open path to join az összetett objektumnak ({_1}) pontosan egy összekapcsolható nyitott útvonalat kell tartalmaznia
|
||||
@msg connect needs a path other than the one extended connect: a meghosszabbított útvonaltól különböző útvonal kell
|
||||
@msg connect needs extend connect: extend is kell hozzá
|
||||
@msg connect needs id connect: id is kell hozzá
|
||||
@msg connect path has no open end connect: az útvonalnak nincs nyitott vége
|
||||
@msg continuation must be an array of path chunks continuation: útvonaldarabok tömbje kell
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -8420,6 +8420,7 @@ breakText Glyphs Glifi
|
||||
@msg compound {_1} must contain exactly one open path to join il composto {_1} deve contenere esattamente un tracciato aperto da unire
|
||||
@msg connect end must be "start" or "end" end di connect deve essere "start" o "end"
|
||||
@msg connect needs a path other than the one extended connect richiede un tracciato diverso da quello esteso
|
||||
@msg connect needs extend connect richiede extend
|
||||
@msg connect needs id connect richiede id
|
||||
@msg connect path has no open end il tracciato di connect non ha un'estremità aperta
|
||||
@msg copy needs path: the file to copy into the document's folder copy richiede path: il file da copiare nella cartella del documento
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7574,6 +7574,7 @@ axis Y Axis Y 軸
|
||||
@msg compound {_1} must contain exactly one open path to join 連結するには、複合パス {_1} にオープンパスがちょうど 1 つ含まれている必要があります
|
||||
@msg connect end must be "start" or "end" connect の end には "start" または "end" を指定してください
|
||||
@msg connect needs a path other than the one extended connect には、延長したパスとは別のパスが必要です
|
||||
@msg connect needs extend connect には extend が必要です
|
||||
@msg connect needs id connect には id が必要です
|
||||
@msg connect path has no open end connect のパスに開いた端点がありません
|
||||
@msg copy needs path: the file to copy into the document's folder copy には path が必要です: ドキュメントのフォルダーにコピーするファイルを指定してください
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -731,6 +731,7 @@
|
||||
@msg compound {_1} must contain exactly one open path to join შედგენილი {_1} შესაერთებლად ზუსტად ერთ ღია ტრაექტორიას უნდა შეიცავდეს
|
||||
@msg connect end must be "start" or "end" connect-ის end უნდა იყოს "start" ან "end"
|
||||
@msg connect needs a path other than the one extended connect-ს სჭირდება ტრაექტორია, რომელიც გაგრძელებულისგან განსხვავდება
|
||||
@msg connect needs extend connect-ს სჭირდება extend
|
||||
@msg connect needs id connect-ს სჭირდება id
|
||||
@msg connect path has no open end connect-ის ტრაექტორიას ღია ბოლო არ აქვს
|
||||
@msg continuation must be an array of path chunks continuation უნდა იყოს ტრაექტორიის ნაწილების მასივი
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -8287,6 +8287,7 @@ breakText Glyphs 글리프
|
||||
@msg compound shapes take paths, compound paths, groups, compound shapes, type, blends and envelopes 컴파운드 모양에는 패스, 컴파운드 패스, 그룹, 컴파운드 모양, 문자, 블렌드, 엔벨로프를 넣을 수 있습니다
|
||||
@msg compound {_1} must contain exactly one open path to join 컴파운드 {_1}에는 연결할 열린 패스가 정확히 하나 있어야 합니다
|
||||
@msg connect needs a path other than the one extended connect에는 연장한 패스가 아닌 다른 패스가 필요합니다
|
||||
@msg connect needs extend connect에는 extend가 필요합니다
|
||||
@msg connect needs id connect에는 id가 필요합니다
|
||||
@msg connect path has no open end connect 패스에 열린 끝이 없습니다
|
||||
@msg continuation must be an array of path chunks continuation은 패스 조각의 배열이어야 합니다
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -6533,6 +6533,7 @@ imageTrace Outline Contour
|
||||
@msg compound shapes take paths, compound paths, groups, compound shapes, type, blends and envelopes samengestelde vormen accepteren paden, samengestelde paden, groepen, samengestelde vormen, tekst, mengsels en omvormingen
|
||||
@msg compound {_1} must contain exactly one open path to join samengesteld object {_1} moet precies één open pad bevatten om te verbinden
|
||||
@msg connect needs a path other than the one extended connect heeft een ander pad nodig dan het pad dat wordt verlengd
|
||||
@msg connect needs extend connect heeft extend nodig
|
||||
@msg connect needs id connect heeft id nodig
|
||||
@msg connect path has no open end het pad van connect heeft geen open uiteinde
|
||||
@msg continuation must be an array of path chunks continuation moet een array van padstukken zijn
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -8658,6 +8658,7 @@ breakText Glyphs Glify
|
||||
@msg compound shapes take paths, compound paths, groups, compound shapes, type, blends and envelopes kształty złożone przyjmują ścieżki, ścieżki złożone, grupy, kształty złożone, tekst, przejścia i koperty
|
||||
@msg compound {_1} must contain exactly one open path to join obiekt złożony {_1} musi zawierać dokładnie jedną otwartą ścieżkę do połączenia
|
||||
@msg connect needs a path other than the one extended connect wymaga ścieżki innej niż przedłużana
|
||||
@msg connect needs extend connect wymaga extend
|
||||
@msg connect needs id connect wymaga id
|
||||
@msg connect path has no open end ścieżka w connect nie ma otwartego końca
|
||||
@msg copy needs path: the file to copy into the document's folder copy wymaga path: pliku do skopiowania do folderu dokumentu
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -8751,6 +8751,7 @@ swatch Yellow Green Verde-amarelado
|
||||
@msg compound shapes take paths, compound paths, groups, compound shapes, type, blends and envelopes formas compostas aceitam caminhos, caminhos compostos, grupos, formas compostas, texto, mesclagens e envelopes
|
||||
@msg compound {_1} must contain exactly one open path to join o composto {_1} deve conter exatamente um caminho aberto para unir
|
||||
@msg connect needs a path other than the one extended connect precisa de um caminho diferente do que foi estendido
|
||||
@msg connect needs extend connect precisa de extend
|
||||
@msg connect needs id connect precisa de id
|
||||
@msg connect path has no open end o caminho de connect não tem extremidade aberta
|
||||
@msg continuation must be an array of path chunks continuation deve ser uma matriz de trechos de caminho
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -8676,6 +8676,7 @@ shape Open Открытый
|
||||
@msg compound {_1} must contain exactly one open path to join составной объект {_1} должен содержать ровно один открытый контур для соединения
|
||||
@msg connect end must be "start" or "end" end для connect должно быть "start" или "end"
|
||||
@msg connect needs a path other than the one extended для connect нужен контур, отличный от продлеваемого
|
||||
@msg connect needs extend для connect нужен extend
|
||||
@msg connect needs id для connect нужен id
|
||||
@msg connect path has no open end у контура для connect нет открытого конца
|
||||
@msg continuation must be an array of path chunks continuation должно быть массивом фрагментов контура
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -8331,6 +8331,7 @@ digits Hindi Hindi
|
||||
@msg compound shapes take paths, compound paths, groups, compound shapes, type, blends and envelopes sammansatta former tar banor, sammansatta banor, grupper, sammansatta former, text, övergångar och kuvert
|
||||
@msg connect end must be "start" or "end" connect end måste vara "start" eller "end"
|
||||
@msg connect needs a path other than the one extended connect behöver en annan bana än den som förlängs
|
||||
@msg connect needs extend connect behöver extend
|
||||
@msg connect needs id connect behöver id
|
||||
@msg connect path has no open end connect-banan har ingen öppen ände
|
||||
@msg Contour: select paths or shapes Kontur: markera banor eller former
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7958,6 +7958,7 @@ axis Y Axis Y ekseni
|
||||
@msg compound shapes take paths, compound paths, groups, compound shapes, type, blends and envelopes bileşik şekiller yolları, bileşik yolları, grupları, bileşik şekilleri, metni, karışımları ve zarfları alır
|
||||
@msg compound {_1} must contain exactly one open path to join bileşik {_1}, birleştirilecek tam olarak bir açık yol içermelidir
|
||||
@msg connect needs a path other than the one extended connect için uzatılan yoldan başka bir yol gerekir
|
||||
@msg connect needs extend connect için extend gerekir
|
||||
@msg connect needs id connect için id gerekir
|
||||
@msg connect path has no open end connect yolunun açık ucu yok
|
||||
@msg copy needs path: the file to copy into the document's folder copy için path gerekir: belgenin klasörüne kopyalanacak dosya
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -8289,6 +8289,7 @@ breakText Glyphs Гліфи
|
||||
@msg compound shapes take paths, compound paths, groups, compound shapes, type, blends and envelopes складені фігури приймають контури, складені контури, групи, складені фігури, текст, переходи й оболонки
|
||||
@msg compound {_1} must contain exactly one open path to join складений об’єкт {_1} має містити рівно один відкритий контур для з’єднання
|
||||
@msg connect needs a path other than the one extended для connect потрібен контур, відмінний від того, що продовжується
|
||||
@msg connect needs extend для connect потрібен extend
|
||||
@msg connect needs id для connect потрібен id
|
||||
@msg connect path has no open end контур для connect не має відкритого кінця
|
||||
@msg continuation must be an array of path chunks continuation має бути масивом частин контуру
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -8646,6 +8646,7 @@ breakText Glyphs 字形
|
||||
@msg compound shapes take paths, compound paths, groups, compound shapes, type, blends and envelopes 复合形状接受路径、复合路径、编组、复合形状、文字、混合和封套
|
||||
@msg compound {_1} must contain exactly one open path to join 复合对象 {_1} 必须恰好包含一条要连接的开放路径
|
||||
@msg connect needs a path other than the one extended connect 需要一条不同于被延伸路径的路径
|
||||
@msg connect needs extend connect 需要 extend
|
||||
@msg connect needs id connect 需要 id
|
||||
@msg connect path has no open end connect 的路径没有开放的端点
|
||||
@msg copy needs path: the file to copy into the document's folder copy 需要 path:即要复制到文档所在文件夹的文件
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -8575,6 +8575,7 @@ breakText Glyphs 字符
|
||||
@msg compound shapes take paths, compound paths, groups, compound shapes, type, blends and envelopes 複合形狀接受路徑、複合路徑、群組、複合形狀、文字、漸變物件和封套
|
||||
@msg compound {_1} must contain exactly one open path to join 複合路徑 {_1} 必須剛好包含一條可連接的開放路徑
|
||||
@msg connect needs a path other than the one extended connect 需要延伸路徑以外的另一條路徑
|
||||
@msg connect needs extend connect 需要 extend
|
||||
@msg connect needs id connect 需要 id
|
||||
@msg connect path has no open end connect 的路徑沒有開放的端點
|
||||
@msg copy needs path: the file to copy into the document's folder copy 需要 path:要複製到文件資料夾的檔案
|
||||
|
||||
|
Can't render this file because it is too large.
|
+4
-1
@@ -6063,7 +6063,10 @@ in `path.curvatureEdit`; `perpendicular` in `path.reshapeSegment`; and `keepSele
|
||||
`path.freehand` (and `brush.freehand`, which runs it) refuses a `style` other than "pencil" or "brush" with
|
||||
`style must be "pencil" or "brush"`, and an `end` of `extend` other than "start" or "end" with
|
||||
`extend end must be "start" or "end"`; the document does not change and no undo step is recorded. Left out or null,
|
||||
`style` is "pencil" and the `end` of `extend` is "end".
|
||||
`style` is "pencil" and the `end` of `extend` is "end". It refuses a `connect` without `extend` with
|
||||
`connect needs extend`, and checks a `connect` given with `extend` (its `id`, a path other than the one extended with
|
||||
an open end, and an `end` of "start" or "end") before a stroke of one point returns, so a bad `connect` is refused
|
||||
there too and a `brush.freehand` call does not change the path's brush or the selection.
|
||||
|
||||
A `pointer_gesture` with `mods: {cmd: true}` held at the press, with any tool but the selection tools (Command on
|
||||
macOS, Ctrl elsewhere), drags with the selection tool chosen last (`select_tool`), or Direct Selection with the Pen,
|
||||
|
||||
@@ -1349,6 +1349,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
|
||||
Before a press that draws a new path, the Pencil cursor shows a small star, as [Draw freeform paths with the Pencil tool](https://web.archive.org/web/20260926095638/https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/draw-shapes/draw-freeform-paths-with-the-pencil-tool.html) describes; over a selected path within Edit selected paths' distance, which the press continues from an end or redraws, the star is not shown ([Reshape paths with the Pencil tool](https://web.archive.org/web/20260106004407/https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/draw-shapes/reshape-paths-with-the-pencil-tool.html)).
|
||||
Keep selected in the Pencil and Paintbrush Tool Options is on by default: while it is on, a stroke selects the path it draws or continues and replaces the earlier selection. While it is off, a new stroke leaves nothing selected, the earlier selection included, as the reference application starts the stroke by dropping it (#5752); a continued or redrawn path is deselected while the rest of the selection stays (`path.freehand` `keepSelected`).
|
||||
With two open paths selected, a Pencil stroke from an end of one that ends within Edit selected paths' distance of an end of the other connects them into one path with the first path's appearance, in one undo step, as [Connect two paths with the Pencil tool](https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/draw-shapes/connect-two-paths-with-the-pencil-tool.html) describes (`path.freehand` `connect`).
|
||||
`path.freehand` and `brush.freehand` refuse a `connect` without `extend` with an error, and check a `connect` given with `extend` before a stroke of one point returns, so a bad one changes neither the path's brush nor the selection.
|
||||
Double-clicking the Shape Builder tool opens Shape Builder Tool Options ([Shape Builder tool options](https://web.archive.org/web/20260105172244/https://helpx.adobe.com/illustrator/using/building-new-shapes-using-shape.html)): with Consider Open Filled Paths as Closed off, a filled open path cuts regions as an unfilled one does; Pick Color From Color Swatches fills merged shapes with the current fill, the Left and Right arrow keys step it through the document's color swatches, and Cursor Swatch Preview shows the current fill and the swatches before and after it above the pointer; Selection Straight Line merges what the line from a drag's first point to its last crosses ([Setting Illustrator's Shape Builder Options](https://web.archive.org/web/20260615204453/https://creativepro.com/setting-illustrators-shape-builder-options/)); with Highlight Fill off, merge mode shades no regions (`shapeBuilder.merge` `openFilledAsClosed` and `pickColorFrom`).
|
||||
As VectorCraft's own rule, Consider Open Filled Paths as Closed counts an open path as filled when any of its fill rows draws (shown, painted and above 0% opacity), whichever row is on top, as the canvas paints it: a painted fill under an unpainted top fill closes the path, and a painted fill that is hidden or at 0% opacity does not. The region map, merges, erasing and Clicking Stroke Splits the Path follow that rule, and the Shape Builder takes the faces and edges of a Live Paint group that one of their fill or stroke rows draws and whose own opacity is above 0. Regression tests: `tests::build::shape_builder_closes_open_paths_by_the_fill_rows_that_draw`, `tests::build::shape_builder_stroke_split_closes_open_paths_by_the_fill_rows_that_draw` and `tests::build::shape_builder_takes_the_live_paint_faces_and_edges_that_draw`.
|
||||
With In Merge Mode, Clicking Stroke Splits the Path on in the same dialog, a click on a stroke in merge mode splits its path into the run of stroke under the pointer and the rest of the path, as the [Shape Builder tool options](https://web.archive.org/web/20260105172244/https://helpx.adobe.com/illustrator/using/building-new-shapes-using-shape.html) page describes; the run goes from the anchor or crossing point before the pointer to the one after it, and the pointer shows scissors over it. Highlight Stroke When Editable draws that run in the color chosen in its Color list (Red by default), and with Pick Color From Color Swatches the run takes the current fill as its stroke (`shapeBuilder.merge` `splitStroke`).
|
||||
|
||||
Reference in New Issue
Block a user