mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-24 11:23:43 +01:00
Plug-ins: a filter keeps a compound path's hidden and locked members
A filter that handed a compound path back rebuilt every member from the returned path, even when the path was unchanged, so its hidden members were shown and its locked members unlocked after any run. - A compound path whose path comes back as it was, or is left out, keeps its members as they are. - While a member is hidden, locked or a guide, a changed path or `type: "path"` is refused with an error naming the compound path. A guide member is allowed when the output also sets `guide`. - A changed path still replaces the members, one per subpath, keeping the old members' ids by position. Docs: docs/plugins.md.
This commit is contained in:
1 parent
db9acab4da
commit
e4ce03a906
28 files changed
+162
-1
No files matched your search
@@ -182,6 +182,110 @@ fn filters_make_guides_and_locked_objects_left_unselected() {
|
||||
assert_eq!(st.history.undo.len(), undo + 1);
|
||||
}
|
||||
|
||||
/// A compound path handed back with its path as it was keeps its members, hidden and locked ones
|
||||
/// included. A changed path replaces its members, and is refused while a member is hidden, locked
|
||||
/// or a guide, as is turning it into a plain path.
|
||||
#[test]
|
||||
fn a_filter_keeps_or_replaces_a_compound_path_s_members_whole() {
|
||||
use std::sync::Arc;
|
||||
use vectorcraft_doc::{Appearance, Node, NodeKind};
|
||||
use vectorcraft_geom::FillRule;
|
||||
let mut s = session();
|
||||
let compound_of = |s: &mut Session, members: Vec<Node>| {
|
||||
let mut id = NodeId(0);
|
||||
s.edit("Set up", |d, _| {
|
||||
let n = Node::new(d.alloc_id(), NodeKind::Compound { children: members.into_iter().map(Arc::new).collect(), rule: FillRule::NonZero });
|
||||
let layer = d.layers[0].id;
|
||||
id = d.insert(Some(layer), usize::MAX, n).unwrap();
|
||||
Ok(())
|
||||
})
|
||||
.unwrap();
|
||||
id
|
||||
};
|
||||
let members = |s: &Session, id: NodeId| match &node(s, id).kind {
|
||||
NodeKind::Compound { children, .. } => children.iter().map(|c| (c.id, c.visible, c.locked, c.path_data().cloned())).collect::<Vec<_>>(),
|
||||
_ => Vec::new(),
|
||||
};
|
||||
let new_ids = |s: &mut Session| s.edit("Set up", |d, _| Ok([d.alloc_id(), d.alloc_id(), d.alloc_id(), d.alloc_id()])).unwrap();
|
||||
let [a, b, c, d] = new_ids(&mut s);
|
||||
let [g, h, i, j] = new_ids(&mut s);
|
||||
let hidden = |id: NodeId, x: f64| {
|
||||
let mut n = Node::path(id, square_at(x), Appearance::default());
|
||||
n.visible = false;
|
||||
n
|
||||
};
|
||||
let locked = |id: NodeId, x: f64| {
|
||||
let mut n = Node::path(id, square_at(x), Appearance::default());
|
||||
n.locked = true;
|
||||
n
|
||||
};
|
||||
// A member with an empty subpath, which plug-in output can't hold, still counts as handed back.
|
||||
let empty = Node::path(g, PathData::single(SubPath::polyline(&[], false)), Appearance::default());
|
||||
let kept = compound_of(&mut s, vec![hidden(a, 40.0), locked(b, 80.0), empty]);
|
||||
let plain =
|
||||
compound_of(&mut s, vec![Node::path(c, square_at(120.0), Appearance::default()), Node::path(d, square_at(160.0), Appearance::default())]);
|
||||
let was = members(&s, kept);
|
||||
install_wat(&mut s, &tpl::module(&tpl::manifest("test.engine.compound.echo", "filter", "{}"), tpl::ECHO, "", 1));
|
||||
run(&mut s, "plugin.run", json!({"id": "test.engine.compound.echo", "ids": [kept.0]}));
|
||||
assert_eq!(members(&s, kept), was, "handed back as it was, the members stay as they were");
|
||||
// New geometry for a compound with a hidden or a locked member, or the same geometry as a plain
|
||||
// path, is refused, and the document is left alone.
|
||||
let mut moved = square_at(200.0);
|
||||
moved.subpaths.extend(square_at(240.0).subpaths);
|
||||
let reshape = |id: &str, target: NodeId, extra: Value| {
|
||||
let mut o = json!({"id": target.0, "path": moved.clone()});
|
||||
o.as_object_mut().unwrap().extend(extra.as_object().unwrap().clone());
|
||||
tpl::returning(&tpl::manifest(id, "filter", "{}"), &json!({ "objects": [o] }).to_string())
|
||||
};
|
||||
let hidden_only = compound_of(&mut s, vec![hidden(h, 360.0)]);
|
||||
let locked_only = compound_of(&mut s, vec![Node::path(i, square_at(360.0), Appearance::default()), locked(j, 380.0)]);
|
||||
for target in [hidden_only, locked_only] {
|
||||
install_wat(&mut s, &reshape("test.engine.compound.reshape", target, json!({})));
|
||||
let flatten = tpl::returning(
|
||||
&tpl::manifest("test.engine.compound.flatten", "filter", "{}"),
|
||||
&json!({"objects": [{"id": target.0, "type": "path"}]}).to_string(),
|
||||
);
|
||||
install_wat(&mut s, &flatten);
|
||||
let before = (s.doc().unwrap().doc.clone(), s.doc().unwrap().history.undo.len());
|
||||
for id in ["test.engine.compound.reshape", "test.engine.compound.flatten"] {
|
||||
let e = s.execute("plugin.run", &json!({"id": id, "ids": [target.0]})).unwrap_err().to_string();
|
||||
assert!(e.contains(&format!("compound path {} has a hidden, locked or guide member", target.0)), "{id}: {e}");
|
||||
assert_eq!((s.doc().unwrap().doc.clone(), s.doc().unwrap().history.undo.len()), before, "{id}");
|
||||
}
|
||||
}
|
||||
// Without such members, new geometry replaces the members: one per subpath, in the old members' places.
|
||||
install_wat(&mut s, &reshape("test.engine.compound.reshape", plain, json!({})));
|
||||
run(&mut s, "plugin.run", json!({"id": "test.engine.compound.reshape", "ids": [plain.0]}));
|
||||
let now = members(&s, plain);
|
||||
assert_eq!(now.iter().map(|m| m.3.clone()).collect::<Vec<_>>(), [Some(square_at(200.0)), Some(square_at(240.0))]);
|
||||
assert!(now.iter().all(|m| m.1 && !m.2), "shown and unlocked members: {now:?}");
|
||||
assert_eq!(now.iter().map(|m| m.0).collect::<Vec<_>>(), [c, d], "the members keep their places' ids");
|
||||
// A guide member is refused the same way, unless the output sets `guide` for the whole object.
|
||||
let guide_of = |s: &mut Session| {
|
||||
let [e, f, ..] = new_ids(s);
|
||||
let mut guide_member = Node::path(e, square_at(280.0), Appearance::default());
|
||||
if let NodeKind::Path { guide, .. } = &mut guide_member.kind {
|
||||
*guide = true;
|
||||
}
|
||||
compound_of(s, vec![guide_member, Node::path(f, square_at(320.0), Appearance::default())])
|
||||
};
|
||||
let guides = |s: &Session, id: NodeId| match &node(s, id).kind {
|
||||
NodeKind::Compound { children, .. } => children.iter().map(|c| matches!(c.kind, NodeKind::Path { guide: true, .. })).collect::<Vec<_>>(),
|
||||
_ => Vec::new(),
|
||||
};
|
||||
let guide = guide_of(&mut s);
|
||||
install_wat(&mut s, &reshape("test.engine.compound.reshape", guide, json!({})));
|
||||
let err = s.execute("plugin.run", &json!({"id": "test.engine.compound.reshape", "ids": [guide.0]})).unwrap_err().to_string();
|
||||
assert!(err.contains("guide member"), "{err}");
|
||||
for (id, on) in [("test.engine.compound.unguide", false), ("test.engine.compound.reguide", true)] {
|
||||
let target = guide_of(&mut s);
|
||||
install_wat(&mut s, &reshape(id, target, json!({ "guide": on })));
|
||||
run(&mut s, "plugin.run", json!({"id": id, "ids": [target.0]}));
|
||||
assert_eq!(members(&s, target).iter().map(|m| m.3.clone()).collect::<Vec<_>>(), [Some(square_at(200.0)), Some(square_at(240.0))], "{id}");
|
||||
assert_eq!(guides(&s, target), [on, on], "{id}: every new member takes the output's `guide`");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn failing_plugins_leave_the_document_and_history_alone() {
|
||||
let mut s = session();
|
||||
|
||||
@@ -1031,12 +1031,36 @@ fn members(doc: &mut Document, old: &[Arc<Node>], path: PathData) -> Vec<Arc<Nod
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// Whether `returned`, a path from plug-in output, is `current` as it was: output has its empty
|
||||
/// subpaths dropped, so `current`'s are left out of the comparison.
|
||||
fn same_geometry(returned: &PathData, current: &PathData) -> bool {
|
||||
returned.subpaths.iter().eq(current.subpaths.iter().filter(|sp| !sp.anchors.is_empty()))
|
||||
}
|
||||
|
||||
/// Refuses an output that replaces the members of compound path `n` while one of them is hidden,
|
||||
/// locked or (unless the output sets `guide`) a guide.
|
||||
fn check_members_replaceable(n: &Node, children: &[Arc<Node>], sets_guide: bool, at: &str) -> Result<()> {
|
||||
if children.iter().any(|c| !c.visible || c.locked || (!sets_guide && is_guide(c))) {
|
||||
let id = n.id.0;
|
||||
return Err(out_err(at, format!("compound path {id} has a hidden, locked or guide member, so its members can't be replaced")));
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Writes `o` into `n` (an input object, or a fresh node for a new one); its effect records once
|
||||
/// `admit` lets them in.
|
||||
fn write(doc: &mut Document, n: &mut Node, o: OutObject, at: &str, admit: AdmitEffects) -> Result<()> {
|
||||
let (cur_path, cur_rule, cur_compound) = geometry(n).unwrap_or((PathData::default(), FillRule::NonZero, false));
|
||||
let compound = o.compound.unwrap_or(cur_compound);
|
||||
let rule = o.rule.unwrap_or(cur_rule);
|
||||
// A compound path handed back with its path as it was keeps its members as they are.
|
||||
let same_members = cur_compound && o.path.as_ref().is_none_or(|p| same_geometry(p, &cur_path));
|
||||
if let NodeKind::Compound { children, .. } = &n.kind
|
||||
&& (!same_members || !compound)
|
||||
{
|
||||
let at = if compound { format!("{at}.path") } else { format!("{at}.type") };
|
||||
check_members_replaceable(n, children, o.guide.is_some(), &at)?;
|
||||
}
|
||||
match (&mut n.kind, compound) {
|
||||
(NodeKind::Path { path, rule: r, live, .. }, false) => {
|
||||
// A path handed back as it was stays the live shape it was.
|
||||
@@ -1047,7 +1071,7 @@ fn write(doc: &mut Document, n: &mut Node, o: OutObject, at: &str, admit: AdmitE
|
||||
*r = rule;
|
||||
}
|
||||
(NodeKind::Compound { children, rule: r }, true) => {
|
||||
if let Some(p) = o.path {
|
||||
if let Some(p) = o.path.filter(|_| !same_members) {
|
||||
*children = members(doc, children, p);
|
||||
}
|
||||
*r = rule;
|
||||
|
||||
@@ -7786,6 +7786,7 @@ variable-list-end {0}, {1} {0} i {1}
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` requereix una parada vinculada a una mostra de color directe
|
||||
@msg the output la sortida
|
||||
@msg the path has no anchor points el traçat no té punts d’ancoratge
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced el traçat compost {id} té un membre ocult, bloquejat o guia, per tant no se’n poden substituir els membres
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) massa punts d’ancoratge (límit {MAX_ANCHORS})
|
||||
@msg true or false true o false
|
||||
@msg a number >= {_1} un nombre >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7396,6 +7396,7 @@ axis Y Axis osa Y
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` vyžaduje zarážku propojenou se vzorkem přímé barvy
|
||||
@msg the output výstup
|
||||
@msg the path has no anchor points cesta nemá žádné kotevní body
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced složená cesta {id} má skrytý, zamčený nebo vodítkový člen, takže její členy nelze nahradit
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) příliš mnoho kotevních bodů (limit {MAX_ANCHORS})
|
||||
@msg true or false true nebo false
|
||||
@msg a number >= {_1} číslo >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -627,6 +627,7 @@ liquify-list-end {0}, {1} {0} og {1}
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` kræver et gradientstop, der er knyttet til en spotfarveprøve
|
||||
@msg the output outputtet
|
||||
@msg the path has no anchor points kurven har ingen ankerpunkter
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced den sammensatte kurve {id} har et skjult, låst eller hjælpelinjemedlem, så dens medlemmer kan ikke erstattes
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) for mange ankerpunkter (grænse {MAX_ANCHORS})
|
||||
@msg true or false true eller false
|
||||
@msg a number >= {_1} et tal >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -6979,6 +6979,7 @@ axis Y Axis Y-Achse
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` erfordert einen Farbstopp, der mit einem Volltonfarbfeld verknüpft ist
|
||||
@msg the output die Ausgabe
|
||||
@msg the path has no anchor points der Pfad hat keine Ankerpunkte
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced der zusammengesetzte Pfad {id} hat ein ausgeblendetes, gesperrtes oder als Hilfslinie dienendes Element, daher lassen sich seine Elemente nicht ersetzen
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) zu viele Ankerpunkte (Grenze {MAX_ANCHORS})
|
||||
@msg true or false true oder false
|
||||
@msg a number >= {_1} eine Zahl >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7386,6 +7386,7 @@ axis Y Axis Άξονας Y
|
||||
@msg `plates` requires a stop linked to a spot swatch το `plates` απαιτεί σημείο χρώματος συνδεδεμένο με δείγμα πλακάτου χρώματος
|
||||
@msg the output η έξοδος
|
||||
@msg the path has no anchor points η διαδρομή δεν έχει σημεία αγκύρωσης
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced η σύνθετη διαδρομή {id} έχει κρυφό, κλειδωμένο ή οδηγό μέλος, οπότε τα μέλη της δεν μπορούν να αντικατασταθούν
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) πάρα πολλά σημεία αγκύρωσης (όριο {MAX_ANCHORS})
|
||||
@msg true or false true ή false
|
||||
@msg a number >= {_1} αριθμός >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7372,6 +7372,7 @@ axis Y Axis Eje Y
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` requiere una parada vinculada a una muestra de tinta plana
|
||||
@msg the output la salida
|
||||
@msg the path has no anchor points el trazado no tiene puntos de ancla
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced el trazado compuesto {id} tiene un miembro oculto, bloqueado o guía, por lo que sus miembros no se pueden reemplazar
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) demasiados puntos de ancla (límite {MAX_ANCHORS})
|
||||
@msg true or false true o false
|
||||
@msg a number >= {_1} un número >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7463,6 +7463,7 @@ axis Y Axis Y-akseli
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` vaatii väripisteen, joka on linkitetty spottivärin värimalliin
|
||||
@msg the output tuloste
|
||||
@msg the path has no anchor points polulla ei ole ankkuripisteitä
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced yhdistelmäpolulla {id} on piilotettu, lukittu tai apuviivana oleva jäsen, joten sen jäseniä ei voi korvata
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) liian monta ankkuripistettä (raja {MAX_ANCHORS})
|
||||
@msg true or false true tai false
|
||||
@msg a number >= {_1} luku >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7392,6 +7392,7 @@ axis Y Axis Axe Y
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` exige une étape liée à une nuance de ton direct
|
||||
@msg the output la sortie
|
||||
@msg the path has no anchor points le tracé n’a aucun point d’ancrage
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced le tracé transparent {id} a un membre masqué, verrouillé ou repère, donc ses membres ne peuvent pas être remplacés
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) trop de points d’ancrage (limite {MAX_ANCHORS})
|
||||
@msg true or false true ou false
|
||||
@msg a number >= {_1} un nombre >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -6580,6 +6580,7 @@ arrowhead Feather पंख
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` के लिए स्पॉट रंग स्वॉच से जुड़ा स्टॉप आवश्यक है
|
||||
@msg the output आउटपुट
|
||||
@msg the path has no anchor points पाथ में कोई एंकर पॉइंट नहीं है
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced कंपाउंड पाथ {id} का कोई सदस्य छिपा हुआ, बंद या गाइड है, इसलिए इसके सदस्य बदले नहीं जा सकते
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) बहुत अधिक एंकर पॉइंट (सीमा {MAX_ANCHORS})
|
||||
@msg true or false true या false
|
||||
@msg a number >= {_1} एक संख्या >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7381,6 +7381,7 @@ axis Y Axis Y tengely
|
||||
@msg `plates` requires a stop linked to a spot swatch a `plates` direktszín-színmintához kapcsolt színátmenet-pontot igényel
|
||||
@msg the output a kimenet
|
||||
@msg the path has no anchor points az útvonalnak nincsenek horgonypontjai
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced a(z) {id} összetett útvonalnak van rejtett, zárolt vagy segédvonal tagja, ezért a tagjai nem cserélhetők le
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) túl sok horgonypont (korlát: {MAX_ANCHORS})
|
||||
@msg true or false true vagy false
|
||||
@msg a number >= {_1} szám >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -509,6 +509,7 @@
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` memerlukan perhentian yang ditautkan ke swatch warna spot
|
||||
@msg the output keluaran
|
||||
@msg the path has no anchor points jalur tidak memiliki titik jangkar
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced jalur majemuk {id} memiliki anggota yang tersembunyi, terkunci, atau garis panduan, sehingga anggotanya tidak dapat diganti
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) terlalu banyak titik jangkar (batas {MAX_ANCHORS})
|
||||
@msg true or false true atau false
|
||||
@msg a number >= {_1} angka >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7018,6 +7018,7 @@ axis Y Axis Asse Y
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` richiede un cursore colore collegato a un campione di colore spot
|
||||
@msg the output l’output
|
||||
@msg the path has no anchor points il tracciato non ha punti di ancoraggio
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced il tracciato composto {id} ha un membro nascosto, bloccato o guida, quindi i suoi membri non possono essere sostituiti
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) troppi punti di ancoraggio (limite {MAX_ANCHORS})
|
||||
@msg true or false true o false
|
||||
@msg a number >= {_1} un numero >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7093,6 +7093,7 @@ axis Y Axis Y 軸
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` には特色スウォッチにリンクされた分岐点が必要です
|
||||
@msg the output 出力
|
||||
@msg the path has no anchor points パスにアンカーポイントがありません
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced 複合パス {id} に非表示、ロック、またはガイドのメンバーがあるため、メンバーを置き換えられません
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) アンカーポイントが多すぎます (上限 {MAX_ANCHORS})
|
||||
@msg true or false true または false
|
||||
@msg a number >= {_1} {_1} 以上の数値
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9499,6 +9499,7 @@ axis Y Axis Y ღერძი
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` მოითხოვს გადასვლის წერტილს, რომელიც სპოტ-ფერის ნიმუშთანაა დაკავშირებული
|
||||
@msg the output გამოტანა
|
||||
@msg the path has no anchor points ტრაექტორიას საყრდენი წერტილები არ აქვს
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced შედგენილ ტრაექტორიას {id} აქვს დამალული, ჩაკეტილი ან დამხმარე ხაზის წევრი, ამიტომ მისი წევრების ჩანაცვლება შეუძლებელია
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) ძალიან ბევრი საყრდენი წერტილი (ლიმიტი {MAX_ANCHORS})
|
||||
@msg true or false true ან false
|
||||
@msg a number >= {_1} რიცხვი >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -6990,6 +6990,7 @@ axis Y Axis Y축
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates`에는 별색 견본에 연결된 정지점이 필요합니다
|
||||
@msg the output 출력
|
||||
@msg the path has no anchor points 패스에 앵커 포인트가 없습니다
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced 컴파운드 패스 {id}에 숨겨졌거나 잠겼거나 안내선인 멤버가 있어 멤버를 바꿀 수 없습니다
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) 앵커 포인트가 너무 많습니다(한도 {MAX_ANCHORS})
|
||||
@msg true or false true 또는 false
|
||||
@msg a number >= {_1} {_1} 이상인 숫자
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -473,6 +473,7 @@ liquify-list-end {0}, {1} {0} en {1}
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` vereist een verloopstop die aan een steunkleurstaal is gekoppeld
|
||||
@msg the output de uitvoer
|
||||
@msg the path has no anchor points het pad heeft geen ankerpunten
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced het samengestelde pad {id} heeft een verborgen, vergrendeld of hulplijnlid, dus de leden kunnen niet worden vervangen
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) te veel ankerpunten (limiet {MAX_ANCHORS})
|
||||
@msg true or false true of false
|
||||
@msg a number >= {_1} een getal >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7251,6 +7251,7 @@ axis Y Axis Oś Y
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` wymaga punktu koloru połączonego z próbką koloru dodatkowego
|
||||
@msg the output wyjście
|
||||
@msg the path has no anchor points ścieżka nie ma punktów kontrolnych
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced ścieżka złożona {id} ma ukryty, zablokowany lub będący linią pomocniczą element, więc jej elementów nie można zastąpić
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) za dużo punktów kontrolnych (limit {MAX_ANCHORS})
|
||||
@msg true or false true lub false
|
||||
@msg a number >= {_1} liczbą >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7295,6 +7295,7 @@ axis Y Axis Eixo Y
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` requer uma parada vinculada a uma amostra de cor spot
|
||||
@msg the output a saída
|
||||
@msg the path has no anchor points o caminho não tem pontos de ancoragem
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced o caminho composto {id} tem um membro oculto, bloqueado ou guia, por isso seus membros não podem ser substituídos
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) pontos de ancoragem demais (limite {MAX_ANCHORS})
|
||||
@msg true or false true ou false
|
||||
@msg a number >= {_1} um número >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7018,6 +7018,7 @@ axis Y Axis Ось Y
|
||||
@msg `plates` requires a stop linked to a spot swatch для `plates` нужна точка перехода, связанная с образцом плашечного цвета
|
||||
@msg the output вывод
|
||||
@msg the path has no anchor points у контура нет опорных точек
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced у составного контура {id} есть скрытый, заблокированный или направляющий элемент, поэтому его элементы нельзя заменить
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) слишком много опорных точек (предел {MAX_ANCHORS})
|
||||
@msg true or false true или false
|
||||
@msg a number >= {_1} число >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7408,6 +7408,7 @@ axis Y Axis Y-axel
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` kräver ett gradientstopp som är länkat till en dekorfärgruta
|
||||
@msg the output utdata
|
||||
@msg the path has no anchor points banan har inga ankarpunkter
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced den sammansatta banan {id} har en dold, låst eller stödlinjemedlem, så dess medlemmar kan inte ersättas
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) för många ankarpunkter (gräns {MAX_ANCHORS})
|
||||
@msg true or false true eller false
|
||||
@msg a number >= {_1} ett tal >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7468,6 +7468,7 @@ axis Y Axis Y ekseni
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates`, nokta rengi örneğine bağlı bir degrade durağı gerektirir
|
||||
@msg the output çıktı
|
||||
@msg the path has no anchor points yolun bağlantı noktası yok
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced {id} bileşik yolunun gizli, kilitli veya kılavuz olan bir üyesi var, bu yüzden üyeleri değiştirilemez
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) çok fazla bağlantı noktası (sınır {MAX_ANCHORS})
|
||||
@msg true or false true veya false
|
||||
@msg a number >= {_1} bir sayı >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7000,6 +7000,7 @@ axis Y Axis Вісь Y
|
||||
@msg `plates` requires a stop linked to a spot swatch для `plates` потрібна точка переходу, пов’язана зі зразком плашкового кольору
|
||||
@msg the output виведення
|
||||
@msg the path has no anchor points контур не має опорних точок
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced складений контур {id} має прихований, заблокований або напрямний елемент, тому його елементи не можна замінити
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) забагато опорних точок (межа {MAX_ANCHORS})
|
||||
@msg true or false true або false
|
||||
@msg a number >= {_1} число >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7047,6 +7047,7 @@ axis Y Axis Trục Y
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` cần một điểm dừng chuyển sắc liên kết với mẫu màu đặc biệt
|
||||
@msg the output đầu ra
|
||||
@msg the path has no anchor points đường dẫn không có điểm neo
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced đường dẫn phức {id} có thành phần bị ẩn, bị khóa hoặc là đường căn, nên không thể thay thế các thành phần của nó
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) quá nhiều điểm neo (giới hạn {MAX_ANCHORS})
|
||||
@msg true or false true hoặc false
|
||||
@msg a number >= {_1} một số >= {_1}
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7228,6 +7228,7 @@ axis Y Axis Y 轴
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` 需要链接到专色色板的渐变色标
|
||||
@msg the output 输出
|
||||
@msg the path has no anchor points 路径没有锚点
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced 复合路径 {id} 有隐藏、锁定或参考线成员,因此无法替换其成员
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) 锚点过多(上限 {MAX_ANCHORS})
|
||||
@msg true or false true 或 false
|
||||
@msg a number >= {_1} 大于或等于 {_1} 的数字
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7049,6 +7049,7 @@ axis Y Axis Y 軸
|
||||
@msg `plates` requires a stop linked to a spot swatch `plates` 需要連結到特別色色票的漸層色標
|
||||
@msg the output 輸出
|
||||
@msg the path has no anchor points 路徑沒有錨點
|
||||
@msg compound path {id} has a hidden, locked or guide member, so its members can't be replaced 複合路徑 {id} 有隱藏、鎖定或參考線成員,因此無法取代其成員
|
||||
@msg too many anchor points (limit {MAX_ANCHORS}) 錨點過多(上限 {MAX_ANCHORS})
|
||||
@msg true or false true 或 false
|
||||
@msg a number >= {_1} 大於或等於 {_1} 的數字
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -776,6 +776,14 @@ For an **object filter**, the output is the new state of the input objects:
|
||||
the run locked or made guides are left out of the selection that follows. Hosts from before these keys ignore them.
|
||||
- A `path` returned as it was keeps a live shape live (a rectangle keeps its corner widgets); a changed one makes it a
|
||||
plain path.
|
||||
- A compound path whose `path` is returned as it was, or left out, keeps its members as they are, hidden and locked
|
||||
ones included; a changed `path` replaces its members with one plain member per subpath. The host refuses a `path`
|
||||
with no anchor points, so return a compound path that has none without `path`. While a member is hidden, locked or a
|
||||
guide, the host refuses a changed `path` and `type: "path"` for it (a guide member is allowed when the output also
|
||||
sets `guide`).
|
||||
- The host compares a returned `path` with the input coordinate by coordinate, exactly. A JSON parser that does not
|
||||
read numbers back exactly as they were written (in Rust, `serde_json` without its `float_roundtrip` feature) can
|
||||
change the last digit of a coordinate, so leave `path` out when the geometry does not change.
|
||||
|
||||
The host validates everything before the document changes: coordinates must be finite and within ±4,000,000 pt, at
|
||||
most 100,000 objects and 4,000,000 anchors, 256 fills, strokes or gradient stops; colours, opacities and offsets are
|
||||
|
||||
Reference in new issue
Block a user