From 1959fc3d71bf90ece9db6cbf329f92950e9fc452 Mon Sep 17 00:00:00 2001
From: phonedu <135960865+phonedu@users.noreply.github.com>
Date: Tue, 10 Nov 2026 11:44:18 +0800
Subject: [PATCH 01/57] M13: design review commands (engine and MCP)
---
crates/doc/src/design_review.rs | 111 ++
crates/doc/src/lib.rs | 6 +
crates/engine/src/automation/inspect.rs | 2 +
crates/engine/src/cmd.rs | 1 +
crates/engine/src/cmd/create.rs | 26 +-
crates/engine/src/cmd/props.rs | 2 +-
crates/engine/src/design/audit.rs | 1318 +++++++++++++++++++++
crates/engine/src/design/fix.rs | 319 +++++
crates/engine/src/design/mod.rs | 378 ++++++
crates/engine/src/design/rules.rs | 132 +++
crates/engine/src/design/tests.rs | 863 ++++++++++++++
crates/engine/src/inspect_fields_tests.rs | 1 +
crates/engine/src/lib.rs | 1 +
crates/engine/src/prefs.rs | 4 +
crates/mcp/src/prompts.rs | 20 +-
crates/mcp/src/server.rs | 6 +-
crates/mcp/tests/it/protocol.rs | 5 +-
17 files changed, 3183 insertions(+), 12 deletions(-)
create mode 100644 crates/doc/src/design_review.rs
create mode 100644 crates/engine/src/design/audit.rs
create mode 100644 crates/engine/src/design/fix.rs
create mode 100644 crates/engine/src/design/mod.rs
create mode 100644 crates/engine/src/design/rules.rs
create mode 100644 crates/engine/src/design/tests.rs
diff --git a/crates/doc/src/design_review.rs b/crates/doc/src/design_review.rs
new file mode 100644
index 000000000..c2fce64c8
--- /dev/null
+++ b/crates/doc/src/design_review.rs
@@ -0,0 +1,111 @@
+//! The design system a file's review follows: how strict it is, the spacing grid, the radii it
+//! accepts and the brand accents it knows (`design.configure`).
+//!
+//! Kept in the document, so a file carries its settings for everyone who opens it, and the audit,
+//! the fixer and CI all read the same values.
+
+use figcraft_color::Color;
+use serde::{Deserialize, Serialize};
+
+/// How strict `design.audit` is.
+#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
+#[serde(rename_all = "kebab-case")]
+pub enum DesignPreset {
+ /// The rules that catch the usual AI-generated tells.
+ #[default]
+ Recommended,
+ /// Recommended plus the judgment calls (too many accent colours, frames without auto layout).
+ Strict,
+ /// Only the findings that keep a design usable: contrast, the type floor, gradient text and
+ /// clipped text.
+ Accessibility,
+}
+
+impl DesignPreset {
+ pub const ALL: [Self; 3] = [Self::Recommended, Self::Strict, Self::Accessibility];
+
+ pub fn id(self) -> &'static str {
+ match self {
+ Self::Recommended => "recommended",
+ Self::Strict => "strict",
+ Self::Accessibility => "accessibility",
+ }
+ }
+
+ pub fn from_id(s: &str) -> Option {
+ match s.trim().to_ascii_lowercase().as_str() {
+ "recommended" | "default" => Some(Self::Recommended),
+ "strict" => Some(Self::Strict),
+ "accessibility" | "a11y" => Some(Self::Accessibility),
+ _ => None,
+ }
+ }
+}
+
+/// The smallest and largest spacing grid a file may set.
+pub const GRID_MIN: f64 = 1.0;
+pub const GRID_MAX: f64 = 64.0;
+
+/// Most radii and brand colours a file keeps.
+pub const MAX_RADII: usize = 32;
+pub const MAX_BRAND_COLORS: usize = 32;
+
+/// A file's design review settings. The default is the recommended preset on a 4px grid with the
+/// 4px radius scale and no brand palette.
+#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
+#[serde(default, rename_all = "camelCase")]
+pub struct DesignReview {
+ pub preset: DesignPreset,
+ /// The spacing and radius grid in pixels (`0`: 4). A value outside [`GRID_MIN`]..=[`GRID_MAX`]
+ /// reads as the default.
+ pub grid: f64,
+ /// The corner radii the design uses, in pixels. Empty: any multiple of the grid from the grid
+ /// up, or a pill.
+ pub radii: Vec,
+ /// The brand's accent colours: they don't count as stray accents (`color.accents`).
+ pub brand: Vec,
+ /// Rule ids this file turns off.
+ pub disabled: Vec,
+}
+
+impl DesignReview {
+ /// Whether the settings are the default ones (nothing to save).
+ pub fn is_default(&self) -> bool {
+ *self == Self::default()
+ }
+
+ /// The grid in pixels, with invalid values read as 4.
+ pub fn grid(&self) -> f64 {
+ if self.grid.is_finite() && (GRID_MIN..=GRID_MAX).contains(&self.grid) { self.grid } else { 4.0 }
+ }
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn presets_round_trip_by_id() {
+ for p in DesignPreset::ALL {
+ assert_eq!(DesignPreset::from_id(p.id()), Some(p));
+ }
+ assert_eq!(DesignPreset::from_id("a11y"), Some(DesignPreset::Accessibility));
+ assert_eq!(DesignPreset::from_id("loud"), None);
+ }
+
+ #[test]
+ fn a_default_file_does_not_serialize_the_settings_and_junk_grid_reads_as_four() {
+ let doc = crate::Document::new("Untitled");
+ let json = serde_json::to_value(&doc).unwrap();
+ assert!(json.get("designReview").is_none(), "{json}");
+ let mut settings = DesignReview::default();
+ assert!(settings.is_default());
+ settings.grid = -3.0;
+ assert_eq!(settings.grid(), 4.0);
+ settings.grid = f64::NAN;
+ assert_eq!(settings.grid(), 4.0);
+ settings.grid = 8.0;
+ assert_eq!(settings.grid(), 8.0);
+ assert!(!settings.is_default());
+ }
+}
diff --git a/crates/doc/src/lib.rs b/crates/doc/src/lib.rs
index 81760d718..ac6cf5602 100644
--- a/crates/doc/src/lib.rs
+++ b/crates/doc/src/lib.rs
@@ -12,6 +12,7 @@ pub mod board;
mod board_route;
pub mod colors;
pub mod comments;
+pub mod design_review;
pub mod facilitation;
pub mod geometry;
pub mod handoff;
@@ -30,6 +31,7 @@ pub use board::*;
pub use board_route::{END_GAP, MAX_RUNS, RouteEnd, attach_points, attached_sides, path_handles, reshaped, route_along, route_points};
pub use colors::*;
pub use comments::*;
+pub use design_review::{DesignPreset, DesignReview, GRID_MAX, GRID_MIN, MAX_BRAND_COLORS, MAX_RADII};
pub use facilitation::*;
pub use figcraft_color as color;
pub use figcraft_geom as geom;
@@ -229,6 +231,9 @@ pub struct Document {
/// Image adjustment presets saved in this file.
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub image_presets: Vec,
+ /// The design system and rules this file's review follows (`design.configure`).
+ #[serde(default, skip_serializing_if = "DesignReview::is_default")]
+ pub design_review: DesignReview,
/// Annotation categories (`None`: [`AnnotationCategory::defaults`]).
#[serde(default, skip_serializing_if = "Option::is_none")]
pub annotation_categories: Option>,
@@ -285,6 +290,7 @@ impl Document {
published: None,
color_profile: ColorProfile::Srgb,
image_presets: Vec::new(),
+ design_review: DesignReview::default(),
annotation_categories: None,
dev_snapshots: BTreeMap::new(),
timer: None,
diff --git a/crates/engine/src/automation/inspect.rs b/crates/engine/src/automation/inspect.rs
index 324635071..d4615bb84 100644
--- a/crates/engine/src/automation/inspect.rs
+++ b/crates/engine/src/automation/inspect.rs
@@ -40,6 +40,7 @@ pub const NODE_KEYS: &[&str] = &[
"fontFamily",
"fontSize",
"fontStyle",
+ "fontWeight",
"fontVariations",
"gridCell",
"grids",
@@ -398,6 +399,7 @@ fn text_props(t: &TextData, o: &mut serde_json::Map, options: &In
});
insert_prop(o, options, "fontFamily", || json!(t.style.font_family));
insert_prop(o, options, "fontStyle", || json!(t.style.font_style));
+ insert_prop(o, options, "fontWeight", || json!(t.style.weight()));
insert_prop(o, options, "fontSize", || json!(t.style.font_size));
if !t.style.variations.is_empty() {
insert_prop(o, options, "fontVariations", || json!(t.style.variations));
diff --git a/crates/engine/src/cmd.rs b/crates/engine/src/cmd.rs
index 0e90dc198..8ab89c1d5 100644
--- a/crates/engine/src/cmd.rs
+++ b/crates/engine/src/cmd.rs
@@ -107,6 +107,7 @@ fn registry() -> &'static Registry {
list.extend(crate::dev_resources::specs());
list.extend(crate::dev_measurements::specs());
list.extend(crate::distance::specs());
+ list.extend(crate::design::specs());
list.extend(crate::collab::specs());
list.extend(crate::branches::specs());
list.extend(crate::plugins::specs());
diff --git a/crates/engine/src/cmd/create.rs b/crates/engine/src/cmd/create.rs
index 435c3422a..920ec1113 100644
--- a/crates/engine/src/cmd/create.rs
+++ b/crates/engine/src/cmd/create.rs
@@ -1,7 +1,7 @@
//! Creating nodes.
use figcraft_color::{ImageFilters, ImageScaleMode, Paint};
-use figcraft_doc::{Document, Node, NodeId, NodeKind, StrokeCap, TextAutoResize, TextData, VectorNetwork};
+use figcraft_doc::{Document, Node, NodeId, NodeKind, Sizing, StrokeCap, TextAutoResize, TextData, VectorNetwork};
use figcraft_geom::Point;
use serde_json::{Value, json};
@@ -99,7 +99,7 @@ pub fn specs() -> Vec {
spec!(
"text.create",
"Text",
- "{text | characters, x, y, parent?, index?, name? (default: the first line), width? (fixed width wraps), props? (fontSize, fontFamily, …), select? (default true)}",
+ "{text | characters, x?, y? (ignored inside an auto layout parent), parent?, index?, name? (default: the first line), width? (fixed width wraps), props? (fontSize, fontWeight, fontFamily, …), select? (default true)}",
true,
|s, p| { create_kind(s, p, "text") }
),
@@ -275,7 +275,9 @@ pub fn create(s: &mut Session, p: &Value) -> Result {
let doc = s.doc()?;
let pn = doc.get(parent)?;
if !pn.kind.is_container() {
- return Err(bad(cmd, format!("{parent} can't contain layers")));
+ let name = pn.name.trim();
+ let what = if name.is_empty() { pn.kind.type_name().to_string() } else { format!("{} \"{}\"", pn.kind.type_name(), name) };
+ return Err(bad(cmd, format!("{parent} ({what}) can't contain layers")));
}
if base == "Section" && !doc.takes_sections(parent) {
return Err(bad(cmd, "sections go on the page or in other sections"));
@@ -371,6 +373,24 @@ pub fn create(s: &mut Session, p: &Value) -> Result {
doc.insert(node, parent, index)?;
if let Some(Value::Object(props)) = get(p, "props") {
super::props::apply(cmd, doc, nid, props)?;
+ // An auto layout frame hugs the axes the caller left unset — the incumbent's default, and
+ // the difference between a card and a 100pt-tall box that silently clips its rows.
+ // Explicit width/height and explicit sizing keep their fixed/fill behaviour.
+ if doc.node(nid).is_some_and(|n| n.layout.is_some()) {
+ let asked = |axis: &str, keys: &[&str]| {
+ let long = if axis == "h" { "width" } else { "height" };
+ let short = if axis == "h" { "w" } else { "h" };
+ num(p, long).is_some() || props.contains_key(long) || props.contains_key(short) || keys.iter().any(|k| props.contains_key(*k))
+ };
+ if let Some(n) = doc.node_mut(nid) {
+ if !asked("h", &["sizingH", "layoutSizingHorizontal"]) {
+ n.child_layout.sizing_h = Sizing::Hug;
+ }
+ if !asked("v", &["sizingV", "layoutSizingVertical"]) {
+ n.child_layout.sizing_v = Sizing::Hug;
+ }
+ }
+ }
}
if boolean(p, "select").unwrap_or(true) {
ds.selection = vec![nid];
diff --git a/crates/engine/src/cmd/props.rs b/crates/engine/src/cmd/props.rs
index 2e5da37bd..f077a31d9 100644
--- a/crates/engine/src/cmd/props.rs
+++ b/crates/engine/src/cmd/props.rs
@@ -23,7 +23,7 @@ clip, isMask, layout (null|horizontal|vertical|grid|{...}), gap, crossGap, paddi
mainAlign (min|center|max, or the auto gaps spaceBetween|spaceAround|spaceEvenly), crossAlign (min|center|max|baseline: first text baselines, horizontal layouts), contentAlign (wrapped lines: auto = packed where crossAlign says | spaceBetween), wrap (rows of a horizontal layout, columns of a vertical one), strokesIncluded (the frame's inside stroke takes up space), reverseZ (canvas stacking: true = first on top), \
columnGap / rowGap (aliases of gap / crossGap), gridColumns, gridRows, columnTracks / rowTracks ([120 | \"1fr\" | \"auto\" | {sizing, value}]), \
gridColumn / gridRow (0-based cell anchor, null = auto), gridColumnSpan, gridRowSpan, gridAlignH / gridAlignV (a grid child's alignment in its cell: min|center|max, auto/null = the frame's), sizingH / sizingV (fixed|hug|fill), \
-absolute (ignore auto layout; follows constraints), minWidth, maxWidth, minHeight, maxHeight (null removes), constraints {horizontal, vertical}, grids, exports, characters, fontFamily, fontStyle, \
+absolute (ignore auto layout; follows constraints), minWidth, maxWidth, minHeight, maxHeight (null removes), constraints {horizontal, vertical}, grids, exports, characters, fontFamily, fontStyle, fontWeight (a number: 400 Regular, 600 Semi Bold — the nearest face the family has), \
fontSize, lineHeight (auto|px|\"150%\"), letterSpacing (px|\"2%\"), textAlign (left|center|right|justified), textAlignVertical, textAutoResize \
(widthAndHeight|height|none|truncate), textDecoration, textDecorationStyle (solid|dotted|wavy), textDecorationThickness / textDecorationOffset \
(auto|px|\"10%\" of the font size; the offset runs from the baseline down to an underline's top edge), textDecorationSkipInk (underlines break around descenders), \
diff --git a/crates/engine/src/design/audit.rs b/crates/engine/src/design/audit.rs
new file mode 100644
index 000000000..0a39840e5
--- /dev/null
+++ b/crates/engine/src/design/audit.rs
@@ -0,0 +1,1318 @@
+//! Walking the scope and turning what it finds into findings.
+//!
+//! Nothing here edits the document: `design.audit` reads pages and reports. The walk stops at an
+//! instance's children (they mirror the main component, which is audited where it lives), skips
+//! hidden layers and caps the number of nodes so a huge file cannot stall the app.
+
+use std::collections::{BTreeMap, BTreeSet};
+
+use figcraft_color::{BlendMode, Color, Paint, PaintKind};
+use figcraft_doc::{
+ CollectionId, DesignPreset, Document, Effect, EffectKind, LayoutMode, ModeId, Node, NodeId, NodeKind, Shadow, Sizing, StrokeAlign,
+ TextAutoResize, TextData, VariableValue,
+};
+use serde_json::{Map, Value, json};
+
+use crate::cmd::lists::paint_binding_key;
+
+use super::rules::{Severity, rule};
+
+/// Most layers one audit looks at; past it the report says `truncated`.
+const MAX_NODES: usize = 50_000;
+/// Most text layers one audit lays out for the overflow check (text layout is the expensive part).
+const MAX_TEXT_MEASURED: usize = 2_000;
+/// Most auto layout frames one audit measures for clipped children (bounds are per-subtree).
+const MAX_FRAMES_MEASURED: usize = 500;
+/// Most siblings or children one backdrop lookup scans before it stops guessing; a flat frame with
+/// tens of thousands of layers must not turn every text check into a full scan.
+const MAX_BACKDROP_SCAN: usize = 512;
+
+/// The design system a run checks against: the file's settings (`design.configure`) with an
+/// optional preset override from the call.
+#[derive(Clone)]
+pub(crate) struct Settings {
+ pub(crate) preset: DesignPreset,
+ pub(crate) grid: f64,
+ /// Allowed corner radii; empty: any multiple of the grid from the grid up, or a pill.
+ pub(crate) radii: Vec,
+ /// Brand accents as 8-bit RGBA.
+ pub(crate) brand: Vec<[u8; 4]>,
+ pub(crate) disabled: BTreeSet,
+ /// Variable modes the run resolves colours in (empty: the document's own modes).
+ pub(crate) modes: BTreeMap,
+ /// The same modes by collection and mode name, for the message and the report.
+ pub(crate) mode_labels: BTreeMap,
+}
+
+impl Settings {
+ pub(crate) fn new(doc: &Document, preset: Option) -> Self {
+ let config = &doc.design_review;
+ Self {
+ preset: preset.unwrap_or(config.preset),
+ grid: config.grid(),
+ radii: config.radii.iter().copied().filter(|r| r.is_finite() && (0.0..=999.0).contains(r)).collect(),
+ brand: config.brand.iter().map(|c| c.to_rgba8()).collect(),
+ disabled: config.disabled.iter().cloned().collect(),
+ modes: BTreeMap::new(),
+ mode_labels: BTreeMap::new(),
+ }
+ }
+
+ /// Resolve colours in `modes` (collection and mode ids, already checked against the document).
+ pub(crate) fn in_modes(mut self, doc: &Document, modes: BTreeMap) -> Self {
+ for (collection, mode) in &modes {
+ let Some(c) = doc.variables.collection_by_id(collection) else { continue };
+ let Some(m) = c.mode_by_id(mode) else { continue };
+ self.mode_labels.insert(c.name.clone(), m.name.clone());
+ }
+ self.modes = modes;
+ self
+ }
+
+ /// The mode names for a finding's message, when any are overridden.
+ fn mode_note(&self) -> String {
+ self.mode_labels.iter().map(|(c, m)| format!("{c}: {m}")).collect::>().join(", ")
+ }
+
+ /// Whether a run using these settings reports `id`.
+ pub(crate) fn enabled(&self, id: &str) -> bool {
+ !self.disabled.contains(id) && super::rules::enabled(id, self.preset)
+ }
+
+ fn on_grid(&self, v: f64) -> bool {
+ v.is_finite() && ((v / self.grid) - (v / self.grid).round()).abs() <= 0.01
+ }
+
+ pub(crate) fn snap(&self, v: f64) -> f64 {
+ if v.is_finite() { ((v / self.grid).round() * self.grid).max(0.0) } else { 0.0 }
+ }
+
+ pub(crate) fn radius_ok(&self, r: f64, w: f64, h: f64) -> bool {
+ if !r.is_finite() || r <= 0.01 {
+ return true;
+ }
+ let min = w.min(h);
+ let pill = min > 0.0 && (r - min / 2.0).abs() <= 1.0;
+ if pill {
+ return true;
+ }
+ if !self.radii.is_empty() {
+ return self.radii.iter().any(|a| (r - a).abs() <= 0.5);
+ }
+ r >= self.grid && self.on_grid(r)
+ }
+
+ pub(crate) fn snap_radius(&self, r: f64) -> f64 {
+ if !r.is_finite() {
+ return self.grid;
+ }
+ if !self.radii.is_empty() {
+ let mut best = self.grid;
+ let mut distance = f64::INFINITY;
+ for a in &self.radii {
+ let d = (r - a).abs();
+ if d < distance {
+ best = *a;
+ distance = d;
+ }
+ }
+ return best;
+ }
+ ((r / self.grid).round() * self.grid).max(self.grid)
+ }
+
+ /// Whether `c` is one of the file's brand accents (within a few 8-bit steps per channel).
+ pub(crate) fn is_brand(&self, c: Color) -> bool {
+ let rgba = c.to_rgba8();
+ self.brand.iter().any(|b| (0..4).all(|i| b[i].abs_diff(rgba[i]) <= 12))
+ }
+
+ /// The settings a report or the window shows.
+ pub(crate) fn json(&self) -> Value {
+ let mut v = json!({"preset": self.preset.id(), "grid": self.grid});
+ if !self.mode_labels.is_empty()
+ && let Some(o) = v.as_object_mut()
+ {
+ o.insert("modes".into(), json!(self.mode_labels));
+ }
+ v
+ }
+}
+
+/// One finding, owned so `design.fix` can act on it after the walk.
+#[derive(Clone)]
+pub(crate) struct Finding {
+ pub(crate) rule: &'static str,
+ pub(crate) severity: Severity,
+ pub(crate) node: NodeId,
+ pub(crate) path: String,
+ pub(crate) message: String,
+ pub(crate) fixable: bool,
+ pub(crate) suggestion: Option,
+ /// The values behind the message, for a localized line in the window and for agents.
+ pub(crate) details: Option,
+ /// Why a finding is not fixable: `"bound"` (owned by a variable or style), `"modes"` (read in
+ /// the chosen variable modes), `None` (needs a decision). Only for `fixable: false`.
+ pub(crate) reason: Option<&'static str>,
+}
+
+impl Finding {
+ fn json(&self) -> Value {
+ let mut v = json!({
+ "rule": self.rule,
+ "severity": self.severity.id(),
+ "node": self.node,
+ "path": self.path,
+ "message": self.message,
+ "fixable": self.fixable,
+ });
+ if let (Some(s), Some(o)) = (&self.suggestion, v.as_object_mut()) {
+ o.insert("suggestion".into(), s.clone());
+ }
+ if let (Some(d), Some(o)) = (&self.details, v.as_object_mut()) {
+ o.insert("details".into(), d.clone());
+ }
+ if !self.fixable
+ && let Some(o) = v.as_object_mut()
+ {
+ o.insert("reason".into(), json!(self.reason.unwrap_or("decision")));
+ }
+ v
+ }
+}
+
+/// What one walk found.
+pub(crate) struct Report {
+ pub(crate) findings: Vec,
+ pub(crate) nodes: usize,
+ pub(crate) truncated: bool,
+}
+
+/// A colour token's default-mode value, for the hardcoded-value check.
+struct TokenColor {
+ name: String,
+ rgba: [u8; 4],
+}
+
+/// A number token's default-mode value.
+struct TokenNumber {
+ name: String,
+ value: f64,
+}
+
+/// The file's variables in their collections' default modes. Layers with explicit modes are left
+/// out of the token checks (the default value may not be what they show).
+struct Tokens {
+ colors: Vec,
+ numbers: Vec,
+}
+
+impl Tokens {
+ fn new(doc: &Document) -> Self {
+ if doc.variables.variables.is_empty() {
+ return Self { colors: Vec::new(), numbers: Vec::new() };
+ }
+ let modes: BTreeMap =
+ doc.variables.collections.iter().filter_map(|c| c.default_mode().map(|m| (c.id.clone(), m.clone()))).collect();
+ let mut colors = Vec::new();
+ let mut numbers = Vec::new();
+ for var in &doc.variables.variables {
+ let name = if var.name.is_empty() { var.id.clone() } else { var.name.clone() };
+ match doc.variables.resolve(&var.id, &modes) {
+ Some(VariableValue::Color(c)) if c.a > 0.01 => colors.push(TokenColor { name, rgba: c.to_rgba8() }),
+ Some(VariableValue::Number(n)) if n.is_finite() && n > 0.01 => numbers.push(TokenNumber { name, value: n }),
+ _ => {}
+ }
+ }
+ colors.sort_by_key(|c| c.rgba);
+ colors.dedup_by(|a, b| a.rgba == b.rgba);
+ numbers.sort_by(|a, b| a.value.total_cmp(&b.value));
+ numbers.dedup_by(|a, b| (a.value - b.value).abs() <= 1e-6);
+ Self { colors, numbers }
+ }
+
+ fn is_empty(&self) -> bool {
+ self.colors.is_empty() && self.numbers.is_empty()
+ }
+
+ fn number(&self, value: f64) -> Option<&TokenNumber> {
+ self.numbers.iter().find(|t| (t.value - value).abs() <= 1e-6)
+ }
+
+ fn color(&self, color: Color) -> Option<&TokenColor> {
+ let rgba = color.to_rgba8();
+ self.colors.iter().find(|t| t.rgba == rgba)
+ }
+}
+
+struct Ctx<'a> {
+ doc: &'a Document,
+ findings: Vec,
+ visited: usize,
+ text_nodes: usize,
+ /// Font sizes in half-pixels, so 12.5 stays distinct from 12.
+ sizes: BTreeSet,
+ families: BTreeSet,
+ /// Layers carrying at least one shadow.
+ shadowed: usize,
+ /// Text layers laid out for the overflow check.
+ measured: usize,
+ /// Auto layout frames measured for clipped children.
+ measured_frames: usize,
+ tokens: Tokens,
+ /// The design system this run checks against.
+ settings: Settings,
+ /// Distinct accent colours, with the first layer that paints each (for `color.accents`).
+ accents: BTreeMap<[u8; 4], String>,
+ truncated: bool,
+}
+
+/// Walk `roots` and collect every finding. `design.audit` reports them; `design.fix` acts on the
+/// ones marked fixable.
+pub(crate) fn collect(doc: &Document, roots: &[NodeId], anchor: Option, anchor_path: &str, scope: &str, settings: &Settings) -> Report {
+ let mut ctx = Ctx {
+ doc,
+ findings: Vec::new(),
+ visited: 0,
+ text_nodes: 0,
+ sizes: BTreeSet::new(),
+ families: BTreeSet::new(),
+ shadowed: 0,
+ measured: 0,
+ measured_frames: 0,
+ tokens: Tokens::new(doc),
+ settings: settings.clone(),
+ accents: BTreeMap::new(),
+ truncated: false,
+ };
+ for root in roots {
+ ctx.walk(*root);
+ }
+ ctx.scope_rules(anchor, anchor_path, scope);
+ Report { findings: ctx.findings, nodes: ctx.visited, truncated: ctx.truncated }
+}
+
+/// Audit `roots` (pages, frames or layers), labelled `scope` in the report. Aggregate findings
+/// (too many type sizes…) point at `anchor`.
+pub(crate) fn run(
+ doc: &Document,
+ roots: &[NodeId],
+ scope: &str,
+ anchor: Option,
+ anchor_path: &str,
+ min: Severity,
+ filter: Option<&BTreeSet>,
+ preset: Option,
+ modes: BTreeMap,
+) -> Value {
+ let settings = Settings::new(doc, preset).in_modes(doc, modes);
+ let report = collect(doc, roots, anchor, anchor_path, scope, &settings);
+ let shown: Vec<&Finding> = report
+ .findings
+ .iter()
+ .filter(|f| f.severity >= min && settings.enabled(f.rule))
+ .filter(|f| filter.is_none_or(|set| set.contains(f.rule)))
+ .collect();
+ let mut counts = [0usize; 3];
+ for f in &shown {
+ counts[f.severity.index()] += 1;
+ }
+ let score = (100.0 - shown.iter().map(|f| f.severity.penalty()).sum::()).clamp(0.0, 100.0).round();
+ let mut by_rule: BTreeMap<&str, usize> = BTreeMap::new();
+ for f in &shown {
+ *by_rule.entry(f.rule).or_default() += 1;
+ }
+ let findings: Vec = shown.into_iter().map(Finding::json).collect();
+ let mut out = settings.json();
+ if let Some(o) = out.as_object_mut() {
+ o.insert("scope".into(), json!(scope));
+ o.insert("score".into(), json!(score));
+ o.insert("counts".into(), json!({"high": counts[2], "medium": counts[1], "low": counts[0]}));
+ o.insert("byRule".into(), json!(by_rule));
+ o.insert("nodes".into(), json!(report.nodes));
+ o.insert("findings".into(), json!(findings));
+ o.insert("truncated".into(), json!(report.truncated));
+ }
+ out
+}
+
+impl Ctx<'_> {
+ fn walk(&mut self, root: NodeId) {
+ let mut stack = vec![(root, String::new())];
+ while let Some((id, parent)) = stack.pop() {
+ if self.visited >= MAX_NODES {
+ self.truncated = true;
+ return;
+ }
+ let Some(n) = self.doc.node(id) else { continue };
+ if !n.visible || n.locked || n.opacity <= 0.001 {
+ continue;
+ }
+ self.visited += 1;
+ let name = label(n);
+ let path = if parent.is_empty() { name } else { format!("{parent} / {name}") };
+ if !n.is_page() {
+ self.check_node(n, &path);
+ }
+ // An instance's children mirror its main component; audit the main where it lives.
+ if matches!(&n.kind, NodeKind::Instance { .. }) {
+ continue;
+ }
+ for child in n.children.iter().rev() {
+ stack.push((*child, path.clone()));
+ }
+ }
+ }
+
+ fn check_node(&mut self, n: &Node, path: &str) {
+ self.check_naming(n, path);
+ self.check_spacing(n, path);
+ self.check_radius(n, path);
+ self.check_paints(n, path);
+ self.check_effects(n, path);
+ if let NodeKind::Text(t) = &n.kind {
+ self.check_text(n, t, path);
+ }
+ self.check_layout(n, path);
+ self.check_clipping(n, path);
+ self.note_accents(n);
+ self.check_tokens(n, path);
+ }
+
+ fn check_naming(&mut self, n: &Node, path: &str) {
+ if is_default_name(&n.name) {
+ self.push_details(
+ "naming.auto",
+ n.id,
+ path,
+ format!("Layer still has its default name \"{}\"", n.name.trim()),
+ None,
+ Some(json!({"name": n.name.trim()})),
+ );
+ }
+ }
+
+ /// A frame or component holding several layers without auto layout: in the Strict preset.
+ fn check_layout(&mut self, n: &Node, path: &str) {
+ if n.layout.is_some() || n.children.len() < 3 {
+ return;
+ }
+ if matches!(n.kind, NodeKind::Frame | NodeKind::Component { .. } | NodeKind::ComponentSet { .. }) {
+ let count = n.children.len();
+ self.push_details(
+ "layout.no-auto-layout",
+ n.id,
+ path,
+ format!("{count} children with no auto layout"),
+ None,
+ Some(json!({"children": count})),
+ );
+ }
+ }
+
+ /// A fixed-size auto layout frame that clips children which overflow it: the rows exist but
+ /// are invisible — the usual headless surprise. Hug frames grow, so they cannot clip.
+ fn check_clipping(&mut self, n: &Node, path: &str) {
+ if self.measured_frames >= MAX_FRAMES_MEASURED || !n.clip || n.children.is_empty() || n.layout.is_none() {
+ return;
+ }
+ // An instance mirrors its main; the main is audited where it lives.
+ if matches!(n.kind, NodeKind::Instance { .. }) {
+ return;
+ }
+ let fixed_h = n.child_layout.sizing_h != Sizing::Hug;
+ let fixed_v = n.child_layout.sizing_v != Sizing::Hug;
+ if !(fixed_h || fixed_v) {
+ return;
+ }
+ let Some(frame) = self.doc.world_bounds(n.id) else { return };
+ let mut u: Option<(f64, f64, f64, f64)> = None;
+ for child in &n.children {
+ let Some(c) = self.doc.node(*child) else { continue };
+ if !c.visible {
+ continue;
+ }
+ if let Some(b) = self.doc.world_bounds(*child) {
+ u = Some(match u {
+ None => (b.x0, b.y0, b.x1, b.y1),
+ Some((x0, y0, x1, y1)) => (x0.min(b.x0), y0.min(b.y0), x1.max(b.x1), y1.max(b.y1)),
+ });
+ }
+ }
+ self.measured_frames += 1;
+ let Some((ux0, uy0, ux1, uy1)) = u else { return };
+ let over_h = fixed_h && (ux1 > frame.x1 + 1.0 || ux0 < frame.x0 - 1.0);
+ let over_v = fixed_v && (uy1 > frame.y1 + 1.0 || uy0 < frame.y0 - 1.0);
+ if !(over_h || over_v) {
+ return;
+ }
+ let mut suggestion = Map::new();
+ if over_h {
+ suggestion.insert("sizingH".into(), json!("hug"));
+ }
+ if over_v {
+ suggestion.insert("sizingV".into(), json!("hug"));
+ }
+ self.push_details(
+ "layout.clipped",
+ n.id,
+ path,
+ format!(
+ "Fixed-size frame clips children that reach {:.0}×{:.0} inside its {:.0}×{:.0}; they are invisible",
+ ux1 - ux0,
+ uy1 - uy0,
+ frame.x1 - frame.x0,
+ frame.y1 - frame.y0
+ ),
+ Some(Value::Object(suggestion)),
+ Some(json!({"width": ux1 - ux0, "height": uy1 - uy0, "frameWidth": frame.x1 - frame.x0, "frameHeight": frame.y1 - frame.y0})),
+ );
+ }
+
+ /// Collect the accent colours the scope paints (brand accents and neutrals excluded), for
+ /// `color.accents`.
+ fn note_accents(&mut self, n: &Node) {
+ let paints = match &n.kind {
+ NodeKind::Text(t) => t.style.fills.as_deref().unwrap_or(&n.fills),
+ _ => &n.fills,
+ };
+ for p in paints.iter().chain(n.strokes.iter()) {
+ if !p.visible || p.opacity < 0.5 {
+ continue;
+ }
+ let PaintKind::Solid { color } = &p.kind else { continue };
+ if self.settings.is_brand(*color) {
+ continue;
+ }
+ if let Some(rgba) = accent_rgba(*color)
+ && self.accents.len() < 64
+ {
+ self.accents.entry(rgba).or_insert_with(|| n.name.trim().to_string());
+ }
+ }
+ }
+
+ fn check_spacing(&mut self, n: &Node, path: &str) {
+ let Some(al) = &n.layout else { return };
+ let mut off = Vec::new();
+ let mut suggestion = Map::new();
+ if al.mode != LayoutMode::Grid {
+ if !self.settings.on_grid(al.gap) {
+ off.push(format!("gap {}", al.gap));
+ suggestion.insert("gap".into(), json!(self.settings.snap(al.gap)));
+ }
+ if al.wrap && !self.settings.on_grid(al.cross_gap) {
+ off.push(format!("cross gap {}", al.cross_gap));
+ suggestion.insert("crossGap".into(), json!(self.settings.snap(al.cross_gap)));
+ }
+ }
+ let sides = ["top", "right", "bottom", "left"];
+ let mut padding_off = false;
+ for (i, side) in sides.iter().enumerate() {
+ if let Some(v) = al.padding.get(i).copied().filter(|v| !self.settings.on_grid(*v)) {
+ off.push(format!("padding {side} {v}"));
+ padding_off = true;
+ }
+ }
+ if padding_off {
+ suggestion.insert("padding".into(), json!(al.padding.map(|v| self.settings.snap(v))));
+ }
+ if !off.is_empty() {
+ let suggestion = if suggestion.is_empty() { None } else { Some(Value::Object(suggestion)) };
+ let mut details = Map::new();
+ details.insert("grid".into(), json!(self.settings.grid));
+ if !self.settings.on_grid(al.gap) {
+ details.insert("gap".into(), json!(al.gap));
+ }
+ if al.wrap && !self.settings.on_grid(al.cross_gap) {
+ details.insert("crossGap".into(), json!(al.cross_gap));
+ }
+ if padding_off {
+ details.insert("padding".into(), json!(al.padding));
+ }
+ self.push_details(
+ "spacing.off-grid",
+ n.id,
+ path,
+ format!("Off the {}px grid: {}", self.settings.grid, off.join(", ")),
+ suggestion,
+ Some(Value::Object(details)),
+ );
+ if [
+ "gap",
+ "columnGap",
+ "rowGap",
+ "crossGap",
+ "padding",
+ "paddingHorizontal",
+ "paddingVertical",
+ "paddingTop",
+ "paddingRight",
+ "paddingBottom",
+ "paddingLeft",
+ ]
+ .iter()
+ .any(|k| n.bound.contains_key(*k))
+ {
+ self.not_fixable(" (bound to a variable)", "bound");
+ }
+ }
+ }
+
+ fn check_radius(&mut self, n: &Node, path: &str) {
+ let mut bad: Vec = n.corners.radii.iter().copied().filter(|r| *r > 0.01 && !self.settings.radius_ok(*r, n.width, n.height)).collect();
+ if bad.is_empty() {
+ return;
+ }
+ bad.sort_by(f64::total_cmp);
+ bad.dedup_by(|a, b| (*a - *b).abs() <= 0.01);
+ let shown: Vec = bad.iter().map(|r| r.to_string()).collect();
+ let suggested = self.settings.snap_radius(bad.first().copied().unwrap_or(0.0));
+ let suggestion = json!({"cornerRadius": suggested});
+ let scale = if self.settings.radii.is_empty() {
+ format!("any multiple of {}, or a pill", self.settings.grid)
+ } else {
+ let list: Vec = self.settings.radii.iter().map(|r| r.to_string()).collect();
+ format!("{}, or a pill", list.join(", "))
+ };
+ self.push_details(
+ "radius.off-scale",
+ n.id,
+ path,
+ format!("Corner radius off the scale: {} (use {scale})", shown.join(", ")),
+ Some(suggestion),
+ Some(json!({"radii": bad, "suggested": suggested})),
+ );
+ if ["cornerRadius", "topLeftRadius", "topRightRadius", "bottomRightRadius", "bottomLeftRadius"].iter().any(|k| n.bound.contains_key(*k)) {
+ self.not_fixable(" (bound to a variable)", "bound");
+ }
+ }
+
+ fn check_paints(&mut self, n: &Node, path: &str) {
+ let is_text = matches!(&n.kind, NodeKind::Text(_));
+ let fills: &[Paint] = match &n.kind {
+ NodeKind::Text(t) => t.style.fills.as_deref().unwrap_or(&n.fills),
+ _ => &n.fills,
+ };
+ let fills_gradient = fills.iter().any(|p| p.visible && matches!(&p.kind, PaintKind::Gradient(_)));
+ let strokes_gradient = n.strokes.iter().any(|p| p.visible && matches!(&p.kind, PaintKind::Gradient(_)));
+ let run_gradient = match &n.kind {
+ NodeKind::Text(t) => t
+ .runs
+ .iter()
+ .any(|r| r.style.fills.as_ref().is_some_and(|paints| paints.iter().any(|p| p.visible && matches!(&p.kind, PaintKind::Gradient(_))))),
+ _ => false,
+ };
+ if fills_gradient || strokes_gradient || run_gradient {
+ let id = if is_text { "color.gradient-text" } else { "color.gradient" };
+ self.push(id, n.id, path, "Painted with a gradient (a hue-to-hue wash is the usual AI tell)".into(), None);
+ }
+ // A hairline border is for container-like shapes; an icon's stroke is its whole drawing,
+ // so full opacity is the intent there, not a stray border.
+ let container_like = matches!(&n.kind, NodeKind::Frame | NodeKind::Rectangle | NodeKind::Ellipse { .. } | NodeKind::Component { .. });
+ if container_like && has_stroke(n) && border_is_strong(self.doc, n) {
+ self.push(
+ "color.border-opacity",
+ n.id,
+ path,
+ "Border is more opaque than a hairline (6–10% is enough)".into(),
+ Some(json!({"strokeOpacity": 0.08})),
+ );
+ if n.styles.stroke.is_some() || n.bound.keys().any(|k| k.starts_with("strokes/")) {
+ self.not_fixable(" (bound to a style or variable)", "bound");
+ }
+ }
+ }
+
+ fn check_effects(&mut self, n: &Node, path: &str) {
+ let mut glow = false;
+ let mut colored = false;
+ let mut shadows = 0;
+ for e in n.effects.iter().filter(|e| e.visible) {
+ if let EffectKind::DropShadow(s) | EffectKind::InnerShadow(s) = &e.kind {
+ shadows += 1;
+ glow |= is_glow(e);
+ colored |= is_colored_shadow(s);
+ }
+ }
+ if shadows > 0 {
+ self.shadowed += 1;
+ }
+ if glow {
+ self.push(
+ "color.glow",
+ n.id,
+ path,
+ "Shadow has no offset and a large blur, so it reads as a glow".into(),
+ Some(json!({"removeEffects": ["dropShadow", "innerShadow"]})),
+ );
+ if n.styles.effect.is_some() || n.bound.keys().any(|k| k.starts_with("effects/")) {
+ self.not_fixable(" (bound to a style or variable)", "bound");
+ }
+ }
+ if colored {
+ self.push(
+ "color.colored-shadow",
+ n.id,
+ path,
+ "Shadow carries a visible hue; shadows read as depth only when neutral".into(),
+ Some(json!({"neutralShadow": true})),
+ );
+ if n.styles.effect.is_some() || n.bound.keys().any(|k| k.starts_with("effects/")) {
+ self.not_fixable(" (bound to a style or variable)", "bound");
+ }
+ }
+ }
+
+ fn check_text(&mut self, n: &Node, t: &TextData, path: &str) {
+ let chars = t.characters.trim();
+ let s = &t.style;
+ let size = if s.font_size.is_finite() { s.font_size } else { 0.0 };
+ let weight = s.weight();
+ // A text style (whole layer or a run) or a variable owns the type; changing it here would
+ // drift from the style the user chose.
+ let styled = n.styles.text.is_some()
+ || s.style_id.is_some()
+ || t.runs.iter().any(|r| r.style.style_id.is_some())
+ || ["fontSize", "fontStyle", "fontWeight", "letterSpacing"].iter().any(|k| n.bound.contains_key(*k));
+ if !chars.is_empty() {
+ self.text_nodes += 1;
+ count_size(&mut self.sizes, size);
+ self.families.insert(family_key(&s.font_family));
+ }
+ for run in &t.runs {
+ if run.end > run.start {
+ count_size(&mut self.sizes, run.style.font_size);
+ self.families.insert(family_key(&run.style.font_family));
+ }
+ }
+
+ if size > 0.0 && size < 11.0 && !chars.is_empty() {
+ self.push_details(
+ "type.too-small",
+ n.id,
+ path,
+ format!("Body text at {size}px is below the 11px floor"),
+ None,
+ Some(json!({"size": size})),
+ );
+ }
+ if size >= 20.0 && weight > 600 {
+ self.push_details(
+ "type.weight",
+ n.id,
+ path,
+ format!("Heading weight {weight} is heavier than a heading needs"),
+ Some(json!({"fontWeight": 600})),
+ Some(json!({"weight": weight})),
+ );
+ if styled {
+ self.not_fixable(" (bound to a style or variable)", "bound");
+ }
+ }
+ if s.italic() && !chars.is_empty() {
+ self.push("type.italic", n.id, path, "Interface text is italic".into(), Some(json!({"italic": false})));
+ if styled {
+ self.not_fixable(" (bound to a style or variable)", "bound");
+ }
+ }
+ let tracking = s.letter_spacing.resolve(size);
+ if tracking.is_finite() && tracking < -0.01 && size > 0.0 && size < 24.0 {
+ self.push_details(
+ "type.negative-tracking",
+ n.id,
+ path,
+ format!("Small text is tracked {tracking}px tighter; use size or weight instead"),
+ Some(json!({"letterSpacing": 0})),
+ Some(json!({"tracking": tracking})),
+ );
+ if styled {
+ self.not_fixable(" (bound to a style or variable)", "bound");
+ }
+ }
+
+ // A run with its own fill makes the text more than one colour; the base fill is not the
+ // whole story, so the contrast check skips rather than judging the wrong pair.
+ let mixed_fills = t.runs.iter().any(|r| r.style.fills.is_some());
+ self.check_contrast(n, t, path, size, weight, mixed_fills);
+
+ if contains_emoji(&t.characters) || contains_emoji(&n.name) {
+ self.push("icon.emoji", n.id, path, "Emoji in interface text or a layer name; use a line icon set instead".into(), None);
+ }
+ if t.characters.contains('!') || t.characters.contains('!') {
+ self.push("copy.exclamation", n.id, path, "Copy uses an exclamation mark".into(), Some(json!({"removeExclamations": true})));
+ }
+ if short_label_ends_with_period(chars) {
+ self.push("copy.trailing-period", n.id, path, "Short label ends with a period".into(), Some(json!({"removeTrailingPeriod": true})));
+ }
+ if has_hype(chars) {
+ self.push("copy.hype", n.id, path, "Copy uses a hype word (\"AI-powered\", \"supercharge\"…)".into(), None);
+ }
+
+ // A fixed-width text box whose stored height is shorter than the laid-out text clips or
+ // overlaps what follows it. Truncating boxes and auto-width boxes are intentional.
+ if !chars.is_empty()
+ && n.width > 0.0
+ && self.measured < MAX_TEXT_MEASURED
+ && matches!(t.auto_resize, TextAutoResize::None | TextAutoResize::Height)
+ {
+ self.measured += 1;
+ let needed = figcraft_text::layout_cached(t, Some(n.width), None).height;
+ if needed.is_finite() && needed > n.height + 1.0 {
+ self.push_details(
+ "layout.text-overflow",
+ n.id,
+ path,
+ format!("Text needs {needed:.0}px of height but its box is {:.0}px; it clips or overlaps", n.height),
+ None,
+ Some(json!({"needed": needed, "height": n.height})),
+ );
+ }
+ }
+ }
+
+ /// WCAG contrast for single-colour text, in the run's variable modes when any were given.
+ fn check_contrast(&mut self, n: &Node, t: &TextData, path: &str, size: f64, weight: u16, mixed_fills: bool) {
+ if mixed_fills {
+ return;
+ }
+ let (fg, bg) = if self.settings.modes.is_empty() {
+ (text_color(n, t), backdrop(self.doc, n))
+ } else {
+ (text_color_in(self.doc, n, t, &self.settings.modes), backdrop_in(self.doc, n, Some(&self.settings.modes)))
+ };
+ let (Some(fg), Some(bg)) = (fg, bg) else { return };
+ let ratio = fg.contrast(bg);
+ if !ratio.is_finite() {
+ return;
+ }
+ let large = size >= 24.0 || (size >= 18.0 && weight >= 700);
+ let need = if large { 3.0 } else { 4.5 };
+ if ratio >= need {
+ return;
+ }
+ let mode_note = if self.settings.mode_labels.is_empty() { String::new() } else { format!(" in {}", self.settings.mode_note()) };
+ let mut details = json!({"ratio": ratio, "needed": need, "foreground": fg.to_hex(), "background": bg.to_hex()});
+ if !self.settings.mode_labels.is_empty()
+ && let Some(o) = details.as_object_mut()
+ {
+ o.insert("modes".into(), json!(self.settings.mode_labels));
+ }
+ self.push_details(
+ "color.contrast",
+ n.id,
+ path,
+ format!("Contrast {ratio:.2}:1, needs {need:.2}:1 ({} on {}){mode_note}", fg.to_hex(), bg.to_hex()),
+ None,
+ Some(details),
+ );
+ if !self.settings.modes.is_empty() {
+ self.not_fixable(" (read in the chosen variable modes)", "modes");
+ } else if n.styles.fill.is_some() || n.bound.keys().any(|k| k.starts_with("fills/")) {
+ self.not_fixable(" (bound to a style or variable)", "bound");
+ }
+ }
+
+ fn check_tokens(&mut self, n: &Node, path: &str) {
+ if self.tokens.is_empty() || !n.var_modes.is_empty() {
+ return;
+ }
+ // Colours: a solid paint that is exactly a colour variable's default value, unbound and
+ // not styled, is a hardcoded token.
+ let mut hits: Vec<(&str, String, String)> = Vec::new();
+ let is_text = matches!(&n.kind, NodeKind::Text(_));
+ let fills: &[Paint] = match &n.kind {
+ NodeKind::Text(t) => t.style.fills.as_deref().unwrap_or(&n.fills),
+ _ => &n.fills,
+ };
+ if n.styles.fill.is_none() {
+ for (i, p) in fills.iter().enumerate() {
+ if !p.visible || paint_binding_key(n, true, i).is_some() {
+ continue;
+ }
+ let Some(c) = p.solid_color() else { continue };
+ if let Some(tok) = self.tokens.color(c) {
+ hits.push((if is_text { "text" } else { "fill" }, c.to_hex(), tok.name.clone()));
+ }
+ }
+ }
+ if n.styles.stroke.is_none() {
+ for (i, p) in n.strokes.iter().enumerate() {
+ if !p.visible || paint_binding_key(n, false, i).is_some() {
+ continue;
+ }
+ let Some(c) = p.solid_color() else { continue };
+ if let Some(tok) = self.tokens.color(c) {
+ hits.push(("stroke", c.to_hex(), tok.name.clone()));
+ }
+ }
+ }
+ if !hits.is_empty() {
+ hits.sort();
+ hits.dedup();
+ let shown: Vec = hits.iter().map(|(kind, hex, token)| format!("{kind} #{hex} = \"{token}\"")).collect();
+ let details: Vec =
+ hits.iter().map(|(kind, hex, token)| json!({"kind": kind, "color": format!("#{hex}"), "token": token})).collect();
+ self.push_details(
+ "token.hardcoded-color",
+ n.id,
+ path,
+ format!("Matches a variable but is not bound: {}", shown.join(", ")),
+ None,
+ Some(json!({"hits": details})),
+ );
+ }
+
+ // Numbers: spacing, radii, a text size and opacity.
+ let mut hits: Vec<(String, f64, String)> = Vec::new();
+ {
+ let mut check = |value: f64, field: &str| {
+ if value.is_finite()
+ && value > 0.01
+ && let Some(tok) = self.tokens.number(value)
+ {
+ hits.push((field.to_string(), value, tok.name.clone()));
+ }
+ };
+ if let Some(al) = &n.layout {
+ if al.mode != LayoutMode::Grid && !n.bound.contains_key("gap") {
+ check(al.gap, "gap");
+ }
+ if al.wrap && !n.bound.contains_key("crossGap") {
+ check(al.cross_gap, "crossGap");
+ }
+ let keys = ["paddingTop", "paddingRight", "paddingBottom", "paddingLeft"];
+ for (i, key) in keys.iter().enumerate() {
+ if !n.bound.contains_key(*key)
+ && let Some(v) = al.padding.get(i).copied()
+ {
+ check(v, key);
+ }
+ }
+ }
+ if !["cornerRadius", "topLeftRadius", "topRightRadius", "bottomRightRadius", "bottomLeftRadius"].iter().any(|k| n.bound.contains_key(*k))
+ {
+ for r in n.corners.radii {
+ check(r, "cornerRadius");
+ }
+ }
+ if let NodeKind::Text(t) = &n.kind {
+ let styled = n.styles.text.is_some() || t.style.style_id.is_some() || t.runs.iter().any(|r| r.style.style_id.is_some());
+ if !styled && !n.bound.contains_key("fontSize") {
+ check(t.style.font_size, "fontSize");
+ }
+ }
+ if n.opacity < 0.99 && !n.bound.contains_key("opacity") {
+ check(f64::from(n.opacity), "opacity");
+ }
+ }
+ if !hits.is_empty() {
+ hits.sort_by(|a, b| a.0.cmp(&b.0).then_with(|| a.1.total_cmp(&b.1)));
+ hits.dedup_by(|a, b| a.0 == b.0 && (a.1 - b.1).abs() <= 1e-6);
+ let shown: Vec = hits.iter().map(|(field, value, token)| format!("{field} {value} = \"{token}\"")).collect();
+ let details: Vec = hits.iter().map(|(field, value, token)| json!({"field": field, "value": value, "token": token})).collect();
+ self.push_details(
+ "token.hardcoded-number",
+ n.id,
+ path,
+ format!("Matches a variable but is not bound: {}", shown.join(", ")),
+ None,
+ Some(json!({"hits": details})),
+ );
+ }
+ }
+
+ fn scope_rules(&mut self, anchor: Option, path: &str, scope: &str) {
+ let Some(node) = anchor else { return };
+ if self.text_nodes >= 8 {
+ if self.sizes.len() > 5 {
+ let sizes: Vec = self.sizes.iter().map(|v| trim_half(*v)).collect();
+ self.push_details(
+ "type.sizes",
+ node,
+ path,
+ format!("{} font sizes in this {scope}: {}", sizes.len(), sizes.join(", ")),
+ None,
+ Some(json!({"sizes": sizes, "count": sizes.len()})),
+ );
+ }
+ if self.families.len() > 2 {
+ let families: Vec<&str> = self.families.iter().map(String::as_str).collect();
+ self.push_details(
+ "type.families",
+ node,
+ path,
+ format!("{} font families in this {scope}: {}", families.len(), families.join(", ")),
+ None,
+ Some(json!({"families": families, "count": families.len()})),
+ );
+ }
+ }
+ if self.visited >= 20 && self.shadowed > 5 && self.shadowed * 5 > self.visited {
+ self.push_details(
+ "detail.shadow-count",
+ node,
+ path,
+ format!("{} of {} layers carry a shadow or blur", self.shadowed, self.visited),
+ None,
+ Some(json!({"shadowed": self.shadowed, "nodes": self.visited})),
+ );
+ }
+ if self.accents.len() > 2 {
+ let colors: Vec = self.accents.keys().take(6).map(|c| format!("#{:02X}{:02X}{:02X}", c[0], c[1], c[2])).collect();
+ self.push_details(
+ "color.accents",
+ node,
+ path,
+ format!("{} accent colours in this {scope}: {} (keep two)", self.accents.len(), colors.join(", ")),
+ None,
+ Some(json!({"count": self.accents.len(), "colors": colors})),
+ );
+ }
+ }
+
+ fn push(&mut self, id: &'static str, node: NodeId, path: &str, message: String, suggestion: Option) {
+ self.push_details(id, node, path, message, suggestion, None);
+ }
+
+ /// A finding whose message has values, with those values in `details` too.
+ fn push_details(&mut self, id: &'static str, node: NodeId, path: &str, message: String, suggestion: Option, details: Option) {
+ let Some(r) = rule(id) else { return };
+ self.findings.push(Finding {
+ rule: r.id,
+ severity: r.severity,
+ node,
+ path: path.to_string(),
+ message,
+ fixable: r.fixable,
+ suggestion,
+ details,
+ reason: None,
+ });
+ }
+
+ /// Mark the finding just pushed as not auto-fixable, with the reason in its message and as a
+ /// machine code for the window (`"bound"`: owned by a variable or style; `"modes"`: read in
+ /// the chosen variable modes).
+ fn not_fixable(&mut self, note: &str, reason: &'static str) {
+ if let Some(f) = self.findings.last_mut() {
+ f.fixable = false;
+ f.message.push_str(note);
+ f.reason = Some(reason);
+ }
+ }
+}
+
+/// The layer's name, or a stand-in when it has none; long names are cut so paths stay readable.
+fn label(n: &Node) -> String {
+ let name = n.name.trim();
+ if name.is_empty() {
+ return format!("{} {}", n.kind.type_name(), n.id.0);
+ }
+ let mut chars = name.chars();
+ let short: String = chars.by_ref().take(60).collect();
+ if chars.next().is_some() { format!("{short}…") } else { short }
+}
+
+/// A colour that reads as an accent: enough chroma to be a hue rather than a neutral, and neither
+/// near-black nor near-white.
+fn accent_rgba(c: Color) -> Option<[u8; 4]> {
+ if !c.a.is_finite() || c.a < 0.5 {
+ return None;
+ }
+ let max = c.r.max(c.g).max(c.b);
+ let min = c.r.min(c.g).min(c.b);
+ (max - min >= 0.18 && max >= 0.2 && min <= 0.88).then(|| c.to_rgba8())
+}
+
+fn has_stroke(n: &Node) -> bool {
+ n.stroke.weight > 0.01 || n.stroke.sides.is_some_and(|s| s.iter().any(|w| *w > 0.01))
+}
+
+/// Whether a stroke reads as a strong border rather than a hairline: its colour blended over what
+/// is behind it, compared with that backdrop. With no known backdrop, the paint's alpha decides.
+fn border_is_strong(doc: &Document, n: &Node) -> bool {
+ let Some(p) = n.strokes.iter().rev().find(|p| p.visible) else { return false };
+ if p.blend != BlendMode::Normal {
+ return false;
+ }
+ let Some(c) = p.solid_color() else { return p.opacity > 0.12 };
+ // An inside stroke sits on the layer's own fill; centre and outside strokes sit on what is
+ // behind it. Default strokes are inside, so a border on a dark panel is judged on that panel.
+ let bg = if n.stroke.align == StrokeAlign::Inside { solid_fill(n).or_else(|| backdrop(doc, n)) } else { backdrop(doc, n) };
+ match bg {
+ Some(bg) => blend(c, bg).contrast(bg) > 1.5,
+ None => c.a > 0.12,
+ }
+}
+
+fn blend(fg: Color, bg: Color) -> Color {
+ let a = fg.a;
+ Color::new(fg.r * a + bg.r * (1.0 - a), fg.g * a + bg.g * (1.0 - a), fg.b * a + bg.b * (1.0 - a), 1.0)
+}
+
+fn chroma(c: Color) -> f32 {
+ let [r, g, b, _] = c.to_rgba8();
+ let (max, min) = (r.max(g).max(b) as f32, r.min(g).min(b) as f32);
+ (max - min) / 255.0
+}
+
+/// A shadow with no offset and a large blur: it lights the layer instead of giving it depth.
+pub(crate) fn is_glow(e: &Effect) -> bool {
+ if !e.visible {
+ return false;
+ }
+ match &e.kind {
+ EffectKind::DropShadow(s) | EffectKind::InnerShadow(s) => {
+ s.offset.0.abs() <= 1.0 && s.offset.1.abs() <= 1.0 && s.radius >= 8.0 && s.color.a > 0.05
+ }
+ _ => false,
+ }
+}
+
+/// A shadow whose colour carries a visible hue.
+pub(crate) fn is_colored_shadow(s: &Shadow) -> bool {
+ chroma(s.color) > 0.12 && s.color.a > 0.05
+}
+
+/// The topmost visible solid paint, if it is opaque enough to know what shows through it.
+fn solid_fill(n: &Node) -> Option {
+ let p = n.fills.iter().rev().find(|p| p.visible)?;
+ // A blend mode changes what the colour looks like over what is behind it; do not guess.
+ if !matches!(n.blend, BlendMode::Normal | BlendMode::PassThrough) || p.blend != BlendMode::Normal || p.opacity < 0.95 {
+ return None;
+ }
+ match &p.kind {
+ PaintKind::Solid { color } if color.a >= 0.95 => Some(*color),
+ _ => None,
+ }
+}
+
+/// The colour a text layer's characters show in, when it is a single opaque solid paint.
+pub(crate) fn text_color(n: &Node, t: &TextData) -> Option {
+ let paints = t.style.fills.as_deref().unwrap_or(&n.fills);
+ let p = paints.iter().rev().find(|p| p.visible)?;
+ if p.blend != BlendMode::Normal {
+ return None;
+ }
+ if p.opacity < 0.95 {
+ return None;
+ }
+ match &p.kind {
+ PaintKind::Solid { color } if color.a >= 0.95 => Some(*color),
+ _ => None,
+ }
+}
+
+/// `base`, resolved in the layer's variable modes (with `overrides` on top) when the paint's colour
+/// is bound to a colour variable.
+fn bound_color(doc: &Document, n: &Node, fills: bool, index: usize, base: Color, overrides: &BTreeMap) -> Color {
+ let Some(key) = paint_binding_key(n, fills, index) else { return base };
+ let Some(id) = n.bound.get(key) else { return base };
+ let mut modes = doc.modes_for(n.id);
+ modes.extend(overrides.iter().map(|(c, m)| (c.clone(), m.clone())));
+ match doc.variables.resolve(id, &modes) {
+ Some(VariableValue::Color(c)) => c,
+ _ => base,
+ }
+}
+
+/// [`solid_fill`], with bound colours resolved in `overrides` (the layer's own modes first).
+fn solid_fill_in(doc: &Document, n: &Node, overrides: &BTreeMap) -> Option {
+ let index = n.fills.iter().rposition(|p| p.visible)?;
+ let p = n.fills.get(index)?;
+ if !matches!(n.blend, BlendMode::Normal | BlendMode::PassThrough) || p.blend != BlendMode::Normal || p.opacity < 0.95 {
+ return None;
+ }
+ let PaintKind::Solid { color } = &p.kind else { return None };
+ if color.a < 0.95 {
+ return None;
+ }
+ let color = bound_color(doc, n, true, index, *color, overrides);
+ (color.a >= 0.95).then_some(color)
+}
+
+/// [`text_color`], with bound colours resolved in `overrides`.
+fn text_color_in(doc: &Document, n: &Node, t: &TextData, overrides: &BTreeMap) -> Option {
+ let paints = t.style.fills.as_deref().unwrap_or(&n.fills);
+ let (index, p) = paints.iter().enumerate().rev().find(|(_, p)| p.visible)?;
+ if p.blend != BlendMode::Normal || p.opacity < 0.95 {
+ return None;
+ }
+ let PaintKind::Solid { color } = &p.kind else { return None };
+ if color.a < 0.95 {
+ return None;
+ }
+ let color = bound_color(doc, n, true, index, *color, overrides);
+ (color.a >= 0.95).then_some(color)
+}
+
+/// What lies directly behind a layer, or why it cannot be sampled.
+enum Behind {
+ Known(Color),
+ /// A gradient, image, translucency or partial cover: the audit does not guess.
+ Unknown,
+}
+
+/// The first opaque solid behind a layer. At each ancestor level, look at the siblings painted
+/// below it (z-order, `reverse_z` respected) for the topmost one that covers it, then at that
+/// ancestor's own fill. The old version only walked ancestors, so white text on a dark rectangle
+/// sibling was compared with the page behind both and reported as unreadable.
+pub(crate) fn backdrop(doc: &Document, n: &Node) -> Option {
+ backdrop_in(doc, n, None)
+}
+
+/// [`backdrop`], resolving bound colours in `overrides` when given.
+fn backdrop_in(doc: &Document, n: &Node, overrides: Option<&BTreeMap>) -> Option {
+ let target = doc.world_bounds(n.id)?;
+ let mut current = n.id;
+ for _ in 0..256 {
+ let node = doc.node(current)?;
+ let parent_id = node.parent?;
+ let parent = doc.node(parent_id)?;
+ if parent.opacity < 0.99 {
+ return None;
+ }
+ match sibling_behind(doc, parent, current, target, overrides) {
+ Some(Behind::Known(c)) => return Some(c),
+ Some(Behind::Unknown) => return None,
+ None => {}
+ }
+ if let NodeKind::Page { background, .. } = &parent.kind {
+ return if background.a >= 0.95 { Some(*background) } else { None };
+ }
+ if parent.fills.iter().any(|p| p.visible) {
+ return match overrides {
+ Some(modes) => solid_fill_in(doc, parent, modes),
+ None => solid_fill(parent),
+ };
+ }
+ current = parent_id;
+ }
+ None
+}
+
+/// The topmost sibling painted below `current` that covers `target`, if it has visible paint.
+fn sibling_behind(
+ doc: &Document,
+ parent: &Node,
+ current: NodeId,
+ target: figcraft_geom::Rect,
+ overrides: Option<&BTreeMap>,
+) -> Option {
+ let index = parent.children.iter().position(|c| *c == current)?;
+ let reverse = parent.layout.as_ref().is_some_and(|l| l.reverse_z);
+ // Last child on top: siblings before `index` are below it. First on top: siblings after are.
+ let total = if reverse { parent.children.len().saturating_sub(index + 1) } else { index };
+ let order: Box> = if reverse { Box::new(index + 1..parent.children.len()) } else { Box::new((0..index).rev()) };
+ for i in order.take(MAX_BACKDROP_SCAN) {
+ let Some(sibling) = parent.children.get(i).and_then(|id| doc.node(*id)) else { continue };
+ if let Some(behind) = paint_behind(doc, sibling, target, 1, overrides) {
+ return Some(behind);
+ }
+ }
+ // Past the cap the topmost paint is unknown, not the page behind the container.
+ (total > MAX_BACKDROP_SCAN).then_some(Behind::Unknown)
+}
+
+/// The topmost paint a layer (and what it contains) puts under `target`: its children first (they
+/// paint above its fill), then its own fill. Text and lines paint glyphs or a stroke, not a
+/// background; a container without a fill is entered so a background rectangle inside a group is
+/// found too. Clipped children outside the frame are left out.
+fn paint_behind(
+ doc: &Document,
+ node: &Node,
+ target: figcraft_geom::Rect,
+ depth: usize,
+ overrides: Option<&BTreeMap>,
+) -> Option {
+ if depth > 64 || !node.visible {
+ return None;
+ }
+ let bounds = doc.world_bounds(node.id);
+ let clipped_away = node.clip && bounds.is_some_and(|b| !contains(b, target));
+ if !clipped_away {
+ let reverse = node.layout.as_ref().is_some_and(|l| l.reverse_z);
+ let order: Box> =
+ if reverse { Box::new(0..node.children.len()) } else { Box::new((0..node.children.len()).rev()) };
+ for i in order.take(MAX_BACKDROP_SCAN) {
+ let Some(child) = node.children.get(i).and_then(|id| doc.node(*id)) else { continue };
+ if let Some(behind) = paint_behind(doc, child, target, depth + 1, overrides) {
+ return Some(behind);
+ }
+ }
+ if node.children.len() > MAX_BACKDROP_SCAN {
+ return Some(Behind::Unknown);
+ }
+ }
+ if matches!(&node.kind, NodeKind::Text(_) | NodeKind::Line) || !node.fills.iter().any(|p| p.visible) {
+ return None;
+ }
+ let b = bounds?;
+ if !overlaps(b, target) {
+ return None;
+ }
+ if !contains(b, target) || node.opacity < 0.99 {
+ return Some(Behind::Unknown);
+ }
+ let color = match overrides {
+ Some(modes) => solid_fill_in(doc, node, modes),
+ None => solid_fill(node),
+ };
+ Some(match color {
+ Some(c) => Behind::Known(c),
+ None => Behind::Unknown,
+ })
+}
+
+fn overlaps(b: figcraft_geom::Rect, target: figcraft_geom::Rect) -> bool {
+ b.x0 < target.x1 && target.x0 < b.x1 && b.y0 < target.y1 && target.y0 < b.y1
+}
+
+fn contains(b: figcraft_geom::Rect, target: figcraft_geom::Rect) -> bool {
+ b.x0 <= target.x0 && b.y0 <= target.y0 && b.x1 >= target.x1 && b.y1 >= target.y1
+}
+
+fn count_size(sizes: &mut BTreeSet, size: f64) {
+ if size.is_finite() && size > 0.0 {
+ sizes.insert((size * 2.0).round() as i64);
+ }
+}
+
+fn trim_half(v: i64) -> String {
+ let n = v as f64 / 2.0;
+ if (n - n.round()).abs() < 0.01 { format!("{}", n.round() as i64) } else { format!("{n}") }
+}
+
+fn family_key(family: &str) -> String {
+ let f = family.trim().to_ascii_lowercase();
+ if f.is_empty() { "inter".into() } else { f }
+}
+
+fn contains_emoji(s: &str) -> bool {
+ s.chars().any(|c| {
+ let u = c as u32;
+ (0x1F000..=0x1FAFF).contains(&u) || (0x2600..=0x27BF).contains(&u) || matches!(u, 0x2B50 | 0x2B55 | 0x203C | 0x2049)
+ })
+}
+
+fn short_label_ends_with_period(s: &str) -> bool {
+ let s = s.trim_end();
+ let body = s.trim_end_matches(['.', '。']).trim_end();
+ if body == s || body.is_empty() {
+ return false;
+ }
+ !body.contains('\n') && !body.contains(". ") && body.chars().count() <= 24
+}
+
+fn has_hype(s: &str) -> bool {
+ let s = s.to_ascii_lowercase();
+ ["ai-powered", "supercharge", "revolutioniz", "game-chang", "unleash the"].iter().any(|w| s.contains(w))
+}
+
+fn is_default_name(name: &str) -> bool {
+ let Some((word, number)) = name.trim().rsplit_once(' ') else { return false };
+ const KINDS: [&str; 13] =
+ ["Frame", "Rectangle", "Ellipse", "Group", "Text", "Component", "Section", "Vector", "Line", "Polygon", "Star", "Slice", "Boolean"];
+ KINDS.contains(&word) && !number.is_empty() && number.chars().all(|c| c.is_ascii_digit())
+}
diff --git a/crates/engine/src/design/fix.rs b/crates/engine/src/design/fix.rs
new file mode 100644
index 000000000..e6a5e6d7e
--- /dev/null
+++ b/crates/engine/src/design/fix.rs
@@ -0,0 +1,319 @@
+//! `design.fix`: repair the findings `design.audit` marks fixable, as one undo step.
+//!
+//! Every repair is the safe, unambiguous one the audit already suggested: spacing snapped to the
+//! 4px grid, radii to the scale, heavy headings to Semi Bold, italic and negative tracking removed,
+//! glows taken out, shadow colours neutralised and strong borders thinned. Content rules (copy,
+//! naming) and gradients are left alone: those need a decision, not arithmetic.
+
+use std::collections::{BTreeMap, BTreeSet};
+
+use figcraft_color::{Color, PaintKind};
+use figcraft_doc::{DesignPreset, Document, EffectKind, LayoutMode, LetterSpacing, Node, NodeId, NodeKind, TextData, TextStyle};
+use serde_json::{Value, json};
+
+use super::audit::{Report, Settings, backdrop, collect, is_colored_shadow, is_glow, text_color};
+
+/// Fix what `roots` made fixable among `filter`'s rules. With `exact`, only findings on the roots
+/// themselves are repaired, not findings on their descendants. `dry_run` reports the same counts
+/// without changing the document.
+pub(crate) fn run(
+ doc: &mut Document,
+ roots: &[NodeId],
+ anchor: Option,
+ anchor_path: &str,
+ scope: &str,
+ preset: Option,
+ filter: Option<&BTreeSet>,
+ exact: bool,
+ dry_run: bool,
+) -> Value {
+ let settings = Settings::new(doc, preset);
+ let before = collect(doc, roots, anchor, anchor_path, scope, &settings);
+ let targets: Vec<(NodeId, &'static str)> = before
+ .findings
+ .iter()
+ .filter(|f| f.fixable && settings.enabled(f.rule))
+ .filter(|f| filter.is_none_or(|set| set.contains(f.rule)))
+ .filter(|f| !exact || roots.contains(&f.node))
+ .map(|f| (f.node, f.rule))
+ .collect();
+ let mut by_rule: BTreeMap<&'static str, usize> = BTreeMap::new();
+ let mut changed = 0usize;
+ let mut skipped = 0usize;
+ if dry_run {
+ changed = targets.len();
+ for (_, rule) in &targets {
+ *by_rule.entry(*rule).or_default() += 1;
+ }
+ } else {
+ for (id, rule) in &targets {
+ match apply(doc, *id, rule, &settings) {
+ Some(true) => {
+ changed += 1;
+ *by_rule.entry(*rule).or_default() += 1;
+ }
+ _ => skipped += 1,
+ }
+ }
+ }
+ let after = collect(doc, roots, anchor, anchor_path, scope, &settings);
+ json!({
+ "scope": scope,
+ "dryRun": dry_run,
+ "changed": changed,
+ "skipped": skipped,
+ "byRule": by_rule,
+ "before": tally(&before, &settings),
+ "after": tally(&after, &settings),
+ })
+}
+
+fn tally(report: &Report, settings: &Settings) -> Value {
+ let shown: Vec<&super::audit::Finding> = report.findings.iter().filter(|f| settings.enabled(f.rule)).collect();
+ let mut counts = [0usize; 3];
+ for f in &shown {
+ counts[f.severity.index()] += 1;
+ }
+ let score = (100.0 - shown.iter().map(|f| f.severity.penalty()).sum::()).clamp(0.0, 100.0).round();
+ json!({
+ "score": score,
+ "counts": {"high": counts[2], "medium": counts[1], "low": counts[0]},
+ "nodes": report.nodes,
+ "findings": shown.len(),
+ })
+}
+
+/// Apply one finding's repair. `None` when the layer is gone or the repair does not apply to it;
+/// `Some(false)` when it applied to nothing (a no-op the caller counts as skipped).
+fn apply(doc: &mut Document, id: NodeId, rule: &str, settings: &Settings) -> Option {
+ if rule == "color.contrast" {
+ return apply_contrast(doc, id);
+ }
+ let n = doc.node_mut(id)?;
+ match rule {
+ "spacing.off-grid" => apply_spacing(n, settings),
+ "radius.off-scale" => {
+ if ["cornerRadius", "topLeftRadius", "topRightRadius", "bottomRightRadius", "bottomLeftRadius"].iter().any(|k| n.bound.contains_key(*k)) {
+ return Some(false);
+ }
+ apply_radius(n, settings)
+ }
+ "type.weight" | "type.italic" | "type.negative-tracking" => {
+ if text_styled(n) || ["fontSize", "fontStyle", "fontWeight", "letterSpacing"].iter().any(|k| n.bound.contains_key(*k)) {
+ return Some(false);
+ }
+ match rule {
+ "type.weight" => apply_text(n, cap_weight),
+ "type.italic" => apply_text(n, unitalic),
+ _ => apply_text(n, zero_tracking),
+ }
+ }
+ "color.glow" | "color.colored-shadow" => {
+ if n.styles.effect.is_some() || n.bound.keys().any(|k| k.starts_with("effects/")) {
+ return Some(false);
+ }
+ if rule == "color.glow" { apply_glow(n) } else { apply_neutral_shadows(n) }
+ }
+ "color.border-opacity" => {
+ if n.styles.stroke.is_some() || n.bound.keys().any(|k| k.starts_with("strokes/")) {
+ return Some(false);
+ }
+ apply_border(n)
+ }
+ _ => Some(false),
+ }
+}
+
+/// A text layer whose type comes from a text style (the whole layer or one run).
+fn text_styled(n: &Node) -> bool {
+ match &n.kind {
+ NodeKind::Text(t) => n.styles.text.is_some() || t.style.style_id.is_some() || t.runs.iter().any(|r| r.style.style_id.is_some()),
+ _ => false,
+ }
+}
+
+/// Darken (or lighten, on a dark backdrop) the text colour until it reaches the WCAG ratio. The
+/// hue is kept as far as the blend allows; when even black or white cannot reach the ratio, the
+/// text is left as it is and counted as skipped.
+fn apply_contrast(doc: &mut Document, id: NodeId) -> Option {
+ let n = doc.node(id)?;
+ let NodeKind::Text(t) = &n.kind else { return Some(false) };
+ if n.styles.fill.is_some() || n.bound.keys().any(|k| k.starts_with("fills/")) {
+ return Some(false);
+ }
+ let fg = text_color(n, t)?;
+ let bg = backdrop(doc, n)?;
+ let size = t.style.font_size;
+ let large = size >= 24.0 || (size >= 18.0 && t.style.weight() >= 700);
+ let need = if large { 3.0 } else { 4.5 };
+ if fg.contrast(bg) >= need {
+ return Some(false);
+ }
+ let fixed = accessible(fg, bg, need);
+ if fixed.contrast(bg) < need {
+ return Some(false);
+ }
+ let n = doc.node_mut(id)?;
+ let NodeKind::Text(t) = &mut n.kind else { return Some(false) };
+ let paints = match &mut t.style.fills {
+ Some(fills) => fills,
+ None => &mut n.fills,
+ };
+ let paint = paints.iter_mut().rev().find(|p| p.visible && matches!(&p.kind, PaintKind::Solid { .. }))?;
+ paint.opacity = 1.0;
+ if let PaintKind::Solid { color } = &mut paint.kind {
+ *color = fixed.with_alpha(fg.a);
+ Some(true)
+ } else {
+ Some(false)
+ }
+}
+
+/// The closest shade of `fg` towards black (light backdrop) or white (dark backdrop) that meets
+/// `need` against `bg`, by bisection.
+fn accessible(fg: Color, bg: Color, need: f32) -> Color {
+ let target = if bg.luminance() > 0.5 { Color::BLACK } else { Color::WHITE };
+ let (mut lo, mut hi) = (0.0f32, 1.0f32);
+ let mut best = target;
+ for _ in 0..24 {
+ let t = (lo + hi) / 2.0;
+ let c = Color::new(fg.r + (target.r - fg.r) * t, fg.g + (target.g - fg.g) * t, fg.b + (target.b - fg.b) * t, 1.0);
+ if c.contrast(bg) >= need {
+ best = c;
+ hi = t;
+ } else {
+ lo = t;
+ }
+ }
+ best
+}
+
+fn apply_spacing(n: &mut Node, settings: &Settings) -> Option {
+ // Any spacing binding owns the whole layout value: fixing one field next to a token would
+ // leave a mixed layout and is not what the audit promised.
+ if [
+ "gap",
+ "columnGap",
+ "rowGap",
+ "crossGap",
+ "padding",
+ "paddingHorizontal",
+ "paddingVertical",
+ "paddingTop",
+ "paddingRight",
+ "paddingBottom",
+ "paddingLeft",
+ ]
+ .iter()
+ .any(|k| n.bound.contains_key(*k))
+ {
+ return Some(false);
+ }
+ let al = n.layout.as_mut()?;
+ let mut changed = false;
+ if al.mode != LayoutMode::Grid {
+ let gap = settings.snap(al.gap);
+ if (gap - al.gap).abs() > 1e-6 {
+ al.gap = gap;
+ changed = true;
+ }
+ if al.wrap {
+ let cross = settings.snap(al.cross_gap);
+ if (cross - al.cross_gap).abs() > 1e-6 {
+ al.cross_gap = cross;
+ changed = true;
+ }
+ }
+ }
+ for side in &mut al.padding {
+ let value = settings.snap(*side);
+ if (value - *side).abs() > 1e-6 {
+ *side = value;
+ changed = true;
+ }
+ }
+ Some(changed)
+}
+
+fn apply_radius(n: &mut Node, settings: &Settings) -> Option {
+ let (w, h) = (n.width, n.height);
+ let pill = w.min(h);
+ let mut changed = false;
+ for r in &mut n.corners.radii {
+ if *r > 0.01 && !settings.radius_ok(*r, w, h) {
+ *r = if pill > 0.0 && (*r - pill / 2.0).abs() <= 1.0 { pill / 2.0 } else { settings.snap_radius(*r) };
+ changed = true;
+ }
+ }
+ Some(changed)
+}
+
+/// Run `f` over a text layer's base style and its runs; true when any style changed.
+fn apply_text(n: &mut Node, f: fn(&mut TextStyle) -> bool) -> Option {
+ let NodeKind::Text(t) = &mut n.kind else { return Some(false) };
+ let TextData { style, runs, .. } = t;
+ let mut changed = f(style);
+ for run in runs {
+ changed |= f(&mut run.style);
+ }
+ Some(changed)
+}
+
+fn cap_weight(s: &mut TextStyle) -> bool {
+ if s.font_size >= 20.0 && s.weight() > 600 {
+ s.set_font_style("Semi Bold");
+ true
+ } else {
+ false
+ }
+}
+
+fn unitalic(s: &mut TextStyle) -> bool {
+ if !s.italic() {
+ return false;
+ }
+ let words: Vec<&str> = s.font_style.split_whitespace().filter(|w| !w.eq_ignore_ascii_case("italic")).collect();
+ let name = if words.is_empty() { "Regular".to_string() } else { words.join(" ") };
+ s.set_font_style(name);
+ true
+}
+
+fn zero_tracking(s: &mut TextStyle) -> bool {
+ let px = s.letter_spacing.resolve(s.font_size);
+ if s.font_size > 0.0 && s.font_size < 24.0 && px.is_finite() && px < -0.01 {
+ s.letter_spacing = LetterSpacing::Percent(0.0);
+ true
+ } else {
+ false
+ }
+}
+
+fn apply_glow(n: &mut Node) -> Option {
+ let before = n.effects.len();
+ n.effects.retain(|e| !is_glow(e));
+ Some(n.effects.len() != before)
+}
+
+fn apply_neutral_shadows(n: &mut Node) -> Option {
+ let mut changed = false;
+ for e in &mut n.effects {
+ if let EffectKind::DropShadow(s) | EffectKind::InnerShadow(s) = &mut e.kind
+ && is_colored_shadow(s)
+ {
+ s.color = Color::new(0.0, 0.0, 0.0, s.color.a);
+ changed = true;
+ }
+ }
+ Some(changed)
+}
+
+fn apply_border(n: &mut Node) -> Option {
+ let mut changed = false;
+ for p in &mut n.strokes {
+ if p.visible && p.opacity > 0.08 {
+ p.opacity = 0.08;
+ changed = true;
+ }
+ }
+ Some(changed)
+}
diff --git a/crates/engine/src/design/mod.rs b/crates/engine/src/design/mod.rs
new file mode 100644
index 000000000..7e8229323
--- /dev/null
+++ b/crates/engine/src/design/mod.rs
@@ -0,0 +1,378 @@
+//! Design review: deterministic checks for the usual AI-generated interface tells.
+//!
+//! `design.audit` reads a selection, a page or the whole document and reports what a designer
+//! would fix first — spacing off the 4px grid, radii outside the scale, too many type sizes,
+//! gradient text, glows, low-contrast text, emoji labels. It changes nothing. `design.fix` (the
+//! planned follow-up) repairs the findings marked `fixable`.
+//!
+//! The rules are our own reading of the public "unslop" checklist (CC BY 4.0, heydamir/unslop):
+//! only the ideas, no text or assets from it.
+
+mod audit;
+mod fix;
+mod rules;
+
+#[cfg(test)]
+mod tests;
+
+use std::collections::{BTreeMap, BTreeSet};
+
+use figcraft_doc::{CollectionId, DesignPreset, DesignReview, Document, GRID_MAX, GRID_MIN, MAX_BRAND_COLORS, MAX_RADII, ModeId, NodeId};
+use serde_json::{Value, json};
+
+use crate::cmd::CommandSpec;
+use crate::params;
+use crate::{EngineError, Result, Session, bad, spec};
+use rules::{RULES, Severity, presets_of, rule};
+
+pub fn specs() -> Vec {
+ vec![
+ spec!(
+ "design.audit",
+ "Check design",
+ "{scope?: selection|page|document (default: selection when something is selected, else page), ids?: [layer ids] (instead of scope), rules?: [rule ids], minSeverity?: low|medium|high (default low), preset?: recommended|strict|accessibility (default: the file's), modes?: {collection: mode} (resolve bound colours in these variable modes; the contrast check uses them)} → {preset, grid, modes?, scope, score, counts: {high, medium, low}, byRule: {rule: count}, nodes, findings: [{rule, severity, node, path, message, fixable, suggestion?}], truncated} reads the design and reports the AI-slop tells; changes nothing",
+ false,
+ audit_cmd
+ ),
+ spec!(
+ "design.fix",
+ "Fix design",
+ "{scope?: selection|page|document (default: selection when something is selected, else page), ids?: [layer ids] (instead of scope), rules?: [rule ids], preset?: recommended|strict|accessibility (default: the file's), exact?: bool (with ids: repair only findings on those layers, not their descendants), dryRun?: bool (default false)} → {scope, dryRun, changed, skipped, byRule, before: {score, counts, nodes, findings}, after: {score, counts, nodes, findings}} repairs the findings marked fixable in one undo step; content, naming and gradients are left alone",
+ true,
+ fix_cmd
+ ),
+ spec!(
+ "design.assert",
+ "Assert design",
+ "{scope?: selection|page|document (default: selection when something is selected, else page), ids?: [layer ids] (instead of scope), rules?: [rule ids], preset?: recommended|strict|accessibility (default: the file's), modes?: {collection: mode} (resolve bound colours in these variable modes), failOn?: low|medium|high (default high), minScore?: 0-100 (default 0)} → {ok: true, score, counts} fails with an error when a finding at or above failOn exists or the score is below minScore; read-only, for CI",
+ false,
+ assert_cmd
+ ),
+ spec!(
+ "design.configure",
+ "Configure design review",
+ "{preset?: recommended|strict|accessibility, grid?: 1-64 (px, default 4), radii?: [px] (empty: the grid scale and a pill), brand?: [colour] (accent colours the file owns), disabled?: [rule ids] (rules off in this file), reset?: bool} → {preset, grid, radii, brand, disabled} changes the file's design review settings in one undo step; audit, fix and assert use them from then on",
+ true,
+ configure_cmd
+ ),
+ spec!(
+ "design.rules",
+ "List design rules",
+ "{} → {rules: [{id, severity, fixable, description, presets}], presets: [{id, description}]}",
+ false,
+ |_, _| Ok(json!({
+ "rules": RULES.iter().map(|r| json!({
+ "id": r.id,
+ "severity": r.severity.id(),
+ "fixable": r.fixable,
+ "description": r.description,
+ "presets": presets_of(r.id),
+ })).collect::>(),
+ "presets": DesignPreset::ALL.iter().map(|p| json!({
+ "id": p.id(),
+ "description": preset_description(*p),
+ })).collect::>(),
+ }))
+ ),
+ ]
+}
+
+fn audit_cmd(s: &mut Session, p: &Value) -> Result {
+ let (label, roots, anchor, path) = scope_of(s, "design.audit", p)?;
+ let min = severity_arg("design.audit", p)?;
+ let filter = filter_arg("design.audit", p)?;
+ let preset = preset_arg("design.audit", p)?;
+ let modes = modes_arg("design.audit", p, s.doc()?)?;
+ Ok(audit::run(s.doc()?, &roots, &label, anchor, &path, min, filter.as_ref(), preset, modes))
+}
+
+fn fix_cmd(s: &mut Session, p: &Value) -> Result {
+ let (label, roots, anchor, path) = scope_of(s, "design.fix", p)?;
+ let filter = filter_arg("design.fix", p)?;
+ let preset = preset_arg("design.fix", p)?;
+ let exact = params::boolean(p, "exact").unwrap_or(false);
+ let dry = params::boolean(p, "dryRun").unwrap_or(false);
+ Ok(fix::run(s.doc_mut()?, &roots, anchor, &path, &label, preset, filter.as_ref(), exact, dry))
+}
+
+/// `design.assert`: a read-only gate for CI. Returns the score when the design passes; an error
+/// that names the counts when it does not.
+fn assert_cmd(s: &mut Session, p: &Value) -> Result {
+ let (label, roots, anchor, path) = scope_of(s, "design.assert", p)?;
+ let filter = filter_arg("design.assert", p)?;
+ let fail_on = severity_named("design.assert", p, "failOn", Severity::High)?;
+ let preset = preset_arg("design.assert", p)?;
+ let modes = modes_arg("design.assert", p, s.doc()?)?;
+ let min_score = match params::get(p, "minScore") {
+ None => 0.0,
+ Some(v) => match params::f64_of(v) {
+ Some(v) if (0.0..=100.0).contains(&v) => v,
+ _ => return Err(bad("design.assert", "`minScore` must be a number between 0 and 100")),
+ },
+ };
+ // The score covers the whole review (as the window shows it); only findings at or above
+ // `failOn` fail the gate.
+ let report = audit::run(s.doc()?, &roots, &label, anchor, &path, Severity::Low, filter.as_ref(), preset, modes);
+ let failing: Vec<&Value> = report["findings"]
+ .as_array()
+ .map(|v| v.iter().filter(|f| f["severity"].as_str().and_then(Severity::from_id).is_some_and(|s| s >= fail_on)).collect())
+ .unwrap_or_default();
+ let score = report["score"].as_f64().unwrap_or(0.0);
+ if !failing.is_empty() || score < min_score {
+ let mut by_rule: std::collections::BTreeMap<&str, usize> = std::collections::BTreeMap::new();
+ for f in &failing {
+ if let Some(rule) = f["rule"].as_str() {
+ *by_rule.entry(rule).or_default() += 1;
+ }
+ }
+ let rules: Vec = by_rule.iter().take(4).map(|(rule, count)| format!("{rule} ×{count}")).collect();
+ let detail = if rules.is_empty() { String::new() } else { format!(" ({})", rules.join(", ")) };
+ return Err(EngineError::Other(format!(
+ "design review failed: score {score:.0}, {} finding(s) at {} or above{detail}",
+ failing.len(),
+ fail_on.id()
+ )));
+ }
+ Ok(json!({"ok": true, "score": score, "counts": report["counts"]}))
+}
+
+fn severity_named(cmd: &str, p: &Value, key: &str, default: Severity) -> Result {
+ match params::string(p, key).map(|s| s.trim().to_ascii_lowercase()).filter(|s| !s.is_empty()) {
+ None => Ok(default),
+ Some(s) => Severity::from_id(&s).ok_or_else(|| bad(cmd, format!("`{key}` must be low, medium or high, not `{s}`"))),
+ }
+}
+
+fn preset_arg(cmd: &str, p: &Value) -> Result
+
+ FigCraft — открытый нативный инструмент для дизайна и прототипирования интерфейсов.
+ Размещайте экраны на бесконечном холсте с помощью Frame, автолейаута и ограничений,
+ создавайте повторно используемые компоненты и варианты и связывайте экраны в
+ кликабельные прототипы.
+
Frames, vector shapes, text and images on an infinite canvas
+
Frame, векторные фигуры, текст и изображения на бесконечном холсте
Auto layout and constraints for responsive designs
+
Автолейаут и ограничения для адаптивных макетов
Components, variants, shared styles and variables
+
Компоненты, варианты, общие стили и переменные
Prototyping with interactions and transitions, and a presentation mode
+
Прототипирование со взаимодействиями и переходами, режим презентации
Inspect panel with measurements and code snippets; SVG and PNG export
+
Панель «Инспектор» с измерениями и фрагментами кода; экспорт в SVG и PNG
Every action is a command, scriptable from a CLI, a JSON control channel and an MCP server
+
Каждое действие — это команда, которую можно вызывать из CLI, через управляющий канал JSON и сервер MCP
ai.storyteller.figcraft.desktop
@@ -40,9 +55,13 @@
interface design
+ дизайн интерфейсовprototyping
+ прототипированиеui
+ uiwireframe
+ вайрфрейм#9fd3ff
diff --git a/packaging/linux/ai.storyteller.figcraft.mime.xml b/packaging/linux/ai.storyteller.figcraft.mime.xml
index b2190b216..cc644f26a 100644
--- a/packaging/linux/ai.storyteller.figcraft.mime.xml
+++ b/packaging/linux/ai.storyteller.figcraft.mime.xml
@@ -1,16 +1,20 @@
+
+
FigCraft document
+ Документ FigCraftSketch document
+ Документ Sketch
From 141083243ac81dc0f349282a9f8f6fb6640c2960 Mon Sep 17 00:00:00 2001
From: supersfera
Date: Sat, 21 Nov 2026 19:28:52 -0800
Subject: [PATCH 30/57] ru: address review (metainfo license notice)
---
packaging/linux/ai.storyteller.figcraft.metainfo.xml.in | 2 --
1 file changed, 2 deletions(-)
diff --git a/packaging/linux/ai.storyteller.figcraft.metainfo.xml.in b/packaging/linux/ai.storyteller.figcraft.metainfo.xml.in
index 5ede36f7f..de935fc85 100644
--- a/packaging/linux/ai.storyteller.figcraft.metainfo.xml.in
+++ b/packaging/linux/ai.storyteller.figcraft.metainfo.xml.in
@@ -1,6 +1,4 @@
-
-
From c7281989a15bc59f49cce698808e73669998f711 Mon Sep 17 00:00:00 2001
From: Vijayaraghavan M
Date: Mon, 23 Nov 2026 00:28:18 +0530
Subject: [PATCH 31/57] M1: a guide released past its ruler is removed
---
crates/ui-egui/src/canvas.rs | 2 +-
crates/ui-egui/src/canvas/guides.rs | 34 ++++++++++++++++-------
crates/ui-egui/src/guide_release_tests.rs | 29 +++++++++++++++++++
3 files changed, 54 insertions(+), 11 deletions(-)
diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs
index 3d3f05082..6e241afa7 100644
--- a/crates/ui-egui/src/canvas.rs
+++ b/crates/ui-egui/src/canvas.rs
@@ -296,7 +296,7 @@ pub fn show(app: &mut FigApp, ui: &mut Ui, worker: &mut Worker) {
Some((rect, _)) => crate::drop_overlay(&ctx, rect, tr("Drop to use this image")),
None => crate::drop_overlay(&ctx, ctx.content_rect(), label),
}
- crate::guides::end_released(&ctx);
+ crate::guides::end_released(app, &ctx);
crate::live::track_pointer(app, &ctx);
app.sync_preedit();
// Retained rendering snaps the view outward and adds one pixel on each axis.
diff --git a/crates/ui-egui/src/canvas/guides.rs b/crates/ui-egui/src/canvas/guides.rs
index 725957f9c..30f80b01a 100644
--- a/crates/ui-egui/src/canvas/guides.rs
+++ b/crates/ui-egui/src/canvas/guides.rs
@@ -229,13 +229,7 @@ pub fn input(app: &mut FigApp, ctx: &egui::Context, pos: Pos2) -> bool {
d.remove::(drag_id());
d.remove::(preview_id());
});
- // Released over its own ruler (the left one for a guide running down the screen): no
- // guide (a moved one is removed).
- let down = at.map_or(vertical, |g| {
- let [a, b] = segment(app, &g, r);
- (b.y - a.y).abs() >= (b.x - a.x).abs()
- });
- let on_ruler = if down { pos.x < r.min.x + RULER } else { pos.y < r.min.y + RULER };
+ let on_ruler = on_own_ruler(app, at, vertical, pos);
let page = app.session.ds().map(|d| d.page).ok();
let before = app.session.doc().ok().and_then(|d| match drag {
GuideDrag::Move { owner, index, .. } => d.node(owner).and_then(|n| n.guides().get(index)).map(|g| g.offset),
@@ -297,17 +291,37 @@ pub fn input(app: &mut FigApp, ctx: &egui::Context, pos: Pos2) -> bool {
false
}
+/// Whether `pos` is over the ruler a guide comes back to, or past it: the left ruler for a guide
+/// running down the screen, the top one otherwise. `at` is where the guide would land, if anywhere.
+fn on_own_ruler(app: &FigApp, at: Option, vertical: bool, pos: Pos2) -> bool {
+ let r = app.canvas.rect;
+ let down = at.map_or(vertical, |g| {
+ let [a, b] = segment(app, &g, r);
+ (b.y - a.y).abs() >= (b.x - a.x).abs()
+ });
+ if down { pos.x < r.min.x + RULER } else { pos.y < r.min.y + RULER }
+}
+
/// Ends a guide drag whose button is up by the end of the frame without [`input`] taking the
/// release (released off the canvas, or over something on it): the gesture is dropped, so a later
-/// click doesn't add or move a guide.
-pub fn end_released(ctx: &egui::Context) {
+/// click doesn't add or move a guide. A moved guide released past its own ruler is removed, as on
+/// the ruler: the ruler is thin, and a drag back onto it often overshoots onto the panel beside it.
+pub fn end_released(app: &mut FigApp, ctx: &egui::Context) {
if ctx.input(|i| i.pointer.primary_down()) {
return;
}
- ctx.data_mut(|d| {
+ let (drag, at) = ctx.data_mut(|d| {
+ let taken = (d.get_temp::(drag_id()), d.get_temp::(preview_id()));
d.remove::(drag_id());
d.remove::(preview_id());
+ taken
});
+ let Some(GuideDrag::Move { owner, index, vertical, copy: false, .. }) = drag else { return };
+ let Some(pos) = ctx.input(|i| i.pointer.latest_pos()) else { return };
+ if rulers_on(app) && on_own_ruler(app, at, vertical, pos) {
+ let page = app.session.ds().map(|d| d.page).ok();
+ app.run("guide.remove", owned(owner, page, json!({"index": index})));
+ }
}
/// Draw the page's and its frames' guides (under the rulers) and the one being dragged with its
diff --git a/crates/ui-egui/src/guide_release_tests.rs b/crates/ui-egui/src/guide_release_tests.rs
index b2e0f015d..31de3621d 100644
--- a/crates/ui-egui/src/guide_release_tests.rs
+++ b/crates/ui-egui/src/guide_release_tests.rs
@@ -72,6 +72,35 @@ fn a_guide_moved_off_the_canvas_doesnt_follow_a_later_click() {
assert_eq!(offsets(&u), released);
}
+/// The ruler is a thin target: a guide released on it, or past it off the canvas (over the panel
+/// beside the left ruler, or the bar above the top one), is removed.
+#[test]
+fn a_guide_dragged_back_onto_or_past_its_ruler_is_removed() {
+ for left in [false, true] {
+ for past in [false, true] {
+ let mut u = rulers();
+ let r = u.app.canvas.rect;
+ let inset = if past { -40.0 } else { 5.0 };
+ let ruler = if left { Pos2::new(r.min.x + inset, r.center().y) } else { Pos2::new(r.center().x, r.min.y + inset) };
+ let start = if left { Pos2::new(r.min.x + 5.0, r.min.y + 60.0) } else { Pos2::new(r.min.x + 60.0, r.min.y + 5.0) };
+ drag(&mut u, start, r.center());
+ assert_eq!(offsets(&u).len(), 1, "left ruler: {left}, past it: {past}");
+ drag(&mut u, r.center(), ruler);
+ assert!(offsets(&u).is_empty(), "left ruler: {left}, past it: {past}");
+ }
+ }
+}
+
+#[test]
+fn a_guide_released_off_the_canvas_away_from_its_ruler_stays() {
+ let mut u = rulers();
+ let r = u.app.canvas.rect;
+ drag(&mut u, Pos2::new(r.min.x + 5.0, r.min.y + 60.0), r.center());
+ let placed = offsets(&u);
+ drag(&mut u, r.center(), Pos2::new(r.max.x + 40.0, r.center().y));
+ assert_eq!(offsets(&u), placed);
+}
+
#[test]
fn a_ruler_drag_released_on_the_canvas_adds_one_guide() {
let mut u = rulers();
From 0fca11df35e0b3d9fc6cf554c68a8eb2a03304d6 Mon Sep 17 00:00:00 2001
From: Vijayaraghavan M
Date: Mon, 23 Nov 2026 00:45:08 +0530
Subject: [PATCH 32/57] M1: remove a guide by where its button came up
---
crates/ui-egui/src/canvas/guides.rs | 10 +++++++++-
crates/ui-egui/src/guide_release_tests.rs | 17 +++++++++++++++++
2 files changed, 26 insertions(+), 1 deletion(-)
diff --git a/crates/ui-egui/src/canvas/guides.rs b/crates/ui-egui/src/canvas/guides.rs
index 30f80b01a..95b30a592 100644
--- a/crates/ui-egui/src/canvas/guides.rs
+++ b/crates/ui-egui/src/canvas/guides.rs
@@ -317,7 +317,15 @@ pub fn end_released(app: &mut FigApp, ctx: &egui::Context) {
taken
});
let Some(GuideDrag::Move { owner, index, vertical, copy: false, .. }) = drag else { return };
- let Some(pos) = ctx.input(|i| i.pointer.latest_pos()) else { return };
+ // Where the button came up: a later move in the same frame, or a touch's end clearing the
+ // pointer, doesn't change it.
+ let released_at = ctx.input(|i| {
+ i.events.iter().rev().find_map(|e| match e {
+ egui::Event::PointerButton { pos, button: egui::PointerButton::Primary, pressed: false, .. } => Some(*pos),
+ _ => None,
+ })
+ });
+ let Some(pos) = released_at else { return };
if rulers_on(app) && on_own_ruler(app, at, vertical, pos) {
let page = app.session.ds().map(|d| d.page).ok();
app.run("guide.remove", owned(owner, page, json!({"index": index})));
diff --git a/crates/ui-egui/src/guide_release_tests.rs b/crates/ui-egui/src/guide_release_tests.rs
index 31de3621d..829b88e88 100644
--- a/crates/ui-egui/src/guide_release_tests.rs
+++ b/crates/ui-egui/src/guide_release_tests.rs
@@ -91,6 +91,23 @@ fn a_guide_dragged_back_onto_or_past_its_ruler_is_removed() {
}
}
+/// Where the button came up decides, not where the pointer went later in the same frame.
+#[test]
+fn a_guide_released_above_the_canvas_stays_when_the_pointer_then_moves_past_its_ruler() {
+ let mut u = rulers();
+ let r = u.app.canvas.rect;
+ drag(&mut u, Pos2::new(r.min.x + 5.0, r.min.y + 60.0), r.center());
+ let placed = offsets(&u);
+ u.button(r.center(), true);
+ let above = Pos2::new(r.center().x, r.min.y - 30.0);
+ u.frame(vec![Event::PointerMoved(above)]);
+ u.frame(vec![
+ Event::PointerButton { pos: above, button: egui::PointerButton::Primary, pressed: false, modifiers: Default::default() },
+ Event::PointerMoved(Pos2::new(r.min.x - 40.0, above.y)),
+ ]);
+ assert_eq!(offsets(&u), placed);
+}
+
#[test]
fn a_guide_released_off_the_canvas_away_from_its_ruler_stays() {
let mut u = rulers();
From 34abd7da2dba055c4ea87e10bfcee80f8b4f42b7 Mon Sep 17 00:00:00 2001
From: ViktorBystrov72 <18964918+ViktorBystrov72@users.noreply.github.com>
Date: Mon, 23 Nov 2026 18:25:06 +0500
Subject: [PATCH 33/57] Components: report and find orphaned instances (#2183)
---
crates/engine/src/cmd/edit.rs | 26 ++++++++++++++++++++++++--
crates/engine/src/node_find_tests.rs | 27 +++++++++++++++++++++++++++
crates/engine/src/session/exec.rs | 10 +++++++---
3 files changed, 58 insertions(+), 5 deletions(-)
diff --git a/crates/engine/src/cmd/edit.rs b/crates/engine/src/cmd/edit.rs
index cc2391ef5..4ab96755d 100644
--- a/crates/engine/src/cmd/edit.rs
+++ b/crates/engine/src/cmd/edit.rs
@@ -72,6 +72,7 @@ fn node_find(s: &mut Session, p: &Value) -> Result {
let text = filter("text")?;
let component = filter("component")?;
let kind = filter("type")?;
+ let orphaned = get(p, "orphaned").map(|v| v.as_bool().ok_or_else(|| bad(cmd, "`orphaned` must be a boolean"))).transpose()?;
if let Some(kind) = &kind
&& !LAYER_TYPES.iter().any(|t| t.eq_ignore_ascii_case(kind))
{
@@ -100,6 +101,7 @@ fn node_find(s: &mut Session, p: &Value) -> Result {
|| component.as_ref().is_some_and(
|q| !matches!(&n.kind, NodeKind::Instance { component, .. } if doc.node(*component).is_some_and(|c| fold(&c.name).contains(q))),
)
+ || orphaned.is_some_and(|want| !matches!(&n.kind, NodeKind::Instance { component, .. } if doc.contains(*component) != want))
{
continue;
}
@@ -115,7 +117,7 @@ pub fn specs() -> Vec {
vec![
spec!("edit.undo", "Undo", "{}", false, |s, _| Ok(json!({"undone": s.undo()?}))),
spec!("edit.redo", "Redo", "{}", false, |s, _| Ok(json!({"redone": s.redo()?}))),
- spec!("edit.delete", "Delete", "{ids?}", true, delete),
+ spec!("edit.delete", "Delete", "{ids?} → {deleted, hidden, orphaned? (surviving instances that lost their main)}", true, delete),
spec!(
"edit.duplicate",
"Duplicate",
@@ -347,7 +349,7 @@ pub fn specs() -> Vec {
spec!(
"node.find",
"Find layers",
- "{root? (strict descendants; default current page), name?, type? (canonical layer type), text?, component? (main component name), limit? (0-10000; default 100)}: every filter must match; name, text and component are case-insensitive substrings, type is exact (any case); returns {ids, total} and does not select",
+ "{root? (strict descendants; default current page), name?, type? (canonical layer type), text?, component? (main component name), orphaned?: bool (instances without a main if true, with a main if false), limit? (0-10000; default 100)}: every filter must match; name, text and component are case-insensitive substrings, type is exact (any case); returns {ids, total} and does not select",
false,
node_find
),
@@ -616,6 +618,26 @@ fn delete(s: &mut Session, p: &Value) -> Result {
Ok(json!({"deleted": ids, "hidden": hidden}))
}
+/// Add only instances that still exist after the delete and instance synchronisation.
+pub(crate) fn report_orphaned_instances(result: &mut Value, before: &Document, after: &Document) {
+ let removed: BTreeSet<_> = after
+ .changed_ids(before, usize::MAX)
+ .unwrap_or_default()
+ .into_iter()
+ .filter(|&id| !after.contains(id) && matches!(before.node(id).map(|n| &n.kind), Some(NodeKind::Component { .. })))
+ .collect();
+ if removed.is_empty() {
+ return;
+ }
+ let orphaned: Vec<_> =
+ after.nodes().filter(|n| matches!(&n.kind, NodeKind::Instance { component, .. } if removed.contains(component))).map(|n| n.id).collect();
+ if !orphaned.is_empty()
+ && let Some(result) = result.as_object_mut()
+ {
+ result.insert("orphaned".into(), json!(orphaned));
+ }
+}
+
/// Layers duplicated last (Duplicate or Alt-drag) and their copies, in the same order. While the
/// copies are the selection, Duplicate places the next copies as far from them as they are from
/// their sources, measured then (their move and turn, not their size): so moving or turning the
diff --git a/crates/engine/src/node_find_tests.rs b/crates/engine/src/node_find_tests.rs
index bb892ad5a..cb56d8139 100644
--- a/crates/engine/src/node_find_tests.rs
+++ b/crates/engine/src/node_find_tests.rs
@@ -99,6 +99,33 @@ fn node_find_instances_match_main_name_and_visit_actual_children_only() {
found(&mut s, json!({"root": inst, "text": "original"}), &[]);
found(&mut s, json!({"root": inst, "text": "changed"}), &[child]);
found(&mut s, json!({}), &[main, original, inst, child, broken]);
+ found(&mut s, json!({"orphaned": true}), &[broken]);
+ found(&mut s, json!({"orphaned": false}), &[inst]);
+ found(&mut s, json!({"orphaned": true, "name": "other"}), &[]);
+ assert!(s.execute("node.find", &json!({"orphaned": "true"})).is_err());
+}
+
+#[test]
+fn deleting_a_component_reports_only_the_instances_it_leaves_orphaned() {
+ let mut s = Session::new();
+ let page = s.page().unwrap();
+ let frame = add(&mut s, page, NodeKind::Frame, "With a main");
+ let main = add(&mut s, frame, NodeKind::Component { description: String::new(), props: Default::default(), prop_order: Vec::new() }, "Main");
+ let other_main =
+ add(&mut s, page, NodeKind::Component { description: String::new(), props: Default::default(), prop_order: Vec::new() }, "Other");
+ let deleted = idv(&ex(&mut s, "instance.create", json!({"component": main, "parent": frame})));
+ let survivor = idv(&ex(&mut s, "instance.create", json!({"component": main})));
+ let linked = idv(&ex(&mut s, "instance.create", json!({"component": other_main})));
+
+ let first = ex(&mut s, "edit.delete", json!({"ids": [other_main]}));
+ assert_eq!(first["orphaned"], json!([linked]));
+ let result = ex(&mut s, "edit.delete", json!({"ids": [frame]}));
+ assert_eq!(result["orphaned"], json!([survivor]));
+ assert!(!s.doc().unwrap().contains(deleted));
+ found(&mut s, json!({"orphaned": true}), &[survivor, linked]);
+
+ ex(&mut s, "edit.undo", json!({}));
+ found(&mut s, json!({"orphaned": true}), &[linked]);
}
#[test]
diff --git a/crates/engine/src/session/exec.rs b/crates/engine/src/session/exec.rs
index 73f2d7d16..d709e45f5 100644
--- a/crates/engine/src/session/exec.rs
+++ b/crates/engine/src/session/exec.rs
@@ -107,9 +107,9 @@ impl Session {
.and_then(|v| self.check_live_access(id, &before).map(|()| v))
.and_then(|v| self.check_finite_geometry(id, &before).map(|()| v))
// Normalising is part of the command: a panic in it rolls the edit back too (#1085).
- .and_then(|v| {
+ .and_then(|mut v| {
guard::run(id, || {
- self.normalize_edit(spec, &before);
+ self.normalize_edit(spec, &before, &mut v);
Ok(v)
})
});
@@ -229,13 +229,17 @@ impl Session {
/// Normalise what a command changed in the document it ran on (text boxes, groups, instances,
/// auto layout…).
- fn normalize_edit(&mut self, spec: &CommandSpec, before: &Option<(Arc, Vec, NodeId, u64)>) {
+ fn normalize_edit(&mut self, spec: &CommandSpec, before: &Option<(Arc, Vec, NodeId, u64)>, result: &mut Value) {
let Some((bdoc, _, _, uid)) = before else { return };
+ let deletes = spec.id == "edit.delete" || (spec.id == "edit.repeat" && self.last_command.as_ref().is_some_and(|(id, _)| id == "edit.delete"));
let Some(ds) = self.docs.iter_mut().find(|d| d.uid == *uid) else { return };
// Saving may adopt the chosen filename as the document title. The encoded snapshot is
// already final; normalising it again would detach it from the saved baseline.
if !Arc::ptr_eq(&ds.doc, bdoc) && !matches!(spec.id, "file.save" | "file.saveAs") {
normalize(ds.doc_mut(), bdoc);
+ if deletes {
+ cmd::edit::report_orphaned_instances(result, bdoc, &ds.doc);
+ }
}
}
From c24392ea55dacf12c1923eb2ee0a847e8229c23c Mon Sep 17 00:00:00 2001
From: ViktorBystrov72 <18964918+ViktorBystrov72@users.noreply.github.com>
Date: Mon, 23 Nov 2026 18:32:06 +0500
Subject: [PATCH 34/57] Layers: follow vertical auto-layout order (#2470)
---
crates/engine/src/cmd/edit.rs | 9 ++-
crates/engine/src/cmd/edit/props.rs | 11 +--
crates/ui-egui/src/layers_drag_tests.rs | 91 +++++++++++++++++++++++++
crates/ui-egui/src/panels/layers.rs | 55 +++++++++------
4 files changed, 139 insertions(+), 27 deletions(-)
diff --git a/crates/engine/src/cmd/edit.rs b/crates/engine/src/cmd/edit.rs
index cc2391ef5..cf9e54c93 100644
--- a/crates/engine/src/cmd/edit.rs
+++ b/crates/engine/src/cmd/edit.rs
@@ -356,7 +356,14 @@ pub fn specs() -> Vec {
"Move layer into",
"{ids?, parent, index? (final position among parent's children, bottom first; default top)}",
true,
- reparent
+ |s, p| reparent(s, p, "node.reparent", false)
+ ),
+ spec!(
+ "layers.reparent",
+ "Move layer into",
+ "{ids (in the destination's stored child order), parent, index? (final position among parent's children, bottom first; default top)}",
+ true,
+ |s, p| reparent(s, p, "layers.reparent", true)
),
spec!("node.reorder", "Reorder layer", "{id, index}", true, |s, p| {
let i = req_id("node.reorder", p, "id")?;
diff --git a/crates/engine/src/cmd/edit/props.rs b/crates/engine/src/cmd/edit/props.rs
index 5bd6710af..3736738c0 100644
--- a/crates/engine/src/cmd/edit/props.rs
+++ b/crates/engine/src/cmd/edit/props.rs
@@ -268,12 +268,13 @@ pub(super) fn stroke_brush(s: &mut Session, p: &Value) -> Result {
ok()
}
-pub(super) fn reparent(s: &mut Session, p: &Value) -> Result {
- let ids = req_targets("node.reparent", s, p)?;
- let parent = req_id("node.reparent", p, "parent")?;
- let index = opt_index("node.reparent", p, "index")?;
+pub(super) fn reparent(s: &mut Session, p: &Value, cmd: &str, keep_order: bool) -> Result {
+ let ids = req_targets(cmd, s, p)?;
+ let parent = req_id(cmd, p, "parent")?;
+ let index = opt_index(cmd, p, "index")?;
let doc = s.doc_mut()?;
- let ids = z_sorted(doc, &roots(doc, &ids));
+ let roots = roots(doc, &ids);
+ let ids = if keep_order { roots } else { z_sorted(doc, &roots) };
// `index` is where the first moved layer ends up among the parent's children (bottom first),
// counted after the move, the way `node.reorder` counts it. The layers land together, keeping
// their order, under the sibling that stays put and ends up just after them (none: on top).
diff --git a/crates/ui-egui/src/layers_drag_tests.rs b/crates/ui-egui/src/layers_drag_tests.rs
index f1d644778..226da30f1 100644
--- a/crates/ui-egui/src/layers_drag_tests.rs
+++ b/crates/ui-egui/src/layers_drag_tests.rs
@@ -130,6 +130,97 @@ fn setup() -> (Ui, NodeId, NodeId, NodeId) {
(u, frame, child, rect)
}
+#[test]
+fn vertical_auto_layout_layers_follow_the_canvas_before_and_after_a_drop() {
+ let mut s = Session::new();
+ let frame = id(s.execute("node.create", &json!({"type": "frame", "width": 180, "height": 160, "props": {"layout": "vertical"}})).unwrap());
+ let rect = |s: &mut Session, name: &str| {
+ id(s.execute("node.create", &json!({"type": "rectangle", "parent": frame, "width": 80, "height": 30, "name": name})).unwrap())
+ };
+ let first = rect(&mut s, "First");
+ let second = rect(&mut s, "Second");
+ s.execute("select.none", &json!({})).unwrap();
+ let mut u = Ui::new(s);
+ u.app.ui.expanded.insert(frame);
+ let canvas_top = |u: &Ui, id: NodeId| u.app.session.doc().unwrap().world_bounds(id).unwrap().y0;
+ assert!(canvas_top(&u, first) < canvas_top(&u, second));
+ let (top, bottom) = (u.row_at(first), u.row_at(second));
+ assert!(top.y < bottom.y, "the Layers panel follows the vertical flow");
+
+ let above_first = top - vec2(0.0, 4.0);
+ u.drag_to(bottom, above_first);
+ u.button(above_first, false);
+ assert!(canvas_top(&u, second) < canvas_top(&u, first), "dropping above moves it up on the canvas");
+ assert!(u.row_at(second).y < u.row_at(first).y, "the Layers order follows the drop");
+
+ u.app.run("select.set", json!({"ids": [second]}));
+ u.ctx.enable_accesskit();
+ u.frame(vec![]);
+ let press = |u: &mut Ui, key| {
+ u.frame(
+ [true, false]
+ .into_iter()
+ .map(|pressed| Event::Key { key, physical_key: None, pressed, repeat: false, modifiers: Default::default() })
+ .collect(),
+ );
+ };
+ for _ in 0..4 {
+ press(&mut u, egui::Key::F6);
+ if u.app.ui.nav.region == crate::a11y::Region::Layers {
+ break;
+ }
+ }
+ assert_eq!(u.app.ui.nav.region, crate::a11y::Region::Layers);
+ press(&mut u, egui::Key::ArrowDown);
+ u.frame(vec![]);
+ assert_eq!(u.app.session.selection(), vec![first]);
+ assert_eq!(crate::a11y::focused_name(&u.ctx), "First");
+}
+
+#[test]
+fn grouped_drop_between_vertical_and_stacked_rows_keeps_the_visible_order() {
+ for source_vertical in [true, false] {
+ let mut s = Session::new();
+ let container = |s: &mut Session, x, vertical| {
+ let props = if vertical { json!({"layout": "vertical"}) } else { json!({}) };
+ id(s.execute("node.create", &json!({"type": "frame", "x": x, "width": 180, "height": 160, "props": props})).unwrap())
+ };
+ let source = container(&mut s, 0, source_vertical);
+ let target = container(&mut s, 240, !source_vertical);
+ let rect = |s: &mut Session, parent, name| {
+ id(s.execute("node.create", &json!({"type": "rectangle", "parent": parent, "width": 80, "height": 30, "name": name})).unwrap())
+ };
+ let (a, b) = if source_vertical {
+ (rect(&mut s, source, "A"), rect(&mut s, source, "B"))
+ } else {
+ let b = rect(&mut s, source, "B");
+ (rect(&mut s, source, "A"), b)
+ };
+ let c = rect(&mut s, target, "C");
+ s.execute("select.set", &json!({"ids": [b, a]})).unwrap();
+ let mut u = Ui::new(s);
+ u.app.ui.expanded.extend([source, target]);
+ let top = u.row_at(a);
+ assert!(top.y < u.row_at(b).y);
+ let above_c = u.row_at(c) - vec2(0.0, 4.0);
+ u.drag_to(top, above_c);
+ u.button(above_c, false);
+
+ let (a_row, b_row, c_row) = (u.row_at(a), u.row_at(b), u.row_at(c));
+ assert!(a_row.y < b_row.y && b_row.y < c_row.y, "A, B, C in the destination (source vertical: {source_vertical})");
+ let doc = u.app.session.doc().unwrap();
+ assert!(doc.node(source).unwrap().children.is_empty());
+ let want = if source_vertical { vec![c, b, a] } else { vec![a, b, c] };
+ assert_eq!(doc.node(target).unwrap().children, want);
+
+ u.app.run("edit.undo", json!({}));
+ let doc = u.app.session.doc().unwrap();
+ assert_eq!(doc.node(a).unwrap().parent, Some(source));
+ assert_eq!(doc.node(b).unwrap().parent, Some(source));
+ assert_eq!(doc.node(target).unwrap().children, vec![c]);
+ }
+}
+
#[test]
fn holding_over_a_collapsed_frame_opens_it_and_dropping_moves_the_layer_in() {
let (mut u, frame, child, rect) = setup();
diff --git a/crates/ui-egui/src/panels/layers.rs b/crates/ui-egui/src/panels/layers.rs
index 4ac78bbef..2617ee720 100644
--- a/crates/ui-egui/src/panels/layers.rs
+++ b/crates/ui-egui/src/panels/layers.rs
@@ -616,12 +616,22 @@ fn hides_children(n: &figcraft_doc::Node, dimmed: bool) -> bool {
dimmed || !n.visible || n.hides_contents()
}
+fn vertical_flow(n: &figcraft_doc::Node) -> bool {
+ n.layout.as_ref().is_some_and(|layout| layout.mode == figcraft_doc::LayoutMode::Vertical)
+}
+
+/// Follow a vertical flow from top to bottom; elsewhere start at the top of the stacking order.
+fn panel_children(n: &figcraft_doc::Node) -> impl Iterator {
+ let mut children = n.children.iter();
+ let forward = vertical_flow(n);
+ std::iter::from_fn(move || if forward { children.next() } else { children.next_back() })
+}
+
fn collect(doc: &Document, id: NodeId, depth: usize, dimmed: bool, locked: bool, expanded: &BTreeSet, out: &mut Vec) {
let Some(n) = doc.node(id) else { return };
let dim_kids = !n.is_page() && hides_children(n, dimmed);
let lock_kids = locked || n.locked;
- // Layers panel lists top of the stack first.
- for c in n.children.iter().rev() {
+ for c in panel_children(n) {
let Some(cn) = doc.node(*c) else { continue };
let has_kids = !cn.children.is_empty() || matches!(cn.kind, NodeKind::BooleanOp { .. });
out.push(Row { id: *c, depth, has_kids, dimmed: dim_kids, locked_above: lock_kids });
@@ -631,10 +641,10 @@ fn collect(doc: &Document, id: NodeId, depth: usize, dimmed: bool, locked: bool,
}
}
-/// Layers whose name contains `q` (lowercase), top of the stack first, as a flat list.
+/// Layers whose name contains `q` (lowercase), in panel order as a flat list.
fn matching(doc: &Document, id: NodeId, q: &str, out: &mut Vec) {
let Some(n) = doc.node(id) else { return };
- for c in n.children.iter().rev() {
+ for c in panel_children(n) {
let Some(cn) = doc.node(*c) else { continue };
let name = if cn.name.is_empty() { cn.kind.label() } else { cn.name.as_str() };
if name.to_lowercase().contains(q) {
@@ -974,26 +984,29 @@ fn select_clicked(app: &mut FigApp, rows: &[Row], sel: &[NodeId], id: NodeId, m:
/// Drops `moving` on `target` (`zone`: 0 into it, -1 above, 1 below), unless Dev Mode refuses
/// (a drag started in the design can end after a switch to it).
-fn drop_layers(app: &mut FigApp, doc: &Document, moving: &[NodeId], target: NodeId, zone: i8) {
+fn drop_layers(app: &mut FigApp, doc: &Document, rows: &[Row], moving: &[NodeId], target: NodeId, zone: i8) {
if crate::menus::dev_mode_refuses(app, "node.reparent") {
return;
}
- let ids = moving.to_vec();
- match zone {
- 0 => {
- app.run("node.reparent", json!({"ids": ids, "parent": target}));
- }
- z => {
- // Above in the list = higher z = after the target among siblings.
- if let Some(parent) = doc.node(target).and_then(|n| n.parent) {
- let idx = doc.index_in_parent(target).unwrap_or(0);
- let gap = if z < 0 { idx + 1 } else { idx };
- // `index` is the final position: the dragged layers below the gap leave it.
- let below = doc.node(parent).map_or(0, |p| p.children.iter().take(gap).filter(|c| ids.contains(c)).count());
- app.run("node.reparent", json!({"ids": ids, "parent": parent, "index": gap - below}));
- }
- }
+ let parent = if zone == 0 { Some(target) } else { doc.node(target).and_then(|n| n.parent) };
+ let Some(parent) = parent.and_then(|id| doc.node(id)) else { return };
+ let forward = vertical_flow(parent);
+ let mut pending: BTreeSet<_> = moving.iter().copied().collect();
+ let index = (zone != 0).then(|| {
+ let idx = doc.index_in_parent(target).unwrap_or(0);
+ // Above means before the target in a vertical flow, after it in a stack.
+ let gap = if (zone < 0) != forward { idx + 1 } else { idx };
+ // `index` is the final position: the dragged layers below the gap leave it.
+ let below = parent.children.iter().take(gap).filter(|c| pending.contains(c)).count();
+ gap - below
+ });
+ // Keep the displayed order of the moved rows. A selection can include a layer outside
+ // the current list (for example, under a collapsed row); include it after the listed rows.
+ let mut ids: Vec<_> = rows.iter().map(|row| row.id).chain(moving.iter().copied()).filter(|id| pending.remove(id)).collect();
+ if !forward {
+ ids.reverse();
}
+ app.run("layers.reparent", json!({"ids": ids, "parent": parent.id, "index": index}));
}
/// The eye and padlock of a row: painted when hovered (`over`, false in Dev Mode) or set, and, outside
@@ -1402,7 +1415,7 @@ fn layers(app: &mut FigApp, ui: &mut Ui) {
d.remove::<(NodeId, f64)>(Id::unique("layer_drag_hold"));
});
if let (Some(_), Some((target, zone))) = (dragging, drop) {
- drop_layers(app, &doc, &moving, target, zone);
+ drop_layers(app, &doc, &rows, &moving, target, zone);
}
}
if let Ok(ds) = app.session.ds_mut() {
From ee1fad7a6dd9205b36003ccea010807c0cdebebe Mon Sep 17 00:00:00 2001
From: takasurazeem <2876680+takasurazeem@users.noreply.github.com>
Date: Mon, 23 Nov 2026 15:45:37 -0500
Subject: [PATCH 35/57] M3: a variant switch lays out stretched children like a
fresh instance
An instance switched to a variant of another size kept the old variant's
laid-out sizes on layers matched to a different variant's layers, then
auto layout applied the parent's resize on top of children that already
held the new main's sizes. keep_laid_out now keeps them only for a layer
that mirrored the same main layer.
Fixes #2585.
---
crates/engine/src/assets/components/sync.rs | 8 +++-
.../engine/src/components_behaviour_tests.rs | 47 +++++++++++++++++++
2 files changed, 54 insertions(+), 1 deletion(-)
diff --git a/crates/engine/src/assets/components/sync.rs b/crates/engine/src/assets/components/sync.rs
index b8c9bdf8d..9d96222a9 100644
--- a/crates/engine/src/assets/components/sync.rs
+++ b/crates/engine/src/assets/components/sync.rs
@@ -519,8 +519,14 @@ pub fn keep_text_overrides(doc: &mut Document, inst: NodeId) {
/// Where auto layout places and sizes a rebuilt copy `n` of main layer `orig`, keep the old
/// copy's `o` values (an instance's auto layout re-flows from its own content, so they usually
/// differ from the main's): unchanged layers then stay unchanged, and auto layout re-flows wherever
-/// something that sizes or places layers did change.
+/// something that sizes or places layers did change. Only when `o` mirrored `orig` itself: a layer
+/// matched to another variant's layer (or a new one) takes its geometry from it, so the re-flow
+/// starts from the new main's consistent state instead of re-applying the resize to children that
+/// already hold new-main sizes (which stretched them twice).
fn keep_laid_out(doc: &Document, orig: &Node, o: &Node, n: &mut Node) {
+ if o.source != Some(orig.id) {
+ return;
+ }
if o.parent != n.parent || o.overrides.contains("size") || o.overrides.contains("position") {
return;
}
diff --git a/crates/engine/src/components_behaviour_tests.rs b/crates/engine/src/components_behaviour_tests.rs
index e8dda9e95..29100be64 100644
--- a/crates/engine/src/components_behaviour_tests.rs
+++ b/crates/engine/src/components_behaviour_tests.rs
@@ -1417,3 +1417,50 @@ fn a_failing_create_set_leaves_no_components_behind() {
assert_eq!(snapshot(&s), before);
assert_eq!(s.selection(), selection);
}
+
+/// One variant of a tab bar: an auto layout root holding an "Inner" fill frame with an absolute
+/// stretched "BG" and `tabs` flow children. Returns the component.
+fn tabs_variant(s: &mut Session, name: &str, x: f64, root_w: f64, tabs: usize) -> NodeId {
+ let root = idv(&ex(s, "frame.create", json!({"x": x, "y": 0, "width": root_w, "height": 100, "name": name})));
+ ex(s, "node.set", json!({"id": root, "props": {"layout": "horizontal", "padding": 10, "mainAlign": "center"}}));
+ let inner_w = root_w - 20.0;
+ let inner = idv(&ex(s, "frame.create", json!({"x": 0, "y": 0, "width": inner_w, "height": 80, "parent": root, "name": "Inner"})));
+ ex(s, "node.set", json!({"id": inner, "props": {"layout": "horizontal", "sizingH": "fill", "sizingV": "fixed", "gap": 0, "padding": 0}}));
+ let bg = idv(&ex(s, "shape.rectangle", json!({"x": 0, "y": 0, "width": inner_w, "height": 80, "parent": inner, "props": {"name": "BG"}})));
+ ex(s, "node.set", json!({"id": bg, "props": {"absolute": true, "constraints": {"horizontal": "leftRight", "vertical": "topBottom"}}}));
+ for t in 0..tabs {
+ ex(s, "shape.rectangle", json!({"x": 0, "y": 0, "width": 60, "height": 80, "parent": inner, "props": {"name": format!("Tab{t}")}}));
+ }
+ idv(&ex(s, "component.create", json!({"ids": [root]})))
+}
+
+/// (root, inner, bg) widths and the bg's left edge of an instance of a [`tabs_variant`].
+fn tabs_geometry(s: &Session, inst: NodeId) -> (f64, f64, f64, f64) {
+ let inner = kids(s, inst).into_iter().find(|c| node(s, *c).name == "Inner").unwrap();
+ let bg = kids(s, inner).into_iter().find(|c| node(s, *c).name == "BG").unwrap();
+ let [.., x, _] = node(s, bg).transform.as_coeffs();
+ (node(s, inst).width, node(s, inner).width, node(s, bg).width, x)
+}
+
+#[test]
+fn switching_variants_re_lays_out_stretched_children_like_a_fresh_instance() {
+ let mut s = Session::new();
+ let narrow = tabs_variant(&mut s, "Tabs=2", 0.0, 200.0, 2);
+ let wide = tabs_variant(&mut s, "Tabs=4", 300.0, 400.0, 4);
+ let set = idv(&ex(&mut s, "component.combineVariants", json!({"ids": [narrow, wide]})));
+ let i = idv(&ex(&mut s, "instance.create", json!({"component": set, "x": 0, "y": 300})));
+ assert_eq!(component_of(&s, i), narrow, "the top-left variant is the default");
+ // Growing: switching to the wider variant lays out like an instance made from it directly.
+ ex(&mut s, "instance.setProperties", json!({"ids": [i], "properties": {"Tabs": "4"}}));
+ let direct = idv(&ex(&mut s, "instance.create", json!({"component": wide, "x": 500, "y": 300})));
+ assert_eq!(tabs_geometry(&s, i), tabs_geometry(&s, direct), "switched matches a fresh wide instance");
+ let (_, inner, bg, x) = tabs_geometry(&s, i);
+ assert_eq!((bg, x), (inner, 0.0), "the stretched background exactly fits its frame");
+ // Shrinking back: same, the other way.
+ ex(&mut s, "instance.setProperties", json!({"ids": [i], "properties": {"Tabs": "2"}}));
+ let direct = idv(&ex(&mut s, "instance.create", json!({"component": narrow, "x": 500, "y": 500})));
+ assert_eq!(tabs_geometry(&s, i), tabs_geometry(&s, direct), "switched matches a fresh narrow instance");
+ let (_, inner, bg, x) = tabs_geometry(&s, i);
+ assert_eq!((bg, x), (inner, 0.0), "the stretched background exactly fits its frame");
+ healthy(&s);
+}
From fe25e194d1807d67b7fdc63d9495c8b82bdfff72 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Mon, 23 Nov 2026 01:55:22 -0500
Subject: [PATCH 36/57] M7: Save as to another file names the tab after that
file
Save as kept the document's name unless it was Untitled or the old
file's own name (#935). A file opened from an import (.fig, .penpot,
.sketch) carries its source's name and has no file yet, so after Save as
to Other.figcraft its tab still showed the source's name; a file renamed
here did the same. The tab and the file on disk then disagree, and the
file can't be found by the name on its tab.
Saving to another file now always names the document after it, as a
desktop app's document window does. Saving to the same file keeps a name
given here, so a name a file name can't hold (with a colon, say) stays
until the next Save as.
Keeping a name chosen here across Save as (the #935 rule) was the
alternative; it is what left imported files with names no file has.
---
crates/engine/src/cmd/file/save.rs | 5 ++---
crates/engine/src/save_format_tests.rs | 16 +++++++++++++---
crates/ui-egui/src/save_as_tests.rs | 17 +++++++++++++----
docs/file-format-parity.md | 3 ++-
4 files changed, 30 insertions(+), 11 deletions(-)
diff --git a/crates/engine/src/cmd/file/save.rs b/crates/engine/src/cmd/file/save.rs
index 7cd01c2d2..8241ba875 100644
--- a/crates/engine/src/cmd/file/save.rs
+++ b/crates/engine/src/cmd/file/save.rs
@@ -173,7 +173,8 @@ fn wants_data(p: &Value) -> bool {
/// Save the file of the active tab (the main file for a branch tab, with its branches), or export
/// the active document as an experimental `.fig` copy without changing its native save state.
-/// Without a path the file comes back as base64 `data` for the caller to deliver (#969).
+/// Without a path the file comes back as base64 `data` for the caller to deliver (#969). Saved
+/// to another file, the document takes that file's name, as its tab does.
fn save_to(s: &mut Session, path: Option) -> Result {
if let Some(path) = path.as_deref().filter(|p| ext(p) == "fig") {
return export_fig(s, &json!({"path": path}));
@@ -185,9 +186,7 @@ fn save_to(s: &mut Session, path: Option) -> Result {
refuse_dropping_images(ds, path)?;
}
let mut snapshot = FileSnapshot::of(ds);
- let follows_path = ds.path.as_deref().map_or(ds.doc.name == "Untitled", |old| ds.doc.name == file_stem(old));
if let Some(path) = path.as_deref()
- && follows_path
&& ds.path.as_deref() != Some(path)
{
Arc::make_mut(&mut snapshot.doc).name = file_stem(path);
diff --git a/crates/engine/src/save_format_tests.rs b/crates/engine/src/save_format_tests.rs
index 37f22ce7c..b18d7753d 100644
--- a/crates/engine/src/save_format_tests.rs
+++ b/crates/engine/src/save_format_tests.rs
@@ -94,7 +94,7 @@ fn assert_save_state_unchanged(s: &Session, before: &DocState, recent: &[String]
}
#[test]
-fn first_native_save_uses_chosen_filename_for_an_untitled_document() {
+fn saving_to_another_file_names_the_document_after_it() {
let mut files = SaveFiles::new();
let path = files.path("Redis.figcraft");
let copy = files.path("Redis copy.figcraft");
@@ -111,9 +111,19 @@ fn first_native_save_uses_chosen_filename_for_an_untitled_document() {
s.execute("file.saveAs", &json!({"path": copy.to_string_lossy()})).unwrap();
assert_eq!(s.ds().unwrap().doc.name, "Redis copy");
- s.execute("file.rename", &json!({"name": "Chosen title"})).unwrap();
+ s.execute("file.rename", &json!({"name": "Chosen: title"})).unwrap();
+ s.execute("file.save", &json!({})).unwrap();
+ assert_eq!(s.ds().unwrap().doc.name, "Chosen: title", "saving to the same file keeps a name given here");
s.execute("file.saveAs", &json!({"path": manual_copy.to_string_lossy()})).unwrap();
- assert_eq!(s.ds().unwrap().doc.name, "Chosen title");
+ assert_eq!(s.ds().unwrap().doc.name, "Other", "a name given here too");
+ assert_eq!(figcraft_format::load_bytes(&std::fs::read(&manual_copy).unwrap()).unwrap().0.name, "Other");
+
+ // A file without one on disk yet: imported, here with its source's name.
+ let imported = files.path("Imported.figcraft");
+ let mut i = Session::new();
+ i.execute("file.rename", &json!({"name": "ШИМ"})).unwrap();
+ i.execute("file.saveAs", &json!({"path": imported.to_string_lossy()})).unwrap();
+ assert_eq!(i.ds().unwrap().doc.name, "Imported");
}
#[test]
diff --git a/crates/ui-egui/src/save_as_tests.rs b/crates/ui-egui/src/save_as_tests.rs
index 8817ab1c8..add2419d9 100644
--- a/crates/ui-egui/src/save_as_tests.rs
+++ b/crates/ui-egui/src/save_as_tests.rs
@@ -73,7 +73,12 @@ fn toast(app: &FigApp) -> &str {
}
fn expected_picker() -> Vec<(String, String, Vec)> {
- vec![("Save as".into(), "Prototype.figcraft".into(), vec!["figcraft".into(), "fig".into()])]
+ picker_named("Prototype")
+}
+
+/// The Save as picker suggesting `name` with the native extension.
+fn picker_named(name: &str) -> Vec<(String, String, Vec)> {
+ vec![("Save as".into(), format!("{name}.figcraft"), vec!["figcraft".into(), "fig".into()])]
}
#[test]
@@ -124,7 +129,8 @@ fn native_paths_and_an_extensionless_default_save_native_files_and_show_the_writ
let mut reopened = Session::empty();
reopened.execute("file.open", &json!({"path": path})).unwrap();
assert_eq!(reopened.doc().unwrap().nodes().count(), app.session.doc().unwrap().nodes().count());
- assert_eq!(reopened.doc().unwrap().name, "Prototype");
+ let stem = std::path::Path::new(written).file_stem().unwrap().to_str().unwrap();
+ assert_eq!(reopened.doc().unwrap().name, stem, "named after the file it was saved as");
}
}
@@ -261,16 +267,19 @@ fn saving_legacy_fig_paths_keeps_the_success_toast_and_original_source_bytes() {
let legacy_bytes = std::fs::read(&legacy).unwrap();
app.save();
app.poll_dialog(&egui::Context::default());
- assert_eq!(*picks.lock().unwrap(), expected_picker());
+ assert_eq!(*picks.lock().unwrap(), picker_named("original"), "named after the file it was saved as first");
assert_eq!(std::fs::read(&legacy).unwrap(), legacy_bytes);
assert!(target.is_file());
assert!(app.ui.last_error.is_none());
- assert_eq!(app.session.doc().unwrap(), &before);
if destination == "corrected.figcraft" {
+ let mut renamed = before.clone();
+ renamed.name = "corrected".into();
+ assert_eq!(app.session.doc().unwrap(), &renamed, "saved to another file: named after it");
assert_eq!(toast(&app), "Saved corrected.figcraft");
assert_eq!(app.session.ds().unwrap().path.as_deref(), target.to_str());
assert!(!app.session.ds().unwrap().is_dirty());
} else {
+ assert_eq!(app.session.doc().unwrap(), &before, "an export leaves the document alone");
assert_eq!(toast(&app), "Exported copy.fig");
assert_eq!(app.session.ds().unwrap().path.as_deref(), Some(legacy_path.as_str()));
assert!(app.session.ds().unwrap().is_dirty());
diff --git a/docs/file-format-parity.md b/docs/file-format-parity.md
index 8eac69eee..65a73c2ba 100644
--- a/docs/file-format-parity.md
+++ b/docs/file-format-parity.md
@@ -1,6 +1,6 @@
# File format parity
-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-20 · **Change:** minor (JPG exports keep full chroma resolution (4:4:4) again (#2521); SVG import's limits are craft-svg's since #2468: elements nest at most 256 levels deep, references followed, and its own byte scanners and budget module are gone; REST import no longer reports node-level `fills`, `strokes`, `effects` or `textRangeFills` bindings as skipped when each paint, stop or effect binds those variables itself (#2441); `.fig` export writes ruler guides (#2336); `.fig` export writes vector region paints (#2302); `.fig` export writes text on a path (#2323); `.jam` import: shapes with text come in as native board shapes (#1808); `.fig` export writes image adjustments (#2297); `.fig` import: a numbered list keeps its start only where it starts counting (#2273); `.fig` export writes a page's prototype background (#2326); `.fig` export writes list spacing, hanging punctuation and lists, and vertical trim (#2305); `.fig` import and export read and write a boolean group's corner radius and smoothing (#2222); `.jam` import: stickies come in as native board stickies (#1808); `.fig` import scales per-point vector corner radii with the row that supplies their network and keeps different instance scales separate in the network cache (#2097); `.fig` export preserves scaled-instance lengths reset to their unscaled main values, including nested linked-style overrides (#2097); `.fig` import: the layers of an instance scaled with the Scale tool draw at its scale factor, not at their main's lengths (#2091); a color profile per PNG, JPG and WebP export setting (Same as file, sRGB or Display P3), the pixels converted; a `.jam` connector end with an `AUTO` or `CENTER` magnet leaves the side facing the other end, not the side its stale saved point named (#1909); a FigJam elbow connector saved with its path (`connectorControlPoints`) keeps it on import, as a board connector reshaped by hand does, instead of being routed again (#1910); JPG exports take a quality, 1 to 100 with 90 the default, and embed the file's colour profile when it is sRGB too (#2004); a FigJam connector without a saved snapshot took no stroke and was invisible; its line's paint, weight, cap and dashes now come from the file's generated line record (#1807); a Dash cap setting (none, round or square) on Dash and Custom strokes, drawn on both ends of every dash; pasted layers whose image the clipboard lacks are named and show a placeholder that reads as missing (#1646); paint-style colours on layers pasted from another design app keep their style instead of turning black (#1638); imported and pasted text finds an installed family under the other names its fonts give it, and with other case and spacing (#1292); `.fig` export writes colour calculations as the colour they show in each mode and leaves out, with a warning, one that resolves to nothing (#1280); `.fig` import budgets four decoded values per compressed byte instead of one, still within 20M–128M, so dense files within that budget open instead of being refused as having too many values (#574); `.fig` ZIP image reads share a total byte budget and count skipped images in the import warnings (#1076); every file a command reads whole by path is a regular file within a cap that fits it: documents 16 GiB, placed images 256 MiB, CLI scripts 1 GiB; folders, devices and pipes are refused before anything is read (#1114); files nested 256 levels deep import on the browser's 1 MB stack (#1101); SVG and PDF exports count pattern sources and the renders they embed from the layer's depth, so one cap bounds a whole export (#1082); opening a `.figcraft` file unpacks at most 6 GiB in all (2 GiB in the browser), every area together (#1079); `.fig` instance expansion no longer walks variable nodes for every instance or copies every outer override row into each nested instance (#1077); a FigJam `.jam` file opens as a board (#1342); FigJam `.jam` files open like `.fig` files: File ▸ Open, drag and drop, `file.import` and the command line (#1342); SVG import reads `color()` and `color-mix()` colours, with a note and a grey for those it can't (#1550); SVG import draws each pattern tile once per scale, within the layer budget (#1080); a file's JPEG thumbnail can't crash the home screen (#1491's progressive JPEG check, now shared); `.fig` import: library text styles linked by asset key, and override rows restating a nested level (#1234); `.fig` import keeps the file's saved line breaks while the text and its box are unedited (#1236); Download a missing free font from the Missing fonts window (`font.download`, #754); offline Penpot 2.x import/export (#1143); `.sketch` import checked against Sketch's renders: master backgrounds, symbol clipping, tints before Sketch 64, mask opacity, bitmap fills, image overrides on shapes, stretching stacks, blur radii, colour adjustments, OKLab gradients, text growth, shape group borders (#1389); FigJam outer shape outlines and sticky body fallback beside author text (#1341, #1397); image member names are checked on read, and REST image placeholders get archive-safe keys (#1086); Android Vector Drawable (XML) export; `.fig` export: files the incumbent imports, with component set properties, and grid track sizes at its field ids; Save and auto-save don't replace changes another app made to the open file (#1330); `.sketch` import, best effort, Sketch 48 and newer; the PNG row names ignore overlapping layers and where include bounding box is offered; the Fonts table's missing-font row describes the Missing fonts window; `.figcraft` carries the file kind (boards); `.fig` import: resized instances and variable modes by asset key; atomic saves; auto-save; SVG export clip of nested frames; SVG/PDF export depth refusal (#208); `.fig` export: instance sizes, variables with modes, shared styles, variable-width strokes; `.fig` export: written files checked by opening them in other software; experimental `.fig` export; export and inspect behaviour suite and fixes; .fig import: editable vector networks and more layer kinds; embedded image colour profiles; `.fig` import, best effort; animated GIF fills and TIFF images; last major: created, formats from the installed Figma's Info.plist and help center, ours from source; REST import keeps slot layers and instances' slot content (#792); REST import reads grid track sizes (#465); `.fig` import fidelity from the community batches, budgets for large files, the import report, a `.fig` copy from Save as, paste from another design app; instance layers' size and resizing and Hug on import (#731, #732)) · **Target:** Figma Design (desktop app 126.10.7)
+> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-23 · **Change:** minor (saving to another file names the document and its tab after that file; JPG exports keep full chroma resolution (4:4:4) again (#2521); SVG import's limits are craft-svg's since #2468: elements nest at most 256 levels deep, references followed, and its own byte scanners and budget module are gone; REST import no longer reports node-level `fills`, `strokes`, `effects` or `textRangeFills` bindings as skipped when each paint, stop or effect binds those variables itself (#2441); `.fig` export writes ruler guides (#2336); `.fig` export writes vector region paints (#2302); `.fig` export writes text on a path (#2323); `.jam` import: shapes with text come in as native board shapes (#1808); `.fig` export writes image adjustments (#2297); `.fig` import: a numbered list keeps its start only where it starts counting (#2273); `.fig` export writes a page's prototype background (#2326); `.fig` export writes list spacing, hanging punctuation and lists, and vertical trim (#2305); `.fig` import and export read and write a boolean group's corner radius and smoothing (#2222); `.jam` import: stickies come in as native board stickies (#1808); `.fig` import scales per-point vector corner radii with the row that supplies their network and keeps different instance scales separate in the network cache (#2097); `.fig` export preserves scaled-instance lengths reset to their unscaled main values, including nested linked-style overrides (#2097); `.fig` import: the layers of an instance scaled with the Scale tool draw at its scale factor, not at their main's lengths (#2091); a color profile per PNG, JPG and WebP export setting (Same as file, sRGB or Display P3), the pixels converted; a `.jam` connector end with an `AUTO` or `CENTER` magnet leaves the side facing the other end, not the side its stale saved point named (#1909); a FigJam elbow connector saved with its path (`connectorControlPoints`) keeps it on import, as a board connector reshaped by hand does, instead of being routed again (#1910); JPG exports take a quality, 1 to 100 with 90 the default, and embed the file's colour profile when it is sRGB too (#2004); a FigJam connector without a saved snapshot took no stroke and was invisible; its line's paint, weight, cap and dashes now come from the file's generated line record (#1807); a Dash cap setting (none, round or square) on Dash and Custom strokes, drawn on both ends of every dash; pasted layers whose image the clipboard lacks are named and show a placeholder that reads as missing (#1646); paint-style colours on layers pasted from another design app keep their style instead of turning black (#1638); imported and pasted text finds an installed family under the other names its fonts give it, and with other case and spacing (#1292); `.fig` export writes colour calculations as the colour they show in each mode and leaves out, with a warning, one that resolves to nothing (#1280); `.fig` import budgets four decoded values per compressed byte instead of one, still within 20M–128M, so dense files within that budget open instead of being refused as having too many values (#574); `.fig` ZIP image reads share a total byte budget and count skipped images in the import warnings (#1076); every file a command reads whole by path is a regular file within a cap that fits it: documents 16 GiB, placed images 256 MiB, CLI scripts 1 GiB; folders, devices and pipes are refused before anything is read (#1114); files nested 256 levels deep import on the browser's 1 MB stack (#1101); SVG and PDF exports count pattern sources and the renders they embed from the layer's depth, so one cap bounds a whole export (#1082); opening a `.figcraft` file unpacks at most 6 GiB in all (2 GiB in the browser), every area together (#1079); `.fig` instance expansion no longer walks variable nodes for every instance or copies every outer override row into each nested instance (#1077); a FigJam `.jam` file opens as a board (#1342); FigJam `.jam` files open like `.fig` files: File ▸ Open, drag and drop, `file.import` and the command line (#1342); SVG import reads `color()` and `color-mix()` colours, with a note and a grey for those it can't (#1550); SVG import draws each pattern tile once per scale, within the layer budget (#1080); a file's JPEG thumbnail can't crash the home screen (#1491's progressive JPEG check, now shared); `.fig` import: library text styles linked by asset key, and override rows restating a nested level (#1234); `.fig` import keeps the file's saved line breaks while the text and its box are unedited (#1236); Download a missing free font from the Missing fonts window (`font.download`, #754); offline Penpot 2.x import/export (#1143); `.sketch` import checked against Sketch's renders: master backgrounds, symbol clipping, tints before Sketch 64, mask opacity, bitmap fills, image overrides on shapes, stretching stacks, blur radii, colour adjustments, OKLab gradients, text growth, shape group borders (#1389); FigJam outer shape outlines and sticky body fallback beside author text (#1341, #1397); image member names are checked on read, and REST image placeholders get archive-safe keys (#1086); Android Vector Drawable (XML) export; `.fig` export: files the incumbent imports, with component set properties, and grid track sizes at its field ids; Save and auto-save don't replace changes another app made to the open file (#1330); `.sketch` import, best effort, Sketch 48 and newer; the PNG row names ignore overlapping layers and where include bounding box is offered; the Fonts table's missing-font row describes the Missing fonts window; `.figcraft` carries the file kind (boards); `.fig` import: resized instances and variable modes by asset key; atomic saves; auto-save; SVG export clip of nested frames; SVG/PDF export depth refusal (#208); `.fig` export: instance sizes, variables with modes, shared styles, variable-width strokes; `.fig` export: written files checked by opening them in other software; experimental `.fig` export; export and inspect behaviour suite and fixes; .fig import: editable vector networks and more layer kinds; embedded image colour profiles; `.fig` import, best effort; animated GIF fills and TIFF images; last major: created, formats from the installed Figma's Info.plist and help center, ours from source; REST import keeps slot layers and instances' slot content (#792); REST import reads grid track sizes (#465); `.fig` import fidelity from the community batches, budgets for large files, the import report, a `.fig` copy from Save as, paste from another design app; instance layers' size and resizing and Hug on import (#731, #732)) · **Target:** Figma Design (desktop app 126.10.7)
Every format Figma reads or writes, with FigCraft's support. Sources: `Info.plist` of
`/Applications/Figma.app` (document types only; nothing inside the bundle's code was read), Figma's
@@ -195,6 +195,7 @@ scales and empty-style clears; they have not been checked in other software.
| Date | Change | Summary |
|---|---|---|
+| 2026-11-23 | patch | M7: Save as to another file left the tab showing the old name unless that name was Untitled or the old file's own name (#935). So a file opened from an import (`.fig`, `.penpot`, `.sketch`), which carries its source's name and has no file yet, kept that name after being saved as `Other.figcraft`, and so did a file renamed here. Now saving to another file always names the document, its tab and the saved file's stored name after the new file, as a desktop app's document window does. Saving to the same file keeps a name given here, so a name with characters a file name can't hold (`aa: design system`) stays until Save as. Test: `save_format_tests::saving_to_another_file_names_the_document_after_it`. |
| 2026-11-20 | patch | M6, #2501 follow-up: JPG export inherited 4:2:0 chroma subsampling from the `craft-image-codecs` defaults when #2501 moved it to the shared encoder, so fine colour detail blurred. It asks for 4:4:4 again, as before the cutover (#2521). Tests: `render::tests::jpeg_export_keeps_full_chroma`, and `export_formats_and_what_each_keeps` checks an 8 × 8 corner block clear of the ellipse. Numbers unchanged. |
| 2026-11-19 | patch | M6, #2468 follow-up: SVG import checks its input with craft-svg (`tree::parse`, `tree::image_resolver`), so FigCraft's own byte scanners (`too_wide`, `too_deep`, `nesting`) and `import/budget.rs` were dead code, and `main` failed `cargo fmt` and clippy. They are removed; the budget and hostile-input tests now run against craft-svg's `tree::Limits` (documents nest at most 256 levels deep, references followed, where FigCraft's scanner allowed 512). No behaviour change beyond #2468. |
| 2026-11-19 | patch | M6, #2441: REST import warned "variables bound to `fills` (`effects`, `textRangeFills`) are not supported and were skipped" for layers that lost nothing: those node-level lists repeat the variables each gradient stop, effect and paint binds itself, which are read. The warning now names such a list only when it holds a variable none of them bound, so the warnings left mean a real loss. Test: `rest::proto_variable_tests::node_level_lists_the_paints_and_effects_bind_are_not_reported`. Numbers unchanged. |
From c324c02977d609c62ff83a6b064bbbd304063e0f Mon Sep 17 00:00:00 2001
From: supersfera
Date: Tue, 24 Nov 2026 07:10:15 -0800
Subject: [PATCH 37/57] ru: state CC0-1.0 for Russian metainfo strings
---
packaging/linux/ai.storyteller.figcraft.metainfo.xml.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/packaging/linux/ai.storyteller.figcraft.metainfo.xml.in b/packaging/linux/ai.storyteller.figcraft.metainfo.xml.in
index de935fc85..1c4391230 100644
--- a/packaging/linux/ai.storyteller.figcraft.metainfo.xml.in
+++ b/packaging/linux/ai.storyteller.figcraft.metainfo.xml.in
@@ -1,4 +1,5 @@
+
From 7ce0e374a172b483111257781ce0051f0a5d38f1 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Tue, 24 Nov 2026 14:22:35 -0500
Subject: [PATCH 38/57] M3: the pixel grid shows on dark as well as on white
The grid was black at 7%, a stroke of one point: it showed on white and
hardly at all on the dark canvas or a dark fill, and on a 2x screen its
lines were two pixels wide. Figma's grid reads 242 on white and 78 on a
grey of 50 (measured 2026-11-24), which a grey of 190 at 20% gives, so
it darkens light colours and lightens dark ones.
The lines are now that grey, one screen pixel wide and centred on the
screen's pixels.
---
crates/ui-egui/src/canvas.rs | 2 +-
crates/ui-egui/src/canvas/overlays.rs | 15 ++++---
crates/ui-egui/src/lib.rs | 2 +
crates/ui-egui/src/pixel_grid_tests.rs | 54 ++++++++++++++++++++++++++
docs/ui-parity.md | 3 +-
5 files changed, 69 insertions(+), 7 deletions(-)
create mode 100644 crates/ui-egui/src/pixel_grid_tests.rs
diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs
index 3d3f05082..068ea3ef6 100644
--- a/crates/ui-egui/src/canvas.rs
+++ b/crates/ui-egui/src/canvas.rs
@@ -19,7 +19,7 @@ mod background;
mod builder;
mod input;
mod outline;
-mod overlays;
+pub(crate) mod overlays;
mod render;
mod rulers;
diff --git a/crates/ui-egui/src/canvas/overlays.rs b/crates/ui-egui/src/canvas/overlays.rs
index b285d8792..fdb4267b2 100644
--- a/crates/ui-egui/src/canvas/overlays.rs
+++ b/crates/ui-egui/src/canvas/overlays.rs
@@ -171,22 +171,27 @@ pub(super) fn overlays(app: &FigApp, painter: &egui::Painter, t: &Tokens) -> Vec
labels
}
+/// The pixel grid's lines: one screen pixel wide, a light grey at a fifth of its strength, so
+/// they darken white and lighten a dark canvas or fill alike. Measured in Figma (2026-11-24):
+/// 242 on white and 78 on a grey of 50, which this grey gives.
+pub(crate) const PIXEL_GRID: Color32 = Color32::from_rgba_unmultiplied_const(190, 190, 190, 51);
+
/// Pixel grid at high zoom.
fn pixel_grid(app: &FigApp, painter: &egui::Painter) {
let r = app.canvas.rect;
let p0 = app.to_page(r.min);
let p1 = app.to_page(r.max);
- let col = Color32::from_black_alpha(18);
+ let line = stroke(PIXEL_GRID, 1.0 / painter.pixels_per_point());
let mut x = p0.x.floor();
while x <= p1.x {
- let s = app.to_screen(x, 0.0).x;
- painter.line_segment([pos2(s, r.min.y), pos2(s, r.max.y)], stroke(col, 1.0));
+ let s = painter.round_to_pixel_center(app.to_screen(x, 0.0).x);
+ painter.line_segment([pos2(s, r.min.y), pos2(s, r.max.y)], line);
x += 1.0;
}
let mut y = p0.y.floor();
while y <= p1.y {
- let s = app.to_screen(0.0, y).y;
- painter.line_segment([pos2(r.min.x, s), pos2(r.max.x, s)], stroke(col, 1.0));
+ let s = painter.round_to_pixel_center(app.to_screen(0.0, y).y);
+ painter.line_segment([pos2(r.min.x, s), pos2(r.max.x, s)], line);
y += 1.0;
}
}
diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs
index 32d859f6c..75264829b 100644
--- a/crates/ui-egui/src/lib.rs
+++ b/crates/ui-egui/src/lib.rs
@@ -225,6 +225,8 @@ mod pen_mode_tests;
#[cfg(test)]
mod perf_tests;
#[cfg(test)]
+mod pixel_grid_tests;
+#[cfg(test)]
mod plugin_panel_tests;
#[cfg(test)]
mod plugin_save_ui_tests;
diff --git a/crates/ui-egui/src/pixel_grid_tests.rs b/crates/ui-egui/src/pixel_grid_tests.rs
new file mode 100644
index 000000000..fbf1c3003
--- /dev/null
+++ b/crates/ui-egui/src/pixel_grid_tests.rs
@@ -0,0 +1,54 @@
+//! The pixel grid, drawn headless: from 400% its lines are one screen pixel wide and a grey that
+//! shows on a white frame and on the dark canvas alike, as in Figma.
+
+use egui::{Color32, RawInput, Shape, ViewportId, ViewportInfo};
+use figcraft_engine::Session;
+use serde_json::json;
+
+use crate::canvas::overlays::PIXEL_GRID;
+use crate::layers_drag_tests::Ui;
+use crate::live_tests::flat;
+
+/// The width of each grid line drawn in a frame on a screen of `native` pixels per point (the
+/// last of a few, for a new scale to take effect).
+fn grid_lines(u: &mut Ui, native: f32) -> Vec {
+ let mut out = None;
+ for _ in 0..4 {
+ let mut raw = RawInput::default();
+ raw.viewports.insert(ViewportId::ROOT, ViewportInfo { native_pixels_per_point: Some(native), ..Default::default() });
+ out = Some(u.frame_raw(raw));
+ }
+ let shapes = flat(&out.map(|o| o.shapes).unwrap_or_default());
+ shapes
+ .iter()
+ .filter_map(|s| match s {
+ Shape::LineSegment { stroke, .. } if stroke.color == PIXEL_GRID => Some(stroke.width),
+ _ => None,
+ })
+ .collect()
+}
+
+/// `c` drawn over a grey of `bg`, as the canvas blends it.
+fn over(c: Color32, bg: u8) -> f32 {
+ let [r, _, _, a] = c.to_srgba_unmultiplied();
+ let a = f32::from(a) / 255.0;
+ f32::from(bg) * (1.0 - a) + f32::from(r) * a
+}
+
+#[test]
+fn the_pixel_grid_shows_on_white_and_on_dark_one_screen_pixel_wide() {
+ let mut s = Session::new();
+ s.execute("frame.create", &json!({"x": 0, "y": 0, "width": 100, "height": 100})).unwrap();
+ let mut u = Ui::new(s);
+ u.app.session.ds_mut().unwrap().view.zoom = 8.0;
+ let widths = grid_lines(&mut u, 1.0);
+ assert!(!widths.is_empty(), "the grid draws at 800%");
+ assert!(widths.iter().all(|w| *w == 1.0), "one screen pixel: {widths:?}");
+ // Measured in Figma (2026-11-24): a grid line is 242 on white and 78 on a grey of 50.
+ assert_eq!((over(PIXEL_GRID, 255).round(), over(PIXEL_GRID, 50).round()), (242.0, 78.0));
+ // On a 2x screen the lines stay one of its pixels wide.
+ let widths = grid_lines(&mut u, 2.0);
+ assert!(!widths.is_empty() && widths.iter().all(|w| *w == 0.5), "{widths:?}");
+ u.app.session.ds_mut().unwrap().view.zoom = 3.0;
+ assert!(grid_lines(&mut u, 2.0).is_empty(), "no grid below 400%");
+}
diff --git a/docs/ui-parity.md b/docs/ui-parity.md
index d756e71b0..ca046ec2e 100644
--- a/docs/ui-parity.md
+++ b/docs/ui-parity.md
@@ -1,6 +1,6 @@
# UI and interaction parity
-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (Type settings ▸ Details ▸ Position sets the selected text layers to superscript or subscript, or neither (#2338); Shift with the Pencil, Marker or Highlighter draws one straight segment from where the stroke started, at the nearest 45° step, as the Line tool and the Pen do (#2447); the Design panel's header names a selected component or component set, after its icon, instead of only its type (#2347); dragging near the canvas edge pans the view toward it, as measured in Figma: 40 px/s for each px within about 15 px of the edge, 600 px/s at it, for moving layers, the selection box, drawing and prototype connections (#2015); M8: a Shift-click range in the Layers panel across parents keeps a frame and not its covered children, measured in Figma's web app on 2026-11-12; points align and distribute in vector edit mode as in Figma: the six Align commands, the keys Alt+A/H/D/W/V/S, and Distribute horizontal and vertical spacing act on the selected points, each moving along one axis to their box's edge or centre line, spaced evenly between the outermost for distribute, with the alignment row first in the Design panel (#2109); going back to a page shows it where it was left, not fitted again; Duplicate repeats the last copy's move and its rotation (about the copy's centre, or the selection's centre for several layers), not its size, and forgets the step when the selection changes, measured in Figma's web app on 2026-11-12 (#2293); M8: a double-click on a layer's icon zooms to it instead of renaming, measured in Figma's web app on 2026-11-12; Tidy up keeps the order and sizes and evens the gaps, as measured in Figma's web app on 2026-11-12, rounds the gap half up, tidies overlapping rows and packs a grid along its longer axis, and is greyed out for fewer than three layers, a diagonal and an irregular layout (M8); after Crop is chosen in the image fill's colour picker, a drag on the image crops it instead of moving the layer, and no internal gesture message shows (#2307); Align is disabled for a layer in an auto layout frame's flow, as measured in Figma's web app on 2026-11-12, with a tip saying the frame places it; Select layer lists locked layers with a padlock and selects them, and shows only with more than one layer under the pointer (#1560); M8: Scale tool handle drags pivot on the opposite handle whatever the origin, and the origin starts at the centre (measured in Figma's web app, 2026-11-09); M8: a selected polygon or star has a Count handle on the canvas, on its first point clockwise from the top; Zoom to selection leaves a 40 pt margin and clears the bottom toolbar, measured in Figma's web app; M1: Paste over selection puts the pasted layers just above the selected layer; drag modifiers compared in Figma's web app (2026-11-08): Shift locks a move to the dominant axis, Alt copies, Shift keeps a resize's ratio, Alt keeps its centre, all read afresh on every move, and FigCraft matches (Ctrl/Cmd not measurable); a mirror mode (angle, or angle and length) on a sharp point turns it smooth, as in Figma (#2110); M8: Tab while renaming the last layer wraps to the first row, measured in Figma's web app on 2026-11-12; the text caret takes the text's solid fill colour (#2156); the Rotation field shows and sets the rotation on the page, in frames and groups, through node.set absoluteRotation (#2196); the eyedropper picks a magnified image's pixel under the pointer, not a blend with its neighbours (#2189); Selection colors shows from one distinct colour when a selected layer has children, and from two otherwise, measured in Figma's web app on 2026-11-09 on a frame, a group and plain rectangles; the crosshair of the shape and Text tools is drawn dark with a white edge, so it shows on a white frame whatever the system's pointer style (#2198); a boolean group takes a corner radius (and smoothing) that rounds every sharp corner of its result (#2222); the Point section's X and Y in vector edit mode show Mixed and set every selected point of the layer being edited, as in Figma; Preferences ▸ Invert zoom direction reverses wheel zoom, pinch unchanged (#2145); Shift while rotating lands on absolute multiples of 15°, measured in Figma; Flatten bakes a vector's point corner radius into its path (#2195); a click on a fill, stroke or effect row's grip or background highlights it, Cmd/Ctrl+C copies that paint or effect and Cmd/Ctrl+V pastes it onto the selected layers, as the help center's Copy and paste properties between layers says (#1494); wrap style per paragraph and in text styles (#1827); the Annotation tool (Shift+T, `tool.annotation {id?}`): with a layer selected (or an `id`) it asks the UI for that layer's note at once, and in the tool a press on a layer selects it and asks for its note, a press on empty canvas does nothing; the marquee follows Figma's measured rules: a partly covered frame or section gives the layers in it the marquee touches, a rotated shape is touched by its outline, a drag from inside a frame selects that frame only when the marquee also takes another top-level frame (then whole) (`marquee_behaviour_tests`); copy, cut and paste in vector edit mode act on the selected points and segments (#1875); M8, #2146: K focuses the Scale tool's factor field with its text selected, so K, 2, Enter scales the selection by two about the panel's origin (FigCraft's starts at the top left; Figma's grid starts at the centre, left for a follow-up because the origin also sets where a handle drag pivots, which is not measured) in one undo step, after which the tool returns to Move with the selection kept; Escape in the field closes it with the tool back on Move and nothing changed (measured in Figma's web app, 2026-11-09; `pressing_k_focuses_the_scale_field_with_its_text_selected`, `k_two_enter_scales_the_selection_by_two`, `escape_in_the_scale_field_closes_it_and_changes_nothing`); the main menu and its submenus stay inside the window, moving up to fit and scrolling when taller (#2217); locked layers ignore the arrow keys and a locked parent's children can't be locked on their own (#1560); the left rail's and tab strip's icons are larger, 20 pt (#553); pick select: Tab while the keyboard selection box shows (or the chord again) puts a pink outline on a layer and the keys walk the layer tree from it, as Accessibility at Figma says (#1836); scrubbing a field faster or slower by the pointer's height, with a notice of the speed, as the help center's Scrub fields says (#1837); component rows in the Layers panel at AA contrast in the theme's component tint, with the rows inside a selected component in a tone of its row (#1903); Cmd/Ctrl-click on a padding field sets all four sides with the value typed, a documented auto layout shortcut; a fill per region of a vector: with regions selected in edit mode, the Fill section and the fill commands edit those regions' own fills, as Edit vector layers says (#1875); the Fill section of a text whose characters were coloured differently while editing shows mixed content, characters that all share fills the layer doesn't have show those, and a layer-level fill edit reaches every character (#1856); a number field scrubs when dragged with Alt held, as the help center's scrub section says, not only by its label; reuse visible layer selection roots (M8); ; with a shape or frame tool chosen and nothing selected, the arrows show a placement crosshair in the middle of the view and move it, and Enter places there, as Accessibility at Figma says (#1839); text direction per paragraph: Text ▸ Text direction forces a paragraph left to right or right to left, as Add right-to-left text says (#1830), with `text.direction`, `node.set textDirection`, the Type settings control once a right-to-left script is in the text, inspect, the CSS `direction` and the `.fig` lines' `sourceDirectionality`; the boolean operation menu in the Design panel leads each entry with an original icon drawn in code, a filled preview of the result (#2003); a press on the open gradient's handles or stops on the canvas keeps the colour picker open through the drag, as its own control (#1852); a click with the Bend tool on a sharp point curves it, its handles along the line between its neighbours, as Edit vector layers says (#1875); wrap style: Auto, Balance and Pretty on a text layer decide where its lines break, as Explore text properties says (#1827), with the Type settings control, `text.wrapStyle`, `node.set wrapStyle`, inspect and the CSS `text-wrap`; Backspace or Delete at the start of a list item keeps the item's indentation level, as the lists article says; max lines on auto-width text keep it auto width, hugging that many lines, as the text properties article says; superscript and subscript are synthesised where the font has no glyphs for them, from the standard glyphs shrunk and shifted by the font's OS/2 metrics, and a run mixing available and unavailable glyphs is synthesised whole, as Explore text properties says (#1828); Alt+Enter while editing text opens the link at the caret, as the accessibility page documents; Minimize, by its shortcut or the button by the file name, collapses the navigation bar and both sidebars as the help center says, with the right sidebar back while something is selected (#1835); the interface size keys of the help center's accessibility page: Cmd/Ctrl+Shift+Alt with =, - and 0 step the interface through the Preferences sizes and back to the system's size; Cmd/Ctrl+Alt+arrows rotate the selection a degree at a time, 15 with Shift, as the help center's accessibility page says; they resized before; the Layers panel answers Ctrl+1 as well as Alt+1 on Windows and Linux, the two keys the help center gives it; the colour picker's Image tab shows a placeholder and Upload from computer, an asset preview, and a file dropped on it replaces the image, keeping the fill mode, crop and position (#1682); the keyboard's Menu key opens the context menu, as Shift+F10 does; the eyedropper with Cmd/Ctrl+Shift makes a colour style or variable of what it picks; sidebar number and text fields keep their text vertically centered when focused, including typography spacing; with the pen out, Enter or a double-click ends the path and edits the vector with the Move tool instead of drawing on (#1430); the Actions palette offers only commands that run from it, and no second row reading like a menu item: Place image opens the file dialog (#1574); Preferences ▸ Scroll wheel zoom: a mouse wheel zooms the canvas about the pointer and Cmd/Ctrl+wheel scrolls (#1390); boolean operations refuse input past their caps, and a boolean group past them draws without its result (#1104); the selection and hover outlines of rounded rectangles and frames follow their corners (#1506); colour picker review fixes for text undo, fitted sidebars, moving controls and gradient variables; Corner smoothing: an original icon and the shared number-field drag gesture, preserving fractional baselines; guides snap to layers when dragged; Crop image: Object ▸ Crop image, the right-click menu and the image fill row enter crop mode (`image.crop`, #1464); the Design panel's sections on one grid — 16 / 8 margins, 88 + 8 + 88 + 8 + 24 columns, 24 pt rows, 4 pt between a row's buttons (#858); the toolbar on one 32 pt grid, without its Resources button (#1210); colour picker LCH and OKLCH models; an XML (Android Vector Drawable) export format; Context menus: the Menu key reaches egui 0.37 but is unbound (row done → partial); the Text on a path tool; board tool keys pinned; community fixes: the text box by dragging, the font picker keys, the pen path on leaving Design, a still canvas in vector edit mode, a scrolling pages list, colour emoji, readable new text in frames, system theme on first run; the Small caps sample in Type settings drawn from capitals; recent files as cards; vector edit mode: hovering, hatching, selecting and dragging filled regions; home screen: Templates tab, first-run templates and Getting started tips; number fields: scrub rates, arrow steps, arithmetic with brackets, relative edits of mixed values; outline mode's hidden layers and object bounds; Hide when publishing; cursors per tool and modifier; panel widths; dark pages for files made in the dark theme; drag threshold and double-clicks into text in groups; rotation origin on Alt+R and placing with Enter: no documented shortcut missing; keyboard shortcut parity suite and bindings; cursor chat and spotlight in live sessions; layers and assets panels behaviour suite and fixes; vector multi-edit and the vector edit tail; canvas navigation, guides and grids behaviour suite and fixes; shapes and vector behaviour suite and fixes; paint and effects behaviour suite and fixes; frames, groups, sections and masks behaviour suite and fixes; layers panel keyboard: F2 rename, Shift+F10 context menu, F8 box selection; selection and transform behaviour suite and fixes; Display P3: gamut warning and soft-proof (true P3 blocked upstream); several windows; boolean hit testing on the result, group drags, frame outlines and slices; outlines for the selection, mask outlines; arc fields, live boolean editing, shape builder on strokes, one-sided widths; fields select their text on focus; Typography spacing icons support scrubbing (#373); CSS colour names in hex fields; a rename selects the whole name, so typing replaces it; Escape or Enter after a pen path stays on the same vector (#760); IME composition kept on through idle frames of a text edit, candidates at the caret (#747); Selection colors for mixed selections and smart-selection spacing (#753); submenus with a hover delay and a safe triangle; the Actions palette's tabs, ranked search, highlight and recents; menu items that ask for a value; editor fixes from the community batches) · **Target:** Figma Design UI3 (desktop app 126.10.7)
+> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-24 · **Change:** minor (the pixel grid shows on a dark canvas and dark fills as well as on white, its lines one screen pixel wide in a light grey at a fifth of its strength, as measured in Figma; Type settings ▸ Details ▸ Position sets the selected text layers to superscript or subscript, or neither (#2338); Shift with the Pencil, Marker or Highlighter draws one straight segment from where the stroke started, at the nearest 45° step, as the Line tool and the Pen do (#2447); the Design panel's header names a selected component or component set, after its icon, instead of only its type (#2347); dragging near the canvas edge pans the view toward it, as measured in Figma: 40 px/s for each px within about 15 px of the edge, 600 px/s at it, for moving layers, the selection box, drawing and prototype connections (#2015); M8: a Shift-click range in the Layers panel across parents keeps a frame and not its covered children, measured in Figma's web app on 2026-11-12; points align and distribute in vector edit mode as in Figma: the six Align commands, the keys Alt+A/H/D/W/V/S, and Distribute horizontal and vertical spacing act on the selected points, each moving along one axis to their box's edge or centre line, spaced evenly between the outermost for distribute, with the alignment row first in the Design panel (#2109); going back to a page shows it where it was left, not fitted again; Duplicate repeats the last copy's move and its rotation (about the copy's centre, or the selection's centre for several layers), not its size, and forgets the step when the selection changes, measured in Figma's web app on 2026-11-12 (#2293); M8: a double-click on a layer's icon zooms to it instead of renaming, measured in Figma's web app on 2026-11-12; Tidy up keeps the order and sizes and evens the gaps, as measured in Figma's web app on 2026-11-12, rounds the gap half up, tidies overlapping rows and packs a grid along its longer axis, and is greyed out for fewer than three layers, a diagonal and an irregular layout (M8); after Crop is chosen in the image fill's colour picker, a drag on the image crops it instead of moving the layer, and no internal gesture message shows (#2307); Align is disabled for a layer in an auto layout frame's flow, as measured in Figma's web app on 2026-11-12, with a tip saying the frame places it; Select layer lists locked layers with a padlock and selects them, and shows only with more than one layer under the pointer (#1560); M8: Scale tool handle drags pivot on the opposite handle whatever the origin, and the origin starts at the centre (measured in Figma's web app, 2026-11-09); M8: a selected polygon or star has a Count handle on the canvas, on its first point clockwise from the top; Zoom to selection leaves a 40 pt margin and clears the bottom toolbar, measured in Figma's web app; M1: Paste over selection puts the pasted layers just above the selected layer; drag modifiers compared in Figma's web app (2026-11-08): Shift locks a move to the dominant axis, Alt copies, Shift keeps a resize's ratio, Alt keeps its centre, all read afresh on every move, and FigCraft matches (Ctrl/Cmd not measurable); a mirror mode (angle, or angle and length) on a sharp point turns it smooth, as in Figma (#2110); M8: Tab while renaming the last layer wraps to the first row, measured in Figma's web app on 2026-11-12; the text caret takes the text's solid fill colour (#2156); the Rotation field shows and sets the rotation on the page, in frames and groups, through node.set absoluteRotation (#2196); the eyedropper picks a magnified image's pixel under the pointer, not a blend with its neighbours (#2189); Selection colors shows from one distinct colour when a selected layer has children, and from two otherwise, measured in Figma's web app on 2026-11-09 on a frame, a group and plain rectangles; the crosshair of the shape and Text tools is drawn dark with a white edge, so it shows on a white frame whatever the system's pointer style (#2198); a boolean group takes a corner radius (and smoothing) that rounds every sharp corner of its result (#2222); the Point section's X and Y in vector edit mode show Mixed and set every selected point of the layer being edited, as in Figma; Preferences ▸ Invert zoom direction reverses wheel zoom, pinch unchanged (#2145); Shift while rotating lands on absolute multiples of 15°, measured in Figma; Flatten bakes a vector's point corner radius into its path (#2195); a click on a fill, stroke or effect row's grip or background highlights it, Cmd/Ctrl+C copies that paint or effect and Cmd/Ctrl+V pastes it onto the selected layers, as the help center's Copy and paste properties between layers says (#1494); wrap style per paragraph and in text styles (#1827); the Annotation tool (Shift+T, `tool.annotation {id?}`): with a layer selected (or an `id`) it asks the UI for that layer's note at once, and in the tool a press on a layer selects it and asks for its note, a press on empty canvas does nothing; the marquee follows Figma's measured rules: a partly covered frame or section gives the layers in it the marquee touches, a rotated shape is touched by its outline, a drag from inside a frame selects that frame only when the marquee also takes another top-level frame (then whole) (`marquee_behaviour_tests`); copy, cut and paste in vector edit mode act on the selected points and segments (#1875); M8, #2146: K focuses the Scale tool's factor field with its text selected, so K, 2, Enter scales the selection by two about the panel's origin (FigCraft's starts at the top left; Figma's grid starts at the centre, left for a follow-up because the origin also sets where a handle drag pivots, which is not measured) in one undo step, after which the tool returns to Move with the selection kept; Escape in the field closes it with the tool back on Move and nothing changed (measured in Figma's web app, 2026-11-09; `pressing_k_focuses_the_scale_field_with_its_text_selected`, `k_two_enter_scales_the_selection_by_two`, `escape_in_the_scale_field_closes_it_and_changes_nothing`); the main menu and its submenus stay inside the window, moving up to fit and scrolling when taller (#2217); locked layers ignore the arrow keys and a locked parent's children can't be locked on their own (#1560); the left rail's and tab strip's icons are larger, 20 pt (#553); pick select: Tab while the keyboard selection box shows (or the chord again) puts a pink outline on a layer and the keys walk the layer tree from it, as Accessibility at Figma says (#1836); scrubbing a field faster or slower by the pointer's height, with a notice of the speed, as the help center's Scrub fields says (#1837); component rows in the Layers panel at AA contrast in the theme's component tint, with the rows inside a selected component in a tone of its row (#1903); Cmd/Ctrl-click on a padding field sets all four sides with the value typed, a documented auto layout shortcut; a fill per region of a vector: with regions selected in edit mode, the Fill section and the fill commands edit those regions' own fills, as Edit vector layers says (#1875); the Fill section of a text whose characters were coloured differently while editing shows mixed content, characters that all share fills the layer doesn't have show those, and a layer-level fill edit reaches every character (#1856); a number field scrubs when dragged with Alt held, as the help center's scrub section says, not only by its label; reuse visible layer selection roots (M8); ; with a shape or frame tool chosen and nothing selected, the arrows show a placement crosshair in the middle of the view and move it, and Enter places there, as Accessibility at Figma says (#1839); text direction per paragraph: Text ▸ Text direction forces a paragraph left to right or right to left, as Add right-to-left text says (#1830), with `text.direction`, `node.set textDirection`, the Type settings control once a right-to-left script is in the text, inspect, the CSS `direction` and the `.fig` lines' `sourceDirectionality`; the boolean operation menu in the Design panel leads each entry with an original icon drawn in code, a filled preview of the result (#2003); a press on the open gradient's handles or stops on the canvas keeps the colour picker open through the drag, as its own control (#1852); a click with the Bend tool on a sharp point curves it, its handles along the line between its neighbours, as Edit vector layers says (#1875); wrap style: Auto, Balance and Pretty on a text layer decide where its lines break, as Explore text properties says (#1827), with the Type settings control, `text.wrapStyle`, `node.set wrapStyle`, inspect and the CSS `text-wrap`; Backspace or Delete at the start of a list item keeps the item's indentation level, as the lists article says; max lines on auto-width text keep it auto width, hugging that many lines, as the text properties article says; superscript and subscript are synthesised where the font has no glyphs for them, from the standard glyphs shrunk and shifted by the font's OS/2 metrics, and a run mixing available and unavailable glyphs is synthesised whole, as Explore text properties says (#1828); Alt+Enter while editing text opens the link at the caret, as the accessibility page documents; Minimize, by its shortcut or the button by the file name, collapses the navigation bar and both sidebars as the help center says, with the right sidebar back while something is selected (#1835); the interface size keys of the help center's accessibility page: Cmd/Ctrl+Shift+Alt with =, - and 0 step the interface through the Preferences sizes and back to the system's size; Cmd/Ctrl+Alt+arrows rotate the selection a degree at a time, 15 with Shift, as the help center's accessibility page says; they resized before; the Layers panel answers Ctrl+1 as well as Alt+1 on Windows and Linux, the two keys the help center gives it; the colour picker's Image tab shows a placeholder and Upload from computer, an asset preview, and a file dropped on it replaces the image, keeping the fill mode, crop and position (#1682); the keyboard's Menu key opens the context menu, as Shift+F10 does; the eyedropper with Cmd/Ctrl+Shift makes a colour style or variable of what it picks; sidebar number and text fields keep their text vertically centered when focused, including typography spacing; with the pen out, Enter or a double-click ends the path and edits the vector with the Move tool instead of drawing on (#1430); the Actions palette offers only commands that run from it, and no second row reading like a menu item: Place image opens the file dialog (#1574); Preferences ▸ Scroll wheel zoom: a mouse wheel zooms the canvas about the pointer and Cmd/Ctrl+wheel scrolls (#1390); boolean operations refuse input past their caps, and a boolean group past them draws without its result (#1104); the selection and hover outlines of rounded rectangles and frames follow their corners (#1506); colour picker review fixes for text undo, fitted sidebars, moving controls and gradient variables; Corner smoothing: an original icon and the shared number-field drag gesture, preserving fractional baselines; guides snap to layers when dragged; Crop image: Object ▸ Crop image, the right-click menu and the image fill row enter crop mode (`image.crop`, #1464); the Design panel's sections on one grid — 16 / 8 margins, 88 + 8 + 88 + 8 + 24 columns, 24 pt rows, 4 pt between a row's buttons (#858); the toolbar on one 32 pt grid, without its Resources button (#1210); colour picker LCH and OKLCH models; an XML (Android Vector Drawable) export format; Context menus: the Menu key reaches egui 0.37 but is unbound (row done → partial); the Text on a path tool; board tool keys pinned; community fixes: the text box by dragging, the font picker keys, the pen path on leaving Design, a still canvas in vector edit mode, a scrolling pages list, colour emoji, readable new text in frames, system theme on first run; the Small caps sample in Type settings drawn from capitals; recent files as cards; vector edit mode: hovering, hatching, selecting and dragging filled regions; home screen: Templates tab, first-run templates and Getting started tips; number fields: scrub rates, arrow steps, arithmetic with brackets, relative edits of mixed values; outline mode's hidden layers and object bounds; Hide when publishing; cursors per tool and modifier; panel widths; dark pages for files made in the dark theme; drag threshold and double-clicks into text in groups; rotation origin on Alt+R and placing with Enter: no documented shortcut missing; keyboard shortcut parity suite and bindings; cursor chat and spotlight in live sessions; layers and assets panels behaviour suite and fixes; vector multi-edit and the vector edit tail; canvas navigation, guides and grids behaviour suite and fixes; shapes and vector behaviour suite and fixes; paint and effects behaviour suite and fixes; frames, groups, sections and masks behaviour suite and fixes; layers panel keyboard: F2 rename, Shift+F10 context menu, F8 box selection; selection and transform behaviour suite and fixes; Display P3: gamut warning and soft-proof (true P3 blocked upstream); several windows; boolean hit testing on the result, group drags, frame outlines and slices; outlines for the selection, mask outlines; arc fields, live boolean editing, shape builder on strokes, one-sided widths; fields select their text on focus; Typography spacing icons support scrubbing (#373); CSS colour names in hex fields; a rename selects the whole name, so typing replaces it; Escape or Enter after a pen path stays on the same vector (#760); IME composition kept on through idle frames of a text edit, candidates at the caret (#747); Selection colors for mixed selections and smart-selection spacing (#753); submenus with a hover delay and a safe triangle; the Actions palette's tabs, ranked search, highlight and recents; menu items that ask for a value; editor fixes from the community batches) · **Target:** Figma Design UI3 (desktop app 126.10.7)
Fine canvas control is what Figma users feel first: handles, snapping, nudging, modifier keys,
drag behaviour, numeric precision. This checklist covers the tools, gestures and panels. Status:
@@ -211,6 +211,7 @@ This audit records candidates for subsequent fixes; their behaviour is unchanged
| Date | Change | Summary |
|---|---|---|
+| 2026-11-24 | patch | M3: the pixel grid was drawn in black at 7% and two pixels wide on a Retina screen, so it showed on white and hardly at all on the dark canvas or a dark fill. Its lines are now a light grey (190) at 20%, one screen pixel wide and on the screen's pixels: 242 on white and 78 on a grey of 50, as measured on Figma's grid (2026-11-24), so they darken a light colour and lighten a dark one. Test: `pixel_grid_tests` (800%, a 1x and a 2x screen, none below 400%). |
| 2026-11-19 | patch | M4, #2338: superscript and subscript were drawn (#1868) but nothing in the interface set them. Type settings ▸ Details now starts with Position: None, Superscript (X²) or Subscript (X₂), for the selected text layers, through `text.setFeatures` (`sups`, `subs`; choosing one clears the other). It shows the layers' current position, none when they differ. Raising a range of characters on its own needs per-run features and is left for a separate change. Test: `typography::variable_tests::details_position_sets_superscript_subscript_or_neither`. |
| 2026-11-19 | patch | M1, #2447: Shift did nothing with the Pencil: a stroke stayed freehand while the Line tool and the Pen keep theirs to 45° steps. With Shift held, the Pencil (and the Marker and Highlighter) now draws one straight segment from where the stroke started to the pointer, at the nearest 45° step; the preview shows it. A Shift-click without a move draws nothing, as before. Tests: `pencil_shift_tests`. |
| 2026-11-19 | patch | M3, #2347: with one component or component set selected, the Design panel's header said only "Component" or "Component set", so the selected one's name was only in the Layers panel. It now shows the name after a component icon (cut short with an ellipsis clear of the quick actions), with the type, and the whole name when cut, on hover. Other layers keep their type. Test: `component_header_tests::the_header_names_the_selected_component_or_set`. |
From 4fe03065aaa7eba5ae6faf78b13f6effc6094043 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Tue, 24 Nov 2026 14:22:35 -0500
Subject: [PATCH 39/57] M3: Shift+Cmd/Ctrl+' says whether pixel grid snapping
is on
Turning Snap to pixel grid on or off changes nothing on the canvas
until the next drag, so the shortcut gave no sign it had worked. A
notice at the bottom now says "Snap to pixel grid on" or "off", from
the shortcut, the menu and the Preferences row alike.
---
crates/ui-egui/locales/en.toml | 2 ++
crates/ui-egui/locales/ru.toml | 2 ++
crates/ui-egui/src/app/commands.rs | 14 ++++++++++++++
crates/ui-egui/src/shortcut_keys_tests.rs | 17 +++++++++++++++--
docs/ui-parity.md | 3 ++-
5 files changed, 35 insertions(+), 3 deletions(-)
diff --git a/crates/ui-egui/locales/en.toml b/crates/ui-egui/locales/en.toml
index e42a1c21c..c5444ca2e 100644
--- a/crates/ui-egui/locales/en.toml
+++ b/crates/ui-egui/locales/en.toml
@@ -1468,6 +1468,8 @@ name = "English"
"Small caps" = "Small caps"
"Smart animate" = "Smart animate"
"Snap to pixel grid" = "Snap to pixel grid"
+"Snap to pixel grid off" = "Snap to pixel grid off"
+"Snap to pixel grid on" = "Snap to pixel grid on"
"Social and slides" = "Social and slides"
"Social media" = "Social media"
"Social post sizes" = "Social post sizes"
diff --git a/crates/ui-egui/locales/ru.toml b/crates/ui-egui/locales/ru.toml
index bc7aa6353..4e4968e6c 100644
--- a/crates/ui-egui/locales/ru.toml
+++ b/crates/ui-egui/locales/ru.toml
@@ -1347,6 +1347,8 @@ name = "Русский"
"Small caps" = "Капитель"
"Smart animate" = "Smart animate"
"Snap to pixel grid" = "Привязка к пиксельной сетке"
+"Snap to pixel grid off" = "Привязка к пиксельной сетке выключена"
+"Snap to pixel grid on" = "Привязка к пиксельной сетке включена"
"Social and slides" = "Соцсети и слайды"
"Social media" = "Соцсети"
"Social post sizes" = "Размеры публикаций для соцсетей"
diff --git a/crates/ui-egui/src/app/commands.rs b/crates/ui-egui/src/app/commands.rs
index e36471b42..c0ddb0130 100644
--- a/crates/ui-egui/src/app/commands.rs
+++ b/crates/ui-egui/src/app/commands.rs
@@ -22,9 +22,23 @@ impl FigApp {
// `file.open`/`file.close`). Record that presentation before returning, so an in-flight
// screenshot admitted on the old file cannot accept pixels from the new one.
self.observe_presentation();
+ if let Ok(v) = &r {
+ self.note_snapping(id, v);
+ }
r.map_err(|e| self.failed(id, &e)).ok()
}
+ /// Snap to pixel grid turned on or off says which at the bottom, as in Figma: its shortcut
+ /// (Shift+Cmd/Ctrl+') changes nothing on the canvas until the next drag.
+ fn note_snapping(&mut self, id: &str, result: &Value) {
+ let msg = match (id, result.get("on").and_then(Value::as_bool)) {
+ ("view.snapPixel", Some(true)) => crate::i18n::tr("Snap to pixel grid on"),
+ ("view.snapPixel", Some(false)) => crate::i18n::tr("Snap to pixel grid off"),
+ _ => return,
+ };
+ self.toast(msg);
+ }
+
/// A programmatic command that changed the engine clipboard never wrote the system clipboard:
/// forget the old system mirror so a later user paste does not trust it as our own copy.
/// `before` is the layers generation captured before the command ran.
diff --git a/crates/ui-egui/src/shortcut_keys_tests.rs b/crates/ui-egui/src/shortcut_keys_tests.rs
index e48a3d0bb..f1fbfd715 100644
--- a/crates/ui-egui/src/shortcut_keys_tests.rs
+++ b/crates/ui-egui/src/shortcut_keys_tests.rs
@@ -2,8 +2,8 @@
//! headless: arrows pan with nothing selected, the keyboard box selection key and Cmd/Ctrl+arrows
//! drawing it out, list indentation while editing text, symbols another keyboard layout types with
//! Shift, the presentation keys (Space and N forward, C comments, F full screen), Alt+R for the
-//! rotation origin, Enter placing a shape with its tool chosen and Cmd/Ctrl+= and - zooming the
-//! canvas, not the interface.
+//! rotation origin, Enter placing a shape with its tool chosen, Cmd/Ctrl+= and - zooming the
+//! canvas, not the interface, and Shift+Cmd/Ctrl+' saying whether it snaps to the pixel grid.
use egui::{Event, Key, Modifiers, ViewportCommand, ViewportId};
use figcraft_doc::NodeId;
@@ -299,3 +299,16 @@ fn cmd_alt_arrows_rotate_a_degree_and_fifteen_with_shift() {
assert!((rot(&u) - rot_before).abs() < 1e-6, "no turn while editing points");
u.app.run("vector.edit.end", json!({}));
}
+
+#[test]
+fn shift_cmd_quote_says_whether_snapping_to_the_pixel_grid_is_on() {
+ let mut u = Ui::new(Session::new());
+ let toast = |u: &Ui| u.app.ui.toast.as_ref().map(|t| t.0.clone()).unwrap_or_default();
+ let snap = |u: &Ui| u.app.session.ds().unwrap().view.snap_pixel;
+ press(&mut u, Key::Quote, cmd() | Modifiers::SHIFT);
+ assert!(!snap(&u));
+ assert_eq!(toast(&u), "Snap to pixel grid off");
+ press(&mut u, Key::Quote, cmd() | Modifiers::SHIFT);
+ assert!(snap(&u));
+ assert_eq!(toast(&u), "Snap to pixel grid on");
+}
diff --git a/docs/ui-parity.md b/docs/ui-parity.md
index d756e71b0..c89b20e1a 100644
--- a/docs/ui-parity.md
+++ b/docs/ui-parity.md
@@ -1,6 +1,6 @@
# UI and interaction parity
-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (Type settings ▸ Details ▸ Position sets the selected text layers to superscript or subscript, or neither (#2338); Shift with the Pencil, Marker or Highlighter draws one straight segment from where the stroke started, at the nearest 45° step, as the Line tool and the Pen do (#2447); the Design panel's header names a selected component or component set, after its icon, instead of only its type (#2347); dragging near the canvas edge pans the view toward it, as measured in Figma: 40 px/s for each px within about 15 px of the edge, 600 px/s at it, for moving layers, the selection box, drawing and prototype connections (#2015); M8: a Shift-click range in the Layers panel across parents keeps a frame and not its covered children, measured in Figma's web app on 2026-11-12; points align and distribute in vector edit mode as in Figma: the six Align commands, the keys Alt+A/H/D/W/V/S, and Distribute horizontal and vertical spacing act on the selected points, each moving along one axis to their box's edge or centre line, spaced evenly between the outermost for distribute, with the alignment row first in the Design panel (#2109); going back to a page shows it where it was left, not fitted again; Duplicate repeats the last copy's move and its rotation (about the copy's centre, or the selection's centre for several layers), not its size, and forgets the step when the selection changes, measured in Figma's web app on 2026-11-12 (#2293); M8: a double-click on a layer's icon zooms to it instead of renaming, measured in Figma's web app on 2026-11-12; Tidy up keeps the order and sizes and evens the gaps, as measured in Figma's web app on 2026-11-12, rounds the gap half up, tidies overlapping rows and packs a grid along its longer axis, and is greyed out for fewer than three layers, a diagonal and an irregular layout (M8); after Crop is chosen in the image fill's colour picker, a drag on the image crops it instead of moving the layer, and no internal gesture message shows (#2307); Align is disabled for a layer in an auto layout frame's flow, as measured in Figma's web app on 2026-11-12, with a tip saying the frame places it; Select layer lists locked layers with a padlock and selects them, and shows only with more than one layer under the pointer (#1560); M8: Scale tool handle drags pivot on the opposite handle whatever the origin, and the origin starts at the centre (measured in Figma's web app, 2026-11-09); M8: a selected polygon or star has a Count handle on the canvas, on its first point clockwise from the top; Zoom to selection leaves a 40 pt margin and clears the bottom toolbar, measured in Figma's web app; M1: Paste over selection puts the pasted layers just above the selected layer; drag modifiers compared in Figma's web app (2026-11-08): Shift locks a move to the dominant axis, Alt copies, Shift keeps a resize's ratio, Alt keeps its centre, all read afresh on every move, and FigCraft matches (Ctrl/Cmd not measurable); a mirror mode (angle, or angle and length) on a sharp point turns it smooth, as in Figma (#2110); M8: Tab while renaming the last layer wraps to the first row, measured in Figma's web app on 2026-11-12; the text caret takes the text's solid fill colour (#2156); the Rotation field shows and sets the rotation on the page, in frames and groups, through node.set absoluteRotation (#2196); the eyedropper picks a magnified image's pixel under the pointer, not a blend with its neighbours (#2189); Selection colors shows from one distinct colour when a selected layer has children, and from two otherwise, measured in Figma's web app on 2026-11-09 on a frame, a group and plain rectangles; the crosshair of the shape and Text tools is drawn dark with a white edge, so it shows on a white frame whatever the system's pointer style (#2198); a boolean group takes a corner radius (and smoothing) that rounds every sharp corner of its result (#2222); the Point section's X and Y in vector edit mode show Mixed and set every selected point of the layer being edited, as in Figma; Preferences ▸ Invert zoom direction reverses wheel zoom, pinch unchanged (#2145); Shift while rotating lands on absolute multiples of 15°, measured in Figma; Flatten bakes a vector's point corner radius into its path (#2195); a click on a fill, stroke or effect row's grip or background highlights it, Cmd/Ctrl+C copies that paint or effect and Cmd/Ctrl+V pastes it onto the selected layers, as the help center's Copy and paste properties between layers says (#1494); wrap style per paragraph and in text styles (#1827); the Annotation tool (Shift+T, `tool.annotation {id?}`): with a layer selected (or an `id`) it asks the UI for that layer's note at once, and in the tool a press on a layer selects it and asks for its note, a press on empty canvas does nothing; the marquee follows Figma's measured rules: a partly covered frame or section gives the layers in it the marquee touches, a rotated shape is touched by its outline, a drag from inside a frame selects that frame only when the marquee also takes another top-level frame (then whole) (`marquee_behaviour_tests`); copy, cut and paste in vector edit mode act on the selected points and segments (#1875); M8, #2146: K focuses the Scale tool's factor field with its text selected, so K, 2, Enter scales the selection by two about the panel's origin (FigCraft's starts at the top left; Figma's grid starts at the centre, left for a follow-up because the origin also sets where a handle drag pivots, which is not measured) in one undo step, after which the tool returns to Move with the selection kept; Escape in the field closes it with the tool back on Move and nothing changed (measured in Figma's web app, 2026-11-09; `pressing_k_focuses_the_scale_field_with_its_text_selected`, `k_two_enter_scales_the_selection_by_two`, `escape_in_the_scale_field_closes_it_and_changes_nothing`); the main menu and its submenus stay inside the window, moving up to fit and scrolling when taller (#2217); locked layers ignore the arrow keys and a locked parent's children can't be locked on their own (#1560); the left rail's and tab strip's icons are larger, 20 pt (#553); pick select: Tab while the keyboard selection box shows (or the chord again) puts a pink outline on a layer and the keys walk the layer tree from it, as Accessibility at Figma says (#1836); scrubbing a field faster or slower by the pointer's height, with a notice of the speed, as the help center's Scrub fields says (#1837); component rows in the Layers panel at AA contrast in the theme's component tint, with the rows inside a selected component in a tone of its row (#1903); Cmd/Ctrl-click on a padding field sets all four sides with the value typed, a documented auto layout shortcut; a fill per region of a vector: with regions selected in edit mode, the Fill section and the fill commands edit those regions' own fills, as Edit vector layers says (#1875); the Fill section of a text whose characters were coloured differently while editing shows mixed content, characters that all share fills the layer doesn't have show those, and a layer-level fill edit reaches every character (#1856); a number field scrubs when dragged with Alt held, as the help center's scrub section says, not only by its label; reuse visible layer selection roots (M8); ; with a shape or frame tool chosen and nothing selected, the arrows show a placement crosshair in the middle of the view and move it, and Enter places there, as Accessibility at Figma says (#1839); text direction per paragraph: Text ▸ Text direction forces a paragraph left to right or right to left, as Add right-to-left text says (#1830), with `text.direction`, `node.set textDirection`, the Type settings control once a right-to-left script is in the text, inspect, the CSS `direction` and the `.fig` lines' `sourceDirectionality`; the boolean operation menu in the Design panel leads each entry with an original icon drawn in code, a filled preview of the result (#2003); a press on the open gradient's handles or stops on the canvas keeps the colour picker open through the drag, as its own control (#1852); a click with the Bend tool on a sharp point curves it, its handles along the line between its neighbours, as Edit vector layers says (#1875); wrap style: Auto, Balance and Pretty on a text layer decide where its lines break, as Explore text properties says (#1827), with the Type settings control, `text.wrapStyle`, `node.set wrapStyle`, inspect and the CSS `text-wrap`; Backspace or Delete at the start of a list item keeps the item's indentation level, as the lists article says; max lines on auto-width text keep it auto width, hugging that many lines, as the text properties article says; superscript and subscript are synthesised where the font has no glyphs for them, from the standard glyphs shrunk and shifted by the font's OS/2 metrics, and a run mixing available and unavailable glyphs is synthesised whole, as Explore text properties says (#1828); Alt+Enter while editing text opens the link at the caret, as the accessibility page documents; Minimize, by its shortcut or the button by the file name, collapses the navigation bar and both sidebars as the help center says, with the right sidebar back while something is selected (#1835); the interface size keys of the help center's accessibility page: Cmd/Ctrl+Shift+Alt with =, - and 0 step the interface through the Preferences sizes and back to the system's size; Cmd/Ctrl+Alt+arrows rotate the selection a degree at a time, 15 with Shift, as the help center's accessibility page says; they resized before; the Layers panel answers Ctrl+1 as well as Alt+1 on Windows and Linux, the two keys the help center gives it; the colour picker's Image tab shows a placeholder and Upload from computer, an asset preview, and a file dropped on it replaces the image, keeping the fill mode, crop and position (#1682); the keyboard's Menu key opens the context menu, as Shift+F10 does; the eyedropper with Cmd/Ctrl+Shift makes a colour style or variable of what it picks; sidebar number and text fields keep their text vertically centered when focused, including typography spacing; with the pen out, Enter or a double-click ends the path and edits the vector with the Move tool instead of drawing on (#1430); the Actions palette offers only commands that run from it, and no second row reading like a menu item: Place image opens the file dialog (#1574); Preferences ▸ Scroll wheel zoom: a mouse wheel zooms the canvas about the pointer and Cmd/Ctrl+wheel scrolls (#1390); boolean operations refuse input past their caps, and a boolean group past them draws without its result (#1104); the selection and hover outlines of rounded rectangles and frames follow their corners (#1506); colour picker review fixes for text undo, fitted sidebars, moving controls and gradient variables; Corner smoothing: an original icon and the shared number-field drag gesture, preserving fractional baselines; guides snap to layers when dragged; Crop image: Object ▸ Crop image, the right-click menu and the image fill row enter crop mode (`image.crop`, #1464); the Design panel's sections on one grid — 16 / 8 margins, 88 + 8 + 88 + 8 + 24 columns, 24 pt rows, 4 pt between a row's buttons (#858); the toolbar on one 32 pt grid, without its Resources button (#1210); colour picker LCH and OKLCH models; an XML (Android Vector Drawable) export format; Context menus: the Menu key reaches egui 0.37 but is unbound (row done → partial); the Text on a path tool; board tool keys pinned; community fixes: the text box by dragging, the font picker keys, the pen path on leaving Design, a still canvas in vector edit mode, a scrolling pages list, colour emoji, readable new text in frames, system theme on first run; the Small caps sample in Type settings drawn from capitals; recent files as cards; vector edit mode: hovering, hatching, selecting and dragging filled regions; home screen: Templates tab, first-run templates and Getting started tips; number fields: scrub rates, arrow steps, arithmetic with brackets, relative edits of mixed values; outline mode's hidden layers and object bounds; Hide when publishing; cursors per tool and modifier; panel widths; dark pages for files made in the dark theme; drag threshold and double-clicks into text in groups; rotation origin on Alt+R and placing with Enter: no documented shortcut missing; keyboard shortcut parity suite and bindings; cursor chat and spotlight in live sessions; layers and assets panels behaviour suite and fixes; vector multi-edit and the vector edit tail; canvas navigation, guides and grids behaviour suite and fixes; shapes and vector behaviour suite and fixes; paint and effects behaviour suite and fixes; frames, groups, sections and masks behaviour suite and fixes; layers panel keyboard: F2 rename, Shift+F10 context menu, F8 box selection; selection and transform behaviour suite and fixes; Display P3: gamut warning and soft-proof (true P3 blocked upstream); several windows; boolean hit testing on the result, group drags, frame outlines and slices; outlines for the selection, mask outlines; arc fields, live boolean editing, shape builder on strokes, one-sided widths; fields select their text on focus; Typography spacing icons support scrubbing (#373); CSS colour names in hex fields; a rename selects the whole name, so typing replaces it; Escape or Enter after a pen path stays on the same vector (#760); IME composition kept on through idle frames of a text edit, candidates at the caret (#747); Selection colors for mixed selections and smart-selection spacing (#753); submenus with a hover delay and a safe triangle; the Actions palette's tabs, ranked search, highlight and recents; menu items that ask for a value; editor fixes from the community batches) · **Target:** Figma Design UI3 (desktop app 126.10.7)
+> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-24 · **Change:** minor (Shift+Cmd/Ctrl+' says at the bottom of the window whether snapping to the pixel grid is now on or off; Type settings ▸ Details ▸ Position sets the selected text layers to superscript or subscript, or neither (#2338); Shift with the Pencil, Marker or Highlighter draws one straight segment from where the stroke started, at the nearest 45° step, as the Line tool and the Pen do (#2447); the Design panel's header names a selected component or component set, after its icon, instead of only its type (#2347); dragging near the canvas edge pans the view toward it, as measured in Figma: 40 px/s for each px within about 15 px of the edge, 600 px/s at it, for moving layers, the selection box, drawing and prototype connections (#2015); M8: a Shift-click range in the Layers panel across parents keeps a frame and not its covered children, measured in Figma's web app on 2026-11-12; points align and distribute in vector edit mode as in Figma: the six Align commands, the keys Alt+A/H/D/W/V/S, and Distribute horizontal and vertical spacing act on the selected points, each moving along one axis to their box's edge or centre line, spaced evenly between the outermost for distribute, with the alignment row first in the Design panel (#2109); going back to a page shows it where it was left, not fitted again; Duplicate repeats the last copy's move and its rotation (about the copy's centre, or the selection's centre for several layers), not its size, and forgets the step when the selection changes, measured in Figma's web app on 2026-11-12 (#2293); M8: a double-click on a layer's icon zooms to it instead of renaming, measured in Figma's web app on 2026-11-12; Tidy up keeps the order and sizes and evens the gaps, as measured in Figma's web app on 2026-11-12, rounds the gap half up, tidies overlapping rows and packs a grid along its longer axis, and is greyed out for fewer than three layers, a diagonal and an irregular layout (M8); after Crop is chosen in the image fill's colour picker, a drag on the image crops it instead of moving the layer, and no internal gesture message shows (#2307); Align is disabled for a layer in an auto layout frame's flow, as measured in Figma's web app on 2026-11-12, with a tip saying the frame places it; Select layer lists locked layers with a padlock and selects them, and shows only with more than one layer under the pointer (#1560); M8: Scale tool handle drags pivot on the opposite handle whatever the origin, and the origin starts at the centre (measured in Figma's web app, 2026-11-09); M8: a selected polygon or star has a Count handle on the canvas, on its first point clockwise from the top; Zoom to selection leaves a 40 pt margin and clears the bottom toolbar, measured in Figma's web app; M1: Paste over selection puts the pasted layers just above the selected layer; drag modifiers compared in Figma's web app (2026-11-08): Shift locks a move to the dominant axis, Alt copies, Shift keeps a resize's ratio, Alt keeps its centre, all read afresh on every move, and FigCraft matches (Ctrl/Cmd not measurable); a mirror mode (angle, or angle and length) on a sharp point turns it smooth, as in Figma (#2110); M8: Tab while renaming the last layer wraps to the first row, measured in Figma's web app on 2026-11-12; the text caret takes the text's solid fill colour (#2156); the Rotation field shows and sets the rotation on the page, in frames and groups, through node.set absoluteRotation (#2196); the eyedropper picks a magnified image's pixel under the pointer, not a blend with its neighbours (#2189); Selection colors shows from one distinct colour when a selected layer has children, and from two otherwise, measured in Figma's web app on 2026-11-09 on a frame, a group and plain rectangles; the crosshair of the shape and Text tools is drawn dark with a white edge, so it shows on a white frame whatever the system's pointer style (#2198); a boolean group takes a corner radius (and smoothing) that rounds every sharp corner of its result (#2222); the Point section's X and Y in vector edit mode show Mixed and set every selected point of the layer being edited, as in Figma; Preferences ▸ Invert zoom direction reverses wheel zoom, pinch unchanged (#2145); Shift while rotating lands on absolute multiples of 15°, measured in Figma; Flatten bakes a vector's point corner radius into its path (#2195); a click on a fill, stroke or effect row's grip or background highlights it, Cmd/Ctrl+C copies that paint or effect and Cmd/Ctrl+V pastes it onto the selected layers, as the help center's Copy and paste properties between layers says (#1494); wrap style per paragraph and in text styles (#1827); the Annotation tool (Shift+T, `tool.annotation {id?}`): with a layer selected (or an `id`) it asks the UI for that layer's note at once, and in the tool a press on a layer selects it and asks for its note, a press on empty canvas does nothing; the marquee follows Figma's measured rules: a partly covered frame or section gives the layers in it the marquee touches, a rotated shape is touched by its outline, a drag from inside a frame selects that frame only when the marquee also takes another top-level frame (then whole) (`marquee_behaviour_tests`); copy, cut and paste in vector edit mode act on the selected points and segments (#1875); M8, #2146: K focuses the Scale tool's factor field with its text selected, so K, 2, Enter scales the selection by two about the panel's origin (FigCraft's starts at the top left; Figma's grid starts at the centre, left for a follow-up because the origin also sets where a handle drag pivots, which is not measured) in one undo step, after which the tool returns to Move with the selection kept; Escape in the field closes it with the tool back on Move and nothing changed (measured in Figma's web app, 2026-11-09; `pressing_k_focuses_the_scale_field_with_its_text_selected`, `k_two_enter_scales_the_selection_by_two`, `escape_in_the_scale_field_closes_it_and_changes_nothing`); the main menu and its submenus stay inside the window, moving up to fit and scrolling when taller (#2217); locked layers ignore the arrow keys and a locked parent's children can't be locked on their own (#1560); the left rail's and tab strip's icons are larger, 20 pt (#553); pick select: Tab while the keyboard selection box shows (or the chord again) puts a pink outline on a layer and the keys walk the layer tree from it, as Accessibility at Figma says (#1836); scrubbing a field faster or slower by the pointer's height, with a notice of the speed, as the help center's Scrub fields says (#1837); component rows in the Layers panel at AA contrast in the theme's component tint, with the rows inside a selected component in a tone of its row (#1903); Cmd/Ctrl-click on a padding field sets all four sides with the value typed, a documented auto layout shortcut; a fill per region of a vector: with regions selected in edit mode, the Fill section and the fill commands edit those regions' own fills, as Edit vector layers says (#1875); the Fill section of a text whose characters were coloured differently while editing shows mixed content, characters that all share fills the layer doesn't have show those, and a layer-level fill edit reaches every character (#1856); a number field scrubs when dragged with Alt held, as the help center's scrub section says, not only by its label; reuse visible layer selection roots (M8); ; with a shape or frame tool chosen and nothing selected, the arrows show a placement crosshair in the middle of the view and move it, and Enter places there, as Accessibility at Figma says (#1839); text direction per paragraph: Text ▸ Text direction forces a paragraph left to right or right to left, as Add right-to-left text says (#1830), with `text.direction`, `node.set textDirection`, the Type settings control once a right-to-left script is in the text, inspect, the CSS `direction` and the `.fig` lines' `sourceDirectionality`; the boolean operation menu in the Design panel leads each entry with an original icon drawn in code, a filled preview of the result (#2003); a press on the open gradient's handles or stops on the canvas keeps the colour picker open through the drag, as its own control (#1852); a click with the Bend tool on a sharp point curves it, its handles along the line between its neighbours, as Edit vector layers says (#1875); wrap style: Auto, Balance and Pretty on a text layer decide where its lines break, as Explore text properties says (#1827), with the Type settings control, `text.wrapStyle`, `node.set wrapStyle`, inspect and the CSS `text-wrap`; Backspace or Delete at the start of a list item keeps the item's indentation level, as the lists article says; max lines on auto-width text keep it auto width, hugging that many lines, as the text properties article says; superscript and subscript are synthesised where the font has no glyphs for them, from the standard glyphs shrunk and shifted by the font's OS/2 metrics, and a run mixing available and unavailable glyphs is synthesised whole, as Explore text properties says (#1828); Alt+Enter while editing text opens the link at the caret, as the accessibility page documents; Minimize, by its shortcut or the button by the file name, collapses the navigation bar and both sidebars as the help center says, with the right sidebar back while something is selected (#1835); the interface size keys of the help center's accessibility page: Cmd/Ctrl+Shift+Alt with =, - and 0 step the interface through the Preferences sizes and back to the system's size; Cmd/Ctrl+Alt+arrows rotate the selection a degree at a time, 15 with Shift, as the help center's accessibility page says; they resized before; the Layers panel answers Ctrl+1 as well as Alt+1 on Windows and Linux, the two keys the help center gives it; the colour picker's Image tab shows a placeholder and Upload from computer, an asset preview, and a file dropped on it replaces the image, keeping the fill mode, crop and position (#1682); the keyboard's Menu key opens the context menu, as Shift+F10 does; the eyedropper with Cmd/Ctrl+Shift makes a colour style or variable of what it picks; sidebar number and text fields keep their text vertically centered when focused, including typography spacing; with the pen out, Enter or a double-click ends the path and edits the vector with the Move tool instead of drawing on (#1430); the Actions palette offers only commands that run from it, and no second row reading like a menu item: Place image opens the file dialog (#1574); Preferences ▸ Scroll wheel zoom: a mouse wheel zooms the canvas about the pointer and Cmd/Ctrl+wheel scrolls (#1390); boolean operations refuse input past their caps, and a boolean group past them draws without its result (#1104); the selection and hover outlines of rounded rectangles and frames follow their corners (#1506); colour picker review fixes for text undo, fitted sidebars, moving controls and gradient variables; Corner smoothing: an original icon and the shared number-field drag gesture, preserving fractional baselines; guides snap to layers when dragged; Crop image: Object ▸ Crop image, the right-click menu and the image fill row enter crop mode (`image.crop`, #1464); the Design panel's sections on one grid — 16 / 8 margins, 88 + 8 + 88 + 8 + 24 columns, 24 pt rows, 4 pt between a row's buttons (#858); the toolbar on one 32 pt grid, without its Resources button (#1210); colour picker LCH and OKLCH models; an XML (Android Vector Drawable) export format; Context menus: the Menu key reaches egui 0.37 but is unbound (row done → partial); the Text on a path tool; board tool keys pinned; community fixes: the text box by dragging, the font picker keys, the pen path on leaving Design, a still canvas in vector edit mode, a scrolling pages list, colour emoji, readable new text in frames, system theme on first run; the Small caps sample in Type settings drawn from capitals; recent files as cards; vector edit mode: hovering, hatching, selecting and dragging filled regions; home screen: Templates tab, first-run templates and Getting started tips; number fields: scrub rates, arrow steps, arithmetic with brackets, relative edits of mixed values; outline mode's hidden layers and object bounds; Hide when publishing; cursors per tool and modifier; panel widths; dark pages for files made in the dark theme; drag threshold and double-clicks into text in groups; rotation origin on Alt+R and placing with Enter: no documented shortcut missing; keyboard shortcut parity suite and bindings; cursor chat and spotlight in live sessions; layers and assets panels behaviour suite and fixes; vector multi-edit and the vector edit tail; canvas navigation, guides and grids behaviour suite and fixes; shapes and vector behaviour suite and fixes; paint and effects behaviour suite and fixes; frames, groups, sections and masks behaviour suite and fixes; layers panel keyboard: F2 rename, Shift+F10 context menu, F8 box selection; selection and transform behaviour suite and fixes; Display P3: gamut warning and soft-proof (true P3 blocked upstream); several windows; boolean hit testing on the result, group drags, frame outlines and slices; outlines for the selection, mask outlines; arc fields, live boolean editing, shape builder on strokes, one-sided widths; fields select their text on focus; Typography spacing icons support scrubbing (#373); CSS colour names in hex fields; a rename selects the whole name, so typing replaces it; Escape or Enter after a pen path stays on the same vector (#760); IME composition kept on through idle frames of a text edit, candidates at the caret (#747); Selection colors for mixed selections and smart-selection spacing (#753); submenus with a hover delay and a safe triangle; the Actions palette's tabs, ranked search, highlight and recents; menu items that ask for a value; editor fixes from the community batches) · **Target:** Figma Design UI3 (desktop app 126.10.7)
Fine canvas control is what Figma users feel first: handles, snapping, nudging, modifier keys,
drag behaviour, numeric precision. This checklist covers the tools, gestures and panels. Status:
@@ -211,6 +211,7 @@ This audit records candidates for subsequent fixes; their behaviour is unchanged
| Date | Change | Summary |
|---|---|---|
+| 2026-11-24 | patch | M3: Shift+Cmd/Ctrl+' turned Snap to pixel grid on or off without a sign, since nothing on the canvas changes until the next drag. A notice at the bottom now says "Snap to pixel grid on" or "off", from the shortcut, the menu and the Preferences row alike. Test: `shortcut_keys_tests::shift_cmd_quote_says_whether_snapping_to_the_pixel_grid_is_on`. |
| 2026-11-19 | patch | M4, #2338: superscript and subscript were drawn (#1868) but nothing in the interface set them. Type settings ▸ Details now starts with Position: None, Superscript (X²) or Subscript (X₂), for the selected text layers, through `text.setFeatures` (`sups`, `subs`; choosing one clears the other). It shows the layers' current position, none when they differ. Raising a range of characters on its own needs per-run features and is left for a separate change. Test: `typography::variable_tests::details_position_sets_superscript_subscript_or_neither`. |
| 2026-11-19 | patch | M1, #2447: Shift did nothing with the Pencil: a stroke stayed freehand while the Line tool and the Pen keep theirs to 45° steps. With Shift held, the Pencil (and the Marker and Highlighter) now draws one straight segment from where the stroke started to the pointer, at the nearest 45° step; the preview shows it. A Shift-click without a move draws nothing, as before. Tests: `pencil_shift_tests`. |
| 2026-11-19 | patch | M3, #2347: with one component or component set selected, the Design panel's header said only "Component" or "Component set", so the selected one's name was only in the Layers panel. It now shows the name after a component icon (cut short with an ellipsis clear of the quick actions), with the type, and the whole name when cut, on hover. Other layers keep their type. Test: `component_header_tests::the_header_names_the_selected_component_or_set`. |
From c8bcd4ae484faead3d576e796a8113ad3e8b5cd4 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Tue, 24 Nov 2026 14:31:53 -0500
Subject: [PATCH 40/57] M4: Paste properties keeps a layer's styles and
variables
Copy properties took the values and left behind where they come from:
a frame filled from a colour variable or a fill style pasted a plain,
unlinked colour, and the pasted layer's own bindings stayed, so a bound
radius kept its variable's value over the pasted one.
It now also carries the fill, stroke, effect, grid and text style
links, the variables bound to what it copies (not sizes, auto layout
spacing, visibility or text content) and a frame's layout grids. The
pasted layer's bindings on those give way. A style or variable the
target file lacks (a copy from another tab) is left out and its values
pasted, so the paste never fails on a missing link.
Layout grids coming along with a frame is not measured in Figma.
---
crates/engine/src/cmd/edit/clipboard.rs | 67 ++++++++++++++++--
crates/engine/src/lib.rs | 2 +
crates/engine/src/paste_properties_tests.rs | 77 +++++++++++++++++++++
docs/ui-parity.md | 3 +-
4 files changed, 142 insertions(+), 7 deletions(-)
create mode 100644 crates/engine/src/paste_properties_tests.rs
diff --git a/crates/engine/src/cmd/edit/clipboard.rs b/crates/engine/src/cmd/edit/clipboard.rs
index 09c79190b..8b04f7d95 100644
--- a/crates/engine/src/cmd/edit/clipboard.rs
+++ b/crates/engine/src/cmd/edit/clipboard.rs
@@ -417,7 +417,19 @@ pub(super) fn copy_props_of(doc: &Document, id: NodeId) -> Value {
v["cornerRadius"] = json!(n.corners.radii);
v["cornerSmoothing"] = json!(n.corners.smoothing);
}
+ // A frame's layout grids go with its look, as its fills do.
+ if n.kind.is_frame_like() {
+ v["grids"] = json!(n.grids);
+ v["gridStyle"] = json!(n.styles.grid);
+ }
+ // The links behind the values: the styles and the variables they come from, so the pasted
+ // layer follows them as the copied one does.
+ v["fillStyle"] = json!(n.styles.fill);
+ v["strokeStyle"] = json!(n.styles.stroke);
+ v["effectStyle"] = json!(n.styles.effect);
+ v["boundVariables"] = Value::Object(n.bound.iter().filter(|(f, _)| copied_binding(f)).map(|(f, v)| (f.clone(), json!(v))).collect());
if let NodeKind::Text(t) = &n.kind {
+ v["textStyle"] = json!(n.styles.text);
v["fontFamily"] = json!(t.style.font_family);
v["fontStyle"] = json!(t.style.font_style);
v["fontSize"] = json!(t.style.font_size);
@@ -439,17 +451,60 @@ pub(super) fn copy_props(s: &mut Session, p: &Value) -> Result {
/// properties only to text, the corners only to a layer with corners.
pub(crate) fn apply_copied_props(cmd: &str, doc: &mut Document, id: NodeId, props: &Value) -> Result<()> {
let mut m = props.as_object().cloned().unwrap_or_default();
- let is_text = matches!(doc.get(id)?.kind, NodeKind::Text(_));
- if !is_text {
- m.retain(|k, _| !k.starts_with("font") && k != "lineHeight" && k != "letterSpacing");
+ let n = doc.get(id)?;
+ let (is_text, corners, frame) = (matches!(n.kind, NodeKind::Text(_)), n.kind.has_corner_radius(), n.kind.is_frame_like());
+ let takes = |k: &str| {
+ let text = k.starts_with("font") || k.starts_with("paragraph") || matches!(k, "lineHeight" | "letterSpacing" | "textStyle");
+ let corner = k == "cornerSmoothing" || k.ends_with("Radius");
+ let grid = k == "gridStyle" || k == "grids" || k.starts_with("grids/");
+ (is_text || !text) && (corners || !corner) && (frame || !grid)
+ };
+ m.retain(|k, _| takes(k));
+ // A style or variable of another file (the copy came from another tab) isn't here to link to:
+ // the values it gave are pasted without the link.
+ let here = |v: &Value| v.as_str().is_none_or(|sid| doc.style(sid).is_some());
+ m.retain(|k, v| !k.ends_with("Style") || k.starts_with("font") || here(v));
+ if let Some(Value::Object(copied)) = m.get_mut("boundVariables") {
+ copied.retain(|_, v| v.as_str().is_some_and(|vid| doc.variables.get_by_id(vid).is_some()));
}
- if !doc.get(id)?.kind.has_corner_radius() {
- m.remove("cornerRadius");
- m.remove("cornerSmoothing");
+ // The layer's own bindings on what is pasted give way to the copied layer's: kept, a binding
+ // would hold the old value over the pasted one.
+ if let Some(Value::Object(copied)) = m.get("boundVariables") {
+ let mut bound: serde_json::Map =
+ n.bound.keys().filter(|f| copied_binding(f) && takes(f)).map(|f| (f.clone(), Value::Null)).collect();
+ bound.extend(copied.iter().filter(|(f, _)| takes(f)).map(|(f, v)| (f.clone(), v.clone())));
+ m.insert("boundVariables".into(), Value::Object(bound));
}
crate::cmd::props::apply(cmd, doc, id, &m)
}
+/// Whether a variable bound to `field` goes with the properties [`copy_props_of`] copies: not a
+/// size, auto layout spacing, visibility or text content.
+fn copied_binding(field: &str) -> bool {
+ !matches!(
+ field,
+ "width"
+ | "height"
+ | "minWidth"
+ | "maxWidth"
+ | "minHeight"
+ | "maxHeight"
+ | "gap"
+ | "columnGap"
+ | "rowGap"
+ | "crossGap"
+ | "padding"
+ | "paddingHorizontal"
+ | "paddingVertical"
+ | "paddingTop"
+ | "paddingRight"
+ | "paddingBottom"
+ | "paddingLeft"
+ | "visible"
+ | "characters"
+ )
+}
+
pub(super) fn paste_props(s: &mut Session, p: &Value) -> Result {
let props = s.clipboard.props.clone().ok_or_else(|| EngineError::Disabled("edit.pasteProperties".into(), "no copied properties".into()))?;
let ids = req_targets("edit.pasteProperties", s, p)?;
diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs
index ad6bb085e..b31a109b4 100644
--- a/crates/engine/src/lib.rs
+++ b/crates/engine/src/lib.rs
@@ -688,6 +688,8 @@ mod widgets_tests;
#[cfg(test)]
mod page_view_tests;
#[cfg(test)]
+mod paste_properties_tests;
+#[cfg(test)]
mod selection_reorder_tests;
#[cfg(test)]
mod selection_spacing_tests;
diff --git a/crates/engine/src/paste_properties_tests.rs b/crates/engine/src/paste_properties_tests.rs
new file mode 100644
index 000000000..e43fe947c
--- /dev/null
+++ b/crates/engine/src/paste_properties_tests.rs
@@ -0,0 +1,77 @@
+//! Copy properties and Paste properties (Alt+Cmd/Ctrl+C and V) carry what a layer's look comes
+//! from as well as its values: its colour, effect and grid styles, the variables bound to what is
+//! copied and a frame's layout grids. A link the file pasted into doesn't have is left out.
+
+use figcraft_doc::{LayoutGrid, NodeId};
+use serde_json::{Value, json};
+
+use crate::Session;
+
+fn id(v: Value) -> NodeId {
+ NodeId(v["id"].as_u64().unwrap())
+}
+
+fn frame(s: &mut Session, x: f64) -> NodeId {
+ id(s.execute("frame.create", &json!({"x": x, "y": 0, "width": 100, "height": 100})).unwrap())
+}
+
+fn copy_onto(s: &mut Session, from: NodeId, to: NodeId) {
+ s.execute("edit.copyProperties", &json!({"id": from})).unwrap();
+ s.execute("edit.pasteProperties", &json!({"ids": [to]})).unwrap();
+}
+
+#[test]
+fn a_frame_pastes_its_styles_variables_and_layout_grids() {
+ let mut s = Session::new();
+ let (a, b, c) = (frame(&mut s, 0.0), frame(&mut s, 200.0), frame(&mut s, 400.0));
+ s.execute("variable.createCollection", &json!({"name": "Tokens"})).unwrap();
+ for (name, value) in [("surface", "#FF0000"), ("other", "#0000FF")] {
+ s.execute("variable.create", &json!({"collection": "Tokens", "name": name, "type": "color", "value": value})).unwrap();
+ }
+ s.execute("variable.create", &json!({"collection": "Tokens", "name": "radius", "type": "number", "value": 16})).unwrap();
+ s.execute("variable.bind", &json!({"ids": [a], "field": "fills/0/color", "variable": "surface"})).unwrap();
+ s.execute("variable.bind", &json!({"ids": [a], "field": "cornerRadius", "variable": "radius"})).unwrap();
+ s.execute("node.set", &json!({"ids": [a], "props": {"grids": [serde_json::to_value(LayoutGrid::default()).unwrap()]}})).unwrap();
+ // B is bound to another colour, which the paste replaces.
+ s.execute("variable.bind", &json!({"ids": [b], "field": "fills/0/color", "variable": "other"})).unwrap();
+ let shadow = s.execute("style.create", &json!({"type": "effect", "name": "Shadow", "value": [{"type": "dropShadow"}]})).unwrap()["id"].clone();
+ let green = s.execute("style.create", &json!({"type": "paint", "name": "Green", "value": "#00FF00"})).unwrap()["id"].clone();
+ s.execute("style.apply", &json!({"ids": [c], "style": green})).unwrap();
+ s.execute("style.apply", &json!({"ids": [c], "style": shadow})).unwrap();
+
+ copy_onto(&mut s, a, b);
+ let (na, nb) = (s.doc().unwrap().node(a).unwrap().clone(), s.doc().unwrap().node(b).unwrap().clone());
+ assert_eq!(nb.bound.get("fills/0/color"), na.bound.get("fills/0/color"), "the fill follows the same variable");
+ assert_eq!(nb.bound.get("cornerRadius"), na.bound.get("cornerRadius"), "and so do the corners");
+ assert_eq!(nb.corners.radii, [16.0; 4]);
+ assert_eq!(nb.grids, na.grids, "a frame's layout grids come along");
+
+ copy_onto(&mut s, c, a);
+ let (na, nc) = (s.doc().unwrap().node(a).unwrap().clone(), s.doc().unwrap().node(c).unwrap().clone());
+ assert_eq!(na.styles.fill, nc.styles.fill, "the fill style is linked");
+ assert!(nc.styles.effect.is_some() && na.styles.effect == nc.styles.effect, "the effect style too");
+ assert!(!na.bound.contains_key("fills/0/color"), "the style replaces the fill's variable");
+ assert!(!na.bound.contains_key("cornerRadius"), "C's corners aren't bound, so A's aren't any more");
+ assert!(na.grids.is_empty(), "nor has it layout grids");
+ assert_eq!(na.fills, nc.fills);
+}
+
+#[test]
+fn links_another_file_lacks_paste_as_values() {
+ let mut s = Session::new();
+ let a = frame(&mut s, 0.0);
+ s.execute("variable.createCollection", &json!({"name": "Tokens"})).unwrap();
+ s.execute("variable.create", &json!({"collection": "Tokens", "name": "surface", "type": "color", "value": "#FF0000"})).unwrap();
+ s.execute("variable.bind", &json!({"ids": [a], "field": "fills/0/color", "variable": "surface"})).unwrap();
+ let st = s.execute("style.create", &json!({"type": "paint", "name": "Line", "value": "#00FF00"})).unwrap()["id"].clone();
+ s.execute("node.set", &json!({"ids": [a], "props": {"strokes": [{"type": "solid", "color": "#000000"}]}})).unwrap();
+ s.execute("style.apply", &json!({"ids": [a], "style": st, "target": "stroke"})).unwrap();
+ s.execute("edit.copyProperties", &json!({"id": a})).unwrap();
+ let copied = s.doc().unwrap().node(a).unwrap().clone();
+ s.execute("file.new", &json!({})).unwrap();
+ let b = frame(&mut s, 0.0);
+ s.execute("edit.pasteProperties", &json!({"ids": [b]})).unwrap();
+ let nb = s.doc().unwrap().node(b).unwrap();
+ assert_eq!((nb.fills.clone(), nb.strokes.clone()), (copied.fills, copied.strokes), "the values arrive");
+ assert!(nb.bound.is_empty() && nb.styles.fill.is_none() && nb.styles.stroke.is_none(), "{:?} {:?}", nb.bound, nb.styles);
+}
diff --git a/docs/ui-parity.md b/docs/ui-parity.md
index d756e71b0..b86f72b2b 100644
--- a/docs/ui-parity.md
+++ b/docs/ui-parity.md
@@ -1,6 +1,6 @@
# UI and interaction parity
-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (Type settings ▸ Details ▸ Position sets the selected text layers to superscript or subscript, or neither (#2338); Shift with the Pencil, Marker or Highlighter draws one straight segment from where the stroke started, at the nearest 45° step, as the Line tool and the Pen do (#2447); the Design panel's header names a selected component or component set, after its icon, instead of only its type (#2347); dragging near the canvas edge pans the view toward it, as measured in Figma: 40 px/s for each px within about 15 px of the edge, 600 px/s at it, for moving layers, the selection box, drawing and prototype connections (#2015); M8: a Shift-click range in the Layers panel across parents keeps a frame and not its covered children, measured in Figma's web app on 2026-11-12; points align and distribute in vector edit mode as in Figma: the six Align commands, the keys Alt+A/H/D/W/V/S, and Distribute horizontal and vertical spacing act on the selected points, each moving along one axis to their box's edge or centre line, spaced evenly between the outermost for distribute, with the alignment row first in the Design panel (#2109); going back to a page shows it where it was left, not fitted again; Duplicate repeats the last copy's move and its rotation (about the copy's centre, or the selection's centre for several layers), not its size, and forgets the step when the selection changes, measured in Figma's web app on 2026-11-12 (#2293); M8: a double-click on a layer's icon zooms to it instead of renaming, measured in Figma's web app on 2026-11-12; Tidy up keeps the order and sizes and evens the gaps, as measured in Figma's web app on 2026-11-12, rounds the gap half up, tidies overlapping rows and packs a grid along its longer axis, and is greyed out for fewer than three layers, a diagonal and an irregular layout (M8); after Crop is chosen in the image fill's colour picker, a drag on the image crops it instead of moving the layer, and no internal gesture message shows (#2307); Align is disabled for a layer in an auto layout frame's flow, as measured in Figma's web app on 2026-11-12, with a tip saying the frame places it; Select layer lists locked layers with a padlock and selects them, and shows only with more than one layer under the pointer (#1560); M8: Scale tool handle drags pivot on the opposite handle whatever the origin, and the origin starts at the centre (measured in Figma's web app, 2026-11-09); M8: a selected polygon or star has a Count handle on the canvas, on its first point clockwise from the top; Zoom to selection leaves a 40 pt margin and clears the bottom toolbar, measured in Figma's web app; M1: Paste over selection puts the pasted layers just above the selected layer; drag modifiers compared in Figma's web app (2026-11-08): Shift locks a move to the dominant axis, Alt copies, Shift keeps a resize's ratio, Alt keeps its centre, all read afresh on every move, and FigCraft matches (Ctrl/Cmd not measurable); a mirror mode (angle, or angle and length) on a sharp point turns it smooth, as in Figma (#2110); M8: Tab while renaming the last layer wraps to the first row, measured in Figma's web app on 2026-11-12; the text caret takes the text's solid fill colour (#2156); the Rotation field shows and sets the rotation on the page, in frames and groups, through node.set absoluteRotation (#2196); the eyedropper picks a magnified image's pixel under the pointer, not a blend with its neighbours (#2189); Selection colors shows from one distinct colour when a selected layer has children, and from two otherwise, measured in Figma's web app on 2026-11-09 on a frame, a group and plain rectangles; the crosshair of the shape and Text tools is drawn dark with a white edge, so it shows on a white frame whatever the system's pointer style (#2198); a boolean group takes a corner radius (and smoothing) that rounds every sharp corner of its result (#2222); the Point section's X and Y in vector edit mode show Mixed and set every selected point of the layer being edited, as in Figma; Preferences ▸ Invert zoom direction reverses wheel zoom, pinch unchanged (#2145); Shift while rotating lands on absolute multiples of 15°, measured in Figma; Flatten bakes a vector's point corner radius into its path (#2195); a click on a fill, stroke or effect row's grip or background highlights it, Cmd/Ctrl+C copies that paint or effect and Cmd/Ctrl+V pastes it onto the selected layers, as the help center's Copy and paste properties between layers says (#1494); wrap style per paragraph and in text styles (#1827); the Annotation tool (Shift+T, `tool.annotation {id?}`): with a layer selected (or an `id`) it asks the UI for that layer's note at once, and in the tool a press on a layer selects it and asks for its note, a press on empty canvas does nothing; the marquee follows Figma's measured rules: a partly covered frame or section gives the layers in it the marquee touches, a rotated shape is touched by its outline, a drag from inside a frame selects that frame only when the marquee also takes another top-level frame (then whole) (`marquee_behaviour_tests`); copy, cut and paste in vector edit mode act on the selected points and segments (#1875); M8, #2146: K focuses the Scale tool's factor field with its text selected, so K, 2, Enter scales the selection by two about the panel's origin (FigCraft's starts at the top left; Figma's grid starts at the centre, left for a follow-up because the origin also sets where a handle drag pivots, which is not measured) in one undo step, after which the tool returns to Move with the selection kept; Escape in the field closes it with the tool back on Move and nothing changed (measured in Figma's web app, 2026-11-09; `pressing_k_focuses_the_scale_field_with_its_text_selected`, `k_two_enter_scales_the_selection_by_two`, `escape_in_the_scale_field_closes_it_and_changes_nothing`); the main menu and its submenus stay inside the window, moving up to fit and scrolling when taller (#2217); locked layers ignore the arrow keys and a locked parent's children can't be locked on their own (#1560); the left rail's and tab strip's icons are larger, 20 pt (#553); pick select: Tab while the keyboard selection box shows (or the chord again) puts a pink outline on a layer and the keys walk the layer tree from it, as Accessibility at Figma says (#1836); scrubbing a field faster or slower by the pointer's height, with a notice of the speed, as the help center's Scrub fields says (#1837); component rows in the Layers panel at AA contrast in the theme's component tint, with the rows inside a selected component in a tone of its row (#1903); Cmd/Ctrl-click on a padding field sets all four sides with the value typed, a documented auto layout shortcut; a fill per region of a vector: with regions selected in edit mode, the Fill section and the fill commands edit those regions' own fills, as Edit vector layers says (#1875); the Fill section of a text whose characters were coloured differently while editing shows mixed content, characters that all share fills the layer doesn't have show those, and a layer-level fill edit reaches every character (#1856); a number field scrubs when dragged with Alt held, as the help center's scrub section says, not only by its label; reuse visible layer selection roots (M8); ; with a shape or frame tool chosen and nothing selected, the arrows show a placement crosshair in the middle of the view and move it, and Enter places there, as Accessibility at Figma says (#1839); text direction per paragraph: Text ▸ Text direction forces a paragraph left to right or right to left, as Add right-to-left text says (#1830), with `text.direction`, `node.set textDirection`, the Type settings control once a right-to-left script is in the text, inspect, the CSS `direction` and the `.fig` lines' `sourceDirectionality`; the boolean operation menu in the Design panel leads each entry with an original icon drawn in code, a filled preview of the result (#2003); a press on the open gradient's handles or stops on the canvas keeps the colour picker open through the drag, as its own control (#1852); a click with the Bend tool on a sharp point curves it, its handles along the line between its neighbours, as Edit vector layers says (#1875); wrap style: Auto, Balance and Pretty on a text layer decide where its lines break, as Explore text properties says (#1827), with the Type settings control, `text.wrapStyle`, `node.set wrapStyle`, inspect and the CSS `text-wrap`; Backspace or Delete at the start of a list item keeps the item's indentation level, as the lists article says; max lines on auto-width text keep it auto width, hugging that many lines, as the text properties article says; superscript and subscript are synthesised where the font has no glyphs for them, from the standard glyphs shrunk and shifted by the font's OS/2 metrics, and a run mixing available and unavailable glyphs is synthesised whole, as Explore text properties says (#1828); Alt+Enter while editing text opens the link at the caret, as the accessibility page documents; Minimize, by its shortcut or the button by the file name, collapses the navigation bar and both sidebars as the help center says, with the right sidebar back while something is selected (#1835); the interface size keys of the help center's accessibility page: Cmd/Ctrl+Shift+Alt with =, - and 0 step the interface through the Preferences sizes and back to the system's size; Cmd/Ctrl+Alt+arrows rotate the selection a degree at a time, 15 with Shift, as the help center's accessibility page says; they resized before; the Layers panel answers Ctrl+1 as well as Alt+1 on Windows and Linux, the two keys the help center gives it; the colour picker's Image tab shows a placeholder and Upload from computer, an asset preview, and a file dropped on it replaces the image, keeping the fill mode, crop and position (#1682); the keyboard's Menu key opens the context menu, as Shift+F10 does; the eyedropper with Cmd/Ctrl+Shift makes a colour style or variable of what it picks; sidebar number and text fields keep their text vertically centered when focused, including typography spacing; with the pen out, Enter or a double-click ends the path and edits the vector with the Move tool instead of drawing on (#1430); the Actions palette offers only commands that run from it, and no second row reading like a menu item: Place image opens the file dialog (#1574); Preferences ▸ Scroll wheel zoom: a mouse wheel zooms the canvas about the pointer and Cmd/Ctrl+wheel scrolls (#1390); boolean operations refuse input past their caps, and a boolean group past them draws without its result (#1104); the selection and hover outlines of rounded rectangles and frames follow their corners (#1506); colour picker review fixes for text undo, fitted sidebars, moving controls and gradient variables; Corner smoothing: an original icon and the shared number-field drag gesture, preserving fractional baselines; guides snap to layers when dragged; Crop image: Object ▸ Crop image, the right-click menu and the image fill row enter crop mode (`image.crop`, #1464); the Design panel's sections on one grid — 16 / 8 margins, 88 + 8 + 88 + 8 + 24 columns, 24 pt rows, 4 pt between a row's buttons (#858); the toolbar on one 32 pt grid, without its Resources button (#1210); colour picker LCH and OKLCH models; an XML (Android Vector Drawable) export format; Context menus: the Menu key reaches egui 0.37 but is unbound (row done → partial); the Text on a path tool; board tool keys pinned; community fixes: the text box by dragging, the font picker keys, the pen path on leaving Design, a still canvas in vector edit mode, a scrolling pages list, colour emoji, readable new text in frames, system theme on first run; the Small caps sample in Type settings drawn from capitals; recent files as cards; vector edit mode: hovering, hatching, selecting and dragging filled regions; home screen: Templates tab, first-run templates and Getting started tips; number fields: scrub rates, arrow steps, arithmetic with brackets, relative edits of mixed values; outline mode's hidden layers and object bounds; Hide when publishing; cursors per tool and modifier; panel widths; dark pages for files made in the dark theme; drag threshold and double-clicks into text in groups; rotation origin on Alt+R and placing with Enter: no documented shortcut missing; keyboard shortcut parity suite and bindings; cursor chat and spotlight in live sessions; layers and assets panels behaviour suite and fixes; vector multi-edit and the vector edit tail; canvas navigation, guides and grids behaviour suite and fixes; shapes and vector behaviour suite and fixes; paint and effects behaviour suite and fixes; frames, groups, sections and masks behaviour suite and fixes; layers panel keyboard: F2 rename, Shift+F10 context menu, F8 box selection; selection and transform behaviour suite and fixes; Display P3: gamut warning and soft-proof (true P3 blocked upstream); several windows; boolean hit testing on the result, group drags, frame outlines and slices; outlines for the selection, mask outlines; arc fields, live boolean editing, shape builder on strokes, one-sided widths; fields select their text on focus; Typography spacing icons support scrubbing (#373); CSS colour names in hex fields; a rename selects the whole name, so typing replaces it; Escape or Enter after a pen path stays on the same vector (#760); IME composition kept on through idle frames of a text edit, candidates at the caret (#747); Selection colors for mixed selections and smart-selection spacing (#753); submenus with a hover delay and a safe triangle; the Actions palette's tabs, ranked search, highlight and recents; menu items that ask for a value; editor fixes from the community batches) · **Target:** Figma Design UI3 (desktop app 126.10.7)
+> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-24 · **Change:** minor (Paste properties links the copied layer's colour, effect, grid and text styles and binds the variables it follows, and a frame's layout grids come along; links another file lacks paste as values; Type settings ▸ Details ▸ Position sets the selected text layers to superscript or subscript, or neither (#2338); Shift with the Pencil, Marker or Highlighter draws one straight segment from where the stroke started, at the nearest 45° step, as the Line tool and the Pen do (#2447); the Design panel's header names a selected component or component set, after its icon, instead of only its type (#2347); dragging near the canvas edge pans the view toward it, as measured in Figma: 40 px/s for each px within about 15 px of the edge, 600 px/s at it, for moving layers, the selection box, drawing and prototype connections (#2015); M8: a Shift-click range in the Layers panel across parents keeps a frame and not its covered children, measured in Figma's web app on 2026-11-12; points align and distribute in vector edit mode as in Figma: the six Align commands, the keys Alt+A/H/D/W/V/S, and Distribute horizontal and vertical spacing act on the selected points, each moving along one axis to their box's edge or centre line, spaced evenly between the outermost for distribute, with the alignment row first in the Design panel (#2109); going back to a page shows it where it was left, not fitted again; Duplicate repeats the last copy's move and its rotation (about the copy's centre, or the selection's centre for several layers), not its size, and forgets the step when the selection changes, measured in Figma's web app on 2026-11-12 (#2293); M8: a double-click on a layer's icon zooms to it instead of renaming, measured in Figma's web app on 2026-11-12; Tidy up keeps the order and sizes and evens the gaps, as measured in Figma's web app on 2026-11-12, rounds the gap half up, tidies overlapping rows and packs a grid along its longer axis, and is greyed out for fewer than three layers, a diagonal and an irregular layout (M8); after Crop is chosen in the image fill's colour picker, a drag on the image crops it instead of moving the layer, and no internal gesture message shows (#2307); Align is disabled for a layer in an auto layout frame's flow, as measured in Figma's web app on 2026-11-12, with a tip saying the frame places it; Select layer lists locked layers with a padlock and selects them, and shows only with more than one layer under the pointer (#1560); M8: Scale tool handle drags pivot on the opposite handle whatever the origin, and the origin starts at the centre (measured in Figma's web app, 2026-11-09); M8: a selected polygon or star has a Count handle on the canvas, on its first point clockwise from the top; Zoom to selection leaves a 40 pt margin and clears the bottom toolbar, measured in Figma's web app; M1: Paste over selection puts the pasted layers just above the selected layer; drag modifiers compared in Figma's web app (2026-11-08): Shift locks a move to the dominant axis, Alt copies, Shift keeps a resize's ratio, Alt keeps its centre, all read afresh on every move, and FigCraft matches (Ctrl/Cmd not measurable); a mirror mode (angle, or angle and length) on a sharp point turns it smooth, as in Figma (#2110); M8: Tab while renaming the last layer wraps to the first row, measured in Figma's web app on 2026-11-12; the text caret takes the text's solid fill colour (#2156); the Rotation field shows and sets the rotation on the page, in frames and groups, through node.set absoluteRotation (#2196); the eyedropper picks a magnified image's pixel under the pointer, not a blend with its neighbours (#2189); Selection colors shows from one distinct colour when a selected layer has children, and from two otherwise, measured in Figma's web app on 2026-11-09 on a frame, a group and plain rectangles; the crosshair of the shape and Text tools is drawn dark with a white edge, so it shows on a white frame whatever the system's pointer style (#2198); a boolean group takes a corner radius (and smoothing) that rounds every sharp corner of its result (#2222); the Point section's X and Y in vector edit mode show Mixed and set every selected point of the layer being edited, as in Figma; Preferences ▸ Invert zoom direction reverses wheel zoom, pinch unchanged (#2145); Shift while rotating lands on absolute multiples of 15°, measured in Figma; Flatten bakes a vector's point corner radius into its path (#2195); a click on a fill, stroke or effect row's grip or background highlights it, Cmd/Ctrl+C copies that paint or effect and Cmd/Ctrl+V pastes it onto the selected layers, as the help center's Copy and paste properties between layers says (#1494); wrap style per paragraph and in text styles (#1827); the Annotation tool (Shift+T, `tool.annotation {id?}`): with a layer selected (or an `id`) it asks the UI for that layer's note at once, and in the tool a press on a layer selects it and asks for its note, a press on empty canvas does nothing; the marquee follows Figma's measured rules: a partly covered frame or section gives the layers in it the marquee touches, a rotated shape is touched by its outline, a drag from inside a frame selects that frame only when the marquee also takes another top-level frame (then whole) (`marquee_behaviour_tests`); copy, cut and paste in vector edit mode act on the selected points and segments (#1875); M8, #2146: K focuses the Scale tool's factor field with its text selected, so K, 2, Enter scales the selection by two about the panel's origin (FigCraft's starts at the top left; Figma's grid starts at the centre, left for a follow-up because the origin also sets where a handle drag pivots, which is not measured) in one undo step, after which the tool returns to Move with the selection kept; Escape in the field closes it with the tool back on Move and nothing changed (measured in Figma's web app, 2026-11-09; `pressing_k_focuses_the_scale_field_with_its_text_selected`, `k_two_enter_scales_the_selection_by_two`, `escape_in_the_scale_field_closes_it_and_changes_nothing`); the main menu and its submenus stay inside the window, moving up to fit and scrolling when taller (#2217); locked layers ignore the arrow keys and a locked parent's children can't be locked on their own (#1560); the left rail's and tab strip's icons are larger, 20 pt (#553); pick select: Tab while the keyboard selection box shows (or the chord again) puts a pink outline on a layer and the keys walk the layer tree from it, as Accessibility at Figma says (#1836); scrubbing a field faster or slower by the pointer's height, with a notice of the speed, as the help center's Scrub fields says (#1837); component rows in the Layers panel at AA contrast in the theme's component tint, with the rows inside a selected component in a tone of its row (#1903); Cmd/Ctrl-click on a padding field sets all four sides with the value typed, a documented auto layout shortcut; a fill per region of a vector: with regions selected in edit mode, the Fill section and the fill commands edit those regions' own fills, as Edit vector layers says (#1875); the Fill section of a text whose characters were coloured differently while editing shows mixed content, characters that all share fills the layer doesn't have show those, and a layer-level fill edit reaches every character (#1856); a number field scrubs when dragged with Alt held, as the help center's scrub section says, not only by its label; reuse visible layer selection roots (M8); ; with a shape or frame tool chosen and nothing selected, the arrows show a placement crosshair in the middle of the view and move it, and Enter places there, as Accessibility at Figma says (#1839); text direction per paragraph: Text ▸ Text direction forces a paragraph left to right or right to left, as Add right-to-left text says (#1830), with `text.direction`, `node.set textDirection`, the Type settings control once a right-to-left script is in the text, inspect, the CSS `direction` and the `.fig` lines' `sourceDirectionality`; the boolean operation menu in the Design panel leads each entry with an original icon drawn in code, a filled preview of the result (#2003); a press on the open gradient's handles or stops on the canvas keeps the colour picker open through the drag, as its own control (#1852); a click with the Bend tool on a sharp point curves it, its handles along the line between its neighbours, as Edit vector layers says (#1875); wrap style: Auto, Balance and Pretty on a text layer decide where its lines break, as Explore text properties says (#1827), with the Type settings control, `text.wrapStyle`, `node.set wrapStyle`, inspect and the CSS `text-wrap`; Backspace or Delete at the start of a list item keeps the item's indentation level, as the lists article says; max lines on auto-width text keep it auto width, hugging that many lines, as the text properties article says; superscript and subscript are synthesised where the font has no glyphs for them, from the standard glyphs shrunk and shifted by the font's OS/2 metrics, and a run mixing available and unavailable glyphs is synthesised whole, as Explore text properties says (#1828); Alt+Enter while editing text opens the link at the caret, as the accessibility page documents; Minimize, by its shortcut or the button by the file name, collapses the navigation bar and both sidebars as the help center says, with the right sidebar back while something is selected (#1835); the interface size keys of the help center's accessibility page: Cmd/Ctrl+Shift+Alt with =, - and 0 step the interface through the Preferences sizes and back to the system's size; Cmd/Ctrl+Alt+arrows rotate the selection a degree at a time, 15 with Shift, as the help center's accessibility page says; they resized before; the Layers panel answers Ctrl+1 as well as Alt+1 on Windows and Linux, the two keys the help center gives it; the colour picker's Image tab shows a placeholder and Upload from computer, an asset preview, and a file dropped on it replaces the image, keeping the fill mode, crop and position (#1682); the keyboard's Menu key opens the context menu, as Shift+F10 does; the eyedropper with Cmd/Ctrl+Shift makes a colour style or variable of what it picks; sidebar number and text fields keep their text vertically centered when focused, including typography spacing; with the pen out, Enter or a double-click ends the path and edits the vector with the Move tool instead of drawing on (#1430); the Actions palette offers only commands that run from it, and no second row reading like a menu item: Place image opens the file dialog (#1574); Preferences ▸ Scroll wheel zoom: a mouse wheel zooms the canvas about the pointer and Cmd/Ctrl+wheel scrolls (#1390); boolean operations refuse input past their caps, and a boolean group past them draws without its result (#1104); the selection and hover outlines of rounded rectangles and frames follow their corners (#1506); colour picker review fixes for text undo, fitted sidebars, moving controls and gradient variables; Corner smoothing: an original icon and the shared number-field drag gesture, preserving fractional baselines; guides snap to layers when dragged; Crop image: Object ▸ Crop image, the right-click menu and the image fill row enter crop mode (`image.crop`, #1464); the Design panel's sections on one grid — 16 / 8 margins, 88 + 8 + 88 + 8 + 24 columns, 24 pt rows, 4 pt between a row's buttons (#858); the toolbar on one 32 pt grid, without its Resources button (#1210); colour picker LCH and OKLCH models; an XML (Android Vector Drawable) export format; Context menus: the Menu key reaches egui 0.37 but is unbound (row done → partial); the Text on a path tool; board tool keys pinned; community fixes: the text box by dragging, the font picker keys, the pen path on leaving Design, a still canvas in vector edit mode, a scrolling pages list, colour emoji, readable new text in frames, system theme on first run; the Small caps sample in Type settings drawn from capitals; recent files as cards; vector edit mode: hovering, hatching, selecting and dragging filled regions; home screen: Templates tab, first-run templates and Getting started tips; number fields: scrub rates, arrow steps, arithmetic with brackets, relative edits of mixed values; outline mode's hidden layers and object bounds; Hide when publishing; cursors per tool and modifier; panel widths; dark pages for files made in the dark theme; drag threshold and double-clicks into text in groups; rotation origin on Alt+R and placing with Enter: no documented shortcut missing; keyboard shortcut parity suite and bindings; cursor chat and spotlight in live sessions; layers and assets panels behaviour suite and fixes; vector multi-edit and the vector edit tail; canvas navigation, guides and grids behaviour suite and fixes; shapes and vector behaviour suite and fixes; paint and effects behaviour suite and fixes; frames, groups, sections and masks behaviour suite and fixes; layers panel keyboard: F2 rename, Shift+F10 context menu, F8 box selection; selection and transform behaviour suite and fixes; Display P3: gamut warning and soft-proof (true P3 blocked upstream); several windows; boolean hit testing on the result, group drags, frame outlines and slices; outlines for the selection, mask outlines; arc fields, live boolean editing, shape builder on strokes, one-sided widths; fields select their text on focus; Typography spacing icons support scrubbing (#373); CSS colour names in hex fields; a rename selects the whole name, so typing replaces it; Escape or Enter after a pen path stays on the same vector (#760); IME composition kept on through idle frames of a text edit, candidates at the caret (#747); Selection colors for mixed selections and smart-selection spacing (#753); submenus with a hover delay and a safe triangle; the Actions palette's tabs, ranked search, highlight and recents; menu items that ask for a value; editor fixes from the community batches) · **Target:** Figma Design UI3 (desktop app 126.10.7)
Fine canvas control is what Figma users feel first: handles, snapping, nudging, modifier keys,
drag behaviour, numeric precision. This checklist covers the tools, gestures and panels. Status:
@@ -211,6 +211,7 @@ This audit records candidates for subsequent fixes; their behaviour is unchanged
| Date | Change | Summary |
|---|---|---|
+| 2026-11-24 | patch | M4: Copy properties (Alt+Cmd/Ctrl+C) took a layer's values and left behind what they come from: a frame filled from a colour variable or a style pasted a plain colour, unlinked, and a pasted layer's own bindings stayed and could hold the old value over the pasted one. It now also carries the fill, stroke, effect, grid and text style links, the variables bound to what it copies (not size, auto layout spacing, visibility or text content) and a frame's layout grids; the pasted layer's bindings on those give way. A style or variable the file pasted into doesn't have (the copy came from another tab) is left out and its values pasted. Tests: `paste_properties_tests` (2). |
| 2026-11-19 | patch | M4, #2338: superscript and subscript were drawn (#1868) but nothing in the interface set them. Type settings ▸ Details now starts with Position: None, Superscript (X²) or Subscript (X₂), for the selected text layers, through `text.setFeatures` (`sups`, `subs`; choosing one clears the other). It shows the layers' current position, none when they differ. Raising a range of characters on its own needs per-run features and is left for a separate change. Test: `typography::variable_tests::details_position_sets_superscript_subscript_or_neither`. |
| 2026-11-19 | patch | M1, #2447: Shift did nothing with the Pencil: a stroke stayed freehand while the Line tool and the Pen keep theirs to 45° steps. With Shift held, the Pencil (and the Marker and Highlighter) now draws one straight segment from where the stroke started to the pointer, at the nearest 45° step; the preview shows it. A Shift-click without a move draws nothing, as before. Tests: `pencil_shift_tests`. |
| 2026-11-19 | patch | M3, #2347: with one component or component set selected, the Design panel's header said only "Component" or "Component set", so the selected one's name was only in the Layers panel. It now shows the name after a component icon (cut short with an ellipsis clear of the quick actions), with the type, and the whole name when cut, on hover. Other layers keep their type. Test: `component_header_tests::the_header_names_the_selected_component_or_set`. |
From 2cafd22260ff628548872d2139bcfae3a77dc544 Mon Sep 17 00:00:00 2001
From: HagaiBA
Date: Tue, 24 Nov 2026 23:42:15 +0200
Subject: [PATCH 41/57] i18n(he): strip BiDi marks, place {n} before noun in
plurals, and use action nouns in he.toml
---
crates/ui-egui/locales/he.toml | 2238 +++++++++++++++---------------
crates/ui-egui/src/i18n/tests.rs | 2 +-
2 files changed, 1120 insertions(+), 1120 deletions(-)
diff --git a/crates/ui-egui/locales/he.toml b/crates/ui-egui/locales/he.toml
index 57acbebb8..4565a7232 100644
--- a/crates/ui-egui/locales/he.toml
+++ b/crates/ui-egui/locales/he.toml
@@ -10,18 +10,18 @@ status = "draft — needs native review"
"% of all commits" = "% מכלל ההפקדות"
"(no longer published)" = "(כבר אינו מפורסם)"
"({n} warnings: some entries were skipped)" = { one = "({n} אזהרה: חלק מהרשומות דולגו)", other = "({n} אזהרות: חלק מהרשומות דולגו)" }
-"+ Create variable" = "+ צור משתנה"
+"+ Create variable" = "+ יצירת משתנה"
".fig (experimental)" = ".fig (ניסיוני)"
"1 year" = "שנה אחת"
"1…9, 0" = "1…9, 0"
"30 days" = "30 ימים"
"90 days" = "90 ימים"
"@{login}: {prs} PRs, {commits} commits, +{added} / −{deleted} lines (Δ {delta}), +{bin_added} / −{bin_deleted} binary assets, {first} – {last}" = "@{login}: {prs} בקשות משיכה, {commits} הפקדות, +{added} / −{deleted} שורות (Δ {delta}), +{bin_added} / −{bin_deleted} קבצים בינאריים, {first} – {last}"
-"A .figcraft file with this name already exists. Choose its full name to confirm replacement." = "קובץ .figcraft בשם זה כבר קיים. בחר את שמו המלא כדי לאשר החלפה."
-"A collection of this file with these modes and variables: override their values per mode and add variables of its own" = "אוסף בקובץ זה עם מצבים ומשתנים אלו: דרוס את ערכיהם לכל מצב והוסף לו משתנים משלו"
+"A .figcraft file with this name already exists. Choose its full name to confirm replacement." = "קובץ .figcraft בשם זה כבר קיים. יש לבחור את שמו המלא כדי לאשר החלפה."
+"A collection of this file with these modes and variables: override their values per mode and add variables of its own" = "אוסף בקובץ זה עם מצבים ומשתנים אלו: ניתן לדרוס את ערכיהם לכל מצב ולהוסיף לו משתנים משלו"
"A later vote" = "הצבעה מאוחרת יותר"
"A layer in an auto layout frame is placed by its frame" = "שכבה במסגרת עם פריסה אוטומטית ממוקמת על ידי המסגרת שלה"
-"A layer on its own aligns to its frame: select more layers, or one in a frame" = "שכבה בודדת מתיישרת למסגרת שלה: בחר שכבות נוספות, או שכבה בתוך מסגרת"
+"A layer on its own aligns to its frame: select more layers, or one in a frame" = "שכבה בודדת מתיישרת למסגרת שלה: יש לבחור שכבות נוספות, או שכבה בתוך מסגרת"
"A responsive product page: hero, features, figures, a quote and a footer" = "עמוד מוצר רספונסיבי: אזור פתיחה (Hero), תכונות, נתונים, ציטוט וכותרת תחתונה"
"A spring plays until it settles: its mass, stiffness and damping set how long" = "קפיץ מתנגן עד שהוא מתייצב: המסה, הקשיחות והריסון שלו קובעים כמה זמן זה יימשך"
"A table takes at most {rows} rows and {columns} columns: the rest wasn't pasted" = "טבלה יכולה להכיל לכל היותר {rows} שורות ו-{columns} עמודות: השאר לא הודבק"
@@ -36,45 +36,45 @@ status = "draft — needs native review"
"Actions…" = "פעולות…"
"Active" = "פעיל"
"Actual size (100%)" = "גודל מקורי (100%)"
-"Add a category" = "הוסף קטגוריה"
-"Add a comment" = "הוסף תגובה"
-"Add a connected shape" = "הוסף צורה מחוברת"
-"Add a description" = "הוסף תיאור"
-"Add a frame (F) or a shape (R) to get started" = "הוסף מסגרת (F) או צורה (R) כדי להתחיל"
-"Add a layer or component to tile first" = "הוסף תחילה שכבה או רכיב לריצוף"
-"Add a minute" = "הוסף דקה"
-"Add a note for developers" = "הוסף הערה למפתחים"
-"Add action" = "הוסף פעולה"
-"Add actions for when no condition holds" = "הוסף פעולות למקרה שאף תנאי אינו מתקיים"
-"Add an annotation for developers" = "הוסף הערת מפתחים"
-"Add another condition" = "הוסף תנאי נוסף"
-"Add auto layout" = "הוסף פריסה אוטומטית"
-"Add background behind overlay" = "הוסף רקע מאחורי שכבת-על"
-"Add column" = "הוסף עמודה"
-"Add content to this slot" = "הוסף תוכן לחריץ תוכן זה"
-"Add dev resource" = "הוסף משאב מפתחים"
-"Add effect" = "הוסף אפקט"
-"Add export setting" = "הוסף הגדרת ייצוא"
-"Add fill" = "הוסף מילוי"
-"Add interaction" = "הוסף אינטראקציה"
-"Add layout grid" = "הוסף רשת פריסה"
-"Add library" = "הוסף ספרייה"
-"Add library file…" = "הוסף קובץ ספרייה…"
-"Add max height" = "הוסף גובה מרבי"
-"Add max width" = "הוסף רוחב מרבי"
-"Add measurement" = "הוסף מדידה"
-"Add min height" = "הוסף גובה מזערי"
-"Add min width" = "הוסף רוחב מזערי"
-"Add mode" = "הוסף מצב"
-"Add new page" = "הוסף עמוד חדש"
-"Add or update collections from a variables JSON" = "הוסף או עדכן אוספים מקובץ JSON של משתנים"
-"Add properties to make instances configurable" = "הוסף מאפיינים כדי לאפשר התאמה של מופעים"
-"Add reaction" = "הוסף תגובת אימוג׳י"
-"Add row" = "הוסף שורה"
-"Add starting point" = "הוסף נקודת התחלה"
-"Add stroke" = "הוסף קו מתאר"
-"Add variant" = "הוסף וריאנט"
-"Add variant with a new value" = "הוסף וריאנט עם ערך חדש"
+"Add a category" = "הוספת קטגוריה"
+"Add a comment" = "הוספת תגובה"
+"Add a connected shape" = "הוספת צורה מחוברת"
+"Add a description" = "הוספת תיאור"
+"Add a frame (F) or a shape (R) to get started" = "הוספת מסגרת (F) או צורה (R) כדי להתחיל"
+"Add a layer or component to tile first" = "יש להוסיף תחילה שכבה או רכיב לריצוף"
+"Add a minute" = "הוספת דקה"
+"Add a note for developers" = "הוספת הערה למפתחים"
+"Add action" = "הוספת פעולה"
+"Add actions for when no condition holds" = "הוספת פעולות למקרה שאף תנאי אינו מתקיים"
+"Add an annotation for developers" = "הוספת הערת מפתחים"
+"Add another condition" = "הוספת תנאי נוסף"
+"Add auto layout" = "הוספת פריסה אוטומטית"
+"Add background behind overlay" = "הוספת רקע מאחורי שכבת-על"
+"Add column" = "הוספת עמודה"
+"Add content to this slot" = "הוספת תוכן לחריץ תוכן זה"
+"Add dev resource" = "הוספת משאב מפתחים"
+"Add effect" = "הוספת אפקט"
+"Add export setting" = "הוספת הגדרת ייצוא"
+"Add fill" = "הוספת מילוי"
+"Add interaction" = "הוספת אינטראקציה"
+"Add layout grid" = "הוספת רשת פריסה"
+"Add library" = "הוספת ספרייה"
+"Add library file…" = "הוספת קובץ ספרייה…"
+"Add max height" = "הוספת גובה מרבי"
+"Add max width" = "הוספת רוחב מרבי"
+"Add measurement" = "הוספת מדידה"
+"Add min height" = "הוספת גובה מזערי"
+"Add min width" = "הוספת רוחב מזערי"
+"Add mode" = "הוספת מצב"
+"Add new page" = "הוספת עמוד חדש"
+"Add or update collections from a variables JSON" = "הוספת או עדכון אוספים מקובץ JSON של משתנים"
+"Add properties to make instances configurable" = "הוספת מאפיינים כדי לאפשר התאמה של מופעים"
+"Add reaction" = "הוספת תגובת אימוג׳י"
+"Add row" = "הוספת שורה"
+"Add starting point" = "הוספת נקודת התחלה"
+"Add stroke" = "הוספת קו מתאר"
+"Add variant" = "הוספת וריאנט"
+"Add variant with a new value" = "הוספת וריאנט עם ערך חדש"
"Added" = "נוסף"
"Added the library \"{name}\"" = "הספרייה ״{name}״ נוספה"
"Adding to {name}" = "מוסיף אל {name}"
@@ -105,7 +105,7 @@ status = "draft — needs native review"
"All supported properties" = "כל המאפיינים הנתמכים"
"All the fonts this file uses are installed" = "כל הגופנים שבהם קובץ זה משתמש מותקנים"
"All variables" = "כל המשתנים"
-"Allow and download" = "אפשר והורד"
+"Allow and download" = "אישור והורדה"
"Allow downloading fonts?" = "לאפשר הורדת גופנים?"
"Along the bottom" = "לאורך הקצה התחתון"
"Along the left" = "לאורך הקצה השמאלי"
@@ -128,24 +128,24 @@ status = "draft — needs native review"
"Annotations shown on the canvas" = "הערות מפתחים המוצגות על משטח העבודה"
"Another server, or one that needs its key. The usual server is set in Preferences." = "שרת אחר, או שרת הדורש מפתח. השרת הרגיל מוגדר בהעדפות."
"Any status" = "כל סטטוס"
-"Anyone on your network with this code can edit the file, while this app stays open." = "כל אדם ברשת שלך עם קוד זה יכול לערוך את הקובץ כל עוד יישום זה נשאר פתוח."
-"Anyone on your network with this code can look at the file, not change it, while this app stays open." = "כל מי שנמצא ברשת שלך ובידיו קוד זה יכול לצפות בקובץ, אך לא לערוך אותו, כל עוד היישום נשאר פתוח."
-"Anyone with the edit link can change the file; the view link only lets people look. The links carry their secrets: share them like passwords. `figcraft-server links` makes more and revokes them." = "כל מי שמחזיק בקישור העריכה יכול לשנות את הקובץ; קישור הצפייה מאפשר צפייה בלבד. הקישורים מכילים את מפתחות הגישה שלהם: שתף אותם בזהירות כמו סיסמאות. הפקודה `figcraft-server links` יוצרת קישורים נוספים ומבטלת קיימים."
+"Anyone on your network with this code can edit the file, while this app stays open." = "כל מי שנמצא ברשת המקומית עם קוד זה יכול לערוך את הקובץ, כל עוד יישום זה נשאר פתוח."
+"Anyone on your network with this code can look at the file, not change it, while this app stays open." = "כל מי שנמצא ברשת המקומית ובידיו קוד זה יכול לצפות בקובץ, אך לא לערוך אותו, כל עוד היישום נשאר פתוח."
+"Anyone with the edit link can change the file; the view link only lets people look. The links carry their secrets: share them like passwords. `figcraft-server links` makes more and revokes them." = "כל מי שמחזיק בקישור העריכה יכול לשנות את הקובץ; קישור הצפייה מאפשר צפייה בלבד. הקישורים מכילים את מפתחות הגישה שלהם: יש לשתף אותם בזהירות כמו סיסמאות. הפקודה `figcraft-server links` יוצרת קישורים נוספים ומבטלת קיימים."
"Anyone with this code can edit the file." = "כל מי שמחזיק בקוד זה יכול לערוך את הקובץ."
"Anyone with this code can look at the file and comment on it, not change it." = "כל מי שבידיו קוד זה יכול לצפות בקובץ ולהגיב עליו, אך לא לערוך אותו."
"Anyone with this code can look at the file, not change it." = "כל מי שמחזיק בקוד זה יכול לצפות בקובץ, אך לא לשנותו."
"Appearance" = "מראה"
-"Apply a component property" = "החל מאפיין רכיב"
-"Apply variable" = "החל משתנה"
-"Apply variable to text" = "החל משתנה על טקסט"
-"Apply variable to visibility" = "החל משתנה על נראות"
+"Apply a component property" = "החלת מאפיין רכיב"
+"Apply variable" = "החלת משתנה"
+"Apply variable to text" = "החלת משתנה על טקסט"
+"Apply variable to visibility" = "החלת משתנה על נראות"
"Apps" = "יישומים"
"Apr" = "אפר׳"
"Arc" = "קשת"
"Arc ratio" = "יחס קשת"
"Arc start" = "התחלת קשת"
"Arc sweep" = "זווית פריסת קשת"
-"Archive" = "העבר לארכיון"
+Archive = "העברה לארכיון"
"Archived" = "בארכיון"
"Arrange" = "סידור"
"Arrow" = "חץ"
@@ -207,7 +207,7 @@ status = "draft — needs native review"
"Bottom left radius" = "רדיוס פינה שמאלית תחתונה"
"Bottom padding" = "ריפוד תחתון"
"Bottom right radius" = "רדיוס פינה ימנית תחתונה"
-"Bound to {name}. Click to detach the variable." = "מקושר אל {name}. לחץ לניתוק המשתנה."
+"Bound to {name}. Click to detach the variable." = "מקושר אל {name}. יש ללחוץ לניתוק המשתנה."
"Brainstorm" = "סיעור מוחות"
"Branch" = "ענף"
"Branch archived" = "הענף הועבר לארכיון"
@@ -218,9 +218,9 @@ status = "draft — needs native review"
"Branch updated from main" = "הענף עודכן מהקובץ הראשי"
"Branch {name}" = "ענף {name}"
"Branches" = "ענפים"
-"Bring forward" = "הבא קדימה"
-"Bring the main file's changes into the branch" = "הבא את השינויים מהקובץ הראשי לתוך הענף"
-"Bring to front" = "הבא לחזית"
+"Bring forward" = "הבאה קדימה"
+"Bring the main file's changes into the branch" = "הבאת השינויים מהקובץ הראשי לתוך הענף"
+"Bring to front" = "הבאה לחזית"
"Bristle" = "זיפים"
"Browse" = "עיון"
"Brush" = "מברשת"
@@ -235,7 +235,7 @@ status = "draft — needs native review"
"CSS custom properties…" = "משתני CSS מותאמים…"
"Calculated from other variables; it follows them" = "מחושב ממשתנים אחרים; הערך מתעדכן בעקבותיהם"
"Can comment" = "רשאי להגיב"
-"Can comment: you see every change as it happens and can comment, but can't edit. Leave to keep a copy you can edit." = "הרשאת תגובה: ניתן לראות כל שינוי בזמן אמת ולהוסיף הערות, ללא אפשרות עריכה. עזוב כדי לשמור עותק שתוכל לערוך."
+"Can comment: you see every change as it happens and can comment, but can't edit. Leave to keep a copy you can edit." = "הרשאת תגובה: ניתן לראות כל שינוי בזמן אמת ולהוסיף הערות, ללא אפשרות עריכה. ניתן לעזוב כדי לשמור עותק הניתן לעריכה."
"Can edit" = "יכול לערוך"
"Can view" = "יכול לצפות"
"Can't read this library: {e}" = "לא ניתן לקרוא ספרייה זו: {e}"
@@ -247,52 +247,52 @@ status = "draft — needs native review"
"Case-sensitive forms" = "צורות תלויות-רישיות"
"Categories" = "קטגוריות"
"Center" = "מרכז"
-"Change alias" = "שנה כינוי"
+"Change alias" = "שינוי כינוי"
"Change resolved" = "השינוי סומן כטופל"
-"Change style" = "שנה סגנון"
-"Change to" = "שנה ל-"
-"Change to needs a layer inside a variant" = "׳שנה ל-׳ דורש שכבה בתוך וריאנט"
+"Change style" = "שינוי סגנון"
+"Change to" = "שינוי ל-"
+"Change to needs a layer inside a variant" = "׳שינוי ל-׳ דורש שכבה בתוך וריאנט"
"Changed" = "שונה"
-"Changed on both sides: keep one" = "שונה בשני הצדדים: בחר איזה מהם לשמור"
+"Changed on both sides: keep one" = "שונה בשני הצדדים: יש לבחור איזה מהם לשמור"
"Changed {date}" = "עודכן ב-{date}"
"Changes on main" = "שינויים בקובץ הראשי"
"Changes on the branch" = "שינויים בענף"
"Changes unknown" = "שינויים לא ידועים"
"Check" = "סימן וי"
-"Check for Updates" = "בדוק אם קיימים עדכונים"
-"Check for updates" = "בדוק עדכונים"
-"Check for updates…" = "בדוק אם קיימים עדכונים…"
+"Check for Updates" = "בדיקת עדכונים"
+"Check for updates" = "בדיקת עדכונים"
+"Check for updates…" = "בדיקת עדכונים…"
"Checking the fonts installed on this computer…" = "בודק את הגופנים המותקנים במחשב זה…"
"Checking the server…" = "בודק את השרת…"
"Chevron" = "חץ זוויתי"
-"Choose React, Leptos, Vue, SwiftUI, Compose, ArkUI or Flutter above to connect this component to its code." = "בחר למעלה React, Leptos, Vue, SwiftUI, Compose, ArkUI או Flutter כדי לחבר רכיב זה לקוד שלו."
-"Choose another profile to change it." = "בחר פרופיל אחר כדי לשנותו."
-"Choose collection" = "בחר אוסף"
-"Choose image" = "בחר תמונה"
-"Choose mode" = "בחר מצב"
-"Choose variable" = "בחר משתנה"
+"Choose React, Leptos, Vue, SwiftUI, Compose, ArkUI or Flutter above to connect this component to its code." = "יש לבחור למעלה React, Leptos, Vue, SwiftUI, Compose, ArkUI או Flutter כדי לחבר רכיב זה לקוד שלו."
+"Choose another profile to change it." = "יש לבחור פרופיל אחר כדי לשנותו."
+"Choose collection" = "בחירת אוסף"
+"Choose image" = "בחירת תמונה"
+"Choose mode" = "בחירת מצב"
+"Choose variable" = "בחירת משתנה"
"Circle" = "עיגול"
-"Clear from this list" = "נקה מרשימה זו"
-"Clear recent" = "נקה אחרונים"
-"Clear results" = "נקה תוצאות"
-"Click + to replace mixed content" = "לחץ על + כדי להחליף תוכן מעורב"
-"Click anywhere on the canvas to leave one." = "לחץ בכל מקום על משטח העבודה כדי להשאיר תגובה."
-"Click objects to vote; click your badge to take a vote back" = "לחץ על אובייקטים כדי להצביע; לחץ על התג שלך כדי לבטל הצבעה"
-"Click or drag to merge · {alt} removes" = "לחץ או גרור למיזוג · {alt} מסיר"
-"Click or drag to remove · {alt} merges" = "לחץ או גרור להסרה · {alt} ממזג"
-"Click to record a key" = "לחץ להקלטת מקש"
-"Clip content" = "חתוך תוכן גולש"
-"Clip to shape" = "חתוך לצורה"
-"Close" = "סגור"
-"Close overlay" = "סגור שכבת-על"
-"Close preview" = "סגור תצוגה מקדימה"
-"Close tab" = "סגור לשונית"
-"Close version history" = "סגור היסטוריית גרסאות"
-"Close when clicking outside" = "סגור בלחיצה מחוץ לאזור"
+"Clear from this list" = "ניקוי מרשימה זו"
+"Clear recent" = "ניקוי אחרונים"
+"Clear results" = "ניקוי תוצאות"
+"Click + to replace mixed content" = "יש ללחוץ על + כדי להחליף תוכן מעורב"
+"Click anywhere on the canvas to leave one." = "יש ללחוץ בכל מקום על משטח העבודה כדי להשאיר תגובה."
+"Click objects to vote; click your badge to take a vote back" = "לחיצה על אובייקטים מצביעה; לחיצה על התג האישי מבטלת הצבעה"
+"Click or drag to merge · {alt} removes" = "לחיצה או גרירה למיזוג · {alt} מסיר"
+"Click or drag to remove · {alt} merges" = "לחיצה או גרירה להסרה · {alt} ממזג"
+"Click to record a key" = "לחיצה להקלטת מקש"
+"Clip content" = "חיתוך תוכן גולש"
+"Clip to shape" = "חיתוך לצורה"
+Close = "סגירה"
+"Close overlay" = "סגירת שכבת-על"
+"Close preview" = "סגירת תצוגה מקדימה"
+"Close tab" = "סגירת לשונית"
+"Close version history" = "סגירת היסטוריית גרסאות"
+"Close when clicking outside" = "סגירה בלחיצה מחוץ לאזור"
"Code" = "קוד"
"Code or invite link" = "קוד או קישור הזמנה"
"Code syntax" = "תחביר קוד"
-"Collapse" = "כווץ"
+Collapse = "כיווץ"
"Collection" = "אוסף"
"Collections" = "אוספים"
"Color" = "צבע"
@@ -316,8 +316,8 @@ status = "draft — needs native review"
"Comments" = "תגובות"
"Commits" = "הפקדות"
"Company" = "חברה"
-"Compare changes" = "השווה שינויים"
-"Compare with" = "השווה אל"
+"Compare changes" = "השוואת שינויים"
+"Compare with" = "השוואה אל"
"Compatibility" = "תאימות"
"Compatibility notes" = "הערות תאימות"
"Completed" = "הושלם"
@@ -330,12 +330,12 @@ status = "draft — needs native review"
"Conditional" = "מותנה"
"Confetti" = "קונפטי"
"Conflicts" = "התנגשויות"
-"Connect to code" = "חבר לקוד"
+"Connect to code" = "חיבור לקוד"
"Connected" = "מחובר"
"Connected to code: {from}" = "מחובר לקוד: {from}"
"Connection lost, reconnecting (attempt {attempt})…" = "החיבור אבד, מתחבר מחדש (ניסיון {attempt})…"
"Connector" = "מחבר"
-"Constrain proportions" = "שמור על פרופורציות"
+"Constrain proportions" = "שמירה על פרופורציות"
"Constraints" = "אילוצים"
"Content" = "תוכן"
"Contents hidden" = "התוכן מוסתר"
@@ -344,8 +344,8 @@ status = "draft — needs native review"
"Contributors" = "תורמים"
"Contributors: {people} · Commits: {commits}" = "תורמים: {people} · הפקדות: {commits}"
"Controller" = "בקר משחק"
-"Convert to frame" = "המר למסגרת"
-"Convert to section" = "המר למקטע"
+"Convert to frame" = "המרה למסגרת"
+"Convert to section" = "המרה למקטע"
"Cool" = "קריר"
"Copied as CSS" = "הועתק כ-CSS"
"Copied as PNG" = "הועתק כ-PNG"
@@ -353,21 +353,21 @@ status = "draft — needs native review"
"Copied as text" = "הועתק כטקסט"
"Copied comments for AI" = "הערות הועתקו עבור בינה מלאכותית"
"Copied {value}" = "{value} הועתק"
-"Copy" = "העתק"
-"Copy as" = "העתק בתור"
-"Copy as CSS" = "העתק כ-CSS"
-"Copy as PNG" = "העתק כ-PNG"
-"Copy as SVG" = "העתק כ-SVG"
-"Copy browser link" = "העתק קישור לדפדפן"
-"Copy code" = "העתק קוד"
-"Copy effect" = "העתק אפקט"
-"Copy fill" = "העתק מילוי"
-"Copy for AI" = "העתק עבור בינה מלאכותית"
-"Copy link" = "העתק קישור"
-"Copy link to page" = "העתק קישור לעמוד"
-"Copy stroke" = "העתק קו מתאר"
-"Copy the {label}" = "העתק את ה-{label}"
-"Copy {value}" = "העתק {value}"
+Copy = "העתקה"
+"Copy as" = "העתקה בתור"
+"Copy as CSS" = "העתקה כ-CSS"
+"Copy as PNG" = "העתקה כ-PNG"
+"Copy as SVG" = "העתקה כ-SVG"
+"Copy browser link" = "העתקת קישור לדפדפן"
+"Copy code" = "העתקת קוד"
+"Copy effect" = "העתקת אפקט"
+"Copy fill" = "העתקת מילוי"
+"Copy for AI" = "העתקה עבור בינה מלאכותית"
+"Copy link" = "העתקת קישור"
+"Copy link to page" = "העתקת קישור לעמוד"
+"Copy stroke" = "העתקת קו מתאר"
+"Copy the {label}" = "העתקת ה-{label}"
+"Copy {value}" = "העתקת {value}"
"Corner radius" = "רדיוס פינה"
"Corner smoothing" = "החלקת פינות"
"Couldn't download the variables" = "לא ניתן להוריד את המשתנים"
@@ -378,22 +378,22 @@ status = "draft — needs native review"
"Couldn't save automatically: {error}" = "לא ניתן לשמור אוטומטית: {error}"
"Couldn't save the file" = "לא ניתן היה לשמור את הקובץ"
"Count" = "כמות"
-"Create" = "צור"
-"Create a variable collection first" = "צור תחילה אוסף משתנים"
-"Create a variable first" = "צור תחילה משתנה"
-"Create alias" = "צור כינוי"
-"Create branch" = "צור ענף"
-"Create collection" = "צור אוסף"
-"Create component" = "צור רכיב"
-"Create component property" = "צור מאפיין רכיב"
-"Create components, styles or variables to publish them as a library." = "צור רכיבים, סגנונות או משתנים כדי לפרסם אותם כספרייה."
-"Create from color" = "צור מצבע"
-"Create property…" = "צור מאפיין…"
-"Create style" = "צור סגנון"
-"Create style from the selected text" = "צור סגנון מהטקסט הנבחר"
+Create = "יצירה"
+"Create a variable collection first" = "יש ליצור תחילה אוסף משתנים"
+"Create a variable first" = "יש ליצור תחילה משתנה"
+"Create alias" = "יצירת כינוי"
+"Create branch" = "יצירת ענף"
+"Create collection" = "יצירת אוסף"
+"Create component" = "יצירת רכיב"
+"Create component property" = "יצירת מאפיין רכיב"
+"Create components, styles or variables to publish them as a library." = "יש ליצור רכיבים, סגנונות או משתנים כדי לפרסם אותם כספרייה."
+"Create from color" = "יצירה מצבע"
+"Create property…" = "יצירת מאפיין…"
+"Create style" = "יצירת סגנון"
+"Create style from the selected text" = "יצירת סגנון מהטקסט הנבחר"
"Created" = "נוצר"
"Crop" = "חיתוך"
-"Crop image" = "חתוך תמונה"
+"Crop image" = "חיתוך תמונה"
"Crop marks" = "סימני חיתוך"
"Ctrl+Alt+← ↑ → ↓" = "Ctrl+Alt+← ↑ → ↓"
"Ctrl+arrows" = "Ctrl+חצים"
@@ -406,7 +406,7 @@ status = "draft — needs native review"
"Curved" = "מעוקל"
"Custom" = "מותאם אישית"
"Custom size" = "גודל מותאם אישית"
-"Cut" = "גזור"
+Cut = "גזירה"
"Dark" = "כהה"
"Darken" = "הכהיה"
"Dart constants for Flutter…" = "קבועי Dart עבור Flutter…"
@@ -425,24 +425,24 @@ status = "draft — needs native review"
"Default content" = "תוכן ברירת מחדל"
"Default value (the top-left variant)" = "ערך ברירת מחדל (הווריאנט השמאלי העליון)"
"Delay" = "השהיה"
-"Delete" = "מחק"
-"Delete category (its annotations stay)" = "מחק קטגוריה (ההערות שלה נשארות)"
-"Delete collection" = "מחק אוסף"
-"Delete group" = "מחק קבוצה"
-"Delete mode" = "מחק מצב"
-"Delete page" = "מחק עמוד"
-"Delete preset" = "מחק תבנית"
-"Delete property" = "מחק מאפיין"
-"Delete results" = "מחק תוצאות"
-"Delete the style (layers keep their values)" = "מחק את הסגנון (השכבות שומרות על ערכיהן)"
-"Delete thread" = "מחק שרשור"
-"Delete variable" = "מחק משתנה"
-"Delete {n} variables" = { one = "מחק משתנה {n}", other = "מחק {n} משתנים" }
+Delete = "מחיקה"
+"Delete category (its annotations stay)" = "מחיקת קטגוריה (ההערות שלה נשארות)"
+"Delete collection" = "מחיקת אוסף"
+"Delete group" = "מחיקת קבוצה"
+"Delete mode" = "מחיקת מצב"
+"Delete page" = "מחיקת עמוד"
+"Delete preset" = "מחיקת תבנית"
+"Delete property" = "מחיקת מאפיין"
+"Delete results" = "מחיקת תוצאות"
+"Delete the style (layers keep their values)" = "מחיקת הסגנון (השכבות שומרות על ערכיהן)"
+"Delete thread" = "מחיקת שרשור"
+"Delete variable" = "מחיקת משתנה"
+"Delete {n} variables" = { one = "מחיקת {n} משתנה", other = "מחיקת {n} משתנים" }
"Delete “{name}”? This can't be undone." = "למחוק את ״{name}״? לא ניתן לבטל פעולה זו."
"Density" = "צפיפות"
"Depth" = "עומק"
-"Describe how and when to use this component" = "תאר כיצד ומתי להשתמש ברכיב זה"
-"Describe what changed" = "תאר מה השתנה"
+"Describe how and when to use this component" = "תיאור כיצד ומתי להשתמש ברכיב זה"
+"Describe what changed" = "תיאור מה שהשתנה"
"Description" = "תיאור"
"Description (optional)" = "תיאור (אופציונלי)"
"Design" = "עיצוב"
@@ -450,17 +450,17 @@ status = "draft — needs native review"
"Design system starter" = "ערכת התחלה למערכת עיצוב"
"Desktop" = "מחשב שולחני"
"Destination" = "יעד"
-"Detach alias" = "נתק כינוי"
-"Detach calculation" = "נתק חישוב"
-"Detach instance" = "נתק מופע"
-"Detach property" = "נתק מאפיין"
-"Detach style" = "נתק סגנון"
-"Detach styles" = "נתק סגנונות"
-"Detach variable" = "נתק משתנה"
+"Detach alias" = "ניתוק כינוי"
+"Detach calculation" = "ניתוק חישוב"
+"Detach instance" = "ניתוק מופע"
+"Detach property" = "ניתוק מאפיין"
+"Detach style" = "ניתוק סגנון"
+"Detach styles" = "ניתוק סגנונות"
+"Detach variable" = "ניתוק משתנה"
"Details" = "פרטים"
"Dev resources" = "משאבי מפתחים"
"Developer Mode" = "מצב פיתוח"
-"Developer Mode only inspects: switch to Design (Shift+D) to edit" = "מצב פיתוח מיועד לבדיקה בלבד: עבור למצב עיצוב (Shift+D) כדי לערוך"
+"Developer Mode only inspects: switch to Design (Shift+D) to edit" = "מצב פיתוח מיועד לבדיקה בלבד: יש לעבור למצב עיצוב (Shift+D) כדי לערוך"
"Development" = "פיתוח"
"Device" = "מכשיר"
"Device at 100%" = "מכשיר ב-100%"
@@ -468,58 +468,58 @@ status = "draft — needs native review"
"Difference" = "הפרש"
"Dimensions" = "ממדים"
"Direction" = "כיוון"
-"Disconnect from code" = "נתק מקוד"
+"Disconnect from code" = "ניתוק מקוד"
"Disconnected. Reconnecting…" = "החיבור נותק. מתחבר מחדש…"
-"Disconnected. Your edits stay here and sync when the connection returns. Reconnecting…" = "החיבור נותק. השינויים שלך נשמרים כאן ויסתנכרנו כשהחיבור יחזור. מתחבר מחדש…"
-"Dismiss" = "סגור"
+"Disconnected. Your edits stay here and sync when the connection returns. Reconnecting…" = "החיבור נותק. השינויים נשמרים כאן ויסתנכרנו כשהחיבור יחזור. מתחבר מחדש…"
+Dismiss = "סגירה"
"Dispersion" = "פיזור אור"
"Display name" = "שם תצוגה"
"Dissolve" = "התמוססות"
"Distribute and tidy" = "פיזור וסידור"
-"Distribute horizontal spacing" = "פזר מרווחים אופקית"
-"Distribute vertical spacing" = "פזר מרווחים אנכית"
+"Distribute horizontal spacing" = "פיזור מרווחים אופקית"
+"Distribute vertical spacing" = "פיזור מרווחים אנכית"
"Divider" = "קו מפריד"
"Document" = "מסמך"
-"Don't Save" = "אל תשמור"
-"Don't show this again" = "אל תציג זאת שוב"
-"Don't truncate" = "אל תקצר טקסט"
+"Don't Save" = "ללא שמירה"
+"Don't show this again" = "לא להציג זאת שוב"
+"Don't truncate" = "ללא קיצוץ טקסט"
"Done" = "בוצע"
"Done editing" = "סיום עריכה"
"Dots" = "נקודות"
"Dotted" = "מנוקד"
"Double-click an edge of an auto layout frame" = "לחיצה כפולה על קצה של מסגרת עם פריסה אוטומטית"
"Down" = "למטה"
-"Download" = "הורד"
+Download = "הורדה"
"Downloading… {percent}%" = "מוריד… {percent}%"
"Drafts" = "טיוטות"
-"Drag the stroke to add a width point" = "גרור את קו המתאר כדי להוסיף נקודת עובי"
+"Drag the stroke to add a width point" = "גרירת קו המתאר תוסיף נקודת עובי"
"Draw" = "ציור"
-"Draw a frame" = "צייר מסגרת"
+"Draw a frame" = "ציור מסגרת"
"Drawing tools" = "כלי ציור"
-"Drop a .figcraft, .fig, .jam, .sketch, .json, .svg or image file." = "גרור לכאן קובץ .figcraft, .fig, .jam, .sketch, .json, .svg או תמונה."
+"Drop a .figcraft, .fig, .jam, .sketch, .json, .svg or image file." = "יש לגרור לכאן קובץ .figcraft, .fig, .jam, .sketch, .json, .svg או תמונה."
"Drop shadow" = "הטלת צל"
-"Drop to import" = "שחרר לייבוא"
-"Drop to open" = "שחרר לפתיחה"
-"Drop to use this image" = "שחרר כדי להשתמש בתמונה זו"
+"Drop to import" = "שחרור לייבוא"
+"Drop to open" = "שחרור לפתיחה"
+"Drop to use this image" = "שחרור כדי להשתמש בתמונה זו"
"Dual-licensed MIT OR Apache-2.0. Made by the ArtCraft team and community." = "ברישיון כפול MIT או Apache-2.0. נבנה על ידי צוות וקהילת ArtCraft."
"Duo" = "דו-גוני"
-"Duplicate" = "שכפל"
-"Duplicate by dragging" = "שכפל בגרירה"
-"Duplicate group" = "שכפל קבוצה"
-"Duplicate mode" = "שכפל מצב"
-"Duplicate page" = "שכפל עמוד"
+Duplicate = "שכפול"
+"Duplicate by dragging" = "שכפול בגרירה"
+"Duplicate group" = "שכפול קבוצה"
+"Duplicate mode" = "שכפול מצב"
+"Duplicate page" = "שכפול עמוד"
"Edit" = "עריכה"
-"Edit as an expression" = "ערוך כביטוי"
-"Edit colour" = "ערוך צבע"
-"Edit comment" = "ערוך תגובה"
-"Edit dev resource" = "ערוך משאב מפתחים"
+"Edit as an expression" = "עריכה כביטוי"
+"Edit colour" = "עריכת צבע"
+"Edit comment" = "עריכת תגובה"
+"Edit dev resource" = "עריכת משאב מפתחים"
"Edit link" = "קישור עריכה"
"Edit link copied" = "קישור העריכה הועתק"
-"Edit padding on all sides" = "ערוך מרווח פנימי בכל הצלעות"
-"Edit style" = "ערוך סגנון"
-"Edit variable" = "ערוך משתנה"
-"Edit variables" = "ערוך משתנים"
-"Edit with the builder" = "ערוך באמצעות הבונה"
+"Edit padding on all sides" = "עריכת מרווח פנימי בכל הצלעות"
+"Edit style" = "עריכת סגנון"
+"Edit variable" = "עריכת משתנה"
+"Edit variables" = "עריכת משתנים"
+"Edit with the builder" = "עריכה באמצעות הבונה"
"Edited {when}" = "נערך {when}"
"Effect settings" = "הגדרות אפקט"
"Effect styles" = "סגנונות אפקט"
@@ -533,11 +533,11 @@ status = "draft — needs native review"
"Empty" = "ריק"
"End" = "סיום"
"End point" = "נקודת סיום"
-"End vote" = "סיים הצבעה"
+"End vote" = "סיום הצבעה"
"Ends the session; everyone keeps their copy" = "מסיים את המפגש; כל משתתף שומר על העותק שלו"
"Enter" = "Enter"
"Enter / Shift+Enter" = "Enter / Shift+Enter"
-"Enter the address of a figcraft-server and press Browse to see the plugins it offers." = "הזן כתובת של שרת figcraft-server ולחץ על ׳עיון׳ כדי לראות את התוספים שהוא מציע."
+"Enter the address of a figcraft-server and press Browse to see the plugins it offers." = "יש להזין כתובת של שרת figcraft-server וללחוץ על ׳עיון׳ כדי לראות את התוספים שהוא מציע."
"Enter to save · Esc to cancel" = "Enter לשמירה · Esc לביטול"
"Eraser" = "מחק"
"Esc" = "Esc"
@@ -552,28 +552,28 @@ status = "draft — needs native review"
"Excluded from layout" = "מוצא מהפריסה האוטומטית"
"Excludes" = "הוצאות מן הכלל"
"Exclusion" = "הוצאה מן הכלל"
-"Exit focus view (Esc)" = "צא מתצוגת מיקוד (Esc)"
-"Expand" = "הרחב"
-"Expand the interface" = "הרחב את הממשק"
+"Exit focus view (Esc)" = "יציאה מתצוגת מיקוד (Esc)"
+Expand = "הרחבה"
+"Expand the interface" = "הרחבת הממשק"
"Export" = "ייצוא"
-"Export all" = "ייצא הכול"
-"Export frames and layers as PNG, JPG, SVG or PDF" = "ייצא מסגרות ושכבות כ-PNG, JPG, SVG או PDF"
-"Export page as PNG" = "ייצא עמוד כ-PNG"
+"Export all" = "ייצוא הכול"
+"Export frames and layers as PNG, JPG, SVG or PDF" = "ייצוא מסגרות ושכבות כ-PNG, JPG, SVG או PDF"
+"Export page as PNG" = "ייצוא עמוד כ-PNG"
"Export settings" = "הגדרות ייצוא"
-"Export variables" = "ייצא משתנים"
-"Export {name}" = "ייצא את {name}"
-"Export {n} layers" = { one = "ייצא שכבה {n}", other = "ייצא {n} שכבות" }
+"Export variables" = "ייצוא משתנים"
+"Export {name}" = "ייצוא {name}"
+"Export {n} layers" = { one = "ייצוא {n} שכבה", other = "ייצוא {n} שכבות" }
"Exported {file}" = "יוצא {file}"
"Exported {name}" = "יוצא {name}"
-"Exported {name}; {n} kinds of content were changed or left out" = { one = "יוצא {name}; סוג תוכן {n} שונה או הושמט", other = "יוצא {name}; {n} סוגי תוכן שונו או הושמטו" }
-"Exported {name}; {n} kinds of content were left out" = { one = "יוצא {name}; סוג תוכן {n} הושמט", other = "יוצא {name}; {n} סוגי תוכן הושמטו" }
-"Exported {n} files" = { one = "יוצא קובץ {n}", other = "יוצאו {n} קבצים" }
-"Exported {n} files; some content was changed or left out" = { one = "יוצא קובץ {n}; חלק מהתוכן שונה או הושמט", other = "יוצאו {n} קבצים; חלק מהתוכן שונה או הושמט" }
+"Exported {name}; {n} kinds of content were changed or left out" = { one = "יוצא {name}; {n} סוג תוכן שונה או הושמט", other = "יוצא {name}; {n} סוגי תוכן שונו או הושמטו" }
+"Exported {name}; {n} kinds of content were left out" = { one = "יוצא {name}; {n} סוג תוכן הושמט", other = "יוצא {name}; {n} סוגי תוכן הושמטו" }
+"Exported {n} files" = { one = "יוצא {n} קובץ", other = "יוצאו {n} קבצים" }
+"Exported {n} files; some content was changed or left out" = { one = "יוצא {n} קובץ; חלק מהתוכן שונה או הושמט", other = "יוצאו {n} קבצים; חלק מהתוכן שונה או הושמט" }
"Export…" = "ייצוא…"
-"Expose properties to instances" = "חשוף מאפיינים למופעים"
+"Expose properties to instances" = "חשיפת מאפיינים למופעים"
"Exposure" = "חשיפה"
"Expression" = "ביטוי"
-"Extend collection" = "הרחב אוסף"
+"Extend collection" = "הרחבת אוסף"
"Extends \"{name}\": overridden values are marked" = "מרחיב את ״{name}״: ערכים שנדרסו מסומנים"
"Extra large" = "גדול מאוד"
"Eye" = "עין"
@@ -591,59 +591,59 @@ status = "draft — needs native review"
"File not found" = "הקובץ לא נמצא"
"File published" = "הקובץ פורסם"
"Files aren't end-to-end encrypted: the server's operator can read them." = "הקבצים אינם מוצפנים מקצה לקצה: מפעיל השרת יכול לקרוא אותם."
-"Files nobody opens for {n} days are deleted." = { one = "קבצים שאיש אינו פותח במשך יום {n} נמחקים.", other = "קבצים שאיש אינו פותח במשך {n} ימים נמחקים." }
+"Files nobody opens for {n} days are deleted." = { one = "קבצים שאיש אינו פותח במשך {n} יום נמחקים.", other = "קבצים שאיש אינו פותח במשך {n} ימים נמחקים." }
"Fill" = "מילוי"
"Fill (fr)" = "מילוי (fr)"
"Fill container" = "מילוי המכל"
-"Fill window" = "מלא חלון"
+"Fill window" = "מילוי חלון"
"Fills" = "מילויים"
"Fill|sizing" = "מילוי"
"Filter and sort" = "סינון ומיון"
"Find" = "חיפוש"
"Find and replace" = "חיפוש והחלפה"
-"Find layers" = "חפש שכבות"
+"Find layers" = "חיפוש שכבות"
"First" = "ראשון"
"First commit" = "הפקדה ראשונה"
"First on top" = "הראשון למעלה"
-"Fit" = "התאם"
-"Fit device to window" = "התאם מכשיר לחלון"
-"Fit to contents" = "התאם לתוכן"
-"Fit to window" = "התאם לחלון"
-"Fit width" = "התאם לרוחב"
+Fit = "התאמה"
+"Fit device to window" = "התאמת מכשיר לחלון"
+"Fit to contents" = "התאמת לתוכן"
+"Fit to window" = "התאמת לחלון"
+"Fit width" = "התאמת לרוחב"
"Fixed" = "קבוע"
"Fixed gap" = "מרווח קבוע"
"Fixed size" = "גודל קבוע"
"Flatten" = "שיטוח"
"Flip" = "היפוך"
"Flip horizontal" = "היפוך אופקי"
-"Flip text to the other side" = "הפוך טקסט לצד השני"
+"Flip text to the other side" = "היפוך טקסט לצד השני"
"Flip vertical" = "היפוך אנכי"
-"Flip width profile" = "הפוך פרופיל עובי"
+"Flip width profile" = "היפוך פרופיל עובי"
"Flow chart" = "תרשים זרימה"
"Flow starting point" = "נקודת התחלה של תזרים"
"Flow starting points" = "נקודות התחלה של תזרימים"
"Flows" = "זרימות"
"Focus view" = "תצוגת מיקוד"
-"Fold autosaves" = "כווץ שמירות אוטומטיות"
-"Folder: click to collapse" = "תיקייה: לחץ לכיווץ"
-"Folder: click to expand" = "תיקייה: לחץ להרחבה"
-"Follow" = "עקוב"
-"Follow {name}" = "עקוב אחר {name}"
+"Fold autosaves" = "כיווץ שמירות אוטומטיות"
+"Folder: click to collapse" = "תיקייה: לחיצה לכיווץ"
+"Folder: click to expand" = "תיקייה: לחיצה להרחבה"
+Follow = "מעקב"
+"Follow {name}" = "מעקב אחר {name}"
"Following" = "עוקב"
"Following {name} · {key} to stop" = "עוקב אחר {name} · {key} לעצירה"
"Font" = "גופן"
"Font not installed" = "הגופן אינו מותקן"
"Font size" = "גודל גופן"
"Font style" = "סגנון גופן"
-"Forget on this computer" = "שכח במחשב זה"
+"Forget on this computer" = "הסרה ממחשב זה"
"Format" = "פורמט"
"Four screens of a trail app with components and a prototype flow" = "ארבעה מסכים של אפליקציית טיולים עם רכיבים ותזרים אב-טיפוס"
"Fractions" = "שברים"
"Frame" = "מסגרת"
-"Frame selection" = "עטוף בחירה במסגרת"
+"Frame selection" = "עטיפת בחירה במסגרת"
"Frame tools" = "כלי מסגרת"
"Frames" = "מסגרות"
-"Free fonts come from Google Fonts and Noto, through jsDelivr and GitHub. Each file is checked against the font index before it is installed into the font folder the Craft apps share. Nothing is downloaded until you allow it." = "גופנים חופשיים מגיעים מ-Google Fonts ומ-Noto, דרך jsDelivr ו-GitHub. כל קובץ מאומת מול אינדקס הגופנים לפני ההתקנה בתיקיית הגופנים המשותפת של יישומי Craft. דבר אינו מורד עד שתאשר זאת."
+"Free fonts come from Google Fonts and Noto, through jsDelivr and GitHub. Each file is checked against the font index before it is installed into the font folder the Craft apps share. Nothing is downloaded until you allow it." = "גופנים חופשיים מגיעים מ-Google Fonts ומ-Noto, דרך jsDelivr ו-GitHub. כל קובץ מאומת מול אינדקס הגופנים לפני ההתקנה בתיקיית הגופנים המשותפת של יישומי Craft. דבר אינו מורד עד לאישור."
"From the library \"{name}\": read-only" = "מתוך הספרייה ״{name}״: לקריאה בלבד"
"From {name}" = "מתוך {name}"
"From {server}" = "מתוך {server}"
@@ -653,10 +653,10 @@ status = "draft — needs native review"
"Gap between items" = "מרווח בין פריטים"
"Gap between rows" = "מרווח בין שורות"
"Getting started" = "צעדים ראשונים"
-"Give the address of a server open to the public, or a server's address with its key (`figcraft-server key` prints it)." = "הזן כתובת של שרת הפתוח לציבור, או כתובת שרת עם המפתח שלו (הפקודה `figcraft-server key` מדפיסה אותו)."
+"Give the address of a server open to the public, or a server's address with its key (`figcraft-server key` prints it)." = "יש להזין כתובת של שרת הפתוח לציבור, או כתובת שרת עם המפתח שלו (הפקודה `figcraft-server key` מדפיסה אותו)."
"Glass" = "זכוכית"
-"Go to main component" = "עבור לרכיב הראשי"
-"Go to {name}" = "עבור אל {name}"
+"Go to main component" = "מעבר לרכיב הראשי"
+"Go to {name}" = "מעבר אל {name}"
"Grab bag" = "אוסף כללי"
"Gradient" = "מעבר צבע"
"Graph paper" = "נייר משבצות"
@@ -668,7 +668,7 @@ status = "draft — needs native review"
"Grid styles" = "סגנונות רשת"
"Grid {size}" = "רשת {size}"
"Group" = "קבוצה"
-"Group selection" = "קבץ בחירה"
+"Group selection" = "קיבוץ בחירה"
"Groups" = "קבוצות"
"Gutter" = "רווח בין עמודות"
"Hand tool" = "כלי היד"
@@ -683,22 +683,22 @@ status = "draft — needs native review"
"Here: {names}" = "כאן: {names}"
"Hexagon" = "משושה"
"Hidden" = "מוסתר"
-"Hide UI" = "הסתר ממשק"
-"Hide contents" = "הסתר תוכן"
-"Hide from publishing" = "הסתר מפרסום"
-"Hide section contents" = "הסתר תוכן מקטע"
-"Hide these tips (Getting started in the Help menu shows them again)" = "הסתר טיפים אלו (׳צעדים ראשונים׳ בתפריט העזרה יציג אותם שוב)"
-"Hide when publishing" = "הסתר בעת פרסום"
-"Highlight layers on hover" = "הדגש שכבות בריחוף"
+"Hide UI" = "הסתרת ממשק"
+"Hide contents" = "הסתרת תוכן"
+"Hide from publishing" = "הסתרה מפרסום"
+"Hide section contents" = "הסתרת תוכן מקטע"
+"Hide these tips (Getting started in the Help menu shows them again)" = "הסתרת טיפים אלו (׳צעדים ראשונים׳ בתפריט העזרה יציג אותם שוב)"
+"Hide when publishing" = "הסתרה בעת פרסום"
+"Highlight layers on hover" = "הדגשת שכבות בריחוף"
"Highlighter" = "מרקר"
"Highlights" = "הבהקים"
-"Hold Alt" = "החזק Alt"
-"Hold Alt+Z" = "החזק Alt+Z"
-"Hold Ctrl" = "החזק Ctrl"
-"Hold Z" = "החזק Z"
-"Hold ⌃ or ⌘" = "החזק ⌃ או ⌘"
-"Hold ⌥" = "החזק ⌥"
-"Hold ⌥Z" = "החזק ⌥Z"
+"Hold Alt" = "החזקת Alt"
+"Hold Alt+Z" = "החזקת Alt+Z"
+"Hold Ctrl" = "החזקת Ctrl"
+"Hold Z" = "החזקת Z"
+"Hold ⌃ or ⌘" = "החזקת ⌃ או ⌘"
+"Hold ⌥" = "החזקת ⌥"
+"Hold ⌥Z" = "החזקת ⌥Z"
"Home" = "בית"
"Horizontal" = "אופקי"
"Horizontal align" = "יישור אופקי"
@@ -706,36 +706,36 @@ status = "draft — needs native review"
"Horizontal padding" = "ריפוד אופקי"
"Horizontal spacing" = "ריווח אופקי"
"Hosted by {operator}" = "מתארח על ידי {operator}"
-"Hover a layer to see its properties" = "רחף מעל שכבה כדי לראות את המאפיינים שלה"
-"Hover other layers to measure the distance" = "רחף מעל שכבות אחרות כדי למדוד את המרחק"
+"Hover a layer to see its properties" = "ריחוף מעל שכבה מציג את המאפיינים שלה"
+"Hover other layers to measure the distance" = "ריחוף מעל שכבות אחרות מודד את המרחק"
"Hue" = "גוון"
-"Hug" = "התאם לתוכן"
-"Hug contents" = "התאם לתוכן"
+Hug = "התאמת לתוכן"
+"Hug contents" = "התאמת לתוכן"
"Huge" = "ענק"
"Icon components on a 24 px grid with keylines and a size preview" = "רכיבי סמלים (אייקונים) על רשת של 24 פיקסלים עם קווי מנחה ותצוגה מקדימה של גדלים"
"Icon set starter" = "ערכת התחלה לסמלים"
"If" = "אם"
"If it keeps happening, please report it at {link} with this message." = "אם הבעיה נמשכת, נא לדווח עליה בכתובת {link} בצירוף הודעה זו."
"If {condition}" = "אם {condition}"
-"Ignore auto layout (absolute position)" = "התעלם מפריסה אוטומטית (מיקום מוחלט)"
-"Ignore overlapping layers" = "התעלם משכבות חופפות"
-"Ignore unsupported" = "התעלם מרכיבים לא נתמכים"
+"Ignore auto layout (absolute position)" = "התעלמות מפריסה אוטומטית (מיקום מוחלט)"
+"Ignore overlapping layers" = "התעלמות משכבות חופפות"
+"Ignore unsupported" = "התעלמות מרכיבים לא נתמכים"
"Image" = "תמונה"
"Images" = "תמונות"
"Import" = "ייבוא"
"Import path" = "נתיב ייבוא"
-"Import plugin from manifest" = "ייבא תוסף מקובץ מניפסט"
-"Import plugin from manifest…" = "ייבא תוסף מקובץ מניפסט…"
+"Import plugin from manifest" = "ייבוא תוסף מקובץ מניפסט"
+"Import plugin from manifest…" = "ייבוא תוסף מקובץ מניפסט…"
"Import report" = "דוח ייבוא"
-"Import variables" = "ייבא משתנים"
+"Import variables" = "ייבוא משתנים"
"Imported document" = "מסמך מיובא"
"Imported {name}" = "{name} יובא"
-"Imported {n} new variables, updated {updated}" = { one = "יובא משתנה חדש {n}, עודכנו {updated}", other = "יובאו {n} משתנים חדשים, עודכנו {updated}" }
+"Imported {n} new variables, updated {updated}" = { one = "יובא {n} משתנה חדש, עודכנו {updated}", other = "יובאו {n} משתנים חדשים, עודכנו {updated}" }
"Import…" = "ייבוא…"
"In an instance, this comes from the main component" = "במופע, הגדרה זו מגיעה מהרכיב הראשי"
-"In the browser you can join sessions the desktop app hosts and files on a FigCraft server. A page opened over https reaches other computers only through wss:// links (a server behind TLS)." = "בדפדפן ניתן להצטרף למפגשים שמארח יישום שולחן העבודה ולקבצים על שרת FigCraft. עמוד שנפתח דרך https מגיע למחשבים אחרים רק דרך קישורי wss:// (שרת מאחורי TLS)."
-"Include bounding box" = "כלול תיבה תוחמת"
-"Include id attribute" = "כלול תכונת id"
+"In the browser you can join sessions the desktop app hosts and files on a FigCraft server. A page opened over https reaches other computers only through wss:// links (a server behind TLS)." = "בדפדפן ניתן להצטרף למפגשים שמארח יישום שולחן העבודה ולקבצים על שרת FigCraft. עמוד שנפתח דרך https מגיע למחשבים אחרים רק דרך קישורי wss:// (שרת מאחורי TLS)."
+"Include bounding box" = "הכללת תיבה תוחמת"
+"Include id attribute" = "הכללת תכונת id"
"Included" = "כלול"
"Included in layout" = "כלול בפריסה האוטומטית"
"Individual corners" = "פינות נפרדות"
@@ -745,9 +745,9 @@ status = "draft — needs native review"
"Inner shadow" = "צל פנימי"
"Inside" = "פנימי"
"Inspect" = "בדיקה"
-"Inspect the layer under the pointer: size, colours, typography" = "בדוק את השכבה מתחת למצביע: גודל, צבעים, טיפוגרפיה"
-"Install" = "התקן"
-"Install plugin" = "התקן תוסף"
+"Inspect the layer under the pointer: size, colours, typography" = "בדיקת השכבה מתחת למצביע: גודל, צבעים, טיפוגרפיה"
+Install = "התקנה"
+"Install plugin" = "התקנת תוסף"
"Installed" = "מותקן"
"Installed {name}" = "{name} הותקן"
"Installing…" = "מתקין…"
@@ -766,17 +766,17 @@ status = "draft — needs native review"
"Intersect" = "חיתוך"
"Intersects" = "חיתוכים"
"Invalid color" = "צבע לא תקין"
-"Invert zoom direction" = "הפוך כיוון תקריב"
+"Invert zoom direction" = "היפוך כיוון תקריב"
"Invite link" = "קישור הזמנה"
"Invite link copied" = "קישור ההזמנה הועתק"
"It asks permission to:" = "התוסף מבקש הרשאה:"
"Jan" = "ינו׳"
-"Join" = "הצטרף"
+Join = "הצטרפות"
"Join code copied" = "קוד ההצטרפות הועתק"
"Join code or invite link" = "קוד הצטרפות או קישור הזמנה"
-"Join live session" = "הצטרף למפגש חי"
-"Join us on Discord" = "הצטרף אלינו ב-Discord"
-"Join with a code" = "הצטרף באמצעות קוד"
+"Join live session" = "הצטרפות למפגש חי"
+"Join us on Discord" = "הצטרפות אלינו ב-Discord"
+"Join with a code" = "הצטרפות באמצעות קוד"
"Joined" = "הצטרפת"
"Joined {file}" = "הצטרפת אל {file}"
"Joining live session…" = "מצטרף להפעלה חיה…"
@@ -787,11 +787,11 @@ status = "draft — needs native review"
"Just now" = "ממש עכשיו"
"Justify" = "יישור דו-צדדי"
"Kanban board" = "לוח קנבן"
-"Keep a measurement on the canvas for developers" = "השאר מדידה על משטח העבודה עבור מפתחים"
-"Keep appearance" = "שמור על המראה"
-"Keep appearance converts every color value to {profile} so colors look the same. Keep values leaves the numbers as they are, so colors shift." = "׳שמור על המראה׳ ממיר כל ערך צבע אל {profile} כך שהצבעים ייראו זהים. ׳שמור על הערכים׳ משאיר את המספרים כפי שהם, כך שהצבעים ישתנו."
-"Keep tool selected after use" = "השאר כלי נבחר לאחר שימוש"
-"Keep values" = "שמור על הערכים"
+"Keep a measurement on the canvas for developers" = "השארת מדידה על משטח העבודה עבור מפתחים"
+"Keep appearance" = "שמירה על המראה"
+"Keep appearance converts every color value to {profile} so colors look the same. Keep values leaves the numbers as they are, so colors shift." = "׳שמירה על המראה׳ ממירה כל ערך צבע אל {profile} כך שהצבעים ייראו זהים. ׳שמירה על הערכים׳ משאירה את המספרים כפי שהם, כך שהצבעים ישתנו."
+"Keep tool selected after use" = "השארת כלי נבחר לאחר שימוש"
+"Keep values" = "שמירה על הערכים"
"Key/Gamepad" = "מקש/בקר משחק"
"Key/Gamepad {key}" = "מקש/בקר משחק {key}"
"Keyboard shortcuts" = "קיצורי מקלדת"
@@ -813,7 +813,7 @@ status = "draft — needs native review"
"Layout grid" = "רשת פריסה"
"Layout grid settings" = "הגדרות רשת פריסה"
"Layout grids" = "רשתות פריסה"
-"Leave session" = "עזוב מפגש"
+"Leave session" = "עזיבת מפגש"
"Leaves" = "עלים"
"Leaving the prototype" = "יוצא מאב-הטיפוס"
"Left" = "שמאל"
@@ -827,9 +827,9 @@ status = "draft — needs native review"
"Libraries" = "ספריות"
"Libraries in this file" = "ספריות בקובץ זה"
"Library updates available" = "קיימים עדכוני ספרייה"
-"Library: click to collapse" = "ספרייה: לחץ לכיווץ"
-"Library: click to expand" = "ספרייה: לחץ להרחבה"
-"Library: its variables are read-only here; edit them in the library file and publish it" = "ספרייה: המשתנים שלה הם לקריאה בלבד כאן; ערוך אותם בקובץ הספרייה ופרסם אותה"
+"Library: click to collapse" = "ספרייה: לחיצה לכיווץ"
+"Library: click to expand" = "ספרייה: לחיצה להרחבה"
+"Library: its variables are read-only here; edit them in the library file and publish it" = "ספרייה: המשתנים שלה הם לקריאה בלבד כאן; יש לערוך אותם בקובץ הספרייה ולפרסם אותה"
"Light" = "בהיר"
"Lighten" = "הבהרה"
"Light|glass" = "תאורה"
@@ -846,9 +846,9 @@ status = "draft — needs native review"
"Link copied" = "הקישור הועתק"
"Link copied: it opens the file in FigCraft" = "הקישור הועתק: הוא פותח את הקובץ ב-FigCraft"
"Link copied: it opens the file in the browser" = "הקישור הועתק: הוא פותח את הקובץ בדפדפן"
-"Link docs, code or tickets for developers." = "קשר תיעוד, קוד או משימות פיתוח עבור מפתחים."
-"Link frames on the Prototype tab, then present the flow" = "קשר מסגרות בלשונית אב-הטיפוס, ולאחר מכן הצג את התזרים"
-"Link this component to its code component: instances then show your real snippet with their values." = "קשר רכיב זה לרכיב הקוד שלו: מופעים יציגו אז את קטע הקוד האמיתי שלך עם הערכים שלהם."
+"Link docs, code or tickets for developers." = "קישור תיעוד, קוד או משימות פיתוח עבור מפתחים."
+"Link frames on the Prototype tab, then present the flow" = "יש לקשר מסגרות בלשונית אב-הטיפוס, ולאחר מכן להציג את התזרים"
+"Link this component to its code component: instances then show your real snippet with their values." = "קישור רכיב זה לרכיב הקוד שלו: מופעים יציגו את קטע הקוד האמיתי עם הערכים שלהם."
"List spacing" = "ריווח רשימה"
"List style" = "סגנון רשימה"
"Live session" = "מפגש חי"
@@ -857,7 +857,7 @@ status = "draft — needs native review"
"Local network" = "רשת מקומית"
"Local styles" = "סגנונות מקומיים"
"Local variables" = "משתנים מקומיים"
-"Lock/Unlock" = "נעל/בטל נעילה"
+"Lock/Unlock" = "נעילה/ביטול נעילה"
"Locked" = "נעול"
"Lowercase" = "אותיות קטנות"
"Luminance" = "בהירות"
@@ -865,15 +865,15 @@ status = "draft — needs native review"
"Main" = "ראשי"
"Main component deleted" = "הרכיב הראשי נמחק"
"Main menu" = "תפריט ראשי"
-"Make a component" = "הפוך לרכיב"
-"Make slot" = "הפוך לחריץ תוכן"
+"Make a component" = "הפיכה לרכיב"
+"Make slot" = "הפיכה לחריץ תוכן"
"Manual input" = "קלט ידני"
"Mar" = "מרץ"
"Margin" = "שוליים"
-"Mark all as read" = "סמן הכול כנקרא"
-"Mark as resolved" = "סמן כטופל"
-"Mark as unread" = "סמן כלא נקרא"
-"Mark as unresolved" = "סמן כלא טופל"
+"Mark all as read" = "סימון הכול כנקרא"
+"Mark as resolved" = "סימון כטופל"
+"Mark as unread" = "סימון כלא נקרא"
+"Mark as unresolved" = "סימון כלא טופל"
"Marker" = "טוש"
"Mask" = "מסכה"
"Mass · Stiffness · Damping" = "מסה · קשיחות · ריסון"
@@ -881,22 +881,22 @@ status = "draft — needs native review"
"Max H" = "גובה מרבי"
"Max W" = "רוחב מרבי"
"Max lines" = "שורות מרביות"
-"Maximize" = "הגדל למקסימום"
+Maximize = "הגדלה למקסימום"
"May" = "מאי"
-"Measure to the selection" = "מדוד עד לבחירה"
+"Measure to the selection" = "מדידה עד לבחירה"
"Measurements" = "מדידות"
"Medium" = "בינוני"
-"Merge into main" = "מזג לקובץ הראשי"
-"Merge regions" = "מזג אזורים"
-"Merge the branch into the main file (one undo step) and archive it" = "מזג את הענף לתוך הקובץ הראשי (צעד ביטול אחד) והעבר אותו לארכיון"
+"Merge into main" = "מיזוג לקובץ הראשי"
+"Merge regions" = "מיזוג אזורים"
+"Merge the branch into the main file (one undo step) and archive it" = "מיזוג הענף לתוך הקובץ הראשי (צעד ביטול אחד) והעברתו לארכיון"
"Merged" = "מוזג"
"Merged PRs" = "בקשות משיכה שמוזגו"
"Min H" = "גובה מזערי"
"Min W" = "רוחב מזערי"
-"Minimize" = "מזער"
+Minimize = "מזעור"
"Minutes" = "דקות"
-"Mirror angle" = "שקף זווית"
-"Mirror angle and length" = "שקף זווית ואורך"
+"Mirror angle" = "שיקוף זווית"
+"Mirror angle and length" = "שיקוף זווית ואורך"
"Mirroring" = "שיקוף"
"Missing" = "חסר"
"Missing fonts" = "גופנים חסרים"
@@ -907,7 +907,7 @@ status = "draft — needs native review"
"Miter angle" = "זווית חיבור חד"
"Mixed" = "מעורב"
"Mixed fonts" = "גופנים מעורבים"
-"Mixed interactions: click + to replace them" = "אינטראקציות מעורבות: לחץ על + כדי להחליפן"
+"Mixed interactions: click + to replace them" = "אינטראקציות מעורבות: יש ללחוץ על + כדי להחליפן"
"Mobile app" = "אפליקציה לנייד"
"Mode" = "מצב"
"Model" = "מודל"
@@ -920,17 +920,17 @@ status = "draft — needs native review"
"Mouse leave" = "יציאת סמן עכבר"
"Mouse up" = "שחרור לחצן עכבר"
"Move" = "הזזה"
-"Move along the toolbar or the layer rows" = "נוע לאורך סרגל הכלים או שורות השכבות"
-"Move column left" = "הזז עמודה שמאלה"
-"Move column right" = "הזז עמודה ימינה"
-"Move down" = "הזז למטה"
-"Move in" = "הכנס פנימה"
-"Move out" = "הוצא החוצה"
-"Move out of any group" = "הוצא מכל קבוצה"
-"Move to group {group}" = "העבר לקבוצה {group}"
+"Move along the toolbar or the layer rows" = "תנועה לאורך סרגל הכלים או שורות השכבות"
+"Move column left" = "הזזת עמודה שמאלה"
+"Move column right" = "הזזת עמודה ימינה"
+"Move down" = "הזזה למטה"
+"Move in" = "הכנסה פנימה"
+"Move out" = "הוצאה החוצה"
+"Move out of any group" = "הוצאה מכל קבוצה"
+"Move to group {group}" = "העברה לקבוצה {group}"
"Move tools" = "כלי הזזה"
-"Move up" = "הזז למעלה"
-"Move up or down while dragging its label" = "הזז למעלה או למטה תוך כדי גרירת התווית"
+"Move up" = "הזזה למעלה"
+"Move up or down while dragging its label" = "הזזה למעלה או למטה תוך כדי גרירת התווית"
"Moved to {name}" = "הועבר אל {name}"
"Multi" = "רב-גוני"
"Multiply" = "הכפלה"
@@ -938,7 +938,7 @@ status = "draft — needs native review"
"Name" = "שם"
"Name (A–Z)" = "שם (א׳–ת׳)"
"Named instance" = "מופע בעל שם"
-"Navigate to" = "נווט אל"
+"Navigate to" = "ניווט אל"
"Nested instance" = "מופע מקונן"
"New board" = "לוח חדש"
"New collection" = "אוסף חדש"
@@ -949,27 +949,27 @@ status = "draft — needs native review"
"Next or previous control in the focused region" = "הפקד הבא או הקודם באזור הממוקד"
"Next ready for dev" = "הבא שמוכן לפיתוח"
"Next size option" = "אפשרות הגודל הבאה"
-"No assets: no export settings, icons or images. Add export settings in the Design tab." = "אין נכסים: אין הגדרות ייצוא, סמלים או תמונות. הוסף הגדרות ייצוא בלשונית העיצוב."
+"No assets: no export settings, icons or images. Add export settings in the Design tab." = "אין נכסים: אין הגדרות ייצוא, סמלים או תמונות. יש להוסיף הגדרות ייצוא בלשונית העיצוב."
"No boolean variables fit here." = "אין משתנים בוליאניים המתאימים לכאן."
-"No boolean variables yet. Create them in Local variables." = "אין עדיין משתנים בוליאניים. צור אותם תחת ׳משתנים מקומיים׳."
+"No boolean variables yet. Create them in Local variables." = "אין עדיין משתנים בוליאניים. יש ליצור אותם תחת ׳משתנים מקומיים׳."
"No branches. A branch is a copy of the file to try changes in, then review and merge." = "אין ענפים. ענף הוא עותק של הקובץ שבו ניתן לנסות שינויים, ולאחר מכן לסקור ולמזג."
"No category" = "ללא קטגוריה"
"No changes" = "ללא שינויים"
"No color styles" = "אין סגנונות צבע"
"No colour variables fit here." = "אין משתני צבע המתאימים לכאן."
-"No colour variables yet. Create them in Local variables." = "אין עדיין משתני צבע. צור אותם תחת ׳משתנים מקומיים׳."
+"No colour variables yet. Create them in Local variables." = "אין עדיין משתני צבע. יש ליצור אותם תחת ׳משתנים מקומיים׳."
"No comments to copy" = "אין הערות להעתקה"
"No comments yet" = "אין עדיין תגובות"
"No compatibility warnings reported" = "לא דווחו אזהרות תאימות"
-"No components yet. Select layers and press {keys}." = "אין עדיין רכיבים. בחר שכבות ולחץ על {keys}."
+"No components yet. Select layers and press {keys}." = "אין עדיין רכיבים. יש לבחור שכבות וללחוץ על {keys}."
"No conflicts." = "אין התנגשויות."
"No contributor data was built into this copy." = "נתוני תורמים לא נכללו בעותק זה."
"No device" = "ללא מכשיר"
-"No files or templates match your search" = "אין קבצים או תבניות התואמים לחיפוש שלך"
+"No files or templates match your search" = "אין קבצים או תבניות התואמים לחיפוש"
"No fonts match" = "אין גופנים תואמים"
-"No join code here (the server is older than join codes, or this address can't be put in one): share the link instead." = "אין קוד הצטרפות כאן (השרת ישן יותר מקודי הצטרפות, או שלא ניתן לקודד כתובת זו בקוד): שתף את הקישור במקום זאת."
+"No join code here (the server is older than join codes, or this address can't be put in one): share the link instead." = "אין קוד הצטרפות כאן (השרת ישן יותר מקודי הצטרפות, או שלא ניתן לקודד כתובת זו בקוד): יש לשתף את הקישור במקום זאת."
"No layer changes to show." = "אין שינויי שכבות להצגה."
-"No libraries yet. Add a .figcraft file that was published as a library, or paste a team library's link." = "אין עדיין ספריות. הוסף קובץ .figcraft שפורסם כספרייה, או הדבק קישור לספריית צוות."
+"No libraries yet. Add a .figcraft file that was published as a library, or paste a team library's link." = "אין עדיין ספריות. יש להוסיף קובץ .figcraft שפורסם כספרייה, או להדביק קישור לספריית צוות."
"No list" = "ללא רשימה"
"No matching comments" = "אין תגובות תואמות"
"No matching components" = "אין רכיבים תואמים"
@@ -979,26 +979,26 @@ status = "draft — needs native review"
"No mirroring" = "ללא שיקוף"
"No model credits were built into this copy." = "קרדיטים של מודלים לא נכללו בעותק זה."
"No number variables fit here." = "אין משתני מספר המתאימים לכאן."
-"No number variables yet. Create them in Local variables." = "אין עדיין משתני מספר. צור אותם תחת ׳משתנים מקומיים׳."
+"No number variables yet. Create them in Local variables." = "אין עדיין משתני מספר. יש ליצור אותם תחת ׳משתנים מקומיים׳."
"No other pages" = "אין עמודים אחרים"
"No paints" = "ללא צבעים"
"No plugins on {server}." = "אין תוספים בשרת {server}."
-"No plugins yet. Import a development plugin from its figcraft-plugin.json." = "אין עדיין תוספים. ייבא תוסף בפיתוח מקובץ figcraft-plugin.json שלו."
+"No plugins yet. Import a development plugin from its figcraft-plugin.json." = "אין עדיין תוספים. יש לייבא תוסף בפיתוח מקובץ figcraft-plugin.json שלו."
"No preferred components" = "אין רכיבים מועדפים"
"No preset" = "ללא תבנית"
-"No saved versions yet. Save a version to mark a point in your work you can come back to." = "אין עדיין גרסאות שמורות. שמור גרסה כדי לסמן נקודה בעבודה שתוכל לחזור אליה."
+"No saved versions yet. Save a version to mark a point in your work you can come back to." = "אין עדיין גרסאות שמורות. שמירת גרסה מסמנת נקודה בעבודה שניתן לחזור אליה."
"No scope is shared by all the selected variables" = "אין תחום משותף לכל המשתנים שנבחרו"
"No scrolling" = "ללא גלילה"
"No shortcuts match" = "אין קיצורי מקלדת תואמים"
"No status" = "ללא סטטוס"
"No string variables fit here." = "אין משתני מחרוזת המתאימים לכאן."
-"No string variables yet. Create them in Local variables." = "אין עדיין משתני מחרוזת. צור אותם תחת ׳משתנים מקומיים׳."
+"No string variables yet. Create them in Local variables." = "אין עדיין משתני מחרוזת. יש ליצור אותם תחת ׳משתנים מקומיים׳."
"No styles yet." = "אין עדיין סגנונות."
-"No styles yet. Click + to create one from the selection." = "אין עדיין סגנונות. לחץ על + כדי ליצור סגנון מהבחירה."
-"No templates match your search" = "אין תבניות התואמות לחיפוש שלך"
-"No text styles yet. Click + to create one from the selected text." = "אין עדיין סגנונות טקסט. לחץ על + כדי ליצור סגנון מהטקסט הנבחר."
+"No styles yet. Click + to create one from the selection." = "אין עדיין סגנונות. יש ללחוץ על + כדי ליצור סגנון מהבחירה."
+"No templates match your search" = "אין תבניות התואמות לחיפוש"
+"No text styles yet. Click + to create one from the selected text." = "אין עדיין סגנונות טקסט. יש ללחוץ על + כדי ליצור סגנון מהטקסט הנבחר."
"No variables fit here." = "אין משתנים המתאימים לכאן."
-"No variables yet. Create them in Local variables." = "אין עדיין משתנים. צור אותם תחת ׳משתנים מקומיים׳."
+"No variables yet. Create them in Local variables." = "אין עדיין משתנים. יש ליצור אותם תחת ׳משתנים מקומיים׳."
"No votes yet" = "אין הצבעות עדיין"
"Nobody else is here yet" = "אף אחד אחר עוד לא נמצא כאן"
"Nobody shares a file there now." = "אף אחד אינו משתף שם קובץ כרגע."
@@ -1008,7 +1008,7 @@ status = "draft — needs native review"
"Normal" = "רגיל"
"Not bound" = "לא מקושר"
"Not checked yet" = "טרם נבדק"
-"Not connected: {reason}. Your work is still in this tab." = "לא מחובר: {reason}. העבודה שלך עדיין שמורה בכרטיסייה זו."
+"Not connected: {reason}. Your work is still in this tab." = "אין חיבור: {reason}. העבודה עדיין שמורה בכרטיסייה זו."
"Not in a live session" = "לא במפגש חי"
"Not in this font" = "לא קיים בגופן זה"
"Not now" = "לא עכשיו"
@@ -1019,8 +1019,8 @@ status = "draft — needs native review"
"Nothing changed since this version." = "דבר לא השתנה מאז גרסה זו."
"Nothing changed since this was marked ready for dev." = "דבר לא השתנה מאז שסומן כמוכן לפיתוח."
"Nothing counted yet" = "לא נספר דבר עדיין"
-"Nothing here yet. Set a frame's status to list it." = "אין כאן דבר עדיין. הגדר סטטוס למסגרת כדי להציגה ברשימה."
-"Nothing online yet. Use Share on a file to put it online and it is listed here." = "אין עדיין קבצים מקוונים. השתמש ב׳שתף׳ בקובץ כדי להעלותו לרשת והוא יופיע כאן."
+"Nothing here yet. Set a frame's status to list it." = "אין כאן דבר עדיין. יש להגדיר מצב למסגרת כדי שתופיע ברשימה."
+"Nothing online yet. Use Share on a file to put it online and it is listed here." = "אין עדיין קבצים מקוונים. שימוש ב׳שיתוף׳ בקובץ יעלה אותו לרשת והוא יופיע כאן."
"Nothing to export" = "אין מה לייצא"
"Nothing to pick: the page is empty" = "אין מה לבחור: העמוד ריק"
"Nov" = "נוב׳"
@@ -1049,39 +1049,39 @@ status = "draft — needs native review"
"Online sharing is off: no server is set in Preferences. Here you can join a shared file." = "השיתוף המקוון כבוי: לא הוגדר שרת בהעדפות. כאן ניתן להצטרף לקובץ משותף."
"Only the first changed layers are listed." = "מוצגות רק השכבות הראשונות שהשתנו."
"Only the first {n} changed layers are listed." = "מוצגות רק {n} השכבות הראשונות שהשתנו."
-"Only your threads" = "רק השרשורים שלך"
+"Only your threads" = "השרשורים האישיים בלבד"
"Opacity" = "אטימות"
"Opacity & blend" = "אטימות ומיזוג"
"Opacity 10%…90%, 0: 100%" = "אטימות 10%…90%, 0: 100%"
-"Open" = "פתח"
-"Open .figcraft, .svg or images" = "פתח קובצי .figcraft, .svg או תמונות"
-"Open branch" = "פתח ענף"
-"Open file" = "פתח קובץ"
-"Open files" = "פתח קבצים"
-"Open in focus view" = "פתח בתצוגת מיקוד"
-"Open in new tab" = "פתח בכרטיסייה חדשה"
-"Open in new window" = "פתח בחלון חדש"
-"Open invite links in FigCraft" = "פתח קישורי הזמנה ב-FigCraft"
-"Open link" = "פתח קישור"
-"Open link {url}" = "פתח קישור {url}"
-"Open overlay" = "פתח שכבת-על"
-"Open presentations" = "פתח מצגות"
-"Open prototype preview" = "פתח תצוגה מקדימה של אב-טיפוס"
-"Open variables ({count})" = "פתח משתנים ({count})"
+Open = "פתיחה"
+"Open .figcraft, .svg or images" = "פתיחת קובצי .figcraft, .svg או תמונות"
+"Open branch" = "פתיחת ענף"
+"Open file" = "פתיחת קובץ"
+"Open files" = "פתיחת קבצים"
+"Open in focus view" = "פתיחה בתצוגת מיקוד"
+"Open in new tab" = "פתיחה בכרטיסייה חדשה"
+"Open in new window" = "פתיחה בחלון חדש"
+"Open invite links in FigCraft" = "פתיחת קישורי הזמנה ב-FigCraft"
+"Open link" = "פתיחת קישור"
+"Open link {url}" = "פתיחת קישור {url}"
+"Open overlay" = "פתיחת שכבת-על"
+"Open presentations" = "פתיחת מצגות"
+"Open prototype preview" = "פתיחת תצוגה מקדימה של אב-טיפוס"
+"Open variables ({count})" = "פתיחת משתנים ({count})"
"Opened as a new document" = "נפתח כמסמך חדש"
"Opened “{name}” in a new tab" = "״{name}״ נפתח בלשונית חדשה"
"Opening the file…" = "פותח את הקובץ…"
-"Opening {n} files as new files" = { one = "פותח קובץ {n} כקובץ חדש", other = "פותח {n} קבצים כקבצים חדשים" }
+"Opening {n} files as new files" = { one = "פתיחת {n} קובץ כקובץ חדש", other = "פתיחת {n} קבצים כקבצים חדשים" }
"Open|comments" = "פתוחות"
"Options" = "אפשרויות"
"Orange" = "כתום"
"Order" = "סדר"
"Other" = "אחר"
-"Other apps may not open every .fig file exported here." = "יישומים אחרים עשויים שלא לפתוח כל קובץ .fig המיוצא מכאן."
-"Others lose access and keep their copy; the file stays on the server for you" = "אחרים מאבדים גישה ושומרים על העותק שלהם; הקובץ נשאר על השרת עבורך"
-"Others type this under Share ▸ Join with a code" = "אחרים מקלידים קוד זה תחת שתף ▸ הצטרף באמצעות קוד"
-"Outline stroke" = "המר קו מתאר לצורה"
-"Outline text" = "המר טקסט לקווי מתאר"
+"Other apps may not open every .fig file exported here." = "יישומים אחרים עשויים שלא לפתוח כל קובץ .fig המיוצא מכאן."
+"Others lose access and keep their copy; the file stays on the server for you" = "אחרים מאבדים גישה ושומרים על העותק שלהם; הקובץ נשאר על השרת, פתוח לבעליו בלבד"
+"Others type this under Share ▸ Join with a code" = "אחרים מקלידים קוד זה תחת שיתוף ▸ הצטרפות באמצעות קוד"
+"Outline stroke" = "המרת קו מתאר לצורה"
+"Outline text" = "המרת טקסט לקווי מתאר"
"Outlines" = "קווי מתאר"
"Outside" = "חיצוני"
"Overflow" = "גלישה"
@@ -1100,8 +1100,8 @@ status = "draft — needs native review"
"Pages added to the document" = "עמודים שנוספו למסמך"
"Pages: {pages}" = "עמודים: {pages}"
"Paint bucket" = "דלי צבע"
-"Pan the canvas" = "הזז את משטח העבודה"
-"Pan with nothing selected (Shift: farther)" = "הזז תצוגה כשדבר אינו נבחר (Shift: מרחק רב יותר)"
+"Pan the canvas" = "הזזת משטח העבודה"
+"Pan with nothing selected (Shift: farther)" = "הזזת תצוגה כשדבר אינו נבחר (Shift: מרחק רב יותר)"
"Panels" = "חלוניות"
"Paper" = "נייר"
"Paragraph indent" = "כניסת פסקה"
@@ -1113,51 +1113,51 @@ status = "draft — needs native review"
"Past 30 days" = "30 הימים האחרונים"
"Past 90 days" = "90 הימים האחרונים"
"Past year" = "השנה האחרונה"
-"Paste a link (https://…)" = "הדבק קישור (https://…)"
-"Paste a team library link (a view link)" = "הדבק קישור לספריית צוות (קישור צפייה)"
-"Paste effect" = "הדבק אפקט"
-"Paste fill" = "הדבק מילוי"
-"Paste here" = "הדבק כאן"
-"Paste stroke" = "הדבק קו מתאר"
-"Paste to replace" = "הדבק להחלפה"
+"Paste a link (https://…)" = "הדבקת קישור (https://…)"
+"Paste a team library link (a view link)" = "הדבקת קישור לספריית צוות (קישור צפייה)"
+"Paste effect" = "הדבקת אפקט"
+"Paste fill" = "הדבקת מילוי"
+"Paste here" = "הדבקה כאן"
+"Paste stroke" = "הדבקת קו מתאר"
+"Paste to replace" = "הדבקה להחלפה"
"Pasted design layers" = "שכבות העיצוב הודבקו"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "שכבות העיצוב הודבקו; הלוח לא הכיל את התמונות של: {layers}"
-"Pasted design layers; {n} kinds of content were left out" = { one = "הודבקו שכבות עיצוב; סוג תוכן {n} הושמט", other = "הודבקו שכבות עיצוב; {n} סוגי תוכן הושמטו" }
+"Pasted design layers; {n} kinds of content were left out" = { one = "הודבקו שכבות עיצוב; {n} סוג תוכן הושמט", other = "הודבקו שכבות עיצוב; {n} סוגי תוכן הושמטו" }
"Pattern" = "תבנית מילוי"
"Pattern alignment" = "יישור דוגמה"
"Pattern scale" = "קנה מידה של דוגמה"
"Pattern source" = "מקור דוגמה"
-"Pause" = "השהה"
+Pause = "השהיה"
"Pen" = "עט"
"Pencil" = "עיפרון"
"Pentagon" = "מחומש"
"People in this file" = "אנשים בקובץ זה"
-"People join from anywhere with a code. The file is kept on {server} while you share it." = "אנשים מצטרפים מכל מקום באמצעות קוד. הקובץ נשמר על {server} בזמן שאתה משתף אותו."
-"People on your network join with a code. Nothing goes through a server." = "אנשים ברשת שלך מצטרפים באמצעות קוד. דבר אינו עובר דרך שרת."
+"People join from anywhere with a code. The file is kept on {server} while you share it." = "ניתן להצטרף מכל מקום באמצעות קוד. הקובץ נשמר על {server} בזמן השיתוף."
+"People on your network join with a code. Nothing goes through a server." = "אנשים ברשת המקומית מצטרפים באמצעות קוד. דבר אינו עובר דרך שרת."
"Phone" = "טלפון"
-"Pick color" = "דגום צבע"
-"Pick color (I)" = "דגום צבע (I)"
-"Pick one font family first" = "בחר תחילה משפחת גופנים אחת"
+"Pick color" = "דגימת צבע"
+"Pick color (I)" = "דגימת צבע (I)"
+"Pick one font family first" = "יש לבחור תחילה משפחת גופנים אחת"
"Pick select: Tab and Shift+Tab move between layers, Enter goes into one, Shift+Enter out, Space selects, Escape cancels" = "בחירת פריט: Tab ו-Shift+Tab עוברים בין שכבות, Enter נכנס לשכבה, Shift+Enter יוצא החוצה, Space בוחר, Escape מבטל"
"Pick select: into a layer, out to its parent" = "בחירת פריט: כניסה לשכבה, יציאה לאב"
"Pick select: next or previous layer" = "בחירת פריט: שכבה הבאה או קודמת"
-"Pick select: select the picked layer" = "בחירת פריט: בחר את השכבה המסומנת"
-"Pick the Frame tool, then drag on the canvas or choose a device size" = "בחר בכלי המסגרת, ואז גרור על משטח העבודה או בחר גודל מכשיר"
-"Pin a property" = "הצמד מאפיין"
+"Pick select: select the picked layer" = "בחירת פריט: בחירת השכבה המסומנת"
+"Pick the Frame tool, then drag on the canvas or choose a device size" = "יש לבחור בכלי המסגרת, ולאחר מכן לגרור על משטח העבודה או לבחור גודל מכשיר"
+"Pin a property" = "הצמדת מאפיין"
"Pinch" = "צביטה"
"Pink" = "ורוד"
"Pixel grid" = "רשת פיקסלים"
"Pixel preview 1x" = "תצוגת פיקסלים 1x"
"Pixel preview 2x" = "תצוגת פיקסלים 2x"
-"Place a shape or frame (its tool chosen)" = "מקם צורה או מסגרת (כשהכלי שלה נבחר)"
-"Place automatically" = "מקם אוטומטית"
-"Place image" = "מקם תמונה"
+"Place a shape or frame (its tool chosen)" = "מיקום צורה או מסגרת (כשהכלי שלה נבחר)"
+"Place automatically" = "מיקום אוטומטי"
+"Place image" = "מיקום תמונה"
"Placed on the current page" = "מוקם בעמוד הנוכחי"
"Playground" = "מגרש ניסויים"
"Plugin" = "תוסף"
"Plugins" = "תוספים"
"Plugins & widgets" = "תוספים וווידג׳טים"
-"Plugins run in FigCraft's sandbox, without files, network or clock. Install only plugins you trust." = "תוספים פועלים בארגז החול (Sandbox) של FigCraft, ללא גישה לקבצים, לרשת או לשעון. התקן רק תוספים שאתה סומך עליהם."
+"Plugins run in FigCraft's sandbox, without files, network or clock. Install only plugins you trust." = "תוספים פועלים בארגז החול (Sandbox) של FigCraft, ללא גישה לקבצים, לרשת או לשעון. יש להתקין רק תוספים מהימנים."
"Plus" = "פלוס"
"Plus darker" = "חיבור כהה (Plus darker)"
"Plus lighter" = "חיבור בהיר (Plus lighter)"
@@ -1168,24 +1168,24 @@ status = "draft — needs native review"
"Polygons" = "מצולעים"
"Port" = "פתחה"
"Position" = "מיקום"
-"Post" = "פרסם"
+Post = "פרסום"
"Predefined process" = "תהליך מוגדר מראש"
"Preferences" = "העדפות"
"Preferred" = "מועדף"
-"Present" = "הצג"
-"Present or preview" = "הצג או צפה בתצוגה מקדימה"
-"Present this flow" = "הצג תזרים זה"
+Present = "הצגה"
+"Present or preview" = "הצגה או תצוגה מקדימה"
+"Present this flow" = "הצגת תזרים זה"
"Presentation" = "מצגת"
"Presentation slides" = "שקופיות מצגת"
"Presenting: comments" = "הצגה: תגובות"
-"Presenting: cycle the size options" = "הצגה: החלף בין אפשרויות הגודל"
+"Presenting: cycle the size options" = "הצגה: החלפה בין אפשרויות הגודל"
"Presenting: full screen" = "הצגה: מסך מלא"
"Presenting: next frame" = "הצגה: המסגרת הבאה"
"Presenting: previous frame" = "הצגה: המסגרת הקודמת"
-"Presenting: restart" = "הצגה: התחל מחדש"
-"Preserve scroll position" = "שמור על מיקום גלילה"
+"Presenting: restart" = "הצגה: התחלה מחדש"
+"Preserve scroll position" = "שמירה על מיקום גלילה"
"Presets" = "תבניות"
-"Press a key…" = "לחץ על מקש…"
+"Press a key…" = "יש ללחוץ על מקש…"
"Pretty" = "מסודר"
"Pretty: full lines, no one word alone on the last" = "מסודר: שורות מלאות, ללא מילה בודדת בשורה האחרונה"
"Preview" = "תצוגה מקדימה"
@@ -1199,19 +1199,19 @@ status = "draft — needs native review"
"Prototype" = "אב-טיפוס"
"Prototype preview" = "תצוגה מקדימה של אב-טיפוס"
"Prototype settings" = "הגדרות אב-טיפוס"
-"Publish" = "פרסם"
-"Publish changes" = "פרסם שינויים"
-"Publish to another server…" = "פרסם לשרת אחר…"
-"Publish to server" = "פרסם לשרת"
+Publish = "פרסום"
+"Publish changes" = "פרסום שינויים"
+"Publish to another server…" = "פרסום לשרת אחר…"
+"Publish to server" = "פרסום לשרת"
"Published version {v}" = "פורסמה גרסה {v}"
"Published version {v} to the server" = "פורסמה גרסה {v} לשרת"
-"Published version {v}: save the file so other files can use it" = "פורסמה גרסה {v}: שמור את הקובץ כדי שקבצים אחרים יוכלו להשתמש בה"
+"Published version {v}: save the file so other files can use it" = "פורסמה גרסה {v}: יש לשמור את הקובץ כדי שקבצים אחרים יוכלו להשתמש בה"
"Published · {people}" = "פורסם · {people}"
"Publishing with the server's key." = "מפרסם באמצעות מפתח השרת."
"Publishing…" = "מפרסם…"
"Push" = "דחיפה"
-"Push changes to main component" = "דחוף שינויים לרכיב הראשי"
-"Put text on path" = "הנח טקסט על נתיב"
+"Push changes to main component" = "דחיפת שינויים לרכיב הראשי"
+"Put text on path" = "הצבת טקסט על נתיב"
"Question" = "שאלה"
"R" = "R"
"Radial" = "מעגלי"
@@ -1223,111 +1223,111 @@ status = "draft — needs native review"
"Recent" = "אחרונים"
"Recent files" = "קבצים אחרונים"
"Recents" = "אחרונים"
-"Recovered {n} unsaved files after the app quit unexpectedly: save them to keep them" = { one = "שוחזר קובץ {n} שלא נשמר לאחר שהיישום נסגר באופן בלתי צפוי: שמור אותו כדי לשמור עליו", other = "שוחזרו {n} קבצים שלא נשמרו לאחר שהיישום נסגר באופן בלתי צפוי: שמור אותם כדי לשמור עליהם" }
+"Recovered {n} unsaved files after the app quit unexpectedly: save them to keep them" = { one = "שוחזר {n} קובץ שלא נשמר לאחר שהיישום נסגר באופן בלתי צפוי: יש לשמור אותו כדי שלא יאבד", other = "שוחזרו {n} קבצים שלא נשמרו לאחר שהיישום נסגר באופן בלתי צפוי: יש לשמור אותם כדי שלא יאבדו" }
"Rectangle" = "מלבן"
"Rectangles" = "מלבנים"
"Red" = "אדום"
-"Reduce motion" = "הפחת תנועה"
+"Reduce motion" = "הפחתת תנועה"
"Refraction" = "שבירת אור"
"Regular expression" = "ביטוי רגולרי"
"Relative to" = "ביחס אל"
-"Relative to your system's display scaling (100% is the system's own size). Document zoom is separate." = "ביחס לקנה המידה של התצוגה במערכת שלך (100% הוא הגודל של המערכת עצמה). זום המסמך נפרד."
-"Reload the page to get back the unsaved files the browser had room for." = "טען מחדש את הדף כדי לשחזר את הקבצים שלא נשמרו שהיה להם מקום בדפדפן."
-"Reload the page to get your unsaved files back." = "טען מחדש את הדף כדי לשחזר את הקבצים שלא נשמרו."
-"Reload the page to start again." = "טען מחדש את הדף כדי להתחיל מחדש."
-"Remove" = "הסר"
-"Remove all" = "הסר הכול"
-"Remove all auto layout" = "הסר כל פריסה אוטומטית"
-"Remove annotation" = "הסר הערת מפתחים"
-"Remove auto layout" = "הסר פריסה אוטומטית"
-"Remove column" = "הסר עמודה"
-"Remove dev resource" = "הסר משאב מפתחים"
-"Remove export setting" = "הסר הגדרת ייצוא"
-"Remove from recents" = "הסר מהאחרונים"
-"Remove from server" = "הסר מהשרת"
-"Remove from server…" = "הסר מהשרת…"
-"Remove guide" = "הסר קו עזר"
-"Remove interaction" = "הסר אינטראקציה"
-"Remove library from this file" = "הסר ספרייה מקובץ זה"
-"Remove measurement" = "הסר מדידה"
-"Remove min and max" = "הסר מינימום ומקסימום"
-"Remove min and max height" = "הסר גובה מזערי ומרבי"
-"Remove min and max width" = "הסר רוחב מזערי ומרבי"
-"Remove regions" = "הסר אזורים"
-"Remove row" = "הסר שורה"
-"Remove slot" = "הסר חריץ תוכן"
-"Remove starting point" = "הסר נקודת התחלה"
-"Remove stop" = "הסר תחנת צבע"
-"Remove text from path" = "הסר טקסט מנתיב"
-"Remove the else and its actions" = "הסר את ה-else ואת הפעולות שלו"
-"Remove these results from the file" = "הסר תוצאות אלה מהקובץ"
-"Remove this condition and its actions" = "הסר תנאי זה ואת הפעולות שלו"
-"Remove this file from the server? It can't be shared or opened from there again. Your copy stays open here." = "להסיר קובץ זה מהשרת? לא ניתן יהיה לשתף או לפתוח אותו משם שוב. העותק שלך נשאר פתוח כאן."
-"Remove {name} from session" = "הסר את {name} מהמפגש"
+"Relative to your system's display scaling (100% is the system's own size). Document zoom is separate." = "ביחס לקנה המידה של התצוגה במערכת (100% הוא הגודל הטבעי של המערכת). מרחק התצוגה של המסמך נפרד."
+"Reload the page to get back the unsaved files the browser had room for." = "יש לטעון מחדש את הדף כדי לשחזר את הקבצים שלא נשמרו שהיה להם מקום בדפדפן."
+"Reload the page to get your unsaved files back." = "יש לטעון מחדש את הדף כדי לשחזר את הקבצים שלא נשמרו."
+"Reload the page to start again." = "יש לטעון מחדש את הדף כדי להתחיל מחדש."
+Remove = "הסרה"
+"Remove all" = "הסרת הכול"
+"Remove all auto layout" = "הסרת כל פריסה אוטומטית"
+"Remove annotation" = "הסרת הערת מפתחים"
+"Remove auto layout" = "הסרת פריסה אוטומטית"
+"Remove column" = "הסרת עמודה"
+"Remove dev resource" = "הסרת משאב מפתחים"
+"Remove export setting" = "הסרת הגדרת ייצוא"
+"Remove from recents" = "הסרה מהאחרונים"
+"Remove from server" = "הסרה מהשרת"
+"Remove from server…" = "הסרה מהשרת…"
+"Remove guide" = "הסרת קו עזר"
+"Remove interaction" = "הסרת אינטראקציה"
+"Remove library from this file" = "הסרת ספרייה מקובץ זה"
+"Remove measurement" = "הסרת מדידה"
+"Remove min and max" = "הסרת מינימום ומקסימום"
+"Remove min and max height" = "הסרת גובה מזערי ומרבי"
+"Remove min and max width" = "הסרת רוחב מזערי ומרבי"
+"Remove regions" = "הסרת אזורים"
+"Remove row" = "הסרת שורה"
+"Remove slot" = "הסרת חריץ תוכן"
+"Remove starting point" = "הסרת נקודת התחלה"
+"Remove stop" = "הסרת תחנת צבע"
+"Remove text from path" = "הסרת טקסט מנתיב"
+"Remove the else and its actions" = "הסרת ה-else והפעולות שלו"
+"Remove these results from the file" = "הסרת תוצאות אלה מהקובץ"
+"Remove this condition and its actions" = "הסרת תנאי זה והפעולות שלו"
+"Remove this file from the server? It can't be shared or opened from there again. Your copy stays open here." = "להסיר קובץ זה מהשרת? לא ניתן יהיה לשתף או לפתוח אותו משם שוב. העותק המקומי יישאר פתוח כאן."
+"Remove {name} from session" = "הסרת {name} מהמפגש"
"Remove {name} from {server}?" = "להסיר את {name} מתוך {server}?"
"Removed" = "הוסר"
"Removed from the server" = "הוסר מהשרת"
"Removed since it was marked" = "הוסר מאז שסומן"
"Removed since this version" = "הוסר מאז גרסה זו"
-"Rename" = "שנה שם"
-"Rename duplicated layers" = "שנה שם לשכבות משוכפלות"
-"Rename folder" = "שנה שם תיקייה"
-"Rename group" = "שנה שם קבוצה"
-"Rename layers" = "שנה שם שכבות"
-"Rename mode" = "שנה שם מצב"
-"Rename on the server" = "שנה שם בשרת"
-"Rename on the server…" = "שנה שם בשרת…"
-"Rename page" = "שנה שם עמוד"
-"Rename to" = "שנה שם ל-"
-"Reorder selection" = "סדר מחדש בחירה"
-"Replace all" = "החלף הכול"
-"Replace mixed export settings" = "החלף הגדרות ייצוא מעורבות"
-"Replace with" = "החלף ב-"
-"Replace with a new interaction" = "החלף באינטראקציה חדשה"
-"Reply" = "השב"
-"Report" = "דווח"
-"Report this file…" = "דווח על קובץ זה…"
+Rename = "שינוי שם"
+"Rename duplicated layers" = "שינוי שם לשכבות משוכפלות"
+"Rename folder" = "שינוי שם תיקייה"
+"Rename group" = "שינוי שם קבוצה"
+"Rename layers" = "שינוי שם שכבות"
+"Rename mode" = "שינוי שם מצב"
+"Rename on the server" = "שינוי שם בשרת"
+"Rename on the server…" = "שינוי שם בשרת…"
+"Rename page" = "שינוי שם עמוד"
+"Rename to" = "שינוי שם ל-"
+"Reorder selection" = "סידור מחדש של הבחירה"
+"Replace all" = "החלפת הכול"
+"Replace mixed export settings" = "החלפת הגדרות ייצוא מעורבות"
+"Replace with" = "החלפה ב-"
+"Replace with a new interaction" = "החלפה באינטראקציה חדשה"
+Reply = "תשובה"
+Report = "דיווח"
+"Report this file…" = "דיווח על קובץ זה…"
"Reset" = "איפוס"
-"Reset adjustments" = "אפס התאמות"
-"Reset all changes" = "אפס את כל השינויים"
-"Reset all overrides on this layer" = "אפס את כל דריסות הערכים בשכבה זו"
-"Reset grid" = "אפס רשת"
-"Reset overrides" = "אפס דריסות ערכים"
-"Reset slot" = "אפס חריץ תוכן"
-"Reset this override" = "אפס דריסת ערך זו"
-"Reset to style" = "אפס לסגנון"
-"Reset to the inherited value" = "אפס לערך שעבר בירושה"
-"Resize by the nudge amount" = "שנה גודל לפי מרחק ההזזה הקלה"
-"Resize frames to the device's screen (or the window without a device): their constraints and auto layout respond" = "שנה גודל מסגרות למסך המכשיר (או לחלון ללא מכשיר): האילוצים והפריסה האוטומטית שלהן מגיבים בהתאם"
-"Resize to fit" = "שנה גודל להתאמה"
+"Reset adjustments" = "איפוס התאמות"
+"Reset all changes" = "איפוס כל השינויים"
+"Reset all overrides on this layer" = "איפוס כל דריסות הערכים בשכבה זו"
+"Reset grid" = "איפוס רשת"
+"Reset overrides" = "איפוס דריסות ערכים"
+"Reset slot" = "איפוס חריץ תוכן"
+"Reset this override" = "איפוס דריסת ערך זו"
+"Reset to style" = "איפוס לסגנון"
+"Reset to the inherited value" = "איפוס לערך שעבר בירושה"
+"Resize by the nudge amount" = "שינוי גודל לפי מרחק ההזזה הקלה"
+"Resize frames to the device's screen (or the window without a device): their constraints and auto layout respond" = "שינוי גודל מסגרות למסך המכשיר (או לחלון ללא מכשיר): האילוצים והפריסה האוטומטית שלהן מגיבים בהתאם"
+"Resize to fit" = "שינוי גודל להתאמה"
"Resizing" = "שינוי גודל"
-"Resolve" = "סמן כטופל"
-"Resolve change" = "סמן שינוי כטופל"
+Resolve = "סימון כטופל"
+"Resolve change" = "סימון שינוי כטופל"
"Resolved" = "טופל"
"Responsive" = "רספונסיבי"
-"Restart" = "התחל מחדש"
-"Restore" = "שחזר"
-"Restore main component" = "שחזר רכיב ראשי"
-"Restore this version" = "שחזר גרסה זו"
+Restart = "התחלה מחדש"
+Restore = "שחזור"
+"Restore main component" = "שחזור רכיב ראשי"
+"Restore this version" = "שחזור גרסה זו"
"Restored “{name}”" = "״{name}״ שוחזר"
"Results" = "תוצאות"
"Resume" = "המשך"
"Retrospective" = "רטרוספקטיבה"
-"Retry now" = "נסה שוב כעת"
-"Reverse the order" = "הפוך את הסדר"
+"Retry now" = "ניסיון חוזר כעת"
+"Reverse the order" = "היפוך הסדר"
"Reversed triangle" = "משולש הפוך"
-"Review and merge" = "סקור ומזג"
+"Review and merge" = "סקירה ומיזוג"
"Ribbon" = "סרט"
"Right" = "ימין"
"Right padding" = "ריפוד ימני"
"Right side" = "צד ימין"
"Right side width" = "רוחב צד ימין"
"Right to left" = "מימין לשמאל"
-"Rotate 90°" = "סובב ב-90°"
-"Rotate 90° right" = "סובב ב-90° ימינה"
-"Rotate a degree (Shift: 15)" = "סובב במעלה אחת (Shift: 15)"
-"Rotate to landscape" = "סובב לתצוגה אופקית"
-"Rotate to portrait" = "סובב לתצוגה אנכית"
+"Rotate 90°" = "סיבוב ב-90°"
+"Rotate 90° right" = "סיבוב ב-90° ימינה"
+"Rotate a degree (Shift: 15)" = "סיבוב במעלה אחת (Shift: 15)"
+"Rotate to landscape" = "סיבוב לתצוגה אופקית"
+"Rotate to portrait" = "סיבוב לתצוגה אנכית"
"Rotation" = "סיבוב"
"Rotation jitter" = "שונות סיבוב"
"Round" = "עגול"
@@ -1340,22 +1340,22 @@ status = "draft — needs native review"
"Rows" = "שורות"
"Rows {count}" = "שורות {count}"
"Rulers" = "סרגלים"
-"Run" = "הרץ"
-"Run {label}" = "הרץ את {label}"
+Run = "הרצה"
+"Run {label}" = "הרצת {label}"
"SHA-256: {sha}…" = "SHA-256: {sha}…"
"Same as file ({profile})" = "זהה לקובץ ({profile})"
"Same as layer" = "כמו השכבה"
"Saturation" = "רוויה"
-"Save" = "שמור"
-"Save a copy…" = "שמור עותק…"
+Save = "שמירה"
+"Save a copy…" = "שמירת עותק…"
"Save as" = "שמירה בשם"
-"Save as preset…" = "שמור כתבנית…"
-"Save file" = "שמור קובץ"
-"Save files automatically" = "שמור קבצים אוטומטית"
-"Save version {key}" = "שמור גרסה {key}"
+"Save as preset…" = "שמירה כתבנית…"
+"Save file" = "שמירת קובץ"
+"Save files automatically" = "שמירת קבצים אוטומטית"
+"Save version {key}" = "שמירת גרסה {key}"
"Saved" = "נשמר"
"Saved {name}" = "{name} נשמר"
-"Say something" = "אמור משהו"
+"Say something" = "כתיבת הודעה"
"Scale" = "קנה מידה"
"Scatter" = "פיזור"
"Scope" = "תחום שימוש"
@@ -1365,109 +1365,109 @@ status = "draft — needs native review"
"Scoping: where pickers offer it" = "תחום: היכן בוררים מציעים אותו"
"Screen" = "מסך"
"Scroll behavior" = "התנהגות גלילה"
-"Scroll to" = "גלול אל"
-"Scroll to layer" = "גלול אל שכבה"
+"Scroll to" = "גלילת אל"
+"Scroll to layer" = "גלילת אל שכבה"
"Scroll wheel zoom" = "תקריב עם גלגל העכבר"
-"Scroll with parent" = "גלול עם האב"
-"Scrub a field faster (2x) or slower (1/2, 1/4)" = "גרור ערך בשדה מהר יותר (2x) או לאט יותר (1/2, 1/4)"
+"Scroll with parent" = "גלילת עם האב"
+"Scrub a field faster (2x) or slower (1/2, 1/4)" = "גרירת ערך בשדה מהר יותר (2x) או לאט יותר (1/2, 1/4)"
"Scrubbing at 1/2" = "גרירה בקצב 1/2"
"Scrubbing at 1/4" = "גרירה בקצב 1/4"
"Scrubbing at 1x" = "גרירה בקצב 1x"
"Scrubbing at 2x" = "גרירה בקצב 2x"
"Search" = "חיפוש"
-"Search actions, layers and tools" = "חפש פעולות, שכבות וכלים"
-"Search assets" = "חפש נכסים"
-"Search comments" = "חפש הערות"
-"Search files and templates" = "חפש קבצים ותבניות"
-"Search fonts" = "חפש גופנים"
-"Search layers" = "חפש שכבות"
-"Search pages" = "חפש עמודים"
-"Search plugins" = "חפש תוספים"
+"Search actions, layers and tools" = "חיפוש פעולות, שכבות וכלים"
+"Search assets" = "חיפוש נכסים"
+"Search comments" = "חיפוש הערות"
+"Search files and templates" = "חיפוש קבצים ותבניות"
+"Search fonts" = "חיפוש גופנים"
+"Search layers" = "חיפוש שכבות"
+"Search pages" = "חיפוש עמודים"
+"Search plugins" = "חיפוש תוספים"
"Search results" = "תוצאות חיפוש"
-"Search shortcuts" = "חפש קיצורי מקשים"
-"Search templates" = "חפש תבניות"
+"Search shortcuts" = "חיפוש קיצורי מקשים"
+"Search templates" = "חיפוש תבניות"
"Section" = "מקטע"
"Section color" = "צבע מקטע"
"Sections" = "מקטעים"
-"See all templates" = "הצג את כל התבניות"
-"Select a frame and add a starting point to present it as a flow." = "בחר מסגרת והוסף נקודת התחלה כדי להציג אותה כזרימה."
-"Select a frame to preview it" = "בחר מסגרת לתצוגה מקדימה"
-"Select a layer to see its properties and code" = "בחר שכבה כדי לראות את המאפיינים והקוד שלה"
-"Select a row, a column or a full grid of three or more layers, outside an auto layout flow" = "בחר שורה, עמודה או רשת מלאה של שלוש שכבות או יותר, מחוץ לזרימת פריסה אוטומטית"
-"Select all" = "בחר הכול"
-"Select all with same" = "בחר הכול עם אותו"
-"Select layer" = "בחר שכבה"
-"Select layers and they space themselves as their content changes" = "בחר שכבות והן ירווחו את עצמן כשהתוכן שלהן משתנה"
-"Select layers to apply the style to" = "בחר שכבות להחלת הסגנון עליהן"
-"Select layers with this color" = "בחר שכבות עם צבע זה"
-"Select overlapping shapes" = "בחר צורות חופפות"
-"Select points to edit their position, radius and mirroring" = "בחר נקודות כדי לערוך את המיקום, הרדיוס והשיקוף שלהן"
-"Select slot" = "בחר משבצת"
+"See all templates" = "הצגת כל התבניות"
+"Select a frame and add a starting point to present it as a flow." = "יש לבחור מסגרת ולהוסיף נקודת התחלה כדי להציג אותה כזרימה."
+"Select a frame to preview it" = "יש לבחור מסגרת לתצוגה מקדימה"
+"Select a layer to see its properties and code" = "יש לבחור שכבה כדי לראות את המאפיינים והקוד שלה"
+"Select a row, a column or a full grid of three or more layers, outside an auto layout flow" = "יש לבחור שורה, עמודה או רשת מלאה של שלוש שכבות או יותר, מחוץ לזרימת פריסה אוטומטית"
+"Select all" = "בחירת הכול"
+"Select all with same" = "בחירת הכול עם אותו"
+"Select layer" = "בחירת שכבה"
+"Select layers and they space themselves as their content changes" = "בחירת שכבות מאפשרת להן להתרווח אוטומטית כשהתוכן שלהן משתנה"
+"Select layers to apply the style to" = "יש לבחור שכבות להחלת הסגנון עליהן"
+"Select layers with this color" = "בחירת שכבות עם צבע זה"
+"Select overlapping shapes" = "בחירת צורות חופפות"
+"Select points to edit their position, radius and mirroring" = "יש לבחור נקודות כדי לערוך את המיקום, הרדיוס והשיקוף שלהן"
+"Select slot" = "בחירת משבצת"
"Selection" = "בחירה"
"Selection box, {w} by {h} at {x}, {y}: arrows move it, Shift+arrows or {cmd}+arrows size it, Enter selects, Escape cancels" = "תיבת בחירה, {w} על {h} ב־{x}, {y}: חצים מזיזים אותה, Shift+חצים או {cmd}+חצים משנים את גודלה, Enter בוחר, Escape מבטל"
"Selection box: arrows move it, Shift+arrows or {cmd}+arrows size it, Enter selects, Escape cancels" = "תיבת בחירה: חצים מזיזים אותה, Shift+חצים או {cmd}+חצים משנים את גודלה, Enter בוחר, Escape מבטל"
-"Selection box: switch to pick select" = "תיבת בחירה: עבור לבחירת פריט"
+"Selection box: switch to pick select" = "תיבת בחירה: מעבר לבחירת פריט"
"Selection colors" = "צבעי הבחירה"
-"Send backward" = "העבר אחורה"
-"Send report" = "שלח דיווח"
-"Send to back" = "העבר לרקע"
+"Send backward" = "העברה אחורה"
+"Send report" = "שליחת דיווח"
+"Send to back" = "העברה לרקע"
"Sep" = "ספט׳"
"Server address" = "כתובת שרת"
"Server address (ws://host:47900/)" = "כתובת שרת (ws://host:47900/)"
"Server for online sharing" = "שרת לשיתוף מקוון"
"Server key" = "מפתח שרת"
-"Set as default" = "הגדר כברירת מחדל"
-"Set as opening page" = "הגדר כעמוד פתיחה"
-"Set corner smoothing to 60%" = "הגדר החלקת פינות ל־60%"
-"Set fill container" = "הגדר מילוי המכל"
-"Set hug contents" = "הגדר התאמה לתוכן"
-"Set variable" = "הגדר משתנה"
-"Set variable mode" = "הגדר מצב משתנה"
-"Set variable {name}" = "הגדר משתנה {name}"
-"Set {name} to {value}" = "הגדר את {name} ל־{value}"
+"Set as default" = "הגדרה כברירת מחדל"
+"Set as opening page" = "הגדרה כעמוד פתיחה"
+"Set corner smoothing to 60%" = "הגדרת החלקת פינות ל־60%"
+"Set fill container" = "הגדרת מילוי המכל"
+"Set hug contents" = "הגדרת התאמה לתוכן"
+"Set variable" = "הגדרת משתנה"
+"Set variable mode" = "הגדרת מצב משתנה"
+"Set variable {name}" = "הגדרת משתנה {name}"
+"Set {name} to {value}" = "הגדרת {name} ל־{value}"
"Shadows" = "צללים"
"Shape" = "צורה"
"Shape builder" = "בונה צורות"
"Shape tools" = "כלי צורות"
"Shapes" = "צורות"
"Share" = "שיתוף"
-"Share this file" = "שתף קובץ זה"
-"Share with a code" = "שתף באמצעות קוד"
+"Share this file" = "שיתוף קובץ זה"
+"Share with a code" = "שיתוף באמצעות קוד"
"Share: live session, export" = "שיתוף: מפגש חי, ייצוא"
"Shared" = "משותף"
-"Shared by your team on {server}" = "שותף על ידי הצוות שלך ב-{server}"
-"Shared: copy its code from the file's menu" = "משותף: העתק את הקוד שלו מתפריט הקובץ"
+"Shared by your team on {server}" = "שותף על ידי הצוות ב-{server}"
+"Shared: copy its code from the file's menu" = "משותף: ניתן להעתיק את הקוד מתפריט הקובץ"
"Sharing on the local network (online sharing is off: no server is set in Preferences)." = "משתף ברשת המקומית (שיתוף מקוון כבוי: לא הוגדר שרת בהעדפות)."
-"Sharing on your network · {people}" = "משתף ברשת שלך · {people}"
+"Sharing on your network · {people}" = "שיתוף ברשת המקומית · {people}"
"Sharing online · {people}" = "משתף באופן מקוון · {people}"
-"Sharing stopped: the file stays on the server, open only to you" = "השיתוף הופסק: הקובץ נשאר בשרת, פתוח רק לך"
-"Show" = "הצג"
-"Show all templates" = "הצג את כל התבניות"
-"Show and move the placement crosshair (its tool chosen, nothing selected)" = "הצג והזז את כוונת המיקום (כשהכלי נבחר ושום דבר אינו נבחר)"
-"Show as grid" = "הצג כרשת"
-"Show as list" = "הצג כרשימה"
-"Show autosaves" = "הצג שמירות אוטומטיות"
-"Show behind transparent areas" = "הצג מאחורי אזורים שקופים"
-"Show comments (Shift+C)" = "הצג הערות (Shift+C)"
-"Show device frame" = "הצג מסגרת מכשיר"
-"Show dimensions on objects" = "הצג מידות על אובייקטים"
-"Show hotspot hints" = "הצג רמזי נקודות חמות"
-"Show in Explorer" = "הצג בסייר הקבצים"
-"Show in Finder" = "הצג ב־Finder"
-"Show in folder" = "הצג בתיקייה"
-"Show only this on the canvas" = "הצג רק את זה על משטח העבודה"
-"Show open" = "הצג פתוחים"
-"Show section contents" = "הצג תוכן מקטע"
-"Show this layer" = "הצג שכבה זו"
-"Show usage" = "הצג שימוש"
-"Show/Hide" = "הצג/הסתר"
-"Show/Hide UI" = "הצג/הסתר ממשק"
+"Sharing stopped: the file stays on the server, open only to you" = "השיתוף הופסק: הקובץ נשאר בשרת, פתוח רק לבעליו"
+Show = "הצגה"
+"Show all templates" = "הצגת כל התבניות"
+"Show and move the placement crosshair (its tool chosen, nothing selected)" = "הצגה והזזה של כוונת המיקום (כשהכלי נבחר ושום דבר אינו נבחר)"
+"Show as grid" = "הצגה כרשת"
+"Show as list" = "הצגה כרשימה"
+"Show autosaves" = "הצגת שמירות אוטומטיות"
+"Show behind transparent areas" = "הצגה מאחורי אזורים שקופים"
+"Show comments (Shift+C)" = "הצגת הערות (Shift+C)"
+"Show device frame" = "הצגת מסגרת מכשיר"
+"Show dimensions on objects" = "הצגת מידות על אובייקטים"
+"Show hotspot hints" = "הצגת רמזי נקודות חמות"
+"Show in Explorer" = "הצגה בסייר הקבצים"
+"Show in Finder" = "הצגה ב־Finder"
+"Show in folder" = "הצגה בתיקייה"
+"Show only this on the canvas" = "הצגת פריט זה בלבד על משטח העבודה"
+"Show open" = "הצגת פתוחים"
+"Show section contents" = "הצגת תוכן מקטע"
+"Show this layer" = "הצגת שכבה זו"
+"Show usage" = "הצגת שימוש"
+"Show/Hide" = "הצגה/הסתרה"
+"Show/Hide UI" = "הצגה/הסתרת ממשק"
"Side by side" = "זה לצד זה"
"Sidebar" = "סרגל צד"
-"Simplify stroke" = "פשט קו מתאר"
+"Simplify stroke" = "פישוט קו מתאר"
"Size" = "גודל"
"Size jitter" = "רעידת גודל"
-"Skip ink" = "דלג על דיו"
+"Skip ink" = "דילוג על דיו"
"Slashed zero" = "אפס משוסף"
"Slice" = "חיתוך"
"Slices" = "חיתוכים"
@@ -1480,19 +1480,19 @@ status = "draft — needs native review"
"Small capitals" = "אותיות רישיות קטנות"
"Small caps" = "רישיות קטנות"
"Smart animate" = "הנפשה חכמה"
-"Snap to pixel grid" = "הצמד לרשת הפיקסלים"
+"Snap to pixel grid" = "הצמדה לרשת הפיקסלים"
"Social and slides" = "מדיה חברתית ומצגות"
"Social media" = "מדיה חברתית"
"Social post sizes" = "גדלי פוסטים חברתיים"
"Soft light" = "אור רך"
"Solid" = "אחיד"
-"Some variants have the same property values: give each one a unique combination" = "לכמה וריאנטים יש אותם ערכי מאפיינים: תן לכל אחד שילוב ייחודי"
+"Some variants have the same property values: give each one a unique combination" = "לכמה וריאנטים יש אותם ערכי מאפיינים: יש לתת לכל אחד שילוב ייחודי"
"Someone who left" = "משתתף שעזב"
"Sort" = "מיון"
-"Sort by" = "מיין לפי"
-"Sort by date" = "מיין לפי תאריך"
-"Sort by page" = "מיין לפי עמוד"
-"Sort by {column}" = "מיין לפי {column}"
+"Sort by" = "מיון לפי"
+"Sort by date" = "מיון לפי תאריך"
+"Sort by page" = "מיון לפי עמוד"
+"Sort by {column}" = "מיון לפי {column}"
"Space" = "רווח"
"Space around" = "מרווח מסביב"
"Space between" = "מרווח בין"
@@ -1503,7 +1503,7 @@ status = "draft — needs native review"
"Spam, stolen work, abuse…" = "ספאם, עבודה גנובה, שימוש לרעה…"
"Speech bubble" = "בועת דיבור"
"Splay" = "מניפה"
-"Spotlight me" = "מקד זרקור עליי"
+"Spotlight me" = "מיקוד זרקור עליי"
"Spread" = "התפשטות"
"Square" = "ריבוע"
"Stamp" = "חותמת"
@@ -1513,15 +1513,15 @@ status = "draft — needs native review"
"Star" = "כוכב"
"Stars" = "כוכבים"
"Start" = "התחלה"
-"Start ascending from / stop descending at" = "התחל לעלות מ־ / הפסק לרדת ב־"
-"Start from a blank canvas" = "התחל ממשטח עבודה ריק"
-"Start from a template" = "התחל מתבנית"
+"Start ascending from / stop descending at" = "התחלה בעלייה מ־ / עצירה בירידה ב־"
+"Start from a blank canvas" = "התחלה ממשטח עבודה ריק"
+"Start from a template" = "התחלה מתבנית"
"Start on path" = "התחלה על הנתיב"
-"Start on the Home screen" = "התחל במסך הבית"
+"Start on the Home screen" = "התחלה במסך הבית"
"Start point" = "נקודת התחלה"
-"Start sharing" = "התחל שיתוף"
-"Start sharing with the Share button, then pass on the code it gives" = "התחל שיתוף באמצעות כפתור השיתוף, ולאחר מכן העבר את הקוד שניתן"
-"Start vote" = "התחל הצבעה"
+"Start sharing" = "התחלת שיתוף"
+"Start sharing with the Share button, then pass on the code it gives" = "יש להתחיל שיתוף באמצעות כפתור השיתוף, ולאחר מכן להעביר את הקוד שניתן"
+"Start vote" = "התחלת הצבעה"
"Starting to share…" = "מתחיל שיתוף…"
"Status" = "מצב"
"Sticky" = "דביק"
@@ -1529,12 +1529,12 @@ status = "draft — needs native review"
"Sticky note colors" = "צבעי פתקית דביקה"
"Sticky notes" = "פתקים דביקים"
"Sticky notes, shapes and connectors" = "פתקיות דביקות, צורות ומחברים"
-"Stop" = "עצור"
-"Stop following {name}" = "הפסק לעקוב אחר {name}"
-"Stop session" = "הפסק מפגש"
-"Stop sharing" = "הפסק שיתוף"
-"Stop spotlighting" = "הפסק זרקור"
-"Stop timer" = "עצור טיימר"
+Stop = "עצירה"
+"Stop following {name}" = "הפסקת מעקב אחר {name}"
+"Stop session" = "הפסקת מפגש"
+"Stop sharing" = "הפסקת שיתוף"
+"Stop spotlighting" = "הפסקת זרקור"
+"Stop timer" = "עצירת טיימר"
"Stop {n} {hex}" = "עצירה {n} {hex}"
"Straight" = "ישר"
"Stretch" = "מתיחה"
@@ -1557,16 +1557,16 @@ status = "draft — needs native review"
"Subtracts" = "חיסורים"
"Suffix" = "סיומת"
"Superscript" = "כתב עילי"
-"Suspend snapping while dragging" = "השהה הצמדה בזמן גרירה"
-"Swap instance" = "החלף מופע"
-"Swap library: use another library's assets of the same names" = "החלף ספרייה: השתמש בנכסים של ספרייה אחרת בעלי אותם שמות"
-"Swap orientation" = "החלף כיוון"
-"Swap overlay" = "החלף שכבת־על"
-"Swap to {name}" = "החלף אל {name}"
-"Swap width and height" = "החלף רוחב וגובה"
+"Suspend snapping while dragging" = "השהיית הצמדה בזמן גרירה"
+"Swap instance" = "החלפת מופע"
+"Swap library: use another library's assets of the same names" = "החלפת ספרייה: שימוש בנכסים של ספרייה אחרת בעלי אותם שמות"
+"Swap orientation" = "החלפת כיוון"
+"Swap overlay" = "החלפת שכבת־על"
+"Swap to {name}" = "החלפה אל {name}"
+"Swap width and height" = "החלפת רוחב וגובה"
"Swapped instance" = "המופע הוחלף"
-"Swapped {n} assets" = { one = "הוחלף נכס {n}", other = "הוחלפו {n} נכסים" }
-"Swapped {n} assets; {missed} had no match and still use the old library" = { one = "הוחלף נכס {n}; ל־{missed} לא נמצאה התאמה והם עדיין משתמשים בספרייה הישנה", other = "הוחלפו {n} נכסים; ל־{missed} לא נמצאה התאמה והם עדיין משתמשים בספרייה הישנה" }
+"Swapped {n} assets" = { one = "הוחלף {n} נכס", other = "הוחלפו {n} נכסים" }
+"Swapped {n} assets; {missed} had no match and still use the old library" = { one = "הוחלף {n} נכס; ל־{missed} לא נמצאה התאמה והם עדיין משתמשים בספרייה הישנה", other = "הוחלפו {n} נכסים; ל־{missed} לא נמצאה התאמה והם עדיין משתמשים בספרייה הישנה" }
"Sweep" = "מניפה"
"System" = "מערכת"
"Tab / Shift+Tab" = "Tab / Shift+Tab"
@@ -1574,11 +1574,11 @@ status = "draft — needs native review"
"Table" = "טבלה"
"Tablet" = "טאבלט"
"Tabular numbers" = "מספרים טבלאיים"
-"Take the results off the board; they stay in the file" = "הסר את התוצאות מהלוח; הן יישארו בקובץ"
-"Take the values from the first selected layer" = "קח את הערכים מהשכבה הנבחרת הראשונה"
+"Take the results off the board; they stay in the file" = "הסרת התוצאות מהלוח; הן יישארו בקובץ"
+"Take the values from the first selected layer" = "לקיחת הערכים מהשכבה הנבחרת הראשונה"
"Taper" = "היצרות"
"Taper both ends" = "היצרות בשני הקצוות"
-"Tell the server's operator what is wrong with it" = "ספר למפעיל השרת מה לא תקין בו"
+"Tell the server's operator what is wrong with it" = "פירוט מה לא תקין עבור מפעיל השרת"
"Temperature" = "טמפרטורה"
"Template" = "תבנית"
"Templates" = "תבניות"
@@ -1594,60 +1594,60 @@ status = "draft — needs native review"
"Texts" = "טקסטים"
"Texture" = "מרקם"
"The bars are hidden. {shortcut} shows them again" = "הסרגלים מוסתרים. {shortcut} יציג אותם שוב"
-"The canvas previews colors in sRGB; PNG, JPG and WebP exports that use the file's profile are tagged Display P3." = "משטח העבודה מציג צבעים בתצוגה מקדימה ב-sRGB; ייצוא PNG, JPG ו-WebP המשתמש בפרופיל הקובץ מתויג כ-Display P3."
+"The canvas previews colors in sRGB; PNG, JPG and WebP exports that use the file's profile are tagged Display P3." = "משטח העבודה מציג צבעים בתצוגה מקדימה ב-sRGB; ייצוא PNG, JPG ו-WebP המשתמש בפרופיל הקובץ מתויג כ-Display P3."
"The destination document is unavailable. Nothing was imported." = "מסמך היעד אינו זמין. דבר לא יובא."
"The destination document was closed. Nothing was imported." = "מסמך היעד נסגר. דבר לא יובא."
"The destination page was removed. Nothing was imported." = "עמוד היעד הוסר. דבר לא יובא."
"The file is deleted from the server: nobody can open or join it from there again, and this can't be undone. Copies that are open stay with whoever has them." = "הקובץ נמחק מהשרת: איש אינו יכול לפתוח או להצטרף אליו משם שוב, ולא ניתן לבטל זאת. עותקים פתוחים נשארים אצל מי שמחזיק בהם."
"The file now holds another library" = "הקובץ מכיל כעת ספרייה אחרת"
"The file now holds another library (\"{name}\")" = "הקובץ מכיל כעת ספרייה אחרת (\"{name}\")"
-"The files you shared or published online from this computer. They stay on their server until you remove them." = "הקבצים ששיתפת או פרסמת באופן מקוון ממחשב זה. הם נשארים בשרת שלהם עד שתסיר אותם."
-"The link carries the session's secret: share it only with people you invite." = "הקישור מכיל את סוד המפגש: שתף אותו רק עם אנשים שאתה מזמין."
-"The name in your online files and on the server. The document inside keeps its own name." = "השם בקבצים המקוונים שלך ובשרת. המסמך בפנים שומר על שמו."
-"The selection uses several text styles: click to apply one" = "הבחירה משתמשת במספר סגנונות טקסט: לחץ כדי להחיל אחד"
+"The files you shared or published online from this computer. They stay on their server until you remove them." = "הקבצים ששותפו או פורסמו באופן מקוון ממחשב זה. הם נשארים בשרת שלהם עד להסרתם."
+"The link carries the session's secret: share it only with people you invite." = "הקישור מכיל את סוד המפגש: יש לשתף אותו רק עם מוזמנים."
+"The name in your online files and on the server. The document inside keeps its own name." = "השם ברשימת הקבצים המקוונים ובשרת. המסמך בפנים שומר על שמו."
+"The selection uses several text styles: click to apply one" = "הבחירה משתמשת במספר סגנונות טקסט: לחיצה להחלת אחד מהם"
"The server deletes this file if nobody opens it before {date}." = "השרת מוחק קובץ זה אם איש לא יפתח אותו לפני {date}."
"The whole file" = "כל הקובץ"
-"The window is too small for {size}%, so the interface is drawn at {drawn}%. Make the window larger to use {size}%." = "החלון קטן מדי עבור {size}%, ולכן הממשק מצויר ב־{drawn}%. הגדל את החלון כדי להשתמש ב־{size}%."
+"The window is too small for {size}%, so the interface is drawn at {drawn}%. Make the window larger to use {size}%." = "החלון קטן מדי עבור {size}%, ולכן הממשק מצויר ב־{drawn}%. יש להגדיל את החלון כדי להשתמש ב־{size}%."
"Theme" = "ערכת נושא"
"There's no destination for that action" = "אין יעד לפעולה זו"
"Thickness" = "עובי"
"This branch can't be reviewed: {e}" = "לא ניתן לסקור ענף זה: {e}"
"This branch was merged or archived." = "ענף זה מוזג או הועבר לארכיון."
"This computer only" = "מחשב זה בלבד"
-"This computer remembers the owner token, so the file can be managed from the home screen's Online list. Copy it to manage the file from somewhere else: it is a password for this file and won't be shown again." = "מחשב זה זוכר את אסימון הבעלים, כך שניתן לנהל את הקובץ מרשימת המקוונים במסך הבית. העתק אותו כדי לנהל את הקובץ ממקום אחר: זוהי סיסמה עבור קובץ זה והיא לא תוצג שוב."
+"This computer remembers the owner token, so the file can be managed from the home screen's Online list. Copy it to manage the file from somewhere else: it is a password for this file and won't be shown again." = "מחשב זה זוכר את אסימון הבעלים, כך שניתן לנהל את הקובץ מרשימת המקוונים במסך הבית. יש להעתיק אותו לניהול ממקום אחר: זוהי סיסמה עבור קובץ זה והיא לא תוצג שוב."
"This condition is edited as an expression" = "תנאי זה נערך כביטוי"
"This file" = "קובץ זה"
-"This file is on {server}, open only to you. Share it to let others in with a new code." = "קובץ זה נמצא ב־{server}, פתוח רק לך. שתף אותו כדי לאפשר לאחרים להיכנס עם קוד חדש."
+"This file is on {server}, open only to you. Share it to let others in with a new code." = "קובץ זה נמצא ב־{server}, פתוח רק לבעליו. יש לשתף אותו כדי לאפשר לאחרים להיכנס עם קוד חדש."
"This file is too large to join here (up to {mb} MB)" = "קובץ זה גדול מדי להצטרפות כאן (עד {mb} מ״ב)"
-"This file uses fonts that aren't installed on this computer. Their text is drawn in a fallback font until you install them." = "קובץ זה משתמש בגופנים שאינם מותקנים במחשב זה. הטקסט שלהם מצויר בגופן חלופי עד שתתקין אותם."
-"This file uses team libraries on servers you haven't used here. They aren't contacted until you check them." = "קובץ זה משתמש בספריות צוות בשרתים שלא השתמשת בהם כאן. לא נוצר עמם קשר עד שתסמן אותם."
+"This file uses fonts that aren't installed on this computer. Their text is drawn in a fallback font until you install them." = "קובץ זה משתמש בגופנים שאינם מותקנים במחשב זה. הטקסט שלהם מצויר בגופן חלופי עד להתקנתם."
+"This file uses team libraries on servers you haven't used here. They aren't contacted until you check them." = "קובץ זה משתמש בספריות צוות בשרתים שלא נעשה בהם שימוש כאן. לא נוצר עמם קשר עד לסימונם."
"This frame is new on the branch." = "מסגרת זו חדשה בענף."
"This frame isn't on the branch." = "מסגרת זו אינה בענף."
"This link opens a website outside the prototype:" = "קישור זה פותח אתר אינטרנט מחוץ לאב־הטיפוס:"
-"This link opens your mail app to write a message:" = "קישור זה פותח את יישום הדואר שלך לכתיבת הודעה:"
-"This page keeps the owner token only while it is open. Copy it to manage the file later: it is a password for this file and won't be shown again." = "דף זה שומר את אסימון הבעלים רק כל עוד הוא פתוח. העתק אותו כדי לנהל את הקובץ בהמשך: זו סיסמה לקובץ והיא לא תוצג שוב."
+"This link opens your mail app to write a message:" = "קישור זה פותח את יישום הדואר לכתיבת הודעה:"
+"This page keeps the owner token only while it is open. Copy it to manage the file later: it is a password for this file and won't be shown again." = "דף זה שומר את אסימון הבעלים רק כל עוד הוא פתוח. יש להעתיק אותו כדי לנהל את הקובץ בהמשך: זו סיסמה לקובץ והיא לא תוצג שוב."
"This server doesn't count detached instances" = "שרת זה אינו סופר מופעים מנותקים"
"This server doesn't count insertions" = "שרת זה אינו סופר הוספות"
"This server doesn't count styles and variables" = "שרת זה אינו סופר סגנונות ומשתנים"
"This server is open to the public: no key needed." = "שרת זה פתוח לציבור: אין צורך במפתח."
-"This server needs its key: add ?key=… to the address (`figcraft-server key` prints it on the server's machine)." = "שרת זה דורש את המפתח שלו: הוסף ?key=… לכתובת (`figcraft-server key` מדפיס אותו במכונת השרת)."
-"This server takes files only with its key: see Advanced." = "שרת זה מקבל קבצים רק עם המפתח שלו: ראה מתקדם."
+"This server needs its key: add ?key=… to the address (`figcraft-server key` prints it on the server's machine)." = "שרת זה דורש את המפתח שלו: יש להוסיף ?key=… לכתובת (הפקודה `figcraft-server key` מדפיסה אותו במכונת השרת)."
+"This server takes files only with its key: see Advanced." = "שרת זה מקבל קבצים רק עם המפתח שלו: תחת ׳מתקדם׳."
"This variant's value" = "הערך של וריאנט זה"
"This version can't be read." = "לא ניתן לקרוא גרסה זו."
"This version doesn't have it: all of it is new." = "בגרסה זו אין את זה: הכול חדש."
"Thumbs up" = "לייק"
-"Tidy up" = "סדר באופן אחיד"
+"Tidy up" = "סידור באופן אחיד"
"Tile" = "אריח"
"Tile type" = "סוג אריח"
"Timer" = "טיימר"
"Tint" = "גוון"
"Title" = "כותרת"
"Title case" = "אות רישית בראש מילה"
-"To share this library with your team, publish the file to a server (Share ▸ Publish to server…), then publish the library there." = "כדי לשתף ספרייה זו עם הצוות שלך, פרסם את הקובץ לשרת (שיתוף ▸ פרסם לשרת…), ואז פרסם את הספרייה שם."
+"To share this library with your team, publish the file to a server (Share ▸ Publish to server…), then publish the library there." = "כדי לשתף ספרייה זו עם הצוות, יש לפרסם את הקובץ לשרת (שיתוף ▸ פרסום לשרת…), ולאחר מכן לפרסם את הספרייה שם."
"To the layer around it" = "לשכבה שמסביב"
-"Toggle" = "החלף מצב"
-"Toggle light/dark theme" = "החלף ערכת נושא בהירה/כהה"
-"Toggle visibility" = "הצג/הסתר נראות"
+Toggle = "החלפת מצב"
+"Toggle light/dark theme" = "החלפת ערכת נושא בהירה/כהה"
+"Toggle visibility" = "החלפת מצב נראות"
"Tools" = "כלים"
"Top" = "למעלה"
"Top & bottom" = "למעלה ולמטה"
@@ -1662,51 +1662,51 @@ status = "draft — needs native review"
"Trigger" = "טריגר"
"Trigger layer" = "שכבת הפעלה"
"True" = "אמת"
-"Truncate text" = "קצץ טקסט"
-"Truncate with an ellipsis" = "קצץ עם שלוש נקודות"
-"Try again" = "נסה שוב"
-"Try another search or filter." = "נסה חיפוש או מסנן אחר."
-"Try another search, or browse templates." = "נסה חיפוש אחר, או עיין בתבניות."
-"Try another word, or look at every kind." = "נסה מילה אחרת, או הצג את כל הסוגים."
-"Turn a layer into a component, reuse it, and change every copy at once" = "הפוך שכבה לרכיב, השתמש בה שוב, ושנה כל עותק בבת אחת"
+"Truncate text" = "קיצוץ טקסט"
+"Truncate with an ellipsis" = "קיצוץ עם שלוש נקודות"
+"Try again" = "ניסיון חוזר"
+"Try another search or filter." = "יש לנסות חיפוש או מסנן אחר."
+"Try another search, or browse templates." = "יש לנסות חיפוש אחר, או לעיין בתבניות."
+"Try another word, or look at every kind." = "יש לנסות מילה אחרת, או להציג את כל הסוגים."
+"Turn a layer into a component, reuse it, and change every copy at once" = "הפיכת שכבה לרכיב, שימוש חוזר בו ועדכון כל העותקים בבת אחת"
"Two digits" = "שתי ספרות"
"Type" = "סוג"
"Type settings" = "הגדרות טיפוגרפיה"
-"Type the join code you were given, or paste an invite link." = "הקלד את קוד ההצטרפות שקיבלת, או הדבק קישור הזמנה."
+"Type the join code you were given, or paste an invite link." = "יש להקליד את קוד ההצטרפות שהתקבל, או להדביק קישור הזמנה."
"Typography" = "טיפוגרפיה"
"Underline" = "קו תחתון"
-"Undo takes back only your own changes; what others changed since stays." = "ביטול פעולה מחזיר רק את השינויים שלך; מה שאחרים שינו מאז נשאר."
-"Ungroup" = "פרק קבוצה"
+"Undo takes back only your own changes; what others changed since stays." = "ביטול פעולה מחזיר רק את השינויים האישיים; מה שאחרים שינו מאז נשאר."
+Ungroup = "פירוק קבוצה"
"Uniform" = "אחיד"
"Union" = "איחוד"
"Unions" = "איחודים"
"Unknown — treated as sRGB" = "לא ידוע — מטופל כ־sRGB"
"Unread" = "לא נקרא"
-"Unresolve" = "סמן כלא נפתר"
+Unresolve = "סימון כלא טופל"
"Unsaved changes" = "שינויים שלא נשמרו"
"Unsaved changes in {names}. Save them before closing?" = "שינויים שלא נשמרו ב־{names}. לשמור אותם לפני הסגירה?"
"Up" = "למעלה"
-"Update" = "עדכן"
+Update = "עדכון"
"Update check is not supported in the web browser." = "בדיקת עדכונים אינה נתמכת בדפדפן האינטרנט."
-"Update from main" = "עדכן מהראשי"
-"Update from selection" = "עדכן מהבחירה"
-"Update plugin" = "עדכן תוסף"
+"Update from main" = "עדכון מהראשי"
+"Update from selection" = "עדכון מהבחירה"
+"Update plugin" = "עדכון תוסף"
"Updated {components} and {styles}" = "עודכנו {components} ו־{styles}"
"Updated {name}" = "{name} עודכן"
-"Updating the graphics driver often helps. To use OpenGL only, start FigCraft from a Command Prompt with:" = "עדכון מנהל ההתקן הגרפי עוזר לעיתים קרובות. כדי להשתמש ב־OpenGL בלבד, הפעל את FigCraft משורת הפקודה עם:"
+"Updating the graphics driver often helps. To use OpenGL only, start FigCraft from a Command Prompt with:" = "עדכון מנהל ההתקן הגרפי עוזר לעיתים קרובות. כדי להשתמש ב־OpenGL בלבד, יש להפעיל את FigCraft משורת הפקודה עם:"
"Updating the graphics driver often helps. WGPU_BACKEND (vulkan, gl, metal) names another graphics API to try." = "עדכון מנהל ההתקן הגרפי עוזר לעיתים קרובות. WGPU_BACKEND (vulkan, gl, metal) מציין API גרפי אחר לנסות."
-"Upload from computer" = "העלה מהמחשב"
-"Uploads this file to a FigCraft server and keeps this tab in sync with it. You get a link to edit and a link to view." = "מעלה קובץ זה לשרת FigCraft ושומר על כרטיסייה זו מסונכרנת איתו. תקבל קישור לעריכה וקישור לצפייה."
+"Upload from computer" = "העלאת מהמחשב"
+"Uploads this file to a FigCraft server and keeps this tab in sync with it. You get a link to edit and a link to view." = "מעלה קובץ זה לשרת FigCraft ושומר על כרטיסייה זו מסונכרנת איתו. בתום ההעלאה מתקבלים קישור לעריכה וקישור לצפייה."
"Uppercase" = "אותיות רישיות"
-"Use a fixed value" = "השתמש בערך קבוע"
-"Use an expression, e.g. count + 1" = "השתמש בביטוי, למשל count + 1"
-"Use as mask" = "השתמש כמסכה"
-"Use auto layout" = "השתמש בפריסה אוטומטית"
-"Use fonts installed on this computer…" = "השתמש בגופנים המותקנים במחשב זה…"
-"Use number keys for opacity" = "השתמש במקשי המספרים לאטימות"
-"Use the .figcraft or .fig extension." = "השתמש בסיומת .figcraft או .fig."
-"Use the layer's fill" = "השתמש במילוי השכבה"
-"Use your browser's zoom to change the interface size." = "השתמש במרחק התצוגה של הדפדפן כדי לשנות את גודל הממשק."
+"Use a fixed value" = "שימוש בערך קבוע"
+"Use an expression, e.g. count + 1" = "שימוש בביטוי, למשל count + 1"
+"Use as mask" = "שימוש כמסכה"
+"Use auto layout" = "שימוש בפריסה אוטומטית"
+"Use fonts installed on this computer…" = "שימוש בגופנים המותקנים במחשב זה…"
+"Use number keys for opacity" = "שימוש במקשי המספרים לאטימות"
+"Use the .figcraft or .fig extension." = "יש להשתמש בסיומת .figcraft או .fig."
+"Use the layer's fill" = "שימוש במילוי השכבה"
+"Use your browser's zoom to change the interface size." = "יש להשתמש במרחק התצוגה של הדפדפן כדי לשנות את גודל הממשק."
"Used in {files} · {instances}" = "בשימוש ב־{files} · {instances}"
"Username" = "שם משתמש"
"Uses variables: each layer shows them in its own mode" = "משתמש במשתנים: כל שכבה מציגה אותם במצב שלה"
@@ -1735,7 +1735,7 @@ status = "draft — needs native review"
"View link" = "קישור צפייה"
"View link copied" = "קישור הצפייה הועתק"
"View only" = "צפייה בלבד"
-"View only: you see every change as it happens but can't edit. Leave to keep a copy you can edit." = "צפייה בלבד: אתה רואה כל שינוי בזמן אמת אך אינך יכול לערוך. עזוב כדי לשמור עותק שניתן לערוך."
+"View only: you see every change as it happens but can't edit. Leave to keep a copy you can edit." = "צפייה בלבד: ניתן לראות כל שינוי בזמן אמת אך ללא אפשרות עריכה. ניתן לעזוב כדי לשמור עותק הניתן לעריכה."
"Viewing “{name}”" = "צופה ב־״{name}״"
"Violet" = "סגול"
"Visibility" = "נראות"
@@ -1756,10 +1756,10 @@ status = "draft — needs native review"
"Weight" = "משקל"
"What changed since a saved version" = "מה השתנה מאז גרסה שמורה"
"What changed since it was marked ready for dev" = "מה השתנה מאז שסומן כמוכן לפיתוח"
-"What is wrong with this file? The server's operator gets your report." = "מה לא תקין בקובץ זה? מפעיל השרת מקבל את הדיווח שלך."
+"What is wrong with this file? The server's operator gets your report." = "מה לא תקין בקובץ זה? מפעיל השרת מקבל את הדיווח."
"What it's for" = "למה זה מיועד"
-"What this changed from isn't known: it changed before FigCraft kept a copy of ready-for-dev frames. Resolve the change (or mark it ready again) to compare from now on." = "לא ידוע ממה זה השתנה: השינוי בוצע לפני ש־FigCraft שמר עותק של מסגרות המוכנות לפיתוח. סמן את השינוי כנפתר (או סמן כמוכן שוב) כדי להשוות מעתה והלאה."
-"What you try here changes this preview and the code below, not the file" = "מה שתנסה כאן משנה תצוגה מקדימה זו ואת הקוד למטה, לא את הקובץ"
+"What this changed from isn't known: it changed before FigCraft kept a copy of ready-for-dev frames. Resolve the change (or mark it ready again) to compare from now on." = "לא ידוע ממה זה השתנה: השינוי בוצע לפני ש־FigCraft שמר עותק של מסגרות המוכנות לפיתוח. יש לסמן את השינוי כטופל (או לסמן כמוכן שוב) כדי להשוות מעתה והלאה."
+"What you try here changes this preview and the code below, not the file" = "ניסויים כאן משנים תצוגה מקדימה זו ואת הקוד למטה, לא את הקובץ"
"When marked ready" = "כאשר סומן כמוכן"
"While hovering" = "בזמן ריחוף"
"While pressing" = "בזמן לחיצה"
@@ -1775,31 +1775,31 @@ status = "draft — needs native review"
"Wireframe kit" = "ערכת Wireframe"
"With the layers' export settings" = "עם הגדרות הייצוא של השכבות"
"Wrap" = "גלישה"
-"Wrap in new section" = "עטוף במקטע חדש"
+"Wrap in new section" = "עטיפה במקטע חדש"
"Wrap style" = "סגנון גלישת שורות"
"Yellow" = "צהוב"
"Yesterday" = "אתמול"
"You" = "את/ה"
-"You'll get the shared file as a new tab and edit it together." = "תקבל את הקובץ המשותף ככרטיסייה חדשה ותערכו אותו יחד."
-"You're spotlighting: everyone follows your view" = "הזרקור עליך: כולם עוקבים אחר התצוגה שלך"
-"Your copy of the file stays open" = "העותק שלך של הקובץ נשאר פתוח"
-"Your copy stays open; the file stays on the server" = "העותק שלך נשאר פתוח; הקובץ נשאר בשרת"
-"Your name" = "השם שלך"
-"Your system asks for reduced motion: animations stay off." = "המערכת שלך מבקשת הפחתת תנועה: ההנפשות נשארות כבויות."
+"You'll get the shared file as a new tab and edit it together." = "הקובץ המשותף ייפתח בכרטיסייה חדשה לעריכה משותפת."
+"You're spotlighting: everyone follows your view" = "הזרקור פועל: כולם עוקבים אחר תצוגה זו"
+"Your copy of the file stays open" = "העותק המקומי של הקובץ נשאר פתוח"
+"Your copy stays open; the file stays on the server" = "העותק המקומי נשאר פתוח; הקובץ נשאר בשרת"
+"Your name" = "השם המוצג"
+"Your system asks for reduced motion: animations stay off." = "המערכת מבקשת הפחתת תנועה: ההנפשות נשארות כבויות."
"Your unsaved files were too large for the browser to keep." = "הקבצים שלא נשמרו היו גדולים מדי לשמירה בדפדפן."
"Z" = "Z"
"Z to A" = "ת׳ עד א׳"
"Zoom" = "מרחק תצוגה"
-"Zoom around the pointer" = "שנה מרחק תצוגה סביב המצביע"
-"Zoom device to fill window" = "התאם מרחק תצוגת מכשיר למילוי החלון"
+"Zoom around the pointer" = "שינוי מרחק תצוגה סביב המצביע"
+"Zoom device to fill window" = "התאמת מרחק תצוגת מכשיר למילוי החלון"
"Zoom in" = "התקרבות"
"Zoom out" = "התרחקות"
"Zoom to 100%" = "מרחק תצוגה 100%"
"Zoom to 200%" = "מרחק תצוגה 200%"
"Zoom to 50%" = "מרחק תצוגה 50%"
-"Zoom to fit" = "התאם לחלון"
-"Zoom to selection" = "התאם לבחירה"
-"Zoom tool: click to zoom in, drag an area" = "כלי מרחק תצוגה: לחץ להתקרבות, גרור אזור"
+"Zoom to fit" = "התאמת לחלון"
+"Zoom to selection" = "התאמת לבחירה"
+"Zoom tool: click to zoom in, drag an area" = "כלי מרחק תצוגה: לחיצה להתקרבות, גרירת אזור"
"Zoom tool: zoom out" = "כלי מרחק תצוגה: התרחקות"
"and {n} more" = { one = "ועוד {n}", other = "ועוד {n}" }
"bleed marks" = "סימני גלישה"
@@ -1853,7 +1853,7 @@ status = "draft — needs native review"
"instances that would nest a component inside itself were imported as frames" = "מופעים שהיו מקננים רכיב בתוך עצמו יובאו כמסגרות"
"instances whose component was past the layer limit were imported as frames" = "מופעים שהרכיב שלהם חרג ממגבלת השכבות יובאו כמסגרות"
"instances without a main component were imported as empty frames" = "מופעים ללא רכיב ראשי יובאו כמסגרות ריקות"
-"invalid internal .fig text path data was ignored" = "נתוני נתיב טקסט פנימיים לא תקינים של .fig התעלמו"
+"invalid internal .fig text path data was ignored" = "נתוני נתיב טקסט פנימיים לא תקינים של .fig לא יובאו"
"invalid or oversized vector networks import as outlines" = "רשתות וקטורים לא תקינות או חורגות בגודלן מיובאות כקווי מתאר"
"invalid or oversized vector path data was skipped" = "נתוני נתיב וקטור לא תקינים או חורגים בגודלם דולגו"
"invalid vector region fill paint list; layer fill used" = "רשימת מילויי אזור וקטורי לא תקינה; נעשה שימוש במילוי השכבה"
@@ -1878,7 +1878,7 @@ status = "draft — needs native review"
"note or shape generated children exceed the layer or nesting limit; remaining children skipped" = "צאצאים שנוצרו של פתק או צורה חורגים ממגבלת השכבות או הקינון; שאר הצאצאים דולגו"
"note or shape generated layout is missing or unsupported; using its outer frame" = "הפריסה שנוצרה של פתק או צורה חסרה או לא נתמכת; נעשה שימוש במסגרת החיצונית"
"now" = "עכשיו"
-"offer files to save if it asks to (you choose where each one goes)" = "הצע קבצים לשמירה כשמתבקש (אתה בוחר היכן לשמור כל אחד)"
+"offer files to save if it asks to (you choose where each one goes)" = "הצעת קבצים לשמירה לפי בקשה (בחירת מיקום השמירה בכל קובץ)"
"only in a text style or variable" = "רק בסגנון טקסט או במשתנה"
"or" = "או"
"point stroke joins were preserved; dashed or variable-width strokes render with the layer join" = "חיבורי קו מתאר של נקודות נשמרו; קווי מתאר מקווקווים או ברוחב משתנה מרונדרים עם חיבור השכבה"
@@ -1906,7 +1906,7 @@ status = "draft — needs native review"
"slot layers without a matching slot property were imported as frames" = "שכבות משבצת ללא מאפיין משבצת תואם יובאו כמסגרות"
"some vector points refer to point settings missing from the file; they use the layer's joins and plain corners" = "חלק מנקודות הווקטור מפנות להגדרות נקודה החסרות בקובץ; הן משתמשות בחיבורי השכבה ובפינות רגילות"
"some vector segments refer to style settings missing from the file; they use the layer's stroke" = "חלק ממקטעי הווקטור מפנים להגדרות סגנון החסרות בקובץ; הם משתמשים בקו המתאר של השכבה"
-"stale or invalid grid track sizing entries were ignored" = "ערכי גודל מסלולי רשת מיושנים או לא תקינים התעלמו"
+"stale or invalid grid track sizing entries were ignored" = "ערכי גודל מסלולי רשת מיושנים או לא תקינים לא יובאו"
"stars and polygons without point counts or geometry use the default point count" = "כוכבים ומצולעים ללא מספר קודקודים או גאומטריה משתמשים במספר הקודקודים כברירת מחדל"
"sticky layers import as frames with their text" = "שכבות פתקים דביקים מיובאות כמסגרות עם הטקסט שלהן"
"style settings of some vector segments aren't supported; those segments use the layer's stroke" = "הגדרות סגנון של חלק ממקטעי הווקטור אינן נתמכות; מקטעים אלה משתמשים בקו המתאר של השכבה"
@@ -1915,13 +1915,13 @@ status = "draft — needs native review"
"text style overrides refer to missing table entries" = "דריסות סגנון טקסט מפנות לערכי טבלה חסרים"
"the file has no pages" = "בקובץ אין עמודים"
"the plugin" = "התוסף"
-"the variables JSON has no `variableCollections` (expected the local variables response) and was ignored" = "ב־JSON המשתנים אין `variableCollections` (צפויה תגובת המשתנים המקומיים) והוא התעלם"
+"the variables JSON has no `variableCollections` (expected the local variables response) and was ignored" = "ב־JSON המשתנים אין `variableCollections` (צפויה תגובת המשתנים המקומיים) ולכן לא נעשה בו שימוש"
"this session only" = "מפגש זה בלבד"
"unknown component property types were skipped" = "סוגי מאפייני רכיב לא מוכרים דולגו"
"variable aliases to variables that aren't in the variables JSON (or of another type) were skipped" = "כינויי משתנים למשתנים שאינם ב־JSON המשתנים (או מסוג אחר) דולגו"
"variable bindings to properties the layer doesn't have were skipped" = "קישורי משתנים למאפיינים שאין לשכבה דולגו"
"variable bindings to variables that aren't in the variables JSON (library variables) were skipped" = "קישורי משתנים למשתנים שאינם ב־JSON המשתנים (משתני ספרייה) דולגו"
-"variable bindings were skipped: the file JSON has no variable definitions (pass the local variables JSON as `variables`, or embed its `meta` next to the file JSON)" = "קישורי משתנים דולגו: ב־JSON הקובץ אין הגדרות משתנים (העבר את JSON המשתנים המקומיים כ־`variables`, או הטמע את `meta` שלו לצד JSON הקובץ)"
+"variable bindings were skipped: the file JSON has no variable definitions (pass the local variables JSON as `variables`, or embed its `meta` next to the file JSON)" = "קישורי משתנים דולגו: ב־JSON הקובץ אין הגדרות משתנים (יש להעביר את JSON המשתנים המקומיים כ־`variables`, או להטמיע את `meta` שלו לצד JSON הקובץ)"
"variable bindings whose variable type doesn't fit the property were skipped" = "קישורי משתנים שסוג המשתנה שלהם אינו מתאים למאפיין דולגו"
"variable collections without modes were skipped" = "אוספי משתנים ללא מצבים דולגו"
"variable mode lookups in prototype expressions that aren't a variable and one of its modes were skipped" = "חיפושי מצב משתנה בביטויי אב־טיפוס שאינם משתנה ואחד ממצביו דולגו"
@@ -1936,7 +1936,7 @@ status = "draft — needs native review"
"vector region paint data exceeded import limits and was skipped" = "נתוני הצבע של אזור וקטורי חרגו ממגבלות הייבוא ודולגו"
"vector region references a missing fill style; layer fill used" = "אזור וקטורי מפנה לסגנון מילוי חסר; נעשה שימוש במילוי השכבה"
"vectors without geometry are empty" = "וקטורים ללא גאומטריה הם ריקים"
-"vectors without geometry are empty (export the file JSON with geometry=paths)" = "וקטורים ללא גאומטריה הם ריקים (ייצא את JSON הקובץ עם geometry=paths)"
+"vectors without geometry are empty (export the file JSON with geometry=paths)" = "וקטורים ללא גאומטריה הם ריקים (יש לייצא את JSON הקובץ עם geometry=paths)"
"very long text was cut to 1,048,576 characters" = "טקסט ארוך מאוד נחתך ל־1,048,576 תווים"
"very long vector paths were skipped" = "נתיבי וקטור ארוכים מאוד דולגו"
"video actions are not supported and were skipped" = "פעולות וידאו אינן נתמכות ודולגו"
@@ -1947,13 +1947,13 @@ status = "draft — needs native review"
"{instances} in {files}" = "{instances} ב־{files}"
"{language}: draft translation, waiting for a native speaker's review." = "{language}: תרגום טיוטה, ממתין לסקירת דובר שפת אם."
"{length} bleed" = "גלישה של {length}"
-"{month} {day}, {year}" = "{day} ב{month}, {year}"
-"{name}\nClick to apply to the selection" = "{name}\nלחץ להחלה על הבחירה"
-"{name}\nDrag onto the canvas, or click to place in the middle of the view.\nHold Alt (Option) while dropping onto an instance to swap it." = "{name}\nגרור אל משטח העבודה, או לחץ למיקום במרכז התצוגה.\nהחזק Alt (Option) בעת שחרור על מופע כדי להחליפו."
+"{month} {day}, {year}" = "{day} ב{month} {year}"
+"{name}\nClick to apply to the selection" = "{name}\nלחיצה להחלה על הבחירה"
+"{name}\nDrag onto the canvas, or click to place in the middle of the view.\nHold Alt (Option) while dropping onto an instance to swap it." = "{name}\nגרירה אל משטח העבודה, או לחיצה למיקום במרכז התצוגה.\nהחזקת Alt (Option) בעת שחרור על מופע תחליף אותו."
"{name} (from {library})" = "{name} (מתוך {library})"
"{name} (you)" = "{name} (את/ה)"
"{name} ({layers} layers)" = "{name} ({layers} שכבות)"
-"{name} ({tag}): {min} – {max}, default {default}. Double-click the slider to go back to the style's value; Escape while dragging cancels." = "{name} ({tag}): {min} – {max}, ברירת מחדל {default}. לחץ לחיצה כפולה על המחוון כדי לחזור לערך הסגנון; Escape בזמן גרירה מבטל."
+"{name} ({tag}): {min} – {max}, default {default}. Double-click the slider to go back to the style's value; Escape while dragging cancels." = "{name} ({tag}): {min} – {max}, ברירת מחדל {default}. לחיצה כפולה על המחוון מחזירה לערך הסגנון; Escape בזמן גרירה מבטל."
"{name} cleared from the list" = "{name} נוקה מהרשימה"
"{name} from {path}" = "{name} מתוך {path}"
"{name} is forgotten on this computer; the file stays on {server}" = "{name} נשכח במחשב זה; הקובץ נשאר ב־{server}"
@@ -1970,44 +1970,44 @@ status = "draft — needs native review"
"{name} ×{n}" = "{name} ×{n}"
"{name}, disconnected from its live session" = "{name}, נותק מההפעלה החיה שלו"
"{name}, in a live session" = "{name}, במפגש חי"
-"{name}, online, open only to you" = "{name}, מקוון, פתוח רק לך"
+"{name}, online, open only to you" = "{name}, מקוון, פתוח לבעליו בלבד"
"{name}, {kind}, {w} by {h}, selected" = "{name}, {kind}, {w} על {h}, נבחר"
"{n} added" = { one = "{n} נוסף", other = "{n} נוספו" }
-"{n} autosave versions" = { one = "גרסת שמירה אוטומטית {n}", other = "{n} גרסאות שמירה אוטומטית" }
+"{n} autosave versions" = { one = "{n} גרסת שמירה אוטומטית", other = "{n} גרסאות שמירה אוטומטית" }
"{n} changed" = { one = "{n} שונה", other = "{n} שונו" }
-"{n} columns" = { one = "עמודה {n}", other = "{n} עמודות" }
-"{n} components" = { one = "רכיב {n}", other = "{n} רכיבים" }
-"{n} components and styles have newer versions" = { one = "לרכיב או סגנון {n} יש גרסה חדשה יותר", other = "ל־{n} רכיבים וסגנונות יש גרסאות חדשות יותר" }
-"{n} conflicts to resolve" = { one = "התנגשות {n} לפתרון", other = "{n} התנגשויות לפתרון" }
-"{n} days ago" = { one = "לפני יום {n}", other = "לפני {n} ימים" }
+"{n} columns" = { one = "{n} עמודה", other = "{n} עמודות" }
+"{n} components" = { one = "{n} רכיב", other = "{n} רכיבים" }
+"{n} components and styles have newer versions" = { one = "ל־{n} רכיב או סגנון יש גרסה חדשה יותר", other = "ל־{n} רכיבים וסגנונות יש גרסאות חדשות יותר" }
+"{n} conflicts to resolve" = { one = "{n} התנגשות לפתרון", other = "{n} התנגשויות לפתרון" }
+"{n} days ago" = { one = "לפני {n} יום", other = "לפני {n} ימים" }
"{n} detached" = { one = "{n} נותק", other = "{n} נותקו" }
-"{n} files" = { one = "קובץ {n}", other = "{n} קבצים" }
-"{n} hours ago" = { one = "לפני שעה {n}", other = "לפני {n} שעות" }
-"{n} inserted" = { one = "{n} הוסף", other = "{n} הוספו" }
-"{n} instances" = { one = "מופע {n}", other = "{n} מופעים" }
-"{n} layers" = { one = "שכבה {n}", other = "{n} שכבות" }
-"{n} layers as one file" = { one = "שכבה {n} כקובץ אחד", other = "{n} שכבות כקובץ אחד" }
-"{n} layers selected" = { one = "שכבה {n} נבחרה", other = "{n} שכבות נבחרו" }
-"{n} layers · {parts}" = { one = "שכבה {n} · {parts}", other = "{n} שכבות · {parts}" }
-"{n} matches" = { one = "התאמה {n}", other = "{n} התאמות" }
+"{n} files" = { one = "{n} קובץ", other = "{n} קבצים" }
+"{n} hours ago" = { one = "לפני {n} שעה", other = "לפני {n} שעות" }
+"{n} inserted" = { one = "{n} הוכנס", other = "{n} הוכנסו" }
+"{n} instances" = { one = "{n} מופע", other = "{n} מופעים" }
+"{n} layers" = { one = "{n} שכבה", other = "{n} שכבות" }
+"{n} layers as one file" = { one = "{n} שכבה כקובץ אחד", other = "{n} שכבות כקובץ אחד" }
+"{n} layers selected" = { one = "{n} שכבה נבחרה", other = "{n} שכבות נבחרו" }
+"{n} layers · {parts}" = { one = "{n} שכבה · {parts}", other = "{n} שכבות · {parts}" }
+"{n} matches" = { one = "{n} התאמה", other = "{n} התאמות" }
"{n} min" = "{n} דק׳"
-"{n} minutes ago" = { one = "לפני דקה {n}", other = "לפני {n} דקות" }
-"{n} months ago" = { one = "לפני חודש {n}", other = "לפני {n} חודשים" }
-"{n} more notes omitted from this report" = { one = "הערה נוספת {n} הושמטה מדוח זה", other = "{n} הערות נוספות הושמטו מדוח זה" }
+"{n} minutes ago" = { one = "לפני {n} דקה", other = "לפני {n} דקות" }
+"{n} months ago" = { one = "לפני {n} חודש", other = "לפני {n} חודשים" }
+"{n} more notes omitted from this report" = { one = "{n} הערה נוספת הושמטה מדוח זה", other = "{n} הערות נוספות הושמטו מדוח זה" }
"{n} of {total}" = "{n} מתוך {total}"
-"{n} people joined" = { one = "אדם {n} הצטרף", other = "{n} אנשים הצטרפו" }
-"{n} preferred components" = { one = "רכיב מועדף {n}", other = "{n} רכיבים מועדפים" }
+"{n} people joined" = { one = "{n} אדם הצטרף", other = "{n} אנשים הצטרפו" }
+"{n} preferred components" = { one = "{n} רכיב מועדף", other = "{n} רכיבים מועדפים" }
"{n} ready" = { one = "{n} מוכן", other = "{n} מוכנים" }
"{n} removed" = { one = "{n} הוסר", other = "{n} הוסרו" }
-"{n} replies" = { one = "תגובה {n}", other = "{n} תגובות" }
-"{n} rows" = { one = "שורה {n}", other = "{n} שורות" }
-"{n} styles" = { one = "סגנון {n}", other = "{n} סגנונות" }
-"{n} text layers" = { one = "שכבת טקסט {n}", other = "{n} שכבות טקסט" }
-"{n} variables" = { one = "משתנה {n}", other = "{n} משתנים" }
-"{n} votes" = { one = "הצבעה {n}", other = "{n} הצבעות" }
-"{n} votes left" = { one = "נותרה הצבעה {n}", other = "נותרו {n} הצבעות" }
-"{n} weeks ago" = { one = "לפני שבוע {n}", other = "לפני {n} שבועות" }
-"{n} years ago" = { one = "לפני שנה {n}", other = "לפני {n} שנים" }
+"{n} replies" = { one = "{n} תגובה", other = "{n} תגובות" }
+"{n} rows" = { one = "{n} שורה", other = "{n} שורות" }
+"{n} styles" = { one = "{n} סגנון", other = "{n} סגנונות" }
+"{n} text layers" = { one = "{n} שכבת טקסט", other = "{n} שכבות טקסט" }
+"{n} variables" = { one = "{n} משתנה", other = "{n} משתנים" }
+"{n} votes" = { one = "{n} הצבעה", other = "{n} הצבעות" }
+"{n} votes left" = { one = "נותרה {n} הצבעה", other = "נותרו {n} הצבעות" }
+"{n} weeks ago" = { one = "לפני {n} שבוע", other = "לפני {n} שבועות" }
+"{n} years ago" = { one = "לפני {n} שנה", other = "לפני {n} שנים" }
"{n}d" = "{n} י׳"
"{n}h" = "{n} ש׳"
"{n}m" = "{n} ד׳"
@@ -2017,10 +2017,10 @@ status = "draft — needs native review"
"{period}: {counts}" = "{period}: {counts}"
"{profile} (current)" = "{profile} (נוכחי)"
"{property} is its value; {property ? \"a\" : \"b\"} picks a string. Other {…} stays as written." = "הערך שלו הוא {property}; הביטוי {property ? \"a\" : \"b\"} בוחר מחרוזת. שאר {…} נשאר כפי שנכתב."
-"{server} can't say what became of your files (it is older than this app)." = "{server} אינו יכול לדווח מה עלה בגורל הקבצים שלך (הוא ישן יותר מיישום זה)."
+"{server} can't say what became of your files (it is older than this app)." = "{server} אינו יכול לדווח מה עלה בגורל הקבצים (הוא ישן יותר מיישום זה)."
"{server} · No longer on the server" = "{server} · כבר לא בשרת"
"{server} · {shared} · Opened {date}" = "{server} · {shared} · נפתח ב־{date}"
-"{tool} hold {key}" = "{tool} החזק {key}"
+"{tool} hold {key}" = "{tool} החזקת {key}"
"{used} · {detached}" = "{used} · {detached}"
"{used} · {inserted}" = "{used} · {inserted}"
"{value} isn't a colour" = "{value} אינו צבע"
@@ -2048,37 +2048,37 @@ status = "draft — needs native review"
"align.right" = "יישור לימין"
"align.top" = "יישור למעלה"
"align.vcenter" = "יישור למרכז אנכי"
-"annotation.add" = "הוסף הערת מפתחים"
-"annotation.addCategory" = "הוסף קטגוריית הערות מפתחים"
+"annotation.add" = "הוספת הערת מפתחים"
+"annotation.addCategory" = "הוספת קטגוריית הערות מפתחים"
"annotation.categories" = "קטגוריות הערות מפתחים"
-"annotation.edit" = "ערוך הערת מפתחים"
-"annotation.editCategory" = "ערוך קטגוריית הערות מפתחים"
-"annotation.list" = "הצג רשימת הערות מפתחים"
-"annotation.remove" = "הסר הערת מפתחים"
-"annotation.removeCategory" = "מחק קטגוריית הערות מפתחים"
+"annotation.edit" = "עריכת הערת מפתחים"
+"annotation.editCategory" = "עריכת קטגוריית הערות מפתחים"
+"annotation.list" = "הצגת רשימת הערות מפתחים"
+"annotation.remove" = "הסרת הערת מפתחים"
+"annotation.removeCategory" = "מחיקת קטגוריית הערות מפתחים"
"app.actions" = "פעולות"
"app.preferences" = "העדפות"
-"arrange.back" = "שלח לרקע"
-"arrange.backward" = "שלח אחורה"
-"arrange.forward" = "הבא קדימה"
-"arrange.front" = "הבא לחזית"
-"arrange.packH" = "הצמד אופקית"
-"arrange.packV" = "הצמד אנכית"
-"arrange.reorder" = "סדר מחדש בחירה"
-"arrange.roundToPixels" = "עגל לפיקסלים שלמים"
+"arrange.back" = "שליחה לרקע"
+"arrange.backward" = "שליחה אחורה"
+"arrange.forward" = "הבאה קדימה"
+"arrange.front" = "הבאה לחזית"
+"arrange.packH" = "הצמדה אופקית"
+"arrange.packV" = "הצמדה אנכית"
+"arrange.reorder" = "סידור מחדש של הבחירה"
+"arrange.roundToPixels" = "עיגול לפיקסלים שלמים"
"arrange.spacing" = "ריווח"
-"arrange.tidy" = "סדר באופן אחיד"
-"board.addConnected" = "הוסף צורה מחוברת"
+"arrange.tidy" = "סידור באופן אחיד"
+"board.addConnected" = "הוספת צורה מחוברת"
"board.codeBlock" = "בלוק קוד"
"board.connector" = "מחבר"
"board.grid" = "רשת לוח"
"board.ink" = "קו טוש"
"board.label" = "תווית מחבר"
"board.mindMap" = "מפת חשיבה"
-"board.mindMapAdd" = "הוסף צומת למפת חשיבה"
+"board.mindMapAdd" = "הוספת צומת למפת חשיבה"
"board.nextSticky" = "פתקית דביקה הבאה"
-"board.reattach" = "חבר מחדש מחבר"
-"board.reshape" = "עצב מחדש מחבר"
+"board.reattach" = "חיבור מחדש של מחבר"
+"board.reshape" = "עיצוב מחדש של מחבר"
"board.setColor" = "צבע לוח"
"board.setLanguage" = "שפת קוד"
"board.setStyle" = "סגנון לוח"
@@ -2086,394 +2086,394 @@ status = "draft — needs native review"
"board.stamp" = "חותמת"
"board.sticky" = "פתקית דביקה"
"board.table" = "טבלה"
-"board.tableEdit" = "ערוך טבלה"
+"board.tableEdit" = "עריכת טבלה"
"board.template" = "תבנית לוח"
"board.templates" = "רשימת תבניות לוח"
"board.timer" = "טיימר"
"board.timerState" = "מצב טיימר"
"board.vote" = "הצבעה"
"board.voteResults" = "תוצאות הצבעה"
-"bool.exclude" = "הוצא חפיפה מהבחירה"
-"bool.flatten" = "שטח קבוצה בוליאנית"
-"bool.intersect" = "חתוך בחירה"
-"bool.subtract" = "חסר בחירה"
-"bool.union" = "אחד בחירה"
-"branch.archive" = "העבר ענף לארכיון"
-"branch.create" = "צור ענף"
-"branch.list" = "הצג רשימת ענפים"
-"branch.merge" = "מזג ענף"
-"branch.open" = "פתח ענף"
-"branch.review" = "סקור ענף"
-"branch.updateFromMain" = "עדכן מהקובץ הראשי"
+"bool.exclude" = "הוצאת חפיפה מהבחירה"
+"bool.flatten" = "שיטוח קבוצה בוליאנית"
+"bool.intersect" = "חיתוך בחירה"
+"bool.subtract" = "חיסור בחירה"
+"bool.union" = "איחוד בחירה"
+"branch.archive" = "העברת ענף לארכיון"
+"branch.create" = "יצירת ענף"
+"branch.list" = "הצגת רשימת ענפים"
+"branch.merge" = "מיזוג ענף"
+"branch.open" = "פתיחת ענף"
+"branch.review" = "סקירת ענף"
+"branch.updateFromMain" = "עדכון מהקובץ הראשי"
"codeConnect.export" = "ייצוא חיבורי קוד"
"codeConnect.import" = "ייבוא חיבורי קוד"
-"codeConnect.remove" = "נתק מקוד"
-"codeConnect.set" = "חבר לקוד"
-"collab.cursor" = "הצג סמן במיקום"
+"codeConnect.remove" = "ניתוק מקוד"
+"codeConnect.set" = "חיבור לקוד"
+"collab.cursor" = "הצגת סמן במיקום"
"collab.cursorChat" = "צ׳אט סמן"
-"collab.diff" = "הצג שינויי סנכרון"
-"collab.files" = "הקבצים המקוונים שלך"
-"collab.follow" = "עקוב"
-"collab.forgetFile" = "שכח קובץ מקוון"
-"collab.host" = "התחל מפגש חי"
-"collab.join" = "הצטרף למפגש חי"
-"collab.leave" = "עזוב מפגש חי"
-"collab.manageFile" = "נהל קובץ שפורסם"
-"collab.openFile" = "פתח קובץ מקוון"
+"collab.diff" = "הצגת שינויי סנכרון"
+"collab.files" = "הקבצים המקוונים שלי"
+"collab.follow" = "מעקב"
+"collab.forgetFile" = "הסרת קובץ מקוון"
+"collab.host" = "התחלת מפגש חי"
+"collab.join" = "הצטרפות למפגש חי"
+"collab.leave" = "עזיבת מפגש חי"
+"collab.manageFile" = "ניהול קובץ שפורסם"
+"collab.openFile" = "פתיחת קובץ מקוון"
"collab.peers" = "אנשים בקובץ זה"
-"collab.publish" = "פרסם לשרת"
-"collab.reconnect" = "התחבר מחדש"
-"collab.recoverFile" = "שחזר קובץ מקוון"
-"collab.registerLinks" = "פתח קישורי הזמנה ב-FigCraft"
-"collab.removePerson" = "הסר מהמפגש"
-"collab.report" = "דווח על הקובץ למפעיל השרת"
+"collab.publish" = "פרסום לשרת"
+"collab.reconnect" = "התחברות מחדש"
+"collab.recoverFile" = "שחזור קובץ מקוון"
+"collab.registerLinks" = "פתיחת קישורי הזמנה ב-FigCraft"
+"collab.removePerson" = "הסרה מהמפגש"
+"collab.report" = "דיווח על הקובץ למפעיל השרת"
"collab.serverInfo" = "פרטי שרת"
-"collab.share" = "שתף באמצעות קוד הצטרפות"
-"collab.spotlight" = "מקד את כולם בי"
-"collab.stop" = "עצור מפגש חי"
-"command.batch" = "הרץ מספר פקודות"
-"comment.add" = "הוסף תגובה"
-"comment.delete" = "מחק תגובה"
-"comment.edit" = "ערוך תגובה"
-"comment.link" = "העתק קישור לתגובה"
-"comment.list" = "הצג רשימת תגובות"
-"comment.markRead" = "סמן תגובה כנקראה"
-"comment.move" = "הזז תגובה"
+"collab.share" = "שיתוף באמצעות קוד הצטרפות"
+"collab.spotlight" = "מיקוד הזרקור עליי"
+"collab.stop" = "עצירת מפגש חי"
+"command.batch" = "הרצת מספר פקודות"
+"comment.add" = "הוספת תגובה"
+"comment.delete" = "מחיקת תגובה"
+"comment.edit" = "עריכת תגובה"
+"comment.link" = "העתקת קישור לתגובה"
+"comment.list" = "הצגת רשימת תגובות"
+"comment.markRead" = "סימון תגובה כנקראה"
+"comment.move" = "הזזת תגובה"
"comment.next" = "התגובה הבאה"
-"comment.open" = "פתח תגובה"
+"comment.open" = "פתיחת תגובה"
"comment.people" = "אנשים בתגובות"
-"comment.prompt" = "העתק הערות עבור בינה מלאכותית"
-"comment.react" = "הגב באימוג׳י לתגובה"
-"comment.reply" = "השב לתגובה"
-"comment.resolve" = "סמן תגובה כטופלה"
-"comment.zoom" = "התמקד בתגובות"
-"component.addProperty" = "הוסף מאפיין רכיב"
-"component.addVariant" = "הוסף וריאנט"
-"component.bindProperty" = "קשר שכבה למאפיין"
-"component.combineVariants" = "שלב כווריאנטים"
-"component.create" = "צור רכיב"
-"component.createMultiple" = "צור מספר רכיבים"
-"component.createSet" = "צור ערכת רכיבים"
-"component.deleteProperty" = "מחק מאפיין רכיב"
-"component.detach" = "נתק מופע"
-"component.editProperty" = "ערוך מאפיין רכיב"
-"component.exposeInstance" = "חשוף מופע מקונן"
-"component.goToMain" = "עבור לרכיב הראשי"
-"component.hideWhenPublishing" = "הסתר בעת פרסום"
-"component.list" = "הצג רשימת רכיבים"
-"component.makeSlot" = "הפוך לחריץ תוכן"
+"comment.prompt" = "העתקת הערות עבור בינה מלאכותית"
+"comment.react" = "תגובה באימוג׳י לתגובה"
+"comment.reply" = "תשובה לתגובה"
+"comment.resolve" = "סימון תגובה כטופלה"
+"comment.zoom" = "התמקדות בתגובות"
+"component.addProperty" = "הוספת מאפיין רכיב"
+"component.addVariant" = "הוספת וריאנט"
+"component.bindProperty" = "קישור שכבה למאפיין"
+"component.combineVariants" = "שילוב כווריאנטים"
+"component.create" = "יצירת רכיב"
+"component.createMultiple" = "יצירת מספר רכיבים"
+"component.createSet" = "יצירת ערכת רכיבים"
+"component.deleteProperty" = "מחיקת מאפיין רכיב"
+"component.detach" = "ניתוק מופע"
+"component.editProperty" = "עריכת מאפיין רכיב"
+"component.exposeInstance" = "חשיפת מופע מקונן"
+"component.goToMain" = "מעבר לרכיב הראשי"
+"component.hideWhenPublishing" = "הסתרה בעת פרסום"
+"component.list" = "הצגת רשימת רכיבים"
+"component.makeSlot" = "הפיכה לחריץ תוכן"
"component.playground" = "מגרש ניסויים לרכיב"
"component.properties" = "מאפייני רכיב"
-"component.pushChanges" = "דחוף שינויים לרכיב הראשי"
-"component.removeSlot" = "הסר חריץ תוכן"
-"component.resetInstance" = "אפס את כל השינויים"
-"component.resetOverride" = "אפס דריסת ערך"
-"component.restoreMain" = "שחזר רכיב ראשי"
-"data.fill" = "מלא עותקים בנתונים"
-"dev.compare" = "השווה שינויים"
+"component.pushChanges" = "דחיפת שינויים לרכיב הראשי"
+"component.removeSlot" = "הסרת חריץ תוכן"
+"component.resetInstance" = "איפוס כל השינויים"
+"component.resetOverride" = "איפוס דריסת ערך"
+"component.restoreMain" = "שחזור רכיב ראשי"
+"data.fill" = "מילוי עותקים בנתונים"
+"dev.compare" = "השוואת שינויים"
"dev.focus" = "תצוגת מיקוד"
-"dev.resolveChange" = "סמן שינוי כטופל"
-"dev.unfocus" = "צא מתצוגת מיקוד"
-"devMode.addMeasurement" = "הוסף מדידה"
-"devMode.measurements" = "הצג רשימת מדידות"
-"devMode.removeMeasurement" = "הסר מדידה"
-"devResource.add" = "הוסף משאב מפתחים"
-"devResource.edit" = "ערוך משאב מפתחים"
-"devResource.list" = "הצג רשימת משאבי מפתחים"
-"devResource.remove" = "הסר משאב מפתחים"
-"distribute.horizontal" = "פזר מרווחים אופקית"
-"distribute.vertical" = "פזר מרווחים אנכית"
+"dev.resolveChange" = "סימון שינוי כטופל"
+"dev.unfocus" = "יציאה מתצוגת מיקוד"
+"devMode.addMeasurement" = "הוספת מדידה"
+"devMode.measurements" = "הצגת רשימת מדידות"
+"devMode.removeMeasurement" = "הסרת מדידה"
+"devResource.add" = "הוספת משאב מפתחים"
+"devResource.edit" = "עריכת משאב מפתחים"
+"devResource.list" = "הצגת רשימת משאבי מפתחים"
+"devResource.remove" = "הסרת משאב מפתחים"
+"distribute.horizontal" = "פיזור מרווחים אופקית"
+"distribute.vertical" = "פיזור מרווחים אנכית"
"doc.home" = "מסך הבית"
-"doc.list" = "הצג רשימת מסמכים"
+"doc.list" = "הצגת רשימת מסמכים"
"doc.nextTab" = "הלשונית הבאה"
"doc.previousTab" = "הלשונית הקודמת"
-"doc.switch" = "החלף מסמך"
-"edit.copy" = "העתק"
-"edit.copyAsCss" = "העתק כ-CSS"
-"edit.copyAsPng" = "העתק כ-PNG"
-"edit.copyAsSvg" = "העתק כ-SVG"
-"edit.copyAsText" = "העתק כטקסט"
-"edit.copyLink" = "העתק קישור לבחירה"
-"edit.copyProperties" = "העתק מאפיינים"
-"edit.cut" = "גזור"
-"edit.delete" = "מחק"
-"edit.duplicate" = "שכפל"
+"doc.switch" = "החלפת מסמך"
+"edit.copy" = "העתקה"
+"edit.copyAsCss" = "העתקה כ-CSS"
+"edit.copyAsPng" = "העתקה כ-PNG"
+"edit.copyAsSvg" = "העתקה כ-SVG"
+"edit.copyAsText" = "העתקה כטקסט"
+"edit.copyLink" = "העתקת קישור לבחירה"
+"edit.copyProperties" = "העתקת מאפיינים"
+"edit.cut" = "גזירה"
+"edit.delete" = "מחיקה"
+"edit.duplicate" = "שכפול"
"edit.findReplace" = "חיפוש והחלפה"
-"edit.paste" = "הדבק"
-"edit.pasteDesignLayers" = "הדבק שכבות עיצוב"
-"edit.pasteOver" = "הדבק מעל הבחירה"
-"edit.pasteProperties" = "הדבק מאפיינים"
-"edit.pasteReplace" = "הדבק להחלפה"
-"edit.pickColor" = "דגום צבע"
-"edit.redo" = "בצע שוב"
-"edit.repeat" = "חזור על הפקודה האחרונה"
-"edit.setDefaultProperties" = "הגדר כמאפייני ברירת מחדל"
-"edit.undo" = "בטל"
-"effect.add" = "הוסף אפקט"
-"effect.copy" = "העתק אפקט"
-"effect.move" = "הזז אפקט"
-"effect.paste" = "הדבק אפקט"
-"effect.remove" = "הסר אפקט"
-"effect.set" = "הגדר אפקט"
-"export.add" = "הוסף הגדרת ייצוא"
-"export.remove" = "הסר הגדרת ייצוא"
-"export.update" = "ערוך הגדרת ייצוא"
-"file.close" = "סגור לשונית"
+"edit.paste" = "הדבקה"
+"edit.pasteDesignLayers" = "הדבקת שכבות עיצוב"
+"edit.pasteOver" = "הדבקה מעל הבחירה"
+"edit.pasteProperties" = "הדבקת מאפיינים"
+"edit.pasteReplace" = "הדבקה להחלפה"
+"edit.pickColor" = "דגימת צבע"
+"edit.redo" = "ביצוע מחדש"
+"edit.repeat" = "חזרה על הפקודה האחרונה"
+"edit.setDefaultProperties" = "הגדרה כמאפייני ברירת מחדל"
+"edit.undo" = "ביטול פעולה"
+"effect.add" = "הוספת אפקט"
+"effect.copy" = "העתקת אפקט"
+"effect.move" = "הזזת אפקט"
+"effect.paste" = "הדבקת אפקט"
+"effect.remove" = "הסרת אפקט"
+"effect.set" = "הגדרת אפקט"
+"export.add" = "הוספת הגדרת ייצוא"
+"export.remove" = "הסרת הגדרת ייצוא"
+"export.update" = "עריכת הגדרת ייצוא"
+"file.close" = "סגירת לשונית"
"file.colorProfile" = "פרופיל צבע"
-"file.duplicate" = "שכפל קובץ"
+"file.duplicate" = "שכפול קובץ"
"file.export" = "ייצוא"
-"file.exportFramesPdf" = "ייצא מסגרות ל-PDF"
-"file.exportLayers" = "ייצא שכבות"
-"file.exportSvg" = "ייצא בחירה כ-SVG"
-"file.fontReport" = "בדוק גופני מסמך"
+"file.exportFramesPdf" = "ייצוא מסגרות ל-PDF"
+"file.exportLayers" = "ייצוא שכבות"
+"file.exportSvg" = "ייצוא בחירה כ-SVG"
+"file.fontReport" = "בדיקת גופני מסמך"
"file.import" = "ייבוא"
-"file.markSaved" = "סמן כשמור"
-"file.moveTab" = "הזז לשונית"
+"file.markSaved" = "סימון כשמור"
+"file.moveTab" = "הזזת לשונית"
"file.new" = "קובץ עיצוב חדש"
"file.newBoard" = "לוח חדש"
"file.newFromTemplate" = "חדש מתבנית"
"file.open" = "פתיחה"
-"file.openRecent" = "פתח אחרונים"
-"file.placeImage" = "מקם תמונה"
-"file.recover" = "שחזר קובץ"
-"file.rename" = "שנה שם קובץ"
-"file.revert" = "שחזר לשמירה אחרונה"
-"file.save" = "שמור"
+"file.openRecent" = "פתיחת אחרונים"
+"file.placeImage" = "מיקום תמונה"
+"file.recover" = "שחזור קובץ"
+"file.rename" = "שינוי שם קובץ"
+"file.revert" = "שחזור לשמירה אחרונה"
+"file.save" = "שמירה"
"file.saveAs" = "שמירה בשם"
-"file.saveVersion" = "שמור להיסטוריית גרסאות"
-"file.versionHistory" = "הצג היסטוריית גרסאות"
-"fill.add" = "הוסף מילוי"
-"fill.copy" = "העתק מילוי"
-"fill.move" = "הזז מילוי"
-"fill.paste" = "הדבק מילוי"
+"file.saveVersion" = "שמירה להיסטוריית גרסאות"
+"file.versionHistory" = "הצגת היסטוריית גרסאות"
+"fill.add" = "הוספת מילוי"
+"fill.copy" = "העתקת מילוי"
+"fill.move" = "הזזת מילוי"
+"fill.paste" = "הדבקת מילוי"
"fill.pattern" = "מילוי תבנית"
-"fill.remove" = "הסר מילוי"
-"fill.set" = "הגדר מילוי"
-"font.download" = "הורד גופן"
+"fill.remove" = "הסרת מילוי"
+"fill.set" = "הגדרת מילוי"
+"font.download" = "הורדת גופן"
"font.downloads" = "הורדות גופנים"
-"frame.create" = "צור מסגרת"
-"frame.presets" = "הצג גדלים מובנים למסגרת"
-"frame.swapOrientation" = "החלף כיוון (אופקי/אנכי)"
-"grid.add" = "הוסף רשת פריסה"
-"grid.move" = "הזז רשת פריסה"
-"grid.remove" = "הסר רשת פריסה"
-"guide.add" = "הוסף קו עזר"
-"guide.clear" = "הסר את כל קווי העזר"
-"guide.move" = "הזז קו עזר"
-"guide.remove" = "הסר קו עזר"
-"guide.select" = "בחר קו עזר"
+"frame.create" = "יצירת מסגרת"
+"frame.presets" = "הצגת גדלים מובנים למסגרת"
+"frame.swapOrientation" = "החלפת כיוון (אופקי/אנכי)"
+"grid.add" = "הוספת רשת פריסה"
+"grid.move" = "הזזת רשת פריסה"
+"grid.remove" = "הסרת רשת פריסה"
+"guide.add" = "הוספת קו עזר"
+"guide.clear" = "הסרת כל קווי העזר"
+"guide.move" = "הזזת קו עזר"
+"guide.remove" = "הסרת קו עזר"
+"guide.select" = "בחירת קו עזר"
"help.about" = "אודות FigCraft"
"help.gettingStarted" = "צעדים ראשונים"
"help.page" = "דף עזרה"
"help.shortcuts" = "קיצורי מקלדת"
-"image.adjust" = "התאם תמונה"
-"image.crop" = "חתוך תמונה"
-"image.deletePreset" = "מחק תבנית תמונה"
-"image.place" = "מקם תמונה"
+"image.adjust" = "התאמת תמונה"
+"image.crop" = "חיתוך תמונה"
+"image.deletePreset" = "מחיקת תבנית תמונה"
+"image.place" = "מיקום תמונה"
"image.presets" = "תבניות תמונה"
-"image.replace" = "החלף תמונה"
-"image.savePreset" = "שמור תבנית תמונה"
-"inspect.assets" = "בדוק נכסים"
+"image.replace" = "החלפת תמונה"
+"image.savePreset" = "שמירת תבנית תמונה"
+"inspect.assets" = "בדיקת נכסים"
"inspect.code" = "קוד עבור שכבה"
"inspect.componentCode" = "קוד רכיב"
"inspect.designContext" = "הקשר עיצובי"
-"inspect.properties" = "בדוק מאפיינים"
-"inspect.readyForDev" = "סמן כמוכן לפיתוח"
-"instance.create" = "צור מופע"
+"inspect.properties" = "בדיקת מאפיינים"
+"inspect.readyForDev" = "סימון כמוכן לפיתוח"
+"instance.create" = "יצירת מופע"
"instance.exposed" = "מופעים מקוננים חשופים"
-"instance.place" = "מקם מופע"
-"instance.resetSlot" = "אפס חריץ תוכן"
-"instance.setProperties" = "הגדר מאפייני מופע"
-"instance.slotInsert" = "הכנס לחריץ תוכן"
-"instance.swap" = "החלף מופע"
-"instance.swapAt" = "החלף מופע בנקודה"
-"layers.collapseAll" = "כווץ שכבות"
-"layout.add" = "הוסף פריסה אוטומטית"
-"layout.remove" = "הסר פריסה אוטומטית"
-"layout.removeAll" = "הסר כל פריסה אוטומטית"
-"layout.setTrack" = "הגדר גודל מסלול רשת"
-"layout.suggest" = "הצע פריסה אוטומטית"
+"instance.place" = "מיקום מופע"
+"instance.resetSlot" = "איפוס חריץ תוכן"
+"instance.setProperties" = "הגדרת מאפייני מופע"
+"instance.slotInsert" = "הכנסה לחריץ תוכן"
+"instance.swap" = "החלפת מופע"
+"instance.swapAt" = "החלפת מופע בנקודה"
+"layers.collapseAll" = "כיווץ שכבות"
+"layout.add" = "הוספת פריסה אוטומטית"
+"layout.remove" = "הסרת פריסה אוטומטית"
+"layout.removeAll" = "הסרת כל פריסה אוטומטית"
+"layout.setTrack" = "הגדרת גודל מסלול רשת"
+"layout.suggest" = "הצעת פריסה אוטומטית"
"libraries.open" = "ספריות"
-"libraries.publish" = "פרסם ספרייה…"
-"library.acceptUpdates" = "קבל עדכוני ספרייה"
-"library.add" = "הוסף ספרייה"
-"library.aliasVariable" = "צור כינוי למשתנה ספרייה"
-"library.applyStyle" = "החל סגנון ספרייה"
-"library.bindVariable" = "קשר משתנה ספרייה"
-"library.check" = "בדוק עדכונים בספריות צוות"
-"library.extendCollection" = "הרחב אוסף ספרייה"
-"library.import" = "ייבא רכיב ספרייה"
-"library.importVariable" = "ייבא משתנה ספרייה"
-"library.list" = "הצג רשימת ספריות"
-"library.place" = "מקם רכיב ספרייה"
-"library.publish" = "פרסם ספרייה"
-"library.publishToServer" = "פרסם ספרייה לשרת"
-"library.remove" = "הסר ספרייה"
-"library.setVariableMode" = "הגדר מצב משתנה ספרייה"
-"library.swap" = "החלף ספרייה"
-"library.swapAt" = "החלף מופע לרכיב ספרייה"
+"libraries.publish" = "פרסום ספרייה…"
+"library.acceptUpdates" = "קבלת עדכוני ספרייה"
+"library.add" = "הוספת ספרייה"
+"library.aliasVariable" = "יצירת כינוי למשתנה ספרייה"
+"library.applyStyle" = "החלת סגנון ספרייה"
+"library.bindVariable" = "קישור משתנה ספרייה"
+"library.check" = "בדיקת עדכונים בספריות צוות"
+"library.extendCollection" = "הרחבת אוסף ספרייה"
+"library.import" = "ייבוא רכיב ספרייה"
+"library.importVariable" = "ייבוא משתנה ספרייה"
+"library.list" = "הצגת רשימת ספריות"
+"library.place" = "מיקום רכיב ספרייה"
+"library.publish" = "פרסום ספרייה"
+"library.publishToServer" = "פרסום ספרייה לשרת"
+"library.remove" = "הסרת ספרייה"
+"library.setVariableMode" = "הגדרת מצב משתנה ספרייה"
+"library.swap" = "החלפת ספרייה"
+"library.swapAt" = "החלפת מופע לרכיב ספרייה"
"library.updates" = "עדכוני ספרייה"
"library.usage" = "שימוש בספרייה"
-"measure.distances" = "מדוד מרחקים"
-"measure.padding" = "מדוד ריפוד פריסה אוטומטית"
-"node.create" = "צור שכבה"
-"node.find" = "חפש שכבות"
-"node.get" = "קבל שכבה"
-"node.reorder" = "סדר שכבה מחדש"
-"node.reparent" = "העבר שכבה לתוך"
-"node.set" = "הגדר מאפיינים"
+"measure.distances" = "מדידת מרחקים"
+"measure.padding" = "מדידת ריפוד פריסה אוטומטית"
+"node.create" = "יצירת שכבה"
+"node.find" = "חיפוש שכבות"
+"node.get" = "קבלת שכבה"
+"node.reorder" = "סידור שכבה מחדש"
+"node.reparent" = "העברת שכבה לתוך"
+"node.set" = "הגדרת מאפיינים"
"object.batchRename" = "שינוי שם מרובה"
-"object.convertToFrame" = "המר למסגרת"
-"object.convertToGroup" = "המר לקבוצה"
-"object.convertToSection" = "המר למקטע"
+"object.convertToFrame" = "המרה למסגרת"
+"object.convertToGroup" = "המרה לקבוצה"
+"object.convertToSection" = "המרה למקטע"
"object.flipH" = "היפוך אופקי"
"object.flipV" = "היפוך אנכי"
-"object.frameSelection" = "עטוף בחירה במסגרת"
-"object.group" = "קבץ בחירה"
-"object.hideOthers" = "הסתר שכבות אחרות"
-"object.mask" = "השתמש כמסכה"
-"object.moveToPage" = "העבר לעמוד"
+"object.frameSelection" = "עטיפת בחירה במסגרת"
+"object.group" = "קיבוץ בחירה"
+"object.hideOthers" = "הסתרת שכבות אחרות"
+"object.mask" = "שימוש כמסכה"
+"object.moveToPage" = "העברה לעמוד"
"object.opacityKeys" = "אטימות ממקשי מספרים"
-"object.rasterize" = "המר בחירה לפיקסלים"
-"object.releaseMask" = "שחרר מסכה"
-"object.removeFill" = "הסר מילוי"
-"object.removeFrame" = "הסר מסגרת"
-"object.removeStroke" = "הסר קו מתאר"
-"object.rename" = "שנה שם"
-"object.resizeToFit" = "שנה גודל להתאמה לתוכן"
-"object.rotate180" = "סובב ב-180°"
-"object.rotateLeft" = "סובב ב-90° שמאלה"
-"object.rotateRight" = "סובב ב-90° ימינה"
-"object.setThumbnail" = "הגדר כתמונה ממוזערת"
-"object.swapFillStroke" = "החלף בין מילוי לקו מתאר"
-"object.toggleLock" = "נעל/בטל נעילת בחירה"
-"object.toggleVisible" = "הצג/הסתר בחירה"
-"object.ungroup" = "פרק קבוצה"
-"object.wrapInSection" = "עטוף במקטע חדש"
-"page.add" = "הוסף עמוד"
-"page.delete" = "מחק עמוד"
-"page.duplicate" = "שכפל עמוד"
-"page.list" = "הצג רשימת עמודים"
-"page.move" = "הזז עמוד"
-"page.rename" = "שנה שם עמוד"
-"page.select" = "עבור לעמוד"
+"object.rasterize" = "המרת בחירה לפיקסלים"
+"object.releaseMask" = "שחרור מסכה"
+"object.removeFill" = "הסרת מילוי"
+"object.removeFrame" = "הסרת מסגרת"
+"object.removeStroke" = "הסרת קו מתאר"
+"object.rename" = "שינוי שם"
+"object.resizeToFit" = "שינוי גודל להתאמה לתוכן"
+"object.rotate180" = "סיבוב ב-180°"
+"object.rotateLeft" = "סיבוב ב-90° שמאלה"
+"object.rotateRight" = "סיבוב ב-90° ימינה"
+"object.setThumbnail" = "הגדרה כתמונה ממוזערת"
+"object.swapFillStroke" = "החלפה בין מילוי לקו מתאר"
+"object.toggleLock" = "נעילת/ביטול נעילת בחירה"
+"object.toggleVisible" = "הצגת/הסתרת בחירה"
+"object.ungroup" = "פירוק קבוצה"
+"object.wrapInSection" = "עטיפת במקטע חדש"
+"page.add" = "הוספת עמוד"
+"page.delete" = "מחיקת עמוד"
+"page.duplicate" = "שכפול עמוד"
+"page.list" = "הצגת רשימת עמודים"
+"page.move" = "הזזת עמוד"
+"page.rename" = "שינוי שם עמוד"
+"page.select" = "מעבר לעמוד"
"page.setBackground" = "רקע עמוד"
-"page.setOpening" = "הגדר כעמוד פתיחה"
+"page.setOpening" = "הגדרה כעמוד פתיחה"
"paint.documentColors" = "צבעי מסמך"
-"plugin.close" = "סגור חלונית תוסף"
-"plugin.directory.install" = "התקן תוסף מהמאגר"
-"plugin.directory.list" = "עיין במאגר התוספים"
-"plugin.directory.publish" = "פרסם תוסף למאגר"
-"plugin.directory.unpublish" = "בטל פרסום תוסף מהמאגר"
-"plugin.event" = "השתמש בפקד חלונית תוסף"
-"plugin.import" = "ייבא תוסף מקובץ מניפסט…"
-"plugin.list" = "הצג רשימת תוספים"
-"plugin.remove" = "הסר תוסף"
-"plugin.run" = "הרץ תוסף"
+"plugin.close" = "סגירת חלונית תוסף"
+"plugin.directory.install" = "התקנת תוסף מהמאגר"
+"plugin.directory.list" = "עיון במאגר התוספים"
+"plugin.directory.publish" = "פרסום תוסף למאגר"
+"plugin.directory.unpublish" = "ביטול פרסום תוסף מהמאגר"
+"plugin.event" = "שימוש בפקד חלונית תוסף"
+"plugin.import" = "ייבוא תוסף מקובץ מניפסט…"
+"plugin.list" = "הצגת רשימת תוספים"
+"plugin.remove" = "הסרת תוסף"
+"plugin.run" = "הרצת תוסף"
"plugin.ui" = "חלונית תוסף"
"plugins.manage" = "ניהול תוספים…"
-"plugins.runLast" = "הרץ תוסף אחרון"
-"pref.autoSave" = "שמור קבצים אוטומטית"
-"pref.highlightHover" = "הדגש שכבות בריחוף"
-"pref.invertZoom" = "הפוך כיוון תקריב"
-"pref.keepTool" = "השאר כלי נבחר לאחר שימוש"
+"plugins.runLast" = "הרצת תוסף אחרון"
+"pref.autoSave" = "שמירת קבצים אוטומטית"
+"pref.highlightHover" = "הדגשת שכבות בריחוף"
+"pref.invertZoom" = "היפוך כיוון תקריב"
+"pref.keepTool" = "השארת כלי נבחר לאחר שימוש"
"pref.language" = "שפת ממשק"
"pref.nudge" = "מרחק הזזה קלה"
-"pref.numberKeysOpacity" = "השתמש במקשי מספרים לאטימות"
+"pref.numberKeysOpacity" = "שימוש במקשי מספרים לאטימות"
"pref.publishServer" = "שרת לשיתוף מקוון"
-"pref.reduceMotion" = "הפחת תנועה"
-"pref.renameDuplicates" = "שנה שם לשכבות משוכפלות"
+"pref.reduceMotion" = "הפחתת תנועה"
+"pref.renameDuplicates" = "שינוי שם לשכבות משוכפלות"
"pref.scrollWheelZoom" = "תקריב עם גלגל העכבר"
-"pref.showDimensions" = "הצג ממדים על אובייקטים"
-"pref.startOnHome" = "התחל במסך הבית"
+"pref.showDimensions" = "הצגת ממדים על אובייקטים"
+"pref.startOnHome" = "התחלה במסך הבית"
"pref.uiScale" = "גודל ממשק"
-"pref.uiScaleDown" = "הקטן ממשק"
+"pref.uiScaleDown" = "הקטנת ממשק"
"pref.uiScaleReset" = "גודל ממשק ברירת מחדל"
-"pref.uiScaleUp" = "הגדל ממשק"
-"pref.userName" = "השם שלך בתגובות"
-"proto.action.add" = "הוסף פעולת אב-טיפוס"
-"proto.action.move" = "סדר מחדש פעולת אב-טיפוס"
-"proto.action.remove" = "הסר פעולת אב-טיפוס"
-"proto.action.set" = "ערוך פעולת אב-טיפוס"
-"proto.closePreview" = "סגור תצוגה מקדימה של אב-טיפוס"
-"proto.conditional.addBlock" = "הוסף בלוק אחרת אם / אחרת"
-"proto.conditional.removeBlock" = "הסר אם / אחרת אם / אחרת"
-"proto.conditional.setCondition" = "ערוך תנאי"
-"proto.evaluate" = "חשב ביטוי אב-טיפוס"
-"proto.flow.add" = "הוסף נקודת התחלה לתזרים"
-"proto.flow.remove" = "הסר תזרים"
-"proto.flow.rename" = "שנה שם תזרים"
-"proto.interaction.add" = "הוסף אינטראקציה"
-"proto.interaction.clear" = "הסר את כל האינטראקציות"
-"proto.interaction.remove" = "הסר אינטראקציה"
-"proto.interaction.set" = "ערוך אינטראקציה"
+"pref.uiScaleUp" = "הגדלת ממשק"
+"pref.userName" = "השם המוצג בתגובות"
+"proto.action.add" = "הוספת פעולת אב-טיפוס"
+"proto.action.move" = "סידור מחדש של פעולת אב-טיפוס"
+"proto.action.remove" = "הסרת פעולת אב-טיפוס"
+"proto.action.set" = "עריכת פעולת אב-טיפוס"
+"proto.closePreview" = "סגירת תצוגה מקדימה של אב-טיפוס"
+"proto.conditional.addBlock" = "הוספת בלוק אחרת אם / אחרת"
+"proto.conditional.removeBlock" = "הסרת אם / אחרת אם / אחרת"
+"proto.conditional.setCondition" = "עריכת תנאי"
+"proto.evaluate" = "חישוב ביטוי אב-טיפוס"
+"proto.flow.add" = "הוספת נקודת התחלה לתזרים"
+"proto.flow.remove" = "הסרת תזרים"
+"proto.flow.rename" = "שינוי שם תזרים"
+"proto.interaction.add" = "הוספת אינטראקציה"
+"proto.interaction.clear" = "הסרת כל האינטראקציות"
+"proto.interaction.remove" = "הסרת אינטראקציה"
+"proto.interaction.set" = "עריכת אינטראקציה"
"proto.linkNotice" = "התראה לפני מעבר לקישור חיצוני"
-"proto.present" = "הצג"
+"proto.present" = "הצגה"
"proto.presentOptions" = "אפשרויות הצגה"
-"proto.preview" = "פתח תצוגה מקדימה של אב-טיפוס"
+"proto.preview" = "פתיחת תצוגה מקדימה של אב-טיפוס"
"proto.settings" = "הגדרות אב-טיפוס"
-"section.toggleContents" = "הסתר/הצג תוכן מקטע"
-"select.add" = "הוסף לבחירה"
-"select.all" = "בחר הכול"
-"select.area" = "בחר אזור"
-"select.byName" = "בחר שכבות לפי שם"
-"select.children" = "בחר תתי-שכבות"
-"select.inverse" = "הפוך בחירה"
+"section.toggleContents" = "הסתרת/הצגת תוכן מקטע"
+"select.add" = "הוספה לבחירה"
+"select.all" = "בחירת הכול"
+"select.area" = "בחירת אזור"
+"select.byName" = "בחירת שכבות לפי שם"
+"select.children" = "בחירת תתי-שכבות"
+"select.inverse" = "היפוך בחירה"
"select.layersAt" = "שכבות בנקודה"
-"select.matching" = "בחר שכבות תואמות"
-"select.next" = "בחר שכבה אחות הבאה"
-"select.none" = "בטל בחירה"
-"select.parent" = "בחר שכבת הורה"
-"select.previous" = "בחר שכבה אחות קודמת"
-"select.remove" = "הסר מהבחירה"
-"select.sameEffect" = "בחר עם אותו אפקט"
-"select.sameFill" = "בחר עם אותו מילוי"
-"select.sameFont" = "בחר עם אותו גופן"
-"select.sameInstance" = "בחר עם אותו מופע"
-"select.sameProperties" = "בחר עם אותם מאפיינים"
-"select.sameStroke" = "בחר עם אותו קו מתאר"
-"select.sameText" = "בחר עם אותם מאפייני טקסט"
-"select.set" = "בחר"
-"selection.applyColorStyle" = "החל סגנון צבע על הבחירה"
-"selection.bindColorVariable" = "החל משתנה צבע על הבחירה"
+"select.matching" = "בחירת שכבות תואמות"
+"select.next" = "בחירת שכבה אחות הבאה"
+"select.none" = "ביטול בחירה"
+"select.parent" = "בחירת שכבת הורה"
+"select.previous" = "בחירת שכבה אחות קודמת"
+"select.remove" = "הסרה מהבחירה"
+"select.sameEffect" = "בחירת עם אותו אפקט"
+"select.sameFill" = "בחירת עם אותו מילוי"
+"select.sameFont" = "בחירת עם אותו גופן"
+"select.sameInstance" = "בחירת עם אותו מופע"
+"select.sameProperties" = "בחירת עם אותם מאפיינים"
+"select.sameStroke" = "בחירת עם אותו קו מתאר"
+"select.sameText" = "בחירת עם אותם מאפייני טקסט"
+"select.set" = "בחירה"
+"selection.applyColorStyle" = "החלת סגנון צבע על הבחירה"
+"selection.bindColorVariable" = "החלת משתנה צבע על הבחירה"
"selection.colors" = "צבעי הבחירה"
-"selection.createColorStyle" = "צור סגנון צבע"
-"selection.detachColor" = "נתק צבע בחירה"
-"selection.selectColor" = "בחר שכבות עם צבע זה"
-"selection.setPaint" = "שנה צבע בחירה"
+"selection.createColorStyle" = "יצירת סגנון צבע"
+"selection.detachColor" = "ניתוק צבע בחירה"
+"selection.selectColor" = "בחירת שכבות עם צבע זה"
+"selection.setPaint" = "שינוי צבע בחירה"
"shape.arrow" = "חץ"
"shape.ellipse" = "אליפסה"
"shape.line" = "קו"
"shape.polygon" = "מצולע"
"shape.rectangle" = "מלבן"
"shape.star" = "כוכב"
-"shapeBuilder.merge" = "מזג אזורים"
+"shapeBuilder.merge" = "מיזוג אזורים"
"shapeBuilder.mode" = "מצב בונה צורות"
"shapeBuilder.regions" = "אזורי בונה צורות"
-"shapeBuilder.remove" = "הסר אזורים"
-"stroke.add" = "הוסף קו מתאר"
+"shapeBuilder.remove" = "הסרת אזורים"
+"stroke.add" = "הוספת קו מתאר"
"stroke.brush" = "מברשת"
-"stroke.copy" = "העתק קו מתאר"
-"stroke.move" = "הזז קו מתאר"
-"stroke.paste" = "הדבק קו מתאר"
-"stroke.remove" = "הסר קו מתאר"
-"stroke.set" = "הגדר קו מתאר"
+"stroke.copy" = "העתקת קו מתאר"
+"stroke.move" = "הזזת קו מתאר"
+"stroke.paste" = "הדבקת קו מתאר"
+"stroke.remove" = "הסרת קו מתאר"
+"stroke.set" = "הגדרת קו מתאר"
"stroke.widthProfile" = "פרופיל עובי"
-"style.apply" = "החל סגנון"
-"style.bind" = "קשר משתנה בסגנון"
-"style.create" = "צור סגנון"
-"style.delete" = "מחק סגנון"
-"style.detach" = "נתק סגנון"
-"style.duplicate" = "שכפל סגנון"
-"style.list" = "הצג רשימת סגנונות"
-"style.move" = "הזז סגנונות"
-"style.renameFolder" = "שנה שם תיקיית סגנונות"
-"style.update" = "ערוך סגנון"
-"template.list" = "הצג רשימת תבניות"
-"text.alignCenter" = "יישר למרכז"
+"style.apply" = "החלת סגנון"
+"style.bind" = "קישור משתנה בסגנון"
+"style.create" = "יצירת סגנון"
+"style.delete" = "מחיקת סגנון"
+"style.detach" = "ניתוק סגנון"
+"style.duplicate" = "שכפול סגנון"
+"style.list" = "הצגת רשימת סגנונות"
+"style.move" = "הזזת סגנונות"
+"style.renameFolder" = "שינוי שם תיקיית סגנונות"
+"style.update" = "עריכת סגנון"
+"template.list" = "הצגת רשימת תבניות"
+"text.alignCenter" = "יישור למרכז"
"text.alignJustify" = "יישור דו-צדדי"
-"text.alignLeft" = "יישר לשמאל"
-"text.alignRight" = "יישר לימין"
+"text.alignLeft" = "יישור לשמאל"
+"text.alignRight" = "יישור לימין"
"text.bold" = "מודגש"
"text.bulletList" = "רשימת תבליטים"
"text.case" = "רישיות אותיות"
@@ -2488,56 +2488,56 @@ status = "draft — needs native review"
"text.directionAuto" = "כיוון טקסט: אוטומטי"
"text.directionLtr" = "כיוון טקסט: משמאל לימין"
"text.directionRtl" = "כיוון טקסט: מימין לשמאל"
-"text.edit.begin" = "ערוך טקסט"
-"text.edit.caret" = "הגדר מיקום סמן טקסט"
-"text.edit.end" = "סיים עריכת טקסט"
-"text.edit.insert" = "הקלד טקסט"
+"text.edit.begin" = "עריכת טקסט"
+"text.edit.caret" = "הגדרת מיקום סמן טקסט"
+"text.edit.end" = "סיום עריכת טקסט"
+"text.edit.insert" = "הקלדת טקסט"
"text.edit.key" = "מקש טקסט"
"text.edit.preedit" = "הרכבת טקסט (IME)"
-"text.edit.selectLine" = "בחר שורה"
-"text.edit.selectWord" = "בחר מילה"
+"text.edit.selectLine" = "בחירת שורה"
+"text.edit.selectWord" = "בחירת מילה"
"text.edit.selection" = "בחירת טקסט"
-"text.endPreview" = "סיים תצוגה מקדימה של טקסט"
-"text.fit" = "התאם טקסט לתיבה שלו"
-"text.fonts" = "הצג רשימת גופנים"
+"text.endPreview" = "סיום תצוגה מקדימה של טקסט"
+"text.fit" = "התאמת טקסט לתיבה שלו"
+"text.fonts" = "הצגת רשימת גופנים"
"text.italic" = "נטוי"
-"text.lineHeightDown" = "הקטן גובה שורה"
-"text.lineHeightUp" = "הגדל גובה שורה"
-"text.link" = "צור קישור"
-"text.listIndent" = "הגדל כניסת רשימה"
-"text.listOutdent" = "הקטן כניסת רשימה"
+"text.lineHeightDown" = "הקטנת גובה שורה"
+"text.lineHeightUp" = "הגדלת גובה שורה"
+"text.link" = "יצירת קישור"
+"text.listIndent" = "הגדלת כניסת רשימה"
+"text.listOutdent" = "הקטנת כניסת רשימה"
"text.listStyle" = "סגנון רשימה"
-"text.loadFont" = "טען קובץ גופן"
+"text.loadFont" = "טעינת קובץ גופן"
"text.maxLines" = "מספר שורות מרבי"
"text.missingFonts" = "גופנים חסרים"
"text.numberList" = "רשימה ממוספרת"
"text.onPath" = "טקסט על נתיב"
-"text.openLink" = "פתח קישור"
+"text.openLink" = "פתיחת קישור"
"text.paragraphIndent" = "כניסת פסקה"
"text.paragraphSpacing" = "ריווח פסקאות"
"text.pathOptions" = "אפשרויות טקסט על נתיב"
"text.preview" = "תצוגה מקדימה לשינוי טקסט"
-"text.refit" = "התאם טקסט לגופנים"
-"text.removeFromPath" = "הסר טקסט מנתיב"
-"text.rescanFonts" = "סרוק מחדש גופנים מותקנים"
-"text.set" = "הגדר טקסט"
+"text.refit" = "התאמת טקסט לגופנים"
+"text.removeFromPath" = "הסרת טקסט מנתיב"
+"text.rescanFonts" = "סריקה מחדש של גופנים מותקנים"
+"text.set" = "הגדרת טקסט"
"text.setFeatures" = "תכונות OpenType"
"text.setVariations" = "צירי גופן משתנה"
-"text.sizeDown" = "הקטן גודל גופן"
-"text.sizeUp" = "הגדל גודל גופן"
+"text.sizeDown" = "הקטנת גודל גופן"
+"text.sizeUp" = "הגדלת גודל גופן"
"text.strikethrough" = "קו חוצה"
-"text.style" = "עצב טווח טקסט"
-"text.trackingDown" = "הקטן מרווח בין אותיות"
-"text.trackingUp" = "הגדל מרווח בין אותיות"
+"text.style" = "עיצוב טווח טקסט"
+"text.trackingDown" = "הקטנת מרווח בין אותיות"
+"text.trackingUp" = "הגדלת מרווח בין אותיות"
"text.underline" = "קו תחתון"
-"text.weightDown" = "הפחת משקל גופן"
-"text.weightUp" = "הגדל משקל גופן"
+"text.weightDown" = "הפחתת משקל גופן"
+"text.weightUp" = "הגדלת משקל גופן"
"text.wrapStyle" = "סגנון גלישת שורות"
"tool.annotation" = "הערת תיעוד"
"tool.arrow" = "חץ"
"tool.comment" = "תגובה"
"tool.connector" = "מחבר"
-"tool.crosshair" = "הזז כוונת מיקום"
+"tool.crosshair" = "הזזת כוונת מיקום"
"tool.ellipse" = "אליפסה"
"tool.eraser" = "מחק"
"tool.frame" = "מסגרת"
@@ -2549,13 +2549,13 @@ status = "draft — needs native review"
"tool.pen" = "עט"
"tool.pencil" = "עיפרון"
"tool.pencilBrush" = "מברשת עיפרון"
-"tool.place" = "מקם באמצעות הכלי"
+"tool.place" = "מיקום באמצעות הכלי"
"tool.polygon" = "מצולע"
"tool.rectangle" = "מלבן"
"tool.scale" = "שינוי קנה מידה"
"tool.scaleAnchor" = "עוגן קנה מידה"
"tool.section" = "מקטע"
-"tool.set" = "בחר כלי"
+"tool.set" = "בחירת כלי"
"tool.shape" = "צורות"
"tool.shapeBuilder" = "בונה צורות"
"tool.slice" = "אזור חיתוך"
@@ -2565,139 +2565,139 @@ status = "draft — needs native review"
"tool.text" = "טקסט"
"tool.textOnPath" = "טקסט על נתיב"
"transform.move" = "הזזה"
-"transform.moveTo" = "הזז אל"
+"transform.moveTo" = "הזזה אל"
"transform.nudge" = "הזזה קלה"
-"transform.nudgeSize" = "שנה גודל בהזזה קלה"
+"transform.nudgeSize" = "שינוי גודל בהזזה קלה"
"transform.resize" = "שינוי גודל"
"transform.rotate" = "סיבוב"
-"transform.rotationOrigin" = "הזז ציר סיבוב"
+"transform.rotationOrigin" = "הזזת ציר סיבוב"
"transform.scale" = "שינוי קנה מידה"
-"transform.setRotationOrigin" = "הגדר ציר סיבוב"
-"variable.addMode" = "הוסף מצב"
-"variable.bind" = "קשר משתנה"
-"variable.create" = "צור משתנה"
-"variable.createCollection" = "צור אוסף משתנים"
-"variable.delete" = "מחק משתנה"
-"variable.deleteCollection" = "מחק אוסף"
-"variable.duplicate" = "שכפל משתנה"
-"variable.export" = "ייצא משתנים"
-"variable.extendCollection" = "הרחב אוסף"
-"variable.import" = "ייבא משתנים"
-"variable.list" = "הצג רשימת משתנים"
-"variable.moveMode" = "הזז מצב"
-"variable.removeMode" = "מחק מצב"
-"variable.renameCollection" = "שנה שם אוסף"
-"variable.renameMode" = "שנה שם מצב"
-"variable.resetOverride" = "אפס דריסת משתנה"
-"variable.set" = "הגדר ערך משתנה"
-"variable.setMode" = "הגדר מצב משתנה"
-"variable.update" = "ערוך משתנה"
+"transform.setRotationOrigin" = "הגדרת ציר סיבוב"
+"variable.addMode" = "הוספת מצב"
+"variable.bind" = "קישור משתנה"
+"variable.create" = "יצירת משתנה"
+"variable.createCollection" = "יצירת אוסף משתנים"
+"variable.delete" = "מחיקת משתנה"
+"variable.deleteCollection" = "מחיקת אוסף"
+"variable.duplicate" = "שכפול משתנה"
+"variable.export" = "ייצוא משתנים"
+"variable.extendCollection" = "הרחבת אוסף"
+"variable.import" = "ייבוא משתנים"
+"variable.list" = "הצגת רשימת משתנים"
+"variable.moveMode" = "הזזת מצב"
+"variable.removeMode" = "מחיקת מצב"
+"variable.renameCollection" = "שינוי שם אוסף"
+"variable.renameMode" = "שינוי שם מצב"
+"variable.resetOverride" = "איפוס דריסת משתנה"
+"variable.set" = "הגדרת ערך משתנה"
+"variable.setMode" = "הגדרת מצב משתנה"
+"variable.update" = "עריכת משתנה"
"vector.create" = "וקטור"
-"vector.deleteHeal" = "מחק ואחה בחירה"
-"vector.edit.addVertex" = "הוסף נקודה"
-"vector.edit.begin" = "ערוך וקטור"
-"vector.edit.bend" = "כופף מקטע"
+"vector.deleteHeal" = "מחיקה ואיחוי בחירה"
+"vector.edit.addVertex" = "הוספת נקודה"
+"vector.edit.begin" = "עריכת וקטור"
+"vector.edit.bend" = "כיפוף מקטע"
"vector.edit.bounds" = "גבולות הנקודות הנבחרות"
-"vector.edit.connect" = "חבר נקודות"
+"vector.edit.connect" = "חיבור נקודות"
"vector.edit.cornerRadius" = "רדיוס פינת נקודה"
-"vector.edit.cut" = "חתוך נתיב"
-"vector.edit.delete" = "מחק נקודות"
-"vector.edit.end" = "סיים עריכה"
-"vector.edit.erase" = "מחק"
+"vector.edit.cut" = "חיתוך נתיב"
+"vector.edit.delete" = "מחיקת נקודות"
+"vector.edit.end" = "סיום עריכה"
+"vector.edit.erase" = "מחיקה"
"vector.edit.lasso" = "בחירת לאסו"
"vector.edit.mirroring" = "שיקוף ידיות"
-"vector.edit.moveHandles" = "הזז ידיות"
-"vector.edit.moveVertices" = "הזז נקודות"
-"vector.edit.nudge" = "הזז נקודות קלות"
+"vector.edit.moveHandles" = "הזזת ידיות"
+"vector.edit.moveVertices" = "הזזת נקודות"
+"vector.edit.nudge" = "הזזה קלה של נקודות"
"vector.edit.paint" = "דלי צבע"
"vector.edit.pen" = "נקודת עט"
-"vector.edit.penEnd" = "סיים נתיב עט"
+"vector.edit.penEnd" = "סיום נתיב עט"
"vector.edit.position" = "מיקום נקודה"
-"vector.edit.resize" = "שנה גודל נקודות"
-"vector.edit.rotate" = "סובב נקודות"
-"vector.edit.select" = "בחר נקודות"
-"vector.edit.selectAll" = "בחר את כל הנקודות"
-"vector.edit.setHandle" = "הגדר ידית"
-"vector.edit.smooth" = "החלק או חדד נקודות"
+"vector.edit.resize" = "שינוי גודל נקודות"
+"vector.edit.rotate" = "סיבוב נקודות"
+"vector.edit.select" = "בחירת נקודות"
+"vector.edit.selectAll" = "בחירת כל הנקודות"
+"vector.edit.setHandle" = "הגדרת ידית"
+"vector.edit.smooth" = "החלקה או חידוד נקודות"
"vector.edit.state" = "מצב עריכת וקטור"
"vector.edit.strokeCap" = "קצה קו בנקודה"
"vector.edit.strokeJoin" = "חיבור קו בנקודה"
"vector.edit.tool" = "כלי עריכת וקטור"
-"vector.edit.transform" = "שנה צורת נקודות"
+"vector.edit.transform" = "שינוי צורת נקודות"
"vector.edit.widthPoint" = "נקודת עובי"
-"vector.fillRule" = "הגדר כלל מילוי"
-"vector.flatten" = "שטח נתיב"
-"vector.join" = "חבר בחירה"
+"vector.fillRule" = "הגדרת כלל מילוי"
+"vector.flatten" = "שיטוח נתיב"
+"vector.join" = "חיבור בחירה"
"vector.offset" = "היסט נתיב"
-"vector.outlineStroke" = "המר קו מתאר לצורה"
-"vector.reverse" = "הפוך כיוון נתיב"
-"vector.reverseLoop" = "הפוך כיוון לולאה"
-"vector.simplify" = "פשט וקטור"
-"vector.smoothJoin" = "חבר בחירה בצורה חלקה"
-"version.autosave" = "שמור גרסה אוטומטית"
-"version.delete" = "מחק גרסה"
-"version.duplicate" = "שכפל גרסה"
+"vector.outlineStroke" = "המרת קו מתאר לצורה"
+"vector.reverse" = "היפוך כיוון נתיב"
+"vector.reverseLoop" = "היפוך כיוון לולאה"
+"vector.simplify" = "פישוט וקטור"
+"vector.smoothJoin" = "חיבור בחירה בצורה חלקה"
+"version.autosave" = "שמירת גרסה אוטומטית"
+"version.delete" = "מחיקת גרסה"
+"version.duplicate" = "שכפול גרסה"
"version.exitPreview" = "חזרה לגרסה הנוכחית"
-"version.list" = "הצג רשימת גרסאות"
-"version.preview" = "הצג גרסה"
-"version.rename" = "שנה שם גרסה"
-"version.restore" = "שחזר גרסה"
+"version.list" = "הצגת רשימת גרסאות"
+"version.preview" = "הצגת גרסה"
+"version.rename" = "שינוי שם גרסה"
+"version.restore" = "שחזור גרסה"
"view.assets" = "חלונית נכסים"
"view.comments" = "תגובות"
-"view.contextMenu" = "הצג תפריט הקשר"
+"view.contextMenu" = "הצגת תפריט הקשר"
"view.design" = "חלונית עיצוב"
-"view.designPrototype" = "החלף בין עיצוב לאב-טיפוס"
+"view.designPrototype" = "החלפה בין עיצוב לאב-טיפוס"
"view.devMode" = "מצב פיתוח"
"view.frameOutlines" = "קווי מתאר של מסגרות"
"view.fullscreen" = "מסך מלא"
-"view.get" = "קבל תצוגה"
+"view.get" = "קבלת תצוגה"
"view.layers" = "חלונית שכבות"
"view.layoutGrids" = "רשתות פריסה"
-"view.leftSidebar" = "הצג/הסתר סרגל צד שמאלי"
+"view.leftSidebar" = "הצגת/הסתרת סרגל צד שמאלי"
"view.maskOutlines" = "קווי מתאר של מסכות"
-"view.minimize" = "צמצם את הממשק"
+"view.minimize" = "צמצום הממשק"
"view.multiplayerCursors" = "סמני משתתפים"
-"view.nextFrame" = "התמקד במסגרת הבאה"
+"view.nextFrame" = "התמקדות במסגרת הבאה"
"view.nextPage" = "העמוד הבא"
-"view.nextRegion" = "מקד באזור הבא"
+"view.nextRegion" = "מיקוד באזור הבא"
"view.outlines" = "קווי מתאר"
-"view.outlinesHiddenLayers" = "כלול שכבות מוסתרות בקווי מתאר"
-"view.outlinesObjectBounds" = "כלול גבולות אובייקטים בקווי מתאר"
+"view.outlinesHiddenLayers" = "הכללת שכבות מוסתרות בקווי מתאר"
+"view.outlinesObjectBounds" = "הכללת גבולות אובייקטים בקווי מתאר"
"view.outlinesSelection" = "קווי מתאר עבור הבחירה"
-"view.pan" = "הזז תצוגה"
-"view.panelWidths" = "אפס רוחב חלוניות"
+"view.pan" = "הזזת תצוגה"
+"view.panelWidths" = "איפוס רוחב חלוניות"
"view.pixelGrid" = "רשת פיקסלים"
"view.pixelPreview" = "תצוגת פיקסלים מקדימה"
-"view.prevFrame" = "התמקד במסגרת הקודמת"
+"view.prevFrame" = "התמקדות במסגרת הקודמת"
"view.prevPage" = "העמוד הקודם"
-"view.previousRegion" = "מקד באזור הקודם"
+"view.previousRegion" = "מיקוד באזור הקודם"
"view.proofSrgb" = "הדמיית צבע sRGB"
"view.prototype" = "חלונית אב-טיפוס"
"view.rulers" = "סרגלים"
-"view.set" = "הגדר תצוגה"
+"view.set" = "הגדרת תצוגה"
"view.slices" = "אזורי חיתוך"
-"view.snapGeometry" = "הצמד לגאומטריה"
-"view.snapObjects" = "הצמד לאובייקטים"
-"view.snapPixel" = "הצמד לרשת הפיקסלים"
+"view.snapGeometry" = "הצמדה לגאומטריה"
+"view.snapObjects" = "הצמדה לאובייקטים"
+"view.snapPixel" = "הצמדה לרשת הפיקסלים"
"view.themeDark" = "ערכת נושא כהה"
"view.themeLight" = "ערכת נושא בהירה"
"view.themeSystem" = "לפי הגדרת המערכת"
-"view.toggleUi" = "הצג/הסתר ממשק"
+"view.toggleUi" = "הצגת/הסתרת ממשק"
"view.zoom100" = "זום ל-100%"
"view.zoom200" = "זום ל-200%"
"view.zoom50" = "זום ל-50%"
"view.zoomAt" = "כלי הזום"
"view.zoomFit" = "זום להתאמה לחלון"
-"view.zoomIn" = "התקרב"
-"view.zoomOut" = "התרחק"
+"view.zoomIn" = "התקרבות"
+"view.zoomOut" = "התרחקות"
"view.zoomSelection" = "זום לבחירה"
-"widget.click" = "לחץ על ווידג׳ט"
+"widget.click" = "לחיצה על ווידג׳ט"
"widget.hover" = "ריחוף מעל ווידג׳ט"
-"widget.insert" = "הוסף ווידג׳ט"
-"widget.list" = "הצג רשימת ווידג׳טים"
+"widget.insert" = "הוספת ווידג׳ט"
+"widget.list" = "הצגת רשימת ווידג׳טים"
"widget.menu" = "תפריט ווידג׳ט"
-"widget.setText" = "ערוך שדה ווידג׳ט"
-"window.focus" = "הבא חלון לחזית"
+"widget.setText" = "עריכת שדה ווידג׳ט"
+"window.focus" = "הבאת חלון לחזית"
"window.new" = "חלון חדש"
[menu]
@@ -2706,10 +2706,10 @@ status = "draft — needs native review"
"bool.intersect" = "חיתוך"
"bool.subtract" = "חיסור"
"bool.union" = "איחוד"
-"file.duplicate" = "שכפל"
+"file.duplicate" = "שכפול"
"file.import" = "ייבוא מקובץ…"
-"file.rename" = "שנה שם"
-"libraries.open" = "פתח ספריות"
+"file.rename" = "שינוי שם"
+"libraries.open" = "פתיחת ספריות"
"select.sameEffect" = "אפקט"
"select.sameFill" = "מילוי"
"select.sameFont" = "גופן"
@@ -2727,10 +2727,10 @@ status = "draft — needs native review"
"view.assets" = "נכסים"
"view.design" = "עיצוב"
"view.layers" = "שכבות"
-"view.outlines" = "הצג קווי מתאר"
-"view.outlinesHiddenLayers" = "כלול שכבות מוסתרות"
-"view.outlinesObjectBounds" = "כלול גבולות אובייקטים"
-"view.outlinesSelection" = "הצג קווי מתאר לבחירה"
+"view.outlines" = "הצגת קווי מתאר"
+"view.outlinesHiddenLayers" = "הכללת שכבות מוסתרות"
+"view.outlinesObjectBounds" = "הכללת גבולות אובייקטים"
+"view.outlinesSelection" = "הצגת קווי מתאר לבחירה"
"view.prototype" = "אב-טיפוס"
"view.themeDark" = "כהה"
"view.themeLight" = "בהיר"
diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs
index 7bbe7c661..48a88abb2 100644
--- a/crates/ui-egui/src/i18n/tests.rs
+++ b/crates/ui-egui/src/i18n/tests.rs
@@ -601,7 +601,7 @@ fn hebrew_tags_and_plurals() {
assert!(!plural_one(he, 0) && plural_one(he, 1) && !plural_one(he, 2) && !plural_one(he, 5));
let singular = fill(counted(he, "{n} layers", 1), &[("n", &1)]);
let dual = fill(counted(he, "{n} layers", 2), &[("n", &2)]);
- assert_eq!(singular, "שכבה 1");
+ assert_eq!(singular, "1 שכבה");
assert_eq!(dual, "2 שכבות");
}
From 56e5e9ed6f8f37491b21c0e18f159afd010534a7 Mon Sep 17 00:00:00 2001
From: HagaiBA
Date: Wed, 25 Nov 2026 00:25:12 +0200
Subject: [PATCH 42/57] =?UTF-8?q?i18n(he):=20refine=20disconnected=20warni?=
=?UTF-8?q?ng,=20=3Fkey=3D=E2=80=A6=20BiDi=20isolation,=20and=20select.sam?=
=?UTF-8?q?e*=20labels?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
crates/ui-egui/locales/he.toml | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/crates/ui-egui/locales/he.toml b/crates/ui-egui/locales/he.toml
index 4565a7232..d08852fef 100644
--- a/crates/ui-egui/locales/he.toml
+++ b/crates/ui-egui/locales/he.toml
@@ -1008,7 +1008,7 @@ Minimize = "מזעור"
"Normal" = "רגיל"
"Not bound" = "לא מקושר"
"Not checked yet" = "טרם נבדק"
-"Not connected: {reason}. Your work is still in this tab." = "אין חיבור: {reason}. העבודה עדיין שמורה בכרטיסייה זו."
+"Not connected: {reason}. Your work is still in this tab." = "אין חיבור: {reason}. העבודה עדיין בכרטיסייה זו."
"Not in a live session" = "לא במפגש חי"
"Not in this font" = "לא קיים בגופן זה"
"Not now" = "לא עכשיו"
@@ -1630,7 +1630,7 @@ Stop = "עצירה"
"This server doesn't count insertions" = "שרת זה אינו סופר הוספות"
"This server doesn't count styles and variables" = "שרת זה אינו סופר סגנונות ומשתנים"
"This server is open to the public: no key needed." = "שרת זה פתוח לציבור: אין צורך במפתח."
-"This server needs its key: add ?key=… to the address (`figcraft-server key` prints it on the server's machine)." = "שרת זה דורש את המפתח שלו: יש להוסיף ?key=… לכתובת (הפקודה `figcraft-server key` מדפיסה אותו במכונת השרת)."
+"This server needs its key: add ?key=… to the address (`figcraft-server key` prints it on the server's machine)." = "שרת זה דורש את המפתח שלו: יש להוסיף \u2066?key=…\u2069 לכתובת (הפקודה `figcraft-server key` מדפיסה אותו במכונת השרת)."
"This server takes files only with its key: see Advanced." = "שרת זה מקבל קבצים רק עם המפתח שלו: תחת ׳מתקדם׳."
"This variant's value" = "הערך של וריאנט זה"
"This version can't be read." = "לא ניתן לקרוא גרסה זו."
@@ -2426,13 +2426,13 @@ Update = "עדכון"
"select.parent" = "בחירת שכבת הורה"
"select.previous" = "בחירת שכבה אחות קודמת"
"select.remove" = "הסרה מהבחירה"
-"select.sameEffect" = "בחירת עם אותו אפקט"
-"select.sameFill" = "בחירת עם אותו מילוי"
-"select.sameFont" = "בחירת עם אותו גופן"
-"select.sameInstance" = "בחירת עם אותו מופע"
-"select.sameProperties" = "בחירת עם אותם מאפיינים"
-"select.sameStroke" = "בחירת עם אותו קו מתאר"
-"select.sameText" = "בחירת עם אותם מאפייני טקסט"
+"select.sameEffect" = "בחירת שכבות עם אותו אפקט"
+"select.sameFill" = "בחירת שכבות עם אותו מילוי"
+"select.sameFont" = "בחירת שכבות עם אותו גופן"
+"select.sameInstance" = "בחירת שכבות עם אותו מופע"
+"select.sameProperties" = "בחירת שכבות עם אותם מאפיינים"
+"select.sameStroke" = "בחירת שכבות עם אותו קו מתאר"
+"select.sameText" = "בחירת שכבות עם אותם מאפייני טקסט"
"select.set" = "בחירה"
"selection.applyColorStyle" = "החלת סגנון צבע על הבחירה"
"selection.bindColorVariable" = "החלת משתנה צבע על הבחירה"
From b237794c2eb82747d8c07936e9b692312c45d804 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Tue, 24 Nov 2026 18:29:04 -0500
Subject: [PATCH 43/57] Paste properties unlinks a layer whose copied style is
missing
A copied style link the file no longer has was dropped from the paste,
so the pasted layer kept its own style link. When the pasted values
differ, the list sync unlinks it after the command anyway; when they
match, the layer stayed linked to a style the copied layer never had.
The missing link now pastes as null, the same as a copied layer with
no style.
---
crates/engine/src/cmd/edit/clipboard.rs | 8 ++++++--
crates/engine/src/paste_properties_tests.rs | 17 +++++++++++++++++
2 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/crates/engine/src/cmd/edit/clipboard.rs b/crates/engine/src/cmd/edit/clipboard.rs
index 8b04f7d95..cc7b772f4 100644
--- a/crates/engine/src/cmd/edit/clipboard.rs
+++ b/crates/engine/src/cmd/edit/clipboard.rs
@@ -461,9 +461,13 @@ pub(crate) fn apply_copied_props(cmd: &str, doc: &mut Document, id: NodeId, prop
};
m.retain(|k, _| takes(k));
// A style or variable of another file (the copy came from another tab) isn't here to link to:
- // the values it gave are pasted without the link.
+ // the values it gave are pasted without a link, so the layer's own link goes too.
let here = |v: &Value| v.as_str().is_none_or(|sid| doc.style(sid).is_some());
- m.retain(|k, v| !k.ends_with("Style") || k.starts_with("font") || here(v));
+ for (k, v) in m.iter_mut() {
+ if k.ends_with("Style") && !k.starts_with("font") && !here(v) {
+ *v = Value::Null;
+ }
+ }
if let Some(Value::Object(copied)) = m.get_mut("boundVariables") {
copied.retain(|_, v| v.as_str().is_some_and(|vid| doc.variables.get_by_id(vid).is_some()));
}
diff --git a/crates/engine/src/paste_properties_tests.rs b/crates/engine/src/paste_properties_tests.rs
index e43fe947c..1315b7a72 100644
--- a/crates/engine/src/paste_properties_tests.rs
+++ b/crates/engine/src/paste_properties_tests.rs
@@ -75,3 +75,20 @@ fn links_another_file_lacks_paste_as_values() {
assert_eq!((nb.fills.clone(), nb.strokes.clone()), (copied.fills, copied.strokes), "the values arrive");
assert!(nb.bound.is_empty() && nb.styles.fill.is_none() && nb.styles.stroke.is_none(), "{:?} {:?}", nb.bound, nb.styles);
}
+
+#[test]
+fn a_missing_style_unlinks_the_layers_own() {
+ let mut s = Session::new();
+ let (a, b) = (frame(&mut s, 0.0), frame(&mut s, 200.0));
+ // B's own style gives the same colour, so the paste changes no value that would unlink it.
+ let gone = s.execute("style.create", &json!({"type": "paint", "name": "Gone", "value": "#00FF00"})).unwrap()["id"].clone();
+ let own = s.execute("style.create", &json!({"type": "paint", "name": "Own", "value": "#00FF00"})).unwrap()["id"].clone();
+ s.execute("style.apply", &json!({"ids": [a], "style": gone, "target": "stroke"})).unwrap();
+ s.execute("style.apply", &json!({"ids": [b], "style": own, "target": "stroke"})).unwrap();
+ s.execute("edit.copyProperties", &json!({"id": a})).unwrap();
+ s.execute("style.delete", &json!({"style": gone})).unwrap();
+
+ s.execute("edit.pasteProperties", &json!({"ids": [b]})).unwrap();
+ let nb = s.doc().unwrap().node(b).unwrap();
+ assert!(nb.styles.stroke.is_none(), "A's strokes had no style here, so B's aren't linked: {:?}", nb.styles);
+}
From 39405b02a644027e8ad293464a4b215466285b29 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Tue, 24 Nov 2026 18:30:36 -0500
Subject: [PATCH 44/57] The pixel grid test checks that its lines sit on the
screen's pixels
The test checked only the lines' width, so it still passed with the
lines placed between two screen pixels, where a one-pixel line spreads
over both at half strength and no longer reads as measured. It now pans
the view off whole points and checks every line's position at 1x and 2x.
---
crates/ui-egui/src/pixel_grid_tests.rs | 32 ++++++++++++++++++--------
1 file changed, 22 insertions(+), 10 deletions(-)
diff --git a/crates/ui-egui/src/pixel_grid_tests.rs b/crates/ui-egui/src/pixel_grid_tests.rs
index fbf1c3003..9333ffdc1 100644
--- a/crates/ui-egui/src/pixel_grid_tests.rs
+++ b/crates/ui-egui/src/pixel_grid_tests.rs
@@ -9,9 +9,10 @@ use crate::canvas::overlays::PIXEL_GRID;
use crate::layers_drag_tests::Ui;
use crate::live_tests::flat;
-/// The width of each grid line drawn in a frame on a screen of `native` pixels per point (the
-/// last of a few, for a new scale to take effect).
-fn grid_lines(u: &mut Ui, native: f32) -> Vec {
+/// Each grid line drawn in a frame on a screen of `native` pixels per point (the last of a few,
+/// for a new scale to take effect): its width and the coordinate it runs along, its x if
+/// vertical and its y if horizontal.
+fn grid_lines(u: &mut Ui, native: f32) -> Vec<(f32, f32)> {
let mut out = None;
for _ in 0..4 {
let mut raw = RawInput::default();
@@ -22,12 +23,18 @@ fn grid_lines(u: &mut Ui, native: f32) -> Vec {
shapes
.iter()
.filter_map(|s| match s {
- Shape::LineSegment { stroke, .. } if stroke.color == PIXEL_GRID => Some(stroke.width),
+ Shape::LineSegment { points: [a, b], stroke } if stroke.color == PIXEL_GRID => Some((stroke.width, if a.x == b.x { a.x } else { a.y })),
_ => None,
})
.collect()
}
+/// Whether every line in `lines` sits on the middle of a row or column of pixels of a screen of
+/// `native` pixels per point, so it covers that one pixel and no half of two.
+fn on_pixel_centres(lines: &[(f32, f32)], native: f32) -> bool {
+ lines.iter().all(|(_, at)| ((at * native - 0.5) - (at * native - 0.5).round()).abs() < 1e-3)
+}
+
/// `c` drawn over a grey of `bg`, as the canvas blends it.
fn over(c: Color32, bg: u8) -> f32 {
let [r, _, _, a] = c.to_srgba_unmultiplied();
@@ -40,15 +47,20 @@ fn the_pixel_grid_shows_on_white_and_on_dark_one_screen_pixel_wide() {
let mut s = Session::new();
s.execute("frame.create", &json!({"x": 0, "y": 0, "width": 100, "height": 100})).unwrap();
let mut u = Ui::new(s);
- u.app.session.ds_mut().unwrap().view.zoom = 8.0;
- let widths = grid_lines(&mut u, 1.0);
- assert!(!widths.is_empty(), "the grid draws at 800%");
- assert!(widths.iter().all(|w| *w == 1.0), "one screen pixel: {widths:?}");
+ let view = &mut u.app.session.ds_mut().unwrap().view;
+ view.zoom = 8.0;
+ // A view between whole points, so the page's pixels fall between the screen's.
+ (view.cx, view.cy) = (50.03, 50.07);
+ let lines = grid_lines(&mut u, 1.0);
+ assert!(!lines.is_empty(), "the grid draws at 800%");
+ assert!(lines.iter().all(|(w, _)| *w == 1.0), "one screen pixel: {lines:?}");
+ assert!(on_pixel_centres(&lines, 1.0), "on the screen's pixels: {lines:?}");
// Measured in Figma (2026-11-24): a grid line is 242 on white and 78 on a grey of 50.
assert_eq!((over(PIXEL_GRID, 255).round(), over(PIXEL_GRID, 50).round()), (242.0, 78.0));
// On a 2x screen the lines stay one of its pixels wide.
- let widths = grid_lines(&mut u, 2.0);
- assert!(!widths.is_empty() && widths.iter().all(|w| *w == 0.5), "{widths:?}");
+ let lines = grid_lines(&mut u, 2.0);
+ assert!(!lines.is_empty() && lines.iter().all(|(w, _)| *w == 0.5), "{lines:?}");
+ assert!(on_pixel_centres(&lines, 2.0), "on the 2x screen's pixels: {lines:?}");
u.app.session.ds_mut().unwrap().view.zoom = 3.0;
assert!(grid_lines(&mut u, 2.0).is_empty(), "no grid below 400%");
}
From 58b24d7faac48485bc321490241089f8d4a6e954 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Tue, 24 Nov 2026 18:31:17 -0500
Subject: [PATCH 45/57] Paste properties keeps bindings on what the copy
doesn't carry
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The pasted layer's bindings gave way on every property it could take,
not only on those the copy carries: frame properties pasted onto a text
layer removed its font size variable while leaving the font size, and a
copy without corners did the same to a bound radius. A binding now
gives way only where the copy sets that property.
Layout grid bindings are keyed `layoutGrids/…`, not `grids/…`, so a
frame's grid bindings also went to layers that take no grids.
---
crates/engine/src/cmd/edit/clipboard.rs | 23 ++++++++++++++++++---
crates/engine/src/paste_properties_tests.rs | 15 ++++++++++++++
2 files changed, 35 insertions(+), 3 deletions(-)
diff --git a/crates/engine/src/cmd/edit/clipboard.rs b/crates/engine/src/cmd/edit/clipboard.rs
index cc7b772f4..993521ffe 100644
--- a/crates/engine/src/cmd/edit/clipboard.rs
+++ b/crates/engine/src/cmd/edit/clipboard.rs
@@ -456,7 +456,7 @@ pub(crate) fn apply_copied_props(cmd: &str, doc: &mut Document, id: NodeId, prop
let takes = |k: &str| {
let text = k.starts_with("font") || k.starts_with("paragraph") || matches!(k, "lineHeight" | "letterSpacing" | "textStyle");
let corner = k == "cornerSmoothing" || k.ends_with("Radius");
- let grid = k == "gridStyle" || k == "grids" || k.starts_with("grids/");
+ let grid = k == "gridStyle" || k == "grids" || k.starts_with("layoutGrids/");
(is_text || !text) && (corners || !corner) && (frame || !grid)
};
m.retain(|k, _| takes(k));
@@ -472,16 +472,33 @@ pub(crate) fn apply_copied_props(cmd: &str, doc: &mut Document, id: NodeId, prop
copied.retain(|_, v| v.as_str().is_some_and(|vid| doc.variables.get_by_id(vid).is_some()));
}
// The layer's own bindings on what is pasted give way to the copied layer's: kept, a binding
- // would hold the old value over the pasted one.
+ // would hold the old value over the pasted one. A binding on what the copy doesn't carry (a
+ // text layer's font size, pasted from a frame) stays.
if let Some(Value::Object(copied)) = m.get("boundVariables") {
let mut bound: serde_json::Map =
- n.bound.keys().filter(|f| copied_binding(f) && takes(f)).map(|f| (f.clone(), Value::Null)).collect();
+ n.bound.keys().filter(|f| copied_binding(f) && m.contains_key(pasted_key(f))).map(|f| (f.clone(), Value::Null)).collect();
bound.extend(copied.iter().filter(|(f, _)| takes(f)).map(|(f, v)| (f.clone(), v.clone())));
m.insert("boundVariables".into(), Value::Object(bound));
}
crate::cmd::props::apply(cmd, doc, id, &m)
}
+/// The key of the properties [`copy_props_of`] copies that sets what a variable bound to `field`
+/// sets: a corner's radius is `cornerRadius`, a side's stroke weight `strokeWeight`, the font
+/// weight `fontStyle`, a layout grid's field `grids` and a paint's or effect's field its list.
+fn pasted_key(field: &str) -> &str {
+ match field {
+ "topLeftRadius" | "topRightRadius" | "bottomRightRadius" | "bottomLeftRadius" => "cornerRadius",
+ f if crate::cmd::props::STROKE_SIDES.contains(&f) => "strokeWeight",
+ "fontWeight" => "fontStyle",
+ f => match f.split_once('/') {
+ Some(("layoutGrids", _)) => "grids",
+ Some((list, _)) => list,
+ None => f,
+ },
+ }
+}
+
/// Whether a variable bound to `field` goes with the properties [`copy_props_of`] copies: not a
/// size, auto layout spacing, visibility or text content.
fn copied_binding(field: &str) -> bool {
diff --git a/crates/engine/src/paste_properties_tests.rs b/crates/engine/src/paste_properties_tests.rs
index 1315b7a72..d77891c14 100644
--- a/crates/engine/src/paste_properties_tests.rs
+++ b/crates/engine/src/paste_properties_tests.rs
@@ -92,3 +92,18 @@ fn a_missing_style_unlinks_the_layers_own() {
let nb = s.doc().unwrap().node(b).unwrap();
assert!(nb.styles.stroke.is_none(), "A's strokes had no style here, so B's aren't linked: {:?}", nb.styles);
}
+
+#[test]
+fn a_binding_on_what_the_copy_doesnt_carry_stays() {
+ let mut s = Session::new();
+ let a = frame(&mut s, 0.0);
+ let t = id(s.execute("text.create", &json!({"text": "Hi", "x": 0, "y": 200})).unwrap());
+ s.execute("variable.createCollection", &json!({"name": "Tokens"})).unwrap();
+ s.execute("variable.create", &json!({"collection": "Tokens", "name": "body", "type": "number", "value": 18})).unwrap();
+ s.execute("variable.bind", &json!({"ids": [t], "field": "fontSize", "variable": "body"})).unwrap();
+ let before = s.doc().unwrap().node(t).unwrap().bound.get("fontSize").cloned();
+
+ copy_onto(&mut s, a, t);
+ let nt = s.doc().unwrap().node(t).unwrap();
+ assert!(before.is_some() && nt.bound.get("fontSize") == before.as_ref(), "a frame carries no font size: {:?}", nt.bound);
+}
From 35ca50280f3ac6ff22ce5d277aa3a5319090ae8b Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Tue, 24 Nov 2026 18:37:06 -0500
Subject: [PATCH 46/57] Paste properties into another file pastes no links
Whether a copied style or variable was there to link to was decided by
its id, and ids are numbered per file: the first style of every file is
S:1. Pasted into another file that had styles or variables of its own,
the copy linked to whichever of them shared the copied id and took its
values instead of the copied ones. The test passed only because its
second file had none.
Copy properties now records the file it copied from, and a paste into
another file drops every style and variable link: the values paste
unlinked and the layer's own links on them go. The id check stays for
a style deleted since the copy.
---
crates/engine/src/cmd/edit/clipboard.rs | 28 ++++++++++++++++++---
crates/engine/src/paste_properties_tests.rs | 7 ++++++
crates/engine/src/prefs.rs | 3 +++
docs/ui-parity.md | 2 +-
4 files changed, 36 insertions(+), 4 deletions(-)
diff --git a/crates/engine/src/cmd/edit/clipboard.rs b/crates/engine/src/cmd/edit/clipboard.rs
index 993521ffe..ff54c9ac2 100644
--- a/crates/engine/src/cmd/edit/clipboard.rs
+++ b/crates/engine/src/cmd/edit/clipboard.rs
@@ -127,6 +127,7 @@ pub(super) fn paste_design_layers(s: &mut Session, p: &Value) -> Result {
// A design-app paste replaces the copied layers, not the copied rows: a `fill.copy` before it
// still pastes afterwards.
let props = s.clipboard.props.take();
+ let props_source_doc = s.clipboard.props_source_doc;
let paint = s.clipboard.paint.take();
let stroke = s.clipboard.stroke.take();
let paint_images = std::mem::take(&mut s.clipboard.paint_images);
@@ -138,6 +139,7 @@ pub(super) fn paste_design_layers(s: &mut Session, p: &Value) -> Result {
nodes,
images,
props,
+ props_source_doc,
paint,
stroke,
paint_images,
@@ -444,9 +446,26 @@ pub(super) fn copy_props(s: &mut Session, p: &Value) -> Result {
let id = targets(s, p).first().copied().ok_or_else(|| bad("edit.copyProperties", "select one layer"))?;
let v = copy_props_of(s.doc()?, id);
s.clipboard.props = Some(v.clone());
+ s.clipboard.props_source_doc = s.ds()?.uid;
Ok(v)
}
+/// Copied properties `props` without their style and variable links, for a paste into another
+/// file: the copied ids name the source file's styles and variables, and the same ids here can
+/// name unrelated ones. The values paste unlinked, and the layer's own links on them go.
+fn without_links(mut props: Value) -> Value {
+ if let Some(m) = props.as_object_mut() {
+ for (k, v) in m.iter_mut() {
+ if k.ends_with("Style") && !k.starts_with("font") {
+ *v = Value::Null;
+ } else if k == "boundVariables" {
+ *v = json!({});
+ }
+ }
+ }
+ props
+}
+
/// Give layer `id` the properties [`copy_props_of`] copied (`props`), those it can take: the text
/// properties only to text, the corners only to a layer with corners.
pub(crate) fn apply_copied_props(cmd: &str, doc: &mut Document, id: NodeId, props: &Value) -> Result<()> {
@@ -460,8 +479,8 @@ pub(crate) fn apply_copied_props(cmd: &str, doc: &mut Document, id: NodeId, prop
(is_text || !text) && (corners || !corner) && (frame || !grid)
};
m.retain(|k, _| takes(k));
- // A style or variable of another file (the copy came from another tab) isn't here to link to:
- // the values it gave are pasted without a link, so the layer's own link goes too.
+ // A style or variable the file doesn't have (deleted since the copy) isn't here to link to: the
+ // values it gave are pasted without a link, so the layer's own link goes too.
let here = |v: &Value| v.as_str().is_none_or(|sid| doc.style(sid).is_some());
for (k, v) in m.iter_mut() {
if k.ends_with("Style") && !k.starts_with("font") && !here(v) {
@@ -527,7 +546,10 @@ fn copied_binding(field: &str) -> bool {
}
pub(super) fn paste_props(s: &mut Session, p: &Value) -> Result {
- let props = s.clipboard.props.clone().ok_or_else(|| EngineError::Disabled("edit.pasteProperties".into(), "no copied properties".into()))?;
+ let mut props = s.clipboard.props.clone().ok_or_else(|| EngineError::Disabled("edit.pasteProperties".into(), "no copied properties".into()))?;
+ if s.ds()?.uid != s.clipboard.props_source_doc {
+ props = without_links(props);
+ }
let ids = req_targets("edit.pasteProperties", s, p)?;
let doc = s.doc_mut()?;
for i in ids {
diff --git a/crates/engine/src/paste_properties_tests.rs b/crates/engine/src/paste_properties_tests.rs
index d77891c14..c7d696ddd 100644
--- a/crates/engine/src/paste_properties_tests.rs
+++ b/crates/engine/src/paste_properties_tests.rs
@@ -70,6 +70,13 @@ fn links_another_file_lacks_paste_as_values() {
let copied = s.doc().unwrap().node(a).unwrap().clone();
s.execute("file.new", &json!({})).unwrap();
let b = frame(&mut s, 0.0);
+ // This file's own style and variable come out with the copied ids: they are not the copied ones.
+ s.execute("variable.createCollection", &json!({"name": "Theirs"})).unwrap();
+ s.execute("variable.create", &json!({"collection": "Theirs", "name": "ink", "type": "color", "value": "#0000FF"})).unwrap();
+ s.execute("style.create", &json!({"type": "paint", "name": "Ink", "value": "#0000FF"})).unwrap();
+ let doc = s.doc().unwrap();
+ let vid = copied.bound["fills/0/color"].as_str();
+ assert!(doc.style(st.as_str().unwrap()).is_some() && doc.variables.get_by_id(vid).is_some(), "the ids are taken here");
s.execute("edit.pasteProperties", &json!({"ids": [b]})).unwrap();
let nb = s.doc().unwrap().node(b).unwrap();
assert_eq!((nb.fills.clone(), nb.strokes.clone()), (copied.fills, copied.strokes), "the values arrive");
diff --git a/crates/engine/src/prefs.rs b/crates/engine/src/prefs.rs
index 4225963f5..ac6ea0c2f 100644
--- a/crates/engine/src/prefs.rs
+++ b/crates/engine/src/prefs.rs
@@ -197,6 +197,9 @@ pub struct Clipboard {
pub images: std::collections::BTreeMap,
/// Copied properties (Copy properties / Paste properties).
pub props: Option,
+ /// The file the copied properties came from: their style and variable ids name its styles and
+ /// variables, and in another file the same ids can name unrelated ones.
+ pub props_source_doc: u64,
/// A copied fill or stroke row (`fill.copy`, `stroke.copy`): whether it's a fill, and the paint.
pub paint: Option<(bool, figcraft_color::Paint)>,
/// The stroke settings (`weight`, alignment, sides…) copied with a stroke's paint.
diff --git a/docs/ui-parity.md b/docs/ui-parity.md
index b86f72b2b..003f59da7 100644
--- a/docs/ui-parity.md
+++ b/docs/ui-parity.md
@@ -211,7 +211,7 @@ This audit records candidates for subsequent fixes; their behaviour is unchanged
| Date | Change | Summary |
|---|---|---|
-| 2026-11-24 | patch | M4: Copy properties (Alt+Cmd/Ctrl+C) took a layer's values and left behind what they come from: a frame filled from a colour variable or a style pasted a plain colour, unlinked, and a pasted layer's own bindings stayed and could hold the old value over the pasted one. It now also carries the fill, stroke, effect, grid and text style links, the variables bound to what it copies (not size, auto layout spacing, visibility or text content) and a frame's layout grids; the pasted layer's bindings on those give way. A style or variable the file pasted into doesn't have (the copy came from another tab) is left out and its values pasted. Tests: `paste_properties_tests` (2). |
+| 2026-11-24 | patch | M4: Copy properties (Alt+Cmd/Ctrl+C) took a layer's values and left behind what they come from: a frame filled from a colour variable or a style pasted a plain colour, unlinked, and a pasted layer's own bindings stayed and could hold the old value over the pasted one. It now also carries the fill, stroke, effect, grid and text style links, the variables bound to what it copies (not size, auto layout spacing, visibility or text content) and a frame's layout grids; the pasted layer's bindings on what the copy carries give way, others stay. Pasted into another file (the copy came from another tab), or after its style was deleted, a link is left out, its values pasted and the layer's own link on them dropped. Tests: `paste_properties_tests` (4). |
| 2026-11-19 | patch | M4, #2338: superscript and subscript were drawn (#1868) but nothing in the interface set them. Type settings ▸ Details now starts with Position: None, Superscript (X²) or Subscript (X₂), for the selected text layers, through `text.setFeatures` (`sups`, `subs`; choosing one clears the other). It shows the layers' current position, none when they differ. Raising a range of characters on its own needs per-run features and is left for a separate change. Test: `typography::variable_tests::details_position_sets_superscript_subscript_or_neither`. |
| 2026-11-19 | patch | M1, #2447: Shift did nothing with the Pencil: a stroke stayed freehand while the Line tool and the Pen keep theirs to 45° steps. With Shift held, the Pencil (and the Marker and Highlighter) now draws one straight segment from where the stroke started to the pointer, at the nearest 45° step; the preview shows it. A Shift-click without a move draws nothing, as before. Tests: `pencil_shift_tests`. |
| 2026-11-19 | patch | M3, #2347: with one component or component set selected, the Design panel's header said only "Component" or "Component set", so the selected one's name was only in the Layers panel. It now shows the name after a component icon (cut short with an ellipsis clear of the quick actions), with the type, and the whole name when cut, on hover. Other layers keep their type. Test: `component_header_tests::the_header_names_the_selected_component_or_set`. |
From 26b25644cfbc894c9940c7e19a9978f5931dd4dc Mon Sep 17 00:00:00 2001
From: ATOM
Date: Tue, 24 Nov 2026 21:54:38 -0600
Subject: [PATCH 47/57] fix(dev): use SVG assets for vector code
---
crates/engine/src/dev/codegen.rs | 32 ++++++++++++++++++++++++++
crates/engine/src/dev/codegen/arkui.rs | 2 +-
crates/engine/src/dev/codegen/html.rs | 10 ++++++++
crates/engine/src/dev/codegen/swift.rs | 4 +++-
docs/dev-mode-parity.md | 4 ++++
5 files changed, 50 insertions(+), 2 deletions(-)
diff --git a/crates/engine/src/dev/codegen.rs b/crates/engine/src/dev/codegen.rs
index 28213e234..152af4136 100644
--- a/crates/engine/src/dev/codegen.rs
+++ b/crates/engine/src/dev/codegen.rs
@@ -384,6 +384,10 @@ fn stroke_color(n: &Node) -> Option {
/// The CSS borders a solid stroke makes: one `border`, or with individual stroke sides a border
/// on each side that has a weight.
fn css_borders(doc: &Document, n: &Node, t: &mut Tokens) -> Vec<(String, String)> {
+ // A vector's stroke belongs to its path, not to a rectangle around its bounding box.
+ if matches!(n.kind, NodeKind::Vector { .. }) {
+ return Vec::new();
+ }
let Some(c) = stroke_color(n) else { return Vec::new() };
let Some(sides) = n.stroke.sides else {
let weight = tok(doc, n, &["strokeWeight"], format!("{}px", num(n.stroke.weight)), t);
@@ -573,6 +577,34 @@ mod tests {
assert!(!css.contains("gradient"), "{css}");
}
+ #[test]
+ fn vector_code_uses_its_svg_asset_not_a_box_border() {
+ let mut s = Session::new();
+ let icon =
+ id_of(&s.execute("frame.create", &json!({"name": "icon", "width": 24, "height": 24, "props": {"fill": "none"}})).unwrap()["id"]).unwrap();
+ s.execute("vector.create", &json!({"path": "M4 12 L10 18 L20 6", "parent": icon, "name": "check", "props": {"fill": "none", "stroke": "#1F3A68", "strokeWeight": 2}})).unwrap();
+ let doc = s.doc().unwrap();
+ let html = code_for(doc, icon, CodeLang::Html);
+ assert!(html.contains(""), "{html}");
+ assert!(!html.contains("border: 2px solid"), "{html}");
+ for lang in [CodeLang::React, CodeLang::Vue, CodeLang::Leptos, CodeLang::Tailwind] {
+ let code = code_for(doc, icon, lang);
+ assert!(code.contains(" String {
s.replace('&', "&").replace('<', "<").replace('>', ">").replace('\n', " ")
}
+/// A layer name in a quoted markup attribute, with line breaks flattened.
+fn attr_escape(s: &str) -> String {
+ s.replace('&', "&").replace('<', "<").replace('>', ">").replace('"', """).replace(['\n', '\r'], " ")
+}
+
/// Text as JSX children: HTML escapes, braces as expressions, line breaks as ` `.
fn jsx_text(s: &str) -> String {
let mut out = String::new();
@@ -339,6 +344,11 @@ impl<'c, 'a> Markup<'c, 'a> {
}
let open = |tag: &str| format!("{pad}<{tag} {attr}=\"{class}\"{attrs}>");
match &n.kind {
+ NodeKind::Vector { .. } => {
+ // The exported SVG carries the path and its stroke; the class only places it.
+ let alt = attr_escape(&n.name);
+ self.markup.push_str(&format!("{pad}\n"));
+ }
NodeKind::Text(t) => {
let body = self.text_body(n, t);
self.markup.push_str(&format!("{}{body}\n", open("p")));
diff --git a/crates/engine/src/dev/codegen/swift.rs b/crates/engine/src/dev/codegen/swift.rs
index 553f4f296..f1b44f006 100644
--- a/crates/engine/src/dev/codegen/swift.rs
+++ b/crates/engine/src/dev/codegen/swift.rs
@@ -192,7 +192,9 @@ fn swift_layer(ctx: &Ctx, n: &Node, depth: usize, out: &mut String, extra: &[Str
mods.push(format!(".frame(width: {w}, height: {h})"));
}
}
- if let Some(c) = stroke_color(n) {
+ if !matches!(n.kind, NodeKind::Vector { .. })
+ && let Some(c) = stroke_color(n)
+ {
mods.push(format!(
".overlay(RoundedRectangle(cornerRadius: {corner}).stroke({}, lineWidth: {}))",
bound(&["stroke"], swift_color(c)),
diff --git a/docs/dev-mode-parity.md b/docs/dev-mode-parity.md
index 0443708c0..14003920b 100644
--- a/docs/dev-mode-parity.md
+++ b/docs/dev-mode-parity.md
@@ -1,6 +1,8 @@
# Dev Mode parity
> **Last reviewed:** 2026-10-24 · **Last updated:** 2026-11-12 · **Change:** patch (SwiftUI, Compose and Flutter code write every visible colour and gradient fill of a frame, group, rectangle or ellipse in paint order, gradients as gradients, instead of one colour per layer (chained `.background` in SwiftUI, chained `Modifier.background` in Compose, a `DecoratedBox` for each fill under the top one in Flutter); CSS code export writes several fills as one layered `background`, top first, as the incumbent does (#2271): a solid above another fill becomes a one-colour gradient, the bottom solid stays a plain colour, Tailwind gets one `[background:...]` class; the Annotation tool (Shift+T, `tool.annotation {id?}`): with a layer selected (or an `id`) it asks the UI for that layer's note at once, and in the tool a press on a layer selects it and asks for its note, a press on empty canvas does nothing; the Inspect tab then opens (never toggles away) with the caret in that layer's new-note field, and the engine never writes the note itself (#1840); the handoff mode reads Developer Mode in the interface, its ids and saved fields unchanged; class names transliterate non-ASCII layer names (#1235); measurements kept on the canvas; a read-only layers panel in Dev Mode; earlier: import lines in generated layer trees; compare with any saved version; Dev Mode behaviour suite: an inspect-only canvas, Changed in the ready list, statuses only on frames and sections; plugin panels from the Inspect tab) · **Target:** Figma Design Dev Mode (desktop app 126.10.7)
+>
+> **2026-11-24 patch:** vector code export uses the SVG asset instead of inventing a box around its bounds: web markup references the SVG, and CSS, SwiftUI and ArkUI no longer draw a rectangle from the path stroke (#2270).
**Breadth ~98%, ready ~78% (estimated).** The inspect surface is broad, components connect
to the code components of a repository (with their imports, also inside generated layer trees),
@@ -10,6 +12,7 @@ repository, third-party integrations. Remaining: 1–2 h.
| Feature | Status | Notes |
|---|---|---|
+| 2026-11-24 | patch | Vector code export drew a path's stroke as a box border around its bounds (#2270). CSS, HTML, React, Vue, Leptos and Tailwind no longer invent that border; the markup targets write an `` reference to the vector's SVG asset. SwiftUI and ArkUI no longer put a rectangle stroke around their vector image either. Ordinary box and ellipse strokes are unchanged. Test: `dev::codegen::tests::vector_code_uses_its_svg_asset_not_a_box_border`; real CLI exports the referenced SVG with the stroked path |
| 2026-11-12 | patch | SwiftUI, Compose and Flutter code export kept one colour per layer (the bottom visible solid, or a gradient's first stop) and dropped every other fill (#2271). Now each writes every visible solid and gradient fill of a frame, group, rectangle or ellipse, in paint order, and a gradient as a gradient. SwiftUI chains `.background(...)` with the top fill first, since each one goes behind the ones before it (a rectangle or ellipse fills with the bottom paint and lays a copy of the shape over it for each paint above). Compose chains `Modifier.background(...)` with the bottom fill first, since each one draws over the ones before it (a linear gradient snaps to eight directions, radial and angular ones sit at the box's centre). Flutter keeps the top fill in the `Container` and wraps each fill under it in a `DecoratedBox`, the bottom fill outermost and the drop shadow on the outermost box. A layer with one solid fill gives the same code as before; a lone gradient is now a gradient, not its first stop's colour. Still not written: image and pattern fills in the native targets, ArkUI (one background and one gradient per component, so a stack needs extra nodes) and text with several fills. The incumbent's iOS and Android output wasn't measured: the order follows how each platform paints. Percentages and hours unchanged |
| 2026-11-07 | patch | Naming: the handoff mode is called Developer Mode in the interface, its shortcut row, its toasts, the control channel's refusal, the board refusal, the measurement parameter doc, the `.fig` export note, the CLI help and every catalog (24 languages, translations awaiting native review), since Figma holds a US registration for Dev Mode (7574348); command ids (`view.devMode`, `devMode.*`), preference keys and saved-document fields are unchanged, and the Actions palette still finds the command by the old name |
| Dev Mode toggle (Shift+D), Inspect panel | done | the canvas only inspects: presses select, pan and comment but never move, resize, draw or edit text and vectors; menus and shortcuts refuse design edits with a note (Dev Mode's annotations, statuses, dev resources, measurements, code connections and comments still work); a drawing tool chosen in the toolbar goes back to the design. The layers panel only selects and expands (no renaming, reordering, hiding or locking; a double click says why), and the Pages list only opens pages (no adding, renaming, reordering, duplicating or deleting). Files dropped on the canvas aren't imported (a dropped document still opens as a file of its own), and the Assets panel places, swaps and applies nothing, doesn't change Hide when publishing, and doesn't accept library updates or add, remove or swap libraries; each says why |
@@ -30,6 +33,7 @@ repository, third-party integrations. Remaining: 1–2 h.
| Date | Change | Summary |
|---|---|---|
+| 2026-11-24 | patch | Vector code export writes the SVG asset, not a rectangle made from the path's stroke (#2270). Percentages and hours unchanged. |
| 2026-11-13 | patch | Rows that recent merges had duplicated or garbled are merged back into one row each (no behaviour change): Code: CSS, iOS (SwiftUI), Android (Compose), Flutter. |
| 2026-11-12 | patch | CSS code export (#2271): a layer with several fills wrote one `background` per fill, so only the last survived. It now writes one `background` with every visible fill as a layer, top fill first, comma-separated: a solid above another fill is `linear-gradient(0deg, c, c)` (CSS allows a plain colour only as the last layer), the bottom solid stays a plain colour (with its variable), images and patterns keep their `url(...)` layers. Tailwind output carries the layered value as one `[background:...]` class. Text keeps one `color` per fill. Native targets unchanged. Percentages and hours unchanged |
| 2026-11-09 | patch | The Annotation tool (Shift+T, `tool.annotation {id?}`): selects the layer pressed on (or the selection, or `id`) and asks the UI for its note, which the Inspect tab takes in its new-note field; the engine writes nothing itself, and Developer Mode lets the tool through its gates (#1840). Figma's placement, cursor and whether the tool stays selected are unmeasured (Developer Mode is paywalled in the web app); staying selected until V or Escape, like the Comment tool, is inferred, and there is no toolbar button or icon yet |
From ab7c0e22254e9b215c5ab15b3fb4b294f9fb2f81 Mon Sep 17 00:00:00 2001
From: ATOM
Date: Tue, 24 Nov 2026 23:35:42 -0600
Subject: [PATCH 48/57] fix(dev): align vector asset references
---
apps/figcraft-cli/src/files.rs | 30 ++++-------------------
crates/engine/src/cmd/file.rs | 35 +++++++++++++++++++++++++++
crates/engine/src/dev/codegen.rs | 19 ++++++++++++++-
crates/engine/src/dev/codegen/css.rs | 7 +++++-
crates/engine/src/dev/codegen/html.rs | 11 +++++++--
5 files changed, 73 insertions(+), 29 deletions(-)
diff --git a/apps/figcraft-cli/src/files.rs b/apps/figcraft-cli/src/files.rs
index 5f4a006f4..a916e4ecb 100644
--- a/apps/figcraft-cli/src/files.rs
+++ b/apps/figcraft-cli/src/files.rs
@@ -5,6 +5,9 @@ use std::path::Path;
use std::process::ExitCode;
use figcraft_doc::{Document, ExportFormat, ExportSetting, NodeId, NodeKind, PrintSettings, VdCompat};
+use figcraft_engine::cmd::file::ExportNames;
+#[cfg(test)]
+use figcraft_engine::cmd::file::export_file_stem as sanitize;
use figcraft_engine::{BatchScope, BatchStep, Session};
use serde_json::{Value, json};
@@ -236,18 +239,6 @@ pub fn info(path: &str, as_json: bool) -> CliResult {
Ok(ExitCode::SUCCESS)
}
-/// The file name a layer exports to: the app's rule ([`figcraft_engine::cmd::file::safe_file_name`],
-/// so `/` becomes `_` too), without leading or trailing spaces and dots, at most 100 characters
-/// and 200 bytes (file systems allow 255, and a number and the extension still fit).
-fn sanitize(name: &str) -> String {
- let s = figcraft_engine::cmd::file::safe_file_name(name);
- let s = s.trim_matches(|c: char| c == '.' || c.is_whitespace());
- let cap = |s: &str| s.char_indices().take(100).take_while(|(i, c)| i + c.len_utf8() <= 200).map(|(_, c)| c).collect::();
- // Truncation can expose a device name; its escape must still fit the limits.
- let s = figcraft_engine::file_access::escape_device_names(&cap(s));
- if s.is_empty() { "layer".into() } else { cap(&s) }
-}
-
/// What `export` exports and how.
pub struct Target {
pub format: Option,
@@ -313,20 +304,9 @@ pub fn export(file: &str, out: &str, t: &Target) -> CliResult {
if ids.is_empty() {
return Err(CliError::Failed("the page is empty: nothing to export".into()));
}
- let mut used = std::collections::BTreeSet::new();
- let mut next_suffix: std::collections::HashMap = std::collections::HashMap::new();
+ let mut names = ExportNames::default();
for id in ids {
- let base = sanitize(doc.node(id).map(|n| n.name.as_str()).unwrap_or("layer"));
- let base_lower = base.to_lowercase();
- let next = next_suffix.entry(base_lower).or_insert(1);
- let name = loop {
- let k = *next;
- *next += 1;
- let candidate = if k == 1 { base.clone() } else { format!("{base} {k}") };
- if used.insert(candidate.to_lowercase()) {
- break candidate;
- }
- };
+ let name = names.push(doc.node(id).map(|n| n.name.as_str()).unwrap_or("layer"));
let path = Path::new(out).join(format!("{name}.{}", fmt.ext())).to_string_lossy().into_owned();
write(&path, &bytes_of(&[id])?)?;
println!("{path}");
diff --git a/crates/engine/src/cmd/file.rs b/crates/engine/src/cmd/file.rs
index 0c84f3458..fe562359a 100644
--- a/crates/engine/src/cmd/file.rs
+++ b/crates/engine/src/cmd/file.rs
@@ -47,6 +47,41 @@ pub use version::MAX_AUTOSAVES;
pub(crate) use version::{add_version, keep_in_history, read_version, unique_id};
use version::{autosave, restore_version, save_version, version_index, version_json, version_list};
+/// The file base a layer exports to, shared by filesystem export and generated asset references.
+/// Preserves case and ordinary spaces, strips leading/trailing dots and whitespace, and caps at
+/// 100 characters and 200 bytes so a number and extension still fit common filesystems.
+pub fn export_file_stem(name: &str) -> String {
+ let s = safe_file_name(name);
+ let s = s.trim_matches(|c: char| c == '.' || c.is_whitespace());
+ let cap = |s: &str| s.char_indices().take(100).take_while(|(i, c)| i + c.len_utf8() <= 200).map(|(_, c)| c).collect::();
+ // Truncation can expose a device name; its escape must still fit the limits.
+ let s = crate::file_access::escape_device_names(&cap(s));
+ if s.is_empty() { "layer".into() } else { cap(&s) }
+}
+
+/// Case-insensitively unique export file bases, using the exporter's `" 2"`, `" 3"` suffixes.
+#[derive(Default)]
+pub struct ExportNames {
+ used: std::collections::BTreeSet,
+ next_suffix: std::collections::HashMap,
+}
+
+impl ExportNames {
+ /// Resolve the next layer name exactly as the filesystem exporter does.
+ pub fn push(&mut self, layer_name: &str) -> String {
+ let base = export_file_stem(layer_name);
+ let next = self.next_suffix.entry(base.to_lowercase()).or_insert(1);
+ loop {
+ let k = *next;
+ *next += 1;
+ let candidate = if k == 1 { base.clone() } else { format!("{base} {k}") };
+ if self.used.insert(candidate.to_lowercase()) {
+ return candidate;
+ }
+ }
+ }
+}
+
/// A new file of `kind` in a tab of its own.
fn new_file(s: &mut Session, p: &Value, kind: FileKind) -> Result {
let name = string(p, "name").unwrap_or_else(|| if kind == FileKind::Board { "Untitled board" } else { "Untitled" }.into());
diff --git a/crates/engine/src/dev/codegen.rs b/crates/engine/src/dev/codegen.rs
index 152af4136..373b1cd7d 100644
--- a/crates/engine/src/dev/codegen.rs
+++ b/crates/engine/src/dev/codegen.rs
@@ -582,11 +582,13 @@ mod tests {
let mut s = Session::new();
let icon =
id_of(&s.execute("frame.create", &json!({"name": "icon", "width": 24, "height": 24, "props": {"fill": "none"}})).unwrap()["id"]).unwrap();
- s.execute("vector.create", &json!({"path": "M4 12 L10 18 L20 6", "parent": icon, "name": "check", "props": {"fill": "none", "stroke": "#1F3A68", "strokeWeight": 2}})).unwrap();
+ let check = id_of(&s.execute("vector.create", &json!({"path": "M4 12 L10 18 L20 6", "parent": icon, "name": "check", "props": {"fill": "none", "stroke": "#1F3A68", "strokeWeight": 2}})).unwrap()["id"]).unwrap();
+ s.doc_mut().unwrap().get_mut(check).unwrap().fills = vec![Paint::solid(Color::WHITE)];
let doc = s.doc().unwrap();
let html = code_for(doc, icon, CodeLang::Html);
assert!(html.contains(""), "{html}");
assert!(!html.contains("border: 2px solid"), "{html}");
+ assert!(!html.contains("background:"), "the vector's fill belongs to its SVG, not its box: {html}");
for lang in [CodeLang::React, CodeLang::Vue, CodeLang::Leptos, CodeLang::Tailwind] {
let code = code_for(doc, icon, lang);
assert!(code.contains(" = n.fills.iter().enumerate().filter(|(_, p)| p.visible).collect();
+ let visible: Vec<(usize, &figcraft_color::Paint)> = if matches!(n.kind, NodeKind::Vector { .. }) {
+ // The SVG carries the path's fills; an image's box must not get a rectangular one.
+ Vec::new()
+ } else {
+ n.fills.iter().enumerate().filter(|(_, p)| p.visible).collect()
+ };
let layers: Vec = visible
.iter()
.enumerate()
diff --git a/crates/engine/src/dev/codegen/html.rs b/crates/engine/src/dev/codegen/html.rs
index 9ccd99d7e..5b34c4d3c 100644
--- a/crates/engine/src/dev/codegen/html.rs
+++ b/crates/engine/src/dev/codegen/html.rs
@@ -152,6 +152,8 @@ pub(crate) struct Markup<'c, 'a> {
/// With `fluid`, other layers at least this share of the root's width are fluid too (a
/// divider, a banner image); smaller ones (icons) keep their size. Default: none.
pub fluid_leaves: f64,
+ /// SVG asset names, resolved by the same policy as the filesystem exporter.
+ asset_names: crate::cmd::file::ExportNames,
}
/// How `n` sits in its parent: in the flex flow, or placed at its position.
@@ -197,6 +199,7 @@ impl<'c, 'a> Markup<'c, 'a> {
inline: false,
fluid: false,
fluid_leaves: f64::INFINITY,
+ asset_names: Default::default(),
}
}
@@ -346,8 +349,12 @@ impl<'c, 'a> Markup<'c, 'a> {
match &n.kind {
NodeKind::Vector { .. } => {
// The exported SVG carries the path and its stroke; the class only places it.
- let alt = attr_escape(&n.name);
- self.markup.push_str(&format!("{pad}\n"));
+ let src = self.asset_names.push(&n.name);
+ // Leptos attributes are Rust string literals; the other targets use HTML escaping.
+ let quote = |value: &str| if self.lang == CodeLang::Leptos { format!("{value:?}") } else { format!("\"{}\"", attr_escape(value)) };
+ let src = quote(&format!("{src}.svg"));
+ let alt = quote(&n.name);
+ self.markup.push_str(&format!("{pad}\n"));
}
NodeKind::Text(t) => {
let body = self.text_body(n, t);
From 91de53c5862e9b2610cd3d9dcbf5705f80c366f8 Mon Sep 17 00:00:00 2001
From: ATOM
Date: Wed, 25 Nov 2026 01:30:37 -0600
Subject: [PATCH 49/57] fix(dev): embed node-local vector assets
---
crates/engine/src/dev/codegen.rs | 36 +++++++++++++++++++++------
crates/engine/src/dev/codegen/html.rs | 29 +++++++++++++++------
docs/dev-mode-parity.md | 6 ++---
3 files changed, 54 insertions(+), 17 deletions(-)
diff --git a/crates/engine/src/dev/codegen.rs b/crates/engine/src/dev/codegen.rs
index 373b1cd7d..c6a732e8f 100644
--- a/crates/engine/src/dev/codegen.rs
+++ b/crates/engine/src/dev/codegen.rs
@@ -577,6 +577,17 @@ mod tests {
assert!(!css.contains("gradient"), "{css}");
}
+ fn embedded_svgs(code: &str) -> Vec {
+ use base64::Engine as _;
+ code.split("data:image/svg+xml;base64,")
+ .skip(1)
+ .map(|rest| {
+ let b64 = rest.split('"').next().unwrap();
+ String::from_utf8(base64::engine::general_purpose::STANDARD.decode(b64).unwrap()).unwrap()
+ })
+ .collect()
+ }
+
#[test]
fn vector_code_uses_its_svg_asset_not_a_box_border() {
let mut s = Session::new();
@@ -586,12 +597,16 @@ mod tests {
s.doc_mut().unwrap().get_mut(check).unwrap().fills = vec![Paint::solid(Color::WHITE)];
let doc = s.doc().unwrap();
let html = code_for(doc, icon, CodeLang::Html);
- assert!(html.contains(""), "{html}");
+ assert!(html.contains(" String {
s.replace('&', "&").replace('<', "<").replace('>', ">").replace('"', """).replace(['\n', '\r'], " ")
}
+/// A vector as a self-contained SVG asset. CSS owns the node's placement and opacity, so the
+/// embedded geometry is node-local and fully opaque. No filesystem export or URL escaping is
+/// needed, and nested vectors work exactly like top-level ones.
+fn vector_data_uri(doc: &mut Document, n: &Node) -> Option {
+ let node = doc.get_mut(n.id).ok()?;
+ node.parent = None;
+ node.transform = figcraft_geom::Affine::IDENTITY;
+ node.opacity = 1.0;
+ let svg = figcraft_svg::export_svg(doc, &[n.id], &Default::default())?;
+ Some(format!("data:image/svg+xml;base64,{}", base64::engine::general_purpose::STANDARD.encode(svg)))
+}
+
/// Text as JSX children: HTML escapes, braces as expressions, line breaks as ` `.
fn jsx_text(s: &str) -> String {
let mut out = String::new();
@@ -152,8 +166,8 @@ pub(crate) struct Markup<'c, 'a> {
/// With `fluid`, other layers at least this share of the root's width are fluid too (a
/// divider, a banner image); smaller ones (icons) keep their size. Default: none.
pub fluid_leaves: f64,
- /// SVG asset names, resolved by the same policy as the filesystem exporter.
- asset_names: crate::cmd::file::ExportNames,
+ /// Lazily cloned once for node-local SVG assets, not once per vector.
+ asset_doc: Option,
}
/// How `n` sits in its parent: in the flex flow, or placed at its position.
@@ -199,7 +213,7 @@ impl<'c, 'a> Markup<'c, 'a> {
inline: false,
fluid: false,
fluid_leaves: f64::INFINITY,
- asset_names: Default::default(),
+ asset_doc: None,
}
}
@@ -348,13 +362,14 @@ impl<'c, 'a> Markup<'c, 'a> {
let open = |tag: &str| format!("{pad}<{tag} {attr}=\"{class}\"{attrs}>");
match &n.kind {
NodeKind::Vector { .. } => {
- // The exported SVG carries the path and its stroke; the class only places it.
- let src = self.asset_names.push(&n.name);
// Leptos attributes are Rust string literals; the other targets use HTML escaping.
let quote = |value: &str| if self.lang == CodeLang::Leptos { format!("{value:?}") } else { format!("\"{}\"", attr_escape(value)) };
- let src = quote(&format!("{src}.svg"));
+ let root_doc = self.ctx.doc;
+ let src = vector_data_uri(self.asset_doc.get_or_insert_with(|| root_doc.clone()), n)
+ .map(|uri| format!(" src={}", quote(&uri)))
+ .unwrap_or_default();
let alt = quote(&n.name);
- self.markup.push_str(&format!("{pad}\n"));
+ self.markup.push_str(&format!("{pad}\n"));
}
NodeKind::Text(t) => {
let body = self.text_body(n, t);
diff --git a/docs/dev-mode-parity.md b/docs/dev-mode-parity.md
index 14003920b..491647eb1 100644
--- a/docs/dev-mode-parity.md
+++ b/docs/dev-mode-parity.md
@@ -2,7 +2,7 @@
> **Last reviewed:** 2026-10-24 · **Last updated:** 2026-11-12 · **Change:** patch (SwiftUI, Compose and Flutter code write every visible colour and gradient fill of a frame, group, rectangle or ellipse in paint order, gradients as gradients, instead of one colour per layer (chained `.background` in SwiftUI, chained `Modifier.background` in Compose, a `DecoratedBox` for each fill under the top one in Flutter); CSS code export writes several fills as one layered `background`, top first, as the incumbent does (#2271): a solid above another fill becomes a one-colour gradient, the bottom solid stays a plain colour, Tailwind gets one `[background:...]` class; the Annotation tool (Shift+T, `tool.annotation {id?}`): with a layer selected (or an `id`) it asks the UI for that layer's note at once, and in the tool a press on a layer selects it and asks for its note, a press on empty canvas does nothing; the Inspect tab then opens (never toggles away) with the caret in that layer's new-note field, and the engine never writes the note itself (#1840); the handoff mode reads Developer Mode in the interface, its ids and saved fields unchanged; class names transliterate non-ASCII layer names (#1235); measurements kept on the canvas; a read-only layers panel in Dev Mode; earlier: import lines in generated layer trees; compare with any saved version; Dev Mode behaviour suite: an inspect-only canvas, Changed in the ready list, statuses only on frames and sections; plugin panels from the Inspect tab) · **Target:** Figma Design Dev Mode (desktop app 126.10.7)
>
-> **2026-11-24 patch:** vector code export uses the SVG asset instead of inventing a box around its bounds: web markup references the SVG, and CSS, SwiftUI and ArkUI no longer draw a rectangle from the path stroke (#2270).
+> **2026-11-24 patch:** vector code export uses a self-contained SVG asset instead of inventing a box around its bounds: web markup embeds the node-local SVG as a data URI, and CSS, SwiftUI and ArkUI no longer draw a rectangle from the path stroke (#2270).
**Breadth ~98%, ready ~78% (estimated).** The inspect surface is broad, components connect
to the code components of a repository (with their imports, also inside generated layer trees),
@@ -12,7 +12,7 @@ repository, third-party integrations. Remaining: 1–2 h.
| Feature | Status | Notes |
|---|---|---|
-| 2026-11-24 | patch | Vector code export drew a path's stroke as a box border around its bounds (#2270). CSS, HTML, React, Vue, Leptos and Tailwind no longer invent that border; the markup targets write an `` reference to the vector's SVG asset. SwiftUI and ArkUI no longer put a rectangle stroke around their vector image either. Ordinary box and ellipse strokes are unchanged. Test: `dev::codegen::tests::vector_code_uses_its_svg_asset_not_a_box_border`; real CLI exports the referenced SVG with the stroked path |
+| 2026-11-24 | patch | Vector code export drew a path's stroke as a box border around its bounds (#2270). CSS, HTML, React, Vue, Leptos and Tailwind no longer invent that border or a rectangular fill; the markup targets embed node-local SVG data URIs, so nested vectors need no external export and URL fragments cannot break them. CSS alone applies node rotation and opacity. SwiftUI and ArkUI no longer put a rectangle stroke around their vector image either. Ordinary box and ellipse strokes are unchanged. Tests: `dev::codegen::tests::vector_code_uses_its_svg_asset_not_a_box_border`, `dev::codegen::tests::vector_assets_are_self_contained_and_leptos_literals_escape`; real CLI decodes four nested SVGs and checks rotation/opacity |
| 2026-11-12 | patch | SwiftUI, Compose and Flutter code export kept one colour per layer (the bottom visible solid, or a gradient's first stop) and dropped every other fill (#2271). Now each writes every visible solid and gradient fill of a frame, group, rectangle or ellipse, in paint order, and a gradient as a gradient. SwiftUI chains `.background(...)` with the top fill first, since each one goes behind the ones before it (a rectangle or ellipse fills with the bottom paint and lays a copy of the shape over it for each paint above). Compose chains `Modifier.background(...)` with the bottom fill first, since each one draws over the ones before it (a linear gradient snaps to eight directions, radial and angular ones sit at the box's centre). Flutter keeps the top fill in the `Container` and wraps each fill under it in a `DecoratedBox`, the bottom fill outermost and the drop shadow on the outermost box. A layer with one solid fill gives the same code as before; a lone gradient is now a gradient, not its first stop's colour. Still not written: image and pattern fills in the native targets, ArkUI (one background and one gradient per component, so a stack needs extra nodes) and text with several fills. The incumbent's iOS and Android output wasn't measured: the order follows how each platform paints. Percentages and hours unchanged |
| 2026-11-07 | patch | Naming: the handoff mode is called Developer Mode in the interface, its shortcut row, its toasts, the control channel's refusal, the board refusal, the measurement parameter doc, the `.fig` export note, the CLI help and every catalog (24 languages, translations awaiting native review), since Figma holds a US registration for Dev Mode (7574348); command ids (`view.devMode`, `devMode.*`), preference keys and saved-document fields are unchanged, and the Actions palette still finds the command by the old name |
| Dev Mode toggle (Shift+D), Inspect panel | done | the canvas only inspects: presses select, pan and comment but never move, resize, draw or edit text and vectors; menus and shortcuts refuse design edits with a note (Dev Mode's annotations, statuses, dev resources, measurements, code connections and comments still work); a drawing tool chosen in the toolbar goes back to the design. The layers panel only selects and expands (no renaming, reordering, hiding or locking; a double click says why), and the Pages list only opens pages (no adding, renaming, reordering, duplicating or deleting). Files dropped on the canvas aren't imported (a dropped document still opens as a file of its own), and the Assets panel places, swaps and applies nothing, doesn't change Hide when publishing, and doesn't accept library updates or add, remove or swap libraries; each says why |
@@ -33,7 +33,7 @@ repository, third-party integrations. Remaining: 1–2 h.
| Date | Change | Summary |
|---|---|---|
-| 2026-11-24 | patch | Vector code export writes the SVG asset, not a rectangle made from the path's stroke (#2270). Percentages and hours unchanged. |
+| 2026-11-24 | patch | Vector code export embeds a self-contained SVG asset, not a rectangle made from the path's stroke (#2270). Percentages and hours unchanged. |
| 2026-11-13 | patch | Rows that recent merges had duplicated or garbled are merged back into one row each (no behaviour change): Code: CSS, iOS (SwiftUI), Android (Compose), Flutter. |
| 2026-11-12 | patch | CSS code export (#2271): a layer with several fills wrote one `background` per fill, so only the last survived. It now writes one `background` with every visible fill as a layer, top fill first, comma-separated: a solid above another fill is `linear-gradient(0deg, c, c)` (CSS allows a plain colour only as the last layer), the bottom solid stays a plain colour (with its variable), images and patterns keep their `url(...)` layers. Tailwind output carries the layered value as one `[background:...]` class. Text keeps one `color` per fill. Native targets unchanged. Percentages and hours unchanged |
| 2026-11-09 | patch | The Annotation tool (Shift+T, `tool.annotation {id?}`): selects the layer pressed on (or the selection, or `id`) and asks the UI for its note, which the Inspect tab takes in its new-note field; the engine writes nothing itself, and Developer Mode lets the tool through its gates (#1840). Figma's placement, cursor and whether the tool stays selected are unmeasured (Developer Mode is paywalled in the web app); staying selected until V or Escape, like the Comment tool, is inferred, and there is no toolbar button or icon yet |
From 0ae741290e9293608da1f5c0554ba85de97db29a Mon Sep 17 00:00:00 2001
From: Brixton Pham <117471232+brixtonpham@users.noreply.github.com>
Date: Wed, 25 Nov 2026 15:35:05 +0700
Subject: [PATCH 50/57] fix(collab-net): stop wildcard hosts without a loopback
self-connect
---
crates/collab-net/src/hub/conn.rs | 26 ++++++++---
crates/collab-net/src/hub/hosting.rs | 64 +++++++++++++++++++++++-----
crates/collab-net/src/hub/limits.rs | 7 +--
3 files changed, 75 insertions(+), 22 deletions(-)
diff --git a/crates/collab-net/src/hub/conn.rs b/crates/collab-net/src/hub/conn.rs
index b5e41a64d..099071cc8 100644
--- a/crates/collab-net/src/hub/conn.rs
+++ b/crates/collab-net/src/hub/conn.rs
@@ -10,6 +10,9 @@ use super::{
/// How long a closing connection waits for the peer to hang up.
const LINGER: Duration = Duration::from_secs(2);
+/// How long the non-blocking accept loop sleeps when no connection is queued.
+const ACCEPT_POLL: Duration = Duration::from_millis(20);
+
/// Signals (cursor chat, spotlight) a client may send per second on average, and in a burst;
/// beyond that they are dropped.
pub const SIGNAL_RATE: f64 = 20.0;
@@ -91,12 +94,14 @@ pub(super) struct Shared {
pub(super) fn accept(listener: &TcpListener, hub: &Sender, stop: &AtomicBool, open: &Arc, limits: NetLimits, shared: Shared) {
let mut next = 0u64;
- for stream in listener.incoming() {
- if stop.load(Ordering::SeqCst) {
- break;
- }
- let stream = match stream {
- Ok(s) => s,
+ while !stop.load(Ordering::SeqCst) {
+ let stream = match listener.accept() {
+ Ok((s, _)) => s,
+ Err(e) if e.kind() == io::ErrorKind::WouldBlock => {
+ std::thread::sleep(ACCEPT_POLL);
+ continue;
+ }
+ Err(e) if e.kind() == io::ErrorKind::Interrupted => continue,
Err(e) => {
// Out of sockets or similar: don't spin.
log::warn!("live session: accept failed: {e}");
@@ -104,6 +109,15 @@ pub(super) fn accept(listener: &TcpListener, hub: &Sender, stop: &AtomicB
continue;
}
};
+ if stop.load(Ordering::SeqCst) {
+ break;
+ }
+ // Accepted sockets inherit O_NONBLOCK from the listener on BSD/macOS; `serve` uses
+ // blocking reads and writes with explicit timeouts.
+ if let Err(e) = stream.set_nonblocking(false) {
+ log::warn!("live session: can't set accepted socket blocking: {e}");
+ continue;
+ }
if open.load(Ordering::Relaxed) >= limits.max_connections {
log::info!("live session: too many connections; refusing one");
continue;
diff --git a/crates/collab-net/src/hub/hosting.rs b/crates/collab-net/src/hub/hosting.rs
index df8fd9756..914fc9e22 100644
--- a/crates/collab-net/src/hub/hosting.rs
+++ b/crates/collab-net/src/hub/hosting.rs
@@ -1,10 +1,10 @@
use super::backend::Backend;
use super::conn::{Shared, accept};
-use super::limits::{PerAddress, loopback};
+use super::limits::PerAddress;
use super::queue::{Blocks, HubIn, InFlight};
use super::{
Arc, AtomicBool, AtomicUsize, ClientMsg, Duration, HashMap, Hub, Inbox, Instant, JoinHandle, MAX_NAME, NetLimits, Ordering, Presence, Readers,
- Room, Sender, Server, SocketAddr, TcpListener, TcpStream, channel, io,
+ Room, Sender, Server, SocketAddr, TcpListener, channel, io,
};
/// The person hosting an app session: in the file's session without a socket.
@@ -48,6 +48,7 @@ impl Hosting {
pub(crate) fn start(listener: TcpListener, backend: B, limits: NetLimits, local: Option) -> io::Result {
let addr = listener.local_addr()?;
+ listener.set_nonblocking(true)?;
let in_flight = InFlight(Arc::default());
let mut hub = Hub {
backend,
@@ -169,15 +170,8 @@ impl Hosting {
if let Some(t) = self.hub_thread.take() {
let _ = t.join();
}
- // The accept loop checks the flag after each connection: wake it with one.
- let wake = if self.addr.ip().is_unspecified() { SocketAddr::new(loopback(self.addr), self.addr.port()) } else { self.addr };
- let woke = TcpStream::connect_timeout(&wake, Duration::from_secs(1)).is_ok();
if let Some(t) = self.accept_thread.take() {
- if woke {
- let _ = t.join();
- } else {
- log::warn!("live session: couldn't wake the accept loop; it ends with the next connection");
- }
+ let _ = t.join();
}
// Readers end once their writers have closed the sockets.
let deadline = Instant::now() + Duration::from_secs(2);
@@ -202,3 +196,53 @@ impl Drop for Open {
self.0.fetch_sub(1, Ordering::Relaxed);
}
}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+ use crate::hub::{Admission, Closing};
+
+ struct Noop;
+
+ impl Backend for Noop {
+ fn admit(&mut self, _file: &str, _token: &str) -> Result {
+ Err("no".into())
+ }
+
+ fn open(&mut self, _file: &str) -> Result {
+ Err("no".into())
+ }
+
+ fn closing(&self) -> Closing {
+ Closing::Ended
+ }
+ }
+
+ /// Stopping a wildcard (`0.0.0.0`) host must return even when another listener already holds
+ /// `127.0.0.1` on the same port (allowed on BSD/macOS under `SO_REUSEADDR`), and must not
+ /// connect to that loopback listener.
+ #[test]
+ fn stopping_a_wildcard_host_returns_when_loopback_shares_the_port() {
+ let shadow = TcpListener::bind("127.0.0.1:0").unwrap();
+ let port = shadow.local_addr().unwrap().port();
+ let (wildcard, shadowed) = match TcpListener::bind(("0.0.0.0", port)) {
+ Ok(l) => (l, true),
+ Err(_) if !cfg!(any(target_os = "freebsd", target_os = "macos")) => (TcpListener::bind("0.0.0.0:0").unwrap(), false),
+ Err(e) => panic!("expected BSD dual-bind on 0.0.0.0:{port} alongside 127.0.0.1:{port}: {e}"),
+ };
+ let mut hosting = Hosting::serve(wildcard, Noop, NetLimits::default()).unwrap();
+ let (tx, rx) = channel();
+ std::thread::spawn(move || {
+ hosting.stop();
+ let _ = tx.send(());
+ });
+ assert!(rx.recv_timeout(Duration::from_secs(3)).is_ok(), "Hosting::stop() hung with a loopback listener on port {port}");
+ if shadowed {
+ shadow.set_nonblocking(true).unwrap();
+ assert!(
+ shadow.accept().is_err_and(|e| e.kind() == io::ErrorKind::WouldBlock),
+ "Hosting::stop() must not poke another listener on 127.0.0.1:{port}"
+ );
+ }
+ }
+}
diff --git a/crates/collab-net/src/hub/limits.rs b/crates/collab-net/src/hub/limits.rs
index 663697906..c3a0e6442 100644
--- a/crates/collab-net/src/hub/limits.rs
+++ b/crates/collab-net/src/hub/limits.rs
@@ -1,4 +1,4 @@
-use super::{Access, Arc, HashMap, IpAddr, Ipv6Addr, Mutex, PoisonError, SocketAddr};
+use super::{Access, Arc, HashMap, IpAddr, Ipv6Addr, Mutex, PoisonError};
/// What a link lets a hello do.
#[derive(Clone, Debug, PartialEq, Eq)]
@@ -21,11 +21,6 @@ pub fn ip_key(ip: IpAddr) -> IpAddr {
}
}
-/// The loopback address of `addr`'s family.
-pub(super) fn loopback(addr: SocketAddr) -> std::net::IpAddr {
- if addr.is_ipv6() { std::net::Ipv6Addr::LOCALHOST.into() } else { std::net::Ipv4Addr::LOCALHOST.into() }
-}
-
/// A block of addresses: its first address and its prefix length (2001:db8:: as a /64 and as a
/// /48 are different blocks).
pub type Block = (IpAddr, u8);
From c93f5e36adac6b7fe3bae4390e81ac1addef397c Mon Sep 17 00:00:00 2001
From: daplo <11730937+daplo@users.noreply.github.com>
Date: Wed, 25 Nov 2026 15:30:37 +0100
Subject: [PATCH 51/57] fix(macos): paste the image file copied in Finder
---
apps/figcraft/src/services.rs | 6 ++++
crates/ui-egui/src/menus/clipboard.rs | 42 +++++++++++++++++--------
crates/ui-egui/src/paste_image_tests.rs | 16 ++++++++++
crates/ui-egui/src/services.rs | 4 +++
docs/file-format-parity.md | 2 +-
5 files changed, 56 insertions(+), 14 deletions(-)
diff --git a/apps/figcraft/src/services.rs b/apps/figcraft/src/services.rs
index 4b14c316e..e4f949c51 100644
--- a/apps/figcraft/src/services.rs
+++ b/apps/figcraft/src/services.rs
@@ -535,6 +535,12 @@ impl Services for Desktop {
Some((w, h, img.bytes.into_owned()))
}
#[cfg(target_os = "macos")]
+ fn clipboard_image_file(&mut self) -> Option {
+ let files = self.clipboard.as_mut()?.get().file_list().ok()?;
+ let [path] = files.as_slice() else { return None };
+ image::ImageFormat::from_path(path).ok()?.reading_enabled().then(|| path.clone())
+ }
+ #[cfg(target_os = "macos")]
fn clipboard_get_png(&mut self) -> Option> {
let board = objc2_app_kit::NSPasteboard::generalPasteboard();
let png = board.dataForType(&objc2_foundation::NSString::from_str(MACOS_PASTEBOARD_PNG))?;
diff --git a/crates/ui-egui/src/menus/clipboard.rs b/crates/ui-egui/src/menus/clipboard.rs
index 886f56bc4..ac5b24ae9 100644
--- a/crates/ui-egui/src/menus/clipboard.rs
+++ b/crates/ui-egui/src/menus/clipboard.rs
@@ -62,13 +62,32 @@ pub fn paste(app: &mut FigApp, event_text: Option<&str>, at: Option<(f64, f64)>)
// user's own text is pasted instead of the programmatic selection.
let ours = sys_text.is_some() && sys_text == app.ui.last_copy && app.ui.last_copy_generation == app.session.clipboard.layers_generation;
let (cx, cy) = at.or_else(|| app.session.ds().ok().map(|d| (d.view.cx, d.view.cy))).unwrap_or((0.0, 0.0));
- if !ours {
- if let Some((png, w, h)) = clipboard_png(app) {
+ let file = app.services.clipboard_image_file();
+ if file.is_some() || !ours {
+ // Finder also offers a filename and a TIFF icon. A copied image file supplies its own
+ // pixels; a read error must not turn it into a successful paste of the icon.
+ let image = if let Some(path) = file {
+ let read = figcraft_engine::file_access::read_capped(&path, figcraft_doc::ImageData::MAX_BYTES)
+ .map_err(|e| e.to_string())
+ .and_then(|bytes| with_pixel_size(bytes).ok_or_else(|| crate::unreadable(&path.to_string_lossy())));
+ match read {
+ Ok(image) => Some(image),
+ Err(why) => {
+ app.toast(why);
+ return;
+ }
+ }
+ } else {
+ clipboard_pixels(app)
+ };
+ if let Some((bytes, (w, h))) = image {
if dev_mode_refuses(app, "edit.paste") {
return;
}
use base64::Engine as _;
- let b64 = base64::engine::general_purpose::STANDARD.encode(png);
+ let density = figcraft_format::pixel_density(&bytes);
+ let (w, h) = figcraft_format::placed_size(w, h, density, figcraft_engine::cmd::create::PLACED_IMAGE_MAX_SIDE);
+ let b64 = base64::engine::general_purpose::STANDARD.encode(bytes);
// One selected layer that can have fills takes the image as its top fill.
if let [target] = app.session.selection()[..]
&& at.is_none()
@@ -135,16 +154,13 @@ fn paste_text(app: &mut FigApp, text: &str, (cx, cy): (f64, f64), center: bool)
}
}
-/// The system clipboard's image as PNG bytes, with its size.
-fn clipboard_png(app: &mut FigApp) -> Option<(Vec, f64, f64)> {
- let clipboard_png = app.services.clipboard_get_png().filter(|png| png.len() <= crate::MAX_CLIPBOARD_PNG_BYTES);
- let (png, (w, h)) = match clipboard_png.and_then(with_pixel_size) {
- Some(readable) => readable,
- None => with_pixel_size(encoded_clipboard_image(app)?)?,
- };
- let density = figcraft_format::pixel_density(&png);
- let (w, h) = figcraft_format::placed_size(w, h, density, figcraft_engine::cmd::create::PLACED_IMAGE_MAX_SIDE);
- Some((png, w, h))
+/// The clipboard's encoded image and its pixel dimensions.
+fn clipboard_pixels(app: &mut FigApp) -> Option<(Vec, (u32, u32))> {
+ app.services
+ .clipboard_get_png()
+ .filter(|png| png.len() <= crate::MAX_CLIPBOARD_PNG_BYTES)
+ .and_then(with_pixel_size)
+ .or_else(|| with_pixel_size(encoded_clipboard_image(app)?))
}
const MAX_PASTED_IMAGE_PIXELS: u64 = 100_000_000;
diff --git a/crates/ui-egui/src/paste_image_tests.rs b/crates/ui-egui/src/paste_image_tests.rs
index 756c93067..58a428ea8 100644
--- a/crates/ui-egui/src/paste_image_tests.rs
+++ b/crates/ui-egui/src/paste_image_tests.rs
@@ -28,6 +28,7 @@ const HELD: [Held; 3] = [Held::Ours, Held::Text, Held::Image];
#[derive(Default)]
struct Clip {
+ file: Option,
text: Option,
image: Option<(u32, u32, Vec)>,
png: Option>,
@@ -46,6 +47,9 @@ impl Services for Desktop {
fn clipboard_get_image(&mut self) -> Option<(u32, u32, Vec)> {
self.0.borrow().image.clone()
}
+ fn clipboard_image_file(&mut self) -> Option {
+ self.0.borrow().file.clone()
+ }
fn clipboard_get_png(&mut self) -> Option> {
self.0.borrow().png.clone()
}
@@ -192,6 +196,18 @@ fn cmd_v_pastes_an_image_copied_elsewhere() {
assert_eq!(w.named("Pasted image"), 2, "and again");
}
+#[test]
+fn a_copied_image_file_pastes_its_contents_even_when_the_clipboard_offers_a_filename_and_icon() {
+ let mut w = Win::new();
+ let file = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../../assets/app-icon/figcraft-48.png");
+ *w.clip.borrow_mut() = Clip { file: Some(file.clone()), text: Some("figcraft-48.png".into()), image: Some((2, 2, vec![255; 16])), png: None };
+ w.cmd_v();
+ let doc = w.app.session.doc().unwrap();
+ assert_eq!(w.named("Pasted image"), 1);
+ let stored = doc.images.values().next().expect("an image on the canvas");
+ assert_eq!(stored.bytes.as_slice(), std::fs::read(file).unwrap());
+}
+
#[test]
fn cmd_v_fills_a_selected_oval_without_adding_a_layer() {
let mut w = Win::new();
diff --git a/crates/ui-egui/src/services.rs b/crates/ui-egui/src/services.rs
index b5a997a85..50b2ffdf9 100644
--- a/crates/ui-egui/src/services.rs
+++ b/crates/ui-egui/src/services.rs
@@ -47,6 +47,10 @@ pub trait Services {
fn clipboard_get_image(&mut self) -> Option<(u32, u32, Vec)> {
None
}
+ /// One supported raster image copied as a file, separate from its clipboard icon or filename.
+ fn clipboard_image_file(&mut self) -> Option {
+ None
+ }
fn clipboard_get_png(&mut self) -> Option> {
None
}
diff --git a/docs/file-format-parity.md b/docs/file-format-parity.md
index 8eac69eee..16b0c1dd4 100644
--- a/docs/file-format-parity.md
+++ b/docs/file-format-parity.md
@@ -39,7 +39,7 @@ and prototype interactions are still unchecked there.
| BMP | — | yes | | — |
| MP4, MOV, WebM (video fills, paid plans) | yes | **no** | shortcut: decoding H.264/HEVC/VP9 needs non-Rust libraries (FFmpeg or each platform's media framework); presenter playback would reuse the animated GIF clock | 4–8 |
| Images over 4096 px | downscaled to 4096 | kept | | — |
-| Pasted content from other apps | images, SVG, text, Figma clipboard | images, SVG, text (newest clipboard content wins), **layers copied from another design app, best effort** | Cmd/Ctrl+V reads an image copied in another app (under Wayland through the data-control protocol, not run on Linux here; Linux and BSD clipboard reads give up after 2 s). Copied design layers: the `.fig` canvas in the clipboard's HTML is read like a `.fig` file (with its warnings) and pasted as Paste pastes, in place or into the selected frame (`edit.pasteDesignLayers {html \| data}`, refused over 256 MB before decoding); text copied later pastes as text again. Shared paint, text and effect styles that a pasted layer links by the guid of the library it came from are found by their library asset, so the layers keep the style's colours and their link to it; a link to a style the clipboard doesn't hold keeps the layer's stored colours, with a note (#1638). An image the clipboard doesn't carry keeps its name on the fill and shows the missing-image placeholder (light grey with darker stripes), and the paste names those layers and lists its notes in the import report (#1646). Tested with clipboard HTML made from our own `.fig` export (`design_paste_tests`) and with design data built in code (`paste_style_tests`), never with a real clipboard from other software | with `.fig` |
+| Pasted content from other apps | images, SVG, text, Figma clipboard | images, SVG, text (newest clipboard content wins), **layers copied from another design app, best effort** | Cmd/Ctrl+V reads an image copied in another app (under Wayland through the data-control protocol, not run on Linux here; Linux and BSD clipboard reads give up after 2 s). On macOS, pasting a single supported raster file copied in Finder places the file’s image on the canvas. Copied design layers: the `.fig` canvas in the clipboard's HTML is read like a `.fig` file (with its warnings) and pasted as Paste pastes, in place or into the selected frame (`edit.pasteDesignLayers {html \| data}`, refused over 256 MB before decoding); text copied later pastes as text again. Shared paint, text and effect styles that a pasted layer links by the guid of the library it came from are found by their library asset, so the layers keep the style's colours and their link to it; a link to a style the clipboard doesn't hold keeps the layer's stored colours, with a note (#1638). An image the clipboard doesn't carry keeps its name on the fill and shows the missing-image placeholder (light grey with darker stripes), and the paste names those layers and lists its notes in the import report (#1646). Tested with clipboard HTML made from our own `.fig` export (`design_paste_tests`) and with design data built in code (`paste_style_tests`), never with a real clipboard from other software | with `.fig` |
## Export
From 777ccdcc24644621f1fc4c810a521736ccf9f976 Mon Sep 17 00:00:00 2001
From: ATOM
Date: Wed, 25 Nov 2026 09:38:41 -0600
Subject: [PATCH 52/57] fix(dev): preserve vector asset bounds
---
crates/engine/src/dev/codegen.rs | 55 ++++++++++++++++++++++-
crates/engine/src/dev/codegen/css.rs | 20 +++++++--
crates/engine/src/dev/codegen/html.rs | 63 +++++++++++++++++++--------
crates/engine/src/dev/tailwind.rs | 2 +
docs/dev-mode-parity.md | 4 +-
docs/parity-checklist.md | 6 +--
6 files changed, 123 insertions(+), 27 deletions(-)
diff --git a/crates/engine/src/dev/codegen.rs b/crates/engine/src/dev/codegen.rs
index c6a732e8f..2d69e2c7c 100644
--- a/crates/engine/src/dev/codegen.rs
+++ b/crates/engine/src/dev/codegen.rs
@@ -597,7 +597,8 @@ mod tests {
s.doc_mut().unwrap().get_mut(check).unwrap().fills = vec![Paint::solid(Color::WHITE)];
let doc = s.doc().unwrap();
let html = code_for(doc, icon, CodeLang::Html);
- assert!(html.contains(""), "node wrapper: {html}");
+ assert!(html.contains(""), "node-sized wrapper: {html}");
+ assert!(html.contains(" String {
/// The CSS declarations for `n`'s own look and size, one per line; `hug` leaves out the width
/// and/or height (they follow the content). Bound variables become `var(--name, value)`.
pub(crate) fn css_decls(doc: &Document, n: &Node, t: &mut Tokens, hug: (bool, bool)) -> String {
+ css_decls_impl(doc, n, t, hug, false)
+}
+
+/// The declarations around an embedded vector image: its SVG owns shadows and layer blur, so
+/// only the markup wrapper omits those. Standalone CSS and ordinary shapes keep them.
+pub(crate) fn css_decls_for_markup(doc: &Document, n: &Node, t: &mut Tokens, hug: (bool, bool)) -> String {
+ css_decls_impl(doc, n, t, hug, true)
+}
+
+fn css_decls_impl(doc: &Document, n: &Node, t: &mut Tokens, hug: (bool, bool), vector_svg: bool) -> String {
let px = |v: f64| format!("{}px", num(v));
let mut out = String::new();
let mut put = |key: &str, value: String| out.push_str(&format!("{key}: {value};\n"));
@@ -222,7 +232,7 @@ pub(crate) fn css_decls(doc: &Document, n: &Node, t: &mut Tokens, hug: (bool, bo
for (key, value) in css_borders(doc, n, t) {
put(&key, value);
}
- effect_decls(n, &mut put);
+ effect_decls(n, &mut put, vector_svg && matches!(n.kind, NodeKind::Vector { .. }));
if let NodeKind::Text(tx) = &n.kind {
text_decls(doc, n, tx, t, &mut put);
}
@@ -279,12 +289,14 @@ fn layout_decls(doc: &Document, n: &Node, l: &figcraft_doc::AutoLayout, t: &mut
}
}
-/// Shadows and blurs of `n`.
-fn effect_decls(n: &Node, put: &mut impl FnMut(&str, String)) {
+/// Shadows and blurs of `n`. `svg_owned` leaves shadows and layer blur to the embedded SVG;
+/// backdrop filters stay in CSS because the self-contained asset has no outer page behind it.
+fn effect_decls(n: &Node, put: &mut impl FnMut(&str, String), svg_owned: bool) {
let shadows: Vec = n
.effects
.iter()
.filter(|e| e.visible)
+ .filter(|e| !(svg_owned && matches!(e.kind, EffectKind::DropShadow(_) | EffectKind::InnerShadow(_))))
.filter_map(|e| match &e.kind {
EffectKind::DropShadow(s) => {
Some(format!("{}px {}px {}px {}px {}", num(s.offset.0), num(s.offset.1), num(s.radius), num(s.spread), s.color.to_css()))
@@ -301,7 +313,7 @@ fn effect_decls(n: &Node, put: &mut impl FnMut(&str, String)) {
for e in n.effects.iter().filter(|e| e.visible) {
match e.kind {
// CSS blurs are uniform: a progressive blur has no CSS equivalent and is left out.
- EffectKind::LayerBlur(ref b) if !b.is_progressive() => put("filter", format!("blur({}px)", num(b.radius / 2.0))),
+ EffectKind::LayerBlur(ref b) if !svg_owned && !b.is_progressive() => put("filter", format!("blur({}px)", num(b.radius / 2.0))),
EffectKind::BackgroundBlur(ref b) if !b.is_progressive() => put("backdrop-filter", format!("blur({}px)", num(b.radius / 2.0))),
// CSS has no refraction: the frost is the nearest.
EffectKind::Glass(ref g) => put("backdrop-filter", format!("blur({}px)", num(g.sanitized().frost / 2.0))),
diff --git a/crates/engine/src/dev/codegen/html.rs b/crates/engine/src/dev/codegen/html.rs
index 6a6c44483..7632a42de 100644
--- a/crates/engine/src/dev/codegen/html.rs
+++ b/crates/engine/src/dev/codegen/html.rs
@@ -1,6 +1,6 @@
use base64::Engine as _;
-use super::css::{Tokens, css_decls};
+use super::css::{Tokens, css_decls_for_markup};
use super::{CodeLang, Ctx, Document, LayoutMode, Node, NodeId, NodeKind, Param, Sizing, indent, num, with_v_if};
// ------------------------------------------------------------------ HTML and React markup
@@ -92,16 +92,17 @@ fn attr_escape(s: &str) -> String {
s.replace('&', "&").replace('<', "<").replace('>', ">").replace('"', """).replace(['\n', '\r'], " ")
}
-/// A vector as a self-contained SVG asset. CSS owns the node's placement and opacity, so the
-/// embedded geometry is node-local and fully opaque. No filesystem export or URL escaping is
-/// needed, and nested vectors work exactly like top-level ones.
-fn vector_data_uri(doc: &mut Document, n: &Node) -> Option {
+/// A vector as a self-contained SVG asset and its local painted bounds. CSS owns the node's
+/// placement and opacity, so the embedded geometry is node-local and fully opaque. No filesystem
+/// export or URL escaping is needed, and nested vectors work exactly like top-level ones.
+fn vector_data_uri(doc: &mut Document, n: &Node) -> Option<(String, figcraft_geom::Rect)> {
let node = doc.get_mut(n.id).ok()?;
node.parent = None;
node.transform = figcraft_geom::Affine::IDENTITY;
node.opacity = 1.0;
+ let bounds = figcraft_render::export_bounds(doc, n.id)?;
let svg = figcraft_svg::export_svg(doc, &[n.id], &Default::default())?;
- Some(format!("data:image/svg+xml;base64,{}", base64::engine::general_purpose::STANDARD.encode(svg)))
+ Some((format!("data:image/svg+xml;base64,{}", base64::engine::general_purpose::STANDARD.encode(svg)), bounds))
}
/// Text as JSX children: HTML escapes, braces as expressions, line breaks as ` `.
@@ -196,6 +197,18 @@ fn placement_decls(n: &Node, parent: Option<&Node>, root: bool, in_flow: bool) -
decls
}
+/// Extra declarations around an embedded vector image. The inner SVG can be larger than the
+/// node box, so the wrapper must establish positioning in flex flow and leave overflow visible.
+fn vector_wrapper_decls(n: &Node, in_flow: bool, own: &mut String) {
+ if !matches!(n.kind, NodeKind::Vector { .. }) {
+ return;
+ }
+ own.push_str("overflow: visible;\n");
+ if in_flow {
+ own.push_str("position: relative;\n");
+ }
+}
+
impl<'c, 'a> Markup<'c, 'a> {
pub fn new(ctx: &'c Ctx<'a>, lang: CodeLang) -> Self {
Markup {
@@ -312,6 +325,30 @@ impl<'c, 'a> Markup<'c, 'a> {
}
}
+ /// A node-sized wrapper and its inner SVG image. The inner rule uses the exported bounds,
+ /// so strokes and effects keep their size and can overflow the wrapper without clipping.
+ fn vector_element(&mut self, n: &Node, depth: usize, path: &str, class: &str, attr: &str, pad: &str, attrs: &str) {
+ let root_doc = self.ctx.doc;
+ let asset = vector_data_uri(self.asset_doc.get_or_insert_with(|| root_doc.clone()), n);
+ let bounds = asset.as_ref().map(|(_, b)| *b).unwrap_or_else(|| n.local_rect());
+ let asset_class = class_name(&format!("{class} asset"), "asset", &mut self.used);
+ let asset_decls = format!(
+ "display: block;\nposition: absolute;\nleft: {}px;\ntop: {}px;\nwidth: {}px;\nheight: {}px;\nmax-width: none;\n",
+ num(bounds.x0),
+ num(bounds.y0),
+ num(bounds.width()),
+ num(bounds.height())
+ );
+ self.rule(&format!("{path}/$svg"), &asset_class, asset_decls);
+ // Leptos attributes are Rust string literals; the other targets use HTML escaping.
+ let lang = self.lang;
+ let quote = |value: &str| if lang == CodeLang::Leptos { format!("{value:?}") } else { format!("\"{}\"", attr_escape(value)) };
+ let src = asset.map(|(uri, _)| format!(" src={}", quote(&uri))).unwrap_or_default();
+ let alt = quote(&n.name);
+ let inner = self.pad(depth + 1);
+ self.markup.push_str(&format!("{pad}