diff --git a/Cargo.lock b/Cargo.lock
index 8365b32a69..78306baae3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3282,6 +3282,7 @@ dependencies = [
"objc2-core-foundation",
"objc2-core-graphics",
"objc2-foundation 0.3.2",
+ "objc2-quartz-core 0.3.2",
]
[[package]]
@@ -6052,8 +6053,10 @@ dependencies = [
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"objc2-core-foundation",
+ "objc2-core-graphics",
"objc2-core-text",
"objc2-foundation 0.3.2",
+ "objc2-quartz-core 0.3.2",
"pollster 1.0.1",
"raw-window-handle",
"rfd",
diff --git a/README.md b/README.md
index bf358b2d78..fd45eb9cdd 100644
--- a/README.md
+++ b/README.md
@@ -247,7 +247,7 @@ doesn't write Affinity files. Current `.af` validation includes 33 pinned files,
and every-board SVG/PDF/PSD export, with fixes for Affinity 3 artboards, source-backed JPEGs and text runs.
[Scope and limits](crates/affinity/README.md); [source audit and remaining gaps](docs/affinity-validation.md).
The interface
-speaks English, German, Japanese, Korean, Vietnamese, Traditional and Simplified Chinese, Spanish, French, Hungarian, Italian, Polish, Brazilian Portuguese, Russian, Swedish, Ukrainian, Finnish, Bulgarian, Greek, Czech and Georgian;
+speaks English, German, Japanese, Korean, Vietnamese, Traditional and Simplified Chinese, Spanish, French, Hungarian, Italian, Polish, Brazilian Portuguese, Russian, Swedish, Ukrainian, Finnish, Bulgarian, Greek, Czech, Georgian and Catalan;
[localization-parity.md](docs/localization-parity.md) has the details.
The scores are self-assessed from our code against public documentation;
[target-app-parity.md](docs/target-app-parity.md#how-this-was-measured-2026-10-10) explains how far to trust them.
diff --git a/ROADMAP.md b/ROADMAP.md
index 28c15f3268..8a4d00db95 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -112,7 +112,7 @@ Weights, evidence and the missing items per area: [target-app-parity.md](docs/ta
| Korean | `ko` | full | 100% |
| Vietnamese | `vi` | full | 100% |
-Also shipped: Traditional Chinese (partial, 80%), Bulgarian, Finnish, Greek, Hungarian, Italian, Polish, Russian, Swedish, Ukrainian and Georgian (full), Czech (catalog complete; render-site gaps reduced; native review pending).
+Also shipped: Traditional Chinese (partial, 80%), Bulgarian, Finnish, Greek, Hungarian, Italian, Polish, Russian, Swedish, Ukrainian and Georgian (full), Catalan (full; AI-drafted, native review welcome), Czech (catalog complete; render-site gaps reduced; native review pending).
The Georgian catalog has had a native speaker's review; no other catalog has. Details: [localization-parity.md](docs/localization-parity.md).
## Upcoming
@@ -144,6 +144,7 @@ Ranked; detail in [docs/roadmap.md](docs/roadmap.md) and [docs/gaps.md](docs/gap
| Date | What landed |
|---|---|
+| 2026-10-29 | Linux: a clipboard that can't be opened (the Flatpak on GNOME, where arboard has neither data-control nor X11) is retried after 1 s, doubling to a minute, and logged once, where the background Paste check used to reconnect and log a warning every 250 ms (267k warnings in 18 h). Scores and estimates unchanged. |
| 2026-10-21 | 3D lighting: four original lighting presets shared by Revolve, Extrude & Bevel, Inflate and Rotate, with command access and manual Custom settings; scores and estimates unchanged. |
| 2026-10-21 | Print: the Print dialog's Media list has the Japanese papers — JIS B4 (257 × 364 mm), JIS B5 (182 × 257 mm) and JIS B6 next to the ISO B4/B5 (which keep their ISO 216 dimensions for settings saved before them), はがき 100 × 148 mm, 往復はがき 148 × 200 mm, 封筒 長形3号 120 × 235 mm / 長形4号 90 × 225 mm / 角形2号 240 × 332 mm / 角形3号 216 × 277 mm and 四六判 127 × 188 mm. A paper is named by its JSON id or its dialog label, any case and spacing (`B5 (JIS)` or `b5jis`), and every added size prints as its own PDF page size. Headline numbers unchanged. |
| 2026-10-18 | Inch rulers divide the inch in half, not in ten. Zooming in stepped an inch ruler through 0.2, 0.1 and 0.05 of an inch, marks an inch ruler does not carry; below an inch the steps are binary fractions now, 1/2 down to 1/16, with the unlabelled ticks between them binary too (down to 1/128, so the 32nds, 64ths and 128ths appear as the report expects), while the metric units, points, pixels and picas keep their tenths. A label carries the decimals its step needs, so a sixteenth reads 0.0625 rather than the rounded 0.06, with trailing zeros dropped (#2827). Headline numbers unchanged. |
@@ -198,6 +199,7 @@ The full pre-standard record of what landed is kept in [docs/roadmap.md](docs/ro
| Date | Change | Summary |
|---|---|---|
+| 2026-10-29 | minor | Progress log row for the Linux clipboard retry backoff; headline numbers unchanged. |
| 2026-10-23 | minor | Progress log row for Pathfinder › Trap; Live vector effects hours 6–10 → 4–8; headline numbers unchanged. |
| 2026-10-23 | minor | Progress log row for OpenType SVG colour fonts; headline numbers unchanged. |
| 2026-10-23 | minor | Progress log row for COLR colour fonts; headline numbers unchanged. |
diff --git a/apps/vectorcraft-web/index.html b/apps/vectorcraft-web/index.html
index 42eaaf74e0..2ccfc271b0 100644
--- a/apps/vectorcraft-web/index.html
+++ b/apps/vectorcraft-web/index.html
@@ -9,6 +9,13 @@
VectorCraft
+
+
+
+
+
+
+
x "#);
+ let t = only_text(&d);
+ assert_eq!(t.first_style().fill.color().map(|c| c.to_hex()).as_deref(), Some("#ff0000"));
+}
+
#[test]
fn css_selectors_reach_text() {
let d = open(
diff --git a/crates/testkit/src/fixtures.rs b/crates/testkit/src/fixtures.rs
index d79615cd89..656bf4a8bb 100644
--- a/crates/testkit/src/fixtures.rs
+++ b/crates/testkit/src/fixtures.rs
@@ -52,6 +52,38 @@ pub fn select(s: &mut Session, ids: &[NodeId]) {
exec(s, "select.set", json!({"ids": ids.iter().map(|i| i.0).collect::>()}));
}
+/// Place `png` as `cut.png` with `params` (`file.place`'s, besides `name` and `dataBase64`), then
+/// cut the placed image's pixel data short right after its first `IDAT` chunk's type, as a
+/// document saved with a damaged image holds it: the header still reads, but the renderer can't
+/// decode the image and draws nothing. Place refuses such a file, so tests cut a placed one. The
+/// image is stored under the key of its new bytes. → `file.place`'s reply.
+pub fn place_cut_png(s: &mut Session, png: &[u8], params: Value) -> Value {
+ let mut p = json!({"name": "cut.png", "dataBase64": vectorcraft_format::base64_encode(png)});
+ if let (Some(o), Value::Object(extra)) = (p.as_object_mut(), params) {
+ o.extend(extra);
+ }
+ let r = exec(s, "file.place", p);
+ let id = NodeId(r["ids"][0].as_u64().unwrap());
+ let doc = Arc::make_mut(&mut s.doc_mut().unwrap().doc);
+ let Some(NodeKind::Image(im)) = doc.node(id).map(|n| &n.kind) else { panic!("{id:?} is not an image") };
+ let old = im.key.clone();
+ let mut bytes = doc.images[&old].bytes.to_vec();
+ let idat = bytes.windows(4).position(|w| w == b"IDAT").unwrap();
+ bytes.truncate(idat + 8);
+ let cut = vectorcraft_doc::ImageBlob::new("image/png", bytes);
+ let key = cut.content_key();
+ doc.images.insert(key.clone(), cut);
+ if let Some(Node { kind: NodeKind::Image(im), .. }) = doc.node_mut(id) {
+ im.key = key;
+ }
+ let mut shown = false;
+ doc.visit_images(|_, im| shown |= im.key == old);
+ if !shown {
+ doc.images.remove(&old);
+ }
+ r
+}
+
/// The three standard fixture states for sweeping commands.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Fixture {
diff --git a/crates/testkit/src/strategies.rs b/crates/testkit/src/strategies.rs
index fe857506c6..4dbac8f6ec 100644
--- a/crates/testkit/src/strategies.rs
+++ b/crates/testkit/src/strategies.rs
@@ -141,6 +141,8 @@ pub enum Op {
ClipRelease,
Compound,
CompoundRelease,
+ /// Make Compound Shape in one of the four shape modes, a member's mode, Release or Expand.
+ CompoundShape(u8),
Lock,
UnlockAll,
Hide,
@@ -238,6 +240,7 @@ fn arb_leaf_op() -> impl Strategy {
1 => Just(Op::ClipRelease),
1 => Just(Op::Compound),
1 => Just(Op::CompoundRelease),
+ 1 => (0u8..7).prop_map(Op::CompoundShape),
1 => Just(Op::Lock),
1 => Just(Op::UnlockAll),
1 => Just(Op::Hide),
@@ -369,6 +372,15 @@ impl Op {
Op::ClipRelease => c("object.clippingMask.release", json!({})),
Op::Compound => c("object.compoundPath.make", json!({})),
Op::CompoundRelease => c("object.compoundPath.release", json!({})),
+ Op::CompoundShape(i) => {
+ const MODES: [&str; 4] = ["add", "subtract", "intersect", "exclude"];
+ match i % 7 {
+ i @ 0..4 => c("object.compoundShape.make", json!({"mode": MODES[i as usize]})),
+ 4 => c("object.compoundShape.setMode", json!({"mode": "exclude"})),
+ 5 => c("object.compoundShape.release", json!({})),
+ _ => c("object.compoundShape.expand", json!({})),
+ }
+ }
Op::Lock => c("object.lock", json!({})),
Op::UnlockAll => c("object.unlockAll", json!({})),
Op::Hide => c("object.hide", json!({})),
diff --git a/crates/text/src/fontdb/face.rs b/crates/text/src/fontdb/face.rs
index 6276f86cdc..758acc2c2e 100644
--- a/crates/text/src/fontdb/face.rs
+++ b/crates/text/src/fontdb/face.rs
@@ -214,6 +214,11 @@ impl FontFace {
pub fn vertical_metrics(&self) -> (f64, f64) {
(self.ascent, self.descent)
}
+ /// The height of the lowercase letters in font units, positive (estimated from the ascent
+ /// when the font has no OS/2 value).
+ pub fn x_height(&self) -> f64 {
+ self.x_height
+ }
/// The line gap the font asks for between lines, in font units (from the same table as
/// [`vertical_metrics`](Self::vertical_metrics); 0 when it has none).
pub fn line_gap(&self) -> f64 {
diff --git a/crates/text/src/hyphen.rs b/crates/text/src/hyphen.rs
index 9d1cc358c6..16aa674ca6 100644
--- a/crates/text/src/hyphen.rs
+++ b/crates/text/src/hyphen.rs
@@ -90,6 +90,26 @@ fn parse_exception(entry: &str) -> (String, Exception) {
(word, Exception::Only(points))
}
+/// Exception points count chars of the lowercased word; lowercasing can add chars ('İ' becomes
+/// 'i' + U+0307), so map each point back to the char index in `word` it falls before. Points
+/// inside one char's lowercase expansion are dropped; a point at the end of the word is kept.
+fn lowercase_points_to_word(word: &str, pts: &[usize]) -> Vec {
+ let mut out = Vec::with_capacity(pts.len());
+ let mut lower = 0;
+ let mut len = 0;
+ for (i, ch) in word.chars().enumerate() {
+ if pts.contains(&lower) {
+ out.push(i);
+ }
+ lower += ch.to_lowercase().count();
+ len = i + 1;
+ }
+ if pts.contains(&lower) {
+ out.push(len);
+ }
+ out
+}
+
fn normalize_word(word: &str) -> String {
word.chars().flat_map(|c| c.to_lowercase()).collect()
}
@@ -140,7 +160,7 @@ pub fn hyphen_points_with(word: &str, opts: &HyphenationOptions) -> Vec {
if let Some(ex) = exception_for(word) {
return match ex {
Exception::Never => vec![],
- Exception::Only(pts) => pts,
+ Exception::Only(pts) => lowercase_points_to_word(word, &pts),
};
}
let c: Vec = word.chars().collect();
@@ -243,6 +263,17 @@ mod tests {
assert_eq!(hyphen_points("typography"), pattern, "override cleared");
}
+ /// Exception break points are char indices into the word itself, even when lowercasing
+ /// changes the char count ('İ' lowercases to 'i' + U+0307).
+ #[test]
+ fn exception_points_index_the_original_word() {
+ with_exceptions("İs-tan-bul", || {
+ assert_eq!(hyphen_points("İstanbul"), vec![2, 5]);
+ assert_eq!(hyphenate_word("İstanbul"), "İs-tan-bul");
+ assert_eq!(hyphenate_word("İSTANBUL"), "İS-TAN-BUL");
+ });
+ }
+
/// The default Hyphenation options are the limits of [`hyphen_points`]: words of 6 letters or
/// more, 3 letters on each side of the hyphen.
#[test]
diff --git a/crates/text/src/justify.rs b/crates/text/src/justify.rs
index 33fbe91b36..ef7f13be80 100644
--- a/crates/text/src/justify.rs
+++ b/crates/text/src/justify.rs
@@ -55,7 +55,7 @@ pub(crate) fn is_word_space(g: &SGlyph) -> bool {
/// A glyph letter spacing follows: a visible glyph followed by another one in the same word.
fn letter_gap(g: &SGlyph, next: Option<&SGlyph>) -> bool {
- !g.is_space() && g.inline.is_none() && next.is_some_and(|n| !n.is_space())
+ !g.is_space() && g.ch != '\u{2028}' && g.inline.is_none() && next.is_some_and(|n| !n.is_space() && n.ch != '\u{2028}')
}
/// The width of a word space in `g`'s font and size: what letter spacing is a share of.
@@ -83,7 +83,7 @@ pub(crate) fn apply_desired(sg: &mut [SGlyph], j: &JustificationOptions, scale_g
f.word = (base * (w_max - w_des).max(0.0), base * (w_des - w_min).max(0.0));
continue;
}
- if g.is_space() || g.inline.is_some() {
+ if g.is_space() || g.inline.is_some() || g.ch == '\u{2028}' {
continue;
}
let base = g.adv;
diff --git a/crates/text/src/layout.rs b/crates/text/src/layout.rs
index 838940ddb2..66cdaf304d 100644
--- a/crates/text/src/layout.rs
+++ b/crates/text/src/layout.rs
@@ -182,7 +182,7 @@ impl Ctx<'_> {
fn emit(&mut self, g: &SGlyph, pre: Affine, origin: Point, angle: f64, advance: f64, line: usize) {
// Control characters (tabs) and soft hyphens draw nothing (fonts map them to .notdef).
- let blank = g.is_soft_hyphen() || g.ch.is_control();
+ let blank = g.is_soft_hyphen() || g.ch.is_control() || g.ch == '\u{2028}';
// A colour glyph draws its art (COLR layers, an SVG document) or its image (a bitmap, or
// COLR paints documents have no form for), not its outline; COLR, then SVG, then bitmaps.
// Art in the text's colours takes the run's fill (black when it isn't a colour) and
@@ -216,6 +216,12 @@ impl Ctx<'_> {
Affine::rotate(-g.rotation.to_radians()) * Affine::translate((g.dx - lead, g.dy - g.bshift)) * Affine::scale_non_uniform(g.sx, g.sy)
}
};
+ let unturned = if g.inline.is_none() && g.rotation != 0.0 && g.sx != 0.0 && g.sy != 0.0 {
+ let placed = Affine::translate((g.dx - lead, g.dy - g.bshift)) * Affine::scale_non_uniform(g.sx, g.sy);
+ placed.inverse() * Affine::rotate(g.rotation.to_radians()) * placed
+ } else {
+ Affine::IDENTITY
+ };
let mut m = pre * local;
if self.vertical && self.on_path {
// Vertical path type keeps the baseline path and turns each glyph across it.
@@ -271,6 +277,7 @@ impl Ctx<'_> {
image,
colour,
bend: None,
+ unturned,
});
}
diff --git a/crates/text/src/layout/breaking.rs b/crates/text/src/layout/breaking.rs
index 0b9251e831..b83640d029 100644
--- a/crates/text/src/layout/breaking.rs
+++ b/crates/text/src/layout/breaking.rs
@@ -169,7 +169,7 @@ impl Pen<'_> {
pub(super) fn tab_advance<'t>(tabs: &'t [vectorcraft_doc::TabStop], origin: f64, x: f64, rest: &[SGlyph]) -> (f64, &'t str) {
use vectorcraft_doc::TabAlign;
let rel = x - origin;
- let seg: Vec<&SGlyph> = rest.iter().take_while(|g| g.ch != '\t').collect();
+ let seg: Vec<&SGlyph> = rest.iter().take_while(|g| g.ch != '\t' && g.ch != '\u{2028}').collect();
let width: f64 = seg.iter().map(|g| g.adv).sum();
let target = |pos: f64, align: TabAlign, on: char| match align {
TabAlign::Left => pos,
@@ -282,6 +282,9 @@ pub(super) fn break_line(
kinsoku: Kinsoku,
) -> (usize, bool) {
if !width.is_finite() {
+ if let Some(pos) = g[i..].iter().position(|gl| gl.ch == '\u{2028}') {
+ return (i + pos + 1, false);
+ }
return (g.len(), false);
}
let mut x = 0.0;
@@ -297,9 +300,9 @@ pub(super) fn break_line(
cluster_end += 1;
}
// No Break: the marked characters stay on one line, including across a space inside the run.
- if gl.no_break {
+ if gl.no_break && gl.ch != '\u{2028}' {
while let Some(n) = g.get(cluster_end) {
- if !n.no_break {
+ if !n.no_break || n.ch == '\u{2028}' {
break;
}
let b = n.byte;
@@ -314,6 +317,9 @@ pub(super) fn break_line(
} else {
g[j..cluster_end].iter().map(|glyph| glyph.adv).sum()
};
+ if gl.ch == '\u{2028}' {
+ return (cluster_end, false);
+ }
if j > first && !gl.is_space() && x + cluster_width > width + EPS {
// It ends the line with the spaces after it.
if burasagari != Burasagari::None && hangs(gl) && kinsoku_allows(g, cluster_end - 1, kinsoku) {
diff --git a/crates/text/src/layout/flow.rs b/crates/text/src/layout/flow.rs
index 957aa913cc..03c2eb3c40 100644
--- a/crates/text/src/layout/flow.rs
+++ b/crates/text/src/layout/flow.rs
@@ -36,7 +36,15 @@ fn compose_para(
// can't follow: such a paragraph is broken line by line ([`break_line`] measures its tabs).
// The tab after a list marker always starts the first line and has a fixed width.
let has_tab = sg.iter().any(|g| g.ch == '\t' && g.len > 0);
- if composer != Composer::EveryLine || pen.regions.is_none() || sg.len() < 2 || sg.len() > MAX_COMPOSE_GLYPHS || may_hang || has_tab {
+ let has_soft_break = sg.iter().any(|g| g.ch == '\u{2028}');
+ if composer != Composer::EveryLine
+ || pen.regions.is_none()
+ || sg.len() < 2
+ || sg.len() > MAX_COMPOSE_GLYPHS
+ || may_hang
+ || has_tab
+ || has_soft_break
+ {
return None;
}
let m = Metrics::of(&sg[0]);
@@ -382,7 +390,15 @@ fn run_paragraph_lines(cx: &mut Ctx<'_>, pen: &mut Pen<'_>, t: &TextObject, mut
let mut hyphen_run = 0;
let mut line_in_paragraph = 0;
let mut index = 0;
+ let mut emitted_empty_continuation = false;
loop {
+ let pm = if index >= n
+ && let Some(last) = paragraph.sg.last()
+ {
+ Metrics::of(last)
+ } else {
+ paragraph.pm
+ };
let mut placement = PlacementContext {
para: paragraph.para,
pr: ¶graph.pr,
@@ -390,7 +406,7 @@ fn run_paragraph_lines(cx: &mut Ctx<'_>, pen: &mut Pen<'_>, t: &TextObject, mut
continued: paragraph.continued,
rtl: paragraph.rtl,
mirror: paragraph.mirror,
- pm: paragraph.pm,
+ pm,
composed: ¶graph.composed,
hyphen_run,
hyphen_limit: paragraph.hyphen_limit,
@@ -407,7 +423,13 @@ fn run_paragraph_lines(cx: &mut Ctx<'_>, pen: &mut Pen<'_>, t: &TextObject, mut
line_in_paragraph += 1;
index = geometry.position.end;
if index >= n {
- break;
+ if emitted_empty_continuation {
+ break;
+ }
+ emitted_empty_continuation = paragraph.sg.last().is_some_and(|g| g.ch == '\u{2028}');
+ if !emitted_empty_continuation {
+ break;
+ }
}
}
pen.pending += paragraph.para.space_after;
@@ -422,7 +444,7 @@ fn prepare_line_geometry(cx: &Ctx<'_>, t: &TextObject, paragraph: &ParagraphData
if paragraph.regions.is_some() { (position.x0 + position.ind_l, position.x1 - position.ind_r) } else { (position.x0, position.x1) };
let width = ax1 - ax0;
let mut trimmed = position.end;
- while trimmed > index && sg[trimmed - 1].is_space() {
+ while trimmed > index && (sg[trimmed - 1].is_space() || sg[trimmed - 1].ch == '\u{2028}') {
trimmed -= 1;
}
let hyphen = (position.hyph && position.end > index).then(|| hyphen_glyph(&sg[position.end - 1]));
@@ -521,7 +543,7 @@ fn prepare_line_geometry(cx: &Ctx<'_>, t: &TextObject, paragraph: &ParagraphData
// Justification adds nothing to the list marker's glyphs.
let mut held = held;
held.extend(index..paragraph.marker.min(body));
- let last_of_para = position.end >= n;
+ let last_of_para = position.end >= n || position.end.checked_sub(1).and_then(|i| sg.get(i)).is_some_and(|g| g.ch == '\u{2028}');
LineGeometry {
position,
index,
@@ -786,16 +808,21 @@ fn emit_flow_line(cx: &mut Ctx<'_>, pen: &mut Pen<'_>, paragraph: &ParagraphData
} else {
position.m.first_baseline(pen.fb, pen.fb_min)
},
- start: if index < sg.len() { sg[index].byte } else { paragraph.pr.start },
- end: if line.last_of_para { paragraph.pr.end } else { sg[position.end].byte },
+ start: if index < sg.len() { sg[index].byte } else { paragraph.pr.end },
+ end: if position.end >= sg.len() { paragraph.pr.end } else { sg[position.end].byte },
glyph_start,
glyph_end: cx.out.glyphs.len(),
avail: if paragraph.regions.is_some() { (ax0, ax1) } else { (start_x, x_end) },
region: if paragraph.regions.is_some() { pen.ri } else { 0 },
});
pen.settled(position.baseline, position.m);
- // Further spans of this line band share the settled baseline.
- for queued in &mut pen.queued {
- queued.0 = position.baseline;
+ let forced_break = position.end > index && sg.get(position.end - 1).is_some_and(|g| g.ch == '\u{2028}');
+ if forced_break {
+ pen.queued.clear();
+ } else {
+ // Further spans of this line band share the settled baseline.
+ for queued in &mut pen.queued {
+ queued.0 = position.baseline;
+ }
}
}
diff --git a/crates/text/src/layout/ruby.rs b/crates/text/src/layout/ruby.rs
index 4f2c76fe22..54681da89d 100644
--- a/crates/text/src/layout/ruby.rs
+++ b/crates/text/src/layout/ruby.rs
@@ -367,5 +367,6 @@ fn ruby_glyph(g: &PositionedGlyph, m: Affine, run: usize, byte: usize, line: usi
image: None,
colour: None,
bend: None,
+ unturned: Affine::IDENTITY,
}
}
diff --git a/crates/text/src/layout/vertical.rs b/crates/text/src/layout/vertical.rs
index 4ce9f03d8d..0953ae6567 100644
--- a/crates/text/src/layout/vertical.rs
+++ b/crates/text/src/layout/vertical.rs
@@ -1,6 +1,6 @@
use super::flow::flow;
use super::region::Region;
-use super::{Affine, Ctx, Punct, Range, Rect, SGlyph, Shape, Tcy, TextLayout, TextObject, VerticalAlign, is_cjk, punct};
+use super::{Affine, Ctx, Punct, Range, Rect, SGlyph, Tcy, TextLayout, TextObject, VerticalAlign, is_cjk, punct};
/// System Layout on or Fractional Widths off: each character that takes space advances by a whole
/// number of points, at least one, so small type does not collapse onto itself. A zero advance (a
@@ -23,7 +23,7 @@ pub(super) fn whole_character_widths(glyphs: &mut [SGlyph]) {
/// before the automatic digit rule.
///
pub(super) fn tate_chu_yoko(g: &mut [SGlyph], style: impl Fn(&SGlyph) -> (f64, bool)) {
- let manual: Vec = g.iter().map(|gl| style(gl).1).collect();
+ let manual: Vec = g.iter().map(|gl| gl.ch != '\u{2028}' && style(gl).1).collect();
let digits: Vec = g.iter().map(|gl| gl.inline.is_none() && gl.ch.is_ascii_digit()).collect();
let mut i = 0;
while i < g.len() {
@@ -242,28 +242,8 @@ pub(super) fn stands_upright(g: &SGlyph) -> bool {
pub(super) fn finish_bounds(out: &mut TextLayout) {
let xf = out.line_xf;
- let mut b: Option = None;
+ let mut b: Option = out.ink_bounds();
let mut add = |r: Rect| b = Some(b.map_or(r, |b| b.union(r)));
- for g in &out.glyphs {
- if !g.outline.elements().is_empty() {
- add(g.outline.bounding_box());
- }
- if let Some((image, xf)) = g.placed_image() {
- add(xf.transform_rect_bbox(image.rect()));
- }
- if let Some(b) = g.colour.as_ref().and_then(|c| c.geometric_bounds()) {
- add(g.xf.transform_rect_bbox(b));
- }
- }
- // Ruby: covered by its line's ascent, but its ink can overhang sideways past the line.
- for g in &out.ruby {
- if !g.outline.elements().is_empty() {
- add(g.outline.bounding_box());
- }
- }
- for i in &out.inlines {
- add(i.bounds);
- }
if !out.on_path {
for l in &out.lines {
add(xf.transform_rect_bbox(Rect::new(l.x0.min(l.x1), l.baseline - l.ascent, l.x0.max(l.x1), l.baseline + l.descent)));
diff --git a/crates/text/src/lib.rs b/crates/text/src/lib.rs
index 4299e61d22..8524a5962f 100644
--- a/crates/text/src/lib.rs
+++ b/crates/text/src/lib.rs
@@ -43,7 +43,7 @@ pub use hyphen::{hyphenation_exceptions, set_hyphenation_exceptions};
use std::sync::Arc;
pub use svg_glyph::{SvgGlyphReader, set_svg_glyph_reader};
-use kurbo::{Affine, BezPath, Point, Rect, Vec2};
+use kurbo::{Affine, BezPath, Point, Rect, Shape, Vec2};
pub use layout::{decorations, fit_first_line, layout, layout_with, scaled};
pub use vectorcraft_doc::TextObject;
@@ -136,6 +136,9 @@ pub struct PositionedGlyph {
/// the path ([`GlyphBend`]) so it meets its neighbours, and `xf` is only the straight glyph
/// nearest it (for the caret, hit testing and tools). `None`: the glyph is drawn through `xf`.
pub bend: Option,
+ /// Font units → font units: `xf * unturned` places the glyph as it would be placed without
+ /// its Character Rotation. The identity for a glyph without one.
+ pub unturned: Affine,
}
/// How a glyph on a path is bent along it: a point of its pen space (x along its advance from its
@@ -338,6 +341,21 @@ impl TextLayout {
};
self.lines.iter().filter(|l| l.x1 > l.x0).map(line).collect()
}
+ /// The ink of the type in text space: its glyphs (and ruby) as drawn, colour glyphs, images and
+ /// inline graphics included, without the lines' em boxes that [`Self::bounds`] also covers.
+ /// What Align to Glyph Bounds aligns. `None` when nothing draws (only spaces, or no text).
+ pub fn ink_bounds(&self) -> Option {
+ let outlined = |g: &PositionedGlyph| (!g.outline.elements().is_empty()).then(|| g.outline.bounding_box());
+ let glyphs = self.glyphs.iter().flat_map(|g| {
+ let image = g.placed_image().map(|(image, xf)| xf.transform_rect_bbox(image.rect()));
+ let colour = g.colour.as_ref().and_then(|c| c.geometric_bounds()).map(|b| g.xf.transform_rect_bbox(b));
+ [outlined(g), image, colour]
+ });
+ // Ruby is covered by its line's ascent, but its ink can overhang sideways past the line.
+ let ruby = self.ruby.iter().map(outlined);
+ let inlines = self.inlines.iter().map(|i| Some(i.bounds));
+ glyphs.chain(ruby).chain(inlines).flatten().reduce(|a, b| a.union(b))
+ }
/// All glyph outlines combined (e.g. for Create Outlines).
pub fn to_bezpath(&self) -> BezPath {
let mut p = BezPath::new();
diff --git a/crates/text/src/shape.rs b/crates/text/src/shape.rs
index e833d95dbf..2c79099b4b 100644
--- a/crates/text/src/shape.rs
+++ b/crates/text/src/shape.rs
@@ -5,12 +5,14 @@ use std::sync::Arc;
use unicode_bidi::Level;
use unicode_script::{Script, UnicodeScript};
+use unicode_segmentation::UnicodeSegmentation;
use harfrust::{Direction, Feature, ShapeOptions, Tag, UnicodeBuffer};
use skrifa::MetadataProvider;
+use skrifa::charmap::Charmap;
use skrifa::instance::Size;
use vectorcraft_doc::text::INLINE_CHAR;
-use vectorcraft_doc::{CharStyle, InlineArt};
+use vectorcraft_doc::{CharStyle, Digits, InlineArt};
use crate::features::{OtFeatures, ligatures_suppressed_by};
use crate::fontdb::{FontDb, FontFace};
@@ -132,7 +134,10 @@ impl SGlyph {
}
/// A line may break after this glyph.
pub fn break_after(&self) -> bool {
- self.is_space() || self.word_end || matches!(self.ch, '-' | '\u{2010}' | '\u{2013}' | '\u{2014}' | '/' | SOFT_HYPHEN) || is_cjk(self.ch)
+ self.is_space()
+ || self.word_end
+ || matches!(self.ch, '-' | '\u{2010}' | '\u{2013}' | '\u{2014}' | '/' | SOFT_HYPHEN | '\u{2028}')
+ || is_cjk(self.ch)
}
/// A soft (discretionary) hyphen: invisible unless a line breaks after it.
pub fn is_soft_hyphen(&self) -> bool {
@@ -393,24 +398,23 @@ pub(crate) fn shape_range(
let small_caps = st.small_caps.is_some() && !st.all_caps;
// Split into segments by font coverage (and case, for Small Caps).
let mut seg = Segment { range: a..a, runs, source_runs, st, face: primary.clone(), small: false, level: level_at(a) };
- let mut cache: std::collections::HashMap> = std::collections::HashMap::new();
+ let mut cache: std::collections::HashMap<&str, Arc> = std::collections::HashMap::new();
let mut script = Script::Common;
- for (i, c) in text[a..b].char_indices() {
+ // A grapheme cluster (a letter and its marks, an emoji sequence) is set in one face.
+ for (i, cluster) in text[a..b].grapheme_indices(true) {
let i = a + i;
// Digits are drawn in the style's numeral system: the font must cover that digit.
- let c = st.digits.map(c);
+ let Some(c) = cluster.chars().next().map(|c| st.digits.map(c)) else { continue };
let level = level_at(i);
// Whitespace the primary font doesn't map goes to the fallback face like any other
// character (#1844): an ideographic space set at zero width would remove an indent.
- // What the layout handles itself (tab, line and paragraph breaks) stays.
- let covered = c.is_control() || pmap.as_ref().is_none_or(|m| m.map(c).is_some());
- let face = if covered {
+ let face = if drawn_chars(cluster, st.digits).all(|c| in_face(pmap.as_ref(), c)) {
primary.clone()
- } else if let Some(f) = cache.get(&c) {
+ } else if let Some(f) = cache.get(cluster) {
f.clone()
} else {
- let f = db.fallback_for_style(c, primary.id(), primary.weight, primary.italic).unwrap_or_else(|| primary.clone());
- cache.insert(c, f.clone());
+ let f = fallback_face(db, &primary, pmap.as_ref(), cluster, st.digits);
+ cache.insert(cluster, f.clone());
f
};
let small = small_caps && c.is_lowercase();
@@ -516,6 +520,32 @@ fn shapes_alike(a: &CharStyle, b: &CharStyle) -> bool {
&& ligatures_suppressed_by(*tracking) == ligatures_suppressed_by(b.tracking)
}
+/// The characters of a grapheme cluster that need a glyph of their own, in the numeral system
+/// `digits`: not what the layout handles itself (tab, line and paragraph breaks), joiners or
+/// variation selectors.
+fn drawn_chars(cluster: &str, digits: Digits) -> impl Iterator- + '_ {
+ cluster
+ .chars()
+ .map(move |c| digits.map(c))
+ .filter(|&c| !(c.is_control() || matches!(c, '\u{200C}' | '\u{200D}' | '\u{2028}' | '\u{FE00}'..='\u{FE0F}' | '\u{E0100}'..='\u{E01EF}')))
+}
+
+/// Does the face with charmap `map` have a glyph for `c` (any face does when it has no charmap)?
+fn in_face(map: Option<&Charmap<'_>>, c: char) -> bool {
+ map.is_none_or(|m| m.map(c).is_some())
+}
+
+/// The face of a grapheme cluster the primary face (charmap `pmap`) lacks a character of: the
+/// first fallback face with all of them, so that a letter's marks are shaped with it and attach to
+/// it (#4491); when there is none, the face its first character takes on its own.
+fn fallback_face(db: &FontDb, primary: &Arc
, pmap: Option<&Charmap<'_>>, cluster: &str, digits: Digits) -> Arc {
+ let fallback = |c| db.fallback_for_style(c, primary.id(), primary.weight, primary.italic);
+ drawn_chars(cluster, digits)
+ .find_map(|c| fallback(c).filter(|f| drawn_chars(cluster, digits).all(|c| f.covers(c))))
+ .or_else(|| drawn_chars(cluster, digits).next().filter(|&c| !in_face(pmap, c)).and_then(fallback))
+ .unwrap_or_else(|| primary.clone())
+}
+
/// The script `c` is shaped in: Japanese and Chinese text mixes Han, Hiragana, Katakana and
/// Bopomofo, shaped together (splitting them would cost a shaper call per change of script).
fn shaping_script(c: char) -> Script {
@@ -811,7 +841,7 @@ fn shape_segment(text: &str, context: &Range, seg: &Segment, feats: &OtFe
let last_in_cluster = gi + 1 == n || raw[gi + 1].1 as usize != cl;
let ch = first_char(cl);
let mut adv = xa as f64 * k * hs;
- if ch == SOFT_HYPHEN {
+ if ch == SOFT_HYPHEN || ch == '\u{2028}' {
adv = 0.0;
} else if last_in_cluster {
let tracking = gst.tracking / 1000.0 * size;
diff --git a/crates/text/src/tests.rs b/crates/text/src/tests.rs
index 79ce4f5667..7ed2eb48ce 100644
--- a/crates/text/src/tests.rs
+++ b/crates/text/src/tests.rs
@@ -25,6 +25,7 @@ mod typo;
mod variable;
mod versions;
mod vertical;
+mod vietnamese;
/// The bundled fonts only: what these tests measure doesn't change with the fonts installed.
fn db() -> &'static FontDb {
diff --git a/crates/text/src/tests/bidi.rs b/crates/text/src/tests/bidi.rs
index af67365b0e..1ec51d15ac 100644
--- a/crates/text/src/tests/bidi.rs
+++ b/crates/text/src/tests/bidi.rs
@@ -163,6 +163,7 @@ fn lines_of_clusters(lines: &[&[(usize, usize, f64)]], rtl: bool) -> TextLayout
image: None,
colour: None,
bend: None,
+ unturned: Affine::IDENTITY,
});
x += advance;
}
diff --git a/crates/text/src/tests/typo.rs b/crates/text/src/tests/typo.rs
index c06396a1e4..345340b52e 100644
--- a/crates/text/src/tests/typo.rs
+++ b/crates/text/src/tests/typo.rs
@@ -1339,3 +1339,58 @@ fn thai_words_are_words_to_the_caret() {
assert_eq!(edit::word_at(s, s.len() - 1), end + 1..s.len());
assert_eq!(edit::next_word("hello world", 0), 5);
}
+
+#[test]
+fn soft_return_breaks_line_without_new_paragraph() {
+ let mut t = TextObject::point(Point::ZERO, "Line 1\u{2028}Line 2", style(12.0));
+ t.para.space_before = 20.0;
+ t.para.space_after = 20.0;
+ let lay = layout(db(), &t);
+ assert_eq!(lay.lines.len(), 2, "broken into two lines");
+ let l0 = &lay.lines[0];
+ let l1 = &lay.lines[1];
+ let line_gap = l1.baseline - l0.baseline;
+ assert!((line_gap - 12.0 * 1.2).abs() < 1.0, "normal line leading: {line_gap}");
+ assert_eq!(&t.plain_text()[l0.start..l0.end], "Line 1\u{2028}");
+ assert_eq!(&t.plain_text()[l1.start..l1.end], "Line 2");
+}
+
+#[test]
+fn soft_return_in_justified_text_does_not_spread() {
+ let text = "Short\u{2028}A much longer second line of text inside the frame.";
+ let t = area(text, style(12.0), Rect::new(0.0, 0.0, 300.0, 200.0), Justify::JustifyLeft);
+ let lay = layout(db(), &t);
+ assert!(lay.lines.len() >= 2);
+ let l0 = &lay.lines[0];
+ assert!(l0.x1 - l0.x0 < 100.0, "short line ending with soft return is not justified: {}", l0.x1 - l0.x0);
+}
+
+#[test]
+fn soft_return_in_list_does_not_repeat_marker() {
+ use vectorcraft_doc::text::{Bullet, ParaList};
+ let mut t = area("First line\u{2028}Continuation line", style(12.0), Rect::new(0.0, 0.0, 300.0, 200.0), Justify::Left);
+ t.para.list = Some(ParaList::bulleted(Bullet::Dot));
+ let lay = layout(db(), &t);
+ assert_eq!(lay.lines.len(), 2);
+ let l0_glyphs = &lay.glyphs[lay.lines[0].glyph_start..lay.lines[0].glyph_end];
+ let l1_glyphs = &lay.glyphs[lay.lines[1].glyph_start..lay.lines[1].glyph_end];
+ assert!(l0_glyphs.iter().any(|g| g.len == 0), "line 0 has bullet marker");
+ assert!(!l1_glyphs.iter().any(|g| g.len == 0), "continuation line does not have bullet marker");
+}
+
+#[test]
+fn trailing_soft_return_creates_empty_continuation_line() {
+ let t = TextObject::point(Point::ZERO, "Line 1\u{2028}", style(12.0));
+ let lay = layout(db(), &t);
+ assert_eq!(lay.lines.len(), 2, "trailing soft return produces a second empty line");
+ assert_eq!(lay.line_of(t.plain_text().len()), 1, "caret at end sits on the new line");
+}
+
+#[test]
+fn soft_return_breaks_line_even_inside_no_break() {
+ let mut st = style(12.0);
+ st.no_break = true;
+ let t = area("First\u{2028}Second", st, Rect::new(0.0, 0.0, 300.0, 200.0), Justify::Left);
+ let lay = layout(db(), &t);
+ assert_eq!(lay.lines.len(), 2, "soft return honors line break despite no_break");
+}
diff --git a/crates/text/src/tests/vietnamese.rs b/crates/text/src/tests/vietnamese.rs
new file mode 100644
index 0000000000..29f98d0727
--- /dev/null
+++ b/crates/text/src/tests/vietnamese.rs
@@ -0,0 +1,123 @@
+//! Vietnamese letters with two diacritics (Ể, Ứ, Ự, Ẩ…) draw both marks on their base letter
+//! (#4491), whichever form the text comes in: precomposed (NFC), decomposed (NFD), or as
+//! Vietnamese keyboards type it (a precomposed vowel and a combining tone mark), in a font with
+//! the precomposed letters, one that builds them from its marks (GPOS mark-to-base and
+//! mark-to-mark), and one that has to borrow the marks from a fallback font.
+
+use kurbo::{Point, Rect, Shape};
+use skrifa::MetadataProvider;
+use unicode_segmentation::UnicodeSegmentation;
+use vectorcraft_doc::{CharStyle, TextObject};
+use write_fonts::FontBuilder;
+use write_fonts::types::Tag;
+
+use crate::test_fonts::name_table;
+use crate::{FontDb, TextLayout, layout};
+
+/// Letters as (precomposed, decomposed, keyboard) text: the words "HỌC ĐỂ ỨNG DỤNG" and more
+/// letters with two marks, capital and small.
+const LETTERS: [[&str; 3]; 20] = [
+ ["H", "H", "H"],
+ ["\u{1ECC}", "O\u{323}", "O\u{323}"],
+ ["C", "C", "C"],
+ ["\u{110}", "\u{110}", "\u{110}"],
+ ["\u{1EC2}", "E\u{302}\u{309}", "\u{CA}\u{309}"],
+ ["\u{1EE8}", "U\u{31B}\u{301}", "\u{1AF}\u{301}"],
+ ["N", "N", "N"],
+ ["G", "G", "G"],
+ ["D", "D", "D"],
+ ["\u{1EE4}", "U\u{323}", "U\u{323}"],
+ ["\u{1EF0}", "U\u{31B}\u{323}", "\u{1AF}\u{323}"],
+ ["\u{1EA8}", "A\u{302}\u{309}", "\u{C2}\u{309}"],
+ ["\u{1EBE}", "E\u{302}\u{301}", "\u{CA}\u{301}"],
+ ["\u{1ED8}", "O\u{302}\u{323}", "\u{D4}\u{323}"],
+ ["\u{1EDC}", "O\u{31B}\u{300}", "\u{1A0}\u{300}"],
+ ["\u{1EC3}", "e\u{302}\u{309}", "\u{EA}\u{309}"],
+ ["\u{1EE9}", "u\u{31B}\u{301}", "\u{1B0}\u{301}"],
+ ["\u{1EF1}", "u\u{31B}\u{323}", "\u{1B0}\u{323}"],
+ ["\u{1EA9}", "a\u{302}\u{309}", "\u{E2}\u{309}"],
+ ["\u{1EAB}", "a\u{306}\u{303}", "\u{103}\u{303}"],
+];
+
+const SIZE: f64 = 100.0;
+const SOURCE_SANS: &[u8] = include_bytes!("../../../../assets/fonts/SourceSans3-Regular.ttf");
+
+fn text(form: usize) -> String {
+ LETTERS.iter().filter_map(|l| l.get(form).copied()).collect::>().join(" ")
+}
+
+/// Each letter's ink, relative to the pen position of its first glyph.
+fn letter_inks(db: &FontDb, family: &str, text: &str) -> Vec {
+ let st = CharStyle { font_family: family.into(), font_style: "Regular".into(), size: SIZE, ..CharStyle::default() };
+ let l: TextLayout = layout(db, &TextObject::point(Point::ZERO, text, st));
+ text.grapheme_indices(true)
+ .filter(|(_, g)| *g != " ")
+ .map(|(start, g)| {
+ let glyphs: Vec<_> = l.glyphs.iter().filter(|gl| (start..start + g.len()).contains(&gl.byte)).collect();
+ assert!(!glyphs.is_empty(), "{g:?} has glyphs");
+ let pen = glyphs[0].origin.x;
+ let ink = glyphs.iter().map(|gl| gl.outline.bounding_box()).reduce(|a, b| a.union(b)).unwrap();
+ assert!(ink.area() > 0.0, "{g:?} draws");
+ assert!(glyphs.iter().all(|gl| gl.gid != 0), "{g:?} has no missing glyph");
+ ink - kurbo::Vec2::new(pen, 0.0)
+ })
+ .collect()
+}
+
+/// Every letter of `form` (drawn in `family` of `db`) has the ink of the precomposed letter in
+/// Source Sans 3: its marks are on the letter, not beside it.
+fn assert_attached(db: &FontDb, family: &str, form: usize) {
+ let want = letter_inks(FontDb::global(), "Source Sans 3", &text(0));
+ let got = letter_inks(db, family, &text(form));
+ assert_eq!(want.len(), got.len());
+ for ((w, g), letter) in want.iter().zip(&got).zip(LETTERS) {
+ let off = [w.x0 - g.x0, w.x1 - g.x1, w.y0 - g.y0, w.y1 - g.y1].into_iter().fold(0.0_f64, |m, d| m.max(d.abs()));
+ assert!(off < 0.08 * SIZE, "{family}, form {form}: {:?} drawn {g:?}, precomposed {w:?}", letter[form]);
+ }
+}
+
+#[test]
+fn stacked_marks_sit_on_their_letter_in_every_form() {
+ for form in 0..3 {
+ assert_attached(FontDb::global(), "Source Sans 3", form);
+ }
+}
+
+/// Source Sans 3 renamed `family`, with only the characters `keep` takes in its cmap.
+fn source_sans_with(family: &str, keep: impl Fn(u32) -> bool) -> Vec {
+ let font = skrifa::FontRef::new(SOURCE_SANS).unwrap();
+ let map: Vec<(u32, u16)> = font.charmap().mappings().filter(|(c, _)| keep(*c)).map(|(c, g)| (c, u16::try_from(g.to_u32()).unwrap())).collect();
+ let mut builder = FontBuilder::new();
+ builder.add_raw(Tag::new(b"cmap"), crate::embed::cmap(&map).unwrap());
+ builder.add_raw(Tag::new(b"name"), name_table(&[(1, family), (2, "Regular"), (4, family), (6, "Viettest-Regular")]).unwrap());
+ for r in font.table_directory.table_records() {
+ let tag = Tag::new(&r.tag().to_be_bytes());
+ if !builder.contains(tag) {
+ builder.add_raw(tag, font.table_data(r.tag()).unwrap().as_bytes());
+ }
+ }
+ builder.build()
+}
+
+/// A font without the precomposed letters builds them from its base letters and marks.
+#[test]
+fn stacked_marks_are_positioned_mark_to_mark() {
+ const FAMILY: &str = "Viettest Marks";
+ let db = FontDb::with_font_dirs(vec![]);
+ assert_eq!(db.add_font(source_sans_with(FAMILY, |c| c < 0x1E00 && !(0xC0..0x250).contains(&c))), 1);
+ for form in 0..3 {
+ assert_attached(&db, FAMILY, form);
+ }
+}
+
+/// A font with the base letters but none of the marks takes the whole letter, marks included,
+/// from a font that has them.
+#[test]
+fn letters_whose_marks_a_font_lacks_fall_back_whole() {
+ const FAMILY: &str = "Viettest Bare";
+ let db = FontDb::with_font_dirs(vec![]);
+ assert_eq!(db.add_font(source_sans_with(FAMILY, |c| c < 0x80)), 1);
+ for form in 0..3 {
+ assert_attached(&db, FAMILY, form);
+ }
+}
diff --git a/crates/tools/src/builder.rs b/crates/tools/src/builder.rs
index 2ed8ff6d63..5903ac5b3d 100644
--- a/crates/tools/src/builder.rs
+++ b/crates/tools/src/builder.rs
@@ -38,9 +38,9 @@ use live_paint::LpHover;
use live_paint::lp_color;
pub use live_paint::{LP_SELECT_WIDTH, LP_SELECT_WIDTH_RANGE, LivePaintBucketTool, LivePaintSelectionTool};
pub use lookup::{
- EDGE_NAME, FACE_NAME, Face, LIVE_PAINT_NAME, LIVE_PAINT_PREFIX, SOURCES_NAME, drawn_outlines, edge_near, edges, face_at, faces, is_live_paint,
- leaf_shapes, live_paint_at, live_paint_takes, node_outline, outline_snap, path_contains, shape_builder_shapes, shapes_for, sources,
- visible_edge_near, visible_face_at,
+ EDGE_NAME, FACE_NAME, Face, LIVE_PAINT_NAME, LIVE_PAINT_PREFIX, SOURCES_NAME, builder_members, drawn_outlines, edge_near, edges, face_at, faces,
+ is_live_paint, leaf_shapes, live_paint_at, live_paint_takes, node_outline, outline_snap, path_contains, shape_builder_shapes, shapes_for,
+ sources, visible_edge_near, visible_face_at,
};
pub use map::{BuilderMap, HATCH, HIGHLIGHT_RED, Hit, Touched, hatch, maps_built, sample_polyline, sorted_roots};
/// Small, Medium and Large gap lengths in points.
@@ -142,8 +142,8 @@ fn step_swatch(list: &[&Swatch], fill: &Paint, last: Option, forward: boo
/// red, and the gesture deletes the regions it touches, the pieces of open paths and the edges
/// (outline pieces between the points where paths meet) it passes over. With Shift held at the
/// press, the drag draws a rectangular marquee and touches the regions it reaches (see
-/// [`BuilderMap::regions_in_marquee`]): they merge, or with Alt they are deleted. Its options are
-/// [`ShapeBuilderOptions`].
+/// [`BuilderMap::regions_in_marquee`]): they merge, or with Alt they are deleted. Escape during a
+/// drag cancels it. Its options are [`ShapeBuilderOptions`].
#[derive(Default)]
pub struct ShapeBuilderTool {
cache: RegionCache,
@@ -461,15 +461,23 @@ impl Tool for ShapeBuilderTool {
}
/// With Pick Color From Color Swatches, the Left and Right arrow keys pick the color swatch
- /// before or after the current fill.
+ /// before or after the current fill. Escape during a drag cancels it: the release after it
+ /// merges and deletes nothing.
fn claims_key(&self, _cx: &ToolContext, key: ToolKey) -> bool {
- self.opts.swatches && !self.dragging && matches!(key, ToolKey::Left | ToolKey::Right)
+ (self.opts.swatches && !self.dragging && matches!(key, ToolKey::Left | ToolKey::Right)) || (self.dragging && key == ToolKey::Escape)
}
fn key(&mut self, cx: &ToolContext, key: ToolKey, _mods: Mods) -> Vec {
if !self.claims_key(cx, key) {
return vec![];
}
+ if key == ToolKey::Escape {
+ self.dragging = false;
+ self.points.clear();
+ self.touched = Touched::default();
+ (self.marquee, self.hover, self.far) = (None, None, false);
+ return vec![];
+ }
let list = color_swatches(cx.doc);
let Some((i, s)) = step_swatch(&list, &cx.paint.fill, self.picked, key == ToolKey::Right).and_then(|i| Some((i, list.get(i)?))) else {
return vec![];
diff --git a/crates/tools/src/builder/live_paint.rs b/crates/tools/src/builder/live_paint.rs
index aef5bd087c..607584bb93 100644
--- a/crates/tools/src/builder/live_paint.rs
+++ b/crates/tools/src/builder/live_paint.rs
@@ -1,8 +1,9 @@
use super::cache::RegionCache;
-use super::lookup::{is_live_paint, live_paint_at, visible_edge_near, visible_face_at};
+use super::lookup::{is_live_paint, live_paint_at, live_paint_at_where, visible_edge_near, visible_face_at};
use super::map::{HIGHLIGHT_RED, sorted_roots};
use super::{
- Action, Arc, BezPath, Cursor, Document, Mods, Node, NodeId, Overlay, Point, PointerEvent, PointerKind, Tool, ToolContext, Value, json, json_ids,
+ Action, Arc, BezPath, CLICK_TOL_PX, Cursor, Document, EDGE_NAME, FACE_NAME, FillRule, Mods, Node, NodeId, Overlay, Point, PointerEvent,
+ PointerKind, Rect, Tool, ToolContext, ToolKey, Value, json, json_ids, path_contains,
};
// ---------- Live Paint Bucket ----------
@@ -22,9 +23,11 @@ pub(super) enum LpHover {
/// of a visible Live Paint group ([`live_paint_at`]) it is that group with its visible face under
/// `p`, or with `edge` its visible edge nearest `p` within `tol` (None when there is none). Outside
/// every visible face, with `edge`, it is the visible edge nearest `p` within `tol` among the
-/// visible Live Paint groups (the front-most group's on a tie). None when no group is found.
-fn lp_part_at(doc: &Document, p: Point, tol: f64, edge: bool) -> Option<(NodeId, Option<&Arc>)> {
- if let Some(g) = live_paint_at(doc, p).and_then(|id| doc.node(id)) {
+/// visible Live Paint groups (the front-most group's on a tie). None when no group is found. Only
+/// the groups for which `takes` is true are looked at: [`lp_visible`] for the Live Paint Bucket and
+/// [`lp_selectable`] for Live Paint Selection.
+fn lp_part_at<'a>(doc: &'a Document, p: Point, tol: f64, edge: bool, takes: &dyn Fn(NodeId) -> bool) -> Option<(NodeId, Option<&'a Arc>)> {
+ if let Some(g) = live_paint_at_where(doc, p, takes).and_then(|id| doc.node(id)) {
return Some((g.id, if edge { visible_edge_near(g, p, tol) } else { visible_face_at(g, p) }));
}
if !edge {
@@ -36,7 +39,7 @@ fn lp_part_at(doc: &Document, p: Point, tol: f64, edge: bool) -> Option<(NodeId,
&& let Some(e) = visible_edge_near(n, p, tol)
&& let Some((.., d)) = e.path_data().and_then(|pd| pd.nearest(p))
&& best.is_none_or(|b| d <= b.0)
- && doc.is_visible(n.id)
+ && takes(n.id)
{
best = Some((d, n.id, e));
}
@@ -44,11 +47,25 @@ fn lp_part_at(doc: &Document, p: Point, tol: f64, edge: bool) -> Option<(NodeId,
best.map(|(_, g, e)| (g, Some(e)))
}
-/// What the Live Paint tools highlight at `p`: the part of a Live Paint group ([`lp_part_at`]), else
-/// with `cache` the region of the selection under `p`. A large selection's regions are found on
-/// another thread ([`RegionCache::ready`]), and until they are, no region is highlighted.
-fn lp_hover(cx: &ToolContext, cache: Option<&mut RegionCache>, p: Point, edge: bool) -> LpHover {
- if let Some((_, part)) = lp_part_at(cx.doc, p, cx.tol(4.0), edge) {
+/// Whether the Live Paint Bucket takes Live Paint group `id`: it is visible, with every layer and
+/// group around it.
+fn lp_visible(cx: &ToolContext, id: NodeId) -> bool {
+ cx.doc.is_visible(id)
+}
+
+/// Whether the Live Paint Selection tool takes Live Paint group `id`: it is editable
+/// ([`Document::is_editable`]: visible, and not locked, on a locked layer or on a locked artboard),
+/// and in isolation mode it is the isolated object or inside it ([`crate::direct::in_scope`]).
+fn lp_selectable(cx: &ToolContext, id: NodeId) -> bool {
+ cx.doc.is_editable(id) && crate::direct::in_scope(cx.doc, cx.isolation, id)
+}
+
+/// What the Live Paint tools highlight at `p`: the part of a Live Paint group ([`lp_part_at`], among
+/// the groups `takes` takes), else with `cache` the region of the selection under `p`. A large
+/// selection's regions are found on another thread ([`RegionCache::ready`]), and until they are, no
+/// region is highlighted.
+fn lp_hover(cx: &ToolContext, cache: Option<&mut RegionCache>, p: Point, edge: bool, takes: &dyn Fn(NodeId) -> bool) -> LpHover {
+ if let Some((_, part)) = lp_part_at(cx.doc, p, cx.tol(4.0), edge, takes) {
return part.and_then(|n| n.path_data()).map(|pd| LpHover::Part(pd.to_bezpath())).unwrap_or_default();
}
let sel_is_live = cx.selection.objects.iter().any(|id| cx.doc.node(*id).is_some_and(is_live_paint));
@@ -95,14 +112,14 @@ impl Tool for LivePaintBucketTool {
match ev.kind {
PointerKind::Move => {
self.at = Some((p, ev.mods.shift));
- self.hover = lp_hover(cx, Some(&mut self.cache), p, ev.mods.shift);
+ self.hover = lp_hover(cx, Some(&mut self.cache), p, ev.mods.shift, &|id| lp_visible(cx, id));
vec![]
}
PointerKind::Down => {
self.hover = LpHover::None;
let point = json!([p.x, p.y]);
if ev.mods.shift {
- return match lp_part_at(cx.doc, p, cx.tol(4.0), true) {
+ return match lp_part_at(cx.doc, p, cx.tol(4.0), true, &|id| lp_visible(cx, id)) {
Some((g, Some(_))) => {
vec![Action::Exec("livePaint.strokeEdge".into(), json!({ "group": g.0, "point": point, "tolerance": cx.tol(4.0) }))]
}
@@ -143,7 +160,7 @@ impl Tool for LivePaintBucketTool {
loop {
self.cache.settle(wait);
if let Some((p, shift)) = self.at {
- self.hover = lp_hover(cx, Some(&mut self.cache), p, shift);
+ self.hover = lp_hover(cx, Some(&mut self.cache), p, shift, &|id| lp_visible(cx, id));
}
if !wait || !self.cache.waiting() {
break;
@@ -160,12 +177,18 @@ pub const LP_SELECT_WIDTH: f64 = 4.0;
/// The least and greatest highlight width (screen pixels) the Live Paint Selection tool takes.
pub const LP_SELECT_WIDTH_RANGE: (f64, f64) = (1.0, 20.0);
-/// Live Paint Selection: click selects a face (Shift adds); Alt-click selects an edge. Its Tool
-/// Options (double-click the tool) are `selectFills` and `selectStrokes` (both on), the highlight
-/// `color` (`#rrggbb`, red by default) and its `width` ([`LP_SELECT_WIDTH`] pixels). With Select
-/// Strokes off, Alt-click selects the face under the pointer as a click does; with Select Fills
-/// off, a click selects the edge nearest the pointer as Alt-click does; with both off, a click
-/// selects no face or edge.
+/// Live Paint Selection: click selects a face (Shift adds); Alt-click selects an edge. A drag draws
+/// a marquee, and on release the faces and edges it touches ([`lp_parts_in`]) become the selection;
+/// with Shift held at the press, each of them leaves the selection if it is selected and joins it
+/// otherwise. A click and a marquee change the selection on release, so Escape between the press
+/// and the release (which removes the marquee) leaves the selection as it was. The tool does not
+/// highlight or select the faces and edges of a Live Paint group that is locked, on a locked layer
+/// or on a locked artboard, or in isolation mode outside the isolated art. Its Tool Options
+/// (double-click the tool) are `selectFills` and `selectStrokes` (both on), the highlight `color`
+/// (`#rrggbb`, red by default) and its `width` ([`LP_SELECT_WIDTH`] pixels). With
+/// Select Strokes off, Alt-click selects the face under the pointer as a click does and a marquee
+/// takes no edges; with Select Fills off, a click selects the edge nearest the pointer as Alt-click
+/// does and a marquee takes no faces; with both off, a click or a marquee selects no face or edge.
pub struct LivePaintSelectionTool {
pub(super) cache: RegionCache,
pub(super) hover: LpHover,
@@ -173,11 +196,44 @@ pub struct LivePaintSelectionTool {
strokes: bool,
color: [u8; 3],
width: f64,
+ /// The drag in progress, from the press to the release.
+ drag: Option,
+}
+
+/// A press and drag of the Live Paint Selection tool.
+#[derive(Clone, Copy, Debug)]
+struct LpDrag {
+ /// Where the press was.
+ start: Point,
+ /// Where the pointer is.
+ cur: Point,
+ /// Shift was held at the press.
+ shift: bool,
+ /// The face or edge under the press, which a click selects (or with Shift toggles).
+ hit: Option,
+}
+
+impl LpDrag {
+ /// The marquee from the press to the pointer, None while the drag is shorter than
+ /// [`CLICK_TOL_PX`] screen pixels both across and down (a click).
+ fn marquee(&self, cx: &ToolContext) -> Option {
+ let r = Rect::from_points(self.start, self.cur);
+ let tol = cx.tol(CLICK_TOL_PX);
+ (r.width() >= tol || r.height() >= tol).then_some(r)
+ }
}
impl Default for LivePaintSelectionTool {
fn default() -> Self {
- Self { cache: RegionCache::live_paint(), hover: LpHover::None, fills: true, strokes: true, color: HIGHLIGHT_RED, width: LP_SELECT_WIDTH }
+ Self {
+ cache: RegionCache::live_paint(),
+ hover: LpHover::None,
+ fills: true,
+ strokes: true,
+ color: HIGHLIGHT_RED,
+ width: LP_SELECT_WIDTH,
+ drag: None,
+ }
}
}
@@ -193,6 +249,30 @@ impl LivePaintSelectionTool {
}
}
+/// The faces (with `faces`) and edges (with `edges`) that marquee `r` touches, among the faces and
+/// edges that are not hidden of the Live Paint groups the tool takes ([`lp_selectable`]), in paint
+/// order. A face is touched when its outline has an anchor inside `r` or crosses `r`'s sides, or
+/// when it holds `r`'s center. An edge is touched when it has an anchor inside `r` or crosses
+/// `r`'s sides. A face or edge partly inside `r` is touched.
+fn lp_parts_in(cx: &ToolContext, r: Rect, faces: bool, edges: bool) -> Vec {
+ let mut out = vec![];
+ cx.doc.walk(|n| {
+ if !is_live_paint(n) || !lp_selectable(cx, n.id) {
+ return;
+ }
+ for c in n.children().into_iter().flatten().filter(|c| c.visible) {
+ let Some(pd) = c.path_data() else { continue };
+ let face = faces && c.name.as_deref() == Some(FACE_NAME);
+ let edge = edges && c.name.as_deref() == Some(EDGE_NAME);
+ let touched = vectorcraft_geom::hit::intersects_rect(pd, r) || (face && path_contains(pd, FillRule::NonZero, r.center()));
+ if (face || edge) && touched {
+ out.push(c.id);
+ }
+ }
+ });
+ out
+}
+
/// A highlight color option: `#rrggbb` or a layer color's name (any case).
pub(super) fn lp_color(v: &Value) -> Option<[u8; 3]> {
let s = v.as_str()?.trim();
@@ -214,26 +294,70 @@ impl Tool for LivePaintSelectionTool {
match ev.kind {
PointerKind::Move => {
// Only the parts of Live Paint groups highlight, so no map of the selection is built.
- self.hover = match edge.map(|e| lp_hover(cx, None, p, e)) {
+ self.hover = match edge.map(|e| lp_hover(cx, None, p, e, &|id| lp_selectable(cx, id))) {
Some(h @ LpHover::Part(_)) => h,
_ => LpHover::None,
};
vec![]
}
PointerKind::Down => {
- let hit = edge.and_then(|e| lp_part_at(cx.doc, p, cx.tol(4.0), e)).and_then(|(_, part)| part).map(|n| n.id);
- match (hit, ev.mods.shift) {
- (Some(id), true) => vec![Action::Exec("select.toggle".into(), json!({ "id": id.0 }))],
- (Some(id), false) => vec![Action::Exec("select.set".into(), json!({ "ids": [id.0] }))],
- (None, true) => vec![],
- (None, false) => vec![Action::Exec("select.none".into(), json!({}))],
+ let part = edge.and_then(|e| lp_part_at(cx.doc, p, cx.tol(4.0), e, &|id| lp_selectable(cx, id)));
+ let hit = part.and_then(|(_, part)| part).map(|n| n.id);
+ self.drag = Some(LpDrag { start: p, cur: p, shift: ev.mods.shift, hit });
+ vec![]
+ }
+ PointerKind::Drag => {
+ if let Some(d) = &mut self.drag {
+ d.cur = p;
+ self.hover = LpHover::None;
+ }
+ vec![]
+ }
+ PointerKind::Up => {
+ let Some(d) = self.drag.take() else { return vec![] };
+ let d = LpDrag { cur: p, ..d };
+ let Some(r) = d.marquee(cx) else {
+ // A click selects what the press picked.
+ return match (d.hit, d.shift) {
+ (Some(id), true) => vec![Action::Exec("select.toggle".into(), json!({ "id": id.0 }))],
+ (Some(id), false) => vec![Action::Exec("select.set".into(), json!({ "ids": [id.0] }))],
+ (None, true) => vec![],
+ (None, false) => vec![Action::Exec("select.none".into(), json!({}))],
+ };
+ };
+ let ids = lp_parts_in(cx, r, self.fills, self.strokes);
+ match (ids.is_empty(), d.shift) {
+ (true, true) => vec![],
+ (true, false) => vec![Action::Exec("select.none".into(), json!({}))],
+ (false, true) => vec![Action::Exec("select.toggle".into(), json!({ "ids": json_ids(&ids) }))],
+ (false, false) => vec![Action::Exec("select.set".into(), json!({ "ids": json_ids(&ids) }))],
}
}
_ => vec![],
}
}
- fn overlays(&self, _cx: &ToolContext) -> Vec {
+ fn key(&mut self, _cx: &ToolContext, key: ToolKey, _mods: Mods) -> Vec {
+ // Escape during a press or drag drops it; the release then selects nothing.
+ if key == ToolKey::Escape {
+ self.drag = None;
+ }
+ vec![]
+ }
+
+ fn busy(&self) -> bool {
+ self.drag.is_some()
+ }
+
+ fn deactivate(&mut self, _cx: &ToolContext) -> Vec {
+ self.drag = None;
+ vec![]
+ }
+
+ fn overlays(&self, cx: &ToolContext) -> Vec {
+ if let Some(r) = self.drag.and_then(|d| d.marquee(cx)) {
+ return vec![Overlay::Marquee(r)];
+ }
lp_overlays(&self.hover, &self.cache, self.color, self.width as f32)
}
diff --git a/crates/tools/src/builder/lookup.rs b/crates/tools/src/builder/lookup.rs
index 30475be342..99aeeb7aad 100644
--- a/crates/tools/src/builder/lookup.rs
+++ b/crates/tools/src/builder/lookup.rs
@@ -106,9 +106,14 @@ fn nearest_edge<'a>(edges: impl IntoIterator- >, p: Point, to
/// The visible Live Paint group with a face under `p` that is not hidden (front-most in paint order).
pub fn live_paint_at(doc: &Document, p: Point) -> Option
{
+ live_paint_at_where(doc, p, |id| doc.is_visible(id))
+}
+
+/// [`live_paint_at`] among the Live Paint groups for which `takes` is true.
+pub(super) fn live_paint_at_where(doc: &Document, p: Point, takes: impl Fn(NodeId) -> bool) -> Option {
let mut hit = None;
doc.walk(|n| {
- if is_live_paint(n) && doc.is_visible(n.id) && visible_face_at(n, p).is_some() {
+ if is_live_paint(n) && visible_face_at(n, p).is_some() && takes(n.id) {
hit = Some(n.id);
}
});
@@ -121,28 +126,48 @@ pub fn leaf_shapes<'a>(n: &'a Node, out: &mut Vec<&'a Node>) {
collect_leaves(n, false, out);
}
-/// [`leaf_shapes`]; with `filled_faces`, a Live Paint group contributes only its filled faces and
-/// its stroked edges.
-fn collect_leaves<'a>(n: &'a Node, filled_faces: bool, out: &mut Vec<&'a Node>) {
- if !n.visible {
+/// [`leaf_shapes`]; with `builder` (the Shape Builder's inputs), a Live Paint group contributes
+/// only its filled faces and its stroked edges, and locked objects contribute nothing.
+fn collect_leaves<'a>(n: &'a Node, builder: bool, out: &mut Vec<&'a Node>) {
+ collect_members(n, builder, out);
+ if builder {
+ out.retain(|m| m.visible && !m.locked);
+ }
+}
+
+/// The leaves the Shape Builder takes from `n` ([`collect_leaves`]), in paint order, with each
+/// hidden or locked object it skips in its place.
+pub fn builder_members(n: &Node) -> Vec<&Node> {
+ let mut out = vec![];
+ collect_members(n, true, &mut out);
+ out
+}
+
+/// [`collect_leaves`] with, for `builder`, each hidden or locked object in place of what it holds.
+fn collect_members<'a>(n: &'a Node, builder: bool, out: &mut Vec<&'a Node>) {
+ if !n.visible && !builder {
+ return;
+ }
+ if builder && (!n.visible || n.locked) {
+ out.push(n);
return;
}
if n.extras().shaper.is_some() {
for c in n.children().into_iter().flatten().skip(1) {
- collect_leaves(c, filled_faces, out);
+ collect_members(c, builder, out);
}
return;
}
match &n.kind {
NodeKind::Path { guide: true, .. } | NodeKind::Path { clipping: true, .. } => {}
NodeKind::Path { .. } | NodeKind::Compound { .. } => out.push(n),
- NodeKind::Group { .. } if filled_faces && is_live_paint(n) => {
- out.extend(faces(n).into_iter().filter(|f| f.visible && !f.appearance.fill_paint().is_none()).map(|f| &**f));
- out.extend(edges(n).into_iter().filter(|e| e.visible && !e.appearance.stroke_paint().is_none()).map(|e| &**e));
+ NodeKind::Group { .. } if builder && is_live_paint(n) => {
+ out.extend(faces(n).into_iter().filter(|f| !f.visible || f.locked || !f.appearance.fill_paint().is_none()).map(|f| &**f));
+ out.extend(edges(n).into_iter().filter(|e| !e.visible || e.locked || !e.appearance.stroke_paint().is_none()).map(|e| &**e));
}
NodeKind::Group { children, .. } | NodeKind::Layer { children, .. } => {
for c in children {
- collect_leaves(c, filled_faces, out);
+ collect_members(c, builder, out);
}
}
_ => {}
@@ -191,13 +216,15 @@ pub fn shapes_for<'a>(doc: &'a Document, roots: &[NodeId]) -> (Vec, V
shapes_of(doc, roots, false)
}
-/// [`shapes_for`]; with `filled_faces`, a Live Paint group contributes only its filled faces and
-/// its stroked edges.
-fn shapes_of<'a>(doc: &'a Document, roots: &[NodeId], filled_faces: bool) -> (Vec, Vec<&'a Node>) {
+/// [`shapes_for`]; with `builder`, the leaves [`collect_leaves`] takes for the Shape Builder, and
+/// nothing from a root in a locked or hidden group or layer.
+fn shapes_of<'a>(doc: &'a Document, roots: &[NodeId], builder: bool) -> (Vec, Vec<&'a Node>) {
let mut lv = vec![];
for id in roots {
- if let Some(n) = doc.node(*id) {
- collect_leaves(n, filled_faces, &mut lv);
+ if let Some(n) = doc.node(*id)
+ && (!builder || doc.is_editable(*id))
+ {
+ collect_leaves(n, builder, &mut lv);
}
}
let mut shapes = vec![];
@@ -219,7 +246,8 @@ fn shapes_of<'a>(doc: &'a Document, roots: &[NodeId], filled_faces: bool) -> (Ve
/// `open_filled_as_closed`. Unfilled open paths and straight lines stay open and cut the regions
/// they cross, and so do filled open paths without `open_filled_as_closed`. A Live Paint group
/// contributes its filled faces as shapes and its stroked edges as open lines; its unfilled faces
-/// and its edges without a stroke are left out.
+/// and its edges without a stroke are left out. Locked objects, and objects in a locked group or
+/// layer, give nothing.
pub fn shape_builder_shapes<'a>(doc: &'a Document, roots: &[NodeId], open_filled_as_closed: bool) -> (Vec, Vec<&'a Node>) {
let (mut shapes, leaves) = shapes_of(doc, roots, true);
for (s, l) in shapes.iter_mut().zip(&leaves) {
diff --git a/crates/tools/src/builder/tests.rs b/crates/tools/src/builder/tests.rs
index a0a6bfb650..aeb753b4c7 100644
--- a/crates/tools/src/builder/tests.rs
+++ b/crates/tools/src/builder/tests.rs
@@ -60,6 +60,40 @@ fn shape_builder_drag_emits_merge() {
assert!(v["points"].as_array().unwrap().len() >= 2);
}
+/// Escape during a merge drag, an Alt erase drag or a Shift marquee cancels it: the tool takes
+/// the key, nothing stays highlighted, and the release merges and deletes nothing. Enter leaves
+/// the drag alone, and with no drag Escape is not the tool's.
+#[test]
+fn escape_cancels_a_shape_builder_drag() {
+ let (d, a, b) = two_rects();
+ let mut s = Selection::default();
+ s.set([a, b]);
+ let p = paint();
+ let cx = cx(&d, &s, &p);
+ let alt = Mods { alt: true, ..Mods::default() };
+ let shift = Mods { shift: true, ..Mods::default() };
+ for (what, mods) in [("merge", Mods::default()), ("erase", alt), ("marquee", shift)] {
+ let mut t = ShapeBuilderTool::default();
+ t.pointer(&cx, &ev(PointerKind::Down, 25.0, 50.0).with_mods(mods));
+ t.pointer(&cx, &ev(PointerKind::Drag, 75.0, 60.0).with_mods(mods));
+ assert!(!t.touched.is_empty(), "{what}");
+ assert!(t.key(&cx, ToolKey::Enter, Mods::default()).is_empty(), "{what}: Enter leaves the drag alone");
+ assert!(t.busy(), "{what}");
+ assert!(t.claims_key(&cx, ToolKey::Escape), "{what}: Escape is the tool's during the drag");
+ assert!(t.key(&cx, ToolKey::Escape, Mods::default()).is_empty(), "{what}: no interaction began, so none is canceled");
+ assert!(!t.busy(), "{what}");
+ assert!(t.overlays(&cx).is_empty(), "{what}: nothing stays highlighted");
+ assert!(t.pointer(&cx, &ev(PointerKind::Drag, 125.0, 70.0).with_mods(mods)).is_empty(), "{what}");
+ assert!(t.pointer(&cx, &ev(PointerKind::Up, 125.0, 70.0).with_mods(mods)).is_empty(), "{what}: the release merges nothing");
+ assert!(!t.claims_key(&cx, ToolKey::Escape), "{what}: with no drag, Escape is not the tool's");
+ // The next drag merges as before.
+ t.pointer(&cx, &ev(PointerKind::Down, 25.0, 50.0));
+ t.pointer(&cx, &ev(PointerKind::Drag, 75.0, 50.0));
+ let acts = t.pointer(&cx, &ev(PointerKind::Up, 75.0, 50.0));
+ assert!(matches!(acts.as_slice(), [Action::Exec(id, _)] if id == "shapeBuilder.merge"), "{what}: {acts:?}");
+ }
+}
+
#[test]
fn shape_builder_rebuilds_its_map_for_a_new_revision_at_the_same_address() {
let (mut d, a, b) = two_rects();
@@ -824,6 +858,13 @@ fn live_paint_selection_hover_builds_no_map_of_the_selection() {
assert!(!t.waiting());
}
+/// A Live Paint Selection click pressed with `down`: the press does nothing, and the release does
+/// what is returned.
+fn lp_click(t: &mut LivePaintSelectionTool, cx: &ToolContext, down: PointerEvent) -> Vec {
+ assert!(t.pointer(cx, &down).is_empty(), "the press changes nothing");
+ t.pointer(cx, &PointerEvent { kind: PointerKind::Up, ..down })
+}
+
#[test]
fn live_paint_selection_selects_faces() {
let (d, _gid, f2, e) = live_group_doc();
@@ -831,12 +872,12 @@ fn live_paint_selection_selects_faces() {
let p = paint();
let cx = cx(&d, &s, &p);
let mut t = LivePaintSelectionTool::default();
- let acts = t.pointer(&cx, &ev(PointerKind::Down, 75.0, 25.0));
+ let acts = lp_click(&mut t, &cx, ev(PointerKind::Down, 75.0, 25.0));
assert_eq!(acts, vec![Action::Exec("select.set".into(), json!({ "ids": [f2.0] }))]);
let alt = Mods { alt: true, ..Default::default() };
- let acts = t.pointer(&cx, &ev(PointerKind::Down, 51.0, 25.0).with_mods(alt));
+ let acts = lp_click(&mut t, &cx, ev(PointerKind::Down, 51.0, 25.0).with_mods(alt));
assert_eq!(acts, vec![Action::Exec("select.set".into(), json!({ "ids": [e.0] }))]);
- let acts = t.pointer(&cx, &ev(PointerKind::Down, 300.0, 300.0));
+ let acts = lp_click(&mut t, &cx, ev(PointerKind::Down, 300.0, 300.0));
assert_eq!(acts, vec![Action::Exec("select.none".into(), json!({}))]);
}
@@ -853,15 +894,15 @@ fn live_paint_selection_options_choose_what_a_click_selects() {
assert_eq!(t.options(), json!({"selectFills": true, "selectStrokes": true, "color": "#ff2a2a", "width": 4.0}));
// Select Fills off: a click inside a face selects nothing, and a click by an edge selects it.
t.set_option("selectFills", &json!(false));
- assert_eq!(t.pointer(&cx, &ev(PointerKind::Down, 75.0, 25.0)), none);
+ assert_eq!(lp_click(&mut t, &cx, ev(PointerKind::Down, 75.0, 25.0)), none);
t.pointer(&cx, &ev(PointerKind::Move, 75.0, 25.0));
assert!(t.overlays(&cx).is_empty());
- assert_eq!(t.pointer(&cx, &ev(PointerKind::Down, 51.0, 25.0)), set(&[e]));
- assert_eq!(t.pointer(&cx, &ev(PointerKind::Down, 51.0, 25.0).with_mods(alt)), set(&[e]));
+ assert_eq!(lp_click(&mut t, &cx, ev(PointerKind::Down, 51.0, 25.0)), set(&[e]));
+ assert_eq!(lp_click(&mut t, &cx, ev(PointerKind::Down, 51.0, 25.0).with_mods(alt)), set(&[e]));
// Select Strokes off: Alt-click by an edge selects the face under the pointer.
t.set_option("selectFills", &json!(true));
t.set_option("selectStrokes", &json!(false));
- assert_eq!(t.pointer(&cx, &ev(PointerKind::Down, 51.0, 25.0).with_mods(alt)), set(&[f2]));
+ assert_eq!(lp_click(&mut t, &cx, ev(PointerKind::Down, 51.0, 25.0).with_mods(alt)), set(&[f2]));
t.pointer(&cx, &ev(PointerKind::Move, 51.0, 25.0).with_mods(alt));
let ov = t.overlays(&cx);
let [Overlay::Path { path, .. }] = ov.as_slice() else { panic!("{ov:?}") };
@@ -869,12 +910,12 @@ fn live_paint_selection_options_choose_what_a_click_selects() {
// Both off: nothing is selected or highlighted.
t.set_option("selectFills", &json!(false));
for m in [Mods::default(), alt] {
- assert_eq!(t.pointer(&cx, &ev(PointerKind::Down, 51.0, 25.0).with_mods(m)), none);
+ assert_eq!(lp_click(&mut t, &cx, ev(PointerKind::Down, 51.0, 25.0).with_mods(m)), none);
t.pointer(&cx, &ev(PointerKind::Move, 51.0, 25.0).with_mods(m));
assert!(t.overlays(&cx).is_empty());
}
let shift = Mods { shift: true, ..Default::default() };
- assert!(t.pointer(&cx, &ev(PointerKind::Down, 75.0, 25.0).with_mods(shift)).is_empty());
+ assert!(lp_click(&mut t, &cx, ev(PointerKind::Down, 75.0, 25.0).with_mods(shift)).is_empty());
}
#[test]
@@ -894,15 +935,156 @@ fn live_paint_selection_click_outside_the_faces_selects_the_edge_it_highlights()
let ov = t.overlays(&cx);
let [Overlay::Path { path, .. }] = ov.as_slice() else { panic!("{ov:?}") };
assert_eq!(path.bounding_box(), Rect::new(100.0, 0.0, 100.0, 100.0));
- let acts = t.pointer(&cx, &ev(PointerKind::Down, 102.0, 50.0).with_mods(m));
+ let acts = lp_click(&mut t, &cx, ev(PointerKind::Down, 102.0, 50.0).with_mods(m));
assert_eq!(acts, vec![Action::Exec("select.set".into(), json!({ "ids": [right.0] }))]);
- let acts = t.pointer(&cx, &ev(PointerKind::Down, 102.0, 50.0).with_mods(Mods { shift: true, ..m }));
+ let acts = lp_click(&mut t, &cx, ev(PointerKind::Down, 102.0, 50.0).with_mods(Mods { shift: true, ..m }));
assert_eq!(acts, vec![Action::Exec("select.toggle".into(), json!({ "id": right.0 }))]);
}
// Farther than 4 pixels from every edge: no highlight, and a click selects nothing.
t.pointer(&cx, &ev(PointerKind::Move, 106.0, 50.0));
assert!(t.overlays(&cx).is_empty());
- assert_eq!(t.pointer(&cx, &ev(PointerKind::Down, 106.0, 50.0)), vec![Action::Exec("select.none".into(), json!({}))]);
+ assert_eq!(lp_click(&mut t, &cx, ev(PointerKind::Down, 106.0, 50.0)), vec![Action::Exec("select.none".into(), json!({}))]);
+}
+
+/// Presses at `from` with `m`, drags to `to` and releases there; returns what the release does
+/// (the press and the drag do nothing).
+fn lp_drag(t: &mut LivePaintSelectionTool, cx: &ToolContext, from: (f64, f64), to: (f64, f64), m: Mods) -> Vec {
+ assert!(t.pointer(cx, &ev(PointerKind::Down, from.0, from.1).with_mods(m)).is_empty());
+ assert!(t.pointer(cx, &ev(PointerKind::Drag, to.0, to.1).with_mods(m)).is_empty());
+ t.pointer(cx, &ev(PointerKind::Up, to.0, to.1).with_mods(m))
+}
+
+#[test]
+fn live_paint_selection_marquee_selects_the_faces_and_edges_it_touches() {
+ let mut d = Document::new(500.0, 500.0);
+ let (_, [left, top, right, bottom]) = live_square(&mut d, Rect::new(0.0, 0.0, 100.0, 100.0));
+ let face = faces(d.node(d.layers[0].children().unwrap()[0].id).unwrap())[0].id;
+ live_square(&mut d, Rect::new(200.0, 0.0, 300.0, 100.0));
+ let s = Selection::default();
+ let p = paint();
+ let cx = cx(&d, &s, &p);
+ let set = |ids: &[NodeId]| vec![Action::Exec("select.set".into(), json!({ "ids": ids.iter().map(|i| i.0).collect::>() }))];
+ let mut t = LivePaintSelectionTool::default();
+ // While the drag is on, the tool is busy and draws the marquee.
+ t.pointer(&cx, &ev(PointerKind::Down, -10.0, -10.0));
+ t.pointer(&cx, &ev(PointerKind::Drag, 50.0, 50.0));
+ assert!(t.busy());
+ assert_eq!(t.overlays(&cx), vec![Overlay::Marquee(Rect::new(-10.0, -10.0, 50.0, 50.0))]);
+ // Partly inside the marquee: the face and its left and top sides, not the other group.
+ assert_eq!(t.pointer(&cx, &ev(PointerKind::Up, 50.0, 50.0)), set(&[face, left, top]));
+ assert!(!t.busy());
+ // A marquee inside the face takes the face.
+ assert_eq!(lp_drag(&mut t, &cx, (20.0, 20.0), (40.0, 40.0), Mods::default()), set(&[face]));
+ // Across the right side, which ends outside the marquee, and the bottom-right corner.
+ assert_eq!(lp_drag(&mut t, &cx, (90.0, 40.0), (110.0, 150.0), Mods::default()), set(&[face, right, bottom]));
+ // A marquee that touches nothing selects nothing.
+ assert_eq!(lp_drag(&mut t, &cx, (120.0, 120.0), (180.0, 180.0), Mods::default()), vec![Action::Exec("select.none".into(), json!({}))]);
+ // A drag shorter than 3 pixels is a click: the release selects the face under the press.
+ assert_eq!(lp_drag(&mut t, &cx, (50.0, 50.0), (52.0, 51.0), Mods::default()), set(&[face]));
+ // Select Fills off takes no faces, and Select Strokes off no edges.
+ t.set_option("selectFills", &json!(false));
+ assert_eq!(lp_drag(&mut t, &cx, (-10.0, -10.0), (50.0, 50.0), Mods::default()), set(&[left, top]));
+ t.set_option("selectFills", &json!(true));
+ t.set_option("selectStrokes", &json!(false));
+ assert_eq!(lp_drag(&mut t, &cx, (-10.0, -10.0), (50.0, 50.0), Mods::default()), set(&[face]));
+}
+
+#[test]
+fn live_paint_selection_shift_marquee_adds_and_removes() {
+ let mut d = Document::new(500.0, 500.0);
+ let (_, [left, top, right, _]) = live_square(&mut d, Rect::new(0.0, 0.0, 100.0, 100.0));
+ let face = faces(d.node(d.layers[0].children().unwrap()[0].id).unwrap())[0].id;
+ let s = Selection::default();
+ let p = paint();
+ let cx = cx(&d, &s, &p);
+ let toggle = |ids: &[NodeId]| vec![Action::Exec("select.toggle".into(), json!({ "ids": ids.iter().map(|i| i.0).collect::>() }))];
+ let shift = Mods { shift: true, ..Default::default() };
+ let mut t = LivePaintSelectionTool::default();
+ // Each face and edge the marquee touches leaves the selection or joins it.
+ assert_eq!(lp_drag(&mut t, &cx, (-10.0, -10.0), (50.0, 50.0), shift), toggle(&[face, left, top]));
+ // From a press on the face, the face is toggled once, with the rest of what the marquee touches.
+ assert_eq!(lp_drag(&mut t, &cx, (50.0, 50.0), (60.0, -10.0), shift), toggle(&[face, top]));
+ // From a press by the right side (which a Shift-click there toggles), a marquee that touches
+ // nothing changes nothing.
+ let alt_shift = Mods { alt: true, shift: true, ..Default::default() };
+ assert_eq!(lp_drag(&mut t, &cx, (102.0, 50.0), (102.0, 50.0), alt_shift), vec![Action::Exec("select.toggle".into(), json!({ "id": right.0 }))]);
+ assert!(lp_drag(&mut t, &cx, (102.0, 50.0), (150.0, 60.0), alt_shift).is_empty());
+}
+
+#[test]
+fn live_paint_selection_escape_cancels_the_marquee() {
+ let mut d = Document::new(500.0, 500.0);
+ live_square(&mut d, Rect::new(0.0, 0.0, 100.0, 100.0));
+ let s = Selection::default();
+ let p = paint();
+ let cx = cx(&d, &s, &p);
+ // Pressed outside the group and on its face, with and without Shift, and then dragged or not.
+ for (m, from, to) in [
+ (Mods::default(), (-10.0, -10.0), (50.0, 50.0)),
+ (Mods { shift: true, ..Default::default() }, (-10.0, -10.0), (50.0, 50.0)),
+ (Mods::default(), (50.0, 50.0), (80.0, 80.0)),
+ (Mods { shift: true, ..Default::default() }, (50.0, 50.0), (80.0, 80.0)),
+ (Mods::default(), (50.0, 50.0), (50.0, 50.0)),
+ ] {
+ let mut t = LivePaintSelectionTool::default();
+ assert!(t.pointer(&cx, &ev(PointerKind::Down, from.0, from.1).with_mods(m)).is_empty());
+ assert!(t.pointer(&cx, &ev(PointerKind::Drag, to.0, to.1).with_mods(m)).is_empty());
+ assert!(t.key(&cx, ToolKey::Escape, Mods::default()).is_empty());
+ assert!(!t.busy());
+ assert!(t.overlays(&cx).is_empty(), "no marquee after Escape");
+ // The rest of the drag and the release select nothing.
+ t.pointer(&cx, &ev(PointerKind::Drag, 60.0, 60.0).with_mods(m));
+ assert!(t.overlays(&cx).is_empty());
+ assert!(t.pointer(&cx, &ev(PointerKind::Up, 60.0, 60.0).with_mods(m)).is_empty(), "{m:?} {from:?}");
+ }
+}
+
+#[test]
+fn live_paint_selection_skips_locked_groups_and_art_outside_isolation() {
+ let mut d = Document::new(500.0, 500.0);
+ let (back, [_, _, back_right, back_bottom]) = live_square(&mut d, Rect::new(0.0, 0.0, 100.0, 100.0));
+ let (front, _) = live_square(&mut d, Rect::new(50.0, 0.0, 150.0, 100.0));
+ let face = |d: &Document, g: NodeId| faces(d.node(g).unwrap())[0].id;
+ let back_face = face(&d, back);
+ d.node_mut(front).unwrap().locked = true;
+ let s = Selection::default();
+ let p = paint();
+ let set = |ids: &[NodeId]| vec![Action::Exec("select.set".into(), json!({ "ids": ids.iter().map(|i| i.0).collect::>() }))];
+ let none = vec![Action::Exec("select.none".into(), json!({}))];
+ let part = |ov: &[Overlay]| match ov {
+ [] => None,
+ [Overlay::Path { path, .. }] => Some(path.bounding_box()),
+ _ => panic!("{ov:?}"),
+ };
+ let mut t = LivePaintSelectionTool::default();
+ {
+ let cx = cx(&d, &s, &p);
+ // Where the faces overlap, the back group's face under the locked one is highlighted and picked.
+ t.pointer(&cx, &ev(PointerKind::Move, 75.0, 50.0));
+ assert_eq!(part(&t.overlays(&cx)), Some(Rect::new(0.0, 0.0, 100.0, 100.0)));
+ assert_eq!(lp_click(&mut t, &cx, ev(PointerKind::Down, 75.0, 50.0)), set(&[back_face]));
+ // Over the locked group alone, nothing is highlighted or picked.
+ t.pointer(&cx, &ev(PointerKind::Move, 125.0, 50.0));
+ assert_eq!(part(&t.overlays(&cx)), None);
+ assert_eq!(lp_click(&mut t, &cx, ev(PointerKind::Down, 125.0, 50.0)), none);
+ // A marquee across both groups takes only the back group's face and edges.
+ assert_eq!(lp_drag(&mut t, &cx, (90.0, 90.0), (140.0, 110.0), Mods::default()), set(&[back_face, back_right, back_bottom]));
+ }
+ // With the back group isolated, the front group is not picked either.
+ d.node_mut(front).unwrap().locked = false;
+ {
+ let cx = ToolContext { isolation: Some(back), ..cx(&d, &s, &p) };
+ t.pointer(&cx, &ev(PointerKind::Move, 125.0, 50.0));
+ assert_eq!(part(&t.overlays(&cx)), None);
+ assert_eq!(lp_click(&mut t, &cx, ev(PointerKind::Down, 125.0, 50.0)), none);
+ assert_eq!(lp_drag(&mut t, &cx, (90.0, 90.0), (140.0, 110.0), Mods::default()), set(&[back_face, back_right, back_bottom]));
+ }
+ // On a locked layer, no group is picked.
+ let layer = d.layers[0].id;
+ d.node_mut(layer).unwrap().locked = true;
+ let cx = cx(&d, &s, &p);
+ assert_eq!(lp_click(&mut t, &cx, ev(PointerKind::Down, 75.0, 50.0)), none);
+ assert_eq!(lp_drag(&mut t, &cx, (-10.0, -10.0), (200.0, 200.0), Mods::default()), none);
}
#[test]
@@ -931,7 +1113,7 @@ fn live_paint_edges_outside_the_faces_come_from_the_nearest_visible_group() {
Some((_, e, _)) => Action::Exec("select.set".into(), json!({ "ids": [e.0] })),
None => Action::Exec("select.none".into(), json!({})),
};
- assert_eq!(sel.pointer(&cx, &ev(PointerKind::Down, x, y).with_mods(alt)), vec![picked]);
+ assert_eq!(lp_click(&mut sel, &cx, ev(PointerKind::Down, x, y).with_mods(alt)), vec![picked]);
let mut bucket = LivePaintBucketTool::default();
bucket.pointer(&cx, &ev(PointerKind::Move, x, y).with_mods(shift));
assert_eq!(edge_x(&bucket.overlays(&cx)), want.map(|w| w.2));
@@ -974,7 +1156,7 @@ fn live_paint_tools_skip_hidden_edges() {
Some((_, e, _)) => Action::Exec("select.set".into(), json!({ "ids": [e.0] })),
None => Action::Exec("select.none".into(), json!({})),
};
- assert_eq!(sel.pointer(&cx, &ev(PointerKind::Down, x, 50.0).with_mods(alt)), vec![picked], "x {x}");
+ assert_eq!(lp_click(&mut sel, &cx, ev(PointerKind::Down, x, 50.0).with_mods(alt)), vec![picked], "x {x}");
let mut bucket = LivePaintBucketTool::default();
bucket.pointer(&cx, &ev(PointerKind::Move, x, 50.0).with_mods(shift));
assert_eq!(edge_x(&bucket.overlays(&cx)), want.map(|w| w.2), "x {x}");
@@ -1010,19 +1192,19 @@ fn live_paint_tools_skip_hidden_faces() {
let mut sel = LivePaintSelectionTool::default();
sel.pointer(&cx, &ev(PointerKind::Move, 75.0, 50.0));
assert_eq!(part(&sel.overlays(&cx)), Some(Rect::new(0.0, 0.0, 100.0, 100.0)));
- assert_eq!(sel.pointer(&cx, &ev(PointerKind::Down, 75.0, 50.0)), vec![Action::Exec("select.set".into(), json!({ "ids": [back_face.0] }))]);
+ assert_eq!(lp_click(&mut sel, &cx, ev(PointerKind::Down, 75.0, 50.0)), vec![Action::Exec("select.set".into(), json!({ "ids": [back_face.0] }))]);
// Over the hidden face alone, neither tool highlights or picks a face.
bucket.pointer(&cx, &ev(PointerKind::Move, 125.0, 50.0));
assert_eq!(part(&bucket.overlays(&cx)), None);
assert!(bucket.pointer(&cx, &ev(PointerKind::Down, 125.0, 50.0)).is_empty());
sel.pointer(&cx, &ev(PointerKind::Move, 125.0, 50.0));
assert_eq!(part(&sel.overlays(&cx)), None);
- assert_eq!(sel.pointer(&cx, &ev(PointerKind::Down, 125.0, 50.0)), vec![Action::Exec("select.none".into(), json!({}))]);
+ assert_eq!(lp_click(&mut sel, &cx, ev(PointerKind::Down, 125.0, 50.0)), vec![Action::Exec("select.none".into(), json!({}))]);
// Inside the hidden face, 1.5 pt from the back group's right side, Alt-click takes that side
// as it does outside every face.
sel.pointer(&cx, &ev(PointerKind::Move, 101.5, 50.0).with_mods(alt));
assert_eq!(part(&sel.overlays(&cx)), Some(Rect::new(100.0, 0.0, 100.0, 100.0)));
- let picked = sel.pointer(&cx, &ev(PointerKind::Down, 101.5, 50.0).with_mods(alt));
+ let picked = lp_click(&mut sel, &cx, ev(PointerKind::Down, 101.5, 50.0).with_mods(alt));
assert_eq!(picked, vec![Action::Exec("select.set".into(), json!({ "ids": [back_right.0] }))]);
}
diff --git a/crates/tools/src/context.rs b/crates/tools/src/context.rs
index f3a0e3c190..97b9f85973 100644
--- a/crates/tools/src/context.rs
+++ b/crates/tools/src/context.rs
@@ -96,7 +96,8 @@ pub struct ToolContext<'a> {
pub snap_tangent: bool,
/// View → Snapping → Snap to Perpendicular: likewise where it meets a nearby segment square.
pub snap_perpendicular: bool,
- /// View → Snap to Glyph: drawn points snap to live-text baselines and glyph bounds (with Smart Guides).
+ /// View → Snap to Glyph: drawn points snap to live-text glyph bounds, and on a single line of type
+ /// to its baseline, x-height, character widths and glyph anchor points (with Smart Guides).
pub snap_to_glyph: bool,
/// View → Show Corner Widget: paths show draggable Live Corners widgets in their corners.
pub corner_widgets: bool,
diff --git a/crates/tools/src/direct.rs b/crates/tools/src/direct.rs
index d3cb7d3e88..cb0a958f65 100644
--- a/crates/tools/src/direct.rs
+++ b/crates/tools/src/direct.rs
@@ -3,8 +3,9 @@
//! Direct Selection: click an anchor to select it (Shift toggles), click a segment to select the
//! segment independently of its endpoint anchors, drag to move selected anchors (the one pressed on snaps to
//! anchors, segments and Smart Guides, or with them off Snap to Point; Shift keeps the move at 45°
-//! steps; Alt on an anchor or a segment picks the whole path and Alt-drag copies it), drag a
-//! direction handle to
+//! steps; Alt on an anchor or a segment picks the whole path and Alt-drag copies it; an Alt-click
+//! on a path selected whole adds its group, and each further Alt-click adds the next group up, as
+//! Group Selection's clicks do), drag a direction handle to
//! reshape (Shift keeps it at 45° steps round its anchor, Alt moves it alone; smart guides snap
//! it), marquee to select anchors (Shift-drag toggles them: the selected ones inside are
//! deselected, the others selected), drag a corner widget of any path (a star, a pen path) to round its corners
@@ -15,7 +16,10 @@
//! objects entirely inside it (members of groups too), whole.
//! In isolation mode both pick only the isolated object and what is inside it: anchors, segments,
//! paths and groups outside it stay put.
-//! Both move objects selected as a whole as the Selection tool does, snapping alike.
+//! Both move objects selected as a whole as the Selection tool does, snapping alike. When the
+//! selection also holds direct-selected anchors or segments, a drag from an object moves those
+//! anchors and the objects selected whole, as an anchor drag does, and while Alt is held it
+//! copies the selected objects.
//! Both pick the key objects of a blend, and click or drag ruler guides ([`crate::rulerguide`]).
//! A Cmd/Ctrl+Shift double-click with either one releases the ruler guide or guide path under the
//! pointer ([`release_guide_at`]).
@@ -23,8 +27,11 @@
//! with it) and, once a point is clicked, its handles; and the points of selected gradient meshes
//! and mesh envelopes and their handles ([`MeshEdit`]; a solid fill colour recolours a gradient
//! mesh's point last clicked). Dragging a corner or an edge of area
-//! type's frame reshapes the type area (`text.reshapeArea`): the text reflows at its size; dragging
-//! an anchor of type on a path's path reshapes the path (`text.reshapePath`): the text reflows along it.
+//! type's frame reshapes the type area (`text.reshapeArea`): the text reflows at its size. A click
+//! on a frame anchor or a marquee selects frame anchors (Shift toggles them). While the selection
+//! holds only area type with selected frame anchors, those show filled, a drag of one of them moves
+//! them all, and the arrow keys nudge them; otherwise the type is selected whole. Dragging an anchor of type on
+//! a path's path reshapes the path (`text.reshapePath`): the text reflows along it.
//! Dragging the brackets of selected type on a path moves or flips it ([`crate::pathtype`]).
//!
//! A press on the stroke of a path that isn't selected as a whole selects that segment's two anchors
@@ -32,9 +39,10 @@
//! moves its anchors.
use std::borrow::Cow;
+use std::collections::{BTreeMap, BTreeSet};
use serde_json::{Value, json};
-use vectorcraft_doc::hit::{HitKind, compound_part_at, hit_test};
+use vectorcraft_doc::hit::{HitKind, compound_part_at, hit_test, selected_hidden_at};
use vectorcraft_doc::{AnchorRef, Node, NodeId, NodeKind, Selection};
use vectorcraft_geom::{Anchor, PathData, Point, Rect, Vec2};
@@ -121,16 +129,34 @@ enum State {
},
/// Dragging a mesh point or handle ([`MeshEdit`]).
Mesh,
- /// Dragging anchors of area type's frame (a corner, or the two ends of an edge), or an anchor
- /// of type on a path's path.
+ /// Dragging anchors of area type's frames (a corner, the two ends of an edge, or the selected
+ /// frame anchors), or an anchor of type on a path's path: each object with its anchors.
TypeArea {
- id: NodeId,
- anchors: Vec,
+ items: FrameAnchors,
start: Point,
began: bool,
},
}
+/// Anchors of the frames of area type (or of the path of type on a path), each object with its
+/// anchors.
+type FrameAnchors = Vec<(NodeId, Vec)>;
+
+/// What [`DirectSelectionTool::notify`] hears after a press or a marquee selected frame anchors:
+/// the selected objects to keep them with.
+const FRAME_PICKED: &str = "frameAnchors";
+
+/// The params of `text.reshapeArea` or `text.reshapePath` moving `items` by `d`.
+fn reshape_params(items: &[(NodeId, Vec)], d: Vec2) -> Value {
+ match items {
+ [(id, anchors)] => json!({"id": id.0, "anchors": anchors_json(anchors), "dx": d.x, "dy": d.y}),
+ _ => {
+ let items: Vec = items.iter().map(|(id, v)| json!({"id": id.0, "anchors": anchors_json(v)})).collect();
+ json!({"items": items, "dx": d.x, "dy": d.y})
+ }
+ }
+}
+
/// How far (pt) a snap must move a dragged point for the arrow to say it snapped.
const SNAPPED: f64 = 1e-9;
@@ -158,6 +184,13 @@ pub struct DirectSelectionTool {
handle_snap: HandleSnap,
/// What the objects being moved snap to, gathered when the move begins.
move_snap: Option,
+ /// What the point holding a move of objects snaps to while the move takes direct-selected
+ /// anchors along (`path.moveAnchors`): each move of objects sets it when it begins, to the
+ /// targets of an anchor drag when anchors are selected, else to `None`.
+ partial_snap: Option,
+ /// With Snap to Grid or Snap to Pixel on, what such a move from a fill snaps instead of the
+ /// point it holds: the box around the selected anchors and the objects selected whole.
+ partial_grid: Option,
/// The drag snapped to a point or a guide at its last step: the arrow turns hollow.
snapped: bool,
/// The anchor under the pointer (Highlight anchors on mouse over): its path, where it is.
@@ -168,6 +201,18 @@ pub struct DirectSelectionTool {
click: Option<(NodeId, usize, usize)>,
/// A click on a whole path picks the segment on release; a drag still moves the whole path.
click_segment: Option<(NodeId, usize, usize)>,
+ /// An Alt-click on a path selected whole adds this enclosing group on release, as a Group
+ /// Selection click does; an Alt-drag still copies the selection.
+ click_group: Option,
+ /// The selected anchors of area type's frames, picked by a click or a marquee: they show
+ /// filled, a drag of one moves them all, and the arrow keys nudge them. They stay selected
+ /// while the document and its selection are at `frame_revision`, the revision after they were
+ /// picked or the tool last moved them.
+ frame: BTreeMap>,
+ frame_revision: (u64, u64),
+ /// The already selected frame anchor the press landed on without Shift: a click (no drag)
+ /// selects it alone, as a drag moves every selected frame anchor with it.
+ frame_click: Option<(NodeId, AnchorRef)>,
}
impl DirectSelectionTool {
@@ -182,14 +227,75 @@ impl DirectSelectionTool {
copy_snap: None,
handle_snap: HandleSnap::default(),
move_snap: None,
+ partial_snap: None,
+ partial_grid: None,
snapped: false,
hover: None,
guide: GuideEdit::default(),
click: None,
click_segment: None,
+ click_group: None,
+ frame: BTreeMap::new(),
+ frame_revision: (0, 0),
+ frame_click: None,
}
}
+ /// The selected frame anchors that still apply, each object with its anchors. They apply while
+ /// nothing else changed the document or the selection since they were picked (a drag of them
+ /// changes it as it goes), and only while the selection holds nothing else: every selected
+ /// object is editable area type with selected frame anchors, and no path anchors or ruler
+ /// guides are selected. Otherwise the type is selected whole.
+ fn frame_anchors(&self, cx: &ToolContext) -> FrameAnchors {
+ let dragging = matches!(self.state, State::TypeArea { began: true, .. });
+ if self.group
+ || self.frame.is_empty()
+ || (!dragging && cx.revision != self.frame_revision)
+ || !cx.selection.anchors.is_empty()
+ || !cx.selection.guides.is_empty()
+ {
+ return vec![];
+ }
+ let editable = cx.doc.editable();
+ let v: FrameAnchors = self
+ .frame
+ .iter()
+ .filter_map(|(id, set)| {
+ let n = cx
+ .doc
+ .node(*id)
+ .filter(|n| cx.selection.contains(*id) && is_area_type(n) && editable(*id) && in_scope(cx.doc, cx.isolation, *id))?;
+ let frame = editable_path(n)?;
+ let v: Vec =
+ set.iter().copied().filter(|(si, ai)| frame.subpaths.get(*si).is_some_and(|sp| *ai < sp.anchors.len())).collect();
+ (!v.is_empty()).then_some((*id, v))
+ })
+ .collect();
+ if v.len() == cx.selection.objects.len() { v } else { vec![] }
+ }
+
+ /// The move an arrow key nudges the selected frame anchors by (General › Keyboard Increment,
+ /// ten times with Shift, along General › Constrain Angle's axes), with those anchors.
+ fn frame_nudge(&self, cx: &ToolContext, key: ToolKey, mods: Mods) -> Option<(FrameAnchors, Vec2)> {
+ if !matches!(self.state, State::Idle) {
+ return None;
+ }
+ let step = cx.keyboard_increment * if mods.shift { 10.0 } else { 1.0 };
+ let d = match key {
+ ToolKey::Left => Point::new(-step, 0.0),
+ ToolKey::Right => Point::new(step, 0.0),
+ ToolKey::Up => Point::new(0.0, -step),
+ ToolKey::Down => Point::new(0.0, step),
+ _ => return None,
+ };
+ let items = self.frame_anchors(cx);
+ if items.is_empty() {
+ return None;
+ }
+ let d = vectorcraft_geom::constrain_axes(cx.constrain_angle).map_or(d, |axes| axes * d);
+ Some((items, d.to_vec2()))
+ }
+
/// Is `key` the E that Group Selection takes while a marquee is being dragged? Direct
/// Selection takes no letter.
fn claims_letter(&self, key: ToolKey) -> bool {
@@ -199,7 +305,7 @@ impl DirectSelectionTool {
/// Whether `id` may be picked while `scope` is isolated: it is that object, or it sits inside it.
/// With no isolation, everything may be picked.
-fn in_scope(doc: &vectorcraft_doc::Document, scope: Option, id: NodeId) -> bool {
+pub(crate) fn in_scope(doc: &vectorcraft_doc::Document, scope: Option, id: NodeId) -> bool {
scope.is_none_or(|scope| doc.ancestry(id).is_some_and(|anc| anc.contains(&scope)))
}
@@ -432,6 +538,23 @@ struct SegmentHit {
curved: bool,
}
+/// The group a Group Selection click on a selected object adds, given the object's `ancestry`
+/// (its layer and sublayers first, the object last). It walks up from the object and returns the
+/// first ancestor below the layer and its sublayers that is not yet selected. The walk stops at the
+/// isolated object, since the next group up is outside isolation mode, and at any layer or
+/// sublayer, including one inside a group.
+fn next_group(cx: &ToolContext, ancestry: &[NodeId]) -> Option {
+ // Skip the layer and its sublayers: they are not objects.
+ let layers = ancestry.iter().take_while(|id| cx.doc.node(**id).is_some_and(Node::is_layer)).count().max(1);
+ ancestry
+ .iter()
+ .skip(layers)
+ .rev()
+ .copied()
+ .take_while(|id| in_scope(cx.doc, cx.isolation, *id) && !cx.doc.node(*id).is_some_and(Node::is_layer))
+ .find(|id| !cx.selection.contains(*id))
+}
+
/// The segment of path `id` nearest to `p`, where the hit test found its stroke.
fn segment_at(cx: &ToolContext, id: NodeId, p: Point) -> Option {
let pd = cx.doc.node(id)?.path_data()?;
@@ -453,11 +576,16 @@ impl Tool for DirectSelectionTool {
fn options(&self) -> Value {
self.mesh.options()
}
- /// Escape during a drag (anchors, handles, segments, objects, type areas, blend spines, a
- /// marquee) cancels it: what it moved goes back and the tool waits for the next press (#1743).
+ /// Escape during a drag (anchors, handles, segments, objects, type areas, blend spines, mesh
+ /// points, corner widgets, the brackets of type on a path, a marquee) cancels it: what it moved
+ /// goes back and the tool waits for the next press (#1743).
/// With Group Selection, E during a marquee drag makes the marquee select only the objects
/// entirely inside it, whole, and E pressed again makes it select what it selects by default.
- fn key(&mut self, _cx: &ToolContext, key: ToolKey, _mods: Mods) -> Vec {
+ /// The arrow keys nudge the selected frame anchors of area type.
+ fn key(&mut self, cx: &ToolContext, key: ToolKey, mods: Mods) -> Vec {
+ if let Some((items, d)) = self.frame_nudge(cx, key, mods) {
+ return vec![Action::Exec("text.reshapeArea".into(), reshape_params(&items, d)), Action::Notify(FRAME_PICKED.into())];
+ }
if self.claims_letter(key)
&& let State::Marquee { enclosed, .. } = &mut self.state
{
@@ -467,17 +595,26 @@ impl Tool for DirectSelectionTool {
if key == ToolKey::Escape && self.guide.busy() {
return self.guide.cancel();
}
- if key != ToolKey::Escape || matches!(self.state, State::Idle | State::Mesh | State::Corner(_) | State::Bracket(_)) {
+ if key != ToolKey::Escape || matches!(self.state, State::Idle) {
return vec![];
}
+ // A mesh point drag ends here too; the `Action::Cancel` below undoes it.
+ self.mesh.cancel();
+ // The frame anchors a cancelled drag held stay selected.
+ let frame = matches!(self.state, State::TypeArea { .. }) && !self.frame.is_empty();
self.state = State::Idle;
self.guides.clear();
(self.anchor_snap, self.copy_snap, self.move_snap) = (None, None, None);
- (self.click, self.click_segment) = (None, None);
- vec![Action::Cancel]
+ (self.click, self.click_segment, self.click_group, self.frame_click) = (None, None, None, None);
+ if frame { vec![Action::Cancel, Action::Notify(FRAME_PICKED.into())] } else { vec![Action::Cancel] }
}
- fn claims_key(&self, _cx: &ToolContext, key: ToolKey) -> bool {
- self.claims_letter(key)
+ fn claims_key(&self, cx: &ToolContext, key: ToolKey) -> bool {
+ self.claims_letter(key) || self.frame_nudge(cx, key, Mods::default()).is_some()
+ }
+ fn notify(&mut self, cx: &ToolContext, what: &str) {
+ if what == FRAME_PICKED {
+ self.frame_revision = cx.revision;
+ }
}
fn pointer(&mut self, cx: &ToolContext, ev: &PointerEvent) -> Vec {
if let Some(out) = self.guide.pointer(cx, ev) {
@@ -497,6 +634,8 @@ impl Tool for DirectSelectionTool {
(PointerKind::Down, _) => {
self.click = None;
self.click_segment = None;
+ self.click_group = None;
+ self.frame_click = None;
if let Some(c) = CornerDrag::hit(cx, ev, true) {
self.state = State::Corner(c);
return vec![];
@@ -534,7 +673,8 @@ impl Tool for DirectSelectionTool {
return self.press_anchor(cx, ev, p, (id, si, ai, grab));
}
if let Some((id, anchors)) = hit_frame_edge(cx, p, tol) {
- return self.press_type_area(cx, id, anchors, p, ev.mods.shift);
+ self.frame.clear();
+ return self.press_type_area(cx, id, vec![(id, anchors)], p, ev.mods.shift);
}
// A curved segment of a selected blend's spine reshapes, as a path's does.
if let Some((id, seg, t, false)) = hit_spine_segment(cx, p, tol) {
@@ -548,6 +688,9 @@ impl Tool for DirectSelectionTool {
if let Some(h) = hit_test(cx.doc, p, cx.selection_hit_options()) {
return self.press_object(cx, ev, p, tol, h);
}
+ if let Some(out) = self.press_hidden(cx, ev, p) {
+ return out;
+ }
self.state = State::Marquee { start: p, cur: p, toggle: ev.mods.shift, enclosed: false };
vec![]
}
@@ -569,9 +712,9 @@ impl Tool for DirectSelectionTool {
out
}
(PointerKind::Drag, State::MoveObject { start, grab, hold, began, .. }) => self.drag_move_object(cx, ev, p, (start, grab, hold, began)),
- (PointerKind::Drag, State::TypeArea { id, anchors, start, began }) => {
+ (PointerKind::Drag, State::TypeArea { items, start, began }) => {
let mut out = vec![];
- let on_path = cx.doc.node(id).is_some_and(is_path_type);
+ let on_path = items.first().and_then(|(id, _)| cx.doc.node(*id)).is_some_and(is_path_type);
if !began {
if p.distance(start) < cx.tol(3.0) {
return out;
@@ -580,8 +723,8 @@ impl Tool for DirectSelectionTool {
}
let d = move_delta(start, p, ev.mods.shift, cx.constrain_angle);
let cmd = if on_path { "text.reshapePath" } else { "text.reshapeArea" };
- out.push(Action::Preview(cmd.into(), json!({"id": id.0, "anchors": anchors_json(&anchors), "dx": d.x, "dy": d.y})));
- self.state = State::TypeArea { id, anchors, start, began: true };
+ out.push(Action::Preview(cmd.into(), reshape_params(&items, d)));
+ self.state = State::TypeArea { items, start, began: true };
out
}
(PointerKind::Drag, State::Handle { id, si, ai, out }) => {
@@ -661,7 +804,7 @@ impl Tool for DirectSelectionTool {
| State::SpinePoint { began, .. }
| State::SpineSegment { began, .. }
| State::TypeArea { began, .. },
- ) => self.release_move(began),
+ ) => self.release_move(cx, began),
(PointerKind::Up, State::Handle { .. } | State::SpineHandle { .. }) => {
self.state = State::Idle;
self.guides.clear();
@@ -679,7 +822,7 @@ impl Tool for DirectSelectionTool {
let mut out = self.spine_overlays(cx);
out.extend(self.mesh.overlays(cx));
if !self.group {
- out.extend(frame_overlays(cx));
+ out.extend(frame_overlays(cx, &self.frame_anchors(cx)));
out.extend(pathtype::overlays(cx));
}
if matches!(self.state, State::Handle { .. } | State::MoveAnchors { .. } | State::MoveObject { .. }) {
@@ -792,22 +935,60 @@ fn hovered_anchor(cx: &ToolContext, p: Point) -> Option<(NodeId, Point)> {
}
/// The frame anchors of the selected area type and the path anchors of the selected type on a
-/// path, which Direct Selection drags.
-fn frame_overlays(cx: &ToolContext) -> Vec {
+/// path, which Direct Selection drags; the `selected` frame anchors are filled.
+fn frame_overlays(cx: &ToolContext, selected: &[(NodeId, Vec)]) -> Vec {
let mut out = vec![];
for id in &cx.selection.objects {
let Some(frame) = cx.doc.node(*id).filter(|n| is_area_type(n) || is_path_type(n)).and_then(editable_path) else { continue };
let color = cx.doc.layer_color(*id);
- out.extend(frame.anchors().map(|(_, _, a)| Overlay::Anchor { p: a.p, color, filled: false, size: 5.0 }));
+ let picked = selected.iter().find(|(s, _)| s == id).map(|(_, v)| v.as_slice()).unwrap_or_default();
+ out.extend(frame.anchors().map(|(si, ai, a)| Overlay::Anchor { p: a.p, color, filled: picked.contains(&(si, ai)), size: 5.0 }));
}
out
}
impl DirectSelectionTool {
+ /// Press on a frame anchor of area type: Shift toggles it among the selected frame anchors;
+ /// without Shift, one not among them becomes the only one, and one among them becomes the only
+ /// one when the press is released without a drag. A drag moves them all.
+ fn press_frame_anchor(&mut self, cx: &ToolContext, id: NodeId, anchor: AnchorRef, p: Point, shift: bool) -> Vec {
+ let mut picked: BTreeMap> =
+ self.frame_anchors(cx).into_iter().map(|(id, v)| (id, v.into_iter().collect())).collect();
+ let on = picked.get(&id).is_some_and(|set| set.contains(&anchor));
+ if shift {
+ let set = picked.entry(id).or_default();
+ if on {
+ set.remove(&anchor);
+ } else {
+ set.insert(anchor);
+ }
+ if set.is_empty() {
+ picked.remove(&id);
+ }
+ } else if !on {
+ picked = BTreeMap::from([(id, BTreeSet::from([anchor]))]);
+ }
+ // The selected objects follow: the type is selected while it has selected frame anchors,
+ // and a click that picks a new anchor without Shift selects that type alone.
+ let mut out = vec![];
+ let any = picked.contains_key(&id);
+ if !shift && !on && cx.selection.objects != [id] {
+ out.push(Action::Exec("select.set".into(), json!({"ids": [id.0]})));
+ } else if shift && cx.selection.contains(id) != any {
+ out.push(Action::Exec("select.toggle".into(), json!({"id": id.0})));
+ }
+ let items: FrameAnchors = picked.iter().map(|(id, set)| (*id, set.iter().copied().collect())).collect();
+ self.state = if items.is_empty() { State::Idle } else { State::TypeArea { items, start: p, began: false } };
+ self.frame = picked;
+ self.frame_click = (on && !shift).then_some((id, anchor));
+ out.push(Action::Notify(FRAME_PICKED.into()));
+ out
+ }
+
/// Press on area type's frame anchors (a corner, or an edge's two ends) or an anchor of type
- /// on a path's path: select the text and get ready to drag them.
- fn press_type_area(&mut self, cx: &ToolContext, id: NodeId, anchors: Vec, p: Point, shift: bool) -> Vec {
- self.state = State::TypeArea { id, anchors, start: p, began: false };
+ /// on a path's path, of `id`: select the text and get ready to drag `items`.
+ fn press_type_area(&mut self, cx: &ToolContext, id: NodeId, items: FrameAnchors, p: Point, shift: bool) -> Vec {
+ self.state = State::TypeArea { items, start: p, began: false };
if cx.selection.contains(id) {
vec![]
} else if shift {
@@ -836,12 +1017,26 @@ impl DirectSelectionTool {
mod tests;
impl DirectSelectionTool {
+ /// A press where a clipping mask hides the art of a selected object (picked in the Layers
+ /// panel, say) grabs the selection by it, as a press on its visible part does; `None`
+ /// elsewhere, and with Shift (a marquee then adds to the selection).
+ fn press_hidden(&mut self, cx: &ToolContext, ev: &PointerEvent, p: Point) -> Option> {
+ if ev.mods.shift {
+ return None;
+ }
+ selected_hidden_at(cx.doc, p, cx.selection_hit_options(), &cx.selection.objects)?;
+ self.state = State::MoveObject { start: p, grab: None, hold: p, began: false, deselect: None };
+ Some(vec![])
+ }
fn press_group(&mut self, cx: &ToolContext, ev: &PointerEvent, p: Point, tol: f64) -> Vec {
if let Some(out) = self.guide.press(cx, ev) {
self.state = State::Idle;
return out;
}
let Some(mut h) = hit_test(cx.doc, p, cx.selection_hit_options()) else {
+ if let Some(out) = self.press_hidden(cx, ev, p) {
+ return out;
+ }
self.state = State::Marquee { start: p, cur: p, toggle: ev.mods.shift, enclosed: false };
return vec![];
};
@@ -850,11 +1045,7 @@ impl DirectSelectionTool {
h.ancestry.push(part);
h.leaf = part;
}
- // Walk up from the leaf: select the first ancestor not yet selected (below the layer).
- // Stop at the isolated object: the next group up is outside isolation mode.
- let chain: Vec = h.ancestry.iter().skip(1).rev().copied().take_while(|id| in_scope(cx.doc, cx.isolation, *id)).collect();
- let target =
- if cx.selection.contains(h.leaf) { chain.iter().find(|id| !cx.selection.contains(**id)).copied().unwrap_or(h.leaf) } else { h.leaf };
+ let target = if cx.selection.contains(h.leaf) { next_group(cx, &h.ancestry).unwrap_or(h.leaf) } else { h.leaf };
let mut deselect = None;
let mut out = vec![];
if ev.mods.shift {
@@ -887,19 +1078,31 @@ impl DirectSelectionTool {
return vec![];
}
// A double-click edits what is drawn: not a clipping path's outline.
- if hit_test(cx.doc, p, cx.hit_options()).and_then(|h| cx.doc.node(h.leaf)).is_some_and(|n| matches!(n.kind, NodeKind::Text(_))) {
+ let hit = hit_test(cx.doc, p, cx.hit_options());
+ if hit.as_ref().and_then(|h| cx.doc.node(h.leaf)).is_some_and(|n| matches!(n.kind, NodeKind::Text(_))) {
return vec![Action::SwitchTool("type".into())];
}
+ // Outside the isolated art it leaves isolation mode, as with the Selection tool (#4466).
+ if hit.is_none() && cx.isolation.is_some() {
+ return vec![Action::Exec("object.exitIsolation".into(), json!({}))];
+ }
vec![]
}
fn press_anchor(&mut self, cx: &ToolContext, ev: &PointerEvent, p: Point, (id, si, ai, grab): (NodeId, usize, usize, Point)) -> Vec {
- if cx.doc.node(id).is_some_and(|n| is_area_type(n) || is_path_type(n)) {
- return self.press_type_area(cx, id, vec![(si, ai)], p, ev.mods.shift);
+ if cx.doc.node(id).is_some_and(is_area_type) {
+ return self.press_frame_anchor(cx, id, (si, ai), p, ev.mods.shift);
}
- // Alt picks the whole path (and Alt-drag copies it), as on a segment.
+ if cx.doc.node(id).is_some_and(is_path_type) {
+ return self.press_type_area(cx, id, vec![(id, vec![(si, ai)])], p, ev.mods.shift);
+ }
+ // Alt picks the whole path (and Alt-drag copies it), as on a segment. On a path
+ // already selected whole, an Alt-click adds the next enclosing group on release.
if ev.mods.alt {
self.state = State::MoveObject { start: p, grab: Some(grab), hold: grab, began: false, deselect: None };
let whole = cx.selection.contains(id) && cx.selection.partial(id).is_none();
+ if whole && !ev.mods.shift {
+ self.click_group = cx.doc.ancestry(id).and_then(|a| next_group(cx, &a));
+ }
return if whole { vec![] } else { vec![Action::Exec("select.set".into(), json!({"ids": [id.0]}))] };
}
// A path with all its anchors selected is stored whole (no partial entry).
@@ -956,11 +1159,17 @@ impl DirectSelectionTool {
return vec![Action::Exec("select.segments".into(), json!({"id": h.leaf.0, "segments": [[s.si, s.seg]]}))];
}
}
- // Clicking the fill selects the whole leaf path (all anchors).
+ // Clicking the fill selects the whole leaf path (all anchors). With Alt, a click
+ // on a path already selected whole adds the next enclosing group on release,
+ // as Group Selection's click does; each further Alt-click climbs one level.
self.state = State::MoveObject { start: p, grab: None, hold: hold_point(cx, &h, p), began: false, deselect: None };
+ if ev.mods.alt && whole && !ev.mods.shift {
+ self.click_group = next_group(cx, &h.ancestry);
+ }
if ev.mods.shift {
return vec![Action::Exec("select.toggle".into(), json!({"id": h.leaf.0}))];
}
+ self.frame.clear();
if !cx.selection.contains(h.leaf) || cx.selection.partial(h.leaf).is_some() {
return vec![Action::Exec("select.set".into(), json!({"ids": [h.leaf.0]}))];
}
@@ -1002,7 +1211,16 @@ impl DirectSelectionTool {
if p.distance(start) < cx.tol(3.0) {
return out;
}
- out.push(Action::Begin(if ev.mods.alt { "Copy".into() } else { "Move".into() }));
+ // With direct-selected anchors or segments in the selection, the drag moves
+ // them and the objects selected whole (`path.moveAnchors`), as an anchor drag
+ // does, while Alt is up; the other anchors of a partly selected path stay in
+ // place. The history names the move or the copy at the end.
+ self.partial_snap = (!cx.selection.anchors.is_empty()).then(|| PointSnap::new(cx, || Targets::for_anchor_drag(cx.doc, cx.selection)));
+ let grid = self.partial_snap.is_some() && grab.is_none() && (cx.snap_to_grid || cx.snap_to_pixel);
+ self.partial_grid =
+ grid.then(|| MoveSnap::grid_only(vectorcraft_effects::preview::anchor_bounds(cx.selection, cx.doc, cx.preview_bounds)));
+ let copy = ev.mods.alt && self.partial_snap.is_none();
+ out.push(Action::Begin(if copy { "Copy".into() } else { "Move".into() }));
self.state = State::MoveObject { start, grab, hold, began: true, deselect: None };
if grab.is_some() {
// Alt can go down or up at any time: gather both while nothing has moved.
@@ -1015,6 +1233,21 @@ impl DirectSelectionTool {
let mut d = move_delta(start, p, ev.mods.shift, cx.constrain_angle);
let unsnapped = d;
self.guides.clear();
+ if !ev.mods.alt
+ && let Some(snap) = &self.partial_snap
+ {
+ let held = grab.unwrap_or(hold);
+ if let Some(grid) = &self.partial_grid {
+ (d, self.guides) = if ev.mods.shift { grid.snap_along(cx, held, d, false) } else { grid.snap(cx, held, d, false) };
+ } else {
+ let shift = ev.mods.shift.then(|| Leave::segment(cx, held, true));
+ let (q, guides) = snap.snap_from(cx, held + (p - start), shift.as_ref());
+ (d, self.guides) = (q - held, guides);
+ }
+ self.snapped = snapped(d, unsnapped, ev.mods.shift, &self.guides);
+ out.push(Action::Preview("path.moveAnchors".into(), json!({"dx": d.x, "dy": d.y})));
+ return out;
+ }
let snap = if ev.mods.alt { &self.copy_snap } else { &self.anchor_snap };
if let (Some(grab), Some(snap)) = (grab, snap) {
let shift = ev.mods.shift.then(|| Leave::segment(cx, grab, true));
@@ -1030,15 +1263,29 @@ impl DirectSelectionTool {
));
out
}
- fn release_move(&mut self, began: bool) -> Vec {
+ fn release_move(&mut self, cx: &ToolContext, began: bool) -> Vec {
let deselect = match self.state {
State::MoveObject { deselect, .. } => deselect,
_ => None,
};
+ // The frame anchors a drag moved stay selected.
+ let frame = matches!(self.state, State::TypeArea { .. }) && !self.frame.is_empty();
self.state = State::Idle;
self.guides.clear();
(self.anchor_snap, self.copy_snap, self.move_snap) = (None, None, None);
+ let group = self.click_group.take();
+ // A click on one of several selected frame anchors selects it alone.
+ if let (false, Some((id, anchor))) = (began, self.frame_click.take()) {
+ self.frame = BTreeMap::from([(id, BTreeSet::from([anchor]))]);
+ let mut out = vec![];
+ if cx.selection.objects != [id] {
+ out.push(Action::Exec("select.set".into(), json!({"ids": [id.0]})));
+ }
+ out.push(Action::Notify(FRAME_PICKED.into()));
+ return out;
+ }
match (began, deselect, self.click.take(), self.click_segment.take()) {
+ (true, ..) if frame => vec![Action::Commit, Action::Notify(FRAME_PICKED.into())],
(true, ..) => vec![Action::Commit],
(false, Some(id), _, _) => vec![Action::Exec("select.toggle".into(), json!({"id": id.0}))],
(false, None, Some((id, si, ai)), _) => {
@@ -1047,14 +1294,18 @@ impl DirectSelectionTool {
(false, None, None, Some((id, si, seg))) => {
vec![Action::Exec("select.segments".into(), json!({"id": id.0, "segments": [[si, seg]]}))]
}
- (false, None, None, None) => vec![],
+ (false, None, None, None) => group.map(|g| Action::Exec("select.add".into(), json!({"ids": [g.0]}))).into_iter().collect(),
}
}
fn release_marquee(&mut self, cx: &ToolContext, p: Point, (start, toggle, enclosed): (Point, bool, bool)) -> Vec {
self.state = State::Idle;
let r = Rect::from_points(start, p);
if r.width() < cx.tol(3.0) && r.height() < cx.tol(3.0) {
- return if toggle { vec![] } else { vec![Action::Exec("select.none".into(), json!({}))] };
+ if toggle {
+ return vec![];
+ }
+ self.frame.clear();
+ return vec![Action::Exec("select.none".into(), json!({}))];
}
// With Group Selection's enclosed marquee, the tool selects the objects inside it
// (members of groups too), each whole, as a click selects one.
@@ -1076,18 +1327,54 @@ impl DirectSelectionTool {
}
}
});
+ let editable = cx.doc.editable();
+ // Direct Selection: the frame anchors of area type inside the rect are selected
+ // (with Shift, toggled), and the type with them, whole.
+ let mut framed: Vec<(NodeId, BTreeSet)> = vec![];
+ if !self.group {
+ walk_pickable(cx.doc, cx.isolation, |n| {
+ if is_area_type(n)
+ && let Some(frame) = editable_path(n)
+ {
+ let inside: BTreeSet = frame.anchors().filter(|(_, _, a)| r.contains(a.p)).map(|(s, i, _)| (s, i)).collect();
+ if !inside.is_empty() {
+ framed.push((n.id, inside));
+ }
+ }
+ });
+ framed.retain(|(id, _)| editable(*id));
+ }
+ let mut marked: BTreeMap> =
+ if toggle { self.frame_anchors(cx).into_iter().map(|(id, v)| (id, v.into_iter().collect())).collect() } else { BTreeMap::new() };
+ for (id, inside) in &framed {
+ let set = marked.entry(*id).or_default();
+ *set = if toggle { set.symmetric_difference(inside).copied().collect() } else { inside.clone() };
+ let any = !set.is_empty();
+ if !any {
+ marked.remove(id);
+ }
+ // With Shift the type is toggled only when it gains its first selected frame
+ // anchor or loses its last one.
+ if !toggle || cx.selection.contains(*id) != any {
+ sel.push((*id, vec![]));
+ }
+ }
// Objects without anchors to pick (type, images, symbols…) are selected whole when
// the marquee touches them, as with the Selection tool (#927).
for id in vectorcraft_doc::hit::marquee(cx.doc, r, cx.isolation, true) {
let whole = cx.doc.node(id).is_some_and(|n| !matches!(n.kind, NodeKind::Path { .. } | NodeKind::Compound { .. }));
- if whole && !sel.iter().any(|(s, _)| *s == id) {
+ if whole && !sel.iter().any(|(s, _)| *s == id) && !framed.iter().any(|(f, _)| *f == id) {
sel.push((id, vec![]));
}
}
- let editable = cx.doc.editable();
sel.retain(|(id, _)| editable(*id));
+ self.frame = marked;
let items: Vec = sel.iter().map(|(id, v)| json!({"id": id.0, "anchors": anchors_json(v)})).collect();
let art = Action::Exec("select.anchorsMany".into(), json!({"items": items, "mode": if toggle { "toggle" } else { "set" }}));
- std::iter::once(art).chain(crate::rulerguide::marquee_select(cx, r, false)).collect()
+ let mut out: Vec = std::iter::once(art).chain(crate::rulerguide::marquee_select(cx, r, false)).collect();
+ if !self.frame.is_empty() {
+ out.push(Action::Notify(FRAME_PICKED.into()));
+ }
+ out
}
}
diff --git a/crates/tools/src/direct/tests.rs b/crates/tools/src/direct/tests.rs
index 311efe2231..d191085091 100644
--- a/crates/tools/src/direct/tests.rs
+++ b/crates/tools/src/direct/tests.rs
@@ -2,6 +2,40 @@ use super::*;
use crate::testutil::*;
use vectorcraft_doc::Selection;
+/// Direct Selection and Group Selection grab a selected clipped object (picked in the Layers
+/// panel) where its mask hides it, as on its visible part: a drag moves it. With nothing of it
+/// selected there, a press starts a marquee.
+#[test]
+fn a_press_where_a_mask_hides_a_selected_object_drags_it() {
+ let (d, _, _, art) = doc_with_masked_square();
+ let p = paint();
+ let mut picked = Selection::default();
+ picked.add(art);
+ let none = Selection::default();
+ // (370, 450): on the art, outside the mask (400..500).
+ for group in [false, true] {
+ let c = cx(&d, &picked, &p);
+ let mut t = DirectSelectionTool::new(group);
+ let down = t.pointer(&c, &PointerEvent::new(PointerKind::Down, 370.0, 450.0));
+ assert!(!down.iter().any(|a| matches!(a, Action::Exec(c, _) if c.starts_with("select."))), "{down:?} (group: {group})");
+ let a = t.pointer(&c, &PointerEvent::new(PointerKind::Drag, 390.0, 470.0));
+ assert!(a.iter().any(|a| matches!(a, Action::Begin(n) if n == "Move")), "{a:?} (group: {group})");
+ t.pointer(&c, &PointerEvent::new(PointerKind::Up, 390.0, 470.0));
+ // With Shift, a marquee.
+ let shift = Mods { shift: true, ..Mods::default() };
+ let mut t = DirectSelectionTool::new(group);
+ t.pointer(&c, &PointerEvent::new(PointerKind::Down, 370.0, 450.0).with_mods(shift));
+ let a = t.pointer(&c, &PointerEvent::new(PointerKind::Drag, 390.0, 470.0).with_mods(shift));
+ assert!(!a.iter().any(|a| matches!(a, Action::Begin(_))), "{a:?} (group: {group})");
+ assert!(t.overlays(&c).iter().any(|o| matches!(o, Overlay::Marquee(_))), "a marquee (group: {group})");
+ let c = cx(&d, &none, &p);
+ let mut t = DirectSelectionTool::new(group);
+ t.pointer(&c, &PointerEvent::new(PointerKind::Down, 370.0, 450.0));
+ let a = t.pointer(&c, &PointerEvent::new(PointerKind::Drag, 390.0, 470.0));
+ assert!(!a.iter().any(|a| matches!(a, Action::Begin(_))), "{a:?} (group: {group})");
+ }
+}
+
/// #414: a ruler guide is picked over the art, but an anchor on it is picked first.
#[test]
fn direct_and_group_selection_pick_ruler_guides() {
@@ -250,13 +284,13 @@ fn dragging_a_frame_corner_or_edge_reshapes_area_type() {
// The bottom-right corner of the 120 × 40 frame at (300, 300) selects the text...
assert_eq!(
t.pointer(&cx1, &PointerEvent::new(PointerKind::Down, 421.0, 339.0)),
- vec![Action::Exec("select.set".into(), json!({"ids": [text.0]}))]
+ vec![Action::Exec("select.set".into(), json!({"ids": [text.0]})), Action::Notify(FRAME_PICKED.into())]
);
// ...and drags that corner.
let a = t.pointer(&cx1, &PointerEvent::new(PointerKind::Drag, 461.0, 399.0));
assert_eq!(a[0], Action::Begin("Reshape Type Area".into()));
assert_eq!(a[1], Action::Preview("text.reshapeArea".into(), json!({"id": text.0, "anchors": [[0, 2]], "dx": 40.0, "dy": 60.0})));
- assert_eq!(t.pointer(&cx1, &PointerEvent::new(PointerKind::Up, 461.0, 399.0)), vec![Action::Commit]);
+ assert_eq!(t.pointer(&cx1, &PointerEvent::new(PointerKind::Up, 461.0, 399.0)), vec![Action::Commit, Action::Notify(FRAME_PICKED.into())]);
// The top edge drags both its ends; a click alone changes nothing.
let mut s = Selection::default();
s.add(text);
@@ -265,10 +299,146 @@ fn dragging_a_frame_corner_or_edge_reshapes_area_type() {
let a = t.pointer(&cx2, &PointerEvent::new(PointerKind::Drag, 350.0, 281.0));
assert_eq!(a[1], Action::Preview("text.reshapeArea".into(), json!({"id": text.0, "anchors": [[0, 0], [0, 1]], "dx": 0.0, "dy": -20.0})));
t.pointer(&cx2, &PointerEvent::new(PointerKind::Up, 350.0, 281.0));
- assert!(t.pointer(&cx2, &PointerEvent::new(PointerKind::Down, 300.0, 340.0)).is_empty());
+ assert_eq!(t.pointer(&cx2, &PointerEvent::new(PointerKind::Down, 300.0, 340.0)), vec![Action::Notify(FRAME_PICKED.into())]);
assert!(t.pointer(&cx2, &PointerEvent::new(PointerKind::Up, 300.0, 340.0)).is_empty());
- // The selected frame's corners show.
- assert_eq!(t.overlays(&cx2).iter().filter(|o| matches!(o, Overlay::Anchor { filled: false, .. })).count(), 4);
+ // The selected frame's corners show, the one clicked filled.
+ assert_eq!(t.overlays(&cx2).iter().filter(|o| matches!(o, Overlay::Anchor { filled: false, .. })).count(), 3);
+ assert_eq!(t.overlays(&cx2).iter().filter(|o| matches!(o, Overlay::Anchor { p, filled: true, .. } if *p == Point::new(300.0, 340.0))).count(), 1);
+}
+
+/// The frame anchor squares of the selected area type that `t` draws: (filled, hollow).
+fn frame_squares(t: &DirectSelectionTool, c: &ToolContext) -> (Vec, Vec) {
+ let mut out = (vec![], vec![]);
+ for o in t.overlays(c) {
+ if let Overlay::Anchor { p, filled, size: 5.0, .. } = o {
+ if filled { out.0.push(p) } else { out.1.push(p) }
+ }
+ }
+ out
+}
+
+/// A Direct Selection marquee selects the frame anchors of area type inside it, which show
+/// filled: a drag of one moves them all, the arrow keys nudge them, and Shift toggles them.
+#[test]
+fn a_marquee_selects_frame_anchors_of_area_type() {
+ let (d, text) = doc_with_area_type();
+ let p = paint();
+ let none = Selection::default();
+ let cx1 = cx(&d, &none, &p);
+ let mut t = DirectSelectionTool::new(false);
+ let ev = |k, x, y| PointerEvent::new(k, x, y);
+ let shift = |k, x, y| PointerEvent::new(k, x, y).with_mods(Mods { shift: true, ..Mods::default() });
+ // A marquee round the 120 × 40 frame's right-hand corners, (420, 300) and (420, 340).
+ assert!(t.pointer(&cx1, &ev(PointerKind::Down, 400.0, 280.0)).is_empty());
+ t.pointer(&cx1, &ev(PointerKind::Drag, 440.0, 360.0));
+ assert_eq!(
+ t.pointer(&cx1, &ev(PointerKind::Up, 440.0, 360.0)),
+ vec![
+ Action::Exec("select.anchorsMany".into(), json!({"items": [{"id": text.0, "anchors": []}], "mode": "set"})),
+ Action::Notify(FRAME_PICKED.into()),
+ ]
+ );
+ let mut s = Selection::default();
+ s.add(text);
+ let cx2 = cx(&d, &s, &p);
+ t.notify(&cx2, FRAME_PICKED);
+ let (filled, hollow) = frame_squares(&t, &cx2);
+ assert_eq!(filled, vec![Point::new(420.0, 300.0), Point::new(420.0, 340.0)]);
+ assert_eq!(hollow, vec![Point::new(300.0, 300.0), Point::new(300.0, 340.0)]);
+ // A drag of one of them moves both.
+ assert_eq!(t.pointer(&cx2, &ev(PointerKind::Down, 420.0, 340.0)), vec![Action::Notify(FRAME_PICKED.into())]);
+ let a = t.pointer(&cx2, &ev(PointerKind::Drag, 440.0, 360.0));
+ assert_eq!(a[0], Action::Begin("Reshape Type Area".into()));
+ assert_eq!(a[1], Action::Preview("text.reshapeArea".into(), json!({"id": text.0, "anchors": [[0, 1], [0, 2]], "dx": 20.0, "dy": 20.0})));
+ assert_eq!(t.pointer(&cx2, &ev(PointerKind::Up, 440.0, 360.0)), vec![Action::Commit, Action::Notify(FRAME_PICKED.into())]);
+ // The arrow keys nudge them by the keyboard increment, ten times that with Shift.
+ let nudged = |anchors: Value, dx: f64, dy: f64| {
+ vec![
+ Action::Exec("text.reshapeArea".into(), json!({"id": text.0, "anchors": anchors, "dx": dx, "dy": dy})),
+ Action::Notify(FRAME_PICKED.into()),
+ ]
+ };
+ assert!(t.claims_key(&cx2, ToolKey::Right) && !t.claims_key(&cx2, ToolKey::Enter));
+ assert_eq!(t.key(&cx2, ToolKey::Right, Mods::default()), nudged(json!([[0, 1], [0, 2]]), 1.0, 0.0));
+ assert_eq!(t.key(&cx2, ToolKey::Up, Mods { shift: true, ..Mods::default() }), nudged(json!([[0, 1], [0, 2]]), 0.0, -10.0));
+ // Any other change of the document or the selection (Deselect, then the same type selected
+ // again) leaves the type selected whole: the arrow keys are no longer the tool's.
+ let mut later = cx(&d, &s, &p);
+ later.revision = (0, 1);
+ assert!(frame_squares(&t, &later).0.is_empty());
+ assert!(!t.claims_key(&later, ToolKey::Right));
+ // Shift-click takes one out; the other still nudges.
+ assert_eq!(t.pointer(&cx2, &shift(PointerKind::Down, 420.0, 300.0)), vec![Action::Notify(FRAME_PICKED.into())]);
+ assert!(t.pointer(&cx2, &shift(PointerKind::Up, 420.0, 300.0)).is_empty());
+ assert_eq!(frame_squares(&t, &cx2).0, vec![Point::new(420.0, 340.0)]);
+ assert_eq!(t.key(&cx2, ToolKey::Down, Mods::default()), nudged(json!([[0, 2]]), 0.0, 1.0));
+ // A Shift-marquee round the bottom corners toggles them: (300, 340) joins, (420, 340) leaves.
+ t.pointer(&cx2, &shift(PointerKind::Down, 280.0, 330.0));
+ t.pointer(&cx2, &shift(PointerKind::Drag, 440.0, 360.0));
+ let a = t.pointer(&cx2, &shift(PointerKind::Up, 440.0, 360.0));
+ assert_eq!(a[0], Action::Exec("select.anchorsMany".into(), json!({"items": [], "mode": "toggle"})), "the type stays selected");
+ assert_eq!(frame_squares(&t, &cx2).0, vec![Point::new(300.0, 340.0)]);
+ // When the selection changes, the frame anchors are no longer selected.
+ assert!(frame_squares(&t, &cx1).0.is_empty());
+ assert!(!t.claims_key(&cx1, ToolKey::Right) && t.key(&cx1, ToolKey::Right, Mods::default()).is_empty());
+ // A marquee that also reaches a path's anchor (the rectangle's corner at (200, 200)) selects
+ // the type whole, as before: the arrow keys move the path's anchor and the type alike.
+ let rect = d.layers[0].children().and_then(|c| c.first()).map(|n| n.id).unwrap();
+ t.pointer(&cx1, &ev(PointerKind::Down, 440.0, 360.0));
+ t.pointer(&cx1, &ev(PointerKind::Drag, 190.0, 190.0));
+ let a = t.pointer(&cx1, &ev(PointerKind::Up, 190.0, 190.0));
+ let items = json!([{"id": rect.0, "anchors": [[0, 2]]}, {"id": text.0, "anchors": []}]);
+ assert_eq!(a[0], Action::Exec("select.anchorsMany".into(), json!({"items": items, "mode": "set"})));
+ let mut mixed = Selection::default();
+ mixed.add(rect);
+ mixed.anchors.insert(rect, [(0, 2)].into());
+ mixed.add(text);
+ let cx3 = cx(&d, &mixed, &p);
+ t.notify(&cx3, FRAME_PICKED);
+ assert!(frame_squares(&t, &cx3).0.is_empty());
+ assert!(!t.claims_key(&cx3, ToolKey::Right));
+ // Group Selection's marquee selects the type whole, without its frame anchors.
+ let mut g = DirectSelectionTool::new(true);
+ g.pointer(&cx1, &ev(PointerKind::Down, 400.0, 280.0));
+ g.pointer(&cx1, &ev(PointerKind::Drag, 440.0, 360.0));
+ assert_eq!(
+ g.pointer(&cx1, &ev(PointerKind::Up, 440.0, 360.0)),
+ vec![Action::Exec("select.anchorsMany".into(), json!({"items": [{"id": text.0, "anchors": []}], "mode": "set"}))]
+ );
+}
+
+/// A click without a drag on one of several selected frame anchors selects it alone, as a click on
+/// a selected path anchor does; a drag of it still moves them all.
+#[test]
+fn a_click_on_a_selected_frame_anchor_selects_it_alone() {
+ let (d, text) = doc_with_area_type();
+ let p = paint();
+ let none = Selection::default();
+ let cx1 = cx(&d, &none, &p);
+ let mut t = DirectSelectionTool::new(false);
+ let ev = |k, x, y| PointerEvent::new(k, x, y);
+ // A marquee round the right-hand corners, (420, 300) and (420, 340).
+ t.pointer(&cx1, &ev(PointerKind::Down, 400.0, 280.0));
+ t.pointer(&cx1, &ev(PointerKind::Drag, 440.0, 360.0));
+ t.pointer(&cx1, &ev(PointerKind::Up, 440.0, 360.0));
+ let mut s = Selection::default();
+ s.add(text);
+ let cx2 = cx(&d, &s, &p);
+ t.notify(&cx2, FRAME_PICKED);
+ assert_eq!(frame_squares(&t, &cx2).0, vec![Point::new(420.0, 300.0), Point::new(420.0, 340.0)]);
+ // A click on (420, 340) keeps both until the release, then selects it alone.
+ assert_eq!(t.pointer(&cx2, &ev(PointerKind::Down, 420.0, 340.0)), vec![Action::Notify(FRAME_PICKED.into())]);
+ assert_eq!(frame_squares(&t, &cx2).0.len(), 2, "both, for a drag");
+ assert_eq!(t.pointer(&cx2, &ev(PointerKind::Up, 420.0, 340.0)), vec![Action::Notify(FRAME_PICKED.into())]);
+ t.notify(&cx2, FRAME_PICKED);
+ assert_eq!(frame_squares(&t, &cx2).0, vec![Point::new(420.0, 340.0)]);
+ assert_eq!(
+ t.key(&cx2, ToolKey::Right, Mods::default()),
+ vec![
+ Action::Exec("text.reshapeArea".into(), json!({"id": text.0, "anchors": [[0, 2]], "dx": 1.0, "dy": 0.0})),
+ Action::Notify(FRAME_PICKED.into()),
+ ]
+ );
}
/// #3980: type on a path shows its path's anchors and a drag of one reshapes the path, the last
@@ -526,6 +696,141 @@ fn isolation_mode_leaves_art_outside_the_isolated_group() {
assert!(a.is_empty(), "does not add the group outside isolation ({outer:?}): {a:?}");
}
+/// #4466: in isolation mode a Direct Selection double-click outside the isolated art (on the
+/// object beside it, or on nothing) leaves isolation mode, as the Selection tool's does; on the
+/// isolated art it doesn't.
+#[test]
+fn a_double_click_outside_isolation_leaves_it() {
+ let (d, _, _, inner, _) = nested_group_doc();
+ let p = paint();
+ let none = Selection::default();
+ let isolated = ToolContext { isolation: Some(inner), ..cx(&d, &none, &p) };
+ let double = |x: f64, y: f64| DirectSelectionTool::new(false).pointer(&isolated, &PointerEvent::new(PointerKind::DoubleClick, x, y));
+ let exit = vec![Action::Exec("object.exitIsolation".into(), json!({}))];
+ assert_eq!(double(350.0, 350.0), exit, "on the object beside the isolated group");
+ assert_eq!(double(700.0, 700.0), exit, "on nothing");
+ assert!(double(150.0, 150.0).is_empty(), "on the isolated art");
+ assert!(DirectSelectionTool::new(false).pointer(&cx(&d, &none, &p), &PointerEvent::new(PointerKind::DoubleClick, 700.0, 700.0)).is_empty());
+}
+
+/// With Direct Selection, an Alt-click on a path selected whole adds its group on release, and
+/// each further Alt-click adds the next group up, as Group Selection's clicks do, on an anchor,
+/// a segment and the fill alike. The climb stops below the layer and at the isolated group.
+#[test]
+fn alt_clicks_on_a_path_selected_whole_add_its_groups() {
+ let (d, inside, _, inner, outer) = nested_group_doc();
+ let p = paint();
+ let alt = Mods { alt: true, ..Default::default() };
+ let add = |id: NodeId| vec![Action::Exec("select.add".into(), json!({"ids": [id.0]}))];
+ let click = |cx: &ToolContext, x: f64, y: f64| {
+ let mut t = DirectSelectionTool::new(false);
+ let down = t.pointer(cx, &PointerEvent::new(PointerKind::Down, x, y).with_mods(alt));
+ assert!(down.is_empty(), "({x}, {y}): {down:?}");
+ t.pointer(cx, &PointerEvent::new(PointerKind::Up, x, y).with_mods(alt))
+ };
+ for (x, y) in [(100.0, 100.0), (150.0, 100.0), (150.0, 150.0)] {
+ let mut s = Selection::default();
+ s.set([inside]);
+ assert_eq!(click(&cx(&d, &s, &p), x, y), add(inner), "({x}, {y}): the path's group");
+ s.set([inside, inner]);
+ assert_eq!(click(&cx(&d, &s, &p), x, y), add(outer), "({x}, {y}): the group around it");
+ s.set([inside, inner, outer]);
+ assert!(click(&cx(&d, &s, &p), x, y).is_empty(), "({x}, {y}): the layer is not added");
+ s.set([inside, inner]);
+ let isolated = ToolContext { isolation: Some(inner), ..cx(&d, &s, &p) };
+ assert!(click(&isolated, x, y).is_empty(), "({x}, {y}): not the group outside isolation");
+ }
+}
+
+/// In a sublayer, a Group Selection click and a Direct Selection Alt-click climb to the group
+/// and stop there: the sublayer is not added.
+#[test]
+fn group_clicks_in_a_sublayer_stop_below_the_sublayer() {
+ use vectorcraft_doc::{Appearance, Document, LayerColor, Node};
+ let mut d = Document::new(500.0, 500.0);
+ let l = d.layers[0].id;
+ let (sub, g, a) = (d.alloc_id(), d.alloc_id(), d.alloc_id());
+ d.insert(Some(l), 0, Node::layer(sub, "Sub", LayerColor::Preset(1))).unwrap();
+ d.insert(Some(sub), 0, Node::group(g, vec![])).unwrap();
+ d.insert(Some(g), 0, Node::path(a, vectorcraft_geom::shapes::rectangle(Rect::new(100.0, 100.0, 200.0, 200.0)), Appearance::default_art()))
+ .unwrap();
+ let p = paint();
+ let alt = Mods { alt: true, ..Default::default() };
+ let click = |s: &Selection, group: bool, mods: Mods| {
+ let c = cx(&d, s, &p);
+ let mut t = DirectSelectionTool::new(group);
+ let down = t.pointer(&c, &PointerEvent::new(PointerKind::Down, 150.0, 150.0).with_mods(mods));
+ let up = t.pointer(&c, &PointerEvent::new(PointerKind::Up, 150.0, 150.0).with_mods(mods));
+ [down, up].concat()
+ };
+ let add = |id: NodeId| vec![Action::Exec("select.add".into(), json!({"ids": [id.0]}))];
+ let mut s = Selection::default();
+ s.set([a]);
+ assert_eq!(click(&s, true, Mods::default()), add(g), "Group Selection adds the group");
+ assert_eq!(click(&s, false, alt), add(g), "an Alt-click adds the group");
+ s.set([a, g]);
+ assert!(click(&s, true, Mods::default()).is_empty(), "Group Selection does not add the sublayer");
+ assert!(click(&s, false, alt).is_empty(), "an Alt-click does not add the sublayer");
+}
+
+/// When a group holds a sublayer, the climb stops at the sublayer: it adds neither the sublayer
+/// nor the group above it.
+#[test]
+fn group_clicks_stop_at_a_sublayer_inside_a_group() {
+ use vectorcraft_doc::{Appearance, Document, LayerColor, Node};
+ let mut d = Document::new(500.0, 500.0);
+ let l = d.layers[0].id;
+ let (outer, sub, g, a) = (d.alloc_id(), d.alloc_id(), d.alloc_id(), d.alloc_id());
+ d.insert(Some(l), 0, Node::group(outer, vec![])).unwrap();
+ d.insert(Some(outer), 0, Node::layer(sub, "Sub", LayerColor::Preset(1))).unwrap();
+ d.insert(Some(sub), 0, Node::group(g, vec![])).unwrap();
+ d.insert(Some(g), 0, Node::path(a, vectorcraft_geom::shapes::rectangle(Rect::new(100.0, 100.0, 200.0, 200.0)), Appearance::default_art()))
+ .unwrap();
+ let p = paint();
+ let alt = Mods { alt: true, ..Default::default() };
+ let click = |s: &Selection, group: bool, mods: Mods| {
+ let c = cx(&d, s, &p);
+ let mut t = DirectSelectionTool::new(group);
+ let down = t.pointer(&c, &PointerEvent::new(PointerKind::Down, 150.0, 150.0).with_mods(mods));
+ let up = t.pointer(&c, &PointerEvent::new(PointerKind::Up, 150.0, 150.0).with_mods(mods));
+ [down, up].concat()
+ };
+ let add = |id: NodeId| vec![Action::Exec("select.add".into(), json!({"ids": [id.0]}))];
+ let mut s = Selection::default();
+ s.set([a]);
+ assert_eq!(click(&s, true, Mods::default()), add(g), "Group Selection adds the group");
+ assert_eq!(click(&s, false, alt), add(g), "an Alt-click adds the group");
+ s.set([a, g]);
+ assert!(click(&s, true, Mods::default()).is_empty(), "Group Selection does not add the sublayer");
+ assert!(click(&s, false, alt).is_empty(), "an Alt-click does not add the sublayer");
+}
+
+/// An Alt-drag from a path selected whole inside a group copies the path and adds no group, and
+/// Alt+Shift-click on a segment or the fill still toggles the path, adding no group either.
+#[test]
+fn alt_drags_and_alt_shift_clicks_on_a_path_in_a_group_add_no_group() {
+ let (d, inside, ..) = nested_group_doc();
+ let p = paint();
+ let mut s = Selection::default();
+ s.set([inside]);
+ let cx = cx(&d, &s, &p);
+ let alt = Mods { alt: true, ..Default::default() };
+ for (x, y) in [(100.0, 100.0), (150.0, 100.0), (150.0, 150.0)] {
+ let mut t = DirectSelectionTool::new(false);
+ assert!(t.pointer(&cx, &PointerEvent::new(PointerKind::Down, x, y).with_mods(alt)).is_empty());
+ let a = t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, x + 20.0, y).with_mods(alt));
+ assert!(matches!(a.as_slice(), [Action::Begin(_), Action::Preview(c, v)] if c == "object.transform" && v["copy"] == true), "{a:?}");
+ assert_eq!(t.pointer(&cx, &PointerEvent::new(PointerKind::Up, x + 20.0, y).with_mods(alt)), vec![Action::Commit]);
+ }
+ let alt_shift = Mods { alt: true, shift: true, ..Default::default() };
+ for (x, y) in [(150.0, 100.0), (150.0, 150.0)] {
+ let mut t = DirectSelectionTool::new(false);
+ let a = t.pointer(&cx, &PointerEvent::new(PointerKind::Down, x, y).with_mods(alt_shift));
+ assert_eq!(a, vec![Action::Exec("select.toggle".into(), json!({"id": inside.0}))], "({x}, {y})");
+ assert!(t.pointer(&cx, &PointerEvent::new(PointerKind::Up, x, y).with_mods(alt_shift)).is_empty(), "({x}, {y})");
+ }
+}
+
/// #927: a marquee across type selects the type object whole, beside the anchors it holds.
#[test]
fn marquee_selects_type_it_touches() {
@@ -541,7 +846,8 @@ fn marquee_selects_type_it_touches() {
t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 150.0, 150.0));
let a = t.pointer(&cx, &PointerEvent::new(PointerKind::Up, 150.0, 150.0));
let items = json!([{"id": rect.0, "anchors": [[0, 2]]}, {"id": text.0, "anchors": []}]);
- assert_eq!(a, vec![Action::Exec("select.anchorsMany".into(), json!({"items": items, "mode": "set"}))]);
+ // The frame's corners are inside too: they are selected with the type.
+ assert_eq!(a, vec![Action::Exec("select.anchorsMany".into(), json!({"items": items, "mode": "set"})), Action::Notify(FRAME_PICKED.into())]);
// Away from the type, only anchors.
t.pointer(&cx, &PointerEvent::new(PointerKind::Down, 150.0, 50.0));
let a = t.pointer(&cx, &PointerEvent::new(PointerKind::Up, 250.0, 150.0));
@@ -661,6 +967,41 @@ fn escape_cancels_a_drag() {
assert_eq!(t.key(&cx, ToolKey::Escape, Mods::default()), vec![], "nothing to cancel");
}
+/// Escape also cancels a corner widget drag and a drag of the brackets of type on a path, and
+/// the release after it does nothing. After a press on a widget that has not moved, Escape drops
+/// the press, so its release selects no corner.
+#[test]
+fn escape_cancels_a_corner_widget_or_bracket_drag() {
+ let p = paint();
+ let (d, rect) = doc_with_rect();
+ let mut s = Selection::default();
+ s.set([rect]);
+ let corners = cx(&d, &s, &p);
+ let (d2, text) = doc_with_path_type();
+ let mut s2 = Selection::default();
+ s2.add(text);
+ let brackets = cx(&d2, &s2, &p);
+ // (what, its context, the press, the drag's first step)
+ for (what, c, from, to) in [
+ ("corner widget", &corners, Point::new(110.0, 110.0), Point::new(120.0, 120.0)),
+ ("bracket", &brackets, Point::new(400.0, 290.0), Point::new(340.0, 290.0)),
+ ] {
+ let mut t = DirectSelectionTool::new(false);
+ assert!(t.pointer(c, &PointerEvent::new(PointerKind::Down, from.x, from.y)).is_empty(), "{what}");
+ let a = t.pointer(c, &PointerEvent::new(PointerKind::Drag, to.x, to.y));
+ assert!(matches!(a.first(), Some(Action::Begin(_))), "{what}: {a:?}");
+ assert!(t.busy(), "{what}");
+ assert_eq!(t.key(c, ToolKey::Escape, Mods::default()), vec![Action::Cancel], "{what}: Escape cancels the drag");
+ assert!(!t.busy(), "{what}");
+ assert!(t.pointer(c, &PointerEvent::new(PointerKind::Drag, to.x - 5.0, to.y)).is_empty(), "{what}: the drag is over");
+ assert!(t.pointer(c, &PointerEvent::new(PointerKind::Up, to.x - 5.0, to.y)).is_empty(), "{what}: the release does nothing");
+ }
+ let mut t = DirectSelectionTool::new(false);
+ t.pointer(&corners, &PointerEvent::new(PointerKind::Down, 110.0, 110.0));
+ assert_eq!(t.key(&corners, ToolKey::Escape, Mods::default()), vec![Action::Cancel]);
+ assert!(t.pointer(&corners, &PointerEvent::new(PointerKind::Up, 110.0, 110.0)).is_empty(), "the click selects no corner");
+}
+
#[test]
fn dragging_a_curved_segment_reshapes_it_and_a_straight_one_moves_its_anchors() {
let (d, arch) = arch_doc();
@@ -963,6 +1304,92 @@ fn alt_during_a_drag_by_an_anchor_toggles_the_copy() {
assert!(matches!(a.last(), Some(Action::Preview(c, _)) if c == "path.moveAnchors"), "{a:?}");
}
+/// A drag from the fill of a path selected whole, while another path has some anchors selected,
+/// moves the selected anchors and the paths selected whole (`path.moveAnchors`), as a drag of
+/// an anchor does, with Direct Selection and Group Selection alike. Alt, pressed or released at
+/// any time during the drag, turns the copy of the selected objects on and off, and a selection
+/// of whole paths only still moves as objects.
+#[test]
+fn a_drag_from_a_fill_with_anchors_selected_moves_the_anchors() {
+ let (d, a, b) = two_squares();
+ let p = paint();
+ let mut mixed = anchors_of(b, &[(0, 0)]);
+ mixed.objects.insert(0, a);
+ let mut whole = Selection::default();
+ whole.set([a, b]);
+ let alt = Mods { alt: true, ..Default::default() };
+ for group in [false, true] {
+ let c = cx(&d, &mixed, &p);
+ let mut t = DirectSelectionTool::new(group);
+ assert!(t.pointer(&c, &PointerEvent::new(PointerKind::Down, 150.0, 150.0)).is_empty(), "group: {group}");
+ let out = t.pointer(&c, &PointerEvent::new(PointerKind::Drag, 171.0, 153.0));
+ assert_eq!(
+ out,
+ vec![Action::Begin("Move".into()), Action::Preview("path.moveAnchors".into(), json!({"dx": 21.0, "dy": 3.0}))],
+ "group: {group}"
+ );
+ assert_eq!(t.pointer(&c, &PointerEvent::new(PointerKind::Up, 171.0, 153.0)), vec![Action::Commit]);
+ // Alt held at the start, released and pressed again: a copy, a move, a copy.
+ t.pointer(&c, &PointerEvent::new(PointerKind::Down, 150.0, 150.0).with_mods(alt));
+ let out = t.pointer(&c, &PointerEvent::new(PointerKind::Drag, 171.0, 153.0).with_mods(alt));
+ assert!(matches!(out.last(), Some(Action::Preview(c, v)) if c == "object.transform" && v["copy"] == true), "group: {group} {out:?}");
+ assert_eq!(out.first(), Some(&Action::Begin("Move".into())), "the history names it by the last preview");
+ let out = t.pointer(&c, &PointerEvent::new(PointerKind::Drag, 172.0, 153.0));
+ assert_eq!(out, vec![Action::Preview("path.moveAnchors".into(), json!({"dx": 22.0, "dy": 3.0}))], "group: {group}");
+ let out = t.pointer(&c, &PointerEvent::new(PointerKind::Drag, 173.0, 153.0).with_mods(alt));
+ assert!(matches!(out.as_slice(), [Action::Preview(c, v)] if c == "object.transform" && v["copy"] == true), "group: {group} {out:?}");
+ t.pointer(&c, &PointerEvent::new(PointerKind::Up, 173.0, 153.0).with_mods(alt));
+ let c = cx(&d, &whole, &p);
+ t.pointer(&c, &PointerEvent::new(PointerKind::Down, 150.0, 150.0));
+ let out = t.pointer(&c, &PointerEvent::new(PointerKind::Drag, 171.0, 153.0));
+ assert!(matches!(out.last(), Some(Action::Preview(c, _)) if c == "object.transform"), "group: {group} {out:?}");
+ }
+}
+
+/// A drag from the fill of A, selected whole, while B's top-left anchor is selected snaps the
+/// point it holds as a dragged anchor does: near an anchor of B that stays put, it lands on it.
+/// With Snap to Grid on, the box around A and B's selected anchor, (100, 100)–(300, 300), lands an
+/// edge on the 9 pt grid instead: moved by (21, 3), its right side and bottom (321, 303) are
+/// nearest the gridlines 324 and 306, and with Shift the level move by 13 lands the right side on
+/// 315.
+#[test]
+fn a_drag_from_a_fill_with_anchors_selected_snaps() {
+ let (d, a, b) = two_squares();
+ let p = paint();
+ let mut mixed = anchors_of(b, &[(0, 0)]);
+ mixed.objects.insert(0, a);
+ let none = Mods::default();
+ for group in [false, true] {
+ let mut t = DirectSelectionTool::new(group);
+ let c = cx(&d, &mixed, &p);
+ let (v, labels) = drag(&mut t, &c, (150.0, 150.0), (298.0, 401.0), none);
+ assert_eq!((v, labels), (json!({"dx": 150.0, "dy": 250.0}), vec!["anchor".to_string()]), "group: {group}");
+ t.pointer(&c, &PointerEvent::new(PointerKind::Up, 298.0, 401.0));
+ let c = ToolContext { snap_to_grid: true, ..cx(&d, &mixed, &p) };
+ assert_eq!(drag(&mut t, &c, (150.0, 150.0), (171.0, 153.0), none).0, json!({"dx": 24.0, "dy": 6.0}), "group: {group}");
+ t.pointer(&c, &PointerEvent::new(PointerKind::Up, 171.0, 153.0));
+ let (v, _) = drag(&mut t, &c, (150.0, 150.0), (163.0, 151.0), Mods { shift: true, ..none });
+ let (x, y) = (v["dx"].as_f64().unwrap(), v["dy"].as_f64().unwrap());
+ assert!((x - 15.0).abs() < 1e-9 && y.abs() < 1e-9, "group: {group}: {v}");
+ t.pointer(&c, &PointerEvent::new(PointerKind::Up, 163.0, 151.0));
+ }
+}
+
+/// A path inside a selected group moves whole with the group, even with some of its anchors
+/// direct-selected, so a drag from a fill does not snap to its other anchors: here to the
+/// bottom-right corner (400, 400) of the path at (300, 300)–(400, 400).
+#[test]
+fn a_drag_from_a_fill_skips_the_anchors_of_a_path_in_a_selected_group() {
+ let (d, _, outside, _, outer) = nested_group_doc();
+ let p = paint();
+ let mut sel = anchors_of(outside, &[(0, 0)]);
+ sel.objects.insert(0, outer);
+ let c = cx(&d, &sel, &p);
+ let mut t = DirectSelectionTool::new(true);
+ let (v, labels) = drag(&mut t, &c, (150.0, 150.0), (398.0, 401.0), Mods::default());
+ assert_eq!((v, labels), (json!({"dx": 248.0, "dy": 251.0}), Vec::::new()));
+}
+
/// A dragged anchor lands on another path's anchor or segment, lines up with the other anchors
/// of its own path, and with several selected the one pressed on snaps, the others following.
#[test]
diff --git a/crates/tools/src/draw2.rs b/crates/tools/src/draw2.rs
index c8537bd75c..be2019a383 100644
--- a/crates/tools/src/draw2.rs
+++ b/crates/tools/src/draw2.rs
@@ -38,6 +38,16 @@ pub fn min_fidelity(id: &str) -> f64 {
if id == "smooth" { SMOOTH_MIN_FIDELITY } else { MIN_FIDELITY }
}
+/// The Blob Brush's or the Eraser's width at pen `pressure` (0..1) with Size set to Pressure: `size` −
+/// `variation` at the lightest pressure to `size` + `variation` at the heaviest, at least
+/// [`MIN_BRUSH_SIZE`].
+pub fn pressure_size(size: f64, variation: f64, pressure: f64) -> f64 {
+ (size + variation * (2.0 * pressure.clamp(0.0, 1.0) - 1.0)).max(MIN_BRUSH_SIZE)
+}
+
+/// The narrowest a Blob Brush or Eraser stroke gets, in points (their Size field's minimum).
+pub const MIN_BRUSH_SIZE: f64 = 0.1;
+
/// Create a drawing tool by id (None = not one of ours).
pub fn create(id: &str) -> Option> {
Some(match id {
diff --git a/crates/tools/src/draw2/anchor.rs b/crates/tools/src/draw2/anchor.rs
index 3cebc0079f..58664704ad 100644
--- a/crates/tools/src/draw2/anchor.rs
+++ b/crates/tools/src/draw2/anchor.rs
@@ -19,7 +19,7 @@ use vectorcraft_geom::Point;
use super::{hit_anchor, hit_segment, insert_anchor, remove_anchor};
use crate::direct::hit_handle;
use crate::guides::HandleSnap;
-use crate::{Action, Cursor, Mods, Overlay, PointerEvent, PointerKind, Tool, ToolContext};
+use crate::{Action, Cursor, Mods, Overlay, PointerEvent, PointerKind, Tool, ToolContext, ToolKey};
use vectorcraft_geom::constrain_angle_from;
#[derive(Clone, Copy, Debug)]
@@ -296,6 +296,30 @@ impl Tool for AnchorTool {
fn busy(&self) -> bool {
!matches!(self.state, State::Idle)
}
+ /// Escape during an Anchor Point drag (an anchor pulled into a smooth point or moved, a
+ /// handle, a segment, a blend spine's point, handle or segment) cancels it: what it moved goes
+ /// back and the release does nothing. Escape after a press that has not moved yet drops the
+ /// press, so its release converts nothing.
+ fn key(&mut self, _cx: &ToolContext, key: ToolKey, _mods: Mods) -> Vec {
+ if key != ToolKey::Escape || matches!(self.state, State::Idle) {
+ return vec![];
+ }
+ let began = matches!(
+ self.state,
+ State::Convert { began: true, .. }
+ | State::Move { began: true, .. }
+ | State::SpineMove { began: true, .. }
+ | State::Handle { began: true, .. }
+ | State::SpineConvert { began: true, .. }
+ | State::SpineHandle { began: true, .. }
+ | State::Reshape { began: true, .. }
+ );
+ self.state = State::Idle;
+ self.guides.clear();
+ self.measure = None;
+ self.space_resume = None;
+ if began { vec![Action::Cancel] } else { vec![] }
+ }
fn pointer(&mut self, cx: &ToolContext, ev: &PointerEvent) -> Vec {
let p = ev.pos;
// Anchors and handle ends are picked from a little further than segments.
diff --git a/crates/tools/src/draw2/anchor/tests.rs b/crates/tools/src/draw2/anchor/tests.rs
index 11c843e05e..f6986cf7e9 100644
--- a/crates/tools/src/draw2/anchor/tests.rs
+++ b/crates/tools/src/draw2/anchor/tests.rs
@@ -537,6 +537,58 @@ fn anchor_point_space_mid_drag_moves_the_anchor() {
assert_eq!(t.pointer(&cx, &PointerEvent::new(PointerKind::Up, 260.0, 370.0)), vec![Action::Commit]);
}
+/// Escape during a drag cancels it, whatever the drag does, and the release after it does
+/// nothing; Enter leaves the drag alone. After a press that has not moved, Escape drops the press,
+/// so its release does not make the smooth anchor a corner.
+#[test]
+fn escape_cancels_an_anchor_point_drag() {
+ let (mut d, _) = doc_with_rect();
+ let l = d.layers[0].id;
+ let id = d.alloc_id();
+ let mut sp = vectorcraft_geom::SubPath::polyline(&[Point::new(100.0, 300.0), Point::new(200.0, 300.0), Point::new(300.0, 300.0)], false);
+ sp.anchors[1] = vectorcraft_geom::Anchor::smooth(Point::new(200.0, 300.0), Point::new(240.0, 320.0));
+ let path = vectorcraft_geom::PathData::single(sp);
+ d.insert(Some(l), 1, vectorcraft_doc::Node::path(id, path, vectorcraft_doc::Appearance::default_art())).unwrap();
+ let mut s = Selection::default();
+ s.set([id]);
+ let p = paint();
+ let cx = cx(&d, &s, &p);
+ let shift = Mods { shift: true, ..Mods::default() };
+ let space = Mods { space: true, ..Mods::default() };
+ // (what, the press, its modifiers, Space held during the second drag step)
+ for (what, x, y, mods, spaced) in [
+ ("convert", 100.0, 300.0, Mods::default(), false),
+ ("handle", 240.0, 320.0, Mods::default(), false),
+ ("segment", 150.0, 200.0, Mods::default(), false),
+ ("shift move", 200.0, 300.0, shift, false),
+ ("space move", 100.0, 300.0, Mods::default(), true),
+ ] {
+ let mut t = AnchorTool::new("anchorPoint");
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Down, x, y).with_mods(mods));
+ let a = t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, x + 20.0, y + 30.0));
+ assert!(matches!(&a[..], [Action::Begin(_), Action::Preview(..)]), "{what}: {a:?}");
+ let step = if spaced { space } else { Mods::default() };
+ let a = t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, x + 30.0, y + 40.0).with_mods(step));
+ let moved = matches!(&a[..], [Action::Preview(c, _)] if c == "path.moveAnchor");
+ assert_eq!(moved, spaced || what == "shift move", "{what}: {a:?}");
+ assert!(t.key(&cx, ToolKey::Enter, Mods::default()).is_empty(), "{what}: Enter leaves the drag alone");
+ assert!(t.busy(), "{what}");
+ assert_eq!(t.key(&cx, ToolKey::Escape, Mods::default()), vec![Action::Cancel], "{what}: Escape cancels the drag");
+ assert!(!t.busy(), "{what}");
+ assert!(t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, x + 40.0, y + 50.0)).is_empty(), "{what}: the drag is over");
+ assert!(t.pointer(&cx, &PointerEvent::new(PointerKind::Up, x + 40.0, y + 50.0)).is_empty(), "{what}: the release does nothing");
+ assert!(t.overlays(&cx).iter().all(|o| !matches!(o, Overlay::Measure { .. })), "{what}: no readout stays");
+ }
+ // A click on the smooth anchor makes it a corner; Escape between press and release drops it.
+ let mut t = AnchorTool::new("anchorPoint");
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Down, 200.0, 300.0));
+ assert!(t.key(&cx, ToolKey::Escape, Mods::default()).is_empty(), "nothing began, so nothing is canceled");
+ assert!(!t.busy());
+ assert!(t.pointer(&cx, &PointerEvent::new(PointerKind::Up, 200.0, 300.0)).is_empty());
+ // With nothing pressed, Escape is not the tool's.
+ assert!(t.key(&cx, ToolKey::Escape, Mods::default()).is_empty());
+}
+
#[test]
fn anchor_point_shift_drag_honors_measurement_labels() {
let (mut d, _) = doc_with_rect();
diff --git a/crates/tools/src/draw2/gesture.rs b/crates/tools/src/draw2/gesture.rs
index 21c090f213..2a6380aa94 100644
--- a/crates/tools/src/draw2/gesture.rs
+++ b/crates/tools/src/draw2/gesture.rs
@@ -9,9 +9,9 @@
//! key toggles to Smooth Tool off) draws a straight line at any angle. The Pencil's new path starts and ends on
//! Smart Guides ([`DrawSnap`]: an anchor, a path, in line with the art), hovering too; the points
//! between follow the hand. The Paintbrush records the pen pressure of each point (a stroke a pen
-//! pressed less than fully on sends `[x, y, pressure]` points) for pressure-sensitive brushes. The
-//! other tools collect the drag polyline (shown as an overlay) and run
-//! one command on release. With Shift held, the Blob Brush's points stay on the horizontal or
+//! pressed less than fully on sends `[x, y, pressure]` points) for pressure-sensitive brushes, and
+//! so do the Blob Brush and the Eraser while their Size varies with Pressure. The other tools
+//! collect the drag polyline (shown as an overlay) and run one command on release. With Shift held, the Blob Brush's points stay on the horizontal or
//! vertical line through the press point. Alt held at the press, or before the Blob Brush's drag
//! has moved, switches the Blob Brush to the Smooth tool: the drag smooths the selected paths.
@@ -27,12 +27,19 @@ use crate::{Action, Cursor, Mods, Overlay, PointerEvent, PointerKind, Tool, Tool
/// radius while Alt switches it to the Smooth tool.
const SMOOTH_RADIUS: f64 = 12.0;
+/// The finest Fidelity (screen pixels) a Pencil or Paintbrush stroke is fitted at while it is drawn:
+/// a fit's cost grows as its Fidelity shrinks (at 0.01 pt a long pen stroke lagged, #4565), and
+/// a preview within half a pixel of the stroke looks the same. The release fits it at its Fidelity.
+const PREVIEW_FIDELITY_PX: f64 = 0.5;
+
pub struct GestureTool {
- /// How many points the last preview of the stroke had ([`crate::previews_at`]).
+ /// How many points the last preview of the stroke had ([`crate::previews_at`]); 0 when it was
+ /// fitted coarser than the stroke kept ([`PREVIEW_FIDELITY_PX`]).
previewed: usize,
id: &'static str,
points: Vec,
- /// The pen pressure of each of `points` (the Paintbrush only).
+ /// The pen pressure of each of `points` (the Paintbrush, and the Blob Brush and the Eraser
+ /// with `size_pressure`).
pressures: Vec,
active: bool,
began: bool,
@@ -51,6 +58,12 @@ pub struct GestureTool {
pub fidelity: f64,
/// Brush / eraser diameter in points (the Eraser's across its tip's long axis).
pub size: f64,
+ /// Blob Brush and Eraser Tool Options' Size set to Pressure (else Fixed): the tip is `size` −
+ /// `size_variation` wide at the lightest pen pressure and `size` + `size_variation` at the
+ /// heaviest.
+ pub size_pressure: bool,
+ /// Blob Brush and Eraser Tool Options' Size Variation, in points.
+ pub size_variation: f64,
/// The angle of the Eraser tip's long axis, in degrees counter-clockwise from horizontal.
pub angle: f64,
/// The Eraser tip's short axis in percent of its long one (100: round).
@@ -82,13 +95,7 @@ pub struct GestureTool {
/// The straight line is Alt's: the pointer is not constrained to 45° steps, and the line's end
/// snaps to Smart Guides as a stroke's end does.
unconstrained: bool,
- /// Where the pointer was for each Blob Brush point dragged since Shift went down: the last
- /// `shift_raw.len()` of `points`.
- shift_raw: Vec,
- /// Where the pointer was for the Shift-constrained point the next [`Self::push`] adds.
- shift_next: Option,
- /// The angle of the line the dragged points were last moved onto: while it holds they are on
- /// it, and the next drag event need not move them again.
+ /// Axis selected during the current uninterrupted Shift interval, in degrees.
shift_line: Option,
/// "Merge only with selection": a Blob Brush stroke merges only with selected paths.
pub merge_only_selection: bool,
@@ -137,6 +144,8 @@ impl GestureTool {
redraw: None,
fidelity,
size: 10.0,
+ size_pressure: false,
+ size_variation: 0.0,
angle: 0.0,
roundness: 100.0,
fill: false,
@@ -149,8 +158,6 @@ impl GestureTool {
moved: false,
straight: false,
unconstrained: false,
- shift_raw: vec![],
- shift_next: None,
shift_line: None,
merge_only_selection: false,
edit_within: 12.0,
@@ -176,14 +183,8 @@ impl GestureTool {
/// Add a stroke sample.
fn push(&mut self, p: Point, pressure: f32) {
- let raw = self.shift_next.take();
- if self.points.is_empty() {
- self.shift_raw.clear();
- } else if let Some(raw) = raw {
- self.shift_raw.push(raw);
- }
self.points.push(p);
- if self.id == "paintbrush" {
+ if self.id == "paintbrush" || (self.varies_size() && self.size_pressure) {
self.pressures.push(pressure);
}
}
@@ -200,14 +201,10 @@ impl GestureTool {
self.id == "blobBrush" && m.alt && !self.moved
}
- /// Where the stroke takes a pointer at `p`. For the Blob Brush with Shift held, that is the
- /// horizontal or vertical line through the press point that is nearer in angle to `p` (90°
- /// steps from the Constrain Angle), at `p`'s distance from the press point. The points dragged
- /// since Shift went down move to that line too, each at its pointer position's distance and on
- /// that position's side of the press point; a pointer at the press point leaves them on their
- /// line. Without Shift, or while the Blob Brush smooths, the stroke takes `p`.
+ /// Constrain the Pencil line or the current Blob Brush sample. Blob Brush chooses an
+ /// axis once per uninterrupted Shift interval; samples already drawn never move.
+ /// A smoothing drag follows the pointer without a Shift constraint.
fn constrained(&mut self, cx: &ToolContext, p: Point, m: Mods) -> Point {
- self.shift_next = None;
if self.straight && self.unconstrained {
return p;
}
@@ -217,26 +214,26 @@ impl GestureTool {
return start + vectorcraft_geom::constrain_angle_from(p - start, 45.0, cx.constrain_angle);
}
let Some(&start) = self.points.first().filter(|_| self.id == "blobBrush" && m.shift && !self.smoothing) else {
- self.shift_raw.clear();
self.shift_line = None;
return p;
};
- self.shift_next = Some(p);
- // The press point is on both lines: the points dragged before stay on theirs.
- if (p - start).hypot() < vectorcraft_geom::EPS {
- return start;
+ if self.shift_line.is_none() {
+ // Raw press-to-pointer displacement in logical screen pixels along the constraint
+ // axes. Zoom changes the document distance, not the activation tolerance.
+ let v = p - start;
+ let v = vectorcraft_geom::constrain_axes(cx.constrain_angle).map_or(Point::new(v.x, v.y), |axes| axes.inverse() * Point::new(v.x, v.y));
+ let x = v.x.abs() * cx.zoom;
+ let y = v.y.abs() * cx.zoom;
+ self.shift_line = if x >= 1.0 && y < 0.5 {
+ Some(cx.constrain_angle)
+ } else if y >= 1.0 && x < 0.5 {
+ Some(cx.constrain_angle + 90.0)
+ } else {
+ // No unconstrained trail while pending, including an initially diagonal drag.
+ return self.points.last().copied().unwrap_or(start);
+ };
}
- let d = vectorcraft_geom::constrain_angle_from(p - start, 90.0, cx.constrain_angle);
- // `line` is the line's angle, measured counterclockwise on screen as the Constrain Angle is measured.
- let line = (-d.y).atan2(d.x).to_degrees();
- let on_line = |q: Point| start + vectorcraft_geom::constrain_angle_from(q - start, 180.0, line);
- if self.shift_line != Some(line) {
- for (q, raw) in self.points.iter_mut().skip(1).rev().zip(self.shift_raw.iter().rev()) {
- *q = on_line(*raw);
- }
- self.shift_line = Some(line);
- }
- on_line(p)
+ start + vectorcraft_geom::constrain_angle_from(p - start, 180.0, self.shift_line.unwrap_or(cx.constrain_angle))
}
/// Forget the stroke.
@@ -248,6 +245,19 @@ impl GestureTool {
self.shift_line = None;
}
+ /// Does the tool's Size take Fixed or Pressure (the Blob Brush and the Eraser)?
+ fn varies_size(&self) -> bool {
+ matches!(self.id, "blobBrush" | "eraser")
+ }
+
+ /// The pen pressure of each point of a Blob Brush or Eraser stroke whose Size varies with
+ /// Pressure, when a pen pressed less than fully anywhere along it (a stroke without pressure
+ /// keeps its Size).
+ fn size_pressures(&self) -> Option<&[f32]> {
+ let pressed = self.pressures.len() == self.points.len() && self.pressures.iter().any(|p| *p < 1.0);
+ (self.varies_size() && self.size_pressure && !self.smoothing && pressed).then_some(self.pressures.as_slice())
+ }
+
/// The stroke's points, each `[x, y, pressure]` when a pen pressed less than fully anywhere
/// along it (a mouse always presses fully).
fn stroke_json(&self) -> Value {
@@ -386,8 +396,10 @@ impl GestureTool {
"blobBrush" => vec![Action::Exec(
"path.blob".into(),
json!({
- "points": points_json(pts),
+ "points": self.stroke_json(),
"size": self.size,
+ "sizeMode": if self.size_pressure { "pressure" } else { "fixed" },
+ "sizeVariation": self.size_variation,
"fidelity": self.fidelity,
"keepSelected": self.keep_selected,
"mergeOnlySelection": self.merge_only_selection
@@ -395,7 +407,14 @@ impl GestureTool {
)],
"eraser" => vec![Action::Exec(
"path.eraseRegion".into(),
- json!({"points": points_json(pts), "size": self.size, "angle": self.angle, "roundness": self.roundness}),
+ json!({
+ "points": self.stroke_json(),
+ "size": self.size,
+ "sizeMode": if self.size_pressure { "pressure" } else { "fixed" },
+ "sizeVariation": self.size_variation,
+ "angle": self.angle,
+ "roundness": self.roundness
+ }),
)],
"knife" if pts.len() >= 2 => vec![Action::Exec("path.knife".into(), json!({"points": points_json(pts)}))],
"smooth" if has_sel && pts.len() >= 2 => {
@@ -506,8 +525,11 @@ impl Tool for GestureTool {
}
// With the Pencil's Live preview off a thin line shows instead (`overlays`).
if self.previews() && crate::previews_at(self.points.len()) {
- self.previewed = self.points.len();
let mut v = self.freehand_params(false);
+ let fidelity = self.fidelity.max(cx.tol(PREVIEW_FIDELITY_PX));
+ v["fidelity"] = json!(fidelity);
+ // A preview fitted coarser than the stroke kept is stale (`deactivate`).
+ self.previewed = if fidelity > self.fidelity { 0 } else { self.points.len() };
if !self.live_fit {
// Live curve fitting off: the release fits the stroke (`finish`).
v["fit"] = json!(false);
@@ -626,12 +648,22 @@ impl Tool for GestureTool {
};
let color = if self.id == "eraser" { [0x80, 0x80, 0x80] } else { FEEDBACK };
// A tip that is not round shows the outline of the area it covers.
+ // shortcut: at its Size even with Pressure; the release erases at the pen's widths.
if self.id == "eraser" && self.roundness < 100.0 {
let area = eraser_area(&self.points, self.size, self.angle, self.roundness);
o.push(Overlay::Path { path: area.to_bezpath(), color, width: 1.0, dashed: false });
return o;
}
- o.push(Overlay::Path { path: polyline(&self.points), color, width, dashed: self.id == "knife" });
+ // With Size set to Pressure, each step of the drag shows as wide as the pen pressed there.
+ if let Some(pressures) = self.size_pressures() {
+ for (seg, p) in self.points.windows(2).zip(pressures.windows(2)) {
+ let pressure = f64::from(p[0] + p[1]) / 2.0;
+ let width = super::pressure_size(self.size, self.size_variation, pressure) * cx.zoom;
+ o.push(Overlay::Path { path: polyline(seg), color, width: width as f32, dashed: false });
+ }
+ } else {
+ o.push(Overlay::Path { path: polyline(&self.points), color, width, dashed: self.id == "knife" });
+ }
if cx.measurement_labels && self.id == "blobBrush" && !self.smoothing {
let last = self.points[self.points.len() - 1];
let length = self.points.windows(2).map(|w| w[0].distance(w[1])).sum();
@@ -700,9 +732,22 @@ impl Tool for GestureTool {
}
"smooth" => json!({"fidelity": self.fidelity}),
"blobBrush" => {
- json!({"fidelity": self.fidelity, "size": self.size, "keepSelected": self.keep_selected, "mergeOnlySelection": self.merge_only_selection})
+ json!({
+ "fidelity": self.fidelity,
+ "size": self.size,
+ "sizeMode": if self.size_pressure { "pressure" } else { "fixed" },
+ "sizeVariation": self.size_variation,
+ "keepSelected": self.keep_selected,
+ "mergeOnlySelection": self.merge_only_selection
+ })
}
- "eraser" => json!({"size": self.size, "angle": self.angle, "roundness": self.roundness}),
+ "eraser" => json!({
+ "size": self.size,
+ "sizeMode": if self.size_pressure { "pressure" } else { "fixed" },
+ "sizeVariation": self.size_variation,
+ "angle": self.angle,
+ "roundness": self.roundness
+ }),
_ => Value::Null,
}
}
@@ -710,6 +755,12 @@ impl Tool for GestureTool {
match key {
"fidelity" => self.fidelity = v.as_f64().unwrap_or(self.fidelity).clamp(super::min_fidelity(self.id), 100.0),
"size" => self.size = v.as_f64().unwrap_or(self.size).clamp(0.1, 1000.0),
+ "sizeMode" if self.varies_size() => match v.as_str() {
+ Some("pressure") => self.size_pressure = true,
+ Some("fixed") => self.size_pressure = false,
+ _ => {}
+ },
+ "sizeVariation" if self.varies_size() => self.size_variation = v.as_f64().unwrap_or(self.size_variation).clamp(0.0, 1000.0),
"angle" => self.angle = v.as_f64().unwrap_or(self.angle).clamp(-180.0, 180.0),
"roundness" => self.roundness = v.as_f64().unwrap_or(self.roundness).clamp(1.0, 100.0),
"fill" => self.fill = v.as_bool().unwrap_or(self.fill),
diff --git a/crates/tools/src/draw2/gesture/tests.rs b/crates/tools/src/draw2/gesture/tests.rs
index 25e59c67cf..c3335d1cf4 100644
--- a/crates/tools/src/draw2/gesture/tests.rs
+++ b/crates/tools/src/draw2/gesture/tests.rs
@@ -122,6 +122,40 @@ fn pencil_with_live_curve_fitting_off_previews_the_stroke_unfitted() {
assert!(!drawn.is_empty() && drawn.iter().all(Option::is_none), "{drawn:?}");
}
+/// A stroke whose Fidelity is finer than half a screen pixel previews fitted at half a pixel, which
+/// looks the same at a fraction of the fit's cost (#4565); the release, and another tool chosen
+/// while it is drawn, fit it at its own Fidelity. A coarser Fidelity previews as it is kept.
+#[test]
+fn fine_fidelity_previews_at_half_a_pixel() {
+ let (d, _) = doc_with_rect();
+ let s = Selection::default();
+ let p = paint();
+ let mut cx = cx(&d, &s, &p);
+ let stroke = [(0.0, 0.0), (10.0, 5.0), (20.0, 0.0), (30.0, 5.0)];
+ let fidelities = |acts: &[Action]| -> Vec {
+ acts.iter().filter_map(|a| if let Action::Preview(_, v) = a { v["fidelity"].as_f64() } else { None }).collect()
+ };
+ for id in ["pencil", "paintbrush"] {
+ for (zoom, fidelity, drawn) in [(1.0, 0.01, 0.5), (4.0, 0.01, 0.125), (1.0, 1.5, 1.5)] {
+ cx.zoom = zoom;
+ let mut t = GestureTool::new(id);
+ t.set_option("fidelity", &json!(fidelity));
+ let acts = drag(&mut t, &cx, &stroke, Mods::default());
+ let (release, during) = acts.split_last().unwrap();
+ assert_eq!(fidelities(&during.concat()), [drawn; 3], "{id} at {zoom}x, {fidelity} pt");
+ assert_eq!(fidelities(release), [fidelity], "{id} at {zoom}x, {fidelity} pt: the release");
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Down, 0.0, 0.0));
+ for &(x, y) in &stroke[1..] {
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, x, y));
+ }
+ let acts = t.deactivate(&cx);
+ let kept = if drawn > fidelity { [fidelity].to_vec() } else { vec![] };
+ assert_eq!(fidelities(&acts), kept, "{id} at {zoom}x, {fidelity} pt: another tool chosen");
+ assert_eq!(acts.last(), Some(&Action::Commit));
+ }
+ }
+}
+
/// Keep selected is on by default, and every Pencil and Paintbrush preview sends it.
#[test]
fn pencil_and_paintbrush_send_keep_selected() {
@@ -279,8 +313,11 @@ fn blob_brush_sends_keep_selected_and_merge_only_with_selection() {
"{acts:?}"
);
}
- // The Eraser keeps Size, Angle and Roundness: a round tip by default.
- assert_eq!(GestureTool::new("eraser").options(), json!({"size": 10.0, "angle": 0.0, "roundness": 100.0}));
+ // The Eraser keeps Size (Fixed by default), Angle and Roundness: a round tip by default.
+ assert_eq!(
+ GestureTool::new("eraser").options(),
+ json!({"size": 10.0, "sizeMode": "fixed", "sizeVariation": 0.0, "angle": 0.0, "roundness": 100.0})
+ );
}
/// The Blob Brush has a Fidelity, 1.5 pt by default and 0.01 to 100 pt, and its stroke sends it.
@@ -301,9 +338,7 @@ fn blob_brush_sends_its_fidelity() {
}
/// Shift keeps a Blob Brush stroke on the horizontal or vertical line through the press point,
-/// whichever is nearer to the pointer, at 90° steps from the Constrain Angle; the points
-/// dragged with Shift held move to the other line together, and each point follows the Shift
-/// state of its own event.
+/// with its axis chosen by the first clear axial movement. Crossing it never moves earlier samples.
#[test]
fn blob_brush_shift_keeps_the_stroke_horizontal_or_vertical() {
let (d, _) = doc_with_rect();
@@ -311,46 +346,51 @@ fn blob_brush_shift_keeps_the_stroke_horizontal_or_vertical() {
let p = paint();
let mut cx = cx(&d, &s, &p);
let shift = Mods { shift: true, ..Default::default() };
- let blob = |acts: &[Vec]| -> Vec<(f64, f64)> {
- let Some(Action::Exec(c, v)) = acts.last().and_then(|a| a.first()) else { panic!("{acts:?}") };
- assert_eq!(c, "path.blob");
- v["points"].as_array().unwrap().iter().map(|q| (q[0].as_f64().unwrap(), q[1].as_f64().unwrap())).collect()
- };
let mut t = GestureTool::new("blobBrush");
- let pts = blob(&drag_held(&mut t, &cx, &[(0.0, 0.0), (30.0, 5.0), (50.0, 8.0)], shift));
- assert_eq!(pts.len(), 3);
- assert!(pts.iter().all(|q| q.1 == 0.0 && q.0 >= 0.0), "{pts:?}");
- let pts = blob(&drag_held(&mut t, &cx, &[(0.0, 0.0), (5.0, 30.0), (8.0, 50.0)], shift));
- assert!(pts.iter().all(|q| q.0.abs() < 1e-9 && q.1 >= 0.0), "{pts:?}");
- // A pointer that crosses to the vertical line takes the points before it along, each on
- // its own side of the press point and at its own distance.
- let pts = blob(&drag_held(&mut t, &cx, &[(0.0, 0.0), (-40.0, -2.0), (100.0, 99.0), (90.0, 120.0)], shift));
- assert_eq!(pts.len(), 4, "{pts:?}");
- assert!(pts.iter().all(|q| q.0.abs() < 1e-9), "{pts:?}");
- assert!((pts[1].1 + 1604f64.sqrt()).abs() < 1e-9 && (pts[2].1 - 19801f64.sqrt()).abs() < 1e-9 && (pts[3].1 - 150.0).abs() < 1e-9, "{pts:?}");
- // Without Shift the stroke follows the pointer.
- let pts = blob(&drag_held(&mut t, &cx, &[(0.0, 0.0), (30.0, 5.0), (50.0, 8.0)], Mods::default()));
- assert_eq!(pts, vec![(0.0, 0.0), (30.0, 5.0), (50.0, 8.0)]);
- // Shift pressed and let go mid-stroke constrains only the points dragged while it is down,
- // and a later press of Shift leaves the points of the earlier one where they are.
let ev = |k, x, y, m| PointerEvent::new(k, x, y).with_mods(m);
- t.pointer(&cx, &ev(PointerKind::Down, 0.0, 0.0, Mods::default()));
- t.pointer(&cx, &ev(PointerKind::Drag, 20.0, 10.0, Mods::default()));
- t.pointer(&cx, &ev(PointerKind::Drag, 40.0, 10.0, shift));
- t.pointer(&cx, &ev(PointerKind::Drag, 60.0, 10.0, Mods::default()));
- let pts = blob(&[t.pointer(&cx, &ev(PointerKind::Up, 10.0, 80.0, shift))]);
- assert_eq!((pts.len(), pts[1], pts[3]), (5, (20.0, 10.0), (60.0, 10.0)), "{pts:?}");
- assert!(pts[2].1 == 0.0 && (pts[2].0 - 1700f64.sqrt()).abs() < 1e-9, "{pts:?}");
- assert!(pts[4].0.abs() < 1e-9 && (pts[4].1 - 6500f64.sqrt()).abs() < 1e-9, "{pts:?}");
- // The axes turn with the Constrain Angle.
- cx.constrain_angle = 30.0;
- let pts = blob(&drag_held(&mut t, &cx, &[(0.0, 0.0), (40.0, -20.0)], shift));
- let a = (-pts[1].1).atan2(pts[1].0).to_degrees();
- assert!((a - 30.0).abs() < 1e-9, "{pts:?}");
- // A pointer back at the press point leaves the stroke on its line.
- let pts = blob(&drag_held(&mut t, &cx, &[(0.0, 0.0), (40.0, -20.0), (0.0, 0.0)], shift));
- let a = (-pts[1].1).atan2(pts[1].0).to_degrees();
- assert!(pts.len() == 3 && pts[2] == (0.0, 0.0) && (a - 30.0).abs() < 1e-9, "{pts:?}");
+ for zoom in [0.5, 1.0, 4.0] {
+ cx.zoom = zoom;
+ t.pointer(&cx, &ev(PointerKind::Down, 0.0, 0.0, shift));
+ t.pointer(&cx, &ev(PointerKind::Drag, 4.0 / zoom, 4.0 / zoom, shift));
+ assert_eq!(t.points, vec![Point::ZERO]);
+ assert!(t.overlays(&cx).is_empty());
+ t.pointer(&cx, &ev(PointerKind::Drag, 1.0 / zoom, 0.5 / zoom, shift));
+ assert_eq!(t.points.len(), 1, "small component has a strict bound");
+ t.pointer(&cx, &ev(PointerKind::Drag, 1.0 / zoom, 0.0, shift));
+ let first = t.points[1];
+ t.pointer(&cx, &ev(PointerKind::Drag, 3.0 / zoom, 10.0 / zoom, shift));
+ assert_eq!(t.points[1], first);
+ assert!(t.points.iter().all(|p| p.y.abs() < 1e-9));
+ // Release Shift: freehand resumes without relocating the constrained points.
+ t.pointer(&cx, &ev(PointerKind::Drag, 8.0 / zoom, 12.0 / zoom, Mods::default()));
+ assert_eq!(t.points.last(), Some(&Point::new(8.0 / zoom, 12.0 / zoom)));
+ t.pointer(&cx, &ev(PointerKind::Drag, 0.0, 15.0 / zoom, shift));
+ assert_eq!(t.points[1], first);
+ assert!(t.points.last().unwrap().x.abs() < 1e-9);
+ t.pointer(&cx, &ev(PointerKind::Up, 0.0, 15.0 / zoom, shift));
+ }
+ // Exact quarter turns preserve the strict half-pixel boundary in either direction.
+ for angle in [-450.0, -180.0, -90.0, 90.0, 180.0, 450.0] {
+ cx.constrain_angle = angle;
+ cx.zoom = 1.0;
+ let axes = vectorcraft_geom::constrain_axes(angle).unwrap();
+ for (x, y) in [(1.0, 0.5), (0.5, 1.0), (-1.0, -0.5), (-0.5, -1.0)] {
+ t.pointer(&cx, &ev(PointerKind::Down, 0.0, 0.0, shift));
+ let at = axes * Point::new(x, y);
+ t.pointer(&cx, &ev(PointerKind::Drag, at.x, at.y, shift));
+ assert_eq!(t.points, vec![Point::ZERO], "angle {angle}, ({x}, {y}) stays pending");
+ assert!(t.shift_line.is_none());
+ let at = axes * Point::new(x, 0.0);
+ t.pointer(&cx, &ev(PointerKind::Drag, at.x, at.y, shift));
+ assert_eq!(t.shift_line.is_some(), x.abs() >= 1.0);
+ t.clear();
+ }
+ }
+ cx.constrain_angle = 0.0;
+ // A pending diagonal released without locking makes the ordinary dot at the press.
+ t.pointer(&cx, &ev(PointerKind::Down, 20.0, 20.0, shift));
+ let acts = t.pointer(&cx, &ev(PointerKind::Up, 30.0, 30.0, shift));
+ assert!(matches!(&acts[0], Action::Exec(c, v) if c == "path.blob" && v["points"] == json!([[20.0, 20.0]])), "{acts:?}");
}
/// Alt switches the Blob Brush to the Smooth tool: held before the press, or pressed before the
diff --git a/crates/tools/src/extra.rs b/crates/tools/src/extra.rs
index 013578edc5..123c4b1efc 100644
--- a/crates/tools/src/extra.rs
+++ b/crates/tools/src/extra.rs
@@ -1,9 +1,11 @@
//! Flare, Reshape, Shaper and Graph tools.
//!
-//! Flare: drag sets the centre and its size (click without dragging opens the Flare Tool Options),
-//! then a click sets the end point of the rings; the rest comes from the tool's options (the Flare
-//! Tool Options, which last). Reshape: drag a point of a selected path; the engine's
-//! `path.reshape` adds an anchor there if needed and moves the neighbourhood smoothly.
+//! Flare: drag sets the center and its size and turns the rays as the pointer moves up or down
+//! (Shift holds their turn; click without dragging opens the Flare Tool Options), then a click
+//! sets the end point of the rings; Space held during either drag moves the flare. The rest comes
+//! from the tool's options (the Flare Tool Options, which last). Reshape: drag a point of a
+//! selected path; the engine's `path.reshape` adds an anchor there if needed and moves the
+//! neighbourhood smoothly.
use serde_json::{Value, json};
use vectorcraft_geom::{Point, Vec2};
@@ -51,9 +53,13 @@ pub struct FlareTool {
/// Centre placed, waiting for the end-point click: (centre, diameter).
placed: Option<(Point, f64)>,
hover: Point,
+ /// The pointer at the last press or drag, from which Space held moves the flare.
+ last: Point,
began: bool,
/// Ray count changed with ↑/↓ during the gesture (None = the options' count).
rays: Option,
+ /// The rays' turn (`shape.flare`'s `rotation`, degrees) the center drag set.
+ turn: f64,
/// The options' values, in [`FLARE_OPTIONS`] order.
values: [f64; 12],
/// Whether the flare has rays and rings (the options' Rays and Rings checkboxes).
@@ -67,8 +73,10 @@ impl Default for FlareTool {
drag: None,
placed: None,
hover: Point::ZERO,
+ last: Point::ZERO,
began: false,
rays: None,
+ turn: 0.0,
values: FLARE_OPTIONS.map(|(_, default, _, _)| default),
rays_on: true,
rings_on: true,
@@ -101,12 +109,26 @@ pub fn flare_params(o: &Value, c: Point) -> Value {
v
}
+/// The chosen rotation rate: one degree per document point of vertical pointer travel.
+/// This is independent of pointer event frequency and elapsed time.
+const RAY_DEGREES_PER_POINT: f64 = 1.0;
+
+/// Accumulate travel rather than an event-count step. Frozen/moving samples still update
+/// the pointer baseline, so releasing a modifier never catches up skipped rotation.
+fn ray_turn(turn: f64, dy: f64, shift: bool) -> f64 {
+ if shift || !dy.is_finite() {
+ return turn;
+ }
+ (turn + dy * RAY_DEGREES_PER_POINT).rem_euclid(360.0)
+}
+
impl FlareTool {
- /// `shape.flare`'s params: the options, with the dragged centre and diameter, the ray count
- /// ↑/↓ chose and the rings' end point once clicked.
+ /// `shape.flare`'s params: the options, with the dragged center and diameter, the rays' turn,
+ /// the ray count ↑/↓ chose and the rings' end point once clicked.
fn params(&self, c: Point, diameter: f64, end: Option) -> Value {
let mut v = flare_params(&self.options(), c);
v["diameter"] = json!(diameter.max(1.0));
+ v["rotation"] = json!(self.turn);
if let Some(r) = self.rays.filter(|_| self.rays_on) {
v["rays"] = json!(r);
}
@@ -132,12 +154,20 @@ impl Tool for FlareTool {
if self.placed.is_none() {
self.drag = Some((ev.pos, ev.pos));
self.rays = None;
+ self.turn = 0.0;
}
+ self.last = ev.pos;
vec![]
}
PointerKind::Drag => {
- if let Some((c, _)) = self.drag {
+ if let Some((mut c, _)) = self.drag {
+ // Space held moves the center with the pointer, so the size and the turn stay.
+ let dy = ev.pos.y - self.last.y;
+ crate::shape::space_moves(&mut c, &mut self.last, ev, self.began);
self.drag = Some((c, ev.pos));
+ if !ev.mods.space {
+ self.turn = ray_turn(self.turn, dy, ev.mods.shift);
+ }
if !self.began && ev.pos.distance(c) >= cx.tol(3.0) {
self.began = true;
return vec![
@@ -148,13 +178,17 @@ impl Tool for FlareTool {
if self.began {
return vec![Action::Preview("shape.flare".into(), self.params(c, 2.0 * ev.pos.distance(c), None))];
}
- } else if let Some((c, d)) = self.placed {
+ } else if let Some((mut c, d)) = self.placed {
+ // Space held moves the whole flare, rings' end point included.
+ crate::shape::space_moves(&mut c, &mut self.last, ev, true);
+ self.placed = Some((c, d));
return vec![Action::Preview("shape.flare".into(), self.params(c, d, Some(ev.pos)))];
}
vec![]
}
PointerKind::Up => {
- if let Some((c, d)) = self.placed.take() {
+ if let Some((mut c, d)) = self.placed.take() {
+ crate::shape::space_moves(&mut c, &mut self.last, ev, true);
self.began = false;
return vec![Action::Preview("shape.flare".into(), self.params(c, d, Some(ev.pos))), Action::Commit];
}
@@ -538,6 +572,109 @@ mod tests {
assert_eq!(t.params(Point::ZERO, 1.0, None)["rays"].as_u64(), Some(0));
}
+ /// The last `shape.flare` preview of `a`.
+ fn flare_preview(a: &[Action]) -> Value {
+ match a.iter().rev().find(|a| matches!(a, Action::Preview(..))) {
+ Some(Action::Preview(c, v)) if c == "shape.flare" => v.clone(),
+ other => panic!("no flare preview: {other:?}"),
+ }
+ }
+
+ /// Equal vertical travel gives equal rotation, regardless of event partitioning.
+ #[test]
+ fn flare_drag_turns_the_rays_and_shift_holds_their_turn() {
+ use crate::testutil::*;
+ use vectorcraft_doc::Selection;
+ let (d, _) = doc_with_rect();
+ let s = Selection::default();
+ let p = paint();
+ let cx = cx(&d, &s, &p);
+ let shift = Mods { shift: true, ..Default::default() };
+ let space = Mods { space: true, ..Default::default() };
+ let mut results = vec![];
+ for steps in [1, 8, 64] {
+ let mut t = FlareTool::default();
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Down, 100.0, 100.0));
+ for i in 1..=steps {
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 140.0, 100.0 + 80.0 * i as f64 / steps as f64));
+ }
+ assert_eq!(t.turn, 80.0);
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 180.0, 180.0));
+ assert_eq!(t.turn, 80.0, "horizontal movement doesn't turn");
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 180.0, 150.0));
+ assert_eq!(t.turn, 50.0, "reverse travel subtracts its distance");
+ let v = flare_preview(&t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 100.0, 200.0).with_mods(shift)));
+ assert_eq!(v["rotation"].as_f64(), Some(50.0));
+ assert_eq!(v["diameter"].as_f64(), Some(200.0));
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 120.0, 220.0));
+ assert_eq!(t.turn, 70.0, "release does not catch up frozen movement");
+ t.key(&cx, ToolKey::Up, Mods::default());
+ assert_eq!(t.turn, 70.0);
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Up, 120.0, 220.0));
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Down, 300.0, 200.0));
+ let a = t.pointer(&cx, &PointerEvent::new(PointerKind::Up, 300.0, 260.0));
+ assert_eq!(a.last(), Some(&Action::Commit));
+ assert_eq!(flare_preview(&a)["rotation"].as_f64(), Some(70.0));
+ results.push(t.turn);
+ }
+ assert!(results.windows(2).all(|p| p[0] == p[1]));
+ // Space held before the first drag update freezes rotation too.
+ let mut t = FlareTool::default();
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Down, 100.0, 100.0));
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 140.0, 140.0).with_mods(space));
+ assert_eq!(t.turn, 0.0);
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 140.0, 150.0));
+ assert_eq!(t.turn, 10.0);
+ }
+
+ /// Space held while dragging out a flare moves it at its current size and turn, in the center
+ /// drag and in the drag that places the rings' end point; let go, the drag goes on from there.
+ #[test]
+ fn space_moves_the_flare_being_drawn() {
+ use crate::testutil::*;
+ use vectorcraft_doc::Selection;
+
+ let (d, _) = doc_with_rect();
+ let s = Selection::default();
+ let p = paint();
+ let cx = cx(&d, &s, &p);
+ let space = Mods { space: true, ..Default::default() };
+ let step = 30.0;
+ let mut t = FlareTool::default();
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Down, 100.0, 100.0));
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 100.0, 130.0));
+ // Space held: the pointer's y grows, but the flare moves without turning.
+ let v = flare_preview(&t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 150.0, 180.0).with_mods(space)));
+ let at = |v: &Value| (v["cx"].as_f64(), v["cy"].as_f64(), v["diameter"].as_f64());
+ let turned = |v: &Value, by: f64| v["rotation"].as_f64().is_some_and(|r| (r - by).abs() < 1e-9);
+ assert_eq!(at(&v), (Some(150.0), Some(150.0), Some(60.0)));
+ assert!(turned(&v, step));
+ // Space let go: the size follows the pointer again, from the moved center, and so does the turn.
+ let v = flare_preview(&t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 150.0, 190.0)));
+ assert_eq!(at(&v), (Some(150.0), Some(150.0), Some(80.0)));
+ assert!(turned(&v, step + 10.0));
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Up, 150.0, 190.0));
+ // The second drag: Space held moves the flare, its rings' end point with it.
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Move, 300.0, 300.0));
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Down, 300.0, 300.0));
+ let v = flare_preview(&t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 320.0, 310.0).with_mods(space)));
+ assert_eq!((at(&v), v["x2"].as_f64(), v["y2"].as_f64()), ((Some(170.0), Some(160.0), Some(80.0)), Some(320.0), Some(310.0)));
+ assert!(turned(&v, step + 10.0));
+ let a = t.pointer(&cx, &PointerEvent::new(PointerKind::Up, 340.0, 310.0));
+ assert_eq!(a.last(), Some(&Action::Commit));
+ let v = flare_preview(&a);
+ assert_eq!((v["cx"].as_f64(), v["cy"].as_f64(), v["x2"].as_f64()), (Some(170.0), Some(160.0), Some(340.0)));
+ // A release with Space held away from the last drag moves the flare there too.
+ let mut t = FlareTool::default();
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Down, 100.0, 100.0));
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 130.0, 100.0));
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Up, 130.0, 100.0));
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Down, 300.0, 300.0));
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 320.0, 300.0));
+ let v = flare_preview(&t.pointer(&cx, &PointerEvent::new(PointerKind::Up, 340.0, 310.0).with_mods(space)));
+ assert_eq!((v["cx"].as_f64(), v["cy"].as_f64(), v["x2"].as_f64()), (Some(120.0), Some(110.0), Some(340.0)));
+ }
+
#[test]
fn reshape_drag_honors_measurement_labels() {
use crate::testutil::*;
diff --git a/crates/tools/src/guides/snap.rs b/crates/tools/src/guides/snap.rs
index c3401b010f..894e7ca5a7 100644
--- a/crates/tools/src/guides/snap.rs
+++ b/crates/tools/src/guides/snap.rs
@@ -307,7 +307,7 @@ impl SnapKey {
exclude: exclude.to_vec(),
screen: cx.screen,
view: [cx.smart_guides, cx.snap_to_point, cx.snap_to_pixel, cx.snap_to_grid, cx.guides, cx.snap_tangent, cx.snap_perpendicular],
- snap_to_glyph: cx.snap_to_glyph && cx.alignment_guides,
+ snap_to_glyph: cx.snap_to_glyph && cx.smart_guides && cx.alignment_guides,
style: GuideStyle::of(cx),
tolerances: [cx.snapping_tolerance, cx.snap_tolerance],
}
diff --git a/crates/tools/src/guides/targets.rs b/crates/tools/src/guides/targets.rs
index 5c5c061e9e..a1e1291fe7 100644
--- a/crates/tools/src/guides/targets.rs
+++ b/crates/tools/src/guides/targets.rs
@@ -47,6 +47,10 @@ pub struct Targets {
/// it ends, as the end that stays put and the unit direction towards the dragged one
/// ([`Self::for_anchor_drag`]).
pub(super) extensions: Vec<(Point, Vec2)>,
+ /// Snap to Glyph's guides that run at an angle (in rotated type, or along a glyph's slanted
+ /// segments), as a point on each and its unit direction: a drawn point lands on the nearest
+ /// ([`Self::for_drawing`]).
+ pub(super) angled: Vec<(Point, Vec2)>,
/// Snap to Tangent and Snap to Perpendicular: a drawn line from an anchor lands where it
/// grazes a curve, or meets a segment square ([`Self::touching`]).
pub(super) tangent: bool,
@@ -209,12 +213,34 @@ impl Targets {
self.ys.push((a.y, a, Kind::Anchor));
}
- /// Live-text baselines and glyph bounds (View › Snap to Glyph).
+ /// A glyph guide through `at` along `dir` (on the page): a line the art lines up with when it
+ /// runs across or down the page, else an angled line a point lands on.
+ fn push_glyph_line(&mut self, at: Point, dir: Vec2) {
+ let len = dir.hypot();
+ if !(len.is_finite() && len > 1e-12 && at.is_finite()) {
+ return;
+ }
+ let d = dir / len;
+ if d.y.abs() <= 1e-9 {
+ self.ys.push((at.y, at, Kind::Glyph));
+ } else if d.x.abs() <= 1e-9 {
+ self.xs.push((at.x, at, Kind::Glyph));
+ } else {
+ self.angled.push((at, d));
+ }
+ }
+
+ /// Live text as View › Snap to Glyph shows it: the glyph bounds of every text object, and for
+ /// a single line of type also its baseline and x-height, the proximity guides at the edges of
+ /// each character's advance width, and its glyphs' anchor points. In rotated type these
+ /// guides run at its angle (angular guides), and type of one glyph also has angular guides
+ /// along the glyph's slanted straight segments.
fn push_glyphs(&mut self, doc: &Document, exclude: &[NodeId], visible: Option) {
let skip: HashSet = exclude.iter().copied().collect();
let db = FontDb::global();
let kind = Kind::Glyph;
let mut budget = BUDGET / 4;
+ let (mut anchors, mut angular) = (BUDGET, BUDGET / 4);
walk_but(&doc.layers, &skip, &mut |n| {
if budget == 0 || !n.visible {
return;
@@ -231,25 +257,84 @@ impl Targets {
{
return;
}
+ // A paragraph shows glyph bounds only.
+ let single = lay.lines.len() == 1;
+ // Angular guides along a glyph's slanted segments: type of one glyph only.
+ let one_glyph = lay.glyphs.iter().filter(|g| !g.outline.elements().is_empty()).count() == 1;
+ // Text space → the page, and a direction in text space → one on the page.
let to_doc = |p: Point| t.xf * p;
- for line in &lay.lines {
- let at = to_doc(Point::new(line.x0, line.baseline));
- self.ys.push((at.y, at, kind));
+ let along = |m: Affine, v: Vec2| (m * v.to_point()) - (m * Point::ZERO);
+ if single {
+ let line_doc = t.xf * lay.line_xf;
+ for line in &lay.lines {
+ self.push_glyph_line(line_doc * Point::new(line.x0, line.baseline), along(line_doc, Vec2::new(1.0, 0.0)));
+ }
}
+ // The last x-height pushed, to push each run of glyphs alike once.
+ let mut last_x_height: Option<(Point, Vec2)> = None;
for g in &lay.glyphs {
if budget == 0 {
break;
}
+ // Glyphs that draw nothing (spaces) give no guides.
let bb = g.outline.bounding_box();
if !(bb.width() > 0.0 && bb.height() > 0.0) {
continue;
}
+ budget -= 1;
+ // Horizontal type and type on a path: the baseline runs from where the pen stood
+ // along the glyph's angle (not the glyph's own drawing, which Character Rotation
+ // turns), up being to its left.
+ if single
+ && !lay.vertical
+ && let Some(face) = db.face_by_id(g.font_id)
+ {
+ let ahead = Vec2::new(g.angle.cos(), g.angle.sin());
+ let up = Vec2::new(ahead.y, -ahead.x);
+ let dir = along(t.xf, ahead);
+ // The x-height of the glyph as placed without its Character Rotation (raised or
+ // lowered by its baseline shift), measured across the baseline.
+ let top = g.xf * g.unturned * Point::new(0.0, -face.x_height());
+ let at = to_doc(g.origin + up * (top - g.origin).dot(up));
+ let same = last_x_height.is_some_and(|(a, d)| {
+ let (l, k) = (d.hypot(), dir.hypot());
+ l > 1e-12 && k > 1e-12 && (d / l - dir / k).hypot() <= 1e-9 && ((at - a).cross(d / l)).abs() <= 1e-6
+ });
+ if face.x_height() > 0.0 && !same {
+ self.push_glyph_line(at, dir);
+ last_x_height = Some((at, dir));
+ }
+ // Proximity guides: across the baseline at both edges of the width the layout
+ // gives the character (its advance with tracking and kerning).
+ for e in [g.origin, g.origin + ahead * g.advance] {
+ self.push_glyph_line(to_doc(e), along(t.xf, up));
+ }
+ }
+ if single {
+ for seg in g.outline.segments() {
+ if anchors > 0 {
+ self.points.push((to_doc(seg.start()), Kind::Anchor));
+ anchors -= 1;
+ }
+ if one_glyph
+ && angular > 0
+ && let PathSeg::Line(l) = seg
+ {
+ let (p, q) = (to_doc(l.p0), to_doc(l.p1));
+ let d = q - p;
+ let len = d.hypot();
+ if len > 1e-6 && d.x.abs() > 1e-9 * len && d.y.abs() > 1e-9 * len {
+ self.push_glyph_line(p, d);
+ angular -= 1;
+ }
+ }
+ }
+ }
let r = t.xf.transform_rect_bbox(bb);
for p in [Point::new(r.x0, r.y0), Point::new(r.x1, r.y0), Point::new(r.x1, r.y1), Point::new(r.x0, r.y1)] {
self.xs.push((p.x, p, kind));
self.ys.push((p.y, p, kind));
}
- budget -= 1;
}
});
}
@@ -287,7 +372,11 @@ impl Targets {
// With several anchors moving, the one under the pointer is not known here, and the
// others' extensions don't run through it.
let single = sel.objects.len() <= 1 && sel.anchors.values().map(|s| s.len()).sum::() == 1;
- for (id, set) in &sel.anchors {
+ // A path inside another selected object, such as a path in a selected group, moves whole
+ // with that object, so none of its anchors or segments stay put.
+ let selected: HashSet = sel.objects.iter().copied().collect();
+ let inside_selected = |id: NodeId| doc.ancestry(id).is_some_and(|a| a.iter().rev().skip(1).any(|p| selected.contains(p)));
+ for (id, set) in sel.anchors.iter().filter(|(id, _)| !inside_selected(**id)) {
let Some(path) = doc.node(*id).and_then(|n| n.path_data()) else { continue };
for (si, sp) in path.subpaths.iter().enumerate() {
let moving = |ai: usize| set.contains(&(si, ai));
@@ -399,6 +488,7 @@ impl Targets {
self.ys.clear();
self.segments.clear();
self.extensions.clear();
+ self.angled.clear();
self
}
@@ -508,7 +598,11 @@ impl Targets {
}
// A construction guide through the point it leaves, else a dragged segment's extension:
// it lands on the guide, sliding into line with a target crossing it nearby.
- if let Some((at, dir, q)) = from.and_then(|f| f.construction(p, tol).map(|(dir, q)| (f.at, dir, q))).or_else(|| self.extension(p, tol)) {
+ if let Some((at, dir, q)) = from
+ .and_then(|f| f.construction(p, tol).map(|(dir, q)| (f.at, dir, q)))
+ .or_else(|| self.extension(p, tol))
+ .or_else(|| self.on_angled(p, tol))
+ {
let construction = |q: Point| Overlay::Line { a: at, b: q, color: self.style.color, dashed: false };
return match self.slide(at, dir, q, tol, false) {
Some((q, target)) => (q, std::iter::once(construction(q)).chain(self.lined_up(q, target)).collect()),
@@ -606,6 +700,18 @@ impl Targets {
.map(|(at, d, q, _)| (at, d, q))
}
+ /// The angled glyph guide ([`Self::angled`]) nearest `p`, within `tol` of it: a point on it, its
+ /// direction and where `p` lands on it.
+ fn on_angled(&self, p: Point, tol: f64) -> Option<(Point, Vec2, Point)> {
+ self.angled
+ .iter()
+ .map(|&(at, d)| (at, d, at + d * (p - at).dot(d)))
+ .map(|(at, d, q)| (at, d, q, q.distance(p)))
+ .filter(|(.., dist)| *dist <= tol)
+ .min_by(|a, b| a.3.total_cmp(&b.3))
+ .map(|(at, d, q, _)| (at, d, q))
+ }
+
/// The anchor or centre nearest `p`, within `tol`.
/// Is a target point (an anchor, a centre) within `tol` of `p`?
pub(crate) fn has_point_near(&self, p: Point, tol: f64) -> bool {
@@ -621,7 +727,7 @@ impl Targets {
}
/// Slide `q`, on the line through `at` along `dir` (beyond `at` only, for a `ray`), to where
- /// the nearest target line crosses it, at most twice `tol` away: where it lands and the
+ /// the nearest target line or angled glyph guide crosses it, at most twice `tol` away: where it lands and the
/// target's own point (where its line starts).
fn slide(&self, at: Point, dir: Vec2, q: Point, tol: f64, ray: bool) -> Option<(Point, Point)> {
if !dir.hypot2().is_finite() || dir.hypot2() <= 1e-18 {
@@ -646,6 +752,19 @@ impl Targets {
}
}
}
+ // The angled glyph guides it crosses.
+ for &(on, e) in &self.angled {
+ let across = dir.cross(e);
+ if across.abs() <= 1e-9 * dir.hypot() {
+ continue;
+ }
+ let s = (on - at).cross(e) / across;
+ let hit = at + dir * s;
+ let moved = hit.distance(q);
+ if moved <= reach && (!ray || s > 0.0) && best.is_none_or(|b| moved < b.0) {
+ best = Some((moved, hit, on));
+ }
+ }
best.map(|(_, hit, from)| (hit, from))
}
diff --git a/crates/tools/src/guides/tests.rs b/crates/tools/src/guides/tests.rs
index 517937c74c..200ab5008f 100644
--- a/crates/tools/src/guides/tests.rs
+++ b/crates/tools/src/guides/tests.rs
@@ -608,3 +608,208 @@ fn draw_snap_gathers_once_per_document_state() {
let q = snap.press(&c, Point::new(31.0, 2.0), &[], Some(&from));
assert!((q.y - 0.0).abs() < 1e-9, "{q:?}");
}
+
+/// A document holding point type `text` at (100, 300), 60 pt, turned `angle` radians about
+/// where it starts, and the type.
+fn glyph_doc(text: &str, angle: f64) -> (vectorcraft_doc::Document, vectorcraft_doc::TextObject) {
+ glyph_doc_with(text, angle, vectorcraft_doc::CharStyle { size: 60.0, ..Default::default() })
+}
+
+/// [`glyph_doc`] with the type in `style`.
+fn glyph_doc_with(text: &str, angle: f64, style: vectorcraft_doc::CharStyle) -> (vectorcraft_doc::Document, vectorcraft_doc::TextObject) {
+ let mut d = vectorcraft_doc::Document::new(500.0, 500.0);
+ let l = d.layers[0].id;
+ let id = d.alloc_id();
+ let at = Point::new(100.0, 300.0);
+ let mut t = vectorcraft_doc::TextObject::point(at, text, style);
+ t.xf = Affine::rotate_about(angle, at) * t.xf;
+ d.insert(Some(l), 0, Node::new(id, NodeKind::Text(Box::new(t.clone())))).unwrap();
+ (d, t)
+}
+
+/// Snap to Glyph: a Pen click near an anchor point of a glyph's outline lands on it, and not with
+/// Snap to Glyph off.
+#[test]
+fn pen_click_near_a_glyph_anchor_lands_on_it() {
+ use crate::{Action, PointerEvent, PointerKind, Tool};
+ let (d, t) = glyph_doc("H", 0.0);
+ let lay = layout_text(FontDb::global(), &t);
+ let g = lay.glyphs.iter().find(|g| !g.outline.elements().is_empty()).expect("a glyph with an outline");
+ // An anchor inside the glyph's bounds (a corner where the crossbar meets a stem), which no
+ // glyph bounds line passes through.
+ let bb = g.outline.bounding_box();
+ let inside = |p: Point| p.x > bb.x0 + 1.0 && p.x < bb.x1 - 1.0 && p.y > bb.y0 + 1.0 && p.y < bb.y1 - 1.0;
+ let anchor = t.xf * g.outline.segments().map(|s| s.start()).find(|p| inside(*p)).expect("an anchor inside the glyph");
+ let (s, p) = (Selection::default(), paint());
+ let click = anchor + Vec2::new(1.5, -1.0);
+ let first_anchor = |glyphs: bool| {
+ let c = ToolContext { snap_to_glyph: glyphs, ..cx(&d, &s, &p) };
+ let mut pen = crate::pen::PenTool::default();
+ let acts = pen.pointer(&c, &PointerEvent::new(PointerKind::Down, click.x, click.y));
+ let Some(Action::Preview(_, v)) = acts.get(1) else { panic!("{acts:?}") };
+ Point::new(v["anchors"][0]["x"].as_f64().unwrap(), v["anchors"][0]["y"].as_f64().unwrap())
+ };
+ assert!(first_anchor(true).distance(anchor) < 1e-9, "{:?} vs {anchor:?}", first_anchor(true));
+ assert!(first_anchor(false).distance(anchor) > 1e-3);
+ // Snap to Glyph works with Smart Guides on: Snap to Point alone does not land on glyph anchors.
+ let c = ToolContext { snap_to_glyph: true, smart_guides: false, snap_to_point: true, ..cx(&d, &s, &p) };
+ let mut pen = crate::pen::PenTool::default();
+ let acts = pen.pointer(&c, &PointerEvent::new(PointerKind::Down, click.x, click.y));
+ let Some(Action::Preview(_, v)) = acts.get(1) else { panic!("{acts:?}") };
+ let q = Point::new(v["anchors"][0]["x"].as_f64().unwrap(), v["anchors"][0]["y"].as_f64().unwrap());
+ assert!(q.distance(anchor) > 1e-3, "{q:?} landed on the glyph anchor with Smart Guides off");
+}
+
+/// Snap to Glyph: a single line of type has an x-height guide; a paragraph shows glyph bounds only.
+#[test]
+fn drawn_points_line_up_with_the_x_height_of_a_single_line() {
+ let (d, t) = glyph_doc("H", 0.0);
+ let lay = layout_text(FontDb::global(), &t);
+ let g = &lay.glyphs[0];
+ let face = FontDb::global().face_by_id(g.font_id).unwrap();
+ let x_height = (t.xf * g.xf * Point::new(0.0, -face.x_height())).y;
+ let p = Point::new(400.0, x_height + 2.0);
+ let (q, _) = Targets::for_drawing(&d, &[], None, true).snap_point(p, 4.0);
+ assert!((q.y - x_height).abs() < 1e-9, "{q:?}, x-height {x_height}");
+ let (q, _) = Targets::for_drawing(&d, &[], None, false).snap_point(p, 4.0);
+ assert_eq!(q.y, p.y);
+ let (d, _) = glyph_doc("H\nH", 0.0);
+ let (q, _) = Targets::for_drawing(&d, &[], None, true).snap_point(p, 4.0);
+ assert_eq!(q.y, p.y, "a paragraph has no x-height guide");
+ // Baseline Shift raises the x-height with the glyphs.
+ let (d, _) = glyph_doc_with("H", 0.0, vectorcraft_doc::CharStyle { size: 60.0, baseline_shift: 10.0, ..Default::default() });
+ let (q, _) = Targets::for_drawing(&d, &[], None, true).snap_point(Point::new(400.0, x_height - 10.0 + 2.0), 4.0);
+ assert!((q.y - (x_height - 10.0)).abs() < 1e-9, "{q:?}, shifted x-height {}", x_height - 10.0);
+ // Character Rotation turns the glyph, not its baseline shift.
+ let style = vectorcraft_doc::CharStyle { size: 60.0, baseline_shift: 10.0, rotation: 30.0, ..Default::default() };
+ let (d, _) = glyph_doc_with("H", 0.0, style);
+ let (q, _) = Targets::for_drawing(&d, &[], None, true).snap_point(Point::new(400.0, x_height - 10.0 + 2.0), 4.0);
+ assert!((q.y - (x_height - 10.0)).abs() < 1e-9, "{q:?}, shifted x-height {}", x_height - 10.0);
+ // Glyph Scaling widens a rotated glyph without raising its x-height.
+ let mut t =
+ vectorcraft_doc::TextObject::point(Point::ZERO, "HH HH", vectorcraft_doc::CharStyle { size: 60.0, rotation: 90.0, ..Default::default() });
+ let frame = kurbo::Shape::to_path(&kurbo::Rect::new(50.0, 100.0, 450.0, 400.0), 0.1);
+ t.kind = vectorcraft_doc::TextKind::Area { frame: vectorcraft_geom::PathData::from_bezpath(&frame) };
+ t.xf = Affine::IDENTITY;
+ t.para.justify = vectorcraft_doc::Justify::JustifyAll;
+ t.para.justification.glyph_scaling = [100.0, 100.0, 200.0];
+ let mut d = vectorcraft_doc::Document::new(500.0, 500.0);
+ let (l, id) = (d.layers[0].id, d.alloc_id());
+ d.insert(Some(l), 0, Node::new(id, NodeKind::Text(Box::new(t.clone())))).unwrap();
+ let lay = layout_text(FontDb::global(), &t);
+ assert_eq!(lay.lines.len(), 1);
+ let g = lay.glyphs.iter().find(|g| !g.outline.elements().is_empty()).expect("a glyph with an outline");
+ assert!(g.scale > 1.2, "Glyph Scaling widens the glyph: {}", g.scale);
+ let expected = (t.xf * g.origin).y - (300.0 - x_height);
+ let (q, _) = Targets::for_drawing(&d, &[], None, true).snap_point(Point::new(30.0, expected + 2.0), 4.0);
+ assert!((q.y - expected).abs() < 1e-9, "{q:?}, x-height {expected}");
+}
+
+/// Snap to Glyph: the x-height guide of type skewed along a slanted path runs through the glyph's
+/// x-height.
+#[test]
+fn the_x_height_guide_of_skewed_path_type_runs_through_the_glyphs_x_height() {
+ let mut path = kurbo::BezPath::new();
+ path.move_to((100.0, 400.0));
+ path.line_to((300.0, 54.0));
+ let mut t = vectorcraft_doc::TextObject::point(Point::ZERO, "H", vectorcraft_doc::CharStyle { size: 60.0, ..Default::default() });
+ t.kind = vectorcraft_doc::TextKind::OnPath { path: vectorcraft_geom::PathData::from_bezpath(&path), start: 0.0, end: None };
+ t.xf = Affine::IDENTITY;
+ t.path_effect = vectorcraft_doc::PathEffect::Skew;
+ let mut d = vectorcraft_doc::Document::new(500.0, 500.0);
+ let (l, id) = (d.layers[0].id, d.alloc_id());
+ d.insert(Some(l), 0, Node::new(id, NodeKind::Text(Box::new(t.clone())))).unwrap();
+ let lay = layout_text(FontDb::global(), &t);
+ let g = lay.glyphs.iter().find(|g| !g.outline.elements().is_empty()).expect("a glyph with an outline");
+ let face = FontDb::global().face_by_id(g.font_id).unwrap();
+ let top = t.xf * g.xf * Point::new(0.0, -face.x_height());
+ let ahead = Vec2::new(g.angle.cos(), g.angle.sin());
+ let normal = Vec2::new(ahead.y, -ahead.x);
+ // Beside the guide's line, past the glyph's end along it.
+ let p = top + ahead * 80.0 + normal * 1.5;
+ let (q, _) = Targets::for_drawing(&d, &[], None, true).snap_point(p, 4.0);
+ assert!((q - top).cross(ahead).abs() < 1e-6, "{q:?} is off the x-height line through {top:?}");
+}
+
+/// Snap to Glyph › Proximity Guides: the edges of each character's advance width are guides.
+#[test]
+fn drawn_points_line_up_with_the_edge_of_a_characters_width() {
+ let (d, t) = glyph_doc("HH", 0.0);
+ let lay = layout_text(FontDb::global(), &t);
+ let edge = (t.xf * lay.glyphs[1].origin).x;
+ let p = Point::new(edge + 0.3, 450.0);
+ let (q, _) = Targets::for_drawing(&d, &[], None, true).snap_point(p, 4.0);
+ assert!((q.x - edge).abs() < 1e-9, "{q:?}, edge {edge}");
+ let (q, _) = Targets::for_drawing(&d, &[], None, false).snap_point(p, 4.0);
+ assert_eq!(q.x, p.x);
+ // Character Rotation turns the glyphs, not their widths along the baseline.
+ let (d, t) = glyph_doc_with("HH", 0.0, vectorcraft_doc::CharStyle { size: 60.0, rotation: 30.0, ..Default::default() });
+ let lay = layout_text(FontDb::global(), &t);
+ let edge = (t.xf * lay.glyphs[1].origin).x;
+ let p = Point::new(edge + 0.3, 450.0);
+ let (q, _) = Targets::for_drawing(&d, &[], None, true).snap_point(p, 4.0);
+ assert!((q.x - edge).abs() < 1e-9, "{q:?}, edge {edge}");
+}
+
+/// Snap to Glyph › Angular Guides: in a rotated glyph a straight upright stroke is a guide at its
+/// angle, which a drawn point lands on beyond the glyph.
+#[test]
+fn a_rotated_glyph_has_angular_guides_along_its_strokes() {
+ let angle = 20f64.to_radians();
+ let (d, t) = glyph_doc("H", angle);
+ let lay = layout_text(FontDb::global(), &t);
+ let g = lay.glyphs.iter().find(|g| !g.outline.elements().is_empty()).expect("a glyph with an outline");
+ let stem = g
+ .outline
+ .segments()
+ .find_map(|s| match s {
+ PathSeg::Line(l) if (l.p1.x - l.p0.x).abs() < 1e-6 && (l.p1.y - l.p0.y).abs() > 10.0 => Some(l),
+ _ => None,
+ })
+ .expect("an upright stroke");
+ let (a, b) = (t.xf * stem.p0, t.xf * stem.p1);
+ let dir = (b - a) / (b - a).hypot();
+ // Past the far end of the stroke, a little beside its line.
+ let far = if (a - t.xf * Point::new(0.0, 0.0)).hypot() > (b - t.xf * Point::new(0.0, 0.0)).hypot() { a } else { b };
+ let out = if far == a { -dir } else { dir };
+ let p = far + out * 30.0 + Vec2::new(-dir.y, dir.x) * 1.5;
+ let on_line = |q: Point| (q - a).cross(dir).abs();
+ let (q, ov) = Targets::for_drawing(&d, &[], None, true).snap_point(p, 4.0);
+ assert!(on_line(q) < 1e-9, "{q:?} is {} off the stroke's line", on_line(q));
+ assert!(!lines(&ov).is_empty());
+ let (q, _) = Targets::for_drawing(&d, &[], None, false).snap_point(p, 4.0);
+ assert!(on_line(q) > 1e-3, "no angular guide with Snap to Glyph off");
+}
+
+/// Snap to Glyph: the baseline of type turned slightly runs at its angle, and a point near it
+/// lands on it even close to where it starts, far nearer the horizontal through that point.
+#[test]
+fn a_slightly_rotated_baseline_pulls_points_near_its_start() {
+ let (d, t) = glyph_doc("H", 2f64.to_radians());
+ let lay = layout_text(FontDb::global(), &t);
+ let m = t.xf * lay.line_xf;
+ let start = m * Point::new(lay.lines[0].x0, lay.lines[0].baseline);
+ let dir = (m * Point::new(1.0, 0.0)) - (m * Point::ZERO);
+ let dir = dir / dir.hypot();
+ let p = start - dir * 10.0 + Vec2::new(-dir.y, dir.x) * 1.0;
+ let (q, _) = Targets::for_drawing(&d, &[], None, true).snap_point(p, 4.0);
+ assert!((q - start).cross(dir).abs() < 1e-9, "{q:?} is off the baseline");
+}
+
+/// Snap to Glyph: a segment Shift keeps level slides along to where it crosses the baseline of
+/// rotated type.
+#[test]
+fn a_shift_constrained_point_slides_onto_a_rotated_baseline() {
+ let (d, t) = glyph_doc("H", 20f64.to_radians());
+ let lay = layout_text(FontDb::global(), &t);
+ let m = t.xf * lay.line_xf;
+ let start = m * Point::new(lay.lines[0].x0, lay.lines[0].baseline);
+ let dir = (m * Point::new(1.0, 0.0)) - (m * Point::ZERO);
+ let dir = dir / dir.hypot();
+ let crossing = start - dir * 40.0;
+ let (s, p) = (Selection::default(), paint());
+ let c = cx(&d, &s, &p);
+ let from = Leave::segment(&c, crossing - Vec2::new(60.0, 0.0), true);
+ let (q, _) = Targets::for_drawing(&d, &[], None, true).snap_from(crossing + Vec2::new(1.5, 0.3), Some(&from), 4.0);
+ assert!(q.distance(crossing) < 1e-9, "{q:?} vs {crossing:?}");
+}
diff --git a/crates/tools/src/lib.rs b/crates/tools/src/lib.rs
index e55bb4069a..c4df0c9467 100644
--- a/crates/tools/src/lib.rs
+++ b/crates/tools/src/lib.rs
@@ -219,6 +219,11 @@ pub trait Tool: Send {
fn deactivate(&mut self, _cx: &ToolContext) -> Vec {
vec![]
}
+ /// The tool, already active, is chosen again (its toolbar button, its shortcut, `tool.select`).
+ /// Most tools keep their state; the Blend tool finishes the blend it is adding to.
+ fn chosen_again(&mut self, _cx: &ToolContext) -> Vec {
+ vec![]
+ }
/// A command from outside the tool ran (a menu, a panel, an agent): finish work it ended (the
/// Type tool stops editing text the command took out of the selection).
fn after_command(&mut self, _cx: &ToolContext) -> Vec {
diff --git a/crates/tools/src/meshblend.rs b/crates/tools/src/meshblend.rs
index 230c92ea2e..0ac4242679 100644
--- a/crates/tools/src/meshblend.rs
+++ b/crates/tools/src/meshblend.rs
@@ -3,13 +3,14 @@
//! - Blend: click object A, then object B → `object.blend.make {ids: [A, B]}`; clicking an anchor
//! point of a path blends from that point (`starts`). Each further click adds the object as one
//! more key of the new blend (as does clicking a blend first). Double-click or Alt-click opens
-//! Blend Options (dialog `blendOptions`). Clicking empty canvas starts over.
+//! Blend Options (dialog `blendOptions`). Clicking empty canvas or pressing Escape starts over.
//! - Mesh: click inside a filled path → `object.mesh.create {ids, at}` (1×1 mesh plus lines through
//! the click); click inside a mesh or a mesh envelope → `object.mesh.addLine` (a gradient mesh's
//! new point takes the current fill color in its own model, unless Shift); drag a mesh point,
//! or a handle of the point last clicked → `object.mesh.movePoint` previews ([`MeshEdit`]);
//! Alt-click a mesh point → `object.mesh.deletePoint`. Clicking a gradient mesh's point selects
-//! the mesh, and the next solid fill color recolors just that point.
+//! the mesh, and the next solid fill color recolors just that point. Escape during a drag
+//! cancels it.
use serde_json::json;
use vectorcraft_color::Paint;
@@ -17,7 +18,7 @@ use vectorcraft_doc::{NodeId, NodeKind};
use vectorcraft_geom::Point;
use crate::meshedit::{MeshEdit, grid_of};
-use crate::{Action, Cursor, Mods, Overlay, PointerEvent, PointerKind, Tool, ToolContext};
+use crate::{Action, Cursor, Mods, Overlay, PointerEvent, PointerKind, Tool, ToolContext, ToolKey};
const FEEDBACK: [u8; 3] = [0x4f, 0x9d, 0xff];
@@ -87,6 +88,11 @@ impl Tool for BlendTool {
(t.first, t.chained) = (None, false);
vec![Action::Dialog(BLEND_OPTIONS.into(), json!({}))]
};
+ // A first pick whose object is no longer in the document (deleted, or undone away) is
+ // dropped, so the click picks the object it hits as the new first pick.
+ if self.first.is_some_and(|(a, _)| cx.doc.node(a).is_none()) {
+ (self.first, self.chained) = (None, false);
+ }
match ev.kind {
PointerKind::DoubleClick => options(self),
PointerKind::Down if ev.mods.alt => options(self),
@@ -135,10 +141,24 @@ impl Tool for BlendTool {
fn busy(&self) -> bool {
self.first.is_some()
}
+ /// Escape drops the object picked first and stops adding to the blend just made, so the next
+ /// click picks a new first object. The document and the selection stay as they are.
+ fn key(&mut self, _cx: &ToolContext, key: crate::ToolKey, _mods: Mods) -> Vec {
+ if key == crate::ToolKey::Escape {
+ (self.first, self.chained) = (None, false);
+ }
+ vec![]
+ }
fn deactivate(&mut self, _cx: &ToolContext) -> Vec {
(self.first, self.chained) = (None, false);
vec![]
}
+ /// Choosing the Blend tool again finishes the blend: it drops the object picked first and
+ /// stops adding to the blend just made, so the next click picks a new first object. The
+ /// document and the selection stay as they are.
+ fn chosen_again(&mut self, cx: &ToolContext) -> Vec {
+ self.deactivate(cx)
+ }
}
#[derive(Default)]
@@ -252,6 +272,14 @@ impl Tool for MeshTool {
fn busy(&self) -> bool {
self.edit.dragging()
}
+ /// Escape during a drag of a mesh point or handle cancels it: the point goes back and the
+ /// release does nothing.
+ fn key(&mut self, _cx: &ToolContext, key: ToolKey, _mods: Mods) -> Vec {
+ if key != ToolKey::Escape {
+ return vec![];
+ }
+ self.edit.cancel().unwrap_or_default()
+ }
fn deactivate(&mut self, _cx: &ToolContext) -> Vec {
self.edit.unfocus();
self.edit.release().unwrap_or_default()
@@ -279,6 +307,72 @@ mod tests {
assert_eq!(acts, vec![Action::Exec("object.blend.make".into(), json!({"ids": [a.0, b.0]}))]);
}
+ /// Choosing the Blend tool again drops the object picked first and stops adding to the blend
+ /// just made: the next click is a new first pick. The Mesh tool keeps its state.
+ #[test]
+ fn choosing_the_blend_tool_again_finishes_the_blend() {
+ let (mut d, a) = doc_with_rect();
+ let l = d.layers[0].id;
+ let (b, g) = (d.alloc_id(), d.alloc_id());
+ let r = vectorcraft_geom::shapes::rectangle(vectorcraft_geom::Rect::new(300.0, 100.0, 350.0, 150.0));
+ d.insert(Some(l), 1, vectorcraft_doc::Node::path(b, r, vectorcraft_doc::Appearance::default_art())).unwrap();
+ let (k1, k2) = (d.alloc_id(), d.alloc_id());
+ let key = |id: NodeId, x: f64| {
+ let r = vectorcraft_geom::shapes::rectangle(vectorcraft_geom::Rect::new(x, 300.0, x + 20.0, 320.0));
+ std::sync::Arc::new(vectorcraft_doc::Node::path(id, r, vectorcraft_doc::Appearance::default_art()))
+ };
+ let blend = vectorcraft_doc::Node::new(g, NodeKind::Blend { children: vec![key(k1, 0.0), key(k2, 100.0)], spec: Default::default() });
+ d.insert(Some(l), 2, blend).unwrap();
+ let (s, p) = (Selection::default(), paint());
+ let c = cx(&d, &s, &p);
+ let picks = |id: NodeId| vec![Action::Exec("select.set".into(), json!({"ids": [id.0]}))];
+ let down = |x: f64, y: f64| PointerEvent::new(PointerKind::Down, x, y);
+ let mut t = BlendTool::default();
+ assert_eq!(t.pointer(&c, &down(150.0, 150.0)), picks(a));
+ assert!(t.busy());
+ assert!(t.chosen_again(&c).is_empty(), "choosing the tool again changes nothing in the document");
+ assert!(!t.busy() && t.first(&c).is_none() && t.overlays(&c).is_empty(), "and drops the pick");
+ assert_eq!(t.pointer(&c, &down(320.0, 120.0)), picks(b), "b is picked first");
+ // After a blend is made, the next click no longer adds to it.
+ let mut s = Selection::default();
+ s.set([g]);
+ let c = cx(&d, &s, &p);
+ let mut t = BlendTool { first: None, chained: true };
+ assert!(t.first(&c).is_some());
+ assert!(t.chosen_again(&c).is_empty());
+ assert!(t.first(&c).is_none(), "choosing the tool again ends adding to the blend just made");
+ assert_eq!(t.pointer(&c, &down(150.0, 150.0)), picks(a));
+ // Other tools keep their state: the default does nothing.
+ assert!(create("mesh").unwrap().chosen_again(&c).is_empty());
+ }
+
+ #[test]
+ fn blend_tool_picks_again_when_its_first_pick_is_gone() {
+ let (mut d, a) = doc_with_rect();
+ let l = d.layers[0].id;
+ let (b, e) = (d.alloc_id(), d.alloc_id());
+ for (id, y) in [(b, 100.0), (e, 300.0)] {
+ let r = vectorcraft_geom::shapes::rectangle(vectorcraft_geom::Rect::new(300.0, y, 350.0, y + 50.0));
+ d.insert(Some(l), 1, vectorcraft_doc::Node::path(id, r, vectorcraft_doc::Appearance::default_art())).unwrap();
+ }
+ let (s, p) = (Selection::default(), paint());
+ let mut t = BlendTool::default();
+ t.pointer(&cx(&d, &s, &p), &PointerEvent::new(PointerKind::Down, 150.0, 150.0));
+ // The first pick is deleted (or undone away) while the tool waits for the second click.
+ d.remove(a).unwrap();
+ let c = cx(&d, &s, &p);
+ let acts = t.pointer(&c, &PointerEvent::new(PointerKind::Down, 320.0, 120.0));
+ assert_eq!(acts, vec![Action::Exec("select.set".into(), json!({"ids": [b.0]}))], "the click picks b first");
+ let acts = t.pointer(&c, &PointerEvent::new(PointerKind::Down, 320.0, 320.0));
+ assert_eq!(acts, vec![Action::Exec("object.blend.make".into(), json!({"ids": [b.0, e.0]}))]);
+ // After a blend is made, a click while the selected blend is gone picks the object it hits.
+ let mut s = Selection::default();
+ s.set([NodeId(9999)]);
+ let mut t = BlendTool { first: None, chained: true };
+ let acts = t.pointer(&cx(&d, &s, &p), &PointerEvent::new(PointerKind::Down, 320.0, 120.0));
+ assert_eq!(acts, vec![Action::Exec("select.set".into(), json!({"ids": [b.0]}))]);
+ }
+
#[test]
fn blend_tool_anchor_clicks_and_options() {
let (mut d, a) = doc_with_rect();
@@ -331,6 +425,49 @@ mod tests {
assert!(t.first(&c).is_none());
}
+ /// Escape drops the object picked first, and stops adding to the blend just made: the next
+ /// click is a new first pick, and the click after it blends with that one.
+ #[test]
+ fn escape_drops_the_blend_tools_first_pick() {
+ let (mut d, a) = doc_with_rect();
+ let l = d.layers[0].id;
+ let (b, g) = (d.alloc_id(), d.alloc_id());
+ let r = vectorcraft_geom::shapes::rectangle(vectorcraft_geom::Rect::new(300.0, 100.0, 350.0, 150.0));
+ d.insert(Some(l), 1, vectorcraft_doc::Node::path(b, r, vectorcraft_doc::Appearance::default_art())).unwrap();
+ let (k1, k2) = (d.alloc_id(), d.alloc_id());
+ let key = |id: NodeId, x: f64| {
+ let r = vectorcraft_geom::shapes::rectangle(vectorcraft_geom::Rect::new(x, 300.0, x + 20.0, 320.0));
+ std::sync::Arc::new(vectorcraft_doc::Node::path(id, r, vectorcraft_doc::Appearance::default_art()))
+ };
+ let blend = vectorcraft_doc::Node::new(g, NodeKind::Blend { children: vec![key(k1, 0.0), key(k2, 100.0)], spec: Default::default() });
+ d.insert(Some(l), 2, blend).unwrap();
+ let (s, p) = (Selection::default(), paint());
+ let c = cx(&d, &s, &p);
+ let picks = |id: NodeId| vec![Action::Exec("select.set".into(), json!({"ids": [id.0]}))];
+ let down = |x: f64, y: f64| PointerEvent::new(PointerKind::Down, x, y);
+ let esc = |t: &mut BlendTool| t.key(&c, crate::ToolKey::Escape, Mods::default());
+ let mut t = BlendTool::default();
+ assert_eq!(t.pointer(&c, &down(150.0, 150.0)), picks(a));
+ assert!(t.busy() && !t.overlays(&c).is_empty());
+ assert!(t.key(&c, crate::ToolKey::Enter, Mods::default()).is_empty());
+ assert!(t.busy(), "Enter keeps the pick");
+ assert!(esc(&mut t).is_empty(), "Escape changes nothing in the document");
+ assert!(!t.busy() && t.first(&c).is_none() && t.overlays(&c).is_empty(), "Escape drops the pick");
+ // The next click picks b first instead of blending a with it.
+ assert_eq!(t.pointer(&c, &down(320.0, 120.0)), picks(b));
+ assert_eq!(t.pointer(&c, &down(150.0, 150.0)), vec![Action::Exec("object.blend.make".into(), json!({"ids": [b.0, a.0]}))]);
+ // After a blend is made, Escape stops the next click adding to it.
+ let mut s = Selection::default();
+ s.set([g]);
+ let c = cx(&d, &s, &p);
+ let mut t = BlendTool { first: None, chained: true };
+ assert!(t.first(&c).is_some());
+ assert!(t.key(&c, crate::ToolKey::Escape, Mods::default()).is_empty());
+ assert!(t.first(&c).is_none(), "Escape ends adding to the blend just made");
+ assert_eq!(t.pointer(&c, &down(150.0, 150.0)), picks(a));
+ assert!(esc(&mut BlendTool::default()).is_empty(), "nothing to drop");
+ }
+
#[test]
fn mesh_tool_click_path_creates_mesh() {
let (d, a) = doc_with_rect();
diff --git a/crates/tools/src/meshedit.rs b/crates/tools/src/meshedit.rs
index 9037968ae2..39f8adcdb7 100644
--- a/crates/tools/src/meshedit.rs
+++ b/crates/tools/src/meshedit.rs
@@ -102,6 +102,11 @@ impl MeshEdit {
self.drag.take().map(|_| vec![Action::Commit])
}
+ /// Cancel a drag: the point or handle goes back (`None` when nothing was being dragged).
+ pub fn cancel(&mut self) -> Option> {
+ self.drag.take().map(|_| vec![Action::Cancel])
+ }
+
pub fn dragging(&self) -> bool {
self.drag.is_some()
}
@@ -194,6 +199,34 @@ mod tests {
);
}
+ /// Escape during a drag of a mesh point or handle, with the Mesh tool or Direct Selection,
+ /// cancels it, and the release after it does nothing; the point stays the focused one.
+ #[test]
+ fn escape_cancels_a_mesh_point_drag() {
+ let (d, e) = doc_with_envelope();
+ let mut s = Selection::default();
+ s.set([e]);
+ let p = paint();
+ let c = cx(&d, &s, &p);
+ let tools: [(&str, Box); 2] =
+ [("mesh", crate::meshblend::create("mesh").unwrap()), ("directSelection", Box::new(crate::direct::DirectSelectionTool::new(false)))];
+ for (what, mut t) in tools {
+ // A point, then (once the point is focused) its handle.
+ for (x, y) in [(200.0, 100.0), (200.0, 133.33333)] {
+ assert_eq!(t.pointer(&c, &PointerEvent::new(PointerKind::Down, x, y)), vec![Action::Begin("Move Mesh Point".into())], "{what}");
+ t.pointer(&c, &PointerEvent::new(PointerKind::Drag, x + 10.0, y - 10.0));
+ assert!(t.key(&c, crate::ToolKey::Enter, crate::Mods::default()).is_empty(), "{what}: Enter leaves the drag alone");
+ assert!(t.busy(), "{what}");
+ assert_eq!(t.key(&c, crate::ToolKey::Escape, crate::Mods::default()), vec![Action::Cancel], "{what}: Escape cancels the drag");
+ assert!(!t.busy(), "{what}");
+ assert!(t.pointer(&c, &PointerEvent::new(PointerKind::Drag, x + 20.0, y - 20.0)).is_empty(), "{what}: the drag is over");
+ assert!(t.pointer(&c, &PointerEvent::new(PointerKind::Up, x + 20.0, y - 20.0)).is_empty(), "{what}: the release does nothing");
+ assert!(t.overlays(&c).iter().any(|o| matches!(o, Overlay::Handle { .. })), "{what}: the point stays focused");
+ }
+ assert!(t.key(&c, crate::ToolKey::Escape, crate::Mods::default()).is_empty(), "{what}: nothing to cancel");
+ }
+ }
+
#[test]
fn direct_selection_drags_a_selected_envelopes_points() {
let (d, e) = doc_with_envelope();
diff --git a/crates/tools/src/pie.rs b/crates/tools/src/pie.rs
index 57ef477341..af79c1ce46 100644
--- a/crates/tools/src/pie.rs
+++ b/crates/tools/src/pie.rs
@@ -287,6 +287,24 @@ mod tests {
assert!(t.pointer(&c, &ev(PointerKind::Up, Point::new(312.0, 150.0))).is_empty());
}
+ /// Escape during a pie widget drag with the Selection tool cancels it: the angle readout is removed,
+ /// and the release after it commits nothing.
+ #[test]
+ fn escape_cancels_a_pie_widget_drag() {
+ let (d, _, s) = doc_with_ellipse((0.0, 360.0));
+ let p = paint();
+ let c = cx(&d, &s, &p);
+ let mut t = SelectionTool::default();
+ assert!(t.pointer(&c, &ev(PointerKind::Down, Point::new(312.0, 150.0))).is_empty());
+ let a = t.pointer(&c, &ev(PointerKind::Drag, Point::new(200.0, 20.0)));
+ assert_eq!(a[0], Action::Begin("Live Shape".into()));
+ assert_eq!(t.key(&c, crate::ToolKey::Escape, Mods::default()), vec![Action::Cancel], "Escape cancels the drag");
+ assert!(!t.busy() && !t.transforming());
+ assert!(!t.overlays(&c).iter().any(|o| matches!(o, Overlay::Measure { .. })), "the readout is removed");
+ assert!(t.pointer(&c, &ev(PointerKind::Drag, Point::new(100.0, 200.0))).is_empty(), "the drag is over");
+ assert!(t.pointer(&c, &ev(PointerKind::Up, Point::new(100.0, 200.0))).is_empty(), "the release commits nothing");
+ }
+
/// On a whole ellipse the two widgets sit at the very same point, whatever its size, place or
/// angle, so a press there always takes the End widget.
#[test]
diff --git a/crates/tools/src/select.rs b/crates/tools/src/select.rs
index 3dab80fa3d..8d839602ad 100644
--- a/crates/tools/src/select.rs
+++ b/crates/tools/src/select.rs
@@ -17,6 +17,8 @@
//! scaling its type: the text reflows at its size.
//! E pressed during a marquee drag makes the marquee take only the objects entirely inside it, and
//! E pressed again makes it take the objects it touches.
+//! Escape during a drag (a move or an Alt-drag copy, a scale, a rotation, a marquee, a widget or
+//! bracket drag) cancels it: the art returns to its state at the press.
//! Selected area type and type on a path show an in port and an out port. A click on the out port
//! loads the pointer with the text ([`Cursor::LoadedText`]): the next click threads it into the
//! closed path, area type or type on a path under the pointer, or into a new frame of the same
@@ -35,7 +37,7 @@ use std::cell::RefCell;
use std::collections::HashMap;
use serde_json::{Value, json};
-use vectorcraft_doc::hit::{Hit, HitKind, hit_test, marquee, objects_at};
+use vectorcraft_doc::hit::{Hit, HitKind, hit_test, marquee, objects_at, selected_hidden_at};
use vectorcraft_doc::{NodeId, OrientedBox};
use vectorcraft_geom::{Affine, Point, Rect, Vec2};
@@ -118,6 +120,9 @@ pub struct SelectionTool {
/// What a bounding-box handle being dragged snaps to.
targets: Option,
moving: Option,
+ /// The params of the move's last preview: in Shaper's Construction mode the move ends with
+ /// them and `releaseOutside` ([`construction`]).
+ last_move: Option,
/// The move snapped to a point or a guide at its last step: the arrow turns hollow.
snapped: bool,
guide: GuideEdit,
@@ -195,6 +200,12 @@ impl MoveSnap {
}
}
+ /// Snap to Grid and Snap to Pixel alone, for a move whose box is `bounds`: the grid lands an
+ /// edge of the box on a gridline, and pixels put its top-left on whole pixels.
+ pub(crate) fn grid_only(bounds: Option) -> Self {
+ Self { bounds, targets: None, points: None, copy_targets: None, copy_points: None, rulers: None }
+ }
+
/// The move (`copy`: the copy) by `d` of the selection grabbed at `start`, snapped, and its
/// guides.
pub(crate) fn snap(&self, cx: &ToolContext, start: Point, mut d: Vec2, copy: bool) -> (Vec2, Vec) {
@@ -460,6 +471,33 @@ pub(crate) fn hold_point(cx: &ToolContext, h: &Hit, p: Point) -> Point {
cx.doc.node(h.leaf).and_then(|n| n.path_data()).and_then(|pd| hold_on_path(pd, p, reach)).unwrap_or(p)
}
+/// While an opacity mask or a pattern is edited, a Shaper double-click selects a Shaper Group's
+/// original shape without isolating the group's original shapes. A press at `p` on a selected
+/// original shape holds it for a move: the hit inside its Shaper Group's original shapes, and that
+/// container. Each selected original shape's Shaper Group is checked, front to back, and an object
+/// in front of that group at `p` keeps the press. None otherwise.
+fn selected_source_hit(cx: &ToolContext, p: Point) -> Option<(Hit, NodeId)> {
+ if cx.doc.mask_edit.is_none() && cx.doc.pattern_edit.is_none() {
+ return None;
+ }
+ let is_sources = |g: &NodeId| cx.doc.node(*g).is_some_and(|n| n.name.as_deref() == Some(vectorcraft_doc::shaper::SOURCES));
+ let mut containers = cx.doc.paint_order(cx.selection.objects.iter().filter_map(|id| cx.doc.parent_of(*id)).filter(is_sources));
+ containers.dedup();
+ let front = hit_test(cx.doc, p, cx.selection_hit_options());
+ containers.into_iter().rev().find_map(|sources| {
+ let group = cx.doc.parent_of(sources)?;
+ if let Some(f) = &front
+ && f.leaf != group
+ && !f.ancestry.contains(&group)
+ && cx.doc.paint_order([group, f.leaf]).last() == Some(&f.leaf)
+ {
+ return None;
+ }
+ let h = hit_test(cx.doc, p, vectorcraft_doc::hit::HitOptions { scope: Some(sources), ..cx.selection_hit_options() })?;
+ cx.selection.contains(h.top_object(Some(sources))).then_some((h, sources))
+ })
+}
+
impl SelectionTool {
fn drag_threshold(cx: &ToolContext) -> f64 {
cx.tol(3.0)
@@ -559,7 +597,11 @@ impl Tool for SelectionTool {
}
/// E during a marquee drag switches the marquee between the objects it touches and only the
- /// objects inside it.
+ /// objects inside it. Escape during a drag (a move or an Alt-drag copy, a bounding-box scale or
+ /// rotation, a marquee, a corner widget, a pie widget, the brackets of type on a path, a mirror
+ /// axis, a grid repeat's handles, a ruler guide) cancels it: what it changed goes back, no copy
+ /// is left, and the tool waits for the next press. With the pointer loaded with text, Escape
+ /// drops the text.
fn key(&mut self, _cx: &ToolContext, key: ToolKey, _mods: Mods) -> Vec {
if key == ToolKey::Letter('e')
&& let State::Marquee { enclosed, .. } = &mut self.state
@@ -583,6 +625,13 @@ impl Tool for SelectionTool {
self.state = State::Idle;
return vec![];
}
+ if key == ToolKey::Escape && !matches!(self.state, State::Idle) {
+ self.state = State::Idle;
+ self.measure = None;
+ self.guides.clear();
+ (self.targets, self.moving, self.snapped) = (None, None, false);
+ return vec![Action::Cancel];
+ }
if key == ToolKey::Escape { self.guide.cancel() } else { vec![] }
}
@@ -662,9 +711,13 @@ impl Tool for SelectionTool {
self.state = State::Moving { start: p, press: p, hold: p, began: false, deselect: None, key: None };
return vec![Action::Exec("select.set".into(), json!({ "ids": [behind.0] }))];
}
- match hit_test(cx.doc, p, cx.selection_hit_options()) {
+ let (hit, scope) = match selected_source_hit(cx, p) {
+ Some((h, sources)) => (Some(h), Some(sources)),
+ None => (hit_test(cx.doc, p, cx.selection_hit_options()), cx.isolation),
+ };
+ match hit {
Some(h) => {
- let top = h.top_object(cx.isolation);
+ let top = h.top_object(scope);
let mut out = vec![];
let (mut deselect, mut key) = (None, None);
if m.shift {
@@ -687,7 +740,7 @@ impl Tool for SelectionTool {
out
}
None => {
- self.state = State::Marquee { start: p, cur: p, toggle: m.shift, enclosed: false };
+ self.press_nothing(cx, p, grab, m);
vec![]
}
}
@@ -759,8 +812,17 @@ impl Tool for SelectionTool {
self.measure = None;
self.guides.clear();
self.moving = None;
+ let last = self.last_move.take();
match (began, deselect, key) {
- (true, ..) => vec![Action::Commit],
+ // In Construction mode, an original shape dropped wholly outside the group's
+ // bounds leaves the group, in the move's undo step (`releaseOutside`).
+ (true, ..) => match last.filter(|p| construction(cx) && p["copy"] != json!(true)) {
+ Some(mut params) => {
+ params["releaseOutside"] = json!(true);
+ vec![Action::Preview("object.transform".into(), params), Action::Commit]
+ }
+ None => vec![Action::Commit],
+ },
(false, Some(id), _) => vec![Action::Exec("select.toggle".into(), json!({ "id": id.0 }))],
// A click on the key object again: no key.
(false, None, Some(id)) if cx.selection.key == Some(id) => vec![Action::Exec("select.key".into(), json!({}))],
@@ -883,6 +945,9 @@ impl Tool for SelectionTool {
if cx.snap_to_point && matches!(Self::hover_point(cx, p), Some((_, "anchor"))) {
return Cursor::ArrowHollow;
}
+ if selected_source_hit(cx, p).is_some() {
+ return Cursor::Move;
+ }
if let Some(h) = hit_test(cx.doc, p, cx.selection_hit_options()) {
if cx.selection.contains(h.top_object(cx.isolation)) || m.alt {
return Cursor::Move;
@@ -912,6 +977,11 @@ fn can_be_key(cx: &ToolContext, id: NodeId) -> bool {
cx.doc.node(id).is_some_and(|n| !n.is_layer()) && !inside_selected && !member
}
+/// Shaper's Construction mode: a Shaper Group's original shapes are isolated.
+fn construction(cx: &ToolContext) -> bool {
+ cx.isolation.and_then(|id| cx.doc.node(id)).is_some_and(|n| n.name.as_deref() == Some(vectorcraft_doc::shaper::SOURCES))
+}
+
/// Is `n` area type (text in a frame) whose frame the tools reshape? Type in perspective isn't:
/// it transforms whole.
pub(crate) fn is_area_type(n: &vectorcraft_doc::Node) -> bool {
@@ -1121,6 +1191,17 @@ impl SelectionTool {
}
impl SelectionTool {
+ /// A press at `p` that hits no object starts a marquee, except where a clipping mask hides
+ /// the art of a selected object (picked in the Layers panel, say): there, without Shift, it
+ /// grabs the selection by that art (at `grab`), as a press on its visible part does.
+ fn press_nothing(&mut self, cx: &ToolContext, p: Point, grab: Point, m: Mods) {
+ self.state = if !m.shift && selected_hidden_at(cx.doc, p, cx.selection_hit_options(), &cx.selection.objects).is_some() {
+ State::Moving { start: grab, press: p, hold: grab, began: false, deselect: None, key: None }
+ } else {
+ State::Marquee { start: p, cur: p, toggle: m.shift, enclosed: false }
+ };
+ }
+
fn drag_moving(&mut self, cx: &ToolContext, p: Point, m: Mods, (start, press, hold, began): (Point, Point, Point, bool)) -> Vec {
let mut out = vec![];
if !began {
@@ -1139,7 +1220,9 @@ impl SelectionTool {
self.snapped = (d - unsnapped).hypot() > 1e-9;
self.state = State::Moving { start, press, hold, began: true, deselect: None, key: None };
self.measure = cx.measurement_labels.then(|| (p, cx.offset_label(d.x, d.y)));
- out.push(Action::Preview("object.transform".into(), json!({ "matrix": matrix_json(Affine::translate(d)), "copy": m.alt })));
+ let params = json!({ "matrix": matrix_json(Affine::translate(d)), "copy": m.alt });
+ self.last_move = Some(params.clone());
+ out.push(Action::Preview("object.transform".into(), params));
out
}
}
diff --git a/crates/tools/src/select/tests.rs b/crates/tools/src/select/tests.rs
index f777d59cce..6aace4acde 100644
--- a/crates/tools/src/select/tests.rs
+++ b/crates/tools/src/select/tests.rs
@@ -2,6 +2,64 @@ use super::*;
use crate::testutil::*;
use vectorcraft_doc::Selection;
+/// While an opacity mask is edited, a press on a selected Shaper original shape moves it, over the
+/// art the group shows and over a part of the shape the group does not show. A press on an original
+/// shape that is not selected selects the Shaper Group or starts a marquee, as before.
+#[test]
+fn a_press_on_a_selected_shaper_source_moves_it_while_a_mask_is_edited() {
+ let (mut d, g, sources, _) = doc_with_shaper_group();
+ let rect = d.layers[0].children().unwrap()[0].id;
+ let layer = d.layers[0].id;
+ d.mask_edit = Some(vectorcraft_doc::MaskEdit { object: rect, layer });
+ let ids: Vec = d.node(sources).unwrap().children().unwrap().iter().map(|n| n.id).collect();
+ let (mut s, p) = (Selection::default(), paint());
+ s.set([ids[1]]);
+ let c = ToolContext { isolation: Some(layer), ..cx(&d, &s, &p) };
+ for x in [75.0, 125.0] {
+ let mut t = SelectionTool::default();
+ assert_eq!(t.cursor(&c, Point::new(x, 350.0), Mods::default()), Cursor::Move, "at {x}");
+ let down = t.pointer(&c, &ev(PointerKind::Down, x, 350.0));
+ assert!(!down.iter().any(|a| matches!(a, Action::Exec(c, _) if c == "select.set")), "at {x}: {down:?}");
+ let drag = t.pointer(&c, &ev(PointerKind::Drag, x + 20.0, 350.0));
+ assert!(drag.iter().any(|a| matches!(a, Action::Preview(c, _) if c == "object.transform")), "at {x}: {drag:?}");
+ }
+ s.set([ids[0]]);
+ let c = ToolContext { isolation: Some(layer), ..cx(&d, &s, &p) };
+ let down = SelectionTool::default().pointer(&c, &ev(PointerKind::Down, 125.0, 350.0));
+ assert!(down.is_empty(), "{down:?}");
+ let down = SelectionTool::default().pointer(&c, &ev(PointerKind::Down, 75.0, 350.0));
+ assert!(down.iter().any(|a| matches!(a, Action::Exec(c, v) if c == "select.set" && v["ids"] == json!([g.0]))), "{down:?}");
+}
+
+/// While an opacity mask is edited, a selected Shaper original shape that is not the first selected
+/// object still moves on a press, and an object in front of the Shaper Group keeps the press.
+#[test]
+fn a_selected_shaper_source_moves_after_other_objects_and_behind_front_art() {
+ use vectorcraft_doc::{Appearance, Node};
+ let (mut d, _, sources, _) = doc_with_shaper_group();
+ let rect = d.layers[0].children().unwrap()[0].id;
+ let layer = d.layers[0].id;
+ d.mask_edit = Some(vectorcraft_doc::MaskEdit { object: rect, layer });
+ let ids: Vec = d.node(sources).unwrap().children().unwrap().iter().map(|n| n.id).collect();
+ let (mut s, p) = (Selection::default(), paint());
+ s.set([rect, ids[1]]);
+ let c = ToolContext { isolation: Some(layer), ..cx(&d, &s, &p) };
+ let mut t = SelectionTool::default();
+ assert_eq!(t.cursor(&c, Point::new(125.0, 350.0), Mods::default()), Cursor::Move);
+ let down = t.pointer(&c, &ev(PointerKind::Down, 125.0, 350.0));
+ assert!(!down.iter().any(|a| matches!(a, Action::Exec(c, _) if c == "select.set")), "{down:?}");
+ let drag = t.pointer(&c, &ev(PointerKind::Drag, 145.0, 350.0));
+ assert!(drag.iter().any(|a| matches!(a, Action::Preview(c, _) if c == "object.transform")), "{drag:?}");
+ let front = d.alloc_id();
+ let square = vectorcraft_geom::shapes::rectangle(Rect::new(110.0, 340.0, 140.0, 360.0));
+ d.insert(Some(layer), 2, Node::path(front, square, Appearance::default_art())).unwrap();
+ s.set([ids[1]]);
+ let c = ToolContext { isolation: Some(layer), ..cx(&d, &s, &p) };
+ assert_ne!(SelectionTool::default().cursor(&c, Point::new(125.0, 350.0), Mods::default()), Cursor::Move);
+ let down = SelectionTool::default().pointer(&c, &ev(PointerKind::Down, 125.0, 350.0));
+ assert!(down.iter().any(|a| matches!(a, Action::Exec(c, v) if c == "select.set" && v["ids"] == json!([front.0]))), "{down:?}");
+}
+
fn ev(kind: PointerKind, x: f64, y: f64) -> PointerEvent {
PointerEvent::new(kind, x, y)
}
@@ -21,6 +79,53 @@ fn a_press_on_a_masks_edge_selects_its_clip_group() {
assert!(!a.iter().any(|a| matches!(a, Action::Exec(c, _) if c == "select.set")), "{a:?}");
}
+/// The art of a selected clipped object (picked in the Layers panel), pressed where its mask
+/// hides it, is grabbed: a drag moves the selection (the art, not its clip group) and a click
+/// keeps it selected. With nothing of it selected, or with Shift, a press there starts a marquee.
+#[test]
+fn a_press_where_a_mask_hides_a_selected_object_drags_it() {
+ let (d, _, _, art) = doc_with_masked_square();
+ let p = paint();
+ let mut picked = Selection::default();
+ picked.add(art);
+ let shift = |kind, x, y| {
+ let mut e = ev(kind, x, y);
+ e.mods.shift = true;
+ e
+ };
+ let changes_selection = |a: &[Action]| a.iter().any(|a| matches!(a, Action::Exec(c, _) if c.starts_with("select.")));
+ // (370, 450): on the art, outside the mask (400..500).
+ let mut t = SelectionTool::default();
+ let c = cx(&d, &picked, &p);
+ assert!(t.pointer(&c, &ev(PointerKind::Down, 370.0, 450.0)).is_empty());
+ let a = t.pointer(&c, &ev(PointerKind::Drag, 390.0, 470.0));
+ assert!(a.iter().any(|a| matches!(a, Action::Begin(n) if n == "Move")), "{a:?}");
+ assert!(a.iter().any(|a| matches!(a, Action::Preview(c, _) if c == "object.transform")), "{a:?}");
+ assert_eq!(t.pointer(&c, &ev(PointerKind::Up, 390.0, 470.0)), vec![Action::Commit]);
+ // A click there keeps the selection.
+ let mut t = SelectionTool::default();
+ t.pointer(&c, &ev(PointerKind::Down, 370.0, 450.0));
+ assert!(!changes_selection(&t.pointer(&c, &ev(PointerKind::Up, 370.0, 450.0))));
+ // Nothing selected: a marquee, and a click deselects.
+ let none = Selection::default();
+ let c = cx(&d, &none, &p);
+ let mut t = SelectionTool::default();
+ t.pointer(&c, &ev(PointerKind::Down, 370.0, 450.0));
+ assert!(!t.pointer(&c, &ev(PointerKind::Drag, 390.0, 470.0)).iter().any(|a| matches!(a, Action::Begin(_))));
+ // Shift: a marquee that adds to the selection.
+ let c = cx(&d, &picked, &p);
+ let mut t = SelectionTool::default();
+ t.pointer(&c, &shift(PointerKind::Down, 370.0, 450.0));
+ assert!(!t.pointer(&c, &shift(PointerKind::Drag, 390.0, 470.0)).iter().any(|a| matches!(a, Action::Begin(_))));
+ // An object a click hits there wins: a press on a square over that point selects it.
+ let mut d = d;
+ let (front, l) = (d.alloc_id(), d.layers[0].id);
+ let square = vectorcraft_geom::shapes::rectangle(Rect::new(350.0, 430.0, 390.0, 470.0));
+ d.insert(Some(l), 2, vectorcraft_doc::Node::path(front, square, vectorcraft_doc::Appearance::default_art())).unwrap();
+ let a = SelectionTool::default().pointer(&cx(&d, &picked, &p), &ev(PointerKind::Down, 370.0, 450.0));
+ assert!(a.iter().any(|a| matches!(a, Action::Exec(c, v) if c == "select.set" && v["ids"] == json!([front.0]))), "{a:?}");
+}
+
/// #955: grabbed by an anchor and dropped near another object's anchor, the anchor lands
/// exactly on it with Smart Guides, even where lining the bounds up would leave it beside it.
#[test]
@@ -102,6 +207,44 @@ fn a_corner_drag_counts_as_transforming_once_it_moves() {
assert!(t.transforming());
}
+/// Escape during a corner widget drag cancels it, and the release after it commits nothing.
+/// After an Alt-press on a widget, Escape drops the press, so its release cycles no corner kind.
+#[test]
+fn escape_cancels_a_corner_widget_drag() {
+ use vectorcraft_doc::{Appearance, LiveShape, Node, NodeKind};
+ let live = LiveShape::Rectangle {
+ w: 100.0,
+ h: 100.0,
+ radii: [0.0; 4],
+ kinds: Default::default(),
+ radii_relative: false,
+ xf: vectorcraft_geom::Affine::translate((100.0, 100.0)),
+ };
+ let mut d = vectorcraft_doc::Document::new(500.0, 500.0);
+ let id = d.alloc_id();
+ let mut n = Node::path(id, live.to_path(), Appearance::default_art());
+ if let NodeKind::Path { live: slot, .. } = &mut n.kind {
+ *slot = Some(Box::new(live));
+ }
+ d.insert(Some(d.layers[0].id), 0, n).unwrap();
+ let mut s = Selection::default();
+ s.add(id);
+ let p = paint();
+ let cx = cx(&d, &s, &p);
+ let mut t = SelectionTool::default();
+ assert!(t.pointer(&cx, &ev(PointerKind::Down, 190.0, 191.0)).is_empty());
+ let a = t.pointer(&cx, &ev(PointerKind::Drag, 175.0, 176.0));
+ assert_eq!(a.first(), Some(&Action::Begin("Corner Radius".into())), "{a:?}");
+ assert_eq!(t.key(&cx, ToolKey::Escape, Mods::default()), vec![Action::Cancel], "Escape cancels the drag");
+ assert!(!t.busy() && !t.transforming());
+ assert!(t.pointer(&cx, &ev(PointerKind::Drag, 170.0, 171.0)).is_empty(), "the drag is over");
+ assert!(t.pointer(&cx, &ev(PointerKind::Up, 170.0, 171.0)).is_empty(), "the release commits nothing");
+ let alt = Mods { alt: true, ..Default::default() };
+ t.pointer(&cx, &ev(PointerKind::Down, 190.0, 191.0).with_mods(alt));
+ assert_eq!(t.key(&cx, ToolKey::Escape, Mods::default()), vec![Action::Cancel]);
+ assert!(t.pointer(&cx, &ev(PointerKind::Up, 190.0, 191.0).with_mods(alt)).is_empty(), "the Alt-click cycles no corner kind");
+}
+
/// A type-on-path bracket drag is a transform, so the sharp selection box hides while the span moves.
#[test]
fn a_bracket_drag_counts_as_transforming_once_it_moves() {
@@ -118,6 +261,25 @@ fn a_bracket_drag_counts_as_transforming_once_it_moves() {
assert!(t.transforming());
}
+/// Escape during a drag of the brackets of type on a path cancels it, and the release after it
+/// commits nothing.
+#[test]
+fn escape_cancels_a_bracket_drag() {
+ let (d, id) = crate::testutil::doc_with_path_type();
+ let mut s = Selection::default();
+ s.add(id);
+ let p = paint();
+ let cx = cx(&d, &s, &p);
+ let mut t = SelectionTool::default();
+ assert!(t.pointer(&cx, &ev(PointerKind::Down, 280.0, 290.0)).is_empty());
+ let a = t.pointer(&cx, &ev(PointerKind::Drag, 320.0, 290.0));
+ assert!(matches!(a.first(), Some(Action::Begin(_))), "{a:?}");
+ assert_eq!(t.key(&cx, ToolKey::Escape, Mods::default()), vec![Action::Cancel], "Escape cancels the drag");
+ assert!(!t.busy() && !t.transforming());
+ assert!(t.pointer(&cx, &ev(PointerKind::Drag, 330.0, 290.0)).is_empty(), "the drag is over");
+ assert!(t.pointer(&cx, &ev(PointerKind::Up, 330.0, 290.0)).is_empty(), "the release commits nothing");
+}
+
/// #812: with Smart Guides on, hovering near an object's centre or an anchor labels it, and a
/// press there grabs the object by that point.
#[test]
@@ -460,6 +622,30 @@ fn drag_moves_with_single_undo() {
assert_eq!(a, vec![Action::Commit]);
}
+/// Escape during a move, or an Alt-drag copy, cancels it: the release after it commits nothing,
+/// and the next drag is a new one. Escape with nothing to cancel sends nothing.
+#[test]
+fn escape_cancels_a_move_or_an_alt_drag_copy() {
+ let (d, id) = doc_with_rect();
+ let mut s = Selection::default();
+ s.add(id);
+ let p = paint();
+ let cx = cx(&d, &s, &p);
+ for (what, m) in [("move", Mods::default()), ("copy", Mods { alt: true, ..Default::default() })] {
+ let mut t = SelectionTool::default();
+ t.pointer(&cx, &ev(PointerKind::Down, 150.0, 150.0).with_mods(m));
+ let a = t.pointer(&cx, &ev(PointerKind::Drag, 160.0, 150.0).with_mods(m));
+ assert!(matches!(&a[1], Action::Preview(_, v) if v["copy"] == m.alt), "{what}: {a:?}");
+ assert!(t.transforming(), "{what}");
+ assert_eq!(t.key(&cx, ToolKey::Escape, Mods::default()), vec![Action::Cancel], "{what}: Escape cancels the drag");
+ assert!(!t.busy() && !t.transforming(), "{what}");
+ assert!(t.overlays(&cx).iter().all(|o| !matches!(o, Overlay::Measure { .. })), "{what}: no readout stays");
+ assert!(t.pointer(&cx, &ev(PointerKind::Drag, 170.0, 150.0).with_mods(m)).is_empty(), "{what}: the drag is over");
+ assert!(t.pointer(&cx, &ev(PointerKind::Up, 170.0, 150.0).with_mods(m)).is_empty(), "{what}: the release commits nothing");
+ assert!(t.key(&cx, ToolKey::Escape, Mods::default()).is_empty(), "{what}: nothing to cancel");
+ }
+}
+
/// #1534: with Smart Guides on (the default), the point a selection is dragged by still snaps
/// to a ruler guide within the Snap to Point distance; not with Snap to Point off.
#[test]
@@ -907,6 +1093,22 @@ fn marquee_selects() {
assert_eq!(a, vec![Action::Exec("select.set".into(), json!({"ids": [id.0]}))]);
}
+/// Escape during a marquee drag ends it: the marquee is removed, and its release selects nothing.
+#[test]
+fn escape_cancels_a_marquee() {
+ let (d, _) = doc_with_rect();
+ let s = Selection::default();
+ let p = paint();
+ let cx = cx(&d, &s, &p);
+ let mut t = SelectionTool::default();
+ t.pointer(&cx, &ev(PointerKind::Down, 50.0, 50.0));
+ t.pointer(&cx, &ev(PointerKind::Drag, 120.0, 120.0));
+ assert_eq!(t.key(&cx, ToolKey::Escape, Mods::default()), vec![Action::Cancel], "Escape cancels the marquee");
+ assert!(!t.busy());
+ assert!(t.overlays(&cx).iter().all(|o| !matches!(o, Overlay::Marquee(_))), "the marquee is removed");
+ assert!(t.pointer(&cx, &ev(PointerKind::Up, 120.0, 120.0)).is_empty(), "the release selects nothing");
+}
+
/// Shift-drag a marquee: the objects it reaches toggle (#483), so selected ones can be
/// taken out of the selection; a Shift-click on empty canvas leaves the selection alone.
#[test]
@@ -1099,6 +1301,28 @@ fn handle_drag_scales() {
assert_eq!(t.pointer(&cx, &ev(PointerKind::Up, 300.0, 300.0)), vec![Action::Commit]);
}
+/// Escape during a bounding-box scale or rotation cancels it, and the release after it commits
+/// nothing.
+#[test]
+fn escape_cancels_a_scale_or_a_rotation() {
+ let (d, id) = doc_with_rect();
+ let mut s = Selection::default();
+ s.add(id);
+ let p = paint();
+ let cx = cx(&d, &s, &p);
+ // (what, the press, its Begin, the drag)
+ for (what, from, begin, to) in [("scale", (200.0, 200.0), "Scale", (300.0, 300.0)), ("rotate", (210.0, 210.0), "Rotate", (150.0, 230.0))] {
+ let mut t = SelectionTool::default();
+ assert_eq!(t.pointer(&cx, &ev(PointerKind::Down, from.0, from.1)), vec![Action::Begin(begin.into())], "{what}");
+ assert!(matches!(t.pointer(&cx, &ev(PointerKind::Drag, to.0, to.1)).as_slice(), [Action::Preview(..)]), "{what}");
+ assert_eq!(t.key(&cx, ToolKey::Escape, Mods::default()), vec![Action::Cancel], "{what}: Escape cancels the drag");
+ assert!(!t.busy() && !t.transforming(), "{what}");
+ assert!(t.overlays(&cx).iter().all(|o| !matches!(o, Overlay::Measure { .. })), "{what}: no readout stays");
+ assert!(t.pointer(&cx, &ev(PointerKind::Drag, to.0 + 5.0, to.1)).is_empty(), "{what}: the drag is over");
+ assert!(t.pointer(&cx, &ev(PointerKind::Up, to.0 + 5.0, to.1)).is_empty(), "{what}: the release commits nothing");
+ }
+}
+
#[test]
fn handle_drag_snaps_to_the_other_objects_with_smart_guides() {
use vectorcraft_doc::{Appearance, Node};
diff --git a/crates/tools/src/settings.rs b/crates/tools/src/settings.rs
index 8548f33124..9e2cb90a9e 100644
--- a/crates/tools/src/settings.rs
+++ b/crates/tools/src/settings.rs
@@ -39,7 +39,7 @@ const ROWS: &[Row] = &[
// Paintbrush has none of them).
(&["pencil"], None, &["altSmooth", "livePreview", "liveFit"]),
(&["smooth"], None, &["fidelity"]),
- (&["blobBrush", "eraser"], None, &["size"]),
+ (&["blobBrush", "eraser"], None, &["size", "sizeMode", "sizeVariation"]),
(&["blobBrush"], None, &["fidelity", "keepSelected", "mergeOnlySelection"]),
// Eraser Tool Options' tip shape.
(&["eraser"], None, &["angle", "roundness"]),
diff --git a/crates/tools/src/shape.rs b/crates/tools/src/shape.rs
index 62679d99e3..f8594226ce 100644
--- a/crates/tools/src/shape.rs
+++ b/crates/tools/src/shape.rs
@@ -75,12 +75,15 @@ impl ShapeTool {
}
}
- /// Ctrl/Cmd in a star drag from `start` to `p`: the inner radius stays as it was when the key
- /// went down, so the ratio follows the outer radius (and stays so once the key is let go).
- fn hold_inner(&mut self, start: Point, p: Point, m: Mods) {
+ /// Ctrl/Cmd in a star drag from `start` to `p`, where the last drag showed a star with the inner
+ /// radius `shown`: once the star has begun, the inner radius stays as the star showed it when
+ /// the key went down, so the ratio follows the outer radius (and stays so once the key is let
+ /// go). When the key goes down before the star has begun, the inner radius stays as the first
+ /// star the drag shows has it.
+ fn hold_inner(&mut self, shown: f64, start: Point, p: Point, m: Mods) {
let outer = (p - start).hypot();
match (m.cmd, self.inner) {
- (true, None) => self.inner = Some(outer * self.star_ratio),
+ (true, None) if self.began => self.inner = Some(shown),
(false, Some(_)) => self.inner = None,
_ => {}
}
@@ -224,17 +227,23 @@ impl Tool for ShapeTool {
self.start = Some(p);
self.last = ev.pos;
self.began = false;
+ self.inner = None;
vec![]
}
PointerKind::Drag => {
let Some(mut s) = self.start else { return vec![] };
let pos = self.snap.drag(cx, ev.pos, self.leave(cx, s, ev.mods).as_ref());
let ev = &PointerEvent { pos, ..*ev };
+ // The inner radius of the star the last drag showed, with the ratio it drew with:
+ // the canvas sends a drag only once the pointer moves, so a key pressed in between
+ // first arrives with the next position.
+ let ratio = if self.mods.alt { straight_ratio(self.points).unwrap_or(self.star_ratio) } else { self.star_ratio };
+ let shown = (self.last - s).hypot() * ratio;
space_moves(&mut s, &mut self.last, ev, self.began);
self.start = Some(s);
self.mods = ev.mods;
if self.id == "star" {
- self.hold_inner(s, ev.pos, ev.mods);
+ self.hold_inner(shown, s, ev.pos, ev.mods);
}
let mut out = vec![];
if !self.began {
@@ -299,6 +308,7 @@ impl Tool for ShapeTool {
} else if key == ToolKey::Escape {
self.start = None;
self.began = false;
+ self.inner = None;
self.snap.clear();
vec![Action::Cancel]
} else {
diff --git a/crates/tools/src/shape/tests.rs b/crates/tools/src/shape/tests.rs
index 66a4abad9a..da4916576e 100644
--- a/crates/tools/src/shape/tests.rs
+++ b/crates/tools/src/shape/tests.rs
@@ -106,8 +106,10 @@ fn star_measure_label_matches_the_preview_with_modifiers_and_shrink() {
assert_eq!(label(&t), cx.star_radii_label(r1, r2));
}
-/// During a star drag, Ctrl/Cmd keeps the inner radius while the outer one follows the pointer
-/// (the new ratio stays once the key is let go), and Alt keeps the shoulders straight (#812).
+/// During a star drag, Ctrl/Cmd keeps the inner radius the star showed when the key went down
+/// while the outer one follows the pointer (the new ratio stays once the key is let go), and Alt
+/// keeps the shoulders straight (#812). The canvas sends a drag only once the pointer moves, so
+/// the key first arrives with a new position.
#[test]
fn a_star_drag_holds_its_inner_radius_with_ctrl_and_straightens_with_alt() {
let (d, _) = doc_with_rect();
@@ -123,8 +125,7 @@ fn a_star_drag_holds_its_inner_radius_with_ctrl_and_straightens_with_alt() {
t.pointer(&cx, &PointerEvent::new(PointerKind::Down, 50.0, 50.0));
let (r1, r2) = radii(&t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 90.0, 50.0)));
assert_eq!((r1, r2), (40.0, 20.0));
- // Ctrl: the inner radius stays 20 as the outer one grows to 80.
- t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 90.0, 50.0).with_mods(ctrl));
+ // Ctrl, pressed with the pointer still: the inner radius stays 20 as the outer one grows to 80.
let (r1, r2) = radii(&t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 130.0, 50.0).with_mods(ctrl)));
assert!((r1 - 80.0).abs() < 1e-9 && (r2 - 20.0).abs() < 1e-9, "{r1} {r2}");
// Let go: the ratio (a quarter) stays.
@@ -138,6 +139,54 @@ fn a_star_drag_holds_its_inner_radius_with_ctrl_and_straightens_with_alt() {
assert_eq!(t.pointer(&cx, &PointerEvent::new(PointerKind::Up, 150.0, 50.0)), vec![Action::Commit]);
}
+/// Ctrl/Cmd pressed while Alt straightens the shoulders keeps the straightened inner radius, a drag
+/// canceled with Escape leaves no held radius for the next star, and Ctrl/Cmd pressed inside the
+/// drag threshold keeps the inner radius of the first star the drag shows. The canvas lends a
+/// selection tool to a press with Ctrl/Cmd held, so every press here is without it.
+#[test]
+fn a_star_drag_holds_the_inner_radius_it_shows_when_ctrl_goes_down() {
+ let (d, _) = doc_with_rect();
+ let s = Selection::default();
+ let p = paint();
+ let cx = cx(&d, &s, &p);
+ let radii = |a: &[Action]| match a.last() {
+ Some(Action::Preview(_, v)) => (v["radius1"].as_f64().unwrap(), v["radius2"].as_f64().unwrap()),
+ other => panic!("{other:?}"),
+ };
+ let close = |(r1, r2): (f64, f64), (w1, w2): (f64, f64)| assert!((r1 - w1).abs() < 1e-9 && (r2 - w2).abs() < 1e-9, "{r1} {r2}, not {w1} {w2}");
+ let ctrl = Mods { cmd: true, ..Default::default() };
+ let alt = Mods { alt: true, ..Default::default() };
+ let ctrl_alt = Mods { cmd: true, alt: true, ..Default::default() };
+ // Alt shows straight shoulders; Ctrl/Cmd pressed then keeps that inner radius.
+ let mut t = ShapeTool::new("star");
+ let straight = straight_ratio(5).unwrap_or(0.0);
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Down, 50.0, 50.0));
+ close(radii(&t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 90.0, 50.0).with_mods(alt))), (40.0, 40.0 * straight));
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 130.0, 50.0).with_mods(ctrl_alt));
+ close(radii(&t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 170.0, 50.0).with_mods(ctrl))), (120.0, 40.0 * straight));
+
+ // Escape with the key held, then a new press and the key before the first move: the next star
+ // holds what it shows, not the canceled radius.
+ let mut t = ShapeTool::new("star");
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Down, 50.0, 50.0));
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 90.0, 50.0));
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 130.0, 50.0).with_mods(ctrl));
+ assert_eq!(t.key(&cx, ToolKey::Escape, ctrl), vec![Action::Cancel]);
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Down, 50.0, 50.0));
+ close(radii(&t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 60.0, 50.0).with_mods(ctrl))), (10.0, 2.5));
+ close(radii(&t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 70.0, 50.0).with_mods(ctrl))), (20.0, 2.5));
+
+ // Ctrl/Cmd pressed inside the drag threshold, where no star is shown yet.
+ let mut t = ShapeTool::new("star");
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Down, 50.0, 50.0));
+ assert_eq!(t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 51.0, 50.0)), vec![]);
+ let a = t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 90.0, 50.0).with_mods(ctrl));
+ assert_eq!(a[0], Action::Begin("Star".into()));
+ close(radii(&a), (40.0, 20.0));
+ close(radii(&t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 130.0, 50.0).with_mods(ctrl))), (80.0, 20.0));
+ assert_eq!(t.pointer(&cx, &PointerEvent::new(PointerKind::Up, 130.0, 50.0).with_mods(ctrl)), vec![Action::Commit]);
+}
+
#[test]
fn shift_square_alt_center() {
let t = ShapeTool::new("ellipse");
diff --git a/crates/tools/src/shaperwidget.rs b/crates/tools/src/shaperwidget.rs
index 0eb1bcb190..f44a622a1c 100644
--- a/crates/tools/src/shaperwidget.rs
+++ b/crates/tools/src/shaperwidget.rs
@@ -1,6 +1,7 @@
//! The Shaper Group's mode widget: a small arrow beside the right side of the bounds of a Shaper
//! Group's source shapes. It shows while the group or one of its faces is selected (Face Selection
-//! mode) and while the group's source shapes are isolated (Construction mode). A click on it
+//! mode) and while the group's source shapes are isolated (Construction mode), but not while an
+//! opacity mask or a pattern is edited. A click on it
//! switches between the two modes: it isolates the source shapes (`object.isolate`), or it leaves
//! isolation with the group selected (`object.exitIsolation`). The Shaper and Selection tools hit
//! it and the canvas draws it from the same geometry.
@@ -33,9 +34,10 @@ impl ShaperWidget {
/// The widget at `zoom` (screen px per document point), beside the bounds of the group's source
/// shapes in both modes. Construction mode: `isolation` is a Shaper Group's source shapes. Face
/// Selection mode: the selection is one Shaper Group, or one face or stroke of it. It returns
- /// None otherwise, and when the group, or a layer or group that holds it, is hidden or locked.
+ /// None otherwise, when the group, or a layer or group that holds it, is hidden or locked, and
+ /// while an opacity mask or a pattern is edited.
pub fn of(doc: &Document, selection: &Selection, isolation: Option, zoom: f64) -> Option {
- if !zoom.is_finite() || zoom <= 0.0 {
+ if !zoom.is_finite() || zoom <= 0.0 || doc.mask_edit.is_some() || doc.pattern_edit.is_some() {
return None;
}
let shaper = |id: NodeId| doc.node(id).is_some_and(|n| n.extras().shaper.is_some());
@@ -153,4 +155,21 @@ mod tests {
assert!(widget(&d, &[g]).is_none());
assert!(widget(&d, &[face]).is_none());
}
+
+ #[test]
+ fn no_widget_shows_while_an_opacity_mask_or_a_pattern_is_edited() {
+ let (mut d, g, sources, _) = doc_with_shaper_group();
+ let rect = d.layers[0].children().unwrap()[0].id;
+ let layer = d.layers[0].id;
+ let mut s = Selection::default();
+ s.add(g);
+ assert!(ShaperWidget::of(&d, &s, None, 1.0).is_some());
+ d.mask_edit = Some(vectorcraft_doc::MaskEdit { object: rect, layer });
+ assert!(ShaperWidget::of(&d, &s, Some(layer), 1.0).is_none(), "mask editing");
+ assert!(ShaperWidget::of(&d, &Selection::default(), Some(sources), 1.0).is_none(), "mask editing, sources isolated");
+ d.mask_edit = None;
+ d.pattern_edit = Some(vectorcraft_doc::pattern::PatternEdit { pattern: "P".into(), layer, original: None });
+ assert!(ShaperWidget::of(&d, &s, Some(layer), 1.0).is_none(), "pattern editing");
+ assert!(ShaperWidget::of(&d, &Selection::default(), Some(sources), 1.0).is_none(), "pattern editing, sources isolated");
+ }
}
diff --git a/crates/tools/src/text.rs b/crates/tools/src/text.rs
index 2daa5a7683..9729985c89 100644
--- a/crates/tools/src/text.rs
+++ b/crates/tools/src/text.rs
@@ -202,6 +202,17 @@ pub struct TypeTool {
}
impl TypeTool {
+ pub(super) fn step_attribute(&mut self, key: ToolKey, mods: Mods, a: usize, b: usize) -> Option> {
+ if !mods.alt {
+ return None;
+ }
+ let id = self.editing?;
+ let (attribute, by) = plain::step_key(key, mods.shift, a == b)?;
+ let mut out = self.commit();
+ let by = if mods.cmd { by * 5.0 } else { by };
+ out.push(Action::Exec("type.step".into(), json!({"id": id.0, "start": a, "end": b, "attribute": attribute, "by": by})));
+ Some(out)
+ }
pub fn new(id: &str) -> Self {
let mode = match id {
"areaType" | "verticalAreaType" => Mode::Area,
diff --git a/crates/tools/src/text/tests.rs b/crates/tools/src/text/tests.rs
index 1b2086c301..1502533d55 100644
--- a/crates/tools/src/text/tests.rs
+++ b/crates/tools/src/text/tests.rs
@@ -1469,3 +1469,22 @@ fn ime_surrounding_reports_the_document_when_it_changed_under_the_session() {
assert_eq!(stale, ImeSurrounding::Available { text: "XYZ".into(), cursor: 3, anchor: 3 });
assert!(!tool.ime_session_matches_document(&cx(&d, &sel, &p)), "the commit starts a fresh session");
}
+
+#[test]
+fn shift_enter_inserts_soft_return() {
+ let (mut d, id, mut tool) = editing("Hello World");
+ let (sel, p) = (Selection::default(), paint());
+ tool.caret = 5;
+ tool.anchor = 5;
+ let snap = d.clone();
+ let shift = Mods { shift: true, ..Default::default() };
+ let acts = tool.key(&cx(&d, &sel, &p), ToolKey::Enter, shift);
+ apply(&mut d, &snap, &acts);
+ let NodeKind::Text(t) = &d.node(id).unwrap().kind else { panic!() };
+ assert_eq!(t.plain_text(), "Hello\u{2028} World");
+ // Plain Enter inserts standard newline
+ let acts = tool.key(&cx(&d, &sel, &p), ToolKey::Enter, Mods::default());
+ apply(&mut d, &snap, &acts);
+ let NodeKind::Text(t) = &d.node(id).unwrap().kind else { panic!() };
+ assert_eq!(t.plain_text(), "Hello\u{2028}\n World");
+}
diff --git a/crates/tools/src/text/tool.rs b/crates/tools/src/text/tool.rs
index f2bfff400b..5307d61758 100644
--- a/crates/tools/src/text/tool.rs
+++ b/crates/tools/src/text/tool.rs
@@ -1,6 +1,6 @@
use super::plain::{
char_range_to_bytes, ime_surrounding_window, plain_ceil_boundary, plain_chars_after, plain_chars_before, plain_floor_boundary, plain_is_boundary,
- plain_len, step_key,
+ plain_len,
};
use super::ports::{ported, ports, ports_shown};
use super::{
@@ -112,7 +112,7 @@ impl Tool for TypeTool {
self.clicks = (None, 0);
// Pasting what we copied keeps its formatting (unless pasted text is kept plain).
let clip: String = self.clipboard.iter().map(|r| r.text.as_str()).collect();
- if !committing && s.len() > 1 && s == clip && !cx.paste_plain_text {
+ if !committing && !s.is_empty() && s == clip && !cx.paste_plain_text {
let runs = self.clipboard.clone();
return self.replace(cx, "", Some(runs));
}
@@ -145,7 +145,7 @@ impl Tool for TypeTool {
return false;
}
let clip: String = self.clipboard.iter().map(|r| r.text.as_str()).collect();
- !(self.preedit.is_none() && normalized.len() > 1 && normalized == clip && !cx.paste_plain_text)
+ !(self.preedit.is_none() && !normalized.is_empty() && normalized == clip && !cx.paste_plain_text)
}
/// Whether the typing session still describes the edited document; a session ended by an outside
/// command reports false until a replacement commit starts a new one.
@@ -175,13 +175,7 @@ impl Tool for TypeTool {
self.anchor = self.anchor.min(len);
let (a, b) = self.sel();
// Alt+arrows step the type by the Preferences › Type increments (Cmd/Ctrl too: five steps).
- if mods.alt
- && let Some(id) = self.editing
- && let Some((attribute, by)) = step_key(key, mods.shift, a == b)
- {
- let mut out = self.commit();
- let by = if mods.cmd { by * 5.0 } else { by };
- out.push(Action::Exec("type.step".into(), json!({"id": id.0, "start": a, "end": b, "attribute": attribute, "by": by})));
+ if let Some(out) = self.step_attribute(key, mods, a, b) {
return out;
}
let word = mods.cmd || mods.alt;
@@ -211,7 +205,7 @@ impl Tool for TypeTool {
out.push(Action::SwitchTool(target));
out
}
- ToolKey::Enter => self.replace(cx, "\n", None),
+ ToolKey::Enter => self.replace(cx, if mods.shift { "\u{2028}" } else { "\n" }, None),
ToolKey::Tab => self.replace(cx, "\t", None),
ToolKey::Backspace | ToolKey::Delete if a != b => self.replace(cx, "", None),
ToolKey::Backspace if self.caret > 0 => {
@@ -514,7 +508,7 @@ impl Tool for TypeTool {
// Transient selection transferred between Type and Eyedropper; never a saved setting.
"textSelection" => {
if let (Some(id), Some(a), Some(b)) = (
- v.get("editing").and_then(Value::as_u64),
+ v.get("editing").or_else(|| v.get("id")).and_then(Value::as_u64),
v.get("anchor").or_else(|| v.get("start")).and_then(Value::as_u64),
v.get("caret").or_else(|| v.get("end")).and_then(Value::as_u64),
) && let (Ok(a), Ok(b)) = (usize::try_from(a), usize::try_from(b))
diff --git a/crates/tools/src/xform/artboard.rs b/crates/tools/src/xform/artboard.rs
index ecdb79d43b..09933d2a44 100644
--- a/crates/tools/src/xform/artboard.rs
+++ b/crates/tools/src/xform/artboard.rs
@@ -426,7 +426,7 @@ impl Tool for ArtboardTool {
vec![Action::Commit]
}
Drag::Resize { began: true, .. } => vec![Action::Commit],
- Drag::Create { toggle: Some((i, at)), .. } if p.distance(at) < cx.tol(3.0) => {
+ Drag::Create { toggle: Some((i, at)), .. } if p.distance(at) < cx.tol(5.0) => {
self.toggle(cx, i);
vec![]
}
@@ -562,9 +562,14 @@ impl Tool for ArtboardTool {
if let Some(Drag::Marquee { start, cur }) = self.drag {
o.push(Overlay::Marquee(Rect::from_points(start, cur)));
}
- // The other selected artboards: dashed bounds (in a drag the document shows them moved).
- for r in self.others.iter().filter_map(|i| cx.doc.artboards.get(*i)).map(|a| a.rect) {
- o.push(Overlay::Path { path: polygon(&rect_corners(r), true), color: BLUE, width: 1.0, dashed: true });
+ // The other selected artboards: dashed bounds and labels.
+ for &i in &self.others {
+ if let Some(ab) = cx.doc.artboards.get(i) {
+ let r = ab.rect;
+ o.push(Overlay::Path { path: polygon(&rect_corners(r), true), color: BLUE, width: 1.0, dashed: true });
+ let at = Point::new(r.x0 - cx.tol(8.0), r.y0 - cx.tol(4.0));
+ o.push(Overlay::Label { p: at, text: format!("{:02} - {}", i + 1, ab.name), color: BLUE });
+ }
}
let Some(ab) = cx.doc.artboards.get(self.active) else { return o };
let r = self.preview.unwrap_or(ab.rect);
diff --git a/crates/tools/src/xform/measure.rs b/crates/tools/src/xform/measure.rs
index 15b956bae7..3f2b350e01 100644
--- a/crates/tools/src/xform/measure.rs
+++ b/crates/tools/src/xform/measure.rs
@@ -1,17 +1,20 @@
//! Measure tool: drag between two points to read distance, angle, dX and dY (Shift constrains to
//! 45°). The result stays on screen (and in the tool options, for agents) until the next drag; the
-//! document is never changed.
+//! document is never changed. Escape during a drag cancels it: the result of the drag before
+//! comes back.
use serde_json::{Value, json};
use vectorcraft_geom::{Point, Vec2};
use super::CYAN;
-use crate::{Action, Cursor, Mods, Overlay, PointerEvent, PointerKind, Tool, ToolContext};
+use crate::{Action, Cursor, Mods, Overlay, PointerEvent, PointerKind, Tool, ToolContext, ToolKey};
#[derive(Default)]
pub struct MeasureTool {
line: Option<(Point, Point)>,
dragging: bool,
+ /// The line measured before the drag under way, which Escape puts back.
+ before: Option<(Point, Point)>,
}
/// (distance, angle in degrees counter-clockwise, dx, dy)
@@ -33,6 +36,7 @@ impl Tool for MeasureTool {
match ev.kind {
PointerKind::Down => {
let (p, _) = crate::guides::snap_draw(cx, ev.pos, &[]);
+ self.before = self.line;
self.line = Some((p, p));
self.dragging = true;
}
@@ -52,6 +56,14 @@ impl Tool for MeasureTool {
vec![]
}
+ fn key(&mut self, _cx: &ToolContext, key: ToolKey, _mods: Mods) -> Vec {
+ if key == ToolKey::Escape && self.dragging {
+ self.dragging = false;
+ self.line = self.before;
+ }
+ vec![]
+ }
+
fn overlays(&self, cx: &ToolContext) -> Vec {
let Some((a, b)) = self.line else { return vec![] };
if a == b {
@@ -128,4 +140,39 @@ mod tests {
assert!(!ov.iter().any(|o| matches!(o, Overlay::Measure { .. })), "Measurement Labels off hides the readout");
assert!(ov.iter().any(|o| matches!(o, Overlay::Line { .. })), "the measured line stays");
}
+
+ /// Escape during a drag ends it and brings back the result of the drag before (none at
+ /// first); the release after it measures nothing.
+ #[test]
+ fn escape_cancels_a_measure_drag() {
+ let (d, _) = doc_with_rect();
+ let s = Selection::default();
+ let p = paint();
+ let mut cx = cx(&d, &s, &p);
+ cx.smart_guides = false;
+ let mut t = MeasureTool::default();
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Down, 10.0, 10.0));
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 40.0, -30.0));
+ assert!(t.key(&cx, ToolKey::Escape, Mods::default()).is_empty());
+ assert!(!t.busy());
+ assert_eq!(t.options(), Value::Null, "no earlier result");
+ assert!(t.overlays(&cx).is_empty());
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Up, 40.0, -30.0));
+ assert_eq!(t.options(), Value::Null, "the release measures nothing");
+ // A measurement, then a second drag canceled: the first one's result is back.
+ for (kind, x, y) in [(PointerKind::Down, 10.0, 10.0), (PointerKind::Drag, 40.0, -30.0), (PointerKind::Up, 40.0, -30.0)] {
+ t.pointer(&cx, &PointerEvent::new(kind, x, y));
+ }
+ let first = t.options();
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Down, 100.0, 100.0));
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Drag, 130.0, 100.0));
+ assert!(t.key(&cx, ToolKey::Enter, Mods::default()).is_empty());
+ assert!(t.busy(), "Enter leaves the drag alone");
+ t.key(&cx, ToolKey::Escape, Mods::default());
+ assert!(!t.busy());
+ assert_eq!(t.options(), first);
+ t.pointer(&cx, &PointerEvent::new(PointerKind::Up, 130.0, 100.0));
+ assert_eq!(t.options(), first);
+ assert!((t.options()["distance"].as_f64().unwrap() - 50.0).abs() < 1e-9);
+ }
}
diff --git a/crates/trace/src/lib.rs b/crates/trace/src/lib.rs
index 85e6373c6b..e68118d634 100644
--- a/crates/trace/src/lib.rs
+++ b/crates/trace/src/lib.rs
@@ -79,7 +79,7 @@ use layers::parallel_map_at_most;
#[cfg(test)]
pub(crate) use layers::shift_probe;
pub use params::{Method, Mode, PRESET_NAMES, Palette, TraceParams, enhanced_preset, preset, presets};
-pub use pipeline::{TraceResult, TracedPath, trace, trace_within};
+pub use pipeline::{TraceResult, TracedPath, trace, trace_watched, trace_within};
#[cfg(test)]
use raster::fit_size;
pub use raster::{MAX_PIXELS, MAX_SOURCE_PIXELS, Raster, TraceError};
diff --git a/crates/trace/src/pipeline.rs b/crates/trace/src/pipeline.rs
index b857e73aeb..486eb9c0a3 100644
--- a/crates/trace/src/pipeline.rs
+++ b/crates/trace/src/pipeline.rs
@@ -1,3 +1,5 @@
+use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};
+
use super::layers::{Layers, parallel_map_at_most};
use super::params::{Method, Mode, TraceParams};
use super::raster::{Raster, TraceError};
@@ -68,11 +70,24 @@ pub fn trace(img: &Raster, params: &TraceParams) -> TraceResult {
/// than `max_anchors` anchor points (a photo traced at high fidelity can make millions). The
/// colour layers are traced in parallel where threads are available.
pub fn trace_within(img: &Raster, params: &TraceParams, max_anchors: usize) -> Result {
+ trace_watched(img, params, max_anchors, &|_, _| true)
+}
+
+/// [`trace_within`], telling `steps` how far it has got: `steps(done, total)` after each stage
+/// that prepares the colour layers (`total` 0 while they aren't known yet) and after each colour
+/// layer, from whichever thread traced it. Once `steps` answers `false` the trace stops at the
+/// next stage or layer with [`TraceError::Cancelled`].
+pub fn trace_watched(
+ img: &Raster,
+ params: &TraceParams,
+ max_anchors: usize,
+ steps: &(dyn Fn(u64, u64) -> bool + Sync),
+) -> Result {
let (w, h) = (img.width as usize, img.height as usize);
if w == 0 || h == 0 || w.checked_mul(h).and_then(|n| n.checked_mul(4)) != Some(img.rgba.len()) {
return Ok(TraceResult::default());
}
- let mut out = trace_paths(img, params, max_anchors)?;
+ let mut out = trace_paths(img, params, max_anchors, steps)?;
if params.auto_grouping {
// Abutting areas cannot overlap; stacked layers, Logo's shapes and stroked lines can.
let stacked = params.method == Method::Overlapping || params.mode == Mode::Logo || params.strokes;
@@ -81,9 +96,12 @@ pub fn trace_within(img: &Raster, params: &TraceParams, max_anchors: usize) -> R
Ok(out)
}
-fn trace_paths(img: &Raster, params: &TraceParams, max_anchors: usize) -> Result {
+fn trace_paths(img: &Raster, params: &TraceParams, max_anchors: usize, steps: &(dyn Fn(u64, u64) -> bool + Sync)) -> Result {
let (w, h) = (img.width as usize, img.height as usize);
+ // After each stage before the colour layers, whose number isn't known yet.
+ let go_on = || if steps(0, 0) { Ok(()) } else { Err(TraceError::Cancelled) };
if params.mode == Mode::Logo {
+ go_on()?;
return logo::trace_logo(img, params, max_anchors);
}
// The colour Ignore Color leaves out, if not white.
@@ -94,6 +112,7 @@ fn trace_paths(img: &Raster, params: &TraceParams, max_anchors: usize) -> Result
// A photo is traced from a copy with its noise smoothed away (see `smooth`).
let smoothed = (params.mode != Mode::BlackAndWhite && quantize::continuous_tone(img)).then(|| smooth::smoothed(img));
let img = smoothed.as_ref().unwrap_or(img);
+ go_on()?;
// Gradients are found first and kept out of the palette: no colour is spent on bands of them.
// Grayscale finds them in the image's grays (as its flat colours are), so their stops are gray.
let grays = (params.gradients && params.mode == Mode::Grayscale).then(|| {
@@ -106,6 +125,7 @@ fn trace_paths(img: &Raster, params: &TraceParams, max_anchors: usize) -> Result
});
let traced_as = grays.as_ref().unwrap_or(img);
let found = (params.gradients && params.mode != Mode::BlackAndWhite).then(|| gradient::detect(traced_as)).filter(|f| !f.1.is_empty());
+ go_on()?;
let without = found.as_ref().map(|(of, _)| {
let mut rest = img.clone();
for (p, &g) in rest.rgba.as_chunks_mut::<4>().0.iter_mut().zip(of) {
@@ -116,6 +136,7 @@ fn trace_paths(img: &Raster, params: &TraceParams, max_anchors: usize) -> Result
rest
});
let (mut q, rare) = quantize::quantize_keeping(without.as_ref().unwrap_or(img), params);
+ go_on()?;
// The semi-transparent edge of a cut-out image traces as the color beside it.
if matches!(params.mode, Mode::Color | Mode::Grayscale) {
quantize::settle_cut_edges(&mut q, img, params.mode == Mode::Grayscale);
@@ -138,6 +159,7 @@ fn trace_paths(img: &Raster, params: &TraceParams, max_anchors: usize) -> Result
// Noise clears specks, not the regions of a rare colour Automatic kept on purpose.
let keep: Vec = q.palette.iter().map(|c| rare.contains(c)).collect();
quantize::denoise_keeping(&mut q.labels, w, h, params.noise as usize, &keep);
+ go_on()?;
// Pixel count per palette entry, and the box its pixels lie in.
let mut counts = vec![0usize; q.palette.len()];
let mut boxes: Vec> = vec![None; q.palette.len()];
@@ -194,7 +216,26 @@ fn trace_paths(img: &Raster, params: &TraceParams, max_anchors: usize) -> Result
// freed before the trace starts.)
let largest = job.boxes.iter().flatten().map(|b| (b.2 - b.0) * (b.3 - b.1)).max().unwrap_or(1).max(1);
let at_a_time = ((512 << 20) / (largest * 10)).max(1);
- for (paths, &(_, ci)) in parallel_map_at_most(at_a_time, &layers, |&(r, ci)| job.layer(r, ci)).into_iter().zip(&layers) {
+ let total = layers.len() as u64;
+ if !steps(0, total) {
+ return Err(TraceError::Cancelled);
+ }
+ // Once stopped, the layers not started yet are skipped.
+ let (done, stopped) = (AtomicU64::new(0), AtomicBool::new(false));
+ let traced = parallel_map_at_most(at_a_time, &layers, |&(r, ci)| {
+ if stopped.load(Ordering::Relaxed) {
+ return None;
+ }
+ let paths = job.layer(r, ci);
+ if !steps(done.fetch_add(1, Ordering::Relaxed) + 1, total) {
+ stopped.store(true, Ordering::Relaxed);
+ }
+ paths
+ });
+ if stopped.load(Ordering::Relaxed) {
+ return Err(TraceError::Cancelled);
+ }
+ for (paths, &(_, ci)) in traced.into_iter().zip(&layers) {
let paths = paths.ok_or(TraceError::TooComplex { max: max_anchors })?;
// A layer with no paths adds no color to the palette.
if paths.is_empty() {
diff --git a/crates/trace/src/raster.rs b/crates/trace/src/raster.rs
index f096a97d0c..fc7cd10f67 100644
--- a/crates/trace/src/raster.rs
+++ b/crates/trace/src/raster.rs
@@ -15,6 +15,9 @@ pub enum TraceError {
"this trace would make more than {max} anchor points, more than the document can show smoothly: raise Noise, lower Paths or Colors, or pick a lower-fidelity preset"
)]
TooComplex { max: usize },
+ /// The caller of [`crate::trace_watched`] stopped the trace.
+ #[error("the trace was cancelled")]
+ Cancelled,
}
/// The most pixels an image to trace may have (64 megapixels: 256 MB decoded); larger images are
diff --git a/crates/trace/src/tests.rs b/crates/trace/src/tests.rs
index 6ad9094954..f5a10d494a 100644
--- a/crates/trace/src/tests.rs
+++ b/crates/trace/src/tests.rs
@@ -586,6 +586,28 @@ fn a_trace_past_its_anchor_budget_is_refused() {
assert_eq!(trace_within(&img, &p, anchors).unwrap(), full);
}
+/// #3098: a watched trace says how far it has got, layer by layer, and stops when told to.
+#[test]
+fn a_watched_trace_counts_its_layers_and_stops_when_told() {
+ let img = stripes(120, 8);
+ let p = TraceParams { mode: Mode::Color, colors: 16, noise: 1, ..TraceParams::default() };
+ let seen = std::sync::Mutex::new(vec![]);
+ let watched = trace_watched(&img, &p, usize::MAX, &|done, total| {
+ seen.lock().unwrap().push((done, total));
+ true
+ });
+ assert_eq!(watched.unwrap(), trace(&img, &p), "watching changes nothing");
+ let seen = seen.into_inner().unwrap();
+ let total = seen.last().unwrap().1;
+ assert!(total > 1, "{seen:?}");
+ let mut layers: Vec = seen.iter().filter(|s| s.1 == total && s.0 > 0).map(|s| s.0).collect();
+ layers.sort_unstable();
+ assert_eq!(layers, (1..=total).collect::>(), "each layer once: {seen:?}");
+ // Stopped before the layers, and after the first.
+ assert!(matches!(trace_watched(&img, &p, usize::MAX, &|_, _| false), Err(TraceError::Cancelled)));
+ assert!(matches!(trace_watched(&img, &p, usize::MAX, &|done, _| done == 0), Err(TraceError::Cancelled)));
+}
+
/// Layers traced in parallel come out in the same order every time: bottom (largest) first.
#[test]
fn parallel_layers_keep_their_order() {
diff --git a/crates/ui-egui/src/app.rs b/crates/ui-egui/src/app.rs
index a708a70c15..6e2527fb68 100644
--- a/crates/ui-egui/src/app.rs
+++ b/crates/ui-egui/src/app.rs
@@ -12,7 +12,7 @@ use super::{
Arc, AutomationRoots, ControlRequest, Ordering, Receiver, Session, UiState, Value, VectorcraftApp, View, ViewInfo, background, canvas, chrome,
clipboard_probe, dialogs, export_progress, file_access, fileio, font_menu, graphics, i18n, io, json, menus, native_menu, opening, palette,
panel_docking, panels, picks, place, placing, plugin_runs, prefs_dialog, recovery, screen_color, scrub, shortcut_editor, shortcuts, theme,
- titlebar, toolbar, tools_float, unsaved, updates_ui, widgets,
+ titlebar, toolbar, tools_float, trace_runs, unsaved, updates_ui, widgets,
};
mod clipboard;
@@ -59,6 +59,8 @@ impl VectorcraftApp {
from_worker: false,
waits_for_still: cfg!(target_arch = "wasm32"),
still: None,
+ fill: None,
+ fill_worker: None,
worker: None,
worker_started: false,
slices: None,
@@ -77,6 +79,7 @@ impl VectorcraftApp {
titlebar_inset: 0.0,
last_effect: None,
last_warp: None,
+ character_focus: None,
run_count: 0,
clipboard_out: None,
clipboard_published: None,
@@ -118,6 +121,7 @@ impl VectorcraftApp {
opening: Default::default(),
plugin_runs: Default::default(),
placing: Default::default(),
+ trace_runs: Default::default(),
recovery: Default::default(),
host_modifiers: Default::default(),
forwarded: Vec::new(),
@@ -286,6 +290,7 @@ impl VectorcraftApp {
screen_color::poll(self, ctx);
opening::poll(self);
plugin_runs::poll(self);
+ trace_runs::poll(self);
placing::poll(self);
#[cfg(not(target_arch = "wasm32"))]
self.tick_link_updates(ctx, now);
@@ -293,6 +298,7 @@ impl VectorcraftApp {
|| !self.opening.pending.is_empty()
|| !self.plugin_runs.running.is_empty()
|| !self.placing.pending.is_empty()
+ || !self.trace_runs.running.is_empty()
{
// Keep the status bar's progress moving and pick the result up when it arrives.
ctx.request_repaint_after(std::time::Duration::from_millis(100));
@@ -484,6 +490,7 @@ impl VectorcraftApp {
updates_ui::show(self, &ctx);
export_progress::show(self, &ctx);
plugin_runs::show(self, &ctx);
+ trace_runs::show(self, &ctx);
palette::show(self, &ctx);
if self.custom_titlebar {
titlebar::resize_zones(ui);
diff --git a/crates/ui-egui/src/caches.rs b/crates/ui-egui/src/caches.rs
index b32c64c4f0..9c9e41e7d8 100644
--- a/crates/ui-egui/src/caches.rs
+++ b/crates/ui-egui/src/caches.rs
@@ -24,6 +24,12 @@ pub struct CanvasCache {
/// The cache key the canvas last asked for and when it first asked for it (seconds, egui's
/// input time), kept while [`Self::waits_for_still`] is set.
pub still: Option<(CacheKey, f64)>,
+ /// The low-resolution frame that covers the parts of the canvas the frame shown leaves
+ /// uncovered while it is drawn for a view it was not rendered for ([`canvas::Fill`]).
+ pub fill: Option,
+ /// The thread that renders [`Self::fill`], beside [`Self::worker`]. None on wasm, which has no
+ /// fill.
+ pub fill_worker: Option,
pub worker: Option,
pub worker_started: bool,
/// The slices as laid out for (document uid, revision): the canvas draws them every frame.
diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs
index 400a32d03f..4482a12838 100644
--- a/crates/ui-egui/src/canvas.rs
+++ b/crates/ui-egui/src/canvas.rs
@@ -1,6 +1,7 @@
//! The document canvas: rendering, rulers, navigation, pointer routing to tools and on-canvas
//! selection visuals (bounding box, anchors, handles, smart-guide style labels).
+use egui::emath::GuiRounding as _;
use egui::{Color32, CornerRadius, Pos2, Sense, Shape, Stroke, StrokeKind, Ui, Vec2, pos2, vec2};
use serde_json::json;
use vectorcraft_doc::text::TextKind;
@@ -18,6 +19,7 @@ mod artboards;
mod context;
mod cursor;
mod drag;
+mod fill;
mod grid;
mod home;
mod input;
@@ -39,6 +41,10 @@ pub use drag::{apply_requests, dispatch, mods};
pub(crate) use drag::{end_document_drag, release_art_in_window, release_over_panel};
#[cfg(test)]
use drag::{frame_moves, tool_drag_doc_id, tool_drag_moved, tool_frame_moves, tool_press_doc_id};
+pub use fill::Fill;
+use fill::fill_uncovered;
+#[cfg(test)]
+use fill::{fill_view, polygon_area};
#[cfg(test)]
use grid::ruler_rects;
use grid::{LineLook, PIXEL_GRID, PIXEL_GRID_ZOOM, checker, clip_segment, grid, ruler_input, rulers, textured_quad, view_bounds};
@@ -196,6 +202,9 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
let bars = app.ui.screen_mode < 2;
let full = if bars { egui::Rect::from_min_max(full.min, full.max - vec2(SCROLL_BAR, SCROLL_BAR)) } else { full };
let rect = if app.ui.view.rulers && app.ui.screen_mode < 3 { egui::Rect::from_min_max(full.min + vec2(RULER, RULER), full.max) } else { full };
+ // Dock layout can differ by fractions of a device pixel between fresh windows.
+ // Use one pixel-aligned rectangle for drawing, inspection and pointer transforms.
+ let rect = rect.round_to_pixels(ui.ctx().pixels_per_point());
app.canvas_rect = Some(rect);
let fitted = app.view().is_some_and(|v| v.fitted);
if !fitted {
@@ -277,6 +286,7 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
if undecoded > 0 {
app.status(format!("{undecoded} image(s) couldn't be decoded and show as crossed boxes"));
}
+ fill_uncovered(app, ui.ctx(), &painter, &key, &doc, rect, &xf);
reproject_frame(app, &painter, &xf, rect, (key.doc, v.rotation));
if let Some(look) = grid_look.filter(|_| !grids_in_back) {
grid(&painter, &xf, doc.grid.spacing, doc.grid.subdivisions, look);
@@ -317,8 +327,9 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
if app.ui.view.rulers && app.ui.screen_mode < 3 {
ruler_bands(app, ui, &xf, (full, rect), origin_preview, &t);
}
- // The task bar is not drawn while the Simplify slider shows.
- if app.ui.task_bar && !revolve_edit && !app.session.tool_busy() && app.ui.screen_mode < 3 && !crate::dialogs::simplify_slider::showing(app) {
+ // The task bar is not drawn while the Simplify or Smooth slider shows.
+ let strip = crate::dialogs::simplify_slider::showing(app) || crate::dialogs::smooth_slider::showing(app);
+ if app.ui.task_bar && !revolve_edit && !app.session.tool_busy() && app.ui.screen_mode < 3 && !strip {
task_bar(app, ui, &xf);
}
if app.ui.screen_mode < 3 {
@@ -343,9 +354,12 @@ fn canvas_input(app: &mut VectorcraftApp, ui: &Ui, resp: &egui::Response, rect:
handle_input(app, ui, resp, rect);
// `hover_doc` is the document point under the pointer in the view `handle_input` left. The
// wheel, a pan, a Rotate View drag, the Zoom tool and a Presentation Mode click move the view
- // there.
+ // there. A dialog, floating panel or menu over the canvas hides it (Object Highlighting
+ // showed through them: #4518), unless a drag that began on the canvas goes on there.
let moved = Xf::new(rect, app.view().unwrap_or(&View::default()));
- app.hover_doc = ui.input(|i| i.pointer.hover_pos()).filter(|p| rect.contains(*p)).map(|p| moved.to_doc(p));
+ let dragging = ui.data(|d| d.get_temp::(drag_id()).is_some());
+ app.hover_doc =
+ ui.input(|i| i.pointer.hover_pos()).filter(|p| rect.contains(*p) && (dragging || drag::on_canvas(ui, resp, *p))).map(|p| moved.to_doc(p));
}
}
@@ -359,9 +373,12 @@ fn canvas_cursor(app: &mut VectorcraftApp, ui: &Ui, view_info: vectorcraft_engin
let space = ui.input(|i| i.key_down(egui::Key::Space));
let drag = ui.data(|d| d.get_temp::(drag_id()));
let panning = matches!(drag, Some(Drag::Pan { .. }));
- let zooming = if space { m.command } else { app.session.tool_id() == "zoom" };
+ // A zoom drag keeps its cursor when Space is pressed (with or without Shift) or Cmd is let go.
+ let zoom_drag = matches!(drag, Some(Drag::ZoomBox { .. } | Drag::ZoomScrub { .. }));
+ let zooming = zoom_drag || if space { m.command } else { app.session.tool_id() == "zoom" };
// A rotating drag keeps its cursor when Shift is let go.
- let rotating = matches!(drag, Some(Drag::RotateView { .. })) || if space { m.shift && !m.command } else { app.session.tool_id() == "rotateView" };
+ let rotating = matches!(drag, Some(Drag::RotateView { .. }))
+ || (!zoom_drag && if space { m.shift && !m.command } else { app.session.tool_id() == "rotateView" });
// The hand and the magnifier are drawn like the tool cursors below: Windows has no
// system cursor for them (winit shows the four-headed move cursor for Grab).
let view_cursor = if panning {
@@ -485,6 +502,7 @@ fn poll_worker(app: &mut VectorcraftApp, ui: &Ui, key_doc: usize) {
app.canvas.worker_started = true;
if std::env::var_os("VECTORCRAFT_SYNC_RENDER").is_none() {
app.canvas.worker = crate::render_worker::Worker::spawn(ui.ctx().clone());
+ app.canvas.fill_worker = crate::render_worker::Worker::spawn(ui.ctx().clone());
}
}
// Upload finished background renders.
@@ -695,11 +713,11 @@ fn reproject_frame(app: &VectorcraftApp, painter: &egui::Painter, xf: &Xf, rect:
fn artboard_outlines(app: &VectorcraftApp, ui: &Ui, painter: &egui::Painter, xf: &Xf, t: &Tokens) {
let Some(st) = app.session.active() else { return };
let doc = &st.doc;
- // Artboard edges and names. The Artboard tool labels its active artboard itself (following
- // a move or resize): that one isn't named twice.
+ // Artboard edges and names. The Artboard tool labels its selected artboards itself (following
+ // a move or resize): those aren't named twice.
let active_ab = crate::panels::artboards::selected(app, doc.artboards.len());
let artboard_tool = app.session.tool_id() == "artboard";
- let tool_labelled = artboard_tool.then(|| app.session.tool_options()["active"].as_u64()).flatten();
+ let tool_selected = artboards::tool_labelled(app);
let editing_name = ui.data(|d| d.get_temp::(name_edit_id()).map(|e| e.index));
for (i, ab) in doc.artboards.iter().enumerate() {
let c = if i == active_ab { Color32::from_gray(0) } else { Color32::from_gray(120) };
@@ -711,7 +729,8 @@ fn artboard_outlines(app: &VectorcraftApp, ui: &Ui, painter: &egui::Painter, xf:
// Show Center Mark, Show Cross Hairs and Show Video Safe Areas (Artboard Options). Only the
// canvas draws them, as it does the edges: exports and print leave them out.
artboard_marks(painter, xf, ab, t.artboard_mark);
- if editing_name != Some(i) && (artboard_tool || doc.artboards.len() > 1) && tool_labelled != u64::try_from(i).ok() {
+ let labelled_by_tool = u64::try_from(i).ok().is_some_and(|idx| tool_selected.contains(&idx));
+ if editing_name != Some(i) && (artboard_tool || doc.artboards.len() > 1) && !labelled_by_tool {
// At the artboard's own top-left corner, which a rotated view turns away from its
// bounding box's (#1095).
let corner = xf.to_screen(Point::new(ab.rect.x0, ab.rect.y0));
diff --git a/crates/ui-egui/src/canvas/artboards.rs b/crates/ui-egui/src/canvas/artboards.rs
index 4f803ef0c0..2e62fff4a3 100644
--- a/crates/ui-egui/src/canvas/artboards.rs
+++ b/crates/ui-egui/src/canvas/artboards.rs
@@ -1,4 +1,6 @@
-use super::{Color32, Point, Pos2, Rect, Shape, Stroke, Ui, VectorcraftApp, Xf, json, vec2};
+use serde_json::{Value, json};
+
+use super::{Color32, Point, Pos2, Rect, Shape, Stroke, Ui, VectorcraftApp, Xf, vec2};
/// The width an artboard needs on screen for its name to show (px): narrower, the name is left
/// out rather than spilling over its neighbours.
@@ -89,6 +91,15 @@ pub(super) fn tool_name_rect(painter: &egui::Painter, xf: &Xf, rect: Rect, index
egui::Rect::from_min_size(sp, galley.size()).expand(2.0)
}
+/// The artboards the Artboard tool labels itself, following a move or resize (its selected
+/// ones): the canvas doesn't name them again. Empty with another tool.
+pub(super) fn tool_labelled(app: &VectorcraftApp) -> Vec {
+ if app.session.tool_id() != "artboard" {
+ return vec![];
+ }
+ app.session.tool_options()["selected"].as_array().map(|a| a.iter().filter_map(Value::as_u64).collect()).unwrap_or_default()
+}
+
/// The artboard whose on-canvas name contains `screen`, if that name is being drawn.
pub(super) fn artboard_name_at(app: &VectorcraftApp, ui: &Ui, xf: &Xf, screen: Pos2) -> Option {
let st = app.session.active()?;
@@ -96,11 +107,12 @@ pub(super) fn artboard_name_at(app: &VectorcraftApp, ui: &Ui, xf: &Xf, screen: P
if !artboard_tool && st.doc.artboards.len() <= 1 {
return None;
}
- let tool_labelled = artboard_tool.then(|| app.session.tool_options()["active"].as_u64()).flatten();
+ let tool_selected = tool_labelled(app);
let painter = ui.painter();
let mut hit = None;
for (i, ab) in st.doc.artboards.iter().enumerate() {
- if tool_labelled == u64::try_from(i).ok() {
+ let is_tool_labelled = u64::try_from(i).ok().is_some_and(|idx| tool_selected.contains(&idx));
+ if is_tool_labelled {
continue;
}
let corner = xf.to_screen(Point::new(ab.rect.x0, ab.rect.y0));
@@ -110,16 +122,18 @@ pub(super) fn artboard_name_at(app: &VectorcraftApp, ui: &Ui, xf: &Xf, screen: P
hit = Some(i);
}
}
- if let Some(i) = tool_labelled.and_then(|i| usize::try_from(i).ok())
- && let Some(ab) = st.doc.artboards.get(i)
- && tool_name_rect(painter, xf, ab.rect, i, &ab.name).contains(screen)
- {
- return Some(i);
+ for &idx in &tool_selected {
+ if let Some(i) = usize::try_from(idx).ok()
+ && let Some(ab) = st.doc.artboards.get(i)
+ && tool_name_rect(painter, xf, ab.rect, i, &ab.name).contains(screen)
+ {
+ return Some(i);
+ }
}
hit
}
-pub(super) fn select_named_artboard(app: &mut VectorcraftApp, index: usize) {
+pub(super) fn select_named_artboard(app: &mut VectorcraftApp, index: usize, shift: bool) {
let n = app.session.active().map(|st| st.doc.artboards.len()).unwrap_or(0);
if index >= n {
return;
@@ -128,7 +142,11 @@ pub(super) fn select_named_artboard(app: &mut VectorcraftApp, index: usize) {
v.artboard = index;
}
if app.session.tool_id() == "artboard" {
- app.session.set_tool_option("active", &json!(index));
+ if shift {
+ crate::panels::artboards::toggle(app, index, n);
+ } else {
+ app.session.set_tool_option("active", &json!(index));
+ }
}
}
@@ -194,10 +212,10 @@ pub(super) fn artboard_name_editor(app: &mut VectorcraftApp, ui: &mut Ui, xf: &X
pub(super) fn artboard_name_field_rect(app: &VectorcraftApp, ui: &Ui, xf: &Xf, index: usize) -> Option {
let st = app.session.active()?;
let ab = st.doc.artboards.get(index)?;
- let artboard_tool = app.session.tool_id() == "artboard";
- let tool_labelled = artboard_tool.then(|| app.session.tool_options()["active"].as_u64()).flatten();
+ let tool_selected = tool_labelled(app);
let painter = ui.painter();
- let rect = if tool_labelled == u64::try_from(index).ok() {
+ let is_tool_labelled = u64::try_from(index).ok().is_some_and(|idx| tool_selected.contains(&idx));
+ let rect = if is_tool_labelled {
tool_name_rect(painter, xf, ab.rect, index, &ab.name)
} else {
let corner = xf.to_screen(Point::new(ab.rect.x0, ab.rect.y0));
diff --git a/crates/ui-egui/src/canvas/cursor.rs b/crates/ui-egui/src/canvas/cursor.rs
index abd4e0cf88..6d39883be8 100644
--- a/crates/ui-egui/src/canvas/cursor.rs
+++ b/crates/ui-egui/src/canvas/cursor.rs
@@ -66,7 +66,7 @@ pub(super) fn still_wait(still: &mut Option<(CacheKey, f64)>, shown: Option<&Cac
/// Whether two cache keys differ only in the view (zoom, center, rotation, canvas size, pixel
/// density and Pixel Preview's document pixels), with Pixel Preview on in both or off in both.
-fn only_view_differs(a: &CacheKey, b: &CacheKey) -> bool {
+pub(super) fn only_view_differs(a: &CacheKey, b: &CacheKey) -> bool {
a.pixel.is_some() == b.pixel.is_some()
&& *a == CacheKey { zoom: a.zoom, cx: a.cx, cy: a.cy, w: a.w, h: a.h, ppp: a.ppp, rot: a.rot, pixel: a.pixel, ..b.clone() }
}
diff --git a/crates/ui-egui/src/canvas/fill.rs b/crates/ui-egui/src/canvas/fill.rs
new file mode 100644
index 0000000000..f68c175585
--- /dev/null
+++ b/crates/ui-egui/src/canvas/fill.rs
@@ -0,0 +1,198 @@
+use super::cursor::only_view_differs;
+use super::{Affine, CacheKey, Color32, Point, Pos2, Shape, VectorcraftApp, Xf, color_image, pos2, vec2};
+
+/// The fraction of the canvas's resolution, each way, that [`Fill`] is rendered at.
+const FILL_SCALE: f64 = 0.25;
+/// How many times the canvas's width and height [`Fill`] covers, around the view it is rendered
+/// for. A pan or zoom-out that stays within it draws it again without rendering it.
+const FILL_REACH: f64 = 2.0;
+
+/// [`crate::CanvasCache::fill`]: a frame of the art from [`crate::CanvasCache::fill_worker`],
+/// rendered for the canvas key `key` as [`fill_view`] gives, and its texture.
+pub struct Fill {
+ /// The document, revision and view it was rendered for.
+ pub(super) key: CacheKey,
+ /// Document → its pixels.
+ pub(super) view: Affine,
+ /// Its size in pixels.
+ pub(super) size: (u32, u32),
+ pub(super) tex: egui::TextureHandle,
+}
+
+/// The size in pixels and the view (document → its pixels) of the fill for the canvas key `key`:
+/// [`FILL_SCALE`] of the canvas's resolution, covering [`FILL_REACH`] times the canvas's width and
+/// height around the view of `key`.
+pub(super) fn fill_view(key: &CacheKey) -> (u32, u32, Affine) {
+ let fw = (f64::from(key.w) * FILL_REACH * FILL_SCALE).ceil().clamp(1.0, f64::from(u16::MAX)) as u32;
+ let fh = (f64::from(key.h) * FILL_REACH * FILL_SCALE).ceil().clamp(1.0, f64::from(u16::MAX)) as u32;
+ let ppp = if key.ppp > 0.0 { f64::from(key.ppp) } else { 1.0 };
+ let view = Affine::translate((f64::from(fw) / 2.0, f64::from(fh) / 2.0))
+ * Affine::rotate(key.rot.to_radians())
+ * Affine::scale(key.zoom * ppp * FILL_SCALE)
+ * Affine::translate((-key.cx, -key.cy));
+ (fw, fh, view)
+}
+
+/// While the frame shown is drawn for a view it was not rendered for, and its key differs from
+/// `key` in the view alone (the frame for `key` is on its way from the render worker), the parts
+/// of the canvas `rect` it leaves uncovered show `doc` from [`crate::CanvasCache::fill`]. The fill
+/// worker ([`crate::CanvasCache::fill_worker`]) renders it with the frame shown's options and these
+/// changes: images draw only from pixels already decoded
+/// ([`vectorcraft_render::RenderOptions::kept_images_only`]) and draw mips
+/// ([`vectorcraft_render::RenderOptions::image_mips`]), raster effects render within a drag's
+/// budget ([`vectorcraft_render::RenderOptions::dragging`]), and rasters cached for moved objects
+/// are not reused ([`vectorcraft_render::RenderOptions::interacting`] off). This thread only copies a
+/// finished fill into its texture and draws it. A fill is asked for again when the one shown or on
+/// its way does not cover the canvas, when the view's zoom is more than twice or less than half
+/// its own, and when the document, its revision or anything but the view changed; until it
+/// arrives, the fill shown is drawn where it reaches. It is dropped once the canvas shows the frame
+/// for `key`, and while the frame shown differs from `key` in more than the view.
+pub(super) fn fill_uncovered(
+ app: &mut VectorcraftApp,
+ ctx: &egui::Context,
+ painter: &egui::Painter,
+ key: &CacheKey,
+ doc: &std::sync::Arc,
+ rect: egui::Rect,
+ xf: &Xf,
+) {
+ // Taken every frame, so a fill that is no longer needed does not stay queued.
+ let done = app.canvas.fill_worker.as_mut().and_then(|w| w.poll());
+ let (Some(k), Some((_, opts))) = (&app.canvas.key, &app.canvas.shown) else {
+ app.canvas.fill = None;
+ return;
+ };
+ // The fill takes the frame shown's options, which match `key`'s only when the two keys differ
+ // in the view alone.
+ if k == key || !only_view_differs(k, key) || app.canvas.texture.is_none() {
+ app.canvas.fill = None;
+ return;
+ }
+ let screen_to_doc = xf.affine().inverse();
+ let corners =
+ [rect.left_top(), rect.right_top(), rect.right_bottom(), rect.left_bottom()].map(|p| screen_to_doc * Point::new(p.x as f64, p.y as f64));
+ let usable = |f: &CacheKey| only_view_differs(f, key) && (0.5..=2.0).contains(&(key.zoom / f.zoom));
+ let covers = |f: &CacheKey| {
+ let (w, h, view) = fill_view(f);
+ usable(f)
+ && corners.iter().all(|c| {
+ let p = view * *c;
+ (-0.5..=f64::from(w) + 0.5).contains(&p.x) && (-0.5..=f64::from(h) + 0.5).contains(&p.y)
+ })
+ };
+ let opts = vectorcraft_render::RenderOptions { kept_images_only: true, image_mips: true, interacting: false, dragging: true, ..opts.clone() };
+ let gaps = shown_frame(k, rect, xf).map_or_else(Vec::new, |shown| uncovered(shown, rect));
+ if let Some(done) = done.filter(|d| usable(&d.key)) {
+ let color = color_image(&done.img);
+ let tex = match app.canvas.fill.take() {
+ Some(mut f) => {
+ f.tex.set(color, egui::TextureOptions::LINEAR);
+ f.tex
+ }
+ None => ctx.load_texture("canvas-fill", color, egui::TextureOptions::LINEAR),
+ };
+ let (_, _, view) = fill_view(&done.key);
+ app.canvas.fill = Some(Fill { key: done.key, view, size: (done.img.width, done.img.height), tex });
+ }
+ let Some(worker) = app.canvas.fill_worker.as_mut().filter(|_| !gaps.is_empty()) else { return };
+ if !app.canvas.fill.as_ref().is_some_and(|f| covers(&f.key)) && !worker.pending.as_ref().is_some_and(covers) {
+ let (w, h, view) = fill_view(key);
+ worker.submit(crate::render_worker::Job { key: key.clone(), doc: doc.clone(), w, h, view, opts });
+ }
+ let Some(f) = app.canvas.fill.as_ref().filter(|f| usable(&f.key)) else { return };
+ let to_uv = Affine::scale_non_uniform(1.0 / f64::from(f.size.0.max(1)), 1.0 / f64::from(f.size.1.max(1))) * f.view * screen_to_doc;
+ let from_uv = to_uv.inverse();
+ let mut mesh = egui::Mesh::with_texture(f.tex.id());
+ for gap in gaps {
+ // Only where the fill reaches: its pixels are 0..1 each way in uv.
+ let uv: Vec = gap.iter().map(|p| to_uv * Point::new(p.x as f64, p.y as f64)).collect();
+ let uv = clip_polygon(&clip_polygon(&uv, |p| p.x, 0.0, false), |p| p.x, 1.0, true);
+ let uv = clip_polygon(&clip_polygon(&uv, |p| p.y, 0.0, false), |p| p.y, 1.0, true);
+ if uv.len() < 3 {
+ continue;
+ }
+ let first = mesh.vertices.len() as u32;
+ for p in &uv {
+ let pos = from_uv * *p;
+ mesh.vertices.push(egui::epaint::Vertex {
+ pos: pos2(pos.x as f32, pos.y as f32),
+ uv: pos2(p.x as f32, p.y as f32),
+ color: Color32::WHITE,
+ });
+ }
+ for i in 1..uv.len() as u32 - 1 {
+ mesh.indices.extend([first, first + i, first + i + 1]);
+ }
+ }
+ painter.add(Shape::mesh(mesh));
+}
+
+/// Where the canvas draws the frame shown (its key `k`) in the view `xf` of the canvas `rect`:
+/// the unit square (the frame's texture coordinates) → screen points. None when the mapping is
+/// degenerate.
+fn shown_frame(k: &CacheKey, rect: egui::Rect, xf: &Xf) -> Option {
+ let to_screen = match k.pixel {
+ Some([x0, y0, x1, y1]) => {
+ xf.affine() * Affine::translate((x0 as f64, y0 as f64)) * Affine::scale_non_uniform((x1 - x0) as f64, (y1 - y0) as f64)
+ }
+ None => {
+ let ppp = if k.ppp > 0.0 { k.ppp } else { 1.0 };
+ let old_rect = egui::Rect::from_center_size(rect.center(), vec2(k.w as f32 / ppp, k.h as f32 / ppp));
+ let old = Xf { rect: old_rect, zoom: k.zoom, center: Point::new(k.cx, k.cy), rot: k.rot.to_radians() };
+ xf.affine()
+ * old.affine().inverse()
+ * Affine::translate((old_rect.min.x as f64, old_rect.min.y as f64))
+ * Affine::scale_non_uniform(old_rect.width() as f64, old_rect.height() as f64)
+ }
+ };
+ let det = to_screen.determinant();
+ (det.is_finite() && det.abs() > 1e-12).then_some(to_screen)
+}
+
+/// The parts of `rect` outside the parallelogram `shown` maps the unit square to, as convex
+/// polygons of screen points, leaving out those thinner than half a point (a frame whose pixel
+/// size was rounded from the canvas's leaves such slivers along its edges).
+fn uncovered(shown: Affine, rect: egui::Rect) -> Vec> {
+ // In the unit square's coordinates the canvas is a convex polygon and the frame shown is
+ // 0..1 each way: the parts left of it, right of it, and above and below it in between.
+ let inv = shown.inverse();
+ let canvas: Vec = [rect.left_top(), rect.right_top(), rect.right_bottom(), rect.left_bottom()]
+ .iter()
+ .map(|p| inv * Point::new(p.x as f64, p.y as f64))
+ .collect();
+ let left = clip_polygon(&canvas, |p| p.x, 0.0, true);
+ let right = clip_polygon(&canvas, |p| p.x, 1.0, false);
+ let between = clip_polygon(&clip_polygon(&canvas, |p| p.x, 0.0, false), |p| p.x, 1.0, true);
+ let above = clip_polygon(&between, |p| p.y, 0.0, true);
+ let below = clip_polygon(&between, |p| p.y, 1.0, false);
+ [left, right, above, below]
+ .into_iter()
+ .map(|part| part.into_iter().map(|p| shown * p).map(|p| pos2(p.x as f32, p.y as f32)).collect::>())
+ .filter(|part| {
+ // Twice the area over the perimeter: about the width of a thin strip.
+ let perimeter: f32 = part.iter().zip(part.iter().cycle().skip(1)).map(|(a, b)| a.distance(*b)).sum();
+ perimeter > 0.0 && 2.0 * polygon_area(part) / perimeter > 0.5
+ })
+ .collect()
+}
+
+/// The part of convex polygon `poly` where `along(p)` is below `at` (`below`) or above it.
+fn clip_polygon(poly: &[Point], along: impl Fn(&Point) -> f64, at: f64, below: bool) -> Vec {
+ let inside = |p: &Point| if below { along(p) <= at } else { along(p) >= at };
+ let mut out = Vec::with_capacity(poly.len() + 1);
+ for (a, b) in poly.iter().zip(poly.iter().cycle().skip(1)) {
+ if inside(a) {
+ out.push(*a);
+ }
+ if inside(a) != inside(b) {
+ let t = (at - along(a)) / (along(b) - along(a));
+ out.push(a.lerp(*b, t));
+ }
+ }
+ out
+}
+
+/// The area of polygon `poly` (shoelace formula).
+pub(super) fn polygon_area(poly: &[Pos2]) -> f32 {
+ poly.iter().zip(poly.iter().cycle().skip(1)).map(|(a, b)| a.x * b.y - b.x * a.y).sum::().abs() / 2.0
+}
diff --git a/crates/ui-egui/src/canvas/input.rs b/crates/ui-egui/src/canvas/input.rs
index e07ba12dc3..6141707e9c 100644
--- a/crates/ui-egui/src/canvas/input.rs
+++ b/crates/ui-egui/src/canvas/input.rs
@@ -91,7 +91,15 @@ pub(super) fn handle_input(app: &mut VectorcraftApp, ui: &Ui, resp: &egui::Respo
// The artboard's name sits above its corner. A press there renames on a double-click
// and does not start a tool gesture (a fitted artboard, a new one, Artboard Options).
if let Some(i) = artboard_name_at(app, ui, &xf, p) {
- ui.data_mut(|dd| dd.insert_temp(name_press_id(), i));
+ let press_shift = ui
+ .input(|inp| {
+ inp.events.iter().rev().find_map(|event| match event {
+ egui::Event::PointerButton { button: egui::PointerButton::Primary, pressed: true, modifiers, .. } => Some(modifiers.shift),
+ _ => None,
+ })
+ })
+ .unwrap_or(m.shift);
+ ui.data_mut(|dd| dd.insert_temp(name_press_id(), (i, press_shift)));
} else {
begin_drag(app, ui, &f, p);
}
@@ -134,9 +142,17 @@ pub(super) fn handle_input(app: &mut VectorcraftApp, ui: &Ui, resp: &egui::Respo
ui.ctx().request_repaint_after(std::time::Duration::from_millis(16));
}
if pointer.primary_released()
- && let Some(i) = ui.data_mut(|d| d.remove_temp::(name_press_id()))
+ && let Some((i, shift)) = ui.data_mut(|d| d.remove_temp::<(usize, bool)>(name_press_id()))
{
- select_named_artboard(app, i);
+ let release_shift = ui
+ .input(|inp| {
+ inp.events.iter().rev().find_map(|event| match event {
+ egui::Event::PointerButton { button: egui::PointerButton::Primary, pressed: false, modifiers, .. } => Some(modifiers.shift),
+ _ => None,
+ })
+ })
+ .unwrap_or(m.shift);
+ select_named_artboard(app, i, shift || release_shift);
}
if resp.double_clicked()
&& let Some(p) = at
@@ -170,11 +186,12 @@ fn wheel_view(
) -> (egui::PointerState, egui::Modifiers, bool, Option) {
let line = ui.ctx().options(|o| o.input_options.line_scroll_speed);
let wheel_zooms = app.session.prefs.zoom_with_mouse_wheel;
+ let animate = animated_zoom(&app.session.prefs);
let turn_id = egui::Id::unique("canvas-wheel-turn");
let turn_before: WheelTurn = ui.data(|d| d.get_temp(turn_id)).unwrap_or_default();
let mut turn = turn_before;
let (pointer, m, space, (factor, scroll)) =
- ui.input(|i| (i.pointer.clone(), i.modifiers, i.key_down(egui::Key::Space), wheel(i, wheel_zooms, line, rect.height(), &mut turn)));
+ ui.input(|i| (i.pointer.clone(), i.modifiers, i.key_down(egui::Key::Space), wheel(i, wheel_zooms, animate, line, rect.height(), &mut turn)));
if turn != turn_before {
ui.data_mut(|d| d.insert_temp(turn_id, turn));
}
@@ -261,12 +278,19 @@ fn begin_drag(app: &mut VectorcraftApp, ui: &Ui, f: &Pointing, p: Pos2) {
// A new press has not dragged yet, whatever an interrupted one left behind.
dd.remove::(tool_drag_doc_id());
dd.insert_temp(tool_press_doc_id(), xf.to_doc(p));
+ // Space held at the press (Cmd+Space lends the Zoom tool) sizes the marquee until
+ // it is let go ([`zoom_marquee_start`]).
+ if matches!(d, Drag::ZoomBox { .. }) {
+ dd.insert_temp(zoom_space_free_id(), !space);
+ }
});
}
/// A gesture held at `p`: the view follows, or the tool gets drag events.
fn drag_held(app: &mut VectorcraftApp, ui: &Ui, f: &Pointing, d: Drag, p: Pos2) {
let Pointing { resp, rect, pointer, m, space, xf, view, .. } = *f;
+ // Where the pointer was in the frame before: a zoom marquee moved with Space follows it.
+ let before: Option = ui.data(|dd| dd.get_temp(drag_pos_id()));
ui.data_mut(|dd| dd.insert_temp(drag_pos_id(), p));
match d {
Drag::Pan { start, center, .. } => {
@@ -287,7 +311,11 @@ fn drag_held(app: &mut VectorcraftApp, ui: &Ui, f: &Pointing, d: Drag, p: Pos2)
vm.rotation = vectorcraft_geom::normalize_deg(deg);
}
}
- Drag::ZoomBox { start } => marquee(ui.painter(), egui::Rect::from_two_pos(start, p)),
+ Drag::ZoomBox { start } => {
+ let start = zoom_marquee_start(ui, start, before, p, space);
+ ui.data_mut(|dd| dd.insert_temp(drag_id(), Drag::ZoomBox { start }));
+ marquee(ui.painter(), egui::Rect::from_two_pos(start, p));
+ }
Drag::ZoomScrub { start, held, moved } => {
let dt = ui.input(|i| i.unstable_dt).min(0.25);
let (held, moved) = (held + dt, moved || (p - start).length() > SCRUB_SLOP);
@@ -354,6 +382,8 @@ fn drag_released(app: &mut VectorcraftApp, ui: &Ui, f: &Pointing, d: Drag, p: Po
let Pointing { resp, rect, m, space, xf, view, .. } = *f;
// The last position the tool's drag got: none if the press never dragged.
let last_drag: Option = ui.data(|dd| dd.get_temp(tool_drag_doc_id()));
+ // Where the pointer was in the frame before: a zoom marquee moved with Space follows it.
+ let before: Option = ui.data(|dd| dd.get_temp(drag_pos_id()));
ui.data_mut(|dd| {
dd.remove::(drag_id());
dd.remove::(drag_pos_id());
@@ -362,6 +392,8 @@ fn drag_released(app: &mut VectorcraftApp, ui: &Ui, f: &Pointing, d: Drag, p: Po
});
match d {
Drag::ZoomBox { start } => {
+ let start = zoom_marquee_start(ui, start, before, p, space);
+ ui.data_mut(|dd| dd.remove::(zoom_space_free_id()));
let r = egui::Rect::from_two_pos(start, p);
if let Some(vm) = app.view_mut() {
if r.width() > 8.0 && r.height() > 8.0 {
@@ -441,6 +473,60 @@ fn double_click(app: &mut VectorcraftApp, ui: &Ui, f: &Pointing, p: Pos2) {
}
}
+/// Whether Space moves the Zoom tool's marquee in the drag under way ([`zoom_marquee_start`]).
+fn zoom_space_free_id() -> egui::Id {
+ egui::Id::unique("canvas-zoom-space-free")
+}
+
+/// The start corner of the Zoom tool's marquee in this frame. With Space held, the marquee moves
+/// as far as the pointer did since `before` and keeps its size; with Space let go, the drag sizes
+/// it again from where it moved to. Space held since the press (Cmd+Space lends the Zoom tool)
+/// sizes the marquee until it is let go. A marquee with no size yet is sized by the movement, so
+/// Space pressed before the pointer moves does not keep it at the press point. The frame's pointer
+/// moves and Space presses and releases are taken in the order they came, so each move follows the
+/// Space state it came with.
+fn zoom_marquee_start(ui: &Ui, start: Pos2, before: Option, p: Pos2, space: bool) -> Pos2 {
+ enum Step {
+ Space(bool),
+ Move(Pos2),
+ }
+ let id = zoom_space_free_id();
+ let steps: Vec = ui.input(|i| {
+ i.events
+ .iter()
+ .filter_map(|e| match e {
+ egui::Event::Key { key: egui::Key::Space, pressed, repeat: false, .. } => Some(Step::Space(*pressed)),
+ egui::Event::PointerMoved(q) => Some(Step::Move(*q)),
+ _ => None,
+ })
+ .collect()
+ });
+ // Space as it was when the frame began: the opposite of its first press or release, else as it is now.
+ let mut held = steps.iter().find_map(|s| if let Step::Space(down) = s { Some(!down) } else { None }).unwrap_or(space);
+ let mut free = !held || ui.data(|d| d.get_temp::(id)).unwrap_or(true);
+ let (mut start, mut at) = (start, before);
+ for s in steps.into_iter().chain(std::iter::once(Step::Move(p))) {
+ match s {
+ Step::Space(down) => {
+ held = down;
+ free |= !down;
+ }
+ Step::Move(q) => {
+ if let Some(b) = at
+ && held
+ && free
+ && b != start
+ {
+ start += q - b;
+ }
+ at = Some(q);
+ }
+ }
+ }
+ ui.data_mut(|d| d.insert_temp(id, free));
+ start
+}
+
/// A marquee around screen rectangle `r`: dark dashes over a light line, so it shows on a white
/// artboard and on the grey pasteboard alike (#725).
fn marquee(p: &egui::Painter, r: egui::Rect) {
diff --git a/crates/ui-egui/src/canvas/task_bar.rs b/crates/ui-egui/src/canvas/task_bar.rs
index a81d8307f4..461730c6ed 100644
--- a/crates/ui-egui/src/canvas/task_bar.rs
+++ b/crates/ui-egui/src/canvas/task_bar.rs
@@ -117,7 +117,10 @@ pub(super) fn task_bar(app: &mut VectorcraftApp, ui: &mut Ui, xf: &Xf) {
items.push((tl!("Release Clipping Mask"), "ungroup", "object.clippingMask.release", none()));
} else if is_group {
items.push((tl!("Ungroup"), "ungroup", "object.ungroup", none()));
- items.push((tl!("Isolate"), "square-dashed", "object.isolate", none()));
+ // Isolate is left out while Enter Isolation Mode is off, as it is while an opacity mask is edited.
+ if crate::menus::enabled(app, "object.isolate") {
+ items.push((tl!("Isolate"), "square-dashed", "object.isolate", none()));
+ }
} else if is_compound {
items.push(edit_path());
items.push((tl!("Release Compound Path"), "ungroup", "object.compoundPath.release", none()));
@@ -141,14 +144,16 @@ pub(super) fn task_bar(app: &mut VectorcraftApp, ui: &mut Ui, xf: &Xf) {
}
items.push((tl!("Duplicate"), "copy", "edit.duplicate", none()));
}
- let fill = first.as_ref().map(|f| f.appearance.fill_paint()).unwrap_or_default();
+ // The paints the Fill and Stroke proxies show, "?" when the selected objects' paints differ.
+ let (fill, stroke) = crate::panels::current_paints(app);
+ let (fill_mixed, stroke_mixed) = crate::panels::mixed_paints(app, ui.ctx());
let colored = has_colors(&st.doc, &st.selection.objects);
let doc = st.uid;
// Under the selection's lowest corner on screen, centered on the selection (the view may be
// rotated).
let lowest = xf.quad(b).iter().map(|c| c.y).fold(f32::NEG_INFINITY, f32::max);
let anchor = pos2(xf.to_screen(b.center()).x, lowest);
- let est_w = 118.0 + items.iter().map(|(l, _, _, _)| l.len() as f32 * 7.2 + 44.0).sum::();
+ let est_w = 150.0 + items.iter().map(|(l, _, _, _)| l.len() as f32 * 7.2 + 44.0).sum::();
// Its place under the selection, then where the handle moved it, kept on the canvas (with the
// bar's size last frame, the estimate before it first shows).
let under = pos2(anchor.x - est_w / 2.0, anchor.y + 28.0);
@@ -175,6 +180,7 @@ pub(super) fn task_bar(app: &mut VectorcraftApp, ui: &mut Ui, xf: &Xf) {
let pinned = place.pinned;
let mut moved = Vec2::ZERO;
let mut run: Option<(&str, serde_json::Value)> = None;
+ let mut show_swatches = false;
egui::Area::new(id).order(egui::Order::Middle).fixed_pos(pos).show(ui.ctx(), |ui| {
egui::Frame::NONE
.fill(t.panel)
@@ -207,19 +213,24 @@ pub(super) fn task_bar(app: &mut VectorcraftApp, ui: &mut Ui, xf: &Xf) {
run = Some((*cmd, params.clone()));
}
}
- // The selected objects' Fill, Recolor Artwork and Lock, left out with the Artboard tool.
+ // The selected objects' Fill, Stroke, Recolor Artwork and Lock, left out with the Artboard tool.
if !on_artboards {
let (r, resp) = ui.allocate_exact_size(vec2(26.0, 30.0), Sense::click());
- widgets::paint_chip(ui, egui::Rect::from_center_size(r.center(), vec2(16.0, 16.0)), &fill);
- ui.painter().rect_stroke(
- egui::Rect::from_center_size(r.center(), vec2(16.0, 16.0)),
- 0.0,
- Stroke::new(1.0, t.button_border),
- StrokeKind::Outside,
- );
+ let chip = egui::Rect::from_center_size(r.center(), vec2(16.0, 16.0));
+ widgets::proxy_chip(ui, chip, &fill, fill_mixed, None);
+ ui.painter().rect_stroke(chip, 0.0, Stroke::new(1.0, t.button_border), StrokeKind::Outside);
if resp.on_hover_text(tl!("Fill")).clicked() {
app.session.fill_active = true;
- app.ui.open_panel = Some("swatches".into());
+ show_swatches = true;
+ }
+ // The Stroke chip, drawn as a ring as the Control bar's is.
+ let (r, resp) = ui.allocate_exact_size(vec2(26.0, 30.0), Sense::click());
+ let chip = egui::Rect::from_center_size(r.center(), vec2(16.0, 16.0));
+ widgets::proxy_chip(ui, chip, &stroke, stroke_mixed, Some(4.0));
+ ui.painter().rect_stroke(chip, 0.0, Stroke::new(1.0, t.button_border), StrokeKind::Outside);
+ if resp.on_hover_text(tl!("Stroke")).clicked() {
+ app.session.fill_active = false;
+ show_swatches = true;
}
// Recolor Artwork, when the selection has colours to recolour.
if colored && widgets::icon_button(ui, "palette", tl!("Recolor Artwork"), false, 30.0).clicked() {
@@ -262,6 +273,14 @@ pub(super) fn task_bar(app: &mut VectorcraftApp, ui: &mut Ui, xf: &Xf) {
}
ui.ctx().request_repaint();
}
+ // The Swatches panel shows where it is docked, floating or closed. A panel in an icon column
+ // toggles when activated, so an open flyout stays as it is.
+ if show_swatches
+ && app.ui.open_panel.as_deref() != Some("swatches")
+ && let Err(e) = app.run("window.panel.activate", json!({ "panel": "swatches" }))
+ {
+ app.ui.status = e;
+ }
match run {
// Image Trace traces the image at once with the Default preset. As a quick trace from
// Properties or the Control bar, it leaves the Image Trace panel as it was.
diff --git a/crates/ui-egui/src/canvas/tests.rs b/crates/ui-egui/src/canvas/tests.rs
index bb76684dc6..6a30f248f1 100644
--- a/crates/ui-egui/src/canvas/tests.rs
+++ b/crates/ui-egui/src/canvas/tests.rs
@@ -2,6 +2,32 @@ use super::*;
use vectorcraft_engine::Session;
use vectorcraft_geom::Shape as _;
+#[test]
+fn subpixel_dock_layout_does_not_change_pointer_document_coordinates() {
+ let mut observed = Vec::new();
+ for width in [1324.0 + 29.0 / 32.0, 1324.875, 1325.875] {
+ let mut app = VectorcraftApp::new(Session::new(), Default::default());
+ app.session.execute("file.new", &json!({"width": 800, "height": 600, "created": 0})).unwrap();
+ let ctx = egui::Context::default();
+ ctx.set_pixels_per_point(2.0);
+ let raw = egui::RawInput {
+ screen_rect: Some(egui::Rect::from_min_size(Pos2::ZERO, vec2(1800.0, 900.0))),
+ max_texture_side: Some(8192),
+ ..Default::default()
+ };
+ let mut out = ctx.run_ui(raw, |ui| {
+ let area = egui::Rect::from_min_size(pos2(54.0, 72.0), vec2(width + SCROLL_BAR, 636.0 + SCROLL_BAR));
+ let mut child = ui.new_child(egui::UiBuilder::new().max_rect(area));
+ show(&mut app, &mut child);
+ });
+ out.textures_delta.clear();
+ let rect = app.canvas_rect.unwrap();
+ observed.push((rect, Xf::new(rect, app.view().unwrap()).to_doc(pos2(440.0, 330.0))));
+ }
+ assert_eq!(observed[0], observed[1], "the same physical canvas must map the same pointer identically");
+ assert_ne!(observed[0], observed[2], "a real device-pixel resize must still change the mapping");
+}
+
/// A rendered raster becomes the image egui's own conversion makes of it, half-transparent
/// edges and all; one whose bytes don't match its size becomes an empty image of that size.
#[test]
@@ -679,6 +705,57 @@ fn the_artboard_tool_names_its_active_artboard_once() {
assert!((active[0].1 - other[0].1).abs() < 2.0, "on the artboard's top edge like the other name: {active:?} vs {other:?}");
}
+#[test]
+fn shift_clicking_canvas_artboard_label_toggles_multi_selection() {
+ let mut app = VectorcraftApp::new(Session::new(), Default::default());
+ app.session.execute("file.new", &json!({"width": 200, "height": 100, "artboards": 3})).unwrap();
+ app.select_tool("artboard");
+ if let Some(v) = app.view_mut() {
+ v.center = Point::new(320.0, 50.0);
+ v.zoom = 0.8;
+ v.fitted = true;
+ }
+ let ctx = egui::Context::default();
+ frame(&mut app, &ctx, vec![]);
+ assert_eq!(app.session.tool_options()["selected"], json!([0]));
+
+ let drawn = shapes(&mut app, &ctx);
+ let label_pos = |name: &str| {
+ drawn
+ .iter()
+ .find_map(|s| match s {
+ Shape::Text(t) if t.galley.text() == name => Some(t.pos + vec2(10.0, 5.0)),
+ _ => None,
+ })
+ .unwrap()
+ };
+ let at1 = label_pos("02 - Artboard 2");
+
+ // Shift-click artboard 2's name label (Shift held on press, released before mouse release)
+ let shift = egui::Modifiers::SHIFT;
+ let button = |pressed| egui::Event::PointerButton { pos: at1, button: egui::PointerButton::Primary, pressed, modifiers: shift };
+ frame(&mut app, &ctx, vec![egui::Event::ModifiersChanged(shift), egui::Event::PointerMoved(at1), button(true)]);
+ frame(
+ &mut app,
+ &ctx,
+ vec![
+ egui::Event::ModifiersChanged(egui::Modifiers::NONE),
+ egui::Event::PointerButton { pos: at1, button: egui::PointerButton::Primary, pressed: false, modifiers: egui::Modifiers::NONE },
+ ],
+ );
+
+ assert_eq!(app.session.tool_options()["selected"], json!([1, 0]), "Shift-clicking artboard label adds it to selection");
+
+ // Click artboard 3's name label without Shift
+ let at2 = label_pos("03 - Artboard 3");
+ let plain_btn =
+ |pressed| egui::Event::PointerButton { pos: at2, button: egui::PointerButton::Primary, pressed, modifiers: egui::Modifiers::NONE };
+ frame(&mut app, &ctx, vec![egui::Event::ModifiersChanged(egui::Modifiers::NONE), egui::Event::PointerMoved(at2), plain_btn(true)]);
+ frame(&mut app, &ctx, vec![plain_btn(false)]);
+
+ assert_eq!(app.session.tool_options()["selected"], json!([2]), "Plain click selects that artboard alone");
+}
+
/// Enable Touch Gestures (#585): a two-finger tap undoes and a three-finger one redoes, and the
/// first finger's press (the pointer egui makes of it) draws nothing. Off, a tap does nothing.
#[test]
@@ -2309,6 +2386,144 @@ fn a_turned_view_draws_the_last_frame_turned_until_its_own_arrives() {
app.canvas.worker = None;
}
+/// While the worker renders the frame for a panned view, the fill worker renders a
+/// low-resolution frame, and the part of the canvas the last frame no longer covers shows the
+/// art from it, drawn only there. When the worker's frame arrives, it covers the canvas and the
+/// fill is dropped.
+#[test]
+fn a_pan_fills_the_area_the_last_frame_leaves_until_the_worker_frame_arrives() {
+ // The canvas key holds the global placed-document bitmap clock, which tests on other threads
+ // move: a frame whose key changed by more than the view drops the fill. An attempt that fails
+ // while the clock moved runs again; one that fails while it stood still is a real failure.
+ for _ in 0..20 {
+ let clock = vectorcraft_render::placed_document::generation();
+ match std::panic::catch_unwind(pan_fills_the_area_the_last_frame_leaves) {
+ Ok(()) => return,
+ Err(_) if vectorcraft_render::placed_document::generation() != clock => {}
+ Err(e) => std::panic::resume_unwind(e),
+ }
+ }
+ pan_fills_the_area_the_last_frame_leaves();
+}
+
+fn pan_fills_the_area_the_last_frame_leaves() {
+ let ctx = egui::Context::default();
+ let mut app = VectorcraftApp::new(Session::new(), Default::default());
+ app.session.execute("file.new", &json!({"width": 400, "height": 300})).unwrap();
+ app.session.execute("shape.rectangle", &json!({"x": 300, "y": 100, "width": 80, "height": 100})).unwrap();
+ app.canvas.worker_started = true; // render on this thread
+ app.ui.view.rulers = false;
+ app.ui.screen_mode = 2; // no scroll bars: the canvas is the window
+ // One frame → the meshes drawn and the fill's pixels, when this frame uploaded them.
+ let frame = |app: &mut VectorcraftApp| {
+ let (shapes, mut delta) = frame_output(app, &ctx);
+ let fill = app.canvas.fill.as_ref().map(|f| f.tex.id());
+ let pixels = delta.set.iter().find(|(id, _)| Some(**id) == fill).and_then(|(_, d)| d.last()).map(|d| match &d.image {
+ egui::ImageData::Color(img) => img.clone(),
+ });
+ delta.clear();
+ let meshes: Vec = shapes
+ .into_iter()
+ .filter_map(|s| match s {
+ Shape::Mesh(m) => Some(std::sync::Arc::unwrap_or_clone(m)),
+ _ => None,
+ })
+ .collect();
+ (meshes, pixels)
+ };
+ frame(&mut app);
+ {
+ let v = app.view_mut().unwrap();
+ v.zoom = 4.0;
+ v.center = Point::new(100.0, 150.0);
+ }
+ frame(&mut app); // the art from about x 0 to 200, without the rectangle
+ let old = app.canvas.key.clone().unwrap();
+ let before = Xf::new(app.canvas_rect.unwrap(), app.view().unwrap());
+ assert!(app.canvas.fill.is_none());
+ let (worker, jobs, completed) = crate::render_worker::Worker::test_channel();
+ app.canvas.worker = Some(worker);
+ let (fill_worker, fill_jobs, fill_completed) = crate::render_worker::Worker::test_channel();
+ app.canvas.fill_worker = Some(fill_worker);
+ app.canvas.last_ms = 50.0;
+ // Pan right by 150 pt: the last frame covers the canvas's left quarter, and the rectangle
+ // comes into its right quarter.
+ app.view_mut().unwrap().center = Point::new(250.0, 150.0);
+ frame(&mut app);
+ assert_eq!(app.canvas.key.as_ref(), Some(&old), "the last frame is still shown");
+ let job = jobs.try_recv().expect("the frame for the new view is on the worker");
+ let fill_job = fill_jobs.try_recv().expect("the fill is on the fill worker");
+ let (fw, fh, _) = fill_view(&job.key);
+ assert!(fill_job.opts.kept_images_only && (fill_job.w, fill_job.h) == (fw, fh), "{:?}", (fill_job.w, fill_job.h));
+ assert!(app.canvas.fill.is_none(), "nothing to draw until the fill arrives");
+ // The fill arrives; the next frame draws it, and asks for no other fill.
+ let img = app.canvas.renderer.render(&fill_job.doc, fill_job.w, fill_job.h, fill_job.view, &fill_job.opts);
+ let (doc, opts) = (fill_job.doc, fill_job.opts);
+ fill_completed.send(crate::render_worker::Done { key: fill_job.key, doc, opts, img, ms: 5.0, moved: 0 }).unwrap();
+ let (meshes, pixels) = frame(&mut app);
+ assert!(fill_jobs.try_recv().is_err(), "the fill covers the canvas");
+ assert_eq!(app.canvas.key.as_ref(), Some(&old), "the last frame is still shown");
+ let fill = app.canvas.fill.as_ref().expect("the fill is kept");
+ let mesh = meshes.iter().find(|m| m.texture_id == fill.tex.id()).expect("the fill is drawn");
+ let rect = app.canvas_rect.unwrap();
+ let xf = Xf::new(rect, app.view().unwrap());
+ let edge = xf.to_screen(before.to_doc(rect.right_top())).x; // the last frame's right edge
+ assert!(edge > rect.left() + 100.0 && edge < xf.to_screen(Point::new(300.0, 0.0)).x, "{edge} in {rect:?}");
+ assert!(
+ mesh.vertices.iter().all(|v| v.pos.x >= edge - 1e-3 && rect.expand(1e-3).contains(v.pos)),
+ "only right of the last frame: {:?}",
+ mesh.vertices
+ );
+ let area: f32 = mesh.indices.as_chunks::<3>().0.iter().map(|t| polygon_area(&t.map(|i| mesh.vertices[i as usize].pos))).sum();
+ let uncovered = (rect.right() - edge) * rect.height();
+ assert!((area - uncovered).abs() < 1.0, "the whole uncovered area, {uncovered} square points: {area}");
+ // The fill's pixel under a point of the canvas, from the uv the mesh gives that point.
+ let img = pixels.expect("the fill's pixels were uploaded");
+ let to_uv = Affine::scale_non_uniform(1.0 / fill.size.0 as f64, 1.0 / fill.size.1 as f64) * fill.view * xf.affine().inverse();
+ let alpha = |p: Pos2| {
+ let uv = to_uv * Point::new(p.x as f64, p.y as f64);
+ img.pixels[(uv.y * img.size[1] as f64) as usize * img.size[0] + (uv.x * img.size[0] as f64) as usize].a()
+ };
+ assert!(alpha(xf.to_screen(Point::new(340.0, 150.0))) > 0, "the rectangle, in the uncovered area");
+ assert_eq!(alpha(xf.to_screen(Point::new(250.0, 150.0))), 0, "no art there");
+ for v in &mesh.vertices {
+ assert!((to_uv * Point::new(v.pos.x as f64, v.pos.y as f64) - Point::new(v.uv.x as f64, v.uv.y as f64)).hypot() < 1e-4);
+ }
+ // Panned until the fill reaches only the canvas's left half: it is drawn only there, and the
+ // fill for the new view is asked for.
+ let fill_tex = fill.tex.id();
+ let reach = fill.view.inverse() * Point::new(fill.size.0 as f64, 0.0); // the fill's right edge
+ app.view_mut().unwrap().center = Point::new(reach.x, 150.0);
+ let (meshes, _) = frame(&mut app);
+ let right = Xf::new(rect, app.view().unwrap()).to_screen(reach).x;
+ assert!((right - rect.center().x).abs() < 1.0, "{right} in {rect:?}");
+ let mesh = meshes.iter().find(|m| m.texture_id == fill_tex).expect("the fill is drawn where it reaches");
+ assert!(mesh.vertices.iter().all(|v| v.pos.x <= right + 1e-3), "only where the fill reaches: {:?}", mesh.vertices);
+ let next = fill_jobs.try_recv().expect("the next fill");
+ assert_eq!(Some(&next.key), app.canvas.worker.as_ref().unwrap().pending.as_ref());
+ app.view_mut().unwrap().center = Point::new(250.0, 150.0);
+ // That fill finishes after the worker's frame: it is taken and not kept.
+ let img = app.canvas.renderer.render(&next.doc, next.w, next.h, next.view, &next.opts);
+ fill_completed.send(crate::render_worker::Done { key: next.key, doc: next.doc, opts: next.opts, img, ms: 5.0, moved: 0 }).unwrap();
+ // The worker's frame arrives: it covers the canvas, and the fill is no longer drawn or kept.
+ let img = app.canvas.renderer.render(&job.doc, job.w, job.h, job.view, &job.opts);
+ let expected = job.key.clone();
+ completed.send(crate::render_worker::Done { key: job.key, doc: job.doc, opts: job.opts, img, ms: 50.0, moved: 0 }).unwrap();
+ let (meshes, _) = frame(&mut app);
+ assert_eq!(app.canvas.key.as_ref(), Some(&expected), "the worker's frame is shown");
+ assert!(app.canvas.fill.is_none() && meshes.iter().all(|m| m.texture_id != fill_tex), "the fill is dropped");
+ assert!(app.canvas.fill_worker.as_ref().unwrap().pending.is_none(), "the late fill was taken");
+ // A pan with Outline turned on: the frame shown's options are not the ones asked for, and
+ // no fill is asked for.
+ app.ui.view.outline = true;
+ app.view_mut().unwrap().center = Point::new(400.0, 150.0);
+ frame(&mut app);
+ assert!(jobs.try_iter().last().is_some_and(|j| j.key.outline), "the outline frame is on the worker");
+ assert!(fill_jobs.try_recv().is_err() && app.canvas.fill.is_none(), "no fill");
+ app.canvas.worker = None;
+ app.canvas.fill_worker = None;
+}
+
/// With the web build's setting (`waits_for_still`, no render worker), a heavy document's canvas
/// is not rendered while the view moves: each frame draws the frame shown moved and scaled with
/// the view and asks for a frame within STILL_SECS. The canvas renders once the view has been
@@ -3765,6 +3980,60 @@ fn wheel_notches_zoom_in_a_glide() {
assert_eq!(app.view().unwrap().zoom / before, done, "and it stops");
}
+/// #4283: with Performance › Animated Zoom off, or on without GPU Performance (which it needs), a
+/// wheel notch zooms the whole step on the frame it arrives, both the plain wheel with Zoom with
+/// Mouse Wheel and Alt-wheel without it.
+#[test]
+fn wheel_notches_zoom_at_once_without_animated_zoom() {
+ let mut app = VectorcraftApp::new(Session::new(), Default::default());
+ app.session.execute("file.new", &json!({"width": 400, "height": 300})).unwrap();
+ let ctx = egui::Context::default();
+ let run = |app: &mut VectorcraftApp| {
+ let mut raw = egui::RawInput { screen_rect: Some(egui::Rect::from_min_size(Pos2::ZERO, vec2(800.0, 600.0))), ..Default::default() };
+ app.raw_input_hook(&ctx, &mut raw);
+ let mut out = ctx.run_ui(raw, |ui| show(app, ui));
+ out.textures_delta.clear();
+ };
+ run(&mut app);
+ let at = app.canvas_rect.unwrap().center();
+ for (animated, gpu, wheel_zooms, alt) in
+ [(false, true, true, false), (false, true, false, true), (true, false, true, false), (true, false, false, true)]
+ {
+ app.session.execute("prefs.set", &json!({"key": "animatedZoom", "value": animated})).unwrap();
+ app.session.execute("prefs.set", &json!({"key": "gpuPerformance", "value": gpu})).unwrap();
+ app.session.execute("prefs.set", &json!({"key": "zoomWithMouseWheel", "value": wheel_zooms})).unwrap();
+ // Any glide or spread scroll a case before left behind dies down first.
+ for _ in 0..30 {
+ run(&mut app);
+ }
+ let before = app.view().unwrap().zoom;
+ crate::tests_synthetic::control(&mut app, &ctx, "ui.wheel", json!({"x": at.x, "y": at.y, "dy": 1, "alt": alt}));
+ // One line notch's whole zoom.
+ let expected = ctx.options(|o| f64::from(o.input_options.line_scroll_speed) * 0.01).exp();
+ // The first frame the zoom moves (the event may land a frame later).
+ let mut first = 1.0;
+ for _ in 0..3 {
+ run(&mut app);
+ first = app.view().unwrap().zoom / before;
+ if first != 1.0 {
+ break;
+ }
+ }
+ assert!(
+ (first - expected).abs() < 1e-9,
+ "the whole notch arrives at once (animated {animated}, gpu {gpu}, wheel zooms {wheel_zooms}, alt {alt}: expected {expected}, got {first})"
+ );
+ for _ in 0..30 {
+ run(&mut app);
+ }
+ let done = app.view().unwrap().zoom / before;
+ assert!(
+ (done - first).abs() < 1e-9,
+ "all of it on the first frame (animated {animated}, gpu {gpu}, wheel zooms {wheel_zooms}, alt {alt}: {first} then {done})"
+ );
+ }
+}
+
/// In each frame where a wheel scroll moves the view, the hover point (read by the rulers'
/// pointer marks, the Info panel, the hover highlight and the tool cursor) is the document point
/// under the pointer in the view the canvas draws in that frame.
@@ -4095,6 +4364,168 @@ fn the_zoom_tool_zooms_a_rotated_view_to_the_area_dragged_across() {
}
}
+/// Space held while the Zoom tool drags a marquee moves the marquee and keeps its size. When Space
+/// is let go, the drag sizes the marquee again from where it moved to, and the release zooms to the
+/// moved marquee.
+/// Space held since a Cmd+Space press sizes the marquee.
+#[test]
+fn space_moves_the_zoom_marquee_while_dragging() {
+ use egui::{Event, Modifiers};
+ let mut app = VectorcraftApp::new(Session::new(), Default::default());
+ app.session.execute("file.new", &json!({"width": 400, "height": 300})).unwrap();
+ app.run("prefs.set", json!({"key": "animatedZoom", "value": false})).unwrap();
+ app.select_tool("zoom");
+ let ctx = egui::Context::default();
+ frame(&mut app, &ctx, vec![]);
+ let rect = app.canvas_rect.unwrap();
+ let at = rect.center() - vec2(100.0, 50.0);
+ let space = |pressed, modifiers| Event::Key { key: egui::Key::Space, physical_key: None, pressed, repeat: false, modifiers };
+ let button = |pos, pressed, modifiers| Event::PointerButton { pos, button: egui::PointerButton::Primary, pressed, modifiers };
+ let drawn = |app: &mut VectorcraftApp| -> Vec {
+ let lines: Vec> = shapes(app, &ctx)
+ .into_iter()
+ .filter_map(|s| match s {
+ Shape::Path(p) if p.stroke.color == egui::epaint::ColorMode::Solid(Color32::from_white_alpha(230)) => Some(p.points),
+ _ => None,
+ })
+ .collect();
+ let [line] = &lines[..] else { panic!("one marquee: {lines:?}") };
+ line.clone()
+ };
+ let z0 = app.view().unwrap().zoom;
+ frame(&mut app, &ctx, vec![Event::PointerMoved(at)]);
+ frame(&mut app, &ctx, vec![button(at, true, Modifiers::NONE)]);
+ frame(&mut app, &ctx, vec![Event::PointerMoved(at + vec2(100.0, 50.0))]);
+ frame(&mut app, &ctx, vec![space(true, Modifiers::NONE), Event::PointerMoved(at + vec2(140.0, 70.0))]);
+ let moved = drawn(&mut app);
+ assert_eq!(moved[0], at + vec2(40.0, 20.0), "Space moves the marquee: {moved:?}");
+ assert_eq!(moved[2], at + vec2(140.0, 70.0), "and keeps its 100 × 50 size: {moved:?}");
+ frame(&mut app, &ctx, vec![space(false, Modifiers::NONE), Event::PointerMoved(at + vec2(180.0, 95.0))]);
+ let sized = drawn(&mut app);
+ assert_eq!((sized[0], sized[2]), (at + vec2(40.0, 20.0), at + vec2(180.0, 95.0)), "let go, the drag sizes it again: {sized:?}");
+ let middle = Xf::new(rect, app.view().unwrap()).to_doc(at + vec2(110.0, 57.5));
+ frame(&mut app, &ctx, vec![button(at + vec2(180.0, 95.0), false, Modifiers::NONE)]);
+ let v = *app.view().unwrap();
+ let want = z0 * f64::from((rect.width() / 140.0).min(rect.height() / 75.0));
+ assert!((v.zoom - want).abs() < 1e-6, "the release zooms to the moved marquee: {z0} → {}, not {want}", v.zoom);
+ assert!(v.center.distance(middle) < 1e-6, "centered on it: {:?}, not {middle:?}", v.center);
+ // A Cmd+Space press: Space held from the press on sizes the marquee, also once Cmd is let go.
+ app.select_tool("selection");
+ app.view_mut().unwrap().zoom = z0;
+ frame(&mut app, &ctx, vec![Event::ModifiersChanged(Modifiers::COMMAND), space(true, Modifiers::COMMAND), Event::PointerMoved(at)]);
+ frame(&mut app, &ctx, vec![button(at, true, Modifiers::COMMAND)]);
+ frame(&mut app, &ctx, vec![Event::PointerMoved(at + vec2(50.0, 25.0))]);
+ frame(&mut app, &ctx, vec![Event::ModifiersChanged(Modifiers::NONE), Event::PointerMoved(at + vec2(100.0, 50.0))]);
+ let held = drawn(&mut app);
+ assert_eq!((held[0], held[2]), (at, at + vec2(100.0, 50.0)), "Space held since the press sizes it: {held:?}");
+ frame(&mut app, &ctx, vec![button(at + vec2(100.0, 50.0), false, Modifiers::NONE)]);
+ frame(&mut app, &ctx, vec![space(false, Modifiers::NONE)]);
+ let want = z0 * f64::from((rect.width() / 100.0).min(rect.height() / 50.0));
+ assert!((app.view().unwrap().zoom - want).abs() < 1e-6, "{z0} → {}, not {want}", app.view().unwrap().zoom);
+}
+
+/// Space pressed after the Zoom tool's press and before the drag moves: the first movement sizes
+/// the marquee, Space then moves it, and the release zooms to it instead of stepping the zoom.
+#[test]
+fn space_before_the_zoom_drag_moves_sizes_the_marquee_first() {
+ use egui::{Event, Modifiers};
+ let mut app = VectorcraftApp::new(Session::new(), Default::default());
+ app.session.execute("file.new", &json!({"width": 400, "height": 300})).unwrap();
+ app.run("prefs.set", json!({"key": "animatedZoom", "value": false})).unwrap();
+ app.select_tool("zoom");
+ let ctx = egui::Context::default();
+ frame(&mut app, &ctx, vec![]);
+ let rect = app.canvas_rect.unwrap();
+ let at = rect.center() - vec2(100.0, 50.0);
+ let space = |pressed| Event::Key { key: egui::Key::Space, physical_key: None, pressed, repeat: false, modifiers: Modifiers::NONE };
+ let button = |pos, pressed| Event::PointerButton { pos, button: egui::PointerButton::Primary, pressed, modifiers: Modifiers::NONE };
+ let z0 = app.view().unwrap().zoom;
+ frame(&mut app, &ctx, vec![Event::PointerMoved(at)]);
+ frame(&mut app, &ctx, vec![button(at, true)]);
+ frame(&mut app, &ctx, vec![space(true), Event::PointerMoved(at + vec2(120.0, 60.0))]);
+ frame(&mut app, &ctx, vec![Event::PointerMoved(at + vec2(140.0, 70.0))]);
+ let middle = Xf::new(rect, app.view().unwrap()).to_doc(at + vec2(80.0, 40.0));
+ frame(&mut app, &ctx, vec![button(at + vec2(140.0, 70.0), false)]);
+ frame(&mut app, &ctx, vec![space(false)]);
+ let v = *app.view().unwrap();
+ let want = z0 * f64::from((rect.width() / 120.0).min(rect.height() / 60.0));
+ assert!((v.zoom - want).abs() < 1e-6, "the release zooms to the 120 × 60 marquee: {z0} → {}, not {want}", v.zoom);
+ assert!(v.center.distance(middle) < 1e-6, "moved by Space and centered on it: {:?}, not {middle:?}", v.center);
+}
+
+/// Space pressed or let go between two pointer moves in one frame: the move before the change and
+/// the move after it each follow the Space state they came with.
+#[test]
+fn the_zoom_marquee_follows_space_and_the_pointer_in_the_order_they_came() {
+ use egui::{Event, Modifiers};
+ let mut app = VectorcraftApp::new(Session::new(), Default::default());
+ app.session.execute("file.new", &json!({"width": 400, "height": 300})).unwrap();
+ app.run("prefs.set", json!({"key": "animatedZoom", "value": false})).unwrap();
+ app.select_tool("zoom");
+ let ctx = egui::Context::default();
+ frame(&mut app, &ctx, vec![]);
+ let rect = app.canvas_rect.unwrap();
+ let at = rect.center() - vec2(100.0, 50.0);
+ let space = |pressed| Event::Key { key: egui::Key::Space, physical_key: None, pressed, repeat: false, modifiers: Modifiers::NONE };
+ let button = |pos, pressed| Event::PointerButton { pos, button: egui::PointerButton::Primary, pressed, modifiers: Modifiers::NONE };
+ let corners = |app: &mut VectorcraftApp| -> (Pos2, Pos2) {
+ let lines: Vec> = shapes(app, &ctx)
+ .into_iter()
+ .filter_map(|s| match s {
+ Shape::Path(p) if p.stroke.color == egui::epaint::ColorMode::Solid(Color32::from_white_alpha(230)) => Some(p.points),
+ _ => None,
+ })
+ .collect();
+ let [line] = &lines[..] else { panic!("one marquee: {lines:?}") };
+ (line[0], line[2])
+ };
+ frame(&mut app, &ctx, vec![Event::PointerMoved(at)]);
+ frame(&mut app, &ctx, vec![button(at, true)]);
+ frame(&mut app, &ctx, vec![Event::PointerMoved(at + vec2(100.0, 50.0))]);
+ frame(&mut app, &ctx, vec![space(true), Event::PointerMoved(at + vec2(140.0, 70.0))]);
+ // Moved with Space held, then sized after it was let go.
+ frame(&mut app, &ctx, vec![Event::PointerMoved(at + vec2(160.0, 80.0)), space(false), Event::PointerMoved(at + vec2(200.0, 100.0))]);
+ assert_eq!(corners(&mut app), (at + vec2(60.0, 30.0), at + vec2(200.0, 100.0)), "moved, then sized");
+ // Sized before Space was pressed, then moved with it held.
+ frame(&mut app, &ctx, vec![Event::PointerMoved(at + vec2(210.0, 105.0)), space(true), Event::PointerMoved(at + vec2(230.0, 115.0))]);
+ assert_eq!(corners(&mut app), (at + vec2(80.0, 40.0), at + vec2(230.0, 115.0)), "sized, then moved");
+ frame(&mut app, &ctx, vec![button(at + vec2(230.0, 115.0), false)]);
+ frame(&mut app, &ctx, vec![space(false)]);
+}
+
+/// Space pressed while the Zoom tool drags keeps the zoom cursor: the drag does not turn into a
+/// Hand tool pan, and with Shift also held it does not show the rotate cursor.
+#[test]
+fn space_during_a_zoom_drag_keeps_the_zoom_cursor() {
+ use egui::{CursorIcon, Event, Modifiers};
+ let mut app = VectorcraftApp::new(Session::new(), Default::default());
+ app.session.execute("file.new", &json!({"width": 400, "height": 300})).unwrap();
+ app.run("prefs.set", json!({"key": "animatedZoom", "value": false})).unwrap();
+ app.select_tool("zoom");
+ let ctx = egui::Context::default();
+ frame(&mut app, &ctx, vec![]);
+ let c = app.canvas_rect.unwrap().center();
+ // `shown` returns the system cursor the canvas sets over a window without the focus, as in
+ // `the_rotate_cursor_shows_for_space_shift_and_the_rotate_view_tool`.
+ let shown = |app: &mut VectorcraftApp, events: Vec| {
+ let screen_rect = Some(egui::Rect::from_min_size(Pos2::ZERO, vec2(800.0, 600.0)));
+ let mut out = ctx.run_ui(egui::RawInput { screen_rect, focused: false, events, ..Default::default() }, |ui| show(app, ui));
+ out.textures_delta.clear();
+ out.platform_output.cursor_icon
+ };
+ let space = |pressed| Event::Key { key: egui::Key::Space, physical_key: None, pressed, repeat: false, modifiers: Modifiers::NONE };
+ let button = |pos, pressed| Event::PointerButton { pos, button: egui::PointerButton::Primary, pressed, modifiers: Modifiers::NONE };
+ assert_eq!(shown(&mut app, vec![Event::PointerMoved(c)]), CursorIcon::ZoomIn);
+ shown(&mut app, vec![button(c, true)]);
+ shown(&mut app, vec![Event::PointerMoved(c + vec2(40.0, 30.0))]);
+ assert_eq!(shown(&mut app, vec![space(true), Event::PointerMoved(c + vec2(60.0, 40.0))]), CursorIcon::ZoomIn, "Space during the drag");
+ assert_eq!(shown(&mut app, vec![Event::ModifiersChanged(Modifiers::SHIFT)]), CursorIcon::ZoomIn, "Space+Shift during the drag");
+ shown(&mut app, vec![Event::ModifiersChanged(Modifiers::NONE)]);
+ shown(&mut app, vec![button(c + vec2(60.0, 40.0), false)]);
+ assert_eq!(shown(&mut app, vec![]), CursorIcon::Grab, "after the drag, Space shows the hand");
+ shown(&mut app, vec![space(false)]);
+}
+
/// In a rotated view the Selection tool's marquee is drawn where the tool selects: through the
/// screen corners of the document rectangle between the press and the pointer.
#[test]
@@ -6067,6 +6498,121 @@ fn a_pen_tap_within_one_frame_clicks_where_it_tapped() {
assert_eq!(doc.doc.art_bounds(), before, "the tap moved nothing");
}
+/// The Contextual Task Bar shows a Stroke chip beside the Fill chip, drawn with the selection's
+/// stroke paint. A click on it brings the Stroke proxy forward and opens Swatches, as a click on
+/// the Fill chip does for the Fill proxy.
+#[test]
+fn the_task_bar_shows_a_stroke_chip_beside_fill() {
+ let mut app = VectorcraftApp::new(Session::new(), Default::default());
+ app.session.execute("file.new", &json!({"width": 400, "height": 300})).unwrap();
+ let id = app.session.execute("shape.rectangle", &json!({"x": 180, "y": 130, "width": 40, "height": 40})).unwrap()["id"].clone();
+ app.session.execute("paint.setFill", &json!({"ids": [id], "color": "#cc3322"})).unwrap();
+ app.session.execute("paint.setStroke", &json!({"ids": [id], "color": "#2244cc"})).unwrap();
+ app.select_tool("selection");
+ let ctx = egui::Context::default();
+ // Past the bar's fade-in, so its chips draw at full opacity.
+ for _ in 0..30 {
+ frame(&mut app, &ctx, vec![]);
+ }
+ let raw = egui::RawInput { screen_rect: Some(egui::Rect::from_min_size(Pos2::ZERO, vec2(800.0, 600.0))), ..Default::default() };
+ let mut out = ctx.run_ui(raw, |ui| show(&mut app, ui));
+ out.textures_delta.clear();
+ let bar = task_bar_rect(&ctx).expect("the task bar shows");
+ // Right to left: the frame's margin, More Options, Lock, Recolor, then Stroke and Fill.
+ let stroke_x = bar.right() - 8.0 - 3.0 * (30.0 + 6.0) - 13.0;
+ let fill_x = stroke_x - 26.0 - 6.0;
+ let blue = Color32::from_rgb(0x22, 0x44, 0xcc);
+ let chip_with = |x: f32| {
+ out.shapes.iter().any(|c| match &c.shape {
+ egui::Shape::Rect(r) => r.fill == blue && bar.contains(r.rect.center()) && (r.rect.center().x - x).abs() < 4.0,
+ _ => false,
+ })
+ };
+ assert!(chip_with(stroke_x), "the Stroke chip is drawn with the stroke color");
+ assert!(!chip_with(fill_x), "the Fill chip is not");
+
+ let click = |app: &mut VectorcraftApp, x: f32| {
+ let at = pos2(x, bar.center().y);
+ let button = |pressed| egui::Event::PointerButton { pos: at, button: egui::PointerButton::Primary, pressed, modifiers: Default::default() };
+ frame(app, &ctx, vec![egui::Event::PointerMoved(at)]);
+ frame(app, &ctx, vec![button(true)]);
+ frame(app, &ctx, vec![button(false)]);
+ };
+ app.session.fill_active = true;
+ click(&mut app, stroke_x);
+ assert!(!app.session.fill_active, "the Stroke proxy is in front");
+ assert_eq!(app.ui.open_panel.as_deref(), Some("swatches"));
+ app.ui.open_panel = None;
+ click(&mut app, fill_x);
+ assert!(app.session.fill_active, "the Fill proxy is in front");
+ assert_eq!(app.ui.open_panel.as_deref(), Some("swatches"));
+}
+
+/// The Contextual Task Bar's Fill and Stroke chips show the paints the proxies show: a group's
+/// painted art, and "?" when the selected objects' paints differ. A click on a chip shows the
+/// Swatches panel wherever it is, closed included.
+#[test]
+fn the_task_bar_chips_follow_the_proxies_and_show_swatches_anywhere() {
+ let mut app = VectorcraftApp::new(Session::new(), Default::default());
+ app.session.execute("file.new", &json!({"width": 400, "height": 300})).unwrap();
+ let mut square = |x: f64, stroke: &str| {
+ let id = app.session.execute("shape.rectangle", &json!({"x": x, "y": 130, "width": 40, "height": 40})).unwrap()["id"].clone();
+ app.session.execute("paint.setFill", &json!({"ids": [id], "color": "#cc3322"})).unwrap();
+ app.session.execute("paint.setStroke", &json!({"ids": [id], "color": stroke})).unwrap();
+ id
+ };
+ square(160.0, "#2244cc");
+ let second = square(220.0, "#22cc44");
+ app.select_tool("selection");
+ app.session.execute("select.all", &json!({})).unwrap();
+ let ctx = egui::Context::default();
+ let shapes = |app: &mut VectorcraftApp| {
+ for _ in 0..30 {
+ frame(app, &ctx, vec![]);
+ }
+ let raw = egui::RawInput { screen_rect: Some(egui::Rect::from_min_size(Pos2::ZERO, vec2(800.0, 600.0))), ..Default::default() };
+ let mut out = ctx.run_ui(raw, |ui| show(app, ui));
+ out.textures_delta.clear();
+ out.shapes
+ };
+ // Right to left: the frame's margin, More Options, Lock, Recolor, then Stroke and Fill.
+ let stroke_x = |bar: egui::Rect| bar.right() - 8.0 - 3.0 * (30.0 + 6.0) - 13.0;
+ let chip_with = |shapes: &[egui::epaint::ClippedShape], bar: egui::Rect, x: f32, color: Color32| {
+ shapes.iter().any(|c| match &c.shape {
+ egui::Shape::Rect(r) => r.fill == color && bar.contains(r.rect.center()) && (r.rect.center().x - x).abs() < 4.0,
+ _ => false,
+ })
+ };
+ let (blue, green) = (Color32::from_rgb(0x22, 0x44, 0xcc), Color32::from_rgb(0x22, 0xcc, 0x44));
+
+ // Two strokes that differ: "?" on white, as the proxy shows them.
+ let out = shapes(&mut app);
+ let bar = task_bar_rect(&ctx).expect("the task bar shows");
+ assert!(chip_with(&out, bar, stroke_x(bar), Color32::WHITE), "the Stroke chip shows the strokes differ");
+ assert!(!chip_with(&out, bar, stroke_x(bar), blue), "the Stroke chip does not show the first object's stroke");
+
+ // A group shows its painted art's stroke, as the proxy does.
+ app.session.execute("paint.setStroke", &json!({"ids": [second], "color": "#2244cc"})).unwrap();
+ app.session.execute("select.all", &json!({})).unwrap();
+ app.session.execute("object.group", &json!({})).unwrap();
+ let out = shapes(&mut app);
+ let bar = task_bar_rect(&ctx).expect("the task bar shows");
+ assert!(chip_with(&out, bar, stroke_x(bar), blue), "the Stroke chip shows the group's art's stroke");
+ assert!(!chip_with(&out, bar, stroke_x(bar), green));
+
+ // Swatches closed: a click on the Stroke chip shows it.
+ app.run("window.panel.close", json!({"panel": "swatches"})).unwrap();
+ assert!(!crate::panel_docking::showing(&app.ui, "swatches"));
+ let at = pos2(stroke_x(bar), bar.center().y);
+ let button = |pressed| egui::Event::PointerButton { pos: at, button: egui::PointerButton::Primary, pressed, modifiers: Default::default() };
+ frame(&mut app, &ctx, vec![egui::Event::PointerMoved(at)]);
+ frame(&mut app, &ctx, vec![button(true)]);
+ frame(&mut app, &ctx, vec![button(false)]);
+ frame(&mut app, &ctx, vec![]);
+ assert!(!app.session.fill_active, "the Stroke proxy is in front");
+ assert!(crate::panel_docking::showing(&app.ui, "swatches"), "the Swatches panel shows");
+}
+
/// The Contextual Task Bar shows Recolor Artwork (a palette) when the selection has colours,
/// and it opens the Recolor Artwork dialog; art painted with None has no button.
#[test]
@@ -6237,6 +6783,32 @@ fn the_task_bar_offers_the_artboard_tools_actions() {
assert_eq!(names(&mut app), ["Resize", "Duplicate", "Export"]);
}
+/// A selected group's Contextual Task Bar offers Ungroup and Isolate. While an opacity mask is
+/// edited, when Enter Isolation Mode is off, a group in the mask art gets Ungroup without Isolate.
+#[test]
+fn the_task_bar_leaves_isolate_out_while_an_opacity_mask_is_edited() {
+ let mut app = VectorcraftApp::new(Session::new(), Default::default());
+ app.session.execute("file.new", &json!({"width": 400, "height": 300})).unwrap();
+ app.select_tool("selection");
+ let ctx = egui::Context::default();
+ let names = |app: &mut VectorcraftApp| task_bar_labels(app, &ctx).into_iter().map(|(t, _)| t).collect::>();
+ let rect = |app: &mut VectorcraftApp, x: f64| {
+ app.session.execute("shape.rectangle", &json!({"x": x, "y": 100, "width": 40, "height": 40})).unwrap()["id"].clone()
+ };
+ let group = |app: &mut VectorcraftApp, x: f64| {
+ let (a, b) = (rect(app, x), rect(app, x + 50.0));
+ app.session.execute("select.set", &json!({"ids": [a, b]})).unwrap();
+ app.session.execute("object.group", &json!({})).unwrap();
+ };
+ group(&mut app, 20.0);
+ assert_eq!(names(&mut app), ["Ungroup", "Isolate", "Duplicate"]);
+ let (obj, m) = (rect(&mut app, 200.0), rect(&mut app, 200.0));
+ app.session.execute("transparency.makeOpacityMask", &json!({"ids": [obj, m]})).unwrap();
+ app.session.execute("transparency.editOpacityMask", &json!({"id": obj})).unwrap();
+ group(&mut app, 200.0);
+ assert_eq!(names(&mut app), ["Ungroup", "Duplicate"]);
+}
+
/// The Artboard tool's Contextual Task Bar buttons act on its selected artboards: Resize opens
/// Artboard Options for the active one, Rearrange All opens Rearrange All Artboards, Export opens
/// Export for Screens with the selected artboards checked, and Duplicate copies each selected
@@ -6328,7 +6900,7 @@ fn the_task_bar_is_dragged_by_its_handle_pinned_and_reset() {
app.session.execute("file.new", &json!({"width": 400, "height": 300})).unwrap();
let mut square =
|x: f64, y: f64| app.session.execute("shape.rectangle", &json!({"x": x, "y": y, "width": 40, "height": 40})).unwrap()["id"].clone();
- let (a, b) = (square(120.0, 40.0), square(160.0, 150.0));
+ let (a, b) = (square(140.0, 40.0), square(160.0, 150.0));
app.select_tool("selection");
let ctx = egui::Context::default();
let bar = || task_bar_rect(&ctx).expect("the task bar shows");
@@ -6807,6 +7379,28 @@ fn distance_guides_follow_what_lies_under_a_still_pointer() {
assert_eq!(gap_label(&run(&mut app, vec![])), None, "another document");
}
+/// #4518: a floating panel or a modal dialog over the canvas hides the pointer from it, so Object
+/// Highlighting, the rulers and the Info panel don't follow a pointer that is over the dialog.
+#[test]
+fn a_panel_or_dialog_over_the_canvas_hides_the_pointer_from_it() {
+ let (mut app, ctx, _, over, _) = distance_scene(true);
+ let run = |app: &mut VectorcraftApp, events, cover| distance_frame_covered(app, &ctx, events, cover);
+ run(&mut app, vec![egui::Event::PointerMoved(over)], None);
+ run(&mut app, vec![], None);
+ assert!(app.hover_doc.is_some(), "over the canvas");
+ for cover in [Cover::Panel(egui::Rect::from_center_size(over, vec2(120.0, 120.0))), Cover::Dialog] {
+ // A new window takes a sizing pass before it covers anything, as in the test above.
+ for _ in 0..3 {
+ run(&mut app, vec![], Some(cover));
+ }
+ assert_eq!(app.hover_doc, None, "under it");
+ for _ in 0..3 {
+ run(&mut app, vec![], None);
+ }
+ assert!(app.hover_doc.is_some(), "back once it closes");
+ }
+}
+
/// The 800 × 600 window [`frame`] draws the canvas in.
const WINDOW: egui::Rect = egui::Rect { min: Pos2::ZERO, max: Pos2 { x: 800.0, y: 600.0 } };
diff --git a/crates/ui-egui/src/canvas/view.rs b/crates/ui-egui/src/canvas/view.rs
index d1b3cff274..add1716110 100644
--- a/crates/ui-egui/src/canvas/view.rs
+++ b/crates/ui-egui/src/canvas/view.rs
@@ -64,7 +64,8 @@ pub(super) const HOLD_DELAY: f32 = 0.3;
pub(super) const HOLD_ZOOM: f64 = std::f64::consts::LN_2;
/// Performance › Animated Zoom, which needs GPU Performance as in Illustrator: the Zoom tool zooms
-/// as it is dragged sideways or held, instead of zooming to the area dragged across.
+/// as it is dragged sideways or held, instead of zooming to the area dragged across, and a wheel
+/// notch's zoom glides in ([`wheel`]).
pub(crate) fn animated_zoom(p: &vectorcraft_engine::Prefs) -> bool {
p.animated_zoom && p.gpu_performance
}
@@ -336,11 +337,19 @@ struct ThumbDrag {
/// a zoom factor (about the pointer) and a scroll (screen points the content moves). The wheel scrolls, Cmd- and Alt-wheel (Option
/// on the Mac) zoom. With General › Zoom with Mouse Wheel (`wheel_zooms`) the wheel and Alt-wheel
/// zoom, Shift-wheel scrolls up and down and Cmd/Ctrl-wheel sideways. `line` and `page`: points
-/// per wheel line and page. `turn`: kept by the caller across frames. A mouse wheel's notches zoom
-/// in a glide over a few frames, as scrolling does (#888); a trackpad's fine steps at once.
-pub(super) fn wheel(i: &egui::InputState, wheel_zooms: bool, line: f32, page: f32, turn: &mut WheelTurn) -> (f64, egui::Vec2) {
+/// per wheel line and page. `turn`: kept by the caller across frames. With Performance › Animated
+/// Zoom (`animate`) a mouse wheel's notches zoom in a glide over a few frames, as scrolling does
+/// (#888); off, each notch zooms on the frame it arrives (#4283). A trackpad's fine steps zoom at
+/// once either way.
+pub(super) fn wheel(i: &egui::InputState, wheel_zooms: bool, animate: bool, line: f32, page: f32, turn: &mut WheelTurn) -> (f64, egui::Vec2) {
// Fingers on a touch screen pan the content with them (a trackpad sends scrolls instead).
let pan = i.multi_touch().map_or(egui::Vec2::ZERO, |t| t.translation_delta);
+ // A wheel event's motion in points.
+ let points = |unit: &egui::MouseWheelUnit, delta: egui::Vec2| match unit {
+ egui::MouseWheelUnit::Point => delta,
+ egui::MouseWheelUnit::Line => delta * line,
+ egui::MouseWheelUnit::Page => delta * page,
+ };
if !wheel_zooms {
// egui makes Cmd-wheel (and a pinch) its zoom and the rest a scroll it spreads over a few
// frames: the rest of an Alt-wheel turn zooms too, however soon Alt is let go.
@@ -348,6 +357,17 @@ pub(super) fn wheel(i: &egui::InputState, wheel_zooms: bool, line: f32, page: f3
turn.alt = m.alt && !m.command;
}
let (zoom, scroll) = (f64::from(i.zoom_delta()), i.smooth_scroll_delta);
+ if turn.alt && !animate {
+ // Without Animated Zoom, Alt-wheel zooms by the wheel events themselves, on the frame
+ // they arrive; the rest of egui's spread scroll is dropped.
+ let d: f32 = i
+ .events
+ .iter()
+ .filter_map(|e| if let egui::Event::MouseWheel { unit, delta, .. } = e { Some(points(unit, *delta)) } else { None })
+ .map(|d| d.x + d.y)
+ .sum();
+ return (zoom * (f64::from(d) * WHEEL_ZOOM).exp(), pan);
+ }
return if turn.alt && scroll != egui::Vec2::ZERO {
(zoom * (f64::from(scroll.x + scroll.y) * WHEEL_ZOOM).exp(), pan)
} else {
@@ -360,16 +380,12 @@ pub(super) fn wheel(i: &egui::InputState, wheel_zooms: bool, line: f32, page: f3
for e in &i.events {
match e {
egui::Event::MouseWheel { unit, delta, modifiers, .. } => {
- let d = match unit {
- egui::MouseWheelUnit::Point => *delta,
- egui::MouseWheelUnit::Line => *delta * line,
- egui::MouseWheelUnit::Page => *delta * page,
- };
+ let d = points(unit, *delta);
if modifiers.command {
scroll.x += d.x + d.y;
} else if modifiers.shift {
scroll.y += d.x + d.y;
- } else if *unit == egui::MouseWheelUnit::Point {
+ } else if *unit == egui::MouseWheelUnit::Point || !animate {
zoom *= (f64::from(d.y) * WHEEL_ZOOM).exp();
scroll.x += d.x;
} else {
diff --git a/crates/ui-egui/src/chrome.rs b/crates/ui-egui/src/chrome.rs
index 2000aaacba..b453cc6858 100644
--- a/crates/ui-egui/src/chrome.rs
+++ b/crates/ui-egui/src/chrome.rs
@@ -29,7 +29,7 @@ pub use status_bar::status_bar;
use status_bar::{StatusReadoutWidths, status_readouts};
#[cfg(test)]
use tabs::{CLOSE_BEFORE_TITLE, first_tab_shown, tab_title};
-pub use tabs::{doc_tabs, isolation_bar};
+pub use tabs::{doc_tabs, isolation_bar, step_document};
/// The application bar's height, in points (compact, as in PhotoCraft).
pub const APP_BAR_HEIGHT: f32 = 32.0;
diff --git a/crates/ui-egui/src/chrome/tabs.rs b/crates/ui-egui/src/chrome/tabs.rs
index a53062be8b..06d2964a7c 100644
--- a/crates/ui-egui/src/chrome/tabs.rs
+++ b/crates/ui-egui/src/chrome/tabs.rs
@@ -114,21 +114,47 @@ pub fn doc_tabs(app: &mut VectorcraftApp, ui: &mut Ui) {
app.status(e);
}
} else if let Some(i) = activate {
- app.ui.home = None;
- let changed = app.session.active_index() != Some(i);
- if app.session.set_active(i)
- && changed
- && app.session.tool_id() == "artboard"
- && let Some(n) = app.session.active().map(|d| d.doc.artboards.len())
- {
- // A document switch recreates the tool; restore the displayed board as its target.
- // Clicking the current tab keeps its existing multiselection and tool options.
- let selected = crate::panels::artboards::selected(app, n);
- crate::panels::artboards::select(app, selected);
- }
+ show_document(app, i);
}
}
+/// Makes document `i` the current one, as a click on its tab does: the Home screen closes, and
+/// with the Artboard tool the artboard the document shows becomes the tool's target.
+fn show_document(app: &mut VectorcraftApp, i: usize) {
+ app.ui.home = None;
+ let changed = app.session.active_index() != Some(i);
+ if app.session.set_active(i)
+ && changed
+ && app.session.tool_id() == "artboard"
+ && let Some(n) = app.session.active().map(|d| d.doc.artboards.len())
+ {
+ // A document switch recreates the tool; restore the displayed board as its target.
+ // Clicking the current tab keeps its existing multiselection and tool options.
+ let selected = crate::panels::artboards::selected(app, n);
+ crate::panels::artboards::select(app, selected);
+ }
+}
+
+/// `window.nextDocument` (`forward`) and `window.previousDocument`: makes the open document after
+/// the current one in tab order (before it) the current one, as a click on its tab does. After the
+/// last document comes the first, and before the first document comes the last. On the Home
+/// screen, where no tab is the current one, the next document is the first and the previous
+/// document is the last. Returns `{index}`.
+pub fn step_document(app: &mut VectorcraftApp, forward: bool) -> Result {
+ let n = app.session.documents().len();
+ if n == 0 {
+ return Err("no document open".into());
+ }
+ let i = match (app.session.active_index().filter(|_| app.ui.home.is_none()), forward) {
+ (Some(a), true) => (a + 1) % n,
+ (Some(a), false) => (a + n - 1) % n,
+ (None, true) => 0,
+ (None, false) => n - 1,
+ };
+ show_document(app, i);
+ Ok(json!({ "index": i }))
+}
+
/// The isolation mode breadcrumb bar. It is drawn over the top of `area` (the canvas), after the
/// canvas, so entering isolation mode does not change the canvas's size (#3126).
pub fn isolation_bar(app: &mut VectorcraftApp, ui: &mut Ui, area: egui::Rect) {
@@ -136,12 +162,20 @@ pub fn isolation_bar(app: &mut VectorcraftApp, ui: &mut Ui, area: egui::Rect) {
if let Some(st) = app.session.active()
&& let Some(iso) = st.isolation
{
- let mut crumbs: Vec =
- st.doc.ancestry(iso).unwrap_or_default().iter().filter_map(|id| st.doc.node(*id)).map(|n| n.display_name()).collect();
+ let ancestry = st.doc.ancestry(iso).unwrap_or_default();
+ struct Crumb {
+ id: Option,
+ is_layer: bool,
+ name: String,
+ }
+ let mut crumbs: Vec = ancestry
+ .iter()
+ .filter_map(|id| st.doc.node(*id).map(|n| Crumb { id: Some(*id), is_layer: n.is_layer(), name: n.display_name() }))
+ .collect();
// Pattern editing mode: the pattern's name, and Save a Copy / Done / Cancel at the right.
let pattern_edit = st.doc.pattern_edit.as_ref().map(|e| e.pattern.clone());
if let Some(pn) = &pattern_edit {
- crumbs.push(pn.clone());
+ crumbs.push(Crumb { id: None, is_layer: false, name: pn.clone() });
}
let bar = egui::Rect::from_min_size(area.min, vec2(area.width(), 24.0));
ui.interact(bar, ui.scope_id().with("iso-bar"), Sense::click_and_drag());
@@ -149,13 +183,41 @@ pub fn isolation_bar(app: &mut VectorcraftApp, ui: &mut Ui, area: egui::Rect) {
let back = egui::Rect::from_min_size(bar.min + vec2(6.0, 3.0), vec2(18.0, 18.0));
let bresp = ui.interact(back, ui.scope_id().with("iso-back"), Sense::click());
icons::paint(ui, "chevron-left", back, if bresp.hovered() { t.text } else { t.icon });
- ui.painter().text(
- bar.left_center() + vec2(30.0, 0.0),
- egui::Align2::LEFT_CENTER,
- crumbs.join(" › "),
- egui::FontId::proportional(12.0),
- t.text,
- );
+
+ let mut x = bar.left() + 30.0;
+ let y_center = bar.center().y;
+ let font_id = egui::FontId::proportional(12.0);
+ let mut nav_cmd = None;
+ let total = crumbs.len();
+ for (i, crumb) in crumbs.iter().enumerate() {
+ let is_leaf = i + 1 == total;
+ let galley = ui.painter().layout_no_wrap(crumb.name.clone(), font_id.clone(), t.text);
+ let w = galley.size().x;
+ let text_pos = egui::pos2(x, y_center - galley.size().y * 0.5);
+ if !is_leaf {
+ let crumb_rect = egui::Rect::from_min_max(egui::pos2(x - 3.0, bar.top() + 3.0), egui::pos2(x + w + 3.0, bar.bottom() - 3.0));
+ let resp = ui.interact(crumb_rect, ui.scope_id().with(("iso-crumb", i)), Sense::click());
+ if resp.hovered() {
+ ui.painter().rect_filled(crumb_rect, 3.0, t.hover);
+ }
+ if resp.clicked() {
+ if crumb.is_layer {
+ nav_cmd = Some(("object.exitIsolation", json!({})));
+ } else if let Some(target) = crumb.id {
+ nav_cmd = Some(("object.isolate", json!({ "id": target.0 })));
+ }
+ }
+ ui.painter().galley(text_pos, galley, if resp.hovered() { t.text } else { t.text_dim });
+ x += w + 6.0;
+ let sep = ui.painter().layout_no_wrap("›".to_string(), font_id.clone(), t.text_dim);
+ let sw = sep.size().x;
+ ui.painter().galley(egui::pos2(x, y_center - sep.size().y * 0.5), sep, t.text_dim);
+ x += sw + 6.0;
+ } else {
+ ui.painter().galley(text_pos, galley, t.text);
+ x += w;
+ }
+ }
let mut pattern_cmd = None;
if pattern_edit.is_some() {
let mut x = bar.right() - 6.0;
@@ -176,9 +238,16 @@ pub fn isolation_bar(app: &mut VectorcraftApp, ui: &mut Ui, area: egui::Rect) {
if bresp.clicked() {
pattern_cmd = pattern_cmd.or(pattern_edit.as_ref().map(|_| "object.pattern.done"));
if pattern_cmd.is_none() {
- app.run("object.exitIsolation", json!({})).ok();
+ // Up one level: the isolated object's parent, or out of isolation mode from a layer.
+ nav_cmd = Some(match ancestry.iter().rev().nth(1).filter(|p| st.doc.node(**p).is_some_and(|n| !n.is_layer())) {
+ Some(parent) => ("object.isolate", json!({ "id": parent.0 })),
+ None => ("object.exitIsolation", json!({})),
+ });
}
}
+ if let Some((cmd, params)) = nav_cmd {
+ app.run(cmd, params).ok();
+ }
if let Some(cmd) = pattern_cmd {
app.run(cmd, json!({})).ok();
}
diff --git a/crates/ui-egui/src/chrome/tests.rs b/crates/ui-egui/src/chrome/tests.rs
index 362854a5f3..929034a72b 100644
--- a/crates/ui-egui/src/chrome/tests.rs
+++ b/crates/ui-egui/src/chrome/tests.rs
@@ -902,6 +902,77 @@ fn the_isolation_bar_does_not_take_layout_height_from_the_canvas() {
assert_eq!(top(&mut app), before, "isolation mode leaves the canvas where it was");
}
+/// #4468: In nested isolation, clicking the back button steps up one level in the hierarchy,
+/// and clicking ancestor breadcrumbs navigates directly to that isolation level.
+#[test]
+fn isolation_bar_navigation_and_back_button_steps_up() {
+ use vectorcraft_doc::NodeId;
+ let mut app = crate::VectorcraftApp::new(Session::new(), Default::default());
+ app.run("file.new", json!({"width": 400, "height": 200})).unwrap();
+ let rect = |app: &mut crate::VectorcraftApp, x: f64| {
+ app.run("shape.rectangle", json!({"x": x, "y": 10, "width": 30, "height": 20})).unwrap()["id"].as_u64().unwrap()
+ };
+ let (a, b) = (rect(&mut app, 10.0), rect(&mut app, 50.0));
+ // Group 1 contains a and b
+ app.run("select.set", json!({"ids": [a, b]})).unwrap();
+ let g1 = app.run("object.group", json!({})).unwrap()["id"].as_u64().unwrap();
+ let c = rect(&mut app, 90.0);
+ // Group 2 contains g1 and c
+ app.run("select.set", json!({"ids": [g1, c]})).unwrap();
+ let g2 = app.run("object.group", json!({})).unwrap()["id"].as_u64().unwrap();
+
+ // Isolate path a (deepest level: Layer 1 > > > )
+ app.run("object.isolate", json!({"id": a})).unwrap();
+ assert_eq!(app.session.active().unwrap().isolation, Some(NodeId(a)));
+
+ let ctx = egui::Context::default();
+ crate::theme::install_fonts(&ctx);
+ egui_extras::install_image_loaders(&ctx);
+ let screen = egui::Rect::from_min_size(egui::Pos2::ZERO, egui::vec2(1200.0, 700.0));
+
+ let click_at = |app: &mut crate::VectorcraftApp, pos: egui::Pos2| {
+ let button = egui::PointerButton::Primary;
+ let mut run_frame = |events| {
+ let mut out = ctx.run_ui(egui::RawInput { screen_rect: Some(screen), events, ..Default::default() }, |ui| {
+ super::isolation_bar(app, ui, screen);
+ });
+ out.textures_delta.clear();
+ };
+ run_frame(vec![egui::Event::PointerMoved(pos)]);
+ run_frame(vec![egui::Event::PointerButton { pos, button, pressed: true, modifiers: Default::default() }]);
+ run_frame(vec![egui::Event::PointerButton { pos, button, pressed: false, modifiers: Default::default() }]);
+ };
+
+ // Clicking back from `a` steps up to parent group `g1`
+ click_at(&mut app, egui::pos2(15.0, 12.0));
+ assert_eq!(app.session.active().unwrap().isolation, Some(NodeId(g1)));
+
+ // Clicking back from `g1` steps up to grandparent group `g2`
+ click_at(&mut app, egui::pos2(15.0, 12.0));
+ assert_eq!(app.session.active().unwrap().isolation, Some(NodeId(g2)));
+
+ // Clicking back from `g2` (parent is layer) exits isolation mode completely
+ click_at(&mut app, egui::pos2(15.0, 12.0));
+ assert_eq!(app.session.active().unwrap().isolation, None);
+
+ // Deep isolate again to test clicking ancestor breadcrumb directly
+ app.run("object.isolate", json!({"id": a})).unwrap();
+ assert_eq!(app.session.active().unwrap().isolation, Some(NodeId(a)));
+
+ // First crumb is Layer 1 (at x ~ 30..80). Clicking it exits isolation directly.
+ click_at(&mut app, egui::pos2(45.0, 12.0));
+ assert_eq!(app.session.active().unwrap().isolation, None);
+
+ // Deep isolate again to test clicking an intermediate ancestor group breadcrumb directly
+ app.run("object.isolate", json!({"id": a})).unwrap();
+ assert_eq!(app.session.active().unwrap().isolation, Some(NodeId(a)));
+
+ // Second crumb is g2 ("") at x ~ 95..140.
+ // Clicking g2 isolates g2 directly.
+ click_at(&mut app, egui::pos2(115.0, 12.0));
+ assert_eq!(app.session.active().unwrap().isolation, Some(NodeId(g2)));
+}
+
/// The Control bar's Isolate Selected Object isolates a path inside a group that Direct
/// Selection selected, and Exit Isolation Mode leaves with the path selected. Type, symbol
/// instances, blends, two objects and an envelope's contents get no isolate button, and pattern
@@ -1223,6 +1294,127 @@ fn artboard_document_tab_roundtrip_preserves_other_tools() {
}
}
+/// Press F6 with `modifiers` through the shortcut handler.
+fn press_f6(app: &mut crate::VectorcraftApp, modifiers: egui::Modifiers) {
+ let ctx = egui::Context::default();
+ let ev = egui::Event::Key { key: egui::Key::F6, physical_key: None, pressed: true, repeat: false, modifiers };
+ let mut out = ctx.run_ui(egui::RawInput { events: vec![ev], ..Default::default() }, |ui| crate::shortcuts::handle(app, ui.ctx()));
+ out.textures_delta.clear();
+}
+
+/// Cmd+F6 is Next Document and Cmd+Shift+F6 is Previous Document by default: Ctrl+F6 and
+/// Ctrl+Shift+F6 on Windows and Linux, Command+F6 and Shift+Command+F6 on macOS. Keyboard
+/// Shortcuts lists both under Window. F6 and Shift+F6 are still the Color and Appearance panels'
+/// keys, and no other command, tool or panel has either key by default.
+#[test]
+fn cmd_f6_and_cmd_shift_f6_are_next_and_previous_document() {
+ use crate::shortcut_editor::{command_for_key, default_command_shortcut, panel_shortcut};
+ assert_eq!(default_command_shortcut("window.nextDocument"), Some("Cmd+F6"));
+ assert_eq!(default_command_shortcut("window.previousDocument"), Some("Cmd+Shift+F6"));
+ assert_eq!(command_for_key("Cmd+F6"), Some("window.nextDocument"));
+ assert_eq!(command_for_key("Cmd+Shift+F6"), Some("window.previousDocument"));
+ assert_eq!((panel_shortcut("color"), panel_shortcut("appearance")), (Some("F6"), Some("Shift+F6")));
+ let chord = crate::shortcuts::parse("Cmd+Shift+F6").expect("parses");
+ assert_eq!((chord.modifiers, chord.logical_key), (egui::Modifiers::COMMAND | egui::Modifiers::SHIFT, egui::Key::F6));
+ let shown = (crate::menus::pretty_shortcut("Cmd+F6"), crate::menus::pretty_shortcut("Cmd+Shift+F6"));
+ let want = if cfg!(target_os = "macos") { ("⌘F6", "⇧⌘F6") } else { ("Ctrl+F6", "Ctrl+Shift+F6") };
+ assert_eq!((shown.0.as_str(), shown.1.as_str()), want);
+ let mut app = crate::VectorcraftApp::new(Session::new(), Default::default());
+ let listed = app.run("shortcuts.list", json!({"query": "Document"})).unwrap();
+ let rows: Vec<_> = listed
+ .as_array()
+ .expect("rows")
+ .iter()
+ .filter(|r| r["id"].as_str().is_some_and(|id| id.ends_with("Document") && id.starts_with("window.")))
+ .map(|r| (r["label"].clone(), r["group"].clone(), r["default"].clone()))
+ .collect();
+ assert_eq!(
+ rows,
+ [(json!("Next Document"), json!("Window"), json!("Cmd+F6")), (json!("Previous Document"), json!("Window"), json!("Cmd+Shift+F6"))],
+ "Keyboard Shortcuts lists both"
+ );
+ assert_eq!(app.run("shortcuts.conflicts", json!({})).unwrap(), json!([]), "no other default has the keys");
+}
+
+/// Cmd+F6 makes the next open document in tab order the current one, and Cmd+Shift+F6 makes the
+/// previous one the current one. After the last document comes the first, and before the first document comes the
+/// last. From the Home screen the keys go to the first and the last document and close the screen.
+/// With no document open the commands are disabled and fail with "no document open".
+#[test]
+fn cmd_f6_goes_to_the_next_document_and_cmd_shift_f6_to_the_previous_one() {
+ let mut app = crate::VectorcraftApp::new(Session::new(), Default::default());
+ assert!(!crate::menus::enabled(&app, "window.nextDocument") && !crate::menus::enabled(&app, "window.previousDocument"));
+ assert_eq!(app.run("window.nextDocument", json!({})).unwrap_err(), "no document open");
+ assert_eq!(app.run("window.previousDocument", json!({})).unwrap_err(), "no document open");
+ for name in ["A", "B", "C"] {
+ app.run("file.new", json!({"width": 100, "height": 100, "name": name})).unwrap();
+ }
+ assert!(crate::menus::enabled(&app, "window.nextDocument") && crate::menus::enabled(&app, "window.previousDocument"));
+ assert_eq!(app.session.active_index(), Some(2));
+ let mut seen = vec![];
+ for modifiers in [egui::Modifiers::COMMAND; 4] {
+ press_f6(&mut app, modifiers);
+ seen.push(app.session.active_index());
+ }
+ assert_eq!(seen, [Some(0), Some(1), Some(2), Some(0)], "Cmd+F6 goes right and wraps from the last to the first");
+ seen.clear();
+ for modifiers in [egui::Modifiers::COMMAND | egui::Modifiers::SHIFT; 4] {
+ press_f6(&mut app, modifiers);
+ seen.push(app.session.active_index());
+ }
+ assert_eq!(seen, [Some(2), Some(1), Some(0), Some(2)], "Cmd+Shift+F6 goes left and wraps from the first to the last");
+ assert_eq!(app.run("window.nextDocument", json!({})).unwrap(), json!({"index": 0}));
+ assert_eq!(app.run("window.previousDocument", json!({})).unwrap(), json!({"index": 2}));
+ app.session.set_active(1);
+ app.run("app.home", json!({})).unwrap();
+ press_f6(&mut app, egui::Modifiers::COMMAND);
+ assert_eq!((app.session.active_index(), app.ui.home), (Some(0), None), "from the Home screen Cmd+F6 shows the first");
+ app.session.set_active(1);
+ app.run("app.home", json!({})).unwrap();
+ press_f6(&mut app, egui::Modifiers::COMMAND | egui::Modifiers::SHIFT);
+ assert_eq!((app.session.active_index(), app.ui.home), (Some(2), None), "and Cmd+Shift+F6 the last");
+ // One document: the keys keep it current.
+ let mut one = crate::VectorcraftApp::new(Session::new(), Default::default());
+ one.run("file.new", json!({"width": 100, "height": 100})).unwrap();
+ press_f6(&mut one, egui::Modifiers::COMMAND);
+ press_f6(&mut one, egui::Modifiers::COMMAND | egui::Modifiers::SHIFT);
+ assert_eq!(one.session.active_index(), Some(0));
+}
+
+/// With the Artboard tool, Cmd+F6 and Cmd+Shift+F6 switch documents as a click on a tab does: the
+/// document switched back to keeps the artboard it shows as the tool's target, so the Properties
+/// panel's Delete Artboard then removes that artboard. Switching is not an edit.
+#[test]
+fn cmd_f6_switches_documents_as_a_tab_click_does_with_the_artboard_tool() {
+ let (mut app, ctx) = artboard_document_app();
+ app.select_tool("artboard");
+ artboard_navigation_next(&mut app, &ctx);
+ assert_eq!(app.session.tool_options()["selected"], json!([1]));
+ let before = app.session.active().unwrap().doc.clone();
+ let undo = app.session.active().unwrap().history.undo.len();
+ press_f6(&mut app, egui::Modifiers::COMMAND);
+ assert_eq!(app.session.active_index(), Some(1));
+ // The app draws frames while the other document is the current one.
+ artboard_navigation_properties_frame(&mut app, &ctx, vec![]);
+ artboard_document_tabs_frame(&mut app, &ctx, vec![]);
+ press_f6(&mut app, egui::Modifiers::COMMAND | egui::Modifiers::SHIFT);
+ assert_eq!(app.session.active_index(), Some(0));
+ app.sync_views();
+ assert_eq!(app.session.tool_options()["selected"], json!([1]), "the tool targets the displayed artboard");
+ assert_eq!(app.view().unwrap().artboard, 1, "the document keeps its displayed artboard");
+ assert_eq!(app.session.active().unwrap().doc, before, "switching documents is not a document edit");
+ assert_eq!(app.session.active().unwrap().history.undo.len(), undo);
+ artboard_navigation_properties_frame(&mut app, &ctx, vec![]);
+ let texts = artboard_navigation_properties_frame(&mut app, &ctx, vec![]);
+ let at = texts.iter().find(|(label, _)| label == "Delete Artboard").map(|(_, r)| r.center()).expect("Properties Delete button");
+ let button = |pressed| egui::Event::PointerButton { pos: at, button: egui::PointerButton::Primary, pressed, modifiers: Default::default() };
+ for event in [egui::Event::PointerMoved(at), button(true), button(false)] {
+ artboard_navigation_properties_frame(&mut app, &ctx, vec![event]);
+ }
+ let names: Vec<_> = app.session.active().unwrap().doc.artboards.iter().map(|a| a.name.clone()).collect();
+ assert_eq!(names, ["Keep"], "Delete Artboard after the keys removes the artboard the document shows");
+}
+
/// One history entry: its label, document and selection.
type HistoryRow = (String, Arc, Arc);
diff --git a/crates/ui-egui/src/control.rs b/crates/ui-egui/src/control.rs
index 14d6fe8312..68bba9ade6 100644
--- a/crates/ui-egui/src/control.rs
+++ b/crates/ui-egui/src/control.rs
@@ -327,7 +327,7 @@ pub fn handle(app: &mut VectorcraftApp, ctx: &egui::Context, req: &ControlReques
return err(format!("the `{}` dialog has no field `{f}`; its fields: {names}", d.kind));
}
for (f, value) in fields {
- d.fields.insert(f, value);
+ crate::dialogs::set_field(d, f, value);
}
ok(serde_json::to_value(&*d).unwrap_or_default())
}
diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rs
index 49dfe37b9a..3ca9da699c 100644
--- a/crates/ui-egui/src/dialogs.rs
+++ b/crates/ui-egui/src/dialogs.rs
@@ -62,6 +62,7 @@ pub mod new_brush;
pub mod new_color_group;
mod new_document;
pub mod new_swatch;
+pub mod new_text_style;
pub mod office_export;
pub mod package;
pub(crate) mod path_ops;
@@ -99,6 +100,7 @@ pub(crate) mod shapes;
pub mod shortcut_import;
pub(crate) mod simplify_slider;
pub mod slices;
+pub(crate) mod smooth_slider;
pub mod spot_colors;
pub(crate) mod svg_options;
pub mod swatch_conflict;
@@ -110,6 +112,7 @@ pub mod text_import;
mod tiff_bmp_tga;
pub mod tile_edge_color;
mod tools;
+pub mod trace_presets;
pub(crate) mod transform;
pub mod transform_each;
pub mod variables;
@@ -176,6 +179,10 @@ pub(crate) struct DialogSpec {
/// A button left of Cancel, as (label, field), that sets `field: true` and confirms, as OK
/// does otherwise (Transform Each's Copy).
pub alternate: Option<(&'static str, &'static str)>,
+ /// Puts the fields back to their defaults. While Alt (Option on macOS) is held, the Cancel
+ /// button of a dialog with an `ok` reads Reset; Reset (or `ui.dialogReset`) runs this and the
+ /// dialog stays open.
+ pub reset: Option,
pub min_width: f32,
pub max_width: Option,
/// The body runs a live preview interaction that Cancel rolls back.
@@ -211,6 +218,7 @@ impl DialogSpec {
ok: Some("OK"),
discard: None,
alternate: None,
+ reset: None,
min_width: 320.0,
max_width: None,
preview: false,
@@ -291,6 +299,7 @@ registry! {
GradientStop: ["gradientStop"] => gradient_stop::SPEC,
ColorPicker: [color_picker::KIND] => color_picker::SPEC,
GraphicStyleOptions: [graphic_style_options::KIND] => graphic_style_options::SPEC,
+ NewTextStyle: [new_text_style::KIND] => new_text_style::SPEC,
EffectExists: [effect::EXISTS] => effect::EXISTS_SPEC,
ColorGuideOptions: [color_guide_options::KIND] => color_guide_options::SPEC,
ColorBalance: [color_balance::KIND] => color_balance::SPEC,
@@ -300,6 +309,7 @@ registry! {
EyedropperOptions: [eyedropper::KIND] => eyedropper::SPEC,
FlattenTransparency: [flatten::KIND] => flatten::SPEC,
FlattenerPresets: [flattener_presets::KIND] => flattener_presets::SPEC,
+ ImageTracePreset: [trace_presets::KIND] => trace_presets::SPEC,
SaveStyleLibrary: [save_style_library::KIND] => save_style_library::SPEC,
SaveSymbolLibrary: [save_symbol_library::KIND] => save_symbol_library::SPEC,
SaveBrushLibrary: [save_brush_library::KIND] => save_brush_library::SPEC,
@@ -352,6 +362,7 @@ registry! {
ScriptCheck: [script_check::KIND] => script_check::SPEC,
VectorHalftone: [halftone::KIND] => halftone::SPEC,
SimplifySlider: [simplify_slider::KIND] => simplify_slider::SPEC,
+ SmoothSlider: [smooth_slider::KIND] => smooth_slider::SPEC,
PerspectiveGrid: [perspective_grid::KIND] => perspective_grid::SPEC,
Envelope: [envelope::WARP, envelope::MESH, envelope::OPTIONS] => envelope::SPEC,
LiquifyOptions: [liquify::KIND] => liquify::SPEC,
@@ -377,14 +388,15 @@ registry! {
ShortcutImport: [shortcut_import::KIND] => DialogSpec::window(shortcut_import::show, shortcut_import::confirm),
}
-/// The button labels the shared dialog frame can show (OK, discard and the fixed Cancel/Close),
-/// so the catalog tests can insist they are translated.
+/// The button labels the shared dialog frame can show (OK, discard, the fixed Cancel/Close and
+/// Reset), so the catalog tests can insist they are translated.
pub fn button_labels() -> Vec<&'static str> {
let mut v = vec!["Cancel", "Close"];
for spec in std::iter::once(&DialogSpec::FORM).chain(DialogKind::ALL.iter().map(|k| k.spec())) {
v.extend(spec.ok);
v.extend(spec.discard);
v.extend(spec.alternate.map(|(label, _)| label));
+ v.extend(spec.reset.map(|_| "Reset"));
}
v.sort_unstable();
v.dedup();
@@ -410,6 +422,15 @@ pub fn accepts_field(d: &Dialog, field: &str) -> bool {
|| (spec.passes)(d, field)
}
+/// Set `field` of `d` to `value` for `ui.dialog.set`, as the dialog's own control for it does: a
+/// Pattern Brush Options corner tile set this way is saved by OK, as one chosen from its menu is.
+pub fn set_field(d: &mut Dialog, field: String, value: Value) {
+ if d.kind == brush_options::KIND {
+ brush_art_options::note_set(d, &field);
+ }
+ d.fields.insert(field, value);
+}
+
/// The fields `ui.dialog.set` can set on `d`, sorted, without the `__` ones: those it holds,
/// `discard`, `preview` and the spec's `inputs` for its kind.
pub fn field_names(d: &Dialog) -> Vec {
@@ -444,7 +465,10 @@ pub(crate) fn parent(d: &Dialog) -> Option {
pub fn cancel(app: &mut VectorcraftApp) {
missing_fonts::requeue_replaced(app);
if let Some(d) = app.ui.dialog.take() {
- if spec(&d.kind).preview {
+ // Toolbar-only Flare options start no preview and must not cancel a gesture
+ // that was already active before opening them.
+ let owns_preview = d.kind != flare_options::KIND || d.fields.contains_key(form::PREVIEWED);
+ if spec(&d.kind).preview && owns_preview {
let _ = app.session.cancel_interaction();
}
app.ui.dialog = parent(&d);
@@ -452,6 +476,23 @@ pub fn cancel(app: &mut VectorcraftApp) {
settle(app);
}
+/// Whether the open dialog has a Reset ([`DialogSpec::reset`]).
+pub(crate) fn can_reset(app: &VectorcraftApp) -> bool {
+ app.ui.dialog.as_ref().is_some_and(|d| spec(&d.kind).reset.is_some())
+}
+
+/// Reset (`ui.dialogReset`, or Cancel while Alt or Option is held): the open dialog's fields go
+/// back to their defaults and it stays open → the dialog; an error when no dialog is open or the
+/// open one has no Reset.
+pub(crate) fn reset(app: &mut VectorcraftApp) -> DialogResult {
+ let Some(mut d) = app.ui.dialog.clone() else { return Err("no dialog open".into()) };
+ let Some(reset) = spec(&d.kind).reset else { return Err("the open dialog has no Reset".into()) };
+ reset(app, &mut d);
+ let out = serde_json::to_value(&d).unwrap_or_default();
+ app.ui.dialog = Some(d);
+ Ok(out)
+}
+
/// Apply the open dialog (OK).
pub fn confirm(app: &mut VectorcraftApp) -> DialogResult {
missing_fonts::requeue_replaced(app);
@@ -527,6 +568,7 @@ pub fn show(app: &mut VectorcraftApp, ctx: &egui::Context) {
let mut ok = false;
let mut ok_enabled = true;
let mut cancel = false;
+ let mut reset = false;
let mut discard = false;
let mut alternate = false;
// Opened as a save panel closed: the Enter that closed it isn't this dialog's, until it is let go.
@@ -587,8 +629,21 @@ pub fn show(app: &mut VectorcraftApp, ctx: &egui::Context) {
ok = true;
}
ui.add_space(8.0);
- if widgets::secondary_button(ui, if spec.ok.is_some() { "Cancel" } else { "Close" }).clicked() {
- cancel = true;
+ // While Alt (Option) is held, Cancel reads Reset on a dialog that has one.
+ let resets = spec.ok.is_some() && spec.reset.is_some() && ui.input(|i| i.modifiers.alt);
+ let label = if resets {
+ "Reset"
+ } else if spec.ok.is_some() {
+ "Cancel"
+ } else {
+ "Close"
+ };
+ if widgets::secondary_button(ui, label).clicked() {
+ if resets {
+ reset = true;
+ } else {
+ cancel = true;
+ }
}
if let Some((label, _)) = spec.alternate {
ui.add_space(8.0);
@@ -614,6 +669,10 @@ pub fn show(app: &mut VectorcraftApp, ctx: &egui::Context) {
app.ui.dialog = Some(d);
if cancel {
self::cancel(app);
+ } else if reset {
+ if let Err(e) = self::reset(app) {
+ app.status(e);
+ }
} else if ok && let Err(e) = confirm(app) {
app.status(e);
}
diff --git a/crates/ui-egui/src/dialogs/brush_art_options.rs b/crates/ui-egui/src/dialogs/brush_art_options.rs
index 1898172a84..f9b5bf5584 100644
--- a/crates/ui-egui/src/dialogs/brush_art_options.rs
+++ b/crates/ui-egui/src/dialogs/brush_art_options.rs
@@ -14,14 +14,17 @@
//! `guideEnd` (% of the art's length), `direction` (`leftToRight` …), `flipAlong`, `flipAcross`,
//! `overlap` (bend on each run between sharp corners).
//! Pattern: `scale`, `spacing` (%), `fit` (`stretch` | `addSpace` | `approximate`), `flipAlong`,
-//! `flipAcross`, `__tiles` (slot → preview key, for the tiles the brush has).
+//! `flipAcross`, `outerCornerTile` and `innerCornerTile` (`original`: the corner art the brush
+//! draws there | `none` | `autoCentered` | `autoBetween` | `autoSliced` | `autoOverlap`: a tile
+//! made from the side tile),
+//! `__tiles` (slot → preview key, for the tiles the brush has).
use std::hash::{Hash, Hasher};
use std::sync::Arc;
use egui::{Color32, Sense, Stroke, pos2, vec2};
use serde_json::{Map, Value, json};
-use vectorcraft_brush::{ArtBrush, ArtScale, Brush, BrushKind, Colorization, Direction, PatternBrush, PatternFit, Scatter, Variation};
+use vectorcraft_brush::{ArtBrush, ArtScale, Brush, BrushKind, Colorization, CornerSource, Direction, PatternBrush, PatternFit, Scatter, Variation};
use vectorcraft_color::{Color, Paint};
use vectorcraft_doc::{Appearance, Document, Node, NodeId};
@@ -41,6 +44,43 @@ const DIRECTIONS: [Direction; 4] = [Direction::LeftToRight, Direction::RightToLe
const TILES: [(&str, &str); 5] =
[("outer_corner", "outerCorner"), ("side", "side"), ("inner_corner", "innerCorner"), ("start", "start"), ("end", "end")];
+/// Pattern brush corner tiles: (dialog field, art field of the definition, source field, art field
+/// of the other kind of corner).
+const CORNER_TILES: [(&str, &str, &str, &str); 2] =
+ [("outerCornerTile", "outer_corner", "outer_source", "inner_corner"), ("innerCornerTile", "inner_corner", "inner_source", "outer_corner")];
+
+/// The art field that corner tile `field` draws with in definition `def`: its own art, or, with
+/// neither art nor a source, the other kind of corner's art (as [`PatternBrush`] draws it).
+fn corner_art_field<'a>(def: Option<&Value>, field: &'a str) -> Option<&'a str> {
+ let set = |f: &str| def.and_then(|d| d.get(f)).is_some_and(|v| !v.is_null());
+ let (_, art, source, other) = CORNER_TILES.into_iter().find(|(_, art, _, _)| *art == field)?;
+ if set(art) {
+ Some(art)
+ } else if !set(source) && set(other) {
+ Some(other)
+ } else {
+ None
+ }
+}
+
+/// The dialog field that records that corner tile `key`'s menu was set.
+fn corner_set_key(key: &str) -> String {
+ format!("__{key}Set")
+}
+
+/// Sets corner tile `key` to `choice` from its menu.
+pub(super) fn choose_corner(d: &mut Dialog, key: &str, choice: &str) {
+ d.fields.insert(key.into(), json!(choice));
+ note_set(d, key);
+}
+
+/// Records that field `field` was set, from its menu or `ui.dialog.set`, when it is a corner tile.
+pub(super) fn note_set(d: &mut Dialog, field: &str) {
+ if CORNER_TILES.iter().any(|(key, ..)| *key == field) {
+ d.fields.insert(corner_set_key(field), json!(true));
+ }
+}
+
/// The most key colours offered.
const MAX_COLORS: usize = 16;
@@ -121,6 +161,10 @@ pub(super) fn fields(b: &Brush, def: Value, f: &mut Map) {
f.insert("fit".into(), json!(id_of(&p.fit)));
f.insert("flipAlong".into(), json!(p.flip_along));
f.insert("flipAcross".into(), json!(p.flip_across));
+ for ((key, art, _, _), source) in CORNER_TILES.into_iter().zip([p.outer_source, p.inner_source]) {
+ let choice = if corner_art_field(Some(&def), art).is_some() { "original" } else { source.map_or("none", CornerSource::id) };
+ f.insert(key.into(), json!(choice));
+ }
// A preview key per tile the brush has: its art's hash, so a changed tile redraws.
let tiles: Map = TILES
.iter()
@@ -200,13 +244,37 @@ pub(super) fn params(d: &Dialog) -> Value {
"overlap": d.bool("overlap"),
})
}
- _ => json!({
- "scale": clamped(d, "scale", PatternBrush::SCALE_RANGE),
- "spacing": clamped(d, "spacing", PatternBrush::SPACING_RANGE),
- "fit": id_of(&parse_field::(d, "fit")),
- "flip_along": d.bool("flipAlong"),
- "flip_across": d.bool("flipAcross"),
- }),
+ _ => {
+ let mut p = json!({
+ "scale": clamped(d, "scale", PatternBrush::SCALE_RANGE),
+ "spacing": clamped(d, "spacing", PatternBrush::SPACING_RANGE),
+ "fit": id_of(&parse_field::(d, "fit")),
+ "flip_along": d.bool("flipAlong"),
+ "flip_across": d.bool("flipAcross"),
+ });
+ // None or an automatic tile replaces the corner art. Original keeps the art the corner
+ // draws, the other kind of corner's art included, so changing the other kind leaves it.
+ // A None the menu was not set to, on a corner without art or a source, leaves the
+ // definition as it is: that corner still draws the other kind's art when it gets some.
+ let def = d.fields.get("__def");
+ for (key, art, source, other) in CORNER_TILES {
+ let choice = d.str(key);
+ let unset = |f: &str| def.and_then(|d| d.get(f)).is_none_or(Value::is_null);
+ if choice == CornerSource::None.id() && !d.bool(&corner_set_key(key)) && unset(source) && corner_art_field(def, art).is_none() {
+ continue;
+ }
+ if let Some(s) = CornerSource::parse(&choice) {
+ p[art] = Value::Null;
+ p[source] = json!(s.id());
+ } else if choice == "original"
+ && let Some(from) = corner_art_field(def, art).filter(|f| *f != art)
+ && CORNER_TILES.iter().find(|(_, a, _, _)| *a == other).is_some_and(|(k, ..)| d.str(k) != "original")
+ {
+ p[art] = def.and_then(|d| d.get(from)).cloned().unwrap_or_default();
+ }
+ }
+ p
+ }
};
p["colorization"] = serde_json::to_value(colorization(d)).unwrap_or_default();
p
@@ -379,21 +447,44 @@ fn pattern_body(ui: &mut egui::Ui, d: &mut Dialog) {
radios(ui, d, "fit", &fits);
}
-/// The pattern's five tiles, each with its art (or None when the brush has no such tile).
-fn tiles(ui: &mut egui::Ui, d: &Dialog) {
+/// What a corner tile can be: (choice, label). Original (the corner art the brush draws there) is
+/// offered only when the brush draws corner art there.
+fn corner_choices() -> [(&'static str, &'static str); 6] {
+ [
+ ("original", tl!("Original")),
+ (CornerSource::None.id(), tl!("None")),
+ (CornerSource::AutoCentered.id(), tl!("Auto-Centered")),
+ (CornerSource::AutoBetween.id(), tl!("Auto-Between")),
+ (CornerSource::AutoSliced.id(), tl!("Auto-Sliced")),
+ (CornerSource::AutoOverlap.id(), tl!("Auto-Overlap")),
+ ]
+}
+
+/// The pattern's five tiles, each with its art (or None when the brush has no such tile). Below
+/// each corner tile, a menu sets it to the brush's art, None or a tile made from the side tile.
+fn tiles(ui: &mut egui::Ui, d: &mut Dialog) {
let t = Tokens::get(ui.ctx());
let names = [tl!("Outer Corner Tile"), tl!("Side Tile"), tl!("Inner Corner Tile"), tl!("Start Tile"), tl!("End Tile")];
- let keys = d.fields.get("__tiles");
+ let keys = d.fields.get("__tiles").cloned();
ui.horizontal(|ui| {
ui.spacing_mut().item_spacing.x = 6.0;
for ((field, slot), name) in TILES.into_iter().zip(names) {
+ let corner = CORNER_TILES.iter().find(|(_, art, _, _)| *art == field).map(|(key, ..)| *key);
+ // The art the tile draws with: its own, or a corner's that falls back on the other's.
+ let drawn = if corner.is_some() { corner_art_field(d.fields.get("__def"), field) } else { Some(field) };
+ let drawn_slot = drawn.and_then(|f| TILES.iter().find(|(tf, _)| *tf == f)).map_or(slot, |(_, s)| *s);
+ let choices: Vec<(&str, &str)> = corner_choices().into_iter().filter(|(c, _)| drawn.is_some() || *c != "original").collect();
+ let choice = corner.map(|key| d.str(key));
+ // The label of the corner's choice when it shows no art.
+ let shown = choice.as_deref().filter(|c| *c != "original");
+ let label = shown.and_then(|c| choices.iter().find(|(id, _)| *id == c)).map_or(tl!("None"), |(_, l)| *l);
ui.vertical(|ui| {
let (r, resp) = ui.allocate_exact_size(vec2(76.0, 44.0), Sense::hover());
ui.painter().rect_filled(r, 0.0, Color32::WHITE);
- let key = keys.and_then(|k| k.get(slot)).and_then(Value::as_str);
+ let key = keys.as_ref().filter(|_| shown.is_none()).and_then(|k| k.get(drawn_slot)).and_then(Value::as_str);
let tex = key.and_then(|key| {
widgets::doc_preview(ui, key, r.size(), |w, h| {
- let art: Node = serde_json::from_value(d.fields.get("__def")?.get(field)?.clone()).ok()?;
+ let art: Node = serde_json::from_value(d.fields.get("__def")?.get(drawn?)?.clone()).ok()?;
tile_doc(&art, w, h)
})
});
@@ -402,18 +493,21 @@ fn tiles(ui: &mut egui::Ui, d: &Dialog) {
ui.painter().image(tex.id(), r, egui::Rect::from_min_max(pos2(0.0, 0.0), pos2(1.0, 1.0)), Color32::WHITE);
}
None => {
- ui.painter().text(
- r.center(),
- egui::Align2::CENTER_CENTER,
- tl!("None"),
- egui::FontId::proportional(11.5),
- Color32::from_gray(140),
- );
+ ui.painter().text(r.center(), egui::Align2::CENTER_CENTER, label, egui::FontId::proportional(10.5), Color32::from_gray(140));
}
}
ui.painter().rect_stroke(r, 0.0, Stroke::new(1.0, t.input_border), egui::StrokeKind::Inside);
resp.on_hover_text(name);
ui.add_sized(vec2(76.0, 14.0), egui::Label::new(egui::RichText::new(name).size(10.5).color(t.text_dim)).truncate());
+ if let (Some(key), Some(cur)) = (corner, &choice) {
+ let current = choices.iter().find(|(id, _)| id == cur).map_or(tl!("None"), |(_, l)| *l);
+ let labels: Vec<&str> = choices.iter().map(|(_, l)| *l).collect();
+ if let Some((id, _)) =
+ widgets::dropdown_named(ui, ("brush-pattern-corner", key), Some(name), current, &labels, 76.0).and_then(|i| choices.get(i))
+ {
+ choose_corner(d, key, id);
+ }
+ }
});
}
});
diff --git a/crates/ui-egui/src/dialogs/brush_options/tests.rs b/crates/ui-egui/src/dialogs/brush_options/tests.rs
index 7ca4b316ce..9adeffed1b 100644
--- a/crates/ui-egui/src/dialogs/brush_options/tests.rs
+++ b/crates/ui-egui/src/dialogs/brush_options/tests.rs
@@ -443,6 +443,110 @@ fn pattern_options_show_the_tiles_and_set_scale_spacing_fit() {
assert!((drawn_height(&app, id) / before - 2.0).abs() < 1e-6, "tiles twice the size");
}
+/// Each corner tile has a menu below it: Original (only when the brush has corner art), None and
+/// the four automatic tiles. OK saves the choice, and an automatic tile or None replaces the art.
+#[test]
+fn pattern_options_set_each_corner_tile_to_original_none_or_an_automatic_tile() {
+ use crate::widgets::accessibility_tests::tree;
+ let mut app = app();
+ app.run("ui.brushOptions", json!({"name": "Diamonds"})).unwrap();
+ let d = app.ui.dialog.as_ref().unwrap();
+ assert_eq!((d.str("outerCornerTile"), d.str("innerCornerTile")), ("none".into(), "none".into()), "Diamonds has no corner art");
+ let shown_tree = tree(|ui| super::super::show(&mut app, ui.ctx()));
+ for name in ["Outer Corner Tile", "Inner Corner Tile"] {
+ let roles: Vec<_> = shown_tree.iter().filter(|n| n.label() == Some(name)).map(|n| n.role()).collect();
+ assert!(roles.contains(&egui::accesskit::Role::ComboBox), "a menu named {name}: {roles:?}");
+ }
+ for name in ["Side Tile", "Start Tile", "End Tile"] {
+ assert!(!shown_tree.iter().any(|n| n.label() == Some(name) && n.role() == egui::accesskit::Role::ComboBox), "no menu for {name}");
+ }
+ set(&mut app, json!({"outerCornerTile": "autoBetween", "innerCornerTile": "autoOverlap"}));
+ let text = shown(&mut app);
+ assert!(text.contains("Auto-Between") && text.contains("Auto-Overlap"), "{text}");
+ super::super::confirm(&mut app).unwrap();
+ let def = app.run("brush.get", json!({"name": "Diamonds"})).unwrap();
+ assert_eq!((&def["outer_source"], &def["inner_source"]), (&json!("autoBetween"), &json!("autoOverlap")));
+ // Chain has corner art: Original keeps it, None and an automatic tile replace it, one corner
+ // at a time.
+ app.run("ui.brushOptions", json!({"name": "Chain"})).unwrap();
+ let d = app.ui.dialog.as_ref().unwrap();
+ assert_eq!((d.str("outerCornerTile"), d.str("innerCornerTile")), ("original".into(), "original".into()));
+ super::super::confirm(&mut app).unwrap();
+ let def = app.run("brush.get", json!({"name": "Chain"})).unwrap();
+ assert!(def["outer_corner"].is_object() && def["inner_corner"].is_object() && def.get("outer_source").is_none(), "{def}");
+ app.run("ui.brushOptions", json!({"name": "Chain"})).unwrap();
+ set(&mut app, json!({"innerCornerTile": "none"}));
+ super::super::confirm(&mut app).unwrap();
+ let def = app.run("brush.get", json!({"name": "Chain"})).unwrap();
+ assert!(def["outer_corner"].is_object() && def.get("inner_corner").is_none(), "{def}");
+ assert_eq!(def["inner_source"], json!("none"));
+ app.run("ui.brushOptions", json!({"name": "Chain"})).unwrap();
+ let d = app.ui.dialog.as_ref().unwrap();
+ assert_eq!((d.str("outerCornerTile"), d.str("innerCornerTile")), ("original".into(), "none".into()));
+ set(&mut app, json!({"outerCornerTile": "autoSliced"}));
+ super::super::confirm(&mut app).unwrap();
+ let def = app.run("brush.get", json!({"name": "Chain"})).unwrap();
+ assert!(def.get("outer_corner").is_none() && def.get("inner_corner").is_none(), "{def}");
+ assert_eq!((&def["outer_source"], &def["inner_source"]), (&json!("autoSliced"), &json!("none")));
+ app.run("ui.brushOptions", json!({"name": "Chain"})).unwrap();
+ assert_eq!(app.ui.dialog.as_ref().unwrap().str("outerCornerTile"), "autoSliced");
+}
+
+/// A pattern brush with art for one kind of corner draws it at both kinds. Its other corner tile
+/// shows that art as Original, and OK keeps it there when the first corner tile changes.
+#[test]
+fn pattern_options_keep_the_corner_art_a_corner_borrows() {
+ let mut app = app();
+ let art = app.run("brush.get", json!({"name": "Chain"})).unwrap()["outer_corner"].clone();
+ app.run("brush.new", json!({"type": "pattern", "name": "One Corner", "params": {"side": art.clone(), "outer_corner": art}})).unwrap();
+ app.run("ui.brushOptions", json!({"name": "One Corner"})).unwrap();
+ let d = app.ui.dialog.as_ref().unwrap();
+ assert_eq!((d.str("outerCornerTile"), d.str("innerCornerTile")), ("original".into(), "original".into()));
+ set(&mut app, json!({"outerCornerTile": "none"}));
+ super::super::confirm(&mut app).unwrap();
+ let def = app.run("brush.get", json!({"name": "One Corner"})).unwrap();
+ assert!(def.get("outer_corner").is_none() && def["inner_corner"].is_object(), "{def}");
+ assert_eq!(def["outer_source"], json!("none"));
+}
+
+/// OK leaves the corner fields of a corner tile the menus were not set to as they were: a corner
+/// without art keeps borrowing the other kind's art when it gets some, and a corner that borrows
+/// art still borrows it. A None picked from the menu is saved, after another choice too.
+#[test]
+fn pattern_options_ok_leaves_corner_tiles_the_menus_were_not_set_to() {
+ let mut app = app();
+ app.run("ui.brushOptions", json!({"name": "Diamonds"})).unwrap();
+ set(&mut app, json!({"scale": 150}));
+ super::super::confirm(&mut app).unwrap();
+ let def = app.run("brush.get", json!({"name": "Diamonds"})).unwrap();
+ assert!(def.get("outer_source").is_none() && def.get("inner_source").is_none(), "{def}");
+ let art = app.run("brush.get", json!({"name": "Chain"})).unwrap()["outer_corner"].clone();
+ app.run("brush.options", json!({"name": "Diamonds", "params": {"outer_corner": art.clone()}})).unwrap();
+ app.run("ui.brushOptions", json!({"name": "Diamonds"})).unwrap();
+ assert_eq!(app.ui.dialog.as_ref().unwrap().str("innerCornerTile"), "original", "the inner corners draw the outer art");
+ super::super::confirm(&mut app).unwrap();
+ let def = app.run("brush.get", json!({"name": "Diamonds"})).unwrap();
+ assert!(def["outer_corner"].is_object() && def.get("inner_corner").is_none(), "{def}");
+
+ app.run("brush.new", json!({"type": "pattern", "name": "Plain", "params": {"side": art}})).unwrap();
+ app.run("ui.brushOptions", json!({"name": "Plain"})).unwrap();
+ let d = app.ui.dialog.as_mut().unwrap();
+ crate::dialogs::brush_art_options::choose_corner(d, "outerCornerTile", "autoCentered");
+ crate::dialogs::brush_art_options::choose_corner(d, "outerCornerTile", "none");
+ super::super::confirm(&mut app).unwrap();
+ let def = app.run("brush.get", json!({"name": "Plain"})).unwrap();
+ assert_eq!(def["outer_source"], json!("none"));
+ assert!(def.get("inner_source").is_none(), "{def}");
+ // None set through the control channel is saved too.
+ app.run("ui.brushOptions", json!({"name": "Plain"})).unwrap();
+ let (set, _) = crate::control::ControlRequest::new("ui.dialog.set", json!({"field": "innerCornerTile", "value": "none"}));
+ let crate::control::Outcome::Done(r) = crate::control::handle(&mut app, &egui::Context::default(), &set) else { panic!("not done") };
+ assert!(r.get("error").is_none(), "{r}");
+ super::super::confirm(&mut app).unwrap();
+ let def = app.run("brush.get", json!({"name": "Plain"})).unwrap();
+ assert_eq!(def["inner_source"], json!("none"));
+}
+
/// Art Brush Options' Width and Pattern Brush Options' Scale each have a slider beside their
/// field, which screen readers name as the row, with the field's number and text over the
/// value's whole range.
diff --git a/crates/ui-egui/src/dialogs/color_guide_options.rs b/crates/ui-egui/src/dialogs/color_guide_options.rs
index faeb11e0d2..1fe685e605 100644
--- a/crates/ui-egui/src/dialogs/color_guide_options.rs
+++ b/crates/ui-egui/src/dialogs/color_guide_options.rs
@@ -45,7 +45,7 @@ fn body(app: &mut VectorcraftApp, ui: &mut egui::Ui, d: &mut Dialog) -> bool {
ui.add_space(10.0);
// Preview: the base colour's row of variations.
let o = options(app, d);
- let base = base_color(app, ui.ctx());
+ let base = base_color(app);
let n = o.steps as i32;
let (row, _) = ui.allocate_exact_size(vec2(ui.available_width(), 22.0), Sense::hover());
let w = row.width() / (2 * n + 1) as f32;
diff --git a/crates/ui-egui/src/dialogs/color_picker.rs b/crates/ui-egui/src/dialogs/color_picker.rs
index eb72ae7bb4..60c037597b 100644
--- a/crates/ui-egui/src/dialogs/color_picker.rs
+++ b/crates/ui-egui/src/dialogs/color_picker.rs
@@ -3,7 +3,8 @@
//! the out-of-gamut and out-of-web warnings (click to correct); New/Original chips; an eyedropper
//! button that samples a color anywhere on the screen ([`crate::screen_color`]); and a Color
//! Swatches list. With art selected the colour shows on it live as it is picked; OK keeps it as one
-//! undo step through `paint.setFill` / `paint.setStroke`, Cancel puts the art back.
+//! undo step through `paint.setFill` / `paint.setStroke` and makes the color the Color Guide's
+//! base color; Cancel puts the art back.
//! Opened for an artboard (Properties › Artboards › Fill), it shows the color on the artboard's
//! paper live, and OK keeps it as one undo step through `artboard.setProps {index, color}`.
//! Opened over Recolor Artwork (double-click a row's new color), its OK sets that row's new color
@@ -636,7 +637,13 @@ fn confirm(app: &mut VectorcraftApp, d: &Dialog) -> Result {
return Ok(Value::Null);
}
let (cmd, params) = paint_command(app, d);
- super::form::commit_preview(app, cmd, params)
+ let c = in_document_model(app, picked(d).color);
+ let r = super::form::commit_preview(app, cmd, params)?;
+ // A color picked for the fill or stroke also becomes the Color Guide's base color.
+ if !d.fields.contains_key("artboard") {
+ crate::panels::color_guide::choose_base(app, c);
+ }
+ Ok(r)
}
#[cfg(test)]
diff --git a/crates/ui-egui/src/dialogs/color_picker/tests.rs b/crates/ui-egui/src/dialogs/color_picker/tests.rs
index cc650978b6..4d678b1069 100644
--- a/crates/ui-egui/src/dialogs/color_picker/tests.rs
+++ b/crates/ui-egui/src/dialogs/color_picker/tests.rs
@@ -275,6 +275,30 @@ fn open_set_hex_and_confirm_fills() {
assert_eq!(crate::panels::current_paints(&app).0.color(), Some(Color::cmyk(0.0, 1.0, 1.0, 0.0)));
}
+/// OK makes the picked fill or stroke color the Color Guide's base color (#3137); Cancel and a
+/// color picked for an artboard leave the base as it is.
+#[test]
+fn ok_makes_the_picked_color_the_color_guides_base() {
+ let mut app = app();
+ let base = |app: &VectorcraftApp| crate::panels::color_guide::base_color(app).to_hex();
+ app.ui.color_guide_base = Some(Color::WHITE);
+ app.run("ui.colorPicker", json!({})).unwrap();
+ app.ui.dialog.as_mut().unwrap().fields.insert("hex".into(), json!("2050a0"));
+ super::super::confirm(&mut app).unwrap();
+ assert_eq!(base(&app), "#2050a0");
+ app.run("ui.colorPicker", json!({"stroke": true})).unwrap();
+ app.ui.dialog.as_mut().unwrap().fields.insert("hex".into(), json!("a02050"));
+ frame(&mut app);
+ super::super::cancel(&mut app);
+ assert_eq!(base(&app), "#2050a0", "Cancel keeps the base");
+ app.run("select.set", json!({"ids": []})).unwrap();
+ app.run("artboard.new", json!({})).unwrap();
+ app.run("ui.colorPicker", json!({"artboard": 1})).unwrap();
+ app.ui.dialog.as_mut().unwrap().fields.insert("hex".into(), json!("00ff00"));
+ super::super::confirm(&mut app).unwrap();
+ assert_eq!(base(&app), "#2050a0", "an artboard's color leaves the base");
+}
+
/// #1692: Tab goes through one color model's fields before the next: H, S, B, then R, G, B, the
/// hex field, then L, a, b, then C, M, Y, K. Each Lab or CMYK field is level with the field on
/// its left.
diff --git a/crates/ui-egui/src/dialogs/dimension.rs b/crates/ui-egui/src/dialogs/dimension.rs
index 06f89ce28f..9e84b39f89 100644
--- a/crates/ui-egui/src/dialogs/dimension.rs
+++ b/crates/ui-egui/src/dialogs/dimension.rs
@@ -131,7 +131,11 @@ fn body(app: &mut VectorcraftApp, ui: &mut Ui, d: &mut Dialog) -> bool {
ui.horizontal(|ui| {
widgets::label_row(ui, tl!("Scale:"), 96.0, |ui| {
let mut scale = f.get("scale").and_then(Value::as_str).unwrap_or_default().to_owned();
- let changed = ui.name_inputs(tl!("Scale"), |ui| ui.add(egui::TextEdit::singleline(&mut scale).desired_width(72.0))).changed();
+ let changed = ui
+ .name_inputs(tl!("Scale"), |ui| {
+ ui.add(egui::TextEdit::singleline(&mut scale).align(egui::Align2::LEFT_CENTER).desired_width(72.0))
+ })
+ .changed();
if changed {
f.insert("scale".into(), json!(scale));
}
diff --git a/crates/ui-egui/src/dialogs/effect.rs b/crates/ui-egui/src/dialogs/effect.rs
index b668f07919..02346ab1f7 100644
--- a/crates/ui-egui/src/dialogs/effect.rs
+++ b/crates/ui-egui/src/dialogs/effect.rs
@@ -166,7 +166,9 @@ fn body(app: &mut VectorcraftApp, ui: &mut egui::Ui, d: &mut Dialog) -> bool {
None if id == TEXTURIZER => glass_fields(app, ui, d, TEXTURIZER),
None if id == TRANSFORM => transform_fields(ui, d, app.session.general_unit()),
None if id == SCRIBBLE => scribble_fields(ui, d, app.session.general_unit()),
- None if id == ZIG_ZAG => zig_zag_fields(ui, d, app.session.general_unit()),
+ None if id == ZIG_ZAG || id == ROUGHEN => size_fields(ui, d, &id, app.session.general_unit()),
+ None if id == PUCKER_BLOAT => pucker_bloat_fields(ui, d),
+ None if id == TWEAK => tweak_fields(ui, d, app.session.general_unit()),
None if id == DROP_SHADOW => drop_shadow_fields(ui, d, app.session.general_unit()),
None if id == "artistic.filmGrain" => film_grain_fields(ui, d),
None if id == free_distort::FREE_DISTORT => {
@@ -559,49 +561,77 @@ fn transform_fields(ui: &mut egui::Ui, d: &mut Dialog, unit: vectorcraft_doc::Un
/// The Zig Zag effect (Effect › Distort & Transform › Zig Zag…).
const ZIG_ZAG: &str = "distort.zigZag";
-/// Zig Zag's dialog (#1133): Size and Ridges per segment as sliders with their fields, Relative or
-/// Absolute and the Points as radio buttons. Returns whether the values differ from those last
-/// previewed.
-fn zig_zag_fields(ui: &mut egui::Ui, d: &mut Dialog, unit: vectorcraft_doc::Unit) -> bool {
- const LABEL_W: f32 = 124.0;
- const FIELD_W: f32 = 70.0;
+/// The Roughen effect (Effect › Distort & Transform › Roughen…).
+const ROUGHEN: &str = "distort.roughen";
+
+/// The Pucker & Bloat effect (Effect › Distort & Transform › Pucker & Bloat…).
+const PUCKER_BLOAT: &str = "distort.puckerBloat";
+
+/// The second slider of [`size_fields`]: Zig Zag's Ridges per segment, Roughen's Detail (per inch),
+/// as (key, label, default, suffix).
+fn second_slider(effect: &str) -> (&'static str, &'static str, f64, &'static str) {
+ if effect == ROUGHEN { ("detail", "Detail:", 10.0, "/in") } else { ("ridges", "Ridges per segment:", 4.0, "") }
+}
+
+/// Zig Zag's and Roughen's dialog (#1133, #4488): Size and Ridges per segment (Roughen: Detail) as
+/// sliders with their fields, Relative or Absolute and the Points as radio buttons. Returns
+/// whether the values differ from those last previewed.
+/// The label column and field width of [`relative_rows`] and the sliders under them.
+const DISTORT_LABEL_W: f32 = 124.0;
+const DISTORT_FIELD_W: f32 = 70.0;
+
+/// A slider with its field for each of `rows` (key, label, default), each a share of the object's
+/// size with Relative or a distance with Absolute, then the Relative and Absolute radio buttons.
+fn relative_rows(ui: &mut egui::Ui, d: &mut Dialog, rows: &[(&str, &str, f64)], unit: vectorcraft_doc::Unit) {
let rail = Tokens::get(ui.ctx()).input_border;
let track = move |_| rail;
let relative = d.bool("relative");
- widgets::subheader(ui, tl!("Options"));
- // Size is a share of the object's size (Relative) or a distance (Absolute).
- widgets::label_row(ui, tl!("Size:"), LABEL_W, |ui| {
- let shown = if relative {
- Some(widgets::SliderValue::field(d.f64("size", 10.0).clamp(0.0, 100.0), 0.0..=100.0, "%", 0))
- } else {
- form::length_value(d, "size", unit, 0.0..=100.0)
- };
- form::slider_rail_valued(ui, d, "size", tl!("Size:"), 0.0..=100.0, shown, &track);
- if !relative {
- form::length(ui, d, "size", unit, FIELD_W);
- } else if let Some(n) = widgets::range_field(ui, ("zz", "size"), d.f64("size", 10.0), 0.0..=100.0, "%", 0, FIELD_W) {
- d.fields.insert("size".into(), json!(n));
- }
- });
+ for &(key, label, default) in rows {
+ widgets::label_row(ui, tl!(label), DISTORT_LABEL_W, |ui| {
+ let shown = if relative {
+ Some(widgets::SliderValue::field(d.f64(key, default).clamp(0.0, 100.0), 0.0..=100.0, "%", 0))
+ } else {
+ form::length_value(d, key, unit, 0.0..=100.0)
+ };
+ form::slider_rail_valued(ui, d, key, tl!(label), 0.0..=100.0, shown, &track);
+ if !relative {
+ form::length(ui, d, key, unit, DISTORT_FIELD_W);
+ } else if let Some(n) = widgets::range_field(ui, ("zz", key), d.f64(key, default), 0.0..=100.0, "%", 0, DISTORT_FIELD_W) {
+ d.fields.insert(key.into(), json!(n));
+ }
+ });
+ }
ui.horizontal(|ui| {
- ui.add_space(LABEL_W + ui.spacing().item_spacing.x);
+ ui.add_space(DISTORT_LABEL_W + ui.spacing().item_spacing.x);
for (label, on) in [(tl!("Relative"), true), (tl!("Absolute"), false)] {
if widgets::radio(ui, label, relative == on, true) {
d.fields.insert("relative".into(), json!(on));
}
}
});
- widgets::label_row(ui, tl!("Ridges per segment:"), LABEL_W, |ui| {
- form::slider_rail_named(ui, d, "ridges", tl!("Ridges per segment:"), 0.0..=100.0, &track);
- if let Some(n) = widgets::range_field(ui, ("zz", "ridges"), d.f64("ridges", 4.0), 0.0..=100.0, "", 0, FIELD_W) {
- d.fields.insert("ridges".into(), json!(n));
+}
+
+fn size_fields(ui: &mut egui::Ui, d: &mut Dialog, effect: &str, unit: vectorcraft_doc::Unit) -> bool {
+ const LABEL_W: f32 = DISTORT_LABEL_W;
+ const FIELD_W: f32 = DISTORT_FIELD_W;
+ let rail = Tokens::get(ui.ctx()).input_border;
+ let track = move |_| rail;
+ let size = if effect == ROUGHEN { 5.0 } else { 10.0 };
+ widgets::subheader(ui, tl!("Options"));
+ // Size is a share of the object's size (Relative) or a distance (Absolute).
+ relative_rows(ui, d, &[("size", "Size:", size)], unit);
+ let (key, label, default, suffix) = second_slider(effect);
+ widgets::label_row(ui, tl!(label), LABEL_W, |ui| {
+ form::slider_rail_named(ui, d, key, tl!(label), 0.0..=100.0, &track);
+ if let Some(n) = widgets::range_field(ui, ("zz", key), d.f64(key, default), 0.0..=100.0, suffix, 0, FIELD_W) {
+ d.fields.insert(key.into(), json!(n));
}
});
ui.add_space(4.0);
widgets::subheader(ui, crate::i18n::tr_ctx(crate::i18n::current(), "effect", "Points"));
let points = d.str("points");
ui.horizontal(|ui| {
- for (label, value) in choices(ZIG_ZAG, "points").unwrap_or_default() {
+ for (label, value) in choices(effect, "points").unwrap_or_default() {
if widgets::radio(ui, crate::i18n::tr_ctx(crate::i18n::current(), "effect", label), points == *value, true) {
d.fields.insert("points".into(), json!(value));
}
@@ -610,6 +640,32 @@ fn zig_zag_fields(ui: &mut egui::Ui, d: &mut Dialog, unit: vectorcraft_doc::Unit
values_changed(d)
}
+/// The Tweak effect (Effect › Distort & Transform › Tweak…).
+const TWEAK: &str = "distort.tweak";
+
+/// Tweak's dialog (#4488): Horizontal and Vertical as sliders with their fields (a share of the
+/// object's size with Relative, a distance with Absolute), then which points it moves. Returns
+/// whether the values differ from those last previewed.
+fn tweak_fields(ui: &mut egui::Ui, d: &mut Dialog, unit: vectorcraft_doc::Unit) -> bool {
+ widgets::subheader(ui, tl!("Amount"));
+ relative_rows(ui, d, &[("h", "Horizontal:", 10.0), ("v", "Vertical:", 10.0)], unit);
+ ui.add_space(4.0);
+ widgets::subheader(ui, tl!("Modify"));
+ form::check(ui, d, "anchors", tl!("Anchor Points"));
+ form::check(ui, d, "in", tl!("\"In\" Control Points"));
+ form::check(ui, d, "out", tl!("\"Out\" Control Points"));
+ values_changed(d)
+}
+
+/// Pucker & Bloat's dialog (#4488): its amount as a slider from Pucker (−200 %) to Bloat (200 %)
+/// with its field. Returns whether the value differs from the one last previewed.
+fn pucker_bloat_fields(ui: &mut egui::Ui, d: &mut Dialog) -> bool {
+ let rail = Tokens::get(ui.ctx()).input_border;
+ form::slider(ui, d, "amount", tl!("Amount:"), -200.0..=200.0, "%", &move |_| rail);
+ form::slider_ends(ui, form::SLIDER_LABEL, (tl!("Pucker"), tl!("Bloat")));
+ values_changed(d)
+}
+
/// Drop Shadow (Effect › Stylize › Drop Shadow…).
const DROP_SHADOW: &str = "stylize.dropShadow";
diff --git a/crates/ui-egui/src/dialogs/expand.rs b/crates/ui-egui/src/dialogs/expand.rs
index 85be7ab1bd..7d0bfd1099 100644
--- a/crates/ui-egui/src/dialogs/expand.rs
+++ b/crates/ui-egui/src/dialogs/expand.rs
@@ -24,9 +24,20 @@ const OPTIONS: [(&str, &str); 3] = [("object", "Object"), ("fill", "Fill"), ("st
pub(super) const SPEC: DialogSpec = DialogSpec { heading: |_| tl!("Expand").into(), body, confirm, min_width: 260.0, ..DialogSpec::FORM };
-/// Open Expand for the selection, every option on (as `object.expand {}` does).
+/// Why Object › Expand… is dimmed: the selection has appearance attributes, which Expand Appearance
+/// turns into plain art first (#3089).
+pub(crate) fn appearance_first() -> &'static str {
+ tl!("Expand Appearance first (Object › Expand Appearance)")
+}
+
+/// Open Expand for the selection, every option on (as `object.expand {}` does). A selection with
+/// appearance attributes (effects, several fills or strokes…) refuses with [`appearance_first`]:
+/// the menu item is dimmed for it.
pub fn open(app: &mut VectorcraftApp) -> Result {
let info = app.session.execute("object.expand.info", &json!({})).map_err(|e| e.to_string())?;
+ if info["appearance"] == json!(true) {
+ return Err(appearance_first().into());
+ }
let mut fields = json!({"object": true, "fill": true, "stroke": true, "gradient": "objects", "steps": DEFAULT_STEPS});
for (key, _) in OPTIONS {
fields[format!("__{key}")] = info[key].clone();
@@ -169,4 +180,49 @@ mod tests {
let st = app.session.doc().unwrap();
assert!(matches!(st.doc.node(st.selection.objects[0]).unwrap().kind, NodeKind::Path { live: None, .. }));
}
+
+ /// A line with a stroke and a Zig Zag effect is selected (#3089).
+ fn zig_zag_line(app: &mut VectorcraftApp) {
+ app.run("file.new", json!({"width": 200, "height": 200})).unwrap();
+ app.run("path.create", json!({"d": "M 20 100 L 180 100"})).unwrap();
+ app.run("paint.setFill", json!({"none": true})).unwrap();
+ app.run("paint.setStroke", json!({"color": "#000000"})).unwrap();
+ app.run("effect.apply", json!({"effect": "distort.zigZag", "params": {"size": 10, "ridges": 6, "relative": false}})).unwrap();
+ }
+
+ #[test]
+ fn expand_waits_for_expand_appearance_on_a_line_with_an_effect() {
+ let mut app = VectorcraftApp::new(Session::new(), Default::default());
+ zig_zag_line(&mut app);
+ assert!(!crate::menus::enabled(&app, "ui.expandDialog"), "Expand… is dimmed for the Zig Zag effect");
+ assert!(crate::menus::enabled(&app, "effect.expandAppearance"));
+ // A shortcut or the command palette doesn't open it either; the status bar says why.
+ let before = app.session.doc().unwrap().doc.clone();
+ crate::menus::invoke(&mut app, "object.expand", json!({}));
+ assert!(app.ui.dialog.is_none());
+ assert_eq!(app.ui.status, appearance_first());
+ assert_eq!(app.run("ui.expandDialog", json!({})).unwrap_err(), appearance_first());
+ assert_eq!(app.session.doc().unwrap().doc, before, "the line is left as it was");
+ // Expand Appearance first: the line stays a stroked line, and Expand… is available for it.
+ crate::menus::invoke(&mut app, "effect.expandAppearance", json!({}));
+ let st = app.session.doc().unwrap();
+ let line = st.doc.node(st.selection.objects[0]).unwrap();
+ assert!(line.appearance.effects.is_empty() && !line.appearance.stroke_paint().is_none());
+ assert!(crate::menus::enabled(&app, "ui.expandDialog"));
+ crate::menus::invoke(&mut app, "object.expand", json!({}));
+ assert_eq!(app.ui.dialog.as_ref().map(|d| d.kind.as_str()), Some(KIND));
+ }
+
+ #[test]
+ fn expand_is_dimmed_for_two_fills_but_not_for_a_plain_rectangle() {
+ let mut app = VectorcraftApp::new(Session::new(), Default::default());
+ app.run("file.new", json!({"width": 200, "height": 200})).unwrap();
+ app.run("shape.rectangle", json!({"x": 20, "y": 20, "width": 100, "height": 60})).unwrap();
+ assert!(crate::menus::enabled(&app, "ui.expandDialog"), "a basic appearance");
+ app.run("appearance.addFill", json!({})).unwrap();
+ assert!(!crate::menus::enabled(&app, "ui.expandDialog"), "two fills");
+ // Nothing selected: dimmed as before.
+ app.run("select.none", json!({})).unwrap();
+ assert!(!crate::menus::enabled(&app, "ui.expandDialog"));
+ }
}
diff --git a/crates/ui-egui/src/dialogs/export_as.rs b/crates/ui-egui/src/dialogs/export_as.rs
index ee918ecf4e..32ee696afd 100644
--- a/crates/ui-egui/src/dialogs/export_as.rs
+++ b/crates/ui-egui/src/dialogs/export_as.rs
@@ -103,7 +103,7 @@ fn body(_: &mut VectorcraftApp, ui: &mut egui::Ui, d: &mut Dialog) -> bool {
d.fields.insert("all".into(), json!(all));
}
let mut range = d.str("range");
- if ui.add_enabled(!all, egui::TextEdit::singleline(&mut range).desired_width(90.0)).changed() {
+ if ui.add_enabled(!all, egui::TextEdit::singleline(&mut range).align(egui::Align2::LEFT_CENTER).desired_width(90.0)).changed() {
d.fields.insert("range".into(), json!(range));
}
});
diff --git a/crates/ui-egui/src/dialogs/find_links/tests.rs b/crates/ui-egui/src/dialogs/find_links/tests.rs
index 6db57091fd..b85b67634f 100644
--- a/crates/ui-egui/src/dialogs/find_links/tests.rs
+++ b/crates/ui-egui/src/dialogs/find_links/tests.rs
@@ -67,9 +67,14 @@ fn opened_without(app: &mut VectorcraftApp, root: &Path, names: &[&str]) -> Vec<
files
}
-/// Draw the dialog until its search ends (10 seconds at most).
+/// How long a test waits for the dialog's search to end. The wait only ends a test whose search
+/// never ends. A machine busy with other builds can hold a walker for seconds. It is shorter than a
+/// search's default `maxSeconds` of 60, which would end a search that does not end by itself.
+const WAIT: Duration = Duration::from_secs(30);
+
+/// Draw the dialog until its search ends ([`WAIT`] at most).
fn searched(app: &mut VectorcraftApp) {
- let until = Instant::now() + Duration::from_secs(10);
+ let until = Instant::now() + WAIT;
while app.ui.dialog.as_ref().is_some_and(|d| d.str("state") == "searching") && Instant::now() < until {
frame(app);
std::thread::sleep(Duration::from_millis(5));
diff --git a/crates/ui-egui/src/dialogs/flare_options.rs b/crates/ui-egui/src/dialogs/flare_options.rs
index 44ae5eb586..b94f6a7c2e 100644
--- a/crates/ui-egui/src/dialogs/flare_options.rs
+++ b/crates/ui-egui/src/dialogs/flare_options.rs
@@ -1,13 +1,15 @@
//! Flare Tool Options (double-click the Flare tool, or click with it): the options the Flare tool
//! keeps, which draw the next flare dragged out, last across tool switches and are saved with the
//! preferences. OK sets them with `tool.setOption {tool: "flare", values}`; opened by a click, it
-//! then draws a flare there with them (`shape.flare`, on the active perspective plane while the
-//! grid shows).
+//! accepts a flare preview there with them (`shape.flare`, on the active perspective plane while the
+//! grid shows). While Alt (Option on macOS) is held, Cancel reads Reset, which puts every option
+//! back to the tool's default and leaves the dialog open (`ui.dialogReset`). A click-opened
+//! dialog previews its settings live; Reset refreshes that preview and Cancel rolls it back.
//!
//! Fields: the options (`vectorcraft_tools::extra::FLARE_OPTIONS`): `diameter` and `pathLength`
//! (points), `opacity`, `brightness`, `growth`, `fuzziness`, `longest`, `rayFuzziness` and
//! `largest` (%), `rays` and `rings` (counts), `direction` (degrees); `raysOn` and `ringsOn`; and
-//! `x`, `y` where a click opened it.
+//! `x`, `y` where a click opened it, with `preview` on initially for that click.
use serde_json::{Map, Value, json};
use vectorcraft_geom::Point;
@@ -21,7 +23,15 @@ use crate::{VectorcraftApp, widgets};
/// The dialog kind of the Flare Tool Options.
pub const KIND: &str = "flareOptions";
-pub(super) const SPEC: DialogSpec = DialogSpec { heading: |_| tl!("Flare Tool Options").into(), body, confirm, min_width: 440.0, ..DialogSpec::FORM };
+pub(super) const SPEC: DialogSpec = DialogSpec {
+ heading: |_| tl!("Flare Tool Options").into(),
+ body,
+ confirm,
+ reset: Some(reset),
+ preview: true,
+ min_width: 440.0,
+ ..DialogSpec::FORM
+};
/// Width of the label column and of the fields.
const LABEL_W: f32 = 78.0;
@@ -35,6 +45,7 @@ pub fn open(app: &mut VectorcraftApp, at: Option) -> Value {
_ => Map::new(),
};
if let Some(p) = at {
+ fields.insert("preview".into(), json!(true));
fields.insert("x".into(), json!(p.x));
fields.insert("y".into(), json!(p.y));
}
@@ -102,23 +113,53 @@ fn body(app: &mut VectorcraftApp, ui: &mut egui::Ui, d: &mut Dialog) -> bool {
});
ui.end_row();
});
+ if let Some((cmd, params)) = preview_command(app, d) {
+ form::preview(app, ui, d, "Flare", &cmd, params);
+ }
false
}
+/// A click-created flare previews at that original click; toolbar options draw no artwork.
+fn preview_command(app: &VectorcraftApp, d: &Dialog) -> Option<(String, Value)> {
+ let at = Point::new(d.fields.get("x")?.as_f64().filter(|v| v.is_finite())?, d.fields.get("y")?.as_f64().filter(|v| v.is_finite())?);
+ // Use the same clamping and whole-count conversion as accepted tool settings.
+ let mut tool = vectorcraft_tools::create("flare");
+ for (key, default, ..) in FLARE_OPTIONS {
+ tool.set_option(key, &json!(d.f64(key, default)));
+ }
+ for key in ["raysOn", "ringsOn"] {
+ tool.set_option(key, &json!(d.bool(key)));
+ }
+ let params = flare_params(&tool.options(), at);
+ Some(vectorcraft_engine::perspective_click(&app.session, "shape.flare", ¶ms, at).unwrap_or_else(|| ("shape.flare".into(), params)))
+}
+
+/// Reset (Cancel with Alt or Option held): every option goes back to the Flare tool's default
+/// (`FLARE_OPTIONS`, with Rays and Rings on). The dialog keeps a click's `x` and `y`, so OK still draws there.
+fn reset(_: &VectorcraftApp, d: &mut Dialog) {
+ if let Value::Object(defaults) = vectorcraft_tools::create("flare").options() {
+ d.fields.extend(defaults);
+ }
+}
+
/// OK: set the tool's options; opened by a click, draw a flare there with them.
fn confirm(app: &mut VectorcraftApp, d: &Dialog) -> DialogResult {
+ let command = preview_command(app, d);
+ if command.is_none() && (d.fields.contains_key("x") || d.fields.contains_key("y") || d.fields.contains_key(form::PREVIEWED)) {
+ return Err("Flare click coordinates must be finite numbers".into());
+ }
let mut values: Map =
FLARE_OPTIONS.iter().filter(|(k, ..)| d.fields.contains_key(*k)).map(|(k, default, ..)| (k.to_string(), json!(d.f64(k, *default)))).collect();
for key in ["raysOn", "ringsOn"] {
values.insert(key.into(), json!(d.bool(key)));
}
- let at = d.fields.get("x").and_then(Value::as_f64).zip(d.fields.get("y").and_then(Value::as_f64)).map(|(x, y)| Point::new(x, y));
- let options = run_and_close(app, "tool.setOption", json!({ "tool": "flare", "values": values }))?;
- let Some(at) = at else { return Ok(options) };
- let params = flare_params(&options, at);
- match vectorcraft_engine::perspective_click(&app.session, "shape.flare", ¶ms, at) {
- Some((id, p)) => app.run(&id, p),
- None => app.run("shape.flare", params),
+ if let Some((cmd, params)) = command {
+ // Accept the preview once; option persistence follows successful artwork creation.
+ let result = form::commit_preview(app, &cmd, params)?;
+ app.run("tool.setOption", json!({ "tool": "flare", "values": values }))?;
+ Ok(result)
+ } else {
+ run_and_close(app, "tool.setOption", json!({ "tool": "flare", "values": values }))
}
}
@@ -148,6 +189,81 @@ mod tests {
children.iter().filter_map(|c| c.name.clone()).collect()
}
+ /// Invalid control-channel coordinates must not turn a click dialog into toolbar options.
+ #[test]
+ fn invalid_click_coordinates_keep_the_dialog_and_preview_cancellable() {
+ for (key, value) in [("x", Value::Null), ("y", Value::Null), ("x", json!("invalid"))] {
+ let mut app = app();
+ let original = app.session.doc().unwrap().doc.layers.clone();
+ let depth = app.session.doc().unwrap().history.undo.len();
+ let options = app.session.tool_options_of("flare");
+ open(&mut app, Some(Point::new(220.0, 330.0)));
+ painted(&mut app);
+ let preview = app.session.doc().unwrap().doc.layers.clone();
+ let d = app.ui.dialog.as_mut().unwrap();
+ d.fields.insert(key.into(), value);
+ d.fields.insert("rings".into(), json!(4));
+ assert_eq!(super::super::confirm(&mut app).unwrap_err(), "Flare click coordinates must be finite numbers");
+ assert!(app.ui.dialog.is_some());
+ assert!(app.session.in_interaction());
+ assert_eq!(app.session.doc().unwrap().doc.layers, preview);
+ assert_eq!(app.session.doc().unwrap().history.undo.len(), depth);
+ assert_eq!(app.session.tool_options_of("flare"), options);
+ super::super::cancel(&mut app);
+ assert!(!app.session.in_interaction());
+ assert_eq!(app.session.doc().unwrap().doc.layers, original);
+ }
+ }
+
+ #[test]
+ fn cancelling_toolbar_options_preserves_an_existing_interaction() {
+ let mut app = app();
+ app.session.begin_interaction("Existing gesture").unwrap();
+ app.session.preview("shape.rectangle", &json!({"x":10,"y":10,"width":40,"height":40})).unwrap();
+ let previewed = app.session.doc().unwrap().doc.layers.clone();
+ open(&mut app, None);
+ painted(&mut app);
+ super::super::cancel(&mut app);
+ assert!(app.session.in_interaction());
+ assert_eq!(app.session.doc().unwrap().doc.layers, previewed);
+ app.session.cancel_interaction().unwrap();
+ }
+
+ #[test]
+ fn reset_updates_live_preview_and_cancel_discards_art_and_options() {
+ let mut app = app();
+ app.run("tool.setOption", json!({"tool":"flare", "values":{"rings":3}})).unwrap();
+ let original = app.session.doc().unwrap().doc.layers.clone();
+ let depth = app.session.doc().unwrap().history.undo.len();
+ let options = app.session.tool_options_of("flare");
+ open(&mut app, Some(Point::new(220.0, 330.0)));
+ let text = painted(&mut app);
+ assert!(text.contains("Preview"));
+ assert_eq!(flare_parts(&app).iter().filter(|s| *s == "Ring").count(), 3);
+ assert_eq!(app.session.doc().unwrap().history.undo.len(), depth);
+ app.ui.dialog.as_mut().unwrap().fields.insert("rings".into(), json!(4.0));
+ painted(&mut app);
+ assert_eq!(flare_parts(&app).iter().filter(|s| *s == "Ring").count(), 4);
+ app.run("ui.dialogReset", json!({})).unwrap();
+ painted(&mut app);
+ assert_eq!(flare_parts(&app).iter().filter(|s| *s == "Ring").count(), 10);
+ assert_eq!(app.session.tool_options_of("flare"), options, "preview doesn't persist options");
+ super::super::cancel(&mut app);
+ assert_eq!(app.session.doc().unwrap().doc.layers, original);
+ assert_eq!(app.session.doc().unwrap().history.undo.len(), depth);
+ assert_eq!(app.session.tool_options_of("flare"), options);
+ // Accepting the same reset preview produces one flare and one Undo step.
+ open(&mut app, Some(Point::new(220.0, 330.0)));
+ painted(&mut app);
+ app.run("ui.dialogReset", json!({})).unwrap();
+ painted(&mut app);
+ super::super::confirm(&mut app).unwrap();
+ assert_eq!(app.session.doc().unwrap().history.undo.len(), depth + 1);
+ assert_eq!(flare_parts(&app).iter().filter(|s| *s == "Ring").count(), 10);
+ app.run("edit.undo", json!({})).unwrap();
+ assert_eq!(app.session.doc().unwrap().doc.layers, original);
+ }
+
#[test]
fn the_toolbar_opens_the_options_and_ok_keeps_them_for_the_next_drag() {
let mut app = app();
@@ -200,4 +316,24 @@ mod tests {
let o = app.session.tool_options_of("flare");
assert_eq!((o["opacity"].as_f64(), o["diameter"].as_f64()), (Some(100.0), Some(0.0)));
}
+
+ #[test]
+ fn ui_dialog_reset_puts_the_defaults_back_and_keeps_where_a_click_opened_it() {
+ let mut app = app();
+ assert_eq!(app.run("ui.dialogReset", json!({})).unwrap_err(), "no dialog open");
+ app.run("tool.setOption", json!({"tool": "flare", "values": {"rings": 3, "raysOn": false, "largest": 120}})).unwrap();
+ crate::dialogs::open_tool_dialog(&mut app, "flare", json!({"x": 300, "y": 300}));
+ let d = app.run("ui.dialogReset", json!({})).unwrap();
+ assert_eq!((d["kind"].as_str(), d["fields"]["rings"].as_f64(), d["fields"]["raysOn"].as_bool()), (Some(KIND), Some(10.0), Some(true)));
+ let d = app.ui.dialog.as_ref().expect("the dialog stays open");
+ assert_eq!((d.f64("largest", 0.0), d.f64("x", 0.0), d.f64("y", 0.0)), (50.0, 300.0, 300.0));
+ // The tool keeps its options until OK, which draws the flare with the defaults where the click was.
+ assert_eq!(app.session.tool_options_of("flare")["rings"].as_u64(), Some(3));
+ super::super::confirm(&mut app).unwrap();
+ let parts = flare_parts(&app);
+ assert_eq!((parts.iter().filter(|p| *p == "Ring").count(), parts.iter().any(|p| p == "Rays")), (10, true), "{parts:?}");
+ // A dialog without a Reset refuses it.
+ app.ui.dialog = Some(Dialog::new("move", json!({"dx": 1})));
+ assert_eq!(app.run("ui.dialogReset", json!({})).unwrap_err(), "the open dialog has no Reset");
+ }
}
diff --git a/crates/ui-egui/src/dialogs/flatten.rs b/crates/ui-egui/src/dialogs/flatten.rs
index b4c54ed2ff..3cd0a51110 100644
--- a/crates/ui-egui/src/dialogs/flatten.rs
+++ b/crates/ui-egui/src/dialogs/flatten.rs
@@ -319,16 +319,14 @@ mod tests {
#[test]
fn ok_says_in_the_status_bar_when_an_image_could_not_be_decoded() {
const WARNING: &str = "an image couldn't be decoded and is missing from the picture";
- // A PNG whose header reads (so it places at its size) but whose pixel data is cut short.
+ // A PNG whose header reads but whose pixel data is cut short.
let mut png = Vec::new();
image::RgbaImage::from_pixel(64, 32, image::Rgba([200, 30, 30, 255]))
.write_to(&mut std::io::Cursor::new(&mut png), image::ImageFormat::Png)
.unwrap();
- let idat = png.windows(4).position(|w| w == b"IDAT").unwrap();
- png.truncate(idat + 8);
for preview in [true, false] {
let mut app = scene();
- let placed = app.run("file.place", json!({"name": "cut.png", "dataBase64": vectorcraft_format::base64_encode(&png)})).unwrap();
+ let placed = vectorcraft_testkit::fixtures::place_cut_png(&mut app.session, &png, json!({}));
// The image is half transparent itself, so Flatten Transparency flattens it wherever it was placed.
app.run("transparency.set", json!({"ids": placed["ids"], "opacity": 50})).unwrap();
app.run("select.all", json!({})).unwrap();
diff --git a/crates/ui-egui/src/dialogs/form.rs b/crates/ui-egui/src/dialogs/form.rs
index f1c45cf184..b82fe54f89 100644
--- a/crates/ui-egui/src/dialogs/form.rs
+++ b/crates/ui-egui/src/dialogs/form.rs
@@ -181,7 +181,14 @@ fn text_edit_limited_name(ui: &mut egui::Ui, d: &mut Dialog, key: &str, width: f
.inner_margin(egui::Margin::symmetric(6, 3))
.show(ui, |ui| {
crate::theme::strong_selected_text(ui);
- ui.add(egui::TextEdit::singleline(&mut s).id(id).frame(egui::Frame::NONE).desired_width(width).char_limit(max_chars))
+ ui.add(
+ egui::TextEdit::singleline(&mut s)
+ .id(id)
+ .frame(egui::Frame::NONE)
+ .align(egui::Align2::LEFT_CENTER)
+ .desired_width(width)
+ .char_limit(max_chars),
+ )
});
if r.inner.changed() {
d.fields.insert(key.into(), Value::String(s));
@@ -404,7 +411,7 @@ pub(super) fn param_fields(
}
}
Value::String(mut s) => {
- if ui.add(egui::TextEdit::singleline(&mut s).desired_width(140.0)).changed() {
+ if ui.add(egui::TextEdit::singleline(&mut s).align(egui::Align2::LEFT_CENTER).desired_width(140.0)).changed() {
d.fields.insert(k.clone(), json!(s));
changed = true;
}
diff --git a/crates/ui-egui/src/dialogs/freehand.rs b/crates/ui-egui/src/dialogs/freehand.rs
index fa60dce6e2..783e79093a 100644
--- a/crates/ui-egui/src/dialogs/freehand.rs
+++ b/crates/ui-egui/src/dialogs/freehand.rs
@@ -7,8 +7,10 @@
//! Paintbrush), `keepSelected` (Pencil, Paintbrush and Blob Brush), `mergeOnlySelection` (Blob
//! Brush), `closeWithin` and `editWithin` (screen pixels, 0 turns it off; Pencil and Paintbrush),
//! `angle` (degrees) and `roundness` (percent; Eraser), `livePreview` (Pencil: the stroke shows
-//! with its fill and stroke while it is drawn, or as a thin line until the release) and `size`
-//! (points; Blob Brush and Eraser).
+//! with its fill and stroke while it is drawn, or as a thin line until the release), `size`
+//! (points; Blob Brush and Eraser), and `sizeMode` (`fixed` or `pressure`) and `sizeVariation`
+//! (points; Blob Brush and Eraser: with Pressure the tip is Size − Variation wide at the lightest
+//! pen pressure and Size + Variation at the heaviest).
use serde_json::{Map, Value, json};
@@ -27,11 +29,13 @@ pub(super) const SPEC: DialogSpec = DialogSpec { heading, body, confirm, min_wid
pub const TOOLS: [&str; 5] = ["pencil", "paintbrush", "smooth", "blobBrush", "eraser"];
/// The options the dialog edits, in the order it shows them (a tool has those it reports).
-const KEYS: [&str; 12] = [
+const KEYS: [&str; 14] = [
"fidelity",
"angle",
"roundness",
"size",
+ "sizeMode",
+ "sizeVariation",
"fill",
"altSmooth",
"keepSelected",
@@ -134,6 +138,28 @@ fn number(ui: &mut egui::Ui, d: &mut Dialog, (key, label): (&str, &str), suffix:
});
}
+/// Width of the Blob Brush's and the Eraser's Size mode menu.
+const MODE_W: f32 = 96.0;
+
+/// The Blob Brush's and the Eraser's Size rows: Size with its Fixed or Pressure menu before the
+/// field, then the Variation that Pressure adds and takes (greyed while Size is Fixed).
+fn blob_size(ui: &mut egui::Ui, d: &mut Dialog) {
+ const MODES: [&str; 2] = ["fixed", "pressure"];
+ let pressure = d.str("sizeMode") == "pressure";
+ let labels = ["Fixed", "Pressure"];
+ let label_w = label_w(ui) - MODE_W - ui.spacing().item_spacing.x;
+ let size = d.f64("size", 10.0);
+ widgets::label_row(ui, tl!("Size:"), label_w, |ui| {
+ if let Some(m) = widgets::dropdown(ui, "freehand-size-mode", labels[usize::from(pressure)], &labels, MODE_W).and_then(|i| MODES.get(i)) {
+ d.fields.insert("sizeMode".into(), json!(m));
+ }
+ if let Some(x) = widgets::range_field(ui, ("freehand-field", "size"), size, 0.1..=1000.0, "pt", 1, FIELD_W) {
+ d.fields.insert("size".into(), json!(x));
+ }
+ });
+ ui.add_enabled_ui(pressure, |ui| number(ui, d, ("sizeVariation", tl!("Variation:")), "pt", 1, (0.0, 1000.0)));
+}
+
/// The Fidelity rows: the label on a line of its own, then a logarithmic slider from the tool's
/// lowest Fidelity to [`FIDELITY_MAX`] across the row with the field at its end, both to two
/// decimals, and Accurate and Smooth under the slider's ends.
@@ -182,7 +208,9 @@ fn body(_app: &mut VectorcraftApp, ui: &mut egui::Ui, d: &mut Dialog) -> bool {
if d.fields.contains_key("roundness") {
number(ui, d, ("roundness", tl!("Roundness:")), "%", 0, (1.0, 100.0));
}
- if d.fields.contains_key("size") {
+ if d.fields.contains_key("sizeMode") {
+ blob_size(ui, d);
+ } else if d.fields.contains_key("size") {
number(ui, d, ("size", tl!("Size:")), "pt", 1, (0.1, 1000.0));
}
if d.fields.contains_key("fill") {
diff --git a/crates/ui-egui/src/dialogs/freehand/tests.rs b/crates/ui-egui/src/dialogs/freehand/tests.rs
index 53623a63d8..6d316ef024 100644
--- a/crates/ui-egui/src/dialogs/freehand/tests.rs
+++ b/crates/ui-egui/src/dialogs/freehand/tests.rs
@@ -313,6 +313,30 @@ fn the_blob_brush_options_set_what_a_stroke_merges_with_and_selects() {
/// Eraser Tool Options' Angle and Roundness shape the tip the next Eraser drag erases with,
/// and the tool keeps them while another tool is chosen.
+/// The Blob Brush's and the Eraser's Size is Fixed or Pressure (#4590, #3961), with the Variation
+/// Pressure adds and takes; OK sets both, each tool keeping its own, and the Pencil has neither.
+#[test]
+fn the_blob_brush_and_eraser_size_can_follow_the_pen_pressure() {
+ let mut app = app();
+ for (tool, variation) in [("blobBrush", 6.0), ("eraser", 4.0)] {
+ app.run("tool.options", json!({"tool": tool})).unwrap();
+ let text = painted(&mut app);
+ assert!(text.contains("Fixed") && text.contains("Variation:"), "{tool}: {text}");
+ let d = app.ui.dialog.as_mut().unwrap();
+ assert_eq!((d.str("sizeMode"), d.f64("sizeVariation", -1.0)), ("fixed".to_string(), 0.0), "{tool}: Fixed with no variation by default");
+ d.fields.insert("sizeMode".into(), json!("pressure"));
+ d.fields.insert("sizeVariation".into(), json!(variation));
+ super::super::confirm(&mut app).unwrap();
+ let o = app.session.tool_options_of(tool);
+ assert_eq!((o["sizeMode"].clone(), o["sizeVariation"].as_f64()), (json!("pressure"), Some(variation)), "{tool}");
+ app.run("tool.options", json!({"tool": tool})).unwrap();
+ assert!(painted(&mut app).contains("Pressure"), "{tool}");
+ }
+ app.run("tool.options", json!({"tool": "pencil"})).unwrap();
+ let text = painted(&mut app);
+ assert!(!text.contains("Variation:") && !text.contains("Fixed"), "{text}");
+}
+
#[test]
fn the_eraser_options_set_the_tips_angle_and_roundness() {
let mut app = app();
diff --git a/crates/ui-egui/src/dialogs/graph_data.rs b/crates/ui-egui/src/dialogs/graph_data.rs
index a747353632..c5b7d7e58a 100644
--- a/crates/ui-egui/src/dialogs/graph_data.rs
+++ b/crates/ui-egui/src/dialogs/graph_data.rs
@@ -379,7 +379,7 @@ fn body(app: &mut VectorcraftApp, ui: &mut egui::Ui, d: &mut Dialog) -> bool {
let mut text = d.str("entry");
// The entry box has the keys when the window opens, so Enter moves down instead of applying.
widgets::take_dialog_focus(ui, entry_id, &text);
- let r = ui.add(egui::TextEdit::singleline(&mut text).id(entry_id).desired_width(260.0));
+ let r = ui.add(egui::TextEdit::singleline(&mut text).id(entry_id).align(egui::Align2::LEFT_CENTER).desired_width(260.0));
if r.changed() {
d.fields.insert("entry".into(), json!(clean(&text)));
}
diff --git a/crates/ui-egui/src/dialogs/import_pdf.rs b/crates/ui-egui/src/dialogs/import_pdf.rs
index 45ec6850f7..eb30028b09 100644
--- a/crates/ui-egui/src/dialogs/import_pdf.rs
+++ b/crates/ui-egui/src/dialogs/import_pdf.rs
@@ -297,7 +297,7 @@ fn body(app: &mut VectorcraftApp, ui: &mut egui::Ui, d: &mut Dialog) -> bool {
fn password_row(ui: &mut egui::Ui, d: &mut Dialog) {
widgets::label_row(ui, tl!("Password"), LABEL_WIDTH, |ui| {
let mut s = d.str("password");
- let r = ui.add(egui::TextEdit::singleline(&mut s).password(true).desired_width(180.0));
+ let r = ui.add(egui::TextEdit::singleline(&mut s).password(true).align(egui::Align2::LEFT_CENTER).desired_width(180.0));
if r.changed() {
d.fields.insert("password".into(), json!(s));
}
diff --git a/crates/ui-egui/src/dialogs/missing_fonts/tests.rs b/crates/ui-egui/src/dialogs/missing_fonts/tests.rs
index 2dbfdf8101..20266d97b3 100644
--- a/crates/ui-egui/src/dialogs/missing_fonts/tests.rs
+++ b/crates/ui-egui/src/dialogs/missing_fonts/tests.rs
@@ -55,6 +55,11 @@ fn open(app: &mut VectorcraftApp, path: &Path) {
crate::io::open_path(app, &path.to_string_lossy()).unwrap();
}
+/// How long a test waits for the dialog's search to end. The wait only ends a test whose search
+/// never ends. A machine busy with other builds can hold a walker for seconds. It is shorter than a
+/// search's default `maxSeconds` of 60, which would end a search that does not end by itself.
+const WAIT: Duration = Duration::from_secs(30);
+
fn kind(app: &VectorcraftApp) -> Option<&str> {
app.ui.dialog.as_ref().map(|d| d.kind.as_str())
}
@@ -101,7 +106,7 @@ fn the_documents_fonts_folder_is_offered_and_searched_off_the_ui_thread() {
let r = super::super::confirm(&mut app).unwrap();
assert!(matches!(r["state"].as_str(), Some("searching" | "done")), "{r}");
assert_eq!(kind(&app), Some(KIND), "the dialog stays open while it searches");
- let until = Instant::now() + Duration::from_secs(10);
+ let until = Instant::now() + WAIT;
while app.ui.dialog.as_ref().is_some_and(|d| d.str("state") == "searching") && Instant::now() < until {
frame(&mut app);
std::thread::sleep(Duration::from_millis(5));
diff --git a/crates/ui-egui/src/dialogs/new_text_style.rs b/crates/ui-egui/src/dialogs/new_text_style.rs
new file mode 100644
index 0000000000..1949f00545
--- /dev/null
+++ b/crates/ui-egui/src/dialogs/new_text_style.rs
@@ -0,0 +1,60 @@
+//! New Character Style and New Paragraph Style: the new style's name. OK makes the style from the
+//! text that was selected when the dialog opened (`charStyle.new`, `paraStyle.new`).
+//!
+//! Fields: `name`, `__para` (true for a paragraph style) and `__target` (the `id`, `start` and
+//! `end` of the Type tool's selection, empty for the selected objects, and the `attrs` that text had
+//! when the dialog opened).
+
+use serde_json::{Value, json};
+
+use super::swatch_options::{grid, label};
+use super::{DialogSpec, form};
+use crate::VectorcraftApp;
+use crate::state::Dialog;
+
+/// The dialog kind of New Character Style and New Paragraph Style.
+pub const KIND: &str = "newTextStyle";
+
+pub(super) const SPEC: DialogSpec = DialogSpec { heading, body, confirm, min_width: 320.0, ..DialogSpec::FORM };
+
+fn para(d: &Dialog) -> bool {
+ d.fields.get("__para").and_then(Value::as_bool).unwrap_or(false)
+}
+
+fn heading(d: &Dialog) -> String {
+ if para(d) { tl!("New Paragraph Style") } else { tl!("New Character Style") }.into()
+}
+
+/// Open New Character Style (`para`: New Paragraph Style) with the name `charStyle.new` would give
+/// the style, to make it from the text `target` names.
+pub fn open(app: &mut VectorcraftApp, para: bool, target: Value) -> Result {
+ let d = &app.session.active().ok_or("no document open")?.doc;
+ let name = vectorcraft_engine::cmd::textstyles::new_style_name(d, para);
+ let mut target = target;
+ if let Some(attrs) = vectorcraft_engine::cmd::textstyles::target_style_attrs(&app.session, &target, para) {
+ target["attrs"] = Value::Object(attrs);
+ }
+ app.ui.dialog = Some(Dialog::new(KIND, json!({ "name": name, "__para": para, "__target": target })));
+ Ok(json!({ "dialog": KIND }))
+}
+
+fn body(_: &mut VectorcraftApp, ui: &mut egui::Ui, d: &mut Dialog) -> bool {
+ grid(ui, |ui| {
+ label(ui, tl!("Style Name:"));
+ form::text(ui, d, "name", 190.0);
+ ui.end_row();
+ });
+ false
+}
+
+/// OK: make the style with the name. A name another style has, or an empty one, keeps the dialog
+/// open.
+fn confirm(app: &mut VectorcraftApp, d: &Dialog) -> Result {
+ let mut params = d.fields.get("__target").filter(|t| t.is_object()).cloned().unwrap_or_else(|| json!({}));
+ params["name"] = json!(d.str("name"));
+ let r = app.run(if para(d) { "paraStyle.new" } else { "charStyle.new" }, params);
+ if r.is_ok() {
+ app.ui.dialog = None;
+ }
+ r
+}
diff --git a/crates/ui-egui/src/dialogs/print.rs b/crates/ui-egui/src/dialogs/print.rs
index b767f8dae4..5355ef0f62 100644
--- a/crates/ui-egui/src/dialogs/print.rs
+++ b/crates/ui-egui/src/dialogs/print.rs
@@ -582,7 +582,7 @@ fn general(app: &VectorcraftApp, ui: &mut egui::Ui, d: &mut Dialog) {
}
}
let mut range = get(d, "range").as_str().unwrap_or_default().to_string();
- let edit = egui::TextEdit::singleline(&mut range).desired_width(140.0).hint_text("1-3, 5");
+ let edit = egui::TextEdit::singleline(&mut range).align(egui::Align2::LEFT_CENTER).desired_width(140.0).hint_text("1-3, 5");
if ui.add_enabled(artboards == PrintArtboards::Range, edit).changed() {
set(d, "range", json!(range));
}
diff --git a/crates/ui-egui/src/dialogs/rearrange_artboards.rs b/crates/ui-egui/src/dialogs/rearrange_artboards.rs
index 7a619878cd..6fa90910a4 100644
--- a/crates/ui-egui/src/dialogs/rearrange_artboards.rs
+++ b/crates/ui-egui/src/dialogs/rearrange_artboards.rs
@@ -30,6 +30,15 @@ pub fn fields() -> Value {
json!({"layout": "gridByRow", "order": "leftToRight", "columns": 2, "spacing": 20, "moveArtwork": true})
}
+/// The fields the menu item opens with, retaining the spacing from its last confirmation.
+pub fn open_fields(app: &VectorcraftApp) -> Value {
+ let mut fields = fields();
+ if let Some(spacing) = app.ui.rearrange_artboards_spacing.as_f64() {
+ fields["spacing"] = json!(spacing);
+ }
+ fields
+}
+
/// A layout's toggle: its tooltip and its artboards' cells (column, row) in their order, left to
/// right.
fn layout_glyph(l: ArtboardLayout) -> (&'static str, &'static [(u8, u8)]) {
@@ -110,7 +119,9 @@ fn body(app: &mut VectorcraftApp, ui: &mut egui::Ui, d: &mut Dialog) -> bool {
}
fn confirm(app: &mut VectorcraftApp, d: &Dialog) -> Result {
- run_and_close(app, CMD, params(d))
+ let result = run_and_close(app, CMD, params(d))?;
+ app.ui.rearrange_artboards_spacing = json!(d.f64("spacing", 20.0));
+ Ok(result)
}
#[cfg(test)]
@@ -169,6 +180,19 @@ mod tests {
assert_eq!(app.session.doc().unwrap().history.undo.len(), undo + 1);
}
+ /// The spacing confirmed last is the one the dialog opens with next time (#4558).
+ #[test]
+ fn keeps_spacing_when_reopening_after_rearranging() {
+ let mut app = VectorcraftApp::new(Session::new(), Default::default());
+ app.run("file.new", json!({"width": 100, "height": 50, "artboards": 3})).unwrap();
+ app.run("ui.menuDialog", json!({"command": CMD})).unwrap();
+ app.ui.dialog.as_mut().unwrap().fields.insert("spacing".into(), json!(37));
+ crate::dialogs::confirm(&mut app).unwrap();
+
+ app.run("ui.menuDialog", json!({"command": CMD})).unwrap();
+ assert_eq!(app.ui.dialog.as_ref().unwrap().f64("spacing", 20.0), 37.0);
+ }
+
/// Clicking the layout and order toggles sets the fields (the toggles' rects from the frame).
#[test]
fn the_toggles_set_layout_and_order() {
diff --git a/crates/ui-egui/src/dialogs/save_options.rs b/crates/ui-egui/src/dialogs/save_options.rs
index b320897dee..cbf450a6aa 100644
--- a/crates/ui-egui/src/dialogs/save_options.rs
+++ b/crates/ui-egui/src/dialogs/save_options.rs
@@ -87,6 +87,9 @@ fn shown(f: &Format) -> impl Iterator- {
|| (range && o.name == "artboard")
|| (separate && o.name == "range")
|| (matches!(f.id, "ai" | "ait") && o.name == "useArtboards")
+ // EPS Save keeps a page and the complete editing document; cropped and
+ // selected-only output belongs to Export, never this save dialog.
+ || (f.id == "eps" && matches!(o.name, "useArtboards" | "selectedOnly"))
|| (f.id == "ait" && o.name == "aiVersion"))
})
}
@@ -121,7 +124,7 @@ fn artboard_range(ui: &mut egui::Ui, d: &mut Dialog) {
d.fields.insert("all".into(), json!(all));
}
let mut range = d.str("range");
- let field = egui::TextEdit::singleline(&mut range).desired_width(90.0).hint_text("1-3, 5");
+ let field = egui::TextEdit::singleline(&mut range).align(egui::Align2::LEFT_CENTER).desired_width(90.0).hint_text("1-3, 5");
if ui.add_enabled(!all, field).changed() {
d.fields.insert("range".into(), json!(range));
}
diff --git a/crates/ui-egui/src/dialogs/save_options/tests.rs b/crates/ui-egui/src/dialogs/save_options/tests.rs
index 9c8ae60bb1..fe46331a5e 100644
--- a/crates/ui-egui/src/dialogs/save_options/tests.rs
+++ b/crates/ui-egui/src/dialogs/save_options/tests.rs
@@ -72,7 +72,7 @@ fn save_as_svg_opens_svg_options_then_writes_svg() {
// The save panel offers every save format, the document's own first.
let pick = &picks.borrow()[0];
let labels: Vec<&str> = pick.filters.iter().map(|f| f.0.as_str()).collect();
- assert_eq!(labels, ["VectorCraft", "VectorCraft Template", "PDF", "SVG", "SVG Compressed", "PDF-compatible .ai"]);
+ assert_eq!(labels, ["VectorCraft", "VectorCraft Template", "PDF", "SVG", "SVG Compressed", "PDF-compatible .ai", "EPS"]);
assert_eq!(pick.name, "Untitled-1.vectorcraft");
let d = dialog(&app);
assert_eq!((d.kind.as_str(), d.str("path").as_str(), d.str("mode").as_str()), ("svgOptions", "art.svg", "save"));
@@ -332,3 +332,18 @@ fn save_as_pdf_asks_with_the_save_pdf_dialog_and_remembers_its_options() {
assert_eq!(dialog(&app).str("compatibility"), "1.5");
assert_eq!(dialog(&app).str("__save"), "file.saveCopy");
}
+
+#[test]
+fn eps_save_as_keeps_page_options_and_writes_eps_without_export_only_switches() {
+ let (mut app, written, _) = desktop("art.eps");
+ app.run("file.saveAs", json!({})).unwrap();
+ let names: Vec<_> = shown(fileio::format("eps").unwrap()).map(|option| option.name).collect();
+ assert!(!names.contains(&"useArtboards") && !names.contains(&"selectedOnly"));
+ assert!(names.contains(&"previewFormat"));
+ super::super::confirm(&mut app).unwrap();
+ assert!(app.ui.dialog.is_none());
+ let saved = written.borrow();
+ assert_eq!(saved[0].0, "art.eps");
+ assert!(vectorcraft_eps::native(&saved[0].1).is_some());
+ assert_eq!(app.session.active().unwrap().format, "eps");
+}
diff --git a/crates/ui-egui/src/dialogs/save_pdf.rs b/crates/ui-egui/src/dialogs/save_pdf.rs
index 4b8fc33c6d..72a8d64ac9 100644
--- a/crates/ui-egui/src/dialogs/save_pdf.rs
+++ b/crates/ui-egui/src/dialogs/save_pdf.rs
@@ -321,7 +321,7 @@ pub(super) fn length(ui: &mut egui::Ui, d: &mut Dialog, path: &str, unit: Unit,
pub(super) fn text(ui: &mut egui::Ui, d: &mut Dialog, path: &str, enabled: bool) {
let mut s = get(d, path).as_str().unwrap_or_default().to_string();
- if ui.add_enabled(enabled, egui::TextEdit::singleline(&mut s).desired_width(240.0)).changed() {
+ if ui.add_enabled(enabled, egui::TextEdit::singleline(&mut s).align(egui::Align2::LEFT_CENTER).desired_width(240.0)).changed() {
set(d, path, json!(s));
}
}
@@ -493,7 +493,10 @@ fn general(ui: &mut egui::Ui, d: &mut Dialog, editor: bool) {
d.fields.insert("__allArtboards".into(), json!(all));
}
let mut range = d.str("range");
- if ui.add_enabled(!all, egui::TextEdit::singleline(&mut range).desired_width(140.0).hint_text("1-3, 5")).changed() {
+ if ui
+ .add_enabled(!all, egui::TextEdit::singleline(&mut range).align(egui::Align2::LEFT_CENTER).desired_width(140.0).hint_text("1-3, 5"))
+ .changed()
+ {
d.fields.insert("range".into(), json!(range));
}
});
@@ -700,7 +703,7 @@ fn password_check(ui: &mut egui::Ui, d: &mut Dialog, path: &str, flag: &str, lab
fn password_field(ui: &mut egui::Ui, d: &mut Dialog, path: &str, enabled: bool) {
let mut s = get(d, path).as_str().unwrap_or_default().to_string();
- if ui.add_enabled(enabled, egui::TextEdit::singleline(&mut s).password(true).desired_width(200.0)).changed() {
+ if ui.add_enabled(enabled, egui::TextEdit::singleline(&mut s).password(true).align(egui::Align2::LEFT_CENTER).desired_width(200.0)).changed() {
set(d, path, json!(s));
}
}
diff --git a/crates/ui-egui/src/dialogs/save_pdf/tests.rs b/crates/ui-egui/src/dialogs/save_pdf/tests.rs
index fc766c6d6e..6ef85620a8 100644
--- a/crates/ui-egui/src/dialogs/save_pdf/tests.rs
+++ b/crates/ui-egui/src/dialogs/save_pdf/tests.rs
@@ -131,15 +131,13 @@ fn warnings_reach_the_status_and_errors_keep_the_dialog_open() {
#[test]
fn an_image_that_couldnt_be_decoded_is_named_in_the_status() {
let (mut app, written, _) = app();
- // A PNG whose header reads (so it places at its size) but whose pixel data is cut short.
- let mut cut = vec![];
+ // A PNG whose header reads but whose pixel data is cut short.
+ let mut png = vec![];
image::RgbaImage::from_pixel(64, 32, image::Rgba([200, 30, 30, 255]))
- .write_to(&mut std::io::Cursor::new(&mut cut), image::ImageFormat::Png)
+ .write_to(&mut std::io::Cursor::new(&mut png), image::ImageFormat::Png)
.unwrap();
- let idat = cut.windows(4).position(|w| w == b"IDAT").unwrap();
- cut.truncate(idat + 8);
// The image is placed on the first artboard.
- app.run("file.place", json!({"name": "cut.png", "dataBase64": vectorcraft_format::base64_encode(&cut), "at": [60, 50]})).unwrap();
+ vectorcraft_testkit::fixtures::place_cut_png(&mut app.session, &png, json!({"at": [60, 50]}));
app.run("ui.savePdfDialog", json!({"path": "/tmp/cut.pdf"})).unwrap();
super::super::confirm(&mut app).unwrap();
assert_eq!(app.ui.status, "Saved /tmp/cut.pdf with 1 note(s): an image couldn't be decoded and is missing from the picture");
diff --git a/crates/ui-egui/src/dialogs/shapes.rs b/crates/ui-egui/src/dialogs/shapes.rs
index bc9f2916ff..392c043f35 100644
--- a/crates/ui-egui/src/dialogs/shapes.rs
+++ b/crates/ui-egui/src/dialogs/shapes.rs
@@ -181,6 +181,8 @@ fn body(app: &mut VectorcraftApp, ui: &mut egui::Ui, d: &mut Dialog) -> bool {
});
} else if d.kind == "arc" {
arc_form(ui, d, unit);
+ } else if LINKED.contains(&d.kind.as_str()) {
+ linked_size_form(ui, d, unit);
} else {
form::grid(ui, d, unit);
}
@@ -227,7 +229,17 @@ fn arc_form(ui: &mut egui::Ui, d: &mut Dialog, unit: Unit) {
if d.f64("lengthY", 100.0) != ly0 {
arc_pin_to_anchor(d);
}
- form::choice(ui, d, "arcType", tl!("Type:"), (form::FIELD_W, form::FIELD_W - 12.0), &[("open", tl!("Open")), ("closed", tl!("Closed"))]);
+ form::choice(
+ ui,
+ d,
+ "arcType",
+ tl!("Type:"),
+ (form::FIELD_W, form::FIELD_W - 12.0),
+ &[
+ ("open", crate::i18n::tr_ctx(crate::i18n::current(), "shape", "Open")),
+ ("closed", crate::i18n::tr_ctx(crate::i18n::current(), "shape", "Closed")),
+ ],
+ );
form::choice(
ui,
d,
@@ -250,6 +262,102 @@ fn arc_form(ui: &mut egui::Ui, d: &mut Dialog, unit: Unit) {
form::check(ui, d, "fillArc", tl!("Fill Arc"));
}
+/// The click dialogs whose Width and Height share a Constrain Width and Height Proportions link
+/// (
,
+/// ): the same
+/// link as the Transform panel's ([`crate::panels::transform::constrain_link`]), drawn the same way.
+const LINKED: [&str; 3] = ["rectangle", "roundedRectangle", "ellipse"];
+
+/// The dialog field holding the link's state (UI-only, as every `__` field is).
+const LINK: &str = "__constrain";
+
+/// The dialog field holding the link state the dialog last applied ([`link_changed`]): a change of
+/// [`LINK`], by its button or from outside (`ui.dialog.set`), shows as a difference from it.
+const APPLIED: &str = "__constrainApplied";
+
+/// The dialog field holding height ÷ width while the link is on: the proportions it keeps.
+const RATIO: &str = "__ratio";
+
+/// Where the link's state waits for the next of these dialogs (egui memory, this run only).
+const LINK_STATE: &str = "shape-size-link";
+
+/// Width and Height (then a rounded rectangle's radius) with the Constrain Width and Height
+/// Proportions link beside the two size rows. While it is on, typing one side sets the other, so
+/// the shape keeps the proportions it had when the link was turned on. The next of these dialogs
+/// opens with the link as this one left it.
+fn linked_size_form(ui: &mut egui::Ui, d: &mut Dialog, unit: Unit) {
+ if !d.fields.contains_key(LINK) {
+ d.fields.insert(LINK.into(), json!(crate::panels::pstate::(ui.ctx(), LINK_STATE)));
+ }
+ sync_link(ui.ctx(), d);
+ const BUTTON: f32 = 22.0;
+ let mut rows: Option = None;
+ egui::Grid::new("shape-size-dlg").num_columns(3).spacing([10.0, 8.0]).show(ui, |ui| {
+ for (key, label) in [("width", "Width:"), ("height", "Height:")] {
+ let row = form::row_label(ui, label);
+ if ui.label_inputs_by(row.id, |ui| form::length(ui, d, key, unit, form::FIELD_W)) {
+ follow_link(d, key);
+ }
+ // The link's column: the button is drawn over both rows' cells once the grid is laid out.
+ let (_, cell) = ui.allocate_space(egui::vec2(BUTTON, BUTTON));
+ rows = Some(rows.map_or(cell, |r| r.union(cell)));
+ ui.end_row();
+ }
+ if d.kind == "roundedRectangle" {
+ form::length_field(ui, d, "radius", &form::humanized("radius"), unit);
+ }
+ });
+ let Some(rows) = rows else { return };
+ let on = d.bool(LINK);
+ let rect = egui::Rect::from_center_size(rows.center(), egui::vec2(BUTTON, BUTTON));
+ let resp = ui.interact(rect, ui.scope_id().with("shape-size-link"), egui::Sense::click());
+ let icon = if on { "link" } else { "link-2-off" };
+ if widgets::paint_icon_button(ui, resp, icon, "Constrain Width and Height Proportions", on).clicked() {
+ d.fields.insert(LINK.into(), json!(!on));
+ sync_link(ui.ctx(), d);
+ }
+}
+
+/// Apply a change of the link's state, however it was made ([`link_changed`]), and keep the new
+/// state for the next of these dialogs.
+fn sync_link(ctx: &egui::Context, d: &mut Dialog) {
+ if let Some(on) = link_changed(d) {
+ crate::panels::set_pstate(ctx, LINK_STATE, on);
+ }
+}
+
+/// When the link's state differs from the one the dialog last applied (or none was applied yet),
+/// apply it and return it: turned on, the link keeps the proportions of the sizes the dialog shows
+/// then; turned off, it forgets them. A side of zero when it turns on leaves nothing to keep, so
+/// typing changes only the side typed until the link is turned off and on again.
+fn link_changed(d: &mut Dialog) -> Option {
+ let on = d.bool(LINK);
+ if d.fields.get(APPLIED).and_then(Value::as_bool) == Some(on) {
+ return None;
+ }
+ d.fields.insert(APPLIED.into(), json!(on));
+ let ratio = d.f64("height", 100.0) / d.f64("width", 100.0);
+ if on && ratio.is_finite() && ratio != 0.0 {
+ d.fields.insert(RATIO.into(), json!(ratio));
+ } else {
+ d.fields.remove(RATIO);
+ }
+ Some(on)
+}
+
+/// After the side `typed` ("width" or "height") was typed with the link on, set the other side
+/// from the proportions the link keeps.
+fn follow_link(d: &mut Dialog, typed: &str) {
+ let ratio = d.f64(RATIO, 0.0);
+ if !d.bool(LINK) || !ratio.is_finite() || ratio == 0.0 {
+ return;
+ }
+ let (other, v) = if typed == "width" { ("height", d.f64("width", 100.0) * ratio) } else { ("width", d.f64("height", 100.0) / ratio) };
+ if v.is_finite() {
+ d.fields.insert(other.into(), json!(v));
+ }
+}
+
/// The top-left corner of a rectangle or ellipse: the click itself, or with Alt held (draw from centre) the click minus half the size.
fn box_origin(d: &Dialog) -> (f64, f64) {
let (x, y) = (d.f64("x", 0.0), d.f64("y", 0.0));
@@ -402,6 +510,145 @@ mod tests {
assert_eq!(box_origin(&fields(true)), (80.0, 40.0));
}
+ /// Turn the link on or off as its button or `ui.dialog.set` does, then apply it as the form
+ /// does on its next frame; what [`link_changed`] returned.
+ fn turn(d: &mut Dialog, on: bool) -> Option {
+ d.fields.insert(LINK.into(), json!(on));
+ link_changed(d)
+ }
+
+ fn type_size(d: &mut Dialog, typed: &str, value: f64) -> (f64, f64) {
+ d.fields.insert(typed.into(), json!(value));
+ follow_link(d, typed);
+ // The form applies the link's state again on every frame: an unchanged state changes nothing.
+ assert_eq!(link_changed(d), None);
+ (d.f64("width", -1.0), d.f64("height", -1.0))
+ }
+
+ #[test]
+ fn the_link_keeps_the_proportions_it_had_when_turned_on() {
+ let mut d = Dialog::new("rectangle", json!({"x": 0.0, "y": 0.0, "width": "40 pt", "height": "20 pt"}));
+ // Off: a typed side changes only itself.
+ assert_eq!(turn(&mut d, false), Some(false));
+ assert_eq!(type_size(&mut d, "width", 80.0), (80.0, 20.0));
+ // On at 80 × 20: each side follows the other at 4 : 1, also through a zero and back.
+ assert_eq!(turn(&mut d, true), Some(true));
+ for (typed, value, expected) in
+ [("width", 100.0, (100.0, 25.0)), ("height", 50.0, (200.0, 50.0)), ("width", 0.0, (0.0, 0.0)), ("width", 40.0, (40.0, 10.0))]
+ {
+ assert_eq!(type_size(&mut d, typed, value), expected, "{typed} = {value}");
+ }
+ }
+
+ /// Turned off and on again from outside the dialog (`ui.dialog.set`), the link forgets the old
+ /// proportions and keeps the ones the dialog shows when it comes back on.
+ #[test]
+ fn the_link_follows_changes_made_from_outside_the_dialog() {
+ let mut d = Dialog::new("rectangle", json!({"width": 80.0, "height": 20.0}));
+ assert_eq!(turn(&mut d, true), Some(true));
+ assert_eq!(turn(&mut d, false), Some(false));
+ assert!(!d.fields.contains_key(RATIO));
+ assert_eq!(type_size(&mut d, "width", 30.0), (30.0, 20.0));
+ assert_eq!(type_size(&mut d, "height", 60.0), (30.0, 60.0));
+ assert_eq!(turn(&mut d, true), Some(true));
+ assert_eq!(type_size(&mut d, "width", 10.0), (10.0, 20.0));
+ // Set to what it already is: nothing to apply, the proportions stay.
+ assert_eq!(turn(&mut d, true), None);
+ assert_eq!(type_size(&mut d, "height", 40.0), (20.0, 40.0));
+ }
+
+ /// A side of zero when the link turns on leaves nothing to keep (no NaN): typing changes only
+ /// the side typed, even once both sides are sizes again, until the link is turned on again.
+ #[test]
+ fn a_link_turned_on_at_a_zero_side_stays_unconstrained_until_turned_on_again() {
+ let mut d = Dialog::new("ellipse", json!({"width": 0.0, "height": 30.0}));
+ assert_eq!(turn(&mut d, true), Some(true));
+ assert!(!d.fields.contains_key(RATIO));
+ assert_eq!(type_size(&mut d, "width", 50.0), (50.0, 30.0));
+ assert_eq!(type_size(&mut d, "height", 60.0), (50.0, 60.0));
+ assert!(!d.fields.contains_key(RATIO));
+ assert_eq!((turn(&mut d, false), turn(&mut d, true)), (Some(false), Some(true)));
+ assert_eq!(type_size(&mut d, "width", 100.0), (100.0, 120.0));
+ }
+
+ /// The real dialog: Width comes before Height, the link is a named button that turns on with a
+ /// click, and the next Rectangle dialog opens with it on.
+ #[test]
+ fn the_rectangle_dialog_shows_width_then_height_and_a_link_button() {
+ use egui::accesskit::Role;
+ use egui_kittest::kittest::Queryable;
+ const LINK_NAME: &str = "Constrain Width and Height Proportions";
+ let mut app = VectorcraftApp::new(Session::new(), Default::default());
+ app.run("file.new", json!({"width": 300, "height": 300})).unwrap();
+ super::super::open_tool_dialog(&mut app, "rectangle", json!({"x": 10.0, "y": 10.0}));
+ let mut fonts = false;
+ let mut h = egui_kittest::Harness::builder().with_size(egui::vec2(1100.0, 900.0)).build_ui_state(
+ move |ui, app: &mut VectorcraftApp| {
+ if !std::mem::replace(&mut fonts, true) {
+ crate::theme::install_fonts(ui.ctx());
+ return;
+ }
+ super::super::show(app, ui.ctx());
+ },
+ app,
+ );
+ h.run_steps(5);
+ h.check_accessibility();
+ let (w, ht) = (h.get_by_role_and_label(Role::TextInput, "Width:").rect(), h.get_by_role_and_label(Role::TextInput, "Height:").rect());
+ assert!(w.center().y < ht.center().y, "Width is above Height: {w:?} {ht:?}");
+ assert!(!h.state().ui.dialog.as_ref().unwrap().bool(LINK));
+ let link = h.get_by_role_and_label(Role::Button, LINK_NAME).rect();
+ assert!(link.left() > w.right() && link.top() < ht.center().y && link.bottom() > w.center().y, "the link sits beside both rows: {link:?}");
+ h.get_by_role_and_label(Role::Button, LINK_NAME).click();
+ h.run_steps(2);
+ let d = h.state().ui.dialog.as_ref().unwrap();
+ assert!(d.bool(LINK));
+ assert_eq!(d.f64(RATIO, 0.0), 1.0);
+ // Cancel, then click again: the link is still on.
+ let reopen = |h: &mut egui_kittest::Harness<'_, VectorcraftApp>| {
+ h.state_mut().ui.dialog = None;
+ h.run_steps(2);
+ super::super::open_tool_dialog(h.state_mut(), "rectangle", json!({"x": 10.0, "y": 10.0}));
+ h.run_steps(2);
+ h.state().ui.dialog.as_ref().unwrap().bool(LINK)
+ };
+ assert!(reopen(&mut h));
+ // Turned off from outside the dialog (`ui.dialog.set`): the next dialog opens with it off.
+ h.state_mut().ui.dialog.as_mut().unwrap().fields.insert(LINK.into(), json!(false));
+ h.run_steps(2);
+ assert!(!h.state().ui.dialog.as_ref().unwrap().fields.contains_key(RATIO));
+ assert!(!reopen(&mut h));
+ }
+
+ /// With the link on, typing a width over a 40 × 20 rectangle's and pressing Enter draws it
+ /// 80 × 40.
+ #[test]
+ fn typing_a_width_with_the_link_on_draws_the_shape_in_proportion() {
+ let mut app = VectorcraftApp::new(Session::new(), Default::default());
+ app.run("file.new", json!({"width": 300, "height": 300})).unwrap();
+ app.run("tool.select", json!({"tool": "rectangle"})).unwrap();
+ super::super::open_tool_dialog(&mut app, "rectangle", json!({"x": 10.0, "y": 10.0}));
+ let d = app.ui.dialog.as_mut().unwrap();
+ d.fields.insert("width".into(), json!(40.0));
+ d.fields.insert("height".into(), json!(20.0));
+ d.fields.insert(LINK.into(), json!(true));
+ let ctx = egui::Context::default();
+ crate::theme::install_fonts(&ctx);
+ crate::theme::apply(&ctx, Default::default());
+ let frame = |app: &mut VectorcraftApp, events: Vec| {
+ let mut out = ctx.run_ui(egui::RawInput { events, ..Default::default() }, |ui| super::super::show(app, ui.ctx()));
+ out.textures_delta.clear();
+ };
+ let enter = egui::Event::Key { key: egui::Key::Enter, physical_key: None, pressed: true, repeat: false, modifiers: Default::default() };
+ frame(&mut app, vec![]);
+ frame(&mut app, vec![egui::Event::Text("80 pt".into())]);
+ frame(&mut app, vec![enter]);
+ assert!(app.ui.dialog.is_none());
+ let doc = &app.session.doc().unwrap().doc;
+ let b = doc.layers[0].children().unwrap()[0].geometric_bounds().unwrap();
+ assert!((b.width() - 80.0).abs() < 1e-6 && (b.height() - 40.0).abs() < 1e-6, "{b:?}");
+ }
+
#[test]
fn a_negative_line_length_draws_and_keeps_the_same_direction() {
let mut app = VectorcraftApp::new(Session::new(), Default::default());
diff --git a/crates/ui-egui/src/dialogs/shortcut_import.rs b/crates/ui-egui/src/dialogs/shortcut_import.rs
index ab32ada066..c65b4e6022 100644
--- a/crates/ui-egui/src/dialogs/shortcut_import.rs
+++ b/crates/ui-egui/src/dialogs/shortcut_import.rs
@@ -667,7 +667,7 @@ pub fn show(app: &mut VectorcraftApp, ctx: &egui::Context) {
ui.horizontal(|ui| {
ui.label(egui::RichText::new(tl!("Name:")).color(t.text_dim));
let mut name = d.str("name");
- if ui.add(egui::TextEdit::singleline(&mut name).desired_width(260.0)).changed() {
+ if ui.add(egui::TextEdit::singleline(&mut name).align(egui::Align2::LEFT_CENTER).desired_width(260.0)).changed() {
d.fields.insert("name".into(), json!(name));
}
});
@@ -867,7 +867,7 @@ fn rows_section(ui: &mut egui::Ui, d: &mut Dialog, review: &mut Review, statuses
}
ui.add_space(8.0);
let mut q = d.str("__query");
- if ui.add(egui::TextEdit::singleline(&mut q).hint_text(tl!("Search")).desired_width(180.0)).changed() {
+ if ui.add(egui::TextEdit::singleline(&mut q).align(egui::Align2::LEFT_CENTER).hint_text(tl!("Search")).desired_width(180.0)).changed() {
d.fields.insert("__query".into(), json!(q));
}
});
diff --git a/crates/ui-egui/src/dialogs/simplify_slider.rs b/crates/ui-egui/src/dialogs/simplify_slider.rs
index caf898fddc..cf38660188 100644
--- a/crates/ui-egui/src/dialogs/simplify_slider.rs
+++ b/crates/ui-egui/src/dialogs/simplify_slider.rs
@@ -8,6 +8,8 @@
//! (https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/modify-paths/manually-simplify-paths.html).
//! `vectorcraft_pathops::simplify_level_tolerance` maps levels to tolerances.
//!
+//! The strip itself ([`Strip`]) is shared with Object › Path › Smooth's slider (`smooth_slider`).
+//!
//! Fields: `level` (0..=100, the command's parameter).
use egui::{Color32, CornerRadius, Order, Pos2, Sense, Stroke, vec2};
@@ -25,9 +27,122 @@ pub(crate) const KIND: &str = "simplifySlider";
pub(super) const SPEC: DialogSpec = DialogSpec { window: Some(show), confirm, preview: true, ..DialogSpec::FORM };
-/// The command the slider previews, and its undo label.
-const CMD: &str = "object.path.simplify";
-const LABEL: &str = "Simplify";
+/// What the Simplify slider previews, and its buttons.
+const STRIP: Strip = Strip {
+ kind: KIND,
+ cmd: "object.path.simplify",
+ label: "Simplify",
+ default_level: SIMPLIFY_LEVEL,
+ auto: ("Auto-Simplify", auto),
+ more_options: Some(more_options),
+};
+
+/// A UI command a button of a strip runs.
+type Button = fn(&mut VectorcraftApp) -> Result;
+
+/// A slider strip under the selection that previews `cmd {level}` while it is open: its first
+/// button picks the level `cmd {auto: true}` does, and an optional last one, More Options, opens a
+/// dialog in its place. Enter or a click outside the strip keeps the result as one undo step, and
+/// Escape puts the paths back.
+pub(super) struct Strip {
+ /// The dialog kind.
+ pub kind: &'static str,
+ /// The command previewed.
+ pub cmd: &'static str,
+ /// The undo step's name, and the slider's.
+ pub label: &'static str,
+ /// The level when the field holds no number.
+ pub default_level: f64,
+ /// The auto button's tip, and what it runs.
+ pub auto: (&'static str, Button),
+ /// What More Options runs, when the strip has it.
+ pub more_options: Option,
+}
+
+impl Strip {
+ /// Whether this strip is open.
+ pub fn showing(&self, app: &VectorcraftApp) -> bool {
+ app.ui.dialog.as_ref().is_some_and(|d| d.kind == self.kind)
+ }
+
+ /// The open strip, if it is this one.
+ pub fn open(&self, app: &VectorcraftApp) -> Option {
+ app.ui.dialog.clone().filter(|d| d.kind == self.kind)
+ }
+
+ /// The slider's level, a whole number from 0 to 100.
+ fn level(&self, d: &Dialog) -> f64 {
+ let l = d.f64("level", self.default_level);
+ if l.is_finite() { l.round().clamp(0.0, 100.0) } else { self.default_level }
+ }
+
+ fn params(&self, d: &Dialog) -> Value {
+ json!({ "level": self.level(d) })
+ }
+
+ pub fn confirm(&self, app: &mut VectorcraftApp, d: &Dialog) -> DialogResult {
+ form::commit_preview(app, self.cmd, self.params(d))
+ }
+
+ /// The open strip `d` moves to the level `cmd {auto: true}` picks for the selection, and the
+ /// canvas previews it → {level}.
+ pub fn auto(&self, app: &mut VectorcraftApp, mut d: Dialog) -> Result {
+ let _ = app.session.begin_interaction(self.label);
+ let r = app.session.preview(self.cmd, &json!({ "auto": true })).map_err(|e| e.to_string())?;
+ let level = r["level"].as_f64().unwrap_or(self.default_level);
+ d.fields.insert("level".into(), json!(level));
+ d.fields.insert(form::PREVIEWED.into(), self.params(&d));
+ app.ui.dialog = Some(d);
+ Ok(json!({ "level": level }))
+ }
+
+ pub fn show(&self, app: &mut VectorcraftApp, ctx: &egui::Context) {
+ let Some(mut d) = app.ui.dialog.clone() else { return };
+ let t = Tokens::get(ctx);
+ let id = egui::Id::unique(("dialog", self.kind));
+ let b = bounds(app, &mut d);
+ let pos = place(app, ctx, id, b);
+ // A click anywhere else keeps the result, and the rest of the app doesn't take it.
+ let dim = modal::backdrop();
+ let outside =
+ egui::Area::new(dim.id).order(dim.order).fixed_pos(Pos2::ZERO).show(ctx, |ui| ui.allocate_rect(ctx.content_rect(), Sense::click())).inner;
+ let mut action: Option = None;
+ egui::Area::new(id).order(Order::Foreground).fixed_pos(pos).show(ctx, |ui| {
+ egui::Frame::NONE
+ .fill(t.panel)
+ .stroke(Stroke::new(1.0, t.tool_active))
+ .corner_radius(CornerRadius::same(5))
+ .inner_margin(egui::Margin::symmetric(8, 6))
+ .shadow(egui::epaint::Shadow { offset: [0, 3], blur: 10, spread: 0, color: Color32::from_black_alpha(70) })
+ .show(ui, |ui| {
+ ui.horizontal(|ui| {
+ ui.spacing_mut().item_spacing.x = 6.0;
+ if widgets::icon_button(ui, "wand-sparkles", tl!(self.auto.0), false, 28.0).clicked() {
+ action = Some(self.auto.1);
+ }
+ let rail = t.input_border;
+ form::slider_rail_named(ui, &mut d, "level", tl!(self.label), 0.0..=100.0, &|_| rail);
+ if let Some(more) = self.more_options
+ && widgets::icon_button(ui, "ellipsis", tl!("More Options"), false, 28.0).clicked()
+ {
+ action = Some(more);
+ }
+ });
+ });
+ });
+ let p = self.params(&d);
+ let _ = form::preview_now(app, &mut d, self.label, self.cmd, p);
+ app.ui.dialog = Some(d);
+ let r = match action {
+ Some(run) => run(app),
+ None if outside.clicked() || ctx.input(|i| i.key_pressed(egui::Key::Enter)) => super::confirm(app),
+ None => Ok(Value::Null),
+ };
+ if let Err(e) = r {
+ app.status(e);
+ }
+ }
+}
/// The fields the slider opens with: Auto-Simplify's level for the selection, or
/// [`SIMPLIFY_LEVEL`] without a document.
@@ -37,46 +152,29 @@ pub(crate) fn fields(app: &VectorcraftApp) -> Value {
/// Whether the Simplify slider is open.
pub(crate) fn showing(app: &VectorcraftApp) -> bool {
- app.ui.dialog.as_ref().is_some_and(|d| d.kind == KIND)
-}
-
-/// The slider's level, a whole number from 0 to 100.
-fn level(d: &Dialog) -> f64 {
- let l = d.f64("level", SIMPLIFY_LEVEL);
- if l.is_finite() { l.round().clamp(0.0, 100.0) } else { SIMPLIFY_LEVEL }
-}
-
-fn params(d: &Dialog) -> Value {
- json!({ "level": level(d) })
+ STRIP.showing(app)
}
fn confirm(app: &mut VectorcraftApp, d: &Dialog) -> DialogResult {
- form::commit_preview(app, CMD, params(d))
+ STRIP.confirm(app, d)
}
-/// The open slider, or an error when it isn't open.
-fn open_slider(app: &VectorcraftApp) -> Result {
- app.ui.dialog.clone().filter(|d| d.kind == KIND).ok_or_else(|| "the Simplify slider is not open".to_string())
+fn show(app: &mut VectorcraftApp, ctx: &egui::Context) {
+ STRIP.show(app, ctx);
}
/// Auto-Simplify (`ui.simplifyAuto`): the open slider moves to the level `object.path.simplify
/// {auto: true}` picks for the selection, and the canvas previews it → {level}.
pub(crate) fn auto(app: &mut VectorcraftApp) -> Result {
- let mut d = open_slider(app)?;
- let _ = app.session.begin_interaction(LABEL);
- let r = app.session.preview(CMD, &json!({ "auto": true })).map_err(|e| e.to_string())?;
- let level = r["level"].as_f64().unwrap_or(SIMPLIFY_LEVEL);
- d.fields.insert("level".into(), json!(level));
- d.fields.insert(form::PREVIEWED.into(), params(&d));
- app.ui.dialog = Some(d);
- Ok(json!({ "level": level }))
+ let d = STRIP.open(app).ok_or_else(|| "the Simplify slider is not open".to_string())?;
+ STRIP.auto(app, d)
}
/// More Options (`ui.simplifyMoreOptions`): the Simplify dialog takes the slider's place, at the
/// slider's tolerance → {tolerance}.
pub(crate) fn more_options(app: &mut VectorcraftApp) -> Result {
- let d = open_slider(app)?;
- let tolerance = simplify_level_tolerance(level(&d));
+ let d = STRIP.open(app).ok_or_else(|| "the Simplify slider is not open".to_string())?;
+ let tolerance = simplify_level_tolerance(STRIP.level(&d));
app.ui.dialog = Some(Dialog::new("simplify", super::path_ops::simplify_dialog(tolerance)));
Ok(json!({ "tolerance": tolerance }))
}
@@ -115,55 +213,3 @@ fn place(app: &mut VectorcraftApp, ctx: &egui::Context, id: egui::Id, bounds: Op
let bounds = rect.shrink(8.0);
under.clamp(bounds.min, (bounds.max - size).max(bounds.min))
}
-
-/// What a button of the strip asked for.
-enum Action {
- Auto,
- MoreOptions,
-}
-
-fn show(app: &mut VectorcraftApp, ctx: &egui::Context) {
- let Some(mut d) = app.ui.dialog.clone() else { return };
- let t = Tokens::get(ctx);
- let id = egui::Id::unique(("dialog", KIND));
- let b = bounds(app, &mut d);
- let pos = place(app, ctx, id, b);
- // A click anywhere else keeps the result, and the rest of the app doesn't take it.
- let dim = modal::backdrop();
- let outside =
- egui::Area::new(dim.id).order(dim.order).fixed_pos(Pos2::ZERO).show(ctx, |ui| ui.allocate_rect(ctx.content_rect(), Sense::click())).inner;
- let mut action = None;
- egui::Area::new(id).order(Order::Foreground).fixed_pos(pos).show(ctx, |ui| {
- egui::Frame::NONE
- .fill(t.panel)
- .stroke(Stroke::new(1.0, t.tool_active))
- .corner_radius(CornerRadius::same(5))
- .inner_margin(egui::Margin::symmetric(8, 6))
- .shadow(egui::epaint::Shadow { offset: [0, 3], blur: 10, spread: 0, color: Color32::from_black_alpha(70) })
- .show(ui, |ui| {
- ui.horizontal(|ui| {
- ui.spacing_mut().item_spacing.x = 6.0;
- if widgets::icon_button(ui, "wand-sparkles", tl!("Auto-Simplify"), false, 28.0).clicked() {
- action = Some(Action::Auto);
- }
- let rail = t.input_border;
- form::slider_rail_named(ui, &mut d, "level", tl!("Simplify"), 0.0..=100.0, &|_| rail);
- if widgets::icon_button(ui, "ellipsis", tl!("More Options"), false, 28.0).clicked() {
- action = Some(Action::MoreOptions);
- }
- });
- });
- });
- let p = params(&d);
- let _ = form::preview_now(app, &mut d, LABEL, CMD, p);
- app.ui.dialog = Some(d);
- let r = match action {
- Some(Action::Auto) => auto(app),
- Some(Action::MoreOptions) => more_options(app),
- None if outside.clicked() || ctx.input(|i| i.key_pressed(egui::Key::Enter)) => super::confirm(app),
- None => Ok(Value::Null),
- };
- if let Err(e) = r {
- app.status(e);
- }
-}
diff --git a/crates/ui-egui/src/dialogs/smooth_slider.rs b/crates/ui-egui/src/dialogs/smooth_slider.rs
new file mode 100644
index 0000000000..9c05d3efc7
--- /dev/null
+++ b/crates/ui-egui/src/dialogs/smooth_slider.rs
@@ -0,0 +1,57 @@
+//! Object › Path › Smooth's slider, as the Smooth slider help page describes
+//! (https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/modify-paths/refine-path-segments-with-the-smooth-slider.html):
+//! the strip of Simplify's slider (`simplify_slider::Strip`) with Auto-Smooth and a slider from
+//! minimum smoothing (left) to maximum smoothing (right). While it is open the canvas previews
+//! `object.path.smooth {level}`; Enter or a click outside the strip keeps the result as one undo
+//! step, and Escape puts the paths back. It opens at Auto-Smooth's level, as Simplify's slider
+//! opens at Auto-Simplify's (VectorCraft's choice: the page doesn't say where it starts).
+//!
+//! Fields: `level` (0..=100, the command's parameter).
+
+use serde_json::{Value, json};
+use vectorcraft_engine::SMOOTH_AUTO_LEVEL;
+
+use super::simplify_slider::Strip;
+use super::{DialogResult, DialogSpec};
+use crate::VectorcraftApp;
+use crate::state::Dialog;
+
+/// The dialog kind of the Smooth slider.
+pub(crate) const KIND: &str = "smoothSlider";
+
+pub(super) const SPEC: DialogSpec = DialogSpec { window: Some(show), confirm, preview: true, ..DialogSpec::FORM };
+
+/// What the Smooth slider previews, and its button.
+const STRIP: Strip = Strip {
+ kind: KIND,
+ cmd: "object.path.smooth",
+ label: "Smooth",
+ default_level: SMOOTH_AUTO_LEVEL,
+ auto: ("Auto-Smooth", auto),
+ more_options: None,
+};
+
+/// The fields the slider opens with: Auto-Smooth's level.
+pub(crate) fn fields() -> Value {
+ json!({ "level": SMOOTH_AUTO_LEVEL })
+}
+
+/// Whether the Smooth slider is open.
+pub(crate) fn showing(app: &VectorcraftApp) -> bool {
+ STRIP.showing(app)
+}
+
+fn confirm(app: &mut VectorcraftApp, d: &Dialog) -> DialogResult {
+ STRIP.confirm(app, d)
+}
+
+fn show(app: &mut VectorcraftApp, ctx: &egui::Context) {
+ STRIP.show(app, ctx);
+}
+
+/// Auto-Smooth (`ui.smoothAuto`): the open slider moves to the level `object.path.smooth {auto:
+/// true}` picks, and the canvas previews it → {level}.
+pub(crate) fn auto(app: &mut VectorcraftApp) -> Result {
+ let d = STRIP.open(app).ok_or_else(|| "the Smooth slider is not open".to_string())?;
+ STRIP.auto(app, d)
+}
diff --git a/crates/ui-egui/src/dialogs/svg_options.rs b/crates/ui-egui/src/dialogs/svg_options.rs
index 261d51b8aa..86db8a6bc7 100644
--- a/crates/ui-egui/src/dialogs/svg_options.rs
+++ b/crates/ui-egui/src/dialogs/svg_options.rs
@@ -245,7 +245,7 @@ fn artboards(app: &VectorcraftApp, ui: &mut egui::Ui, d: &mut Dialog) {
d.fields.insert("allArtboards".into(), json!(false));
}
let mut range = d.str("range");
- let edit = egui::TextEdit::singleline(&mut range).hint_text(format!("1-{count}")).desired_width(90.0);
+ let edit = egui::TextEdit::singleline(&mut range).align(egui::Align2::LEFT_CENTER).hint_text(format!("1-{count}")).desired_width(90.0);
if ui.add_enabled(!all, edit).changed() {
d.fields.insert("range".into(), json!(range));
}
diff --git a/crates/ui-egui/src/dialogs/swatch_options.rs b/crates/ui-egui/src/dialogs/swatch_options.rs
index 87d15152c3..cdeca225be 100644
--- a/crates/ui-egui/src/dialogs/swatch_options.rs
+++ b/crates/ui-egui/src/dialogs/swatch_options.rs
@@ -266,7 +266,14 @@ fn hex_field(ui: &mut egui::Ui, hex: &str) -> Option {
.inner_margin(egui::Margin::symmetric(6, 4))
.show(ui, |ui| {
crate::theme::strong_selected_text(ui);
- ui.add(egui::TextEdit::singleline(&mut buf).id(id).frame(egui::Frame::NONE).desired_width(70.0).char_limit(7))
+ ui.add(
+ egui::TextEdit::singleline(&mut buf)
+ .id(id)
+ .frame(egui::Frame::NONE)
+ .align(egui::Align2::LEFT_CENTER)
+ .desired_width(70.0)
+ .char_limit(7),
+ )
})
.inner;
let focused = ui.memory(|m| m.has_focus(id));
diff --git a/crates/ui-egui/src/dialogs/tests.rs b/crates/ui-egui/src/dialogs/tests.rs
index 5be090dc62..849de13260 100644
--- a/crates/ui-egui/src/dialogs/tests.rs
+++ b/crates/ui-egui/src/dialogs/tests.rs
@@ -393,6 +393,7 @@ fn dialogs_do_not_stretch_to_the_screen() {
("ui.swatchOptions", json!({"name": "White"})),
("ui.colorPicker", json!({})),
("ui.graphicStyleOptions", json!({})),
+ ("ui.newCharStyle", json!({})),
("ui.newArtboard", json!({})),
("ui.brushOptions", json!({"name": "3 pt. Round"})),
("ui.brushOptions", json!({"name": "Bristle Round"})),
@@ -1413,6 +1414,45 @@ fn zig_zag_has_sliders_and_radio_buttons() {
assert!(!lines.contains(&"Ridges:"), "{lines:?}");
}
+/// #4488: Roughen's dialog has Size and Detail sliders laid out as Zig Zag's, Pucker & Bloat's its
+/// amount as a slider from Pucker to Bloat, and Tweak's Horizontal and Vertical sliders.
+#[test]
+fn roughen_pucker_bloat_and_tweak_have_sliders() {
+ use crate::widgets::accessibility_tests::{slider_value, tree};
+ let mut app = app();
+ app.run("shape.rectangle", json!({"x": 10, "y": 10, "width": 50, "height": 50})).unwrap();
+ app.run("effect.dialog", json!({"effect": "distort.roughen"})).unwrap();
+ let text = crate::tests_labels::painted_text(&mut app, |app, ui| show(app, ui.ctx()));
+ let lines: Vec<&str> = text.lines().map(str::trim).collect();
+ for want in ["Size:", "Relative", "Absolute", "Detail:", "Points", "Smooth", "Corner"] {
+ assert!(lines.contains(&want), "no {want:?} in {lines:?}");
+ }
+ let shown = tree(|ui| show(&mut app, ui.ctx()));
+ assert_eq!(slider_value(&shown, "Size:"), (Some(5.0), Some(0.0), Some(100.0), Some("5%".into())));
+ assert_eq!(slider_value(&shown, "Detail:"), (Some(10.0), Some(0.0), Some(100.0), None));
+ app.ui.dialog = None;
+ app.run("effect.dialog", json!({"effect": "distort.puckerBloat"})).unwrap();
+ app.ui.dialog.as_mut().unwrap().fields.insert("amount".into(), json!(-60));
+ let text = crate::tests_labels::painted_text(&mut app, |app, ui| show(app, ui.ctx()));
+ let lines: Vec<&str> = text.lines().map(str::trim).collect();
+ for want in ["Amount:", "Pucker", "Bloat"] {
+ assert!(lines.contains(&want), "no {want:?} in {lines:?}");
+ }
+ let shown = tree(|ui| show(&mut app, ui.ctx()));
+ let (value, min, max, _) = slider_value(&shown, "Amount:");
+ assert_eq!((value, min, max), (Some(-60.0), Some(-200.0), Some(200.0)));
+ // Tweak: Horizontal and Vertical sliders, Relative / Absolute, and the points it moves.
+ app.ui.dialog = None;
+ app.run("effect.dialog", json!({"effect": "distort.tweak"})).unwrap();
+ let text = crate::tests_labels::painted_text(&mut app, |app, ui| show(app, ui.ctx()));
+ let lines: Vec<&str> = text.lines().map(str::trim).collect();
+ for want in ["Horizontal:", "Vertical:", "Relative", "Absolute", "Anchor Points", "\"In\" Control Points", "\"Out\" Control Points"] {
+ assert!(lines.contains(&want), "no {want:?} in {lines:?}");
+ }
+ let shown = tree(|ui| show(&mut app, ui.ctx()));
+ assert_eq!(slider_value(&shown, "Horizontal:"), (Some(10.0), Some(0.0), Some(100.0), Some("10%".into())));
+}
+
/// Screen readers get the number and text of the field beside each dialog slider, in the field's
/// unit, with the rail's range (extended to a number past the rail's end): Transform Each's Scale
/// and Move, Zig Zag's Size and Ridges, a form slider (Vector Halftone's Frequency), the Pencil's
@@ -1661,6 +1701,40 @@ fn free_distort_reset_puts_the_corners_back() {
assert_eq!((effects.len(), effects[0].params["corners"].clone()), (1, rest));
}
+/// While Alt is held, the Flare Tool Options' Cancel button reads Reset; Reset puts every option
+/// back to the tool's default and leaves the dialog open, letting Alt go shows Cancel again, and OK
+/// keeps the defaults.
+#[test]
+fn flare_options_alt_turns_cancel_into_reset() {
+ let mut app = app();
+ app.run("tool.options", json!({"tool": "flare"})).unwrap();
+ let d = app.ui.dialog.as_mut().unwrap();
+ for (k, v) in [("diameter", json!(250)), ("rays", json!(4)), ("ringsOn", json!(false)), ("growth", json!(80))] {
+ d.fields.insert(k.into(), v);
+ }
+ let mut f = Frames::new();
+ f.button(&mut app, "Cancel");
+ f.run(&mut app, vec![egui::Event::ModifiersChanged(egui::Modifiers::ALT)]);
+ let reset = f.button(&mut app, "Reset");
+ let texts = f.texts(&mut app);
+ assert!(!texts.iter().any(|(t, _)| t == "Cancel"), "Reset takes Cancel's place: {texts:?}");
+ f.press(&mut app, reset, true);
+ f.press(&mut app, reset, false);
+ let d = app.ui.dialog.as_ref().expect("Reset leaves the dialog open");
+ assert_eq!(
+ (d.f64("diameter", 0.0), d.f64("rays", 0.0), d.bool("ringsOn"), d.f64("growth", 0.0), d.f64("direction", 0.0)),
+ (100.0, 15.0, true, 20.0, 45.0)
+ );
+ f.run(&mut app, vec![egui::Event::ModifiersChanged(egui::Modifiers::NONE)]);
+ f.button(&mut app, "Cancel");
+ confirm(&mut app).unwrap();
+ let o = app.session.tool_options_of("flare");
+ assert_eq!(
+ (o["diameter"].as_f64(), o["rays"].as_u64(), o["ringsOn"].as_bool(), o["growth"].as_f64()),
+ (Some(100.0), Some(15), Some(true), Some(20.0))
+ );
+}
+
/// The slider that screen readers name `label` in `out`'s tree: its node id, number and text.
fn slider_node(out: &egui::FullOutput, label: &str) -> (egui::accesskit::NodeId, Option, Option) {
let nodes = &out.platform_output.accesskit_update.as_ref().expect("an accessibility tree").nodes;
diff --git a/crates/ui-egui/src/dialogs/tests_modal.rs b/crates/ui-egui/src/dialogs/tests_modal.rs
index 3a00757579..47b95b7ea5 100644
--- a/crates/ui-egui/src/dialogs/tests_modal.rs
+++ b/crates/ui-egui/src/dialogs/tests_modal.rs
@@ -513,6 +513,38 @@ fn simplify_slider_and_dialog_simplify_only_the_direct_selected_part_of_a_path()
kept(&app, "the dialog");
}
+/// Object › Path › Smooth opens its slider (#4115) at the Auto-Smooth level, previewing that
+/// result; moving it previews the level, Auto-Smooth (the strip's only button) moves it back, and a
+/// click outside keeps the result as one undo step.
+#[test]
+fn smooth_slider_previews_auto_smooth_and_keeps_the_result() {
+ let ctx = ctx();
+ let mut app = VectorcraftApp::new(Session::new(), Default::default());
+ app.run("file.new", json!({"width": 400, "height": 300})).unwrap();
+ let anchors: Vec<_> =
+ (0..=60).map(|i| json!({"x": 20 + i * 5, "y": 150.0 + 40.0 * (f64::from(i) / 10.0).sin() + f64::from(i % 2) * 3.0})).collect();
+ app.run("path.create", json!({"anchors": anchors})).unwrap();
+ let before = app.session.doc().unwrap().doc.clone();
+ let undo_len = app.session.doc().unwrap().history.undo.len();
+ assert!(app.run("ui.smoothAuto", json!({})).is_err(), "the slider is not open");
+ crate::menus::invoke(&mut app, "object.path.smooth", json!({}));
+ assert_eq!(app.ui.dialog.as_ref().map(|d| (d.kind.as_str(), d.f64("level", -1.0))), Some((smooth_slider::KIND, 50.0)));
+ settle(&ctx, &mut app);
+ assert_eq!(simplify_preview(&app), json!({"level": 50.0}));
+ assert!(anchor_count(&app) < 61 / 4, "the preview smooths the jags: {}", anchor_count(&app));
+ app.ui.dialog.as_mut().unwrap().fields.insert("level".into(), json!(0));
+ settle(&ctx, &mut app);
+ assert_eq!(simplify_preview(&app), json!({"level": 0.0}));
+ let strip = rect_of(&ctx, egui::Id::unique(("dialog", smooth_slider::KIND)));
+ click(&ctx, &mut app, Pos2::new(strip.left() + 8.0 + 14.0, strip.center().y));
+ assert_eq!(app.ui.dialog.as_ref().unwrap().f64("level", 0.0), 50.0);
+ assert_eq!(simplify_preview(&app), json!({"auto": true}));
+ click(&ctx, &mut app, Pos2::new(20.0, 20.0));
+ assert!(app.ui.dialog.is_none() && !app.session.in_interaction());
+ assert_eq!(app.session.doc().unwrap().history.undo.len(), undo_len + 1);
+ assert_ne!(app.session.doc().unwrap().doc, before);
+}
+
/// More Options opens the Simplify dialog at the slider's tolerance. With "Open this dialog with
/// these settings next time" ticked, OK makes the menu item open the dialog on its settings; with
/// it unticked, the slider again.
diff --git a/crates/ui-egui/src/dialogs/tests_raster_formats.rs b/crates/ui-egui/src/dialogs/tests_raster_formats.rs
index 15fa77fda9..24ffefbbae 100644
--- a/crates/ui-egui/src/dialogs/tests_raster_formats.rs
+++ b/crates/ui-egui/src/dialogs/tests_raster_formats.rs
@@ -140,14 +140,12 @@ fn save_for_office_and_export_selection_say_when_an_image_could_not_be_decoded()
let (mut app, written) = app(1);
app.run("document.exportForOffice", json!({"path": "/x/o.png", "ppi": 72})).unwrap();
assert_eq!(app.ui.status, "Saved /x/o.png");
- // A PNG whose header reads (so it places at its size) but whose pixel data is cut short.
+ // A PNG whose header reads but whose pixel data is cut short.
let mut png = Vec::new();
image::RgbaImage::from_pixel(64, 32, image::Rgba([200, 30, 30, 255]))
.write_to(&mut std::io::Cursor::new(&mut png), image::ImageFormat::Png)
.unwrap();
- let idat = png.windows(4).position(|w| w == b"IDAT").unwrap();
- png.truncate(idat + 8);
- app.run("file.place", json!({"name": "cut.png", "dataBase64": vectorcraft_format::base64_encode(&png), "at": [10, 10]})).unwrap();
+ vectorcraft_testkit::fixtures::place_cut_png(&mut app.session, &png, json!({"at": [10, 10]}));
app.run("document.exportForOffice", json!({"path": "/x/o.png", "ppi": 72})).unwrap();
assert_eq!(app.ui.status, format!("Saved /x/o.png {NOTE}"));
// Export Selection of the placed image, which stays selected.
diff --git a/crates/ui-egui/src/dialogs/tests_save_for_web.rs b/crates/ui-egui/src/dialogs/tests_save_for_web.rs
index e5c834c10e..3341d43407 100644
--- a/crates/ui-egui/src/dialogs/tests_save_for_web.rs
+++ b/crates/ui-egui/src/dialogs/tests_save_for_web.rs
@@ -578,11 +578,7 @@ fn saving_says_in_the_status_bar_when_an_image_could_not_be_decoded() {
image::RgbaImage::from_pixel(64, 32, image::Rgba([200, 30, 30, 255]))
.write_to(&mut std::io::Cursor::new(&mut png), image::ImageFormat::Png)
.unwrap();
- let idat = png.windows(4).position(|w| w == b"IDAT").unwrap();
- png.truncate(idat + 8);
- let place = |app: &mut VectorcraftApp| {
- app.run("file.place", json!({"name": "cut.png", "dataBase64": vectorcraft_format::base64_encode(&png), "at": [30, 20]})).unwrap()
- };
+ let place = |app: &mut VectorcraftApp| vectorcraft_testkit::fixtures::place_cut_png(&mut app.session, &png, json!({"at": [30, 20]}));
let dir = vectorcraft_testkit::temp_dir("sfw-undecoded");
let (mut desktop, _) = app(&dir, false);
desktop.run("file.saveForWeb", json!({"format": "png24"})).unwrap();
diff --git a/crates/ui-egui/src/dialogs/tests_screens.rs b/crates/ui-egui/src/dialogs/tests_screens.rs
index 74132e4dbe..bf2aed988c 100644
--- a/crates/ui-egui/src/dialogs/tests_screens.rs
+++ b/crates/ui-egui/src/dialogs/tests_screens.rs
@@ -456,11 +456,7 @@ fn the_status_bar_says_when_an_image_could_not_be_decoded() {
image::RgbaImage::from_pixel(64, 32, image::Rgba([200, 30, 30, 255]))
.write_to(&mut std::io::Cursor::new(&mut png), image::ImageFormat::Png)
.unwrap();
- let idat = png.windows(4).position(|w| w == b"IDAT").unwrap();
- png.truncate(idat + 8);
- let place = |app: &mut VectorcraftApp| {
- app.run("file.place", json!({"name": "cut.png", "dataBase64": vectorcraft_format::base64_encode(&png), "at": [10, 10]})).unwrap()
- };
+ let place = |app: &mut VectorcraftApp| vectorcraft_testkit::fixtures::place_cut_png(&mut app.session, &png, json!({"at": [10, 10]}));
let rows = json!([{"format": "png", "scale": "1x", "suffix": ""}, {"format": "jpg", "scale": "2x", "suffix": "@2x"}]);
let dir = temp_folder("undecoded");
let folder = dir.to_string_lossy().replace('\\', "/");
diff --git a/crates/ui-egui/src/dialogs/trace_presets.rs b/crates/ui-egui/src/dialogs/trace_presets.rs
new file mode 100644
index 0000000000..919bf7370f
--- /dev/null
+++ b/crates/ui-egui/src/dialogs/trace_presets.rs
@@ -0,0 +1,71 @@
+//! Image Trace panel › Manage Presets: Save as New Preset… keeps the panel's settings as a saved
+//! tracing preset under the name entered, and Rename… gives a saved preset another name. OK runs
+//! `imageTrace.presets.save`.
+//!
+//! Fields: `name`, `rename` (the saved preset to rename; empty to save a new one) and `params` (the
+//! settings a new preset keeps).
+
+use serde_json::{Value, json};
+
+use super::{DialogSpec, form};
+use crate::state::Dialog;
+use crate::{VectorcraftApp, widgets};
+
+/// The dialog kind of Save as New Preset… and Rename… (Image Trace).
+pub const KIND: &str = "imageTracePreset";
+
+pub(super) const SPEC: DialogSpec = DialogSpec {
+ heading: |d| if d.str("rename").is_empty() { tl!("Save Preset") } else { tl!("Rename Preset") }.into(),
+ body,
+ confirm,
+ ok_enabled: Some(|_, d| !d.str("name").trim().is_empty()),
+ min_width: 320.0,
+ ..DialogSpec::FORM
+};
+
+/// Open Save as New Preset… for `params` (default: the Default preset's settings), or, with
+/// `rename`, Rename… for that saved preset (OK reports a name that isn't one).
+pub fn open(app: &mut VectorcraftApp, p: &Value) -> Result {
+ let rename = p.get("rename").and_then(Value::as_str).map(str::trim).unwrap_or_default();
+ let fields = if rename.is_empty() {
+ json!({"name": app.session.new_trace_preset_name(), "rename": "", "params": p.get("params").cloned().unwrap_or(Value::Null)})
+ } else {
+ let name = app.session.trace_preset(rename).map_or(rename, |saved| saved.name.as_str());
+ json!({"name": name, "rename": name, "params": null})
+ };
+ app.ui.dialog = Some(Dialog::new(KIND, fields));
+ Ok(Value::Null)
+}
+
+fn body(app: &mut VectorcraftApp, ui: &mut egui::Ui, d: &mut Dialog) -> bool {
+ ui.horizontal(|ui| {
+ widgets::dim_label(ui, tl!("Name:"));
+ form::text(ui, d, "name", 220.0);
+ });
+ let name = d.str("name");
+ let rename = d.str("rename");
+ if rename.is_empty() && app.session.trace_preset(&name).is_some() {
+ widgets::dim_label(ui, tl!("Replaces the saved preset of that name."));
+ }
+ false
+}
+
+/// `imageTrace.presets.save` parameters from the fields.
+fn params(d: &Dialog) -> Value {
+ let rename = d.str("rename");
+ if rename.is_empty() {
+ json!({"name": d.str("name"), "params": d.fields.get("params").cloned().unwrap_or(Value::Null)})
+ } else {
+ json!({"name": rename, "newName": d.str("name")})
+ }
+}
+
+/// A name the save refuses (a taken one when renaming, a built-in preset's) keeps the dialog open,
+/// to be changed.
+fn confirm(app: &mut VectorcraftApp, d: &Dialog) -> Result {
+ let r = app.run("imageTrace.presets.save", params(d));
+ if r.is_ok() {
+ app.ui.dialog = None;
+ }
+ r
+}
diff --git a/crates/ui-egui/src/dialogs/variables.rs b/crates/ui-egui/src/dialogs/variables.rs
index 12ee10020e..d63ea55620 100644
--- a/crates/ui-egui/src/dialogs/variables.rs
+++ b/crates/ui-egui/src/dialogs/variables.rs
@@ -225,7 +225,7 @@ fn body(app: &mut VectorcraftApp, ui: &mut egui::Ui, d: &mut Dialog) -> bool {
/// A text field for `key`, written back as it is typed.
fn text(ui: &mut egui::Ui, d: &mut Dialog, key: &str, width: f32) -> egui::Response {
let mut s = d.str(key);
- let r = ui.add(egui::TextEdit::singleline(&mut s).desired_width(width));
+ let r = ui.add(egui::TextEdit::singleline(&mut s).align(egui::Align2::LEFT_CENTER).desired_width(width));
if r.changed() {
d.fields.insert(key.into(), json!(s));
}
diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rs
index 92da788734..4c2a01b9fa 100644
--- a/crates/ui-egui/src/i18n.rs
+++ b/crates/ui-egui/src/i18n.rs
@@ -94,7 +94,7 @@ fn plural_polish(n: u64) -> usize {
}
/// The registry. English first: it is the fallback and the source language.
-pub static LANGUAGES: [LangInfo; 25] = [
+pub static LANGUAGES: [LangInfo; 26] = [
LangInfo { code: "en", name: "English", source: "", plural: plural_one_other, complete_menus: false, catalog: OnceLock::new() },
// Greek: the whole interface and the status and error messages, keeping the same names in
// English as Spanish; every `el-*` locale (including `el-GR` and `el-CY`) resolves here.
@@ -318,6 +318,17 @@ pub static LANGUAGES: [LangInfo; 25] = [
LangInfo {
code: "tr", name: "Türkçe", source: include_str!("i18n/tr.tsv"), plural: plural_none, complete_menus: true, catalog: OnceLock::new()
},
+ // Catalan: the whole interface and the status and error messages, keeping the same names in
+ // English as Spanish; one/other plurals. Every `ca-*` locale (including `ca-ES`, `ca-AD`,
+ // `ca-FR`, `ca-IT` and `ca-ES-VALENCIA`) resolves here.
+ LangInfo {
+ code: "ca",
+ name: "Català",
+ source: include_str!("i18n/ca.tsv"),
+ plural: plural_one_other,
+ complete_menus: true,
+ catalog: OnceLock::new(),
+ },
];
impl LangInfo {
diff --git a/crates/ui-egui/src/i18n/bg.tsv b/crates/ui-egui/src/i18n/bg.tsv
index 136ebd737c..b983840585 100644
--- a/crates/ui-egui/src/i18n/bg.tsv
+++ b/crates/ui-egui/src/i18n/bg.tsv
@@ -167,6 +167,8 @@
Anchor Point Опорна точка
Anchor Point Tool Инструмент „Опорна точка“
Anchor Points Опорни точки
+ "In" Control Points „Входящи“ контролни точки
+ "Out" Control Points „Изходящи“ контролни точки
Anchor Points, Handle, and Bounding Box Display Показване на опорни точки, манипулатори и ограничителна рамка
Anchor/Path Labels Етикети на опорни точки/пътища
Anchors: Опорни точки:
@@ -552,6 +554,7 @@ font-technology Variable Променливи
Complexity: Сложност:
Composite colours are converted to it; separations separate with it when it is a CMYK profile. Композитните цветове се конвертират в него; сепарациите се сепарират с него, когато е CMYK профил.
Compound Path Съставен път
+ Compound Shape Съставна фигура
Compress (RLE) Компресиране (RLE)
Compress text and line art Компресиране на текст и линеарна графика
Compression Компресия
@@ -976,7 +979,6 @@ font-technology Variable Променливи
Exit Isolation Mode Излизане от режим на изолация
Expand Разширяване
Expand Appearance Разширяване на външния вид
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap Разширяването се прилага към съставни фигури (Alt-клик върху режим на фигура) — в план-графика
Expand Brush Strokes Разширяване на щрихи на четка
Expand Compound Shape Разширяване на съставна фигура
Expand Gradient Mesh Разширяване на градиентна мрежа
@@ -1493,6 +1495,12 @@ font-technology Variable Променливи
Image Trace Трасиране на изображение
Image Tracing Трасиране на изображения
Tracing Presets Предварителни настройки за трасиране
+ Manage Presets Управление на предварителните настройки
+ Save as New Preset… Запази като нова предварителна настройка…
+ Rename… Преименуване…
+ Rename Preset Преименуване на предварителна настройка
+ Save Image Trace Preset Запази предварителна настройка за трасиране на изображения
+ Delete Image Trace Preset Изтриване на предварителна настройка за трасиране на изображения
Image Trace Presets Предварителни настройки за трасиране на изображения
Image: Изображение:
Images: Изображения:
@@ -1907,6 +1915,10 @@ font-technology Variable Променливи
Outer Corner Tile Плочка за външен ъгъл
Side Tile Странична плочка
Inner Corner Tile Плочка за вътрешен ъгъл
+ Auto-Centered Авто-центрирана
+ Auto-Between Авто-между
+ Auto-Sliced Авто-срязана
+ Auto-Overlap Авто-застъпване
Start Tile Начална плочка
End Tile Крайна плочка
Fit Пълно прилягане
@@ -1955,6 +1967,7 @@ font-technology Variable Променливи
Brush Art Графика на четка
New Calligraphic Brush Нова калиграфска четка
New Character Style Нов стил на знак
+ New Character Style… Нов стил на знак…
New Color Group Нова цветова група
New Color Group… Нова цветова група…
New Document Presets Предварителни настройки за нов документ
@@ -1970,6 +1983,7 @@ font-technology Variable Променливи
New Opacity Masks Are Clipping Новите маски за непрозрачност са изрязващи
New Opacity Masks Are Inverted Новите маски за непрозрачност са инвертирани
New Paragraph Style Нов стил на абзац
+ New Paragraph Style… Нов стил на абзац…
New Pattern Brush from Selection Нова щампова четка от селекцията
New PDF Preset Нова предварителна настройка за PDF
New Print Preset Нова предварителна настройка за печат
@@ -1983,6 +1997,8 @@ font-technology Variable Променливи
New View Нов изглед
New View… Нов изглед…
New Window Нов прозорец
+ Next Document Следващ документ
+ Previous Document Предишен документ
New Without Dialog Нов без диалогов прозорец
New Workspace Ново работно пространство
New Workspace… Ново работно пространство…
@@ -2892,6 +2908,7 @@ font-technology Variable Променливи
Shape Builder Regions Области на създателя на фигури
Shape Builder Tool Инструмент „Създател на фигури“
Shape Effects Ефекти за фигури
+ Shape Mode Режим на фигура
Shape Modes: Режими на фигури:
Shape Properties: Свойства на фигурата:
Shaper Tool Инструмент „Shaper“
@@ -2950,6 +2967,7 @@ font-technology Variable Променливи
Show Original Path Показване на оригиналния път
Open this dialog with these settings next time Отваряне на този прозорец с тези настройки следващия път
Auto-Simplify Автоматично опростяване
+ Auto-Smooth Автоматично изглаждане
Show Package Показване на пакет
Show Panel Показване на панел
Show Pattern Swatches Показване на образци за мостра
@@ -2984,6 +3002,7 @@ font-technology Variable Променливи
Simplify Опростяване
Simplify: Опростяване:
Simplify… Опростяване…
+ Smooth… Изглаждане…
Simulate Colored Paper Симулиране на цветна хартия
Simulate Paper Симулиране на хартия
Double Column Две колони
@@ -2991,6 +3010,7 @@ font-technology Variable Променливи
Single Quotes: Единични кавички:
Single Right Quotation Mark Дясна единична кавичка
Single-line Composer Ред по ред композитор
+ Toggle Line Composer Превключване на композитора на редове
Sixth Space Шесто разстояние
Size Размер
Size Tile to Art Оразмеряване на плочката според обектите
@@ -3104,6 +3124,11 @@ font-technology Variable Променливи
Stroke Щрих
Stroke (X), double-click for the Color Picker Щрих (X), щракнете двукратно за палитрата с цветове
Stroke Color Цвят на щриха
+ Fill Gradient Градиент на запълване
+ Stroke Gradient Градиент на щриха
+ Fill Pattern Мостра на запълване
+ Stroke Pattern Мостра на щриха
+ Patterns Мостри
Stroke Options Опции на щриха
Character: Знак:
Character options Опции на знака
@@ -3394,6 +3419,7 @@ font-technology Variable Променливи
Unlock Guides Отключване на водачите
Unnamed Objects Безименни обекти
Unprintable margin: Непечатаемо поле:
+ Unselected Artwork Неизбрани графични елементи
Unshift Преместване назад (Unshift)
Untitled Без заглавие
Update Link Актуализиране на връзката
@@ -3979,6 +4005,7 @@ axis Both И двете
@msg missing `id` (see plugin.list) липсва `id` (вижте plugin.list)
@msg missing `name` липсва `name`
@msg missing `tool` липсва `tool`
+@msg missing id липсва id
@msg missing index липсва индекс
@msg missing number `{key}` липсва число `{key}`
@msg missing integer `{key}` липсва цяло число `{key}`
@@ -4011,6 +4038,7 @@ axis Both И двете
@msg no current layer няма текущ слой
@msg no data няма данни
@msg no dialog open няма отворен диалогов прозорец
+@msg the open dialog has no Reset отвореният диалогов прозорец няма бутон „Нулиране“
@msg no document няма документ
@msg no document open няма отворен документ
@msg no effect applied yet все още няма приложен ефект
@@ -4090,8 +4118,10 @@ axis Both И двете
@msg not an EMF or WMF file не е EMF или WMF файл
@msg not found не е открито
@msg not in pattern editing mode не е в режим на редактиране на мостра
+@msg finish editing the pattern first първо завършете редактирането на мострата
@msg nothing encoded нищо не е кодирано
@msg nothing selected нищо не е избрано
+@msg nothing selected is in a group нищо от избраното не е в група
@msg nothing to align няма нищо за подравняване
@msg nothing to distort няма нищо за изкривяване
@msg nothing to export: the document has no visible art (or turn on Use Artboards) няма нищо за експортиране: документът няма видима графика (или включете „Използване на работни области“)
@@ -4212,10 +4242,14 @@ axis Both И двете
@msg the layer or group is locked слойът или групата са заключени
@msg the guide is on a hidden or locked layer водачът е в скрит или заключен слой
@msg the target layer is locked or hidden целевият слой е заключен или скрит
+@msg the object is hidden or locked обектът е скрит или заключен
+@msg the object is outside the isolated group обектът е извън изолираната група
+@msg type objects can't be isolated текстовите обекти не могат да бъдат изолирани
@msg the layer to flatten into is hidden слоят, в който се сплесква, е скрит
@msg the object already has an opacity mask обектите вече имат маска за непрозрачност
@msg the object has no geometry обектът няма геометрия
@msg the object has no opacity mask обектът няма маска за непрозрачност
+@msg stop editing the opacity mask first първо спрете редактирането на маската за непрозрачност
@msg the object has no stroke обектът няма щрих
@msg the object is beyond the plane's horizon обектът е извън хоризонта на равнината
@msg the object isn't in perspective обектът не е в перспектива
@@ -4400,6 +4434,7 @@ axis Both И двете
Shaper Инструмент за форми
Expand Shaper Group Разширяване на групата от форми
Release Shaper Group Освобождаване на групата от форми
+ Remove from Shaper Group Премахване от групата от форми
Select Shaper Face Избиране на лице на формата
Drag art, colors and text styles here to reuse them across documents. Libraries are stored on this machine — no account required. Плъзнете графика, цветове и текстови стилове тук, за да ги използвате повторно в различни документи. Библиотеките се съхраняват на това устройство — не се изисква акаунт.
1 Color Job Задание с 1 цвят
@@ -5269,6 +5304,9 @@ theme Appearance Външен вид
# Type › Reset Tracking and Kerning
Reset Tracking and Kerning Нулиране на разредката и кернинга
Reset Horizontal Scale Нулиране на хоризонталния мащаб
+ Highlight Font Name Маркиране на името на шрифта
+ Highlight Kerning Маркиране на кернинга
+ Highlight Tracking Маркиране на разредката
@msg span must be "object" or "selection", got {v} span трябва да е "object" или "selection", а не {v}
@msg span: "selection" places a `gradient`, not a swatch span: "selection" поставя `gradient`, а не мостра
@msg span: "selection" places a gradient: give `gradient` span: "selection" поставя градиент: задайте `gradient`
@@ -5535,4 +5573,9 @@ axis Y Axis Y ос
Save Brush Library… Запази библиотека с четки…
@msg no empty artboards to delete няма празни работни области за изтриване
Scale Presets Пресети за мащаб
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Първо разширете външния вид (Обект › Разширяване на външния вид)
Live preview Преглед на живо
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Точков текст
+ Area Text Текст в зона
diff --git a/crates/ui-egui/src/i18n/ca.tsv b/crates/ui-egui/src/i18n/ca.tsv
new file mode 100644
index 0000000000..0eb9ab2c49
--- /dev/null
+++ b/crates/ui-egui/src/i18n/ca.tsv
@@ -0,0 +1,5678 @@
+# Catalan (ca) catalog. Same format as zh-hant.tsv: context source translation
+# (empty context = a plain UI string; `@id` = a command id; `@plural` = "one|other" forms;
+# `@msg` = a status or error message).
+#
+# Clean-room: written from the meaning of VectorCraft's English labels in standard Catalan,
+# using ordinary vector-illustration vocabulary (tauler, traçat, punt d'ancoratge, traç,
+# farciment, mostra, degradat, màscara, capa). No other application's Catalan localisation
+# resource, string table or product UI was consulted or copied, and no other catalog's
+# translations were used; add entries the same way.
+#
+# Conventions: labels use sentence case; commands use the imperative (Desa, Obre, Mostra).
+# Plurals are one/other (singular for 1, plural for 0 and 2+). Status and error messages
+# (`@msg`) keep the case of their English first word, as they are often shown after "…: ".
+# Left in English on purpose (`MENU_KEEP_AS_IS` in the tests): the product name, OpenType, the
+# built-in workspace names and the bracketed perspective grid preset names. Every `ca-*`
+# locale (ca-ES, ca-AD, ca-FR, ca-IT, ca-ES-VALENCIA) resolves here. Keep the placeholders
+# ({name}), the trailing "…" and the leading/trailing spaces of fragments exactly as they are.
+ — missing — absent
+ — substituted by {style} — substituït per {style}
+ — {n} characters from another font — {n} caràcters d’un altre tipus de lletra
+ a pin to warp | un pin per deformar |
+ a point to edit it | un punt per editar-lo |
+ a stroke to add a width point | un traç per afegir-hi un punt d’amplada |
+ across a selected object to set the gradient direction per un objecte seleccionat per definir la direcció del degradat
+ across paths to push them along | pels traçats per empènyer-los |
+ an anchor or path segment to select it | un punt d’ancoratge o un segment de traçat per seleccionar-lo |
+ an object to copy its attributes | un objecte per copiar-ne els atributs |
+ an object, then another to blend them | un objecte i després un altre per fusionar-los |
+ cancels | Double-click the tool for options cancel·la | Fes doble clic a l’eina per veure les opcions
+ for exact size per obtenir la mida exacta
+ for exact values per obtenir els valors exactes
+ from center | des del centre |
+ keeps its proportions) manté les proporcions)
+ near a selected pin to rotate | a prop d’un pin seleccionat per girar |
+ on the canvas to create one al llenç per crear-ne un
+ on the canvas to create one ( al llenç per crear-ne un (
+ out from a highlighted edge to place its dimension | des d’una vora ressaltada cap enfora per col·locar-ne la dimensió |
+ over paths to roughen their outlines | sobre traçats per fer aspres els contorns |
+ over paths, and hold still to keep going | sobre traçats i mantén el punter quiet per continuar |
+ right or left to zoom in or out | a la dreta o a l’esquerra per ampliar o reduir |
+ selects several, or draws one inside an artboard) en selecciona diversos o dibuixa un dins d’un tauler)
+ the art to add a pin | l’obra per afegir-hi un pin |
+ the object to duplicate l’objecte per duplicar-lo
+ the object to select | l’objecte per seleccionar-lo |
+ to add per afegir
+ to add a corner point | per afegir un punt d’angle |
+ to add a smooth point | per afegir un punt suau |
+ to add smooth points | per afegir punts suaus |
+ to apply the selection's to it | per aplicar-hi la selecció |
+ to blend from it | per fusionar a partir d’aquest |
+ to change one side | per canviar un costat |
+ to close | per tancar |
+ to constrain proportions | per mantenir les proporcions |
+ to copy | per copiar |
+ to create area type | per crear text d’àrea |
+ to create point type | per crear text de punt |
+ to draw | per dibuixar |
+ to exit editing per sortir de l’edició
+ to finish per acabar
+ to keep zooming per continuar ampliant
+ to move | per moure |
+ to move in perspective | per moure en perspectiva |
+ to pan the view per desplaçar la vista
+ to remove pins per eliminar pins
+ to remove points per eliminar punts
+ to sample a color per mostrejar un color
+ to scale in perspective per escalar en perspectiva
+ to search every command per cercar totes les ordres
+ to select an artboard | per seleccionar un tauler |
+ to select more pins | per seleccionar més pins |
+ to select more points | per seleccionar més punts |
+ to select multiple objects | per seleccionar diversos objectes |
+ to set spacing and orientation per definir l’espaiat i l’orientació
+ to set the reference point | per definir el punt de referència |
+ to size the brush ( per ajustar la mida del pinzell (
+ to toggle corner | per alternar el punt d’angle |
+ to transform | per transformar |
+ to zoom in | per ampliar |
+ to zoom into an area per ampliar una àrea
+ to zoom out | per reduir |
+ while dragging to move perpendicular to the plane | mentre arrossegues per moure’t perpendicularment al pla |
+ % of all commits % de tots els commits
+ (closest) (el més proper)
+ + Add Scale + Afegeix escala
+ 0.2 (quality) to 100 (speed) 0,2 (qualitat) a 100 (velocitat)
+ 1 bit 1 bit
+ 1 Color Job Treball d’1 color
+ 1 Color Job… Treball d’1 color…
+ 1 Layer 1 capa
+ 1 {unit} on the artboard stands for {real} {unit} in the scene. 1 {unit} al tauler representa {real} {unit} a l’escena.
+ 16 bit 16 bits
+ 16 bits/pixel 16 bits/píxel
+ 16 Colors 16 colors
+ 2 Color Job Treball de 2 colors
+ 2 Color Job… Treball de 2 colors…
+ 2-Up 2 per full
+ 24 bit 24 bits
+ 24 bits/pixel 24 bits/píxel
+ 256 Colors 256 colors
+ 2K Cinema Cinema 2K
+ 2up 2 per full
+ 3 Color Job Treball de 3 colors
+ 3 Color Job… Treball de 3 colors…
+ 3 Colors 3 colors
+ 3 x 3 Average Mitjana de 3 x 3
+ 30° Angles Angles de 30°
+ 32 bit 32 bits
+ 32 bits/pixel 32 bits/píxel
+ 3D and Materials 3D i materials
+ 3D Lighting Preset Preajust d’il·luminació 3D
+ 3D Ribbon Cinta 3D
+ 4 bit 4 bits
+ 4-Up 4 per full
+ 45° Angles Angles de 45°
+ 4K Cinema Cinema 4K
+ 4K UHD 4K UHD
+ 4up 4 per full
+ 5 x 5 Average Mitjana de 5 x 5
+ 6 Colors 6 colors
+ 60° Angles Angles de 60°
+ 8 bit 8 bits
+ 8 Colors 8 colors
+ 8K UHD 8K UHD
+ 90° & 45° & 30° Angles Angles de 90°, 45° i 30°
+ 90° & 45° Angles Angles de 90° i 45°
+ 90° Angles Angles de 90°
+ : :
+ < 1 sec < 1 s
+
+ @{login}: {prs}, {commits}, +{added} / −{deleted} lines (Δ {delta}), +{binary_added} / −{binary_deleted} binary assets, {first} – {last} @{login}: {prs}, {commits}, +{added} / −{deleted} línies (Δ {delta}), +{binary_added} / −{binary_deleted} recursos binaris, {first} – {last}
+ [Custom] [Personalitzat]
+ [Default] [Predeterminat]
+ [Default] is protected: New… starts an editable copy. [Predeterminat] està protegit: Nou… inicia una còpia editable.
+ [High Quality Print] [Impressió d’alta qualitat]
+ [High Resolution] [Alta resolució]
+ [Low Resolution] [Baixa resolució]
+ [Medium Resolution] [Resolució mitjana]
+ [Normal Character Style] [Estil de caràcter normal]
+ [Normal Paragraph Style] [Estil de paràgraf normal]
+ [PDF/X-1a:2001] [PDF/X-1a:2001]
+ [PDF/X-3:2002] [PDF/X-3:2002]
+ [PDF/X-4:2010] [PDF/X-4:2010]
+ [Press Quality] [Qualitat d’impremta]
+ [Smallest File Size] [Mida de fitxer més petita]
+ [Unnamed] [Sense nom]
+ [VectorCraft Default] [VectorCraft predeterminat]
+ A file dialog is open: choose there first Hi ha un diàleg de fitxers obert: tria-hi primer
+ A File per Object Un fitxer per objecte
+ A File… Un fitxer…
+ A later row takes this shortcut Una fila posterior utilitza aquesta drecera
+ A legacy .ai file holds one artboard: each artboard you check is saved as a separate file. Un fitxer .ai heretat conté un sol tauler: cada tauler que marquis es desa com a fitxer a part.
+ A lower value follows the stroke closely; a higher one gives fewer points and smoother curves. Un valor baix segueix el traç de prop; un de més alt dona menys punts i corbes més suaus.
+ A new preset starting from the selected one Un preajust nou a partir del seleccionat
+ A saved copy of the selected preset Una còpia desada del preajust seleccionat
+ A3 A3
+ A4 A4
+ A5 A5
+ A6 A6
+ About Quant a
+ About VectorCraft Quant al VectorCraft
+ above a sobre
+ Above Text A sobre del text
+ Absolute Absolut
+ Absolute Colorimetric Colorimètric absolut
+ Absolute Position Posició absoluta
+ Abutting Contigu
+ Accent Color Color d’accent
+ Accented Edges Vores accentuades
+ Accented Edges… Vores accentuades…
+ Accurate Precís
+ Action {n} Acció {n}
+ Actions Accions
+ Activate Document Activa el document
+ Activate Panel Activa el panell
+ Active Perspective Plane Pla de perspectiva actiu
+ Actual Size Mida real
+ Adaptive Adaptatiu
+ Add Afegeix
+ Add Anchor (Pen) Afegeix un punt d’ancoratge (ploma)
+ Add Anchor Point Afegeix un punt d’ancoratge
+ Add Anchor Point Tool Eina d’afegir un punt d’ancoratge
+ Add Anchor Points Afegeix punts d’ancoratge
+ Add Content Afegeix contingut
+ Add Effect Afegeix un efecte
+ Add Event Afegeix un esdeveniment
+ Add filters from the list above Afegeix filtres de la llista de dalt
+ Add Font Files Afegeix fitxers de tipus de lletra
+ Add Fonts Afegeix tipus de lletra
+ Add Freeform Line Afegeix una línia de forma lliure
+ Add Freeform Point Afegeix un punt de forma lliure
+ Add Guide Afegeix una guia
+ Add Guides Afegeix guies
+ Add JavaScript File Afegeix un fitxer JavaScript
+ Add Light Afegeix una llum
+ Add Mesh Line Afegeix una línia de malla
+ Add New Afegeix-ne un de nou
+ Add New Effect Afegeix un efecte nou
+ Add New Fill Afegeix un farciment nou
+ Add New Stroke Afegeix un traç nou
+ Add Selected Artwork (Alt: as one asset) Afegeix l’obra seleccionada (Alt: com un sol recurs)
+ Add Selected Artwork as Multiple Assets Afegeix l’obra seleccionada com a diversos recursos
+ Add Selected Artwork as One Asset Afegeix l’obra seleccionada com un sol recurs
+ Add space to fit Afegeix espai per encabir-ho
+ Add Spine Point Afegeix un punt d’espina
+ Add Swatches Afegeix mostres
+ Add to Brushes Afegeix als pinzells
+ Add to Graphic Styles Afegeix als estils gràfics
+ Add to Library Afegeix a la biblioteca
+ Add to Profiles Afegeix als perfils
+ Add to Profiles… Afegeix als perfils…
+ Add to Selection Afegeix a la selecció
+ Add to Stack Afegeix a la pila
+ Add to Swatches Afegeix a les mostres
+ Add to Symbols Afegeix als símbols
+ Add to the Current Shortcuts Afegeix a les dreceres actuals
+ Add Used Colors Afegeix els colors utilitzats
+ Additional Fonts Folder Carpeta addicional de tipus de lletra
+ Additional Plug-ins Folder Carpeta addicional de complements
+ Adjust Adjoining Width Points Ajusta els punts d’amplada contigus
+ Adjust Color Balance… Ajusta l’equilibri de color…
+ Adjust Colors Ajusta els colors
+ Adjust Options: Opcions d’ajust:
+ Advanced Avançat
+ Advanced Options Opcions avançades
+ After First: Després del primer:
+ Align Alinea
+ Align center Alinea al centre
+ Align left Alinea a l’esquerra
+ Align Objects: Alinea objectes:
+ Align On: Alinea a:
+ Align right Alinea a la dreta
+ Align Stroke to Center Alinea el traç al centre
+ Align Stroke to Inside Alinea el traç a l’interior
+ Align Stroke to Outside Alinea el traç a l’exterior
+ Align Stroke: Alinea el traç:
+ Align to Artboard Alinea al tauler
+ Align to Glyph Bounds Alinea als límits del glif
+ Align to Key Object Alinea a l’objecte clau
+ Align to Page Alinea a la pàgina
+ Align to Path Alinea al traçat
+ Align to Selection Alinea a la selecció
+ Align To: Alinea a:
+ Align: Alineació:
+ Alignment Guides Guies d’alineació
+ Alignment: Alineació:
+ All Tot
+ All Affected Objects Tots els objectes afectats
+ All Artboards Tots els taulers
+ All Artwork Above Tot l’art superior
+ All Caps Totes majúscules
+ All Categories Totes les categories
+ All colours are within the CMYK gamut Tots els colors són dins de la gamma CMYK
+ All in One Folder Tot en una carpeta
+ All Layers Totes les capes
+ All on Active Artboard Tot al tauler actiu
+ All on Same Layers Tot a les mateixes capes
+ All printer's marks Totes les marques d’impressió
+ All Rasterized Regions Totes les regions rasteritzades
+ All Scripts Tots els scripts
+ All shortcuts reset to defaults. Tots els drets de teclat restablerts als valors predeterminats.
+ All Slices Tots els talls
+ All Text Objects Tots els objectes de text
+ All the art Tot l’art
+ All Tools Totes les eines
+ Alt Alt
+ Alt key toggles to Smooth Tool La tecla Alt canvia a l’eina Suavitza
+ Alt+Click Alt+clic
+ Alt+Drag Alt+arrossega
+ Alt: Alt:
+ Alter Paths for Appearance Modifica els traçats per a l’aparença
+ Amber Ambre
+ Ambient Light Llum ambiental
+ Amount Quantitat
+ Amount: Quantitat:
+ Analogous Anàleg
+ Analogous 2 Anàleg 2
+ Anchor Point Punt d’ancoratge
+ Anchor Point Tool Eina de punt d’ancoratge
+ Anchor Points Punts d’ancoratge
+ "In" Control Points Punts de control «d’entrada»
+ "Out" Control Points Punts de control «de sortida»
+ Anchor Points, Handle, and Bounding Box Display Visualització de punts d’ancoratge, nanses i quadre delimitador
+ Anchor/Path Labels Etiquetes d’ancoratge/traçat
+ Anchors Ancoratges
+ Anchors: Ancoratges:
+ Angle Angle
+ Angle: Angle:
+ Angled Strokes Traços angulars
+ Angled Strokes… Traços angulars…
+ Angles Angles
+ Angular Angular
+ Animated Zoom Zoom animat
+ Anti-alias Antialiàsing
+ Anti-Alias Antialiàsing
+ Anti-alias Rasters Antialiàsing de ràsters
+ Anti-aliased Artwork Art amb antialiàsing
+ Anti-aliasing: Antialiàsing:
+ Any except extracting pages Qualsevol excepte extreure pàgines
+ Any Kind Qualsevol tipus
+ Appearance Aparença
+ Appearance Attribute Atribut d’aparença
+ Appearance Item Element d’aparença
+ Appearance of Black Aparença del negre
+ Appearance Panel Panell Aparença
+ Appearance panel Panell Aparença
+ Applied Filters Filtres aplicats
+ Applies the next time VectorCraft starts. S’aplica la propera vegada que s’iniciï VectorCraft.
+ Applies when the linked file is relinked or updated. S’aplica quan el fitxer enllaçat es torna a enllaçar o s’actualitza.
+ Apply Aplica
+ Apply Brush Aplica el pinzell
+ Apply Bullets Aplica les vinyetes
+ Apply Character Style Aplica l’estil de caràcter
+ Apply Data Set Aplica el conjunt de dades
+ Apply Effect Aplica l’efecte
+ Apply Graphic Style Aplica l’estil gràfic
+ Apply Last Color Aplica l’últim color
+ Apply Last Effect Aplica l’últim efecte
+ Apply Last Gradient Aplica l’últim degradat
+ Apply Numbers Aplica els números
+ Apply Paragraph Style Aplica l’estil de paràgraf
+ Apply SVG Filter… Aplica el filtre SVG…
+ Apply to All Aplica-ho a tot
+ Apply to All ({count} more missing) Aplica-ho a tot ({count} més que falten)
+ Apply {name} Aplica {name}
+ Approximate path Aproxima el traçat
+ Arabic Àrab
+ Arc Arc
+ Arc Lower… Arc inferior…
+ Arc Segment Tool Options Opcions de l’eina de segment d’arc
+ Arc Tool Eina d’arc
+ Arc Upper… Arc superior…
+ Arch… Arqueja…
+ Arc… Arc…
+ Area / Path Type Tipus d’àrea / traçat
+ Area Graph Tool Eina de gràfic d’àrea
+ Area Text Objects Objectes de text d’àrea
+ Area Type Text d’àrea
+ Area Type Options Opcions de text d’àrea
+ Area Type Options… Opcions de text d’àrea…
+ Area Type Tool Eina de text d’àrea
+ Around Object Al voltant de l’objecte
+ Arrange Organitza
+ Arrange by Column Organitza per columnes
+ Arrange by Row Organitza per files
+ Arrange Intertwine Area Organitza l’àrea d’entrelligament
+ Arrange: Bring to Front Organitza: porta al davant
+ Arrow Fletxa
+ Arrow (open) Fletxa (oberta)
+ Arrowheads: Puntes de fletxa:
+ Art Art
+ Art & Illustration Art i il·lustració
+ Art and Bright Colors Art i colors vius
+ Art Brush Pinzell artístic
+ Art Brush Options Opcions del pinzell artístic
+ Art Optimized Optimitzat per a l’art
+ Art Ribbons Cintes d’art
+ Art using a deleted global swatch keeps its colour. L’art que utilitza una mostra global suprimida conserva el seu color.
+ Artboard Tauler
+ Artboard Options Opcions del tauler
+ Artboard Options: edit with the Artboard tool Opcions del tauler: edita amb l’eina de tauler
+ Artboard Options… Opcions del tauler…
+ Artboard or Item Name Nom del tauler o de l’element
+ Artboard Tool Eina de tauler
+ Artboard {number} Tauler {number}
+ Artboard {n} of {total} Tauler {n} de {total}
+ Artboard: Tauler:
+ Artboards Taulers
+ Artboards: {n} Taulers: {n}
+ ArtCraft Website Lloc web d’ArtCraft
+ ArtCraft website Lloc web d’ArtCraft
+ Artistic Artístic
+ Artwork Art
+ Artwork Colors Colors de l’art
+ As Multiple Assets Com a diversos recursos
+ As Single Asset Com a un sol recurs
+ Ascender Ascendent
+ Ascent Ascens
+ Ask When Modified Pregunta quan es modifiqui
+ Aspect Ratio Relació d’aspecte
+ Asset Export Exportació de recursos
+ Asset Export Settings Configuració d’exportació de recursos
+ Assets Recursos
+ Assign Assigna
+ Assign Profile… Assigna el perfil…
+ Assign: Assigna:
+ Attach Adjunta
+ Attach Objects on Path Adjunta objectes al traçat
+ Attach to Active Plane Adjunta al pla actiu
+ Attributes Atributs
+ Author Title: Títol de l’autor:
+ Author: Autor:
+ Auto Automàtic
+ Auto Color Color automàtic
+ Auto Grouping Agrupació automàtica
+ Auto Leading: Interlineat automàtic:
+ Auto Size Mida automàtica
+ Auto Size New Area Type Mida automàtica del text d’àrea nou
+ Auto Spell Check Correcció ortogràfica automàtica
+ Auto-Collapse Iconic Panels Reducció automàtica dels panells icònics
+ Auto-Rotate (turn the paper to each artboard) Rotació automàtica (gira el paper a cada tauler)
+ Auto-Simplify Simplificació automàtica
+ Automate Automatitza
+ Automatic Automàtic
+ Automatic flatness Planitud automàtica
+ Automatically Automàticament
+ Automatically Save Recovery Data Desa automàticament les dades de recuperació
+ Average Mitjana
+ Average… Mitjana…
+ Away from the Line Allunyat de la línia
+ Axis Eix
+ Axis side Costat de l’eix
+ Axis: Eix:
+ B4 B4
+ B5 B5
+ Back Enrere
+ Background Color: Color de fons:
+ Background Contents Contingut del fons
+ Background Contents: Contingut del fons:
+ Background Level Nivell de fons
+ Background: Fons:
+ Backspace Retrocés
+ Balance Equilibri
+ Bar Barra
+ Bar Graph Tool Eina de gràfic de barres
+ Barbed Amb pues
+ Bas Relief Baix relleu
+ Bas Relief… Baix relleu…
+ Base Along: Base al llarg de:
+ Baseline Línia de base
+ Baseline (Standard) Línia de base (estàndard)
+ Baseline Optimized Optimitzat per a la línia de base
+ Baseline Shift Desplaçament de la línia de base
+ Basic Bàsic
+ Basic Latin Llatí bàsic
+ Basic Shapes Formes bàsiques
+ Batch Lot
+ Batch… Lot…
+ Before Last: Abans de l’últim:
+ Begin Recording Comença a enregistrar
+ Begin Undo Group Inicia el grup de desfets
+ Bend: Corba:
+ Best Millor
+ Between Line and Object Entre la línia i l’objecte
+ Bevel Bisell
+ Bevel both sides Bisell a les dues cares
+ Bevel Inside Bisell interior
+ Bevel Join Unió bisellada
+ Bevel Shape Forma de bisell
+ Bicubic Bicúbica
+ Binary assets added S’han afegit recursos binaris
+ Binary assets removed S’han suprimit recursos binaris
+ Bind Variable Vincula la variable
+ Bitmap Mapa de bits
+ Black Negre
+ Black & White Blanc i negre
+ Black and White Blanc i negre
+ Black and White Logo Logotip en blanc i negre
+ Black and white stay as they are. Dark colors become shades of the stroke color and light colors become tints of it. El blanc i el negre es queden tal com són. Els colors foscos es converteixen en tons del color del traç i els colors clars en tints d’aquest.
+ Black becomes the stroke color and white stays white. Other colors become tints of the stroke color by their lightness. El negre es converteix en el color del traç i el blanc es queda blanc. Els altres colors es converteixen en tints del color del traç segons la seva lluminositat.
+ Black Intensity Intensitat del negre
+ Black Outline Contorn negre
+ BLANK DOCUMENT PRESETS PREAJUSTOS DE DOCUMENT EN BLANC
+ Bleed Sangrat
+ Bleed: Sangrat:
+ Bleeds Sangrats
+ Blend Fusió
+ Blend Front to Back Fusiona de davant a darrere
+ Blend Horizontally Fusiona horitzontalment
+ Blend Info Informació de fusió
+ Blend Options Opcions de fusió
+ Blend Options… Opcions de fusió…
+ Blend Tool Eina de fusió
+ Blend Vertically Fusiona verticalment
+ Blending Mode Mode de fusió
+ Blends and Transparency Fusions i transparència
+ Bloat Inflament
+ Bloat Tool Eina d’inflament
+ Blob Brush Pinzell de taca
+ Blob Brush Tool Eina de pinzell de taca
+ Blocks Blocs
+ Blue Blau
+ Blur Desenfoca
+ Blur Mode Mode de desenfocament
+ Bold Negreta
+ Border Thickness Gruix de la vora
+ Both sides Tots dos costats
+ Bottom A baix
+ Bottom in Front A baix al davant
+ Bottom Left A baix a l’esquerra
+ Bottom Left: A baix a l’esquerra:
+ Bottom Right A baix a la dreta
+ Bottom Right: A baix a la dreta:
+ Bottom to Top De baix a dalt
+ Bottom-Justified Tab Tabulació alineada a baix
+ Bottom-to-Bottom Leading Interlineat de baix a baix
+ Bottom: A baix:
+ Bounding Box Quadre delimitador
+ Bounds Límits
+ Bounds (Fill Proportionally) Límits (emplena proporcionalment)
+ Bounds (Fit Proportionally) Límits (ajusta proporcionalment)
+ Bracket Claudàtor
+ Bracket never closed Delimitador mai tancat
+ Branding Identitat de marca
+ Break Link Trenca l’enllaç
+ Break Link to Graphic Style Trenca l’enllaç amb l’estil gràfic
+ Break Link to Symbol Trenca l’enllaç amb el símbol
+ Break Thread Trenca el fil
+ Brick Maó
+ Brick by Column Maó per columnes
+ Brick by Row Maó per files
+ Brick Offset: Desplaçament del maó:
+ Brightness Lluentor
+ Brightness/Contrast… Lluentor/Contrast…
+ Brightness: Lluentor:
+ Brights Vius
+ Bring All to Front Porta-ho tot al davant
+ Bring Forward Porta endavant
+ Bring to Front Porta al davant
+ Bristle Cerres
+ Bristle Brush Pinzell de cerres
+ Bristle Brush Options Opcions del pinzell de cerres
+ Bristle Brush Strokes Traços del pinzell de cerres
+ Bristle Density: Densitat de les cerres:
+ Bristle Length: Longitud de les cerres:
+ Bristle Thickness: Gruix de les cerres:
+ Brown Marró
+ Browser Navegador
+ Brush Affects: El pinzell afecta:
+ Brush Art Art del pinzell
+ Brush Definition Definició del pinzell
+ Brush Detail Detall del pinzell
+ Brush Libraries Biblioteques de pinzells
+ Brush Libraries Menu Menú de biblioteques de pinzells
+ Brush Library Biblioteca de pinzells
+ Brush Options… Opcions del pinzell…
+ Brush Scale Options Opcions d’escala del pinzell
+ Brush Size Mida del pinzell
+ Brush Strokes Traços del pinzell
+ Brushes Pinzells
+ Built-in Libraries Biblioteques integrades
+ Built-in presets are read-only: New… starts an editable copy. Els preajustos integrats són de només lectura: Nou… inicia una còpia editable.
+ Built-in presets don't change: New makes a copy you can edit. Els preajustos integrats no canvien: Nou crea una còpia que pots editar.
+ Built-in presets don't change: New… starts an editable copy. Els preajustos integrats no canvien: Nou… inicia una còpia editable.
+ Bulge… Abombament…
+ Bullet Punt de llista
+ Bullets Punts de llista
+ Bullets and Numbering Punts i numeració
+ Burasagari Burasagari
+ Burlap Arpillera
+ Business Card 3.5 × 2 in Targeta de visita 3,5 × 2 in
+ Business Card 85 × 55 mm Targeta de visita 85 × 55 mm
+ Business Card 91 × 55 mm Targeta de visita 91 × 55 mm
+ Butt Cap Extrem pla
+ By Artboard or Item Per tauler o element
+ By Format Per format
+ By Item, Then Format Per element, després per format
+ By Layer Per capa
+ By Object Per objecte
+ By Size or Row Per mida o fila
+ Byte Order: Ordre de bytes:
+ Calligraphic Cal·ligràfic
+ Calligraphic Brush Pinzell cal·ligràfic
+ Calligraphic Brush Options Opcions del pinzell cal·ligràfic
+ Calligraphic Nibs Plomes cal·ligràfiques
+ Can't export “{name}”. No es pot exportar “{name}”.
+ Can't open “{name}”. No es pot obrir “{name}”.
+ Can't print these settings: see the Summary No es poden imprimir aquests paràmetres: consulta el resum
+ Can't save “{name}”. No es pot desar “{name}”.
+ Cancel Cancel·la
+ Cancel Export Cancel·la l’exportació
+ Cancel Key Object Cancel·la l’objecte clau
+ Cancel Pattern Editing Cancel·la l’edició del motiu
+ Cancel Plug-in Run Cancel·la l’execució del complement
+ Canvas Llenç
+ Canvas Color Color del llenç
+ Cap Extrem
+ Cap Height Alçada de majúscules
+ Cap: Extrem:
+ Capture Data Set Captura el conjunt de dades
+ Cascade Cascada
+ Categories Categories
+ Cell Size Mida de la cel·la
+ Center Centre
+ Center Artwork Centra la il·lustració
+ Center on Artboard Centra al tauler
+ Center-Justified Tab Tabulació alineada al centre
+ Centimeters Centímetres
+ Chalk & Charcoal Guix i carbó
+ Chalk & Charcoal… Guix i carbó…
+ Chamfer Xamfrá
+ Change Canvia
+ Change All Canvia-ho tot
+ Change Case Canvia les majúscules i minúscules
+ Change Panel Layout Canvia la disposició dels panells
+ Change Screen Mode (F) Canvia el mode de pantalla (F)
+ Change to Artboard Rulers Canvia a regles del tauler
+ Change to Global Rulers Canvia a regles globals
+ Change to Left-to-Right Layout Canvia a disposició d’esquerra a dreta
+ Change to Right-to-Left Layout Canvia a disposició de dreta a esquerra
+ Changed since the last Refresh. S’ha modificat des de l’última actualització.
+ Changes allowed: Canvis permesos:
+ Changes made since it was last saved will be lost. Els canvis fets des de l’últim desament es perdran.
+ Changes the reference app's preferences Canvia les preferències de l’aplicació de referència
+ Changing these settings changes how raster effects look when exported, flattened or expanded. Canviar aquests paràmetres altera l’aspecte dels efectes de ràster en exportar, aplanar o expandir.
+ Channel Canal
+ Channel 1 Canal 1
+ Channel 2 Canal 2
+ Channel 3 Canal 3
+ Channel 4 Canal 4
+ Character Caràcter
+ Character / Paragraph Caràcter / Paràgraf
+ Character Alignment Alineació de caràcters
+ Character Direction Direcció de caràcters
+ Character options Opcions de caràcter
+ Character Rotation Rotació de caràcters
+ Character Set: Joc de caràcters:
+ Character Style Estil de caràcter
+ Character Style Options Opcions de l’estil de caràcter
+ Character Styles Estils de caràcter
+ Character: Caràcter:
+ Charcoal Carbó
+ Charcoal… Carbó…
+ Check an artboard to save. Marca un tauler per desar.
+ Check Links Comprova els enllaços
+ Check Script Comprova l’script
+ Check Script… Comprova l’script…
+ Check Spelling… Comprova l’ortografia…
+ Checked Marcat
+ Chevron Xevró
+ Choose a filter Tria un filtre
+ Choose a folder Tria una carpeta
+ Choose the file to relink each linked file to. Files with the size and contents saved with the link come first. Tria el fitxer amb què tornar a enllaçar cada fitxer enllaçat. Els fitxers amb la mida i el contingut desats amb l’enllaç apareixen primer.
+ Choose… Tria…
+ Chop Design Retalla el disseny
+ Chrome Crom
+ Chrome… Crom…
+ Circle Cercle
+ Circle (open) Cercle (obert)
+ Classic Clàssic
+ Classic Defaults Valors predeterminats clàssics
+ Clean Up… Neteja…
+ Clear Esborra
+ Clear All Esborra-ho tot
+ Clear All Tabs Esborra totes les tabulacions
+ Clear Amount Quantitat de zona clara
+ Clear Appearance Esborra l’aparença
+ Clear Events Esborra els esdeveniments
+ Clear Guides Esborra les guies
+ Clear History Esborra l’historial
+ Clear Overrides Esborra les modificacions
+ Clear Recent Files Esborra els fitxers recents
+ Click Fes clic
+ Click an anchor point Fes clic en un punt d’ancoratge
+ Click or drag Fes clic o arrossega
+ Click the art with the Gradient tool to add or select points. Fes clic a la il·lustració amb l’eina Degradat per afegir o seleccionar punts.
+ Click the first point Fes clic al primer punt
+ Click the ramp or a type button to apply a gradient. Fes clic a la rampa o a un botó de tipus per aplicar un degradat.
+ Click to add a tab stop, drag to move it, drag it off the ruler to delete it Fes clic per afegir una tabulació, arrossega-la per moure-la i treu-la de la regla per suprimir-la
+ Click to apply to the selected type Fes clic per aplicar-ho al text seleccionat
+ Click to choose a swatch, Shift-click to mix a colour Fes clic per triar una mostra; Maj+clic per barrejar un color
+ Click to edit the mask; Alt-click to view only the mask; Shift-click to disable or enable it Fes clic per editar la màscara; Alt+clic per veure només la màscara; Maj+clic per desactivar-la o activar-la
+ Click to place each file at 100%, or drag to size it; arrow keys switch files, Esc skips one. Fes clic per col·locar cada fitxer al 100 %, o arrossega per redimensionar-lo; les tecles de fletxa canvien de fitxer i Esc en salta un.
+ Click to select, double-click to edit Fes clic per seleccionar i doble clic per editar
+ Click to toggle visibility Fes clic per alternar la visibilitat
+ Click to zoom in, Alt-click to zoom out, drag to pan, double-click to fit Fes clic per ampliar, Alt+clic per reduir, arrossega per desplaçar i doble clic per ajustar
+ Click, then press the key this code stands for (Esc cancels) Fes clic i prem la tecla que representa aquest codi (Esc cancel·la)
+ Click, then press the new shortcut (Esc cancels) Fes clic i prem la drecera nova (Esc cancel·la)
+ Client-side (.html) Costat del client (.html)
+ Clip Retalla
+ Clip Complex Regions Retalla les regions complexes
+ Clip Group Grup de retall
+ Clip to Art Retalla a la il·lustració
+ Clip to Artboard Retalla al tauler
+ Clip to Bounding Box Retalla al quadre delimitador
+ Clipboard as PDF Porta-retalls com a PDF
+ Clipboard as PNG Porta-retalls com a PNG
+ Clipboard as SVG Porta-retalls com a SVG
+ Clipboard as Text Porta-retalls com a text
+ Clipboard Formats Formats del porta-retalls
+ Clipboard Handling Gestió del porta-retalls
+ Clipping Mask Màscara de retall
+ Clipping Masks Màscares de retall
+ Clockwise En sentit horari
+ Close Tanca
+ Close All Tanca-ho tot
+ Close Gaps With Paths Tanca els buits amb traçats
+ Close Library Tanca la biblioteca
+ Close Panel Tanca el panell
+ Close Path Tanca el traçat
+ Close paths when ends are within: Tanca els traçats quan els extrems siguin a menys de:
+ Close the circular ends of open profiles. Partial sweeps keep their cut sides open. Tanca els extrems circulars dels perfils oberts. Els escombrats parcials mantenen oberts els costats tallats.
+ Closed Tancat
+ Closing bracket with no opening one Delimitador de tancament sense un d’obertura
+ Clumped Agrupat
+ Cmd Cmd
+ CMYK CMYK
+ CMYK Color Color CMYK
+ CMYK colours print with their own values; off, they go through the colour settings too. Els colors CMYK s’imprimeixen amb els seus propis valors; si es desactiva, també passen per la configuració de color.
+ CMYK Equivalents Equivalents CMYK
+ CMYK profile in effect Perfil CMYK en vigor
+ CMYK: CMYK:
+ Coarse Dots Punts gruixuts
+ Collapse Panel Group Replega el grup de panells
+ Collapse Panels to Icons Replega els panells a icones
+ Collapse to Icons Replega a icones
+ Collate Intercala
+ Collect for Export Recull per a l’exportació
+ Collect in New Layer Recull en una capa nova
+ Collect Links in a Separate Folder Recull els enllaços en una carpeta a part
+ Color Color
+ Color (,) Color (,)
+ Color Adjustments Ajustos de color
+ Color bars Barres de color
+ Color blindness – Deuteranopia-type Daltonisme – tipus deuteranòpsia
+ Color blindness – Protanopia-type Daltonisme – tipus protanòpsia
+ Color blindness – Tritanopia-type Daltonisme – tipus tritanòpsia
+ Color Burn Subexposa el color
+ Color conversion: Conversió de color:
+ Color Dodge Sobreexposició de color
+ Color Group Grup de colors
+ Color Group: Grup de colors:
+ Color Group: {name} Grup de colors: {name}
+ Color Guide Guia de colors
+ Color Guide Options Opcions de la guia de colors
+ Color Guide Options… Opcions de la guia de colors…
+ Color Halftone Semitons de color
+ Color Halftone… Semitons de color…
+ Color images Imatges en color
+ Color Library Biblioteca de colors
+ Color Library… Biblioteca de colors…
+ Color Management Gestió del color
+ Color Mixer (Shift-click the chip) Mesclador de colors (Maj+clic a la mostra)
+ Color Mode Mode de color
+ Color Mode: Mode de color:
+ Color Model: Model de color:
+ Color Models Models de color
+ Color Panel Options Opcions del panell de color
+ Color Picker Selector de color
+ Color Picker… Selector de color…
+ Color Reduction: Reducció de color:
+ Color Scheme Esquema de colors
+ Color Settings Configuració de color
+ Color Settings… Configuració de color…
+ Color Space Espai de color
+ Color Swatches Mostres de color
+ Color Table Taula de colors
+ Color Table (4 colors) Taula de colors (4 colors)
+ Color Table ({n} color) Taula de colors ({n} color)
+ Color Table ({n} colors) Taula de colors ({n} colors)
+ Color Theme Tema de colors
+ Color Themes Temes de colors
+ Color Type: Tipus de color:
+ Color wheel Roda de color
+ Color: Color:
+ Colored Pencil Llapis de color
+ Colored Pencil… Llapis de color…
+ Coloring Controls Controls de coloració
+ Colorization Coloració
+ Colorization Tips Consells de coloració
+ Colorize Acoloreix
+ Colors Colors
+ Colors: Colors:
+ Column Graph Tool Eina de gràfic de columnes
+ Column Type: Tipus de columna:
+ Column Width: Amplada de columna:
+ Columns: Columnes:
+ Column… Columna…
+ Combine Slices Combina els talls
+ Coming soon — tracked in the parity plan Properament — seguiment al pla de paritat
+ Command Ordre
+ Command Click to Select Objects Behind Clic amb Ordre per seleccionar els objectes del darrere
+ Command Dialog Diàleg d’ordres
+ Comment not closed Comentari no tancat
+ Commenting, filling in form fields and signing Comentar, emplenar camps de formulari i signar
+ Commits Commits
+ Community Comunitat
+ Company Empresa
+ Compatibility: Compatibilitat:
+ Compatible Gradient and Gradient Mesh Printing Impressió compatible de degradats i malles de degradat
+ Compiled or not text Text compilat o no
+ Compiled script: ask its author for the .jsx file Script compilat: demana el fitxer .jsx a l’autor
+ Complement Complement
+ Complementary Complementari
+ Complementary 2 Complementari 2
+ Complete Complet
+ Complexity: Complexitat:
+ Composite Compost
+ Composite colours are converted to it; separations separate with it when it is a CMYK profile. Els colors compostos s’hi converteixen; les separacions se separen amb aquest perfil quan és un perfil CMYK.
+ Compound Compost
+ Compound 2 Compost 2
+ Compound Path Traçat compost
+ Compound Shape Forma composta
+ Compress (RLE) Comprimeix (RLE)
+ Compress text and line art Comprimeix text i dibuix de línies
+ Compression Compressió
+ Compression › Color › Above Ppi Compressió › Color › Per sobre de PPI
+ Compression: Compressió:
+ Concave Còncau
+ Concentric Dividers: Divisors concèntrics:
+ Condition identifier: Identificador de condició:
+ Conflict {n} of {count} Conflicte {n} de {count}
+ Connect Connecta
+ Connect Selected End Points Connecta els punts finals seleccionats
+ Consider Open Filled Paths as Closed Considera els traçats oberts amb farciment com a tancats
+ Consolidate All Windows Consolida totes les finestres
+ Constrain Restringeix
+ Constrain Angle Angle de restricció
+ Constrain Width and Height Proportions Restringeix les proporcions d’amplada i alçada
+ Construction Guides Guies de construcció
+ Contextual Alternates Alternatives contextuals
+ Contextual Task Bar Barra de tasques contextual
+ Continue in Background Continua en segon pla
+ Contrast Contrast
+ Contrasty Contrastat
+ Contributors Col·laboradors
+ Control Control
+ Conté Crayon Llapis Conté
+ Conté Crayon… Llapis Conté…
+ Convert Converteix
+ Convert All Spot Colors to Process Converteix tots els colors directes a quadricromia
+ Convert All Strokes to Outlines Converteix tots els traços en contorns
+ Convert All Text to Outlines Converteix tot el text en contorns
+ Convert Anchor Point Converteix el punt d’ancoratge
+ Convert Anchor Points Converteix els punts d’ancoratge
+ Convert Color Converteix el color
+ Convert Document Color Mode Converteix el mode de color del document
+ Convert Process to Global Converteix la quadricromia en global
+ Convert Selected Anchor Points to Corner Converteix els punts d’ancoratge seleccionats en vèrtex
+ Convert Selected Anchor Points to Smooth Converteix els punts d’ancoratge seleccionats en suaus
+ Convert text to outlines Converteix el text en contorns
+ Convert To Area Type Converteix en text d’àrea
+ Convert to Artboards Converteix en taulers
+ Convert to CMYK Converteix a CMYK
+ Convert to destination Converteix al destí
+ Convert to destination (preserve numbers) Converteix al destí (conserva els números)
+ Convert to Global Converteix en global
+ Convert to Grayscale Converteix a escala de grisos
+ Convert To Outlines Converteix en contorns
+ Convert To Point Type Converteix en text de punt
+ Convert to RGB Converteix a RGB
+ Convert to Shape Converteix en forma
+ Convert to sRGB Converteix a sRGB
+ Convert to Straight Lines Converteix en línies rectes
+ Convert to Text Converteix en text
+ Convert: Converteix:
+ Convex Convex
+ Cool Fred
+ Copied the CSS of {rules} object(s) S’ha copiat el CSS de {rules} objecte(s)
+ Copies: Còpies:
+ Copy Copia
+ Copy (make a transformed copy) Copia (fes una còpia transformada)
+ Copy All Objects Copia tots els objectes
+ Copy All Styles Copia tots els estils
+ Copy Appearance Copia l’aparença
+ Copy Artboard Copia el tauler
+ Copy Color Value (Hex) Copia el valor de color (hex)
+ Copy Fonts Used in the Document Copia els tipus de lletra utilitzats al document
+ Copy Guide Copia la guia
+ Copy in Perspective Copia en perspectiva
+ Copy into the document's folder Copia a la carpeta del document
+ Copy Links Copia els enllaços
+ Copy only fonts you own or are licensed to install. Copia només els tipus de lletra que tinguis o que tinguis llicència per instal·lar.
+ Copy Report Copia l’informe
+ Copy Selected Style Copia l’estil seleccionat
+ Copy to User Defined Copia a definits per l’usuari
+ Copy Width Point Copia el punt d’amplada
+ Copyright Copyright
+ Copyright and Contact Info Informació de copyright i de contacte
+ Copyright Info URL: URL de la informació de copyright:
+ Copyright Notice: Avís de copyright:
+ Copyright Status: Estat del copyright:
+ Copyright Symbol Símbol de copyright
+ Copyrighted Amb copyright
+ Coral Coral
+ Corner Vèrtex
+ Corner Point Angle Threshold: Llindar d’angle dels punts de vèrtex:
+ Corner Radius Radi de cantonada
+ Corner Radius: Radi de cantonada:
+ Corner: Cantonada:
+ Corners Cantonades
+ Corners… Cantonades…
+ Couldn't copy to the system clipboard: {e} No s’ha pogut copiar al porta-retalls del sistema: {e}
+ Couldn't paste from the clipboard: {e} No s’ha pogut enganxar des del porta-retalls: {e}
+ Couldn't save recovery data: {e} No s’han pogut desar les dades de recuperació: {e}
+ Couldn't {} {name}: {e} No s’ha pogut {} {name}: {e}
+ Cove Còncava
+ Crack Brightness Brillantor de les esquerdes
+ Crack Depth Profunditat de les esquerdes
+ Crack Spacing Espaiat de les esquerdes
+ Craquelure Craquelat
+ Craquelure… Craquelat…
+ Create Crea
+ Create Clipping Mask Crea una màscara de retall
+ Create Compound Path From Ellipses Crea un traçat compost a partir d’el·lipses
+ Create Dimension Crea una dimensió
+ Create Document Crea un document
+ Create from Guides Crea a partir de guies
+ Create from Selection Crea a partir de la selecció
+ Create From: Crea a partir de:
+ Create Gradient Mesh… Crea una malla de degradat…
+ Create Graph Crea un gràfic
+ Create New Fields by Crea camps nous mitjançant
+ Create New Layer Crea una capa nova
+ Create New Library Crea una biblioteca nova
+ Create New Library… Crea una biblioteca nova…
+ Create New Set Crea un conjunt nou
+ Create New Sublayer Crea una subcapa nova
+ Create New Swatch… Crea una mostra nova…
+ Create New {kind} Style Crea un estil de {kind} nou
+ Create Object Mosaic… Crea un mosaic d’objectes…
+ Create Outlines Crea contorns
+ Create Path Crea un traçat
+ Create PDF layers from layers and sublayers Crea capes de PDF a partir de capes i subcapes
+ Create PDF layers from top-level layers Crea capes de PDF a partir de les capes de nivell superior
+ Create PDF-Compatible File Crea un fitxer compatible amb PDF
+ Create Report Crea un informe
+ Create Slice Crea un tall
+ Create Slice from Selection Crea un tall a partir de la selecció
+ Create Slices from Guides Crea talls a partir de guies
+ Create Sub-folders Crea subcarpetes
+ Create Text Crea text
+ Create Trim Marks Crea marques de retall
+ Create: Crea:
+ Created Creat
+ Created: Creat:
+ CRLF (Windows) CRLF (Windows)
+ Crop Retalla
+ Crop Image Retalla la imatge
+ Crop Marks Marques de retall
+ Crop To Retalla fins a
+ Cross Creu
+ Crosshatch Tramat creuat
+ Crosshatch… Tramat creuat…
+ Crystallize Cristal·litza
+ Crystallize Tool Eina de cristal·lització
+ Crystallize… Cristal·litza…
+ CSS Properties Propietats CSS
+ Ctrl Ctrl
+ Currency & Symbols Moneda i símbols
+ Current Brush Pinzell actual
+ Current Colors Colors actuals
+ Current Colors (0) Colors actuals (0)
+ Current Colors ({total}) Colors actuals ({total})
+ Current Symbol Símbol actual
+ Cursor Swatch Preview Previsualització de la mostra del cursor
+ Curvature Curvatura
+ Curvature Tool Eina de curvatura
+ Curves… Corbes…
+ Custom Personalitzat
+ Custom Scale Escala personalitzada
+ Customize… Personalitza…
+ Cut Retalla
+ Cut Artboard Retalla el tauler
+ Cut Path Retalla el traçat
+ Cut Path at Selected Anchor Points Retalla el traçat als punts d’ancoratge seleccionats
+ Cutout Retall
+ Cutout… Retall…
+ Cyan Cian
+ Dark Fosc
+ Dark Gray Gris fosc
+ Dark Intensity Intensitat fosca
+ Dark Rough Fosc aspre
+ Dark Strokes Traços foscos
+ Dark Strokes… Traços foscos…
+ Darken Enfosqueix
+ Darkness Foscor
+ Dash Guió
+ dash guió
+ Dash Pattern Motiu de guions
+ Dashed Discontinu
+ Dashed Line Línia discontínua
+ Data Recovery Recuperació de dades
+ Data Set Conjunt de dades
+ Data Sets Conjunts de dades
+ Data… Dades…
+ Date (YYYY-MM-DD) Data (YYYY-MM-DD)
+ Date (YYYYMMDD) Data (YYYYMMDD)
+ Dates Dates
+ De-Interlace Desentrellaça
+ De-Interlace… Desentrellaça…
+ Decimal-Justified Tab Tabulació justificada decimal
+ Decimal: Decimal:
+ Decorative Decoratiu
+ Decrease Font Size Redueix la mida del tipus de lletra
+ Decrease Font Size by Five Steps Redueix la mida del tipus de lletra en cinc passos
+ Default Predeterminat
+ Default Actions Accions predeterminades
+ Default Figure Figura predeterminada
+ Default Fill and Stroke Farciment i traç predeterminats
+ Default Fill and Stroke (D) Farciment i traç predeterminats (D)
+ Default Graphic Style Estil gràfic predeterminat
+ Default Language Idioma predeterminat
+ Default Printer Impressora predeterminada
+ Default Swatches Mostres predeterminades
+ Define a variable first Defineix primer una variable
+ Define Grid… Defineix la quadrícula…
+ Define Perspective Grid Defineix la quadrícula de perspectiva
+ Define Perspective Grid… Defineix la quadrícula de perspectiva…
+ Definition Definició
+ Delete Suprimeix
+ Delete All Suprimeix-ho tot
+ Delete All Slices Suprimeix tots els talls
+ Delete Anchor Point Suprimeix el punt d’ancoratge
+ Delete Anchor Point Tool Eina de supressió de punts d’ancoratge
+ Delete Anchor Points Suprimeix els punts d’ancoratge
+ Delete Artboard Suprimeix el tauler
+ Delete Artboards Suprimeix els taulers
+ Delete Brush Suprimeix el pinzell
+ Delete Character Style Suprimeix l’estil de caràcter
+ Delete Data Set Suprimeix el conjunt de dades
+ Delete Data Sets Suprimeix els conjunts de dades
+ Delete Design Suprimeix el disseny
+ Delete Empty Artboards Suprimeix els taulers buits
+ Delete Export Preset Suprimeix el preajust d’exportació
+ Delete Freeform Point Suprimeix el punt de forma lliure
+ Delete Graphic Style Suprimeix l’estil gràfic
+ Delete Graphic Style (Alt-click: without asking) Suprimeix l’estil gràfic (Alt-clic: sense preguntar)
+ Delete Graphic Styles Suprimeix els estils gràfics
+ Delete Group Suprimeix el grup
+ Delete Guide Suprimeix la guia
+ Delete Guides Suprimeix les guies
+ Delete Image Trace Preset Suprimeix el preajust de traçat d’imatge
+ Delete Layer Suprimeix la capa
+ Delete Library Suprimeix la biblioteca
+ Delete Library Group Suprimeix el grup de biblioteca
+ Delete Library Item Suprimeix l’element de la biblioteca
+ Delete Light Suprimeix la llum
+ Delete Mesh Point Suprimeix el punt de malla
+ Delete Paragraph Style Suprimeix l’estil de paràgraf
+ Delete Pattern Suprimeix el motiu
+ Delete PDF Preset Suprimeix el preajust del PDF
+ Delete Perspective Grid Preset Suprimeix el preajust de quadrícula de perspectiva
+ Delete Point Suprimeix el punt
+ Delete Preset Suprimeix el preajust
+ Delete Print Preset Suprimeix el preajust d’impressió
+ Delete Profile Suprimeix el perfil
+ Delete Save for Web Preset Suprimeix el preajust Desa per a web
+ Delete Selected Item Suprimeix l’element seleccionat
+ Delete Selection Suprimeix la selecció
+ Delete Slice Suprimeix el tall
+ Delete Slices Suprimeix els talls
+ Delete Spine Point Suprimeix el punt de l’espina
+ Delete Stop Suprimeix la parada
+ Delete Style Suprimeix l’estil
+ Delete Swatch Suprimeix la mostra
+ Delete Symbol Suprimeix el símbol
+ Delete Tab Suprimeix la tabulació
+ Delete the graphic style “{name}”? Voleu suprimir l’estil gràfic “{name}”?
+ Delete the library “{name}”? Voleu suprimir la biblioteca “{name}”?
+ Delete Theme Suprimeix el tema
+ Delete theme Suprimeix el tema
+ Delete these {count} swatches and groups? Voleu suprimir aquestes {count} mostres i grups?
+ Delete these {n} graphic styles? Voleu suprimir aquests {n} estils gràfics?
+ Delete this saved preset Suprimeix aquest preajust desat
+ Delete this {n} graphic style? Voleu suprimir aquest {n} estil gràfic?
+ Delete Transparency Flattener Preset Suprimeix el preajust de l’aplanador de transparència
+ Delete Variable Suprimeix la variable
+ Delete Variables Suprimeix les variables
+ Delete View Suprimeix la vista
+ Delete Width Point Suprimeix el punt d’amplada
+ Delete Workspace Suprimeix l’espai de treball
+ Delete {kind} Style Suprimeix l’estil de {kind}
+ Delete “{name}”? Voleu suprimir “{name}”?
+ Depth Profunditat
+ Depth: Profunditat:
+ Descender Descendent
+ Description Descripció
+ Description: Descripció:
+ Deselect Desselecciona
+ Design… Disseny…
+ Desired Desitjat
+ Destination Folder: Carpeta de destinació:
+ Destination: Destinació:
+ Detail Detall
+ Detail: Detall:
+ Devices Dispositius
+ Dialog Diàleg
+ Diameter: Diàmetre:
+ Diamond Rombe
+ Diamond (open) Rombe (obert)
+ Difference Diferència
+ Differences from [Default]: Diferències respecte de [Default]:
+ Differences from VectorCraft Default: Diferències respecte del VectorCraft predeterminat:
+ Differences from {preset}: Diferències respecte de {preset}:
+ Diffuse Difon
+ Diffuse Glow Resplendor difusa
+ Diffuse Glow… Resplendor difusa…
+ Diffusion Difusió
+ Digits Dígits
+ Dim Copies to: Atenua les còpies fins a:
+ Dim Images to: Atenua les imatges fins a:
+ Dimension Dimensió
+ Dimension Tool Eina de dimensió
+ Dimension Tool Options Opcions de l’eina de dimensió
+ Dimensions Dimensions
+ Direct Selection Selecció directa
+ Direct Selection Tool Eina de selecció directa
+ Direction Balance Equilibri de direcció
+ Direction Handles Manetes de direcció
+ Direction: Direcció:
+ Directives Directrius
+ Disable Auto Add/Delete Desactiva l’addició i la supressió automàtiques
+ Disable Opacity Mask Desactiva la màscara d’opacitat
+ Discard Descarta
+ Discard Empty Type Descarta el text buit
+ Discard Recovered Documents Descarta els documents recuperats
+ Discard White Overprint in Output Descarta la sobrempressió del blanc a la sortida
+ Discarded {} recovered document(s) S’han descartat {} documents recuperats
+ Discord Discord
+ Discretionary Hyphen Guionet discrecional
+ Discretionary Ligatures Lligadures discrecionals
+ Display Mostra
+ Display All Blacks Accurately Mostra tots els negres amb precisió
+ Display All Blacks as Rich Black Mostra tots els negres com a negre ric
+ Display Bitmaps as Anti-aliased Images in Pixel Preview Mostra els mapes de bits com a imatges suavitzades a la previsualització de píxels
+ Display name Nom de visualització
+ Display Options Opcions de visualització
+ Display Print Size at 100% Zoom Mostra la mida d’impressió al 100% de zoom
+ Distance Distància
+ Distance: Distància:
+ Distort Distorsiona
+ Distort & Transform Distorsiona i transforma
+ Distort Appearance Distorsiona l’aparença
+ Distort Linear Gradients Distorsiona els degradats lineals
+ Distort Pattern Fills Distorsiona els farciments de motiu
+ Distortion Distorsió
+ Distribute Distribueix
+ Distribute Objects: Distribueix els objectes:
+ Distribute Spacing Distribueix l’espaiat
+ Distribute Spacing: Distribueix l’espaiat:
+ Dither Tramatge
+ Dither: Tramatge:
+ Divide Divideix
+ Divide and Outline Will Remove Unpainted Artwork Divideix i contorneja eliminarà l’art no pintat
+ Divide Horizontally Into Divideix horitzontalment en
+ Divide Objects Below Divideix els objectes de sota
+ Divide Slices Divideix els talls
+ Divide Slices… Divideix els talls…
+ Divide Vertically Into Divideix verticalment en
+ Do Not Move No moguis
+ Do Not Scale No escalis
+ Do you want to save the changes you made to “{name}”? Voleu desar els canvis que heu fet a “{name}”?
+ Dock Panel Acobla el panell
+ Document Document
+ Document Color Mode Mode de color del document
+ Document Info Informació del document
+ Document Ink Options Opcions de tinta del document
+ Document JSON JSON del document
+ Document Library Biblioteca del document
+ Document model Model de document
+ Document Name Nom del document
+ Document open password Contrasenya d’obertura del document
+ Document profile Perfil del document
+ Document Raster Effects Settings Configuració d’efectes de ràster del document
+ Document Raster Effects Settings Dialog Diàleg de configuració d’efectes de ràster del document
+ Document Raster Effects Settings… Configuració d’efectes de ràster del document…
+ Document Setup Configuració del document
+ Document Setup… Configuració del document…
+ Document Swatches Mostres del document
+ Document Title: Títol del document:
+ Documents you create appear here. Els documents que creeu apareixen aquí.
+ Don't include profiles No incloguis els perfils
+ Don't Relink No tornis a enllaçar
+ Don't Save No desis
+ Don't Show Center No mostris el centre
+ Done Fet
+ Done Editing Pattern Edició del motiu acabada
+ Dot Punt
+ Dot Gain 15% Guany de punt 15%
+ Dot on Bar Punt sobre barra
+ Dots Punts
+ Double Arrow Fletxa doble
+ Double Bar Barra doble
+ Double Click To Isolate Doble clic per aïllar
+ Double Column Columna doble
+ Double Left Quotation Marks Cometes dobles esquerres
+ Double Quotes: Cometes dobles:
+ Double Right Quotation Marks Cometes dobles dretes
+ Double Slash Barra inclinada doble
+ Double-click Doble clic
+ Double-click to edit the characters' paint Feu doble clic per editar la pintura dels caràcters
+ Double-click to insert Feu doble clic per inserir
+ Double-click to rename Feu doble clic per canviar el nom
+ Double-click to target the contents Feu doble clic per apuntar al contingut
+ Down (right reading) Avall (lectura per la dreta)
+ Download Baixa
+ Download: Baixa:
+ Downloaded {what} S’ha baixat {what}
+ Downloaded {} file(s) S’han baixat {} fitxers
+ Draft Esbós
+ Drag Arrossega
+ Drag a handle Arrossega una maneta
+ Drag an item here, or right-click one, to put it in this group. Arrossega un element aquí, o fes clic dret sobre un, per posar-lo en aquest grup.
+ Drag art here, or select it and click +. Hold Alt for one asset of several objects. Arrossega il·lustració aquí, o selecciona-la i fes clic a +. Mantén l’Alt per obtenir un sol recurs a partir de diversos objectes.
+ Drag art or swatches here, or use + to add the selection's colors and text styles. Arrossega il·lustració o mostres aquí, o fes servir + per afegir els colors i els estils de text de la selecció.
+ Drag art, colors and text styles here to reuse them across documents. Libraries are stored on this machine — no account required. Arrossega il·lustració, colors i estils de text aquí per reutilitzar-los entre documents. Les biblioteques es desen en aquest ordinador: no cal cap compte.
+ Drag onto art to apply this appearance Arrossega sobre la il·lustració per aplicar aquesta aparença
+ Drag out from a circle or arc for its radius, inwards for its diameter. Arrossega cap enfora des d’un cercle o un arc per al radi, i cap endins per al diàmetre.
+ Drag out from a corner, or click two straight lines, then click to place. Arrossega cap enfora des d’una cantonada, o fes clic en dues línies rectes i després fes clic per col·locar-ho.
+ Drag out from a segment, or click two points, then click to place. Arrossega cap enfora des d’un segment, o fes clic en dos punts i després fes clic per col·locar-ho.
+ Drag rings to rotate. Shift snaps to 15°. Arrossega els anells per girar. La tecla Maj ajusta a 15°.
+ Drag the art to move it on the paper Arrossega la il·lustració per moure-la sobre el paper
+ Drag the light, or its rings. Shift snaps to 15°. Arrossega el llum o els seus anells. La tecla Maj ajusta a 15°.
+ Drag to float as a toolbar Arrossega per surar com a barra d’eines
+ Drag to float the toolbar Arrossega per fer surar la barra d’eines
+ Drag to move Arrossega per moure
+ Drag to the window's left edge to dock Arrossega fins a la vora esquerra de la finestra per acoblar
+ Drag values or labels. Double-click a value to type. Arrossega els valors o les etiquetes. Fes doble clic en un valor per escriure’l.
+ Draw Dibuixa
+ Draw Behind Dibuixa al darrere
+ Draw in Perspective Dibuixa en perspectiva
+ Draw Inside Dibuixa a l’interior
+ Draw Mode Controls Controls del mode de dibuix
+ Draw Normal Dibuixa normal
+ Draw: Dibuixa:
+ Drawer menu Menú de calaix
+ Drawing : real size — 1:10 labels 1 unit on the page as 10. Dibuix : mida real — 1:10 fa que 1 unitat a la pàgina sigui 10.
+ Drawing Mode Mode de dibuix
+ Drop Deixa anar
+ Drop Artwork Deixa anar la il·lustració
+ Drop here to take it out of its group Deixa-ho anar aquí per treure-ho del seu grup
+ Drop Shadow Ombra paral·lela
+ Drop Shadow… Ombra paral·lela…
+ Dry Brush Pinzell sec
+ Dry Brush… Pinzell sec…
+ Duotone Gradients Degradats de dos tons
+ Duplicate Duplica
+ Duplicate and Offset 10 pt Duplica i desplaça 10 pt
+ Duplicate Artboard Duplica el tauler
+ Duplicate Artboards Duplica els taulers
+ Duplicate Brush Duplica el pinzell
+ Duplicate Character Style Duplica l’estil de caràcter
+ Duplicate Effect Duplica l’efecte
+ Duplicate Graphic Style Duplica l’estil gràfic
+ Duplicate Item Duplica l’element
+ Duplicate Layer Duplica la capa
+ Duplicate Paragraph Style Duplica l’estil de paràgraf
+ Duplicate Rows Duplica les files
+ Duplicate Selected Item Duplica l’element seleccionat
+ Duplicate Selection Duplica la selecció
+ Duplicate Slice Duplica el tall
+ Duplicate Swatch Duplica la mostra
+ Duplicate Symbol Duplica el símbol
+ Duplicate {kind} Style Duplica l’estil de {kind}
+ Duplication Duplicació
+ Dutch Neerlandès
+ DWG (use DXF) DWG (feu servir DXF)
+ DXF Import Options Opcions d’importació de DXF
+ DXF Info Informació del DXF
+ DXF Options Opcions del DXF
+ DXF Options Dialog Diàleg d’opcions del DXF
+ e.g. 1-3, 5 p. ex. 1-3, 5
+ Each Design Represents: Cada disseny representa:
+ Each entry of the file is matched to a VectorCraft tool, command or panel. Check the matches and answer what is left. Cada entrada del fitxer s’associa a una eina, una ordre o un panell del VectorCraft. Comprova les coincidències i respon a les que quedin.
+ Each page prints as one image, at the document's raster effects resolution. Cada pàgina s’imprimeix com una imatge, amb la resolució dels efectes de ràster del document.
+ Each run may take up to {minutes} minutes and do {times} times the work other plug-ins may. It runs in the background, and you can cancel it. Cada execució pot trigar fins a {minutes} minuts i fer {times} vegades la feina que poden fer altres complements. S’executa en segon pla i la pots cancel·lar.
+ Earth Tones Tons terrosos
+ Ease In Accelera
+ Ease In Out Accelera i desaccelera
+ Ease Out Desaccelera
+ Ease Out In Desaccelera i accelera
+ East Asian Type Text d’Àsia oriental
+ Edge Vora
+ Edge Brightness Brillantor de la vora
+ Edge Fidelity Fidelitat de la vora
+ Edge Intensity Intensitat de la vora
+ Edge Only Només la vora
+ Edge Simplicity Simplicitat de la vora
+ Edge Thickness Gruix de la vora
+ Edge Width Amplada de la vora
+ Edit Edita
+ Edit Artboards Edita els taulers
+ Edit Clipping Path Edita el traçat de retall
+ Edit Color Group Edita el grup de colors
+ Edit Colors Edita els colors
+ Edit Contents Edita el contingut
+ Edit Custom Dictionary… Edita el diccionari personalitzat…
+ Edit Data Set Edita el conjunt de dades
+ Edit Data Set… Edita el conjunt de dades…
+ Edit Envelope Edita l’embolcall
+ Edit Freeform Point Edita el punt de forma lliure
+ Edit Gradient Edita el degradat
+ Edit Opacity Mask Edita la màscara d’opacitat
+ Edit or Apply Color Group Edita o aplica el grup de colors
+ Edit or Apply Color Group… Edita o aplica el grup de colors…
+ Edit or Apply Colors Edita o aplica colors
+ Edit Original Edita l’original
+ Edit Path Edita el traçat
+ Edit Pattern Edita el motiu
+ Edit PDF Preset Edita el preajust de PDF
+ Edit Perspective Grid Edita la quadrícula de perspectiva
+ Edit Print Preset Edita el preajust d’impressió
+ Edit selected paths within: Edita els traçats seleccionats dins de:
+ Edit Selection Edita la selecció
+ Edit Selection… Edita la selecció…
+ Edit Symbol Edita el símbol
+ Edit Text Edita el text
+ Edit the applied effect, or add another one? Vols editar l’efecte aplicat o afegir-ne un altre?
+ Edit the selected point's colour in the Color panel Edita el color del punt seleccionat al panell Color
+ Edit the stop Edita la parada
+ Edit Theme Edita el tema
+ Edit theme Edita el tema
+ Edit Toolbar Edita la barra d’eines
+ Edit Views Edita les vistes
+ Edit Views… Edita les vistes…
+ Editable Editable
+ Edit… Edita…
+ Effect Efecte
+ Effect Gallery Galeria d’efectes
+ Effect Gallery Dialog Diàleg de la galeria d’efectes
+ Effect Gallery… Galeria d’efectes…
+ Effect Options Opcions de l’efecte
+ Effective PPI PPI efectius
+ Effects Efectes
+ Effect… Efecte…
+ Eliminate Elimina
+ Ellipse El·lipse
+ Ellipse Properties: Propietats de l’el·lipse:
+ Ellipse Tool Eina d’el·lipse
+ Ellipse… El·lipse…
+ Ellipsis Punts suspensius
+ Em Box Bottom/Left Caixa em a baix/a l’esquerra
+ Em Box Center Centre de la caixa em
+ Em Box Top/Right Caixa em a dalt/a la dreta
+ Em Dash Ratlla em
+ Em Space Espai em
+ Embed Incrusta
+ Embed Fonts (for other applications) Incrusta els tipus de lletra (per a altres aplicacions)
+ Embed Fonts (Glyphs Used) Incrusta els tipus de lletra (glifs utilitzats)
+ Embed ICC Profile Incrusta el perfil ICC
+ Embed ICC Profiles Incrusta els perfils ICC
+ Embed Image Incrusta la imatge
+ Embed Image(s) Incrusta la imatge/les imatges
+ Embed page thumbnails Incrusta les miniatures de pàgina
+ Embedded Incrustat
+ Embedded Image Imatge incrustada
+ Embedded {n} image(s) {n} imatge/imatges incrustades
+ Embedded {n} image(s); {missing} missing: relink them first {n} imatge/imatges incrustades; en falten {missing}: torna a enllaçar-les primer
+ Emulsion: Emulsió:
+ En Dash Ratlla en
+ En Space Espai en
+ Enable Background Export Activa l’exportació en segon pla
+ Enable Background Save Activa el desament en segon pla
+ Enable Contextual Task Bar Activa la barra de tasques contextual
+ Enable copying of text, images and other content Activa la còpia de text, imatges i altre contingut
+ Enable Guides for 9-Slice Scaling Activa les guies per a l’escalat de 9 talls
+ Enable in-menu font previews Activa les previsualitzacions de tipus de lletra als menús
+ Enable Missing Glyph Protection Activa la protecció de glifs absents
+ Enable Opacity Mask Activa la màscara d’opacitat
+ Enable plaintext metadata Activa les metadades en text pla
+ Enable Rubber Band for Activa la goma elàstica per a
+ Enable text access for screen readers Activa l’accés al text per als lectors de pantalla
+ Enable Touch Gestures Activa els gestos tàctils
+ Enable Touch Workspace Activa l’espai de treball tàctil
+ Encoding Codificació
+ Encoding and writing the file… S’està codificant i escrivint el fitxer…
+ Encoding: Codificació:
+ Encryption: {name} (set by Compatibility) Xifratge: {name} (definit per la compatibilitat)
+ End arrowhead Punta de fletxa final
+ End Tile Rajola final
+ End Undo Group Acaba el grup de desfer
+ End: Final:
+ English English
+ English: UK Anglès: Regne Unit
+ English: USA Anglès: EUA
+ Enhanced Millorat
+ Enlarged Ampliat
+ Enter Retorn
+ Enter Isolation Mode Entra al mode d’aïllament
+ Entire Font Tot el tipus de lletra
+ Envelope Embolcall
+ Envelope #10 Embolcall #10
+ Envelope Distort Distorsiona l’embolcall
+ Envelope DL Embolcall DL
+ Envelope Info Informació de l’embolcall
+ Envelope Mesh Malla de l’embolcall
+ Envelope Options Opcions de l’embolcall
+ Envelope Options… Opcions de l’embolcall…
+ EPS Options Opcions d’EPS
+ EPS Options Dialog Diàleg d’opcions d’EPS
+ Eraser Esborrador
+ Eraser Tool Eina d’esborrador
+ Error Error
+ Esc Esc
+ Even Parell
+ Even Fields Camps parells
+ Event: Esdeveniment:
+ Every (minutes) Cada (minuts)
+ Every option is at its default. Totes les opcions són al valor predeterminat.
+ Every option matches {base}. Totes les opcions coincideixen amb {base}.
+ Every-line Composer Composició línia per línia
+ Exact Exacte
+ Exact dash lengths Longituds de guió exactes
+ Example: {name} Exemple: {name}
+ Exceptions (comma separated) Excepcions (separades per comes)
+ Exclude Exclou
+ Exclusion Exclusió
+ Exit Surt
+ Exit Isolation Mode Surt del mode d’aïllament
+ Expand Expandeix
+ Expand 1 Selected Expandeix 1 seleccionat
+ Expand Appearance Expandeix l’aparença
+ Expand Blend Expandeix la fusió
+ Expand Brush Strokes Expandeix els traços del pinzell
+ Expand Compound Shape Expandeix la forma composta
+ Expand Envelope Expandeix l’embolcall
+ Expand Gradient Mesh Expandeix la malla de degradat
+ Expand Gradient To Expandeix el degradat fins a
+ Expand Image Trace Expandeix la traça d’imatge
+ Expand Layers Panel Rows Expandeix les files del panell Capes
+ Expand Live Paint Expandeix la pintura interactiva
+ Expand Object Expandeix l’objecte
+ Expand Objects on Path Expandeix els objectes del traçat
+ Expand Options Opcions d’expansió
+ Expand Panels Expandeix els panells
+ Expand Repeat Expandeix la repetició
+ Expand Shape Expandeix la forma
+ Expand Shaper Group Expandeix el grup del Shaper
+ Expand: Expandeix:
+ Expanded Patterns Motius expandits
+ Expand… Expandeix…
+ Export Exporta
+ Export All… Exporta-ho tot…
+ Export and Clipboard Transparency Flattener Settings Configuració de l’aplanador de transparència per a l’exportació i el porta-retalls
+ Export Artboard Exporta el tauler
+ Export As Exporta com a
+ Export As PNG… Exporta com a PNG…
+ Export As SVG… Exporta com a SVG…
+ Export Asset Exporta el recurs
+ Export Assets Exporta els recursos
+ Export As… Exporta com a…
+ Export CSS Exporta CSS
+ Export CSS… Exporta CSS…
+ Export Data Sets… Exporta els conjunts de dades…
+ Export Document Exporta el document
+ Export DXF Exporta DXF
+ Export EPS Exporta EPS
+ Export for Screens Exporta per a pantalles
+ Export for Screens Settings Configuració d’exportació per a pantalles
+ Export for Screens… Exporta per a pantalles…
+ Export Keyboard Shortcuts… Exporta les dreceres de teclat…
+ Export Layer Exporta la capa
+ Export Library Exporta la biblioteca
+ Export Library… Exporta la biblioteca…
+ Export Option Opció d’exportació
+ Export PDF Exporta PDF
+ Export PDF Presets Preajustos d’exportació PDF
+ Export Perspective Grid Presets Exporta els preajustos de quadrícula de perspectiva
+ Export Preset: Preajust d’exportació:
+ Export Presets Preajustos d’exportació
+ Export Print Presets Exporta els preajustos d’impressió
+ Export Selected Art Only Exporta només l’art seleccionat
+ Export Selected CSS… Exporta el CSS seleccionat…
+ Export Selection Exporta la selecció
+ Export Selection… Exporta la selecció…
+ Export Settings Configuració d’exportació
+ Export the selected assets (else all of them) Exporta els recursos seleccionats (si no, tots)
+ Export to: Exporta a:
+ Export Transparency Flattener Presets Exporta els preajustos de l’aplanador de transparència
+ Export Type: Tipus d’exportació:
+ Export {count} Selected Exporta {count} elements seleccionats
+ Export: Exporta:
+ Exported {count} file(s) to {folder} S’han exportat {count} fitxers a {folder}
+ Exported {path} S’ha exportat {path}
+ Exported {what} S’ha exportat {what}
+ Exported {what} with {} note(s): {first} S’ha exportat {what} amb {} notes: {first}
+ Exporting {} S’està exportant {}
+ Export… Exporta…
+ Extrude & Bevel… Extrudeix i bisella…
+ Eyedropper Comptagotes
+ Eyedropper Applies: El comptagotes aplica:
+ Eyedropper Options Opcions del comptagotes
+ Eyedropper Picks Up: El comptagotes recull:
+ Eyedropper Tool Eina de comptagotes
+ Eyedropper: click the art to sample the key color Comptagotes: fes clic a l’art per mostrejar el color clau
+ Eyedropper: click the art to sample the stop's colour Comptagotes: fes clic a l’art per mostrejar el color de la parada
+ Farsi Persa
+ Favorites Preferits
+ Feather Ploma
+ Feather… Ploma…
+ Feet Peus
+ Feet & Inches Peus i polzades
+ Fewer Elements Menys elements
+ Fidelity: Fidelitat:
+ Figure Space Espai de xifra
+ Figure: Xifra:
+ File Fitxer
+ File Dimensions Dimensions del fitxer
+ File Format: Format de fitxer:
+ File Formats Formats de fitxer
+ File Handling Gestió de fitxers
+ File Info Informació del fitxer
+ File Info Dialog Diàleg d’informació del fitxer
+ File Info… Informació del fitxer…
+ File Name: Nom del fitxer:
+ File or URL: Fitxer o URL:
+ File {n} of {total} Fitxer {n} de {total}
+ File › Place… brings in an image, linked or embedded. Fitxer › Col·loca… incorpora una imatge, enllaçada o incrustada.
+ Files Fitxers
+ Files of a PDF standard can't be password-protected. Els fitxers d’un estàndard PDF no es poden protegir amb contrasenya.
+ Files of this standard tag their colours with ICC profiles. Els fitxers d’aquest estàndard etiqueten els colors amb perfils ICC.
+ Fill Farciment
+ Fill & Stroke Farciment i traç
+ Fill (X), double-click for the Color Picker Farciment (X), fes doble clic per al selector de color
+ Fill and Stroke Farciment i traç
+ Fill and Stroke Controls Controls de farciment i traç
+ Fill Arc Farciment d’arc
+ Fill Color Color de farciment
+ Fill Grid Quadrícula de farciment
+ Fill Line Línia de farciment
+ Fill new strokes Omple els traços nous
+ Fill New Type Objects With Placeholder Text Omple els objectes de text nous amb text de mostra
+ Fill Rule Regla de farciment
+ Fill with Placeholder Text Omple amb text de mostra
+ Fill: Farciment:
+ Fill: click for swatches, Shift-click for the color mixer Farciment: fes clic per a les mostres, Maj+clic per al mesclador de colors
+ Filled Dot Punt farcit
+ Filled Square Quadrat farcit
+ Filling in form fields and signing Emplenar camps de formulari i signar
+ Fills Farciments
+ Film & Video Film & Video
+ Film Grain… Gra de pel·lícula…
+ Filter Filtre
+ Filter Layers Panel Rows Filtra les files del panell de capes
+ Filters Filtres
+ Find Cerca
+ Find and Replace… Cerca i reemplaça…
+ Find Font Cerca un tipus de lletra
+ Find Font Files Cerca fitxers de tipus de lletra
+ Find Fonts Cerca tipus de lletra
+ Find Fonts in Folder… Cerca tipus de lletra en una carpeta…
+ Find Font… Cerca un tipus de lletra…
+ Find in Folder… Cerca en una carpeta…
+ Find Linked Files Cerca fitxers enllaçats
+ Find Linked Files in Folder… Cerca fitxers enllaçats en una carpeta…
+ Find Next Cerca el següent
+ Find Objects Cerca objectes
+ Fine Dots Punts fins
+ Fine noise hides banding in the gradient fill El soroll fi amaga l’efecte de bandes del farciment de degradat
+ First Primer
+ First Artboard Primer tauler
+ First Baseline Primera línia de base
+ First commit Primera confirmació
+ First Page Primera pàgina
+ First-line Left Indent Sagnia esquerra de primera línia
+ Fisheye… Ull de peix…
+ Fish… Peix…
+ Fit Ajusta
+ Fit All Ajusta-ho tot
+ Fit All in Window Ajusta-ho tot a la finestra
+ Fit Artboard in Window Ajusta el tauler a la finestra
+ Fit dashes to corners and ends Ajusta els guions a les cantonades i els extrems
+ Fit Headline Ajusta el titular
+ Fit in View Ajusta a la vista
+ Fit in Window Ajusta a la finestra
+ Fit on Screen Ajusta a la pantalla
+ Fit to Artwork Bounds Ajusta als límits de l’obra
+ Fit to Page Ajusta a la pàgina
+ Fit to Selected Art Ajusta a l’art seleccionat
+ Fixed Fix
+ Flag… Marca…
+ Flare Resplendor
+ Flare Tool Eina de resplendor
+ Flare Tool Options Opcions de l’eina de resplendor
+ Flat Angle Angle pla
+ Flat Blunt Pla rom
+ Flat Curve Corba plana
+ Flat Fan Ventall pla
+ Flat Image Imatge plana
+ Flat Logo Logotip pla
+ Flat Point Punt pla
+ Flatness: Planitud:
+ Flatten Aplana
+ Flatten Artwork Aplana l’obra
+ Flatten Transparency Aplana la transparència
+ Flatten Transparency… Aplana la transparència…
+ Flattener preset: Preajust de l’aplanador:
+ Flattener presets Preajustos de l’aplanador
+ Flattener Preview Previsualització de l’aplanador
+ Flip Inverteix
+ Flip Across Inverteix respecte a
+ Flip Along Inverteix al llarg de
+ Flip Along Horizontal Axis Inverteix al llarg de l’eix horitzontal
+ Flip Along Vertical Axis Inverteix al llarg de l’eix vertical
+ Flip Horizontal Inverteix horitzontalment
+ Flip Row Order Inverteix l’ordre de les files
+ Flip Vertical Inverteix verticalment
+ Flip: Inverteix:
+ Float in Window Flota a la finestra
+ Float Panel Flota el panell
+ Float Tool Group Flota el grup d’eines
+ Focal Fill Farciment focal
+ Focal Stroke Traç focal
+ Folder Carpeta
+ Folder Name: Nom de la carpeta:
+ Folders: Carpetes:
+ Font Tipus de lletra
+ Font Family Família de tipus de lletra
+ Font Family & Style Família i estil de tipus de lletra
+ Font Family, Style & Size Família, estil i mida de tipus de lletra
+ Font Family: Família de tipus de lletra:
+ Font List Llista de tipus de lletra
+ Font Preview Size Mida de previsualització del tipus de lletra
+ Font Size Mida del tipus de lletra
+ Font Style: Estil de tipus de lletra:
+ Font Technology Tecnologia del tipus de lletra
+ Font: Tipus de lletra:
+ Fonts Tipus de lletra
+ Fonts in Document Tipus de lletra del document
+ Fonts in Document: {count} Tipus de lletra del document: {count}
+ fonts not copied: {fonts} tipus de lletra no copiats: {fonts}
+ Fonts whose licence doesn't allow embedding are not copied. No es copien els tipus de lletra la llicència dels quals no permet la incrustació.
+ For Fractions: Per a les fraccions:
+ Force Força
+ Forced Line Break Salt de línia forçat
+ Foreground Level Nivell de primer pla
+ Forget Import Matches Oblida les coincidències d’importació
+ Fork Bifurca
+ Format Format
+ Format Options Opcions de format
+ Format Settings Configuració de format
+ Format: Format:
+ Formats: Formats:
+ Fractional Widths Amplades fraccionàries
+ Fractions Fraccions
+ Free Lliure
+ Free Distort Distorsió lliure
+ Free Distort… Distorsió lliure…
+ Free Transform Transformació lliure
+ Free Transform Tool Eina de transformació lliure
+ Freeform Forma lliure
+ Freeform Gradient Degradat de forma lliure
+ French Francès
+ Frequencies and angles are the output device's to apply. Les freqüències i els angles els ha d’aplicar el dispositiu de sortida.
+ Frequency Freqüència
+ Fresco Fresc
+ Fresco… Fresc…
+ from the format's public description de la descripció pública del format
+ from your earlier imports de les importacions anteriors
+ Front Davant
+ Frosted Glaçat
+ Full Document Document complet
+ Full Justify Justificació completa
+ Full Screen Mode Mode de pantalla completa
+ Full Screen Mode with Menu Bar Mode de pantalla completa amb barra de menús
+ Full Tone To complet
+ Full Width Amplada completa
+ Fuzziness: Difuminació:
+ Gamma Gamma
+ Gamut Check Comprovació de gama
+ Gamut Warning Avís de gama
+ gap espai
+ Gap Detection Detecció d’espais
+ Gap Length: Longitud de l’espai:
+ Gap Options Opcions d’espais
+ Gap Options… Opcions d’espais…
+ Gap Preview Color: Color de previsualització dels espais:
+ Gaussian Blur Desenfocament gaussià
+ Gaussian Blur… Desenfocament gaussià…
+ General General
+ General › Placement › X General › Col·locació › X
+ General › Thumbnails General › Miniatures
+ Generate CSS Genera CSS
+ Generate CSS: the whole document's CSS while nothing is selected Genera CSS: el CSS de tot el document quan no hi ha res seleccionat
+ Geometric Guides Guies geomètriques
+ German Alemany
+ Get Preferences Obtén les preferències
+ Get Text Range Obtén l’interval de text
+ GIF, 128 colours GIF, 128 colors
+ Glass Vidre
+ Glass… Vidre…
+ Global Global
+ Global Brush Dimensions Dimensions globals del pinzell
+ Global Edit Options Opcions globals d’edició
+ Global Process Color Color de procés global
+ Global Process Color, CMYK Color de procés global, CMYK
+ Glow Amount Quantitat de resplendor
+ Glow Brightness Brillantor de la resplendor
+ Glow Size Mida de la resplendor
+ Glowing Edges Vores resplendents
+ Glowing Edges… Vores resplendents…
+ Glyph Scaling: Escalat de glifs:
+ glyph {id} glif {id}
+ Glyphs Glifs
+ Go to Artboard Vés al tauler
+ Go to Conflict Vés al conflicte
+ Go To Link Vés a l’enllaç
+ Good Bé
+ GPL palettes keep solid colours only, as RGB. Les paletes GPL només conserven colors plans, com a RGB.
+ GPU Performance Rendiment de la GPU
+ Grab bag Calaix de sastre
+ Gradient Degradat
+ Gradient (.) Degradat (.)
+ Gradient across stroke Degradat transversal al traç
+ Gradient along stroke Degradat al llarg del traç
+ Gradient and Mesh Resolution: Resolució de degradat i malla:
+ Gradient Fill: click to apply, drag onto art Farciment de degradat: feu clic per aplicar-lo, arrossegueu-lo sobre l’art
+ Gradient Finishes Acabats de degradat
+ Gradient Mesh Malla de degradat
+ Gradient swatches Mostres de degradat
+ Gradient Tool Eina de degradat
+ Gradient Vector Vector de degradat
+ Gradient within stroke Degradat dins del traç
+ Gradients Degradats
+ Grain Gra
+ Grain Type Tipus de gra
+ Graininess Granulositat
+ Grainy Dots Punts granulats
+ Grain… Gra…
+ Graph Gràfic
+ Graph Column Columna del gràfic
+ Graph Data Dades del gràfic
+ Graph Design Disseny del gràfic
+ Graph Marker Marcador del gràfic
+ Graph Type Tipus de gràfic
+ Graphic Gràfic
+ Graphic Pen Ploma gràfica
+ Graphic Pen… Ploma gràfica…
+ Graphic Style Estil gràfic
+ Graphic Style Libraries Biblioteques d’estils gràfics
+ Graphic Style Libraries Menu Menú de biblioteques d’estils gràfics
+ Graphic Style Library Biblioteca d’estils gràfics
+ Graphic Style Options Opcions d’estil gràfic
+ Graphic Style Options… Opcions d’estil gràfic…
+ Graphic Styles Estils gràfics
+ Graphic Styles (4) Estils gràfics (4)
+ Graphic Styles Options Opcions d’estils gràfics
+ Graphics Gràfics
+ Graphics Processor Processador gràfic
+ Graphics: {adapter} Gràfics: {adapter}
+ Gravity Gravetat
+ Gray Gris
+ Gray Gamma 2.2 Gamma gris 2,2
+ Grays Grisos
+ Grays and Neutrals Grisos i neutres
+ Grayscale Escala de grisos
+ Grayscale images Imatges en escala de grisos
+ Greek & Cyrillic Grec i ciríl·lic
+ Green Verd
+ Greeting Card Targeta de felicitació
+ Grey Gris
+ Grid Quadrícula
+ Grid by Column Quadrícula per columnes
+ Grid by Row Quadrícula per files
+ Grid Color & Opacity Color i opacitat de la quadrícula
+ Grid Colors: Colors de la quadrícula:
+ Grid Repeat Repetició de quadrícula
+ Grid Size: Mida de la quadrícula:
+ Gridline every Línia de quadrícula cada
+ Gridline every: Línia de quadrícula cada:
+ Grids In Back Quadrícules al darrere
+ Group Agrupa
+ Group Selection Selecció de grup
+ Group Selection Tool Eina de selecció de grup
+ Group with Agrupa amb
+ Groups Grups
+ Grout Width Amplada de la junta
+ Growth: Creixement:
+ Guide Guia
+ Guides Guies
+ Guides & Grid Guies i quadrícula
+ Gutter Canal
+ Gutter: Canal:
+ H Spacing: Espaiat horitzontal:
+ H: H:
+ Hair Space Espai molt fi
+ Half Arrow (left) Mitja fletxa (esquerra)
+ Half Arrow (right) Mitja fletxa (dreta)
+ Half Circle Semicercle
+ Halftone Pattern Motiu de semitons
+ Halftone Pattern… Motiu de semitons…
+ Halo Halo
+ Hand Mà
+ Hand Tool Eina de mà
+ Hand-Drawn Dibuixat a mà
+ Handles Nanses
+ Hard Dur
+ Hard Light Llum dura
+ Hard Mix Mescla dura
+ Harmony Rules Regles d’harmonia
+ Harmony Rules: Regles d’harmonia:
+ Harmony Sets Conjunts d’harmonia
+ HDTV 1080p HDTV 1080p
+ HDTV 720p HDTV 720p
+ Heavy Ink Tinta espessa
+ Height Alçada
+ Height/Width Alçada/amplada
+ Height: Alçada:
+ Help Ajuda
+ Help › Search Commands… Ajuda › Cerca ordres…
+ Hex by Column Hexàgon per columnes
+ Hex by Row Hexàgon per files
+ Hexagon Hexàgon
+ Hexagon (open) Hexàgon (obert)
+ Hidden Amagat
+ Hidden Layer Capa amagada
+ Hidden Objects: Objectes amagats:
+ Hide Amaga
+ Hide Artboards Amaga els taulers
+ Hide Bar Amaga la barra
+ Hide Bounding Box Amaga el quadre delimitador
+ Hide Code Amaga el codi
+ Hide Corner Widget Amaga el giny d’angles
+ Hide Corner Widget for angles greater than Amaga el giny d’angles per a angles més grans de
+ Hide Edges Amaga les arestes
+ Hide Gradient Annotator Amaga l’anotador de degradat
+ Hide Grid Amaga la quadrícula
+ Hide Guides Amaga les guies
+ Hide Hidden Characters Amaga els caràcters ocults
+ Hide Live Paint Gaps Amaga els buits de pintura interactiva
+ Hide Note Amaga la nota
+ Hide Options Amaga les opcions
+ Hide Others Amaga els altres
+ Hide Print Tiling Amaga la mosaicació d’impressió
+ Hide Rulers Amaga les regles
+ Hide Slices Amaga els talls
+ Hide Template Amaga la plantilla
+ Hide Text Threads Amaga els fils de text
+ Hide Thumbnail Amaga la miniatura
+ Hide Thumbnails Amaga les miniatures
+ Hide Transparency Grid Amaga la quadrícula de transparència
+ Hide VectorCraft Amaga el VectorCraft
+ Hide Video Rulers Amaga les regles de vídeo
+ High Alt
+ High (300 ppi) Alta (300 ppi)
+ High Contrast Contrast alt
+ High Contrast 2 Contrast alt 2
+ High Contrast 3 Contrast alt 3
+ High Fidelity Photo Foto d’alta fidelitat
+ High Performance (discrete) Alt rendiment (discret)
+ High Quality Print Impressió d’alta qualitat
+ High Resolution Alta resolució
+ High resolution Alta resolució
+ Highlight Alternate Glyphs Ressalta els glifs alternatius
+ Highlight anchors on mouse over Ressalta els punts d’ancoratge en passar el ratolí
+ Highlight Area Ressalta l’àrea
+ Highlight Rows Ressalta les files
+ Highlight Substituted Fonts Ressalta els tipus de lletra substituïts
+ Highlight Substituted Glyphs Ressalta els glifs substituïts
+ Highlight Variable Ressalta la variable
+ Highlight: Ressalta:
+ Hindi Hindi
+ History Historial
+ History Options… Opcions de l’historial…
+ History States Estats de l’historial
+ Hold Mantén
+ Hollow Buit
+ Hollow Circle Cercle buit
+ Home Inici
+ Horizon Height: Alçada de l’horitzó:
+ Horizontal Horitzontal
+ Horizontal % Horitzontal %
+ Horizontal & Vertical Align Center Alinea al centre horitzontalment i verticalment
+ Horizontal Align Center Alinea al centre horitzontalment
+ Horizontal Align Left Alinea a l’esquerra horitzontalment
+ Horizontal Align Right Alinea a la dreta horitzontalment
+ Horizontal Distribute Center Distribueix al centre horitzontalment
+ Horizontal Distribute Left Distribueix a l’esquerra horitzontalment
+ Horizontal Distribute Right Distribueix a la dreta horitzontalment
+ Horizontal Distribute Space Distribueix l’espai horitzontalment
+ Horizontal Dividers: Divisores horitzontals:
+ Horizontal Grid: Quadrícula horitzontal:
+ Horizontal Guide Guia horitzontal
+ Horizontal Plane Pla horitzontal
+ Horizontal Scale % Escala horitzontal %
+ Horizontal: Horitzontal:
+ How colours outside the press's gamut are separated. Com se separen els colors fora de la gamma de la premsa.
+ HTML and Images HTML i imatges
+ Hue To
+ Hue Shift Desplaçament de to
+ Hue/Saturation… To/saturació…
+ Hyphen Limit: Límit de guions:
+ Hyphenate Particiona
+ Hyphenate Capitalized Words Particiona les paraules amb majúscula inicial
+ Hyphenation Partició de mots
+ Hyphenation Zone: Zona de partició:
+ Hyphenation… Partició de mots…
+ hyphens guions
+ ICC Profile Perfil ICC
+ ICF Bottom/Left ICF a baix/a l’esquerra
+ ICF Top/Right ICF a dalt/a la dreta
+ Identify Objects By Identifica els objectes per
+ If a drawing tablet's pen doesn't draw, choose an X11 (XWayland) option. Si el llapis d’una tauleta gràfica no dibuixa, trieu una opció X11 (XWayland).
+ Ignore Ignora
+ Ignore Artboards (all the art as one page) Ignora els taulers (tot l’art com una sola pàgina)
+ Ignore Color Ignora el color
+ Ignore White Ignora el blanc
+ Image Imatge
+ Image Info Informació de la imatge
+ Image Map: Mapa d’imatge:
+ Image Size Mida de la imatge
+ Image Trace Traçat d’imatge
+ Image Trace (Make and Expand) Traçat d’imatge (Crea i expandeix)
+ Image Trace Presets Preajustos de traçat d’imatge
+ Image Trace Preview Previsualització del traçat d’imatge
+ Image Trace View Vista del traçat d’imatge
+ Image Tracing Traçat d’imatges
+ Image: Imatge:
+ Images Imatges
+ Images Only Només imatges
+ Images: Imatges:
+ Images: link to the file instead of only embedding it. Imatges: enllaça amb el fitxer en lloc d’incrustar-lo només.
+ Import Data Sets… Importa conjunts de dades…
+ Import Data… Importa dades…
+ Import Keyboard Shortcuts… Importa dreceres de teclat…
+ Import Library Importa biblioteca
+ Import Library… Importa biblioteca…
+ Import Matches Importa coincidències
+ Import PDF Importa PDF
+ Import PDF Presets Importa preajustos de PDF
+ Import Perspective Grid Presets Importa preajustos de quadrícula de perspectiva
+ Import Print Presets Importa preajustos d’impressió
+ Import Shortcut Set Importa conjunt de dreceres
+ Import Shortcut Set… Importa conjunt de dreceres…
+ Import Transparency Flattener Presets Importa preajustos d’aplanador de transparència
+ Imported {what}: {} Importat {what}: {}
+ Imported. Press OK to keep the imported set. Importat. Premeu D’acord per conservar el conjunt importat.
+ Import… Importa…
+ In Merge Mode, Clicking Stroke Splits the Path En el mode d’unió, fer clic al traç divideix el traçat
+ In Tangent Handles En nanses tangents
+ In the File Al fitxer
+ In the selected objects Als objectes seleccionats
+ In VectorCraft A VectorCraft
+ Inches Polzades
+ Include all profiles Inclou tots els perfils
+ Include All Subdirectories Inclou tots els subdirectoris
+ Include Blacks with CMY: Inclou negres amb CMY:
+ Include Bleed Inclou el sangrat
+ Include Cmy Blacks Inclou negres CMY
+ Include CMYK PostScript in RGB Files Inclou PostScript CMYK als fitxers RGB
+ Include destination profile Inclou el perfil de destinació
+ Include Document Thumbnails Inclou miniatures del document
+ Include Hidden Layers Inclou les capes ocultes
+ Include Linked Files Inclou els fitxers enllaçats
+ Include Metadata Inclou les metadades
+ Include non-printing layers Inclou les capes no imprimibles
+ Include Objects On Canvas Inclou els objectes del llenç
+ Include SVG Code Inclou codi SVG
+ Include Swatches for Tints Inclou mostres per als tons
+ Include tagged source profiles Inclou els perfils d’origen etiquetats
+ Includes Inclou
+ Includes itself S’inclou a si mateix
+ Increase Font Size Augmenta la mida del tipus de lletra
+ Increase Font Size by Five Steps Augmenta la mida del tipus de lletra cinc passos
+ Inflate… Infla…
+ Info Informació
+ Ink Tinta
+ Ink Outlines Contorns de tinta
+ Ink Outlines… Contorns de tinta…
+ Inner Corner Tile Rajola de cantonada interior
+ Inner Glow… Resplendor interior…
+ Input Black Negre d’entrada
+ Input White Blanc d’entrada
+ Insert Insereix
+ Insert Break Character Insereix caràcter de salt
+ Insert Character Insereix caràcter
+ Insert Inline Symbol Insereix símbol en línia
+ Insert Kashidas Insereix kashides
+ Insert Special Character Insereix caràcter especial
+ Insert Whitespace Character Insereix caràcter d’espai
+ Inserting, deleting and rotating pages Inserir, suprimir i girar pàgines
+ Inside A dins
+ Inspect Document Inspecciona el document
+ Inspect Object Inspecciona l’objecte
+ Inspect Plug-in Inspecciona el complement
+ Install Plug-in Instal·la el complement
+ Install Plug-in… Instal·la el complement…
+ Install “{name}”, which asks for a heavy budget? Instal·la «{name}», que demana un pressupost elevat?
+ Installed plug-in {} Complement instal·lat {}
+ Intensity Intensitat
+ Intensity: Intensitat:
+ Intent: Intenció:
+ Interface Language Llengua de la interfície
+ Interlaced Entrellaçat
+ Internal CSS CSS intern
+ Internet Standard RGB (sRGB) RGB estàndard d’Internet (sRGB)
+ Interpolation Interpolació
+ Intersect Interseca
+ Intertwine Entrelliga
+ Inverse Inversa
+ Invert Inverteix
+ Invert Colors Inverteix els colors
+ Invert Mask Inverteix la màscara
+ Invert Pie Inverteix el diagrama circular
+ Inverted Round Rodó invertit
+ Invoke Distance Guides Invoca les guies de distància
+ Isolate Aïlla
+ Isolate Blending Aïlla la fusió
+ Isolate Group Aïlla el grup
+ Isolate Selected Group Aïlla el grup seleccionat
+ Isolate Selected Object Aïlla l’objecte seleccionat
+ Isometric Bottom Isomètrica inferior
+ Isometric Left Isomètrica esquerra
+ Isometric Right Isomètrica dreta
+ Isometric Top Isomètrica superior
+ It may take minutes, so it runs in the background, where you can cancel it. Pot trigar minuts, així que s’executa en segon pla, on el podeu cancel·lar.
+ Italian Italià
+ Italic Cursiva
+ Its graphics, colors and text styles are deleted from this machine. Els seus gràfics, colors i estils de text se suprimiran d’aquest ordinador.
+ Japanese Japonès
+ Japanese Double Postcard Postal doble japonesa
+ Japanese Envelope #3 Sobre japonès núm. 3
+ Japanese Envelope #4 Sobre japonès núm. 4
+ Japanese Postcard Postal japonesa
+ JavaScript Files Fitxers JavaScript
+ JavaScript: JavaScript:
+ Join Uneix
+ Join Our Discord Uneix-te al nostre Discord
+ Join our Discord Uneix-te al nostre Discord
+ Join the ArtCraft community on Discord (discord.gg/artcraft) Uneix-te a la comunitat ArtCraft a Discord (discord.gg/artcraft)
+ Join the lines of each paragraph Uneix les línies de cada paràgraf
+ Join Tool Eina d’unió
+ Joins Unions
+ Joins: Unions:
+ Justification Justificació
+ Justification… Justificació…
+ Justify Justifica
+ Justify all lines Justifica totes les línies
+ Justify with last line aligned center Justifica amb l’última línia centrada
+ Justify with last line aligned left Justifica amb l’última línia alineada a l’esquerra
+ Justify with last line aligned right Justifica amb l’última línia alineada a la dreta
+ Kaku #2 Kaku núm. 2
+ Kaku #3 Kaku núm. 3
+ Keep a link to an image file instead of only embedding it Mantén un enllaç a un fitxer d’imatge en lloc d’incrustar-lo només
+ Keep both sides the same width Mantén la mateixa amplada als dos costats
+ Keep Formatting Conserva el format
+ Keep graphics, colors and text styles here to use them in any document. Libraries are stored on this machine — no account required. Conserva aquí gràfics, colors i estils de text per fer-los servir a qualsevol document. Les biblioteques es desen en aquest ordinador — no cal cap compte.
+ Keep Original Conserva l’original
+ Keep Plain Text Conserva el text sense format
+ Keep selected Mantén la selecció
+ Keep the pasted color as a new swatch with a numbered name. Conserva el color enganxat com a mostra nova amb un nom numerat.
+ Keep this row's colors (exclude) Conserva els colors d’aquesta fila (exclou)
+ Keep visible surfaces only when expanding Conserva només les superfícies visibles en expandir
+ Keep: Conserva:
+ Keeps the document editable: VectorCraft reopens the PDF with nothing lost. For files you'll edit again. Manté el document editable: VectorCraft reobre el PDF sense perdre res. Per a fitxers que editaràs de nou.
+ Kerning (0 = Auto) Kerning (0 = automàtic)
+ Key Color: Color clau:
+ Keyboard Increment Increment de teclat
+ Keyboard Shortcut Conflicts Conflictes de dreceres de teclat
+ Keyboard Shortcut Set Conjunt de dreceres de teclat
+ Keyboard Shortcuts Dreceres de teclat
+ Keyboard Shortcuts… Dreceres de teclat…
+ Keys Claus
+ Keywords: Paraules clau:
+ Kind Tipus
+ Kinsoku Set Conjunt Kinsoku
+ Kite Estel
+ Knife Ganivet
+ Knockout Group Grup knockout
+ Lab Lab
+ Lab Spot Colors Colors directes Lab
+ Lab Spot Colors: Colors directes Lab:
+ Lab Values Valors Lab
+ Landscape Apaïsat
+ Landscape (flipped) Apaïsat (invertit)
+ Language Llengua
+ Language Level 2 Nivell de llengua 2
+ Language Level 3 Nivell de llengua 3
+ Language Options Opcions de llengua
+ Language: Llengua:
+ Large Gran
+ Large Gaps Espais grans
+ Large List View Visualització de llista gran
+ Large Tabs Pestanyes grans
+ Large Thumbnail View Visualització de miniatures gran
+ Large Thumbnails Miniatures grans
+ Largest: El més gran:
+ Lasso Llaç
+ Lasso Tool Eina de llaç
+ Last Últim
+ Last Artboard Últim tauler
+ Last commit Últim commit
+ Last Effect: {name} Últim efecte: {name}
+ Last Effect: {} Últim efecte: {}
+ Last Effect… Últim efecte…
+ Last Page Última pàgina
+ Latin Llatí
+ Latin Extended Llatí estès
+ Latin-1 Supplement Suplement Llatí-1
+ Layer Capa
+ Layer Names Noms de les capes
+ Layer Options Opcions de la capa
+ Layer Options… Opcions de la capa…
+ Layers Capes
+ Layers Panel Options Opcions del panell Capes
+ Layout Order: Ordre de disposició:
+ Layout: Disposició:
+ Leader: Guia:
+ Leading Interlineat
+ Leaf Fulla
+ Left Esquerra
+ Left Complement Complement esquerre
+ Left Diagonal Diagonal esquerra
+ Left Grid: Quadrícula esquerra:
+ Left in Front Esquerra al davant
+ Left Indent Sagnia esquerra
+ Left Plane Pla esquerre
+ Left to Right D’esquerra a dreta
+ Left-Justified Tab Tabulació alineada a l’esquerra
+ Left-to-Right Paragraph Direction Direcció del paràgraf d’esquerra a dreta
+ Left: Esquerra:
+ Legacy (version 7) Heredat (versió 7)
+ Legacy .ai Options Opcions .ai heredades
+ Legacy Macintosh RGB (Gamma 1.8) RGB Macintosh heredat (Gamma 1.8)
+ Legacy vector clipboard Porta-retalls vectorial heredat
+ Legacy vector clipboard (no transparency) Porta-retalls vectorial heredat (sense transparència)
+ Legal Legal
+ Legends in Wedges Llegendes en els sectors
+ Length Longitud
+ Length X-Axis: Longitud de l’eix X:
+ Length Y-Axis: Longitud de l’eix Y:
+ Length: Longitud:
+ Less Menys
+ Letter Carta
+ Letter Spacing: Espaiat entre lletres:
+ Letterhead A4 Paper de carta A4
+ Letterhead Letter Paper de carta Carta
+ letters lletres
+ Levels Nivells
+ Levels… Nivells…
+ LF (macOS, Linux) LF (macOS, Linux)
+ Libraries Biblioteques
+ Library Biblioteca
+ Library Panel Options Opcions del panell Biblioteca
+ Library: Biblioteca:
+ Ligatures are off while the text is tracked. Les lligadures estan desactivades mentre el text té espaiat.
+ Light Clar
+ Light behind the object Llum darrere de l’objecte
+ Light Blue Blau clar
+ Light Direction Direcció de la llum
+ Light Gray Gris clar
+ Light Intensity Intensitat de la llum
+ Light Rough Clar aspre
+ Light/Dark Balance Equilibri clar/fosc
+ Lighten Aclareix
+ Lighten Grout Aclareix la junta
+ Lighting Il·luminació
+ Lightness Lluminositat
+ Lights Llums
+ Limit Color Guide to Library Limita la guia de colors a la biblioteca
+ Limit colors to swatch library Limita els colors a la biblioteca de mostres
+ Limit colors to swatch library: {name} Limita els colors a la biblioteca de mostres: {name}
+ Limit to Library: Limita a la biblioteca:
+ Limit: Límit:
+ Limited Limitat
+ Line Línia
+ Line Art Art lineal
+ Line Art and Text Resolution: Resolució de l’art lineal i del text:
+ Line Breaks Salts de línia
+ Line Color Color de línia
+ Line Cut Tall de línia
+ Line Cut Tool Eina de tall de línia
+ Line delta Diferència de línies
+ Line Endings: Finals de línia:
+ Line Graph Tool Eina de gràfic de línies
+ Line Segment Segment de línia
+ Line Segment Tool Eina de segment de línia
+ Line Segment Tool Options Opcions de l’eina de segment de línia
+ line {line} línia {line}
+ Line {line} Línia {line}
+ Line {line}: {name}: {status} Línia {line}: {name}: {status}
+ Line-end Punctuation Half Width Puntuació de final de línia a mitja amplada
+ Linear Lineal
+ Linear Gradient Degradat lineal
+ Lines Línies
+ Lines +/− Línies +/−
+ Lines added Línies afegides
+ Lines deleted Línies suprimides
+ lines {lines} línies {lines}
+ Lines: clicks add points joined by a line Línies: els clics afegeixen punts units per una línia
+ Link Enllaça
+ Link harmony colors Enllaça els colors harmònics
+ Link Info Informació de l’enllaç
+ Link JavaScript Files… Enllaça fitxers JavaScript…
+ Link Opacity Mask Enllaça la màscara d’opacitat
+ Link start and end arrowhead scales Enllaça les escales de les puntes de fletxa inicial i final
+ Link the mask Enllaça la màscara
+ Linked Enllaçat
+ Linked File Fitxer enllaçat
+ Linked File Not Found No s’ha trobat el fitxer enllaçat
+ Linked Files Fitxers enllaçats
+ Links Enllaços
+ Linux Display Server Servidor de pantalla de Linux
+ Liquify Liquifica
+ List Data Sets Llista els conjunts de dades
+ List Folder Llista la carpeta
+ List Graphic Styles Llista els estils gràfics
+ List Keyboard Shortcuts Llista les dreceres de teclat
+ List Patterns Llista els motius
+ List Plug-ins Llista els complements
+ List Preferences Llista les preferències
+ List Slices Llista els talls
+ List Variables Llista les variables
+ List View Vista de llista
+ List Workspaces Llista els espais de treball
+ Live curve fitting Ajustament de corbes en directe
+ Live Paint Pintura interactiva
+ Live Paint Bucket Galleda de pintura interactiva
+ Live Paint Bucket (Stroke) Galleda de pintura interactiva (traç)
+ Live Paint Info Informació de pintura interactiva
+ Live Paint Selection Tool Eina de selecció de pintura interactiva
+ Live preview Previsualització en directe
+ Live Shape Forma dinàmica
+ Live Shape Properties Propietats de la forma dinàmica
+ Load Color Profile… Carrega un perfil de color…
+ Load EPS into Clipboard Carrega EPS al porta-retalls
+ Load Image into Clipboard Carrega una imatge al porta-retalls
+ Load Metafile into Clipboard Carrega un metafitxer al porta-retalls
+ Load PDF into Clipboard Carrega PDF al porta-retalls
+ Load Place Cursor Carrega el cursor de col·locació
+ Load Profile… Carrega un perfil…
+ Load SVG into Clipboard Carrega SVG al porta-retalls
+ Load Text into Clipboard Carrega text al porta-retalls
+ Load Texture… Carrega una textura…
+ Load Variable Library Carrega la biblioteca de variables
+ Load Variable Library… Carrega la biblioteca de variables…
+ Loaded Texture Textura carregada
+ Loads native code Carrega codi natiu
+ Local Libraries Biblioteques locals
+ Locate Library… Localitza la biblioteca…
+ Locate Object Localitza l’objecte
+ Locate Selected Objects Localitza els objectes seleccionats
+ Location Ubicació
+ Location: Ubicació:
+ Lock Bloca
+ Lock (⌘2) Bloca (⌘2)
+ Lock All Bloca-ho tot
+ Lock All Except Selected Bloca-ho tot excepte la selecció
+ Lock Artboards Bloca els taulers
+ Lock Grid Bloca la quadrícula
+ Lock Guides Bloca les guies
+ Lock Others Bloca la resta
+ Lock Selected Bloca la selecció
+ Lock Slices Bloca els talls
+ Lock Station Point Bloca el punt d’estació
+ Lock Variables Bloca les variables
+ Locked Blocat
+ Logo 1000×1000 Logotip 1000×1000
+ Long Llarg
+ Long Lines Línies llargues
+ Long Strokes Traços llargs
+ Longest: El més llarg:
+ Lossless (lossy WebP isn't available yet) Sense pèrdua (el WebP amb pèrdua encara no està disponible)
+ Lossy: Amb pèrdua:
+ Low Baix
+ Low Fidelity Photo Foto de baixa fidelitat
+ Low Resolution Baixa resolució
+ Low resolution (150 ppi) Baixa resolució (150 ppi)
+ lowercase minúscules
+ Luminosity Lluminositat
+ LZW Compression Compressió LZW
+ Mac Mac
+ Magenta Magenta
+ Magic Wand Vareta màgica
+ Magic Wand Options Opcions de la vareta màgica
+ Magic Wand Settings Configuració de la vareta màgica
+ Magic Wand Tool Eina de vareta màgica
+ Maintain Envelope Shape Mantén la forma de l’embolcall
+ Make Crea
+ Make a theme on Create and save it. Crea un tema a Create i desa’l.
+ Make all bleed settings the same Fes que tots els ajustos de sangrat siguin iguals
+ Make and Expand Crea i expandeix
+ Make Blend Crea una fusió
+ Make Clipping Mask Crea una màscara de retall
+ Make Compound Path Crea un traçat compost
+ Make Compound Shape Crea una forma composta
+ Make Dynamic Fes dinàmic
+ Make Envelope Crea un embolcall
+ Make Graph Dynamic Fes dinàmic el gràfic
+ Make Guides Crea guies
+ Make Image Dynamic Fes dinàmica la imatge
+ Make Intertwine Crea un entrellaçament
+ Make Live Paint Crea pintura interactiva
+ Make Mask Crea una màscara
+ Make Opacity Mask Crea una màscara d’opacitat
+ Make Pattern Crea un motiu
+ Make Pixel Perfect Ajusta a píxels exactes
+ Make Sides Equal Iguala els costats
+ Make Slice Crea un tall
+ Make Text Dynamic Fes dinàmic el text
+ Make Text Wrap Crea un ajustament de text
+ Make the bleed values differ Fes que els valors de sangrat siguin diferents
+ Make Visibility Dynamic Fes dinàmica la visibilitat
+ Make Visible Fes visible
+ Make with Mesh… Crea amb malla…
+ Make with Top Object Crea amb l’objecte superior
+ Make with Warp… Crea amb deformació…
+ Make/Release Clipping Mask Crea/Allibera una màscara de retall
+ Manage Presets Gestiona els preajustos
+ Manage Workspaces Gestiona els espais de treball
+ Manage Workspaces… Gestiona els espais de treball…
+ Manually Manualment
+ Mark as trapped Marca com a reventat
+ Mark Older Files as [Converted] When Opened Marca els fitxers antics com a [Convertit] en obrir-los
+ Marker… Marcador…
+ Marks Marques
+ Marks and Bleed Marques i sangrat
+ Marks and Bleeds Marques i sangrats
+ Mask Màscara
+ Match Coincideix
+ Match User Interface Brightness Iguala la brillantor de la interfície d’usuari
+ Materials… Materials…
+ Matte Mate
+ Matte: Mate:
+ Max. Radius Radi màx.
+ Maximize Maximitza
+ Maximize Editability Maximitza l’editabilitat
+ Maximum Màxim
+ Maximum Editability Editabilitat màxima
+ Measure Mesura
+ Measure Tool Eina de mesura
+ Measurement Labels Etiquetes de mesura
+ Media Suport
+ Medium Mitjà
+ Medium (150 ppi) Mitjana (150 ppi)
+ Medium Dark Mitjà fosc
+ Medium Dots Punts mitjans
+ Medium Gaps Intervals mitjans
+ Medium Gray Gris mitjà
+ Medium Light Mitjà clar
+ Medium Lines Línies mitjanes
+ Medium Resolution Resolució mitjana
+ Medium Strokes Traços mitjans
+ Medium Thumbnail View Vista de miniatures mitjanes
+ Medium Thumbnails Miniatures mitjanes
+ Menu commands Ordres de menú
+ Menu Commands Ordres de menú
+ Menu Dialog Diàleg de menú
+ Merge Fusiona
+ Merge colors into one row Fusiona els colors en una fila
+ Merge Graphic Styles Fusiona els estils gràfics
+ Merge Graphic Styles… Fusiona els estils gràfics…
+ Merge Layers Fusiona les capes
+ Merge Live Paint Fusiona la pintura interactiva
+ Merge only with selection Fusiona només amb la selecció
+ Merge Selected Fusiona la selecció
+ Merge Swatches Fusiona les mostres
+ Merged PRs PR fusionades
+ Mesh Malla
+ Mesh Point Color Color dels punts de la malla
+ Mesh Tool Eina de malla
+ Message: Missatge:
+ Metadata: Metadades:
+ Metallic Gradients Degradats metàl·lics
+ Meters Metres
+ Method Mètode
+ Method: Mètode:
+ Mezzotint Mezzotinta
+ Mezzotint… Mezzotinta…
+ Millimeters Mil·límetres
+ Minify Minimitza
+ Minimal Mínim
+ Minimize Minimitza
+ Minimum Mínim
+ Minimum must not exceed Desired, nor Desired Maximum. El mínim no pot superar el desitjat ni el màxim desitjat.
+ Minus Back Resta al darrere
+ Minus Front Resta al davant
+ Mirror Reflexa
+ Mirror & Cut Reflexa i retalla
+ Mirror & Cut Tool Eina de reflexa i retall
+ Mirror Repeat Repetició reflectida
+ Missing Falta
+ Missing Fonts Tipus de lletra que falten
+ Missing Fonts Dialog Diàleg de tipus de lletra que falten
+ Missing: {path} Falta: {path}
+ Miter Inglete
+ Miter Join Unió en inglete
+ Miter Limit Límit d’inglete
+ Miter Limit: Límit d’inglete:
+ Mixed Mixt
+ Mixed Appearances Aparences mixtes
+ Mixed line endings Finals de línia mixts
+ Mixed Objects Objectes mixts
+ Mobile Mòbil
+ Mode Mode
+ Mode: Mode:
+ Model Model
+ Models Models
+ Modern Modern
+ Modified Modificat
+ Modified since it was read: {path} Modificat des que es va llegir: {path}
+ Modified: Modificat:
+ Modify Modifica
+ Mojikumi Ajust mojikumi
+ Mojikumi Set Conjunt mojikumi
+ Monitor RGB RGB del monitor
+ Mono Monocrom
+ Monochromatic Monocromàtic
+ Monochrome Monocrom
+ Monochrome images Imatges monocromàtiques
+ Monospaced Monoespaiat
+ More Més
+ More Align options Més opcions d’alineació
+ More Options Més opcions
+ More Paragraph options Més opcions de paràgraf
+ More Pathfinder options Més opcions del Cercador de traçats
+ More Settings Més configuració
+ Mosaic Tiles Tessel·les de mosaic
+ Mosaic Tiles… Tessel·les de mosaic…
+ Move Mou
+ Move All Objects Mou tots els objectes
+ Move Anchor Point Mou el punt d’ancoratge
+ Move Anchors Mou els punts d’ancoratge
+ Move Appearance Mou l’aparença
+ Move Artboard Mou el tauler
+ Move Artboard Up/Down Mou el tauler amunt/avall
+ Move Artwork with Artboard Mou la il·lustració amb el tauler
+ Move Brush Mou el pinzell
+ Move Direction Handle Mou la nansa de direcció
+ Move Down Mou avall
+ Move Effect Mou l’efecte
+ Move Envelope Mesh Point Mou el punt de malla de l’embolcall
+ Move Envelope Point Mou el punt d’embolcall
+ Move Graphic Style Mou l’estil gràfic
+ Move Guide Mou la guia
+ Move Guide to Layer Mou la guia a la capa
+ Move in Perspective Mou en perspectiva
+ Move Library Group Mou el grup de la biblioteca
+ Move Library Item to Group Mou l’element de la biblioteca al grup
+ Move Locked and Hidden Artwork with Artboard Mou la il·lustració bloquejada i oculta amb el tauler
+ Move Mesh Point Mou el punt de malla
+ Move Panel Mou el panell
+ Move Plane Mou el pla
+ Move Plane and Copy Objects Mou el pla i copia els objectes
+ Move Plane and Objects Mou el pla i els objectes
+ Move Plane to Match Object Mou el pla perquè coincideixi amb l’objecte
+ Move Rows Mou les files
+ Move Slice Mou el tall
+ Move Slices Mou els talls
+ Move Spine Point Mou el punt de l’espina
+ Move Swatch Mou la mostra
+ Move to Group Mou al grup
+ Move Type on a Path Mou el text sobre un traçat
+ Move Up Mou amunt
+ Move… Mou…
+ Movie Clip Clip de pel·lícula
+ Multiple objects Diversos objectes
+ Multiply Multiplica
+ Muted Apagat
+ My Themes Els meus temes
+ N pt per N punts per
+ N slices …, evenly spaced N talls …, espaiats uniformement
+ Name Nom
+ Name (A–Z) Nom (A–Z)
+ Name 40% Nom 40 %
+ Name* @ 66.67 % (RGB/Preview) Nom* @ 66.67 % (RGB/Previsualització)
+ Name* @ 66.67% (RGB/Preview) Nom* @ 66.67% (RGB/Previsualització)
+ Name: Nom:
+ Names the script builds as it runs: {count} Noms que l’script crea mentre s’executa: {count}
+ Navigate Navega
+ Navigator Navegador
+ Needs a choice Necessita una tria
+ Needs a key Necessita una clau
+ Needs Attention Only Només necessita atenció
+ Needs dialogs Necessita diàlegs
+ Needs features only the reference app has Necessita funcions que només té l’aplicació de referència
+ Needs files Necessita fitxers
+ Needs menu commands Necessita ordres de menú
+ Needs nothing beyond plain JavaScript No necessita res més enllà de JavaScript pur
+ Needs the desktop app Necessita l’aplicació d’escriptori
+ Needs the document model Necessita el model del document
+ Needs the script language's own objects or directives Necessita objectes o directrius propis del llenguatge de script
+ Negative Negatiu
+ Neon Glow Resplendor de neó
+ Neon Glow… Resplendor de neó…
+ Nesting too deep to follow Imbricació massa profunda per seguir-la
+ Neutral Gradients Degradats neutres
+ New Nou
+ New Art Appearance Aparença de la il·lustració nova
+ New Art Brush from Selection Pinzell artístic nou a partir de la selecció
+ New Art Has Basic Appearance La il·lustració nova té l’aparença bàsica
+ New Artboard Tauler nou
+ New Artboard Options… Opcions del tauler nou…
+ New Bristle Brush Pinzell de cerres nou
+ New Brush Pinzell nou
+ New Brush… Pinzell nou…
+ New Calligraphic Brush Pinzell cal·ligràfic nou
+ New Character Style Estil de caràcter nou
+ New Color Group Grup de colors nou
+ New Color Group… Grup de colors nou…
+ New Data Set Conjunt de dades nou
+ New Data Set… Conjunt de dades nou…
+ New Design Disseny nou
+ New Document Presets Preajustos de document nous
+ New file Fitxer nou
+ New from Template Nou a partir d’una plantilla
+ New from Template… Nou a partir d’una plantilla…
+ New Graphic Style Estil gràfic nou
+ New Graphic Style (Alt-click to name it) Estil gràfic nou (Alt+clic per posar-hi nom)
+ New Graphic Style… Estil gràfic nou…
+ New Group Grup nou
+ New Group… Grup nou…
+ New Guide Guia nova
+ New Layer Options… Opcions de la capa nova…
+ New Layer… Capa nova…
+ New Library Group Grup de biblioteca nou
+ New Name Nom nou
+ New Opacity Masks Are Clipping Les màscares d’opacitat noves són de retall
+ New Opacity Masks Are Inverted Les màscares d’opacitat noves estan invertides
+ New Paragraph Style Estil de paràgraf nou
+ New Pattern Brush from Selection Pinzell de motiu nou a partir de la selecció
+ New PDF Preset Preajust de PDF nou
+ New Print Preset Preajust d’impressió nou
+ New Scatter Brush from Selection Pinzell de dispersió nou a partir de la selecció
+ New Set Conjunt nou
+ New Set… Conjunt nou…
+ New Sublayer… Subcapa nova…
+ New Swatch Mostra nova
+ New Swatch… Mostra nova…
+ New Symbol Símbol nou
+ New Symbol… Símbol nou…
+ New theme from the current color Tema nou a partir del color actual
+ New Variable Variable nova
+ New Variable… Variable nova…
+ New View Vista nova
+ New View… Vista nova…
+ New Window Finestra nova
+ New Without Dialog Nou sense diàleg
+ New Workspace Espai de treball nou
+ New Workspace… Espai de treball nou…
+ New {kind} Style… Nou estil de {kind}…
+ New… Nou…
+ Next Següent
+ Next Artboard Tauler següent
+ Next Data Set Conjunt de dades següent
+ Next Library Biblioteca següent
+ Next Object Above Objecte següent a sobre
+ Next Object Below Objecte següent a sota
+ Next Page Pàgina següent
+ Next page Pàgina següent
+ No actions. Press ● to record. No hi ha accions. Prem ● per enregistrar.
+ No assets No hi ha recursos
+ No assets yet. Collect art with Object › Collect for Export, or drag it into the Asset Export panel. Encara no hi ha recursos. Recull la il·lustració amb Objecte › Recull per a l’exportació o arrossega-la al panell Exportació de recursos.
+ No Break Sense salt
+ No brushes No hi ha pinzells
+ No colors to recolor (preserved colors are left out). No hi ha colors per recolorir (els colors conservats s’ometen).
+ No contributor data was built into this copy. Aquesta còpia no inclou dades de col·laboradors.
+ No conversion Sense conversió
+ No CSS Sense CSS
+ no data set to edit no hi ha cap conjunt de dades per editar
+ no data set to rename no hi ha cap conjunt de dades per canviar de nom
+ No Dither Sense tramatge
+ No document Cap document
+ No Document Cap document
+ no document cap document
+ No document open No hi ha cap document obert
+ No document open. No hi ha cap document obert.
+ No downsampling Sense reducció de mostra
+ No equivalent Sense equivalent
+ No filter plug-ins installed No hi ha complements de filtre instal·lats
+ No fonts are available. No hi ha cap tipus de lletra disponible.
+ No gradient swatches No hi ha mostres de degradat
+ No graphic styles No hi ha estils gràfics
+ No Group Sense grup
+ No images No hi ha imatges
+ No items in this library match “{query}”. Cap element d’aquesta biblioteca coincideix amb «{query}».
+ No Legend Sense llegenda
+ No matches. Cap coincidència.
+ No matching fonts No hi ha tipus de lletra coincidents
+ No model credits were built into this copy. Aquesta còpia no inclou crèdits de models.
+ No options Sense opcions
+ No printer settings to open here No hi ha cap configuració d’impressora per obrir aquí
+ No results Cap resultat
+ No saved themes No hi ha temes desats
+ No saved views (View → New View…) No hi ha vistes desades (Visualitza → Vista nova…)
+ No Selection Sense selecció
+ No selection Sense selecció
+ No Slices Sense talls
+ No symbols in this document Aquest document no té símbols
+ No text selected No hi ha text seleccionat
+ No Thumbnails Sense miniatures
+ no variable to rename no hi ha cap variable per canviar de nom
+ Noise Soroll
+ Nonbreaking Hyphen Guió indivisible
+ Nonbreaking Space Espai indivisible
+ None Cap
+ None (/) Cap (/)
+ None (Color Preview) Cap (Previsualització del color)
+ None (keep transparency) Cap (conserva la transparència)
+ None. Cap.
+ Normal Normal
+ Normal Screen Mode Mode de pantalla normal
+ Not a script for the reference app No és un script per a l’aplicació de referència
+ Not followed: outside the script's folder No seguit: fora de la carpeta de l’script
+ Not found No s’ha trobat
+ not known yet encara no se sap
+ Not read No llegit
+ Not read: a limit was reached No llegit: s’ha arribat a un límit
+ Not valid UTF-8: unreadable bytes were replaced UTF-8 no vàlid: s’han substituït els bytes no llegibles
+ Note Paper Paper de notes
+ Note Paper… Paper de notes…
+ Note: Nota:
+ Nothing is selected. Select the art to export, then open this tab again. No hi ha res seleccionat. Selecciona la il·lustració que vols exportar i torna a obrir aquesta pestanya.
+ Nothing matches the Show filter. Res no coincideix amb el filtre Mostra.
+ Nothing to print No hi ha res per imprimir
+ NTSC Colors Colors NTSC
+ Nudge Desplaça
+ Nudge in Perspective Desplaça en perspectiva
+ Number (####) Número (####)
+ Number of Artboards: Nombre de taulers:
+ Number of Colors: Nombre de colors:
+ Number of Decimals: Nombre de decimals:
+ Number of Recent Files to Display Nombre de fitxers recents que es mostraran
+ Number of Recent Fonts Nombre de tipus de lletra recents
+ Number: Número:
+ Numbered List Llista numerada
+ Numbers Without Units Are Points Els nombres sense unitats són punts
+ Object Objecte
+ Object Highlighting Ressaltat d’objectes
+ Object IDs: ID d’objecte:
+ Object Name Nom de l’objecte
+ Object Properties Propietats de l’objecte
+ Object Selection by Path Only Selecció d’objectes només pel traçat
+ Object types: {names} Tipus d’objecte: {names}
+ Objects Objectes
+ Objects on Path Objectes sobre el traçat
+ Objects on Path Options Opcions dels objectes sobre el traçat
+ Objects on Path Tool Eina d’objectes sobre el traçat
+ Objects using them keep their look but are no longer linked. Els objectes que les utilitzen conserven l’aspecte, però ja no estan enllaçats.
+ Ocean Ripple Onada oceànica
+ Ocean Ripple… Onada oceànica…
+ Odd Fields Camps imparells
+ of de
+ of characters used de caràcters utilitzats
+ of {count} de {count}
+ Off Desactivat
+ Off-Axis Back Posterior fora d’eix
+ Off-Axis Bottom Inferior fora d’eix
+ Off-Axis Front Frontal fora d’eix
+ Off-Axis Left Esquerra fora d’eix
+ Off-Axis Right Dreta fora d’eix
+ Off-Axis Top Superior fora d’eix
+ Off: an editable copy of its art, embedded in this document. Desactivat: una còpia editable del seu art, incrustada en aquest document.
+ Offset Desplaçament
+ Offset Path Desplaça el traçat
+ Offset Path… Desplaça el traçat…
+ Offset X Desplaçament X
+ Offset: Desplaçament:
+ Ogee Ogiva
+ OK D’acord
+ Omit Omet
+ On Activat
+ On Artboards Als taulers
+ On Both Sides A les dues bandes
+ On Copy En copiar
+ On Left Side Al costat esquerre
+ On Paste En enganxar
+ On Right Side Al costat dret
+ On Screen A la pantalla
+ On: one locked object showing the document, updated when it changes. Activat: un objecte blocat que mostra el document i s’actualitza quan canvia.
+ One File of the Selection Un fitxer de la selecció
+ One file per artboard: -.{ext} Un fitxer per tauler: -.{ext}
+ One page per artboard. Una pàgina per tauler.
+ One Point Un punt
+ One Point Perspective Perspectiva d’un punt
+ One Point Perspective Preset 1 Preajust 1 de perspectiva d’un punt
+ One Point Perspective Preset 2 Preajust 2 de perspectiva d’un punt
+ One Point Perspective Preset 3 Preajust 3 de perspectiva d’un punt
+ One Point Perspective Preset 4 Preajust 4 de perspectiva d’un punt
+ One Point Perspective Preset 5 Preajust 5 de perspectiva d’un punt
+ Only Web Colors Només colors web
+ Opacity Opacitat
+ Opacity & Mask Define Knockout Shape L’opacitat i la màscara defineixen la forma d’exclusió
+ Opacity Mask Màscara d’opacitat
+ Opacity Mask Info Informació de la màscara d’opacitat
+ Opacity Mask Options Opcions de la màscara d’opacitat
+ Opacity: Opacitat:
+ Opacity: 50% Multiply Opacitat: 50% Multiplicar
+ Opacity: Default Opacitat: per defecte
+ Opacity: {value} Opacitat: {value}
+ Opaque Opac
+ Open Obre
+ Open a document to edit its patterns. Obre un document per editar-ne els motius.
+ Open a document to navigate it. Obre un document per navegar-hi.
+ Open a document to preview its flattening. Obre un document per previsualitzar-ne l’aplanament.
+ Open a document to preview its pages Obre un document per previsualitzar-ne les pàgines
+ Open a document to see its artboards. Obre un document per veure’n els taulers.
+ Open a document to see its graphic styles. Obre un document per veure’n els estils gràfics.
+ Open a document to see its history. Obre un document per veure’n l’historial.
+ Open a document to see its swatches. Obre un document per veure’n les mostres.
+ Open Brush Library Obre la biblioteca de pinzells
+ Open Document Obre un document
+ Open Documents As Tabs Obre els documents com a pestanyes
+ Open Graphic Style Library Obre la biblioteca d’estils gràfics
+ Open Location after Export Obre la ubicació després d’exportar
+ Open password: Contrasenya d’obertura:
+ Open Paths Traçats oberts
+ Open Recent File 1 Obre el fitxer recent 1
+ Open Recent File 10 Obre el fitxer recent 2
+ Open Recent File 11 Obre el fitxer recent 3
+ Open Recent File 12 Obre el fitxer recent 4
+ Open Recent File 13 Obre el fitxer recent 5
+ Open Recent File 14 Obre el fitxer recent 6
+ Open Recent File 15 Obre el fitxer recent 7
+ Open Recent File 16 Obre el fitxer recent 8
+ Open Recent File 17 Obre el fitxer recent 9
+ Open Recent File 18 Obre el fitxer recent 10
+ Open Recent File 19 Obre el fitxer recent 11
+ Open Recent File 2 Obre el fitxer recent 12
+ Open Recent File 20 Obre el fitxer recent 13
+ Open Recent File 21 Obre el fitxer recent 14
+ Open Recent File 22 Obre el fitxer recent 15
+ Open Recent File 23 Obre el fitxer recent 16
+ Open Recent File 24 Obre el fitxer recent 17
+ Open Recent File 25 Obre el fitxer recent 18
+ Open Recent File 26 Obre el fitxer recent 19
+ Open Recent File 27 Obre el fitxer recent 20
+ Open Recent File 28 Obre el fitxer recent 21
+ Open Recent File 29 Obre el fitxer recent 22
+ Open Recent File 3 Obre el fitxer recent 23
+ Open Recent File 30 Obre el fitxer recent 24
+ Open Recent File 4 Obre el fitxer recent 25
+ Open Recent File 5 Obre el fitxer recent 26
+ Open Recent File 6 Obre el fitxer recent 27
+ Open Recent File 7 Obre el fitxer recent 28
+ Open Recent File 8 Obre el fitxer recent 29
+ Open Recent File 9 Obre el fitxer recent 30
+ Open Recent Files Obre fitxers recents
+ Open Swatch Library Obre la biblioteca de mostres
+ Open Symbol Library Obre la biblioteca de símbols
+ Open the URL in the web browser Obre l’URL al navegador web
+ Open this dialog with these settings next time Obre aquest quadre de diàleg amb aquesta configuració la propera vegada
+ Open this setting's help page Obre la pàgina d’ajuda d’aquest paràmetre
+ Opened with {} note(s): {} S’ha obert amb {} nota(es): {}
+ Opening it left out what VectorCraft can't read yet ({what}), so replacing it loses that for good. Save under another name to keep it. En obrir-lo s’ha omès el que VectorCraft encara no pot llegir ({what}), de manera que substituir-lo ho perd per sempre. Desa’l amb un altre nom per conservar-ho.
+ Opens files in other apps Obre fitxers en altres aplicacions
+ Opens network connections Obre connexions de xarxa
+ Open… Obre…
+ Optical Margin Alignment Alineació òptica de marges
+ Optimize for fast web view Optimitza per a la visualització web ràpida
+ Optimized Optimitzat
+ Options Opcions
+ Options for Selection… Opcions per a la selecció…
+ Options: Opcions:
+ Options… Opcions…
+ or more spaces with a tab o més espais amb un tabulador
+ Orange Taronja
+ Order: Ordre:
+ Ordinals Ordinals
+ Orientation Orientació
+ Orientation: Orientació:
+ Original Original
+ Original: click to restore Original: fes clic per restaurar
+ Other Altres
+ Other Layers Altres capes
+ Other Libraries Altres biblioteques
+ Other Library… Una altra biblioteca…
+ Other Script… Un altre script…
+ Out of Gamut Warning Avís fora de gama
+ Out of Web Color Warning Avís fora dels colors web
+ Out Tangent Handles Nanses tangents de sortida
+ Outer Corner Tile Mosaic de cantonada exterior
+ Outer Glow… Resplendor exterior…
+ Outline Contorn
+ Outline Object Contorneja l’objecte
+ Outline Others Contorneja els altres
+ Outline Stroke Contorneja el traç
+ Outline Text Contorneja el text
+ Outlined Strokes Traços contornejats
+ Outlined Text Text contornejat
+ Outlines Contorns
+ Outlines and Rules Contorns i regles
+ Outlines with Source Image Contorns amb la imatge d’origen
+ Output Sortida
+ Output All Blacks Accurately Genera tots els negres amb precisió
+ Output All Blacks as Rich Black Genera tots els negres com a negre ric
+ Output Black Negre de sortida
+ Output condition: Condició de sortida:
+ Output Intent Intenció de sortida
+ Output intent profile: Perfil d’intenció de sortida:
+ Output White Blanc de sortida
+ Output › Mode Sortida › Mode
+ Output: Sortida:
+ Outside Fora
+ Outside the document Fora del document
+ Oval Oval
+ Overlap Solapament
+ Overlap: Solapament:
+ Overlapping Se superposen
+ Overlay Superposició
+ Overlay Edge Superposa la vora
+ Overprint Sobrimpressió
+ Overprint and Transparency Flattener Aplanador de sobremipressió i transparència
+ Overprint and Transparency Flattener Options Opcions de l’aplanador de sobremipressió i transparència
+ Overprint Black… Sobrimpressió del negre…
+ Overprint Fill Sobrimpressió del farciment
+ Overprint Preview Previsualització de la sobremipressió
+ Overprint Preview (separations) Previsualització de la sobremipressió (separacions)
+ Overprint Stroke Sobrimpressió del traç
+ Overprint: Sobrimpressió:
+ Overprints: Sobrimpressions:
+ Override Action "Export" Commands Anul·la les ordres d’acció «Exporta»
+ Override Action "Open" Commands Anul·la les ordres d’acció «Obre»
+ Override Action "Save" Commands Anul·la les ordres d’acció «Desa»
+ Override Character Color Anul·la el color del caràcter
+ Overrides Anul·lacions
+ Package Empaqueta
+ Package collects a saved document with its linked files and fonts. L’empaquetatge recull un document desat amb els fitxers enllaçats i els tipus de lletra.
+ Package created Empaquetatge creat
+ Packaged {n} file(s) S’han empaquetat {n} fitxers
+ Packaged {n} file(s) in {folder} S’han empaquetat {n} fitxers a {folder}
+ Packaged {n} file(s) in {folder} {note} S’han empaquetat {n} fitxers a {folder} {note}
+ Packaged {n} file(s) {note} S’han empaquetat {n} fitxers {note}
+ Packaged {n} file(s){note} S’han empaquetat {n} fitxers{note}
+ Package… Empaqueta…
+ Page Pàgina
+ Page Cover 1640×624 Coberta de pàgina 1640×624
+ Page information Informació de la pàgina
+ Page Isolated Blending Fusió aïllada de pàgina
+ Page Knockout Group Grup d’exclusió de pàgina
+ Pages Pàgines
+ Paint Daubs Taques de pintura
+ Paint Daubs… Taques de pintura…
+ Paint Opacity: Opacitat de pintura:
+ Paint Stops At: La pintura s’atura a:
+ Paintbrush Pinzell
+ Paintbrush Tool Eina de pinzell
+ Palette Knife Espàtula
+ Palette Knife… Espàtula…
+ Palette: Paleta:
+ Panel menu Menú del panell
+ Panel Options… Opcions del panell…
+ Panels Panells
+ Panels Except Tools and Control Panells excepte eines i control
+ Paragraph Paràgraf
+ Paragraph Style Estil de paràgraf
+ Paragraph Style Options Opcions de l’estil de paràgraf
+ Paragraph Styles Estils de paràgraf
+ Paragraph Symbol Símbol de paràgraf
+ Part of ArtCraft. MIT OR Apache-2.0. Fonts: Source Sans 3, Inter, JetBrains Mono (OFL). Icons: Lucide (ISC) + VectorCraft. Forma part d’ArtCraft. MIT OR Apache-2.0. Tipus de lletra: Source Sans 3, Inter, JetBrains Mono (OFL). Icones: Lucide (ISC) + VectorCraft.
+ Part of ArtCraft. MIT OR Apache-2.0. Fonts: Source Sans 3, Inter, JetBrains Mono, Noto Sans SC (OFL). Icons: Lucide (ISC) + VectorCraft. Forma part d’ArtCraft. MIT OR Apache-2.0. Tipus de lletra: Source Sans 3, Inter, JetBrains Mono, Noto Sans SC (OFL). Icones: Lucide (ISC) + VectorCraft.
+ Password Contrasenya
+ Paste Enganxa
+ Paste Design Enganxa el disseny
+ Paste in Back Enganxa al darrere
+ Paste in Front Enganxa al davant
+ Paste in Place Enganxa al lloc
+ Paste Offset Desplaçament d’enganxament
+ Paste on All Artboards Enganxa a tots els taulers
+ Paste Remembers Layers Enganxa recorda les capes
+ Paste without Formatting Enganxa sense format
+ Pasted Enganxat
+ Pastels Pastels
+ Patchwork Patchwork
+ Patchwork… Patchwork…
+ Path Traçat
+ Path Eraser Esborrador de traçats
+ Path Eraser Tool Eina d’esborrador de traçats
+ Path Length Longitud del traçat
+ Path: Traçat:
+ Pathfinder Cercador de traçats
+ Pathfinder Options Opcions del cercador de traçats
+ Pathfinder Options… Opcions del cercador de traçats…
+ Pathfinders: Cercadors de traçats:
+ Paths Traçats
+ Paths: {paths} Anchors: {anchors} Colors: {colors} Traçats: {paths} Punts d’ancoratge: {anchors} Colors: {colors}
+ Pattern Motiu
+ Pattern Borders Vores de motiu
+ Pattern Brush Pinzell de motiu
+ Pattern Brush Options Opcions del pinzell de motiu
+ Pattern Editing Edició de motius
+ Pattern Options Opcions del motiu
+ Pattern options are available in pattern editing mode. Les opcions del motiu estan disponibles en el mode d’edició de motius.
+ Pattern Swatches Mostres de motius
+ Pattern Type Tipus de motiu
+ PDF PDF
+ PDF 1.3 files have no transparency: the preset flattens it. Els fitxers PDF 1.3 no tenen transparència: el preajust l’aplana.
+ PDF 1.7 PDF 1.7
+ PDF File Fitxer PDF
+ PDF Info Informació del PDF
+ PDF Preset Preajust de PDF
+ PDF Preset: Preajust de PDF:
+ PDF Presets Preajustos de PDF
+ PDF Presets… Preajustos de PDF…
+ PDF Print Impressió de PDF
+ PDF Settings Configuració del PDF
+ PDF-compatible Compatible amb PDF
+ PDF/A files carry their own output intent. Els fitxers PDF/A porten la seva pròpia intenció de sortida.
+ PDF/X-1a files are CMYK: every colour is converted to the destination (blank: the output intent's CMYK profile), untagged. Els fitxers PDF/X-1a són CMYK: tots els colors es converteixen al perfil de destinació (en blanc: el perfil CMYK de la intenció de sortida), sense etiquetar.
+ PDF/X-1a:2001 PDF/X-1a:2001
+ PDF/X-3:2002 PDF/X-3:2002
+ PDF/X-4:2010 PDF/X-4:2010
+ Pen Ploma
+ Pen Tool Eina de ploma
+ Pencil Llapis
+ Pencil Tool Eina de llapis
+ Pentagram Pentagrama
+ per slice per tall
+ Percent: Percentatge:
+ Perceptual Perceptual
+ Perceptual Scales Escales perceptuals
+ Performance Rendiment
+ Permissions Permisos
+ Permissions password: Contrasenya de permisos:
+ Persistent Persistent
+ Perspective Perspectiva
+ Perspective Distort Distorsió de perspectiva
+ Perspective Grid Quadrícula de perspectiva
+ Perspective Grid Options Opcions de la quadrícula de perspectiva
+ Perspective Grid Preset Preajust de quadrícula de perspectiva
+ Perspective Grid Presets Preajustos de quadrícula de perspectiva
+ Perspective grid presets Preajustos de quadrícula de perspectiva
+ Perspective Grid Presets… Preajustos de quadrícula de perspectiva…
+ Perspective Grid Settings Configuració de la quadrícula de perspectiva
+ Perspective Grid Tool Eina de quadrícula de perspectiva
+ Perspective Plane Options… Opcions del pla de perspectiva…
+ Perspective Selection Tool Eina de selecció de perspectiva
+ Phone 360×800 Telèfon 360×800
+ Phone 375×667 Telèfon 375×667
+ Phone 375×812 Telèfon 375×812
+ Phone 390×844 Telèfon 390×844
+ Phone 393×852 Telèfon 393×852
+ Phone 412×915 Telèfon 412×915
+ Phone 430×932 Telèfon 430×932
+ Photo Low Fidelity Foto de baixa fidelitat
+ Photocopy Fotocòpia
+ Photocopy… Fotocòpia…
+ Picas Piques
+ Pick Color From: Pren el color de:
+ Pie End Angle: Angle final del sector:
+ Pie Graph Tool Eina de gràfic de sectors
+ Pie Start Angle: Angle inicial del sector:
+ Pin Bar Position Posició de la barra de pins
+ Pink Rosa
+ Pixel Píxel
+ Pixel Preview Previsualització de píxels
+ Pixelate Pixel·la
+ Pixels Píxels
+ Place Col·loca
+ Place DXF Col·loca DXF
+ Place from Library Col·loca des de la biblioteca
+ Place onto a new locked, dimmed template layer below the current layer Col·loca en una capa de plantilla nova, blocada i atenuada, sota la capa actual
+ Place PDF Col·loca PDF
+ Place Symbol Instance Col·loca una instància de símbol
+ Place the pages with the placement again Torna a col·locar les pàgines amb la col·locació
+ Placed Document Document col·locat
+ Placed File Info Informació del fitxer col·locat
+ Placement Options Opcions de col·locació
+ Placement Options… Opcions de col·locació…
+ Placement: Col·locació:
+ Place… Col·loca…
+ Plaster Guix
+ Plaster… Guix…
+ Plastic Wrap Embolcall de plàstic
+ Plastic Wrap… Embolcall de plàstic…
+ Plates Planxes
+ Platform: Plataforma:
+ Play Current Selection Reprodueix la selecció actual
+ Play: Reprodueix:
+ Plug-in Info Informació del complement
+ Plug-ins Complements
+ Plug-ins & Scratch Disks Complements i discs d’intercanvi
+ Plug-in… Complement…
+ Plus Més
+ Point Sample Mostra de punt
+ Point Text Objects Objectes de text de punt
+ Pointillize Puntillisme
+ Pointillize… Puntillisme…
+ Points Punts
+ Points: Punts:
+ Points: clicks add free points Punts: els clics afegeixen punts lliures
+ Polar Grid Quadrícula polar
+ Polar Grid Tool Eina de quadrícula polar
+ Polar Grid Tool Options Opcions de l’eina de quadrícula polar
+ Polygon Polígon
+ Polygon Properties: Propietats del polígon:
+ Polygon Tool Eina de polígon
+ Portrait Vertical
+ Portrait (flipped) Vertical (invertit)
+ Portuguese Portuguès
+ Position Posició
+ Position Panel Above Text Col·loca el panell a sobre del text
+ Positive Positiu
+ Postcard Postal
+ Poster 18 × 24 in Pòster 18 × 24 in
+ Poster 24 × 36 in Pòster 24 × 36 in
+ Poster Edges Vores de pòster
+ Poster Edges… Vores de pòster…
+ Posterization Posterització
+ PostScript: PostScript:
+ Power Saving (integrated) Estalvi d’energia (integrat)
+ PPI PPI
+ Precise Cursors Cursors precisos
+ Precision Precisió
+ Precision: Precisió:
+ Preferences Preferències
+ Preferences… Preferències…
+ Prefix: Prefix:
+ Presentation Attributes Atributs de presentació
+ Presentation Mode Mode de presentació
+ Preserve Conserva
+ Preserve Alpha Transparency Conserva la transparència alfa
+ Preserve Appearance Conserva l’aparença
+ Preserve Appearance and Overprints Conserva l’aparença i les sobrempressions
+ Preserve CMYK Numbers Conserva els valors CMYK
+ Preserve Editing Capabilities Conserva les capacitats d’edició
+ Preserve editing capabilities Conserva les capacitats d’edició
+ Preserve Lightness Conserva la lluminositat
+ Preserve Overprints and Spot Colors Conserva les sobrempressions i els colors directes
+ Preserve Paths Conserva els traçats
+ Preserve Shape Using: Conserva la forma amb:
+ Preserve Spot Colors Conserva els colors directes
+ Preserve Text Appearance Conserva l’aparença del text
+ Preserve Text Editability Conserva l’editabilitat del text
+ Preserve Tints Conserva els tos
+ Preserve: Conserva:
+ PRESET DETAILS DETALLS DEL PREAJUST
+ Preset Name Nom del preajust
+ Preset name: Nom del preajust:
+ Preset {number} Preajust {number}
+ Preset {} Preajust {}
+ Preset: Preajust:
+ Presets Preajustos
+ Presets you save with the Save Preset button appear here. Els preajustos que deseu amb el botó Desa el preajust apareixen aquí.
+ Presets: Preajustos:
+ Press Premeu
+ Press a key… Premeu una tecla…
+ Press and hold to view the source image Premeu i manteniu premut per veure la imatge d’origen.
+ Press keys… Premeu les tecles…
+ Press Quality Qualitat d’impressió
+ Pressure Pressió
+ Preview Previsualització
+ Preview (1 inch on the page) Previsualització (1 polzada a la pàgina)
+ Preview All Layers Previsualitza totes les capes
+ Preview in Browser Previsualitza al navegador
+ Preview in Browser needs the desktop app (the web downloads files instead) La previsualització al navegador necessita l’aplicació d’escriptori (al web, en canvi, es descarreguen els fitxers)
+ Preview Mode Mode de previsualització
+ Preview the document as it is now Previsualitza el document tal com és ara
+ Previous Anterior
+ Previous Artboard Tauler anterior
+ Previous Data Set Conjunt de dades anterior
+ Previous Library Biblioteca anterior
+ Previous Page Pàgina anterior
+ Previous page Pàgina anterior
+ Primary Primari
+ Print Imprimeix
+ Print & Proof Impressió i prova
+ Print as Bitmap Imprimeix com a mapa de bits
+ Print Layers: Capes d’impressió:
+ Print Preset Preajust d’impressió
+ Print Preset: Preajust d’impressió:
+ Print Presets Preajustos d’impressió
+ Print presets Preajustos d’impressió
+ Print Presets… Preajustos d’impressió…
+ Print Preview Previsualització d’impressió
+ Print Setup Configuració d’impressió
+ Print Tiling Mosaic d’impressió
+ Print Tiling Pages Pàgines del mosaic d’impressió
+ Print Tiling Tool Eina de mosaic d’impressió
+ Printer Impressora
+ Printer mark type: Tipus de marca d’impressora:
+ Printer profile: Perfil de la impressora:
+ Printer Setup… Configuració de la impressora…
+ Printer: Impressora:
+ Printers Impressores
+ Printing & Proofing Impressió i prova
+ Printing / Exporting Impressió / exportació
+ Printing allowed: Impressió permesa:
+ Print… Imprimeix…
+ Problems Problemes
+ Process Color Color de procés
+ Profile Cover 1500×500 Coberta de perfil 1500×500
+ Profile inclusion: Inclusió del perfil:
+ Profile: Perfil:
+ Progressive Progressiu
+ Projecting Cap Extrem projectat
+ Proof Colors Colors de prova
+ Proof Setup Configuració de prova
+ Properties Propietats
+ Proportional Metrics Mètriques proporcionals
+ Proportional Oldstyle Oldstyle proporcional
+ PRs PRs
+ Public Domain Domini públic
+ Pucker Arrufament
+ Pucker & Bloat… Arruga i infla…
+ Pucker Tool Eina d’arrugament
+ Punctuation Puntuació
+ Punctuation Space Espai de puntuació
+ Puppet Warp Deformació de titella
+ Puppet Warp Pins Pins de deformació de titella
+ Puppet Warp Tool Eina de deformació de titella
+ Purple Porpra
+ Put back in the toolbar Torna a posar a la barra d’eines
+ Quality Qualitat
+ Quality {quality} Qualitat {quality}
+ Quality: Qualitat:
+ Quarter Space Espai de quart
+ Quick Actions Accions ràpides
+ Quickly start a new file Comença ràpidament un fitxer nou
+ Quit VectorCraft Surt de VectorCraft
+ Radar Graph Tool Eina de gràfic de radar
+ Radial Radial
+ Radial Blur Desenfocament radial
+ Radial Blur… Desenfocament radial…
+ Radial Dividers: Divisors radials:
+ Radial Glows Resplendors radials
+ Radial Gradient Degradat radial
+ Radial Repeat Repetició radial
+ Radius Radi
+ Radius 1 Radi 1
+ Radius 2 Radi 2
+ Radius1 Radi1
+ Radius2 Radi2
+ Radius: Radi:
+ Rainbow Arc de Sant Martí
+ Ramp: Rampa:
+ Random Aleatori
+ Randomize Colors Aleatoritza els colors
+ Randomly change color order Canvia l’ordre dels colors aleatòriament
+ Randomly change saturation and brightness Canvia la saturació i la brillantor aleatòriament
+ Range: Interval:
+ Raster Effects Efectes de ràster
+ Raster File Format: Format de fitxer de ràster:
+ Raster Sample Size: Mida de mostra de ràster:
+ Raster/Vector Balance: Equilibri ràster/vector:
+ Rasterize Rasteritza
+ Rasterize Unsupported Art Rasteritza l’art no compatible
+ Rasterized Complex Regions Regions complexes rasteritzades
+ Rasterize… Rasteritza…
+ Rasters Ràsters
+ Rating: Valoració:
+ Ratio Proporció
+ Rays Raigs
+ Read Shortcut Set File Llegeix el fitxer de conjunt de drets de teclat
+ Reads or sets environment variables Llegeix o defineix variables d’entorn
+ Ready A punt
+ Real name Nom real
+ Real World: Món real:
+ Real-time Drawing and Editing Dibuix i edició en temps real
+ Rearrange All Reorganitza-ho tot
+ Rearrange All Artboards Reorganitza tots els taulers
+ Rearrange All Artboards… Reorganitza tots els taulers…
+ Rearrange Artboards Reorganitza els taulers
+ Recall Selection Recupera la selecció
+ RECENT RECENTS
+ Recent Recents
+ RECENT (1) RECENTS (1)
+ Recent Colors Colors recents
+ Recent File Fitxer recent
+ Recent Files Fitxers recents
+ Recent Font Tipus de lletra recent
+ Recent Font 1 Tipus de lletra recent 1
+ Recent Font 10 Tipus de lletra recent 10
+ Recent Font 11 Tipus de lletra recent 11
+ Recent Font 12 Tipus de lletra recent 12
+ Recent Font 13 Tipus de lletra recent 13
+ Recent Font 14 Tipus de lletra recent 14
+ Recent Font 15 Tipus de lletra recent 15
+ Recent Font 2 Tipus de lletra recent 2
+ Recent Font 3 Tipus de lletra recent 3
+ Recent Font 4 Tipus de lletra recent 4
+ Recent Font 5 Tipus de lletra recent 5
+ Recent Font 6 Tipus de lletra recent 6
+ Recent Font 7 Tipus de lletra recent 7
+ Recent Font 8 Tipus de lletra recent 8
+ Recent Font 9 Tipus de lletra recent 9
+ Recent Fonts Tipus de lletra recents
+ Recent URLs URL recents
+ Recolor Recoloreix
+ Recolor Artwork Recoloreix la il·lustració
+ Recolor Artwork… Recoloreix la il·lustració…
+ Recolor this row Recoloreix aquesta fila
+ Recolor with Preset Recoloreix amb un preajust
+ Recover Documents Recupera els documents
+ Recovery Data Dades de recuperació
+ Rectangle Rectangle
+ Rectangle Cut Tall rectangular
+ Rectangle Cut Tool Eina de tall rectangular
+ Rectangle Properties: Propietats del rectangle:
+ Rectangle Tool Eina de rectangle
+ Rectangle: Sunshine Rectangle: Sol
+ Rectangle… Rectangle…
+ Rectangular Grid Quadrícula rectangular
+ Rectangular Grid Tool Eina de quadrícula rectangular
+ Rectangular Grid Tool Options Opcions de l’eina de quadrícula rectangular
+ Red Vermell
+ Redefine Character Style Redefineix l’estil de caràcter
+ Redefine Graphic Style Redefineix l’estil gràfic
+ Redefine Graphic Style “{name}” Redefineix l’estil gràfic “{name}”
+ Redefine Paragraph Style Redefineix l’estil de paràgraf
+ Redefine Symbol Redefineix el símbol
+ Redefine {kind} Style Redefineix l’estil de {kind}
+ Redefine {name} Redefineix {name}
+ Redo Refés
+ Redo {name} Refés {name}
+ Redo {} Refés {}
+ Reduce Colors Redueix els colors
+ Reduce to Basic Appearance Redueix a l’aparença bàsica
+ Reduction: Reducció:
+ Reference Point Punt de referència
+ Reflect Reflexa
+ Reflect Horizontal Reflexa horitzontalment
+ Reflect Tool Eina de reflexió
+ Reflect X Reflexa X
+ Reflect Y Reflexa Y
+ Reflect… Reflexa…
+ Refresh Actualitza
+ Refresh Font List Actualitza la llista de tipus de lletra
+ Registered Trademark Symbol Símbol de marca registrada
+ Registration marks Marques de registre
+ Registration: Registre:
+ Registry name: Nom del registre:
+ Regular Normal
+ Regular expression not closed Expressió regular no tancada
+ Relative Relatiu
+ Relative Colorimetric Colorimètric relatiu
+ Release Allibera
+ Release Blend Allibera la fusió
+ Release Clipping Mask Allibera la màscara de retall
+ Release Compound Path Allibera el traçat compost
+ Release Compound Shape Allibera la forma composta
+ Release Envelope Allibera l’embolcall
+ Release Guides Allibera les guies
+ Release Image Trace Allibera el traçat d’imatge
+ Release Intertwine Allibera l’entrelligament
+ Release Live Paint Allibera la pintura interactiva
+ Release Opacity Mask Allibera la màscara d’opacitat
+ Release Repeat Allibera la repetició
+ Release Selection Allibera la selecció
+ Release Shaper Group Allibera el grup del Shaper
+ Release Slice Allibera el tall
+ Release Text Wrap Allibera l’ajustament de text
+ Release Threaded Text Allibera el text enllaçat
+ Release to Layers (Build) Allibera a les capes (acumulació)
+ Release to Layers (Sequence) Allibera a les capes (seqüència)
+ Release with Perspective Allibera amb perspectiva
+ Relief Relleu
+ Relink Torna a enllaçar
+ Relink Linked Files to the Document Torna a enllaçar els fitxers enllaçats al document
+ Relink to Folder… Torna a enllaçar a una carpeta…
+ Relinked {n} image(s) S’han tornat a enllaçar {n} imatge/imatges
+ Relinked {n} image(s); not in that folder: {} S’han tornat a enllaçar {n} imatge/imatges; no es troben en aquesta carpeta: {}
+ Relinked {} image(s) S’han tornat a enllaçar {} imatge/imatges
+ Relink… Torna a enllaçar…
+ Reload Plug-ins Recarrega els complements
+ Remember Import Matches Recorda les coincidències d’importació
+ Remember My Choices Recorda les meves eleccions
+ Remove Elimina
+ Remove Anchor Points Elimina els punts d’ancoratge
+ Remove Asset Elimina el recurs
+ Remove blank lines between paragraphs Elimina les línies en blanc entre paràgrafs
+ Remove Brush Stroke Elimina el traç del pinzell
+ Remove Color Profile… Elimina el perfil de color…
+ Remove Effect Elimina l’efecte
+ Remove Guide Elimina la guia
+ Remove Item Elimina l’element
+ Remove JavaScript File Elimina el fitxer JavaScript
+ Remove Plug-in Elimina el complement
+ Remove Redundant Points Elimina els punts redundants
+ Remove Selected Assets Elimina els recursos seleccionats
+ Remove Selected Entry Elimina l’entrada seleccionada
+ Remove the shortcut Elimina el dret de teclat
+ Remove Threading Elimina l’enllaçament
+ Remove “{keyword}” Elimina “{keyword}”
+ Rename Canvia el nom
+ Rename Asset Canvia el nom del recurs
+ Rename Character Style Canvia el nom de l’estil de caràcter
+ Rename Data Set Canvia el nom del conjunt de dades
+ Rename Data Set… Canvia el nom del conjunt de dades…
+ Rename Design Canvia el nom del disseny
+ Rename Graphic Style Canvia el nom de l’estil gràfic
+ Rename Group… Canvia el nom del grup…
+ Rename Library Canvia el nom de la biblioteca
+ Rename Library Group Canvia el nom del grup de la biblioteca
+ Rename Library… Canvia el nom de la biblioteca…
+ Rename Paragraph Style Canvia el nom de l’estil de paràgraf
+ Rename Preset Canvia el nom del preajust
+ Rename Style Canvia el nom de l’estil
+ Rename Variable Canvia el nom de la variable
+ Rename View Canvia el nom de la vista
+ Rename Workspace Canvia el nom de l’espai de treball
+ Rename… Canvia el nom…
+ Render Threads (-1 = Automatic) Fils de renderització (-1 = automàtic)
+ Rendering intent: Intenció de renderització:
+ Reorder Reordena
+ Reorder Appearance Reordena l’aparença
+ Reorder Appearance Item Reordena l’element d’aparença
+ Reorder Artboards Reordena els taulers
+ Repeat Repeteix
+ Repeat Objects Repeteix els objectes
+ Repeat Options Opcions de repetició
+ Repeat Pathfinder Repeteix el Cercador de traçats
+ Repeat Tab Repeteix el tabulador
+ Repeat {name} Repeteix {name}
+ Repeating Repetició
+ Replace Reemplaça
+ Replace Font Reemplaça el tipus de lletra
+ Replace it with another file, or ignore it: its images keep showing the preview saved with the document. Reemplaça’l per un altre fitxer o ignora’l: les seves imatges continuaran mostrant la previsualització desada amb el document.
+ Replace Spine Reemplaça l’espina
+ Replace Symbol Reemplaça el símbol
+ Replace With Font Reemplaça per un tipus de lletra
+ Replace “{name}”, the file this document was opened from? Voleu reemplaçar “{name}”, el fitxer amb què es va obrir aquest document?
+ Replaces the saved preset of that name. Reemplaça el preajust desat amb aquest nom.
+ Replace… Reemplaça…
+ Report copied Informe copiat
+ Require a password to open the document Demana una contrasenya per obrir el document
+ Reselect Torna a seleccionar
+ Reset Restableix
+ Reset all Restableix-ho tot
+ Reset all 3D settings to their defaults. Restableix tots els paràmetres 3D als valors predeterminats.
+ Reset all Revolve settings to their defaults. Restableix tots els paràmetres de revolució als valors predeterminats.
+ Reset Automation Restableix Automation
+ Reset Bar Position Restableix la posició de la barra
+ Reset Bounding Box Restableix el quadre delimitador
+ Reset Envelope Mesh Restableix la malla de l’embolcall
+ Reset Envelope Shape Restableix la forma de l’embolcall
+ Reset Essentials Restableix Essentials
+ Reset Essentials Classic Restableix Essentials Classic
+ Reset Horizontal Scale Restableix l’escala horitzontal
+ Reset Keyboard Shortcuts Restableix els drets de teclat
+ Reset Layout Restableix la disposició
+ Reset OpenType Features Restableix les funcions OpenType
+ Reset Painting Restableix Pintura
+ Reset Panel Restableix el panell
+ Reset Preferences Restableix les preferències
+ Reset Printing and Proofing Restableix impressió i prova
+ Reset Profiles Restableix els perfils
+ Reset Rotate View Restableix la rotació de la vista
+ Reset Ruler Origin Restableix l’origen de les regles
+ Reset the rows to the artwork's colors Restableix les files als colors de l’obra
+ Reset to Default Restableix el valor predeterminat
+ Reset to default Restableix el valor predeterminat
+ Reset to Defaults Restableix els valors predeterminats
+ Reset to White, Black Restableix a Blanc, Negre
+ Reset Tracing Restableix la traça
+ Reset Tracking and Kerning Restableix espaiat i kerning
+ Reset Typography Restableix la tipografia
+ Reset Web Restableix Web
+ Reset with Mesh Restableix amb malla
+ Reset with Mesh… Restableix amb malla…
+ Reset with Warp Restableix amb deformació
+ Reset with Warp… Restableix amb deformació…
+ Reset {name} Restableix {name}
+ Reset {} Restableix {}
+ Reshape Remodela
+ Reshape Segment Remodela el segment
+ Reshape Spine Remodela l’espina
+ Reshape Spine Segment Remodela el segment de l’espina
+ Reshape Tool Eina de remodelació
+ Reshape Type Area Remodela l’àrea de text
+ Resize Redimensiona
+ Resize Artboard Redimensiona el tauler
+ Resize panel window Redimensiona la finestra del panell
+ Resize panels Redimensiona els panells
+ Resize Slice Redimensiona el tall
+ Resize Type Area Redimensiona l’àrea de text
+ Resolution: Resolució:
+ Responsive Adaptatiu
+ Restore Restaura
+ Restore every preference to its default (applied on OK) Restaura cada preferència al seu valor predeterminat (s’aplica en prémer D’acord)
+ Restore Recovered Documents Restaura els documents recuperats
+ Restored documents open unsaved: save them to keep them. Els documents restaurats s’obren sense desar: desa’ls per conservar-los.
+ Restored {} recovered document(s): save them to keep them S’han restaurat {} document(s) recuperat(s): desa’ls per conservar-los
+ Restrict printing, editing and other tasks Restringeix la impressió, l’edició i altres tasques
+ Restricted Colors Colors restringits
+ Result(s): {count} Resultat(s): {count}
+ Reticulation Retículació
+ Reticulation… Retículació…
+ Reverse Front to Back Inverteix de davant a darrere
+ Reverse Gradient Inverteix el degradat
+ Reverse Order Inverteix l’ordre
+ Reverse Path Direction Inverteix la direcció del traçat
+ Reverse Path Direction Off Inverteix la direcció del traçat: desactivat
+ Reverse Path Direction On Inverteix la direcció del traçat: activat
+ Reverse Spine Inverteix l’espina
+ Reverse the order Inverteix l’ordre
+ Reverse Traps Inverteix les trampes
+ Reverse Triangle Inverteix el triangle
+ Revert Reverteix
+ Revert to the saved version of “{name}”? Voleu revertir a la versió desada de “{name}”?
+ Revolve angle Angle de revolució
+ Revolve… Revoluciona…
+ RGB RGB
+ RGB Color Color RGB
+ RGB: RGB:
+ Ridges per segment: Crestes per segment:
+ Right Dreta
+ Right Complement Complement dret
+ Right Diagonal Diagonal dreta
+ Right Grid: Quadrícula dreta:
+ Right in Front Dreta al davant
+ Right Indent Sagnia dreta
+ Right Plane Pla dret
+ Right to Left De dreta a esquerra
+ Right-click an item to move it into this group. Fes clic amb el botó dret a un element per moure’l a aquest grup.
+ Right-Justified Tab Tabulació justificada a la dreta
+ Right-to-Left Paragraph Direction Direcció del paràgraf de dreta a esquerra
+ Right: Dreta:
+ Rings Anells
+ Ripple Magnitude Magnitud de l’ona
+ Ripple Size Mida de l’ona
+ Rise… Eleva…
+ Roman Romà
+ Roman Baseline Línia de base romana
+ Roman Hanging Punctuation Puntuació penjant romana
+ Rotate Gira
+ Rotate 90° CW Gira 90° en sentit horari
+ Rotate Tool Eina de gir
+ Rotate View Gira la vista
+ Rotate View to Selection Gira la vista fins a la selecció
+ Rotate View Tool Eina de girar la vista
+ Rotate… Gira…
+ Rotation Rotació
+ Rotation relative to: Rotació relativa a:
+ Rotation X Rotació X
+ Rotation Y Rotació Y
+ Rotation Z Rotació Z
+ Rotation: Rotació:
+ Rough Pastels Pastels aspres
+ Rough Pastels… Pastels aspres…
+ Roughen… Asperitza…
+ Round Arrodonit
+ Round Angle Angle arrodonit
+ Round Blunt Rodó rom
+ Round Cap Extrem arrodonit
+ Round Corners… Arrodoneix les cantonades…
+ Round Curve Corba arrodonida
+ Round Fan Ventall arrodonit
+ Round Join Unió arrodonida
+ Round Point Punta arrodonida
+ Rounded Arrodonit
+ Rounded Rectangle Rectangle arrodonit
+ Rounded Rectangle Tool Eina de rectangle arrodonit
+ Rounded Rectangle… Rectangle arrodonit…
+ Roundness: Arrodoniment:
+ Row Size: Mida de la fila:
+ Rows: Files:
+ Ruby Rubí
+ Ruby… Rubí…
+ Rule: Regla:
+ Ruler Origin Origen de les regles
+ Rulers Regles
+ Rulers & Grids Regles i quadrícules
+ Run Length Longitud del recorregut
+ Run Plug-in Executa el complement
+ Runs code the checker can't read Executa codi que el verificador no pot llegir
+ Same Igual
+ Same As Source Igual que l’origen
+ Same file Mateix fitxer
+ Same item as a later row Mateix element que una fila posterior
+ Same size Mateixa mida
+ Sample Color Pren el color
+ Sample Color from Screen Pren el color de la pantalla
+ Sandstone Gres
+ Sans Serif / Gothic Sense serif / gòtica
+ Saturate Satura
+ Saturate… Satura…
+ Saturation Saturació
+ Save Desa
+ Save a Copy Desa una còpia
+ Save a Copy… Desa una còpia…
+ Save and Close Desa i tanca
+ Save As Desa com a
+ Save as New Preset… Desa com a preajust nou…
+ Save as PDF… Desa com a PDF…
+ Save as preset: Desa com a preajust:
+ Save as Template Desa com a plantilla
+ Save as Template… Desa com a plantilla…
+ Save As… Desa com a…
+ Save Brush Library Desa la biblioteca de pinzells
+ Save Brush Library… Desa la biblioteca de pinzells…
+ Save Brushes… Desa els pinzells…
+ Save changes to {name} Desa els canvis a {name}
+ Save color group to Swatch panel Desa el grup de colors al panell de mostres
+ Save Colors as Swatches Desa els colors com a mostres
+ Save Document Desa el document
+ Save Document Info… Desa la informació del document…
+ Save each artboard to a separate file Desa cada tauler en un fitxer separat
+ Save Export Preset Desa el preajust d’exportació
+ Save for Office Documents Desa per a documents d’Office
+ Save for Office Documents… Desa per a documents d’Office…
+ Save for Web Desa per a web
+ Save for Web (Legacy)… Desa per a web (versió anterior)…
+ Save for Web Presets Preajustos per a web
+ Save for Web Preview Previsualització per a web
+ Save for Web Settings Configuració per a web
+ Save Graphic Style Library Desa la biblioteca d’estils gràfics
+ Save Graphic Style Library… Desa la biblioteca d’estils gràfics…
+ Save Grid as Preset Desa la quadrícula com a preajust
+ Save Grid as Preset… Desa la quadrícula com a preajust…
+ Save Image Trace Preset Desa el preajust de traçat d’imatge
+ Save PDF Desa el PDF
+ Save PDF Dialog Diàleg Desa el PDF
+ Save PDF Preset Desa el preajust de PDF
+ Save Perspective Grid Preset Desa el preajust de quadrícula en perspectiva
+ Save Preset Desa el preajust
+ Save Preset… Desa el preajust…
+ Save Print Preset Desa el preajust d’impressió
+ Save Recovery Data Desa les dades de recuperació
+ Save Save for Web Preset Desa el preajust Desa per a web
+ Save selected colors as swatches Desa els colors seleccionats com a mostres
+ Save Selection Desa la selecció
+ Save Selection… Desa la selecció…
+ Save Swatch Library Desa la biblioteca de mostres
+ Save Swatch Library… Desa la biblioteca de mostres…
+ Save Symbol Library Desa la biblioteca de símbols
+ Save Symbol Library… Desa la biblioteca de símbols…
+ Save Symbols… Desa els símbols…
+ Save the current layout under this name Desa la disposició actual amb aquest nom
+ Save the document first? Voleu desar primer el document?
+ Save the selected preset to a file Desa el preajust seleccionat en un fitxer
+ Save the settings as a preset Desa la configuració com a preajust
+ Save Theme Desa el tema
+ Save theme to My Themes Desa el tema a Els meus temes
+ Save these settings as a preset Desa aquesta configuració com a preajust
+ Save these settings as a print preset Desa aquesta configuració com a preajust d’impressió
+ Save to Swatches Desa a les mostres
+ Save To: Desa a:
+ Save Transparency Flattener Preset Desa el preajust d’aplanador de transparència
+ Save Transparency Flattener Preset… Desa el preajust d’aplanador de transparència…
+ SAVED DESAT
+ Saved Desat
+ Saved recovery data for {title} S’han desat les dades de recuperació de {title}
+ Saved Selection 1 Selecció desada 1
+ Saved Selection 10 Selecció desada 2
+ Saved Selection 11 Selecció desada 3
+ Saved Selection 12 Selecció desada 4
+ Saved Selection 13 Selecció desada 5
+ Saved Selection 14 Selecció desada 6
+ Saved Selection 15 Selecció desada 7
+ Saved Selection 16 Selecció desada 8
+ Saved Selection 17 Selecció desada 9
+ Saved Selection 18 Selecció desada 10
+ Saved Selection 19 Selecció desada 11
+ Saved Selection 2 Selecció desada 12
+ Saved Selection 20 Selecció desada 13
+ Saved Selection 21 Selecció desada 14
+ Saved Selection 22 Selecció desada 15
+ Saved Selection 23 Selecció desada 16
+ Saved Selection 24 Selecció desada 17
+ Saved Selection 25 Selecció desada 18
+ Saved Selection 3 Selecció desada 19
+ Saved Selection 4 Selecció desada 20
+ Saved Selection 5 Selecció desada 21
+ Saved Selection 6 Selecció desada 22
+ Saved Selection 7 Selecció desada 23
+ Saved Selection 8 Selecció desada 24
+ Saved Selection 9 Selecció desada 25
+ Saved Selections Seleccions desades
+ Saved to User Defined: {} Desat a Definit per l’usuari: {}
+ Saved View 1 Vista desada 1
+ Saved View 10 Vista desada 2
+ Saved View 11 Vista desada 3
+ Saved View 12 Vista desada 4
+ Saved View 13 Vista desada 5
+ Saved View 14 Vista desada 6
+ Saved View 15 Vista desada 7
+ Saved View 16 Vista desada 8
+ Saved View 17 Vista desada 9
+ Saved View 18 Vista desada 10
+ Saved View 19 Vista desada 19
+ Saved View 2 Vista desada 2
+ Saved View 20 Vista desada 20
+ Saved View 21 Vista desada 21
+ Saved View 22 Vista desada 22
+ Saved View 23 Vista desada 23
+ Saved View 24 Vista desada 24
+ Saved View 25 Vista desada 25
+ Saved View 3 Vista desada 3
+ Saved View 4 Vista desada 4
+ Saved View 5 Vista desada 5
+ Saved View 6 Vista desada 6
+ Saved View 7 Vista desada 7
+ Saved View 8 Vista desada 8
+ Saved View 9 Vista desada 9
+ Saved Views Vistes desades
+ Saved {n} files beside {path} S’han desat {n} fitxers al costat de {path}
+ Saved {path} S’ha desat {path}
+ Saved {path} with {} note(s): {first} S’ha desat {path} amb {} nota(es): {first}
+ Saves the current bars, toolbar and panel layout. Desa la disposició actual de barres, barra d’eines i panells.
+ Save… Desa…
+ Saving Desant
+ Saving Poster.vectorcraft Desant Poster.vectorcraft
+ Saving recovery data for {} Desant les dades de recuperació de {}
+ Saving {} Desant {}
+ Scale Escala
+ Scale Artwork with Artboard Escala la il·lustració amb el tauler
+ Scale Corners Escala les cantonades
+ Scale Cursor Proportional to UI Escala el cursor proporcionalment a la interfície
+ Scale Design Escala el disseny
+ Scale in Perspective Escala en perspectiva
+ Scale Lineweights Escala els gruixos de línia
+ Scale Presets Escala els preajustos
+ Scale Proportionately Escala proporcionalment
+ Scale Strokes & Effects Escala els traços i els efectes
+ Scale Text Attributes Escala els atributs del text
+ Scale Tints Escala els tos
+ Scale to Fit Artboard Escala per ajustar al tauler
+ Scale Tool Eina d’escala
+ Scale X Escala X
+ Scale X: Escala X:
+ Scale Y Escala Y
+ Scale Y: Escala Y:
+ Scale: Escala:
+ Scale… Escala…
+ Scaling Escalat
+ Scaling: Escalat:
+ Scallop Festonat
+ Scallop Tool Eina de festonat
+ Scans: Escanejos:
+ Scatter Dispersió
+ Scatter Brush Pinzell de dispersió
+ Scatter Brush Options Opcions del pinzell de dispersió
+ Scatter Graph Tool Eina de gràfic de dispersió
+ Scatter Shapes Formes de dispersió
+ Scatter: Dispersió:
+ Scissors Tisores
+ Scissors Tool Eina de tisores
+ Scratch Disks Discs d’intercanvi
+ Screen Pantalla
+ Screen (72 ppi) Pantalla (72 ppi)
+ Screen Mode Mode de pantalla
+ Screen Mode Controls Controls del mode de pantalla
+ Screens Pantalles
+ Scribble… Garabateig…
+ Script / Brush Cal·ligràfica / Pinzell
+ Scripts Scripts
+ Scrub Numeric Fields by Dragging Canvia els camps numèrics arrossegant
+ Search Cerca
+ Search All Cerca a tot
+ Search commands and tools Cerca ordres i eines
+ Search commands and tools… Cerca ordres i eines…
+ Search Commands… Cerca ordres…
+ Search Fonts Folder Cerca a la carpeta de tipus de lletra
+ Searching… Cercant…
+ Secondary Secundari
+ Section Symbol Símbol de secció
+ Security Seguretat
+ Segments Segments
+ Select Selecciona
+ Select a text object Selecciona un objecte de text
+ Select a text object to edit its character attributes. Selecciona un objecte de text per editar-ne els atributs de caràcter.
+ Select a text object to edit its paragraph attributes. Selecciona un objecte de text per editar-ne els atributs de paràgraf.
+ Select a text object to set its tab stops. Selecciona un objecte de text per definir-ne les tabulacions.
+ Select All Selecciona-ho tot
+ Select All Art on Layer Selecciona tota la il·lustració de la capa
+ Select All Assets Selecciona tots els recursos
+ Select All Bound Objects Selecciona tots els objectes vinculats
+ Select All Instances Selecciona totes les instàncies
+ Select All Pins Selecciona tots els pins
+ Select All Unused Selecciona tots els no utilitzats
+ Select an image to see its Link Info. Selecciona una imatge per veure’n la informació de l’enllaç.
+ Select an image to trace Selecciona una imatge per traçar-la
+ Select Anchors Selecciona punts d’ancoratge
+ Select Appearance Item Selecciona un element d’aparença
+ Select Art Selecciona la il·lustració
+ Select art and choose Object › Pattern › Make. Selecciona la il·lustració i tria Objecte › Motiu › Crea.
+ Select art and click New Symbol to make one. Selecciona la il·lustració i fes clic a Símbol nou per crear-ne un.
+ Select art and use New Brush to make one. Selecciona la il·lustració i utilitza Pinzell nou per crear-ne un.
+ Select art to make a scatter, art or pattern brush. Selecciona la il·lustració per crear un pinzell de dispersió, artístic o de motiu.
+ Select artwork to apply effects Selecciona la il·lustració per aplicar-hi efectes
+ Select Bound Object Selecciona l’objecte vinculat
+ Select by Color Selecciona per color
+ Select Data Set Selecciona el conjunt de dades
+ Select Fills Selecciona els farciments
+ Select Freeform Point Selecciona el punt de forma lliure
+ Select Gradient Stop Selecciona una parada de degradat
+ Select Guides Selecciona les guies
+ Select Objects Selecciona objectes
+ Select objects to see their CSS, or Generate CSS for the whole document. Selecciona objectes per veure’n el CSS o genera CSS per a tot el document.
+ Select Same Tint % Selecciona el mateix % de to
+ Select Segments Selecciona segments
+ Select Shaper Face Selecciona una cara del Shaper
+ Select Slices Selecciona els talls
+ Select Strokes Selecciona els traços
+ Select styled art and click New Graphic Style. Selecciona la il·lustració amb estil i fes clic a Estil gràfic nou.
+ Select text Selecciona text
+ Select Text by Font Selecciona text per tipus de lletra
+ Select text or click into text with the Type tool to insert glyphs Selecciona text o fes clic dins del text amb l’eina de text per inserir glifs
+ Select text to set its OpenType features. Selecciona text per definir-ne les funcions OpenType.
+ Select the art (and, on top of it, the mask object) Selecciona la il·lustració (i, a sobre, l’objecte de màscara)
+ Select Tool Eina de selecció
+ Select two or more objects, or a group Selecciona dos objectes o més, o un grup
+ Select Unused Selecciona els no utilitzats
+ Select: Selecciona:
+ Selected Artwork Il·lustració seleccionada
+ Selected Brushes Only Només els pinzells seleccionats
+ Selected Slices Talls seleccionats
+ Selected Styles Only Només els estils seleccionats
+ Selected Styles Only (0) Només els estils seleccionats (0)
+ Selected Swatches Mostres seleccionades
+ Selected Swatches Only Només les mostres seleccionades
+ Selected Swatches Only (0) Només les mostres seleccionades (0)
+ Selected Symbols Only Només els símbols seleccionats
+ Selection Selecció
+ Selection & Anchor Display Selecció i visualització d’ancoratges
+ Selection Only Només la selecció
+ Selection Tool Eina de selecció
+ Selection: Selecció:
+ Selective Selectiu
+ Send Backward Envia enrere
+ Send to Back Envia al fons
+ Send to Current Layer Envia a la capa actual
+ Sends messages to other apps Envia missatges a altres aplicacions
+ Sentence case Majúscula inicial
+ Separate colors into rows Separa els colors en files
+ Separate several keywords with commas. Separa diverses paraules clau amb comes.
+ Separations Separacions
+ Separations list the document's inks here: one page per ink that prints. Les separacions mostren aquí les tintes del document: una pàgina per cada tinta que s’imprimeix.
+ Separations Preview Previsualització de separacions
+ Serialize Document Serialitza el document
+ Serif / Mincho Serif / Mincho
+ Server-side (.map) Del costat del servidor (.map)
+ Services Serveis
+ Set 1 Conjunt 1
+ Set Anchors Defineix els punts d’ancoratge
+ Set as Default Defineix com a predeterminat
+ Set base color Defineix el color base
+ Set base color to the current color Defineix el color base com a color actual
+ Set Bounds Defineix els límits
+ Set Current Layer Defineix la capa actual
+ Set History Limit… Defineix el límit de l’historial…
+ Set Keyboard Shortcut Defineix la drecera de teclat
+ Set Mesh Point Color Defineix el color del punt de malla
+ Set Options Defineix les opcions
+ Set Options… Defineix les opcions…
+ Set Preference Defineix la preferència
+ Set Slice Rectangle Defineix el rectangle del tall
+ Set Tab Stops Defineix les tabulacions
+ Set Text Defineix el text
+ Set the selected color to the current color Defineix el color seleccionat com a color actual
+ Set Zoom Defineix el zoom
+ Set: Defineix:
+ Settings Configuració
+ Settings… Configuració…
+ Setup… Configuració…
+ Shades Tonalitats
+ Shades of Gray Tonalitats de gris
+ Shading Sombra
+ Shadow Intensity Intensitat de l’ombra
+ Shadows and Glows Ombres i resplendors
+ Shape Forma
+ Shape Builder Constructor de formes
+ Shape Builder Delete Suprimeix del constructor de formes
+ Shape Builder Regions Regions del constructor de formes
+ Shape Builder Tool Eina Constructor de formes
+ Shape Effects Efectes de forma
+ Shape Mode Mode de forma
+ Shape Modes: Modes de forma:
+ Shape Properties: Propietats de la forma:
+ Shape: Forma:
+ Shaper Shaper
+ Shaper Tool Eina Shaper
+ Shapes Formes
+ Sharpen Enfoca
+ Sharpness Nitidesa
+ Shear Inclina
+ Shear Tool Eina d’inclinació
+ Shear: Inclina:
+ Shear… Inclina…
+ Shell Lower… Closca inferior…
+ Shell Upper… Closca superior…
+ Shift Maj
+ Shift to Color… Desplaça al color…
+ Shift+Click Maj+clic
+ Shift+Drag Maj+arrossega
+ Shift: Maj:
+ Shifts the tints of global and spot colors; other colors stay. Desplaça els tos dels colors globals i directes; la resta de colors es mantenen.
+ Short Curt
+ Short Lines Línies curtes
+ Short Strokes Traços curts
+ Shortcut Drecera
+ Shortcuts Dreceres
+ Show Mostra
+ Show Active Plane Widget Mostra el giny del pla actiu
+ Show All Mostra-ho tot
+ Show All Hidden Attributes Mostra tots els atributs ocults
+ Show All Layers Mostra totes les capes
+ Show all open documents Mostra tots els documents oberts
+ Show All Plates Mostra totes les planxes
+ Show all plates Mostra totes les planxes
+ Show All Swatches Mostra totes les mostres
+ Show and print from the Lab definition; PDF files carry it as the ink's alternate color. Mostra i imprimeix a partir de la definició Lab; els fitxers PDF la porten com a color alternatiu de la tinta.
+ Show and separate through the working CMYK space, as in older documents. Mostra i separa mitjançant l’espai CMYK de treball, com als documents més antics.
+ Show Artboards Mostra els taulers
+ Show axis Mostra l’eix
+ Show Bounding Box Mostra el quadre delimitador
+ Show Brush Size Mostra la mida del pinzell
+ Show Center Mostra el centre
+ Show Center Mark Mostra la marca del centre
+ Show Code Mostra el codi
+ Show Color Groups Mostra els grups de colors
+ Show Color Swatches Mostra les mostres de color
+ Show Corner Widget Mostra el giny de cantonada
+ Show Cross Hairs Mostra la retícula
+ Show East Asian Options Mostra les opcions d’Àsia oriental
+ Show Edges Mostra les vores
+ Show Embedded Mostra incrustat
+ Show Find Field Mostra el camp de cerca
+ Show Font Names in English Mostra els noms de tipus de lletra en anglès
+ Show Gradient Annotator Mostra l’anotador de degradat
+ Show Gradient Swatches Mostra les mostres de degradat
+ Show Grid Mostra la quadrícula
+ Show Grid (⌘') Mostra la quadrícula (⌘')
+ Show Guides Mostra les guies
+ Show handles when multiple anchors are selected Mostra els tiradors quan se seleccionen diversos punts d’ancoratge
+ Show Hidden Characters Mostra els caràcters ocults
+ Show Images in Outline Mode Mostra les imatges en mode contorn
+ Show in Folder Mostra a la carpeta
+ Show Indic Options Mostra les opcions índiques
+ Show Layers Only Mostra només les capes
+ Show Library Mostra la biblioteca
+ Show Link Info Mostra la informació de l’enllaç
+ Show List View Mostra la vista de llista
+ Show Live Paint Gaps Mostra els buits de la pintura interactiva
+ Show Mesh Mostra la malla
+ Show Missing Mostra els que falten
+ Show Modified Mostra els modificats
+ Show Note Mostra la nota
+ Show Options Mostra les opcions
+ Show Original Path Mostra el traçat original
+ Show Package Mostra el paquet
+ Show Panel Mostra el panell
+ Show Pattern Swatches Mostra les mostres de motiu
+ Show Perspective Grid Mostra la quadrícula de perspectiva
+ Show Pixel Grid (Above 600% Zoom) Mostra la quadrícula de píxels (per sobre del 600% d’ampliació)
+ Show Print Tiling Mostra la mosaicació d’impressió
+ Show Properties Panel Mostra el panell de propietats
+ Show Rulers Mostra les regles
+ Show Rulers (⌘R) Mostra les regles (⌘R)
+ Show Slice Numbers Mostra els números dels talls
+ Show Slices Mostra els talls
+ Show Swatch Bounds Mostra els límits de la mostra
+ Show Swatch Kinds Mostra els tipus de mostres
+ Show Template Mostra la plantilla
+ Show Text Threads Mostra els fils de text
+ Show The Home Screen When No Documents Are Open Mostra la pantalla d’inici quan no hi ha cap document obert
+ Show Thumbnail Mostra la miniatura
+ Show Thumbnail View Mostra la vista de miniatures
+ Show Thumbnails Mostra les miniatures
+ Show Tile Edge Mostra la vora del mosaic
+ Show Tints/Shades Mostra els tons/ombres
+ Show Tool Group Labels Mostra les etiquetes dels grups d’eines
+ Show Tool Tips Mostra els consells d’eines
+ Show Transparency Grid Mostra la quadrícula de transparència
+ Show Video Rulers Mostra les regles de vídeo
+ Show Video Safe Areas Mostra les àrees segures de vídeo
+ Show Vivid/Muted Mostra els vius/apagats
+ Show Warm/Cool Mostra els càlids/freds
+ Show {kind} Brushes Mostra els pinzells {kind}
+ Show/hide plate (Alt-click: only this plate) Mostra o amaga la planxa (Alt+clic: només aquesta planxa)
+ Show: Mostra:
+ Shown with the optimised preview. Es mostra amb la previsualització optimitzada.
+ Shrink Text to Fit Redueix el text perquè hi càpiga
+ Side 1: Costat 1:
+ Side 2: Costat 2:
+ Side Length: Longitud del costat:
+ Side Tile Mosaic lateral
+ Sides: Costats:
+ Silhouettes Siluetes
+ Simple Simple
+ Simplified Chinese Xinès simplificat
+ Simplify Simplifica
+ Simplify: Simplifica:
+ Simplify… Simplifica…
+ Simulate Simula
+ Simulate Colored Paper Simula el paper de color
+ Simulate Paper Simula el paper
+ Simulate prints overprints as Overprint Preview shows them; separations always keep them. A preset flattens transparency before printing (PostScript files always flatten it). Simula la impressió de les sobrempressions tal com les mostra la previsualització de sobrempressió; les separacions sempre les conserven. Un preajust aplana la transparència abans d’imprimir (els fitxers PostScript sempre l’aplanen).
+ Single Corner Radius Radi d’una sola cantonada
+ Single Left Quotation Mark Cometa simple esquerra
+ Single Quotes: Cometes simples:
+ Single Right Quotation Mark Cometa simple dreta
+ Single Word Justification: Justificació d’una sola paraula:
+ Single-line Composer Compositor d’una línia
+ Sixth Space Espai de sisena part
+ Size Mida
+ Size Tile to Art Ajusta la mida del mosaic a l’art
+ Size/Leading Mida/Interlineat
+ Size: Mida:
+ Size: {size} Tracking: {tracking} Mida: {size} Espaiat: {tracking}
+ Sketch Esbós
+ Sketched Art Art esbossat
+ Skew Esbiaixa
+ Skew: Esbiaixa:
+ Skin Tone Ramps Rampes de tons de pell
+ Skip Blank Artboards Omet els taulers buits
+ Sky Gradients Degradats de cel
+ Slash Barra inclinada
+ Slice Tall
+ Slice Options Opcions del tall
+ Slice Options… Opcions del tall…
+ Slice Selection Tool Eina de selecció de talls
+ Slice Tool Eina de tall
+ Slice Type: Tipus de tall:
+ Slices Talls
+ slices across, evenly spaced talls horitzontals, espaiats uniformement
+ slices down, evenly spaced talls verticals, espaiats uniformement
+ Slices: Talls:
+ Sliding Lliscant
+ Slope: Pendent:
+ Small Petit
+ Small Caps Versaletes
+ Small Caps (on the roadmap) Versaletes (al full de ruta)
+ Small Caps: Versaletes:
+ Small Gaps Buits petits
+ Small List View Vista de llista petita
+ Small Thumbnail View Vista de miniatures petites
+ Small Thumbnails Miniatures petites
+ Smaller ↔ Larger Més petit ↔ Més gran
+ Smallest File Size Mida de fitxer més petita
+ Smart Blur Desenfocament intel·ligent
+ Smart Blur… Desenfocament intel·ligent…
+ Smart Guides Guies intel·ligents
+ Smart Guides (View → Smart Guides) Guies intel·ligents (Visualitza → Guies intel·ligents)
+ Smart Guides (⌘U) Guies intel·ligents (⌘U)
+ Smart Punctuation… Puntuació intel·ligent…
+ Smooth Suavitza
+ Smooth Color Color suau
+ Smooth Tool Eina de suavitzat
+ Smoothness Suavitat
+ Smudge Stick Bastó de difuminat
+ Smudge Stick… Bastó de difuminat…
+ Snap Curves To Lines Ajusta les corbes a les línies
+ Snap Options Opcions d’ajust
+ Snap to Glyph Ajusta al glif
+ Snap to Grid Ajusta a la quadrícula
+ Snap to Perpendicular Ajusta a la perpendicular
+ Snap to Pixel Ajusta al píxel
+ Snap to Point Ajusta al punt
+ Snap to Tangent Ajusta a la tangent
+ Snap to Unit Ajusta a la unitat
+ Snapping Ajustament
+ Snapping Tolerance Tolerància d’ajust
+ Social Xarxes socials
+ Social Landscape Post 1200×630 Publicació horitzontal per a xarxes socials 1200×630
+ Social Portrait Post 1080×1350 Publicació vertical per a xarxes socials 1080×1350
+ Social Square Post 1080×1080 Publicació quadrada per a xarxes socials 1080×1080
+ Social Story 1080×1920 Història per a xarxes socials 1080×1920
+ Social Tall Post 1000×1500 Publicació alta per a xarxes socials 1000×1500
+ Soft Suau
+ Soft Light Llum suau
+ Soft Mix Barreja suau
+ Softness Suavitat
+ Solid Sòlid
+ Some lists were cut short at their limit. Algunes llistes s’han escurçat en arribar al límit.
+ Sort Ordena
+ Sort by Hue Ordena per to
+ Sort by Kind Ordena per tipus
+ Sort by Luminance Ordena per lluminositat
+ Sort by Name Ordena per nom
+ Sort by Popularity Ordena per popularitat
+ Sort by Status Ordena per estat
+ Sort Swatches Ordena les mostres
+ Source code on GitHub Codi font a GitHub
+ Source Folder: Carpeta d’origen:
+ Source Image Imatge d’origen
+ Source Sans 3 Source Sans 3
+ Space After Paragraph Espai després del paràgraf
+ Space Before Paragraph Espai abans del paràgraf
+ Spaces Espais
+ Spacing Espaiat
+ Spacing Guides Guies d’espaiat
+ Spacing: Espaiat:
+ Spanish Espanyol
+ Sparkle Espurneig
+ Spatter Esquitx
+ Spatter… Esquitx…
+ Specified Distance Distància especificada
+ Specified Steps Passos especificats
+ Specify: Especifica:
+ Speckle Pigues
+ Spectrum Espectre
+ Spectrum Gradients Degradats d’espectre
+ Spelling Ortografia
+ Spin Gira
+ Spiral Espiral
+ Spiral Tool Eina d’espiral
+ Split Complementary Complementari dividit
+ Split Freeform Line Divideix la línia de forma lliure
+ Split Into Grid Divideix en una quadrícula
+ Split Into Grid… Divideix en una quadrícula…
+ Split Path Divideix el traçat
+ Sponge Esponja
+ Sponge… Esponja…
+ spot directe
+ Spot Color Color directe
+ Spot Colors Colors directes
+ Spot Colors (0) Colors directes (0)
+ Spot Colors… Colors directes…
+ Spray Radius Radi de polvorització
+ Sprayed Strokes Traços polvoritzats
+ Sprayed Strokes… Traços polvoritzats…
+ Spread: Expansió:
+ Sprinkles Espolvoreig
+ Square Quadrat
+ Square (open) Quadrat (obert)
+ Square 8 × 8 in Quadrat 8 × 8 in
+ Square Size Mida del quadrat
+ Squeeze… Estreny…
+ sRGB IEC61966-2.1 sRGB IEC61966-2.1
+ Stacked Apilat
+ Stacked Bar Graph Tool Eina de gràfic de barres apilades
+ Stacked Column Graph Tool Eina de gràfic de columnes apilades
+ Stained Glass Vitrall
+ Stained Glass… Vitrall…
+ Stair Step Esglaonat
+ Stamp Segell
+ Stamp… Segell…
+ Standard Estàndard
+ Standard Legend Llegenda estàndard
+ Standard Ligatures Lligadures estàndard
+ Standard Vertical Roman Alignment Alineació romana vertical estàndard
+ Standard: Estàndard:
+ Star Estrella
+ Star Tool Eina d’estrella
+ Start arrowhead Punta de fletxa inicial
+ Start at: Comença a:
+ Start from VectorCraft Defaults Parteix dels valors predeterminats del VectorCraft
+ Start Global Edit Inicia l’edició global
+ Start Tile Mosaic inicial
+ Start: Inici:
+ Status Estat
+ Step Pas
+ Step Backward Retrocedeix un pas
+ Step Forward Avança un pas
+ Step Type Tipus de pas
+ Step up or down Puja o baixa
+ Steps: Passos:
+ Stiffness: Rigidesa:
+ Stippled Puntejat
+ Stop Atura
+ Stop Editing Opacity Mask Atura l’edició de la màscara d’opacitat
+ Stop editing the opacity mask Atura l’edició de la màscara d’opacitat
+ Stop Global Edit Atura l’edició global
+ Stop on Errors Atura en els errors
+ Stop Playing/Recording Atura la reproducció/l’enregistrament
+ Straight Line Línia recta
+ Stray Points Punts solts
+ Strength Intensitat
+ Stretch Between Guides Estira entre guies
+ Stretch to fit Estira per ajustar
+ Stretch to Fit Stroke Length Estira per ajustar la longitud del traç
+ Strikethrough Ratllat
+ String not closed La cadena no està tancada
+ Stroke Traç
+ Stroke (X), double-click for the Color Picker Traç (X), fes doble clic per al selector de color
+ Stroke Color Color del traç
+ Fill Gradient Degradat de farciment
+ Stroke Gradient Degradat del traç
+ Fill Pattern Motiu de farciment
+ Stroke Pattern Motiu del traç
+ Patterns Motius
+ Stroke Direction Direcció del traç
+ Stroke Length Longitud del traç
+ Stroke Options Opcions del traç
+ Stroke options Opcions del traç
+ Stroke Pressure Pressió del traç
+ Stroke Weight Gruix del traç
+ Stroke When Editable Traç quan és editable
+ Stroke Width Amplada del traç
+ Stroke: Traç:
+ Stroke: click for swatches, Shift-click for the color mixer Traç: fes clic per a les mostres, Maj+clic per al mesclador de colors
+ Strokes Traços
+ Style Estil
+ Style Attributes Atributs d’estil
+ Style Attributes (Entity References) Atributs d’estil (referències d’entitat)
+ Style Name: Nom de l’estil:
+ Style: Estil:
+ Styling: Estilització:
+ Stylistic Estilístic
+ Stylize Estilitza
+ Subdivisions Subdivisions
+ Subsample Submostra
+ Subscript Subíndex
+ Subscript (on the roadmap) Subíndex (al full de ruta)
+ Subscript: Subíndex:
+ Subset Subconjunt
+ Subset fonts below: Subconjunta els tipus de lletra a continuació:
+ Subtract Resta
+ Suffix Sufix
+ Sumi-e Sumi-e
+ Sumi-e… Sumi-e…
+ Summary Resum
+ Sunshine Sol
+ Superscript Superíndex
+ Superscript (on the roadmap) Superíndex (al full de ruta)
+ Superscript: Superíndex:
+ SVG 1.1 SVG 1.1
+ SVG Filters Filtres SVG
+ SVG Interactivity Interactivitat SVG
+ SVG Options Opcions SVG
+ SVG Profile: Perfil SVG:
+ Swallowtail Cua d’oreneta
+ Swap Fill and Stroke Intercanvia el farciment i el traç
+ Swap Fill and Stroke (Shift+X) Intercanvia el farciment i el traç (Maj+X)
+ Swap start and end arrowheads Intercanvia les puntes de fletxa inicial i final
+ Swap the selected object for the file, keeping its place and transform Substitueix l’objecte seleccionat pel fitxer, mantenint-ne la posició i la transformació
+ Swash Volada
+ Swatch Conflict Conflicte de mostres
+ Swatch Conflicts Conflictes de mostres
+ Swatch exchange files keep solid colors only. Els fitxers d’intercanvi de mostres només conserven colors sòlids.
+ Swatch Libraries Biblioteques de mostres
+ Swatch Libraries Menu Menú de biblioteques de mostres
+ Swatch Library Biblioteca de mostres
+ Swatch Name: Nom de la mostra:
+ Swatch Options Opcions de la mostra
+ Swatch Options… Opcions de la mostra…
+ Swatch Tiles Rajoles de mostres
+ Swatches Mostres
+ Switch workspace Canvia d’espai de treball
+ Switch x/y Intercanvia x/y
+ Symbol Símbol
+ Symbol Instance Instància de símbol
+ Symbol Libraries Biblioteques de símbols
+ Symbol Libraries Menu Menú de biblioteques de símbols
+ Symbol Library Biblioteca de símbols
+ Symbol Options Opcions del símbol
+ Symbol Options… Opcions del símbol…
+ Symbol Screener Filtre de símbols
+ Symbol Screener Tool Eina de filtre de símbols
+ Symbol Scruncher Compressor de símbols
+ Symbol Scruncher Tool Eina de compressor de símbols
+ Symbol Set Density: Densitat del conjunt de símbols:
+ Symbol Shifter Desplaçador de símbols
+ Symbol Shifter Tool Eina de desplaçador de símbols
+ Symbol Sizer Escalador de símbols
+ Symbol Sizer Tool Eina d’escalador de símbols
+ Symbol Spinner Girador de símbols
+ Symbol Spinner Tool Eina de girador de símbols
+ Symbol Sprayer Ruixador de símbols
+ Symbol Sprayer Tool Eina de ruixador de símbols
+ Symbol Stainer Tintador de símbols
+ Symbol Stainer Tool Eina de tintador de símbols
+ Symbol Styler Estilitzador de símbols
+ Symbol Styler Tool Eina d’estilitzador de símbols
+ Symbolism Tool Eina de simbolisme
+ Symbolism Tools Options Opcions de les eines de simbolisme
+ Symbols Símbols
+ Syntax newer than ES3 Sintaxi més nova que ES3
+ System Layout Disposició del sistema
+ System Title Bar Barra de títol del sistema
+ Tab Tabulació
+ Tab Stops Aturades de tabulació
+ Table Taula
+ Tablet 1024×1366 Tauleta 1024×1366
+ Tablet 1024×768 Tauleta 1024×768
+ Tablet 768×1024 Tauleta 768×1024
+ Tablet 800×1280 Tauleta 800×1280
+ Tablet 820×1180 Tauleta 820×1180
+ Tablet 834×1194 Tauleta 834×1194
+ Tabloid Tabloide
+ Tabs Tabulacions
+ Tabular Lining Xifres tabulars alineades
+ Tabular Oldstyle Xifres tabulars antigues
+ Tag Etiqueta
+ Tag (open) Etiqueta (oberta)
+ Taper Afusament
+ Target Destí
+ Target Contents Contingut del destí
+ Target: Destí:
+ Tate-chu-yoko Tate-chu-yoko
+ Technical Drawing Dibuix tècnic
+ Temperature Temperatura
+ Temperature/Tint… Temperatura/To…
+ Template Plantilla
+ Template literal not closed El literal de plantilla no està tancat
+ Templates Plantilles
+ Templates Folder Carpeta de plantilles
+ Templates… Plantilles…
+ Tetrad Tètrada
+ Tetrad 2 Tètrada 2
+ Tetrad 3 Tètrada 3
+ Text Text
+ Text Displayed in Cell Text mostrat a la cel·la
+ Text Displayed in Cell: Text mostrat a la cel·la:
+ Text Export Options Opcions d’exportació de text
+ Text Fill Color Color de farciment del text
+ Text Import Options Opcions d’importació de text
+ Text Orientation Orientació del text
+ Text Stroke Color Color del traç del text
+ Text Wrap Ajustament del text
+ Text Wrap Options Opcions d’ajustament del text
+ Text Wrap Options… Opcions d’ajustament del text…
+ Text: Text:
+ Texture Textura
+ Texture Coverage Cobertura de la textura
+ Texture Image Imatge de textura
+ Texturizer Texturitzador
+ Texturizer… Texturitzador…
+ Thai Tailandès
+ The active document changed while the screen color sampler was open El document actiu ha canviat mentre el mostrejador de color de pantalla estava obert
+ The art keeps its own colors. L’art conserva els seus propis colors.
+ The bounds of the visible art. Els límits de l’art visible.
+ The cell shows the type object's text as HTML. La cel·la mostra el text de l’objecte de text com a HTML.
+ The dialog was closed before its file dialog answered El diàleg s’ha tancat abans que el seu diàleg de fitxers respongués
+ The document has no colour swatches. El document no té mostres de color.
+ The document was closed while its file dialog was open El document s’ha tancat mentre el seu diàleg de fitxers estava obert
+ The edge of the paper the printer can't reach: the art goes inside it, and the preview shows it dashed. La vora del paper que la impressora no pot assolir: l’art s’hi col·loca a dins i la previsualització la mostra amb línies discontínues.
+ The file is too large to read in full, so only its first part is listed. El fitxer és massa gran per llegir-lo sencer, així que només se n’enumera la primera part.
+ The file writes keys and modifiers as codes. Check the proposed meanings and answer the codes that are not known yet. El fitxer escriu les tecles i els modificadors com a codis. Comprova els significats proposats i respon als codis que encara no es coneixen.
+ The key color becomes the stroke color. The other colors shift their hue by the same amount and keep their saturation and brightness. El color clau esdevé el color del traç. Els altres colors desplacen el to en la mateixa quantitat i conserven la saturació i la brillantor.
+ The name in the save panel was “{typed}”; VectorCraft added the file type's extension. Replacing the file overwrites its contents. El nom al tauler de desament era “{typed}”; VectorCraft ha afegit l’extensió del tipus de fitxer. Substituir el fitxer sobreescriu-ne el contingut.
+ The page as it prints La pàgina tal com s’imprimeix
+ The plug-in is computing… El complement està calculant…
+ The plug-in writes the whole document. El complement escriu tot el document.
+ the preset el preajust
+ The Print Tiling tool placed the pages. L’eina de mosaicació d’impressió ha col·locat les pàgines.
+ The samples show this brush on a blue stroke. Les mostres mostren aquest pinzell sobre un traç blau.
+ The search stopped at its limit: search a smaller folder. La cerca s’ha aturat en el seu límit: cerca una carpeta més petita.
+ The selected objects have no CSS of their own (see below). Els objectes seleccionats no tenen cap CSS propi (mira-ho més avall).
+ The system's settings of this printer La configuració del sistema per a aquesta impressora
+ These fonts aren't available. Their text shows in another font. Aquests tipus de lletra no estan disponibles. El seu text es mostra amb un altre tipus de lletra.
+ Thickness Gruix
+ Thin Space Espai fi
+ Third Space Tercer espai
+ Third Vanishing Point: Tercer punt de fuga:
+ This document already has a swatch named “{name}” with another color. Aquest document ja té una mostra anomenada “{name}” amb un altre color.
+ This library is empty Aquesta biblioteca és buida
+ This library is empty. Aquesta biblioteca és buida.
+ This panel is on the roadmap (see the parity plan). Aquest panell és previst al full de ruta (consulta el pla de paritat).
+ This system has no screen color sampler Aquest sistema no té cap mostrejador de color de pantalla
+ Thread Text Enllaça el text
+ Threaded Text Text enllaçat
+ Threads Fils
+ Three Point Tres punts
+ Three Point Perspective Perspectiva de tres punts
+ Three Point Perspective Preset 1 Preajust 1 de perspectiva de tres punts
+ Three Point Perspective Preset 2 Preajust 2 de perspectiva de tres punts
+ Three Point Perspective Preset 3 Preajust 3 de perspectiva de tres punts
+ Three Point Perspective Preset 4 Preajust 4 de perspectiva de tres punts
+ Three Point Perspective Preset 5 Preajust 5 de perspectiva de tres punts
+ Threshold Llindar
+ Thumbnail View Vista de miniatures
+ Thumbnails: Miniatures:
+ TIFF (8-bit Color) TIFF (color de 8 bits)
+ TIFF (Black & White) TIFF (blanc i negre)
+ Tile Mosaic
+ Tile Edge Color Color de la vora del mosaic
+ Tile Edge Color… Color de la vora del mosaic…
+ Tile Full Pages Mosaic de pàgines senceres
+ Tile Imageable Areas Mosaic d’àrees imprimibles
+ Tile Range: Interval de mosaics:
+ Tile Size Mida del mosaic
+ Tile Type: Tipus de mosaic:
+ tile {number} mosaic {number}
+ Tiles are numbered across, then down; leave the range empty for every tile. Els mosaics es numeren d’esquerra a dreta i, després, de dalt a baix; deixa l’interval buit per a tots els mosaics.
+ Time (hhmmss) Hora (hhmmss)
+ Tint To
+ Tint Reduction Reducció de to
+ Tints Tons
+ Tints and Shades Tons i ombres
+ Tiny Lens Lent diminuta
+ Tip extends past the end point La punta s’estén més enllà del punt final
+ Tip on the end point Punta al punt final
+ Tips Puntes
+ Title Case Majúscules inicials
+ to a
+ Toggle Fill/Stroke Focus Alterna el focus entre farciment i traç
+ Toggle Selection Alterna la selecció
+ Toggle single/double column Alterna entre columna simple i doble
+ Tolerance Tolerància
+ Tolerance: Tolerància:
+ Too large to check Massa gran per comprovar-ho
+ Tool Eina
+ Tool Option Opció de l’eina
+ Tool Options… Opcions de l’eina…
+ Toolbar: Add Tool Barra d’eines: afegeix una eina
+ Toolbar: Advanced / Basic Barra d’eines: avançada / bàsica
+ Toolbar: Remove Tool Barra d’eines: suprimeix una eina
+ Toolbar: Reset Barra d’eines: restableix
+ Toolbar: Show Controls Barra d’eines: mostra els controls
+ Toolbar: Single/Double Column Barra d’eines: columna simple o doble
+ Toolbars Barres d’eines
+ Tools Eines
+ Tools take a single key (optionally with Shift) Les eines s’activen amb una sola tecla (opcionalment amb Maj)
+ Top A dalt
+ Top in Front A dalt al davant
+ Top Left A dalt a l’esquerra
+ Top Left: A dalt a l’esquerra:
+ Top Right A dalt a la dreta
+ Top Right: A dalt a la dreta:
+ Top to Bottom De dalt a baix
+ Top-Justified Tab Tabulació justificada a dalt
+ Top-to-Top Leading Interlineat de dalt a dalt
+ Top: A dalt:
+ Torn Edges Vores esquinçades
+ Torn Edges… Vores esquinçades…
+ Total Width: Amplada total:
+ Total: Total:
+ Touch Type Retoc de text
+ Touch Type Tool Eina de retoc de text
+ Trace Traça
+ Trace the image with the Default preset Traça la imatge amb el preajust per defecte
+ Tracing Presets Preajustos de traçat
+ Tracing Result Resultat del traçat
+ Tracing Result with Outlines Resultat del traçat amb contorns
+ Tracking Espaiat
+ Trackpad Gesture to Rotate View Gesticulació del trackpad per girar la vista
+ Trademark Symbol Símbol de marca comercial
+ Transform Transforma
+ Transform Again Transforma de nou
+ Transform Both Transforma tots dos
+ Transform Each Transforma cadascun
+ Transform Each… Transforma cadascun…
+ Transform in Perspective Transforma en perspectiva
+ Transform Object Only Transforma només l’objecte
+ Transform Objects Transforma objectes
+ Transform options Opcions de transformació
+ Transform Panel Panell Transformació
+ Transform Pattern Only Transforma només el motiu
+ Transform Pattern Tiles Transforma les peces del motiu
+ Transform Patterns Transforma motius
+ Transform Tools Eines de transformació
+ Transforms Transformacions
+ Transform… Transforma…
+ Transparency Transparència
+ Transparency Flattener Presets Preajustos de l’aplanador de transparència
+ Transparency Flattener Presets… Preajustos de l’aplanador de transparència…
+ Transparency Grid Quadrícula de transparència
+ Transparency Info Informació de transparència
+ Transparency is flattened with the preset. Type is written as outlines; gradients as bands of colour. La transparència s’aplana amb el preajust. El text s’escriu com a contorns; els degradats, com a franges de color.
+ Transparency is flattened with the preset. Type is written as outlines; gradients stay smooth. La transparència s’aplana amb el preajust. El text s’escriu com a contorns; els degradats es mantenen suaus.
+ Transparency Options Opcions de transparència
+ Transparent Transparent
+ Transparent (Default) Transparent (per defecte)
+ Transparent Background Fons transparent
+ Transparent Images: Imatges transparents:
+ Transparent Objects Objectes transparents
+ Transpose Transposa
+ Transverse (the page a quarter turn on the paper) Transversal (la pàgina gira un quart de volta sobre el paper)
+ Trap Trampa
+ Traps with Process Color Trampes amb color de procés
+ Trap… Trampa…
+ Triad Tríada
+ Triad 2 Tríada 2
+ Triad 3 Tríada 3
+ Triangle Triangle
+ Triangle (open) Triangle (obert)
+ Triangle to Bar Triangle a barra
+ Trim Retalla
+ Trim covered geometry on Expand Appearance. Live preview keeps the full surface. Transparent paints and surfaces exceeding visibility limits retain all faces. Retalla la geometria coberta en expandir l’aparença. La previsualització en directe manté tota la superfície. Les pintures transparents i les superfícies que superen els límits de visibilitat conserven totes les cares.
+ Trim mark weight: Gruix de les marques de retall:
+ Trim marks Marques de retall
+ Trim View Vista de retall
+ True Colors Colors reals
+ True colour needs version 2004 or later: the nearest of 256 colours is written. El color real necessita la versió 2004 o posterior: s’escriu el més proper dels 256 colors.
+ Turn off Data Recovery for complex documents Desactiva la recuperació de dades per als documents complexos
+ Tweak… Retoca…
+ Twirl Remolí
+ Twirl Rate: Velocitat del remolí:
+ Twirl Tool Eina de remolí
+ Twist Torsió
+ Twist… Torsió…
+ Two Point Dos punts
+ Two Point Perspective Perspectiva de dos punts
+ Two Point Perspective Preset 1 Preajust 1 de perspectiva de dos punts
+ Two Point Perspective Preset 2 Preajust 2 de perspectiva de dos punts
+ Two Point Perspective Preset 3 Preajust 3 de perspectiva de dos punts
+ Two Point Perspective Preset 4 Preajust 4 de perspectiva de dos punts
+ Two Point Perspective Preset 5 Preajust 5 de perspectiva de dos punts
+ Type Text
+ Type becomes outlines, and strokes a CAD line can't draw become filled shapes. El text es converteix en contorns i els traços que una línia CAD no pot dibuixar es converteixen en formes farcides.
+ Type Object Selection by Path Only Selecció d’objectes de text només pel traçat
+ Type on a Path Text sobre un traçat
+ Type on a Path Options Opcions de text sobre un traçat
+ Type on a Path Options… Opcions de text sobre un traçat…
+ Type on a Path Tool Eina de text sobre un traçat
+ Type Optimized Optimitzat per al text
+ Type Orientation Orientació del text
+ Type stays text, and every stroke is a line with its lineweight and dashes. El text es manté com a text i cada traç és una línia amb el seu gruix i guions.
+ Type Tool Eina de text
+ Type: Tipus:
+ Type… Text…
+ Typing Escriptura
+ UI Brightness Brillantor de la interfície
+ UI Scaling Escalat de la interfície
+ Unbind Variable Desvincula la variable
+ Underline Subratllat
+ Underpainting Pintura de base
+ Underpainting… Pintura de base…
+ Undo Desfés
+ Undo {name} Desfés {name}
+ Undo {} Desfés {}
+ Unembed Desincrusta
+ Unembedded to {} S’ha desincrustat a {}
+ Unembed… Desincrusta…
+ Ungroup Desagrupa
+ Ungroup Color Group Desagrupa el grup de colors
+ Unicode Unicode
+ Unicode (UTF-16) Unicode (UTF-16)
+ Unicode (UTF-8) Unicode (UTF-8)
+ Uniform Uniforme
+ Uniformly Scaled Escalat uniforme
+ Unique Únic
+ Unite Uneix
+ Unite and Simplify Uneix i simplifica
+ Units Unitats
+ Units: Unitats:
+ Units: {units} Unitats: {units}
+ Unknown Desconegut
+ Unknown directive Directiva desconeguda
+ Unlink harmony colors Desvincula els colors d’harmonia
+ Unlink Opacity Mask Desvincula la màscara d’opacitat
+ Unlink the mask Desvincula la màscara
+ Unlock Desbloqueja
+ Unlock All Desbloqueja-ho tot
+ Unlock All Layers Desbloqueja totes les capes
+ Unlock Artboards Desbloqueja els taulers
+ Unlock Grid Desbloqueja la quadrícula
+ Unlock Guides Desbloqueja les guies
+ Unlock Selected Desbloqueja la selecció
+ Unlock Variables Desbloqueja les variables
+ Unnamed Objects Objectes sense nom
+ Unprintable margin: Marge no imprimible:
+ Unsharp Mask Màscara d’enfocament
+ Unsharp Mask… Màscara d’enfocament…
+ Unshift Desfés el desplaçament
+ Unsorted Sense ordre
+ Untitled Sense títol
+ Up (right reading) Amunt (lectura correcta)
+ Update Changed Links Actualitza els enllaços canviats
+ Update Data Set Actualitza el conjunt de dades
+ Update Dimensions Actualitza les dimensions
+ Update Link Actualitza l’enllaç
+ Update Links Actualitza els enllaços
+ Update Modified Links Actualitza els enllaços modificats
+ Update Selection Actualitza la selecció
+ Updated {} image(s) S’han actualitzat {} imatge(s)
+ UPPERCASE MAJÚSCULES
+ URL: URL:
+ Use Utilitza
+ Use Artboards Utilitza els taulers
+ Use Black Point Compensation Utilitza la compensació del punt negre
+ Use Compression Utilitza la compressió
+ Use Default Utilitza el valor per defecte
+ Use document bleed settings Utilitza la configuració de sangrat del document
+ Use Document Raster Effects Resolution Utilitza la resolució dels efectes de ràster del document
+ Use Even-Odd Fill Rule Utilitza la regla de farciment parell-imparell
+ Use Japanese Crop Marks Utilitza les marques de retall japoneses
+ Use Library Item Utilitza l’element de la biblioteca
+ Use Low Resolution Proxy for Linked EPS Utilitza un proxy de baixa resolució per a l’EPS enllaçat
+ Use Non-Zero Winding Fill Rule Utilitza la regla de farciment de bobinatge diferent de zero
+ Use Outside Rectangle As Frame Utilitza el rectangle exterior com a marc
+ Use Precise Cursors Utilitza cursors precisos
+ Use Pressure Pen Utilitza la pressió del llapis
+ Use Preview Bounds Utilitza els límits de la previsualització
+ Use Registration Point for Symbol Utilitza el punt de registre per al símbol
+ Use Square for Previews Utilitza un quadrat per a les previsualitzacions
+ Use Text for Previews Utilitza text per a les previsualitzacions
+ Use the document's swatch: pasted colors take its color. Utilitza la mostra del document: els colors enganxats prenen el seu color.
+ Use the Selected Text's Font Utilitza el tipus de lletra del text seleccionat
+ Use Typographer's Quotes Utilitza les cometes tipogràfiques
+ User Brush Library 1 Biblioteca de pinzells de l’usuari 1
+ User Brush Library 10 Biblioteca de pinzells de l’usuari 10
+ User Brush Library 2 Biblioteca de pinzells de l’usuari 2
+ User Brush Library 3 Biblioteca de pinzells de l’usuari 3
+ User Brush Library 4 Biblioteca de pinzells de l’usuari 4
+ User Brush Library 5 Biblioteca de pinzells de l’usuari 5
+ User Brush Library 6 Biblioteca de pinzells de l’usuari 6
+ User Brush Library 7 Biblioteca de pinzells de l’usuari 7
+ User Brush Library 8 Biblioteca de pinzells de l’usuari 8
+ User Brush Library 9 Biblioteca de pinzells de l’usuari 9
+ User Defined Definit per l’usuari
+ User Defined Libraries Biblioteques definides per l’usuari
+ User Graphic Style Library 1 Biblioteca d’estils gràfics de l’usuari 1
+ User Graphic Style Library 10 Biblioteca d’estils gràfics de l’usuari 10
+ User Graphic Style Library 2 Biblioteca d’estils gràfics de l’usuari 2
+ User Graphic Style Library 3 Biblioteca d’estils gràfics de l’usuari 3
+ User Graphic Style Library 4 Biblioteca d’estils gràfics de l’usuari 4
+ User Graphic Style Library 5 Biblioteca d’estils gràfics de l’usuari 5
+ User Graphic Style Library 6 Biblioteca d’estils gràfics de l’usuari 6
+ User Graphic Style Library 7 Biblioteca d’estils gràfics de l’usuari 7
+ User Graphic Style Library 8 Biblioteca d’estils gràfics de l’usuari 8
+ User Graphic Style Library 9 Biblioteca d’estils gràfics de l’usuari 9
+ User Interface Interfície d’usuari
+ User Library Biblioteca de l’usuari
+ User Preset Preajust de l’usuari
+ User Swatch Library 1 Biblioteca de mostres de l’usuari 1
+ User Swatch Library 10 Biblioteca de mostres de l’usuari 10
+ User Swatch Library 2 Biblioteca de mostres de l’usuari 2
+ User Swatch Library 3 Biblioteca de mostres de l’usuari 3
+ User Swatch Library 4 Biblioteca de mostres de l’usuari 4
+ User Swatch Library 5 Biblioteca de mostres de l’usuari 5
+ User Swatch Library 6 Biblioteca de mostres de l’usuari 6
+ User Swatch Library 7 Biblioteca de mostres de l’usuari 7
+ User Swatch Library 8 Biblioteca de mostres de l’usuari 8
+ User Swatch Library 9 Biblioteca de mostres de l’usuari 9
+ User Symbol Library 1 Biblioteca de símbols de l’usuari 1
+ User Symbol Library 10 Biblioteca de símbols de l’usuari 10
+ User Symbol Library 2 Biblioteca de símbols de l’usuari 2
+ User Symbol Library 3 Biblioteca de símbols de l’usuari 3
+ User Symbol Library 4 Biblioteca de símbols de l’usuari 4
+ User Symbol Library 5 Biblioteca de símbols de l’usuari 5
+ User Symbol Library 6 Biblioteca de símbols de l’usuari 6
+ User Symbol Library 7 Biblioteca de símbols de l’usuari 7
+ User Symbol Library 8 Biblioteca de símbols de l’usuari 8
+ User Symbol Library 9 Biblioteca de símbols de l’usuari 9
+ Username Nom d’usuari
+ Uses every data set of the open document. Utilitza tots els conjunts de dades del document obert.
+ UTF-16 (Unicode) UTF-16 (Unicode)
+ V Spacing: Espaiat vertical:
+ V: V:
+ Value Axis Eix de valors
+ Variable Variable
+ Variable Font Tipus de lletra variable
+ Variable Options Opcions de variable
+ Variable Options… Opcions de variable…
+ Variable Width Profile Perfil d’amplada variable
+ Variables Variables
+ Variation Variació
+ Variation: Variació:
+ Vector Effects Efectes vectorials
+ Vector Halftone Semitons vectorials
+ Vector Halftone… Semitons vectorials…
+ Vector illustration — fast, open, scriptable. Il·lustració vectorial — ràpida, oberta i programable.
+ VectorCraft copies the fonts to {folder}. VectorCraft copia els tipus de lletra a {folder}.
+ VectorCraft Default VectorCraft per defecte
+ VectorCraft Defaults Valors per defecte de VectorCraft
+ VectorCraft didn't quit normally last time. These documents had unsaved changes: VectorCraft no es va tancar correctament l’última vegada. Aquests documents tenien canvis no desats:
+ VectorCraft documents: one locked object, updated when the file changes. Documents de VectorCraft: un objecte bloquejat, actualitzat quan canvia el fitxer.
+ VectorCraft Generic CMYK (SWOP-like) CMYK genèric de VectorCraft (similar a SWOP)
+ VectorCraft Help… Ajuda de VectorCraft…
+ VectorCraft on getartcraft.com VectorCraft a getartcraft.com
+ VectorCraft on GitHub VectorCraft al GitHub
+ VectorCraft read this script without running it. VectorCraft ha llegit aquest script sense executar-lo.
+ VectorCraft Swatches (.vcswatches) Mostres de VectorCraft (.vcswatches)
+ Vectors Vectors
+ Version Versió
+ Version {version} — open-source vector illustration in pure Rust. Versió {version} — il·lustració vectorial de codi obert en Rust pur.
+ Version: Versió:
+ Vertical Vertical
+ Vertical % % vertical
+ Vertical Align Alineació vertical
+ Vertical Align Bottom Alinea a baix verticalment
+ Vertical Align Center Alinea al centre verticalment
+ Vertical Align Top Alinea a dalt verticalment
+ Vertical Area Type Text d’àrea vertical
+ Vertical Area Type Tool Eina de text d’àrea vertical
+ Vertical Distribute Bottom Distribueix a baix verticalment
+ Vertical Distribute Center Distribueix al centre verticalment
+ Vertical Distribute Space Distribueix l’espai verticalment
+ Vertical Distribute Top Distribueix a dalt verticalment
+ Vertical Dividers: Divisors verticals:
+ Vertical Guide Guia vertical
+ Vertical Scale % Escala vertical %
+ Vertical Type Text vertical
+ Vertical Type on a Path Text vertical sobre un traçat
+ Vertical Type on a Path Tool Eina de text vertical sobre un traçat
+ Vertical Type Tool Eina de text vertical
+ Vertical: Vertical:
+ Vertically Scaled Escalat verticalment
+ Very High Molt alta
+ Video Vídeo
+ Video 1920×1080 Vídeo 1920×1080
+ Video 3840×2160 Vídeo 3840×2160
+ Video Banner 2560×1440 Bàner de vídeo 2560×1440
+ Video Ruler Pixel Aspect Ratio: Relació d’aspecte de píxel de les regles de vídeo:
+ Video Thumbnail 1280×720 Miniatura de vídeo 1280×720
+ View Visualitza
+ View Artboard Only Visualitza només el tauler
+ View Opacity Mask Visualitza la màscara d’opacitat
+ View PDF after saving Visualitza el PDF després de desar
+ View {n} Vista {n}
+ View: Vista:
+ Viewing Angle: Angle de visió:
+ Viewing Distance: Distància de visió:
+ Violet Violeta
+ Visibility Visibilitat
+ Visible & Printable Layers Capes visibles i imprimibles
+ Visible Layers Capes visibles
+ Vivid Vius
+ Volume Volum
+ W: Ampl.:
+ Warm Càlids
+ Warnings Advertències
+ Warp Deformació
+ Warp Options Opcions de deformació
+ Warp Tool Eina de deformació
+ Watch 184×224 Rellotge 184×224
+ Watch 198×242 Rellotge 198×242
+ Water Paper Paper mullat
+ Water Paper… Paper mullat…
+ Watercolor Aquarel·la
+ Watercolor… Aquarel·la…
+ Wave… Onada…
+ Web 1024×768 Web 1024×768
+ Web 1280×720 Web 1280×720
+ Web 1280×800 Web 1280×800
+ Web 1366×768 Web 1366×768
+ Web 1440×900 Web 1440×900
+ Web 1600×900 Web 1600×900
+ Web 1920×1080 Web 1920×1080
+ Web Safe 216 216 segurs per al web
+ Web Safe RGB RGB segur per al web
+ Web Shift Canvi a web
+ Web Snap: Ajust al web:
+ WebP WebP
+ Weight Pes
+ Weight: Gruix:
+ Welcome to VectorCraft Us donem la benvinguda a VectorCraft
+ When pasting text En enganxar text
+ White Blanc
+ White Intensity Intensitat del blanc
+ Wide Blurry Ample difús
+ Wide Sharp Ample nítid
+ Widget Position: Posició del giny:
+ Width Amplada
+ Width and Height Amplada i alçada
+ Width Point Punt d’amplada
+ Width Point Edit Edició del punt d’amplada
+ Width Point Edit… Edició del punt d’amplada…
+ Width Profile Perfil d’amplada
+ Width Profiles Perfils d’amplada
+ Width Tool Eina d’amplada
+ Width: Amplada:
+ Window Finestra
+ Windows Windows
+ Word Spacing: Espaiat entre paraules:
+ Words Longer Than: Paraules més llargues de:
+ Working CMYK CMYK de treball
+ Working CMYK (don't tag) CMYK de treball (sense etiquetar)
+ Working RGB RGB de treball
+ Workspace Espai de treball
+ Workspace {i} Espai de treball {i}
+ Wrinkle Arruga
+ Wrinkle Tool Eina d’arrugues
+ Write Layers Escriu les capes
+ Writes, moves or deletes files Escriu, mou o suprimeix fitxers
+ x Height Alçada de la x
+ X11 (XWayland) X11 (XWayland)
+ X11 (XWayland) When a Pen Is Attached X11 (XWayland) quan hi ha un llapis connectat
+ X: X:
+ XML ID ID XML
+ XML literal not closed Literal XML no tancat
+ Y: Y:
+ Yards Iardes
+ Yellow Groc
+ Yonroku-ban Yonroku-ban
+ Your browser downloads the files (several as one .zip). El navegador baixa els fitxers (diversos en un sol .zip).
+ Your changes will be lost if you don't save them. Si no els deseu, es perdran els canvis.
+ Zig Zag… Ziga-zaga…
+ Zoom Zoom
+ Zoom In Amplia
+ Zoom Out Redueix
+ Zoom to Selection Amplia a la selecció
+ Zoom Tool Eina de zoom
+ Zoom with Mouse Wheel Zoom amb la roda del ratolí
+ {count} file(s) in {folder} {note}. Show the package folder? {count} fitxer(s) a {folder} {note}. Voleu mostrar la carpeta del paquet?
+ {count} file(s) in {folder}. Show the package folder? {count} fitxer(s) a {folder}. Voleu mostrar la carpeta del paquet?
+ {count} folder(s) or file(s) couldn't be read No s’han pogut llegir {count} carpeta(es) o fitxer(s)
+ {count} folder(s) skipped, such as other apps' and the system's folders and hidden ones S’han omès {count} carpeta(es), com ara les d’altres aplicacions, les del sistema i les ocultes
+ {count} linked file(s) not found No s’han trobat {count} fitxer(s) enllaçat(s)
+ {count} linked image(s) changed on disk. Show the new versions? {count} imatge(s) enllaçada(es) han canviat al disc. Voleu mostrar les versions noves?
+ {count} linked image(s) changed since this document was saved. Show the new versions? {count} imatge(s) enllaçada(es) han canviat des que es va desar aquest document. Voleu mostrar les versions noves?
+ {count} more rules: Export writes every one. {count} regles més: l’exportació les escriu totes.
+ {count} of {total} artboards {count} de {total} taulers
+ {count} unnamed objects left out: name them, or turn on Unnamed Objects in the panel menu. S’han omès {count} objectes sense nom: poseu-los un nom o activeu Objectes sense nom al menú del panell.
+ {effect} is already applied {effect} ja està aplicat
+ {file}, line {line} {file}, línia {line}
+ {folders} folder(s) and {files} file(s) searched S’han cercat {folders} carpeta(es) i {files} fitxer(s)
+ {format} Options Opcions de {format}
+ {kind} Gradient Degradat {kind}
+ {kind} Style Options… Opcions d’estil de {kind}…
+ {kind}, {model} {kind}, {model}
+ {name} (spot) {name} (directe)
+ {n} objects selected {n} objectes seleccionats
+ {pages} in all, {count} per copy {pages} en total, {count} per còpia
+ {page} of {count} {page} de {count}
+ {people} contributors · {commits} commits {people} col·laboradors · {commits} commits
+ {percent}% opacity {percent}% d’opacitat
+ {ready} of {total} ready {ready} de {total} a punt
+ {secs} sec {secs} s
+ {shortcut} with the tool sizes the brush {shortcut} amb l’eina ajusta la mida del pinzell
+ {title} (selection) {title} (selecció)
+ {tool} Options Opcions de {tool}
+ {tool} Tool Options Opcions de l’eina {tool}
+ {warning}: click to correct to the closest color ({hex}) {warning}: fes clic per corregir-ho al color més proper ({hex})
+ {w} × {h} pt {w} × {h} pt
+ “{file}” is protected by a password. “{file}” està protegit amb una contrasenya.
+ “{name}” already exists. Replace it? “{name}” ja existeix. Voleu reemplaçar-lo?
+ ▾ Default Actions ▾ Accions per defecte
+ ● Recording ● Enregistrant
+ ⚠ {chord} was already used by {names} — it has been removed there. ⚠ {chord} ja estava assignat a {names} — s’ha eliminat d’allà.
+@plural agrees with {n} default shortcut|agrees with {n} default shortcuts coincideix amb {n} drecera per defecte|coincideix amb {n} dreceres per defecte
+@plural Color Table ({n} color)|Color Table ({n} colors) Taula de colors ({n} color)|Taula de colors ({n} colors)
+@plural Delete this {n} graphic style?|Delete these {n} graphic styles? Voleu suprimir aquest {n} estil gràfic?|Voleu suprimir aquests {n} estils gràfics?
+@plural {n} area highlighted|{n} areas highlighted {n} àrea ressaltada|{n} àrees ressaltades
+@plural {n} color|{n} colors {n} color|{n} colors
+@plural {n} commit|{n} commits {n} commit|{n} commits
+@plural {n} fill|{n} fills {n} farciment|{n} farciments
+@plural {n} glyph|{n} glyphs {n} glif|{n} glifs
+@plural {n} item|{n} items {n} element|{n} elements
+@plural {n} Layer|{n} Layers {n} capa|{n} capes
+@plural {n} more export waiting|{n} more exports waiting {n} exportació més en espera|{n} exportacions més en espera
+@plural {n} object highlighted|{n} objects highlighted {n} objecte ressaltat|{n} objectes ressaltats
+@plural {n} Object|{n} Objects {n} objecte|{n} objectes
+@plural {n} part of the file wasn't read|{n} parts of the file weren't read No s’ha llegit {n} part del fitxer|No s’han llegit {n} parts del fitxer
+@plural {n} PR|{n} PRs {n} PR|{n} PR
+@plural {n} shortcut is assigned more than once|{n} shortcuts are assigned more than once {n} drecera està assignada més d’una vegada|{n} dreceres estan assignades més d’una vegada
+@plural {n} star|{n} stars {n} estrella|{n} estrelles
+@plural {n} step|{n} steps {n} pas|{n} passos
+@plural {n} stroke|{n} strokes {n} traç|{n} traços
+@id file.close Tanca
+@id pathfinder.add Uneix
+3d Bevel Bisell
+3d Cap Tapa
+3d Hollow Buit
+3d Light Llum
+3d Rounded Arrodonit
+3d Solid Sòlid
+3d Space Espai
+@msg "{0}" is not a colour: write it as #rrggbb "{0}" no és un color: escriviu-lo com a #rrggbb
+@msg `artboards`: all or a range such as 1, 3-5, not {v} `artboards`: all o un interval com ara 1, 3-5, no {v}
+@msg `aspect` must be a number (%) `aspect` ha de ser un nombre (%)
+@msg `at` must be [x, y] `at` ha de ser [x, y]
+@msg `color` must be a colour `color` ha de ser un color
+@msg `colorGroup` needs `library: "document"` `colorGroup` necessita `library: "document"`
+@msg `colorGroup` needs `mode: "color"` `colorGroup` necessita `mode: "color"`
+@msg `colorGroup` needs `palette: "documentLibrary"` `colorGroup` necessita `palette: "documentLibrary"`
+@msg `command` must be a command whose menu item opens a dialog (see ui.menuDialog) `command` ha de ser una ordre que obri un diàleg des del seu element de menú (vegeu ui.menuDialog)
+@msg `corners` must be an array of anchor indices, not {v} `corners` ha de ser una matriu d’índexs de punts d’ancoratge, no {v}
+@msg `Custom` stands for changed settings: save the preset under another name `Custom` representa una configuració modificada: deseu el preajust amb un altre nom
+@msg `dither` applies to gradient fills (paint.setFill) `dither` s’aplica als farciments de degradat (paint.setFill)
+@msg `dither` applies to gradient fills (stroke: false) `dither` s’aplica als farciments de degradat (stroke: false)
+@msg `dither` must be true or false `dither` ha de ser cert o fals
+@msg `documentData` is {size} bytes (limit {MAX_DOCUMENT_DATA}) `documentData` té {size} bytes (límit {MAX_DOCUMENT_DATA})
+@msg `freeform.lines` must be an array `freeform.lines` ha de ser una matriu
+@msg `freeform.points` must be an array `freeform.points` ha de ser una matriu
+@msg `gradient` must be an object `gradient` ha de ser un objecte
+@msg `groupColors` must be an array `groupColors` ha de ser una matriu
+@msg `id` is the step reference {r}, which only `run` and `command_batch` resolve `id` és la referència del pas {r}, que només resolen `run` i `command_batch`
+@msg `ids` must be an array of object ids, not {v} `ids` ha de ser una matriu d’identificadors d’objecte, no {v}
+@msg `library` is a library id or name (see {list}) `library` és un identificador o un nom de biblioteca (vegeu {list})
+@msg `method` must be classic or perceptual `method` ha de ser classic o perceptual
+@msg `minAnchors` and `maxAnchors` must be whole numbers `minAnchors` i `maxAnchors` han de ser nombres enters
+@msg `mode` applies to freeform gradients `mode` s’aplica als degradats de forma lliure
+@msg `mode` must be grayscale, rgb, hsb, cmyk or websafe `mode` ha de ser grayscale, rgb, hsb, cmyk o websafe
+@msg `name` is empty `name` és buit
+@msg `newName` is empty `newName` és buit
+@msg `pathfinder` must be an object `pathfinder` ha de ser un objecte
+@msg `preserve` must be an object `preserve` ha de ser un objecte
+@msg `sampleSize` must be 1, 3 or 5 `sampleSize` ha de ser 1, 3 o 5
+@msg `select` must be true or false `select` ha de ser cert o fals
+@msg `stops` must be an array `stops` ha de ser una matriu
+@msg `svg` must be an object of SVG options (see document.formats) `svg` ha de ser un objecte d’opcions SVG (vegeu document.formats)
+@msg `to` must be "corner" or "smooth" `to` ha de ser "corner" o "smooth"
+@msg `{_1}` has no brushes to apply `{_1}` no té pinzells per aplicar
+@msg `{_1}` has no symbols to place `{_1}` no té símbols per col·locar
+@msg `{_1}` is no save command `{_1}` no és una ordre de desar
+@msg `{area}` is no recovery area name `{area}` no és un nom d’àrea de recuperació
+@msg `{color}` is not a colour (#rrggbb or a preset name) `{color}` no és un color (#rrggbb o un nom de preajust)
+@msg `{file}` isn't a VectorCraft document, a PDF or a PDF-compatible .ai file `{file}` no és un document VectorCraft, un PDF ni un fitxer .ai compatible amb PDF
+@msg `{given}` isn't a library panel (see window.swatchLibrary) `{given}` no és un panell de biblioteca (vegeu window.swatchLibrary)
+@msg `{id}` has no envelope dialog `{id}` no té cap diàleg d’embolcall
+@msg `{keep}` is not a side of this axis `{keep}` no és un costat d’aquest eix
+@msg `{key}: {top}` and `options.{key}: {inner}` disagree: give the option once `{key}: {top}` i `options.{key}: {inner}` no coincideixen: doneu l’opció una sola vegada
+@msg `{key}` must be [x, y, width, height]: four finite numbers, width and height not negative `{key}` ha de ser [x, y, width, height]: quatre nombres finits, amb amplada i alçada no negatives
+@msg `{key}` must be `auto` or a language code such as `en` or `zh-hant` `{key}` ha de ser `auto` o un codi d’idioma com `en` o `zh-hant`
+@msg `{key}` must be a #rrggbb color `{key}` ha de ser un color #rrggbb
+@msg `{key}` must be a #rrggbb colour `{key}` ha de ser un color #rrggbb
+@msg `{key}` must be a number `{key}` ha de ser un nombre
+@msg `{key}` must be a number not below 0 `{key}` ha de ser un nombre no inferior a 0
+@msg `{key}` must be a number, not {v} `{key}` ha de ser un nombre, no {v}
+@msg `{key}` must be a string `{key}` ha de ser una cadena
+@msg `{key}` must be a whole number `{key}` ha de ser un nombre enter
+@msg `{key}` must be a whole number between {min} and {max} (got {x}) `{key}` ha de ser un nombre enter entre {min} i {max} (rebut {x})
+@msg `{key}` must be an array of these names: {_1} `{key}` ha de ser una matriu d’aquests noms: {_1}
+@msg `{key}` must be between {min} and {max} (got {x}) `{key}` ha d’estar entre {min} i {max} (rebut {x})
+@msg `{key}` must be one of {_1} `{key}` ha de ser un de {_1}
+@msg `{key}` must be true or false `{key}` ha de ser cert o fals
+@msg `{k}` must be [x, y] `{k}` ha de ser [x, y]
+@msg `{min_key}` is greater than `{max_key}` `{min_key}` és més gran que `{max_key}`
+@msg `{name}` has no options `{name}` no té opcions
+@msg `{name}` is a built-in preset and can't change: save it under another name `{name}` és un preajust integrat i no es pot canviar: deseu-lo amb un altre nom
+@msg `{name}` is a built-in preset and stays `{name}` és un preajust integrat i no es pot suprimir
+@msg `{name}` is a built-in workspace; choose another name `{name}` és un espai de treball integrat; trieu un altre nom
+@msg `{name}` is a process colour: tints apply to global and spot colours `{name}` és un color de procés: els tons s’apliquen als colors globals i directes
+@msg `{name}` is no recovery entry name `{name}` no és un nom d’entrada de recuperació
+@msg `{name}` isn't a colour swatch `{name}` no és una mostra de color
+@msg `{path}` must be a bool or an object of bools `{path}` ha de ser un booleà o un objecte de booleans
+@msg `{s}` is not a colour (#rrggbb or a preset name) `{s}` no és un color (#rrggbb o un nom de preajust)
+@msg `{text}`: step {i}'s result has no such value (write $$ for a literal $) `{text}`: el resultat del pas {i} no té aquest valor (escriviu $$ per a un $ literal)
+@msg `{text}`: there is no step {i} before this one (steps count from 0; write $$ for a literal $) `{text}`: no hi ha cap pas {i} abans d’aquest (els passos comencen a 0; escriviu $$ per a un $ literal)
+@msg `{tool}` isn't a freehand tool `{tool}` no és una eina de mà alçada
+@msg `{tool}` isn't a Liquify tool `{tool}` no és una eina de liquificació
+@msg `{to}` is not an available name `{to}` no és un nom disponible
+@msg `{what}` closes nothing `{what}` no tanca res
+@msg `{what}` closes something it didn't open `{what}` tanca una cosa que no havia obert
+@msg a bitmap is empty un mapa de bits és buit
+@msg a bitmap is too large to read un mapa de bits és massa gran per llegir-lo
+@msg a bristle brush name can have at most {max} characters: `{name}` has {count} el nom d’un pinzell de cerres pot tenir com a màxim {max} caràcters: `{name}` en té {count}
+@msg A browser with WebGPU or WebGL2 is required. Cal un navegador amb WebGPU o WebGL2.
+@msg a calculation has no result, as in a division by zero un càlcul no té resultat, com en una divisió per zero
+@msg a clipping path can't be attached to a path no es pot adjuntar un traçat de retall a un traçat
+@msg a clipping path can't take objects un traçat de retall no pot rebre objectes
+@msg a colour index is 0 to {_1}, not {n} un índex de color va de 0 a {_1}, no {n}
+@msg a colour is an index, #rrggbb or a preset name, not {v} un color és un índex, #rrggbb o un nom de preajust, no {v}
+@msg a document needs at least one artboard un document necessita com a mínim un tauler
+@msg a document needs at least one layer un document necessita com a mínim una capa
+@msg a freeform gradient keeps at least one point un degradat de forma lliure conserva com a mínim un punt
+@msg a gradient needs at least two stops un degradat necessita com a mínim dues parades
+@msg a graphic style named `{to}` already exists ja existeix un estil gràfic anomenat `{to}`
+@msg a key object sits on that point hi ha un objecte clau en aquest punt
+@msg a layer couldn't be read no s’ha pogut llegir una capa
+@msg a linked image can't become a gradient mesh: embed it first una imatge enllaçada no pot esdevenir una malla de degradat: incrusteu-la primer
+@msg a live effect runs while the document is drawn, so it can't be `heavy` un efecte dinàmic s’executa mentre es dibuixa el document, de manera que no pot ser `heavy`
+@msg a mask has more than one art block una màscara té més d’un bloc d’art
+@msg a page is missing falta una pàgina
+@msg a page out of range una pàgina fora de l’interval
+@msg a page tree kid isn't a reference un fill de l’arbre de pàgines no és una referència
+@msg a page tree node has no kids un node de l’arbre de pàgines no té fills
+@msg a page's placement is not finite la col·locació d’una pàgina no és finita
+@msg a path has too many points un traçat té massa punts
+@msg a path inside a compound path, blend, envelope, repeat or Intertwine group can't take objects un traçat dins d’un traçat compost, una fusió, un embolcall, una repetició o un grup Intertwine no pot rebre objectes
+@msg a PostScript error ({name} in `{op}`) un error de PostScript ({name} a `{op}`)
+@msg a PostScript error ({name} in `{op}`), in {procs} un error de PostScript ({name} a `{op}`), a {procs}
+@msg a PostScript error ({name} in `{op}`: {at}) un error de PostScript ({name} a `{op}`: {at})
+@msg a PostScript error ({name} in `{op}`: {at}), in {procs} un error de PostScript ({name} a `{op}`: {at}), a {procs}
+@msg a PostScript error ({name} in `{op}`: {at}; {meaning}) un error de PostScript ({name} a `{op}`: {at}; {meaning})
+@msg a PostScript error ({name} in `{op}`: {at}; {meaning}), in {procs} un error de PostScript ({name} a `{op}`: {at}; {meaning}), a {procs}
+@msg a PostScript error ({name} in `{op}`; {meaning}) un error de PostScript ({name} a `{op}`; {meaning})
+@msg a PostScript error ({name} in `{op}`; {meaning}), in {procs} un error de PostScript ({name} a `{op}`; {meaning}), a {procs}
+@msg a PostScript error ({name}) un error de PostScript ({name})
+@msg a PostScript error ({name}; {meaning}) un error de PostScript ({name}; {meaning})
+@msg a preset named `{_1}` exists ja existeix un preajust anomenat `{_1}`
+@msg a slice size must be a positive number of points la mida d’un tall ha de ser un nombre positiu de punts
+@msg a spine keeps at least two points una línia central conserva com a mínim dos punts
+@msg a stream runs past the end un flux sobrepassa el final
+@msg a stream's length is wrong la longitud d’un flux és incorrecta
+@msg a stream's length isn't a number la longitud d’un flux no és un nombre
+@msg a swatch or color group named `{n}` exists ja existeix una mostra o un grup de colors anomenat `{n}`
+@msg a value has the wrong type for the operator un valor té el tipus incorrecte per a l’operador
+@msg a value is outside the range the operator takes un valor està fora de l’interval que accepta l’operador
+@msg a {width}×{height} screenshot's byte count overflows el recompte de bytes d’una captura de pantalla de {width}×{height} es desborda
+@msg action is required cal una acció
+@msg add a format to export afegiu un format per exportar
+@msg aiVersion 7 writes legacy .ai files; a .ait template is always PDF-compatible aiVersion 7 escriu fitxers .ai heretats; una plantilla .ait sempre és compatible amb PDF
+@msg already editing a pattern ja s’està editant un motiu
+@msg an exporter always gets an export's budget: leave `budget` out un exportador sempre rep el pressupost d’una exportació: ometeu `budget`
+@msg an image has no pixels and was left out una imatge no té píxels i s’ha omès
+@msg an image of {w} × {h} pixels is shown at reduced size una imatge de {w} × {h} píxels es mostra a mida reduïda
+@msg an image of {w} × {h} pixels is too large to draw una imatge de {w} × {h} píxels és massa gran per dibuixar-la
+@msg an image VectorCraft can't read was left out s’ha omès una imatge que VectorCraft no pot llegir
+@msg an image whose data is cut short was left out s’ha omès una imatge les dades de la qual estan tallades
+@msg an object can't be read no es pot llegir un objecte
+@msg an object in perspective would leave the edited grid un objecte en perspectiva sortiria de la quadrícula editada
+@msg An object takes one 3D effect. Edit the existing effect's options, or remove it first. Un objecte admet un efecte 3D. Editeu les opcions de l’efecte existent o suprimiu-lo primer.
+@msg anchor must name a registered panel l’àncora ha de nomenar un panell registrat
+@msg Angles require two straight segments Els angles requereixen dos segments rectes
+@msg antiAlias `{id}`: none, art or type antiAlias `{id}`: cap, art o text
+@msg area type in frames too short for a line of the font it shows in got taller frames ({_1}): their type wouldn't show otherwise el text d’àrea en marcs massa baixos per a una línia del tipus de lletra que mostren ha rebut marcs més alts ({_1}): d’altra manera el seu text no es veuria
+@msg artboard {0} does not exist el tauler {0} no existeix
+@msg at this scale the drawing is {w} × {h} pt, more than the canvas holds: choose a smaller scale or fit it to the artboard a aquesta escala el dibuix fa {w} × {h} pt, més del que admet el llenç: trieu una escala més petita o ajusteu-lo al tauler
+@msg automation filesystem access is not granted: read authority is absent: {path} no s’ha concedit accés al sistema de fitxers de l’automatització: no hi ha autoritat de lectura: {path}
+@msg automation filesystem access is not granted: write authority is absent: {path} no s’ha concedit accés al sistema de fitxers de l’automatització: no hi ha autoritat d’escriptura: {path}
+@msg automation path rejected: a link that leads nowhere: {path} camí d’automatització rebutjat: un enllaç que no porta enlloc: {path}
+@msg automation path rejected: cannot resolve {path}: {e} camí d’automatització rebutjat: no es pot resoldre {path}: {e}
+@msg automation path rejected: outside the read root {root}: {path} camí d’automatització rebutjat: fora de l’arrel de lectura {root}: {path}
+@msg automation path rejected: outside the read roots {roots}: {path} camí d’automatització rebutjat: fora de les arrels de lectura {roots}: {path}
+@msg automation path rejected: outside the write root {root}: {path} camí d’automatització rebutjat: fora de l’arrel d’escriptura {root}: {path}
+@msg automation path rejected: outside the write roots {roots}: {path} camí d’automatització rebutjat: fora de les arrels d’escriptura {roots}: {path}
+@msg automation path rejected: parent traversal below a folder that doesn't exist: {path} camí d’automatització rebutjat: recorregut ascendent per sota d’una carpeta que no existeix: {path}
+@msg automation path rejected: path is empty camí d’automatització rebutjat: el camí és buit
+@msg automation path rejected: reserved device names are not allowed: {path} camí d’automatització rebutjat: no es permeten noms de dispositiu reservats: {path}
+@msg axis must be "vertical", "horizontal" or an angle in degrees, not `{v}` l’eix ha de ser "vertical", "horizontal" o un angle en graus, no `{v}`
+@msg background {other}: transparent, white, black or a colour such as "#ff8800" fons {other}: transparent, blanc, negre o un color com "#ff8800"
+@msg bad color {v} color incorrecte {v}
+@msg bad colour `{hex}` (#rrggbb) color incorrecte `{hex}` (#rrggbb)
+@msg bad page tree arbre de pàgines incorrecte
+@msg bad shortcut drecera incorrecta
+@msg bad stream length longitud de flux incorrecta
+@msg bad trailer tràiler incorrecte
+@msg balance must be between 0 and 100 l’equilibri ha d’estar entre 0 i 100
+@msg batch step {_1} (`{id}`) failed: {e} el pas de lot {_1} (`{id}`) ha fallat: {e}
+@msg Batch: {count} processed Lot: {count} processats
+@msg Batch: {count} processed, {failed} failed Lot: {count} processats, {failed} fallits
+@msg before must name a panel before ha de nomenar un panell
+@msg below and above must name a panel floating in another group below i above han de nomenar un panell flotant en un altre grup
+@msg Blend colors: select at least three objects with filled colours Fusiona colors: seleccioneu com a mínim tres objectes amb colors de farciment
+@msg BMP files are RGB or grayscale: colorModel rgb or gray Els fitxers BMP són RGB o escala de grisos: colorModel rgb o gray
+@msg brightness must be dark|mediumDark|mediumLight|light la brillantor ha de ser dark|mediumDark|mediumLight|light
+@msg brushes move only within their type els pinzells només es mouen dins del seu tipus
+@msg can't encode the document: {0} no es pot codificar el document: {0}
+@msg can't parse shortcut `{c}` no es pot analitzar la drecera `{c}`
+@msg can't parse shortcut `{s}` for `{k}` no es pot analitzar la drecera `{s}` per a `{k}`
+@msg can't save version {0}: VectorCraft writes versions {MIN_VERSION} to {VERSION} no es pot desar la versió {0}: VectorCraft escriu versions de {MIN_VERSION} a {VERSION}
+@msg can't write .{ext} images no es poden escriure imatges .{ext}
+@msg cancelled; nothing was changed cancel·lat; no s’ha canviat res
+@msg cannot distort a zero-size bounding box no es pot distorsionar un quadre delimitador de mida zero
+@msg cannot read PDF: {0} no es pot llegir el PDF: {0}
+@msg cannot split an open path at its end point no es pot dividir un traçat obert al seu punt final
+@msg check a layer to export marqueu una capa per exportar
+@msg check an asset to export marqueu un recurs per exportar
+@msg choice must be "merge" or "add", not `{choice}` l’opció ha de ser "merge" o "add", no `{choice}`
+@msg Choose a circle or a perfect arc Trieu un cercle o un arc perfecte
+@msg choose a destination folder trieu una carpeta de destinació
+@msg choose a direction to divide in trieu una direcció per dividir
+@msg choose a folder to export to trieu una carpeta on exportar
+@msg choose a location for the package trieu una ubicació per al paquet
+@msg Choose a precision from 0 to 6 Trieu una precisió de 0 a 6
+@msg choose a source folder trieu una carpeta d’origen
+@msg choose the font files to add trieu els fitxers de tipus de lletra per afegir
+@msg Choose two different points Trieu dos punts diferents
+@msg Choose two non-parallel straight segments Trieu dos segments rectes no paral·lels
+@msg Choose two nonzero angle arms Trieu dos braços d’angle no nuls
+@msg clipboard is empty el porta-retalls és buit
+@msg closing needs three anchors el tancament necessita tres punts d’ancoratge
+@msg colorTable.{what}: `{h}` is not a colour such as "#ff8800" colorTable.{what}: `{h}` no és un color com "#ff8800"
+@msg colorTable.{what}: at most {MAX_TABLE} colours colorTable.{what}: com a màxim {MAX_TABLE} colors
+@msg column docks a set as a dock column, with no anchor or icon column acobla un conjunt com a columna d’acoblament, sense àncora ni icona
+@msg column must be true or a number from 1 column ha de ser cert o un nombre a partir d’1
+@msg Combine Slices: the slices have no bounds Combina els talls: els talls no tenen límits
+@msg command `{0}` is not available right now: {1} l’ordre `{0}` no està disponible ara mateix: {1}
+@msg compound paths can only contain paths els traçats compostos només poden contenir traçats
+@msg compressed (RLE) bitmaps can't be read yet encara no es poden llegir els mapes de bits comprimits (RLE)
+@msg control must be fillStroke, coloring, drawMode or screenMode control ha de ser fillStroke, coloring, drawMode o screenMode
+@msg Convert to Artboards: selection has no area Converteix en taulers: la selecció no té àrea
+@msg Convert to Shape: no rectangles or ellipses selected Converteix en forma: no s’ha seleccionat cap rectangle ni el·lipse
+@msg Copied the CSS of {rules} object(s) S’ha copiat el CSS de {rules} objecte(s)
+@msg Copied the script report S’ha copiat l’informe de l’script
+@msg Corners edits the corners of a path Cantonades edita les cantonades d’un traçat
+@msg could not decode image: {0} no s’ha pogut descodificar la imatge: {0}
+@msg Couldn't copy to the system clipboard: {e} No s’ha pogut copiar al porta-retalls del sistema: {e}
+@msg Couldn't open {name}: {e} No s’ha pogut obrir {name}: {e}
+@msg Couldn't paste from the clipboard: {e} No s’ha pogut enganxar del porta-retalls: {e}
+@msg Couldn't place {name}: the document it was dropped on was closed No s’ha pogut col·locar {name}: el document on es va deixar anar estava tancat
+@msg Couldn't place {name}: the document it was placed in was closed No s’ha pogut col·locar {name}: el document on es va col·locar estava tancat
+@msg Couldn't place {name}: {e} No s’ha pogut col·locar {name}: {e}
+@msg Couldn't read {name}: {e} No s’ha pogut llegir {name}: {e}
+@msg Couldn't save recovery data: {e} No s’han pogut desar les dades de recuperació: {e}
+@msg Create from Guides: the document has no artboard Crea a partir de guies: el document no té cap tauler
+@msg Create from Guides: the guides make more than {MAX_PIECES} slices Crea a partir de guies: les guies fan més de {MAX_PIECES} talls
+@msg Create from Selection: the selection has no area Crea a partir de la selecció: la selecció no té àrea
+@msg Create Outlines: select text objects Crea contorns: seleccioneu objectes de text
+@msg damaged malmès
+@msg Data Recovery has nowhere to keep copies: set Preferences → File Handling → Data Recovery → Folder (recoveryFolder) La recuperació de dades no té cap lloc on guardar còpies: configureu Preferències → Gestió de fitxers → Recuperació de dades → Carpeta (recoveryFolder)
+@msg data the program reads is damaged or cut short, or the program asks for a position in a file that has none les dades que llegeix el programa estan malmeses o tallades, o el programa demana una posició en un fitxer que no en té
+@msg decimals must be {_1}–{_2} (got {_3}) els decimals han de ser {_1}–{_2} (rebut {_3})
+@msg Dimension point is outside the canvas El punt de dimensió és fora del llenç
+@msg Dimension size is outside its supported range La mida de dimensió és fora del seu interval compatible
+@msg direct-select anchor points to cut at (not the end points of open paths) seleccioneu directament els punts d’ancoratge on tallar (no els punts finals dels traçats oberts)
+@msg Discarded {_1} recovered document(s) S’han descartat {_1} document(s) recuperat(s)
+@msg divide into 1 to {MAX_PIECES} slices divideix en 1 a {MAX_PIECES} talls
+@msg Divide Objects Below: select a path Divideix els objectes de sota: seleccioneu un traçat
+@msg Divide Objects Below: select exactly one path Divideix els objectes de sota: seleccioneu exactament un traçat
+@msg docking action contains an unknown panel or an excessive split path l’acció d’acoblament conté un panell desconegut o un camí de divisió excessiu
+@msg Downloaded {_1} file(s) S’han baixat {_1} fitxer(s)
+@msg Downloaded {what} S’ha baixat {what}
+@msg Edit Original opens image and document files only; “{name}” is not one Edita l’original només obre fitxers d’imatge i de document; “{name}” no ho és
+@msg effect {k} is `{_1}`, not `{id}` l’efecte {k} és `{_1}`, no `{id}`
+@msg Embedded {n} image(s) S’han incrustat {n} imatge(s)
+@msg Embedded {n} image(s); {missing} missing: relink them first S’han incrustat {n} imatge(s); en falten {missing}: torneu-los a enllaçar primer
+@msg empty brush stroke traç de pinzell buit
+@msg empty cutter tallador buit
+@msg empty path traçat buit
+@msg every numbered name for it is taken in the Fonts folder tots els noms numerats per a això estan ocupats a la carpeta de tipus de lletra
+@msg every numbered name for {name} is taken in the document's folder tots els noms numerats per a {name} estan ocupats a la carpeta del document
+@msg every search thread stopped on an internal error (please report this bug) tots els fils de cerca s’han aturat per un error intern (informeu d’aquest error)
+@msg Expand Appearance: the selection has a basic appearance Expandeix l’aparença: la selecció té una aparença bàsica
+@msg Expand: no brush strokes selected Expandeix: no s’ha seleccionat cap traç de pinzell
+@msg Expand: no gradient fills Expandeix: no hi ha farciments de degradat
+@msg Expand: nothing to expand Expandeix: no hi ha res per expandir
+@msg Export cancelled Exportació cancel·lada
+@msg Exported {count} file(s) to {folder} S’han exportat {count} fitxer(s) a {folder}
+@msg Exported {path} S’ha exportat {path}
+@msg Exported {what} S’ha exportat {what}
+@msg Exported {what} with {_1} note(s): {first} S’ha exportat {what} amb {_1} nota(es): {first}
+@msg Exporting {_1} S’està exportant {_1}
+@msg file version {0} is newer than this VectorCraft supports ({VERSION}) la versió de fitxer {0} és més nova que la que admet aquest VectorCraft ({VERSION})
+@msg First measured segment no longer exists El primer segment mesurat ja no existeix
+@msg Flat Logo traced the image at {_1} × {_2} pixels, averaged down from {_3} × {_4}. Flat Logo ha traçat la imatge a {_1} × {_2} píxels, amb una mitjana rebaixada des de {_3} × {_4}.
+@msg Flatten Transparency: select objects to flatten Aplana la transparència: seleccioneu objectes per aplanar
+@msg Flatten Transparency: {e} Aplana la transparència: {e}
+@msg freeform line {i} must be an array of point indices la línia de forma lliure {i} ha de ser una matriu d’índexs de punts
+@msg freeform point {i} needs `at` [x, y] and a valid `color` el punt de forma lliure {i} necessita `at` [x, y] i un `color` vàlid
+@msg give a fraction `t` from 0 to 1 doneu una fracció `t` de 0 a 1
+@msg give at least one of `name`, `kind`, `text`, `within`, `intersects`, `minWidth`, `maxWidth`, `minHeight`, `maxHeight`, `minThickness`, `maxThickness`, `minArea`, `maxArea`, `minAnchors`, `maxAnchors` doneu com a mínim un de `name`, `kind`, `text`, `within`, `intersects`, `minWidth`, `maxWidth`, `minHeight`, `maxHeight`, `minThickness`, `maxThickness`, `minArea`, `maxArea`, `minAnchors`, `maxAnchors`
+@msg give both `start` and `end` [x, y] (or neither) doneu tant `start` com `end` [x, y] (o cap dels dos)
+@msg give corners of the path: anchors between two straight sides doneu les cantonades del traçat: punts d’ancoratge entre dos costats rectes
+@msg give corners of the path: anchors where its sides meet at an angle doneu les cantonades del traçat: punts d’ancoratge on els seus costats es troben en angle
+@msg give horizontal or vertical doneu horitzontal o vertical
+@msg give only one of onto, below and above doneu només un de onto, below i above
+@msg give the path `id` doneu l’`id` del traçat
+@msg give the path `id` and the width point `index` doneu el `id` del traçat i l’`index` del punt d’amplada
+@msg Global Edit works on paths, compound paths and symbol instances L’edició global funciona amb traçats, traçats compostos i instàncies de símbol
+@msg gradient “{name}” isn't defined in the file: a plain colour stands in for it el degradat «{name}» no està definit al fitxer: en lloc seu es fa servir un color pla
+@msg group must be true or false group ha de ser true o false
+@msg guides are locked les guies estan bloquejades
+@msg handle must be in or out handle ha de ser in o out
+@msg heightWidth must be from 1 to 1000 % heightWidth ha d’estar entre 1 i 1000 %
+@msg icon must be true or false icon ha de ser true o false
+@msg icon only docks a panel in the icon column, with no anchor icon només acobla un panell a la columna d’icones, sense ancoratge
+@msg id {value} is a layer, not an object id {value} és una capa, no un objecte
+@msg id {value} is a layer, not an object; move layers with layer.move id {value} és una capa, no un objecte; moveu les capes amb layer.move
+@msg ids must contain 1–10000 object ids ids ha de contenir entre 1 i 10000 ids d’objecte
+@msg image '{key}' has no pixels and was left out la imatge «{key}» no té píxels i s’ha omès
+@msg image data `{_1}` is missing falten les dades d’imatge `{_1}`
+@msg image is empty la imatge és buida
+@msg Image Trace: the traced image is missing Traça la imatge: falta la imatge traçada
+@msg image would be too large; lower the resolution la imatge seria massa gran; reduïu la resolució
+@msg Imported library {name} S’ha importat la biblioteca {name}
+@msg Imported {what}: {_1} S’ha importat {what}: {_1}
+@msg index must be a number or first, previous, next or last index ha de ser un número o first, previous, next o last
+@msg index must be a number or first, previous, next or last, not `{other}` index ha de ser un número o first, previous, next o last, no `{other}`
+@msg index must be ≥ 0 index ha de ser ≥ 0
+@msg Installed plug-in {_1} S’ha instal·lat el complement {_1}
+@msg installing from a path is not available on the web; pass the module as `dataBase64` la instal·lació des d’un camí no està disponible al web; passeu el mòdul com a `dataBase64`
+@msg internal error in `{cmd}`: {msg} (the document was left as it was before; please report this bug) error intern a `{cmd}`: {msg} (el document s’ha deixat com estava abans; informeu d’aquest error)
+@msg Internal error: {msg} (please report this bug) Error intern: {msg} (informeu d’aquest error)
+@msg internal error: {msg} (please report this bug) error intern: {msg} (informeu d’aquest error)
+@msg Invalid dimension distance Distància de cota no vàlida
+@msg Invalid dimension font name Nom de tipus de lletra de cota no vàlid
+@msg Invalid drawing scale Escala de dibuix no vàlida
+@msg invalid image data for `{0}` dades d’imatge no vàlides per a `{0}`
+@msg invalid native panel set conjunt de panells natius no vàlid
+@msg invalid object id {value}: expected a non-negative integer id d’objecte {value} no vàlid: s’esperava un enter no negatiu
+@msg Invalid panel layout; restored the default dock Disposició de panells no vàlida; s’ha restaurat l’acoblament per defecte
+@msg invalid parameters for `{cmd}`: {msg} paràmetres no vàlids per a `{cmd}`: {msg}
+@msg invalid PDF setting: {0} configuració del PDF no vàlida: {0}
+@msg Invalid real scale Escala real no vàlida
+@msg invalid restored panel group grup de panells restaurat no vàlid
+@msg invalid stroke widths amplades de traç no vàlides
+@msg is not an image VectorCraft reads no és una imatge que VectorCraft pugui llegir
+@msg it decompresses to more than {_1} MB es descomprimeix fins a més de {_1} MB
+@msg it ends inside a layer acaba dins d’una capa
+@msg it has art outside its layers té art fora de les seves capes
+@msg it has more than one artboard té més d’un tauler
+@msg it has more than {MAX_NODES} objects té més de {MAX_NODES} objectes
+@msg it has no layers no té capes
+@msg it has no page no té pàgina
+@msg it has too many text objects té massa objectes de text
+@msg it has too many values in a row té massa valors en una fila
+@msg it has too much text té massa text
+@msg it has {_1}, which VectorCraft doesn't read from it yet té {_1}, que VectorCraft encara no en llegeix
+@msg it uses `{at}`, which VectorCraft's PostScript reader doesn't know fa servir `{at}`, que el lector de PostScript de VectorCraft no coneix
+@msg it uses `{at}`, which VectorCraft's PostScript reader doesn't know, in {procs} fa servir `{at}`, que el lector de PostScript de VectorCraft no coneix, a {procs}
+@msg its editing data doesn't say where its art is les seves dades d’edició no diuen on és el seu art
+@msg its editing data doesn't say where its artboard is les seves dades d’edició no diuen on és el seu tauler
+@msg its editing data has no layers les seves dades d’edició no tenen capes
+@msg its editing data is damaged les seves dades d’edició estan malmeses
+@msg its editing data is for a different page les seves dades d’edició són per a una altra pàgina
+@msg its editing data is for a {w} × {h} pt page, not the file's {pw} × {ph} pt page les seves dades d’edició són per a una pàgina de {w} × {h} pt, no per a la pàgina de {pw} × {ph} pt del fitxer
+@msg its editing data is for a {w} × {h} pt page, the file's {pw} × {ph} pt page at {scale} les seves dades d’edició són per a una pàgina de {w} × {h} pt, la pàgina de {pw} × {ph} pt del fitxer a {scale}
+@msg its layers use {_1}, which aren't read yet les seves capes fan servir {_1}, que encara no es llegeixen
+@msg its objects are nested too deeply els seus objectes estan imbricats massa profundament
+@msg its page has text, and its layers have no text objects to put it in la seva pàgina té text, i les seves capes no tenen objectes de text on posar-lo
+@msg its preview was placed instead, at screen resolution al seu lloc s’ha col·locat la seva previsualització, a la resolució de pantalla
+@msg its section ending with `%{end}` doesn't end la seva secció que acaba amb `%{end}` no acaba
+@msg its type is to come in as outlines, which only its page has el seu text ha d’entrar com a contorns, que només té la seva pàgina
+@msg its Windows metafile preview was opened instead, which may simplify the art al seu lloc s’ha obert la seva previsualització de metafitxer de Windows, que pot simplificar l’art
+@msg its zlib compression is damaged la seva compressió zlib està malmesa
+@msg its Zstandard compression is damaged la seva compressió Zstandard està malmesa
+@msg join needs open paths per unir calen traçats oberts
+@msg lang must be one of {_1} lang ha de ser un de {_1}
+@msg larger than 256 MB més gran de 256 MB
+@msg layers can't be wrap objects les capes no poden ser objectes d’embolcall
+@msg library panel `{given}` isn't missing its library al panell de biblioteca `{given}` no li falta la biblioteca
+@msg library panel `{given}` isn't open el panell de biblioteca `{given}` no està obert
+@msg linked pictures show the low-resolution preview saved in the file until their files are found: relink them in the Links panel les imatges enllaçades mostren la previsualització de baixa resolució desada al fitxer fins que es trobin els seus fitxers: torneu-les a enllaçar al panell Enllaços
+@msg Live Paint Merge: select a Live Paint group and the paths to add Fusió de pintura interactiva: seleccioneu un grup de pintura interactiva i els traçats que voleu afegir
+@msg Live Paint takes paths and compound paths: convert type, images and other objects to paths first La pintura interactiva accepta traçats i traçats compostos: convertiu abans el text, les imatges i altres objectes a traçats
+@msg Live Paint: select paths or compound paths Pintura interactiva: seleccioneu traçats o traçats compostos
+@msg Live Paint: these paths are too degenerate to paint Pintura interactiva: aquests traçats són massa degenerats per pintar-los
+@msg Loading VectorCraft… Carregant VectorCraft…
+@msg Make Guides: select paths Crea guies: seleccioneu traçats
+@msg mask art ends outside a mask dictionary l’art de la màscara acaba fora d’un diccionari de màscara
+@msg Measured anchor no longer exists El punt d’ancoratge mesurat ja no existeix
+@msg Measured segment no longer exists El segment mesurat ja no existeix
+@msg missing `folder` falta `folder`
+@msg missing `id` (see plugin.list) falta `id` (vegeu plugin.list)
+@msg missing `library` (see brush.libraries) falta `library` (vegeu brush.libraries)
+@msg missing `library` (see symbol.libraries) falta `library` (vegeu symbol.libraries)
+@msg missing `name` falta `name`
+@msg missing `tool` falta `tool`
+@msg missing index falta l’index
+@msg missing integer `{key}` falta el nombre enter `{key}`
+@msg missing number `{key}` falta el número `{key}`
+@msg missing panel layout falta la disposició de panells
+@msg move requires a destination panel per moure cal un panell de destinació
+@msg move requires an existing destination panel per moure cal un panell de destinació existent
+@msg Multichannel PSD files can't be read: save it in RGB, CMYK or Grayscale mode Els fitxers PSD multicanal no es poden llegir: deseu-los en mode RGB, CMYK o escala de grisos
+@msg name is empty el nom és buit
+@msg name the file poseu un nom al fitxer
+@msg New Window isn't available yet: a document opens in one window Finestra nova encara no està disponible: un document s’obre en una sola finestra
+@msg no active document no hi ha cap document actiu
+@msg no active perspective plane no hi ha cap pla de perspectiva actiu
+@msg no anchor points selected no hi ha cap punt d’ancoratge seleccionat
+@msg no app to open files here aquí no hi ha cap aplicació per obrir fitxers
+@msg no artboard no hi ha tauler
+@msg no artboard {i} (0-based; the document has {_1}) no hi ha el tauler {i} (basat en 0; el document en té {_1})
+@msg no artboard {i} (0-based; the document has {count}) no hi ha el tauler {i} (basat en 0; el document en té {count})
+@msg no artboards named no hi ha taulers amb nom
+@msg no artwork no hi ha art
+@msg no blend options no hi ha opcions de fusió
+@msg no bounds no hi ha límits
+@msg no brush `{n}` no hi ha el pinzell `{n}`
+@msg no brush `{n}` in `{_1}` no hi ha el pinzell `{n}` a `{_1}`
+@msg no brush library `{key}` (see brush.libraries) no hi ha la biblioteca de pinzells `{key}` (vegeu brush.libraries)
+@msg no brush named `{name}` no hi ha cap pinzell anomenat `{name}`
+@msg no brush selected no hi ha cap pinzell seleccionat
+@msg no catalog no hi ha catàleg
+@msg no changes since the last save no hi ha canvis des de l’últim desament
+@msg no clock to keep a heartbeat by no hi ha cap rellotge per mantenir un senyal de vida
+@msg no color group `{name}` in the document (see swatch.list) no hi ha el grup de colors `{name}` al document (vegeu swatch.list)
+@msg no colour group `{g}` no hi ha el grup de colors `{g}`
+@msg no cross-reference table no hi ha taula de referències creuades
+@msg no CSS to copy: select objects with CSS of their own no hi ha CSS per copiar: seleccioneu objectes amb CSS propi
+@msg no current layer no hi ha capa actual
+@msg no data no hi ha dades
+@msg no dialog open no hi ha cap diàleg obert
+@msg no document no hi ha document
+@msg no document open no hi ha cap document obert
+@msg no effect applied yet encara no s’ha aplicat cap efecte
+@msg no effect at index {k} no hi ha cap efecte a l’índex {k}
+@msg no empty artboards to delete no hi ha taulers buits per suprimir
+@msg no end record no hi ha registre final
+@msg no file manager here aquí no hi ha cap gestor de fitxers
+@msg no file reader no hi ha lector de fitxers
+@msg no file system here aquí no hi ha cap sistema de fitxers
+@msg no file writer no hi ha escriptor de fitxers
+@msg no files to place no hi ha fitxers per col·locar
+@msg No fonts are missing in this document No falta cap tipus de lletra en aquest document
+@msg no format to export to no hi ha cap format per exportar-hi
+@msg no free recovery area no hi ha àrea de recuperació lliure
+@msg no gradient swatch `{name}` no hi ha la mostra de degradat `{name}`
+@msg no gradient stop or freeform point is selected no hi ha cap parada de degradat ni cap punt de forma lliure seleccionat
+@msg no graphic style `{name}` no hi ha l’estil gràfic `{name}`
+@msg no graphic style `{n}` no hi ha l’estil gràfic `{n}`
+@msg no history to clear no hi ha historial per esborrar
+@msg no interaction in progress no hi ha cap interacció en curs
+@msg no key object no hi ha objecte clau
+@msg no library `{id}` no hi ha la biblioteca `{id}`
+@msg no library `{key}` (see {list}) no hi ha la biblioteca `{key}` (vegeu {list})
+@msg No linked files to look for No hi ha fitxers enllaçats per buscar
+@msg no Live Paint edge near that point no hi ha cap aresta de pintura interactiva a prop d’aquell punt
+@msg no Live Paint face at that point no hi ha cap cara de pintura interactiva en aquell punt
+@msg no native format no hi ha format natiu
+@msg no pages no hi ha pàgines
+@msg no pattern `{name}` no hi ha el motiu `{name}`
+@msg no pattern swatch `{name}` no hi ha la mostra de motiu `{name}`
+@msg no perspective grid preset named `{name}` no hi ha cap preajust de quadrícula de perspectiva anomenat `{name}`
+@msg no plug-in {0} is installed no hi ha instal·lat el complement {0}
+@msg no plug-in {id} is installed no hi ha instal·lat el complement {id}
+@msg no PNG encoder no hi ha codificador PNG
+@msg no point {i} (the gradient has {_1}) no hi ha el punt {i} (el degradat en té {_1})
+@msg no preset editor no hi ha editor de preajustos
+@msg no previous transform no hi ha cap transformació anterior
+@msg no print preset named `{base}` no hi ha cap preajust d’impressió anomenat `{base}`
+@msg no print preset named `{name}` no hi ha cap preajust d’impressió anomenat `{name}`
+@msg no print service no hi ha servei d’impressió
+@msg no revert command no hi ha cap ordre de reversió
+@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) no hi ha cap preajust de PDF desat anomenat `{name}` (els preajustos integrats són de només lectura: creeu-ne un de nou a partir d’ells)
+@msg no saved preset named `{name}` no hi ha cap preajust desat anomenat `{name}`
+@msg no saved preset named `{name}` to rename no hi ha cap preajust desat anomenat `{name}` per canviar-ne el nom
+@msg no saved presets no hi ha preajustos desats
+@msg no saved print preset named `{name}` ({DEFAULT_PRESET} is protected: start a new one from it) no hi ha cap preajust d’impressió desat anomenat `{name}` ({DEFAULT_PRESET} està protegit: creeu-ne un de nou a partir d’ell)
+@msg no saved profiles no hi ha perfils desats
+@msg no saved selection recalled no s’ha recuperat cap selecció desada
+@msg no saved selections no hi ha seleccions desades
+@msg No saved selections (Select → Save Selection…) No hi ha seleccions desades (Selecció → Desa la selecció…)
+@msg no saved themes no hi ha temes desats
+@msg No saved views (View → New View…) No hi ha vistes desades (Visualitza → Vista nova…)
+@msg no segment {segment} on line {line} no hi ha el segment {segment} a la línia {line}
+@msg no selected slice in the image: select slices, or save all of them no hi ha cap tall seleccionat a la imatge: seleccioneu talls o deseu-los tots
+@msg no selection bounds no hi ha límits de selecció
+@msg no similar objects found (rotated or reflected copies are not matched); change the Global Edit Options and try again no s’ha trobat cap objecte similar (les còpies girades o reflexades no coincideixen); canvieu les opcions d’edició global i torneu-ho a provar
+@msg no slice selected no hi ha cap tall seleccionat
+@msg no such action no existeix aquesta acció
+@msg no such anchor no existeix aquest punt d’ancoratge
+@msg no such artboard no existeix aquest tauler
+@msg no such document no existeix aquest document
+@msg no such layer or object no existeix aquesta capa o objecte
+@msg no such object id {value} no existeix l’id d’objecte {value}
+@msg no such object {0} no existeix l’objecte {0}
+@msg no such perspective grid preset no existeix aquest preajust de quadrícula de perspectiva
+@msg no such recent file no existeix aquest fitxer recent
+@msg no such recent font no existeix aquest tipus de lletra recent
+@msg no such saved selection no existeix aquesta selecció desada
+@msg no such segment no existeix aquest segment
+@msg no such spine point no existeix aquest punt de l’espina
+@msg no such spine segment no existeix aquest segment de l’espina
+@msg no such subpath no existeix aquest subtraçat
+@msg no such user library no existeix aquesta biblioteca d’usuari
+@msg no such view no existeix aquesta vista
+@msg no such width point no existeix aquest punt d’amplada
+@msg no swatch `{name}` no hi ha la mostra `{name}`
+@msg no swatch library `{l}` (see swatch.library.list) no hi ha la biblioteca de mostres `{l}` (vegeu swatch.library.list)
+@msg no symbol `{n}` no hi ha el símbol `{n}`
+@msg no symbol `{n}` in `{_1}` no hi ha el símbol `{n}` a `{_1}`
+@msg no symbol instances selected no hi ha cap instància de símbol seleccionada
+@msg no symbol library `{key}` (see symbol.libraries) no hi ha la biblioteca de símbols `{key}` (vegeu symbol.libraries)
+@msg no symbol named `{n}` no hi ha cap símbol anomenat `{n}`
+@msg no target object has an opacity mask: select one or give `id` no hi ha cap objecte de destinació amb màscara d’opacitat: seleccioneu-ne un o doneu `id`
+@msg no threaded text selected no hi ha cap text encadenat seleccionat
+@msg no user library folder here aquí no hi ha cap carpeta de biblioteca d’usuari
+@msg no user workspace `{from}` no hi ha l’espai de treball d’usuari `{from}`
+@msg node {_1} is not text el node {_1} no és text
+@msg Non-finite dimension Cota no finita
+@msg not a blend no és una fusió
+@msg not a DXF drawing no és un dibuix DXF
+@msg not a file no és un fitxer
+@msg not a font file no és un fitxer de tipus de lletra
+@msg not a graphic style library (format `{_1}`) no és una biblioteca d’estils gràfics (format `{_1}`)
+@msg not a PSD file no és un fitxer PSD
+@msg not a shortcut set: the text doesn't start with a slash name and an opening brace no és un conjunt de dreceres: el text no comença amb un nom precedit de barra i una clau d’obertura
+@msg not a stored central record no és un registre central emmagatzemat
+@msg not a valid plug-in module: {0} no és un mòdul de complement vàlid: {0}
+@msg not a VectorCraft file: {0} no és un fitxer de VectorCraft: {0}
+@msg not a VectorCraft shortcut set (missing `overrides`) no és un conjunt de dreceres de VectorCraft (falta `overrides`)
+@msg not an EMF or WMF file no és un fitxer EMF o WMF
+@msg not an RTF file: it doesn't start with {\\rtf no és un fitxer RTF: no comença amb {\\rtf
+@msg not found no s’ha trobat
+@msg not in pattern editing mode no esteu en mode d’edició de motius
+@msg finish editing the pattern first acabeu primer l’edició del motiu
+@msg nothing encoded no s’ha codificat res
+@msg nothing in data set {name} was applied: no object is bound to a variable it has a value for no s’ha aplicat res del conjunt de dades {name}: cap objecte està vinculat a una variable per a la qual tingui un valor
+@msg nothing selected no hi ha res seleccionat
+@msg nothing to align no hi ha res per alinear
+@msg nothing to distort no hi ha res per distorsionar
+@msg nothing to export: the document has no visible art (or turn on Use Artboards) no hi ha res per exportar: el document no té art visible (o activeu Utilitza els taulers)
+@msg nothing to preview no hi ha res per previsualitzar
+@msg nothing to print no hi ha res per imprimir
+@msg nothing to redo no hi ha res per refer
+@msg nothing to save: the document has no visible art no hi ha res per desar: el document no té art visible
+@msg nothing to undo no hi ha res per desfer
+@msg nothing to warp no hi ha res per deformar
+@msg nothing to wrap no hi ha res per ajustar-hi text
+@msg object has no weighted stroke l’objecte no té cap traç d’amplada variable
+@msg object ids are non-negative integers, not {v} els identificadors d’objecte són enters no negatius, no {v}
+@msg object {0} cannot have children l’objecte {0} no pot tenir fills
+@msg object {id} is not a path l’objecte {id} no és un traçat
+@msg object {id} is not a selected top-level object l’objecte {id} no és un objecte de nivell superior seleccionat
+@msg objects can't be nested more than 32 deep els objectes no es poden niar més de 32 nivells
+@msg objects inside a blend, envelope, repeat or Intertwine group can't be attached to a path els objectes dins d’una fusió, un embolcall, una repetició o un grup Intertwine no es poden adjuntar a un traçat
+@msg objects with several fills or strokes, effects or brushes came in as their drawn look ({_1}): their appearance isn't editable yet els objectes amb diversos farciments o traços, efectes o pinzells han arribat amb el seu aspecte dibuixat ({_1}): la seva aparença encara no és editable
+@msg Offset Path: select paths Desplaça el traçat: selecciona traçats
+@msg Offset Path: the offset leaves nothing of the selected paths (an inset larger than the shapes) Desplaça el traçat: el desplaçament no deixa res dels traçats seleccionats (una retracció més gran que les formes)
+@msg only a dock group above or below others collapses, not one beside another només es plega un grup d’acoblament situat a sobre o a sota d’altres, no un al costat d’un altre
+@msg only http, https and mailto URLs open in the browser, not “{url}” només les adreces URL http, https i mailto s’obren al navegador, no «{url}»
+@msg onto must name a floating panel onto ha de nomenar un panell flotant
+@msg onto must name a panel floating in another group onto ha de nomenar un panell que floti en un altre grup
+@msg open a document with data sets obre un document amb conjunts de dades
+@msg Opened with {_1} note(s): {_2} Obert amb {_1} nota(es): {_2}
+@msg Opened {url} Obert {url}
+@msg Outline Stroke: no stroked paths selected Contorneja el traç: no hi ha cap traçat amb traç seleccionat
+@msg Packaged {n} file(s) Empaquetat {n} fitxer(s)
+@msg Packaged {n} file(s) in {folder} Empaquetats {n} fitxer(s) a {folder}
+@msg Packaged {n} file(s) in {folder} {note} Empaquetats {n} fitxer(s) a {folder} {note}
+@msg Packaged {n} file(s) {note} Empaquetats {n} fitxer(s) {note}
+@msg Packaged {n} file(s){note} Empaquetats {n} fitxer(s){note}
+@msg Packaging {_1} Empaquetant {_1}
+@msg page size {w} × {h} mida de pàgina {w} × {h}
+@msg page {0} does not exist (the PDF has {1}) la pàgina {0} no existeix (el PDF en té {1})
+@msg panel group is empty el grup de panells és buit
+@msg panel is not in a dock group el panell no és en un grup d’acoblament
+@msg panel must name a registered panel panel ha de nomenar un panell registrat
+@msg part of the program isn't valid PostScript text una part del programa no és text PostScript vàlid
+@msg paste unavailable enganxament no disponible
+@msg path is already closed el traçat ja és tancat
+@msg paths contain invalid coordinates els traçats contenen coordenades no vàlides
+@msg paths: give at least one file paths: dona almenys un fitxer
+@msg pattern missing falta el motiu
+@msg patterns nested too deeply are filled with mid-grey els motius niats massa profundament s’omplen amb gris mitjà
+@msg PDF security settings are not an object la configuració de seguretat del PDF no és un objecte
+@msg PDF settings are not an object la configuració del PDF no és un objecte
+@msg PDF writer error: {0} error de l’escriptor PDF: {0}
+@msg percent must be above 0 and at most 6400, not {p} el percentatge ha de ser superior a 0 i com a màxim 6400, no {p}
+@msg Persistent libraries not found: {files} No s’han trobat biblioteques persistents: {files}
+@msg pick a colour, gradient or pattern to save as a swatch tria un color, un degradat o un motiu per desar-lo com a mostra
+@msg Placing {_1} Col·locant {_1}
+@msg plane must be left, right or ground plane ha de ser left, right o ground
+@msg plug-in ABI: {0} ABI del complement: {0}
+@msg plug-in exceeded its {0} el complement ha superat el seu {0}
+@msg plug-in failed: {0} el complement ha fallat: {0}
+@msg plug-in manifest: {0} manifest del complement: {0}
+@msg plug-in output: {0} sortida del complement: {0}
+@msg plug-in parameters: {0} paràmetres del complement: {0}
+@msg plug-in trapped: {0} el complement ha quedat atrapat: {0}
+@msg precision must be from 0.001 to 10 pt la precisió ha de ser d’entre 0,001 i 10 pt
+@msg Preview in Browser needs the desktop app (the web downloads files instead) La previsualització al navegador necessita l’aplicació d’escriptori (a la web es baixen els fitxers)
+@msg print settings are not an object la configuració d’impressió no és un objecte
+@msg printing isn't available here la impressió no està disponible aquí
+@msg range `{s}` is empty el rang `{s}` és buit
+@msg range `{s}`: `{part}` names no number el rang `{s}`: `{part}` no indica cap número
+@msg range `{s}`: `{part}` runs backwards el rang `{s}`: `{part}` va enrere
+@msg range `{s}`: `{t}` is not a number from 1 to {count} el rang `{s}`: `{t}` no és un número de l’1 a {count}
+@msg recovery copy `{file}`: {e} còpia de recuperació `{file}`: {e}
+@msg Release Guides: no guides Allibera les guies: no hi ha guies
+@msg Release: no layer to put the rectangle in Allibera: no hi ha capa on posar el rectangle
+@msg Relinked {_1} image(s) S’han tornat a enllaçar {_1} imatge(s)
+@msg Relinked {n} image(s) S’han tornat a enllaçar {n} imatge(s)
+@msg Relinked {n} image(s); not in that folder: {_1} S’han tornat a enllaçar {n} imatge(s); no són en aquesta carpeta: {_1}
+@msg Relinked {n} image(s); {name} couldn't be relinked: {reason} S’han tornat a enllaçar {n} imatge(s); no s’ha pogut tornar a enllaçar {name}: {reason}
+@msg Reload the page to go on (changes not saved yet may be lost). Recarrega la pàgina per continuar (els canvis encara no desats es poden perdre).
+@msg Replace Spine: select a blend and a path Substitueix l’espina: selecciona una fusió i un traçat
+@msg replace: the object to replace was changed or deleted replace: l’objecte que s’havia de substituir s’ha canviat o suprimit
+@msg Reset {_1} Restableix {_1}
+@msg resolutions must be between 1 and 2400 ppi les resolucions han de ser entre 1 i 2400 ppi
+@msg Restored {_1} recovered document(s): save them to keep them Restaurats {_1} document(s) recuperat(s): desa’ls per conservar-los
+@msg result would exceed the canvas (coordinates out of range) el resultat excediria el llenç (coordenades fora de rang)
+@msg Running “{name}”… S’està executant «{name}»…
+@msg Save for Web: the image is empty Desa per a la web: la imatge és buida
+@msg Save writes {_1}, not {_2}: use document.export for other formats Desa escriu {_1}, no {_2}: fes servir document.export per a altres formats
+@msg Save writes {_1}, not {_2}: use file.saveAsTemplate to write it Desa escriu {_1}, no {_2}: fes servir file.saveAsTemplate per escriure’l
+@msg saved panel layout is invalid; reset the workspace first la disposició de panells desada no és vàlida; restableix primer l’espai de treball
+@msg Saved recovery data for {title} S’han desat les dades de recuperació de {title}
+@msg Saved to User Defined: {_1} Desat a User Defined: {_1}
+@msg Saved {n} files beside {path} S’han desat {n} fitxers al costat de {path}
+@msg Saved {path} Desat {path}
+@msg Saved {path} with {_1} note(s): {first} Desat {path} amb {_1} nota(es): {first}
+@msg Saving S’està desant
+@msg Saving recovery data for {_1} S’estan desant les dades de recuperació de {_1}
+@msg Saving {_1} S’està desant {_1}
+@msg scale must be a number from {_1} to {_2}, not {_3} l’escala ha de ser un número de {_1} a {_2}, no {_3}
+@msg scale must be a number from {_1} to {_2}, not {s} l’escala ha de ser un número de {_1} a {_2}, no {s}
+@msg Scale must be drawing:real, for example 1:10 L’escala ha de ser drawing:real, per exemple 1:10
+@msg Scale ratio must be between 1:1000000 and 1000000:1 La relació d’escala ha d’estar entre 1:1000000 i 1000000:1
+@msg Scale Text Attributes: selected type has no scale to bake Escala els atributs de text: el text seleccionat no té cap escala per aplicar
+@msg searching a folder isn't available on the web la cerca en una carpeta no està disponible a la web
+@msg Second measured segment no longer exists El segon segment mesurat ja no existeix
+@msg select (or target) objects whose appearance isn't basic selecciona (o marca com a objectiu) objectes l’aparença dels quals no sigui bàsica
+@msg select a blend selecciona una fusió
+@msg select a blend or give `id` selecciona una fusió o dona `id`
+@msg select a clip group selecciona un grup de retall
+@msg select a gradient mesh selecciona una malla de degradat
+@msg select a linked image: an embedded one has no file selecciona una imatge enllaçada: una d’incrustada no té fitxer
+@msg select a Live Paint group selecciona un grup de pintura interactiva
+@msg select a repeat selecciona una repetició
+@msg select a stroke with a variable width selecciona un traç amb amplada variable
+@msg select a symbol instance selecciona una instància de símbol
+@msg select an envelope selecciona un embolcall
+@msg select an image selecciona una imatge
+@msg select an Image Trace object selecciona un objecte d’Image Trace
+@msg select an Intertwine group selecciona un grup Intertwine
+@msg select an object in perspective selecciona un objecte en perspectiva
+@msg select an Objects on Path group selecciona un grup d’objectes sobre un traçat
+@msg select artwork (or a colour group) to recolor selecciona la il·lustració (o un grup de colors) per recolorejar
+@msg select at least two objects selecciona almenys dos objectes
+@msg select objects, not layers selecciona objectes, no capes
+@msg select one object selecciona un objecte
+@msg select one path, or give its `id` selecciona un traçat o dona’n l’`id`
+@msg select paths or anchor points selecciona traçats o punts d’ancoratge
+@msg select paths to join selecciona traçats per unir
+@msg select some type first selecciona text primer
+@msg Select text or click into text with the Type tool to insert glyphs Selecciona text o fes clic dins del text amb l’eina de text per inserir glifs
+@msg select the art to export first selecciona primer la il·lustració que vols exportar
+@msg select the art to repeat selecciona la il·lustració que vols repetir
+@msg select the artwork to warp selecciona la il·lustració que vols deformar
+@msg select the objects to transform in perspective selecciona els objectes que vols transformar en perspectiva
+@msg select two or more graphic styles to merge selecciona dos o més estils gràfics per combinar-los
+@msg select two or more objects to distribute selecciona dos o més objectes per distribuir-los
+@msg select type in perspective selecciona text en perspectiva
+@msg selection has no bounds la selecció no té límits
+@msg Sent to {_1} Enviat a {_1}
+@msg shadings of an unknown type were left out els ombrejats d’un tipus desconegut s’han omès
+@msg shadings of more than 4096 patches or triangles were left out els ombrejats de més de 4096 pedaços o triangles s’han omès
+@msg shadings whose functions are of an unknown type are filled with their middle colour els ombrejats les funcions dels quals són d’un tipus desconegut s’omplen amb el seu color central
+@msg Shape Builder: no region under the pointer Constructor de formes: no hi ha cap regió sota el punter
+@msg Shape Builder: select paths or compound paths Constructor de formes: selecciona traçats o traçats compostos
+@msg shortcut for `{k}` must be a string la drecera de `{k}` ha de ser una cadena
+@msg Show All Hidden Attributes: nothing is hidden Mostra tots els atributs ocults: no hi ha res d’ocult
+@msg span must be "object" or "selection", got {v} span ha de ser "object" o "selection", s’ha rebut {v}
+@msg span: "selection" places a `gradient`, not a swatch span: "selection" col·loca un `gradient`, no una mostra
+@msg span: "selection" places a gradient: give `gradient` span: "selection" col·loca un degradat: dona `gradient`
+@msg span: "selection" places a linear or radial gradient, not a freeform one span: "selection" col·loca un degradat lineal o radial, no un de lliure
+@msg span: "selection" places the gradient itself: leave out `start` and `end` (they already place it in document coordinates) span: "selection" col·loca el degradat mateix: omet `start` i `end` (ja el col·loquen en coordenades del document)
+@msg Split Into Grid: select paths large enough for the grid Divideix en quadrícula: selecciona traçats prou grans per a la quadrícula
+@msg stop {i} needs `offset` la parada {i} necessita `offset`
+@msg stop {i} needs a valid `color` la parada {i} necessita un `color` vàlid
+@msg stop {i}: `{k}` must be a number la parada {i}: `{k}` ha de ser un número
+@msg SVG parse error: {0} error d’anàlisi de l’SVG: {0}
+@msg t, dx and dy must be finite t, dx i dy han de ser finits
+@msg Targa files are RGB: colorModel rgb Els fitxers Targa són RGB: colorModel rgb
+@msg Text Wrap: select a wrap object Ajustament de text: selecciona un objecte d’ajustament
+@msg that document is no longer open aquest document ja no està obert
+@msg The 3D surface is too complex; simplify the shape La superfície 3D és massa complexa; simplifica la forma
+@msg the action has no steps l’acció no té cap pas
+@msg the art could not be sampled no s’ha pogut mostrejar la il·lustració
+@msg the art has no bounds la il·lustració no té límits
+@msg the art is too light for any dots la il·lustració és massa clara per a cap punt
+@msg the art on them differs from the page's in {_1}% of it la il·lustració que contenen difereix de la de la pàgina en un {_1}%
+@msg the art on them differs from the page's in {_1}% of it: they come from its editing data all the same la il·lustració que contenen difereix de la de la pàgina en un {_1}%: tot i així, provenen de les seves dades d’edició
+@msg the artboard is locked el tauler està bloquejat
+@msg the artboard to fit must be a positive size up to {_1} pt el tauler a ajustar ha de tenir una mida positiva de fins a {_1} pt
+@msg the background worker stopped el processador en segon pla s’ha aturat
+@msg the blend has no spine la fusió no té espina
+@msg the Color Picker is not open el selector de color no està obert
+@msg the compressed file unpacks to more than VectorCraft reads ({_1} MB of document, {_2} MB per image) el fitxer comprimit es descomprimeix a més del que VectorCraft llegeix ({_1} MB de document, {_2} MB per imatge)
+@msg the compressed file unpacks to more than {_1} MB el fitxer comprimit es descomprimeix a més de {_1} MB
+@msg the document has never been saved el document no s’ha desat mai
+@msg the document has no artboard el document no té cap tauler
+@msg the document has no artboards el document no té taulers
+@msg the document has no brushes to save el document no té pinzells per desar
+@msg the document has no patterns el document no té motius
+@msg the document has no slices el document no té talls
+@msg the document has no symbols el document no té símbols
+@msg the document has no symbols to save el document no té símbols per desar
+@msg the document is too large to save compressed ({0}): save it with Use Compression off el document és massa gran per desar-lo comprimit ({0}): desa’l amb l’opció d’ús de compressió desactivada
+@msg the drawing has no layout `{_1}` (it has {_2}) el dibuix no té la disposició `{_1}` (té {_2})
+@msg the drawing is no longer loaded el dibuix ja no està carregat
+@msg the drawing is too large to open el dibuix és massa gran per obrir-lo
+@msg the EMF header is damaged la capçalera de l’EMF està malmesa
+@msg the export region is empty la regió d’exportació és buida
+@msg the export region is not finite la regió d’exportació no és finita
+@msg the export returned unreadable data l’exportació ha retornat dades il·legibles
+@msg the export wrote no file l’exportació no ha escrit cap fitxer
+@msg the file holds only a placeholder page, not its art (it was saved without PDF compatibility): save it again with PDF compatibility on, or as PDF or SVG el fitxer només conté una pàgina de farciment, no la seva il·lustració (es va desar sense compatibilitat PDF): desa’l de nou amb la compatibilitat PDF activada, o com a PDF o SVG
+@msg the file stopped being read (please report this bug) s’ha aturat la lectura del fitxer (informa d’aquest error, si us plau)
+@msg the file was read up to an error ({why}): what follows it was left out el fitxer s’ha llegit fins a un error ({why}): el que ve després s’ha omès
+@msg the file's layers weren't read ({_1}): it comes in as its page, in one layer no s’han llegit les capes del fitxer ({_1}): arriba com la seva pàgina, en una sola capa
+@msg the file's layers weren't read from its editing data ({_1}): they come from its PDF part no s’han llegit les capes del fitxer a partir de les seves dades d’edició ({_1}): provenen de la seva part PDF
+@msg the file's preview header points outside the file la capçalera de previsualització del fitxer apunta fora del fitxer
+@msg the file's variables and data sets weren't read (variables: {variables}, data sets: {data_sets}): the Variables panel doesn't list them no s’han llegit les variables ni els conjunts de dades del fitxer (variables: {variables}, conjunts de dades: {data_sets}): el panell Variables no els llista
+@msg the files come to more than 1 GB: add fewer at a time els fitxers sumen més d’1 GB: afegeix-ne menys alhora
+@msg The graphics processor tried first couldn't show the window, so VectorCraft started again on {summary} El processador gràfic provat primer no ha pogut mostrar la finestra, així que VectorCraft s’ha iniciat de nou amb {summary}
+@msg The graphics were lost and couldn't be restarted. Els gràfics s’han perdut i no s’han pogut reiniciar.
+@msg The graphics were lost and have been restarted Els gràfics s’han perdut i s’han reiniciat
+@msg the guide is on a hidden or locked layer la guia és en una capa oculta o bloquejada
+@msg the image can't be read as a texture la imatge no es pot llegir com a textura
+@msg the image has no usable size or position la imatge no té cap mida ni posició utilitzable
+@msg The image is {_1} × {_2} pixels, more than {LARGE_TRACE_SIDE} on a side: it is traced, but more slowly. A lower-fidelity preset or a smaller copy of the image traces faster. La imatge fa {_1} × {_2} píxels, més de {LARGE_TRACE_SIDE} per costat: es traça, però més lentament. Un preajust de menys fidelitat o una còpia més petita de la imatge es traça més de pressa.
+@msg the image is {width} × {height} pixels, more than Image Trace takes ({max} megapixels) la imatge fa {width} × {height} píxels, més del que admet Image Trace ({max} megapíxels)
+@msg The image was traced at {_1} × {_2} pixels, scaled down from {_3} × {_4} ({_5} megapixels at most). La imatge s’ha traçat a {_1} × {_2} píxels, reduïda des de {_3} × {_4} ({_5} megapíxels com a màxim).
+@msg the image's pixels can't be read no es poden llegir els píxels de la imatge
+@msg the image's pixels don't match its size els píxels de la imatge no coincideixen amb la seva mida
+@msg The last start of VectorCraft ended on {name} before its window appeared, so it started on {summary}. To try that graphics processor again, change Preferences › Performance › Graphics Processor or start with WGPU_BACKEND set L’últim inici de VectorCraft va acabar a {name} abans que aparegués la seva finestra, així que s’ha iniciat amb {summary}. Per tornar a provar aquell processador gràfic, canvia Preferències › Rendiment › Processador gràfic o inicia amb WGPU_BACKEND definit
+@msg The last start of VectorCraft ended while it listed the graphics processors, so it started on {summary} with OpenGL alone. To try the other graphics backends again, change Preferences › Performance › Graphics Processor or start with WGPU_BACKEND set L’últim inici de VectorCraft va acabar mentre llistava els processadors gràfics, així que s’ha iniciat amb {summary} només amb OpenGL. Per tornar a provar els altres sistemes gràfics, canvia Preferències › Rendiment › Processador gràfic o inicia amb WGPU_BACKEND definit
+@msg the library item is damaged l’element de la biblioteca està malmès
+@msg the layer has no objects to clip by la capa no té objectes amb què retallar
+@msg the layer or group is locked la capa o el grup està bloquejat
+@msg the layer to flatten into is hidden la capa on aplanar està oculta
+@msg the object already has an opacity mask l’objecte ja té una màscara d’opacitat
+@msg the object has no geometry l’objecte no té geometria
+@msg the object has no opacity mask l’objecte no té cap màscara d’opacitat
+@msg the object has no stroke l’objecte no té traç
+@msg the object is beyond the plane's horizon l’objecte és més enllà de l’horitzó del pla
+@msg the object isn't in perspective l’objecte no és en perspectiva
+@msg the object isn't on a perspective plane l’objecte no és en un pla de perspectiva
+@msg the object would cross the horizon of the perspective plane l’objecte creuaria l’horitzó del pla de perspectiva
+@msg the objects would leave the grid els objectes sortirien de la quadrícula
+@msg the operator looks for a mark on the stack and finds none l’operador busca una marca a la pila i no en troba cap
+@msg the operator needs more values than the stack holds l’operador necessita més valors dels que té la pila
+@msg the package came back damaged el paquet ha tornat malmès
+@msg the path has no point to continue from el traçat no té cap punt des d’on continuar
+@msg the PDF has no pages el PDF no té pàgines
+@msg the PDF is no longer loaded el PDF ja no està carregat
+@msg the PDF is password-protected: give its password el PDF està protegit amb contrasenya: dona la seva contrasenya
+@msg the PDF password is wrong la contrasenya del PDF és incorrecta
+@msg the pointer is beyond the plane's horizon el punter és més enllà de l’horitzó del pla
+@msg the preview image is empty la imatge de previsualització és buida
+@msg the print job has no data el treball d’impressió no té dades
+@msg the program asks for a resource that isn't defined el programa demana un recurs que no està definit
+@msg the program ends a dictionary it didn't begin el programa acaba un diccionari que no havia començat
+@msg the program goes past one of the reader's limits el programa supera un dels límits del lector
+@msg the program opens a file, which the reader can't do el programa obre un fitxer, cosa que el lector no pot fer
+@msg the program restores a saved state that was already restored el programa restaura un estat desat que ja s’havia restaurat
+@msg the program runs, deletes or renames a file, which the reader can't do el programa executa, suprimeix o reanomena un fitxer, cosa que el lector no pot fer
+@msg the PSD file has an unknown colour mode ({m}) el fitxer PSD té un mode de color desconegut ({m})
+@msg the PSD file is cut short el fitxer PSD està truncat
+@msg the PSD file's header is damaged la capçalera del fitxer PSD està malmesa
+@msg the PSD file's image data can't be read: {e} no es poden llegir les dades d’imatge del fitxer PSD: {e}
+@msg the PSD file's image data uses an unknown compression ({m}) les dades d’imatge del fitxer PSD utilitzen una compressió desconeguda ({m})
+@msg the PSD image is too large to read ({_1} × {_2} pixels) la imatge PSD és massa gran per llegir-la ({_1} × {_2} píxels)
+@msg the Save PDF dialog didn't open el diàleg Desa PDF no s’ha obert
+@msg the scale is not a usable number l’escala no és un nombre utilitzable
+@msg the screen color sampler is already open el mostrejador de color de pantalla ja és obert
+@msg the search couldn't start: try again in a moment la cerca no s’ha pogut iniciar: torna-ho a provar d’aquí a un moment
+@msg the selected stroke's profile is already listed as {_1} el perfil del traç seleccionat ja apareix com a {_1}
+@msg the selection has no gradient fill la selecció no té farciment de degradat
+@msg the selection has no gradient stroke la selecció no té traç de degradat
+@msg the selection has no pattern fill la selecció no té farciment de motiu
+@msg the selection has no pattern stroke la selecció no té traç de motiu
+@msg the selection has no URL (or they differ) la selecció no té cap URL (o difereixen)
+@msg the selection isn't in perspective la selecció no és en perspectiva
+@msg The shape is too complex for a 3D effect La forma és massa complexa per a un efecte 3D
+@msg the Simplify slider is not open el control lliscant Simplifica no és obert
+@msg the spine has no segments l’espina no té segments
+@msg the stroke has no weight el traç no té gruix
+@msg the SVG's elements are nested more than {0} deep els elements de l’SVG estan imbricats a més de {0} nivells de profunditat
+@msg the target layer is locked or hidden la capa de destinació està blocada o amagada
+@msg the thumbnail image is malformed la imatge de la miniatura està mal formada
+@msg the top object must be a path, compound path or text object to use as a clipping mask l’objecte superior ha de ser un traçat, un traçat compost o un objecte de text per fer-lo servir com a màscara de retall
+@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot el {what} de la finestra ({points} punts × {scale} DPI) no pot dimensionar una captura de pantalla
+@msg the WMF header is damaged la capçalera WMF està malmesa
+@msg the {tool} tool has no options l’eina {tool} no té opcions
+@msg there are no objects to release no hi ha cap objecte per alliberar
+@msg there are no printer settings to open here aquí no hi ha cap configuració d’impressora per obrir
+@msg thickness must be from 0.01 to 5000 pt el gruix ha de ser d’entre 0,01 i 5000 pt
+@msg this file was saved without PDF compatibility, and its editing data can't be read ({why}) aquest fitxer s’ha desat sense compatibilitat amb PDF i les seves dades d’edició no es poden llegir ({why})
+@msg this file's PostScript couldn't be read ({why}): {what} no s’ha pogut llegir el PostScript d’aquest fitxer ({why}): {what}
+@msg this format holds one artboard: export several as PDF or with document.exportForScreens aquest format admet un sol tauler: exporta’n diversos com a PDF o amb document.exportForScreens
+@msg this is a DWG drawing, which can't be read: save it from the CAD app as an ASCII DXF and open that aquest és un dibuix DWG, que no es pot llegir: desa’l des de l’aplicació CAD com a DXF ASCII i obre’l
+@msg this is a PostScript file (an .ai saved in an older format or without PDF compatibility, or an EPS file), not a PDF: File › Open and File › Place read it as EPS aquest és un fitxer PostScript (un .ai desat en un format més antic o sense compatibilitat amb PDF, o un fitxer EPS), no un PDF: Fitxer › Obre i Fitxer › Col·loca el llegeixen com a EPS
+@msg this is a PostScript file (an .ai saved in an older format or without PDF compatibility, or an EPS file), which can't be opened yet: save it as PDF, PDF-compatible .ai or SVG aquest és un fitxer PostScript (un .ai desat en un format més antic o sense compatibilitat amb PDF, o un fitxer EPS), que encara no es pot obrir: desa’l com a PDF, .ai compatible amb PDF o SVG
+@msg this is not a PostScript file aquest no és un fitxer PostScript
+@msg this isn't a flat-colour logo ({_1}% of its solid areas match a few flat colours), so Flat Logo mode would turn its gradients into patches: use Color mode instead aquest no és un logotip de colors plans ({_1}% de les seves àrees sòlides coincideixen amb uns quants colors plans), així que el mode Logotip pla convertiria els seus degradats en pedaços: fes servir el mode Color
+@msg this kind of brush has no options dialog yet aquest tipus de pinzell encara no té cap diàleg d’opcions
+@msg this PostScript file can't be read ({why}): save it as PDF or SVG in the app that made it aquest fitxer PostScript no es pot llegir ({why}): desa’l com a PDF o SVG a l’aplicació que l’ha creat
+@msg This shortcut file is in a form VectorCraft can't read. Aquest fitxer de dreceres té un format que VectorCraft no pot llegir.
+@msg this system has no screen color sampler aquest sistema no té cap mostrejador de color de pantalla
+@msg this trace would make more than {max} anchor points, more than the document can show smoothly: raise Noise, lower Paths or Colors, or pick a lower-fidelity preset aquesta traça crearia més de {max} punts d’ancoratge, més dels que el document pot mostrar amb fluïdesa: augmenta el Soroll, redueix Traçats o Colors, o tria un preajust de fidelitat més baixa
+@msg thumbnail: no page {n} (the file has 1) miniatura: no hi ha la pàgina {n} (el fitxer en té 1)
+@msg tintReduction must be from 0 to 100 % tintReduction ha de ser d’entre 0 i 100 %
+@msg too many changed shortcuts massa dreceres modificades
+@msg too many library panels were opened in this session s’han obert massa panells de biblioteca en aquesta sessió
+@msg tool (a tool id) is required cal un tool (un identificador d’eina)
+@msg tool shortcuts must be a single key (optionally with Shift) les dreceres d’eina han de ser una sola tecla (opcionalment amb Maj)
+@msg Trap: no edges of different colours meet among the selected objects Trap: no hi ha cap aresta de colors diferents que es trobin entre els objectes seleccionats
+@msg Trap: select two or more objects filled with solid colours Trap: selecciona dos o més objectes emplenats amb colors sòlids
+@msg truncated truncat
+@msg Unembedded to {_1} S’ha desincrustat a {_1}
+@msg unknown command `{0}` ordre desconeguda `{0}`
+@msg unknown command `{0}`; did you mean `{1}`? ordre desconeguda `{0}`; volies dir `{1}`?
+@msg unknown control `{name}`: fillStroke, coloring, drawMode or screenMode control desconegut `{name}`: fillStroke, coloring, drawMode o screenMode
+@msg Unknown dimension mode Mode de dimensió desconegut
+@msg Unknown dimension option {k} Opció de dimensió desconeguda {k}
+@msg Unknown dimension style Estil de dimensió desconegut
+@msg unknown effect `{id}` efecte desconegut `{id}`
+@msg unknown format format desconegut
+@msg unknown format `{f}` (Save writes {_1}) format desconegut `{f}` (Desa escriu {_1})
+@msg unknown freeform mode `{m}` (points, lines) mode de forma lliure desconegut `{m}` (points, lines)
+@msg unknown gradient kind `{k}` (linear, radial, freeform) tipus de degradat desconegut `{k}` (linear, radial, freeform)
+@msg unknown highlight `{h}` ressaltat desconegut `{h}`
+@msg unknown option `{path}.{k}` opció desconeguda `{path}.{k}`
+@msg unknown overprints `{o}` (preserve, simulate or discard) sobreimpressions desconegudes `{o}` (preserve, simulate o discard)
+@msg unknown panel `{raw}` panell desconegut `{raw}`
+@msg unknown parameter `{key}`; did you mean `{near}`? paràmetre desconegut `{key}`; volies dir `{near}`?
+@msg unknown parameter `{key}`; the command takes no parameters paràmetre desconegut `{key}`; l’ordre no admet cap paràmetre
+@msg unknown parameter `{key}`; the command takes: {keys} paràmetre desconegut `{key}`; l’ordre admet: {keys}
+@msg unknown preference `{key}` preferència desconeguda `{key}`
+@msg unknown preset (one of {_1}) preajust desconegut (un de {_1})
+@msg unknown preset `{name}` (high, medium, low or a saved one: see flattener.presets.list) preajust desconegut `{name}` (high, medium, low o un de desat: consulta flattener.presets.list)
+@msg unknown preset `{name}` (see flattener.presets.list) preajust desconegut `{name}` (consulta flattener.presets.list)
+@msg unknown preset `{name}` (see webExport.presets.list) preajust desconegut `{name}` (consulta webExport.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) preajust desconegut `{name}`: no és integrat ni desat (consulta imageTrace.presets)
+@msg unknown side `{other}` (left|right|top|bottom) costat desconegut `{other}` (left|right|top|bottom)
+@msg unknown snap option `{key}` (use {options}) opció d’ajustament desconeguda `{key}` (fes servir {options})
+@msg unknown tool `{tool}` eina desconeguda `{tool}`
+@msg unknown tool `{t}` eina desconeguda `{t}`
+@msg unknown tool or command `{key}` eina o ordre desconeguda `{key}`
+@msg Unknown unit Unitat desconeguda
+@msg unknown workspace (one of {_1}) espai de treball desconegut (un de {_1})
+@msg unsupported native docking operation operació d’acoblament nadiua no compatible
+@msg unsupported: {0} no compatible: {0}
+@msg Updated {_1} image(s) S’han actualitzat {_1} imatge(s)
+@msg Updated {_1} linked file(s) changed on disk S’han actualitzat {_1} fitxer(s) enllaçat(s) que han canviat al disc
+@msg variables are locked les variables estan blocades
+@msg variables that aren't text were left out: {kinds} les variables que no són text s’han omès: {kinds}
+@msg VectorCraft doesn't search other apps' or the system's folders: {path} VectorCraft no cerca a les carpetes d’altres aplicacions ni del sistema: {path}
+@msg VectorCraft doesn't search the Shared or Public folder in Users: {path} VectorCraft no cerca a la carpeta Shared o Public d’Usuaris: {path}
+@msg VectorCraft failed to start: {e} VectorCraft no s’ha pogut iniciar: {e}
+@msg VectorCraft's Fonts folder isn't set here: the desktop app and vectorcraft-cli set it aquí no s’ha definit la carpeta Fonts de VectorCraft: l’aplicació d’escriptori i vectorcraft-cli la defineixen
+@msg version {0} files can't be compressed: only version {COMPRESSED_SINCE} and later open compressed files els fitxers de la versió {0} no es poden comprimir: només la versió {COMPRESSED_SINCE} i posteriors obren fitxers comprimits
+@msg videoRulerPixelAspectRatio must be a number from 0.1 to 10 videoRulerPixelAspectRatio ha de ser un nombre d’entre 0,1 i 10
+@msg width and height are at least 1 pixel l’amplada i l’alçada són com a mínim d’1 píxel
+@msg workspace name can't be empty el nom de l’espai de treball no pot estar buit
+@msg x and y must be finite x i y han de ser finits
+@msg x and y must be provided together cal proporcionar x i y alhora
+@msg x and y must both be numbers x i y han de ser tots dos nombres
+@msg Your unsaved changes are kept in this browser: reload the page to get them back. Els canvis no desats es conserven en aquest navegador: torna a carregar la pàgina per recuperar-los.
+@msg zipped 32-bit PSD image data with prediction can't be read les dades d’imatge PSD de 32 bits comprimides amb predicció no es poden llegir
+@msg zone must be a string zone ha de ser una cadena
+@msg zone must be tab, center, left, right, top or bottom zone ha de ser tab, center, left, right, top o bottom
+@msg {_1} failed: {e} {_1} ha fallat: {e}
+@msg {_1} files {_1} fitxers
+@msg {_1} files are written by file.saveAsTemplate els fitxers {_1} els escriu file.saveAsTemplate
+@msg {_1} files can be opened but not written (see document.formats) els fitxers {_1} es poden obrir però no escriure (consulta document.formats)
+@msg {_1} finished, but the document or the plug-in changed meanwhile: run it again {_1} ha acabat, però el document o el complement ha canviat mentrestant: torna-ho a executar
+@msg {_1} font families available {_1} famílies de tipus de lletra disponibles
+@msg {_1} has no {_2} style {_1} no té cap estil {_2}
+@msg {_1} is a live effect (Effect › Plug-ins) {_1} és un efecte actiu (Efecte › Complements)
+@msg {_1} is already used by {_2} {_1} ja el fa servir {_2}
+@msg {_1} is an exporter (File › Export › Export As…) {_1} és un exportador (Fitxer › Exporta › Exporta com a…)
+@msg {_1} is reserved by the system {_1} està reservat pel sistema
+@msg {_1} linked file(s) can't be read here: their previews show aquí no es poden llegir {_1} fitxer(s) enllaçat(s): es mostren les seves previsualitzacions
+@msg {_1} linked image(s) changed on disk: Update Links shows the new versions {_1} imatge(s) enllaçada(es) han canviat al disc: Actualitza els enllaços mostra les versions noves
+@msg {_1}: not saved, so not closed {_1}: no s’ha desat, així que no s’ha tancat
+@msg {bpp}-bit bitmaps can't be read els mapes de bits de {bpp} bits no es poden llegir
+@msg {command} didn't create an object {command} no ha creat cap objecte
+@msg {C}: no effect at index {from} {C}: no hi ha cap efecte a l’índex {from}
+@msg {depth}-bit PSD files in this colour mode can't be read els fitxers PSD de {depth} bits en aquest mode de color no es poden llegir
+@msg {id} opens another app: only the person at the keyboard can run it {id} obre una altra aplicació: només la persona davant del teclat la pot executar
+@msg {key} must be [x, y] with finite coordinates {key} ha de ser [x, y] amb coordenades finites
+@msg {key} must be a finite coordinate {key} ha de ser una coordenada finita
+@msg {key} must be an array of non-negative integer object ids {key} ha de ser una matriu d’identificadors d’objecte enters no negatius
+@msg {key} must be Unix seconds (an integer) or null {key} ha de ser segons Unix (un enter) o null
+@msg {label} currently requires a path or compound path. Convert type, images and groups to paths first. {label} actualment requereix un traçat o un traçat compost. Converteix primer els textos, les imatges i els grups en traçats.
+@msg {label} keeps 1 of the document's {n} artboards: the file reopens with one. Turn on Preserve Editing Capabilities to keep them all. {label} conserva 1 dels {n} taulers del document: el fitxer es reobre amb un. Activa Conserva les capacitats d’edició per conservar-los tots.
+@msg {label} produced an empty result {label} ha produït un resultat buit
+@msg {label} requires a shape with at least two anchors {label} requereix una forma amb com a mínim dos punts d’ancoratge
+@msg {label}: lost track of a shape's style {label}: s’ha perdut el rastre de l’estil d’una forma
+@msg {label}: select paths {label}: selecciona traçats
+@msg {label}: select paths, compound paths, groups or text {label}: selecciona traçats, traçats compostos, grups o text
+@msg {label}… {label}…
+@msg {name}: CRC mismatch {name}: CRC no coincideix
+@msg {name}: no local header {name}: no hi ha capçalera local
+@msg {name}: no such recovery entry {name}: no hi ha cap entrada de recuperació d’aquest tipus
+@msg {n} font file(s) are now in {folder} {n} fitxer(s) de tipus de lletra ja són a {folder}
+@msg {n} font file(s) are now in {folder}; {failed} couldn't be added: {reason} {n} fitxer(s) de tipus de lletra ja són a {folder}; {failed} no s’han pogut afegir: {reason}
+@msg {n} font(s) aren't available here: their text shows in another font aquí no hi ha disponibles {n} tipus de lletra: el seu text es mostra amb un altre tipus de lletra
+@msg {path} can't be found: relink it first no es pot trobar {path}: torna a enllaçar-lo primer
+@msg {path} is not a folder {path} no és una carpeta
+@msg {path}: no file system here (pass dataBase64 to open; omit the path to get dataBase64) {path}: aquí no hi ha cap sistema de fitxers (passa dataBase64 per obrir; omet el camí per obtenir dataBase64)
+@msg {path}: not a file {path}: no és un fitxer
+@msg {path}: {e} {path}: {e}
+@msg {status} ({e}) {status} ({e})
+@msg {tool} isn't in a toolbar group of several tools {tool} no forma part d’un grup de diverses eines a la barra d’eines
+@msg {undecoded} image(s) couldn't be decoded and show as crossed boxes no s’han pogut descodificar {undecoded} imatge(s) i es mostren com a caixes creuades
+@msg “{_1}” asks for a heavy budget (each run up to {minutes} minutes and {times} times the usual instructions): install it with `allowHeavy: true` once the user agrees «{_1}» demana un pressupost elevat (cada execució fins a {minutes} minuts i {times} vegades les instruccions habituals): instal·la’l amb `allowHeavy: true` quan l’usuari hi estigui d’acord
+@msg “{name}” is not a file «{name}» no és un fitxer
+axis Both Tots dos
+axis Horizontal Horitzontal
+axis Vertical Vertical
+axis X Axis Eix X
+axis Y Axis Eix Y
+diagnostics render Renderització
+diagnostics ui IU
+effect Horizontal Horitzontal
+effect Points Punts
+effect Regular Normal
+effect Soft Suau
+effect Vertical Vertical
+file-filter All placeable files Tots els fitxers col·locables
+file-filter All readable files Tots els fitxers llegibles
+file-filter Flattener presets Preajustos de l’aplanador
+file-filter PDF presets Preajustos de PDF
+file-filter PDF-compatible .ai .ai compatible amb PDF
+file-filter Print presets Preajustos d’impressió
+file-filter SVG Compressed SVG comprimit
+file-filter Swatch libraries Biblioteques de mostres
+file-filter Templates Plantilles
+file-filter VectorCraft Template Plantilla de VectorCraft
+font-script Japanese Japonès
+font-technology Variable Variable
+gradient-kind Radial Radial
+imageTrace Outline Contorn
+lighting Light Llum
+mark-style Japanese Japonès
+swatch [None] [None]
+swatch [Registration] [Registre]
+swatch Amber Ambre
+swatch Aqua Aqua
+swatch Azure Atzur
+swatch Black Negre
+swatch Blue Blau
+swatch Bright Blue Blau brillant
+swatch Bright Green Verd brillant
+swatch Bright Red Vermell brillant
+swatch Bright Violet Violeta brillant
+swatch Bright Yellow Groc brillant
+swatch Brights Brillants
+swatch Brown Marró
+swatch Chocolate Xocolata
+swatch Coffee Cafè
+swatch Copper Coure
+swatch Cyan Cian
+swatch Cyan Green Verd cian
+swatch Emerald Maragda
+swatch Espresso Espresso
+swatch Grays Grisos
+swatch Green Verd
+swatch Indigo Indi
+swatch Lime Llima
+swatch Magenta Magenta
+swatch Ocean Oceà
+swatch Orange Taronja
+swatch Orange Red Taronja vermell
+swatch Pink Rosa
+swatch Purple Porpra
+swatch Radial White, Black Radial blanc, negre
+swatch Red Vermell
+swatch Rose Rosa vermellós
+swatch Rust Rovell
+swatch Sand Sorra
+swatch Sunset Posta de sol
+swatch Tan Camussa
+swatch Teal Verd blavós
+swatch Violet Violeta
+swatch Walnut Noguera
+swatch White Blanc
+swatch White, Black Blanc, negre
+swatch Yellow Groc
+swatch Yellow Green Verd groc
+theme Appearance Aparença
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Text de punt
+ Area Text Text d’àrea
diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsv
index 16da939344..6a67453c6c 100644
--- a/crates/ui-egui/src/i18n/cs.tsv
+++ b/crates/ui-egui/src/i18n/cs.tsv
@@ -191,6 +191,7 @@
Other Layers Ostatní vrstvy
Unlock All Odemknout vše
Hide Skrýt
+ Unselected Artwork Nevybranou kresbu
Show All Zobrazit vše
Expand… Rozložit…
Expand Appearance Rozložit vzhled
@@ -224,6 +225,7 @@
Offset Path… Odsadit cestu…
Reverse Path Direction Obrátit směr cesty
Simplify… Zjednodušit…
+ Smooth… Vyhladit…
Add Anchor Points Přidat kotevní body
Remove Anchor Points Odstranit kotevní body
Divide Objects Below Rozdělit objekty pod
@@ -285,6 +287,7 @@
Clipping Mask Ořezová maska
Edit Clipping Path Upravit ořezovou cestu
Compound Path Složená cesta
+ Compound Shape Složený tvar
Artboards Pracovní plochy
Convert to Artboards Převést na pracovní plochy
Rearrange All Artboards… Přeuspořádat všechny pracovní plochy…
@@ -412,6 +415,11 @@
Fill Color Barva výplně
Opacity Krytí
Stroke Color Barva tahu
+ Fill Gradient Přechod výplně
+ Stroke Gradient Přechod tahu
+ Fill Pattern Vzorek výplně
+ Stroke Pattern Vzorek tahu
+ Patterns Vzorky
Stroke Weight Tloušťka tahu
Graphic Style Grafický styl
Symbol Instance Instance symbolu
@@ -618,6 +626,8 @@
Saved View 25 Uložené zobrazení 25
Window Okno
New Window Nové okno
+ Next Document Další dokument
+ Previous Document Předchozí dokument
Cascade Do kaskády
Tile Vedle sebe
Float in Window Uvolnit do samostatného okna
@@ -821,6 +831,10 @@
Shaper Shaper
Expand Shaper Group Rozložit skupinu Shaper
Release Shaper Group Uvolnit skupinu Shaper
+ Remove from Shaper Group Odebrat ze skupiny Shaper
+@msg source must be the id of a Shaper Group's original shape source musí být identifikátor původního tvaru skupiny Shaper
+@msg group must be the id of a Shaper Group group musí být identifikátor skupiny Shaper
+@msg the shape is not an editable original shape of that Shaper Group tvar není upravitelný původní tvar této skupiny Shaper
Select Shaper Face Vybrat oblast Shaper
Constrain Omezit
Free Transform Volná transformace
@@ -1653,6 +1667,12 @@ lighting Light Světlo
Document Library Knihovna dokumentu
Library: Knihovna:
Tracing Presets Přednastavení vektorizace
+ Manage Presets Spravovat přednastavení
+ Save as New Preset… Uložit jako nové přednastavení…
+ Rename… Přejmenovat…
+ Rename Preset Přejmenovat přednastavení
+ Save Image Trace Preset Uložit přednastavení vektorizace obrazu
+ Delete Image Trace Preset Odstranit přednastavení vektorizace obrazu
Method: Metoda:
Mode: Režim:
Noise Šum
@@ -1684,6 +1704,7 @@ lighting Light Světlo
Locked Zamčené
Hidden Skryté
Filter Layers Panel Rows Filtrovat řádky panelu Vrstvy
+@msg `Custom` stands for changed settings: save the preset under another name `Custom` označuje změněná nastavení: uložte přednastavení pod jiným názvem
@msg `{key}` must be an array of these names: {_1} `{key}` musí být pole těchto názvů: {_1}
Graphics Grafika
Local Libraries Místní knihovny
@@ -1755,6 +1776,7 @@ lighting Light Světlo
Show Original Path Zobrazit původní cestu
Open this dialog with these settings next time Příště otevřít toto dialogové okno s tímto nastavením
Auto-Simplify Automaticky zjednodušit
+ Auto-Smooth Automaticky vyhladit
Transparency Options Možnosti průhlednosti
Color Mixer (Shift-click the chip) Míchání barev (Shift+kliknutí na políčko)
Fill: click for swatches, Shift-click for the color mixer Výplň: kliknutím otevřete vzorník, Shift+kliknutím míchání barev
@@ -1804,13 +1826,13 @@ lighting Light Světlo
Roman Hanging Punctuation Visící latinková interpunkce
Select a text object to edit its paragraph attributes. Vyberte textový objekt, abyste mohli upravit atributy jeho odstavce.
Single-line Composer Sazba jednoho řádku
+ Toggle Line Composer Přepnout sazbu řádků
Space After Paragraph Mezera za odstavcem
Space Before Paragraph Mezera před odstavcem
Top-to-Top Leading Proklad od horní k horní
Bottom-to-Bottom Leading Proklad od dolní k dolní
Burasagari Burasagari
Force Vynutit
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap Rozložení se týká složených tvarů (Alt+kliknutí na režim tvaru) — v plánu
Expand Compound Shape Rozložit složený tvar
Make Compound Shape Vytvořit složený tvar
Pathfinder Options… Možnosti operací s cestami…
@@ -2072,6 +2094,10 @@ lighting Light Světlo
Outer Corner Tile Dlaždice vnějšího rohu
Side Tile Boční dlaždice
Inner Corner Tile Dlaždice vnitřního rohu
+ Auto-Centered Auto: na střed
+ Auto-Between Auto: mezi
+ Auto-Sliced Auto: seříznuté
+ Auto-Overlap Auto: přesah
Start Tile Počáteční dlaždice
End Tile Koncová dlaždice
Fit Přizpůsobení
@@ -2346,6 +2372,8 @@ lighting Light Světlo
Locate Selected Objects Najít vybrané objekty
Thumbnails: Miniatury:
Anchor Points Kotevní body
+ "In" Control Points „Vstupní“ řídicí body
+ "Out" Control Points „Výstupní“ řídicí body
Brush Affects: Štětec ovlivňuje:
Complexity: Složitost:
Detail: Podrobnost:
@@ -3762,6 +3790,9 @@ axis Both Obě
Increase Font Size by Five Steps Zvětšit velikost písma o pět kroků
Reset Tracking and Kerning Obnovit prostrkání a vyrovnání párů
Reset Horizontal Scale Obnovit vodorovnou změnu velikosti
+ Highlight Font Name Zvýraznit název písma
+ Highlight Kerning Zvýraznit vyrovnání párů
+ Highlight Tracking Zvýraznit prostrkání
Step Type Krokovat text
Get Text Range Získat rozsah textu
Punctuation Interpunkce
@@ -3963,6 +3994,7 @@ font-technology Variable Variabilní
Default Fill and Stroke (D) Výchozí výplň a tah (D)
Fill (X), double-click for the Color Picker Výplň (X), dvojklikem otevřete výběr barvy
Opacity: Krytí:
+ Shape Mode Režim tvaru
Shape Modes: Režimy tvarů:
Stroke (X), double-click for the Color Picker Tah (X), dvojklikem otevřete výběr barvy
Stroke: Tah:
@@ -4011,7 +4043,9 @@ font-technology Variable Variabilní
Mojikumi Mojikumi
N pt per N pt na
New Character Style Nový styl znaků
+ New Character Style… Nový styl znaků…
New Paragraph Style Nový styl odstavce
+ New Paragraph Style… Nový styl odstavce…
Paragraph Style Options Možnosti stylu odstavce
Redefine Character Style Předefinovat styl znaků
Redefine Paragraph Style Předefinovat styl odstavce
@@ -4103,6 +4137,13 @@ imageTrace Outline Obrys
# Status and error messages
@msg no library `{id}` knihovna `{id}` neexistuje
@msg select some type first nejprve vyberte text
+@msg the selection has no gradient fill výběr nemá přechodovou výplň
+@msg the selection has no gradient stroke výběr nemá přechodový tah
+@msg the selection has no pattern fill výběr nemá vzorkovou výplň
+@msg the selection has no pattern stroke výběr nemá vzorkový tah
+@msg no gradient swatch `{name}` přechodová položka vzorníku `{name}` neexistuje
+@msg no pattern swatch `{name}` vzorková položka vzorníku `{name}` neexistuje
+@msg the library item is damaged položka knihovny je poškozená
@msg {_1} has no {_2} style {_1} nemá styl {_2}
@msg a layer couldn't be read vrstvu nelze přečíst
@msg it has more than one artboard má více než jednu pracovní plochu
@@ -4208,8 +4249,10 @@ imageTrace Outline Obrys
@msg `freeform.points` must be an array `freeform.points` musí být pole
@msg `freeform.lines` must be an array `freeform.lines` musí být pole
@msg `gradient` must be an object `gradient` musí být objekt
+@msg `groupColors` must be an array `groupColors` musí být pole
@msg `library` is a library id or name (see {list}) `library` je ID nebo název knihovny (viz {list})
@msg `mode` applies to freeform gradients `mode` platí pro volné přechody
+@msg `preserve` must be an object `preserve` musí být objekt
@msg `sampleSize` must be 1, 3 or 5 `sampleSize` musí být 1, 3 nebo 5
@msg `stops` must be an array `stops` musí být pole
@msg `svg` must be an object of SVG options (see document.formats) `svg` musí být objekt s možnostmi SVG (viz document.formats)
@@ -4244,6 +4287,7 @@ imageTrace Outline Obrys
@msg `{name}` is a process colour: tints apply to global and spot colours `{name}` je procesní barva: tóny platí pro globální a přímé barvy
@msg `{name}` is no recovery entry name `{name}` není název položky obnovení
@msg `{name}` isn't a colour swatch `{name}` není barevná položka vzorníku
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white procesní barva nemůže obarvit obraz ve stupních šedi s průhledností: použijte přímou barvu, černou nebo bílou
@msg `{path}` must be a bool or an object of bools `{path}` musí být bool nebo objekt hodnot bool
@msg `{s}` is not a colour (#rrggbb or a preset name) `{s}` není barva (#rrggbb nebo název přednastavení)
@msg `{tool}` isn't a Liquify tool `{tool}` není nástroj zkapalnění
@@ -4289,6 +4333,10 @@ imageTrace Outline Obrys
@msg a page tree node has no kids uzel stromu stránek nemá potomky
@msg a page's placement is not finite umístění stránky není konečné
@msg a preset named `{_1}` exists přednastavení s názvem `{_1}` existuje
+@msg `name` is empty `name` je prázdný
+@msg `newName` is empty `newName` je prázdný
+@msg `{name}` is a built-in preset and can't change: save it under another name `{name}` je vestavěné přednastavení a nelze ho změnit: uložte ho pod jiným názvem
+@msg `{name}` is a built-in preset and stays `{name}` je vestavěné přednastavení a nelze ho odstranit
@msg a swatch or color group named `{n}` exists položka vzorníku nebo skupina barev s názvem `{n}` existuje
@msg a slice size must be a positive number of points velikost řezu musí být kladný počet bodů
@msg a spine keeps at least two points páteř si ponechává alespoň dva body
@@ -4308,6 +4356,7 @@ imageTrace Outline Obrys
@msg videoRulerPixelAspectRatio must be a number from 0.1 to 10 videoRulerPixelAspectRatio musí být číslo od 0,1 do 10
@msg the Color Picker is not open Výběr barvy není otevřený
@msg the Simplify slider is not open Posuvník Zjednodušit není otevřený
+@msg the Smooth slider is not open Posuvník Vyhladit není otevřený
@msg the screen color sampler is already open nástroj pro nabírání barvy z obrazovky už je otevřený
@msg this system has no screen color sampler tento systém nemá nástroj pro nabírání barvy z obrazovky
@msg bad colour `{hex}` (#rrggbb) chybná barva `{hex}` (#rrggbb)
@@ -4380,6 +4429,7 @@ imageTrace Outline Obrys
@msg missing `id` (see plugin.list) chybí `id` (viz plugin.list)
@msg missing `name` chybí `name`
@msg missing `tool` chybí `tool`
+@msg missing id chybí id
@msg missing index chybí index
@msg missing number `{key}` chybí číslo `{key}`
@msg missing integer `{key}` chybí celé číslo `{key}`
@@ -4412,6 +4462,7 @@ imageTrace Outline Obrys
@msg no current layer žádná aktuální vrstva
@msg no data žádná data
@msg no dialog open není otevřeno žádné dialogové okno
+@msg the open dialog has no Reset otevřené dialogové okno nemá tlačítko Obnovit
@msg no document žádný dokument
@msg no document open není otevřen žádný dokument
@msg no effect applied yet zatím nebyl použit žádný efekt
@@ -4445,6 +4496,8 @@ imageTrace Outline Obrys
@msg no print service chybí tisková služba
@msg no revert command chybí příkaz pro návrat k uložené verzi
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) uložené přednastavení PDF s názvem `{name}` neexistuje (vestavěná přednastavení jsou jen pro čtení: vytvořte z nich nové)
+@msg no saved preset named `{name}` uložené přednastavení s názvem `{name}` neexistuje
+@msg no saved preset named `{name}` to rename uložené přednastavení s názvem `{name}` k přejmenování neexistuje
@msg no saved presets žádná uložená přednastavení
@msg no saved print preset named `{name}` ({DEFAULT_PRESET} is protected: start a new one from it) uložené přednastavení tisku s názvem `{name}` neexistuje ({DEFAULT_PRESET} je chráněné: vytvořte z něj nové)
@msg no saved profiles žádné uložené profily
@@ -4491,8 +4544,10 @@ imageTrace Outline Obrys
@msg not an EMF or WMF file nejde o soubor EMF ani WMF
@msg not found nenalezeno
@msg not in pattern editing mode není aktivní režim úprav vzorku
+@msg finish editing the pattern first nejprve dokončete úpravy vzorku
@msg nothing encoded nic nebylo zakódováno
@msg nothing selected nic není vybráno
+@msg nothing selected is in a group nic z výběru není ve skupině
@msg nothing to align není co zarovnat
@msg nothing to distort není co deformovat
@msg nothing to export: the document has no visible art (or turn on Use Artboards) není co exportovat: dokument nemá žádnou viditelnou kresbu (nebo zapněte Použít pracovní plochy)
@@ -4619,10 +4674,14 @@ imageTrace Outline Obrys
@msg the layer or group is locked vrstva nebo skupina je zamčená
@msg the guide is on a hidden or locked layer vodítko je ve skryté nebo zamčené vrstvě
@msg the target layer is locked or hidden cílová vrstva je zamčená nebo skrytá
+@msg the object is hidden or locked objekt je skrytý nebo zamčený
+@msg the object is outside the isolated group objekt je mimo izolovanou skupinu
+@msg type objects can't be isolated textové objekty nelze izolovat
@msg the layer to flatten into is hidden vrstva, do které se má sloučit, je skrytá
@msg the object already has an opacity mask objekt už má masku krytí
@msg the object has no geometry objekt nemá žádnou geometrii
@msg the object has no opacity mask objekt nemá masku krytí
+@msg stop editing the opacity mask first nejprve ukončete úpravy masky krytí
@msg the object has no stroke objekt nemá tah
@msg the object is beyond the plane's horizon objekt je za horizontem roviny
@msg the object isn't in perspective objekt není v perspektivě
@@ -4668,6 +4727,7 @@ imageTrace Outline Obrys
@msg unknown preset `{name}` (high, medium, low or a saved one: see flattener.presets.list) neznámé přednastavení `{name}` (high, medium, low nebo uložené: viz flattener.presets.list)
@msg unknown preset `{name}` (see flattener.presets.list) neznámé přednastavení `{name}` (viz flattener.presets.list)
@msg unknown preset `{name}` (see webExport.presets.list) neznámé přednastavení `{name}` (viz webExport.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) neznámé přednastavení `{name}`: není vestavěné ani uložené (viz imageTrace.presets)
@msg unknown side `{other}` (left|right|top|bottom) neznámá strana `{other}` (left|right|top|bottom)
@msg unknown tool `{tool}` neznámý nástroj `{tool}`
@msg unknown tool `{t}` neznámý nástroj `{t}`
@@ -4819,6 +4879,9 @@ imageTrace Outline Obrys
@msg not a PSD file nejde o soubor PSD
@msg the PSD file has an unknown colour mode ({m}) soubor PSD má neznámý barevný režim ({m})
@msg the PSD file's image data uses an unknown compression ({m}) obrazová data souboru PSD používají neznámou kompresi ({m})
+@msg the PCX file is cut short soubor PCX je useknutý
+@msg the PCX file's header is damaged hlavička souboru PCX je poškozená
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read soubory PCX s {bits}bitovými obrazovými body v {planes} rovinách nelze přečíst
@msg the PSD image is too large to read ({_1} × {_2} pixels) obraz PSD je příliš velký na přečtení ({_1} × {_2} obrazových bodů)
@msg zipped 32-bit PSD image data with prediction can't be read zazipovaná 32bitová obrazová data PSD s predikcí nelze přečíst
@msg {depth}-bit PSD files in this colour mode can't be read {depth}bitové soubory PSD v tomto barevném režimu nelze přečíst
@@ -5621,4 +5684,9 @@ axis Y Axis osa Y
Scale Presets Přednastavení měřítka
@msg a {width}×{height} screenshot's byte count overflows počet bajtů snímku {width}×{height} přeteče
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot okno {what} ({points} bodů × {scale} DPI) nemůže určit velikost snímku
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Nejprve rozložte vzhled (Objekt › Rozložit vzhled)
Live preview Živý náhled
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Bodový text
+ Area Text Text v oblasti
diff --git a/crates/ui-egui/src/i18n/da.tsv b/crates/ui-egui/src/i18n/da.tsv
index f0204a6d08..ad49a98a2f 100644
--- a/crates/ui-egui/src/i18n/da.tsv
+++ b/crates/ui-egui/src/i18n/da.tsv
@@ -176,6 +176,7 @@
Other Layers Andre lag
Unlock All Lås alle op
Hide Skjul
+ Unselected Artwork Ikke-markeret grafik
Show All Vis alle
Expand… Udvid…
Expand Appearance Udvid udseende
@@ -208,6 +209,7 @@
Offset Path… Forskyd kurve…
Reverse Path Direction Omvend kurveretning
Simplify… Forenkl…
+ Smooth… Udglat…
Add Anchor Points Tilføj ankerpunkter
Remove Anchor Points Fjern ankerpunkter
Divide Objects Below Opdel objekter nedenunder
@@ -257,6 +259,7 @@
Clipping Mask Beskæringsmask
Edit Clipping Path Redigér beskæringskurve
Compound Path Sammensat kurve
+ Compound Shape Sammensat figur
Artboards Tegneflader
Convert to Artboards Konvertér til tegneflader
Rearrange All Artboards… Omarrangér alle tegneflader…
@@ -374,6 +377,11 @@
Fill Color Fyldfarve
Opacity Opacitet
Stroke Color Stregfarve
+ Fill Gradient Fyldgradient
+ Stroke Gradient Streggradient
+ Fill Pattern Fyldmønster
+ Stroke Pattern Stregmønster
+ Patterns Mønstre
Stroke Weight Stregtykkelse
Graphic Style Grafisk stil
Symbol Instance Symbolforekomst
@@ -571,6 +579,8 @@
Saved View 25 Gemt visning 25
Window Vindue
New Window Nyt vindue
+ Next Document Næste dokument
+ Previous Document Forrige dokument
Cascade Kaskade
Tile Fliselæg
Float in Window Flyd i vindue
@@ -756,6 +766,7 @@
Shaper Shaper
Expand Shaper Group Udvid shapergruppe
Release Shaper Group Frigør shapergruppe
+ Remove from Shaper Group Fjern fra shapergruppe
Select Shaper Face Markér shaperflade
Constrain Begræns
Free Transform Fri transformering
@@ -1494,6 +1505,12 @@ lighting Light Lys
Document Library Dokumentbibliotek
Library: Bibliotek:
Tracing Presets Vektoriseringsforudindstillinger
+ Manage Presets Administrer forudindstillinger
+ Save as New Preset… Gem som ny forudindstilling…
+ Rename… Omdøb…
+ Rename Preset Omdøb forudindstilling
+ Save Image Trace Preset Gem forudindstilling til billedsporing
+ Delete Image Trace Preset Slet forudindstilling til billedsporing
Method: Metode:
Mode: Tilstand:
Noise Støj
@@ -1621,13 +1638,13 @@ lighting Light Lys
Roman Hanging Punctuation Romersk hængende tegnsætning
Select a text object to edit its paragraph attributes. Markér et tekstobjekt for at redigere dets afsnitsattributter.
Single-line Composer Enlinjesætter
+ Toggle Line Composer Skift linjesætter
Space After Paragraph Mellemrum efter afsnit
Space Before Paragraph Mellemrum før afsnit
Top-to-Top Leading Linjeafstand top til top
Bottom-to-Bottom Leading Linjeafstand bund til bund
Burasagari Burasagari
Force Tving
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap Udvid gælder sammensatte figurer (Alt-klik på en figurtilstand) — på vejkortet
Expand Compound Shape Udvid sammensat figur
Make Compound Shape Opret sammensat figur
Pathfinder Options… Pathfinder-indstillinger…
@@ -1887,6 +1904,10 @@ lighting Light Lys
Outer Corner Tile Ydre hjørneflise
Side Tile Sideflise
Inner Corner Tile Indre hjørneflise
+ Auto-Centered Auto-centreret
+ Auto-Between Auto-mellem
+ Auto-Sliced Auto-skåret
+ Auto-Overlap Auto-overlap
Start Tile Startflise
End Tile Slutflise
Fit Tilpas
@@ -2145,6 +2166,8 @@ lighting Light Lys
Locate Selected Objects Lokalisér markerede objekter
Thumbnails: Miniaturer:
Anchor Points Ankerpunkter
+ "In" Control Points "Ind"-kontrolpunkter
+ "Out" Control Points "Ud"-kontrolpunkter
Brush Affects: Penslen påvirker:
Complexity: Kompleksitet:
Detail: Detaljer:
@@ -3706,6 +3729,7 @@ font-technology Variable Variable
Default Fill and Stroke (D) Standardfyld og -kontur (D)
Fill (X), double-click for the Color Picker Fyld (X), dobbeltklik for at åbne farvevælgeren
Opacity: Opacitet:
+ Shape Mode Formtilstand
Shape Modes: Formtilstande:
Stroke (X), double-click for the Color Picker Kontur (X), dobbeltklik for at åbne farvevælgeren
Stroke: Kontur:
@@ -3754,7 +3778,9 @@ font-technology Variable Variable
Mojikumi Mojikumi
N pt per N pt per
New Character Style Ny tegnstil
+ New Character Style… Ny tegnstil…
New Paragraph Style Ny afsnitsstil
+ New Paragraph Style… Ny afsnitsstil…
Paragraph Style Options Indstillinger for afsnitsstil
Redefine Character Style Omdefinér tegnstil
Redefine Paragraph Style Omdefinér afsnitsstil
@@ -4091,6 +4117,7 @@ imageTrace Outline Kontur
@msg missing `id` (see plugin.list) `id` mangler (se plugin.list)
@msg missing `name` `name` mangler
@msg missing `tool` `tool` mangler
+@msg missing id id mangler
@msg missing index indeks mangler
@msg missing number `{key}` tallet `{key}` mangler
@msg missing integer `{key}` heltallet `{key}` mangler
@@ -4122,6 +4149,7 @@ imageTrace Outline Kontur
@msg no current layer intet aktuelt lag
@msg no data ingen data
@msg no dialog open ingen åben dialogboks
+@msg the open dialog has no Reset den åbne dialogboks har ingen Nulstil-knap
@msg no document intet dokument
@msg no document open intet åbent dokument
@msg no effect applied yet ingen effekt er anvendt endnu
@@ -4195,8 +4223,10 @@ imageTrace Outline Kontur
@msg not an EMF or WMF file ikke en EMF- eller WMF-fil
@msg not found ikke fundet
@msg not in pattern editing mode ikke i mønsterredigeringstilstand
+@msg finish editing the pattern first afslut først redigeringen af mønsteret
@msg nothing encoded intet kodet
@msg nothing selected intet markeret
+@msg nothing selected is in a group intet af det markerede er i en gruppe
@msg nothing to align intet at justere
@msg nothing to distort intet at forvrænge
@msg nothing to export: the document has no visible art (or turn on Use Artboards) intet at eksportere: dokumentet har ingen synlig grafik (eller aktivér Brug artboards)
@@ -4313,10 +4343,14 @@ imageTrace Outline Kontur
@msg the layer or group is locked laget eller gruppen er låst
@msg the guide is on a hidden or locked layer hjælpelinjen ligger på et skjult eller låst lag
@msg the target layer is locked or hidden mållaget er låst eller skjult
+@msg the object is hidden or locked objektet er skjult eller låst
+@msg the object is outside the isolated group objektet er uden for den isolerede gruppe
+@msg type objects can't be isolated tekstobjekter kan ikke isoleres
@msg the layer to flatten into is hidden laget, der skal flades ud i, er skjult
@msg the object already has an opacity mask objektet har allerede en opacitetsmaske
@msg the object has no geometry objektet har ingen geometri
@msg the object has no opacity mask objektet har ingen opacitetsmaske
+@msg stop editing the opacity mask first stop først redigeringen af opacitetsmasken
@msg the object has no stroke objektet har ingen streg
@msg the object is beyond the plane's horizon objektet er uden for planens horisont
@msg the object isn't in perspective objektet er ikke i perspektiv
@@ -5040,6 +5074,9 @@ mark-style Japanese Japansk
Panels Except Tools and Control Paneler undtagen værktøjer og kontrol
Reset Tracking and Kerning Nulstil sporing og kerning
Reset Horizontal Scale Nulstil vandret skalering
+ Highlight Font Name Fremhæv skrifttypenavn
+ Highlight Kerning Fremhæv kerning
+ Highlight Tracking Fremhæv sporing
@msg span must be "object" or "selection", got {v} span skal være "object" eller "selection", fik {v}
@msg span: "selection" places a `gradient`, not a swatch span: "selection" placerer en `gradient`, ikke en farveprøve
@msg span: "selection" places a gradient: give `gradient` span: "selection" placerer en overgang: angiv `gradient`
@@ -5190,6 +5227,7 @@ swatch Bright Violet Kraftig violet
Show Original Path Vis oprindelig kurve
Open this dialog with these settings next time Åbn denne dialogboks med disse indstillinger næste gang
Auto-Simplify Forenkl automatisk
+ Auto-Smooth Udglat automatisk
@msg check a layer to export markér et lag, der skal eksporteres
@msg select the art to export first markér først grafikken, der skal eksporteres
@msg no saved selection recalled ingen gemt markering hentet
@@ -5550,4 +5588,9 @@ axis Y Axis Y-akse
Save Brush Library… Gem penselbibliotek…
@msg no empty artboards to delete ingen tomme tegneflader at slette
Scale Presets Skaleringsforudindstillinger
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Udvid først udseendet (Objekt › Udvid udseende)
Live preview Direkte forhåndsvisning
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Punkttekst
+ Area Text Områdetekst
diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv
index d878751c6f..d654c837c7 100644
--- a/crates/ui-egui/src/i18n/de.tsv
+++ b/crates/ui-egui/src/i18n/de.tsv
@@ -156,6 +156,8 @@
Anchor Point Ankerpunkt
Anchor Point Tool Ankerpunkt-Werkzeug
Anchor Points Ankerpunkte
+ "In" Control Points „Eingehende“ Kontrollpunkte
+ "Out" Control Points „Ausgehende“ Kontrollpunkte
Anchor Points, Handle, and Bounding Box Display Anzeige von Ankerpunkten, Griffen und Begrenzungsrahmen
Anchor/Path Labels Anker-/Pfadbeschriftungen
Anchors: Ankerpunkte:
@@ -545,6 +547,7 @@ font-technology Variable Variabel
Complexity: Komplexität:
Composite colours are converted to it; separations separate with it when it is a CMYK profile. Composite-Farben werden in dieses Profil konvertiert; Separationen werden damit erzeugt, wenn es ein CMYK-Profil ist.
Compound Path Zusammengesetzter Pfad
+ Compound Shape Zusammengesetzte Form
Compress (RLE) Komprimieren (RLE)
Compress text and line art Text und Strichgrafiken komprimieren
Compression Komprimierung
@@ -970,7 +973,6 @@ font-technology Variable Variabel
Exit Isolation Mode Isolationsmodus beenden
Expand Umwandeln
Expand Appearance Aussehen umwandeln
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap „Umwandeln“ gilt für zusammengesetzte Formen (Alt-Klick auf einen Formmodus) – geplant
Expand Brush Strokes Pinselkonturen umwandeln
Expand Compound Shape Zusammengesetzte Form umwandeln
Expand Gradient Mesh Verlaufsgitter umwandeln
@@ -1130,6 +1132,9 @@ font-technology Variable Variabel
Increase Font Size by Five Steps Schriftgrad um fünf Schritte erhöhen
Reset Tracking and Kerning Laufweite und Kerning zurücksetzen
Reset Horizontal Scale Horizontale Skalierung zurücksetzen
+ Highlight Font Name Schriftname hervorheben
+ Highlight Kerning Kerning hervorheben
+ Highlight Tracking Laufweite hervorheben
Spacing Abstand
Step Type Text schrittweise ändern
Fit in View In Ansicht einpassen
@@ -1528,6 +1533,12 @@ file-filter Templates Vorlagen
Image Trace Bildnachzeichner
Image Tracing Bildnachzeichnung
Tracing Presets Nachzeichnervorgaben
+ Manage Presets Vorgaben verwalten
+ Save as New Preset… Als neue Vorgabe speichern…
+ Rename… Umbenennen…
+ Rename Preset Vorgabe umbenennen
+ Save Image Trace Preset Bildnachzeichner-Vorgabe speichern
+ Delete Image Trace Preset Bildnachzeichner-Vorgabe löschen
Image Trace Presets Bildnachzeichner-Vorgaben
Image: Bild:
Images: Bilder:
@@ -1969,6 +1980,7 @@ file-filter Templates Vorlagen
Brush Art Pinselgrafik
New Calligraphic Brush Neuer Kalligrafiepinsel
New Character Style Neues Zeichenformat
+ New Character Style… Neues Zeichenformat…
New Color Group Neue Farbgruppe
New Color Group… Neue Farbgruppe…
New Document Presets Vorgaben für neue Dokumente
@@ -1984,6 +1996,7 @@ file-filter Templates Vorlagen
New Opacity Masks Are Clipping Neue Deckkraftmasken sind Schnittmasken
New Opacity Masks Are Inverted Neue Deckkraftmasken sind invertiert
New Paragraph Style Neues Absatzformat
+ New Paragraph Style… Neues Absatzformat…
New Pattern Brush from Selection Neuer Musterpinsel aus Auswahl
New PDF Preset Neue PDF-Vorgabe
New Print Preset Neue Druckvorgabe
@@ -1997,6 +2010,8 @@ file-filter Templates Vorlagen
New View Neue Ansicht
New View… Neue Ansicht…
New Window Neues Fenster
+ Next Document Nächstes Dokument
+ Previous Document Vorheriges Dokument
New Without Dialog Neu ohne Dialogfeld
New Workspace Neuer Arbeitsbereich
New Workspace… Neuer Arbeitsbereich…
@@ -2844,6 +2859,7 @@ mark-style Japanese Japanisch
Locked Gesperrt
Hidden Ausgeblendet
Filter Layers Panel Rows Zeilen im Ebenenbedienfeld filtern
+@msg `Custom` stands for changed settings: save the preset under another name `Custom` steht für geänderte Einstellungen: Speichern Sie die Vorgabe unter einem anderen Namen
@msg `{key}` must be an array of these names: {_1} `{key}` muss ein Array mit diesen Namen sein: {_1}
Search commands and tools Befehle und Werkzeuge suchen
Search commands and tools… Befehle und Werkzeuge suchen…
@@ -2927,6 +2943,7 @@ mark-style Japanese Japanisch
Shape Builder Regions Formerstellungsbereiche
Shape Builder Tool Formerstellungs-Werkzeug
Shape Effects Formeffekte
+ Shape Mode Formmodus
Shape Modes: Formmodi:
Shape Properties: Formeigenschaften:
Shaper Tool Shaper-Werkzeug
@@ -2985,6 +3002,7 @@ mark-style Japanese Japanisch
Show Original Path Originalpfad einblenden
Open this dialog with these settings next time Dieses Dialogfeld nächstes Mal mit diesen Einstellungen öffnen
Auto-Simplify Automatisch vereinfachen
+ Auto-Smooth Automatisch glätten
Color Panel Options Optionen für das Farbbedienfeld
Show Package Paket anzeigen
Show Panel Bedienfeld einblenden
@@ -3021,6 +3039,7 @@ mark-style Japanese Japanisch
Simplify Vereinfachen
Simplify: Vereinfachen:
Simplify… Vereinfachen…
+ Smooth… Glätten…
Simulate Colored Paper Farbiges Papier simulieren
Simulate Paper Papier simulieren
Double Column Zweispaltig
@@ -3028,6 +3047,7 @@ mark-style Japanese Japanisch
Single Quotes: Einfache Anführungszeichen:
Single Right Quotation Mark Einfaches schließendes Anführungszeichen
Single-line Composer Einzeilen-Setzer
+ Toggle Line Composer Zeilensetzer umschalten
Sixth Space Sechstelgeviert-Leerzeichen
Size Größe
Size Tile to Art Kachelgröße an Grafik anpassen
@@ -3142,6 +3162,11 @@ effect Points Punkte
Stroke Kontur
Stroke (X), double-click for the Color Picker Kontur (X), Doppelklick öffnet den Farbwähler
Stroke Color Konturfarbe
+ Fill Gradient Flächenverlauf
+ Stroke Gradient Konturverlauf
+ Fill Pattern Flächenmuster
+ Stroke Pattern Konturmuster
+ Patterns Muster
Stroke Options Konturoptionen
Character: Zeichen:
Character options Zeichenoptionen
@@ -3416,6 +3441,7 @@ effect Points Punkte
Unlock Guides Hilfslinien entsperren
Unnamed Objects Unbenannte Objekte
Unprintable margin: Nicht druckbarer Rand:
+ Unselected Artwork Nicht ausgewählte Grafik
Unshift Verschiebung aufheben
Untitled Unbenannt
Update Link Verknüpfung aktualisieren
@@ -3723,6 +3749,13 @@ theme Appearance Erscheinungsbild
# names and values in backticks or code (`colorModel rgb`, `document.export`) stay as they are.
@msg no library `{id}` keine Bibliothek `{id}`
@msg select some type first wählen Sie zuerst Text aus
+@msg the selection has no gradient fill die Auswahl hat keinen Flächenverlauf
+@msg the selection has no gradient stroke die Auswahl hat keinen Konturverlauf
+@msg the selection has no pattern fill die Auswahl hat kein Flächenmuster
+@msg the selection has no pattern stroke die Auswahl hat kein Konturmuster
+@msg no gradient swatch `{name}` kein Verlaufsfarbfeld `{name}`
+@msg no pattern swatch `{name}` kein Musterfarbfeld `{name}`
+@msg the library item is damaged das Bibliothekselement ist beschädigt
@msg {_1} has no {_2} style {_1} hat keinen Schnitt „{_2}“
@msg a layer couldn't be read eine Ebene konnte nicht gelesen werden
@msg it has more than one artboard es enthält mehr als eine Zeichenfläche
@@ -3829,8 +3862,10 @@ theme Appearance Erscheinungsbild
@msg `freeform.points` must be an array `freeform.points` muss ein Array sein
@msg `freeform.lines` must be an array `freeform.lines` muss ein Array sein
@msg `gradient` must be an object `gradient` muss ein Objekt sein
+@msg `groupColors` must be an array `groupColors` muss ein Array sein
@msg `library` is a library id or name (see {list}) `library` ist die ID oder der Name einer Bibliothek (siehe {list})
@msg `mode` applies to freeform gradients `mode` gilt für Freiformverläufe
+@msg `preserve` must be an object `preserve` muss ein Objekt sein
@msg `sampleSize` must be 1, 3 or 5 `sampleSize` muss 1, 3 oder 5 sein
@msg `stops` must be an array `stops` muss ein Array sein
@msg `svg` must be an object of SVG options (see document.formats) `svg` muss ein Objekt mit SVG-Optionen sein (siehe document.formats)
@@ -3865,6 +3900,7 @@ theme Appearance Erscheinungsbild
@msg `{name}` is a process colour: tints apply to global and spot colours `{name}` ist eine Prozessfarbe: Tonwerte gelten für globale Farben und Volltonfarben
@msg `{name}` is no recovery entry name `{name}` ist kein Name eines Wiederherstellungseintrags
@msg `{name}` isn't a colour swatch `{name}` ist kein Farbfeld mit einer Farbe
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white eine Prozessfarbe kann ein Graustufenbild mit Transparenz nicht einfärben: Verwenden Sie eine Volltonfarbe, Schwarz oder Weiß
@msg `{path}` must be a bool or an object of bools `{path}` muss ein boolescher Wert oder ein Objekt mit booleschen Werten sein
@msg `{s}` is not a colour (#rrggbb or a preset name) `{s}` ist keine Farbe (#rrggbb oder ein Vorgabename)
@msg `{tool}` isn't a Liquify tool `{tool}` ist kein Verflüssigen-Werkzeug
@@ -3910,6 +3946,10 @@ theme Appearance Erscheinungsbild
@msg a page tree node has no kids ein Knoten des Seitenbaums hat keine untergeordneten Einträge
@msg a page's placement is not finite die Platzierung einer Seite ist nicht endlich
@msg a preset named `{_1}` exists eine Vorgabe namens `{_1}` ist bereits vorhanden
+@msg `name` is empty `name` ist leer
+@msg `newName` is empty `newName` ist leer
+@msg `{name}` is a built-in preset and can't change: save it under another name `{name}` ist eine integrierte Vorgabe und kann nicht geändert werden: Speichern Sie sie unter einem anderen Namen
+@msg `{name}` is a built-in preset and stays `{name}` ist eine integrierte Vorgabe und kann nicht gelöscht werden
@msg a swatch or color group named `{n}` exists ein Farbfeld oder eine Farbgruppe namens `{n}` ist bereits vorhanden
@msg a slice size must be a positive number of points eine Slice-Größe muss eine positive Anzahl von Punkt sein
@msg a spine keeps at least two points eine Achse behält mindestens zwei Punkte
@@ -3929,6 +3969,7 @@ theme Appearance Erscheinungsbild
@msg videoRulerPixelAspectRatio must be a number from 0.1 to 10 videoRulerPixelAspectRatio muss eine Zahl von 0,1 bis 10 sein
@msg the Color Picker is not open der Farbwähler ist nicht geöffnet
@msg the Simplify slider is not open der Regler „Vereinfachen“ ist nicht geöffnet
+@msg the Smooth slider is not open der Regler „Glätten“ ist nicht geöffnet
@msg the screen color sampler is already open die Farbaufnahme vom Bildschirm ist bereits geöffnet
@msg this system has no screen color sampler dieses System hat keine Farbaufnahme vom Bildschirm
@msg bad colour `{hex}` (#rrggbb) ungültige Farbe `{hex}` (#rrggbb)
@@ -4001,6 +4042,7 @@ theme Appearance Erscheinungsbild
@msg missing `id` (see plugin.list) `id` fehlt (siehe plugin.list)
@msg missing `name` `name` fehlt
@msg missing `tool` `tool` fehlt
+@msg missing id id fehlt
@msg missing index der Index fehlt
@msg missing number `{key}` die Zahl `{key}` fehlt
@msg missing integer `{key}` die ganze Zahl `{key}` fehlt
@@ -4034,6 +4076,7 @@ theme Appearance Erscheinungsbild
@msg no current layer keine aktuelle Ebene
@msg no data keine Daten
@msg no dialog open kein Dialogfeld geöffnet
+@msg the open dialog has no Reset das geöffnete Dialogfeld hat keine Schaltfläche „Zurücksetzen“
@msg no document kein Dokument
@msg no document open kein Dokument geöffnet
@msg no effect applied yet noch kein Effekt angewendet
@@ -4067,6 +4110,8 @@ theme Appearance Erscheinungsbild
@msg no print service kein Druckdienst
@msg no revert command kein Befehl zum Zurücksetzen auf die gespeicherte Version
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) keine gespeicherte PDF-Vorgabe namens `{name}` (integrierte Vorgaben sind schreibgeschützt: Erstellen Sie daraus eine neue)
+@msg no saved preset named `{name}` keine gespeicherte Vorgabe namens `{name}`
+@msg no saved preset named `{name}` to rename keine gespeicherte Vorgabe namens `{name}` zum Umbenennen
@msg no saved presets keine gespeicherten Vorgaben
@msg no saved print preset named `{name}` ({DEFAULT_PRESET} is protected: start a new one from it) keine gespeicherte Druckvorgabe namens `{name}` ({DEFAULT_PRESET} ist geschützt: Erstellen Sie daraus eine neue)
@msg no saved profiles keine gespeicherten Profile
@@ -4114,8 +4159,10 @@ theme Appearance Erscheinungsbild
@msg not an EMF or WMF file keine EMF- oder WMF-Datei
@msg not found nicht gefunden
@msg not in pattern editing mode nicht im Musterbearbeitungsmodus
+@msg finish editing the pattern first beenden Sie zuerst die Bearbeitung des Musters
@msg nothing encoded nichts kodiert
@msg nothing selected nichts ausgewählt
+@msg nothing selected is in a group nichts Ausgewähltes befindet sich in einer Gruppe
@msg nothing to align nichts auszurichten
@msg nothing to distort nichts zu verzerren
@msg nothing to export: the document has no visible art (or turn on Use Artboards) nichts zu exportieren: Das Dokument enthält keine sichtbare Grafik (oder aktivieren Sie „Zeichenflächen verwenden“)
@@ -4242,10 +4289,14 @@ theme Appearance Erscheinungsbild
@msg the layer or group is locked die Ebene oder Gruppe ist gesperrt
@msg the guide is on a hidden or locked layer die Hilfslinie liegt auf einer ausgeblendeten oder gesperrten Ebene
@msg the target layer is locked or hidden die Zielebene ist gesperrt oder ausgeblendet
+@msg the object is hidden or locked das Objekt ist ausgeblendet oder gesperrt
+@msg the object is outside the isolated group das Objekt liegt außerhalb der isolierten Gruppe
+@msg type objects can't be isolated Textobjekte können nicht isoliert werden
@msg the layer to flatten into is hidden die Ebene, auf die reduziert werden soll, ist ausgeblendet
@msg the object already has an opacity mask das Objekt hat bereits eine Deckkraftmaske
@msg the object has no geometry das Objekt hat keine Geometrie
@msg the object has no opacity mask das Objekt hat keine Deckkraftmaske
+@msg stop editing the opacity mask first beenden Sie zuerst die Bearbeitung der Deckkraftmaske
@msg the object has no stroke das Objekt hat keine Kontur
@msg the object is beyond the plane's horizon das Objekt liegt jenseits des Horizonts der Perspektivebene
@msg the object isn't in perspective das Objekt ist nicht in der Perspektive
@@ -4291,6 +4342,7 @@ theme Appearance Erscheinungsbild
@msg unknown preset `{name}` (high, medium, low or a saved one: see flattener.presets.list) unbekannte Vorgabe `{name}` (high, medium, low oder eine gespeicherte: siehe flattener.presets.list)
@msg unknown preset `{name}` (see flattener.presets.list) unbekannte Vorgabe `{name}` (siehe flattener.presets.list)
@msg unknown preset `{name}` (see webExport.presets.list) unbekannte Vorgabe `{name}` (siehe webExport.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) unbekannte Vorgabe `{name}`: weder integriert noch gespeichert (siehe imageTrace.presets)
@msg unknown side `{other}` (left|right|top|bottom) unbekannte Seite `{other}` (left|right|top|bottom)
@msg unknown tool `{tool}` unbekanntes Werkzeug `{tool}`
@msg unknown tool `{t}` unbekanntes Werkzeug `{t}`
@@ -4434,6 +4486,10 @@ theme Appearance Erscheinungsbild
Shaper Shaper
Expand Shaper Group Shaper-Gruppe umwandeln
Release Shaper Group Shaper-Gruppe zurückwandeln
+ Remove from Shaper Group Aus Shaper-Gruppe entfernen
+@msg source must be the id of a Shaper Group's original shape source muss die ID einer Originalform einer Shaper-Gruppe sein
+@msg group must be the id of a Shaper Group group muss die ID einer Shaper-Gruppe sein
+@msg the shape is not an editable original shape of that Shaper Group die Form ist keine bearbeitbare Originalform dieser Shaper-Gruppe
Select Shaper Face Shaper-Teilfläche auswählen
Drag art, colors and text styles here to reuse them across documents. Libraries are stored on this machine — no account required. Ziehen Sie Grafiken, Farben und Textformate hierher, um sie in mehreren Dokumenten wiederzuverwenden. Bibliotheken werden auf diesem Computer gespeichert – kein Konto erforderlich.
1 Color Job 1-Farben-Auftrag
@@ -4531,6 +4587,10 @@ theme Appearance Erscheinungsbild
Side Tile Seitenkachel
Outer Corner Tile Äußere Eckkachel
Inner Corner Tile Innere Eckkachel
+ Auto-Centered Auto-zentriert
+ Auto-Between Auto-dazwischen
+ Auto-Sliced Auto-geschnitten
+ Auto-Overlap Auto-überlappend
Start Tile Anfangskachel
End Tile Endkachel
Fit Einpassen
@@ -4559,6 +4619,9 @@ theme Appearance Erscheinungsbild
@msg the PSD file's header is damaged der Header der PSD-Datei ist beschädigt
@msg the PSD file's image data can't be read: {e} die Bilddaten der PSD-Datei können nicht gelesen werden: {e}
@msg the PSD file's image data uses an unknown compression ({m}) die Bilddaten der PSD-Datei verwenden eine unbekannte Komprimierung ({m})
+@msg the PCX file is cut short die PCX-Datei ist unvollständig
+@msg the PCX file's header is damaged der Dateikopf der PCX-Datei ist beschädigt
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read PCX-Dateien mit {bits}-Bit-Pixeln in {planes} Ebenen können nicht gelesen werden
@msg the PSD image is too large to read ({_1} × {_2} pixels) das PSD-Bild ist zu groß zum Lesen ({_1} × {_2} Pixel)
@msg zipped 32-bit PSD image data with prediction can't be read ZIP-komprimierte 32-Bit-PSD-Bilddaten mit Vorhersage können nicht gelesen werden
@msg {depth}-bit PSD files in this colour mode can't be read {depth}-Bit-PSD-Dateien in diesem Farbmodus können nicht gelesen werden
@@ -5203,4 +5266,9 @@ axis Y Axis Y-Achse
Scale Presets Skalierungsvorgaben
@msg a {width}×{height} screenshot's byte count overflows die Byteanzahl eines {width}×{height}-Screenshots läuft über
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot die {what} des Fensters ({points} Punkte × {scale} DPI) kann keinen Screenshot bemessen
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Wandeln Sie zuerst das Aussehen um (Objekt › Aussehen umwandeln)
Live preview Live-Vorschau
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Punkttext
+ Area Text Flächentext
diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv
index 60be74f605..f7f3a97ede 100644
--- a/crates/ui-egui/src/i18n/el.tsv
+++ b/crates/ui-egui/src/i18n/el.tsv
@@ -161,6 +161,8 @@
Anchor Point Σημείο αγκύρωσης
Anchor Point Tool Σημείο αγκύρωσης (Anchor Point Tool)
Anchor Points Σημεία αγκύρωσης
+ "In" Control Points Σημεία ελέγχου «εισόδου»
+ "Out" Control Points Σημεία ελέγχου «εξόδου»
Anchor Points, Handle, and Bounding Box Display Εμφάνιση σημείων αγκύρωσης, λαβών και πλαισίου οριοθέτησης
Anchor/Path Labels Ετικέτες σημείων αγκύρωσης και διαδρομών
Anchors: Σημεία αγκύρωσης:
@@ -526,6 +528,7 @@ font-technology Variable Μεταβλητές
Complement Συμπληρωματικό
Complexity: Πολυπλοκότητα:
Compound Path Σύνθετη διαδρομή
+ Compound Shape Σύνθετο σχήμα
Compress (RLE) Συμπίεση (RLE)
Compress text and line art Συμπίεση κειμένου και γραμμικών γραφικών
Compression Συμπίεση
@@ -1455,6 +1458,12 @@ font-technology Variable Μεταβλητές
Image Trace Ανίχνευση περιγραμμάτων εικόνας
Image Tracing Ανίχνευση περιγραμμάτων εικόνας
Tracing Presets Προεπιλογές ανίχνευσης περιγραμμάτων
+ Manage Presets Διαχείριση προεπιλογών
+ Save as New Preset… Αποθήκευση ως νέας προεπιλογής…
+ Rename… Μετονομασία…
+ Rename Preset Μετονομασία προεπιλογής
+ Save Image Trace Preset Αποθήκευση προεπιλογής ανίχνευσης περιγραμμάτων εικόνας
+ Delete Image Trace Preset Διαγραφή προεπιλογής ανίχνευσης περιγραμμάτων εικόνας
Image Trace Presets Προεπιλογές ανίχνευσης περιγραμμάτων εικόνας
Image: Εικόνα:
Images: Εικόνες:
@@ -1670,6 +1679,8 @@ font-technology Variable Μεταβλητές
New Layer… Νέο επίπεδο…
New Swatch… Νέο δείγμα χρώματος…
New Window Νέο παράθυρο
+ Next Document Επόμενο έγγραφο
+ Previous Document Προηγούμενο έγγραφο
New Without Dialog Νέο χωρίς παράθυρο διαλόγου
New Workspace Νέος χώρος εργασίας
New Workspace… Νέος χώρος εργασίας…
@@ -1870,6 +1881,7 @@ font-technology Variable Μεταβλητές
Simplify Απλοποίηση
Simplify: Απλοποίηση:
Simplify… Απλοποίηση…
+ Smooth… Εξομάλυνση…
Size Μέγεθος
Size: Μέγεθος:
Skew Λοξότητα
@@ -1909,6 +1921,11 @@ font-technology Variable Μεταβλητές
Strikethrough Διακριτή διαγραφή
Stroke Περίγραμμα
Stroke Color Χρώμα περιγράμματος
+ Fill Gradient Ντεγκραντέ γεμίσματος
+ Stroke Gradient Ντεγκραντέ περιγράμματος
+ Fill Pattern Μοτίβο γεμίσματος
+ Stroke Pattern Μοτίβο περιγράμματος
+ Patterns Μοτίβα
Stroke Options Επιλογές περιγράμματος
Character: Χαρακτήρας:
Stroke: Περίγραμμα:
@@ -2051,6 +2068,13 @@ axis Both Και τα δύο
Dock Panel Αγκύρωση πάνελ
@msg no library `{id}` Δεν υπάρχει βιβλιοθήκη με αναγνωριστικό `{id}`
@msg select some type first Επιλέξτε πρώτα κάποιο κείμενο
+@msg the selection has no gradient fill η επιλογή δεν έχει ντεγκραντέ γεμίσματος
+@msg the selection has no gradient stroke η επιλογή δεν έχει ντεγκραντέ περιγράμματος
+@msg the selection has no pattern fill η επιλογή δεν έχει μοτίβο γεμίσματος
+@msg the selection has no pattern stroke η επιλογή δεν έχει μοτίβο περιγράμματος
+@msg no gradient swatch `{name}` δεν υπάρχει δείγμα ντεγκραντέ `{name}`
+@msg no pattern swatch `{name}` δεν υπάρχει δείγμα μοτίβου `{name}`
+@msg the library item is damaged το στοιχείο της βιβλιοθήκης είναι κατεστραμμένο
@msg {_1} has no {_2} style Το {_1} δεν έχει στυλ {_2}
@msg a layer couldn't be read Δεν ήταν δυνατή η ανάγνωση ενός επιπέδου
@msg it has more than one artboard Περιέχει περισσότερους από έναν πίνακες σχεδίασης
@@ -2071,6 +2095,7 @@ axis Both Και τα δύο
@msg its type is to come in as outlines, which only its page has Το κείμενό του θα εισαχθεί ως περιγράμματα, τα οποία υπάρχουν μόνο στη σελίδα του
@msg the art on them differs from the page's in {_1}% of it Τα γραφικά τους διαφέρουν από εκείνα της σελίδας κατά {_1}%
@msg the art on them differs from the page's in {_1}% of it: they come from its editing data all the same Τα γραφικά τους διαφέρουν από εκείνα της σελίδας κατά {_1}%, αλλά θα χρησιμοποιηθούν τα δεδομένα επεξεργασίας
+@msg `Custom` stands for changed settings: save the preset under another name Το `Custom` αντιστοιχεί σε αλλαγμένες ρυθμίσεις: αποθηκεύστε την προεπιλογή με άλλο όνομα
@msg `to` must be "corner" or "smooth" Το `to` πρέπει να είναι "corner" ή "smooth"
@msg BMP files are RGB or grayscale: colorModel rgb or gray Τα αρχεία BMP πρέπει να είναι RGB ή σε κλίμακα του γκρι: colorModel rgb ή gray
@msg Blend colors: select at least three objects with filled colours Ανάμειξη χρωμάτων: επιλέξτε τουλάχιστον τρία αντικείμενα με χρώμα γεμίσματος
@@ -2155,8 +2180,10 @@ axis Both Και τα δύο
@msg `freeform.points` must be an array Το `freeform.points` πρέπει να είναι πίνακας
@msg `freeform.lines` must be an array Το `freeform.lines` πρέπει να είναι πίνακας
@msg `gradient` must be an object Το `gradient` πρέπει να είναι αντικείμενο
+@msg `groupColors` must be an array Το `groupColors` πρέπει να είναι πίνακας
@msg `library` is a library id or name (see {list}) Το `library` είναι αναγνωριστικό ή όνομα βιβλιοθήκης (δείτε {list})
@msg `mode` applies to freeform gradients Το `mode` ισχύει για ντεγκραντέ ελεύθερης μορφής
+@msg `preserve` must be an object Το `preserve` πρέπει να είναι αντικείμενο
@msg `sampleSize` must be 1, 3 or 5 Το `sampleSize` πρέπει να είναι 1, 3 ή 5
@msg `stops` must be an array Το `stops` πρέπει να είναι πίνακας
@msg `svg` must be an object of SVG options (see document.formats) Το `svg` πρέπει να είναι αντικείμενο επιλογών SVG (δείτε document.formats)
@@ -2190,6 +2217,7 @@ axis Both Και τα δύο
@msg `{name}` is a process colour: tints apply to global and spot colours Το `{name}` είναι χρώμα τετραχρωμίας: οι αποχρώσεις εφαρμόζονται σε καθολικά και πλακάτα χρώματα
@msg `{name}` is no recovery entry name Το `{name}` δεν είναι όνομα καταχώρισης ανάκτησης
@msg `{name}` isn't a colour swatch Το `{name}` δεν είναι δείγμα χρώματος
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white ένα χρώμα τετραχρωμίας δεν μπορεί να χρωματίσει εικόνα κλίμακας του γκρι με διαφάνεια: χρησιμοποιήστε πλακάτο χρώμα, μαύρο ή λευκό
@msg `{path}` must be a bool or an object of bools Το `{path}` πρέπει να είναι λογική τιμή ή αντικείμενο λογικών τιμών
@msg `{s}` is not a colour (#rrggbb or a preset name) Το `{s}` δεν είναι χρώμα (#rrggbb ή όνομα προεπιλογής)
@msg `{tool}` isn't a Liquify tool Το `{tool}` δεν είναι εργαλείο ρευστοποίησης
@@ -2478,7 +2506,6 @@ theme Appearance Εμφάνιση
Each page prints as one image, at the document's raster effects resolution. Κάθε σελίδα εκτυπώνεται ως μία εικόνα, στην ανάλυση εφέ ράστερ του εγγράφου.
English: UK Αγγλικά: Ηνωμένο Βασίλειο
English: USA Αγγλικά: ΗΠΑ
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap Η ανάπτυξη εφαρμόζεται σε σύνθετα σχήματα (Alt-κλικ σε λειτουργία σχήματος) — προγραμματισμένη λειτουργία
French Γαλλικά
Generate CSS: the whole document's CSS while nothing is selected Δημιουργία CSS: το CSS ολόκληρου του εγγράφου όταν δεν υπάρχει επιλογή
German Γερμανικά
@@ -2692,6 +2719,10 @@ theme Appearance Εμφάνιση
Outer Corner Tile Πλακίδιο εξωτερικής γωνίας
Side Tile Πλευρικό πλακίδιο
Inner Corner Tile Πλακίδιο εσωτερικής γωνίας
+ Auto-Centered Αυτόματο κεντραρισμένο
+ Auto-Between Αυτόματο ενδιάμεσο
+ Auto-Sliced Αυτόματο κομμένο
+ Auto-Overlap Αυτόματη επικάλυψη
Start Tile Αρχικό πλακίδιο
End Tile Τελικό πλακίδιο
Stretch to fit Επέκταση για προσαρμογή
@@ -2726,6 +2757,7 @@ theme Appearance Εμφάνιση
Flat Fan Επίπεδη βεντάλια
New Calligraphic Brush Νέο καλλιγραφικό πινέλο
New Character Style Νέο στυλ χαρακτήρων
+ New Character Style… Νέο στυλ χαρακτήρων…
New Color Group Νέα ομάδα χρωμάτων
New Color Group… Νέα ομάδα χρωμάτων…
New Document Presets Νέες προεπιλογές εγγράφου
@@ -2740,6 +2772,7 @@ theme Appearance Εμφάνιση
New Opacity Masks Are Clipping Οι νέες μάσκες αδιαφάνειας εφαρμόζουν αποκοπή
New Opacity Masks Are Inverted Οι νέες μάσκες αδιαφάνειας είναι ανεστραμμένες
New Paragraph Style Νέο στυλ παραγράφου
+ New Paragraph Style… Νέο στυλ παραγράφου…
New Pattern Brush from Selection Νέο πινέλο μοτίβου από επιλογή
New PDF Preset Νέα προεπιλογή PDF
New Print Preset Νέα προεπιλογή εκτύπωσης
@@ -3381,6 +3414,7 @@ theme Appearance Εμφάνιση
Shadows and Glows Σκιές και λάμψεις
Shape Builder Regions Περιοχές δημιουργίας σχημάτων
Shape Effects Εφέ σχημάτων
+ Shape Mode Λειτουργία σχήματος
Shape Modes: Λειτουργίες σχημάτων:
Shape Properties: Ιδιότητες σχήματος:
Shaper Tool Διαμορφωτής σχημάτων (Shaper Tool)
@@ -3425,6 +3459,7 @@ theme Appearance Εμφάνιση
Show Original Path Εμφάνιση αρχικής διαδρομής
Open this dialog with these settings next time Άνοιγμα αυτού του παραθύρου με αυτές τις ρυθμίσεις την επόμενη φορά
Auto-Simplify Αυτόματη απλοποίηση
+ Auto-Smooth Αυτόματη εξομάλυνση
Show Package Εμφάνιση συσκευασίας
Show Panel Εμφάνιση πίνακα
Show Pattern Swatches Εμφάνιση δειγμάτων μοτίβου
@@ -3460,6 +3495,7 @@ theme Appearance Εμφάνιση
Single Quotes: Μονά εισαγωγικά:
Single Right Quotation Mark Μονό δεξί εισαγωγικό
Single-line Composer Σύνθεση μονής γραμμής
+ Toggle Line Composer Εναλλαγή σύνθεσης γραμμών
Sixth Space Διάστημα ενός έκτου
Size Tile to Art Προσαρμογή μεγέθους πλακιδίου στο σχέδιο
Size/Leading Μέγεθος/διάστιχο
@@ -3749,6 +3785,7 @@ theme Appearance Εμφάνιση
Unlock Guides Ξεκλείδωμα οδηγών
Unnamed Objects Αντικείμενα χωρίς όνομα
Unprintable margin: Μη εκτυπώσιμο περιθώριο:
+ Unselected Artwork Μη επιλεγμένα γραφικά στοιχεία
Unshift Αναίρεση μετατόπισης
Update Link Ενημέρωση συνδέσμου
Update Links Ενημέρωση συνδέσμων
@@ -3954,6 +3991,10 @@ theme Appearance Εμφάνιση
@msg a page tree node has no kids ο κόμβος δέντρου σελίδων δεν έχει θυγατρικά στοιχεία
@msg a page's placement is not finite η τοποθέτηση της σελίδας δεν έχει πεπερασμένες τιμές
@msg a preset named `{_1}` exists υπάρχει ήδη προεπιλογή με όνομα `{_1}`
+@msg `name` is empty το `name` είναι κενό
+@msg `newName` is empty το `newName` είναι κενό
+@msg `{name}` is a built-in preset and can't change: save it under another name η `{name}` είναι ενσωματωμένη προεπιλογή και δεν μπορεί να αλλάξει: αποθηκεύστε την με άλλο όνομα
+@msg `{name}` is a built-in preset and stays η `{name}` είναι ενσωματωμένη προεπιλογή και δεν μπορεί να διαγραφεί
@msg a swatch or color group named `{n}` exists υπάρχει ήδη δείγμα χρώματος ή ομάδα χρωμάτων με όνομα `{n}`
@msg a slice size must be a positive number of points το μέγεθος τομής πρέπει να είναι θετικός αριθμός στιγμών
@msg a spine keeps at least two points απαιτούνται τουλάχιστον δύο σημεία κεντρικής καμπύλης
@@ -4041,6 +4082,7 @@ theme Appearance Εμφάνιση
@msg missing `id` (see plugin.list) λείπει το `id` (δείτε plugin.list)
@msg missing `name` λείπει το `name`
@msg missing `tool` λείπει το `tool`
+@msg missing id λείπει το id
@msg missing index λείπει ο δείκτης
@msg missing number `{key}` λείπει ο αριθμός `{key}`
@msg missing integer `{key}` λείπει ο ακέραιος `{key}`
@@ -4073,6 +4115,7 @@ theme Appearance Εμφάνιση
@msg no current layer δεν υπάρχει τρέχον επίπεδο
@msg no data δεν υπάρχουν δεδομένα
@msg no dialog open δεν υπάρχει ανοιχτό παράθυρο διαλόγου
+@msg the open dialog has no Reset το ανοιχτό παράθυρο διαλόγου δεν έχει κουμπί Επαναφορά
@msg no document δεν υπάρχει έγγραφο
@msg no document open δεν υπάρχει ανοιχτό έγγραφο
@msg no effect applied yet δεν έχει εφαρμοστεί ακόμη εφέ
@@ -4106,6 +4149,8 @@ theme Appearance Εμφάνιση
@msg no print service δεν υπάρχει υπηρεσία εκτύπωσης
@msg no revert command δεν υπάρχει εντολή επαναφοράς
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) δεν υπάρχει αποθηκευμένη προεπιλογή PDF με όνομα `{name}` (οι ενσωματωμένες προεπιλογές είναι μόνο για ανάγνωση: δημιουργήστε νέα από αυτές)
+@msg no saved preset named `{name}` δεν υπάρχει αποθηκευμένη προεπιλογή με όνομα `{name}`
+@msg no saved preset named `{name}` to rename δεν υπάρχει αποθηκευμένη προεπιλογή με όνομα `{name}` για μετονομασία
@msg no saved presets δεν υπάρχουν αποθηκευμένες προεπιλογές
@msg no saved print preset named `{name}` ({DEFAULT_PRESET} is protected: start a new one from it) δεν υπάρχει αποθηκευμένη προεπιλογή εκτύπωσης με όνομα `{name}` (η {DEFAULT_PRESET} προστατεύεται: δημιουργήστε νέα από αυτήν)
@msg no saved profiles δεν υπάρχουν αποθηκευμένα προφίλ
@@ -4153,8 +4198,10 @@ theme Appearance Εμφάνιση
@msg not an EMF or WMF file δεν είναι αρχείο EMF ή WMF
@msg not found δεν βρέθηκε
@msg not in pattern editing mode δεν βρίσκεστε σε λειτουργία επεξεργασίας μοτίβου
+@msg finish editing the pattern first ολοκληρώστε πρώτα την επεξεργασία του μοτίβου
@msg nothing encoded δεν κωδικοποιήθηκε τίποτα
@msg nothing selected δεν έχει επιλεγεί τίποτα
+@msg nothing selected is in a group τίποτα από τα επιλεγμένα δεν βρίσκεται σε ομάδα
@msg nothing to align δεν υπάρχει τίποτα για στοίχιση
@msg nothing to distort δεν υπάρχει τίποτα για παραμόρφωση
@msg nothing to export: the document has no visible art (or turn on Use Artboards) δεν υπάρχει τίποτα για εξαγωγή: το έγγραφο δεν έχει ορατό σχέδιο (ή ενεργοποιήστε Χρήση πινάκων σχεδίασης)
@@ -4275,10 +4322,14 @@ theme Appearance Εμφάνιση
@msg the layer or group is locked το επίπεδο ή η ομάδα είναι κλειδωμένα
@msg the guide is on a hidden or locked layer ο οδηγός βρίσκεται σε κρυφό ή κλειδωμένο επίπεδο
@msg the target layer is locked or hidden το επίπεδο προορισμού είναι κλειδωμένο ή κρυφό
+@msg the object is hidden or locked το αντικείμενο είναι κρυφό ή κλειδωμένο
+@msg the object is outside the isolated group το αντικείμενο βρίσκεται εκτός της απομονωμένης ομάδας
+@msg type objects can't be isolated τα αντικείμενα κειμένου δεν μπορούν να απομονωθούν
@msg the layer to flatten into is hidden το επίπεδο προορισμού ισοπέδωσης είναι κρυφό
@msg the object already has an opacity mask το αντικείμενο έχει ήδη μάσκα αδιαφάνειας
@msg the object has no geometry το αντικείμενο δεν έχει γεωμετρία
@msg the object has no opacity mask το αντικείμενο δεν έχει μάσκα αδιαφάνειας
+@msg stop editing the opacity mask first τερματίστε πρώτα την επεξεργασία της μάσκας αδιαφάνειας
@msg the object has no stroke το αντικείμενο δεν έχει περίγραμμα
@msg the object is beyond the plane's horizon το αντικείμενο βρίσκεται πέρα από τον ορίζοντα του επιπέδου
@msg the object isn't in perspective το αντικείμενο δεν βρίσκεται σε προοπτική
@@ -4324,6 +4375,7 @@ theme Appearance Εμφάνιση
@msg unknown preset `{name}` (high, medium, low or a saved one: see flattener.presets.list) άγνωστη προεπιλογή `{name}` (high, medium, low ή αποθηκευμένη: δείτε flattener.presets.list)
@msg unknown preset `{name}` (see flattener.presets.list) άγνωστη προεπιλογή `{name}` (δείτε flattener.presets.list)
@msg unknown preset `{name}` (see webExport.presets.list) άγνωστη προεπιλογή `{name}` (δείτε webExport.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) άγνωστη προεπιλογή `{name}`: δεν είναι ενσωματωμένη ούτε αποθηκευμένη (δείτε imageTrace.presets)
@msg unknown side `{other}` (left|right|top|bottom) άγνωστη πλευρά `{other}` (left|right|top|bottom)
@msg unknown tool `{tool}` άγνωστο εργαλείο `{tool}`
@msg unknown tool `{t}` άγνωστο εργαλείο `{t}`
@@ -4463,6 +4515,10 @@ theme Appearance Εμφάνιση
Shaper Διαμορφωτής σχημάτων (Shaper Tool)
Expand Shaper Group Ανάπτυξη ομάδας διαμόρφωσης σχημάτων
Release Shaper Group Αποδέσμευση ομάδας διαμόρφωσης σχημάτων
+ Remove from Shaper Group Αφαίρεση από ομάδα διαμόρφωσης σχημάτων
+@msg source must be the id of a Shaper Group's original shape Το source πρέπει να είναι το αναγνωριστικό ενός αρχικού σχήματος ομάδας διαμόρφωσης σχημάτων
+@msg group must be the id of a Shaper Group Το group πρέπει να είναι το αναγνωριστικό μιας ομάδας διαμόρφωσης σχημάτων
+@msg the shape is not an editable original shape of that Shaper Group Το σχήμα δεν είναι επεξεργάσιμο αρχικό σχήμα αυτής της ομάδας διαμόρφωσης σχημάτων
Select Shaper Face Επιλογή επιφάνειας διαμορφωτή
Drag art, colors and text styles here to reuse them across documents. Libraries are stored on this machine — no account required. Σύρετε εδώ σχέδια, χρώματα και στυλ κειμένου για χρήση σε άλλα έγγραφα. Οι βιβλιοθήκες αποθηκεύονται στον υπολογιστή — χωρίς λογαριασμό.
1 Color Job Εργασία ενός χρώματος
@@ -4504,6 +4560,9 @@ theme Appearance Εμφάνιση
@msg not a PSD file δεν είναι αρχείο PSD
@msg the PSD file has an unknown colour mode ({m}) το αρχείο PSD χρησιμοποιεί άγνωστη λειτουργία χρώματος ({m})
@msg the PSD file's image data uses an unknown compression ({m}) τα δεδομένα εικόνας PSD χρησιμοποιούν άγνωστη συμπίεση ({m})
+@msg the PCX file is cut short το αρχείο PCX είναι περικομμένο
+@msg the PCX file's header is damaged η κεφαλίδα του αρχείου PCX είναι κατεστραμμένη
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read τα αρχεία PCX με εικονοστοιχεία {bits} bit σε {planes} επίπεδα δεν διαβάζονται
@msg the PSD image is too large to read ({_1} × {_2} pixels) η εικόνα PSD είναι πολύ μεγάλη για ανάγνωση ({_1} × {_2} εικονοστοιχεία)
@msg zipped 32-bit PSD image data with prediction can't be read τα συμπιεσμένα δεδομένα εικόνας PSD 32 bit με πρόβλεψη δεν διαβάζονται
@msg {depth}-bit PSD files in this colour mode can't be read τα αρχεία PSD {depth} bit δεν διαβάζονται σε αυτήν τη λειτουργία χρώματος
@@ -5241,6 +5300,9 @@ effect Points Σημεία
Registration: Σημείο αναφοράς:
Reset Horizontal Scale Επαναφορά οριζόντιας κλίμακας
Reset Tracking and Kerning Επαναφορά απόστασης χαρακτήρων και διαγραμμάτωσης
+ Highlight Font Name Επισήμανση ονόματος γραμματοσειράς
+ Highlight Kerning Επισήμανση διαγραμμάτωσης
+ Highlight Tracking Επισήμανση απόστασης χαρακτήρων
Sample Color from Screen Δειγματοληψία χρώματος από την οθόνη
Set as Default Ορισμός ως προεπιλογή
Show Template Εμφάνιση προτύπου
@@ -5295,6 +5357,7 @@ effect Points Σημεία
@msg span: "selection" places the gradient itself: leave out `start` and `end` (they already place it in document coordinates) span: το "selection" τοποθετεί το ίδιο το ντεγκραντέ: παραλείψτε τα `start` και `end` (το τοποθετούν ήδη σε συντεταγμένες εγγράφου)
@msg the Color Picker is not open ο επιλογέας χρώματος δεν είναι ανοιχτός
@msg the Simplify slider is not open ο ρυθμιστής Απλοποίησης δεν είναι ανοιχτός
+@msg the Smooth slider is not open ο ρυθμιστής Εξομάλυνσης δεν είναι ανοιχτός
@msg the action has no steps η ενέργεια δεν έχει βήματα
@msg the file's layers weren't read ({_1}): it comes in as its page, in one layer τα επίπεδα του αρχείου δεν διαβάστηκαν ({_1}): εισάγεται ως η σελίδα του, σε ένα επίπεδο
@msg the file's layers weren't read from its editing data ({_1}): they come from its PDF part τα επίπεδα του αρχείου δεν διαβάστηκαν από τα δεδομένα επεξεργασίας του ({_1}): προέρχονται από το τμήμα PDF του
@@ -5573,4 +5636,9 @@ axis Y Axis Άξονας Y
Scale Presets Προεπιλογές κλίμακας
@msg a {width}×{height} screenshot's byte count overflows το πλήθος byte ενός στιγμιότυπου {width}×{height} υπερχειλίζει
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot το {what} του παραθύρου ({points} σημεία × {scale} DPI) δεν μπορεί να καθορίσει μέγεθος στιγμιότυπου
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Επεκτείνετε πρώτα την εμφάνιση (Αντικείμενο › Επέκταση εμφάνισης)
Live preview Ζωντανή προεπισκόπηση
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Κείμενο σημείου
+ Area Text Κείμενο περιοχής
diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv
index 48fa67ea47..ab1bf14170 100644
--- a/crates/ui-egui/src/i18n/es.tsv
+++ b/crates/ui-egui/src/i18n/es.tsv
@@ -181,6 +181,8 @@
Anchor Point Punto de ancla
Anchor Point Tool Herramienta Punto de ancla
Anchor Points Puntos de ancla
+ "In" Control Points Puntos de control «de entrada»
+ "Out" Control Points Puntos de control «de salida»
Anchor Points, Handle, and Bounding Box Display Visualización de puntos de ancla, manejadores y cuadro delimitador
Anchor/Path Labels Etiquetas de ancla/trazado
Anchors: Anclas:
@@ -567,6 +569,7 @@ font-technology Variable Variables
Complexity: Complejidad:
Composite colours are converted to it; separations separate with it when it is a CMYK profile. Los colores compuestos se convierten a este perfil; las separaciones lo usan cuando es un perfil CMYK.
Compound Path Trazado compuesto
+ Compound Shape Forma compuesta
Compress (RLE) Comprimir (RLE)
Compress text and line art Comprimir texto y arte lineal
Compression Compresión
@@ -993,7 +996,6 @@ font-technology Variable Variables
Exit Isolation Mode Salir del modo de aislamiento
Expand Expandir
Expand Appearance Expandir apariencia
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap Expandir se aplica a formas compuestas (Alt+clic en un modo de forma): en la hoja de ruta
Expand Brush Strokes Expandir trazos de pincel
Expand Compound Shape Expandir forma compuesta
Expand Gradient Mesh Expandir malla de degradado
@@ -1153,6 +1155,9 @@ font-technology Variable Variables
Increase Font Size by Five Steps Aumentar tamaño de fuente en cinco incrementos
Reset Tracking and Kerning Restablecer espaciado e interletraje
Reset Horizontal Scale Restablecer escala horizontal
+ Highlight Font Name Resaltar nombre de fuente
+ Highlight Kerning Resaltar interletraje
+ Highlight Tracking Resaltar espaciado
Spacing Espaciado
Step Type Ajustar texto por incrementos
Fit in View Encajar en la vista
@@ -1528,6 +1533,12 @@ font-technology Variable Variables
Image Trace Calco de imagen
Image Tracing Objeto de calco de imagen
Tracing Presets Preajustes de calco
+ Manage Presets Gestionar preajustes
+ Save as New Preset… Guardar como preajuste nuevo…
+ Rename… Cambiar nombre…
+ Rename Preset Cambiar nombre del preajuste
+ Save Image Trace Preset Guardar preajuste de calco de imagen
+ Delete Image Trace Preset Eliminar preajuste de calco de imagen
Image Trace Presets Preajustes de calco de imagen
Image: Imagen:
Images: Imágenes:
@@ -1959,6 +1970,10 @@ font-technology Variable Variables
Outer Corner Tile Mosaico de esquina exterior
Side Tile Mosaico lateral
Inner Corner Tile Mosaico de esquina interior
+ Auto-Centered Auto-centrado
+ Auto-Between Auto-entre
+ Auto-Sliced Auto-cortado
+ Auto-Overlap Auto-superposición
Start Tile Mosaico inicial
End Tile Mosaico final
Fit Ajuste
@@ -2007,6 +2022,7 @@ font-technology Variable Variables
Brush Art Ilustración del pincel
New Calligraphic Brush Nuevo pincel caligráfico
New Character Style Nuevo estilo de carácter
+ New Character Style… Nuevo estilo de carácter…
New Color Group Nuevo grupo de colores
New Color Group… Nuevo grupo de colores…
New Document Presets Preajustes de documento nuevo
@@ -2022,6 +2038,7 @@ font-technology Variable Variables
New Opacity Masks Are Clipping Las nuevas máscaras de opacidad recortan
New Opacity Masks Are Inverted Las nuevas máscaras de opacidad se invierten
New Paragraph Style Nuevo estilo de párrafo
+ New Paragraph Style… Nuevo estilo de párrafo…
New Pattern Brush from Selection Nuevo pincel de motivo a partir de la selección
New PDF Preset Nuevo preajuste de PDF
New Print Preset Nuevo preajuste de impresión
@@ -2035,6 +2052,8 @@ font-technology Variable Variables
New View Nueva vista
New View… Nueva vista…
New Window Nueva ventana
+ Next Document Documento siguiente
+ Previous Document Documento anterior
New Without Dialog Nuevo sin cuadro de diálogo
New Workspace Nuevo espacio de trabajo
New Workspace… Nuevo espacio de trabajo…
@@ -2875,6 +2894,7 @@ font-technology Variable Variables
Locked Bloqueados
Hidden Ocultos
Filter Layers Panel Rows Filtrar filas del panel Capas
+@msg `Custom` stands for changed settings: save the preset under another name `Custom` representa ajustes modificados: guarda el preajuste con otro nombre
@msg `{key}` must be an array of these names: {_1} `{key}` debe ser una lista de estos nombres: {_1}
Search commands and tools Buscar comandos y herramientas
Search commands and tools… Buscar comandos y herramientas…
@@ -2958,6 +2978,7 @@ font-technology Variable Variables
Shape Builder Regions Regiones del generador de formas
Shape Builder Tool Herramienta Generador de formas
Shape Effects Efectos de forma
+ Shape Mode Modo de forma
Shape Modes: Modos de forma:
Shape Properties: Propiedades de forma:
Shaper Tool Herramienta Shaper
@@ -3016,6 +3037,7 @@ font-technology Variable Variables
Show Original Path Mostrar trazado original
Open this dialog with these settings next time Abrir este cuadro de diálogo con estos ajustes la próxima vez
Auto-Simplify Simplificar automáticamente
+ Auto-Smooth Suavizar automáticamente
Color Panel Options Opciones del panel Color
Show Package Mostrar paquete
Show Panel Mostrar panel
@@ -3052,6 +3074,7 @@ font-technology Variable Variables
Simplify Simplificar
Simplify: Simplificar:
Simplify… Simplificar…
+ Smooth… Suavizar…
Simulate Colored Paper Simular papel de color
Simulate Paper Simular papel
Double Column Columna doble
@@ -3059,6 +3082,7 @@ font-technology Variable Variables
Single Quotes: Comillas simples:
Single Right Quotation Mark Comilla simple de cierre
Single-line Composer Composición de una línea
+ Toggle Line Composer Alternar composición de líneas
Sixth Space Sexto de espacio
Size Tamaño
Size Tile to Art Ajustar tamaño del mosaico a la ilustración
@@ -3172,6 +3196,11 @@ font-technology Variable Variables
Stroke Trazo
Stroke (X), double-click for the Color Picker Trazo (X), doble clic para el selector de color
Stroke Color Color de trazo
+ Fill Gradient Degradado de relleno
+ Stroke Gradient Degradado de trazo
+ Fill Pattern Motivo de relleno
+ Stroke Pattern Motivo de trazo
+ Patterns Motivos
Stroke Options Opciones de trazo
Character: Carácter:
Character options Opciones de carácter
@@ -3462,6 +3491,7 @@ font-technology Variable Variables
Unlock Guides Desbloquear guías
Unnamed Objects Objetos sin nombre
Unprintable margin: Margen no imprimible:
+ Unselected Artwork Ilustración no seleccionada
Unshift Deshacer cambio
Untitled Sin título
Update Link Actualizar vínculo
@@ -3799,6 +3829,13 @@ axis Both Ambos
# names and values in backticks or code (`colorModel rgb`, `document.export`) stay as they are.
@msg no library `{id}` no hay ninguna biblioteca `{id}`
@msg select some type first selecciona primero algún texto
+@msg the selection has no gradient fill la selección no tiene un degradado de relleno
+@msg the selection has no gradient stroke la selección no tiene un degradado de trazo
+@msg the selection has no pattern fill la selección no tiene un motivo de relleno
+@msg the selection has no pattern stroke la selección no tiene un motivo de trazo
+@msg no gradient swatch `{name}` no existe la muestra de degradado `{name}`
+@msg no pattern swatch `{name}` no existe la muestra de motivo `{name}`
+@msg the library item is damaged el elemento de la biblioteca está dañado
@msg {_1} has no {_2} style {_1} no tiene el estilo {_2}
@msg a layer couldn't be read no se pudo leer una capa
@msg it has more than one artboard tiene más de una mesa de trabajo
@@ -3905,8 +3942,10 @@ axis Both Ambos
@msg `freeform.points` must be an array `freeform.points` debe ser una lista
@msg `freeform.lines` must be an array `freeform.lines` debe ser una lista
@msg `gradient` must be an object `gradient` debe ser un objeto
+@msg `groupColors` must be an array `groupColors` debe ser una lista
@msg `library` is a library id or name (see {list}) `library` es el id o el nombre de una biblioteca (consulta {list})
@msg `mode` applies to freeform gradients `mode` se aplica a los degradados de forma libre
+@msg `preserve` must be an object `preserve` debe ser un objeto
@msg `sampleSize` must be 1, 3 or 5 `sampleSize` debe ser 1, 3 o 5
@msg `stops` must be an array `stops` debe ser una lista
@msg `svg` must be an object of SVG options (see document.formats) `svg` debe ser un objeto con opciones de SVG (consulta document.formats)
@@ -3941,6 +3980,7 @@ axis Both Ambos
@msg `{name}` is a process colour: tints apply to global and spot colours `{name}` es un color de cuatricromía: los matices se aplican a colores globales y planos
@msg `{name}` is no recovery entry name `{name}` no es el nombre de una entrada de recuperación
@msg `{name}` isn't a colour swatch `{name}` no es una muestra de color
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white un color de cuatricromía no puede colorear una imagen en escala de grises con transparencia: use un color plano, negro o blanco
@msg `{path}` must be a bool or an object of bools `{path}` debe ser un booleano o un objeto de booleanos
@msg `{s}` is not a colour (#rrggbb or a preset name) `{s}` no es un color (#rrggbb o el nombre de un preajuste)
@msg `{tool}` isn't a Liquify tool `{tool}` no es una herramienta de Licuar
@@ -3986,6 +4026,10 @@ axis Both Ambos
@msg a page tree node has no kids un nodo del árbol de páginas no tiene hijos
@msg a page's placement is not finite la posición de una página no es finita
@msg a preset named `{_1}` exists ya existe un preajuste llamado `{_1}`
+@msg `name` is empty `name` está vacío
+@msg `newName` is empty `newName` está vacío
+@msg `{name}` is a built-in preset and can't change: save it under another name `{name}` es un preajuste integrado y no se puede cambiar: guárdalo con otro nombre
+@msg `{name}` is a built-in preset and stays `{name}` es un preajuste integrado y no se puede eliminar
@msg a swatch or color group named `{n}` exists ya existe una muestra o un grupo de colores llamado `{n}`
@msg a slice size must be a positive number of points el tamaño de un sector debe ser un número positivo de puntos
@msg a spine keeps at least two points un eje conserva al menos dos puntos
@@ -4005,6 +4049,7 @@ axis Both Ambos
@msg videoRulerPixelAspectRatio must be a number from 0.1 to 10 videoRulerPixelAspectRatio debe ser un número de 0,1 a 10
@msg the Color Picker is not open el Selector de color no está abierto
@msg the Simplify slider is not open el regulador de Simplificar no está abierto
+@msg the Smooth slider is not open el regulador de Suavizar no está abierto
@msg the screen color sampler is already open el muestreador de color de la pantalla ya está abierto
@msg this system has no screen color sampler este sistema no tiene muestreador de color de la pantalla
@msg bad colour `{hex}` (#rrggbb) color no válido `{hex}` (#rrggbb)
@@ -4077,6 +4122,7 @@ axis Both Ambos
@msg missing `id` (see plugin.list) falta `id` (consulta plugin.list)
@msg missing `name` falta `name`
@msg missing `tool` falta `tool`
+@msg missing id falta id
@msg missing index falta index
@msg missing number `{key}` falta el número `{key}`
@msg missing integer `{key}` falta el número entero `{key}`
@@ -4109,6 +4155,7 @@ axis Both Ambos
@msg no current layer no hay capa actual
@msg no data no hay datos
@msg no dialog open no hay ningún cuadro de diálogo abierto
+@msg the open dialog has no Reset el cuadro de diálogo abierto no tiene el botón Restablecer
@msg no document no hay documento
@msg no document open no hay ningún documento abierto
@msg no effect applied yet todavía no se aplicó ningún efecto
@@ -4142,6 +4189,8 @@ axis Both Ambos
@msg no print service no hay servicio de impresión
@msg no revert command no hay comando para volver a la versión guardada
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) no hay ningún preajuste de PDF guardado llamado `{name}` (los preajustes integrados son de solo lectura: crea uno nuevo a partir de ellos)
+@msg no saved preset named `{name}` no hay ningún preajuste guardado llamado `{name}`
+@msg no saved preset named `{name}` to rename no hay ningún preajuste guardado llamado `{name}` para cambiarle el nombre
@msg no saved presets no hay preajustes guardados
@msg no saved print preset named `{name}` ({DEFAULT_PRESET} is protected: start a new one from it) no hay ningún preajuste de impresión guardado llamado `{name}` ({DEFAULT_PRESET} está protegido: crea uno nuevo a partir de él)
@msg no saved profiles no hay perfiles guardados
@@ -4189,8 +4238,10 @@ axis Both Ambos
@msg not an EMF or WMF file no es un archivo EMF ni WMF
@msg not found no se encontró
@msg not in pattern editing mode no está en el modo de edición de motivos
+@msg finish editing the pattern first termina primero la edición del motivo
@msg nothing encoded no se codificó nada
@msg nothing selected no hay nada seleccionado
+@msg nothing selected is in a group nada de lo seleccionado está en un grupo
@msg nothing to align no hay nada que alinear
@msg nothing to distort no hay nada que distorsionar
@msg nothing to export: the document has no visible art (or turn on Use Artboards) no hay nada que exportar: el documento no tiene ilustración visible (o activa Usar mesas de trabajo)
@@ -4317,10 +4368,14 @@ axis Both Ambos
@msg the layer or group is locked la capa o el grupo está bloqueado
@msg the guide is on a hidden or locked layer la guía está en una capa oculta o bloqueada
@msg the target layer is locked or hidden la capa de destino está bloqueada u oculta
+@msg the object is hidden or locked el objeto está oculto o bloqueado
+@msg the object is outside the isolated group el objeto está fuera del grupo aislado
+@msg type objects can't be isolated los objetos de texto no se pueden aislar
@msg the layer to flatten into is hidden la capa en la que acoplar está oculta
@msg the object already has an opacity mask el objeto ya tiene una máscara de opacidad
@msg the object has no geometry el objeto no tiene geometría
@msg the object has no opacity mask el objeto no tiene máscara de opacidad
+@msg stop editing the opacity mask first detén primero la edición de la máscara de opacidad
@msg the object has no stroke el objeto no tiene trazo
@msg the object is beyond the plane's horizon el objeto está más allá del horizonte del plano
@msg the object isn't in perspective el objeto no está en perspectiva
@@ -4366,6 +4421,7 @@ axis Both Ambos
@msg unknown preset `{name}` (high, medium, low or a saved one: see flattener.presets.list) preajuste desconocido `{name}` (high, medium, low o uno guardado: consulta flattener.presets.list)
@msg unknown preset `{name}` (see flattener.presets.list) preajuste desconocido `{name}` (consulta flattener.presets.list)
@msg unknown preset `{name}` (see webExport.presets.list) preajuste desconocido `{name}` (consulta webExport.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) preajuste desconocido `{name}`: no es integrado ni guardado (consulta imageTrace.presets)
@msg unknown side `{other}` (left|right|top|bottom) lado desconocido `{other}` (left|right|top|bottom)
@msg unknown tool `{tool}` herramienta desconocida `{tool}`
@msg unknown tool `{t}` herramienta desconocida `{t}`
@@ -4510,6 +4566,10 @@ axis Both Ambos
Shaper Shaper
Expand Shaper Group Expandir grupo Shaper
Release Shaper Group Soltar grupo Shaper
+ Remove from Shaper Group Quitar del grupo Shaper
+@msg source must be the id of a Shaper Group's original shape source debe ser el identificador de una forma original de un grupo Shaper
+@msg group must be the id of a Shaper Group group debe ser el identificador de un grupo Shaper
+@msg the shape is not an editable original shape of that Shaper Group la forma no es una forma original editable de ese grupo Shaper
Select Shaper Face Seleccionar cara Shaper
Constrain Restringir
Free Transform Transformación libre
@@ -4540,6 +4600,9 @@ axis Both Ambos
@msg not a PSD file no es un documento PSD
@msg the PSD file has an unknown colour mode ({m}) el archivo PSD tiene un modo de color desconocido ({m})
@msg the PSD file's image data uses an unknown compression ({m}) los datos de imagen del archivo PSD usan una compresión desconocida ({m})
+@msg the PCX file is cut short el archivo PCX está incompleto
+@msg the PCX file's header is damaged el encabezado del archivo PCX está dañado
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read los archivos PCX con píxeles de {bits} bits en {planes} planos no se pueden leer
@msg the PSD image is too large to read ({_1} × {_2} pixels) la imagen PSD es demasiado grande para leerla ({_1} × {_2} píxeles)
@msg zipped 32-bit PSD image data with prediction can't be read no se pueden leer datos de imagen PSD de 32 bits comprimidos en ZIP con predicción
@msg {depth}-bit PSD files in this colour mode can't be read los archivos PSD de {depth} bits en este modo de color no se pueden leer
@@ -5563,4 +5626,9 @@ axis Y Axis Eje Y
Scale Presets Ajustes predefinidos de escala
@msg a {width}×{height} screenshot's byte count overflows el número de bytes de una captura de {width}×{height} se desborda
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot el {what} de la ventana ({points} puntos × {scale} DPI) no puede dimensionar una captura
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Primero expande la apariencia (Objeto › Expandir apariencia)
Live preview Vista previa en directo
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Texto de punto
+ Area Text Texto de área
diff --git a/crates/ui-egui/src/i18n/fi.tsv b/crates/ui-egui/src/i18n/fi.tsv
index c277e03bb7..db14ba4d31 100644
--- a/crates/ui-egui/src/i18n/fi.tsv
+++ b/crates/ui-egui/src/i18n/fi.tsv
@@ -198,6 +198,7 @@
Other Layers Muut tasot
Unlock All Avaa kaikki lukitukset
Hide Piilota
+ Unselected Artwork Valitsematon kuvitus
Show All Näytä kaikki
Expand… Laajenna…
Expand Appearance Laajenna ulkoasu
@@ -231,6 +232,7 @@
Offset Path… Siirrä polkua…
Reverse Path Direction Käännä polun suunta
Simplify… Yksinkertaista…
+ Smooth… Tasoita…
Add Anchor Points Lisää ankkuripisteitä
Remove Anchor Points Poista ankkuripisteitä
Divide Objects Below Jaa alla olevat objektit
@@ -292,6 +294,7 @@
Clipping Mask Leikkausmaski
Edit Clipping Path Muokkaa leikkauspolkua
Compound Path Yhdistelmäpolku
+ Compound Shape Yhdistelmämuoto
Artboards Piirtoalustat
Convert to Artboards Muunna piirtoalustoiksi
Rearrange All Artboards… Järjestä kaikki piirtoalustat uudelleen…
@@ -409,6 +412,11 @@
Fill Color Täyttöväri
Opacity Peittävyys
Stroke Color Viivan väri
+ Fill Gradient Täytön liukuväri
+ Stroke Gradient Viivan liukuväri
+ Fill Pattern Täytön kuvio
+ Stroke Pattern Viivan kuvio
+ Patterns Kuviot
Stroke Weight Viivan paksuus
Graphic Style Grafiikkatyyli
Symbol Instance Symbolin ilmentymä
@@ -609,6 +617,8 @@
Saved View 25 Tallennettu näkymä 25
Window Ikkuna
New Window Uusi ikkuna
+ Next Document Seuraava asiakirja
+ Previous Document Edellinen asiakirja
Cascade Porrasta
Tile Vierekkäin
Float in Window Kelluta ikkunassa
@@ -807,6 +817,10 @@
Shaper Muotoilija
Expand Shaper Group Laajenna muotoilijaryhmä
Release Shaper Group Vapauta muotoilijaryhmä
+ Remove from Shaper Group Poista muotoilijaryhmästä
+@msg source must be the id of a Shaper Group's original shape source-arvon on oltava muotoilijaryhmän alkuperäisen muodon tunnus
+@msg group must be the id of a Shaper Group group-arvon on oltava muotoilijaryhmän tunnus
+@msg the shape is not an editable original shape of that Shaper Group muoto ei ole kyseisen muotoilijaryhmän muokattava alkuperäinen muoto
Select Shaper Face Valitse muotoilijan pinta
Constrain Rajoita
Free Transform Vapaa muunnos
@@ -1627,6 +1641,12 @@ lighting Light Valo
Document Library Asiakirjakirjasto
Library: Kirjasto:
Tracing Presets Jäljityksen esiasetukset
+ Manage Presets Hallitse esiasetuksia
+ Save as New Preset… Tallenna uutena esiasetuksena…
+ Rename… Nimeä uudelleen…
+ Rename Preset Nimeä esiasetus uudelleen
+ Save Image Trace Preset Tallenna kuvan jäljityksen esiasetus
+ Delete Image Trace Preset Poista kuvan jäljityksen esiasetus
Method: Menetelmä:
Mode: Tila:
Noise Kohina
@@ -1718,6 +1738,7 @@ lighting Light Valo
Show Original Path Näytä alkuperäinen polku
Open this dialog with these settings next time Avaa tämä valintaikkuna näillä asetuksilla ensi kerralla
Auto-Simplify Yksinkertaista automaattisesti
+ Auto-Smooth Tasoita automaattisesti
Transparency Options Läpinäkyvyysasetukset
Color Mixer (Shift-click the chip) Värisekoitin (Vaihto-napsauta värilaattaa)
Fill: click for swatches, Shift-click for the color mixer Täyttö: napsauta avataksesi värimallit, Vaihto-napsauta avataksesi värisekoittimen
@@ -1767,13 +1788,13 @@ lighting Light Valo
Roman Hanging Punctuation Latinalaiset riippuvat välimerkit
Select a text object to edit its paragraph attributes. Valitse tekstiobjekti, jonka kappalemääritteitä haluat muokata.
Single-line Composer Yhden rivin asettelu
+ Toggle Line Composer Vaihda rivien asettelu
Space After Paragraph Väli kappaleen jälkeen
Space Before Paragraph Väli ennen kappaletta
Top-to-Top Leading Riviväli yläreunasta yläreunaan
Bottom-to-Bottom Leading Riviväli alareunasta alareunaan
Burasagari Burasagari
Force Pakota
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap Laajenna koskee yhdistelmämuotoja (Alt-napsauta muototilaa) — suunnitteilla
Expand Compound Shape Laajenna yhdistelmämuoto
Make Compound Shape Tee yhdistelmämuoto
Pathfinder Options… Polunetsimen asetukset…
@@ -2033,6 +2054,10 @@ lighting Light Valo
Outer Corner Tile Ulkokulman ruutu
Side Tile Sivuruutu
Inner Corner Tile Sisäkulman ruutu
+ Auto-Centered Autom. keskitetty
+ Auto-Between Autom. välissä
+ Auto-Sliced Autom. viistetty
+ Auto-Overlap Autom. limittäin
Start Tile Alkuruutu
End Tile Loppuruutu
Fit Sovita
@@ -2292,6 +2317,8 @@ lighting Light Valo
Locate Selected Objects Paikanna valitut objektit
Thumbnails: Pikkukuvat:
Anchor Points Ankkuripisteet
+ "In" Control Points ”Sisään”-ohjauspisteet
+ "Out" Control Points ”Ulos”-ohjauspisteet
Brush Affects: Sivellin vaikuttaa:
Complexity: Monimutkaisuus:
Detail: Yksityiskohdat:
@@ -3887,6 +3914,7 @@ font-technology Variable Muuttuvat
Default Fill and Stroke (D) Oletustäyttö ja -viiva (D)
Fill (X), double-click for the Color Picker Täyttö (X), kaksoisnapsauta avataksesi värinvalitsimen
Opacity: Peittävyys:
+ Shape Mode Muototila
Shape Modes: Muototilat:
Stroke (X), double-click for the Color Picker Viiva (X), kaksoisnapsauta avataksesi värinvalitsimen
Stroke: Viiva:
@@ -3935,7 +3963,9 @@ font-technology Variable Muuttuvat
Mojikumi Mojikumi
N pt per N pt kohden
New Character Style Uusi merkkityyli
+ New Character Style… Uusi merkkityyli…
New Paragraph Style Uusi kappaletyyli
+ New Paragraph Style… Uusi kappaletyyli…
Paragraph Style Options Kappaletyylin asetukset
Redefine Character Style Määritä merkkityyli uudelleen
Redefine Paragraph Style Määritä kappaletyyli uudelleen
@@ -4023,6 +4053,13 @@ imageTrace Outline Ääriviiva
@plural {n} stroke|{n} strokes {n} viiva|{n} viivaa
@msg no library `{id}` ei kirjastoa `{id}`
@msg select some type first valitse ensin tekstiä
+@msg the selection has no gradient fill valinnalla ei ole liukuväritäyttöä
+@msg the selection has no gradient stroke valinnalla ei ole liukuväriviivaa
+@msg the selection has no pattern fill valinnalla ei ole kuviotäyttöä
+@msg the selection has no pattern stroke valinnalla ei ole kuvioviivaa
+@msg no gradient swatch `{name}` ei liukuvärimallia `{name}`
+@msg no pattern swatch `{name}` ei kuviomallia `{name}`
+@msg the library item is damaged kirjaston kohde on vioittunut
@msg {_1} has no {_2} style {_1}: ei tyyliä {_2}
@msg a layer couldn't be read tasoa ei voitu lukea
@msg it has more than one artboard siinä on useampi kuin yksi piirtoalusta
@@ -4043,6 +4080,7 @@ imageTrace Outline Ääriviiva
@msg its type is to come in as outlines, which only its page has sen teksti tuodaan ääriviivoina, jotka ovat vain sen sivulla
@msg the art on them differs from the page's in {_1}% of it niiden kuvitus eroaa sivun kuvituksesta {_1} %:n osalta
@msg the art on them differs from the page's in {_1}% of it: they come from its editing data all the same niiden kuvitus eroaa sivun kuvituksesta {_1} %:n osalta: ne tuodaan silti sen muokkaustiedoista
+@msg `Custom` stands for changed settings: save the preset under another name `Custom` tarkoittaa muutettuja asetuksia: tallenna esiasetus toisella nimellä
@msg `to` must be "corner" or "smooth" `to` on oltava "corner" tai "smooth"
@msg BMP files are RGB or grayscale: colorModel rgb or gray BMP-tiedostot ovat RGB- tai harmaasävykuvia: colorModel rgb tai gray
@msg Blend colors: select at least three objects with filled colours Sulauta värit: valitse vähintään kolme objektia, joilla on väritäyttö
@@ -4126,8 +4164,10 @@ imageTrace Outline Ääriviiva
@msg `freeform.points` must be an array `freeform.points` on oltava taulukko
@msg `freeform.lines` must be an array `freeform.lines` on oltava taulukko
@msg `gradient` must be an object `gradient` on oltava objekti
+@msg `groupColors` must be an array `groupColors` on oltava taulukko
@msg `library` is a library id or name (see {list}) `library` on kirjaston tunnus tai nimi (ks. {list})
@msg `mode` applies to freeform gradients `mode` koskee vapaamuotoisia liukuvärejä
+@msg `preserve` must be an object `preserve` on oltava objekti
@msg `sampleSize` must be 1, 3 or 5 `sampleSize` on oltava 1, 3 tai 5
@msg `stops` must be an array `stops` on oltava taulukko
@msg `svg` must be an object of SVG options (see document.formats) `svg` on oltava SVG-asetusten objekti (ks. document.formats)
@@ -4161,6 +4201,7 @@ imageTrace Outline Ääriviiva
@msg `{name}` is a process colour: tints apply to global and spot colours `{name}` on prosessiväri: sävytteet koskevat globaaleja värejä ja spottivärejä
@msg `{name}` is no recovery entry name `{name}` ei ole palautusmerkinnän nimi
@msg `{name}` isn't a colour swatch `{name}` ei ole värimalli
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white prosessiväri ei voi värittää läpinäkyvyyttä sisältävää harmaasävykuvaa: käytä spottiväriä, mustaa tai valkoista
@msg `{path}` must be a bool or an object of bools `{path}` on oltava totuusarvo tai totuusarvojen objekti
@msg `{s}` is not a colour (#rrggbb or a preset name) `{s}` ei ole väri (#rrggbb tai esiasetuksen nimi)
@msg `{tool}` isn't a Liquify tool `{tool}` ei ole Nesteytä-työkalu
@@ -4206,6 +4247,10 @@ imageTrace Outline Ääriviiva
@msg a page tree node has no kids sivupuun solmulla ei ole lapsia
@msg a page's placement is not finite sivun sijainti ei ole äärellinen
@msg a preset named `{_1}` exists esiasetus nimeltä `{_1}` on olemassa
+@msg `name` is empty `name` on tyhjä
+@msg `newName` is empty `newName` on tyhjä
+@msg `{name}` is a built-in preset and can't change: save it under another name `{name}` on sisäänrakennettu esiasetus, eikä sitä voi muuttaa: tallenna se toisella nimellä
+@msg `{name}` is a built-in preset and stays `{name}` on sisäänrakennettu esiasetus, eikä sitä voi poistaa
@msg a swatch or color group named `{n}` exists värimalli tai väriryhmä nimeltä `{n}` on jo olemassa
@msg a slice size must be a positive number of points viipaleen koon on oltava positiivinen määrä pisteitä
@msg a spine keeps at least two points selkärangassa on oltava vähintään kaksi pistettä
@@ -4293,6 +4338,7 @@ imageTrace Outline Ääriviiva
@msg missing `id` (see plugin.list) `id` puuttuu (ks. plugin.list)
@msg missing `name` `name` puuttuu
@msg missing `tool` `tool` puuttuu
+@msg missing id id puuttuu
@msg missing index indeksi puuttuu
@msg missing number `{key}` luku `{key}` puuttuu
@msg missing integer `{key}` kokonaisluku `{key}` puuttuu
@@ -4325,6 +4371,7 @@ imageTrace Outline Ääriviiva
@msg no current layer ei nykyistä tasoa
@msg no data ei dataa
@msg no dialog open valintaikkunaa ei ole auki
+@msg the open dialog has no Reset avoimessa valintaikkunassa ei ole Palauta-painiketta
@msg no document ei asiakirjaa
@msg no document open asiakirjaa ei ole auki
@msg no effect applied yet tehostetta ei ole vielä käytetty
@@ -4358,6 +4405,8 @@ imageTrace Outline Ääriviiva
@msg no print service ei tulostuspalvelua
@msg no revert command ei palautuskomentoa
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) ei tallennettua PDF-esiasetusta nimeltä `{name}` (sisäänrakennetut esiasetukset ovat vain luku -tilassa: luo uusi niiden pohjalta)
+@msg no saved preset named `{name}` tallennettua esiasetusta nimeltä `{name}` ei ole
+@msg no saved preset named `{name}` to rename ei uudelleennimettävää tallennettua esiasetusta nimeltä `{name}`
@msg no saved presets ei tallennettuja esiasetuksia
@msg no saved print preset named `{name}` ({DEFAULT_PRESET} is protected: start a new one from it) ei tallennettua tulostuksen esiasetusta nimeltä `{name}` ({DEFAULT_PRESET} on suojattu: luo uusi sen pohjalta)
@msg no saved profiles ei tallennettuja profiileja
@@ -4404,8 +4453,10 @@ imageTrace Outline Ääriviiva
@msg not an EMF or WMF file ei EMF- tai WMF-tiedosto
@msg not found ei löytynyt
@msg not in pattern editing mode ei kuvion muokkaustilassa
+@msg finish editing the pattern first lopeta ensin kuvion muokkaus
@msg nothing encoded mitään ei koodattu
@msg nothing selected mitään ei ole valittu
+@msg nothing selected is in a group mikään valituista ei ole ryhmässä
@msg nothing to align ei tasattavaa
@msg nothing to distort ei vääristettävää
@msg nothing to export: the document has no visible art (or turn on Use Artboards) ei vietävää: asiakirjassa ei ole näkyvää kuvitusta (tai ota Käytä piirtoalustoja käyttöön)
@@ -4526,10 +4577,14 @@ imageTrace Outline Ääriviiva
@msg the layer or group is locked taso tai ryhmä on lukittu
@msg the guide is on a hidden or locked layer apuviiva on piilotetulla tai lukitulla tasolla
@msg the target layer is locked or hidden kohdetaso on lukittu tai piilotettu
+@msg the object is hidden or locked objekti on piilotettu tai lukittu
+@msg the object is outside the isolated group objekti on eristetyn ryhmän ulkopuolella
+@msg type objects can't be isolated tekstiobjekteja ei voi eristää
@msg the layer to flatten into is hidden taso, johon litistetään, on piilotettu
@msg the object already has an opacity mask objektilla on jo peittävyysmaski
@msg the object has no geometry objektilla ei ole geometriaa
@msg the object has no opacity mask objektilla ei ole peittävyysmaskia
+@msg stop editing the opacity mask first lopeta ensin peittävyysmaskin muokkaus
@msg the object has no stroke objektilla ei ole viivaa
@msg the object is beyond the plane's horizon objekti on tason horisontin takana
@msg the object isn't in perspective objekti ei ole perspektiivissä
@@ -4575,6 +4630,7 @@ imageTrace Outline Ääriviiva
@msg unknown preset `{name}` (high, medium, low or a saved one: see flattener.presets.list) tuntematon esiasetus `{name}` (high, medium, low tai tallennettu: ks. flattener.presets.list)
@msg unknown preset `{name}` (see flattener.presets.list) tuntematon esiasetus `{name}` (ks. flattener.presets.list)
@msg unknown preset `{name}` (see webExport.presets.list) tuntematon esiasetus `{name}` (ks. webExport.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) tuntematon esiasetus `{name}`: ei sisäänrakennettu eikä tallennettu (ks. imageTrace.presets)
@msg unknown side `{other}` (left|right|top|bottom) tuntematon puoli `{other}` (left|right|top|bottom)
@msg unknown tool `{tool}` tuntematon työkalu `{tool}`
@msg unknown tool `{t}` tuntematon työkalu `{t}`
@@ -4726,6 +4782,9 @@ imageTrace Outline Ääriviiva
@msg not a PSD file ei PSD-tiedosto
@msg the PSD file has an unknown colour mode ({m}) tämän PSD-tiedoston väritila on tuntematon ({m})
@msg the PSD file's image data uses an unknown compression ({m}) tämän PSD-tiedoston kuvadata käyttää tuntematonta pakkausta ({m})
+@msg the PCX file is cut short tämä PCX-tiedosto on katkennut
+@msg the PCX file's header is damaged PCX-tiedoston otsake on vahingoittunut
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read PCX-tiedostoja, joissa on {bits}-bittisiä pikseleitä {planes} tasossa, ei voi lukea
@msg the PSD image is too large to read ({_1} × {_2} pixels) tämä PSD-kuva on liian suuri luettavaksi ({_1} × {_2} pikseliä)
@msg zipped 32-bit PSD image data with prediction can't be read ennustusta käyttävää zip-pakattua 32-bittistä PSD-kuvadataa ei voi lukea
@msg {depth}-bit PSD files in this colour mode can't be read tässä väritilassa olevia {depth}-bittisiä PSD-tiedostoja ei voi lukea
@@ -5253,6 +5312,9 @@ mark-style Japanese Japanilainen
Registration: Kohdistuspiste:
Reset Horizontal Scale Palauta vaakaskaalaus
Reset Tracking and Kerning Palauta merkkiväli ja parivälistys
+ Highlight Font Name Korosta fontin nimi
+ Highlight Kerning Korosta parivälistys
+ Highlight Tracking Korosta merkkiväli
Sample Color from Screen Poimi väri näytöltä
Set as Default Aseta oletukseksi
Show Template Näytä mallipohja
@@ -5307,6 +5369,7 @@ mark-style Japanese Japanilainen
@msg span: "selection" places the gradient itself: leave out `start` and `end` (they already place it in document coordinates) span: "selection" sijoittaa itse liukuvärin: jätä pois `start` ja `end` (ne sijoittavat sen jo asiakirjan koordinaatteihin)
@msg the Color Picker is not open värinvalitsin ei ole auki
@msg the Simplify slider is not open Yksinkertaista-liukusäädin ei ole auki
+@msg the Smooth slider is not open Tasoita-liukusäädin ei ole auki
@msg the action has no steps toiminnossa ei ole vaiheita
@msg the file's layers weren't read ({_1}): it comes in as its page, in one layer tiedoston tasoja ei luettu ({_1}): se tuodaan sivunaan yhdelle tasolle
@msg the file's layers weren't read from its editing data ({_1}): they come from its PDF part tiedoston tasoja ei luettu sen muokkaustiedoista ({_1}): ne tulevat sen PDF-osasta
@@ -5652,4 +5715,9 @@ axis Y Axis Y-akseli
Scale Presets Skaalauksen esiasetukset
@msg a {width}×{height} screenshot's byte count overflows {width}×{height} kuvakaappauksen tavumäärä ylittää rajan
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot ikkunan {what} ({points} pistettä × {scale} DPI) ei voi määrittää kuvakaappauksen kokoa
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Laajenna ensin ulkoasu (Objekti › Laajenna ulkoasu)
Live preview Reaaliaikainen esikatselu
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Pisteteksti
+ Area Text Alueteksti
diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsv
index fd0d45a55f..2ee4f1ee4e 100644
--- a/crates/ui-egui/src/i18n/fr.tsv
+++ b/crates/ui-egui/src/i18n/fr.tsv
@@ -182,6 +182,8 @@
Anchor Point Point d’ancrage
Anchor Point Tool Outil Point d’ancrage
Anchor Points Points d’ancrage
+ "In" Control Points Points de contrôle « entrants »
+ "Out" Control Points Points de contrôle « sortants »
Anchor Points, Handle, and Bounding Box Display Affichage des points d’ancrage, des poignées et du cadre de sélection
Anchor/Path Labels Libellés de point d’ancrage/tracé
Anchors: Points d’ancrage :
@@ -568,6 +570,7 @@ font-technology Variable Variables
Complexity: Complexité :
Composite colours are converted to it; separations separate with it when it is a CMYK profile. Les couleurs composites sont converties vers ce profil ; les séparations l’utilisent lorsqu’il s’agit d’un profil CMJN.
Compound Path Tracé transparent
+ Compound Shape Forme composée
Compress (RLE) Compresser (RLE)
Compress text and line art Compresser le texte et les dessins au trait
Compression Compression
@@ -993,7 +996,6 @@ font-technology Variable Variables
Exit Isolation Mode Quitter le mode Isolation
Expand Décomposer
Expand Appearance Décomposer l’aspect
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap Décomposer s’applique aux formes composées (Alt+clic sur un mode de forme) — prévu dans la feuille de route
Expand Brush Strokes Décomposer les contours de forme
Expand Compound Shape Décomposer la forme composée
Expand Gradient Mesh Décomposer le filet de dégradé
@@ -1152,6 +1154,9 @@ font-technology Variable Variables
Increase Font Size by Five Steps Augmenter la taille de police de cinq incréments
Reset Tracking and Kerning Réinitialiser l’approche et le crénage
Reset Horizontal Scale Réinitialiser la mise à l’échelle horizontale
+ Highlight Font Name Surligner le nom de la police
+ Highlight Kerning Surligner le crénage
+ Highlight Tracking Surligner l’approche
Spacing Espacement
Step Type Texte par incréments
Fit in View Ajuster à la vue
@@ -1527,6 +1532,12 @@ font-technology Variable Variables
Image Trace Vectorisation de l’image
Image Tracing Objet de vectorisation de l’image
Tracing Presets Paramètres prédéfinis de vectorisation
+ Manage Presets Gérer les paramètres prédéfinis
+ Save as New Preset… Enregistrer comme nouveau paramètre prédéfini…
+ Rename… Renommer…
+ Rename Preset Renommer le paramètre prédéfini
+ Save Image Trace Preset Enregistrer le paramètre prédéfini de vectorisation de l’image
+ Delete Image Trace Preset Supprimer le paramètre prédéfini de vectorisation de l’image
Image Trace Presets Paramètres prédéfinis de vectorisation de l’image
Image: Image :
Images: Images :
@@ -1956,6 +1967,10 @@ font-technology Variable Variables
Outer Corner Tile Carreau d'angle extérieur
Side Tile Carreau latéral
Inner Corner Tile Carreau d'angle intérieur
+ Auto-Centered Auto-centré
+ Auto-Between Auto-entre
+ Auto-Sliced Auto-biseauté
+ Auto-Overlap Auto-chevauchement
Start Tile Carreau de début
End Tile Carreau de fin
Fit Ajustement
@@ -2004,6 +2019,7 @@ font-technology Variable Variables
Brush Art Illustration de la forme
New Calligraphic Brush Nouvelle forme calligraphique
New Character Style Nouveau style de caractère
+ New Character Style… Nouveau style de caractère…
New Color Group Nouveau groupe de couleurs
New Color Group… Nouveau groupe de couleurs…
New Document Presets Paramètres prédéfinis de nouveau document
@@ -2019,6 +2035,7 @@ font-technology Variable Variables
New Opacity Masks Are Clipping Les nouveaux masques d’opacité sont des masques d’écrêtage
New Opacity Masks Are Inverted Les nouveaux masques d’opacité sont inversés
New Paragraph Style Nouveau style de paragraphe
+ New Paragraph Style… Nouveau style de paragraphe…
New Pattern Brush from Selection Nouvelle forme de motif à partir de la sélection
New PDF Preset Nouveau paramètre prédéfini PDF
New Print Preset Nouveau paramètre prédéfini d’impression
@@ -2032,6 +2049,8 @@ font-technology Variable Variables
New View Nouvelle vue
New View… Nouvelle vue…
New Window Nouvelle fenêtre
+ Next Document Document suivant
+ Previous Document Document précédent
New Without Dialog Nouveau sans boîte de dialogue
New Workspace Nouvel espace de travail
New Workspace… Nouvel espace de travail…
@@ -2872,6 +2891,7 @@ font-technology Variable Variables
Locked Verrouillés
Hidden Masqués
Filter Layers Panel Rows Filtrer les lignes du panneau Calques
+@msg `Custom` stands for changed settings: save the preset under another name `Custom` désigne des réglages modifiés : enregistrez le paramètre prédéfini sous un autre nom
@msg `{key}` must be an array of these names: {_1} `{key}` doit être un tableau de noms parmi {_1}
Search commands and tools Chercher commandes et outils
Search commands and tools… Chercher commandes et outils…
@@ -2955,6 +2975,7 @@ font-technology Variable Variables
Shape Builder Regions Zones du Concepteur de forme
Shape Builder Tool Outil Concepteur de forme
Shape Effects Effets de forme
+ Shape Mode Mode de forme
Shape Modes: Modes de forme :
Shape Properties: Propriétés de la forme :
Shaper Tool Outil Shaper
@@ -3013,6 +3034,7 @@ font-technology Variable Variables
Show Original Path Afficher le tracé d’origine
Open this dialog with these settings next time Ouvrir cette boîte de dialogue avec ces réglages la prochaine fois
Auto-Simplify Simplifier automatiquement
+ Auto-Smooth Lisser automatiquement
Color Panel Options Options du panneau Couleur
Show Package Afficher le dossier d’assemblage
Show Panel Afficher le panneau
@@ -3049,6 +3071,7 @@ font-technology Variable Variables
Simplify Simplifier
Simplify: Simplifier :
Simplify… Simplifier…
+ Smooth… Lisser…
Simulate Colored Paper Simuler un papier de couleur
Simulate Paper Simuler le papier
Double Column Deux colonnes
@@ -3056,6 +3079,7 @@ font-technology Variable Variables
Single Quotes: Guillemets simples :
Single Right Quotation Mark Guillemet simple fermant
Single-line Composer Compositeur ligne par ligne
+ Toggle Line Composer Basculer le compositeur de lignes
Sixth Space Espace d’un sixième
Size Taille
Size Tile to Art Ajuster le carreau à l’illustration
@@ -3169,6 +3193,11 @@ font-technology Variable Variables
Stroke Contour
Stroke (X), double-click for the Color Picker Contour (X), double-cliquez pour ouvrir le sélecteur de couleurs
Stroke Color Couleur du contour
+ Fill Gradient Dégradé de fond
+ Stroke Gradient Dégradé de contour
+ Fill Pattern Motif de fond
+ Stroke Pattern Motif de contour
+ Patterns Motifs
Stroke Options Options de contour
Character: Caractère :
Character options Options de caractère
@@ -3459,6 +3488,7 @@ font-technology Variable Variables
Unlock Guides Déverrouiller les repères
Unnamed Objects Objets sans nom
Unprintable margin: Marge non imprimable :
+ Unselected Artwork Illustration non sélectionnée
Unshift Annuler le décalage
Untitled Sans titre
Update Link Mettre à jour le lien
@@ -3796,6 +3826,13 @@ axis Both Les deux
# names and values in backticks or code (`colorModel rgb`, `document.export`) stay as they are.
@msg no library `{id}` aucune bibliothèque `{id}`
@msg select some type first sélectionnez d’abord du texte
+@msg the selection has no gradient fill la sélection n’a pas de dégradé de fond
+@msg the selection has no gradient stroke la sélection n’a pas de dégradé de contour
+@msg the selection has no pattern fill la sélection n’a pas de motif de fond
+@msg the selection has no pattern stroke la sélection n’a pas de motif de contour
+@msg no gradient swatch `{name}` aucune nuance de dégradé `{name}`
+@msg no pattern swatch `{name}` aucune nuance de motif `{name}`
+@msg the library item is damaged l’élément de bibliothèque est endommagé
@msg {_1} has no {_2} style {_1} n’a pas de style {_2}
@msg a layer couldn't be read un calque n’a pas pu être lu
@msg it has more than one artboard il a plus d'un plan de travail
@@ -3902,8 +3939,10 @@ axis Both Les deux
@msg `freeform.points` must be an array `freeform.points` doit être un tableau
@msg `freeform.lines` must be an array `freeform.lines` doit être un tableau
@msg `gradient` must be an object `gradient` doit être un objet
+@msg `groupColors` must be an array `groupColors` doit être un tableau
@msg `library` is a library id or name (see {list}) `library` est l’identifiant ou le nom d’une bibliothèque (voir {list})
@msg `mode` applies to freeform gradients `mode` s’applique aux dégradés de forme libre
+@msg `preserve` must be an object `preserve` doit être un objet
@msg `sampleSize` must be 1, 3 or 5 `sampleSize` doit valoir 1, 3 ou 5
@msg `stops` must be an array `stops` doit être un tableau
@msg `svg` must be an object of SVG options (see document.formats) `svg` doit être un objet d’options SVG (voir document.formats)
@@ -3938,6 +3977,7 @@ axis Both Les deux
@msg `{name}` is a process colour: tints apply to global and spot colours `{name}` est une couleur quadrichromique : les teintes s’appliquent aux couleurs globales et aux tons directs
@msg `{name}` is no recovery entry name `{name}` n’est pas le nom d’une entrée de récupération
@msg `{name}` isn't a colour swatch `{name}` n’est pas une nuance de couleur
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white une couleur quadrichromique ne peut pas coloriser une image en niveaux de gris avec transparence : utilisez un ton direct, le noir ou le blanc
@msg `{path}` must be a bool or an object of bools `{path}` doit être un booléen ou un objet de booléens
@msg `{s}` is not a colour (#rrggbb or a preset name) `{s}` n’est pas une couleur (#rrggbb ou le nom d’un paramètre prédéfini)
@msg `{tool}` isn't a Liquify tool `{tool}` n’est pas un outil Fluidité
@@ -3983,6 +4023,10 @@ axis Both Les deux
@msg a page tree node has no kids un nœud de l’arborescence des pages n’a pas d’enfants
@msg a page's placement is not finite la position d’une page n’est pas finie
@msg a preset named `{_1}` exists un paramètre prédéfini nommé `{_1}` existe déjà
+@msg `name` is empty `name` est vide
+@msg `newName` is empty `newName` est vide
+@msg `{name}` is a built-in preset and can't change: save it under another name `{name}` est un paramètre prédéfini intégré et ne peut pas être modifié : enregistrez-le sous un autre nom
+@msg `{name}` is a built-in preset and stays `{name}` est un paramètre prédéfini intégré et ne peut pas être supprimé
@msg a swatch or color group named `{n}` exists une nuance ou un groupe de couleurs nommé `{n}` existe déjà
@msg a slice size must be a positive number of points la taille d’une tranche doit être un nombre de points positif
@msg a spine keeps at least two points une dorsale garde au moins deux points
@@ -4002,6 +4046,7 @@ axis Both Les deux
@msg videoRulerPixelAspectRatio must be a number from 0.1 to 10 videoRulerPixelAspectRatio doit être un nombre de 0,1 à 10
@msg the Color Picker is not open le Sélecteur de couleurs n’est pas ouvert
@msg the Simplify slider is not open le curseur Simplifier n’est pas ouvert
+@msg the Smooth slider is not open le curseur Lisser n’est pas ouvert
@msg the screen color sampler is already open l’outil de prélèvement de couleur à l’écran est déjà ouvert
@msg this system has no screen color sampler ce système n’a pas d’outil de prélèvement de couleur à l’écran
@msg bad colour `{hex}` (#rrggbb) couleur non valide `{hex}` (#rrggbb)
@@ -4074,6 +4119,7 @@ axis Both Les deux
@msg missing `id` (see plugin.list) `id` manquant (voir plugin.list)
@msg missing `name` `name` manquant
@msg missing `tool` `tool` manquant
+@msg missing id id manquant
@msg missing index index manquant
@msg missing number `{key}` nombre `{key}` manquant
@msg missing integer `{key}` nombre entier `{key}` manquant
@@ -4106,6 +4152,7 @@ axis Both Les deux
@msg no current layer aucun calque actif
@msg no data aucune donnée
@msg no dialog open aucune boîte de dialogue ouverte
+@msg the open dialog has no Reset la boîte de dialogue ouverte n’a pas de bouton Réinitialiser
@msg no document aucun document
@msg no document open aucun document ouvert
@msg no effect applied yet aucun effet appliqué pour l’instant
@@ -4139,6 +4186,8 @@ axis Both Les deux
@msg no print service aucun service d’impression
@msg no revert command aucune commande Version précédente
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) aucun paramètre prédéfini PDF enregistré nommé `{name}` (les paramètres prédéfinis intégrés sont en lecture seule : créez-en un nouveau à partir d’eux)
+@msg no saved preset named `{name}` aucun paramètre prédéfini enregistré nommé `{name}`
+@msg no saved preset named `{name}` to rename aucun paramètre prédéfini enregistré nommé `{name}` à renommer
@msg no saved presets aucun paramètre prédéfini enregistré
@msg no saved print preset named `{name}` ({DEFAULT_PRESET} is protected: start a new one from it) aucun paramètre prédéfini d’impression enregistré nommé `{name}` ({DEFAULT_PRESET} est protégé : créez-en un nouveau à partir de lui)
@msg no saved profiles aucun profil enregistré
@@ -4186,8 +4235,10 @@ axis Both Les deux
@msg not an EMF or WMF file ce n’est pas un fichier EMF ou WMF
@msg not found introuvable
@msg not in pattern editing mode pas en mode d’édition de motif
+@msg finish editing the pattern first terminez d’abord la modification du motif
@msg nothing encoded rien n’a été encodé
@msg nothing selected aucune sélection
+@msg nothing selected is in a group aucun élément sélectionné ne se trouve dans un groupe
@msg nothing to align rien à aligner
@msg nothing to distort rien à déformer
@msg nothing to export: the document has no visible art (or turn on Use Artboards) rien à exporter : le document n’a aucune illustration visible (ou activez Utiliser les plans de travail)
@@ -4314,10 +4365,14 @@ axis Both Les deux
@msg the layer or group is locked le calque ou le groupe est verrouillé
@msg the guide is on a hidden or locked layer le repère se trouve sur un calque masqué ou verrouillé
@msg the target layer is locked or hidden le calque cible est verrouillé ou masqué
+@msg the object is hidden or locked l’objet est masqué ou verrouillé
+@msg the object is outside the isolated group l’objet est en dehors du groupe isolé
+@msg type objects can't be isolated les objets texte ne peuvent pas être isolés
@msg the layer to flatten into is hidden le calque de destination de l’aplatissement est masqué
@msg the object already has an opacity mask l’objet a déjà un masque d’opacité
@msg the object has no geometry l’objet n’a pas de géométrie
@msg the object has no opacity mask l’objet n’a pas de masque d’opacité
+@msg stop editing the opacity mask first arrêtez d’abord la modification du masque d’opacité
@msg the object has no stroke l’objet n’a pas de contour
@msg the object is beyond the plane's horizon l’objet est au-delà de l’horizon du plan
@msg the object isn't in perspective l’objet n’est pas en perspective
@@ -4363,6 +4418,7 @@ axis Both Les deux
@msg unknown preset `{name}` (high, medium, low or a saved one: see flattener.presets.list) paramètre prédéfini inconnu `{name}` (high, medium, low ou un paramètre enregistré : voir flattener.presets.list)
@msg unknown preset `{name}` (see flattener.presets.list) paramètre prédéfini inconnu `{name}` (voir flattener.presets.list)
@msg unknown preset `{name}` (see webExport.presets.list) paramètre prédéfini inconnu `{name}` (voir webExport.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) paramètre prédéfini inconnu `{name}` : ni intégré ni enregistré (voir imageTrace.presets)
@msg unknown side `{other}` (left|right|top|bottom) côté inconnu `{other}` (left|right|top|bottom)
@msg unknown tool `{tool}` outil inconnu `{tool}`
@msg unknown tool `{t}` outil inconnu `{t}`
@@ -4507,6 +4563,10 @@ axis Both Les deux
Shaper Shaper
Expand Shaper Group Décomposer le groupe Shaper
Release Shaper Group Annuler le groupe Shaper
+ Remove from Shaper Group Retirer du groupe Shaper
+@msg source must be the id of a Shaper Group's original shape source doit être l’identifiant d’une forme d’origine d’un groupe Shaper
+@msg group must be the id of a Shaper Group group doit être l’identifiant d’un groupe Shaper
+@msg the shape is not an editable original shape of that Shaper Group la forme n’est pas une forme d’origine modifiable de ce groupe Shaper
Select Shaper Face Sélectionner la face Shaper
Drag art, colors and text styles here to reuse them across documents. Libraries are stored on this machine — no account required. Faites glisser ici des illustrations, des couleurs et des styles de texte pour les réutiliser d’un document à l’autre. Les bibliothèques sont enregistrées sur cet ordinateur — aucun compte n’est nécessaire.
1 Color Job Travail 1 couleur
@@ -4551,6 +4611,9 @@ axis Both Les deux
@msg not a PSD file ce n'est pas un document PSD
@msg the PSD file has an unknown colour mode ({m}) le fichier PSD a un mode colorimétrique inconnu ({m})
@msg the PSD file's image data uses an unknown compression ({m}) les données d'image du fichier PSD utilisent une compression inconnue ({m})
+@msg the PCX file is cut short le fichier PCX est tronqué
+@msg the PCX file's header is damaged l'en-tête du fichier PCX est endommagé
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read les fichiers PCX à pixels de {bits} bits sur {planes} plans ne peuvent pas être lus
@msg the PSD image is too large to read ({_1} × {_2} pixels) l'image PSD est trop grande pour être lue ({_1} × {_2} pixels)
@msg zipped 32-bit PSD image data with prediction can't be read les données d'image PSD 32 bits compressées en ZIP avec prédiction ne peuvent pas être lues
@msg {depth}-bit PSD files in this colour mode can't be read les fichiers PSD {depth} bits dans ce mode colorimétrique ne peuvent pas être lus
@@ -5620,4 +5683,9 @@ axis Y Axis Axe Y
Scale Presets Préréglages de mise à l'échelle
@msg a {width}×{height} screenshot's byte count overflows le nombre d'octets d'une capture {width}×{height} dépasse la limite
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot la {what} de la fenêtre ({points} points × {scale} DPI) ne permet pas de dimensionner une capture
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Décomposez d’abord l’aspect (Objet › Décomposer l’aspect)
Live preview Aperçu en direct
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Texte de point
+ Area Text Texte captif
diff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsv
index 6c5d680e4c..6f27f61d67 100644
--- a/crates/ui-egui/src/i18n/hu.tsv
+++ b/crates/ui-egui/src/i18n/hu.tsv
@@ -260,6 +260,8 @@
Anchor Point Horgonypont
Anchor Point Tool Horgonypont
Anchor Points Horgonypontok
+ "In" Control Points „Bemenő” vezérlőpontok
+ "Out" Control Points „Kimenő” vezérlőpontok
Anchor Points, Handle, and Bounding Box Display Horgonypontok, fogantyúk és befoglaló keret megjelenítése
Anchor/Path Labels Horgonypont- és útvonalcímkék
Anchors Horgonypontok
@@ -751,6 +753,7 @@ font-technology Variable Változó
Compound Összetett
Compound 2 Összetett 2
Compound Path Összetett útvonal
+ Compound Shape Összetett alakzat
Compress (RLE) Tömörítés (RLE)
Compress text and line art Szöveg és vonalas grafika tömörítése
Compression Tömörítés
@@ -1271,7 +1274,6 @@ font-technology Variable Változó
Expand Kibontás
Expand 1 Selected 1 kijelölt kibontása
Expand Appearance Megjelenés kibontása
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap A Kibontás összetett alakzatokra vonatkozik (Alt+kattintás egy alakzatmódra) – tervezett funkció
Expand Brush Strokes Ecsetvonások kibontása
Expand Compound Shape Összetett alakzat kibontása
Expand Gradient Mesh Színátmenetes háló kibontása
@@ -1963,6 +1965,10 @@ file-filter Templates Sablonok
Ink Outlines Tuskontúrok
Ink Outlines… Tuskontúrok…
Inner Corner Tile Belső sarokcsempe
+ Auto-Centered Auto: középre
+ Auto-Between Auto: közé
+ Auto-Sliced Auto: szeletelt
+ Auto-Overlap Auto: átfedés
Inner Glow… Belső ragyogás…
Input Black Bemeneti fekete
Input White Bemeneti fehér
@@ -2454,6 +2460,7 @@ file-filter Templates Sablonok
New Brush… Új ecset…
New Calligraphic Brush Új kalligrafikus ecset
New Character Style Új karakterstílus
+ New Character Style… Új karakterstílus…
New Color Group Új színcsoport
New Color Group… Új színcsoport…
New Data Set Új adatkészlet
@@ -2475,6 +2482,7 @@ file-filter Templates Sablonok
New Opacity Masks Are Clipping Új átlátszósági maszkok vágnak
New Opacity Masks Are Inverted Új átlátszósági maszkok invertáltak
New Paragraph Style Új bekezdésstílus
+ New Paragraph Style… Új bekezdésstílus…
New Pattern Brush from Selection Új mintázatecset a kijelölésből
New PDF Preset Új PDF-előbeállítás
New Print Preset Új nyomtatási előbeállítás
@@ -2490,6 +2498,8 @@ file-filter Templates Sablonok
New View Új nézet
New View… Új nézet…
New Window Új ablak
+ Next Document Következő dokumentum
+ Previous Document Előző dokumentum
New Without Dialog Új párbeszédablak nélkül
New Workspace Új munkaterület
New Workspace… Új munkaterület…
@@ -3100,6 +3110,10 @@ mark-style Japanese Japán
Release Opacity Mask Átlátszósági maszk megszüntetése
Release Selection Kijelölés felszabadítása
Release Shaper Group Alakformáló csoport megszüntetése
+ Remove from Shaper Group Eltávolítás az alakformáló csoportból
+@msg source must be the id of a Shaper Group's original shape A source értékének egy alakformáló csoport eredeti alakzatának azonosítójának kell lennie
+@msg group must be the id of a Shaper Group A group értékének egy alakformáló csoport azonosítójának kell lennie
+@msg the shape is not an editable original shape of that Shaper Group Az alakzat nem szerkeszthető eredeti alakzata ennek az alakformáló csoportnak
Release Text Wrap Körbefuttatás megszüntetése
Release to Layers (Build) Szétosztás rétegekre (építkezve)
Release to Layers (Sequence) Szétosztás rétegekre (sorozatként)
@@ -3197,6 +3211,9 @@ mark-style Japanese Japán
Reset to White, Black Visszaállítás fehér–fekete átmenetre
Reset Tracing Tracing visszaállítása
Reset Tracking and Kerning Betűköz és alávágás visszaállítása
+ Highlight Font Name Betűtípusnév kiemelése
+ Highlight Kerning Alávágás kiemelése
+ Highlight Tracking Betűköz kiemelése
Reset Typography Typography visszaállítása
Reset Web Web visszaállítása
Reset with Mesh Visszaállítás hálóval
@@ -3469,6 +3486,7 @@ mark-style Japanese Japán
Locked Zárolt
Hidden Rejtett
Filter Layers Panel Rows Rétegek panel sorainak szűrése
+@msg `Custom` stands for changed settings: save the preset under another name a `Custom` a módosított beállításokat jelöli: mentsd az előbeállítást más néven
@msg `{key}` must be an array of these names: {_1} `{key}`: ezen nevek tömbje kell: {_1}
Search commands and tools Parancsok és eszközök keresése
Search commands and tools… Parancsok és eszközök keresése…
@@ -3570,6 +3588,7 @@ mark-style Japanese Japán
Shape Builder Regions Alakzatépítő területei
Shape Builder Tool Alakzatépítő
Shape Effects Alakzateffektusok
+ Shape Mode Alakzatmód
Shape Modes: Alakzatmódok:
Shape Properties: Alakzat tulajdonságai:
Shape: Alak:
@@ -3640,6 +3659,7 @@ mark-style Japanese Japán
Show Original Path Eredeti útvonal megjelenítése
Open this dialog with these settings next time Legközelebb ez a párbeszédablak nyíljon meg ezekkel a beállításokkal
Auto-Simplify Automatikus egyszerűsítés
+ Auto-Smooth Automatikus simítás
Color Panel Options Szín panel beállításai
Show Package Csomag megjelenítése
Show Panel Panel megjelenítése
@@ -3683,6 +3703,7 @@ mark-style Japanese Japán
Simplify Egyszerűsítés
Simplify: Egyszerűsítés:
Simplify… Egyszerűsítés…
+ Smooth… Simítás…
Simulate Szimulálás
Simulate Colored Paper Színes papír szimulálása
Simulate Paper Papír szimulálása
@@ -3691,6 +3712,7 @@ mark-style Japanese Japán
Single Quotes: Szimpla idézőjelek:
Single Right Quotation Mark Jobb oldali szimpla idézőjel
Single-line Composer Egysoros tördelő
+ Toggle Line Composer Sortördelő váltása
Sixth Space Hatodkvirt-szóköz
Size Méret
Size Tile to Art Csempe méretezése a grafikához
@@ -3836,6 +3858,11 @@ mark-style Japanese Japán
Stroke Körvonal
Stroke (X), double-click for the Color Picker Körvonal (X), dupla kattintás: Színválasztó
Stroke Color Körvonalszín
+ Fill Gradient Kitöltés színátmenete
+ Stroke Gradient Körvonal színátmenete
+ Fill Pattern Kitöltés mintázata
+ Stroke Pattern Körvonal mintázata
+ Patterns Mintázatok
Stroke Direction Vonásirány
Stroke Length Vonáshossz
Stroke options Körvonal beállításai
@@ -4054,6 +4081,12 @@ mark-style Japanese Japán
Trace Vektorizálás
Trace the image with the Default preset Kép vektorizálása az alapértelmezett előbeállítással
Tracing Presets Vektorizálási előbeállítások
+ Manage Presets Előbeállítások kezelése
+ Save as New Preset… Mentés új előbeállításként…
+ Rename… Átnevezés…
+ Rename Preset Előbeállítás átnevezése
+ Save Image Trace Preset Képvektorizálási előbeállítás mentése
+ Delete Image Trace Preset Képvektorizálási előbeállítás törlése
Tracing Result Vektorizálás eredménye
Tracing Result with Outlines Vektorizálás eredménye vázlattal
Tracking Betűköz
@@ -4167,6 +4200,7 @@ mark-style Japanese Japán
Unlock Variables Változók zárolásának feloldása
Unnamed Objects Névtelen objektumok
Unprintable margin: Nem nyomtatható margó:
+ Unselected Artwork A nem kijelölt grafika
Unsharp Mask Életlenítő maszk
Unsharp Mask… Életlenítő maszk…
Unshift Eltolás visszavonása
@@ -4434,10 +4468,12 @@ imageTrace Outline Körvonal
@msg `freeform.lines` must be an array `freeform.lines`: tömb kell
@msg `freeform.points` must be an array `freeform.points`: tömb kell
@msg `gradient` must be an object `gradient`: objektum kell
+@msg `groupColors` must be an array `groupColors`: tömb kell
@msg `id` is the step reference {r}, which only `run` and `command_batch` resolve az `id` lépéshivatkozás ({r}), ezt csak a `run` és a `command_batch` oldja fel
@msg `ids` must be an array of object ids, not {v} `ids`: objektumazonosítók tömbje kell, ez nem az: {v}
@msg `library` is a library id or name (see {list}) a `library` könyvtárazonosító vagy -név lehet (lásd: {list})
@msg `mode` applies to freeform gradients a `mode` a szabad formájú színátmenetekre vonatkozik
+@msg `preserve` must be an object `preserve`: objektum kell
@msg `sampleSize` must be 1, 3 or 5 `sampleSize`: 1, 3 vagy 5 kell
@msg `stops` must be an array `stops`: tömb kell
@msg `svg` must be an object of SVG options (see document.formats) `svg`: SVG-beállításokat tartalmazó objektum kell (lásd: document.formats)
@@ -4473,6 +4509,7 @@ imageTrace Outline Körvonal
@msg `{name}` is a process colour: tints apply to global and spot colours skálaszín: `{name}`; tónus csak globális és direktszínhez adható
@msg `{name}` is no recovery entry name nem helyreállítási bejegyzés neve: `{name}`
@msg `{name}` isn't a colour swatch nem színes színminta: `{name}`
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white skálaszín nem színezhet átlátszóságot tartalmazó szürkeárnyalatos képet: használjon direktszínt, feketét vagy fehéret
@msg `{path}` must be a bool or an object of bools `{path}`: logikai érték vagy logikai értékeket tartalmazó objektum kell
@msg `{s}` is not a colour (#rrggbb or a preset name) nem szín: `{s}` (#rrggbb vagy előbeállítás neve)
@msg `{text}`: step {i}'s result has no such value (write $$ for a literal $) `{text}`: a lépés eredményében nincs ilyen érték: {i} (a $ jelhez írj $$-t)
@@ -4525,6 +4562,10 @@ imageTrace Outline Körvonal
@msg a calculation has no result, as in a division by zero egy számításnak nincs eredménye, például nullával való osztáskor
@msg the operator looks for a mark on the stack and finds none az operátor jelölőt keres a veremben, de nem talál
@msg a preset named `{_1}` exists már van ilyen nevű előbeállítás: `{_1}`
+@msg `name` is empty a `name` üres
+@msg `newName` is empty a `newName` üres
+@msg `{name}` is a built-in preset and can't change: save it under another name `{name}` beépített előbeállítás, nem módosítható: mentsd más néven
+@msg `{name}` is a built-in preset and stays `{name}` beépített előbeállítás, nem törölhető
@msg a swatch or color group named `{n}` exists már van ilyen nevű színminta vagy színcsoport: `{n}`
@msg a slice size must be a positive number of points a szelet mérete pozitív pontérték kell legyen
@msg a spine keeps at least two points a gerincen legalább két pont marad
@@ -4561,6 +4602,7 @@ imageTrace Outline Körvonal
@msg videoRulerPixelAspectRatio must be a number from 0.1 to 10 videoRulerPixelAspectRatio: 0,1 és 10 közötti szám kell
@msg the Color Picker is not open a Színválasztó nincs megnyitva
@msg the Simplify slider is not open az Egyszerűsítés csúszka nincs megnyitva
+@msg the Smooth slider is not open a Simítás csúszka nincs megnyitva
@msg the screen color sampler is already open a képernyős színmintavevő már nyitva van
@msg this system has no screen color sampler ezen a rendszeren nincs képernyős színmintavevő
@msg bad colour `{hex}` (#rrggbb) hibás szín: `{hex}` (#rrggbb)
@@ -4736,6 +4778,7 @@ imageTrace Outline Körvonal
@msg missing `id` (see plugin.list) hiányzik: `id` (lásd: plugin.list)
@msg missing `name` hiányzik: `name`
@msg missing `tool` hiányzik: `tool`
+@msg missing id hiányzik az id
@msg missing index hiányzik az index
@msg missing number `{key}` hiányzik a szám: `{key}`
@msg missing integer `{key}` hiányzik az egész szám: `{key}`
@@ -4769,6 +4812,7 @@ imageTrace Outline Körvonal
@msg no current layer nincs aktuális réteg
@msg no data nincs adat
@msg no dialog open nincs nyitott párbeszédablak
+@msg the open dialog has no Reset a nyitott párbeszédablakban nincs Visszaállít gomb
@msg no document nincs dokumentum
@msg no document open nincs megnyitott dokumentum
@msg no effect applied yet még nincs alkalmazott effektus
@@ -4807,6 +4851,8 @@ imageTrace Outline Körvonal
@msg no print service nincs nyomtatási szolgáltatás
@msg no revert command nincs visszaállító parancs
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) nincs ilyen nevű mentett PDF-előbeállítás: `{name}` (a beépített előbeállítások csak olvashatók: újat indíthatsz belőlük)
+@msg no saved preset named `{name}` nincs ilyen nevű mentett előbeállítás: `{name}`
+@msg no saved preset named `{name}` to rename nincs ilyen nevű átnevezhető mentett előbeállítás: `{name}`
@msg no saved presets nincs mentett előbeállítás
@msg no saved print preset named `{name}` ({DEFAULT_PRESET} is protected: start a new one from it) nincs ilyen nevű mentett nyomtatási előbeállítás: `{name}` (védett: {DEFAULT_PRESET}; új előbeállítást indíthatsz belőle)
@msg no saved profiles nincs mentett profil
@@ -4858,8 +4904,10 @@ imageTrace Outline Körvonal
@msg not an EMF or WMF file nem EMF- vagy WMF-fájl
@msg not found nem található
@msg not in pattern editing mode nem mintázatszerkesztő módban vagy
+@msg finish editing the pattern first előbb fejezd be a mintázat szerkesztését
@msg nothing encoded nincs kódolt adat
@msg nothing selected nincs kijelölés
+@msg nothing selected is in a group a kijelölésből semmi sincs csoportban
@msg nothing to align nincs mit igazítani
@msg nothing to distort nincs mit torzítani
@msg nothing to export: the document has no visible art (or turn on Use Artboards) nincs mit exportálni: a dokumentumban nincs látható grafika (vagy kapcsold be a Rajztáblák használata beállítást)
@@ -4980,6 +5028,13 @@ imageTrace Outline Körvonal
@msg select paths or anchor points jelölj ki útvonalakat vagy horgonypontokat
@msg select paths to join jelöld ki az összekapcsolandó útvonalakat
@msg select some type first előbb jelölj ki szöveget
+@msg the selection has no gradient fill a kijelölésnek nincs színátmenetes kitöltése
+@msg the selection has no gradient stroke a kijelölésnek nincs színátmenetes körvonala
+@msg the selection has no pattern fill a kijelölésnek nincs mintázatos kitöltése
+@msg the selection has no pattern stroke a kijelölésnek nincs mintázatos körvonala
+@msg no gradient swatch `{name}` nincs `{name}` nevű színátmenet-színminta
+@msg no pattern swatch `{name}` nincs `{name}` nevű mintázat-színminta
+@msg the library item is damaged a könyvtárelem sérült
@msg Select text or click into text with the Type tool to insert glyphs Glifák beszúrásához jelölj ki szöveget, vagy kattints bele egy szövegbe a Szöveg eszközzel
@msg select the art to repeat jelöld ki az ismétlendő grafikát
@msg select the artwork to warp jelöld ki a torzítandó grafikát
@@ -5048,6 +5103,7 @@ imageTrace Outline Körvonal
@msg the object already has an opacity mask az objektumnak már van átlátszósági maszkja
@msg the object has no geometry az objektumnak nincs geometriája
@msg the object has no opacity mask az objektumnak nincs átlátszósági maszkja
+@msg stop editing the opacity mask first előbb fejezd be az átlátszósági maszk szerkesztését
@msg the object has no stroke az objektumnak nincs körvonala
@msg the object is beyond the plane's horizon az objektum a sík horizontján túl van
@msg the object isn't in perspective az objektum nincs perspektívában
@@ -5067,6 +5123,9 @@ imageTrace Outline Körvonal
@msg the PSD file's header is damaged a PSD-fájl fejléce sérült
@msg the PSD file's image data can't be read: {e} a PSD-fájl képadatai nem olvashatók: {e}
@msg the PSD file's image data uses an unknown compression ({m}) a PSD-fájl képadatai ismeretlen tömörítést használnak ({m})
+@msg the PCX file is cut short a PCX-fájl csonka
+@msg the PCX file's header is damaged a PCX-fájl fejléce sérült
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read a {bits} bites pixeleket {planes} síkban tároló PCX-fájlok nem olvashatók
@msg the PSD image is too large to read ({_1} × {_2} pixels) a PSD-kép túl nagy a beolvasáshoz ({_1} × {_2} pixel)
@msg the Save PDF dialog didn't open a PDF mentése párbeszédablak nem nyílt meg
@msg the scale is not a usable number a méretarány nem használható szám
@@ -5077,6 +5136,9 @@ imageTrace Outline Körvonal
@msg the spine has no segments a gerincnek nincsenek szakaszai
@msg the stroke has no weight a körvonalnak nincs vastagsága
@msg the target layer is locked or hidden a célréteg zárolt vagy rejtett
+@msg the object is hidden or locked az objektum rejtett vagy zárolt
+@msg the object is outside the isolated group az objektum az elkülönített csoporton kívül van
+@msg type objects can't be isolated a szövegobjektumok nem különíthetők el
@msg the thumbnail image is malformed a bélyegkép hibás
@msg the top object must be a path, compound path or text object to use as a clipping mask a vágómaszkhoz a legfelső objektum útvonal, összetett útvonal vagy szövegobjektum kell legyen
@msg the WMF header is damaged a WMF-fejléc sérült
@@ -5113,6 +5175,7 @@ imageTrace Outline Körvonal
@msg unknown preset `{name}` (high, medium, low or a saved one: see flattener.presets.list) ismeretlen előbeállítás: `{name}` (high, medium, low vagy egy mentett; lásd: flattener.presets.list)
@msg unknown preset `{name}` (see flattener.presets.list) ismeretlen előbeállítás: `{name}` (lásd: flattener.presets.list)
@msg unknown preset `{name}` (see webExport.presets.list) ismeretlen előbeállítás: `{name}` (lásd: webExport.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) ismeretlen előbeállítás: `{name}`, sem beépített, sem mentett (lásd: imageTrace.presets)
@msg unknown side `{other}` (left|right|top|bottom) ismeretlen oldal: `{other}` (left|right|top|bottom)
@msg unknown tool `{tool}` ismeretlen eszköz: `{tool}`
@msg unknown tool `{t}` ismeretlen eszköz: `{t}`
@@ -5607,4 +5670,9 @@ axis Y Axis Y tengely
Scale Presets Méretezési beállítások
@msg a {width}×{height} screenshot's byte count overflows a(z) {width}×{height} képernyőkép bájtszáma túlcsordul
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot az ablak {what} ({points} pont × {scale} DPI) nem tud képernyőkép-méretet adni
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Előbb bontsd ki a megjelenést (Objektum › Megjelenés kibontása)
Live preview Élő előnézet
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Pontszöveg
+ Area Text Területszöveg
diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsv
index 05ddc81b43..ed9447c46e 100644
--- a/crates/ui-egui/src/i18n/id.tsv
+++ b/crates/ui-egui/src/i18n/id.tsv
@@ -176,6 +176,7 @@
Other Layers Lapisan lain
Unlock All Buka kunci semua
Hide Sembunyikan
+ Unselected Artwork Karya seni yang tidak dipilih
Show All Tampilkan semua
Expand… Perluas…
Expand Appearance Perluas tampilan
@@ -208,6 +209,7 @@
Offset Path… Jalur ofset…
Reverse Path Direction Balikkan arah jalur
Simplify… Sederhanakan…
+ Smooth… Haluskan…
Add Anchor Points Tambahkan titik jangkar
Remove Anchor Points Hapus titik jangkar
Divide Objects Below Bagi objek di bawah
@@ -257,6 +259,7 @@
Clipping Mask Masker kliping
Edit Clipping Path Edit jalur kliping
Compound Path Jalur majemuk
+ Compound Shape Bentuk majemuk
Artboards Artboard
Convert to Artboards Konversi ke artboard
Rearrange All Artboards… Atur ulang semua artboard…
@@ -374,6 +377,11 @@
Fill Color Warna isian
Opacity Opasitas
Stroke Color Warna stroke
+ Fill Gradient Gradien isian
+ Stroke Gradient Gradien stroke
+ Fill Pattern Pola isian
+ Stroke Pattern Pola stroke
+ Patterns Pola
Stroke Weight Ketebalan stroke
Graphic Style Gaya grafis
Symbol Instance Instans simbol
@@ -571,6 +579,8 @@
Saved View 25 Tampilan tersimpan 25
Window Jendela
New Window Jendela baru
+ Next Document Dokumen berikutnya
+ Previous Document Dokumen sebelumnya
Cascade Bertingkat
Tile Ubin
Float in Window Mengambang di jendela
@@ -756,6 +766,7 @@
Shaper Shaper
Expand Shaper Group Perluas grup Shaper
Release Shaper Group Lepaskan grup Shaper
+ Remove from Shaper Group Hapus dari grup Shaper
Select Shaper Face Seleksi sisi Shaper
Constrain Batasi
Free Transform Transformasi bebas
@@ -1494,6 +1505,12 @@ lighting Light Cahaya
Document Library Pustaka dokumen
Library: Pustaka:
Tracing Presets Preset penelusuran
+ Manage Presets Kelola preset
+ Save as New Preset… Simpan sebagai preset baru…
+ Rename… Ganti nama…
+ Rename Preset Ganti nama preset
+ Save Image Trace Preset Simpan preset telusur gambar
+ Delete Image Trace Preset Hapus preset telusur gambar
Method: Metode:
Mode: Mode:
Noise Derau
@@ -1621,13 +1638,13 @@ lighting Light Cahaya
Roman Hanging Punctuation Tanda baca gantung Romawi
Select a text object to edit its paragraph attributes. Pilih objek teks untuk mengedit atribut paragrafnya.
Single-line Composer Komposer satu baris
+ Toggle Line Composer Alihkan komposer baris
Space After Paragraph Spasi setelah paragraf
Space Before Paragraph Spasi sebelum paragraf
Top-to-Top Leading Leading dari atas ke atas
Bottom-to-Bottom Leading Leading dari bawah ke bawah
Burasagari Burasagari
Force Paksa
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap Perluas berlaku untuk bentuk majemuk (Alt+klik mode bentuk) — masih dalam roadmap
Expand Compound Shape Perluas bentuk majemuk
Make Compound Shape Buat bentuk majemuk
Pathfinder Options… Opsi Pathfinder…
@@ -1887,6 +1904,10 @@ lighting Light Cahaya
Outer Corner Tile Ubin sudut luar
Side Tile Ubin sisi
Inner Corner Tile Ubin sudut dalam
+ Auto-Centered Otomatis-tengah
+ Auto-Between Otomatis-antara
+ Auto-Sliced Otomatis-iris
+ Auto-Overlap Otomatis-tumpang
Start Tile Ubin awal
End Tile Ubin akhir
Fit Pas
@@ -2145,6 +2166,8 @@ lighting Light Cahaya
Locate Selected Objects Temukan objek terpilih
Thumbnails: Miniatur:
Anchor Points Titik jangkar
+ "In" Control Points Titik kontrol "masuk"
+ "Out" Control Points Titik kontrol "keluar"
Brush Affects: Kuas memengaruhi:
Complexity: Kompleksitas:
Detail: Detail:
@@ -3706,6 +3729,7 @@ font-technology Variable Variabel
Default Fill and Stroke (D) Isi dan goresan default (D)
Fill (X), double-click for the Color Picker Isi (X), klik ganda untuk pemilih warna
Opacity: Opasitas:
+ Shape Mode Mode bentuk
Shape Modes: Mode bentuk:
Stroke (X), double-click for the Color Picker Goresan (X), klik ganda untuk pemilih warna
Stroke: Goresan:
@@ -3754,7 +3778,9 @@ font-technology Variable Variabel
Mojikumi Mojikumi
N pt per N pt per
New Character Style Gaya karakter baru
+ New Character Style… Gaya karakter baru…
New Paragraph Style Gaya paragraf baru
+ New Paragraph Style… Gaya paragraf baru…
Paragraph Style Options Opsi gaya paragraf
Redefine Character Style Definisikan ulang gaya karakter
Redefine Paragraph Style Definisikan ulang gaya paragraf
@@ -4091,6 +4117,7 @@ imageTrace Outline Kontur
@msg missing `id` (see plugin.list) `id` tidak ada (lihat plugin.list)
@msg missing `name` `name` tidak ada
@msg missing `tool` `tool` tidak ada
+@msg missing id id tidak ada
@msg missing index indeks tidak ada
@msg missing number `{key}` angka `{key}` tidak ada
@msg missing integer `{key}` bilangan bulat `{key}` tidak ada
@@ -4122,6 +4149,7 @@ imageTrace Outline Kontur
@msg no current layer tidak ada lapisan saat ini
@msg no data tidak ada data
@msg no dialog open tidak ada dialog yang terbuka
+@msg the open dialog has no Reset dialog yang terbuka tidak memiliki tombol Atur ulang
@msg no document tidak ada dokumen
@msg no document open tidak ada dokumen yang terbuka
@msg no effect applied yet belum ada efek yang diterapkan
@@ -4195,8 +4223,10 @@ imageTrace Outline Kontur
@msg not an EMF or WMF file bukan berkas EMF atau WMF
@msg not found tidak ditemukan
@msg not in pattern editing mode tidak dalam mode pengeditan pola
+@msg finish editing the pattern first selesaikan pengeditan pola terlebih dahulu
@msg nothing encoded tidak ada yang dikodekan
@msg nothing selected tidak ada yang dipilih
+@msg nothing selected is in a group tidak ada yang dipilih yang berada dalam grup
@msg nothing to align tidak ada yang dapat disejajarkan
@msg nothing to distort tidak ada yang dapat didistorsi
@msg nothing to export: the document has no visible art (or turn on Use Artboards) tidak ada yang dapat diekspor: dokumen tidak memiliki karya seni yang terlihat (atau aktifkan Gunakan Artboard)
@@ -4313,10 +4343,14 @@ imageTrace Outline Kontur
@msg the layer or group is locked lapisan atau grup terkunci
@msg the guide is on a hidden or locked layer panduan berada di lapisan yang tersembunyi atau terkunci
@msg the target layer is locked or hidden lapisan target terkunci atau tersembunyi
+@msg the object is hidden or locked objek tersembunyi atau terkunci
+@msg the object is outside the isolated group objek berada di luar grup yang diisolasi
+@msg type objects can't be isolated objek teks tidak dapat diisolasi
@msg the layer to flatten into is hidden lapisan tujuan perataan tersembunyi
@msg the object already has an opacity mask objek sudah memiliki masker opasitas
@msg the object has no geometry objek tidak memiliki geometri
@msg the object has no opacity mask objek tidak memiliki masker opasitas
+@msg stop editing the opacity mask first hentikan pengeditan masker opasitas terlebih dahulu
@msg the object has no stroke objek tidak memiliki goresan
@msg the object is beyond the plane's horizon objek berada di luar horizon bidang
@msg the object isn't in perspective objek tidak dalam perspektif
@@ -5040,6 +5074,9 @@ mark-style Japanese Jepang
Panels Except Tools and Control Semua panel kecuali Alat dan Kontrol
Reset Tracking and Kerning Atur ulang tracking dan kerning
Reset Horizontal Scale Atur ulang skala horizontal
+ Highlight Font Name Sorot nama font
+ Highlight Kerning Sorot kerning
+ Highlight Tracking Sorot tracking
@msg span must be "object" or "selection", got {v} span harus "object" atau "selection", diterima {v}
@msg span: "selection" places a `gradient`, not a swatch span: "selection" menempatkan `gradient`, bukan swatch
@msg span: "selection" places a gradient: give `gradient` span: "selection" menempatkan gradien: berikan `gradient`
@@ -5190,6 +5227,7 @@ swatch Bright Violet Violet cerah
Show Original Path Tampilkan jalur asli
Open this dialog with these settings next time Buka dialog ini dengan pengaturan ini lain kali
Auto-Simplify Sederhanakan otomatis
+ Auto-Smooth Haluskan otomatis
@msg check a layer to export centang lapisan yang akan diekspor
@msg select the art to export first pilih dulu karya yang akan diekspor
@msg no saved selection recalled tidak ada seleksi tersimpan yang dipanggil
@@ -5550,4 +5588,9 @@ axis Y Axis Sumbu Y
Save Brush Library… Simpan pustaka kuas…
@msg no empty artboards to delete tidak ada artboard kosong untuk dihapus
Scale Presets Preset skala
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Perluas tampilan terlebih dahulu (Objek › Perluas tampilan)
Live preview Pratinjau langsung
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Teks titik
+ Area Text Teks area
diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv
index 11dacb32b5..f6a41a7b96 100644
--- a/crates/ui-egui/src/i18n/it.tsv
+++ b/crates/ui-egui/src/i18n/it.tsv
@@ -181,6 +181,8 @@
Anchor Point Punto di ancoraggio
Anchor Point Tool Strumento Punto di ancoraggio
Anchor Points Punti di ancoraggio
+ "In" Control Points Punti di controllo "in entrata"
+ "Out" Control Points Punti di controllo "in uscita"
Anchor Points, Handle, and Bounding Box Display Visualizzazione di punti di ancoraggio, maniglie e riquadro di delimitazione
Anchor/Path Labels Etichette ancoraggio/tracciato
Anchors: Ancoraggi:
@@ -567,6 +569,7 @@ font-technology Variable Variabili
Complexity: Complessità:
Composite colours are converted to it; separations separate with it when it is a CMYK profile. I colori compositi vengono convertiti in questo profilo; le separazioni lo usano quando è un profilo CMYK.
Compound Path Tracciato composto
+ Compound Shape Forma composta
Compress (RLE) Comprimi (RLE)
Compress text and line art Comprimi testo e grafica al tratto
Compression Compressione
@@ -993,7 +996,6 @@ font-technology Variable Variabili
Exit Isolation Mode Esci dalla modalità isolamento
Expand Espandi
Expand Appearance Espandi aspetto
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap Espandi si applica alle forme composte (Alt+clic su un metodo forma) — in programma
Expand Brush Strokes Espandi tracce pennello
Expand Compound Shape Espandi forma composta
Expand Gradient Mesh Espandi trama sfumatura
@@ -1153,6 +1155,9 @@ font-technology Variable Variabili
Increase Font Size by Five Steps Aumenta dimensione font di cinque incrementi
Reset Tracking and Kerning Reimposta spaziatura caratteri e crenatura
Reset Horizontal Scale Reimposta scala orizzontale
+ Highlight Font Name Evidenzia nome del font
+ Highlight Kerning Evidenzia crenatura
+ Highlight Tracking Evidenzia spaziatura caratteri
Spacing Spaziatura
Step Type Dimensione testo a incrementi
Fit in View Adatta alla vista
@@ -1552,6 +1557,12 @@ file-filter Templates Modelli
Image Trace Ricalco immagine
Image Tracing Oggetto ricalco immagine
Tracing Presets Preset di ricalco
+ Manage Presets Gestisci preset
+ Save as New Preset… Salva come nuovo preset…
+ Rename… Rinomina…
+ Rename Preset Rinomina preset
+ Save Image Trace Preset Salva preset ricalco immagine
+ Delete Image Trace Preset Elimina preset ricalco immagine
Image Trace Presets Preset ricalco immagine
Image: Immagine:
Images: Immagini:
@@ -1986,6 +1997,10 @@ file-filter Templates Modelli
Outer Corner Tile Tassello angolo esterno
Side Tile Tassello laterale
Inner Corner Tile Tassello angolo interno
+ Auto-Centered Auto-centrato
+ Auto-Between Auto-tra
+ Auto-Sliced Auto-tagliato
+ Auto-Overlap Auto-sovrapposto
Start Tile Tassello iniziale
End Tile Tassello finale
Fit Adattamento
@@ -2034,6 +2049,7 @@ file-filter Templates Modelli
Brush Art Grafica del pennello
New Calligraphic Brush Nuovo pennello calligrafico
New Character Style Nuovo stile carattere
+ New Character Style… Nuovo stile carattere…
New Color Group Nuovo gruppo colori
New Color Group… Nuovo gruppo colori…
New Document Presets Preset nuovo documento
@@ -2049,6 +2065,7 @@ file-filter Templates Modelli
New Opacity Masks Are Clipping Le nuove maschere di opacità ritagliano
New Opacity Masks Are Inverted Le nuove maschere di opacità sono invertite
New Paragraph Style Nuovo stile paragrafo
+ New Paragraph Style… Nuovo stile paragrafo…
New Pattern Brush from Selection Nuovo pennello motivo dalla selezione
New PDF Preset Nuovo preset PDF
New Print Preset Nuovo preset di stampa
@@ -2062,6 +2079,8 @@ file-filter Templates Modelli
New View Nuova vista
New View… Nuova vista…
New Window Nuova finestra
+ Next Document Documento successivo
+ Previous Document Documento precedente
New Without Dialog Nuovo senza finestra di dialogo
New Workspace Nuova area di lavoro
New Workspace… Nuova area di lavoro…
@@ -2909,6 +2928,7 @@ mark-style Japanese Giapponese
Locked Bloccati
Hidden Nascosti
Filter Layers Panel Rows Filtra righe del pannello Livelli
+@msg `Custom` stands for changed settings: save the preset under another name `Custom` indica impostazioni modificate: salva il preset con un altro nome
@msg `{key}` must be an array of these names: {_1} `{key}` deve essere un array di questi nomi: {_1}
Search commands and tools Cerca comandi e strumenti
Search commands and tools… Cerca comandi e strumenti…
@@ -2992,6 +3012,7 @@ mark-style Japanese Giapponese
Shape Builder Regions Aree del Generatore forme
Shape Builder Tool Strumento Generatore forme
Shape Effects Effetti forma
+ Shape Mode Metodo forma
Shape Modes: Metodi forma:
Shape Properties: Proprietà forma:
Shaper Tool Strumento Sagomatore
@@ -3050,6 +3071,7 @@ mark-style Japanese Giapponese
Show Original Path Mostra tracciato originale
Open this dialog with these settings next time Apri questa finestra di dialogo con queste impostazioni la prossima volta
Auto-Simplify Semplifica automaticamente
+ Auto-Smooth Smussa automaticamente
Color Panel Options Opzioni pannello Colore
Show Package Mostra pacchetto
Show Panel Mostra pannello
@@ -3086,6 +3108,7 @@ mark-style Japanese Giapponese
Simplify Semplifica
Simplify: Semplifica:
Simplify… Semplifica…
+ Smooth… Smussa…
Simulate Colored Paper Simula carta colorata
Simulate Paper Simula carta
Double Column Colonna doppia
@@ -3093,6 +3116,7 @@ mark-style Japanese Giapponese
Single Quotes: Virgolette singole:
Single Right Quotation Mark Virgoletta singola di chiusura
Single-line Composer Composizione su riga singola
+ Toggle Line Composer Alterna composizione delle righe
Sixth Space Spazio di un sesto
Size Dimensione
Size Tile to Art Adatta tassello alla grafica
@@ -3206,6 +3230,11 @@ mark-style Japanese Giapponese
Stroke Traccia
Stroke (X), double-click for the Color Picker Traccia (X), fai doppio clic per il selettore colore
Stroke Color Colore traccia
+ Fill Gradient Sfumatura riempimento
+ Stroke Gradient Sfumatura traccia
+ Fill Pattern Motivo riempimento
+ Stroke Pattern Motivo traccia
+ Patterns Motivi
Stroke Options Opzioni traccia
Character: Carattere:
Character options Opzioni carattere
@@ -3497,6 +3526,7 @@ mark-style Japanese Giapponese
Unlock Guides Sblocca guide
Unnamed Objects Oggetti senza nome
Unprintable margin: Margine non stampabile:
+ Unselected Artwork Grafica non selezionata
Unshift Annulla spostamento
Untitled Senza titolo
Update Link Aggiorna collegamento
@@ -3839,6 +3869,13 @@ axis Both Entrambi
# names and values in backticks or code (`colorModel rgb`, `document.export`) stay as they are.
@msg no library `{id}` nessuna libreria `{id}`
@msg select some type first seleziona prima del testo
+@msg the selection has no gradient fill la selezione non ha una sfumatura di riempimento
+@msg the selection has no gradient stroke la selezione non ha una sfumatura di traccia
+@msg the selection has no pattern fill la selezione non ha un motivo di riempimento
+@msg the selection has no pattern stroke la selezione non ha un motivo di traccia
+@msg no gradient swatch `{name}` nessun campione sfumatura `{name}`
+@msg no pattern swatch `{name}` nessun campione motivo `{name}`
+@msg the library item is damaged l'elemento della libreria è danneggiato
@msg {_1} has no {_2} style {_1} non ha lo stile {_2}
@msg a layer couldn't be read non è stato possibile leggere un livello
@msg it has more than one artboard ha più di una tavola da disegno
@@ -3945,8 +3982,10 @@ axis Both Entrambi
@msg `freeform.points` must be an array `freeform.points` deve essere un array
@msg `freeform.lines` must be an array `freeform.lines` deve essere un array
@msg `gradient` must be an object `gradient` deve essere un oggetto
+@msg `groupColors` must be an array `groupColors` deve essere un array
@msg `library` is a library id or name (see {list}) `library` è l'id o il nome di una libreria (vedi {list})
@msg `mode` applies to freeform gradients `mode` si applica alle sfumature a forma libera
+@msg `preserve` must be an object `preserve` deve essere un oggetto
@msg `sampleSize` must be 1, 3 or 5 `sampleSize` deve essere 1, 3 o 5
@msg `stops` must be an array `stops` deve essere un array
@msg `svg` must be an object of SVG options (see document.formats) `svg` deve essere un oggetto di opzioni SVG (vedi document.formats)
@@ -3981,6 +4020,7 @@ axis Both Entrambi
@msg `{name}` is a process colour: tints apply to global and spot colours `{name}` è un colore quadricromia: le tinte si applicano ai colori globali e spot
@msg `{name}` is no recovery entry name `{name}` non è il nome di una voce di recupero
@msg `{name}` isn't a colour swatch `{name}` non è un campione di colore
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white un colore quadricromia non può colorare un'immagine in scala di grigi con trasparenza: usa un colore spot, il nero o il bianco
@msg `{path}` must be a bool or an object of bools `{path}` deve essere un booleano o un oggetto di booleani
@msg `{s}` is not a colour (#rrggbb or a preset name) `{s}` non è un colore (#rrggbb o il nome di un preset)
@msg `{tool}` isn't a Liquify tool `{tool}` non è uno strumento Fluidifica
@@ -4026,6 +4066,10 @@ axis Both Entrambi
@msg a page tree node has no kids un nodo dell'albero delle pagine non ha elementi figli
@msg a page's placement is not finite la posizione di una pagina non è finita
@msg a preset named `{_1}` exists esiste già un preset denominato `{_1}`
+@msg `name` is empty `name` è vuoto
+@msg `newName` is empty `newName` è vuoto
+@msg `{name}` is a built-in preset and can't change: save it under another name `{name}` è un preset integrato e non può essere modificato: salvalo con un altro nome
+@msg `{name}` is a built-in preset and stays `{name}` è un preset integrato e non può essere eliminato
@msg a swatch or color group named `{n}` exists esiste già un campione o un gruppo colori denominato `{n}`
@msg a slice size must be a positive number of points la dimensione di una sezione deve essere un numero positivo di punti
@msg a spine keeps at least two points una dorsale mantiene almeno due punti
@@ -4045,6 +4089,7 @@ axis Both Entrambi
@msg videoRulerPixelAspectRatio must be a number from 0.1 to 10 videoRulerPixelAspectRatio deve essere un numero da 0,1 a 10
@msg the Color Picker is not open il Selettore colore non è aperto
@msg the Simplify slider is not open il cursore Semplifica non è aperto
+@msg the Smooth slider is not open il cursore Smussa non è aperto
@msg the screen color sampler is already open il campionatore di colore dello schermo è già aperto
@msg this system has no screen color sampler questo sistema non ha un campionatore di colore dello schermo
@msg bad colour `{hex}` (#rrggbb) colore non valido `{hex}` (#rrggbb)
@@ -4117,6 +4162,7 @@ axis Both Entrambi
@msg missing `id` (see plugin.list) manca `id` (vedi plugin.list)
@msg missing `name` manca `name`
@msg missing `tool` manca `tool`
+@msg missing id manca id
@msg missing index manca index
@msg missing number `{key}` manca il numero `{key}`
@msg missing integer `{key}` manca il numero intero `{key}`
@@ -4149,6 +4195,7 @@ axis Both Entrambi
@msg no current layer nessun livello corrente
@msg no data nessun dato
@msg no dialog open nessuna finestra di dialogo aperta
+@msg the open dialog has no Reset la finestra di dialogo aperta non ha il pulsante Reimposta
@msg no document nessun documento
@msg no document open nessun documento aperto
@msg no effect applied yet nessun effetto ancora applicato
@@ -4182,6 +4229,8 @@ axis Both Entrambi
@msg no print service nessun servizio di stampa
@msg no revert command nessun comando Ripristina
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) nessun preset PDF salvato denominato `{name}` (i preset integrati sono di sola lettura: creane uno nuovo a partire da essi)
+@msg no saved preset named `{name}` nessun preset salvato denominato `{name}`
+@msg no saved preset named `{name}` to rename nessun preset salvato denominato `{name}` da rinominare
@msg no saved presets nessun preset salvato
@msg no saved print preset named `{name}` ({DEFAULT_PRESET} is protected: start a new one from it) nessun preset di stampa salvato denominato `{name}` ({DEFAULT_PRESET} è protetto: creane uno nuovo a partire da esso)
@msg no saved profiles nessun profilo salvato
@@ -4229,8 +4278,10 @@ axis Both Entrambi
@msg not an EMF or WMF file non è un file EMF o WMF
@msg not found non trovato
@msg not in pattern editing mode non sei in modalità modifica motivo
+@msg finish editing the pattern first termina prima la modifica del motivo
@msg nothing encoded nessun dato codificato
@msg nothing selected nessuna selezione
+@msg nothing selected is in a group nessun elemento selezionato si trova in un gruppo
@msg nothing to align niente da allineare
@msg nothing to distort niente da distorcere
@msg nothing to export: the document has no visible art (or turn on Use Artboards) niente da esportare: il documento non ha grafica visibile (oppure attiva Usa tavole da disegno)
@@ -4357,10 +4408,14 @@ axis Both Entrambi
@msg the layer or group is locked il livello o il gruppo è bloccato
@msg the guide is on a hidden or locked layer la guida si trova su un livello nascosto o bloccato
@msg the target layer is locked or hidden il livello di destinazione è bloccato o nascosto
+@msg the object is hidden or locked l'oggetto è nascosto o bloccato
+@msg the object is outside the isolated group l'oggetto è fuori dal gruppo isolato
+@msg type objects can't be isolated gli oggetti di testo non possono essere isolati
@msg the layer to flatten into is hidden il livello in cui appiattire è nascosto
@msg the object already has an opacity mask l'oggetto ha già una maschera di opacità
@msg the object has no geometry l'oggetto non ha geometria
@msg the object has no opacity mask l'oggetto non ha una maschera di opacità
+@msg stop editing the opacity mask first interrompi prima la modifica della maschera di opacità
@msg the object has no stroke l'oggetto non ha traccia
@msg the object is beyond the plane's horizon l'oggetto è oltre l'orizzonte del piano
@msg the object isn't in perspective l'oggetto non è in prospettiva
@@ -4406,6 +4461,7 @@ axis Both Entrambi
@msg unknown preset `{name}` (high, medium, low or a saved one: see flattener.presets.list) preset sconosciuto `{name}` (high, medium, low o uno salvato: vedi flattener.presets.list)
@msg unknown preset `{name}` (see flattener.presets.list) preset sconosciuto `{name}` (vedi flattener.presets.list)
@msg unknown preset `{name}` (see webExport.presets.list) preset sconosciuto `{name}` (vedi webExport.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) preset sconosciuto `{name}`: né integrato né salvato (vedi imageTrace.presets)
@msg unknown side `{other}` (left|right|top|bottom) lato sconosciuto `{other}` (left|right|top|bottom)
@msg unknown tool `{tool}` strumento sconosciuto `{tool}`
@msg unknown tool `{t}` strumento sconosciuto `{t}`
@@ -4550,6 +4606,10 @@ axis Both Entrambi
Shaper Shaper
Expand Shaper Group Espandi gruppo Shaper
Release Shaper Group Rilascia gruppo Shaper
+ Remove from Shaper Group Rimuovi dal gruppo Shaper
+@msg source must be the id of a Shaper Group's original shape source deve essere l’identificatore di una forma originale di un gruppo Shaper
+@msg group must be the id of a Shaper Group group deve essere l’identificatore di un gruppo Shaper
+@msg the shape is not an editable original shape of that Shaper Group la forma non è una forma originale modificabile di quel gruppo Shaper
Select Shaper Face Seleziona faccia Shaper
Constrain Vincola
Free Transform Trasformazione libera
@@ -4580,6 +4640,9 @@ axis Both Entrambi
@msg not a PSD file non è un documento PSD
@msg the PSD file has an unknown colour mode ({m}) il file PSD ha un metodo colore sconosciuto ({m})
@msg the PSD file's image data uses an unknown compression ({m}) i dati immagine del file PSD usano una compressione sconosciuta ({m})
+@msg the PCX file is cut short il file PCX è troncato
+@msg the PCX file's header is damaged l'intestazione del file PCX è danneggiata
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read i file PCX con pixel a {bits} bit in {planes} piani non possono essere letti
@msg the PSD image is too large to read ({_1} × {_2} pixels) l'immagine PSD è troppo grande per essere letta ({_1} × {_2} pixel)
@msg zipped 32-bit PSD image data with prediction can't be read i dati immagine PSD a 32 bit compressi ZIP con previsione non possono essere letti
@msg {depth}-bit PSD files in this colour mode can't be read i file PSD a {depth} bit in questo metodo colore non possono essere letti
@@ -5237,4 +5300,9 @@ axis Y Axis Asse Y
Scale Presets Preimpostazioni di scala
@msg a {width}×{height} screenshot's byte count overflows il numero di byte di uno screenshot {width}×{height} va in overflow
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot la {what} della finestra ({points} punti × {scale} DPI) non può dimensionare uno screenshot
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Espandi prima l’aspetto (Oggetto › Espandi aspetto)
Live preview Anteprima dal vivo
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Testo per punti
+ Area Text Testo in area
diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv
index e6fd4b565c..052ad0709d 100644
--- a/crates/ui-egui/src/i18n/ja.tsv
+++ b/crates/ui-egui/src/i18n/ja.tsv
@@ -196,6 +196,7 @@ font-technology Variable バリアブル
Other Layers その他のレイヤー
Unlock All すべてをロック解除
Hide 隠す
+ Unselected Artwork 選択されていないアートワーク
Show All すべてを表示
Expand… 分割・拡張…
Expand Appearance アピアランスを分割
@@ -228,6 +229,7 @@ font-technology Variable バリアブル
Offset Path… パスのオフセット…
Reverse Path Direction パスの方向反転
Simplify… 単純化…
+ Smooth… スムーズ…
Add Anchor Points アンカーポイントの追加
Remove Anchor Points アンカーポイントの削除
Divide Objects Below 背面のオブジェクトで型抜き
@@ -281,11 +283,18 @@ font-technology Variable バリアブル
Image Trace 画像トレース
Image Tracing 画像トレースオブジェクト
Tracing Presets トレースプリセット
+ Manage Presets プリセットを管理
+ Save as New Preset… 新規プリセットとして保存…
+ Rename… 名前を変更…
+ Rename Preset プリセット名を変更
+ Save Image Trace Preset 画像トレースプリセットを保存
+ Delete Image Trace Preset 画像トレースプリセットを削除
Text Wrap テキストの回り込み
Text Wrap Options… テキストの回り込みオプション…
Clipping Mask クリッピングマスク
Edit Clipping Path クリッピングパスを編集
Compound Path 複合パス
+ Compound Shape 複合シェイプ
Artboards アートボード
Convert to Artboards アートボードに変換
Rearrange All Artboards… すべてのアートボードを再配置…
@@ -372,6 +381,9 @@ font-technology Variable バリアブル
Increase Font Size by Five Steps フォントサイズを5段階大きく
Reset Tracking and Kerning トラッキングとカーニングをリセット
Reset Horizontal Scale 水平比率をリセット
+ Highlight Font Name フォント名をハイライト
+ Highlight Kerning カーニングをハイライト
+ Highlight Tracking トラッキングをハイライト
Step Type 文字を段階的に調整
Find Font… フォントの検索と置換…
Change Case 大文字と小文字の変更
@@ -413,6 +425,11 @@ font-technology Variable バリアブル
Pie End Angle: 扇形の終了角度:
Pie Start Angle: 扇形の開始角度:
Stroke Color カラー (線)
+ Fill Gradient グラデーション (塗り)
+ Stroke Gradient グラデーション (線)
+ Fill Pattern パターン (塗り)
+ Stroke Pattern パターン (線)
+ Patterns パターン
Stroke Weight 線幅
Graphic Style グラフィックスタイル
Symbol Instance シンボルインスタンス
@@ -600,6 +617,8 @@ font-technology Variable バリアブル
Saved View 25 保存した表示 25
Window ウィンドウ
New Window 新規ウィンドウ
+ Next Document 次のドキュメント
+ Previous Document 前のドキュメント
Cascade 重ねて表示
Tile 並べて表示
Float in Window ウィンドウを分離
@@ -904,6 +923,8 @@ font-technology Variable バリアブル
Anchor Point アンカーポイント
Anchor Point Tool アンカーポイントツール
Anchor Points アンカーポイント
+ "In" Control Points 「イン」コントロールポイント
+ "Out" Control Points 「アウト」コントロールポイント
Anchor Points, Handle, and Bounding Box Display アンカーポイント、ハンドル、バウンディングボックスの表示
Anchor/Path Labels アンカー/パスラベル
Angle 角度
@@ -1447,7 +1468,6 @@ font-technology Variable バリアブル
Expand Layers Panel Rows レイヤーパネルの行を展開
Expand Options 拡張オプション
Expand Repeat リピートを拡張
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap 拡張は複合シェイプ (Alt キーを押しながらシェイプモードをクリック)に適用されます。今後対応予定です。
Expand: 拡張:
Export All… すべて書き出し…
Export Artboard アートボードを書き出し
@@ -2111,6 +2131,10 @@ font-technology Variable バリアブル
Outer Corner Tile 外角タイル
Side Tile サイドタイル
Inner Corner Tile 内角タイル
+ Auto-Centered 自動(中央)
+ Auto-Between 自動(間)
+ Auto-Sliced 自動(スライス)
+ Auto-Overlap 自動(重なり)
Start Tile 始点タイル
End Tile 終点タイル
Fit 調整
@@ -2159,6 +2183,7 @@ font-technology Variable バリアブル
Brush Art ブラシのアート
New Calligraphic Brush 新規絵筆ブラシ
New Character Style 新規文字スタイル
+ New Character Style… 新規文字スタイル…
New Color Group 新規カラーグループ
New Color Group… 新規カラーグループ…
New Document Presets 新規ドキュメントプリセット
@@ -2172,6 +2197,7 @@ font-technology Variable バリアブル
New Opacity Masks Are Inverted 新規不透明マスクを反転に設定
New PDF Preset 新規 PDF プリセット
New Paragraph Style 新規段落スタイル
+ New Paragraph Style… 新規段落スタイル…
New Pattern Brush from Selection 選択範囲から新規パターンブラシ
New Print Preset 新規プリントプリセット
New Scatter Brush from Selection 選択範囲から新規散布ブラシ
@@ -2763,6 +2789,7 @@ mark-style Japanese 日本式
Locked ロック
Hidden 非表示
Filter Layers Panel Rows レイヤーパネルの行をフィルター
+@msg `Custom` stands for changed settings: save the preset under another name `Custom` は変更した設定を表します: プリセットを別の名前で保存してください
@msg `{key}` must be an array of these names: {_1} `{key}` には {_1} の中の名前の配列を指定してください
Search commands and tools コマンドとツールを検索
Search commands and tools… コマンドとツールを検索…
@@ -2823,6 +2850,7 @@ mark-style Japanese 日本式
Shape Builder シェイプ形成ツール
Shape Builder Regions シェイプ形成ツールの領域
Shape Builder Tool シェイプ形成ツール
+ Shape Mode シェイプモード
Shape Modes: シェイプモード:
Shape Properties: シェイプのプロパティ:
Shaper Tool Shaper ツール
@@ -2850,6 +2878,7 @@ mark-style Japanese 日本式
Show Original Path 元のパスを表示
Open this dialog with these settings next time 次回はこの設定でこのダイアログを開く
Auto-Simplify 自動単純化
+ Auto-Smooth 自動スムーズ
Color Panel Options カラーパネルオプション
Show Package パッケージを表示
Show Panel パネルを表示
@@ -2883,6 +2912,7 @@ mark-style Japanese 日本式
Simulate Paper 紙色をシミュレート
Single Quotes: 一重引用符:
Single-line Composer 1 行ずつ組む
+ Toggle Line Composer 行の組版方式を切り替え
Size Tile to Art タイルをアートワークのサイズに合わせる
Size/Leading サイズ/行送り
Size: サイズ:
@@ -3788,6 +3818,10 @@ theme Appearance 外観
Shaper Shaper
Expand Shaper Group Shaper グループを拡張
Release Shaper Group Shaper グループを解除
+ Remove from Shaper Group Shaper グループから削除
+@msg source must be the id of a Shaper Group's original shape source には Shaper グループの元のシェイプの ID を指定してください
+@msg group must be the id of a Shaper Group group には Shaper グループの ID を指定してください
+@msg the shape is not an editable original shape of that Shaper Group そのシェイプはその Shaper グループの編集可能な元のシェイプではありません
Select Shaper Face Shaper の面を選択
Constrain 制限
Free Transform 自由変形
@@ -4057,7 +4091,9 @@ swatch Bright Violet ビビッドバイオレット
@msg `antiAlias` must be "none", "sharp", "crisp" or "strong" `antiAlias` には "none"、"sharp"、"crisp" または "strong" を指定してください
@msg `aspect` must be a number (%) `aspect` には数値 (%) を指定してください
@msg `gradient` must be an object `gradient` にはオブジェクトを指定してください
+@msg `groupColors` must be an array `groupColors` には配列を指定してください
@msg `mode` applies to freeform gradients `mode` はフリーフォームグラデーションにのみ適用されます
+@msg `preserve` must be an object `preserve` にはオブジェクトを指定してください
@msg `stops` must be an array `stops` には配列を指定してください
@msg `{k}` must be [x, y] `{k}` は [x, y] の形式で指定してください
@msg a gradient needs at least two stops グラデーションには 2 つ以上の分岐点が必要です
@@ -4079,6 +4115,9 @@ swatch Bright Violet ビビッドバイオレット
@msg the layer or group is locked レイヤーまたはグループがロックされています
@msg the guide is on a hidden or locked layer ガイドが非表示またはロックされたレイヤー上にあります
@msg the target layer is locked or hidden ターゲットレイヤーがロックされているか非表示です
+@msg the object is hidden or locked オブジェクトが非表示かロックされています
+@msg the object is outside the isolated group オブジェクトが分離されたグループの外にあります
+@msg type objects can't be isolated テキストオブジェクトは分離できません
@msg the layer to flatten into is hidden 統合先のレイヤーが非表示になっています
@msg there are no objects to release レイヤーに分配するオブジェクトがありません
@msg no library `{id}` ライブラリ `{id}` が見つかりません
@@ -4091,6 +4130,7 @@ swatch Bright Violet ビビッドバイオレット
@msg select a blend or give `id` ブレンドを選択するか、`id` を指定してください
@msg select a gradient mesh グラデーションメッシュを選択してください
@msg the object has no opacity mask オブジェクトに不透明マスクがありません
+@msg stop editing the opacity mask first 先に不透明マスクの編集を終了してください
@msg Convert to Artboards: selection has no area アートボードに変換: 選択範囲に面積がありません
@msg Convert to Shape: no rectangles or ellipses selected シェイプに変換: 長方形または楕円形が選択されていません
@msg image would be too large; lower the resolution 画像が大きくなりすぎるため、解像度を下げてください
@@ -4115,6 +4155,7 @@ swatch Bright Violet ビビッドバイオレット
@msg the object already has an opacity mask オブジェクトにはすでに不透明マスクがあります
@msg `{name}` is a process colour: tints apply to global and spot colours `{name}` はプロセスカラーです: 濃淡を適用できるのはグローバルカラーと特色だけです
@msg `{name}` isn't a colour swatch `{name}` はカラースウォッチではありません
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white プロセスカラーでは透明部分のあるグレースケール画像に色を付けられません: 特色、黒、白のいずれかを使用してください
@msg a document needs at least one artboard ドキュメントには少なくとも 1 つのアートボードが必要です
@msg empty path パスが空です
@msg join needs open paths 連結にはオープンパスが必要です
@@ -4137,6 +4178,7 @@ swatch Bright Violet ビビッドバイオレット
@msg already editing a pattern すでにパターンを編集中です
@msg no pattern `{name}` パターン `{name}` が見つかりません
@msg not in pattern editing mode パターン編集モードではありません
+@msg finish editing the pattern first 先にパターンの編集を終了してください
@msg pattern missing パターンが見つかりません
@msg select a repeat リピートを選択してください
@msg select an Intertwine group 織り交ぜグループを選択してください
@@ -4364,6 +4406,7 @@ swatch Bright Violet ビビッドバイオレット
@msg videoRulerPixelAspectRatio must be a number from 0.1 to 10 videoRulerPixelAspectRatio には 0.1 〜 10 の数値を指定してください
@msg the Color Picker is not open カラーピッカーが開いていません
@msg the Simplify slider is not open 単純化スライダーが開いていません
+@msg the Smooth slider is not open スムーズスライダーが開いていません
@msg the screen color sampler is already open 画面のカラーサンプラーはすでに開いています
@msg this system has no screen color sampler このシステムには画面のカラーサンプラーがありません
@msg Corners edits the corners of a path 「コーナー」で編集できるのはパスの角だけです
@@ -4410,6 +4453,10 @@ swatch Bright Violet ビビッドバイオレット
@msg {_1} is an exporter (File › Export › Export As…) {_1} は書き出しプラグインです (「ファイル › 書き出し › 形式を指定して書き出し…」から使用してください)
@msg `documentData` is {size} bytes (limit {MAX_DOCUMENT_DATA}) `documentData` は {size} バイトです (上限 {MAX_DOCUMENT_DATA})
@msg a preset named `{_1}` exists `{_1}` という名前のプリセットはすでに存在します
+@msg `name` is empty `name` が空です
+@msg `newName` is empty `newName` が空です
+@msg `{name}` is a built-in preset and can't change: save it under another name `{name}` は組み込みのプリセットのため変更できません: 別の名前で保存してください
+@msg `{name}` is a built-in preset and stays `{name}` は組み込みのプリセットのため削除できません
@msg a swatch or color group named `{n}` exists `{n}` という名前のスウォッチまたはカラーグループはすでに存在します
@msg no print preset named `{base}` `{base}` という名前のプリントプリセットが見つかりません
@msg no print preset named `{name}` `{name}` という名前のプリントプリセットが見つかりません
@@ -4428,6 +4475,8 @@ swatch Bright Violet ビビッドバイオレット
@msg PDF settings are not an object PDF 設定がオブジェクト形式ではありません
@msg PDF security settings are not an object PDF のセキュリティ設定がオブジェクト形式ではありません
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) `{name}` という名前の保存済み PDF プリセットが見つかりません (組み込みのプリセットは読み取り専用です: それを元に新しいプリセットを作成してください)
+@msg no saved preset named `{name}` `{name}` という名前の保存済みプリセットが見つかりません
+@msg no saved preset named `{name}` to rename 名前を変更する `{name}` という保存済みプリセットが見つかりません
@msg Saved to User Defined: {_1} 「ユーザー定義」に保存しました: {_1}
@msg choose a direction to divide in 分割する方向を選択してください
@msg choice must be "merge" or "add", not `{choice}` choice には "merge" または "add" を指定してください (`{choice}` は指定できません)
@@ -4481,6 +4530,7 @@ swatch Bright Violet ビビッドバイオレット
@msg lang must be one of {_1} lang には {_1} のいずれかを指定してください
@msg missing `name` `name` が指定されていません
@msg missing `tool` `tool` が指定されていません
+@msg missing id id が指定されていません
@msg missing index index が指定されていません
@msg missing number `{key}` 数値 `{key}` が指定されていません
@msg missing integer `{key}` 整数 `{key}` が指定されていません
@@ -4503,6 +4553,13 @@ swatch Bright Violet ビビッドバイオレット
@msg choose a folder to export to 書き出し先のフォルダーを選択してください
@msg the selection has no URL (or they differ) 選択したオブジェクトに URL がありません (または URL がそれぞれ異なります)
@msg select some type first 先にテキストを選択してください
+@msg the selection has no gradient fill 選択したオブジェクトに塗りのグラデーションがありません
+@msg the selection has no gradient stroke 選択したオブジェクトに線のグラデーションがありません
+@msg the selection has no pattern fill 選択したオブジェクトに塗りのパターンがありません
+@msg the selection has no pattern stroke 選択したオブジェクトに線のパターンがありません
+@msg no gradient swatch `{name}` グラデーションスウォッチ `{name}` が見つかりません
+@msg no pattern swatch `{name}` パターンスウォッチ `{name}` が見つかりません
+@msg the library item is damaged ライブラリの項目が破損しています
@msg {_1} font families available {_1} 個のフォントファミリーを使用できます
@msg {_1} has no {_2} style {_1} には {_2} スタイルがありません
@msg Copied the CSS of {rules} object(s) {rules} 個のオブジェクトの CSS をコピーしました
@@ -4512,6 +4569,7 @@ swatch Bright Violet ビビッドバイオレット
@msg unknown highlight `{h}` `{h}` は不明なハイライトの指定です
@msg unknown overprints `{o}` (preserve, simulate or discard) `{o}` は不明なオーバープリントの指定です (preserve、simulate、discard のいずれか)
@msg unknown preset `{name}` (see flattener.presets.list) `{name}` は不明なプリセットです (flattener.presets.list を参照してください)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) `{name}` は不明なプリセットです: 組み込みのプリセットでも保存済みのプリセットでもありません (imageTrace.presets を参照してください)
@msg Select text or click into text with the Type tool to insert glyphs 字形を挿入するには、テキストを選択するか、文字ツールでテキスト内をクリックしてください
@msg `library` is a library id or name (see {list}) `library` にはライブラリの ID または名前を指定してください ({list} を参照)
@msg no library `{key}` (see {list}) ライブラリ `{key}` が見つかりません ({list} を参照)
@@ -4545,6 +4603,7 @@ swatch Bright Violet ビビッドバイオレット
@msg can't parse shortcut `{c}` ショートカット `{c}` を解釈できません
@msg can't parse shortcut `{s}` for `{k}` `{k}` のショートカット `{s}` を解釈できません
@msg no dialog open ダイアログが開かれていません
+@msg the open dialog has no Reset 開いているダイアログにはリセットボタンがありません
@msg no file reader ファイルの読み込み機能がありません
@msg no file writer ファイルの書き込み機能がありません
@msg not a VectorCraft shortcut set (missing `overrides`) VectorCraft のショートカットセットではありません (`overrides` がありません)
@@ -4559,6 +4618,7 @@ swatch Bright Violet ビビッドバイオレット
@msg Couldn't copy to the system clipboard: {e} システムのクリップボードにコピーできませんでした: {e}
@msg Couldn't paste from the clipboard: {e} クリップボードから貼り付けられませんでした: {e}
@msg nothing selected 何も選択されていません
+@msg nothing selected is in a group 選択したオブジェクトはどれもグループ内にありません
@msg the {tool} tool has no options {tool} ツールにはオプションがありません
@msg unknown tool `{tool}` `{tool}` は不明なツールです
@msg {tool} isn't in a toolbar group of several tools {tool} は複数のツールからなるツールグループに含まれていません
@@ -4618,6 +4678,9 @@ swatch Bright Violet ビビッドバイオレット
@msg not a PSD file PSD ドキュメントではありません
@msg the PSD file has an unknown colour mode ({m}) PSD ファイルのカラーモードが不明です({m})
@msg the PSD file's image data uses an unknown compression ({m}) PSD ファイルの画像データの圧縮方式が不明です({m})
+@msg the PCX file is cut short PCX ファイルが途中で切れています
+@msg the PCX file's header is damaged PCX ファイルのヘッダーが壊れています
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read {planes} プレーンに {bits} bit のピクセルを持つ PCX ファイルは読み込めません
@msg the PSD image is too large to read ({_1} × {_2} pixels) PSD 画像が大きすぎて読み込めません({_1} × {_2} ピクセル)
@msg zipped 32-bit PSD image data with prediction can't be read 予測付き ZIP 圧縮の 32 bit PSD 画像データは読み込めません
@msg {depth}-bit PSD files in this colour mode can't be read このカラーモードの {depth} bit PSD ファイルは読み込めません
@@ -5299,4 +5362,9 @@ axis Y Axis Y 軸
Scale Presets 拡大縮小のプリセット
@msg a {width}×{height} screenshot's byte count overflows {width}×{height} のスクリーンショットのバイト数がオーバーフローします
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot ウィンドウの {what}({points} ポイント × {scale} DPI)ではスクリーンショットのサイズを決められません
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) 先にアピアランスを分割してください(オブジェクト › アピアランスを分割)
Live preview ライブプレビュー
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text ポイント文字
+ Area Text エリア内文字
diff --git a/crates/ui-egui/src/i18n/ka.tsv b/crates/ui-egui/src/i18n/ka.tsv
index 4da7b1c1c3..197878ff05 100644
--- a/crates/ui-egui/src/i18n/ka.tsv
+++ b/crates/ui-egui/src/i18n/ka.tsv
@@ -142,6 +142,7 @@
Other Layers სხვა შრეები
Unlock All ყველაფრის განბლოკვა
Hide დამალვა
+ Unselected Artwork მოუნიშნავი ნახატი
Show All ყველას ჩვენება
Expand… გაშლა…
Expand Appearance იერსახის გაშლა
@@ -173,6 +174,7 @@
Offset Path… ტრაექტორიის წანაცვლება…
Reverse Path Direction ტრაექტორიის მიმართულების შებრუნება
Simplify… გამარტივება…
+ Smooth… გაგლუვება…
Add Anchor Points საყრდენი წერტილების დამატება
Remove Anchor Points საყრდენი წერტილების მოცილება
Divide Objects Below ქვედა ობიექტების დაყოფა
@@ -218,6 +220,7 @@
Clipping Mask მომჭრელი ნიღაბი
Edit Clipping Path მომჭრელი ტრაექტორიის რედაქტირება
Compound Path შედგენილი ტრაექტორია
+ Compound Shape შედგენილი ფიგურა
Artboards სამუშაო დაფები
Convert to Artboards სამუშაო დაფებად გარდაქმნა
Rearrange All Artboards… ყველა სამუშაო დაფის გადალაგება…
@@ -245,7 +248,7 @@
Insert Special Character სპეციალური სიმბოლოს ჩასმა
Bullet ბურთულა
Bullets ბურთულები
- Bullets and Numbering ბურთულები და დანომრვა
+ Bullets and Numbering ბურთულები და დანომვრა
Apply Bullets ბურთულების გამოყენება
Numbered List დანომრილი სია
Apply Numbers დანომრვის გამოყენება
@@ -332,6 +335,11 @@
Fill Color შევსების ფერი
Opacity გაუმჭვირვალობა
Stroke Color კონტურის ფერი
+ Fill Gradient შევსების გრადიენტი
+ Stroke Gradient კონტურის გრადიენტი
+ Fill Pattern შევსების პატერნი
+ Stroke Pattern კონტურის პატერნი
+ Patterns პატერნები
Stroke Weight კონტურის სისქე
Graphic Style გრაფიკული სტილი
Symbol Instance სიმბოლოს ეგზემპლარი
@@ -523,6 +531,8 @@
Saved View 25 შენახული ხედი 25
Window ფანჯარა
New Window ახალი ფანჯარა
+ Next Document შემდეგი დოკუმენტი
+ Previous Document წინა დოკუმენტი
Cascade კასკადად
Tile ფილებად
Float in Window ცალკე ფანჯარაში გამოტანა
@@ -697,6 +707,10 @@
Shaper ფორმირება
Expand Shaper Group ფორმირების ჯგუფის გაშლა
Release Shaper Group ფორმირების ჯგუფის მოხსნა
+ Remove from Shaper Group ფორმირების ჯგუფიდან ამოღება
+@msg source must be the id of a Shaper Group's original shape source უნდა იყოს ფორმირების ჯგუფის საწყისი ფიგურის იდენტიფიკატორი
+@msg group must be the id of a Shaper Group group უნდა იყოს ფორმირების ჯგუფის იდენტიფიკატორი
+@msg the shape is not an editable original shape of that Shaper Group ფიგურა არ არის ამ ფორმირების ჯგუფის რედაქტირებადი საწყისი ფიგურა
Select Shaper Face ფორმირების არის მონიშვნა
Constrain შეზღუდვა
Free Transform თავისუფალი გარდაქმნა
@@ -1401,6 +1415,12 @@ lighting Light სინათლე
Document Library დოკუმენტის ბიბლიოთეკა
Library: ბიბლიოთეკა:
Tracing Presets ვექტორიზაციის პრესეტები
+ Manage Presets პრესეტების მართვა
+ Save as New Preset… ახალ პრესეტად შენახვა…
+ Rename… სახელის შეცვლა…
+ Rename Preset პრესეტის სახელის შეცვლა
+ Save Image Trace Preset გამოსახულების ვექტორიზაციის პრესეტის შენახვა
+ Delete Image Trace Preset გამოსახულების ვექტორიზაციის პრესეტის წაშლა
Method: მეთოდი:
Mode: რეჟიმი:
Noise ხმაური
@@ -1521,13 +1541,13 @@ lighting Light სინათლე
Roman Hanging Punctuation ლათინური გამოწეული პუნქტუაცია
Select a text object to edit its paragraph attributes. აბზაცის ატრიბუტების რედაქტირებისთვის მონიშნეთ ტექსტური ობიექტი.
Single-line Composer სტრიქონის მიხედვით აწყობა
+ Toggle Line Composer აწყობის რეჟიმის გადართვა
Space After Paragraph ინტერვალი აბზაცის შემდეგ
Space Before Paragraph ინტერვალი აბზაცის წინ
Top-to-Top Leading სტრიქონთა დაშორება ზედა კიდიდან ზედა კიდემდე
Bottom-to-Bottom Leading სტრიქონთა დაშორება ქვედა კიდიდან ქვედა კიდემდე
Burasagari Burasagari
Force იძულებით
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap გაშლა შედგენილ ფიგურებზე მოქმედებს (Alt-დაწკაპუნება ფიგურის რეჟიმზე) — სამომავლო გეგმაშია
Expand Compound Shape შედგენილი ფიგურის გაშლა
Make Compound Shape შედგენილი ფიგურის შექმნა
Pathfinder Options… ტრაექტორიების ოპერაციების პარამეტრები…
@@ -1538,7 +1558,7 @@ lighting Light სინათლე
Trap… ტრეპინგი…
Trap ტრეპინგი
Height/Width სიმაღლე/სიგანე
- Tint Reduction ტონის შემცირება
+ Tint Reduction ტონირების შემცირება
Traps with Process Color ტრეპინგი პროცესული ფერებით
Reverse Traps შებრუნებული ტრეპინგი
Precision სიზუსტე
@@ -1785,6 +1805,10 @@ lighting Light სინათლე
Outer Corner Tile გარე კუთხე
Side Tile გვერდითი
Inner Corner Tile შიდა კუთხე
+ Auto-Centered ავტო-ცენტრირებული
+ Auto-Between ავტო-შორის
+ Auto-Sliced ავტო-დაჭრილი
+ Auto-Overlap ავტო-გადაფარვა
Start Tile საწყისი
End Tile ბოლო ფილა
Fit მორგება
@@ -2039,6 +2063,8 @@ lighting Light სინათლე
Locate Selected Objects მონიშნული ობიექტების მოძებნა
Thumbnails: ესკიზები:
Anchor Points საყრდენი წერტილები
+ "In" Control Points „შემავალი“ საკონტროლო წერტილები
+ "Out" Control Points „გამავალი“ საკონტროლო წერტილები
Brush Affects: ფუნჯი მოქმედებს:
Complexity: სირთულე:
Detail: დეტალიზაცია:
@@ -3485,6 +3511,7 @@ font-technology Variable ცვლადი
Default Fill and Stroke (D) ნაგულისხმევი შევსება და კონტური (D)
Fill (X), double-click for the Color Picker შევსება (X), ორმაგი დაწკაპუნება — ფერის ამრჩევი
Opacity: გაუმჭვირვალობა:
+ Shape Mode ფიგურის რეჟიმი
Shape Modes: ფიგურის რეჟიმები:
Stroke (X), double-click for the Color Picker კონტური (X), ორმაგი დაწკაპუნება — ფერის ამრჩევი
Stroke: კონტური:
@@ -3532,7 +3559,9 @@ font-technology Variable ცვლადი
Mojikumi Mojikumi
N pt per N pt თითოზე
New Character Style სიმბოლოს ახალი სტილი
+ New Character Style… სიმბოლოს ახალი სტილი…
New Paragraph Style აბზაცის ახალი სტილი
+ New Paragraph Style… აბზაცის ახალი სტილი…
Paragraph Style Options აბზაცის სტილის პარამეტრები
Redefine Character Style სიმბოლოს სტილის ხელახლა განსაზღვრა
Redefine Paragraph Style აბზაცის სტილის ხელახლა განსაზღვრა
@@ -3605,6 +3634,13 @@ font-technology Variable ცვლადი
@plural {n} stroke|{n} strokes კონტური: {n}
@msg no library `{id}` ბიბლიოთეკა `{id}` არ არსებობს
@msg select some type first ჯერ მონიშნეთ ტექსტი
+@msg the selection has no gradient fill მონიშნულს შევსების გრადიენტი არ აქვს
+@msg the selection has no gradient stroke მონიშნულს კონტურის გრადიენტი არ აქვს
+@msg the selection has no pattern fill მონიშნულს შევსების პატერნი არ აქვს
+@msg the selection has no pattern stroke მონიშნულს კონტურის პატერნი არ აქვს
+@msg no gradient swatch `{name}` გრადიენტის ფერის ნიმუში `{name}` არ არის
+@msg no pattern swatch `{name}` პატერნის ფერის ნიმუში `{name}` არ არის
+@msg the library item is damaged ბიბლიოთეკის ელემენტი დაზიანებულია
@msg {_1} has no {_2} style {_1}-ს არ აქვს სტილი {_2}
@msg a layer couldn't be read შრის წაკითხვა ვერ მოხერხდა
@msg it has more than one artboard მას ერთზე მეტი სამუშაო დაფა აქვს
@@ -3619,6 +3655,7 @@ font-technology Variable ცვლადი
@msg its page has text, and its layers have no text objects to put it in მის გვერდზე ტექსტია, შრეებში კი არ არის ტექსტური ობიექტები, სადაც ის ჩაჯდებოდა
@msg its type is to come in as outlines, which only its page has მისი ტექსტი კონტურებად უნდა შემოვიდეს, ასეთი კი მხოლოდ მის გვერდზეა
@msg the art on them differs from the page's in {_1}% of it მათზე არსებული ნახატი გვერდისას {_1}%-ით განსხვავდება
+@msg `Custom` stands for changed settings: save the preset under another name `Custom` შეცვლილ პარამეტრებს ნიშნავს: შეინახეთ პრესეტი სხვა სახელით
@msg `to` must be "corner" or "smooth" `to` უნდა იყოს "corner" ან "smooth"
@msg BMP files are RGB or grayscale: colorModel rgb or gray BMP ფაილები RGB-ა ან ნაცრისფერი: colorModel rgb ან gray
@msg Blend colors: select at least three objects with filled colours ფერების შერევა: მონიშნეთ მინიმუმ სამი ობიექტი ფერადი შევსებით
@@ -3698,8 +3735,10 @@ font-technology Variable ცვლადი
@msg `freeform.points` must be an array `freeform.points` უნდა იყოს მასივი
@msg `freeform.lines` must be an array `freeform.lines` უნდა იყოს მასივი
@msg `gradient` must be an object `gradient` უნდა იყოს ობიექტი
+@msg `groupColors` must be an array `groupColors` უნდა იყოს მასივი
@msg `library` is a library id or name (see {list}) `library` არის ბიბლიოთეკის id ან სახელი (იხ. {list})
@msg `mode` applies to freeform gradients `mode` ეხება თავისუფალი ფორმის გრადიენტებს
+@msg `preserve` must be an object `preserve` უნდა იყოს ობიექტი
@msg `sampleSize` must be 1, 3 or 5 `sampleSize` უნდა იყოს 1, 3 ან 5
@msg `stops` must be an array `stops` უნდა იყოს მასივი
@msg `svg` must be an object of SVG options (see document.formats) `svg` უნდა იყოს SVG-ის პარამეტრების ობიექტი (იხ. document.formats)
@@ -3732,6 +3771,7 @@ font-technology Variable ცვლადი
@msg `{name}` is a process colour: tints apply to global and spot colours `{name}` პროცესული ფერია: ტონირება გამოიყენება გლობალურ და სპოტ-ფერებზე
@msg `{name}` is no recovery entry name `{name}` აღდგენის ჩანაწერის სახელი არ არის
@msg `{name}` isn't a colour swatch `{name}` ფერის ნიმუში არ არის
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white პროცესული ფერი ვერ გააფერადებს გამჭვირვალობის მქონე ნაცრისფერ გამოსახულებას: გამოიყენეთ სპოტ-ფერი, შავი ან თეთრი
@msg `{path}` must be a bool or an object of bools `{path}` უნდა იყოს bool ან bool-ების ობიექტი
@msg `{s}` is not a colour (#rrggbb or a preset name) `{s}` ფერი არ არის (#rrggbb ან პრესეტის სახელი)
@msg `{tool}` isn't a Liquify tool `{tool}` გათხევადების ხელსაწყო არ არის
@@ -3776,6 +3816,10 @@ font-technology Variable ცვლადი
@msg a page tree node has no kids გვერდების ხის კვანძს შვილობილები არ აქვს
@msg a page's placement is not finite გვერდის განლაგება სასრული არ არის
@msg a preset named `{_1}` exists პრესეტი სახელით `{_1}` არსებობს
+@msg `name` is empty `name` ცარიელია
+@msg `newName` is empty `newName` ცარიელია
+@msg `{name}` is a built-in preset and can't change: save it under another name `{name}` ჩაშენებული პრესეტია და მისი შეცვლა შეუძლებელია: შეინახეთ სხვა სახელით
+@msg `{name}` is a built-in preset and stays `{name}` ჩაშენებული პრესეტია და მისი წაშლა შეუძლებელია
@msg a swatch or color group named `{n}` exists ფერის ნიმუში ან ფერების ჯგუფი სახელით `{n}` არსებობს
@msg a slice size must be a positive number of points ნაჭრის ზომა წერტილების დადებითი რიცხვი უნდა იყოს
@msg a stream runs past the end ნაკადი ბოლოს სცილდება
@@ -3858,6 +3902,7 @@ font-technology Variable ცვლადი
@msg missing `id` (see plugin.list) აკლია `id` (იხ. plugin.list)
@msg missing `name` აკლია `name`
@msg missing `tool` აკლია `tool`
+@msg missing id აკლია id
@msg missing index ინდექსი აკლია
@msg New Window isn't available yet: a document opens in one window ახალი ფანჯარა ჯერ მიუწვდომელია: დოკუმენტი ერთ ფანჯარაში იხსნება
@msg name the file მიუთითეთ ფაილის სახელი
@@ -3888,6 +3933,7 @@ font-technology Variable ცვლადი
@msg no current layer მიმდინარე შრე არ არის
@msg no data მონაცემები არ არის
@msg no dialog open დიალოგი გახსნილი არ არის
+@msg the open dialog has no Reset გახსნილ დიალოგში ღილაკი ჩამოყრა არ არის
@msg no document დოკუმენტი არ არის
@msg no document open გახსნილი დოკუმენტი არ არის
@msg no effect applied yet ეფექტი ჯერ არ გამოყენებულა
@@ -3921,6 +3967,8 @@ font-technology Variable ცვლადი
@msg no print service ბეჭდვის სერვისი არ არის
@msg no revert command დაბრუნების ბრძანება არ არის
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) შენახული PDF პრესეტი სახელით `{name}` არ არის (ჩაშენებული პრესეტები მხოლოდ წასაკითხია: მათგან ახალი შექმენით)
+@msg no saved preset named `{name}` შენახული პრესეტი სახელით `{name}` არ არის
+@msg no saved preset named `{name}` to rename გადასარქმევი შენახული პრესეტი სახელით `{name}` არ არის
@msg no saved presets შენახული პრესეტები არ არის
@msg no saved print preset named `{name}` ({DEFAULT_PRESET} is protected: start a new one from it) შენახული ბეჭდვის პრესეტი სახელით `{name}` არ არის ({DEFAULT_PRESET} დაცულია: მისგან ახალი შექმენით)
@msg no saved profiles შენახული პროფილები არ არის
@@ -3963,8 +4011,10 @@ font-technology Variable ცვლადი
@msg not an EMF or WMF file ეს არ არის EMF ან WMF ფაილი
@msg not found ვერ მოიძებნა
@msg not in pattern editing mode პატერნის რედაქტირების რეჟიმი არ არის ჩართული
+@msg finish editing the pattern first ჯერ დაასრულეთ პატერნის რედაქტირება
@msg nothing encoded არაფერია კოდირებული
@msg nothing selected არაფერია მონიშნული
+@msg nothing selected is in a group მონიშნულთაგან არაფერია ჯგუფში
@msg nothing to align გასასწორებელი არაფერია
@msg nothing to distort დასადეფორმირებელი არაფერია
@msg nothing to export: the document has no visible art (or turn on Use Artboards) ექსპორტისთვის არაფერია: დოკუმენტს ხილული ნახატი არ აქვს (ან ჩართეთ სამუშაო დაფების გამოყენება)
@@ -4078,10 +4128,14 @@ font-technology Variable ცვლადი
@msg the layer or group is locked შრე ან ჯგუფი ჩაკეტილია
@msg the guide is on a hidden or locked layer დამხმარე ხაზი დამალულ ან ჩაკეტილ შრეზეა
@msg the target layer is locked or hidden სამიზნე შრე ჩაკეტილი ან დამალულია
+@msg the object is hidden or locked ობიექტი დამალული ან ჩაკეტილია
+@msg the object is outside the isolated group ობიექტი იზოლირებული ჯგუფის გარეთაა
+@msg type objects can't be isolated ტექსტური ობიექტების იზოლირება შეუძლებელია
@msg the layer to flatten into is hidden შრე, რომელშიც უნდა გაბრტყელდეს, დამალულია
@msg the object already has an opacity mask ობიექტს უკვე აქვს გაუმჭვირვალობის ნიღაბი
@msg the object has no geometry ობიექტს გეომეტრია არ აქვს
@msg the object has no opacity mask ობიექტს გაუმჭვირვალობის ნიღაბი არ აქვს
+@msg stop editing the opacity mask first ჯერ დაასრულეთ გაუმჭვირვალობის ნიღბის რედაქტირება
@msg the object has no stroke ობიექტს კონტური არ აქვს
@msg the object is beyond the plane's horizon ობიექტი სიბრტყის ჰორიზონტს მიღმაა
@msg the object isn't in perspective ობიექტი პერსპექტივაში არ არის
@@ -4126,6 +4180,7 @@ font-technology Variable ცვლადი
@msg unknown preset `{name}` (high, medium, low or a saved one: see flattener.presets.list) უცნობი პრესეტი `{name}` (high, medium, low ან შენახული: იხ. flattener.presets.list)
@msg unknown preset `{name}` (see flattener.presets.list) უცნობი პრესეტი `{name}` (იხ. flattener.presets.list)
@msg unknown preset `{name}` (see webExport.presets.list) უცნობი პრესეტი `{name}` (იხ. webExport.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) უცნობი პრესეტი `{name}`: არც ჩაშენებულია და არც შენახული (იხ. imageTrace.presets)
@msg unknown side `{other}` (left|right|top|bottom) უცნობი მხარე `{other}` (left|right|top|bottom)
@msg unknown tool `{tool}` უცნობი ხელსაწყო `{tool}`
@msg unknown tool `{t}` უცნობი ხელსაწყო `{t}`
@@ -4265,6 +4320,9 @@ font-technology Variable ცვლადი
@msg not a PSD file PSD ფაილი არ არის
@msg the PSD file has an unknown colour mode ({m}) PSD ფაილს უცნობი ფერის რეჟიმი აქვს ({m})
@msg the PSD file's image data uses an unknown compression ({m}) PSD ფაილის გამოსახულების მონაცემები უცნობ შეკუმშვას იყენებს ({m})
+@msg the PCX file is cut short PCX ფაილი შეკვეცილია
+@msg the PCX file's header is damaged PCX ფაილის სათაური დაზიანებულია
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read {planes} სიბრტყეში {bits}-ბიტიანი პიქსელების მქონე PCX ფაილების წაკითხვა ვერ ხერხდება
@msg the PSD image is too large to read ({_1} × {_2} pixels) PSD გამოსახულება ზედმეტად დიდია წასაკითხად ({_1} × {_2} პიქსელი)
@msg zipped 32-bit PSD image data with prediction can't be read zip-ით შეკუმშული 32-ბიტიანი PSD გამოსახულების მონაცემების წაკითხვა პროგნოზირებით ვერ ხერხდება
@msg {depth}-bit PSD files in this colour mode can't be read ამ ფერის რეჟიმში {depth}-ბიტიანი PSD ფაილების წაკითხვა ვერ ხერხდება
@@ -4885,6 +4943,9 @@ imageTrace Outline კონტური
The active document changed while the screen color sampler was open აქტიური დოკუმენტი შეიცვალა, სანამ ეკრანიდან ფერის აღება ღია იყო
Keep selected მონიშნულად დატოვება
Reset Tracking and Kerning ტრეკინგისა და კერნინგის ჩამოყრა
+ Highlight Font Name შრიფტის სახელის გამოკვეთა
+ Highlight Kerning კერნინგის გამოკვეთა
+ Highlight Tracking ტრეკინგის გამოკვეთა
Legacy (version 7) ძველი (ვერსია 7)
Transparent Images: გამჭვირვალე გამოსახულებები:
Flatten გაბრტყელება
@@ -4905,6 +4966,7 @@ imageTrace Outline კონტური
@msg the file's layers weren't read from its editing data ({_1}): they come from its PDF part ფაილის შრეები რედაქტირების მონაცემებიდან ვერ წაიკითხა ({_1}): ისინი მისი PDF ნაწილიდან აიღება
@msg the Color Picker is not open ფერის ამრჩევი გახსნილი არ არის
@msg the Simplify slider is not open გამარტივების სლაიდერი გახსნილი არ არის
+@msg the Smooth slider is not open გაგლუვების სლაიდერი გახსნილი არ არის
@msg the screen color sampler is already open ეკრანიდან ფერის აღება უკვე გახსნილია
@msg this system has no screen color sampler ამ სისტემას ეკრანიდან ფერის აღების საშუალება არ აქვს
# Dimension tool and Object › Dimensions. A drafting dimension is ზომა (ზომის დასმა), like a dimension on a technical drawing.
@@ -5065,6 +5127,7 @@ imageTrace Outline კონტური
Show Original Path საწყისი ტრაექტორიის ჩვენება
Open this dialog with these settings next time შემდეგ ჯერზე ამ დიალოგის ამ პარამეტრებით გახსნა
Auto-Simplify ავტომატური გამარტივება
+ Auto-Smooth ავტომატური გაგლუვება
Texture Image ტექსტურის გამოსახულება
@msg check a layer to export მონიშნეთ საექსპორტო შრე
@msg select the art to export first ჯერ მონიშნეთ საექსპორტო ნახატი
@@ -5461,10 +5524,10 @@ axis Y Axis Y ღერძი
Match დამთხვევა
On Artboards სამუშაო დაფებზე
All Artboards ყველა სამუშაო დაფა
- Include Objects On Canvas ტილოზე არსებული ობიექტების ჩართვა
- Result(s): {count} შედეგ(ებ)ი: {count}
-@msg select one object აირჩიეთ ერთი ობიექტი
-@msg Global Edit works on paths, compound paths and symbol instances გლობალური რედაქტირება მუშაობს კონტურებზე, შედგენილ კონტურებსა და სიმბოლოს ეგზემპლარებზე
+ Include Objects On Canvas ტილოზე არსებული ობიექტების გათვალისწინება
+ Result(s): {count} შედეგი: {count}
+@msg select one object მონიშნეთ ერთი ობიექტი
+@msg Global Edit works on paths, compound paths and symbol instances გლობალური რედაქტირება მუშაობს ტრაექტორიებზე, შედგენილ ტრაექტორიებსა და სიმბოლოს ეგზემპლარებზე
@msg no similar objects found (rotated or reflected copies are not matched); change the Global Edit Options and try again მსგავსი ობიექტები ვერ მოიძებნა (შემობრუნებული ან არეკლილი ასლები არ ემთხვევა); შეცვალეთ გლობალური რედაქტირების პარამეტრები და სცადეთ ხელახლა
@msg `artboards`: all or a range such as 1, 3-5, not {v} `artboards`: all ან დიაპაზონი, მაგალითად 1, 3-5, და არა {v}
Add to Symbols სიმბოლოებში დამატება
@@ -5493,8 +5556,8 @@ axis Y Axis Y ღერძი
@msg no symbol `{n}` in `{_1}` `{_1}`-ში სიმბოლო `{n}` არ არის
@msg no symbol library `{key}` (see symbol.libraries) სიმბოლოების ბიბლიოთეკა `{key}` არ არის (იხ. symbol.libraries)
@msg the document has no symbols to save დოკუმენტში შესანახი სიმბოლოები არ არის
-@msg Trap: select two or more objects filled with solid colours ტრეპინგი: აირჩიეთ ორი ან მეტი ობიექტი, შევსებული ერთგვაროვანი ფერით
-@msg Trap: no edges of different colours meet among the selected objects ტრეპინგი: არჩეულ ობიექტებს შორის განსხვავებული ფერის კიდეები არ ეხება ერთმანეთს
+@msg Trap: select two or more objects filled with solid colours ტრეპინგი: მონიშნეთ მყარი ფერით შევსებული ორი ან მეტი ობიექტი
+@msg Trap: no edges of different colours meet among the selected objects ტრეპინგი: მონიშნულ ობიექტებს შორის განსხვავებული ფერის კიდეები ერთმანეთს არ ეხება
@msg thickness must be from 0.01 to 5000 pt thickness უნდა იყოს 0,01-დან 5000 pt-მდე
@msg heightWidth must be from 1 to 1000 % heightWidth უნდა იყოს 1-დან 1000 %-მდე
@msg tintReduction must be from 0 to 100 % tintReduction უნდა იყოს 0-დან 100 %-მდე
@@ -5535,6 +5598,84 @@ axis Y Axis Y ღერძი
@msg the document has no brushes to save დოკუმენტში შესანახი ფუნჯები არ არის
@msg no empty artboards to delete წასაშლელი ცარიელი სამუშაო დაფები არ არის
Scale Presets მასშტაბის წინასწარ დაყენებული მნიშვნელობები
-@msg a {width}×{height} screenshot's byte count overflows {width}×{height} ეკრანის სურათის ბაიტების რაოდენობა გადაივსო
-@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot ფანჯრის {what} ({points} პუნქტი × {scale} DPI) ეკრანის სურათის ზომას ვერ განსაზღვრავს
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) ჯერ გაშალეთ იერსახე (ობიექტი › იერსახის გაშლა)
+@msg a {width}×{height} screenshot's byte count overflows {width}×{height} ეკრანის ანაბეჭდის ბაიტების რაოდენობა გადაივსო
+@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot ფანჯრის {what} ({points} პუნქტი × {scale} DPI) ეკრანის ანაბეჭდის ზომას ვერ განსაზღვრავს
Live preview ცოცხალი წინასწარი ნახვა
+# Batch dialog, PDF presets, Dimension Tool Options and the built-in swatch names (swatches.rs: t_name("swatch", …)).
+ Gutter შუალედი
+ Gutter: შუალედი:
+ Play: შესრულება:
+ Override Action "Open" Commands მოქმედების „გახსნის“ ბრძანებების უგულებელყოფა
+ Override Action "Save" Commands მოქმედების „შენახვის“ ბრძანებების უგულებელყოფა
+ Override Action "Export" Commands მოქმედების „ექსპორტის“ ბრძანებების უგულებელყოფა
+ Stop on Errors შეცდომისას შეჩერება
+ ▾ Default Actions ▾ ნაგულისხმევი მოქმედებები
+ High Quality Print მაღალი ხარისხის ბეჭდვა
+ [High Quality Print] [მაღალი ხარისხის ბეჭდვა]
+ Press Quality სასტამბო ხარისხი
+ [Press Quality] [სასტამბო ხარისხი]
+ Smallest File Size ფაილის უმცირესი ზომა
+ [Smallest File Size] [ფაილის უმცირესი ზომა]
+swatch [None] [არცერთი]
+swatch [Registration] [რეგისტრაცია]
+swatch White თეთრი
+swatch Black შავი
+swatch Red წითელი
+swatch Orange Red ნარინჯისფერ-წითელი
+swatch Orange ნარინჯისფერი
+swatch Amber ქარვისფერი
+swatch Yellow ყვითელი
+swatch Yellow Green ყვითელ-მწვანე
+swatch Lime ლაიმისფერი
+swatch Green მწვანე
+swatch Emerald ზურმუხტისფერი
+swatch Teal ზღვისფერი
+swatch Aqua ფირუზისფერი
+swatch Cyan Green ცისფერ-მწვანე
+swatch Cyan ცისფერი
+swatch Azure ლაჟვარდისფერი
+swatch Blue ლურჯი
+swatch Indigo ინდიგო
+swatch Violet იისფერი
+swatch Purple მუქი იისფერი
+swatch Magenta მეწამული
+swatch Rose ვარდისფერი
+swatch Pink ღია ვარდისფერი
+swatch Brown ყავისფერი
+swatch Tan ღია ყავისფერი
+swatch Coffee ყავა
+swatch Chocolate შოკოლადისფერი
+swatch Sand ქვიშისფერი
+swatch Copper სპილენძისფერი
+swatch Rust ჟანგისფერი
+swatch Walnut კაკლისფერი
+swatch Espresso ესპრესო
+swatch White, Black თეთრი, შავი
+swatch Radial White, Black რადიალური თეთრი, შავი
+swatch Sunset მზის ჩასვლა
+swatch Ocean ოკეანე
+swatch Grays ნაცრისფრები
+swatch Brights კაშკაშა ფერები
+swatch Bright Red კაშკაშა წითელი
+swatch Bright Yellow კაშკაშა ყვითელი
+swatch Bright Green კაშკაშა მწვანე
+swatch Bright Blue კაშკაშა ლურჯი
+swatch Bright Violet კაშკაშა იისფერი
+ Units & Scale ერთეულები და მასშტაბი
+ Dimension Lines ზომის ხაზები
+ Extension Lines გამოსატანი ხაზები
+ Dimension Text ზომის ტექსტი
+ Arrow Scale: ისრის მასშტაბი:
+ Arrow Style: ისრის სტილი:
+ Extension: გამოტანა:
+ Hide Extension Lines გამოსატანი ხაზების დამალვა
+ Hide Units ერთეულების დამალვა
+ Line Type: ხაზის ტიპი:
+ Line Weight: ხაზის სისქე:
+ Position: პოზიცია:
+ Font Size: შრიფტის ზომა:
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text წერტილოვანი ტექსტი
+ Area Text არის ტექსტი
diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv
index 12617f3564..ecc57004b9 100644
--- a/crates/ui-egui/src/i18n/ko.tsv
+++ b/crates/ui-egui/src/i18n/ko.tsv
@@ -192,6 +192,7 @@ font-technology Variable 가변
Other Layers 다른 레이어
Unlock All 모두 잠금 해제
Hide 숨기기
+ Unselected Artwork 선택되지 않은 아트워크
Show All 모두 표시
Expand… 확장…
Expand Appearance 모양새 확장
@@ -224,6 +225,7 @@ font-technology Variable 가변
Offset Path… 패스 오프셋…
Reverse Path Direction 패스 방향 반전
Simplify… 단순화…
+ Smooth… 매끄럽게…
Add Anchor Points 앵커 포인트 추가
Remove Anchor Points 앵커 포인트 제거
Divide Objects Below 아래 개체 나누기
@@ -277,11 +279,18 @@ font-technology Variable 가변
Image Trace 이미지 추적
Image Tracing 이미지 추적
Tracing Presets 추적 프리셋
+ Manage Presets 프리셋 관리
+ Save as New Preset… 새 프리셋으로 저장…
+ Rename… 이름 바꾸기…
+ Rename Preset 프리셋 이름 바꾸기
+ Save Image Trace Preset 이미지 추적 프리셋 저장
+ Delete Image Trace Preset 이미지 추적 프리셋 삭제
Text Wrap 문자 감싸기
Text Wrap Options… 문자 감싸기 옵션…
Clipping Mask 클리핑 마스크
Edit Clipping Path 클리핑 패스 편집
Compound Path 컴파운드 패스
+ Compound Shape 컴파운드 모양
Artboards 아트보드
Convert to Artboards 아트보드로 변환
Rearrange All Artboards… 모든 아트보드 재정렬…
@@ -368,6 +377,9 @@ font-technology Variable 가변
Increase Font Size by Five Steps 글꼴 크기 5단계 키우기
Reset Tracking and Kerning 자간 및 커닝 재설정
Reset Horizontal Scale 가로 비율 재설정
+ Highlight Font Name 글꼴 이름 강조 표시
+ Highlight Kerning 커닝 강조 표시
+ Highlight Tracking 자간 강조 표시
Step Type 단계별 문자
Find Font… 글꼴 찾기…
Change Case 대소문자 변경
@@ -409,6 +421,11 @@ font-technology Variable 가변
Pie End Angle: 파이 끝 각도:
Pie Start Angle: 파이 시작 각도:
Stroke Color 선 색상
+ Fill Gradient 칠 그레이디언트
+ Stroke Gradient 선 그레이디언트
+ Fill Pattern 칠 패턴
+ Stroke Pattern 선 패턴
+ Patterns 패턴
Stroke Weight 선 두께
Graphic Style 그래픽 스타일
Symbol Instance 심볼 인스턴스
@@ -598,6 +615,8 @@ font-technology Variable 가변
Saved View 25 저장된 보기 25
Window 윈도우
New Window 새 창
+ Next Document 다음 문서
+ Previous Document 이전 문서
Cascade 계단식 배열
Tile 바둑판식 배열
Float in Window 창에 플로팅
@@ -899,6 +918,8 @@ font-technology Variable 가변
Anchor Point 앵커 포인트
Anchor Point Tool 앵커 포인트 도구
Anchor Points 앵커 포인트
+ "In" Control Points "들어오는" 제어점
+ "Out" Control Points "나가는" 제어점
Anchor Points, Handle, and Bounding Box Display 앵커 포인트, 핸들, 경계 상자 표시
Anchor/Path Labels 앵커/패스 레이블
Angle 각도
@@ -1442,7 +1463,6 @@ font-technology Variable 가변
Expand Layers Panel Rows 레이어 패널 행 펼치기
Expand Options 옵션 펼치기
Expand Repeat 반복 확장
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap 확장은 컴파운드 모양(모양 모드를 Alt-클릭)에 적용됩니다 — 개발 예정
Expand: 확장:
Export All… 모두 내보내기…
Export Artboard 아트보드 내보내기
@@ -2106,6 +2126,10 @@ font-technology Variable 가변
Outer Corner Tile 바깥쪽 모서리 타일
Side Tile 측면 타일
Inner Corner Tile 안쪽 모서리 타일
+ Auto-Centered 자동(가운데)
+ Auto-Between 자동(사이)
+ Auto-Sliced 자동(자르기)
+ Auto-Overlap 자동(겹치기)
Start Tile 시작 타일
End Tile 끝 타일
Fit 맞춤
@@ -2154,6 +2178,7 @@ font-technology Variable 가변
Brush Art 브러시 아트
New Calligraphic Brush 새 캘리그래피 브러시
New Character Style 새 문자 스타일
+ New Character Style… 새 문자 스타일…
New Color Group 새 색상 그룹
New Color Group… 새 색상 그룹…
New Document Presets 새 문서 사전 설정
@@ -2167,6 +2192,7 @@ font-technology Variable 가변
New Opacity Masks Are Inverted 새 불투명 마스크를 반전으로 설정
New PDF Preset 새 PDF 사전 설정
New Paragraph Style 새 단락 스타일
+ New Paragraph Style… 새 단락 스타일…
New Pattern Brush from Selection 선택 항목으로 새 패턴 브러시 만들기
New Print Preset 새 인쇄 사전 설정
New Scatter Brush from Selection 선택 항목으로 새 흩뿌리기 브러시 만들기
@@ -2757,6 +2783,7 @@ mark-style Japanese 일본식
Locked 잠김
Hidden 숨김
Filter Layers Panel Rows 레이어 패널 행 필터링
+@msg `Custom` stands for changed settings: save the preset under another name `Custom`은 변경된 설정을 나타냅니다. 프리셋을 다른 이름으로 저장하세요
@msg `{key}` must be an array of these names: {_1} `{key}`은(는) 다음 이름의 배열이어야 합니다: {_1}
Search commands and tools 명령 및 도구 검색
Search commands and tools… 명령 및 도구 검색…
@@ -2817,6 +2844,7 @@ mark-style Japanese 일본식
Shape Builder 모양 빌더
Shape Builder Regions 모양 빌더 영역
Shape Builder Tool 모양 빌더 도구
+ Shape Mode 모양 모드
Shape Modes: 모양 모드:
Shape Properties: 모양 속성:
Shaper Tool 셰이퍼 도구
@@ -2844,6 +2872,7 @@ mark-style Japanese 일본식
Show Original Path 원래 패스 표시
Open this dialog with these settings next time 다음에 이 설정으로 이 대화상자 열기
Auto-Simplify 자동 단순화
+ Auto-Smooth 자동 매끄럽게
Color Panel Options 색상 패널 옵션
Show Package 패키지 표시
Show Panel 패널 표시
@@ -2877,6 +2906,7 @@ mark-style Japanese 일본식
Simulate Paper 용지 시뮬레이션
Single Quotes: 작은따옴표:
Single-line Composer 한 줄 조판
+ Toggle Line Composer 줄 조판 방식 전환
Size Tile to Art 타일을 아트웍 크기에 맞춤
Size/Leading 크기/행간
Size: 크기:
@@ -3775,6 +3805,10 @@ theme Appearance 외관
Shaper 셰이퍼
Expand Shaper Group 셰이퍼 그룹 확장
Release Shaper Group 셰이퍼 그룹 해제
+ Remove from Shaper Group 셰이퍼 그룹에서 제거
+@msg source must be the id of a Shaper Group's original shape source는 셰이퍼 그룹의 원본 모양 ID여야 합니다
+@msg group must be the id of a Shaper Group group은 셰이퍼 그룹의 ID여야 합니다
+@msg the shape is not an editable original shape of that Shaper Group 모양이 해당 셰이퍼 그룹의 편집 가능한 원본 모양이 아닙니다
Select Shaper Face 셰이퍼 면 선택
Constrain 제한
Free Transform 자유 변형
@@ -3989,7 +4023,9 @@ theme Appearance 외관
@msg `antiAlias` must be "none", "sharp", "crisp" or "strong" `antiAlias`는 "none", "sharp", "crisp" 또는 "strong"이어야 합니다
@msg `aspect` must be a number (%) `aspect`는 숫자(%)여야 합니다
@msg `gradient` must be an object `gradient`는 개체여야 합니다
+@msg `groupColors` must be an array `groupColors`는 배열이어야 합니다
@msg `mode` applies to freeform gradients `mode`는 자유형 그레이디언트에 적용됩니다
+@msg `preserve` must be an object `preserve`는 개체여야 합니다
@msg `stops` must be an array `stops`는 배열이어야 합니다
@msg `{k}` must be [x, y] `{k}`은(는) [x, y]여야 합니다
@msg a gradient needs at least two stops 그레이디언트에는 정지점이 두 개 이상 필요합니다
@@ -4011,6 +4047,9 @@ theme Appearance 외관
@msg the layer or group is locked 레이어 또는 그룹이 잠겨 있습니다
@msg the guide is on a hidden or locked layer 안내선이 숨겨졌거나 잠긴 레이어에 있습니다
@msg the target layer is locked or hidden 대상 레이어가 잠겼거나 숨겨져 있습니다
+@msg the object is hidden or locked 개체가 숨겨졌거나 잠겨 있습니다
+@msg the object is outside the isolated group 개체가 격리된 그룹 밖에 있습니다
+@msg type objects can't be isolated 문자 개체는 격리할 수 없습니다
@msg the layer to flatten into is hidden 병합 대상 레이어가 숨겨져 있습니다
@msg there are no objects to release 해제할 개체가 없습니다
@msg no library `{id}` `{id}` 라이브러리가 없습니다
@@ -4023,6 +4062,7 @@ theme Appearance 외관
@msg select a blend or give `id` 블렌드를 선택하거나 `id`를 지정하세요
@msg select a gradient mesh 그레이디언트 메시를 선택하세요
@msg the object has no opacity mask 개체에 불투명 마스크가 없습니다
+@msg stop editing the opacity mask first 먼저 불투명 마스크 편집을 종료하세요
@msg Convert to Artboards: selection has no area 아트보드로 변환: 선택 항목에 면적이 없습니다
@msg Convert to Shape: no rectangles or ellipses selected 모양으로 변환: 선택한 사각형이나 타원이 없습니다
@msg image would be too large; lower the resolution 이미지가 너무 커집니다. 해상도를 낮추세요
@@ -4047,6 +4087,7 @@ theme Appearance 외관
@msg the object already has an opacity mask 개체에 이미 불투명 마스크가 있습니다
@msg `{name}` is a process colour: tints apply to global and spot colours `{name}`은(는) 프로세스 색상입니다. 색조는 글로벌 색상과 별색에만 적용됩니다
@msg `{name}` isn't a colour swatch `{name}`은(는) 색상 견본이 아닙니다
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white 프로세스 색상으로는 투명도가 있는 그레이스케일 이미지를 색칠할 수 없습니다. 별색, 검정 또는 흰색을 사용하십시오
@msg a document needs at least one artboard 문서에는 아트보드가 하나 이상 있어야 합니다
@msg empty path 빈 패스입니다
@msg join needs open paths 연결하려면 열린 패스가 필요합니다
@@ -4069,6 +4110,7 @@ theme Appearance 외관
@msg already editing a pattern 이미 패턴을 편집 중입니다
@msg no pattern `{name}` `{name}` 패턴이 없습니다
@msg not in pattern editing mode 패턴 편집 모드가 아닙니다
+@msg finish editing the pattern first 먼저 패턴 편집을 마치세요
@msg pattern missing 패턴이 없습니다
@msg select a repeat 반복을 선택하세요
@msg select an Intertwine group 교차 그룹을 선택하세요
@@ -4296,6 +4338,7 @@ theme Appearance 외관
@msg videoRulerPixelAspectRatio must be a number from 0.1 to 10 videoRulerPixelAspectRatio은(는) 0.1에서 10 사이의 숫자여야 합니다
@msg the Color Picker is not open 색상 피커가 열려 있지 않습니다
@msg the Simplify slider is not open 단순화 슬라이더가 열려 있지 않습니다
+@msg the Smooth slider is not open 매끄럽게 슬라이더가 열려 있지 않습니다
@msg the screen color sampler is already open 화면 색상 추출기가 이미 열려 있습니다
@msg this system has no screen color sampler 이 시스템에는 화면 색상 추출기가 없습니다
@msg Corners edits the corners of a path 모퉁이는 패스의 모퉁이를 편집합니다
@@ -4342,6 +4385,10 @@ theme Appearance 외관
@msg {_1} is an exporter (File › Export › Export As…) {_1}은(는) 내보내기 플러그인입니다(파일 › 내보내기 › 다른 이름으로 내보내기…)
@msg `documentData` is {size} bytes (limit {MAX_DOCUMENT_DATA}) `documentData`가 {size}바이트입니다(한도 {MAX_DOCUMENT_DATA})
@msg a preset named `{_1}` exists `{_1}`이라는 프리셋이 이미 있습니다
+@msg `name` is empty `name`이(가) 비어 있습니다
+@msg `newName` is empty `newName`이(가) 비어 있습니다
+@msg `{name}` is a built-in preset and can't change: save it under another name `{name}`은(는) 기본 제공 프리셋이라 변경할 수 없습니다. 다른 이름으로 저장하세요
+@msg `{name}` is a built-in preset and stays `{name}`은(는) 기본 제공 프리셋이라 삭제할 수 없습니다
@msg a swatch or color group named `{n}` exists `{n}`이라는 견본 또는 색상 그룹이 이미 있습니다
@msg no print preset named `{base}` `{base}`라는 인쇄 프리셋이 없습니다
@msg no print preset named `{name}` `{name}`이라는 인쇄 프리셋이 없습니다
@@ -4360,6 +4407,8 @@ theme Appearance 외관
@msg PDF settings are not an object PDF 설정이 개체가 아닙니다
@msg PDF security settings are not an object PDF 보안 설정이 개체가 아닙니다
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) `{name}`이라는 저장된 PDF 프리셋이 없습니다(기본 제공 프리셋은 읽기 전용이니 이를 바탕으로 새로 만드세요)
+@msg no saved preset named `{name}` `{name}`이라는 저장된 프리셋이 없습니다
+@msg no saved preset named `{name}` to rename 이름을 바꿀 `{name}`이라는 저장된 프리셋이 없습니다
@msg Saved to User Defined: {_1} 사용자 정의에 저장했습니다: {_1}
@msg choose a direction to divide in 나눌 방향을 선택하세요
@msg choice must be "merge" or "add", not `{choice}` 선택은 `{choice}`이(가) 아니라 "merge" 또는 "add"여야 합니다
@@ -4413,6 +4462,7 @@ theme Appearance 외관
@msg lang must be one of {_1} lang은 {_1} 중 하나여야 합니다
@msg missing `name` `name`이 없습니다
@msg missing `tool` `tool`이 없습니다
+@msg missing id id가 없습니다
@msg missing index index가 없습니다
@msg missing number `{key}` 숫자 `{key}`이(가) 없습니다
@msg missing integer `{key}` 정수 `{key}`이(가) 없습니다
@@ -4435,6 +4485,13 @@ theme Appearance 외관
@msg choose a folder to export to 내보낼 폴더를 선택하세요
@msg the selection has no URL (or they differ) 선택 항목에 URL이 없거나 서로 다릅니다
@msg select some type first 먼저 문자를 선택하세요
+@msg the selection has no gradient fill 선택 항목에 칠 그레이디언트가 없습니다
+@msg the selection has no gradient stroke 선택 항목에 선 그레이디언트가 없습니다
+@msg the selection has no pattern fill 선택 항목에 칠 패턴이 없습니다
+@msg the selection has no pattern stroke 선택 항목에 선 패턴이 없습니다
+@msg no gradient swatch `{name}` 그레이디언트 견본 `{name}`이(가) 없습니다
+@msg no pattern swatch `{name}` 패턴 견본 `{name}`이(가) 없습니다
+@msg the library item is damaged 라이브러리 항목이 손상되었습니다
@msg {_1} font families available 사용 가능한 글꼴 패밀리 {_1}개
@msg {_1} has no {_2} style {_1}에는 {_2} 스타일이 없습니다
@msg Copied the CSS of {rules} object(s) 개체 {rules}개의 CSS를 복사했습니다
@@ -4444,6 +4501,7 @@ theme Appearance 외관
@msg unknown highlight `{h}` 알 수 없는 강조 `{h}`
@msg unknown overprints `{o}` (preserve, simulate or discard) 알 수 없는 오버프린트 `{o}`(preserve, simulate 또는 discard)
@msg unknown preset `{name}` (see flattener.presets.list) 알 수 없는 프리셋 `{name}`(flattener.presets.list 참조)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) 알 수 없는 프리셋 `{name}`: 기본 제공 프리셋도 저장된 프리셋도 아닙니다(imageTrace.presets 참조)
@msg Select text or click into text with the Type tool to insert glyphs 글리프를 삽입하려면 텍스트를 선택하거나 문자 도구로 텍스트 안을 클릭하세요
@msg `library` is a library id or name (see {list}) `library`는 라이브러리 id 또는 이름입니다({list} 참조)
@msg no library `{key}` (see {list}) 라이브러리 `{key}`이(가) 없습니다({list} 참조)
@@ -4476,6 +4534,7 @@ theme Appearance 외관
@msg can't parse shortcut `{c}` 단축키 `{c}`을(를) 해석할 수 없습니다
@msg can't parse shortcut `{s}` for `{k}` `{k}`의 단축키 `{s}`을(를) 해석할 수 없습니다
@msg no dialog open 열린 대화상자가 없습니다
+@msg the open dialog has no Reset 열린 대화상자에 재설정 단추가 없습니다
@msg no file reader 파일 판독기가 없습니다
@msg no file writer 파일 기록기가 없습니다
@msg not a VectorCraft shortcut set (missing `overrides`) VectorCraft 단축키 세트가 아닙니다(`overrides`가 없음)
@@ -4491,6 +4550,7 @@ theme Appearance 외관
@msg Couldn't copy to the system clipboard: {e} 시스템 클립보드로 복사할 수 없습니다: {e}
@msg Couldn't paste from the clipboard: {e} 클립보드에서 붙여넣을 수 없습니다: {e}
@msg nothing selected 선택된 항목이 없습니다
+@msg nothing selected is in a group 선택한 항목 중 그룹에 속한 항목이 없습니다
@msg the {tool} tool has no options {tool} 도구에는 옵션이 없습니다
@msg unknown tool `{tool}` 알 수 없는 도구 `{tool}`
@msg {tool} isn't in a toolbar group of several tools {tool}은(는) 여러 도구가 있는 도구 모음 그룹에 속하지 않습니다
@@ -4550,6 +4610,9 @@ theme Appearance 외관
@msg not a PSD file PSD 파일이 아닙니다
@msg the PSD file has an unknown colour mode ({m}) PSD 파일의 색상 모드({m})를 알 수 없습니다
@msg the PSD file's image data uses an unknown compression ({m}) PSD 파일의 이미지 데이터가 알 수 없는 압축({m})을 사용합니다
+@msg the PCX file is cut short PCX 파일이 잘려 있습니다
+@msg the PCX file's header is damaged PCX 파일의 헤더가 손상되었습니다
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read {planes}개 평면에 {bits}비트 픽셀이 있는 PCX 파일은 읽을 수 없습니다
@msg the PSD image is too large to read ({_1} × {_2} pixels) PSD 이미지가 너무 커서 읽을 수 없습니다({_1} × {_2}픽셀)
@msg zipped 32-bit PSD image data with prediction can't be read 예측이 적용된 ZIP 압축 32비트 PSD 이미지 데이터는 읽을 수 없습니다
@msg {depth}-bit PSD files in this colour mode can't be read 이 색상 모드의 {depth}비트 PSD 파일은 읽을 수 없습니다
@@ -5200,4 +5263,9 @@ axis Y Axis Y축
Scale Presets 크기 조절 사전 설정
@msg a {width}×{height} screenshot's byte count overflows {width}×{height} 스크린샷의 바이트 수가 넘칩니다
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot 창의 {what}({points}포인트 × {scale} DPI)로는 스크린샷 크기를 정할 수 없습니다
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) 먼저 모양새를 확장하세요 (개체 › 모양새 확장)
Live preview 실시간 미리 보기
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text 포인트 문자
+ Area Text 영역 문자
diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsv
index e08c6b8051..781c436c7f 100644
--- a/crates/ui-egui/src/i18n/nl.tsv
+++ b/crates/ui-egui/src/i18n/nl.tsv
@@ -190,6 +190,7 @@
Other Layers Andere lagen
Unlock All Alles ontgrendelen
Hide Verbergen
+ Unselected Artwork Niet-geselecteerde artwork
Show All Alles tonen
Expand… Uitbreiden…
Expand Appearance Uiterlijk uitbreiden
@@ -222,6 +223,7 @@
Offset Path… Pad verschuiven…
Reverse Path Direction Padrichting omkeren
Simplify… Vereenvoudigen…
+ Smooth… Gladmaken…
Add Anchor Points Ankerpunten toevoegen
Remove Anchor Points Ankerpunten verwijderen
Divide Objects Below Objecten eronder verdelen
@@ -271,6 +273,7 @@
Clipping Mask Knipmasker
Edit Clipping Path Knippad bewerken
Compound Path Samengesteld pad
+ Compound Shape Samengestelde vorm
Artboards Tekengebieden
Convert to Artboards Converteren naar tekengebieden
Rearrange All Artboards… Alle tekengebieden herschikken…
@@ -388,6 +391,11 @@
Fill Color Vulkleur
Opacity Dekking
Stroke Color Contourkleur
+ Fill Gradient Vulverloop
+ Stroke Gradient Contourverloop
+ Fill Pattern Vulpatroon
+ Stroke Pattern Contourpatroon
+ Patterns Patronen
Stroke Weight Contourdikte
Graphic Style Grafische stijl
Symbol Instance Symboolinstantie
@@ -585,6 +593,8 @@
Saved View 25 Opgeslagen weergave 25
Window Venster
New Window Nieuw venster
+ Next Document Volgend document
+ Previous Document Vorig document
Cascade Trapsgewijs schikken
Tile Naast elkaar schikken
Float in Window In venster zweven
@@ -770,6 +780,7 @@
Shaper Shaper
Expand Shaper Group Shapergroep uitbreiden
Release Shaper Group Shapergroep vrijgeven
+ Remove from Shaper Group Verwijderen uit shapergroep
Select Shaper Face Shapervlak selecteren
Constrain Beperken
Free Transform Vrij transformeren
@@ -1508,6 +1519,12 @@ lighting Light Licht
Document Library Documentbibliotheek
Library: Bibliotheek:
Tracing Presets Traceervoorinstellingen
+ Manage Presets Voorinstellingen beheren
+ Save as New Preset… Opslaan als nieuwe voorinstelling…
+ Rename… Hernoemen…
+ Rename Preset Voorinstelling hernoemen
+ Save Image Trace Preset Voorinstelling voor afbeeldingtracering opslaan
+ Delete Image Trace Preset Voorinstelling voor afbeeldingtracering verwijderen
Method: Methode:
Mode: Modus:
Noise Ruis
@@ -1635,13 +1652,13 @@ lighting Light Licht
Roman Hanging Punctuation Romeinse hangende leestekens
Select a text object to edit its paragraph attributes. Selecteer een tekstobject om de alineakenmerken ervan te bewerken.
Single-line Composer Compositie per regel
+ Toggle Line Composer Compositiemethode wisselen
Space After Paragraph Ruimte na alinea
Space Before Paragraph Ruimte voor alinea
Top-to-Top Leading Regelafstand van boven naar boven
Bottom-to-Bottom Leading Regelafstand van onder naar onder
Burasagari Burasagari
Force Forceren
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap Uitvouwen is van toepassing op samengestelde vormen (Alt-klik op een vormmodus) — staat op de roadmap
Expand Compound Shape Samengestelde vorm uitvouwen
Make Compound Shape Samengestelde vorm maken
Pathfinder Options… Pathfinder-opties…
@@ -1901,6 +1918,10 @@ lighting Light Licht
Outer Corner Tile Tegel voor buitenhoek
Side Tile Zijtegel
Inner Corner Tile Tegel voor binnenhoek
+ Auto-Centered Auto-gecentreerd
+ Auto-Between Auto-tussen
+ Auto-Sliced Auto-verstek
+ Auto-Overlap Auto-overlap
Start Tile Begintegel
End Tile Eindtegel
Fit Passen
@@ -2159,6 +2180,8 @@ lighting Light Licht
Locate Selected Objects Geselecteerde objecten lokaliseren
Thumbnails: Miniaturen:
Anchor Points Ankerpunten
+ "In" Control Points "In"-controlepunten
+ "Out" Control Points "Uit"-controlepunten
Brush Affects: Penseel beïnvloedt:
Complexity: Complexiteit:
Detail: Detail:
@@ -3720,6 +3743,7 @@ font-technology Variable Variabel
Default Fill and Stroke (D) Standaard vulling en lijn (D)
Fill (X), double-click for the Color Picker Vulling (X), dubbelklik voor de kleurenkiezer
Opacity: Dekking:
+ Shape Mode Vormmodus
Shape Modes: Vormmodi:
Stroke (X), double-click for the Color Picker Lijn (X), dubbelklik voor de kleurenkiezer
Stroke: Lijn:
@@ -3768,7 +3792,9 @@ font-technology Variable Variabel
Mojikumi Mojikumi
N pt per N pt per
New Character Style Nieuwe tekenstijl
+ New Character Style… Nieuwe tekenstijl…
New Paragraph Style Nieuwe alineastijl
+ New Paragraph Style… Nieuwe alineastijl…
Paragraph Style Options Alineastijlopties
Redefine Character Style Tekenstijl opnieuw definiëren
Redefine Paragraph Style Alineastijl opnieuw definiëren
@@ -4105,6 +4131,7 @@ imageTrace Outline Contour
@msg missing `id` (see plugin.list) `id` ontbreekt (zie plugin.list)
@msg missing `name` `name` ontbreekt
@msg missing `tool` `tool` ontbreekt
+@msg missing id id ontbreekt
@msg missing index index ontbreekt
@msg New Window isn't available yet: a document opens in one window Nieuw venster is nog niet beschikbaar: een document opent in één venster
@msg name the file geef het bestand een naam
@@ -4134,6 +4161,7 @@ imageTrace Outline Contour
@msg no current layer geen huidige laag
@msg no data geen gegevens
@msg no dialog open geen dialoogvenster geopend
+@msg the open dialog has no Reset het geopende dialoogvenster heeft geen knop Opnieuw instellen
@msg no document geen document
@msg no document open geen document geopend
@msg no effect applied yet nog geen effect toegepast
@@ -4207,8 +4235,10 @@ imageTrace Outline Contour
@msg not an EMF or WMF file geen EMF- of WMF-bestand
@msg not found niet gevonden
@msg not in pattern editing mode niet in patroonbewerkingsmodus
+@msg finish editing the pattern first rond eerst het bewerken van het patroon af
@msg nothing encoded niets gecodeerd
@msg nothing selected niets geselecteerd
+@msg nothing selected is in a group niets van de selectie zit in een groep
@msg nothing to align niets om uit te lijnen
@msg nothing to distort niets om te vervormen
@msg nothing to export: the document has no visible art (or turn on Use Artboards) niets om te exporteren: het document heeft geen zichtbare illustratie (of schakel Tekengebieden gebruiken in)
@@ -4325,10 +4355,14 @@ imageTrace Outline Contour
@msg the layer or group is locked de laag of groep is vergrendeld
@msg the guide is on a hidden or locked layer de hulplijn staat op een verborgen of vergrendelde laag
@msg the target layer is locked or hidden de doellaag is vergrendeld of verborgen
+@msg the object is hidden or locked het object is verborgen of vergrendeld
+@msg the object is outside the isolated group het object ligt buiten de geïsoleerde groep
+@msg type objects can't be isolated tekstobjecten kunnen niet worden geïsoleerd
@msg the layer to flatten into is hidden de laag om in af te vlakken is verborgen
@msg the object already has an opacity mask het object heeft al een dekkingmasker
@msg the object has no geometry het object heeft geen geometrie
@msg the object has no opacity mask het object heeft geen dekkingmasker
+@msg stop editing the opacity mask first stop eerst met het bewerken van het dekkingmasker
@msg the object has no stroke het object heeft geen lijn
@msg the object is beyond the plane's horizon het object ligt voorbij de horizon van het vlak
@msg the object isn't in perspective het object is niet in perspectief
@@ -5052,6 +5086,9 @@ mark-style Japanese Japans
Panels Except Tools and Control Alle panelen behalve Gereedschap en Bediening
Reset Tracking and Kerning Tracking en kerning herstellen
Reset Horizontal Scale Horizontale schaal herstellen
+ Highlight Font Name Lettertypenaam markeren
+ Highlight Kerning Kerning markeren
+ Highlight Tracking Tracking markeren
@msg span must be "object" or "selection", got {v} span moet "object" of "selection" zijn, maar is {v}
@msg span: "selection" places a `gradient`, not a swatch span: "selection" plaatst een `gradient`, geen staal
@msg span: "selection" places a gradient: give `gradient` span: "selection" plaatst een verloop: geef `gradient`
@@ -5201,6 +5238,7 @@ swatch Bright Violet Felviolet
Show Original Path Oorspronkelijk pad tonen
Open this dialog with these settings next time Dit dialoogvenster de volgende keer met deze instellingen openen
Auto-Simplify Automatisch vereenvoudigen
+ Auto-Smooth Automatisch gladmaken
@msg check a layer to export vink een laag aan om te exporteren
@msg select the art to export first selecteer eerst de illustratie die je wilt exporteren
@msg no saved selection recalled geen opgeslagen selectie opgeroepen
@@ -5594,4 +5632,9 @@ axis Y Axis Y-as
Save Brush Library… Penseelbibliotheek opslaan…
@msg no empty artboards to delete geen lege tekengebieden om te verwijderen
Scale Presets Schaalvoorinstellingen
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Breid eerst het uiterlijk uit (Object › Uiterlijk uitbreiden)
Live preview Live voorbeeld
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Punttekst
+ Area Text Vlaktekst
diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv
index 2f6a5cd600..29ee8432bd 100644
--- a/crates/ui-egui/src/i18n/pl.tsv
+++ b/crates/ui-egui/src/i18n/pl.tsv
@@ -156,6 +156,7 @@
Other Layers Pozostałe warstwy
Unlock All Odblokuj wszystko
Hide Ukryj
+ Unselected Artwork Niezaznaczoną kompozycję
Show All Pokaż wszystko
Expand… Rozszerz…
Expand Appearance Rozszerz wygląd
@@ -189,6 +190,7 @@
Offset Path… Odsuń ścieżkę…
Reverse Path Direction Odwróć kierunek ścieżki
Simplify… Uprość…
+ Smooth… Wygładź…
Add Anchor Points Dodaj punkty kontrolne
Remove Anchor Points Usuń punkty kontrolne
Divide Objects Below Podziel obiekty poniżej
@@ -246,6 +248,7 @@
Clipping Mask Maska przycinająca
Edit Clipping Path Edytuj ścieżkę przycinającą
Compound Path Ścieżka złożona
+ Compound Shape Kształt złożony
Artboards Obszary kompozycji
Convert to Artboards Konwertuj na obszary kompozycji
Rearrange All Artboards… Przestaw wszystkie obszary kompozycji…
@@ -372,6 +375,11 @@
Fill Color Kolor wypełnienia
Opacity Krycie
Stroke Color Kolor obrysu
+ Fill Gradient Gradient wypełnienia
+ Stroke Gradient Gradient obrysu
+ Fill Pattern Wzorek wypełnienia
+ Stroke Pattern Wzorek obrysu
+ Patterns Wzorki
Stroke Weight Grubość obrysu
Graphic Style Styl graficzny
Symbol Instance Wystąpienie symbolu
@@ -576,6 +584,8 @@
Saved View 25 Zapisany widok 25
Window Okno
New Window Nowe okno
+ Next Document Następny dokument
+ Previous Document Poprzedni dokument
Cascade Kaskadowo
Tile Sąsiadująco
Float in Window Pływające w oknie
@@ -765,6 +775,10 @@
Shaper Kształtowanie
Expand Shaper Group Rozszerz grupę kształtowania
Release Shaper Group Uwolnij grupę kształtowania
+ Remove from Shaper Group Usuń z grupy kształtowania
+@msg source must be the id of a Shaper Group's original shape source musi być identyfikatorem oryginalnego kształtu grupy kształtowania
+@msg group must be the id of a Shaper Group group musi być identyfikatorem grupy kształtowania
+@msg the shape is not an editable original shape of that Shaper Group kształt nie jest edytowalnym oryginalnym kształtem tej grupy kształtowania
Select Shaper Face Zaznacz ścianę kształtowania
Constrain Ogranicz
Free Transform Swobodne przekształcanie
@@ -1573,6 +1587,12 @@ lighting Light Światło
Document Library Biblioteka dokumentu
Library: Biblioteka:
Tracing Presets Ustawienia obrysu
+ Manage Presets Zarządzaj ustawieniami
+ Save as New Preset… Zapisz jako nowe ustawienie…
+ Rename… Zmień nazwę…
+ Rename Preset Zmień nazwę ustawienia
+ Save Image Trace Preset Zapisz ustawienie obrysu obrazu
+ Delete Image Trace Preset Usuń ustawienie obrysu obrazu
Method: Metoda:
Mode: Tryb:
Noise Szum
@@ -1604,6 +1624,7 @@ lighting Light Światło
Locked Zablokowane
Hidden Ukryte
Filter Layers Panel Rows Filtruj wiersze panelu Warstwy
+@msg `Custom` stands for changed settings: save the preset under another name `Custom` oznacza zmienione ustawienia: zapisz ustawienie pod inną nazwą
@msg `{key}` must be an array of these names: {_1} `{key}` musi być tablicą tych nazw: {_1}
Graphics Grafiki
Local Libraries Biblioteki lokalne
@@ -1675,6 +1696,7 @@ lighting Light Światło
Show Original Path Pokaż oryginalną ścieżkę
Open this dialog with these settings next time Następnym razem otwórz to okno dialogowe z tymi ustawieniami
Auto-Simplify Uprość automatycznie
+ Auto-Smooth Wygładź automatycznie
Transparency Options Opcje przezroczystości
Color Mixer (Shift-click the chip) Mikser kolorów (kliknij próbkę z Shift)
Fill: click for swatches, Shift-click for the color mixer Wypełnienie: kliknij, aby wybrać próbkę, z Shift — mikser kolorów
@@ -1724,13 +1746,13 @@ lighting Light Światło
Roman Hanging Punctuation Wysunięta interpunkcja łacińska
Select a text object to edit its paragraph attributes. Zaznacz obiekt tekstowy, aby edytować atrybuty akapitu.
Single-line Composer Kompozytor jednowierszowy
+ Toggle Line Composer Przełącz kompozytor wierszy
Space After Paragraph Odstęp po akapicie
Space Before Paragraph Odstęp przed akapitem
Top-to-Top Leading Interlinia od góry do góry
Bottom-to-Bottom Leading Interlinia od dołu do dołu
Burasagari Burasagari
Force Wymuś
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap Rozszerzanie dotyczy kształtów złożonych (kliknij tryb kształtu z Alt) — w planach
Expand Compound Shape Rozszerz kształt złożony
Make Compound Shape Utwórz kształt złożony
Pathfinder Options… Opcje odnajdywania ścieżek…
@@ -1990,6 +2012,10 @@ lighting Light Światło
Outer Corner Tile Kafelek narożnika zewnętrznego
Side Tile Kafelek boczny
Inner Corner Tile Kafelek narożnika wewnętrznego
+ Auto-Centered Auto-wyśrodkowany
+ Auto-Between Auto-pomiędzy
+ Auto-Sliced Auto-cięty
+ Auto-Overlap Auto-nakładanie
Start Tile Kafelek początkowy
End Tile Kafelek końcowy
Fit Dopasowanie
@@ -2262,6 +2288,8 @@ lighting Light Światło
Locate Selected Objects Znajdź zaznaczone obiekty
Thumbnails: Miniatury:
Anchor Points Punkty kontrolne
+ "In" Control Points Punkty sterujące „wejściowe”
+ "Out" Control Points Punkty sterujące „wyjściowe”
Brush Affects: Pędzel wpływa na:
Complexity: Złożoność:
Detail: Szczegółowość:
@@ -3604,6 +3632,9 @@ axis Both Obie
Increase Font Size by Five Steps Zwiększ rozmiar czcionki o pięć kroków
Reset Tracking and Kerning Resetuj światło i kerning
Reset Horizontal Scale Resetuj skalę poziomą
+ Highlight Font Name Wyróżnij nazwę czcionki
+ Highlight Kerning Wyróżnij kerning
+ Highlight Tracking Wyróżnij światło
Step Type Krok tekstu
Get Text Range Pobierz zakres tekstu
Punctuation Interpunkcja
@@ -3804,6 +3835,7 @@ font-technology Variable Zmienne
Default Fill and Stroke (D) Domyślne wypełnienie i obrys (D)
Fill (X), double-click for the Color Picker Wypełnienie (X), kliknij dwukrotnie, aby otworzyć próbnik kolorów
Opacity: Krycie:
+ Shape Mode Tryb kształtu
Shape Modes: Tryby kształtu:
Stroke (X), double-click for the Color Picker Obrys (X), kliknij dwukrotnie, aby otworzyć próbnik kolorów
Stroke: Obrys:
@@ -3852,7 +3884,9 @@ font-technology Variable Zmienne
Mojikumi Mojikumi
N pt per N pt na
New Character Style Nowy styl znakowy
+ New Character Style… Nowy styl znakowy…
New Paragraph Style Nowy styl akapitowy
+ New Paragraph Style… Nowy styl akapitowy…
Paragraph Style Options Opcje stylu akapitowego
Redefine Character Style Zdefiniuj ponownie styl znakowy
Redefine Paragraph Style Zdefiniuj ponownie styl akapitowy
@@ -3927,6 +3961,13 @@ imageTrace Outline Kontur
@plural {n} stroke|{n} strokes {n} obrys|{n} obrysy|{n} obrysów
@msg no library `{id}` brak biblioteki `{id}`
@msg select some type first najpierw zaznacz tekst
+@msg the selection has no gradient fill zaznaczenie nie ma gradientu wypełnienia
+@msg the selection has no gradient stroke zaznaczenie nie ma gradientu obrysu
+@msg the selection has no pattern fill zaznaczenie nie ma wzorka wypełnienia
+@msg the selection has no pattern stroke zaznaczenie nie ma wzorka obrysu
+@msg no gradient swatch `{name}` brak próbki gradientu `{name}`
+@msg no pattern swatch `{name}` brak próbki wzorka `{name}`
+@msg the library item is damaged element biblioteki jest uszkodzony
@msg {_1} has no {_2} style {_1} nie ma stylu {_2}
@msg a layer couldn't be read nie udało się odczytać warstwy
@msg it has more than one artboard ma więcej niż jeden obszar kompozycji
@@ -4032,8 +4073,10 @@ imageTrace Outline Kontur
@msg `freeform.points` must be an array `freeform.points` musi być tablicą
@msg `freeform.lines` must be an array `freeform.lines` musi być tablicą
@msg `gradient` must be an object `gradient` musi być obiektem
+@msg `groupColors` must be an array `groupColors` musi być tablicą
@msg `library` is a library id or name (see {list}) `library` to identyfikator lub nazwa biblioteki (patrz {list})
@msg `mode` applies to freeform gradients `mode` dotyczy gradientów dowolnych
+@msg `preserve` must be an object `preserve` musi być obiektem
@msg `sampleSize` must be 1, 3 or 5 `sampleSize` musi wynosić 1, 3 lub 5
@msg `stops` must be an array `stops` musi być tablicą
@msg `svg` must be an object of SVG options (see document.formats) `svg` musi być obiektem opcji SVG (patrz document.formats)
@@ -4068,6 +4111,7 @@ imageTrace Outline Kontur
@msg `{name}` is a process colour: tints apply to global and spot colours `{name}` to kolor triadowy: tinty dotyczą kolorów globalnych i dodatkowych
@msg `{name}` is no recovery entry name `{name}` nie jest nazwą wpisu odzyskiwania
@msg `{name}` isn't a colour swatch `{name}` nie jest próbką koloru
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white kolor triadowy nie może zabarwić obrazu w skali szarości z przezroczystością: użyj koloru dodatkowego, czarnego lub białego
@msg `{path}` must be a bool or an object of bools `{path}` musi być wartością logiczną lub obiektem wartości logicznych
@msg `{s}` is not a colour (#rrggbb or a preset name) `{s}` nie jest kolorem (#rrggbb lub nazwa ustawienia)
@msg `{tool}` isn't a Liquify tool `{tool}` nie jest narzędziem upłynniania
@@ -4113,6 +4157,10 @@ imageTrace Outline Kontur
@msg a page tree node has no kids węzeł drzewa stron nie ma elementów potomnych
@msg a page's placement is not finite położenie strony nie jest skończone
@msg a preset named `{_1}` exists ustawienie o nazwie `{_1}` już istnieje
+@msg `name` is empty `name` jest puste
+@msg `newName` is empty `newName` jest puste
+@msg `{name}` is a built-in preset and can't change: save it under another name `{name}` to wbudowane ustawienie i nie można go zmienić: zapisz je pod inną nazwą
+@msg `{name}` is a built-in preset and stays `{name}` to wbudowane ustawienie i nie można go usunąć
@msg a swatch or color group named `{n}` exists próbka lub grupa kolorów o nazwie `{n}` już istnieje
@msg a slice size must be a positive number of points rozmiar plasterka musi być dodatnią liczbą punktów
@msg a spine keeps at least two points grzbiet musi mieć co najmniej dwa punkty
@@ -4132,6 +4180,7 @@ imageTrace Outline Kontur
@msg videoRulerPixelAspectRatio must be a number from 0.1 to 10 videoRulerPixelAspectRatio musi być liczbą od 0,1 do 10
@msg the Color Picker is not open Próbnik kolorów nie jest otwarty
@msg the Simplify slider is not open Suwak Uprość nie jest otwarty
+@msg the Smooth slider is not open Suwak Wygładź nie jest otwarty
@msg the screen color sampler is already open narzędzie do pobierania koloru z ekranu jest już otwarte
@msg this system has no screen color sampler ten system nie ma narzędzia do pobierania koloru z ekranu
@msg bad colour `{hex}` (#rrggbb) nieprawidłowy kolor `{hex}` (#rrggbb)
@@ -4204,6 +4253,7 @@ imageTrace Outline Kontur
@msg missing `id` (see plugin.list) brak `id` (patrz plugin.list)
@msg missing `name` brak `name`
@msg missing `tool` brak `tool`
+@msg missing id brak id
@msg missing index brak indeksu
@msg missing number `{key}` brak liczby `{key}`
@msg missing integer `{key}` brak liczby całkowitej `{key}`
@@ -4236,6 +4286,7 @@ imageTrace Outline Kontur
@msg no current layer brak bieżącej warstwy
@msg no data brak danych
@msg no dialog open brak otwartego okna dialogowego
+@msg the open dialog has no Reset otwarte okno dialogowe nie ma przycisku Resetuj
@msg no document brak dokumentu
@msg no document open brak otwartego dokumentu
@msg no effect applied yet nie zastosowano jeszcze żadnego efektu
@@ -4269,6 +4320,8 @@ imageTrace Outline Kontur
@msg no print service brak usługi drukowania
@msg no revert command brak polecenia przywracania
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) brak zapisanego ustawienia PDF o nazwie `{name}` (wbudowane ustawienia są tylko do odczytu: utwórz na ich podstawie nowe)
+@msg no saved preset named `{name}` brak zapisanego ustawienia o nazwie `{name}`
+@msg no saved preset named `{name}` to rename brak zapisanego ustawienia o nazwie `{name}` do zmiany nazwy
@msg no saved presets brak zapisanych ustawień
@msg no saved print preset named `{name}` ({DEFAULT_PRESET} is protected: start a new one from it) brak zapisanego ustawienia drukowania o nazwie `{name}` ({DEFAULT_PRESET} jest chronione: utwórz na jego podstawie nowe)
@msg no saved profiles brak zapisanych profili
@@ -4317,8 +4370,10 @@ imageTrace Outline Kontur
@msg not an EMF or WMF file to nie jest plik EMF ani WMF
@msg not found nie znaleziono
@msg not in pattern editing mode nie jest w trybie edycji wzorka
+@msg finish editing the pattern first najpierw zakończ edycję wzorka
@msg nothing encoded nic nie zakodowano
@msg nothing selected nic nie zaznaczono
+@msg nothing selected is in a group nic z zaznaczenia nie należy do grupy
@msg nothing to align nie ma czego wyrównać
@msg nothing to distort nie ma czego zniekształcić
@msg nothing to export: the document has no visible art (or turn on Use Artboards) nie ma czego eksportować: dokument nie ma widocznej kompozycji (lub włącz Użyj obszarów kompozycji)
@@ -4446,10 +4501,14 @@ imageTrace Outline Kontur
@msg the layer or group is locked warstwa lub grupa jest zablokowana
@msg the guide is on a hidden or locked layer linia pomocnicza jest na ukrytej lub zablokowanej warstwie
@msg the target layer is locked or hidden warstwa docelowa jest zablokowana lub ukryta
+@msg the object is hidden or locked obiekt jest ukryty lub zablokowany
+@msg the object is outside the isolated group obiekt znajduje się poza izolowaną grupą
+@msg type objects can't be isolated obiektów tekstowych nie można izolować
@msg the layer to flatten into is hidden warstwa, na którą ma nastąpić spłaszczenie, jest ukryta
@msg the object already has an opacity mask obiekt ma już maskę krycia
@msg the object has no geometry obiekt nie ma geometrii
@msg the object has no opacity mask obiekt nie ma maski krycia
+@msg stop editing the opacity mask first najpierw zakończ edycję maski krycia
@msg the object has no stroke obiekt nie ma obrysu
@msg the object is beyond the plane's horizon obiekt jest za horyzontem płaszczyzny
@msg the object isn't in perspective obiekt nie jest w perspektywie
@@ -4495,6 +4554,7 @@ imageTrace Outline Kontur
@msg unknown preset `{name}` (high, medium, low or a saved one: see flattener.presets.list) nieznane ustawienie `{name}` (high, medium, low lub zapisane: patrz flattener.presets.list)
@msg unknown preset `{name}` (see flattener.presets.list) nieznane ustawienie `{name}` (patrz flattener.presets.list)
@msg unknown preset `{name}` (see webExport.presets.list) nieznane ustawienie `{name}` (patrz webExport.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) nieznane ustawienie `{name}`: ani wbudowane, ani zapisane (patrz imageTrace.presets)
@msg unknown side `{other}` (left|right|top|bottom) nieznana strona `{other}` (left|right|top|bottom)
@msg unknown tool `{tool}` nieznane narzędzie `{tool}`
@msg unknown tool `{t}` nieznane narzędzie `{t}`
@@ -4646,6 +4706,9 @@ imageTrace Outline Kontur
@msg not a PSD file to nie jest plik PSD
@msg the PSD file has an unknown colour mode ({m}) plik PSD ma nieznany tryb koloru ({m})
@msg the PSD file's image data uses an unknown compression ({m}) dane obrazu pliku PSD używają nieznanej kompresji ({m})
+@msg the PCX file is cut short plik PCX jest ucięty
+@msg the PCX file's header is damaged nagłówek pliku PCX jest uszkodzony
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read nie można odczytać plików PCX z {bits}-bitowymi pikselami w {planes} płaszczyznach
@msg the PSD image is too large to read ({_1} × {_2} pixels) obraz PSD jest zbyt duży, aby go odczytać ({_1} × {_2} pikseli)
@msg zipped 32-bit PSD image data with prediction can't be read nie można odczytać spakowanych 32-bitowych danych obrazu PSD z predykcją
@msg {depth}-bit PSD files in this colour mode can't be read nie można odczytać {depth}-bitowych plików PSD w tym trybie koloru
@@ -5475,4 +5538,9 @@ axis Y Axis Oś Y
Scale Presets Ustawienia wstępne skali
@msg a {width}×{height} screenshot's byte count overflows liczba bajtów zrzutu ekranu {width}×{height} przekracza limit
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot {what} okna ({points} punktów × {scale} DPI) nie pozwala ustalić rozmiaru zrzutu ekranu
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Najpierw rozszerz wygląd (Obiekt › Rozszerz wygląd)
Live preview Podgląd na żywo
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Tekst punktowy
+ Area Text Tekst akapitowy
diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv
index cc0429387a..4fc8a599b4 100644
--- a/crates/ui-egui/src/i18n/pt-br.tsv
+++ b/crates/ui-egui/src/i18n/pt-br.tsv
@@ -181,6 +181,8 @@
Anchor Point Ponto de Ancoragem
Anchor Point Tool Ferramenta Ponto de Ancoragem
Anchor Points Pontos de Ancoragem
+ "In" Control Points Pontos de controle "de entrada"
+ "Out" Control Points Pontos de controle "de saída"
Anchor Points, Handle, and Bounding Box Display Exibição de Pontos de Ancoragem, Alça e Caixa Delimitadora
Anchor/Path Labels Rótulos de Ponto/Ancoragem
Angle Ângulo
@@ -516,6 +518,7 @@
Complexity: Complexidade:
Composite colours are converted to it; separations separate with it when it is a CMYK profile. As cores compostas são convertidas para ele; as separações separam com ele quando é um perfil CMYK.
Compound Path Caminho Composto
+ Compound Shape Forma Composta
Compress (RLE) Comprimir (RLE)
Compress text and line art Comprimir texto e arte de linha
Compression: Compressão:
@@ -886,7 +889,6 @@
Expand Panels Expandir Painéis
Expand Repeat Expandir Repetição
Expand Shape Expandir Forma
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap Expandir se aplica a formas compostas (Alt-clique em um modo de forma) — no roadmap
Expand: Expandir:
Expand… Expandir…
Export Exportar
@@ -1024,6 +1026,9 @@
Increase Font Size by Five Steps Aumentar Tamanho da Fonte em Cinco Incrementos
Reset Tracking and Kerning Redefinir Rastreamento e Kerning
Reset Horizontal Scale Redefinir Escala Horizontal
+ Highlight Font Name Destacar Nome da Fonte
+ Highlight Kerning Destacar Kerning
+ Highlight Tracking Destacar Rastreamento
Step Type Ajustar Texto em Incrementos
Fit dashes to corners and ends Ajustar tracejados aos cantos e extremidades
Fit in Window Ajustar na Janela
@@ -1631,6 +1636,7 @@
Brush Art Arte do Pincel
New Calligraphic Brush Novo Pincel Caligráfico
New Character Style Novo Estilo de Caractere
+ New Character Style… Novo Estilo de Caractere…
New Color Group Novo Grupo de Cores
New Color Group… Novo Grupo de Cores…
New Document Presets Novos Predefinidos de Documento
@@ -1642,6 +1648,7 @@
New Opacity Masks Are Inverted Novas Máscaras de Opacidade São Invertidas
New PDF Preset Novo Predefinido de PDF
New Paragraph Style Novo Estilo de Parágrafo
+ New Paragraph Style… Novo Estilo de Parágrafo…
New Pattern Brush from Selection Novo Pincel de Padrão a partir da Seleção
New Print Preset Novo Predefinido de Impressão
New Scatter Brush from Selection Novo Pincel de Dispersão a partir da Seleção
@@ -1652,6 +1659,8 @@
New Symbol… Novo Símbolo…
New View… Nova Visualização…
New Window Nova Janela
+ Next Document Próximo Documento
+ Previous Document Documento Anterior
New Without Dialog Novo sem Diálogo
New Workspace Novo Espaço de Trabalho
New Workspace… Novo Espaço de Trabalho…
@@ -2386,6 +2395,7 @@
Locked Bloqueados
Hidden Ocultos
Filter Layers Panel Rows Filtrar linhas do painel Camadas
+@msg `Custom` stands for changed settings: save the preset under another name `Custom` representa configurações alteradas: salve a predefinição com outro nome
@msg `{key}` must be an array of these names: {_1} `{key}` deve ser uma matriz destes nomes: {_1}
Search Commands… Pesquisar Comandos…
Search commands and tools Pesquisar comandos e ferramentas
@@ -2459,6 +2469,7 @@
Shape Builder Regions Regiões do Construtor de Formas
Shape Builder Tool Ferramenta Construtor de Formas
Shape Effects Efeitos de Forma
+ Shape Mode Modo de Forma
Shape Modes: Modos de Forma:
Shape Properties: Propriedades da Forma:
Shaper Tool Ferramenta Formador
@@ -2502,6 +2513,7 @@
Show Original Path Mostrar Caminho Original
Open this dialog with these settings next time Abrir este diálogo com estas configurações na próxima vez
Auto-Simplify Simplificar Automaticamente
+ Auto-Smooth Suavizar Automaticamente
Show Package Mostrar Pacote
Show Panel Mostrar Painel
Show Perspective Grid Mostrar Grade de Perspectiva
@@ -2539,6 +2551,7 @@
Simplify Simplificar
Simplify: Simplificar:
Simplify… Simplificar…
+ Smooth… Suavizar…
Simulate Colored Paper Simular Papel Colorido
Simulate Paper Simular Papel
Double Column Coluna Dupla
@@ -2546,6 +2559,7 @@
Single Quotes: Aspas Simples:
Single Right Quotation Mark Aspa Direita Única
Single-line Composer Compositor de Linha Única
+ Toggle Line Composer Alternar Compositor de Linhas
Sixth Space Espaço de Sexto
Size Tamanho
Size Tile to Art Dimensionar Bloco para a Arte
@@ -2631,6 +2645,11 @@
Strikethrough Tachado
Stroke Traçado
Stroke Color Cor do Traçado
+ Fill Gradient Gradiente de Preenchimento
+ Stroke Gradient Gradiente do Traçado
+ Fill Pattern Padrão de Preenchimento
+ Stroke Pattern Padrão do Traçado
+ Patterns Padrões
Stroke Options Opções de Traçado
Stroke Weight Peso do Traçado
Character: Caractere:
@@ -2829,6 +2848,7 @@
Unlock Guides Desbloquear Guias
Unnamed Objects Objetos Sem Nome
Unprintable margin: Margem não imprimível:
+ Unselected Artwork Arte Não Selecionada
Unshift Desfazer Mudança de Cor
Update Link Atualizar Link
Update Links Atualizar Links
@@ -3071,6 +3091,10 @@ imageTrace Outline Contorno
Shaper Formador
Expand Shaper Group Expandir Grupo Formador
Release Shaper Group Liberar Grupo Formador
+ Remove from Shaper Group Remover do Grupo Formador
+@msg source must be the id of a Shaper Group's original shape source deve ser o ID de uma forma original de um Grupo Formador
+@msg group must be the id of a Shaper Group group deve ser o ID de um Grupo Formador
+@msg the shape is not an editable original shape of that Shaper Group a forma não é uma forma original editável desse Grupo Formador
Select Shaper Face Selecionar Face do Formador
Constrain Restringir
Free Transform Transformação Livre
@@ -3202,6 +3226,12 @@ font-technology Variable Variáveis
Library: Biblioteca:
Image Tracing Vetorização de imagem
Tracing Presets Predefinições de vetorização
+ Manage Presets Gerenciar Predefinidos
+ Save as New Preset… Salvar como Novo Predefinido…
+ Rename… Renomear…
+ Rename Preset Renomear Predefinido
+ Save Image Trace Preset Salvar Predefinido de Rastreamento de Imagem
+ Delete Image Trace Preset Excluir Predefinido de Rastreamento de Imagem
Japanese Japonês
Keep a link to an image file instead of only embedding it Manter um link para o arquivo de imagem em vez de apenas incorporá-lo
Latin Latim
@@ -3244,6 +3274,10 @@ font-technology Variable Variáveis
Outer Corner Tile Ladrilho de canto externo
Side Tile Ladrilho lateral
Inner Corner Tile Ladrilho de canto interno
+ Auto-Centered Auto-centralizado
+ Auto-Between Auto-entre
+ Auto-Sliced Auto-fatiado
+ Auto-Overlap Auto-sobreposto
Start Tile Ladrilho inicial
End Tile Ladrilho final
Fit Ajustar
@@ -3382,6 +3416,13 @@ axis Both Ambos
Drag to the window's left edge to dock Arraste até a borda esquerda da janela para encaixar
@msg no library `{id}` nenhuma biblioteca `{id}`
@msg select some type first selecione algum texto primeiro
+@msg the selection has no gradient fill a seleção não tem gradiente de preenchimento
+@msg the selection has no gradient stroke a seleção não tem gradiente de traçado
+@msg the selection has no pattern fill a seleção não tem padrão de preenchimento
+@msg the selection has no pattern stroke a seleção não tem padrão de traçado
+@msg no gradient swatch `{name}` nenhuma amostra de gradiente `{name}`
+@msg no pattern swatch `{name}` nenhuma amostra de padrão `{name}`
+@msg the library item is damaged o item da biblioteca está danificado
@msg {_1} has no {_2} style {_1} não tem o estilo {_2}
@msg a layer couldn't be read não foi possível ler uma camada
@msg it has more than one artboard tem mais de uma prancheta
@@ -3486,8 +3527,10 @@ axis Both Ambos
@msg `freeform.points` must be an array `freeform.points` deve ser uma matriz
@msg `freeform.lines` must be an array `freeform.lines` deve ser uma matriz
@msg `gradient` must be an object `gradient` deve ser um objeto
+@msg `groupColors` must be an array `groupColors` deve ser uma matriz
@msg `library` is a library id or name (see {list}) `library` é o id ou o nome de uma biblioteca (veja {list})
@msg `mode` applies to freeform gradients `mode` se aplica a gradientes de forma livre
+@msg `preserve` must be an object `preserve` deve ser um objeto
@msg `sampleSize` must be 1, 3 or 5 `sampleSize` deve ser 1, 3 ou 5
@msg `stops` must be an array `stops` deve ser uma matriz
@msg `svg` must be an object of SVG options (see document.formats) `svg` deve ser um objeto com opções de SVG (veja document.formats)
@@ -3521,6 +3564,7 @@ axis Both Ambos
@msg `{name}` is a process colour: tints apply to global and spot colours `{name}` é uma cor de seleção: os matizes se aplicam a cores globais e especiais
@msg `{name}` is no recovery entry name `{name}` não é o nome de uma entrada de recuperação
@msg `{name}` isn't a colour swatch `{name}` não é uma amostra de cor
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white uma cor de seleção não pode colorir uma imagem em escala de cinza com transparência: use uma cor especial, preto ou branco
@msg `{path}` must be a bool or an object of bools `{path}` deve ser um booleano ou um objeto de booleanos
@msg `{s}` is not a colour (#rrggbb or a preset name) `{s}` não é uma cor (#rrggbb ou o nome de uma predefinição)
@msg `{tool}` isn't a Liquify tool `{tool}` não é uma ferramenta de Liquidificar
@@ -3566,6 +3610,10 @@ axis Both Ambos
@msg a page tree node has no kids um nó da árvore de páginas não tem filhos
@msg a page's placement is not finite a posição de uma página não é finita
@msg a preset named `{_1}` exists já existe uma predefinição chamada `{_1}`
+@msg `name` is empty `name` está vazio
+@msg `newName` is empty `newName` está vazio
+@msg `{name}` is a built-in preset and can't change: save it under another name `{name}` é uma predefinição integrada e não pode ser alterada: salve-a com outro nome
+@msg `{name}` is a built-in preset and stays `{name}` é uma predefinição integrada e não pode ser excluída
@msg a swatch or color group named `{n}` exists já existe uma amostra ou um grupo de cores chamado `{n}`
@msg a slice size must be a positive number of points o tamanho de uma fatia deve ser um número positivo de pontos
@msg a spine keeps at least two points uma coluna mantém pelo menos dois pontos
@@ -3651,6 +3699,7 @@ axis Both Ambos
@msg missing `id` (see plugin.list) falta `id` (veja plugin.list)
@msg missing `name` falta `name`
@msg missing `tool` falta `tool`
+@msg missing id falta o id
@msg missing index falta o índice
@msg missing number `{key}` falta o número `{key}`
@msg missing integer `{key}` falta o número inteiro `{key}`
@@ -3683,6 +3732,7 @@ axis Both Ambos
@msg no current layer nenhuma camada atual
@msg no data sem dados
@msg no dialog open nenhuma caixa de diálogo aberta
+@msg the open dialog has no Reset a caixa de diálogo aberta não tem o botão Redefinir
@msg no document nenhum documento
@msg no document open nenhum documento aberto
@msg no effect applied yet nenhum efeito aplicado ainda
@@ -3716,6 +3766,8 @@ axis Both Ambos
@msg no print service sem serviço de impressão
@msg no revert command sem comando de reverter
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) nenhuma predefinição de PDF salva chamada `{name}` (as predefinições integradas são somente leitura: crie uma nova a partir delas)
+@msg no saved preset named `{name}` nenhuma predefinição salva chamada `{name}`
+@msg no saved preset named `{name}` to rename nenhuma predefinição salva chamada `{name}` para renomear
@msg no saved presets nenhuma predefinição salva
@msg no saved print preset named `{name}` ({DEFAULT_PRESET} is protected: start a new one from it) nenhuma predefinição de impressão salva chamada `{name}` ({DEFAULT_PRESET} é protegida: crie uma nova a partir dela)
@msg no saved profiles nenhum perfil salvo
@@ -3762,8 +3814,10 @@ axis Both Ambos
@msg not an EMF or WMF file não é um arquivo EMF ou WMF
@msg not found não encontrado
@msg not in pattern editing mode não está no modo de edição de padrão
+@msg finish editing the pattern first termine de editar o padrão primeiro
@msg nothing encoded nada codificado
@msg nothing selected nada selecionado
+@msg nothing selected is in a group nada do que está selecionado está em um grupo
@msg nothing to align nada para alinhar
@msg nothing to distort nada para distorcer
@msg nothing to export: the document has no visible art (or turn on Use Artboards) nada para exportar: o documento não tem arte visível (ou ative Usar pranchetas)
@@ -3889,10 +3943,14 @@ axis Both Ambos
@msg the layer or group is locked a camada ou o grupo está bloqueado
@msg the guide is on a hidden or locked layer a guia está em uma camada oculta ou bloqueada
@msg the target layer is locked or hidden a camada de destino está bloqueada ou oculta
+@msg the object is hidden or locked o objeto está oculto ou bloqueado
+@msg the object is outside the isolated group o objeto está fora do grupo isolado
+@msg type objects can't be isolated objetos de texto não podem ser isolados
@msg the layer to flatten into is hidden a camada de destino do achatamento está oculta
@msg the object already has an opacity mask o objeto já tem uma máscara de opacidade
@msg the object has no geometry o objeto não tem geometria
@msg the object has no opacity mask o objeto não tem máscara de opacidade
+@msg stop editing the opacity mask first pare de editar a máscara de opacidade primeiro
@msg the object has no stroke o objeto não tem traço
@msg the object is beyond the plane's horizon o objeto está além do horizonte do plano
@msg the object isn't in perspective o objeto não está em perspectiva
@@ -3938,6 +3996,7 @@ axis Both Ambos
@msg unknown preset `{name}` (high, medium, low or a saved one: see flattener.presets.list) predefinição desconhecida `{name}` (high, medium, low ou uma salva: veja flattener.presets.list)
@msg unknown preset `{name}` (see flattener.presets.list) predefinição desconhecida `{name}` (veja flattener.presets.list)
@msg unknown preset `{name}` (see webExport.presets.list) predefinição desconhecida `{name}` (veja webExport.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) predefinição desconhecida `{name}`: não é integrada nem salva (veja imageTrace.presets)
@msg unknown side `{other}` (left|right|top|bottom) lado desconhecido `{other}` (left|right|top|bottom)
@msg unknown tool `{tool}` ferramenta desconhecida `{tool}`
@msg unknown tool `{t}` ferramenta desconhecida `{t}`
@@ -4084,6 +4143,9 @@ axis Both Ambos
@msg not a PSD file não é um arquivo PSD
@msg the PSD file has an unknown colour mode ({m}) o arquivo PSD tem um modo de cor desconhecido ({m})
@msg the PSD file's image data uses an unknown compression ({m}) os dados de imagem do arquivo PSD usam uma compactação desconhecida ({m})
+@msg the PCX file is cut short o arquivo PCX está incompleto
+@msg the PCX file's header is damaged o cabeçalho do arquivo PCX está danificado
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read arquivos PCX com pixels de {bits} bits em {planes} planos não podem ser lidos
@msg the PSD image is too large to read ({_1} × {_2} pixels) a imagem PSD é grande demais para ser lida ({_1} × {_2} pixels)
@msg zipped 32-bit PSD image data with prediction can't be read dados de imagem PSD de 32 bits compactados em zip com previsão não podem ser lidos
@msg {depth}-bit PSD files in this colour mode can't be read arquivos PSD de {depth} bits neste modo de cor não podem ser lidos
@@ -5250,6 +5312,7 @@ mark-style Japanese Japonesas
@msg Unknown dimension option {k} Opção de cota desconhecida {k}
@msg the Color Picker is not open o Seletor de Cores não está aberto
@msg the Simplify slider is not open o controle deslizante Simplificar não está aberto
+@msg the Smooth slider is not open o controle deslizante Suavizar não está aberto
@msg the screen color sampler is already open o coletor de cores da tela já está aberto
@msg this system has no screen color sampler este sistema não tem coletor de cores da tela
Darkness Escuridão
@@ -5538,4 +5601,9 @@ axis Y Axis Eixo Y
Scale Presets Predefinições de escala
@msg a {width}×{height} screenshot's byte count overflows a contagem de bytes de uma captura {width}×{height} transborda
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot o {what} da janela ({points} pontos × {scale} DPI) não pode dimensionar uma captura
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Expanda a aparência primeiro (Objeto › Expandir Aparência)
Live preview Visualização ao vivo
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Texto de Ponto
+ Area Text Texto de Área
diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv
index 9cba83237c..890e409d94 100644
--- a/crates/ui-egui/src/i18n/ru.tsv
+++ b/crates/ui-egui/src/i18n/ru.tsv
@@ -179,6 +179,8 @@
Anchor Point Опорная точка
Anchor Point Tool Инструмент «Опорная точка»
Anchor Points Опорные точки
+ "In" Control Points «Входящие» управляющие точки
+ "Out" Control Points «Исходящие» управляющие точки
Anchor Points, Handle, and Bounding Box Display Отображение опорных точек, маркеров и ограничительной рамки
Anchor/Path Labels Метки опорных точек/контуров
Anchors: Опорные точки:
@@ -565,6 +567,7 @@ font-technology Variable Вариативные
Complexity: Сложность:
Composite colours are converted to it; separations separate with it when it is a CMYK profile. Составные цвета преобразуются в него; цветоделения разделяются с ним, если это профиль CMYK.
Compound Path Составной контур
+ Compound Shape Составная фигура
Compress (RLE) Сжать (RLE)
Compress text and line art Сжимать текст и штриховой рисунок
Compression Сжатие
@@ -991,7 +994,6 @@ font-technology Variable Вариативные
Exit Isolation Mode Выйти из режима изоляции
Expand Разобрать
Expand Appearance Разобрать оформление
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap «Разобрать» применяется к составным фигурам (Alt+щелчок по режиму фигуры) — в плане развития
Expand Brush Strokes Разобрать мазки кисти
Expand Compound Shape Разобрать составную фигуру
Expand Gradient Mesh Разобрать градиентную сетку
@@ -1151,6 +1153,9 @@ font-technology Variable Вариативные
Increase Font Size by Five Steps Увеличить размер шрифта на пять шагов
Reset Tracking and Kerning Сбросить трекинг и кернинг
Reset Horizontal Scale Сбросить масштаб по горизонтали
+ Highlight Font Name Выделить имя шрифта
+ Highlight Kerning Выделить кернинг
+ Highlight Tracking Выделить трекинг
Spacing Интервал
Step Type Подгонять текст по шагам
Fit in View Вписать в вид
@@ -1550,6 +1555,12 @@ file-filter Templates Шаблоны
Image Trace Трассировка изображения
Image Tracing Объект трассировки изображения
Tracing Presets Наборы трассировки
+ Manage Presets Управление наборами
+ Save as New Preset… Сохранить как новый набор…
+ Rename… Переименовать…
+ Rename Preset Переименовать набор
+ Save Image Trace Preset Сохранить набор трассировки изображения
+ Delete Image Trace Preset Удалить набор трассировки изображения
Image Trace Presets Наборы трассировки изображения
Image: Изображение:
Images: Изображения:
@@ -1982,6 +1993,10 @@ file-filter Templates Шаблоны
Outer Corner Tile Фрагмент внешнего угла
Side Tile Боковой фрагмент
Inner Corner Tile Фрагмент внутреннего угла
+ Auto-Centered Авто: по центру
+ Auto-Between Авто: между
+ Auto-Sliced Авто: срез
+ Auto-Overlap Авто: перекрытие
Start Tile Начальный фрагмент
End Tile Конечный фрагмент
Fit Подгонка
@@ -2030,6 +2045,7 @@ file-filter Templates Шаблоны
Brush Art Рисунок кисти
New Calligraphic Brush Новая каллиграфическая кисть
New Character Style Новый стиль символа
+ New Character Style… Новый стиль символа…
New Color Group Новая цветовая группа
New Color Group… Новая цветовая группа…
New Document Presets Наборы новых документов
@@ -2045,6 +2061,7 @@ file-filter Templates Шаблоны
New Opacity Masks Are Clipping Новые непрозрачные маски обрезают
New Opacity Masks Are Inverted Новые непрозрачные маски инвертируются
New Paragraph Style Новый стиль абзаца
+ New Paragraph Style… Новый стиль абзаца…
New Pattern Brush from Selection Новая узорная кисть из выделенного
New PDF Preset Новый набор PDF
New Print Preset Новый набор печати
@@ -2058,6 +2075,8 @@ file-filter Templates Шаблоны
New View Новый вид
New View… Новый вид…
New Window Новое окно
+ Next Document Следующий документ
+ Previous Document Предыдущий документ
New Without Dialog Создать без диалогового окна
New Workspace Новая рабочая среда
New Workspace… Новая рабочая среда…
@@ -2905,6 +2924,7 @@ mark-style Japanese Японский
Locked Заблокированные
Hidden Скрытые
Filter Layers Panel Rows Фильтровать строки панели «Слои»
+@msg `Custom` stands for changed settings: save the preset under another name `Custom` обозначает изменённые параметры: сохраните набор под другим именем
@msg `{key}` must be an array of these names: {_1} `{key}` должно быть массивом из этих имён: {_1}
Search commands and tools Поиск команд и инструментов
Search commands and tools… Поиск команд и инструментов…
@@ -2988,6 +3008,7 @@ mark-style Japanese Японский
Shape Builder Regions Области создания фигур
Shape Builder Tool Инструмент «Создание фигур»
Shape Effects Эффекты формы
+ Shape Mode Режим фигуры
Shape Modes: Режимы фигур:
Shape Properties: Свойства фигуры:
Shaper Tool Инструмент «Формообразование»
@@ -3046,6 +3067,7 @@ mark-style Japanese Японский
Show Original Path Показать исходный контур
Open this dialog with these settings next time Открывать это диалоговое окно с этими параметрами в следующий раз
Auto-Simplify Автоматическое упрощение
+ Auto-Smooth Автоматическое сглаживание
Color Panel Options Параметры панели «Цвет»
Show Package Показать пакет
Show Panel Показать панель
@@ -3082,6 +3104,7 @@ mark-style Japanese Японский
Simplify Упростить
Simplify: Упростить:
Simplify… Упростить…
+ Smooth… Сгладить…
Simulate Colored Paper Имитировать цветную бумагу
Simulate Paper Имитировать бумагу
Double Column Двойной столбец
@@ -3089,6 +3112,7 @@ mark-style Japanese Японский
Single Quotes: Одинарные кавычки:
Single Right Quotation Mark Одинарная закрывающая кавычка
Single-line Composer Однострочный компоновщик
+ Toggle Line Composer Переключить компоновщик строк
Sixth Space Шестая шпация
Size Размер
Size Tile to Art Подогнать плитку по рисунку
@@ -3202,6 +3226,11 @@ mark-style Japanese Японский
Stroke Обводка
Stroke (X), double-click for the Color Picker Обводка (X), дважды щёлкните для палитры цветов
Stroke Color Цвет обводки
+ Fill Gradient Градиент заливки
+ Stroke Gradient Градиент обводки
+ Fill Pattern Узор заливки
+ Stroke Pattern Узор обводки
+ Patterns Узоры
Stroke Options Параметры обводки
Character: Символ:
Character options Параметры символа
@@ -3493,6 +3522,7 @@ mark-style Japanese Японский
Unlock Guides Разблокировать направляющие
Unnamed Objects Объекты без имени
Unprintable margin: Непечатаемое поле:
+ Unselected Artwork Невыделенный рисунок
Unshift Отменить сдвиг
Untitled Без названия
Update Link Обновить связь
@@ -3835,6 +3865,13 @@ axis Both Оба
# names and values in backticks or code (`colorModel rgb`, `document.export`) stay as they are.
@msg no library `{id}` нет библиотеки `{id}`
@msg select some type first сначала выделите текст
+@msg the selection has no gradient fill у выделения нет градиентной заливки
+@msg the selection has no gradient stroke у выделения нет градиентной обводки
+@msg the selection has no pattern fill у выделения нет узорной заливки
+@msg the selection has no pattern stroke у выделения нет узорной обводки
+@msg no gradient swatch `{name}` нет градиентного образца `{name}`
+@msg no pattern swatch `{name}` нет образца узора `{name}`
+@msg the library item is damaged элемент библиотеки повреждён
@msg {_1} has no {_2} style у {_1} нет начертания {_2}
@msg a layer couldn't be read не удалось прочитать слой
@msg it has more than one artboard в нём несколько монтажных областей
@@ -3941,8 +3978,10 @@ axis Both Оба
@msg `freeform.points` must be an array `freeform.points` должно быть массивом
@msg `freeform.lines` must be an array `freeform.lines` должно быть массивом
@msg `gradient` must be an object `gradient` должно быть объектом
+@msg `groupColors` must be an array `groupColors` должно быть массивом
@msg `library` is a library id or name (see {list}) `library` — это идентификатор или имя библиотеки (см. {list})
@msg `mode` applies to freeform gradients `mode` применяется к произвольным градиентам
+@msg `preserve` must be an object `preserve` должно быть объектом
@msg `sampleSize` must be 1, 3 or 5 `sampleSize` должно быть 1, 3 или 5
@msg `stops` must be an array `stops` должно быть массивом
@msg `svg` must be an object of SVG options (see document.formats) `svg` должно быть объектом параметров SVG (см. document.formats)
@@ -3977,6 +4016,7 @@ axis Both Оба
@msg `{name}` is a process colour: tints apply to global and spot colours `{name}` — составной цвет: оттенки применяются к глобальным и плашечным цветам
@msg `{name}` is no recovery entry name `{name}` не является именем записи восстановления
@msg `{name}` isn't a colour swatch `{name}` не является цветовым образцом
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white составной цвет не может раскрасить изображение в оттенках серого с прозрачностью: используйте плашечный цвет, чёрный или белый
@msg `{path}` must be a bool or an object of bools `{path}` должно быть логическим значением или объектом логических значений
@msg `{s}` is not a colour (#rrggbb or a preset name) `{s}` не является цветом (#rrggbb или именем набора)
@msg `{tool}` isn't a Liquify tool `{tool}` не является инструментом пластики
@@ -4022,6 +4062,10 @@ axis Both Оба
@msg a page tree node has no kids узел дерева страниц не имеет потомков
@msg a page's placement is not finite размещение страницы не конечно
@msg a preset named `{_1}` exists набор с именем `{_1}` уже существует
+@msg `name` is empty параметр `name` пуст
+@msg `newName` is empty параметр `newName` пуст
+@msg `{name}` is a built-in preset and can't change: save it under another name встроенный набор `{name}` нельзя изменить: сохраните его под другим именем
+@msg `{name}` is a built-in preset and stays встроенный набор `{name}` нельзя удалить
@msg a swatch or color group named `{n}` exists образец или цветовая группа с именем `{n}` уже существует
@msg a slice size must be a positive number of points размер фрагмента должен быть положительным числом пунктов
@msg a spine keeps at least two points остов сохраняет как минимум две точки
@@ -4041,6 +4085,7 @@ axis Both Оба
@msg videoRulerPixelAspectRatio must be a number from 0.1 to 10 videoRulerPixelAspectRatio должно быть числом от 0,1 до 10
@msg the Color Picker is not open палитра цветов не открыта
@msg the Simplify slider is not open ползунок «Упростить» не открыт
+@msg the Smooth slider is not open ползунок «Сгладить» не открыт
@msg the screen color sampler is already open средство выбора цвета с экрана уже открыто
@msg this system has no screen color sampler в этой системе нет средства выбора цвета с экрана
@msg bad colour `{hex}` (#rrggbb) недопустимый цвет `{hex}` (#rrggbb)
@@ -4113,6 +4158,7 @@ axis Both Оба
@msg missing `id` (see plugin.list) отсутствует `id` (см. plugin.list)
@msg missing `name` отсутствует `name`
@msg missing `tool` отсутствует `tool`
+@msg missing id отсутствует id
@msg missing index отсутствует index
@msg missing number `{key}` отсутствует число `{key}`
@msg missing integer `{key}` отсутствует целое число `{key}`
@@ -4145,6 +4191,7 @@ axis Both Оба
@msg no current layer нет текущего слоя
@msg no data нет данных
@msg no dialog open нет открытого диалогового окна
+@msg the open dialog has no Reset в открытом диалоговом окне нет кнопки «Сбросить»
@msg no document нет документа
@msg no document open нет открытого документа
@msg no effect applied yet эффект ещё не применён
@@ -4178,6 +4225,8 @@ axis Both Оба
@msg no print service нет службы печати
@msg no revert command нет команды возврата
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) нет сохранённого набора PDF с именем `{name}` (встроенные наборы доступны только для чтения: создайте новый на их основе)
+@msg no saved preset named `{name}` нет сохранённого набора с именем `{name}`
+@msg no saved preset named `{name}` to rename нет сохранённого набора с именем `{name}` для переименования
@msg no saved presets нет сохранённых наборов
@msg no saved print preset named `{name}` ({DEFAULT_PRESET} is protected: start a new one from it) нет сохранённого набора печати с именем `{name}` ({DEFAULT_PRESET} защищён: создайте новый на его основе)
@msg no saved profiles нет сохранённых профилей
@@ -4225,8 +4274,10 @@ axis Both Оба
@msg not an EMF or WMF file не является файлом EMF или WMF
@msg not found не найдено
@msg not in pattern editing mode не в режиме редактирования узора
+@msg finish editing the pattern first сначала завершите редактирование узора
@msg nothing encoded ничего не закодировано
@msg nothing selected ничего не выделено
+@msg nothing selected is in a group ничего из выделенного не находится в группе
@msg nothing to align нечего выравнивать
@msg nothing to distort нечего искажать
@msg nothing to export: the document has no visible art (or turn on Use Artboards) нечего экспортировать: в документе нет видимого рисунка (или включите «Использовать монтажные области»)
@@ -4353,10 +4404,14 @@ axis Both Оба
@msg the layer or group is locked слой или группа заблокированы
@msg the guide is on a hidden or locked layer направляющая находится на скрытом или заблокированном слое
@msg the target layer is locked or hidden целевой слой заблокирован или скрыт
+@msg the object is hidden or locked объект скрыт или заблокирован
+@msg the object is outside the isolated group объект находится вне изолированной группы
+@msg type objects can't be isolated текстовые объекты нельзя изолировать
@msg the layer to flatten into is hidden слой для объединения скрыт
@msg the object already has an opacity mask у объекта уже есть непрозрачная маска
@msg the object has no geometry у объекта нет геометрии
@msg the object has no opacity mask у объекта нет непрозрачной маски
+@msg stop editing the opacity mask first сначала прекратите редактирование непрозрачной маски
@msg the object has no stroke у объекта нет обводки
@msg the object is beyond the plane's horizon объект находится за горизонтом плоскости
@msg the object isn't in perspective объект не в перспективе
@@ -4402,6 +4457,7 @@ axis Both Оба
@msg unknown preset `{name}` (high, medium, low or a saved one: see flattener.presets.list) неизвестный набор `{name}` (high, medium, low или сохранённый: см. flattener.presets.list)
@msg unknown preset `{name}` (see flattener.presets.list) неизвестный набор `{name}` (см. flattener.presets.list)
@msg unknown preset `{name}` (see webExport.presets.list) неизвестный набор `{name}` (см. webExport.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) неизвестный набор `{name}`: не встроенный и не сохранённый (см. imageTrace.presets)
@msg unknown side `{other}` (left|right|top|bottom) неизвестная сторона `{other}` (left|right|top|bottom)
@msg unknown tool `{tool}` неизвестный инструмент `{tool}`
@msg unknown tool `{t}` неизвестный инструмент `{t}`
@@ -4546,6 +4602,10 @@ axis Both Оба
Shaper Shaper
Expand Shaper Group Разобрать группу Shaper
Release Shaper Group Освободить группу Shaper
+ Remove from Shaper Group Удалить из группы Shaper
+@msg source must be the id of a Shaper Group's original shape source должен быть идентификатором исходной фигуры группы Shaper
+@msg group must be the id of a Shaper Group group должен быть идентификатором группы Shaper
+@msg the shape is not an editable original shape of that Shaper Group фигура не является редактируемой исходной фигурой этой группы Shaper
Select Shaper Face Выбрать область Shaper
Constrain Ограничить
Free Transform Свободное трансформирование
@@ -4578,6 +4638,9 @@ axis Both Оба
@msg not a PSD file это не документ PSD
@msg the PSD file has an unknown colour mode ({m}) у файла PSD неизвестный цветовой режим ({m})
@msg the PSD file's image data uses an unknown compression ({m}) данные изображения файла PSD используют неизвестное сжатие ({m})
+@msg the PCX file is cut short файл PCX обрезан
+@msg the PCX file's header is damaged заголовок файла PCX повреждён
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read файлы PCX с {bits}-битными пикселями в {planes} плоскостях не читаются
@msg the PSD image is too large to read ({_1} × {_2} pixels) изображение PSD слишком велико для чтения ({_1} × {_2} пикс.)
@msg zipped 32-bit PSD image data with prediction can't be read 32-битные данные изображения PSD со сжатием ZIP с предсказанием не читаются
@msg {depth}-bit PSD files in this colour mode can't be read {depth}-битные файлы PSD в этом цветовом режиме не читаются
@@ -5233,4 +5296,375 @@ axis Y Axis Ось Y
Scale Presets Наборы масштаба
@msg a {width}×{height} screenshot's byte count overflows количество байтов снимка {width}×{height} переполняется
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot {what} окна ({points} пунктов × {scale} DPI) не позволяет задать размер снимка
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Сначала разберите оформление (Объект › Разобрать оформление)
Live preview Просмотр в реальном времени
+
+# Rows the other catalogs had and Russian lacked: document presets, color harmony rules and
+# swatch names, arrowheads, keyboard shortcut editing, print and PDF export options.
+ on the canvas to create one на холсте, чтобы создать его
+ 1 Color Job Задание на 1 цвет
+ 1 bit 1 бит
+ 16 Colors 16 цветов
+ 16 bit 16 бит
+ 16 bits/pixel 16 бит/пиксель
+ 2 Color Job Задание на 2 цвета
+ 2-Up 2 на листе
+ 24 bit 24 бита
+ 24 bits/pixel 24 бита/пиксель
+ 256 Colors 256 цветов
+ 2K Cinema Кино 2K
+ 2up 2 на листе
+ 3 Color Job Задание на 3 цвета
+ 3 Colors 3 цвета
+ 3 x 3 Average Среднее 3 x 3
+ 32 bit 32 бита
+ 32 bits/pixel 32 бита/пиксель
+ 4 bit 4 бита
+ 4-Up 4 на листе
+ 4K Cinema Кино 4K
+ 4up 4 на листе
+ 5 x 5 Average Среднее 5 x 5
+ 6 Colors 6 цветов
+ 8 Colors 8 цветов
+ 8 bit 8 бит
+ Absolute Colorimetric Абсолютный колориметрический
+ Adaptive Адаптивная
+ All Affected Objects Все затронутые объекты
+ All Layers Все слои
+ All Rasterized Regions Все растрированные области
+ All Slices Все фрагменты
+ All shortcuts reset to defaults. Все сочетания клавиш сброшены к значениям по умолчанию.
+ Alt+Click Alt+щелчок
+ Alt+Drag Alt+перетаскивание
+ Analogous Аналоговая
+ Analogous 2 Аналоговая 2
+ Anchors Опорные точки
+ Any except extracting pages Все, кроме извлечения страниц
+ Arrow Стрелка
+ Arrow (open) Стрелка (открытая)
+ Art & Illustration Графика и иллюстрация
+ Art Optimized Оптимизировано для графики
+ Ascent Подъём
+ Auto Size Авторазмер
+ Bar Черта
+ Barbed С зазубриной
+ Baseline (Standard) Базовый (стандартный)
+ Baseline Optimized Базовый оптимизированный
+ Bicubic Бикубическая
+ Black & White Черно-белое
+ Black Outline Черный контур
+ Bounding Box Ограничивающая рамка
+ Bracket Скобка
+ Branding Брендинг
+ Brown Коричневый
+ Business Card 3.5 × 2 in Визитка 3.5 × 2 дюйма
+ Business Card 85 × 55 mm Визитка 85 × 55 мм
+ Business Card 91 × 55 mm Визитка 91 × 55 мм
+ CMYK Equivalents Эквиваленты CMYK
+ CMYK profile in effect Действует профиль CMYK
+ Cap Height Высота прописных
+ Chevron Шеврон
+ Circle (open) Круг (открытый)
+ Click, then press the new shortcut (Esc cancels) Щелкните, затем нажмите новое сочетание клавиш (Esc отменяет)
+ Clip Group Обтравочная группа
+ Command Команда
+ Commenting, filling in form fields and signing Комментирование, заполнение полей форм и подписание
+ Complementary Дополнительная
+ Complementary 2 Дополнительная 2
+ Complete Готово
+ Composite Композит
+ Compound Составная
+ Compound 2 Составная 2
+ Convert to Global Преобразовать в глобальный
+ Convert to destination Преобразовать в целевой
+ Convert to destination (preserve numbers) Преобразовать в целевой (сохранить значения)
+ Cool Холодная
+ Copyright and Contact Info Авторские права и контакты
+ Copyrighted Защищено авторским правом
+ Cross Крест
+ Current Colors Текущие цвета
+ Custom Scale Свой масштаб
+ DWG (use DXF) DWG (используйте DXF)
+ Default Graphic Style Графический стиль по умолчанию
+ Diamond (open) Ромб (открытый)
+ Diffusion Диффузия
+ Direct Selection Прямое выделение
+ Distance: Расстояние:
+ Do Not Scale Не масштабировать
+ Don't include profiles Не включать профили
+ Dot on Bar Точка на черте
+ Double Arrow Двойная стрелка
+ Double Bar Двойная черта
+ Double Slash Двойная косая черта
+ Down (right reading) Вниз (прямое чтение)
+ Drop Капля
+ Envelope Конверт
+ Envelope #10 Конверт №10
+ Envelope DL Конверт DL
+ Exact Точно
+ Expand Object Разобрать объект
+ Expanded Patterns Разобранные узоры
+ Feather Растушёвка
+ Filling in form fields and signing Заполнение полей форм и подписание
+ Film & Video Кино и видео
+ First Baseline Первая базовая линия
+ Fit to Page Вписать в страницу
+ Fork Вилка
+ GIF, 128 colours GIF, 128 цветов
+ Go to Conflict Перейти к конфликту
+ Gray Серый
+ Greeting Card Открытка
+ Grey Серый
+ Group Selection Групповое выделение
+ Guide Направляющая
+ Gutter Промежуток
+ Gutter: Промежуток:
+ HTML and Images HTML и изображения
+ Half Arrow (left) Полустрелка (влево)
+ Half Arrow (right) Полустрелка (вправо)
+ Half Circle Полукруг
+ Hand Рука
+ Harmony Rules Правила гармонии
+ Heavy Ink Насыщенные краски
+ Hexagon Шестиугольник
+ Hexagon (open) Шестиугольник (открытый)
+ High Contrast Высокий контраст
+ High Contrast 2 Высокий контраст 2
+ High Contrast 3 Высокий контраст 3
+ High Fidelity Photo Фото высокой точности
+ High Quality Print Высококачественная печать
+ High Resolution Высокое разрешение
+ High resolution Высокое разрешение
+ Images Only Только изображения
+ Include All Subdirectories Включить все вложенные папки
+ Include all profiles Включать все профили
+ Include destination profile Включать целевой профиль
+ Include tagged source profiles Включать профили помеченных источников
+ Inserting, deleting and rotating pages Вставка, удаление и поворот страниц
+ Joins: Соединения:
+ Justify Выравнивание по ширине
+ Keeps the document editable: VectorCraft reopens the PDF with nothing lost. For files you'll edit again. Документ остается редактируемым: VectorCraft откроет PDF снова без потерь. Для файлов, которые вы будете править.
+ Keyboard Shortcuts Сочетания клавиш
+ Kite Воздушный змей
+ Lab Spot Colors Плашечные цвета Lab
+ Landscape (flipped) Альбомная (перевернутая)
+ Language Level 2 Уровень языка 2
+ Language Level 3 Уровень языка 3
+ Lasso Лассо
+ Leaf Листок
+ Left Complement Левое дополнение
+ Length Длина
+ Length: Длина:
+ Letterhead A4 Бланк A4
+ Letterhead Letter Бланк Letter
+ Line Art Штриховая графика
+ Logo 1000×1000 Логотип 1000×1000
+ Low Fidelity Photo Фото низкой точности
+ Low Resolution Низкое разрешение
+ Low resolution (150 ppi) Низкое разрешение (150 ppi)
+ Maximize Editability Максимальная редактируемость
+ Measure Измерение
+ Medium Resolution Среднее разрешение
+ Menu Commands Команды меню
+ Mesh Сетка
+ Mobile Мобильные
+ Monochromatic Монохроматическая
+ Monochrome Монохромный
+ Muted Приглушенная
+ Negative Негатив
+ No Dither Без дизеринга
+ No Slices Без фрагментов
+ No conversion Без преобразования
+ No downsampling Без понижения разрешения
+ None (Color Preview) Нет (предпросмотр цвета)
+ Orange Оранжевый
+ Outlined Strokes Обводки в контуры
+ Outlined Text Текст в кривых
+ Oval Овал
+ Override Action "Export" Commands Переопределять команды «Экспорт» в действиях
+ Override Action "Open" Commands Переопределять команды «Открыть» в действиях
+ Override Action "Save" Commands Переопределять команды «Сохранить» в действиях
+ PDF File Файл PDF
+ Page Cover 1640×624 Обложка страницы 1640×624
+ Pattern Swatches Образцы узоров
+ Pentagram Пентаграмма
+ Phone 360×800 Телефон 360×800
+ Phone 375×667 Телефон 375×667
+ Phone 393×852 Телефон 393×852
+ Phone 412×915 Телефон 412×915
+ Phone 430×932 Телефон 430×932
+ Pixel Пиксель
+ Placed Document Помещенный документ
+ Play: Воспроизведение:
+ Plus Плюс
+ Points: Точки:
+ Portrait (flipped) Книжная (перевернутая)
+ Positive Позитив
+ Poster 18 × 24 in Плакат 18 × 24 дюйма
+ Poster 24 × 36 in Плакат 24 × 36 дюймов
+ Preserve Сохранять
+ Preserve Appearance Сохранять внешний вид
+ Preserve Tints Сохранять оттенки
+ Press Quality Типографское качество
+ Press keys… Нажмите клавиши…
+ Profile Cover 1500×500 Обложка профиля 1500×500
+ Public Domain Общественное достояние
+ Purple Фиолетовый
+ Rasterized Complex Regions Растрированные сложные области
+ Relative Colorimetric Относительный колориметрический
+ Remove the shortcut Удалить сочетание клавиш
+ Reset to Defaults Восстановить значения по умолчанию
+ Reverse Triangle Обратный треугольник
+ Right Complement Правое дополнение
+ Run Length Кодирование длин серий
+ Save and Close Сохранить и закрыть
+ Scale Tints Масштабировать оттенки
+ Scissors Ножницы
+ Selected Slices Выбранные фрагменты
+ Selective Селективная
+ Separations Цветоделение
+ Set: Набор:
+ Shades Затемнения
+ Shades of Gray Оттенки серого
+ Shift+Click Shift+щелчок
+ Shift+Drag Shift+перетаскивание
+ Shrink Text to Fit Уменьшить текст по размеру
+ Silhouettes Силуэты
+ Simulate Имитировать
+ Simulate prints overprints as Overprint Preview shows them; separations always keep them. A preset flattens transparency before printing (PostScript files always flatten it). «Имитировать» печатает наложения так, как их показывает просмотр наложения; при цветоделении они сохраняются всегда. Набор параметров объединяет прозрачность перед печатью (файлы PostScript объединяют ее всегда).
+ Sketched Art Эскизная графика
+ Slash Косая черта
+ Smallest File Size Наименьший размер файла
+ Social Соцсети
+ Social Landscape Post 1200×630 Горизонтальный пост 1200×630
+ Social Portrait Post 1080×1350 Вертикальный пост 1080×1350
+ Social Story 1080×1920 История 1080×1920
+ Social Tall Post 1000×1500 Высокий пост 1000×1500
+ Sort by Hue Сортировать по тону
+ Sort by Luminance Сортировать по яркости
+ Sort by Popularity Сортировать по частоте использования
+ Spectrum Спектр
+ Split Complementary Расщепленная дополнительная
+ Square (open) Квадрат (открытый)
+ Square 8 × 8 in Квадрат 8 × 8 дюймов
+ Stop on Errors Останавливаться при ошибках
+ Subsample Подвыборка
+ Subset Подмножество
+ Sunshine Солнечный свет
+ Swallowtail Ласточкин хвост
+ Symbol Символ
+ TIFF (8-bit Color) TIFF (8-битный цвет)
+ TIFF (Black & White) TIFF (черно-белый)
+ Tablet 1024×1366 Планшет 1024×1366
+ Tablet 768×1024 Планшет 768×1024
+ Tablet 800×1280 Планшет 800×1280
+ Tablet 820×1180 Планшет 820×1180
+ Tablet 834×1194 Планшет 834×1194
+ Tag Ярлык
+ Tag (open) Ярлык (открытый)
+ Technical Drawing Технический чертеж
+ Tetrad Тетрада
+ Tetrad 2 Тетрада 2
+ Tetrad 3 Тетрада 3
+ Text Displayed in Cell Текст, показываемый в ячейке
+ Tile Imageable Areas Разбить на области печати
+ Tool Инструмент
+ Transparent Objects Прозрачные объекты
+ Triad Триада
+ Triad 2 Триада 2
+ Triad 3 Триада 3
+ Triangle Треугольник
+ Triangle (open) Треугольник (открытый)
+ Triangle to Bar Треугольник к черте
+ True Colors Истинные цвета
+ Type Optimized Оптимизировано для текста
+ Unknown Неизвестно
+ Unsorted Без сортировки
+ Up (right reading) Вверх (прямое чтение)
+ Use Default По умолчанию
+ Variation Вариант
+ VectorCraft Default VectorCraft по умолчанию
+ VectorCraft Defaults Стандартные VectorCraft
+ VectorCraft Generic CMYK (SWOP-like) Общий CMYK VectorCraft (как SWOP)
+ VectorCraft Swatches (.vcswatches) Образцы VectorCraft (.vcswatches)
+ Vertical Align Вертикальное выравнивание
+ Vertical Area Type Вертикальный текст в области
+ Vertical Type Вертикальный текст
+ Vertical Type on a Path Вертикальный текст по контуру
+ Video Banner 2560×1440 Баннер видео 2560×1440
+ Video Thumbnail 1280×720 Обложка видео 1280×720
+ Visible & Printable Layers Видимые и печатаемые слои
+ Visible Layers Видимые слои
+ Vivid Яркая
+ Warm Теплая
+ Watch 184×224 Часы 184×224
+ Watch 198×242 Часы 198×242
+ Web 1024×768 Веб 1024×768
+ Web 1280×800 Веб 1280×800
+ Web 1366×768 Веб 1366×768
+ Web 1440×900 Веб 1440×900
+ Web 1600×900 Веб 1600×900
+ Working RGB Рабочее RGB
+ [Custom] [Свой]
+ [Default] [По умолчанию]
+ [Press Quality] [Типографское качество]
+ of из
+ x Height Высота строчных
+ ▾ Default Actions ▾ Стандартные действия
+ ⚠ {chord} was already used by {names} — it has been removed there. ⚠ {chord} уже было назначено: {names}; там оно удалено.
+@plural {n} shortcut is assigned more than once|{n} shortcuts are assigned more than once {n} сочетание клавиш назначено несколько раз|{n} сочетания клавиш назначены несколько раз|{n} сочетаний клавиш назначены несколько раз
+effect Horizontal Горизонтально
+effect Points Точки
+effect Regular Обычный
+effect Soft Мягкий
+effect Vertical Вертикально
+swatch Amber Янтарный
+swatch Aqua Аква
+swatch Azure Лазурный
+swatch Black Черный
+swatch Blue Синий
+swatch Bright Blue Ярко-синий
+swatch Bright Green Ярко-зеленый
+swatch Bright Red Ярко-красный
+swatch Bright Violet Ярко-фиолетовый
+swatch Bright Yellow Ярко-желтый
+swatch Brights Яркие
+swatch Brown Коричневый
+swatch Chocolate Шоколадный
+swatch Coffee Кофейный
+swatch Copper Медный
+swatch Cyan Голубой
+swatch Cyan Green Сине-зеленый
+swatch Emerald Изумрудный
+swatch Espresso Эспрессо
+swatch Grays Серые
+swatch Green Зеленый
+swatch Indigo Индиго
+swatch Lime Лаймовый
+swatch Magenta Пурпурный
+swatch Ocean Морской
+swatch Orange Оранжевый
+swatch Orange Red Оранжево-красный
+swatch Pink Розовый
+swatch Purple Фиолетовый
+swatch Radial White, Black Радиальный белый, черный
+swatch Red Красный
+swatch Rose Роза
+swatch Rust Ржавый
+swatch Sand Песочный
+swatch Sunset Закат
+swatch Tan Бежевый
+swatch Teal Бирюзовый
+swatch Violet Лиловый
+swatch Walnut Ореховый
+swatch White Белый
+swatch White, Black Белый, черный
+swatch Yellow Желтый
+swatch Yellow Green Желто-зеленый
+swatch [None] [Нет]
+swatch [Registration] [Приводка]
+theme Appearance Оформление
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Точечный текст
+ Area Text Текст в области
diff --git a/crates/ui-egui/src/i18n/sv.tsv b/crates/ui-egui/src/i18n/sv.tsv
index dce9b34660..4c42d02ae7 100644
--- a/crates/ui-egui/src/i18n/sv.tsv
+++ b/crates/ui-egui/src/i18n/sv.tsv
@@ -169,6 +169,8 @@
Anchor Point Ankarpunkt
Anchor Point Tool Ankarpunktsverktyg
Anchor Points Ankarpunkter
+ "In" Control Points "In"-kontrollpunkter
+ "Out" Control Points "Ut"-kontrollpunkter
Anchor Points, Handle, and Bounding Box Display Visning av ankarpunkter, handtag och avgränsningsram
Anchor/Path Labels Etiketter för ankare/banor
Anchors: Ankare:
@@ -554,6 +556,7 @@ font-technology Variable Variabla
Complexity: Komplexitet:
Composite colours are converted to it; separations separate with it when it is a CMYK profile. Sammansatta färger konverteras till den; separationer separeras med den när den är en CMYK-profil.
Compound Path Sammansatt bana
+ Compound Shape Sammansatt form
Compress (RLE) Komprimera (RLE)
Compress text and line art Komprimera text och linjegrafik
Compression Komprimering
@@ -978,7 +981,6 @@ font-technology Variable Variabla
Exit Isolation Mode Avsluta isoleringsläge
Expand Expandera
Expand Appearance Expandera utseende
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap Expandera gäller för sammansatta former (Alt-klicka på ett formläge) – planerat
Expand Brush Strokes Expandera penseldrag
Expand Compound Shape Expandera sammansatt form
Expand Gradient Mesh Expandera gradientnät
@@ -1495,6 +1497,12 @@ font-technology Variable Variabla
Image Trace Bildkalkering
Image Tracing Bildkalkering
Tracing Presets Förinställningar för vektorisering
+ Manage Presets Hantera förinställningar
+ Save as New Preset… Spara som ny förinställning…
+ Rename… Byt namn…
+ Rename Preset Byt namn på förinställning
+ Save Image Trace Preset Spara förinställning för bildkalkering
+ Delete Image Trace Preset Radera förinställning för bildkalkering
Image Trace Presets Förinställningar för bildkalkering
Image: Bild:
Images: Bilder:
@@ -1907,6 +1915,10 @@ font-technology Variable Variabla
Outer Corner Tile Yttre hörnplatta
Side Tile Sidoruta
Inner Corner Tile Innerhörnsruta
+ Auto-Centered Auto-centrerad
+ Auto-Between Auto-mellan
+ Auto-Sliced Auto-skuren
+ Auto-Overlap Auto-överlapp
Start Tile Startruta
End Tile Slutruta
Fit Anpassa
@@ -1955,6 +1967,7 @@ font-technology Variable Variabla
Brush Art Penselgrafik
New Calligraphic Brush Ny kalligrafisk pensel
New Character Style Ny teckenstil
+ New Character Style… Ny teckenstil…
New Color Group Ny färggrupp
New Color Group… Ny färggrupp…
New Document Presets Förinställningar för nytt dokument
@@ -1970,6 +1983,7 @@ font-technology Variable Variabla
New Opacity Masks Are Clipping Nya opacitetsmasker är klippande
New Opacity Masks Are Inverted Nya opacitetsmasker är inverterade
New Paragraph Style Ny styckestil
+ New Paragraph Style… Ny styckestil…
New Pattern Brush from Selection Ny mönsterpensel från markeringen
New PDF Preset Ny PDF-förinställning
New Print Preset Ny utskriftsförinställning
@@ -1983,6 +1997,8 @@ font-technology Variable Variabla
New View Ny vy
New View… Ny vy…
New Window Nytt fönster
+ Next Document Nästa dokument
+ Previous Document Föregående dokument
New Without Dialog Ny utan dialogruta
New Workspace Ny arbetslayout
New Workspace… Ny arbetslayout…
@@ -2892,6 +2908,7 @@ font-technology Variable Variabla
Shape Builder Regions Formbyggarområden
Shape Builder Tool Formbyggarverktyg
Shape Effects Figureffekter
+ Shape Mode Formläge
Shape Modes: Formlägen:
Shape Properties: Formegenskaper:
Shaper Tool Formningsverktyg
@@ -2950,6 +2967,7 @@ font-technology Variable Variabla
Show Original Path Visa ursprunglig bana
Open this dialog with these settings next time Öppna den här dialogrutan med de här inställningarna nästa gång
Auto-Simplify Förenkla automatiskt
+ Auto-Smooth Jämna ut automatiskt
Show Package Visa paket
Show Panel Visa panel
Show Pattern Swatches Visa mönsterprover
@@ -2984,6 +3002,7 @@ font-technology Variable Variabla
Simplify Förenkla
Simplify: Förenkla:
Simplify… Förenkla…
+ Smooth… Jämna ut…
Simulate Colored Paper Simulera färgat papper
Simulate Paper Simulera papper
Double Column Dubbel kolumn
@@ -2991,6 +3010,7 @@ font-technology Variable Variabla
Single Quotes: Enkla citattecken:
Single Right Quotation Mark Enkelt höger citattecken
Single-line Composer Enradssättare
+ Toggle Line Composer Växla radsättare
Sixth Space Sjättedelsblanksteg
Size Storlek
Size Tile to Art Anpassa rutans storlek efter grafiken
@@ -3104,6 +3124,11 @@ font-technology Variable Variabla
Stroke Kontur
Stroke (X), double-click for the Color Picker Kontur (X), dubbelklicka för färgväljaren
Stroke Color Konturfärg
+ Fill Gradient Fyllnadsgradient
+ Stroke Gradient Konturgradient
+ Fill Pattern Fyllnadsmönster
+ Stroke Pattern Konturmönster
+ Patterns Mönster
Stroke Options Konturalternativ
Character: Tecken:
Character options Teckenalternativ
@@ -3394,6 +3419,7 @@ font-technology Variable Variabla
Unlock Guides Lås upp stödlinjer
Unnamed Objects Namnlösa objekt
Unprintable margin: Ej utskrivbar marginal:
+ Unselected Artwork Omarkerad grafik
Unshift Utan förskjutning
Untitled Namnlös
Update Link Uppdatera länk
@@ -3721,6 +3747,13 @@ axis Both Båda
Float Tool Group Gör verktygsgruppen flytande
@msg no library `{id}` inget bibliotek `{id}`
@msg select some type first markera någon text först
+@msg the selection has no gradient fill markeringen har ingen fyllnadsgradient
+@msg the selection has no gradient stroke markeringen har ingen konturgradient
+@msg the selection has no pattern fill markeringen har inget fyllnadsmönster
+@msg the selection has no pattern stroke markeringen har inget konturmönster
+@msg no gradient swatch `{name}` ingen gradientfärgruta `{name}`
+@msg no pattern swatch `{name}` ingen mönsterfärgruta `{name}`
+@msg the library item is damaged biblioteksobjektet är skadat
@msg {_1} has no {_2} style {_1} har ingen stil {_2}
@msg a layer couldn't be read ett lager kunde inte läsas
@msg it has more than one artboard den har mer än en rityta
@@ -3741,6 +3774,7 @@ axis Both Båda
@msg its type is to come in as outlines, which only its page has dess text ska importeras som konturer, vilket bara dess sida har
@msg the art on them differs from the page's in {_1}% of it grafiken på dem skiljer sig från sidans i {_1} % av ytan
@msg the art on them differs from the page's in {_1}% of it: they come from its editing data all the same grafiken på dem skiljer sig från sidans i {_1} % av ytan: de hämtas ändå från dess redigeringsdata
+@msg `Custom` stands for changed settings: save the preset under another name `Custom` står för ändrade inställningar: spara förinställningen med ett annat namn
@msg `to` must be "corner" or "smooth" `to` måste vara "corner" eller "smooth"
@msg BMP files are RGB or grayscale: colorModel rgb or gray BMP-filer är RGB eller gråskala: colorModel rgb eller gray
@msg Blend colors: select at least three objects with filled colours Blanda färger: markera minst tre objekt med färgfyllning
@@ -3825,8 +3859,10 @@ axis Both Båda
@msg `freeform.points` must be an array `freeform.points` måste vara en array
@msg `freeform.lines` must be an array `freeform.lines` måste vara en array
@msg `gradient` must be an object `gradient` måste vara ett objekt
+@msg `groupColors` must be an array `groupColors` måste vara en array
@msg `library` is a library id or name (see {list}) `library` är ett biblioteks-id eller biblioteksnamn (se {list})
@msg `mode` applies to freeform gradients `mode` gäller för fria gradienter
+@msg `preserve` must be an object `preserve` måste vara ett objekt
@msg `sampleSize` must be 1, 3 or 5 `sampleSize` måste vara 1, 3 eller 5
@msg `stops` must be an array `stops` måste vara en array
@msg `svg` must be an object of SVG options (see document.formats) `svg` måste vara ett objekt med SVG-alternativ (se document.formats)
@@ -3860,6 +3896,7 @@ axis Both Båda
@msg `{name}` is a process colour: tints apply to global and spot colours `{name}` är en processfärg: nyanser gäller för globala färger och dekorfärger
@msg `{name}` is no recovery entry name `{name}` är inget namn på en återställningspost
@msg `{name}` isn't a colour swatch `{name}` är inte en färgruta
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white en processfärg kan inte färglägga en gråskalebild med genomskinlighet: använd en dekorfärg, svart eller vitt
@msg `{path}` must be a bool or an object of bools `{path}` måste vara ett booleskt värde eller ett objekt med booleska värden
@msg `{s}` is not a colour (#rrggbb or a preset name) `{s}` är inte en färg (#rrggbb eller namnet på en förinställning)
@msg `{tool}` isn't a Liquify tool `{tool}` är inte ett verktyg för Gör flytande
@@ -3905,6 +3942,10 @@ axis Both Båda
@msg a page tree node has no kids en nod i sidträdet har inga barn
@msg a page's placement is not finite en sidas placering är inte ändlig
@msg a preset named `{_1}` exists det finns redan en förinställning med namnet `{_1}`
+@msg `name` is empty `name` är tomt
+@msg `newName` is empty `newName` är tomt
+@msg `{name}` is a built-in preset and can't change: save it under another name `{name}` är en inbyggd förinställning och kan inte ändras: spara den med ett annat namn
+@msg `{name}` is a built-in preset and stays `{name}` är en inbyggd förinställning och kan inte tas bort
@msg a swatch or color group named `{n}` exists det finns redan en färgruta eller färggrupp med namnet `{n}`
@msg a slice size must be a positive number of points en skivstorlek måste vara ett positivt antal punkter
@msg a spine keeps at least two points en ryggrad behåller minst två punkter
@@ -3992,6 +4033,7 @@ axis Both Båda
@msg missing `id` (see plugin.list) `id` saknas (se plugin.list)
@msg missing `name` `name` saknas
@msg missing `tool` `tool` saknas
+@msg missing id id saknas
@msg missing index index saknas
@msg missing number `{key}` talet `{key}` saknas
@msg missing integer `{key}` heltalet `{key}` saknas
@@ -4024,6 +4066,7 @@ axis Both Båda
@msg no current layer inget aktuellt lager
@msg no data inga data
@msg no dialog open ingen dialogruta är öppen
+@msg the open dialog has no Reset den öppna dialogrutan har ingen Återställ-knapp
@msg no document inget dokument
@msg no document open inget dokument är öppet
@msg no effect applied yet ingen effekt har använts än
@@ -4057,6 +4100,8 @@ axis Both Båda
@msg no print service ingen utskriftstjänst
@msg no revert command inget kommando för att återgå
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) ingen sparad PDF-förinställning med namnet `{name}` (inbyggda förinställningar är skrivskyddade: skapa en ny utifrån dem)
+@msg no saved preset named `{name}` ingen sparad förinställning med namnet `{name}`
+@msg no saved preset named `{name}` to rename ingen sparad förinställning med namnet `{name}` att byta namn på
@msg no saved presets inga sparade förinställningar
@msg no saved print preset named `{name}` ({DEFAULT_PRESET} is protected: start a new one from it) ingen sparad utskriftsförinställning med namnet `{name}` ({DEFAULT_PRESET} är skyddad: skapa en ny utifrån den)
@msg no saved profiles inga sparade profiler
@@ -4104,8 +4149,10 @@ axis Both Båda
@msg not an EMF or WMF file inte en EMF- eller WMF-fil
@msg not found hittades inte
@msg not in pattern editing mode inte i läget för mönsterredigering
+@msg finish editing the pattern first slutför redigeringen av mönstret först
@msg nothing encoded inget kodat
@msg nothing selected inget markerat
+@msg nothing selected is in a group inget av det markerade ligger i en grupp
@msg nothing to align inget att justera
@msg nothing to distort inget att förvränga
@msg nothing to export: the document has no visible art (or turn on Use Artboards) inget att exportera: dokumentet har ingen synlig grafik (eller aktivera Använd ritytor)
@@ -4226,10 +4273,14 @@ axis Both Båda
@msg the layer or group is locked lagret eller gruppen är låst
@msg the guide is on a hidden or locked layer stödlinjen ligger på ett dolt eller låst lager
@msg the target layer is locked or hidden mållagret är låst eller dolt
+@msg the object is hidden or locked objektet är dolt eller låst
+@msg the object is outside the isolated group objektet ligger utanför den isolerade gruppen
+@msg type objects can't be isolated textobjekt kan inte isoleras
@msg the layer to flatten into is hidden lagret som ska plattas till i är dolt
@msg the object already has an opacity mask objektet har redan en opacitetsmask
@msg the object has no geometry objektet saknar geometri
@msg the object has no opacity mask objektet har ingen opacitetsmask
+@msg stop editing the opacity mask first sluta redigera opacitetsmasken först
@msg the object has no stroke objektet har ingen kontur
@msg the object is beyond the plane's horizon objektet ligger bortom planets horisont
@msg the object isn't in perspective objektet är inte i perspektiv
@@ -4275,6 +4326,7 @@ axis Both Båda
@msg unknown preset `{name}` (high, medium, low or a saved one: see flattener.presets.list) okänd förinställning `{name}` (high, medium, low eller en sparad: se flattener.presets.list)
@msg unknown preset `{name}` (see flattener.presets.list) okänd förinställning `{name}` (se flattener.presets.list)
@msg unknown preset `{name}` (see webExport.presets.list) okänd förinställning `{name}` (se webExport.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) okänd förinställning `{name}`: varken inbyggd eller sparad (se imageTrace.presets)
@msg unknown side `{other}` (left|right|top|bottom) okänd sida `{other}` (left|right|top|bottom)
@msg unknown tool `{tool}` okänt verktyg `{tool}`
@msg unknown tool `{t}` okänt verktyg `{t}`
@@ -4417,6 +4469,10 @@ axis Both Båda
Shaper Formning
Expand Shaper Group Expandera Shaper-grupp
Release Shaper Group Släpp formgivargrupp
+ Remove from Shaper Group Ta bort från formgivargrupp
+@msg source must be the id of a Shaper Group's original shape source måste vara id för en originalform i en formgivargrupp
+@msg group must be the id of a Shaper Group group måste vara id för en formgivargrupp
+@msg the shape is not an editable original shape of that Shaper Group formen är inte en redigerbar originalform i den formgivargruppen
Select Shaper Face Markera Shaper-yta
Drag art, colors and text styles here to reuse them across documents. Libraries are stored on this machine — no account required. Dra hit grafik, färger och textstilar för att återanvända dem i andra dokument. Biblioteken lagras på den här datorn – inget konto krävs.
1 Color Job 1-färgsjobb
@@ -4461,6 +4517,9 @@ axis Both Båda
@msg not a PSD file inte en PSD-fil
@msg the PSD file has an unknown colour mode ({m}) PSD-filen har ett okänt färgläge ({m})
@msg the PSD file's image data uses an unknown compression ({m}) PSD-filens bilddata använder en okänd komprimering ({m})
+@msg the PCX file is cut short PCX-filen är avkortad
+@msg the PCX file's header is damaged PCX-filens huvud är skadat
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read PCX-filer med {bits}-bitars pixlar i {planes} plan kan inte läsas
@msg the PSD image is too large to read ({_1} × {_2} pixels) PSD-bilden är för stor för att läsas ({_1} × {_2} pixlar)
@msg zipped 32-bit PSD image data with prediction can't be read zippad 32-bitars PSD-bilddata med prediktion kan inte läsas
@msg {depth}-bit PSD files in this colour mode can't be read {depth}-bitars PSD-filer i det här färgläget kan inte läsas
@@ -5245,6 +5304,9 @@ theme Appearance Utseende
Registration: Registreringspunkt:
Reset Horizontal Scale Återställ horisontell skala
Reset Tracking and Kerning Återställ spärrning och kerning
+ Highlight Font Name Framhäv typsnittsnamn
+ Highlight Kerning Framhäv kerning
+ Highlight Tracking Framhäv spärrning
Sample Color from Screen Hämta färg från skärmen
Set as Default Ange som standard
Show Template Visa mall
@@ -5299,6 +5361,7 @@ theme Appearance Utseende
@msg span: "selection" places the gradient itself: leave out `start` and `end` (they already place it in document coordinates) span: "selection" placerar själva gradienten: utelämna `start` och `end` (de placerar den redan i dokumentkoordinater)
@msg the Color Picker is not open färgväljaren är inte öppen
@msg the Simplify slider is not open Förenkla-reglaget är inte öppet
+@msg the Smooth slider is not open Jämna ut-reglaget är inte öppet
@msg the action has no steps åtgärden har inga steg
@msg the file's layers weren't read ({_1}): it comes in as its page, in one layer filens lager lästes inte ({_1}): den hämtas in som en sida, i ett enda lager
@msg the file's layers weren't read from its editing data ({_1}): they come from its PDF part filens lager lästes inte från dess redigeringsdata ({_1}): de kommer från dess PDF-del
@@ -5645,4 +5708,9 @@ axis Y Axis Y-axel
Scale Presets Skalningsförval
@msg a {width}×{height} screenshot's byte count overflows byteantalet för en skärmbild på {width}×{height} överstiger gränsen
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot fönstrets {what} ({points} punkter × {scale} DPI) kan inte bestämma en skärmbilds storlek
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Expandera utseendet först (Objekt › Expandera utseende)
Live preview Direkt förhandsgranskning
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Punkttext
+ Area Text Områdestext
diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs
index a92562e7cb..118ffba7af 100644
--- a/crates/ui-egui/src/i18n/tests.rs
+++ b/crates/ui-egui/src/i18n/tests.rs
@@ -3,6 +3,8 @@ use super::*;
const ZH: fn() -> Lang = || Lang::from_code("zh-hant").expect("zh-hant registered");
+/// Locale tags name their language by region or script (in either case, with an encoding or
+/// modifier), and a tag that names no language resolves to none.
#[test]
fn tags_map_to_languages() {
assert_eq!(lang_from_tag("en_US.UTF-8"), Some(Lang::EN));
@@ -42,7 +44,8 @@ fn tags_map_to_languages() {
assert_eq!(lang_from_tag("_"), None);
}
-/// The Georgian, Ukrainian, Hungarian, Korean, Vietnamese and Swedish tags of [`tags_map_to_languages`].
+/// The Georgian, Ukrainian, Hungarian, Korean, Vietnamese, Swedish and Catalan tags of
+/// [`tags_map_to_languages`].
fn other_tags_map_to_languages() {
for tag in ["ka", "ka-GE", "ka_GE.UTF-8", "KA-ge"] {
assert_eq!(lang_from_tag(tag), Some(ka()), "{tag}");
@@ -62,10 +65,15 @@ fn other_tags_map_to_languages() {
for tag in ["sv", "sv-SE", "sv-FI", "sv_SE.UTF-8", "SV-se"] {
assert_eq!(lang_from_tag(tag), Lang::from_code("sv"), "{tag}");
}
+ // Catalan: Catalonia, Andorra, Northern Catalonia, the Valencian Country and the rest share
+ // the one catalog.
+ for tag in ["ca", "ca-ES", "ca_AD.UTF-8", "CA-es", "ca-FR", "ca-IT", "ca-ES-VALENCIA"] {
+ assert_eq!(lang_from_tag(tag), Lang::from_code("ca"), "{tag}");
+ }
}
-/// Italian, Brazilian Portuguese, Finnish, Turkish and Polish resolve from their locale tags and
-/// preferences, and each language names itself in its own language.
+/// Italian, Brazilian Portuguese, Finnish, Turkish, Catalan and Polish resolve from their locale
+/// tags and preferences, and each language names itself in its own language.
#[test]
fn languages_resolve_from_their_tags_and_name_themselves() {
let lang = |code: &str| Lang::from_code(code).expect("registered");
@@ -74,6 +82,7 @@ fn languages_resolve_from_their_tags_and_name_themselves() {
("pt-br", &["pt-br", "pt_BR.UTF-8", "pt-BR", "pt_BR"]),
("fi", &["fi", "fi-FI", "fi_FI.UTF-8", "FI-fi"]),
("tr", &["tr", "tr-TR", "tr_TR.UTF-8", "TR-tr", "tr-CY"]),
+ ("ca", &["ca", "ca-ES", "ca_AD.UTF-8", "CA-es", "ca-FR", "ca-IT", "ca-ES-VALENCIA"]),
("pl", &["pl", "pl-PL", "pl_PL.UTF-8", "PL-pl"]),
] {
for tag in tags {
@@ -83,21 +92,61 @@ fn languages_resolve_from_their_tags_and_name_themselves() {
// Filipino (`fil`) and Swedish in Finland (`sv-FI`) don't pick Finnish.
assert_ne!(lang_from_tag("fil"), Some(lang("fi")));
assert_ne!(lang_from_tag("sv-FI"), Some(lang("fi")));
- for (pref, code) in [("vi", "vi"), ("VI", "vi"), ("fi", "fi"), ("FI", "fi"), ("tr", "tr"), ("TR", "tr"), ("pt-br", "pt-br"), ("pt-BR", "pt-br")] {
+ for (pref, code) in [
+ ("vi", "vi"),
+ ("VI", "vi"),
+ ("fi", "fi"),
+ ("FI", "fi"),
+ ("tr", "tr"),
+ ("TR", "tr"),
+ ("ca", "ca"),
+ ("CA", "ca"),
+ ("pt-br", "pt-br"),
+ ("pt-BR", "pt-br"),
+ ] {
assert_eq!(Lang::from_pref(pref), lang(code), "{pref}");
}
- for (code, name) in [("vi", "Tiếng Việt"), ("fi", "Suomi"), ("tr", "Türkçe"), ("pt-br", "Português (Brasil)")] {
+ for (code, name) in [("vi", "Tiếng Việt"), ("fi", "Suomi"), ("tr", "Türkçe"), ("ca", "Català"), ("pt-br", "Português (Brasil)")] {
assert_eq!(lang(code).name(), name);
}
}
+/// The Catalan catalog registers under `ca`, claims complete menus and messages, and passes
+/// locale resolution, vocabulary and count formatting checks.
+#[test]
+fn catalan_reads_as_catalan() {
+ let ca = Lang::from_code("ca").expect("ca registered");
+ assert_eq!(ca.name(), "Català");
+ assert!(ca.complete_menus());
+ assert_eq!(Lang::from_pref("ca"), ca);
+ assert_eq!(Lang::from_pref("CA"), ca);
+ for (en, want) in [
+ ("Artboard Tool", "Eina de tauler"),
+ ("Swatches", "Mostres"),
+ ("Stroke", "Traç"),
+ ("Fill", "Farciment"),
+ ("Direct Selection Tool", "Eina de selecció directa"),
+ ("Save As…", "Desa com a…"),
+ ("Undo", "Desfés"),
+ ("Close", "Tanca"),
+ ] {
+ assert_eq!(tr(ca, en), want);
+ }
+ for n in [0, 1, 3, 21] {
+ let noun = if n == 1 { "capa" } else { "capes" };
+ assert_eq!(trn(ca, n, "{n} Layer", "{n} Layers"), format!("{n} {noun}"));
+ }
+ let nested = "command `object.group` is not available right now: nothing selected";
+ assert_eq!(message(ca, nested), "l’ordre `object.group` no està disponible ara mateix: no hi ha res seleccionat");
+}
+
/// Each language counts with its own plural rule: the form a count picks (`one`, then `few`, then
/// `other`/`many`).
#[test]
fn each_language_counts_with_its_plural_rule() {
const COUNTS: [u64; 8] = [0, 1, 2, 3, 5, 11, 21, 22];
for (codes, forms) in [
- (&["de", "es", "it", "pt-br", "fi"][..], [1, 0, 1, 1, 1, 1, 1, 1]),
+ (&["de", "es", "it", "pt-br", "fi", "ca"][..], [1, 0, 1, 1, 1, 1, 1, 1]),
(&["fr"], [0, 0, 1, 1, 1, 1, 1, 1]),
(&["ja", "ka", "hu", "ko", "vi", "tr"], [0; 8]),
(&["ru", "uk"], [2, 0, 1, 1, 2, 2, 0, 1]),
@@ -980,7 +1029,8 @@ fn cs() -> Lang {
}
/// Languages whose catalogs leave [`MENU_KEEP_AS_IS`] in English.
-const KEEPS_MENU_NAMES: [&str; 18] = ["cs", "de", "el", "es", "fr", "hu", "it", "ja", "ka", "ko", "pl", "pt-br", "ru", "sv", "uk", "vi", "fi", "tr"];
+const KEEPS_MENU_NAMES: [&str; 19] =
+ ["cs", "de", "el", "es", "fr", "hu", "it", "ja", "ka", "ko", "pl", "pt-br", "ru", "sv", "uk", "vi", "fi", "tr", "ca"];
/// Menu labels the menu-complete catalogs (Czech, German, Spanish, Italian, Japanese, Brazilian Portuguese) show as they are: the product name, a format name, the built-in workspace
/// names and the perspective grid presets (names, shown untranslated wherever else they appear).
@@ -1566,6 +1616,37 @@ fn blend_spine_param_errors_say_what_is_wrong() {
assert!(matches!(&e, EngineError::BadParams { msg, .. } if msg == "select a blend or give `id`"), "{e}");
}
+/// The errors of saving, renaming and deleting a tracing preset are translated in every language
+/// that translates every message.
+#[test]
+fn saved_tracing_preset_errors_are_translated() {
+ use serde_json::json;
+ use vectorcraft_engine::{EngineError, Session};
+ let mut s = Session::new();
+ s.execute("imageTrace.presets.save", &json!({"name": "Mine"})).unwrap();
+ s.execute("imageTrace.presets.save", &json!({"name": "Other"})).unwrap();
+ let mut errors = vec![];
+ for (cmd, p, want) in [
+ ("imageTrace.presets.save", json!({"name": ""}), "`name` is empty"),
+ ("imageTrace.presets.save", json!({"name": "Mine", "newName": ""}), "`newName` is empty"),
+ ("imageTrace.presets.save", json!({"name": "Other", "newName": "Mine"}), "a preset named `Mine` exists"),
+ ("imageTrace.presets.save", json!({"name": "Default"}), "`Default` is a built-in preset and can't change: save it under another name"),
+ ("imageTrace.presets.delete", json!({"name": "Default"}), "`Default` is a built-in preset and stays"),
+ ("imageTrace.presets.delete", json!({"name": "Gone"}), "no saved preset named `Gone`"),
+ ] {
+ let e = s.execute(cmd, &p).unwrap_err();
+ assert!(matches!(&e, EngineError::BadParams { msg, .. } if msg == want), "{cmd} {p}: {e}");
+ errors.push((e.to_string(), want));
+ }
+ for code in COMPLETE_MESSAGES {
+ let lang = Lang::from_code(code).expect("registered");
+ for (e, want) in &errors {
+ let shown = message(lang, e);
+ assert!(!shown.contains(want), "{code}: {shown}");
+ }
+ }
+}
+
/// The status bar's line for an EPS file whose PostScript stops on an error, opened partly or
/// refused, and the refusal's dialog keep the error's name as PostScript spells it and its meaning,
/// which each language shows as its catalog translates the meaning.
@@ -1636,7 +1717,7 @@ fn shared_param_check_errors_show_their_values_as_given() {
/// Languages whose catalogs translate status and error messages; [`untranslated_report`] lists
/// the messages each one lacks.
const COMPLETE_MESSAGES: &[&str] =
- &["cs", "de", "el", "es", "fr", "hu", "it", "ja", "ka", "ko", "pl", "pt-br", "ru", "sv", "uk", "vi", "zh-hans", "zh-hant", "fi", "tr"];
+ &["cs", "de", "el", "es", "fr", "hu", "it", "ja", "ka", "ko", "pl", "pt-br", "ru", "sv", "uk", "vi", "zh-hans", "zh-hant", "fi", "tr", "ca"];
/// Crates whose error and status messages reach the status bar.
const MESSAGE_CRATES: &[&str] = &["ui-egui", "engine", "doc", "format", "svg", "pdf", "eps", "text", "plugins", "metafile", "cad", "trace"];
diff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsv
index 234e5aa4da..c38a835a20 100644
--- a/crates/ui-egui/src/i18n/tr.tsv
+++ b/crates/ui-egui/src/i18n/tr.tsv
@@ -166,6 +166,8 @@
Anchor Point Bağlantı Noktası
Anchor Point Tool Bağlantı Noktası Aracı
Anchor Points Bağlantı Noktaları
+ "In" Control Points "Giriş" Kontrol Noktaları
+ "Out" Control Points "Çıkış" Kontrol Noktaları
Anchor Points, Handle, and Bounding Box Display Bağlantı Noktaları, Tutamaç ve Sınırlandırma Kutusu Görünümü
Anchor/Path Labels Bağlantı/Yol Etiketleri
Anchors: Çapalar:
@@ -548,6 +550,7 @@ font-technology Variable Değişken
Complexity: Karmaşıklık:
Composite colours are converted to it; separations separate with it when it is a CMYK profile. Bileşik renkler buna dönüştürülür; CMYK profili olduğunda ayrımlar onunla ayrılır.
Compound Path Bileşik Yol
+ Compound Shape Bileşik Şekil
Compress (RLE) Sıkıştır (RLE)
Compress text and line art Metni ve çizgi resmini sıkıştır
Compression Sıkıştırma
@@ -970,7 +973,6 @@ font-technology Variable Değişken
Exit Isolation Mode İzolasyon Modundan Çık
Expand Genişlet
Expand Appearance Görünümü Genişlet
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap Genişletme, yol haritasındaki bileşik şekillere uygulanır (Alt tuşuyla bir şekil moduna tıklayın)
Expand Brush Strokes Fırça Darbelerini Genişlet
Expand Compound Shape Bileşik Şekli Genişlet
Expand Gradient Mesh Degrade Mesh'i Genişlet
@@ -1112,6 +1114,9 @@ font-technology Variable Değişken
Increase Font Size by Five Steps Yazı Tipi Boyutunu Beş Adım Artırın
Reset Tracking and Kerning Takip ve Karakter Aralığını Sıfırla
Reset Horizontal Scale Yatay Ölçeği Sıfırla
+ Highlight Font Name Yazı Tipi Adını Vurgula
+ Highlight Kerning Karakter Aralığını Vurgula
+ Highlight Tracking Takibi Vurgula
Spacing Aralık
Step Type Adım Türü
Fit in View Görünüme Sığdır
@@ -1379,6 +1384,12 @@ font-technology Variable Değişken
Image Trace Görüntü İzleme
Image Tracing Görüntü İzleme
Tracing Presets İzleme Ön Ayarları
+ Manage Presets Ön Ayarları Yönet
+ Save as New Preset… Yeni Ön Ayar Olarak Kaydet…
+ Rename… Yeniden adlandır…
+ Rename Preset Ön Ayarı Yeniden Adlandır
+ Save Image Trace Preset Görüntü İzleme Ön Ayarını Kaydet
+ Delete Image Trace Preset Görüntü İzleme Ön Ayarını Sil
Image Trace Presets Görüntü İzleme Ön Ayarları
Image: Resim:
Images: Görseller:
@@ -1800,6 +1811,10 @@ font-technology Variable Değişken
Outer Corner Tile Dış Köşe Döşemesi
Side Tile Yan Kiremit
Inner Corner Tile İç Köşe Döşemesi
+ Auto-Centered Otomatik Ortalı
+ Auto-Between Otomatik Arada
+ Auto-Sliced Otomatik Dilimli
+ Auto-Overlap Otomatik Örtüşen
Start Tile Döşemeyi Başlat
End Tile Son Döşeme
Fit Uygun
@@ -1833,6 +1848,7 @@ font-technology Variable Değişken
New Brush… Yeni Fırça…
New Calligraphic Brush Yeni Kaligrafi Fırçası
New Character Style Yeni Karakter Stili
+ New Character Style… Yeni Karakter Stili…
New Color Group Yeni Renk Grubu
New Color Group… Yeni Renk Grubu…
New Document Presets Yeni Belge Ön Ayarları
@@ -1847,6 +1863,7 @@ font-technology Variable Değişken
New Opacity Masks Are Clipping Yeni Opaklık Maskeleri Kırpılıyor
New Opacity Masks Are Inverted Yeni Opaklık Maskeleri Ters Çevrildi
New Paragraph Style Yeni Paragraf Stili
+ New Paragraph Style… Yeni Paragraf Stili…
New Pattern Brush from Selection Seçimden Yeni Desen Fırçası
New PDF Preset Yeni PDF Hazır Ayarı
New Print Preset Yeni Yazdırma Ön Ayarı
@@ -1860,6 +1877,8 @@ font-technology Variable Değişken
New View Yeni Görünüm
New View… Yeni Görünüm…
New Window Yeni Pencere
+ Next Document Sonraki Belge
+ Previous Document Önceki Belge
New Workspace Yeni Çalışma Alanı
New Workspace… Yeni Çalışma Alanı…
New {kind} Style… Yeni {kind} Stili…
@@ -1959,7 +1978,8 @@ font-technology Variable Değişken
Opacity: Default Opaklık: Varsayılan
Opacity: {value} Opaklık: {value}
Opaque Opak
- Open Açık
+ Open Aç
+shape Open Açık
Open a document to edit its patterns. Desenlerini düzenlemek için bir belge açın.
Open a document to navigate it. Gezinmek için bir belge açın.
Open a document to preview its flattening. Düzleştirilmesinin önizlemesini görmek için bir belge açın.
@@ -2145,7 +2165,7 @@ font-technology Variable Değişken
Pie Graph Tool Pasta Grafik Aracı
Pixel Preview Piksel Önizlemesi
Pixels Piksel
- Place Yer
+ Place Yerleştir
Place DXF DXF'yi yerleştir
Place onto a new locked, dimmed template layer below the current layer Geçerli katmanın altındaki yeni kilitli, soluk şablon katmanına yerleştirin
Place PDF PDF'yi yerleştir
@@ -2716,6 +2736,7 @@ font-technology Variable Değişken
X11 (XWayland) When a Pen Is Attached Kalem Takıldığında X11 (XWayland)
Apply {name} “{name}” Stilini Uygula
Redefine {name} “{name}” Stilini Yeniden Tanımla
+@msg `Custom` stands for changed settings: save the preset under another name `Custom` değiştirilmiş ayarları ifade eder: ön ayarı başka bir adla kaydedin
@msg `{key}` must be an array of these names: {_1} "{key}" şu adlardan oluşan bir dizi olmalıdır: {_1}
Search commands and tools Komutları ve araçları arayın
Search commands and tools… Komutları ve araçları arayın…
@@ -2799,6 +2820,7 @@ font-technology Variable Değişken
Shape Builder Regions Şekil Oluşturucu Bölgeleri
Shape Builder Tool Şekil Oluşturucu Aracı
Shape Effects Şekil Efektleri
+ Shape Mode Şekil Modu
Shape Modes: Şekil Modları:
Shape Properties: Şekil Özellikleri:
Shaper Tool Şekillendirici Aracı
@@ -2891,6 +2913,7 @@ font-technology Variable Değişken
Simplify Basitleştir
Simplify: Basitleştirin:
Simplify… Basitleştir…
+ Smooth… Düzgünleştir…
Simulate Colored Paper Renkli Kağıdı Simüle Et
Simulate Paper Kağıdı Simüle Et
Double Column Çift Sütun
@@ -2898,6 +2921,7 @@ font-technology Variable Değişken
Single Quotes: Tek Alıntılar:
Single Right Quotation Mark Tek Sağ Tırnak İşareti
Single-line Composer Tek Satır Oluşturucu
+ Toggle Line Composer Satır Oluşturucuyu Değiştir
Sixth Space Altıncı Uzay
Size Boyut
Size Tile to Art Sanata Boyut Döşeme
@@ -3009,6 +3033,11 @@ font-technology Variable Değişken
Stroke Kontur
Stroke (X), double-click for the Color Picker Kontur (X), Renk Seçici için çift tıklayın
Stroke Color Kontur Rengi
+ Fill Gradient Dolgu Degradesi
+ Stroke Gradient Kontur Degradesi
+ Fill Pattern Dolgu Deseni
+ Stroke Pattern Kontur Deseni
+ Patterns Desenler
Stroke Options Kontur Seçenekleri
Character: Karakter:
Character options Karakter seçenekleri
@@ -3287,6 +3316,7 @@ font-technology Variable Değişken
Unlock Guides Kılavuzların Kilidini Aç
Unnamed Objects Adsız Nesneler
Unprintable margin: Yazdırılamayan kenar boşluğu:
+ Unselected Artwork Seçili Olmayan Sanat Eserleri
Unshift Kaydırmayı kaldır
Untitled İsimsiz
Update Link Bağlantıyı Güncelle
@@ -3612,6 +3642,13 @@ axis Both Her İkisi
Float Tool Group Araç Grubunu Yüzer Yap
@msg no library `{id}` `{id}` kütüphanesi yok
@msg select some type first önce bir tür seçin
+@msg the selection has no gradient fill seçimin degrade dolgusu yok
+@msg the selection has no gradient stroke seçimin degrade konturu yok
+@msg the selection has no pattern fill seçimin desen dolgusu yok
+@msg the selection has no pattern stroke seçimin desen konturu yok
+@msg no gradient swatch `{name}` degrade renk örneği yok `{name}`
+@msg no pattern swatch `{name}` desen renk örneği yok `{name}`
+@msg the library item is damaged kitaplık öğesi bozuk
@msg {_1} has no {_2} style {_1}'nin {_2} stili yok
@msg a layer couldn't be read bir katman okunamadı
@msg it has more than one artboard birden fazla çalışma yüzeyi var
@@ -3711,8 +3748,10 @@ axis Both Her İkisi
@msg `freeform.points` must be an array "freeform.points" bir dizi olmalıdır
@msg `freeform.lines` must be an array "freeform.lines" bir dizi olmalıdır
@msg `gradient` must be an object "gradyan" bir nesne olmalıdır
+@msg `groupColors` must be an array `groupColors` bir dizi olmalıdır
@msg `library` is a library id or name (see {list}) 'kitaplık' bir kitaplık kimliği veya adıdır (bkz. {list})
@msg `mode` applies to freeform gradients "mod" serbest biçimli degradeler için geçerlidir
+@msg `preserve` must be an object `preserve` bir nesne olmalıdır
@msg `sampleSize` must be 1, 3 or 5 "sampleSize" 1, 3 veya 5 olmalıdır
@msg `stops` must be an array "duraklar" bir dizi olmalıdır
@msg `svg` must be an object of SVG options (see document.formats) `svg`, SVG seçeneklerinin bir nesnesi olmalıdır (bkz. document.formats)
@@ -3744,6 +3783,7 @@ axis Both Her İkisi
@msg `{name}` is a process colour: tints apply to global and spot colours `{name}` bir proses renktir: renk tonları global ve spot renklere uygulanır
@msg `{name}` is no recovery entry name `{name}`, kurtarma girişi adı değil
@msg `{name}` isn't a colour swatch `{name}` bir renk örneği değil
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white proses renk, saydamlık içeren gri tonlamalı bir görüntüyü renklendiremez: spot renk, siyah veya beyaz kullanın
@msg `{path}` must be a bool or an object of bools `{path}` bir bool veya bool nesnesi olmalıdır
@msg `{s}` is not a colour (#rrggbb or a preset name) `{s}` bir renk değildir (#rrggbb veya önceden ayarlanmış bir ad)
@msg `{tool}` isn't a Liquify tool `{tool}` bir Sıvılaştırma aracı değil
@@ -3769,6 +3809,10 @@ axis Both Her İkisi
@msg a page tree node has no kids sayfa ağacı düğümünün çocuğu yok
@msg a page's placement is not finite bir sayfanın yerleşimi sınırlı değildir
@msg a preset named `{_1}` exists `{_1}` adında bir ön ayar mevcut
+@msg `name` is empty `name` boş
+@msg `newName` is empty `newName` boş
+@msg `{name}` is a built-in preset and can't change: save it under another name `{name}` yerleşik bir ön ayardır ve değiştirilemez: başka bir adla kaydedin
+@msg `{name}` is a built-in preset and stays `{name}` yerleşik bir ön ayardır ve silinemez
@msg a slice size must be a positive number of points dilim boyutu pozitif sayıda nokta olmalıdır
@msg a stream runs past the end bir akış sonundan geçiyor
@msg a stream's length is wrong bir akışın uzunluğu yanlış
@@ -3857,6 +3901,7 @@ axis Both Her İkisi
@msg missing `id` (see plugin.list) `kimlik` eksik (bkz. eklenti.liste)
@msg missing `name` "isim" eksik
@msg missing `tool` 'araç' eksik
+@msg missing id id eksik
@msg missing index eksik dizin
@msg New Window isn't available yet: a document opens in one window Yeni Pencere henüz kullanılamıyor: bir belge tek pencerede açılır
@msg name the file dosyayı adlandırın
@@ -3885,6 +3930,7 @@ axis Both Her İkisi
@msg no current layer geçerli katman yok
@msg no data veri yok
@msg no dialog open iletişim kutusu açık değil
+@msg the open dialog has no Reset açık iletişim kutusunda Sıfırla düğmesi yok
@msg no document belge yok
@msg no document open hiçbir belge açık değil
@msg no effect applied yet henüz hiçbir efekt uygulanmadı
@@ -3918,6 +3964,8 @@ axis Both Her İkisi
@msg no print service baskı hizmeti yok
@msg no revert command geri alma komutu yok
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) `{name}` adında kayıtlı bir PDF hazır ayarı yok (yerleşik hazır ayarlar salt okunurdur: onlardan yeni bir tane başlatın)
+@msg no saved preset named `{name}` `{name}` adında kayıtlı bir ön ayar yok
+@msg no saved preset named `{name}` to rename yeniden adlandırılacak `{name}` adında kayıtlı bir ön ayar yok
@msg no saved presets kayıtlı ön ayar yok
@msg no saved print preset named `{name}` ({DEFAULT_PRESET} is protected: start a new one from it) `{name}` adında kayıtlı bir yazdırma ön ayarı yok ({DEFAULT_PRESET} korumalı: ondan yeni bir tane başlatın)
@msg no saved profiles kayıtlı profil yok
@@ -3962,8 +4010,10 @@ axis Both Her İkisi
@msg not an RTF file: it doesn't start with {\\rtf bir RTF dosyası değil: {\\rtf ile başlamıyor
@msg not found bulunamadı
@msg not in pattern editing mode desen düzenleme modunda değil
+@msg finish editing the pattern first önce deseni düzenlemeyi bitir
@msg nothing encoded kodlanmış hiçbir şey yok
@msg nothing selected hiçbir şey seçilmedi
+@msg nothing selected is in a group seçilenlerin hiçbiri bir grupta değil
@msg nothing to align hizalanacak hiçbir şey yok
@msg nothing to distort çarpıtılacak hiçbir şey yok
@msg nothing to export: the document has no visible art (or turn on Use Artboards) dışa aktarılacak bir şey yok: belgede görünür resim yok (veya Çalışma Yüzeylerini Kullan'ı açın)
@@ -4080,10 +4130,14 @@ axis Both Her İkisi
@msg the layer or group is locked katman veya grup kilitli
@msg the guide is on a hidden or locked layer kılavuz gizli veya kilitli bir katmandadır
@msg the target layer is locked or hidden hedef katman kilitli veya gizli
+@msg the object is hidden or locked nesne gizli veya kilitli
+@msg the object is outside the isolated group nesne izole edilen grubun dışında
+@msg type objects can't be isolated metin nesneleri izole edilemez
@msg the layer to flatten into is hidden düzleştirilecek katman gizli
@msg the object already has an opacity mask nesnenin zaten bir opaklık maskesi var
@msg the object has no geometry nesnenin geometrisi yoktur
@msg the object has no opacity mask nesnenin opaklık maskesi yok
+@msg stop editing the opacity mask first önce opaklık maskesini düzenlemeyi durdur
@msg the object has no stroke nesnenin konturu yok
@msg the object is beyond the plane's horizon nesne uçağın ufkunun ötesinde
@msg the object isn't in perspective nesne perspektifte değil
@@ -4128,6 +4182,7 @@ axis Both Her İkisi
@msg unknown preset `{name}` (high, medium, low or a saved one: see flattener.presets.list) bilinmeyen ön ayar `{name}` (yüksek, orta, düşük veya kaydedilmiş bir ayar: bkz. flattener.presets.list)
@msg unknown preset `{name}` (see flattener.presets.list) bilinmeyen ön ayar `{name}` (bkz. düzleştirici.presets.list)
@msg unknown preset `{name}` (see webExport.presets.list) bilinmeyen ön ayar `{name}` (bkz. webExport.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) bilinmeyen ön ayar `{name}`: yerleşik ya da kayıtlı bir ön ayar değil (bkz. imageTrace.presets)
@msg unknown side `{other}` (left|right|top|bottom) bilinmeyen taraf `{other}` (sol|sağ|üst|alt)
@msg unknown tool `{tool}` bilinmeyen araç `{tool}`
@msg unknown tool `{t}` bilinmeyen araç `{t}`
@@ -4263,6 +4318,10 @@ axis Both Her İkisi
Shaper Şekillendirici
Expand Shaper Group Shaper Grubunu Genişlet
Release Shaper Group Şekillendirici Grubunu Yayınla
+ Remove from Shaper Group Şekillendirici Grubundan Kaldır
+@msg source must be the id of a Shaper Group's original shape source, bir Şekillendirici Grubunun özgün şeklinin kimliği olmalıdır
+@msg group must be the id of a Shaper Group group, bir Şekillendirici Grubunun kimliği olmalıdır
+@msg the shape is not an editable original shape of that Shaper Group şekil, o Şekillendirici Grubunun düzenlenebilir özgün şekli değil
Select Shaper Face Şekillendirici Yüz'ü seçin
Drag art, colors and text styles here to reuse them across documents. Libraries are stored on this machine — no account required. Resimleri, renkleri ve metin stillerini belgelerde yeniden kullanmak için buraya sürükleyin. Kitaplıklar bu makinede depolanır; hesap gerekmez.
1 Color Job 1 Renk İşi
@@ -4302,6 +4361,9 @@ axis Both Her İkisi
@msg not a PSD file PSD dosyası değil
@msg the PSD file has an unknown colour mode ({m}) PSD dosyasında bilinmeyen bir renk modu var ({m})
@msg the PSD file's image data uses an unknown compression ({m}) PSD dosyasının görüntü verileri bilinmeyen bir sıkıştırma kullanıyor ({m})
+@msg the PCX file is cut short PCX dosyası kısa kesildi
+@msg the PCX file's header is damaged PCX dosyasının başlığı bozuk
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read {planes} düzlemde {bits}-bit pikseller içeren PCX dosyaları okunamaz
@msg the PSD image is too large to read ({_1} × {_2} pixels) PSD görüntüsü okunamayacak kadar büyük ({_1} × {_2} piksel)
@msg zipped 32-bit PSD image data with prediction can't be read Tahmin içeren sıkıştırılmış 32 bit PSD görüntü verileri okunamıyor
@msg {depth}-bit PSD files in this colour mode can't be read Bu renk modunda {depth}-bit PSD dosyaları okunamaz
@@ -5244,11 +5306,13 @@ theme Appearance Görünüm
@msg nothing in data set {name} was applied: no object is bound to a variable it has a value for {name} veri kümesinden hiçbir şey uygulanmadı: değer içerdiği bir değişkene bağlı hiçbir nesne yok
@msg select an Objects on Path group bir Yol Üzerindeki Nesneler grubu seçin
@msg the Simplify slider is not open Basitleştirme kaydırıcısı açık değil
+@msg the Smooth slider is not open Düzgünleştirme kaydırıcısı açık değil
@msg {_1} is an exporter (File › Export › Export As…) {_1} bir dışa aktarma eklentisidir (Dosya › Dışa Aktar › Farklı Dışa Aktar…)
@msg `documentData` is {size} bytes (limit {MAX_DOCUMENT_DATA}) `documentData` {size} bayt (sınır {MAX_DOCUMENT_DATA})
Alt key toggles to Smooth Tool Alt tuşu Düzleştirme Aracına geçiş yapar
Live curve fitting Çizerken eğri uydurma
Auto-Simplify Otomatik Basitleştir
+ Auto-Smooth Otomatik Düzgünleştir
Drag an item here, or right-click one, to put it in this group. Bu gruba eklemek için bir öğeyi buraya sürükleyin veya sağ tıklayın.
Drop here to take it out of its group Grup dışına çıkarmak için buraya bırakın
Locate Selected Objects Seçili Nesneleri Bul
@@ -5578,4 +5642,9 @@ axis Y Axis Y ekseni
Scale Presets Ölçek ön ayarları
@msg a {width}×{height} screenshot's byte count overflows {width}×{height} ekran görüntüsünün bayt sayısı taşıyor
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot pencerenin {what} ({points} nokta × {scale} DPI) bir ekran görüntüsünü boyutlandıramaz
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Önce görünümü genişletin (Nesne › Görünümü Genişlet)
Live preview Canlı önizleme
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Nokta Metni
+ Area Text Alan Metni
diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsv
index 5331e414b0..b4c2818b4b 100644
--- a/crates/ui-egui/src/i18n/uk.tsv
+++ b/crates/ui-egui/src/i18n/uk.tsv
@@ -175,6 +175,8 @@
Anchor Point Опорна точка
Anchor Point Tool Інструмент «Опорна точка»
Anchor Points Опорні точки
+ "In" Control Points «Вхідні» контрольні точки
+ "Out" Control Points «Вихідні» контрольні точки
Anchor Points, Handle, and Bounding Box Display Відображення опорних точок, маркерів та обмежувальної рамки
Anchor/Path Labels Мітки опорних точок/контурів
Anchors: Опорні точки:
@@ -561,6 +563,7 @@ font-technology Variable Варіативні
Complexity: Складність:
Composite colours are converted to it; separations separate with it when it is a CMYK profile. Складові кольори перетворюються за цим профілем; кольороподіл також виконується за ним, якщо це профіль CMYK.
Compound Path Складений контур
+ Compound Shape Складена фігура
Compress (RLE) Стиснути (RLE)
Compress text and line art Стискати текст та штриховий малюнок
Compression Стиснення
@@ -987,7 +990,6 @@ font-technology Variable Варіативні
Exit Isolation Mode Вийти з режиму ізоляції
Expand Розібрати
Expand Appearance Розібрати оформлення
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap «Розібрати» застосовується до складених фігур (Alt+клацання за режимом фігури) — у плані розвитку
Expand Brush Strokes Розібрати мазки пензля
Expand Compound Shape Розібрати складену фігуру
Expand Gradient Mesh Розібрати градієнтну сітку
@@ -1147,6 +1149,9 @@ font-technology Variable Варіативні
Increase Font Size by Five Steps Збільшити розмір шрифту на п’ять кроків
Reset Tracking and Kerning Скинути трекінг і кернінг
Reset Horizontal Scale Скинути масштаб по горизонталі
+ Highlight Font Name Виділити назву шрифту
+ Highlight Kerning Виділити кернінг
+ Highlight Tracking Виділити трекінг
Spacing Інтервал
Step Type Підганяти текст кроками
Fit in View Вписати у вигляд
@@ -1546,6 +1551,12 @@ file-filter Templates Шаблони
Image Trace Трасування зображення
Image Tracing Об’єкт трасування зображення
Tracing Presets Набори трасування
+ Manage Presets Керування наборами
+ Save as New Preset… Зберегти як новий набір…
+ Rename… Перейменувати…
+ Rename Preset Перейменувати набір
+ Save Image Trace Preset Зберегти набір трасування зображення
+ Delete Image Trace Preset Видалити набір трасування зображення
Image Trace Presets Набір трасування зображення
Image: Зображення:
Images: Зображення:
@@ -1978,6 +1989,10 @@ file-filter Templates Шаблони
Outer Corner Tile Фрагмент зовнішнього кута
Side Tile Бічний фрагмент
Inner Corner Tile Фрагмент внутрішнього кута
+ Auto-Centered Авто: по центру
+ Auto-Between Авто: між
+ Auto-Sliced Авто: зріз
+ Auto-Overlap Авто: перекриття
Start Tile Початковий фрагмент
End Tile Кінцевий фрагмент
Fit Припасування
@@ -2026,6 +2041,7 @@ file-filter Templates Шаблони
Brush Art Малюнок пензля
New Calligraphic Brush Новий каліграфічний пензель
New Character Style Новий стиль символу
+ New Character Style… Новий стиль символу…
New Color Group Нова колірна група
New Color Group… Нова колірна група…
New Document Presets Набір нових документів
@@ -2041,6 +2057,7 @@ file-filter Templates Шаблони
New Opacity Masks Are Clipping Нові маски непрозорості відсікають
New Opacity Masks Are Inverted Нові маски непрозорості інвертуються
New Paragraph Style Новий стиль абзацу
+ New Paragraph Style… Новий стиль абзацу…
New Pattern Brush from Selection Новий візерунковий пензель з виділеного
New PDF Preset Новий набір PDF
New Print Preset Новий набір друку
@@ -2054,6 +2071,8 @@ file-filter Templates Шаблони
New View Новий вигляд
New View… Новий вигляд…
New Window Нове вікно
+ Next Document Наступний документ
+ Previous Document Попередній документ
New Without Dialog Створити без діалогового вікна
New Workspace Нове робоче середовище
New Workspace… Нове робоче середовище…
@@ -2901,6 +2920,7 @@ mark-style Japanese Японський
Locked Заблоковані
Hidden Приховані
Filter Layers Panel Rows Фільтрувати рядки панелі «Шари»
+@msg `Custom` stands for changed settings: save the preset under another name `Custom` позначає змінені параметри: збережіть набір під іншим ім’ям
@msg `{key}` must be an array of these names: {_1} `{key}` має бути масивом цих назв: {_1}
Search commands and tools Пошук команд та інструментів
Search commands and tools… Пошук команд та інструментів…
@@ -2984,6 +3004,7 @@ mark-style Japanese Японський
Shape Builder Regions Області створення фігур
Shape Builder Tool Інструмент «Створення фігур»
Shape Effects Ефекти форми
+ Shape Mode Режим фігури
Shape Modes: Режими фігур:
Shape Properties: Властивості фігури:
Shaper Tool Інструмент «Формоутворення»
@@ -3042,6 +3063,7 @@ mark-style Japanese Японський
Show Original Path Показати початковий контур
Open this dialog with these settings next time Наступного разу відкривати це діалогове вікно з цими параметрами
Auto-Simplify Автоматичне спрощення
+ Auto-Smooth Автоматичне згладжування
Color Panel Options Параметри панелі «Колір»
Show Package Показати пакет
Show Panel Показати панель
@@ -3078,6 +3100,7 @@ mark-style Japanese Японський
Simplify Спростити
Simplify: Спростити:
Simplify… Спростити…
+ Smooth… Згладити…
Simulate Colored Paper Імітувати кольоровий папір
Simulate Paper Імітувати папір
Double Column Подвійний стовпець
@@ -3085,6 +3108,7 @@ mark-style Japanese Японський
Single Quotes: Одинарні лапки:
Single Right Quotation Mark Одинарна лапка, що закриває
Single-line Composer Однорядковий компонувальник
+ Toggle Line Composer Переключити компонувальник рядків
Sixth Space Шоста шпація
Size Розмір
Size Tile to Art Підігнати плитку за малюнком
@@ -3199,6 +3223,11 @@ effect Points Точки
Stroke Обведення
Stroke (X), double-click for the Color Picker Обведення (X), двічі клацніть на палітрі кольорів
Stroke Color Колір обведення
+ Fill Gradient Градієнт заливки
+ Stroke Gradient Градієнт обведення
+ Fill Pattern Візерунок заливки
+ Stroke Pattern Візерунок обведення
+ Patterns Візерунки
Stroke Options Параметри обведення
Character: Символ:
Character options Параметри символу
@@ -3490,6 +3519,7 @@ effect Points Точки
Unlock Guides Розблокувати напрямні
Unnamed Objects Об’єкти без імені
Unprintable margin: Недруковане поле:
+ Unselected Artwork Невиділений малюнок
Unshift Скасувати зсув
Untitled Без назви
Update Link Оновити зв’язок
@@ -3823,6 +3853,13 @@ axis Both Обидві
Float Tool Group Від’єднати групу інструментів
@msg no library `{id}` немає бібліотеки `{id}`
@msg select some type first спочатку виділіть текст
+@msg the selection has no gradient fill виділення не має градієнтної заливки
+@msg the selection has no gradient stroke виділення не має градієнтного обведення
+@msg the selection has no pattern fill виділення не має візерункової заливки
+@msg the selection has no pattern stroke виділення не має візерункового обведення
+@msg no gradient swatch `{name}` немає градієнтного зразка `{name}`
+@msg no pattern swatch `{name}` немає зразка візерунка `{name}`
+@msg the library item is damaged елемент бібліотеки пошкоджено
@msg {_1} has no {_2} style {_1} не має накреслення {_2}
@msg a layer couldn't be read не вдалося прочитати шар
@msg it has more than one artboard у ньому кілька монтажних областей
@@ -3929,8 +3966,10 @@ axis Both Обидві
@msg `freeform.points` must be an array `freeform.points` має бути масивом
@msg `freeform.lines` must be an array `freeform.lines` має бути масивом
@msg `gradient` must be an object `gradient` має бути об’єктом
+@msg `groupColors` must be an array `groupColors` має бути масивом
@msg `library` is a library id or name (see {list}) `library` — це ідентифікатор або ім’я бібліотеки (див. {list})
@msg `mode` applies to freeform gradients `mode` застосовується до довільних градієнтів
+@msg `preserve` must be an object `preserve` має бути об’єктом
@msg `sampleSize` must be 1, 3 or 5 `sampleSize` має бути 1, 3 або 5
@msg `stops` must be an array `stops` має бути масивом
@msg `svg` must be an object of SVG options (see document.formats) `svg` має бути об’єктом параметрів SVG (див. document.formats)
@@ -3965,6 +4004,7 @@ axis Both Обидві
@msg `{name}` is a process colour: tints apply to global and spot colours `{name}` — складовий колір: відтінки застосовуються до глобальних та плашкових кольорів.
@msg `{name}` is no recovery entry name `{name}` не є ім’ям запису відновлення
@msg `{name}` isn't a colour swatch `{name}` не є колірним зразком
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white складовий колір не може розфарбувати зображення у відтінках сірого з прозорістю: використайте плашковий колір, чорний або білий
@msg `{path}` must be a bool or an object of bools `{path}` має бути логічним значенням чи об’єктом логічних значень
@msg `{s}` is not a colour (#rrggbb or a preset name) `{s}` не є кольором (#rrggbb або ім’ям набору)
@msg `{tool}` isn't a Liquify tool `{tool}` не є інструментом пластики
@@ -4010,6 +4050,10 @@ axis Both Обидві
@msg a page tree node has no kids вузол дерева сторінок не має нащадків
@msg a page's placement is not finite розміщення сторінки не звісно
@msg a preset named `{_1}` exists набір з іменем `{_1}` вже існує
+@msg `name` is empty параметр `name` порожній
+@msg `newName` is empty параметр `newName` порожній
+@msg `{name}` is a built-in preset and can't change: save it under another name вбудований набір `{name}` не можна змінити: збережіть його під іншим ім’ям
+@msg `{name}` is a built-in preset and stays вбудований набір `{name}` не можна видалити
@msg a swatch or color group named `{n}` exists зразок або колірна група з ім’ям `{n}` вже існує
@msg a slice size must be a positive number of points розмір фрагмента має бути позитивним числом пунктів
@msg a spine keeps at least two points вісь зберігає як мінімум дві точки
@@ -4029,6 +4073,7 @@ axis Both Обидві
@msg videoRulerPixelAspectRatio must be a number from 0.1 to 10 videoRulerPixelAspectRatio має бути числом від 0,1 до 10
@msg the Color Picker is not open палітра кольорів не відкрита
@msg the Simplify slider is not open повзунок «Спростити» не відкрито
+@msg the Smooth slider is not open повзунок «Згладити» не відкрито
@msg the screen color sampler is already open засіб вибору кольору з екрана вже відкритий
@msg this system has no screen color sampler у цій системі немає засобу вибору кольору з екрана
@msg bad colour `{hex}` (#rrggbb) неприпустимий колір `{hex}` (#rrggbb)
@@ -4101,6 +4146,7 @@ axis Both Обидві
@msg missing `id` (see plugin.list) відсутня `id` (див. plugin.list)
@msg missing `name` відсутня `name`
@msg missing `tool` відсутня `tool`
+@msg missing id відсутній id
@msg missing index відсутня index
@msg missing number `{key}` відсутнє число `{key}`
@msg missing integer `{key}` відсутнє ціле число `{key}`
@@ -4133,6 +4179,7 @@ axis Both Обидві
@msg no current layer немає поточного шару
@msg no data немає даних
@msg no dialog open немає відкритого діалогового вікна
+@msg the open dialog has no Reset у відкритому діалоговому вікні немає кнопки «Скинути»
@msg no document немає документа
@msg no document open немає відкритого документа
@msg no effect applied yet ефект ще не застосований
@@ -4166,6 +4213,8 @@ axis Both Обидві
@msg no print service немає служби друку
@msg no revert command немає команди повернення
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) немає збереженого набору PDF з ім’ям `{name}` (вбудовані набори доступні лише для читання: створіть новий на їх основі)
+@msg no saved preset named `{name}` немає збереженого набору з ім’ям `{name}`
+@msg no saved preset named `{name}` to rename немає збереженого набору з ім’ям `{name}` для перейменування
@msg no saved presets немає збережених наборів
@msg no saved print preset named `{name}` ({DEFAULT_PRESET} is protected: start a new one from it) немає збереженого набору друку з іменем `{name}` ({DEFAULT_PRESET} захищений: створіть новий на його основі)
@msg no saved profiles немає збережених профілів
@@ -4213,8 +4262,10 @@ axis Both Обидві
@msg not an EMF or WMF file не є файлом EMF або WMF
@msg not found не знайдено
@msg not in pattern editing mode не в режимі редагування візерунка
+@msg finish editing the pattern first спочатку завершіть редагування візерунка
@msg nothing encoded нічого не закодовано
@msg nothing selected нічого не виділено
+@msg nothing selected is in a group нічого з виділеного не перебуває в групі
@msg nothing to align нічого вирівнювати
@msg nothing to distort нічого спотворювати
@msg nothing to export: the document has no visible art (or turn on Use Artboards) нема чого експортувати: у документі немає видимого малюнка (або увімкніть «Використовувати монтажні області»)
@@ -4341,10 +4392,14 @@ axis Both Обидві
@msg the layer or group is locked шар чи група заблоковані
@msg the guide is on a hidden or locked layer напрямна розташована на прихованому або заблокованому шарі
@msg the target layer is locked or hidden цільовий шар заблокований або прихований
+@msg the object is hidden or locked об’єкт прихований або заблокований
+@msg the object is outside the isolated group об’єкт поза ізольованою групою
+@msg type objects can't be isolated текстові об’єкти не можна ізолювати
@msg the layer to flatten into is hidden шар для об’єднання прихований
@msg the object already has an opacity mask об’єкт вже має маску непрозорості.
@msg the object has no geometry об’єкт не має геометрії
@msg the object has no opacity mask об’єкт не має маски непрозорості
+@msg stop editing the opacity mask first спочатку припиніть редагування маски непрозорості
@msg the object has no stroke об’єкт не має обведення
@msg the object is beyond the plane's horizon об’єкт знаходиться за горизонтом площини
@msg the object isn't in perspective об’єкт не в перспективі
@@ -4390,6 +4445,7 @@ axis Both Обидві
@msg unknown preset `{name}` (high, medium, low or a saved one: see flattener.presets.list) невідомий набір `{name}` (high, medium, low або збережений: див. flattener.presets.list)
@msg unknown preset `{name}` (see flattener.presets.list) невідомий набір `{name}` (див. flattener.presets.list)
@msg unknown preset `{name}` (see webExport.presets.list) невідомий набір `{name}` (див. webExport.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) невідомий набір `{name}`: не вбудований і не збережений (див. imageTrace.presets)
@msg unknown side `{other}` (left|right|top|bottom) невідома сторона `{other}` (left|right|top|bottom)
@msg unknown tool `{tool}` невідомий інструмент `{tool}`
@msg unknown tool `{t}` невідомий інструмент `{t}`
@@ -4532,6 +4588,10 @@ axis Both Обидві
Shaper Формоутворення
Expand Shaper Group Розібрати групу формоутворення
Release Shaper Group Звільнити групу формоутворення
+ Remove from Shaper Group Вилучити з групи формоутворення
+@msg source must be the id of a Shaper Group's original shape source має бути ідентифікатором вихідної фігури групи формоутворення
+@msg group must be the id of a Shaper Group group має бути ідентифікатором групи формоутворення
+@msg the shape is not an editable original shape of that Shaper Group фігура не є редагованою вихідною фігурою цієї групи формоутворення
Select Shaper Face Виділити область формоутворення
Constrain Обмежити
Free Transform Вільне трансформування
@@ -4564,6 +4624,9 @@ axis Both Обидві
@msg not a PSD file це не документ PSD
@msg the PSD file has an unknown colour mode ({m}) файл PSD має невідомий колірний режим ({m})
@msg the PSD file's image data uses an unknown compression ({m}) дані зображення файлу PSD використовують невідоме стиснення ({m})
+@msg the PCX file is cut short файл PCX обрізаний
+@msg the PCX file's header is damaged заголовок файлу PCX пошкоджений
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read файли PCX з {bits}-бітними пікселями в {planes} площинах не читаються
@msg the PSD image is too large to read ({_1} × {_2} pixels) зображення PSD завелике для читання ({_1} × {_2} пікс.)
@msg zipped 32-bit PSD image data with prediction can't be read 32-бітні дані зображення PSD зі стисненням ZIP із передбаченням не читаються
@msg {depth}-bit PSD files in this colour mode can't be read {depth}-бітні файли PSD у цьому колірному режимі не читаються
@@ -5217,4 +5280,9 @@ axis Y Axis Вісь Y
Scale Presets Набори масштабу
@msg a {width}×{height} screenshot's byte count overflows кількість байтів знімка {width}×{height} переповнюється
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot {what} вікна ({points} пунктів × {scale} DPI) не дозволяє задати розмір знімка
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Спочатку розберіть оформлення (Об’єкт › Розібрати оформлення)
Live preview Перегляд у реальному часі
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Точковий текст
+ Area Text Текст в області
diff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsv
index dac51ce998..5f2d2926e7 100644
--- a/crates/ui-egui/src/i18n/vi.tsv
+++ b/crates/ui-egui/src/i18n/vi.tsv
@@ -197,6 +197,8 @@
Anchor Point Điểm neo
Anchor Point Tool Công cụ Điểm neo
Anchor Points Các điểm neo
+ "In" Control Points Điểm điều khiển "vào"
+ "Out" Control Points Điểm điều khiển "ra"
Anchor Points, Handle, and Bounding Box Display Hiển thị điểm neo, tay nắm và hộp giới hạn
Anchor/Path Labels Nhãn điểm neo/đường dẫn
Anchors: Điểm neo:
@@ -655,6 +657,7 @@ font-technology Variable Biến thiên
Complexity: Độ phức tạp:
Composite colours are converted to it; separations separate with it when it is a CMYK profile. Màu tổng hợp được chuyển sang đây; tách màu sẽ tách với nó khi là hồ sơ CMYK.
Compound Path Đường dẫn phức
+ Compound Shape Hình phức hợp
Compress (RLE) Nén (RLE)
Compress text and line art Nén văn bản và đường nét
Compression Nén
@@ -1150,7 +1153,6 @@ font-technology Variable Biến thiên
Exit Isolation Mode Thoát chế độ cô lập
Expand Mở rộng
Expand Appearance Mở rộng diện mạo
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap Mở rộng áp dụng cho hình ghép (Alt-bấm chế độ hình dạng) — trong lộ trình
Expand Brush Strokes Mở rộng nét cọ
Expand Compound Shape Mở rộng hình ghép
Expand Gradient Mesh Mở rộng lưới chuyển sắc
@@ -1840,6 +1842,10 @@ file-filter Templates Mẫu
Ink Outlines Đường bao mực
Ink Outlines… Đường bao mực…
Inner Corner Tile Ô góc trong
+ Auto-Centered Tự động - Giữa
+ Auto-Between Tự động - Ở giữa hai cạnh
+ Auto-Sliced Tự động - Cắt chéo
+ Auto-Overlap Tự động - Chồng lấp
Inner Glow… Phát sáng trong…
Input Black Đầu vào đen
Input White Đầu vào trắng
@@ -2261,6 +2267,7 @@ file-filter Templates Mẫu
New Brush… Cọ mới…
New Calligraphic Brush Cọ thư pháp mới
New Character Style Kiểu ký tự mới
+ New Character Style… Kiểu ký tự mới…
New Color Group Nhóm màu mới
New Color Group… Nhóm màu mới…
New Data Set Tập dữ liệu mới
@@ -2283,6 +2290,7 @@ file-filter Templates Mẫu
New Opacity Masks Are Clipping Mặt nạ độ mờ mới là cắt
New Opacity Masks Are Inverted Mặt nạ độ mờ mới bị đảo ngược
New Paragraph Style Kiểu đoạn văn mới
+ New Paragraph Style… Kiểu đoạn văn mới…
New Pattern Brush from Selection Cọ họa tiết mới từ vùng chọn
New PDF Preset Thiết lập sẵn PDF mới
New Print Preset Thiết lập sẵn in mới
@@ -2298,6 +2306,8 @@ file-filter Templates Mẫu
New View Chế độ xem mới
New View… Chế độ xem mới…
New Window Cửa sổ mới
+ Next Document Tài liệu tiếp theo
+ Previous Document Tài liệu trước
New Without Dialog Mới không qua hộp thoại
New Workspace Không gian làm việc mới
New Workspace… Không gian làm việc mới…
@@ -2875,6 +2885,10 @@ mark-style Japanese Kiểu Nhật
Release Opacity Mask Giải phóng mặt nạ độ mờ
Release Selection Giải phóng vùng chọn
Release Shaper Group Giải phóng nhóm Shaper
+ Remove from Shaper Group Xóa khỏi nhóm Shaper
+@msg source must be the id of a Shaper Group's original shape source phải là mã định danh của một hình gốc trong nhóm Shaper
+@msg group must be the id of a Shaper Group group phải là mã định danh của một nhóm Shaper
+@msg the shape is not an editable original shape of that Shaper Group hình này không phải là hình gốc có thể chỉnh sửa của nhóm Shaper đó
Release to Layers (Build) Giải phóng ra các lớp (Xây dựng)
Release to Layers (Sequence) Giải phóng ra các lớp (Chuỗi)
Release with Perspective Giải phóng với phối cảnh
@@ -2958,6 +2972,9 @@ mark-style Japanese Kiểu Nhật
Reset to default Đặt lại về mặc định
Reset to White, Black Đặt lại về Trắng, Đen
Reset Tracking and Kerning Đặt lại giãn chữ và kerning
+ Highlight Font Name Đánh dấu tên phông
+ Highlight Kerning Đánh dấu kerning
+ Highlight Tracking Đánh dấu giãn chữ
Reset with Mesh Đặt lại với lưới
Reset with Mesh… Đặt lại với lưới…
Reset with Warp Đặt lại với biến dạng
@@ -3218,6 +3235,7 @@ mark-style Japanese Kiểu Nhật
Locked Đã khóa
Hidden Đã ẩn
Filter Layers Panel Rows Lọc hàng bảng Lớp
+@msg `Custom` stands for changed settings: save the preset under another name `Custom` biểu thị các cài đặt đã thay đổi: hãy lưu thiết lập sẵn với tên khác
@msg `{key}` must be an array of these names: {_1} `{key}` phải là một mảng gồm các tên sau: {_1}
Search commands and tools Tìm kiếm lệnh và công cụ
Search commands and tools… Tìm kiếm lệnh và công cụ…
@@ -3314,6 +3332,7 @@ mark-style Japanese Kiểu Nhật
Shape Builder Regions Vùng Tạo hình dạng
Shape Builder Tool Công cụ Tạo hình dạng
Shape Effects Hiệu ứng hình dạng
+ Shape Mode Chế độ hình dạng
Shape Modes: Chế độ hình dạng:
Shape Properties: Thuộc tính hình dạng:
Shape: Hình dạng:
@@ -3380,6 +3399,7 @@ mark-style Japanese Kiểu Nhật
Show Original Path Hiện đường dẫn gốc
Open this dialog with these settings next time Lần sau mở hộp thoại này với các cài đặt này
Auto-Simplify Tự động đơn giản hóa
+ Auto-Smooth Tự động làm mượt
Color Panel Options Tùy chọn bảng màu
Show Package Hiện gói
Show Panel Hiện bảng
@@ -3420,12 +3440,14 @@ mark-style Japanese Kiểu Nhật
Simplify Đơn giản hóa
Simplify: Đơn giản hóa:
Simplify… Đơn giản hóa…
+ Smooth… Làm mượt…
Simulate Colored Paper Giả lập giấy có màu
Simulate Paper Giả lập giấy
Single Left Quotation Mark Dấu nháy đơn mở
Single Quotes: Dấu nháy đơn:
Single Right Quotation Mark Dấu nháy đơn đóng
Single-line Composer Soạn thảo một dòng
+ Toggle Line Composer Chuyển đổi cách soạn dòng
Sixth Space Dấu cách 1/6
Size Kích thước
Size Tile to Art Kích thước ô theo đối tượng
@@ -3557,6 +3579,11 @@ mark-style Japanese Kiểu Nhật
Stroke Nét
Stroke (X), double-click for the Color Picker Nét (X), bấm đúp để mở bộ chọn màu
Stroke Color Màu nét
+ Fill Gradient Chuyển sắc tô
+ Stroke Gradient Chuyển sắc nét
+ Fill Pattern Họa tiết tô
+ Stroke Pattern Họa tiết nét
+ Patterns Họa tiết
Stroke Direction Hướng nét
Stroke Length Độ dài nét
Stroke Options Tùy chọn nét
@@ -3754,6 +3781,12 @@ mark-style Japanese Kiểu Nhật
Trace Vector hóa
Trace the image with the Default preset Vector hóa ảnh với thiết lập sẵn mặc định
Tracing Presets Thiết lập sẵn vector hóa
+ Manage Presets Quản lý thiết lập sẵn
+ Save as New Preset… Lưu thành thiết lập sẵn mới…
+ Rename… Đổi tên…
+ Rename Preset Đổi tên thiết lập sẵn
+ Save Image Trace Preset Lưu thiết lập sẵn vector hóa ảnh
+ Delete Image Trace Preset Xóa thiết lập sẵn vector hóa ảnh
Tracing Result Kết quả vector hóa
Tracing Result with Outlines Kết quả vector hóa với đường bao
Tracking Giãn chữ
@@ -3859,6 +3892,7 @@ mark-style Japanese Kiểu Nhật
Unlock Variables Mở khóa biến số
Unnamed Objects Đối tượng chưa đặt tên
Unprintable margin: Lề không in được:
+ Unselected Artwork Tác phẩm không được chọn
Unsharp Mask Tăng độ sắc nét
Unsharp Mask… Tăng độ sắc nét…
Unshift Bỏ dịch chuyển
@@ -4084,10 +4118,12 @@ theme Appearance Giao diện
@msg `freeform.lines` must be an array `freeform.lines` phải là một mảng
@msg `freeform.points` must be an array `freeform.points` phải là một mảng
@msg `gradient` must be an object `gradient` phải là một đối tượng
+@msg `groupColors` must be an array `groupColors` phải là một mảng
@msg `id` is the step reference {r}, which only `run` and `command_batch` resolve `id` là tham chiếu bước {r}, chỉ `run` và `command_batch` giải quyết
@msg `ids` must be an array of object ids, not {v} `ids` phải là mảng id đối tượng, không phải {v}
@msg `library` is a library id or name (see {list}) `library` là id hoặc tên thư viện (xem {list})
@msg `mode` applies to freeform gradients `mode` áp dụng cho chuyển sắc tự do
+@msg `preserve` must be an object `preserve` phải là một đối tượng
@msg `sampleSize` must be 1, 3 or 5 `sampleSize` phải là 1, 3 hoặc 5
@msg `stops` must be an array `stops` phải là một mảng
@msg `svg` must be an object of SVG options (see document.formats) `svg` phải là đối tượng tùy chọn SVG (xem document.formats)
@@ -4123,6 +4159,7 @@ theme Appearance Giao diện
@msg `{name}` is a process colour: tints apply to global and spot colours `{name}` là màu quy trình: sắc độ áp dụng cho màu toàn cục và màu chuyên biệt
@msg `{name}` is no recovery entry name `{name}` không phải là tên mục phục hồi
@msg `{name}` isn't a colour swatch `{name}` không phải là mẫu màu
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white màu quy trình không thể tô màu ảnh thang xám có độ trong suốt: hãy dùng màu chuyên biệt, đen hoặc trắng
@msg `{path}` must be a bool or an object of bools `{path}` phải là bool hoặc đối tượng bool
@msg `{s}` is not a colour (#rrggbb or a preset name) `{s}` không phải là màu (#rrggbb hoặc tên thiết lập sẵn)
@msg `{text}`: step {i}'s result has no such value (write $$ for a literal $) `{text}`: kết quả bước {i} không có giá trị này (viết $$ cho ký tự $)
@@ -4175,6 +4212,10 @@ theme Appearance Giao diện
@msg a calculation has no result, as in a division by zero một phép tính không có kết quả, như khi chia cho không
@msg the operator looks for a mark on the stack and finds none toán tử tìm một dấu mốc trên ngăn xếp nhưng không thấy
@msg a preset named `{_1}` exists đã có thiết lập sẵn tên `{_1}`
+@msg `name` is empty `name` trống
+@msg `newName` is empty `newName` trống
+@msg `{name}` is a built-in preset and can't change: save it under another name `{name}` là thiết lập sẵn tích hợp và không thể thay đổi: hãy lưu với tên khác
+@msg `{name}` is a built-in preset and stays `{name}` là thiết lập sẵn tích hợp và không thể xóa
@msg a swatch or color group named `{n}` exists đã có mẫu màu hoặc nhóm màu tên `{n}`
@msg a slice size must be a positive number of points kích thước lát cắt phải là số điểm dương
@msg a spine keeps at least two points trục phải giữ ít nhất hai điểm
@@ -4211,6 +4252,7 @@ theme Appearance Giao diện
@msg videoRulerPixelAspectRatio must be a number from 0.1 to 10 videoRulerPixelAspectRatio phải là một số từ 0,1 đến 10
@msg the Color Picker is not open Bộ chọn màu chưa được mở
@msg the Simplify slider is not open Thanh trượt Đơn giản hóa chưa được mở
+@msg the Smooth slider is not open Thanh trượt Làm mượt chưa được mở
@msg the screen color sampler is already open công cụ lấy mẫu màu trên màn hình đã được mở
@msg this system has no screen color sampler hệ thống này không có công cụ lấy mẫu màu trên màn hình
@msg bad colour `{hex}` (#rrggbb) màu không hợp lệ `{hex}` (#rrggbb)
@@ -4384,6 +4426,7 @@ theme Appearance Giao diện
@msg missing `id` (see plugin.list) thiếu `id` (xem plugin.list)
@msg missing `name` thiếu `name`
@msg missing `tool` thiếu `tool`
+@msg missing id thiếu id
@msg missing index thiếu chỉ mục
@msg missing number `{key}` thiếu số `{key}`
@msg missing integer `{key}` thiếu số nguyên `{key}`
@@ -4417,6 +4460,7 @@ theme Appearance Giao diện
@msg no current layer không có lớp hiện tại
@msg no data không có dữ liệu
@msg no dialog open không có hộp thoại đang mở
+@msg the open dialog has no Reset hộp thoại đang mở không có nút Đặt lại
@msg no document không có tài liệu
@msg no document open không có tài liệu nào đang mở
@msg no effect applied yet chưa áp dụng hiệu ứng
@@ -4456,6 +4500,8 @@ theme Appearance Giao diện
@msg no print service không có dịch vụ in
@msg no revert command không có lệnh hoàn nguyên
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) không có thiết lập sẵn PDF đã lưu tên `{name}` (thiết lập sẵn tích hợp là chỉ đọc: tạo mới từ chúng)
+@msg no saved preset named `{name}` không có thiết lập sẵn đã lưu tên `{name}`
+@msg no saved preset named `{name}` to rename không có thiết lập sẵn đã lưu tên `{name}` để đổi tên
@msg no saved presets không có thiết lập sẵn đã lưu
@msg no saved print preset named `{name}` ({DEFAULT_PRESET} is protected: start a new one from it) không có thiết lập sẵn in đã lưu tên `{name}` ({DEFAULT_PRESET} được bảo vệ: tạo mới từ nó)
@msg no saved profiles không có hồ sơ đã lưu
@@ -4509,8 +4555,10 @@ theme Appearance Giao diện
@msg not an EMF or WMF file không phải tệp EMF hoặc WMF
@msg not found không tìm thấy
@msg not in pattern editing mode không ở chế độ chỉnh sửa họa tiết
+@msg finish editing the pattern first hãy hoàn tất chỉnh sửa họa tiết trước
@msg nothing encoded không có gì được mã hóa
@msg nothing selected chưa chọn gì
+@msg nothing selected is in a group không mục nào được chọn nằm trong nhóm
@msg nothing to align không có gì để căn chỉnh
@msg nothing to distort không có gì để làm méo
@msg nothing to export: the document has no visible art (or turn on Use Artboards) không có gì để xuất: tài liệu không có tác phẩm hiển thị (hoặc bật Dùng bảng vẽ)
@@ -4632,6 +4680,13 @@ theme Appearance Giao diện
@msg select paths or anchor points chọn đường dẫn hoặc điểm neo
@msg select paths to join hãy chọn đường dẫn để nối
@msg select some type first hãy chọn chữ trước
+@msg the selection has no gradient fill vùng chọn không có tô chuyển sắc
+@msg the selection has no gradient stroke vùng chọn không có nét chuyển sắc
+@msg the selection has no pattern fill vùng chọn không có tô họa tiết
+@msg the selection has no pattern stroke vùng chọn không có nét họa tiết
+@msg no gradient swatch `{name}` không có mẫu màu chuyển sắc `{name}`
+@msg no pattern swatch `{name}` không có mẫu họa tiết `{name}`
+@msg the library item is damaged mục thư viện bị hỏng
@msg Select text or click into text with the Type tool to insert glyphs Chọn văn bản hoặc bấm vào văn bản bằng công cụ Chữ để chèn glyph
@msg select the art to repeat hãy chọn tác phẩm để lặp lại
@msg select the artwork to warp hãy chọn tác phẩm để biến dạng
@@ -4705,6 +4760,7 @@ theme Appearance Giao diện
@msg the object already has an opacity mask đối tượng đã có mặt nạ độ mờ
@msg the object has no geometry đối tượng không có hình học
@msg the object has no opacity mask đối tượng không có mặt nạ độ mờ
+@msg stop editing the opacity mask first hãy dừng chỉnh sửa mặt nạ độ mờ trước
@msg the object has no stroke đối tượng không có nét
@msg the object is beyond the plane's horizon đối tượng vượt qua đường chân trời của mặt phẳng
@msg the object isn't in perspective đối tượng không ở trong phối cảnh
@@ -4724,6 +4780,9 @@ theme Appearance Giao diện
@msg the PSD file's header is damaged tiêu đề tệp PSD bị hỏng
@msg the PSD file's image data can't be read: {e} dữ liệu ảnh tệp PSD không thể đọc được: {e}
@msg the PSD file's image data uses an unknown compression ({m}) dữ liệu ảnh tệp PSD dùng nén không xác định ({m})
+@msg the PCX file is cut short tệp PCX bị cắt ngắn
+@msg the PCX file's header is damaged phần đầu của tệp PCX bị hỏng
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read tệp PCX có điểm ảnh {bits}-bit trong {planes} mặt phẳng không thể đọc được
@msg the PSD image is too large to read ({_1} × {_2} pixels) ảnh PSD quá lớn để đọc ({_1} × {_2} pixel)
@msg the Save PDF dialog didn't open hộp thoại Lưu PDF không mở
@msg the scale is not a usable number tỷ lệ không phải là số dùng được
@@ -4735,6 +4794,9 @@ theme Appearance Giao diện
@msg the spine has no segments trục không có đoạn nào
@msg the stroke has no weight nét không có độ dày
@msg the target layer is locked or hidden lớp đích bị khóa hoặc ẩn
+@msg the object is hidden or locked đối tượng bị ẩn hoặc bị khóa
+@msg the object is outside the isolated group đối tượng nằm ngoài nhóm đang tách biệt
+@msg type objects can't be isolated không thể tách biệt đối tượng chữ
@msg the thumbnail image is malformed ảnh thu nhỏ bị sai định dạng
@msg the top object must be a path, compound path or text object to use as a clipping mask đối tượng trên cùng phải là đường dẫn, đường dẫn phức hoặc đối tượng văn bản để dùng làm mặt nạ cắt
@msg the WMF header is damaged tiêu đề WMF bị hỏng
@@ -4773,6 +4835,7 @@ theme Appearance Giao diện
@msg unknown preset `{name}` (high, medium, low or a saved one: see flattener.presets.list) thiết lập sẵn không xác định `{name}` (high, medium, low hoặc thiết lập đã lưu: xem flattener.presets.list)
@msg unknown preset `{name}` (see flattener.presets.list) thiết lập sẵn không xác định `{name}` (xem flattener.presets.list)
@msg unknown preset `{name}` (see webExport.presets.list) thiết lập sẵn không xác định `{name}` (xem webExport.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) thiết lập sẵn không xác định `{name}`: không phải thiết lập sẵn tích hợp hay đã lưu (xem imageTrace.presets)
@msg unknown side `{other}` (left|right|top|bottom) cạnh không xác định `{other}` (left|right|top|bottom)
@msg unknown tool `{tool}` công cụ không xác định `{tool}`
@msg unknown tool `{t}` công cụ không xác định `{t}`
@@ -5219,4 +5282,9 @@ axis Y Axis Trục Y
Scale Presets Cài đặt sẵn tỉ lệ
@msg a {width}×{height} screenshot's byte count overflows số byte của ảnh chụp {width}×{height} bị tràn
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot {what} của cửa sổ ({points} điểm × {scale} DPI) không thể định cỡ ảnh chụp
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) Hãy mở rộng diện mạo trước (Đối tượng › Mở rộng diện mạo)
Live preview Xem trước trực tiếp
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text Chữ điểm
+ Area Text Chữ vùng
diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsv
index 23213af0da..8b6e00105f 100644
--- a/crates/ui-egui/src/i18n/zh-hans.tsv
+++ b/crates/ui-egui/src/i18n/zh-hans.tsv
@@ -130,6 +130,8 @@
Anchor Point 锚点
Anchor Point Tool 锚点工具
Anchor Points 锚点
+ "In" Control Points “入”控制点
+ "Out" Control Points “出”控制点
Anchor Points, Handle, and Bounding Box Display 锚点、手柄和定界框显示
Anchor/Path Labels 锚点/路径标签
Anchors: 锚点:
@@ -513,6 +515,7 @@
Complexity: 复杂度:
Composite colours are converted to it; separations separate with it when it is a CMYK profile. 复合颜色会转换为此配置文件;其为 CMYK 配置文件时,分色也会使用它。
Compound Path 复合路径
+ Compound Shape 复合形状
Compress (RLE) 压缩 (RLE)
Compress text and line art 压缩文字与线条图
Compression 压缩
@@ -935,7 +938,6 @@
Exit Isolation Mode 退出隔离模式
Expand 扩展
Expand Appearance 扩展外观
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap 扩展仅适用于复合形状 (Alt+单击形状模式)——已在路线图中
Expand Brush Strokes 扩展画笔描边
Expand Compound Shape 扩展复合形状
Expand Gradient Mesh 扩展渐变网格
@@ -1093,6 +1095,9 @@
Increase Font Size by Five Steps 按五个增量增大字体大小
Reset Tracking and Kerning 重置字距和字偶距
Reset Horizontal Scale 重置水平缩放
+ Highlight Font Name 突出显示字体名称
+ Highlight Kerning 突出显示字偶距
+ Highlight Tracking 突出显示字距
Spacing 间距
Step Type 按增量调整文字
Fit in View 适合视图
@@ -1479,6 +1484,12 @@ file-filter Templates 模板
Image Trace 图像描摹
Image Tracing 图像描摹对象
Tracing Presets 描摹预设
+ Manage Presets 管理预设
+ Save as New Preset… 存储为新预设…
+ Rename… 重命名…
+ Rename Preset 重命名预设
+ Save Image Trace Preset 保存图像描摹预设
+ Delete Image Trace Preset 删除图像描摹预设
Image Trace Presets 图像描摹预设
Image: 图像:
Images: 图像:
@@ -1869,6 +1880,10 @@ file-filter Templates 模板
Outer Corner Tile 外角拼贴
Side Tile 边线拼贴
Inner Corner Tile 内角拼贴
+ Auto-Centered 自动居中
+ Auto-Between 自动居间
+ Auto-Sliced 自动切片
+ Auto-Overlap 自动重叠
Start Tile 起点拼贴
End Tile 终点拼贴
Fit 适合
@@ -1907,6 +1922,7 @@ file-filter Templates 模板
Brush Art 画笔图稿
New Calligraphic Brush 新建书法画笔
New Character Style 新建字符样式
+ New Character Style… 新建字符样式…
New Color Group 新建颜色组
New Color Group… 新建颜色组…
New Document Presets 新建文档预设
@@ -1920,6 +1936,7 @@ file-filter Templates 模板
New Opacity Masks Are Clipping 新建不透明度蒙版为剪切
New Opacity Masks Are Inverted 新建不透明度蒙版为反相
New Paragraph Style 新建段落样式
+ New Paragraph Style… 新建段落样式…
New Pattern Brush from Selection 从选区新建图案画笔
New PDF Preset 新建 PDF 预设
New Print Preset 新建打印预设
@@ -1933,6 +1950,8 @@ file-filter Templates 模板
New View 新建视图
New View… 新建视图…
New Window 新建窗口
+ Next Document 下一个文档
+ Previous Document 上一个文档
New Without Dialog 无对话框新建
New Workspace 新建工作区
New Workspace… 新建工作区…
@@ -2826,6 +2845,7 @@ font-script Japanese 汉字
Shape Builder Regions 形状生成器区域
Shape Builder Tool 形状生成器工具
Shape Effects 形状效果
+ Shape Mode 形状模式
Shape Modes: 形状模式:
Shape Properties: 形状属性:
Shaper Tool Shaper 工具
@@ -2882,6 +2902,7 @@ font-script Japanese 汉字
Show Original Path 显示原始路径
Open this dialog with these settings next time 下次以这些设置打开此对话框
Auto-Simplify 自动简化
+ Auto-Smooth 自动平滑
Color Panel Options 颜色面板选项
Show Package 显示打包
Show Panel 显示面板
@@ -2918,6 +2939,7 @@ font-script Japanese 汉字
Simplify 简化
Simplify: 简化:
Simplify… 简化…
+ Smooth… 平滑…
Simulate Colored Paper 模拟有色纸张
Simulate Paper 模拟纸张
Double Column 双列
@@ -2925,6 +2947,7 @@ font-script Japanese 汉字
Single Quotes: 单引号:
Single Right Quotation Mark 右单引号
Single-line Composer 单行排版器
+ Toggle Line Composer 切换行排版器
Sixth Space 六分之一空格
Size 大小
Size Tile to Art 使拼贴适合图稿
@@ -3038,6 +3061,11 @@ font-script Japanese 汉字
Stroke 描边
Stroke (X), double-click for the Color Picker 描边 (X),双击打开拾色器
Stroke Color 描边颜色
+ Fill Gradient 填色渐变
+ Stroke Gradient 描边渐变
+ Fill Pattern 填色图案
+ Stroke Pattern 描边图案
+ Patterns 图案
Stroke Options 描边选项
Character: 字符:
Character options 字符选项
@@ -3330,6 +3358,7 @@ font-script Japanese 汉字
Unlock Guides 解锁参考线
Unnamed Objects 未命名对象
Unprintable margin: 不可打印边界:
+ Unselected Artwork 未选择的图稿
Unshift 取消偏移
Untitled 未命名
Update Link 更新链接
@@ -3643,6 +3672,7 @@ imageTrace Outline 轮廓
# names and values in backticks or code (`colorModel rgb`, `document.export`) stay as they are.
# Simplified Chinese: no final 。 unless the English ends with a period; a space between Chinese text and
# an adjacent Latin word, number or {placeholder}; 、 between the items of a list.
+@msg `Custom` stands for changed settings: save the preset under another name `Custom` 表示已更改的设置:请以其他名称保存预设
@msg `{key}` must be an array of these names: {_1} `{key}` 必须是由以下名称组成的数组:{_1}
@msg Reset {_1} 重置 {_1}
@msg Saving 正在保存
@@ -3795,7 +3825,9 @@ imageTrace Outline 轮廓
@msg `antiAlias` must be "none", "sharp", "crisp" or "strong" `antiAlias` 必须是 "none"、"sharp"、"crisp" 或 "strong"
@msg `aspect` must be a number (%) `aspect` 必须是数字 (%)
@msg `gradient` must be an object `gradient` 必须是对象
+@msg `groupColors` must be an array `groupColors` 必须是数组
@msg `mode` applies to freeform gradients `mode` 仅适用于任意形状渐变
+@msg `preserve` must be an object `preserve` 必须是对象
@msg `stops` must be an array `stops` 必须是数组
@msg `{k}` must be [x, y] `{k}` 必须是 [x, y]
@msg a gradient needs at least two stops 渐变至少需要两个色标
@@ -3817,6 +3849,9 @@ imageTrace Outline 轮廓
@msg the layer or group is locked 该图层或编组已锁定
@msg the guide is on a hidden or locked layer 该参考线位于隐藏或锁定的图层上
@msg the target layer is locked or hidden 目标图层已锁定或隐藏
+@msg the object is hidden or locked 该对象已隐藏或锁定
+@msg the object is outside the isolated group 该对象在隔离的编组之外
+@msg type objects can't be isolated 无法隔离文字对象
@msg the layer to flatten into is hidden 要拼合到的图层已隐藏
@msg there are no objects to release 没有可释放的对象
@msg no library `{id}` 没有库 `{id}`
@@ -3828,6 +3863,7 @@ imageTrace Outline 轮廓
@msg select a blend 请选择一个混合对象
@msg select a gradient mesh 请选择一个渐变网格
@msg the object has no opacity mask 该对象没有不透明度蒙版
+@msg stop editing the opacity mask first 请先停止编辑不透明度蒙版
@msg Convert to Artboards: selection has no area 转换为画板:所选对象没有面积
@msg Convert to Shape: no rectangles or ellipses selected 转换为形状:未选择矩形或椭圆
@msg image would be too large; lower the resolution 图像将过大;请降低分辨率
@@ -3852,6 +3888,7 @@ imageTrace Outline 轮廓
@msg the object already has an opacity mask 该对象已有不透明度蒙版
@msg `{name}` is a process colour: tints apply to global and spot colours `{name}` 是印刷色:色调仅适用于全局色和专色
@msg `{name}` isn't a colour swatch `{name}` 不是颜色色板
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white 印刷色无法为带透明度的灰度图像上色:请使用专色、黑色或白色
@msg a document needs at least one artboard 文档至少需要一个画板
@msg empty path 路径为空
@msg join needs open paths 连接需要开放路径
@@ -3874,6 +3911,7 @@ imageTrace Outline 轮廓
@msg already editing a pattern 已在编辑图案
@msg no pattern `{name}` 没有图案 `{name}`
@msg not in pattern editing mode 不在图案编辑模式中
+@msg finish editing the pattern first 请先完成图案编辑
@msg pattern missing 缺少图案
@msg select a repeat 请选择一个重复对象
@msg select an Intertwine group 请选择一个交织组
@@ -4095,6 +4133,7 @@ imageTrace Outline 轮廓
@msg videoRulerPixelAspectRatio must be a number from 0.1 to 10 videoRulerPixelAspectRatio 必须是 0.1 到 10 之间的数字
@msg the Color Picker is not open 拾色器未打开
@msg the Simplify slider is not open 简化滑块未打开
+@msg the Smooth slider is not open 平滑滑块未打开
@msg the screen color sampler is already open 屏幕取色器已打开
@msg this system has no screen color sampler 此系统没有屏幕取色器
@msg Corners edits the corners of a path 转角用于编辑路径的转角
@@ -4138,6 +4177,10 @@ imageTrace Outline 轮廓
@msg {_1} is an exporter (File › Export › Export As…) {_1} 是导出增效工具 (文件 › 导出 › 导出为…)
@msg `documentData` is {size} bytes (limit {MAX_DOCUMENT_DATA}) `documentData` 为 {size} 字节(上限 {MAX_DOCUMENT_DATA})
@msg a preset named `{_1}` exists 名为 `{_1}` 的预设已存在
+@msg `name` is empty `name` 为空
+@msg `newName` is empty `newName` 为空
+@msg `{name}` is a built-in preset and can't change: save it under another name `{name}` 是内置预设,无法更改:请以其他名称保存
+@msg `{name}` is a built-in preset and stays `{name}` 是内置预设,无法删除
@msg a swatch or color group named `{n}` exists 名为 `{n}` 的色板或颜色组已存在
@msg no print preset named `{base}` 没有名为 `{base}` 的打印预设
@msg no print preset named `{name}` 没有名为 `{name}` 的打印预设
@@ -4156,6 +4199,8 @@ imageTrace Outline 轮廓
@msg PDF settings are not an object PDF 设置不是对象
@msg PDF security settings are not an object PDF 安全性设置不是对象
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) 没有名为 `{name}` 的已保存 PDF 预设 (内置预设为只读:请以它们为基础新建一个)
+@msg no saved preset named `{name}` 没有名为 `{name}` 的已保存预设
+@msg no saved preset named `{name}` to rename 没有名为 `{name}` 的已保存预设可供重命名
@msg Saved to User Defined: {_1} 已保存到“用户定义”:{_1}
@msg choose a direction to divide in 请选择分割方向
@msg choice must be "merge" or "add", not `{choice}` choice 必须是 "merge" 或 "add",而不是 `{choice}`
@@ -4208,6 +4253,7 @@ imageTrace Outline 轮廓
@msg lang must be one of {_1} lang 必须是 {_1} 之一
@msg missing `name` 缺少 `name`
@msg missing `tool` 缺少 `tool`
+@msg missing id 缺少 id
@msg missing index 缺少 index
@msg New Window isn't available yet: a document opens in one window 新建窗口尚不可用:文档在一个窗口中打开
@msg no PNG encoder 没有 PNG 编码器
@@ -4228,6 +4274,13 @@ imageTrace Outline 轮廓
@msg choose a folder to export to 请选择要导出到的文件夹
@msg the selection has no URL (or they differ) 所选对象没有 URL (或其 URL 各不相同)
@msg select some type first 请先选择一些文字
+@msg the selection has no gradient fill 所选对象没有渐变填色
+@msg the selection has no gradient stroke 所选对象没有渐变描边
+@msg the selection has no pattern fill 所选对象没有图案填色
+@msg the selection has no pattern stroke 所选对象没有图案描边
+@msg no gradient swatch `{name}` 没有渐变色板 `{name}`
+@msg no pattern swatch `{name}` 没有图案色板 `{name}`
+@msg the library item is damaged 库项目已损坏
@msg {_1} font families available 有 {_1} 个可用的字体系列
@msg {_1} has no {_2} style {_1} 没有 {_2} 样式
@msg Copied the CSS of {rules} object(s) 已复制 {rules} 个对象的 CSS
@@ -4237,6 +4290,7 @@ imageTrace Outline 轮廓
@msg unknown highlight `{h}` 未知的高亮显示 `{h}`
@msg unknown overprints `{o}` (preserve, simulate or discard) 未知的叠印方式 `{o}` (preserve、simulate 或 discard)
@msg unknown preset `{name}` (see flattener.presets.list) 未知预设 `{name}` (请参阅 flattener.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) 未知预设 `{name}`:既不是内置预设,也不是已保存的预设 (请参阅 imageTrace.presets)
@msg Select text or click into text with the Type tool to insert glyphs 请选择文字,或用文字工具在文字中单击,以插入字形
@msg `library` is a library id or name (see {list}) `library` 是库 id 或名称 (请参阅 {list})
@msg no library `{key}` (see {list}) 没有库 `{key}` (请参阅 {list})
@@ -4270,6 +4324,7 @@ imageTrace Outline 轮廓
@msg can't parse shortcut `{c}` 无法解析快捷键 `{c}`
@msg can't parse shortcut `{s}` for `{k}` 无法解析 `{k}` 的快捷键 `{s}`
@msg no dialog open 没有打开的对话框
+@msg the open dialog has no Reset 打开的对话框没有重置按钮
@msg no file reader 没有文件读取器
@msg no file writer 没有文件写入器
@msg not a VectorCraft shortcut set (missing `overrides`) 不是 VectorCraft 快捷键组 (缺少 `overrides`)
@@ -4283,6 +4338,7 @@ imageTrace Outline 轮廓
@msg Couldn't copy to the system clipboard: {e} 无法复制到系统剪贴板:{e}
@msg Couldn't paste from the clipboard: {e} 无法从剪贴板粘贴:{e}
@msg nothing selected 未选择任何对象
+@msg nothing selected is in a group 所选对象均不在编组中
@msg the {tool} tool has no options {tool} 工具没有选项
@msg unknown tool `{tool}` 未知工具 `{tool}`
@msg {tool} isn't in a toolbar group of several tools {tool} 不在包含多个工具的工具栏组中
@@ -4340,6 +4396,9 @@ imageTrace Outline 轮廓
@msg not a PSD file 不是 PSD 文件
@msg the PSD file has an unknown colour mode ({m}) PSD 文件的颜色模式未知 ({m})
@msg the PSD file's image data uses an unknown compression ({m}) PSD 文件的图像数据使用了未知的压缩方式 ({m})
+@msg the PCX file is cut short PCX 文件不完整
+@msg the PCX file's header is damaged PCX 文件头已损坏
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read 无法读取 {planes} 个平面中含 {bits} 位像素的 PCX 文件
@msg the PSD image is too large to read ({_1} × {_2} pixels) PSD 图像过大,无法读取 ({_1} × {_2} 像素)
@msg zipped 32-bit PSD image data with prediction can't be read 无法读取带预测的 ZIP 压缩 32 位 PSD 图像数据
@msg {depth}-bit PSD files in this colour mode can't be read 无法读取此颜色模式下的 {depth} 位 PSD 文件
@@ -4821,6 +4880,10 @@ axis Both 两者
The dialog was closed before its file dialog answered 文件对话框给出结果之前,对话框已关闭
Expand Shaper Group 扩展 Shaper 组
Release Shaper Group 释放 Shaper 组
+ Remove from Shaper Group 从 Shaper 组中移除
+@msg source must be the id of a Shaper Group's original shape source 必须是 Shaper 组中原始形状的 ID
+@msg group must be the id of a Shaper Group group 必须是 Shaper 组的 ID
+@msg the shape is not an editable original shape of that Shaper Group 该形状不是该 Shaper 组中可编辑的原始形状
Select Shaper Face 选择 Shaper 区域
Constrain 约束
Perspective Distort 透视扭曲
@@ -5460,4 +5523,9 @@ axis Y Axis Y 轴
Scale Presets 缩放预设
@msg a {width}×{height} screenshot's byte count overflows {width}×{height} 截图的字节数溢出
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot 窗口的{what}({points} 点 × {scale} DPI)无法确定截图大小
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) 请先扩展外观(对象 › 扩展外观)
Live preview 实时预览
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text 点文字
+ Area Text 区域文字
diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsv
index 71062c39a2..7730412917 100644
--- a/crates/ui-egui/src/i18n/zh-hant.tsv
+++ b/crates/ui-egui/src/i18n/zh-hant.tsv
@@ -139,6 +139,8 @@
Anchor Point 錨點
Anchor Point Tool 錨點工具
Anchor Points 錨點
+ "In" Control Points 「入」控制點
+ "Out" Control Points 「出」控制點
Anchor Points, Handle, and Bounding Box Display 錨點、控制把手與邊框顯示
Anchor/Path Labels 錨點/路徑標籤
Anchors: 錨點:
@@ -529,6 +531,7 @@ font-technology Variable 可變
Complexity: 複雜度:
Composite colours are converted to it; separations separate with it when it is a CMYK profile. 複合顏色會轉換為此描述檔;其為 CMYK 描述檔時,分色也會使用它。
Compound Path 複合路徑
+ Compound Shape 複合形狀
Compress (RLE) 壓縮 (RLE)
Compress text and line art 壓縮文字與線條圖
Compression 壓縮
@@ -957,7 +960,6 @@ font-technology Variable 可變
Exit Isolation Mode 結束隔離模式
Expand 展開
Expand Appearance 展開外觀
- Expand applies to compound shapes (Alt-click a shape mode) — on the roadmap 展開適用於複合形狀 (按住 Alt 按一下形狀模式),已列入開發計畫
Expand Brush Strokes 展開筆刷筆畫
Expand Compound Shape 展開複合形狀
Expand Gradient Mesh 展開漸層網格
@@ -1118,6 +1120,9 @@ font-technology Variable 可變
Increase Font Size by Five Steps 按五個增量放大字體大小
Reset Tracking and Kerning 重設字距與字距微調
Reset Horizontal Scale 重設水平縮放
+ Highlight Font Name 反白顯示字體名稱
+ Highlight Kerning 反白顯示字距微調
+ Highlight Tracking 反白顯示字距
Spacing 間距
Step Type 依增量調整文字
Fit in View 符合檢視
@@ -1517,6 +1522,12 @@ file-filter Templates 範本
Image Trace 影像描圖
Image Tracing 影像描圖物件
Tracing Presets 描圖預設集
+ Manage Presets 管理預設集
+ Save as New Preset… 儲存為新預設集…
+ Rename… 重新命名…
+ Rename Preset 重新命名預設集
+ Save Image Trace Preset 儲存影像描圖預設集
+ Delete Image Trace Preset 刪除影像描圖預設集
Image Trace Presets 影像描圖預設集
Image: 影像:
Images: 影像:
@@ -1606,6 +1617,7 @@ file-filter Templates 範本
# Traditional Chinese: no final 。 unless the English ends with a period; a space between Chinese text and
# an adjacent Latin word, number or {placeholder}; 、 between the items of a list; 「」 around the name of
# a panel, menu item or setting.
+@msg `Custom` stands for changed settings: save the preset under another name `Custom` 代表已變更的設定:請以其他名稱儲存預設集
@msg `{key}` must be an array of these names: {_1} `{key}` 必須是由下列名稱組成的陣列:{_1}
@msg Reset {_1} 重設 {_1}
@msg Saving 正在儲存
@@ -1756,7 +1768,9 @@ file-filter Templates 範本
@msg `antiAlias` must be "none", "sharp", "crisp" or "strong" `antiAlias` 必須是 "none"、"sharp"、"crisp" 或 "strong"
@msg `aspect` must be a number (%) `aspect` 必須是數字 (%)
@msg `gradient` must be an object `gradient` 必須是物件
+@msg `groupColors` must be an array `groupColors` 必須是陣列
@msg `mode` applies to freeform gradients `mode` 只適用於任意形狀漸層
+@msg `preserve` must be an object `preserve` 必須是物件
@msg `stops` must be an array `stops` 必須是陣列
@msg `{k}` must be [x, y] `{k}` 必須是 [x, y]
@msg a gradient needs at least two stops 漸層至少需要兩個色標
@@ -1778,6 +1792,9 @@ file-filter Templates 範本
@msg the layer or group is locked 圖層或群組已鎖定
@msg the guide is on a hidden or locked layer 參考線位於隱藏或鎖定的圖層上
@msg the target layer is locked or hidden 目標圖層已鎖定或隱藏
+@msg the object is hidden or locked 物件已隱藏或鎖定
+@msg the object is outside the isolated group 物件位於隔離的群組之外
+@msg type objects can't be isolated 無法隔離文字物件
@msg the layer to flatten into is hidden 要平面化到的圖層已隱藏
@msg there are no objects to release 沒有可釋放的物件
@msg no library `{id}` 沒有資料庫 `{id}`
@@ -1789,6 +1806,7 @@ file-filter Templates 範本
@msg select a blend 請選取漸變物件
@msg select a gradient mesh 請選取漸層網格
@msg the object has no opacity mask 物件沒有不透明度遮色片
+@msg stop editing the opacity mask first 請先停止編輯不透明度遮色片
@msg Convert to Artboards: selection has no area 轉換為工作區域:選取範圍沒有面積
@msg Convert to Shape: no rectangles or ellipses selected 轉換為形狀:未選取矩形或橢圓形
@msg image would be too large; lower the resolution 影像會過大;請降低解析度
@@ -1813,6 +1831,7 @@ file-filter Templates 範本
@msg the object already has an opacity mask 物件已有不透明度遮色片
@msg `{name}` is a process colour: tints apply to global and spot colours `{name}` 是印刷色:色調只適用於全域色和特別色
@msg `{name}` isn't a colour swatch `{name}` 不是顏色色票
+@msg a process color can't colorize a grayscale image with transparency: use a spot color, black or white 印刷色無法為帶有透明度的灰階影像上色:請使用特別色、黑色或白色
@msg a document needs at least one artboard 文件至少需要一個工作區域
@msg empty path 路徑是空的
@msg join needs open paths 連接需要開放路徑
@@ -1835,6 +1854,7 @@ file-filter Templates 範本
@msg already editing a pattern 已在編輯圖樣
@msg no pattern `{name}` 沒有圖樣 `{name}`
@msg not in pattern editing mode 不在圖樣編輯模式中
+@msg finish editing the pattern first 請先完成圖樣編輯
@msg pattern missing 找不到圖樣
@msg select a repeat 請選取重複物件
@msg select an Intertwine group 請選取交織群組
@@ -2056,6 +2076,7 @@ file-filter Templates 範本
@msg videoRulerPixelAspectRatio must be a number from 0.1 to 10 videoRulerPixelAspectRatio 必須是 0.1 到 10 之間的數字
@msg the Color Picker is not open 「顏色選擇器」未開啟
@msg the Simplify slider is not open 「簡化」滑桿未開啟
+@msg the Smooth slider is not open 「平滑」滑桿未開啟
@msg the screen color sampler is already open 螢幕取色器已開啟
@msg this system has no screen color sampler 此系統沒有螢幕取色器
@msg Corners edits the corners of a path 「轉角」用於編輯路徑的轉角
@@ -2099,6 +2120,10 @@ file-filter Templates 範本
@msg {_1} is an exporter (File › Export › Export As…) {_1} 是匯出增效模組 (檔案 › 匯出 › 匯出為…)
@msg `documentData` is {size} bytes (limit {MAX_DOCUMENT_DATA}) `documentData` 為 {size} 位元組(上限 {MAX_DOCUMENT_DATA})
@msg a preset named `{_1}` exists 名為 `{_1}` 的預設集已存在
+@msg `name` is empty `name` 為空
+@msg `newName` is empty `newName` 為空
+@msg `{name}` is a built-in preset and can't change: save it under another name `{name}` 是內建預設集,無法變更:請以其他名稱儲存
+@msg `{name}` is a built-in preset and stays `{name}` 是內建預設集,無法刪除
@msg a swatch or color group named `{n}` exists 名為 `{n}` 的色票或顏色群組已存在
@msg no print preset named `{base}` 沒有名為 `{base}` 的列印預設集
@msg no print preset named `{name}` 沒有名為 `{name}` 的列印預設集
@@ -2117,6 +2142,8 @@ file-filter Templates 範本
@msg PDF settings are not an object PDF 設定不是物件
@msg PDF security settings are not an object PDF 安全性設定不是物件
@msg no saved PDF preset named `{name}` (built-in presets are read-only: start a new one from them) 沒有名為 `{name}` 的已儲存 PDF 預設集 (內建預設集為唯讀:請以它們為基礎新增一個)
+@msg no saved preset named `{name}` 沒有名為 `{name}` 的已儲存預設集
+@msg no saved preset named `{name}` to rename 沒有名為 `{name}` 的已儲存預設集可供重新命名
@msg Saved to User Defined: {_1} 已儲存至「使用者定義」:{_1}
@msg choose a direction to divide in 請選擇分割方向
@msg choice must be "merge" or "add", not `{choice}` choice 必須是 "merge" 或 "add",而非 `{choice}`
@@ -2169,6 +2196,7 @@ file-filter Templates 範本
@msg lang must be one of {_1} lang 必須是 {_1} 其中之一
@msg missing `name` 未提供 `name`
@msg missing `tool` 未提供 `tool`
+@msg missing id 未提供 id
@msg missing index 未提供 index
@msg New Window isn't available yet: a document opens in one window 新增視窗尚無法使用:文件會在一個視窗中開啟
@msg no PNG encoder 沒有 PNG 編碼器
@@ -2189,6 +2217,13 @@ file-filter Templates 範本
@msg choose a folder to export to 請選擇要匯出至的資料夾
@msg the selection has no URL (or they differ) 選取範圍沒有 URL (或其 URL 各不相同)
@msg select some type first 請先選取一些文字
+@msg the selection has no gradient fill 選取範圍沒有漸層填色
+@msg the selection has no gradient stroke 選取範圍沒有漸層筆畫
+@msg the selection has no pattern fill 選取範圍沒有圖樣填色
+@msg the selection has no pattern stroke 選取範圍沒有圖樣筆畫
+@msg no gradient swatch `{name}` 沒有漸層色票 `{name}`
+@msg no pattern swatch `{name}` 沒有圖樣色票 `{name}`
+@msg the library item is damaged 資料庫項目已損毀
@msg {_1} font families available 有 {_1} 個可用的字體家族
@msg {_1} has no {_2} style {_1} 沒有 {_2} 樣式
@msg Copied the CSS of {rules} object(s) 已複製 {rules} 個物件的 CSS
@@ -2198,6 +2233,7 @@ file-filter Templates 範本
@msg unknown highlight `{h}` 未知的反白顯示 `{h}`
@msg unknown overprints `{o}` (preserve, simulate or discard) 未知的疊印方式 `{o}` (preserve、simulate 或 discard)
@msg unknown preset `{name}` (see flattener.presets.list) 未知的預設集 `{name}` (請參閱 flattener.presets.list)
+@msg unknown preset `{name}`: not a built-in or saved preset (see imageTrace.presets) 未知的預設集 `{name}`:既不是內建預設集,也不是已儲存的預設集 (請參閱 imageTrace.presets)
@msg Select text or click into text with the Type tool to insert glyphs 請選取文字,或使用文字工具在文字中按一下,以插入字符
@msg `library` is a library id or name (see {list}) `library` 是資料庫 id 或名稱 (請參閱 {list})
@msg no library `{key}` (see {list}) 沒有資料庫 `{key}` (請參閱 {list})
@@ -2231,6 +2267,7 @@ file-filter Templates 範本
@msg can't parse shortcut `{c}` 無法剖析快速鍵 `{c}`
@msg can't parse shortcut `{s}` for `{k}` 無法剖析 `{k}` 的快速鍵 `{s}`
@msg no dialog open 沒有開啟的對話框
+@msg the open dialog has no Reset 開啟的對話框沒有「重設」按鈕
@msg no file reader 沒有檔案讀取器
@msg no file writer 沒有檔案寫入器
@msg not a VectorCraft shortcut set (missing `overrides`) 不是 VectorCraft 快速鍵組 (沒有 `overrides`)
@@ -2244,6 +2281,7 @@ file-filter Templates 範本
@msg Couldn't copy to the system clipboard: {e} 無法複製到系統剪貼簿:{e}
@msg Couldn't paste from the clipboard: {e} 無法從剪貼簿貼上:{e}
@msg nothing selected 未選取任何物件
+@msg nothing selected is in a group 選取的物件都不在群組中
@msg the {tool} tool has no options {tool} 工具沒有選項
@msg unknown tool `{tool}` 未知的工具 `{tool}`
@msg {tool} isn't in a toolbar group of several tools {tool} 不在包含多個工具的工具列群組中
@@ -2296,6 +2334,9 @@ file-filter Templates 範本
@msg not a PSD file 不是 PSD 檔案
@msg the PSD file has an unknown colour mode ({m}) PSD 檔案的色彩模式不明 ({m})
@msg the PSD file's image data uses an unknown compression ({m}) PSD 檔案的影像資料使用了不明的壓縮方式 ({m})
+@msg the PCX file is cut short PCX 檔案不完整
+@msg the PCX file's header is damaged PCX 檔案標頭已損毀
+@msg PCX files with {bits}-bit pixels in {planes} planes can't be read 無法讀取 {planes} 個平面中含 {bits} 位元像素的 PCX 檔案
@msg the PSD image is too large to read ({_1} × {_2} pixels) PSD 影像過大,無法讀取 ({_1} × {_2} 像素)
@msg zipped 32-bit PSD image data with prediction can't be read 無法讀取使用預測的 ZIP 壓縮 32 位元 PSD 影像資料
@msg {depth}-bit PSD files in this colour mode can't be read 無法讀取此色彩模式的 {depth} 位元 PSD 檔案
@@ -2759,6 +2800,10 @@ file-filter Templates 範本
Outer Corner Tile 外角拼貼
Side Tile 邊線拼貼
Inner Corner Tile 內角拼貼
+ Auto-Centered 自動置中
+ Auto-Between 自動居間
+ Auto-Sliced 自動切片
+ Auto-Overlap 自動重疊
Start Tile 起點拼貼
End Tile 終點拼貼
Fit 符合
@@ -2807,6 +2852,7 @@ file-filter Templates 範本
Brush Art 筆刷圖稿
New Calligraphic Brush 新增書法筆刷
New Character Style 新增字元樣式
+ New Character Style… 新增字元樣式…
New Color Group 新增顏色群組
New Color Group… 新增顏色群組…
New Document Presets 新增文件預設集
@@ -2822,6 +2868,7 @@ file-filter Templates 範本
New Opacity Masks Are Clipping 新的不透明度遮色片為剪裁
New Opacity Masks Are Inverted 新的不透明度遮色片為反轉
New Paragraph Style 新增段落樣式
+ New Paragraph Style… 新增段落樣式…
New Pattern Brush from Selection 從選取範圍新增圖樣筆刷
New PDF Preset 新增 PDF 預設集
New Print Preset 新增列印預設集
@@ -2835,6 +2882,8 @@ file-filter Templates 範本
New View 新增檢視
New View… 新增檢視…
New Window 新增視窗
+ Next Document 下一個文件
+ Previous Document 上一個文件
New Without Dialog 新增但不開啟對話方塊
New Workspace 新增工作區
New Workspace… 新增工作區…
@@ -3768,6 +3817,7 @@ font-script Japanese 漢字
Shape Builder Regions 形狀建立區域
Shape Builder Tool 形狀建立工具
Shape Effects 形狀效果
+ Shape Mode 形狀模式
Shape Modes: 形狀模式:
Shape Properties: 形狀內容:
Shaper Tool Shaper 工具
@@ -3826,6 +3876,7 @@ font-script Japanese 漢字
Show Original Path 顯示原始路徑
Open this dialog with these settings next time 下次以這些設定開啟此對話方塊
Auto-Simplify 自動簡化
+ Auto-Smooth 自動平滑
Color Panel Options 顏色面板選項
Show Package 顯示封裝
Show Panel 顯示面板
@@ -3862,6 +3913,7 @@ font-script Japanese 漢字
Simplify 簡化
Simplify: 簡化:
Simplify… 簡化…
+ Smooth… 平滑…
Simulate Colored Paper 模擬有色紙張
Simulate Paper 模擬紙張
Double Column 雙欄
@@ -3869,6 +3921,7 @@ font-script Japanese 漢字
Single Quotes: 單引號:
Single Right Quotation Mark 右單引號
Single-line Composer 單行排版程式
+ Toggle Line Composer 切換行排版程式
Sixth Space 六分之一空格
Size 大小
Size Tile to Art 拼貼符合圖稿大小
@@ -3982,6 +4035,11 @@ font-script Japanese 漢字
Stroke 筆畫
Stroke (X), double-click for the Color Picker 筆畫 (X),按兩下開啟檢色器
Stroke Color 筆畫顏色
+ Fill Gradient 填色漸層
+ Stroke Gradient 筆畫漸層
+ Fill Pattern 填色圖樣
+ Stroke Pattern 筆畫圖樣
+ Patterns 圖樣
Stroke Options 筆畫選項
Character: 字元:
Character options 字元選項
@@ -4277,6 +4335,7 @@ font-script Japanese 漢字
Unlock Guides 解除鎖定參考線
Unnamed Objects 未命名物件
Unprintable margin: 不可列印邊界:
+ Unselected Artwork 未選取的圖稿
Unshift 取消位移
Untitled 未命名
Update Link 更新連結
@@ -4631,6 +4690,10 @@ axis Both 兩者
Shaper Shaper
Expand Shaper Group 展開 Shaper 群組
Release Shaper Group 釋放 Shaper 群組
+ Remove from Shaper Group 從 Shaper 群組中移除
+@msg source must be the id of a Shaper Group's original shape source 必須是 Shaper 群組中原始形狀的 ID
+@msg group must be the id of a Shaper Group group 必須是 Shaper 群組的 ID
+@msg the shape is not an editable original shape of that Shaper Group 該形狀不是該 Shaper 群組中可編輯的原始形狀
Select Shaper Face 選取 Shaper 區域
Constrain 強制
Free Transform 任意變形
@@ -5256,4 +5319,9 @@ axis Y Axis Y 軸
Scale Presets 縮放預設集
@msg a {width}×{height} screenshot's byte count overflows {width}×{height} 螢幕擷取畫面的位元組數溢出
@msg the window's {what} ({points} points × {scale} DPI) cannot size a screenshot 視窗的{what}({points} 點 × {scale} DPI)無法決定螢幕擷取畫面的大小
+# Object › Expand… dimmed until Expand Appearance (#3089).
+ Expand Appearance first (Object › Expand Appearance) 請先展開外觀(物件 › 展開外觀)
Live preview 即時預覽
+# Align panel menu › Align to Glyph Bounds (#4231).
+ Point Text 點狀文字
+ Area Text 區域文字
diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs
index 0262a21ec3..3053646396 100644
--- a/crates/ui-egui/src/lib.rs
+++ b/crates/ui-egui/src/lib.rs
@@ -65,6 +65,7 @@ pub mod titlebar;
pub mod toolbar;
mod tools_float;
pub mod touch;
+pub mod trace_runs;
mod ui_fonts;
pub mod unsaved;
pub mod updates_ui;
@@ -125,6 +126,9 @@ pub struct VectorcraftApp {
pub last_effect: Option<(String, serde_json::Value)>,
/// Last confirmed Warp Options (bend, distortion, orientation) for the next new warp dialog.
pub last_warp: Option,
+ /// The Character panel field that takes the keyboard focus when the panel next draws it
+ /// ([`panels::character::highlight`]).
+ pub(crate) character_focus: Option,
/// Commands run through [`Self::run`] so far: the native menu bar reads its rows again when it
/// moves ([`native_menu::sync`]).
run_count: u64,
@@ -212,6 +216,8 @@ pub struct VectorcraftApp {
pub plugin_runs: plugin_runs::PluginRuns,
/// Files being read off the UI thread for Place ([`placing`]).
pub placing: placing::Placing,
+ /// Image Traces running off the UI thread ([`trace_runs`]).
+ pub trace_runs: trace_runs::TraceRuns,
/// Data Recovery's timer and startup question ([`recovery`]).
pub recovery: recovery::Timer,
/// Modifiers the keyboard holds (from the host's input), given back after synthetic input.
diff --git a/crates/ui-egui/src/menus/bar.rs b/crates/ui-egui/src/menus/bar.rs
index 8ad27053a6..1fc2f7855c 100644
--- a/crates/ui-egui/src/menus/bar.rs
+++ b/crates/ui-egui/src/menus/bar.rs
@@ -1,5 +1,5 @@
use super::entries::{Row, entry, pretty_shortcut};
-use super::invoke::{field_event, focused_text_field, invoke, to_field};
+use super::invoke::{field_event, focused_text_field, invoke, to_field, with_held_keys};
use super::tree::menu_tree_named;
use super::{Entry, Item, Tokens, Value, VectorcraftApp, widgets};
@@ -152,12 +152,24 @@ fn render_row(app: &VectorcraftApp, ui: &mut egui::Ui, row: &Row, checks: bool,
}
None => ui.add_enabled(row.enabled, egui::Button::new(text).shortcut_text(sc)),
};
+ let r = match (row.enabled, disabled_hint(app, id)) {
+ (false, Some(why)) => r.on_disabled_hover_text(why),
+ _ => r,
+ };
if r.clicked() {
- *clicked = row.target();
+ *clicked = row.target().map(|target| with_held_keys(target, ui.input(|i| i.modifiers)));
ui.close();
}
}
+/// Why a dimmed menu item is dimmed, for the ones that say.
+fn disabled_hint(app: &VectorcraftApp, id: &str) -> Option<&'static str> {
+ match id {
+ "ui.expandDialog" if vectorcraft_engine::cmd::expand::has_appearance(&app.session) => Some(crate::dialogs::expand::appearance_first()),
+ _ => None,
+ }
+}
+
/// What the Home screen remembers when it opens (`app.home`): the active document and the
/// document count. When either changes, the Home screen gives way to the document.
pub(crate) fn home_key(app: &VectorcraftApp) -> (Option, usize) {
diff --git a/crates/ui-egui/src/menus/invoke.rs b/crates/ui-egui/src/menus/invoke.rs
index ee8e4c593a..337023f037 100644
--- a/crates/ui-egui/src/menus/invoke.rs
+++ b/crates/ui-egui/src/menus/invoke.rs
@@ -13,6 +13,16 @@ pub fn click_target(label: &str, id: &str, p: &Value) -> (String, Value) {
(id.to_string(), if p.is_null() { json!({}) } else { p.clone() })
}
+/// What an in-window menu click on `target` (a [`click_target`]) runs with `held` held: Object ›
+/// Unlock All and Object › Show All chosen with Shift+Alt (Shift+Option) act only inside the groups
+/// that hold the selected objects (`scope: "group"`).
+pub(super) fn with_held_keys(target: (String, Value), held: egui::Modifiers) -> (String, Value) {
+ match target.0.as_str() {
+ "object.unlockAll" | "object.showAll" if held.shift && held.alt => (target.0, json!({"scope": "group"})),
+ _ => target,
+ }
+}
+
/// The dialog of command `id` that shows the selection's current values (its query): its heading
/// and the queried values it doesn't show. Type on a Path Options leaves the brackets where they
/// are.
@@ -44,6 +54,7 @@ pub(super) fn menu_dialog(app: &VectorcraftApp, id: &str) -> Option<(&'static st
// "Open this dialog with these settings next time" was ticked.
"object.path.simplify" if app.ui.simplify.is_object() => ("simplify", app.ui.simplify.clone()),
"object.path.simplify" => (crate::dialogs::simplify_slider::KIND, crate::dialogs::simplify_slider::fields(app)),
+ "object.path.smooth" => (crate::dialogs::smooth_slider::KIND, crate::dialogs::smooth_slider::fields()),
"object.path.splitIntoGrid" => {
// The grid starts at the size of the selection.
let size =
@@ -51,7 +62,7 @@ pub(super) fn menu_dialog(app: &VectorcraftApp, id: &str) -> Option<(&'static st
("splitIntoGrid", crate::dialogs::path_ops::split_fields(size.0, size.1))
}
"object.vectorHalftone" => (crate::dialogs::halftone::KIND, crate::dialogs::halftone::fields()),
- "artboard.rearrange" => (crate::dialogs::rearrange_artboards::KIND, crate::dialogs::rearrange_artboards::fields()),
+ "artboard.rearrange" => (crate::dialogs::rearrange_artboards::KIND, crate::dialogs::rearrange_artboards::open_fields(app)),
_ => return None,
})
}
@@ -138,6 +149,13 @@ pub fn invoke(app: &mut VectorcraftApp, id: &str, p: Value) {
&& p.as_object().is_some_and(|o| !o.contains_key("to"))
&& app.session.active().is_some_and(|st| st.selection.anchors.is_empty());
let p = if follows_align_to { crate::panels::align::with_align_to(app, p) } else { p };
+ // Image Trace traces off the UI thread, with its progress (#3098).
+ if matches!(id, "imageTrace.make" | "imageTrace.makeAndExpand") {
+ if let Err(e) = crate::trace_runs::start(app, id, p, false) {
+ app.status(e);
+ }
+ return;
+ }
if let Err(e) = app.run(id, p) {
app.status(e);
} else if matches!(id, "object.pattern.make" | "object.pattern.edit") {
diff --git a/crates/ui-egui/src/menus/run.rs b/crates/ui-egui/src/menus/run.rs
index 8e2e7a93a5..22ddb543d3 100644
--- a/crates/ui-egui/src/menus/run.rs
+++ b/crates/ui-egui/src/menus/run.rs
@@ -175,11 +175,11 @@ fn run_ui_part2(app: &mut VectorcraftApp, id: &str, p: &Value) -> Option {
- app.ui.open_panel = Some("separations".into());
- app.ui.dock = true;
- app.session.execute(id, p).map_err(|e| e.to_string())
+ crate::panel_docking::reveal_panel(app, "separations").and_then(|_| app.session.execute(id, p).map_err(|e| e.to_string()))
}
"view.outline" => flag(&mut app.ui.view.outline),
_ => return None,
@@ -236,6 +236,12 @@ fn run_ui_part3(app: &mut VectorcraftApp, id: &str, p: &Value) -> Option flag(&mut app.ui.view.hidden_chars),
"type.bold" => crate::panels::character::toggle_face(app, Face::Bold),
"type.italic" => crate::panels::character::toggle_face(app, Face::Italic),
+ "type.highlightFontName" => crate::panels::character::highlight(app, crate::panels::character::Field::FontName),
+ "type.highlightKerning" => crate::panels::character::highlight(app, crate::panels::character::Field::Kerning),
+ "type.highlightTracking" => crate::panels::character::highlight(app, crate::panels::character::Field::Tracking),
+ "type.underline" => crate::panels::character::toggle_underline(app),
+ "type.lineComposer" => crate::panels::paragraph::toggle_composer(app),
+ "type.hyphenate" => crate::panels::paragraph::toggle_hyphenate(app),
id if let Some((_, justify)) = crate::panels::paragraph::ALIGN_COMMANDS.iter().find(|c| c.0 == id) => {
crate::panels::paragraph::align(app, justify)
}
@@ -508,6 +514,8 @@ fn run_ui_part6(app: &mut VectorcraftApp, id: &str, p: &Value) -> Option Err("brightness must be dark|mediumDark|mediumLight|light".into()),
},
"window.newWindow" => Err("New Window isn't available yet: a document opens in one window".into()),
+ "window.nextDocument" => crate::chrome::step_document(app, true),
+ "window.previousDocument" => crate::chrome::step_document(app, false),
"tool.select" => match s("tool") {
Some(t) if vectorcraft_tools::tool_info(&t).is_some() => {
app.select_tool(&t);
@@ -579,6 +587,8 @@ fn run_ui_part7(app: &mut VectorcraftApp, id: &str, p: &Value) -> Option crate::dialogs::open_color_picker(app, p),
"ui.sampleScreenColor" => crate::screen_color::start(app, p),
"ui.graphicStyleOptions" => crate::dialogs::graphic_style_options::open(app, s("name").as_deref()),
+ "ui.newCharStyle" => crate::panels::text_styles::open_new(app, crate::panels::text_styles::Kind::Char),
+ "ui.newParaStyle" => crate::panels::text_styles::open_new(app, crate::panels::text_styles::Kind::Para),
"ui.symbolOptions" => {
let name = s("name");
let edit = p.get("edit").and_then(Value::as_bool).unwrap_or(false);
@@ -650,6 +660,7 @@ fn run_ui_part9(app: &mut VectorcraftApp, id: &str, p: &Value) -> Option crate::dialogs::trace_presets::open(app, p),
"ui.flattenerPreview" => crate::panels::flattener_preview::command(app, p),
"window.graphicStyleLibrary" => crate::panels::graphic_styles::open_library(app, p),
"ui.libraryPanel" => crate::panels::library_panel::command(app, p),
@@ -695,6 +706,8 @@ fn run_ui_part10(app: &mut VectorcraftApp, id: &str, p: &Value) -> Option crate::dialogs::expand::open(app),
"ui.simplifyAuto" => crate::dialogs::simplify_slider::auto(app),
"ui.simplifyMoreOptions" => crate::dialogs::simplify_slider::more_options(app),
+ "ui.smoothAuto" => crate::dialogs::smooth_slider::auto(app),
+ "ui.dialogReset" => crate::dialogs::reset(app),
"attributes.openUrl" => crate::panels::attributes::open_url(app, p),
"ui.javascriptFilesDialog" => crate::panels::svg_interactivity::files_dialog(app, p),
"ui.spotColors" => crate::dialogs::spot_colors::open(app),
@@ -821,6 +834,8 @@ fn run_ui_part13(app: &mut VectorcraftApp, id: &str, p: &Value) -> Option io::install_plugin(app, p),
"plugin.cancelRuns" => Ok(crate::plugin_runs::cancel_all(app)),
"plugin.hideRuns" => Ok(crate::plugin_runs::hide_all(app)),
+ "imageTrace.cancelRuns" => Ok(crate::trace_runs::cancel_all(app)),
+ "imageTrace.hideRuns" => Ok(crate::trace_runs::hide_all(app)),
"ui.checkScript" => crate::dialogs::script_check::command(app, p),
"ui.perspectiveGridDialog" => crate::dialogs::perspective_grid::open(app),
"ui.perspectivePresetsDialog" => {
diff --git a/crates/ui-egui/src/menus/state.rs b/crates/ui-egui/src/menus/state.rs
index cffd3747dd..4b009fbf4d 100644
--- a/crates/ui-egui/src/menus/state.rs
+++ b/crates/ui-egui/src/menus/state.rs
@@ -182,7 +182,9 @@ pub fn enabled(app: &VectorcraftApp, id: &str) -> bool {
match id {
// Save is off for a clean document that already has its own file.
"file.save" => app.session.active().is_some_and(|d| d.path.is_none() || d.converted || d.is_dirty()),
- "type.bold" | "type.italic" => crate::panels::character::text_style(app).is_some(),
+ "type.bold" | "type.italic" | "type.underline" | "type.lineComposer" | "type.hyphenate" => {
+ crate::panels::character::text_style(app).is_some()
+ }
id if crate::panels::paragraph::ALIGN_COMMANDS.iter().any(|c| c.0 == id) => crate::panels::character::text_style(app).is_some(),
"type.applyBullets" | "type.applyNumbers" | "type.convertListToText" => crate::panels::character::text_style(app).is_some(),
id if let Some(b) = crate::panels::align::button(id) => enabled(app, b.command()),
@@ -190,6 +192,8 @@ pub fn enabled(app: &VectorcraftApp, id: &str) -> bool {
"file.cancelExport" | "file.exportInBackground" => app.background.jobs.iter().any(|j| j.progress.is_some() && !j.cancelled()),
"plugin.cancelRuns" => crate::plugin_runs::any_running(app),
"plugin.hideRuns" => crate::plugin_runs::any_shown(app),
+ "imageTrace.cancelRuns" => crate::trace_runs::any_running(app),
+ "imageTrace.hideRuns" => crate::trace_runs::any_shown(app),
"file.place"
| "file.export.svg"
| "file.export.png"
@@ -217,7 +221,7 @@ pub fn enabled(app: &VectorcraftApp, id: &str) -> bool {
"ui.missingFontsDialog" => !cfg!(target_arch = "wasm32") && app.session.active().is_some(),
"ui.findFontsInFolder" => crate::picks::can(app, &crate::picks::PickRequest::Folder) && app.session.active().is_some(),
"ui.swatchOptions" | "ui.newSwatch" | "ui.newColorGroup" => app.session.active().is_some(),
- "ui.graphicStyleOptions" => app.session.active().is_some(),
+ "ui.graphicStyleOptions" | "ui.newCharStyle" | "ui.newParaStyle" => app.session.active().is_some(),
"ui.newArtboard" => app.session.active().is_some(),
"ui.sampleScreenColor" => crate::screen_color::available(app),
"ui.newBrush" => app.session.active().is_some(),
@@ -233,10 +237,15 @@ pub fn enabled(app: &VectorcraftApp, id: &str) -> bool {
id if id.starts_with(crate::panels::symbols::USER_SLOT) => crate::panels::symbols::user_library(app, id).is_some(),
"ui.saveBrushLibrary" => crate::panels::brushes::has_brushes(app),
id if id.starts_with(crate::panels::brushes::USER_SLOT) => crate::panels::brushes::user_library(app, id).is_some(),
- "ui.expandDialog" => app.session.active().is_some_and(|d| !d.selection.is_empty()),
+ // Dimmed for appearance attributes, which Expand Appearance expands first (#3089).
+ "ui.expandDialog" => {
+ app.session.active().is_some_and(|d| !d.selection.is_empty()) && !vectorcraft_engine::cmd::expand::has_appearance(&app.session)
+ }
"ui.spotColors" => app.session.active().is_some(),
"ui.menuDialog" => app.session.active().is_some_and(|d| !d.selection.is_empty()),
"ui.simplifyAuto" | "ui.simplifyMoreOptions" => crate::dialogs::simplify_slider::showing(app),
+ "ui.smoothAuto" => crate::dialogs::smooth_slider::showing(app),
+ "ui.dialogReset" => crate::dialogs::can_reset(app),
"ui.dxfOptionsDialog" => app.session.active().is_some(),
"links.editOriginal" | "links.reveal" => selected_image(app, |im| im.link.is_some()) || selected_placed(app),
"ui.placementOptionsDialog" => selected_image(app, |_| true) || selected_placed(app),
@@ -256,6 +265,7 @@ pub fn enabled(app: &VectorcraftApp, id: &str) -> bool {
"ui.perspectivePlane" => app.session.active().is_some(),
// Only one window per document so far: greyed out, as Window › Arrange's items are (#3724).
"window.newWindow" => false,
+ "window.nextDocument" | "window.previousDocument" => !app.session.documents().is_empty(),
_ => true,
}
}
diff --git a/crates/ui-egui/src/menus/tests.rs b/crates/ui-egui/src/menus/tests.rs
index efee80d270..7a23026d2f 100644
--- a/crates/ui-egui/src/menus/tests.rs
+++ b/crates/ui-egui/src/menus/tests.rs
@@ -283,6 +283,20 @@ fn panel_ids_are_case_insensitive_and_labels_work() {
app.ui.dock_collapsed = false;
}
+/// #4542: Edit › Color Settings… and Assign Profile… show the Separations Preview panel, which
+/// isn't in an icon column, and leave it showing when it already does.
+#[test]
+fn color_settings_and_assign_profile_show_the_separations_panel() {
+ let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), crate::Services::default());
+ app.run("file.new", json!({})).unwrap();
+ let shown = |app: &VectorcraftApp| checked(app, "window.panel", &json!({"panel": "separations"})).unwrap();
+ assert!(!shown(&app));
+ for id in ["edit.colorSettings", "edit.colorSettings", "edit.assignProfile"] {
+ app.run(id, json!({})).unwrap();
+ assert!(shown(&app), "{id} shows the panel");
+ }
+}
+
#[test]
fn saved_views_store_and_restore_the_view() {
let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), crate::Services::default());
@@ -683,6 +697,7 @@ fn lock_and_hide_menus_are_greyed_out_in_isolation_mode() {
"object.hide",
"object.hide.above",
"object.hide.otherLayers",
+ "object.hide.unselected",
"object.showAll"
]
);
@@ -696,10 +711,10 @@ fn lock_and_hide_menus_are_greyed_out_in_isolation_mode() {
};
app.run("object.isolate", json!({"id": g.clone()})).unwrap();
app.run("select.set", json!({"ids": [b]})).unwrap();
- assert_eq!(shown(&app), [false, false, false, false, false, false, false, false, true], "in isolation mode");
+ assert_eq!(shown(&app), [false, false, false, false, false, false, false, false, false, true], "in isolation mode");
app.run("object.exitIsolation", json!({})).unwrap();
app.run("select.set", json!({"ids": [g]})).unwrap();
- assert_eq!(shown(&app), [true; 9], "after Exit Isolation Mode");
+ assert_eq!(shown(&app), [true; 10], "after Exit Isolation Mode");
}
#[test]
@@ -758,6 +773,59 @@ fn long_menus_scroll_inside_a_short_window() {
assert!(tall.bottom() < 3000.0);
}
+/// Object › Unlock All and Object › Show All clicked with Shift+Alt held run with
+/// `scope: "group"`; clicked without them, or with only one of the two, they run on the whole
+/// document as before.
+#[test]
+fn unlock_all_and_show_all_clicked_with_shift_alt_act_within_the_group() {
+ let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), crate::Services::default());
+ app.run("file.new", json!({"width": 200, "height": 200})).unwrap();
+ let ctx = egui::Context::default();
+ crate::theme::install_fonts(&ctx);
+ let tree = menu_tree();
+ let (_, object) = tree.iter().find(|(t, _)| *t == "Object").unwrap();
+ let id = egui::Id::unique("test-object-menu");
+ let screen = egui::Rect::from_min_size(egui::Pos2::ZERO, egui::vec2(1600.0, 3000.0));
+ let frame = |events: Vec, modifiers: egui::Modifiers| {
+ let mut clicked = None;
+ let events = std::iter::once(egui::Event::ModifiersChanged(modifiers)).chain(events).collect();
+ let input = egui::RawInput { screen_rect: Some(screen), events, ..Default::default() };
+ let mut out = ctx.run_ui(input, |ui| {
+ egui::Area::new(id).fixed_pos(egui::pos2(0.0, 0.0)).show(ui.ctx(), |ui| {
+ egui::containers::menu::menu_style(ui.style_mut());
+ ui.with_layout(egui::Layout::top_down_justified(egui::Align::Min), |ui| menu_body(&app, ui, object, &mut clicked));
+ });
+ });
+ out.textures_delta.clear();
+ (clicked, out.shapes)
+ };
+ // Where the menu draws `label`.
+ fn find(s: &egui::Shape, label: &str) -> Option {
+ match s {
+ egui::Shape::Text(t) if t.galley.text() == label => Some(t.pos + t.galley.rect.center().to_vec2()),
+ egui::Shape::Vec(v) => v.iter().find_map(|s| find(s, label)),
+ _ => None,
+ }
+ }
+ let click = |label: &str, modifiers: egui::Modifiers| {
+ let (_, shapes) = frame(vec![], Default::default());
+ let at = shapes.iter().find_map(|c| find(&c.shape, label)).unwrap_or_else(|| panic!("{label} is not in the Object menu"));
+ let button = |pressed| egui::Event::PointerButton { pos: at, button: egui::PointerButton::Primary, pressed, modifiers };
+ frame(vec![egui::Event::PointerMoved(at)], modifiers);
+ frame(vec![button(true)], modifiers);
+ frame(vec![button(false)], modifiers).0
+ };
+ frame(vec![], Default::default());
+ let shift_alt = egui::Modifiers { shift: true, alt: true, ..Default::default() };
+ let group = json!({"scope": "group"});
+ for (label, command) in [("Unlock All", "object.unlockAll"), ("Show All", "object.showAll")] {
+ assert_eq!(click(label, shift_alt), Some((command.to_string(), group.clone())), "{label} with Shift+Alt");
+ for held in [egui::Modifiers::NONE, egui::Modifiers::SHIFT, egui::Modifiers::ALT] {
+ assert_eq!(click(label, held), Some((command.to_string(), json!({}))), "{label} with {held:?}");
+ }
+ }
+}
+
/// #3724: Window › New Window is greyed out until VectorCraft can open a second window on a
/// document, instead of being enabled and answering with an internal milestone note.
#[test]
diff --git a/crates/ui-egui/src/menus/tree.rs b/crates/ui-egui/src/menus/tree.rs
index 3bdb929e7c..1f1bb7f0ce 100644
--- a/crates/ui-egui/src/menus/tree.rs
+++ b/crates/ui-egui/src/menus/tree.rs
@@ -170,7 +170,12 @@ pub fn menu_tree_named(english_names: bool) -> Vec<(&'static str, Vec- )> {
c("Unlock All", "object.unlockAll"),
sub(
"Hide",
- vec![c("Selection", "object.hide"), c("All Artwork Above", "object.hide.above"), c("Other Layers", "object.hide.otherLayers")],
+ vec![
+ c("Selection", "object.hide"),
+ c("All Artwork Above", "object.hide.above"),
+ c("Other Layers", "object.hide.otherLayers"),
+ c("Unselected Artwork", "object.hide.unselected"),
+ ],
),
c("Show All", "object.showAll"),
Sep,
@@ -219,6 +224,7 @@ pub fn menu_tree_named(english_names: bool) -> Vec<(&'static str, Vec
- )> {
c("Reverse Path Direction", "path.reverse"),
Sep,
c("Simplify…", "object.path.simplify"),
+ c("Smooth…", "object.path.smooth"),
c("Add Anchor Points", "object.path.addAnchorPoints"),
c("Remove Anchor Points", "path.removeAnchors"),
c("Divide Objects Below", "object.path.divideObjectsBelow"),
diff --git a/crates/ui-egui/src/menus/ui_commands.rs b/crates/ui-egui/src/menus/ui_commands.rs
index 63b60e2b5d..4e5943a4ac 100644
--- a/crates/ui-egui/src/menus/ui_commands.rs
+++ b/crates/ui-egui/src/menus/ui_commands.rs
@@ -161,7 +161,12 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
("view.trimView", "Trim View", "", "{} toggle: hide everything outside the artboards"),
("view.cornerWidget", "Hide Corner Widget", "", "{} toggle the live corner widgets"),
("view.snapToPixel", "Snap to Pixel", "", "{} toggle: drawing and moving land on whole pixels"),
- ("view.snapToGlyph", "Snap to Glyph", "", "{} toggle: drawing snaps to live-text baselines and glyph bounds"),
+ (
+ "view.snapToGlyph",
+ "Snap to Glyph",
+ "",
+ "{} toggle: drawing snaps to live-text glyph bounds, and on a single line of type to its baseline, x-height, character widths and glyph anchor points",
+ ),
(
"view.preciseCursors",
"Precise Cursors",
@@ -313,6 +318,42 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
"",
"{} the selected type (or the Type tool's selection) in its family's Italic (or Oblique) face, or back upright when it is italic; keeps the weight. A family without that face is left as it is, with a message. While the Type tool edits text, Cmd+Shift+I",
),
+ (
+ "type.highlightFontName",
+ "Highlight Font Name",
+ "Cmd+Alt+Shift+F",
+ "{} show the Character panel if it is hidden and open its font family menu, whose search field takes the keyboard focus: type to search, Enter applies the highlighted font → {field: \"fontName\"}. Without selected type (or text the Type tool edits) the panel shows, and the error says to select type first",
+ ),
+ (
+ "type.highlightKerning",
+ "Highlight Kerning",
+ "Cmd+Alt+K",
+ "{} show the Character panel if it is hidden and give its Kerning field the keyboard focus with its value selected: type a value and press Enter → {field: \"kerning\"}. Without selected type (or text the Type tool edits) the panel shows, and the error says to select type first",
+ ),
+ (
+ "type.highlightTracking",
+ "Highlight Tracking",
+ "",
+ "{} show the Character panel if it is hidden and give its Tracking field the keyboard focus with its value selected: type a value and press Enter → {field: \"tracking\"}. Without selected type (or text the Type tool edits) the panel shows, and the error says to select type first",
+ ),
+ (
+ "type.underline",
+ "Underline",
+ "Cmd+Shift+U",
+ "{} the Character panel's Underline button: underline the selected type (or the Type tool's selection), or remove the underline when the text the Character panel shows is underlined (text.setFormat {underline}) → underlined",
+ ),
+ (
+ "type.lineComposer",
+ "Toggle Line Composer",
+ "Cmd+Alt+Shift+C",
+ "{} the selected type's paragraphs (or those the Type tool's selection touches) use the Single-line Composer when they all use the Every-line Composer, else the Every-line Composer (text.setFormat {composer}) → \"singleLine\" | \"everyLine\"",
+ ),
+ (
+ "type.hyphenate",
+ "Hyphenate",
+ "Cmd+Alt+Shift+H",
+ "{} the Paragraph panel's Hyphenate checkbox: hyphenation off for the selected type's paragraphs (or those the Type tool's selection touches) when they all hyphenate, else on (text.setFormat {hyphenate}) → hyphenate",
+ ),
("effect.last", "Last Effect…", "Cmd+Alt+Shift+E", "{} open the dialog of the last effect applied"),
("view.zoomIn", "Zoom In", "Cmd+=", "{}"),
("view.zoomOut", "Zoom Out", "Cmd+-", "{}"),
@@ -495,6 +536,18 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
("window.workspace.rename", "Rename Workspace", "", "{name, to}"),
("window.workspace.list", "List Workspaces", "", "{}"),
("window.newWindow", "New Window", "", "{}"),
+ (
+ "window.nextDocument",
+ "Next Document",
+ "Cmd+F6",
+ "{} make the open document after the current one in tab order the current one, as a click on its tab does (after the last document it goes to the first, and from the Home screen to the first); returns {index}",
+ ),
+ (
+ "window.previousDocument",
+ "Previous Document",
+ "Cmd+Shift+F6",
+ "{} make the open document before the current one in tab order the current one, as a click on its tab does (before the first document it goes to the last, and from the Home screen to the last); returns {index}",
+ ),
("tool.select", "Select Tool", "", "{tool: id} (see tools)"),
(
"tool.setOption",
@@ -580,6 +633,18 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
"",
"{name?} open Graphic Style Options (dialog `graphicStyleOptions`, field `name`): for style `name` OK renames it (graphicStyle.rename); without, OK makes a new style of that name from the selection (graphicStyle.new)",
),
+ (
+ "ui.newCharStyle",
+ "New Character Style…",
+ "",
+ "{} open New Character Style (dialog `newTextStyle`, field `name`, filled in with the name charStyle.new {} would give the style), what Alt-clicking the Character Styles panel's New button opens; OK runs charStyle.new with the name and the Type tool's selected characters (else the selected type) as they were when the dialog opened; Cancel adds no style",
+ ),
+ (
+ "ui.newParaStyle",
+ "New Paragraph Style…",
+ "",
+ "{} open New Paragraph Style (dialog `newTextStyle`, field `name`, filled in with the name paraStyle.new {} would give the style), what Alt-clicking the Paragraph Styles panel's New button opens; OK runs paraStyle.new with the name and the paragraph of the Type tool's selection (else the selected type) as it was when the dialog opened; Cancel adds no style",
+ ),
(
"ui.symbolOptions",
"Symbol Options…",
@@ -590,7 +655,7 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
"tool.options",
"Tool Options…",
"",
- "{tool: id} what double-clicking a tool button opens: hand → fits the artboard in the window (view.fitArtboard), zoom → 100% (view.actualSize), rotate|scale|reflect|shear → that Object › Transform dialog (dialog `rotate`, `scale`, `reflect` or `shear`; error `nothing selected` without a selection), selection|directSelection|groupSelection → the Move dialog (dialog `move`; the same error), gradient|magicWand → the Gradient or Magic Wand panel (window.panel), artboard → Artboard Options of the active artboard (dialog `artboardOptions`, fields index, name, x, y, width, height, showCenterMark, showCrossHairs; OK runs artboard.setProps, and with other artboards selected with the Artboard tool a new width or height goes to each of them too, in its `artboards` list, each resized about the reference point the form used for that size, or about its top-left corner when the size was set in the fields directly), flare → Flare Tool Options (dialog `flareOptions`, fields diameter and pathLength (pt), opacity, brightness, growth, fuzziness, longest, rayFuzziness, largest (%), rays, rings, direction (°), raysOn, ringsOn; OK runs tool.setOption {tool: \"flare\", values}: the next flare dragged out uses them, and a Flare click's dialog, which also has x and y, draws one there with them), lineSegment|arc|rectangularGrid|polarGrid → that tool's Tool Options, its click dialog without x and y (dialog kind = the tool id, `__toolOptions: true`; lineSegment: length (pt), angle (°), fillLine; arc: lengthX, lengthY (pt), reference (0–8), arcType: open|closed, baseAlong: x|y, slope (−100…100), fillArc; rectangularGrid: width, height (pt, the Default Size), reference (0–8), rows, columns, rowSkew, columnSkew (%), frame, fill; polarGrid: the same with concentric, radial, concentricSkew, radialSkew and compound for rows, columns, the skews and frame; OK runs tool.setOption {tool, values} and draws nothing: the next drag uses them (Fill Line, the arc's type, base, slope and fill, the grids' dividers, skews and switches) and a click's dialog opens at them), columnGraph|stackedColumnGraph|barGraph|stackedBarGraph|lineGraph|areaGraph|scatterGraph|pieGraph|radarGraph → Graph Type for the selected graph (dialog `command` running graph.setType; an error without one), typeOnPath|verticalTypeOnPath → Type on a Path Options for the selected type on a path (dialog `command` running type.pathOptions; error `nothing selected` without a selection, and the command's error when no type on a path is selected),symbolSprayer|symbolShifter|symbolScruncher|symbolSizer|symbolSpinner|symbolStainer|symbolScreener|symbolStyler → Symbolism Tools Options (dialog `symbolismOptions`, fields tool, diameter (pt), intensity and density (1–10), shared by the eight tools; OK runs tool.setOption {tool, values}), blend → Blend Options, perspectiveGrid → Perspective Grid Options, eyedropper → Eyedropper Options (dialog `eyedropperOptions`, fields sampleSize, pickUp, apply; OK runs eyedropper.setOptions), printTiling → resets the print tiling (print.tiling.set {reset: true}), warp|twirl|pucker|bloat|scallop|crystallize|wrinkle → that tool's Tool Options (dialog `liquifyOptions`, fields tool, width, height, angle, intensity %, usePressure, detail, simplify, simplifyOn, rate, complexity, horizontal %, vertical %, affectAnchors, affectIn, affectOut, showBrush; OK runs tool.setOption {tool, values}), pencil|paintbrush|smooth|blobBrush|eraser → that tool's Tool Options (dialog `freehandOptions`, fields tool and the options the tool keeps: fidelity (pt), fill, keepSelected (on for pencil and paintbrush, off for blobBrush), mergeOnlySelection (off), closeWithin and editWithin (px, 0 is off), livePreview (pencil, on: off draws a thin line while the stroke is drawn, and the path's fill and stroke on release), size (pt), angle (°, −180–180; 0) and roundness (%, 1–100; 100) of the eraser's tip; OK runs tool.setOption {tool, values}), livePaintSelection → Live Paint Selection Tool Options (dialog `livePaintSelectionOptions`, fields selectFills and selectStrokes (both on), color (the highlight color, #rrggbb or a layer color's name; #ff2a2a), width (the highlight's width, 1–20 px; 4); OK runs tool.setOption {tool: \"livePaintSelection\", values}), shapeBuilder → Shape Builder Tool Options (dialog `shapeBuilderOptions`, fields gapDetection (off), gapLength (pt, 0–72; 3), openFilledAsClosed (on), clickStrokeSplitsPath (off), pickColorFrom: artwork|swatches (artwork), cursorSwatchPreview (off), selection: freeform|straightLine (freeform), highlightFill (on), highlightStroke (on), highlightColor (#rrggbb or a layer color's name; #ff4f4f); OK runs tool.setOption {tool: \"shapeBuilder\", values})",
+ "{tool: id} what double-clicking a tool button opens: hand → fits the artboard in the window (view.fitArtboard), zoom → 100% (view.actualSize), rotate|scale|reflect|shear → that Object › Transform dialog (dialog `rotate`, `scale`, `reflect` or `shear`; error `nothing selected` without a selection), selection|directSelection|groupSelection → the Move dialog (dialog `move`; the same error), gradient|magicWand → the Gradient or Magic Wand panel (window.panel), artboard → Artboard Options of the active artboard (dialog `artboardOptions`, fields index, name, x, y, width, height, showCenterMark, showCrossHairs; OK runs artboard.setProps, and with other artboards selected with the Artboard tool a new width or height goes to each of them too, in its `artboards` list, each resized about the reference point the form used for that size, or about its top-left corner when the size was set in the fields directly), flare → Flare Tool Options (dialog `flareOptions`, fields diameter and pathLength (pt), opacity, brightness, growth, fuzziness, longest, rayFuzziness, largest (%), rays, rings, direction (°), raysOn, ringsOn; OK runs tool.setOption {tool: \"flare\", values}: the next flare dragged out uses them, and a Flare click's dialog, which also has x, y and preview (on initially), previews one there and accepts it as one Undo step; Cancel rolls back the preview), lineSegment|arc|rectangularGrid|polarGrid → that tool's Tool Options, its click dialog without x and y (dialog kind = the tool id, `__toolOptions: true`; lineSegment: length (pt), angle (°), fillLine; arc: lengthX, lengthY (pt), reference (0–8), arcType: open|closed, baseAlong: x|y, slope (−100…100), fillArc; rectangularGrid: width, height (pt, the Default Size), reference (0–8), rows, columns, rowSkew, columnSkew (%), frame, fill; polarGrid: the same with concentric, radial, concentricSkew, radialSkew and compound for rows, columns, the skews and frame; OK runs tool.setOption {tool, values} and draws nothing: the next drag uses them (Fill Line, the arc's type, base, slope and fill, the grids' dividers, skews and switches) and a click's dialog opens at them), columnGraph|stackedColumnGraph|barGraph|stackedBarGraph|lineGraph|areaGraph|scatterGraph|pieGraph|radarGraph → Graph Type for the selected graph (dialog `command` running graph.setType; an error without one), typeOnPath|verticalTypeOnPath → Type on a Path Options for the selected type on a path (dialog `command` running type.pathOptions; error `nothing selected` without a selection, and the command's error when no type on a path is selected),symbolSprayer|symbolShifter|symbolScruncher|symbolSizer|symbolSpinner|symbolStainer|symbolScreener|symbolStyler → Symbolism Tools Options (dialog `symbolismOptions`, fields tool, diameter (pt), intensity and density (1–10), shared by the eight tools; OK runs tool.setOption {tool, values}), blend → Blend Options, perspectiveGrid → Perspective Grid Options, eyedropper → Eyedropper Options (dialog `eyedropperOptions`, fields sampleSize, pickUp, apply; OK runs eyedropper.setOptions), printTiling → resets the print tiling (print.tiling.set {reset: true}), warp|twirl|pucker|bloat|scallop|crystallize|wrinkle → that tool's Tool Options (dialog `liquifyOptions`, fields tool, width, height, angle, intensity %, usePressure, detail, simplify, simplifyOn, rate, complexity, horizontal %, vertical %, affectAnchors, affectIn, affectOut, showBrush; OK runs tool.setOption {tool, values}), pencil|paintbrush|smooth|blobBrush|eraser → that tool's Tool Options (dialog `freehandOptions`, fields tool and the options the tool keeps: fidelity (pt), fill, keepSelected (on for pencil and paintbrush, off for blobBrush), mergeOnlySelection (off), closeWithin and editWithin (px, 0 is off), livePreview (pencil, on: off draws a thin line while the stroke is drawn, and the path's fill and stroke on release), size (pt), angle (°, −180–180; 0) and roundness (%, 1–100; 100) of the eraser's tip; OK runs tool.setOption {tool, values}), livePaintSelection → Live Paint Selection Tool Options (dialog `livePaintSelectionOptions`, fields selectFills and selectStrokes (both on), color (the highlight color, #rrggbb or a layer color's name; #ff2a2a), width (the highlight's width, 1–20 px; 4); OK runs tool.setOption {tool: \"livePaintSelection\", values}), shapeBuilder → Shape Builder Tool Options (dialog `shapeBuilderOptions`, fields gapDetection (off), gapLength (pt, 0–72; 3), openFilledAsClosed (on), clickStrokeSplitsPath (off), pickColorFrom: artwork|swatches (artwork), cursorSwatchPreview (off), selection: freeform|straightLine (freeform), highlightFill (on), highlightStroke (on), highlightColor (#rrggbb or a layer color's name; #ff4f4f); OK runs tool.setOption {tool: \"shapeBuilder\", values})",
),
(
"ui.colorGuideOptions",
@@ -710,6 +775,12 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
"",
"{selected?: preset name} open the presets manager (dialog `flattenerPresets`, fields `selected`, then the selected preset's `name` and option keys: setting them on a saved preset saves it, a new `name` renames it; built-in presets don't change). New, Delete, Import… and Export… run flattener.presets.save / delete / import / export",
),
+ (
+ "ui.imageTracePresetDialog",
+ "Save as New Preset…",
+ "",
+ "{params?: tracing settings (default: the Default preset's), rename?: a saved preset's name} the Image Trace panel's Manage Presets: open Save as New Preset… for those settings, or with `rename`, Rename… for that saved preset (dialog `imageTracePreset`, field `name`: a new \"Tracing Preset N\" or the preset's name); OK runs imageTrace.presets.save with the name (as `newName` when renaming), and the panel shows the preset it made from its settings",
+ ),
(
"ui.flattenerPreview",
"Flattener Preview",
@@ -809,7 +880,7 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
"ui.expandDialog",
"Expand…",
"",
- "{} open Expand for the selection (dialog `expand`, fields object, fill, stroke (all on; one the selection has nothing for is disabled, see object.expand.info), gradient: objects|mesh, steps 1..1000 (255)): OK runs object.expand with them as one undo step",
+ "{} open Expand for the selection (dialog `expand`, fields object, fill, stroke (all on; one the selection has nothing for is disabled, see object.expand.info), gradient: objects|mesh, steps 1..1000 (255)): OK runs object.expand with them as one undo step; dimmed, and an error, while the selection has an appearance effect.expandAppearance expands (object.expand.info's appearance)",
),
(
"attributes.openUrl",
@@ -833,7 +904,7 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
"ui.menuDialog",
"Menu Dialog",
"",
- "{command: object.move|object.rotate|object.scale|object.reflect|object.shear|object.transformEach|path.average|object.path.offsetPath|object.path.simplify|object.path.splitIntoGrid|object.vectorHalftone|artboard.rearrange|object.envelope.makeWithWarp|object.envelope.resetWithWarp|object.envelope.makeWithMesh|object.envelope.resetWithMesh|object.envelope.options} open the dialog that command's menu item opens (dialog kind: move, rotate, scale, reflect, shear, transformEach, …, vectorHalftone, rearrangeArtboards, envelopeWarp, envelopeMesh, envelopeOptions; Scale and Transform Each have `corners` and `strokes`, from the preferences, which OK updates; Transform Each opens on the values it was last confirmed with (not `copy`), and its Copy button confirms with `copy: true`; the envelope dialogs start from the selected envelope, Make opens as Reset (`reset: true`) while one is selected)",
+ "{command: object.move|object.rotate|object.scale|object.reflect|object.shear|object.transformEach|path.average|object.path.offsetPath|object.path.simplify|object.path.smooth|object.path.splitIntoGrid|object.vectorHalftone|artboard.rearrange|object.envelope.makeWithWarp|object.envelope.resetWithWarp|object.envelope.makeWithMesh|object.envelope.resetWithMesh|object.envelope.options} open the dialog that command's menu item opens (dialog kind: move, rotate, scale, reflect, shear, transformEach, …, vectorHalftone, rearrangeArtboards, envelopeWarp, envelopeMesh, envelopeOptions; Scale and Transform Each have `corners` and `strokes`, from the preferences, which OK updates; Transform Each opens on the values it was last confirmed with (not `copy`), and its Copy button confirms with `copy: true`; the envelope dialogs start from the selected envelope, Make opens as Reset (`reset: true`) while one is selected)",
),
(
"ui.widthPointEdit",
@@ -853,12 +924,24 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
"",
"{} the open Simplify slider (Object › Path › Simplify opens it: dialog `simplifySlider` with field `level` 0..100, object.path.simplify's level, opening at the level object.path.simplify {auto: true} picks for the selection, previewed on the canvas until ui.dialog.confirm keeps it as one undo step; after OK in the Simplify dialog with `retain` ticked, the menu item opens the dialog `simplify` with the fields of that OK instead) moves to the level object.path.simplify {auto: true} picks for the selection and previews it → {level}; an error when the slider isn't open",
),
+ (
+ "ui.smoothAuto",
+ "Auto-Smooth",
+ "",
+ "{} the open Smooth slider (Object › Path › Smooth opens it: dialog `smoothSlider` with field `level` 0..100, object.path.smooth's level, opening at the level object.path.smooth {auto: true} picks, previewed on the canvas until ui.dialog.confirm keeps it as one undo step) moves to the level object.path.smooth {auto: true} picks and previews it → {level}; an error when the slider isn't open",
+ ),
(
"ui.simplifyMoreOptions",
"More Options",
"",
"{} the Simplify dialog (dialog `simplify`: tolerance (pt), angleThreshold, straightLines, showOriginal, retain: ticked, OK makes Object › Path › Simplify open this dialog with these fields next time) takes the open Simplify slider's place, at the slider's tolerance → {tolerance}; an error when the slider isn't open",
),
+ (
+ "ui.dialogReset",
+ "Reset",
+ "",
+ "{} the open dialog's Reset, which its Cancel button reads while Alt (Option on macOS) is held (Flare Tool Options, dialog `flareOptions`): its fields go back to their defaults and the dialog stays open, so OK applies them → the dialog; an error when no dialog is open or the open one has no Reset",
+ ),
(
"ui.justification",
"Justification…",
@@ -1092,6 +1175,18 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
"",
"{} close the progress window of the heavy filters running in the background; they go on, shown in the status bar → {hidden: n}",
),
+ (
+ "imageTrace.cancelRuns",
+ "Cancel Image Trace",
+ "",
+ "{} stop every Image Trace running in the background (its progress window's Cancel): it stops at its next colour and changes nothing → {cancelled: n}",
+ ),
+ (
+ "imageTrace.hideRuns",
+ "Continue in Background",
+ "",
+ "{} close the progress window of the Image Traces running in the background; they go on, shown in the status bar → {hidden: n}",
+ ),
(
"ui.checkScript",
"Check Script…",
diff --git a/crates/ui-egui/src/opening.rs b/crates/ui-egui/src/opening.rs
index 04dacc0c0b..e1949573dd 100644
--- a/crates/ui-egui/src/opening.rs
+++ b/crates/ui-egui/src/opening.rs
@@ -29,12 +29,14 @@ pub struct Opening {
}
/// Is a long operation running that should show the busy cursor and status spinner (background
-/// save/export with a label, a file opening or being read for Place off the UI thread, or a heavy plug-in filter)?
+/// save/export with a label, a file opening or being read for Place off the UI thread, a heavy plug-in filter, or an
+/// Image Trace)?
pub fn long_operation_busy(app: &VectorcraftApp) -> bool {
app.background.jobs.iter().any(|j| !j.label.is_empty() && !j.cancelled())
|| !app.opening.pending.is_empty()
|| !app.plugin_runs.running.is_empty()
|| !app.placing.pending.is_empty()
+ || !app.trace_runs.running.is_empty()
}
/// Does opening happen off the UI thread here? Not on wasm (no threads), in unit tests (they look
diff --git a/crates/ui-egui/src/palette.rs b/crates/ui-egui/src/palette.rs
index 5fd8bb62e7..a6cc61e230 100644
--- a/crates/ui-egui/src/palette.rs
+++ b/crates/ui-egui/src/palette.rs
@@ -104,7 +104,12 @@ pub fn show(app: &mut VectorcraftApp, ctx: &egui::Context) {
egui::Area::new(egui::Id::unique("palette")).order(egui::Order::Foreground).anchor(egui::Align2::CENTER_TOP, [0.0, 90.0]).show(ctx, |ui| {
egui::Frame::popup(ui.style()).fill(t.panel).inner_margin(egui::Margin::same(10)).show(ui, |ui| {
ui.set_width(520.0);
- let r = ui.add(egui::TextEdit::singleline(&mut app.ui.palette_query).hint_text(tl!("Search commands and tools…")).desired_width(500.0));
+ let r = ui.add(
+ egui::TextEdit::singleline(&mut app.ui.palette_query)
+ .align(egui::Align2::LEFT_CENTER)
+ .hint_text(tl!("Search commands and tools…"))
+ .desired_width(500.0),
+ );
r.request_focus();
ui.add_space(6.0);
for (i, e) in matches.iter().enumerate() {
diff --git a/crates/ui-egui/src/panel_docking.rs b/crates/ui-egui/src/panel_docking.rs
index eba97d88f7..dfedad31dc 100644
--- a/crates/ui-egui/src/panel_docking.rs
+++ b/crates/ui-egui/src/panel_docking.rs
@@ -345,6 +345,16 @@ fn show_panel(app: &mut VectorcraftApp, params: &Value) -> Result
})
}
+/// Show `panel` as `window.panel` does, but leave it be when it already shows ([`showing`]): a
+/// command that opens a panel to work in (Edit › Color Settings…) never puts it away.
+pub(crate) fn reveal_panel(app: &mut VectorcraftApp, panel: &str) -> Result {
+ if showing(&app.ui, panel) {
+ app.ui.dock = true;
+ return Ok(json!({"open": panel}));
+ }
+ show_panel(app, &json!({ "panel": panel }))
+}
+
/// `window.collapseDock {collapsed?}`: collapse every dock column to icons, or expand the outer
/// one; without `collapsed` it toggles the outer column.
pub(crate) fn collapse_dock(app: &mut VectorcraftApp, collapsed: Option) -> Result {
diff --git a/crates/ui-egui/src/panel_docking/tests.rs b/crates/ui-egui/src/panel_docking/tests.rs
index 097da29998..4bb77928be 100644
--- a/crates/ui-egui/src/panel_docking/tests.rs
+++ b/crates/ui-egui/src/panel_docking/tests.rs
@@ -156,6 +156,25 @@ fn a_tab_dragged_out_floats_and_comes_back_where_it_was_after_its_window_closes(
assert!(h.tab("layers").is_some());
}
+/// A Character field shortcut with the Character panel in front of its floating window brings
+/// that window forward and leaves the panel showing.
+#[test]
+fn a_character_field_shortcut_brings_the_floating_character_panel_forward() {
+ let mut h = Harness::new();
+ let id = h.app.run("text.create", json!({"x": 20, "y": 50, "text": "AVAX"})).unwrap()["id"].clone();
+ h.app.run("select.set", json!({"ids": [id]})).unwrap();
+ h.app.run("window.panel.float", json!({"panel": "character"})).unwrap();
+ h.frame(vec![]);
+ assert!(showing(&h.app.ui, "character"));
+ assert_eq!(h.app.dock_rt.raise, None);
+ for command in ["type.highlightKerning", "type.highlightTracking", "type.highlightFontName"] {
+ h.app.run(command, json!({})).unwrap();
+ assert_eq!(h.app.dock_rt.raise.as_deref(), Some("character"), "{command}");
+ h.frame(vec![]);
+ assert!(showing(&h.app.ui, "character"), "{command} leaves the panel showing");
+ }
+}
+
#[test]
fn the_dock_collapses_to_icons_and_back() {
let mut h = Harness::new();
diff --git a/crates/ui-egui/src/panels/align.rs b/crates/ui-egui/src/panels/align.rs
index eab7bb3066..937a158284 100644
--- a/crates/ui-egui/src/panels/align.rs
+++ b/crates/ui-egui/src/panels/align.rs
@@ -337,7 +337,21 @@ pub fn menu(app: &mut VectorcraftApp, ui: &mut Ui) {
if menu_item(ui, tl!("Cancel Key Object"), align_to(app) == AlignTo::Key, false) {
app.run("select.key", json!({})).ok();
}
- menu_item(ui, tl!("Align to Glyph Bounds"), false, false);
+ // Indented like the items beside it (their check column).
+ ui.menu_button(format!(" {}", tl!("Align to Glyph Bounds")), |ui| glyph_bounds_items(app, ui));
+}
+
+/// The Align to Glyph Bounds submenu: Point Text and Area Text, each checked while Align and
+/// Distribute measure that kind of type by the ink of its glyphs.
+fn glyph_bounds_items(app: &mut VectorcraftApp, ui: &mut Ui) {
+ for (label, key, on) in [
+ (tl!("Point Text"), "alignGlyphBoundsPoint", app.session.prefs.align_glyph_bounds_point),
+ (tl!("Area Text"), "alignGlyphBoundsArea", app.session.prefs.align_glyph_bounds_area),
+ ] {
+ if menu_item(ui, label, true, on) {
+ super::transform::set_pref(app, key, !on);
+ }
+ }
}
#[cfg(test)]
diff --git a/crates/ui-egui/src/panels/align/tests.rs b/crates/ui-egui/src/panels/align/tests.rs
index 7a25fd0bbe..76b7e3b60d 100644
--- a/crates/ui-egui/src/panels/align/tests.rs
+++ b/crates/ui-egui/src/panels/align/tests.rs
@@ -692,3 +692,30 @@ fn distribute_buttons_space_the_anchor_points_of_one_path() {
let xs: Vec = node.path_data().unwrap().anchors().map(|(_, _, a)| a.p.x).collect();
assert_eq!(xs, [10.0, 55.0, 100.0], "{}", app.ui.status);
}
+
+/// #4231: the panel menu's Align to Glyph Bounds is a submenu (no longer dimmed) whose Point Text
+/// and Area Text each toggle their own preference and show a check while it is on.
+#[test]
+fn align_to_glyph_bounds_toggles_point_and_area_text() {
+ let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), Default::default());
+ let ctx = egui::Context::default();
+ crate::theme::install_fonts(&ctx);
+ assert!(frame_events(&ctx, &mut app, vec![], menu).iter().any(|(t, _)| t.trim() == "Align to Glyph Bounds"));
+ let checked = |app: &mut VectorcraftApp| {
+ let texts = frame_events(&ctx, app, vec![], glyph_bounds_items);
+ texts.iter().filter_map(|(t, _)| t.strip_prefix("✓ ")).map(str::to_string).collect::>()
+ };
+ let choose = |app: &mut VectorcraftApp, label: &str| {
+ let texts = frame_events(&ctx, app, vec![], glyph_bounds_items);
+ let r = texts.iter().find(|(t, _)| t.trim_start_matches('✓').trim() == label).unwrap_or_else(|| panic!("{label} in {texts:?}")).1;
+ click(&ctx, app, r.center(), glyph_bounds_items);
+ };
+ let prefs = |app: &VectorcraftApp| (app.session.prefs.align_glyph_bounds_point, app.session.prefs.align_glyph_bounds_area);
+ assert!(checked(&mut app).is_empty(), "both off by default");
+ choose(&mut app, "Point Text");
+ assert_eq!((prefs(&app), checked(&mut app)), ((true, false), vec!["Point Text".to_string()]));
+ choose(&mut app, "Area Text");
+ assert_eq!((prefs(&app), checked(&mut app)), ((true, true), vec!["Point Text".to_string(), "Area Text".to_string()]));
+ choose(&mut app, "Point Text");
+ assert_eq!((prefs(&app), checked(&mut app)), ((false, true), vec!["Area Text".to_string()]));
+}
diff --git a/crates/ui-egui/src/panels/artboards.rs b/crates/ui-egui/src/panels/artboards.rs
index f929bc3a4d..695f63fd62 100644
--- a/crates/ui-egui/src/panels/artboards.rs
+++ b/crates/ui-egui/src/panels/artboards.rs
@@ -308,7 +308,7 @@ fn select_range(app: &mut VectorcraftApp, anchor: Option, i: usize, n: us
/// Ctrl/Cmd-click on artboard `i`'s row while the Artboard tool is in use: adds its artboard to the
/// tool's selection and makes it the active one, or takes it out and makes the lowest-numbered
/// remaining artboard active. The only selected artboard stays selected.
-fn toggle(app: &mut VectorcraftApp, i: usize, n: usize) {
+pub(crate) fn toggle(app: &mut VectorcraftApp, i: usize, n: usize) {
let mut all = picked(app, n);
match all.iter().position(|j| *j == i) {
Some(at) if all.len() > 1 => {
@@ -437,7 +437,10 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
let id = ui.scope_id().with(("ab-name", i));
let mut buf: String = ui.data_mut(|d| d.get_temp::(id)).unwrap_or_else(|| shown.to_string());
let kept = widgets::own_field_shift_enter(ui, id, &mut buf, shown);
- let te = ui.put(name_rect, egui::TextEdit::singleline(&mut buf).id(id).font(egui::FontId::proportional(12.0)));
+ let te = ui.put(
+ name_rect,
+ egui::TextEdit::singleline(&mut buf).id(id).align(egui::Align2::LEFT_CENTER).font(egui::FontId::proportional(12.0)),
+ );
if !te.has_focus() && !te.lost_focus() {
te.request_focus();
}
diff --git a/crates/ui-egui/src/panels/asset_export.rs b/crates/ui-egui/src/panels/asset_export.rs
index 7376555404..3cc81fce7d 100644
--- a/crates/ui-egui/src/panels/asset_export.rs
+++ b/crates/ui-egui/src/panels/asset_export.rs
@@ -130,8 +130,13 @@ fn tiles(ui: &mut Ui, st: &DocState, sel: &[u64], ev: &mut Events) {
let field = rename_id.with("field");
let kept = widgets::own_field_shift_enter(ui, field, &mut buf, &a.name);
let mut child = ui.new_child(egui::UiBuilder::new().max_rect(name_rect));
- let te = child
- .add(egui::TextEdit::singleline(&mut buf).id(field).desired_width(name_rect.width()).font(egui::FontId::proportional(11.5)));
+ let te = child.add(
+ egui::TextEdit::singleline(&mut buf)
+ .id(field)
+ .align(egui::Align2::LEFT_CENTER)
+ .desired_width(name_rect.width())
+ .font(egui::FontId::proportional(11.5)),
+ );
// Enter or a click elsewhere commits, Escape cancels; Shift+Enter commits and
// keeps the field open.
if te.lost_focus() {
diff --git a/crates/ui-egui/src/panels/character.rs b/crates/ui-egui/src/panels/character.rs
index bc65131281..cbc0b98430 100644
--- a/crates/ui-egui/src/panels/character.rs
+++ b/crates/ui-egui/src/panels/character.rs
@@ -329,6 +329,63 @@ pub(crate) fn toggle_face(app: &mut VectorcraftApp, face: Face) -> Result &'static str {
+ match self {
+ Field::FontName => "ch-font",
+ Field::Kerning => "ch-kern",
+ Field::Tracking => "ch-track",
+ }
+ }
+
+ fn name(self) -> &'static str {
+ match self {
+ Field::FontName => "fontName",
+ Field::Kerning => "kerning",
+ Field::Tracking => "tracking",
+ }
+ }
+}
+
+/// `type.highlightFontName`, `type.highlightKerning` and `type.highlightTracking`: show the
+/// Character panel if it is hidden (a shown one is activated, so its floating window comes
+/// forward), and give `field` the keyboard focus when the panel next draws it, a number field with
+/// its value selected (typing replaces it, Enter applies it). Without selected type or text the
+/// Type tool edits, the panel shows, nothing takes the focus and the command fails. → `{field}`.
+pub(crate) fn highlight(app: &mut VectorcraftApp, field: Field) -> Result {
+ // `window.panel` would hide a floating panel in front of its window, or an open flyout.
+ if crate::panel_docking::showing(&app.ui, "character") {
+ app.run("window.panel.activate", json!({"panel": "character"}))?;
+ } else {
+ app.run("window.panel", json!({"panel": "character"}))?;
+ }
+ if text_style(app).is_none() {
+ app.character_focus = None;
+ return Err("select some type first".into());
+ }
+ app.character_focus = Some(field);
+ Ok(json!({ "field": field.name() }))
+}
+
+/// `type.underline` (Cmd+Shift+U): what the Underline button does, on the text the panels act on.
+/// Returns whether the text is now underlined.
+pub(crate) fn toggle_underline(app: &mut VectorcraftApp) -> Result {
+ let (s, _) = text_style(app).ok_or("select some type first")?;
+ format(app, json!({"underline": !s.underline}));
+ Ok(json!(!s.underline))
+}
+
/// `text.setRangeStyle` with `p` on the range the Type tool has selected (the whole text when
/// nothing is selected). Does nothing unless the Type tool edits text.
pub(crate) fn range_style(app: &mut VectorcraftApp, p: Value) {
@@ -370,6 +427,7 @@ static CTX: OnceLock