From d23c8b645661fef7d0e156bcc230ab2ae1e9ebe0 Mon Sep 17 00:00:00 2001
From: B-uchi
Date: Wed, 18 Nov 2026 22:09:07 +0100
Subject: [PATCH 01/59] M8: Code Connect for agents
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
A link can say where the code component lives (`source`, a path inside the
repository), what a property's design values are called in code (`values`:
{"State": {"Hover": "hovered"}} renders `hovered`; a value without an entry
keeps its design name) and `notes`, through codeConnect.set, the connect file
and Inspect ▸ Connect to code (a Source file field and a row per variant
value). The fields are skipped when empty, so existing files and exports don't
change.
codeConnect.list and the MCP tool component_mappings say which code
component each design component is: import line, name, ready snippet,
properties and variants, and with a repository root whether each source file
is there. sync_mappings imports or exports a repository's connect file.
codeConnect.export {path} keeps the file's other top-level keys and the links
of components this design doesn't have, so several designs can share one file.
---
ROADMAP.md | 1 +
crates/doc/src/node.rs | 9 ++
crates/engine/src/code_connect_tests.rs | 121 ++++++++++++++++
crates/engine/src/dev/code_connect.rs | 174 ++++++++++++++++++++++--
crates/mcp/src/tools.rs | 53 ++++++++
crates/mcp/tests/it/code_connect.rs | 37 +++++
crates/mcp/tests/it/main.rs | 2 +
crates/ui-egui/locales/en.toml | 3 +
crates/ui-egui/src/panels/dev_mode.rs | 48 +++++++
docs/mcp.md | 16 ++-
10 files changed, 447 insertions(+), 17 deletions(-)
create mode 100644 crates/mcp/tests/it/code_connect.rs
diff --git a/ROADMAP.md b/ROADMAP.md
index 2286b0c6e..cbd89bc8d 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -367,6 +367,7 @@ Ranked; detail and milestones in [`docs/roadmap.md`](docs/roadmap.md).
| Date | Change | Summary |
|---|---|---|
| 2026-11-18 | minor | M8: design context for AI agents. `inspect.designContext` and the MCP tool `design_context` read the selection (or `ids`, or a `scope`) in one call: a tree where each layer keeps apart `explicit` values, `derived` ones layout worked out and `unsupported` ones with no direct CSS equivalent, joined with the variables (every mode's stored and resolved value), styles, components, fonts and assets it uses, and what the design leaves `missing`. A connected instance gives its code instead of its layers, and a result that wouldn't fit the client asks for fewer layers. Numbers unchanged |
+| 2026-11-19 | minor | M8: Code Connect for agents. A link can name its source file, what variant values are called in code (Primary becomes `primary` in the snippet) and notes, in the Inspect tab, `codeConnect.set` and `figcraft.connect.json`. `codeConnect.list` and the MCP tool `component_mappings` say which code component each design component is, and whether its source file exists; `sync_mappings` imports and exports a repository's file. `codeConnect.export {path}` keeps the file's other keys and the links of components the design doesn't have, so several designs can share one file. Numbers unchanged |
| 2026-11-18 | minor | M3, gap 10: library analytics count insertions and detachments of styles and variables. Applying one, or copying or duplicating content that uses it, inserts it; the Detach button detaches it; an instance counts as its component alone. Show usage and `library.usage` give them per style and variable over the chosen period. Modes aren't counted. Numbers unchanged. Tests: `library_asset_counts_tests`, `library_assets_tests`. |
| 2026-11-18 | minor | M9, gap 6: the browser build uses team libraries and plugin directories on a server, through its WebSocket requests: adding a library by its link, its styles and components, publishing to it, Show usage and the reports a file sends; browsing a directory and installing from it, for the page only. Scripts through `window.figcraft` still can't, as commands there don't wait for the server. Numbers unchanged. Tests: `exchange_tests`. |
| 2026-11-17 | minor | M6: Android Vector Drawable XML serialization uses the shared writer; application projection and colour policy remain local. Byte-parity tests cover full documents and generated deep wrappers; no new format capability or incumbent certification. |
diff --git a/crates/doc/src/node.rs b/crates/doc/src/node.rs
index bea172277..650966626 100644
--- a/crates/doc/src/node.rs
+++ b/crates/doc/src/node.rs
@@ -250,6 +250,15 @@ pub struct CodeLink {
pub name: String,
/// The snippet with `{property}` and `{property ? "a" : "b"}` placeholders.
pub template: String,
+ /// Where the code component lives, relative to the code repository.
+ #[serde(default, skip_serializing_if = "String::is_empty")]
+ pub source: String,
+ /// What a property's design values are called in code: property → design value → code value.
+ #[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
+ pub values: BTreeMap>,
+ /// Notes for whoever uses the component.
+ #[serde(default, skip_serializing_if = "String::is_empty")]
+ pub notes: String,
}
/// A dev resource: a link for developers attached to a layer. The URL is data only: it is shown
diff --git a/crates/engine/src/code_connect_tests.rs b/crates/engine/src/code_connect_tests.rs
index 4474fe03a..9750db813 100644
--- a/crates/engine/src/code_connect_tests.rs
+++ b/crates/engine/src/code_connect_tests.rs
@@ -298,3 +298,124 @@ fn many_entries_for_one_component_each_link() {
let i = idv(&ex(&mut s, "instance.create", json!({"component": hover, "x": 0, "y": 500})));
assert_eq!(code(&mut s, i, "react"), " \n");
}
+
+#[test]
+fn a_link_names_its_source_and_translates_variant_values() {
+ let mut s = Session::new();
+ ex(&mut s, "file.new", json!({}));
+ let (set, hover) = button(&mut s);
+ ex(
+ &mut s,
+ "codeConnect.set",
+ json!({"id": set, "name": "Button", "importPath": "@/ui/button", "template": " ",
+ "source": "src/ui/button.tsx", "values": {"State": {"Hover": "hovered"}}, "notes": "Primary action"}),
+ );
+ let instance = idv(&ex(&mut s, "instance.create", json!({"component": hover})));
+ assert!(code(&mut s, instance, "react").contains(r#"state="hovered""#), "{}", code(&mut s, instance, "react"));
+ // A value without a mapping keeps the design's name.
+ let plain = idv(&ex(&mut s, "instance.create", json!({"component": set})));
+ assert!(code(&mut s, plain, "react").contains(r#"state="Default""#));
+}
+
+#[test]
+fn a_source_outside_the_repository_is_refused() {
+ let mut s = Session::new();
+ ex(&mut s, "file.new", json!({}));
+ let c = card(&mut s);
+ for source in ["../up.tsx", "/etc/passwd", "a\\b.tsx", "a/../../b.tsx"] {
+ let e = s.execute("codeConnect.set", &json!({"id": c, "source": source})).unwrap_err();
+ assert!(e.to_string().contains("source"), "{source}: {e}");
+ }
+ assert!(s.execute("codeConnect.set", &json!({"id": c, "values": 3})).is_err());
+ assert!(s.execute("codeConnect.set", &json!({"id": c, "source": "src/card.tsx"})).is_ok());
+}
+
+#[test]
+fn the_new_fields_survive_a_trip_through_the_file() {
+ let mut s = Session::new();
+ ex(&mut s, "file.new", json!({}));
+ let (set, _) = button(&mut s);
+ ex(
+ &mut s,
+ "codeConnect.set",
+ json!({"id": set, "name": "Button", "template": " ", "source": "src/b.tsx", "values": {"State": {"Hover": "h"}}, "notes": "n"}),
+ );
+ let text = ex(&mut s, "codeConnect.export", json!({}))["text"].as_str().unwrap().to_string();
+ let mut other = Session::new();
+ ex(&mut other, "file.new", json!({}));
+ let (set2, _) = button(&mut other);
+ assert_eq!(ex(&mut other, "codeConnect.import", json!({"json": text}))["linked"], 1);
+ let link = &other.doc().unwrap().node(set2).unwrap().code_links[0];
+ assert_eq!((link.source.as_str(), link.notes.as_str()), ("src/b.tsx", "n"));
+ assert_eq!(link.values["State"]["Hover"], "h");
+}
+
+#[test]
+fn a_file_from_before_stays_as_it_was() {
+ let mut s = Session::new();
+ ex(&mut s, "file.new", json!({}));
+ let (set, _) = button(&mut s);
+ ex(&mut s, "codeConnect.set", json!({"id": set, "name": "Button", "template": " "}));
+ let v = ex(&mut s, "codeConnect.export", json!({}));
+ let parsed: Value = serde_json::from_str(v["text"].as_str().unwrap()).unwrap();
+ let keys: Vec<&String> = parsed["links"][0].as_object().unwrap().keys().collect();
+ assert_eq!(keys, ["component", "importPath", "language", "name", "template"], "no new keys unless they're used");
+}
+
+#[test]
+fn listing_answers_what_an_agent_asks() {
+ let dir = std::env::temp_dir().join(format!("figcraft-connect-list-{}", std::process::id()));
+ std::fs::create_dir_all(dir.join("src")).unwrap();
+ std::fs::write(dir.join("src/button.tsx"), "").unwrap();
+ let mut s = Session::new();
+ ex(&mut s, "file.new", json!({}));
+ let (set, hover) = button(&mut s);
+ let c = card(&mut s);
+ ex(
+ &mut s,
+ "codeConnect.set",
+ json!({"id": set, "name": "Button", "importPath": "@/ui/button", "template": " ", "source": "src/button.tsx"}),
+ );
+ let v = ex(&mut s, "codeConnect.list", json!({"root": dir}));
+ assert_eq!((v["mapped"].as_u64(), v["unmapped"].as_u64()), (Some(1), Some(1)));
+ let b = v["components"].as_array().unwrap().iter().find(|e| e["id"] == json!(set)).unwrap();
+ assert_eq!(b["links"][0]["import"], r#"import { Button } from "@/ui/button";"#);
+ assert_eq!(b["links"][0]["sourceFound"], true);
+ assert!(b["links"][0]["snippet"].as_str().unwrap().contains(" "},{"component":"Button","language":"react","name":"Old","template":" "}]}"#).unwrap();
+ let mut s = Session::new();
+ ex(&mut s, "file.new", json!({}));
+ let (set, _) = button(&mut s);
+ ex(&mut s, "codeConnect.set", json!({"id": set, "name": "Button", "template": " "}));
+ ex(&mut s, "codeConnect.export", json!({"path": path}));
+ let v: Value = serde_json::from_slice(&std::fs::read(&path).unwrap()).unwrap();
+ let names: Vec<&str> = v["links"].as_array().unwrap().iter().map(|l| l["name"].as_str().unwrap()).collect();
+ assert_eq!(names, ["Button", "Other"], "this design's link wins, the other design's stays");
+ assert_eq!(v["project"]["name"], "shop", "keys the command doesn't own stay");
+}
+
+#[test]
+fn listing_refuses_a_malformed_target_rather_than_reading_the_selection() {
+ let mut s = Session::new();
+ ex(&mut s, "file.new", json!({}));
+ let (set, _) = button(&mut s);
+ ex(&mut s, "select.set", json!({"ids": [set]}));
+ for p in [json!({"id": "not-an-id"}), json!({"ids": [set, "nope"]}), json!({"ids": "1"}), json!({"ids": [999_999]})] {
+ assert!(s.execute("codeConnect.list", &p).is_err(), "{p}");
+ }
+}
diff --git a/crates/engine/src/dev/code_connect.rs b/crates/engine/src/dev/code_connect.rs
index 27738d083..e730c5c48 100644
--- a/crates/engine/src/dev/code_connect.rs
+++ b/crates/engine/src/dev/code_connect.rs
@@ -26,6 +26,11 @@ pub const MAX_TEMPLATE: usize = 4_000;
pub const MAX_NAME: usize = 100;
/// Longest import path (chars).
pub const MAX_IMPORT: usize = 300;
+/// Longest source path, and notes (chars).
+pub const MAX_SOURCE: usize = 300;
+pub const MAX_NOTES: usize = 2_000;
+/// Most properties with mapped values on a link, and values on each.
+const MAX_MAPPED: usize = 100;
/// Most links a connect file holds.
pub const MAX_FILE_LINKS: usize = 5_000;
/// Largest connect file read (bytes).
@@ -377,6 +382,7 @@ fn html_text(s: &str) -> String {
/// `link`'s template with `values` (one per parameter of `c`), every line prefixed by `pad`.
pub(crate) fn render(doc: &Document, c: &Component, values: &[(String, Value)], link: &CodeLink, lang: CodeLang, pad: &str) -> String {
+ let values = &in_code(values, link);
let mut out = String::new();
// A quoted attribute stays open across substitutions: `title="{a} {b}"` must treat both
// placeholders as attribute values, not text after the first one.
@@ -454,6 +460,12 @@ pub(crate) fn render(doc: &Document, c: &Component, values: &[(String, Value)],
out.lines().map(|l| if l.is_empty() { "\n".to_string() } else { format!("{pad}{l}\n") }).collect()
}
+/// `values` with each design value the link names turned into what code calls it.
+fn in_code(values: &[(String, Value)], link: &CodeLink) -> Vec<(String, Value)> {
+ let code = |prop: &str, v: &Value| link.values.get(prop)?.get(v.as_str()?).cloned();
+ values.iter().map(|(prop, v)| (prop.clone(), code(prop, v).map_or_else(|| v.clone(), Value::String))).collect()
+}
+
/// A starting template: the code component called with every property (but slots) passed.
fn default_template(c: &Component, lang: CodeLang, name: &str) -> String {
let params: Vec<&str> = c.params.iter().filter(|p| p.kind != ParamKind::Slot).map(|p| p.ident.as_str()).collect();
@@ -469,6 +481,15 @@ fn default_template(c: &Component, lang: CodeLang, name: &str) -> String {
}
}
+/// Why `source` can't name a file in a code repository: it goes down from the repository's root.
+fn check_source(source: &str) -> std::result::Result<(), String> {
+ let plain = source.chars().count() <= MAX_SOURCE
+ && !source.contains('\\')
+ && !source.chars().any(char::is_control)
+ && std::path::Path::new(source).components().all(|c| matches!(c, std::path::Component::Normal(_) | std::path::Component::CurDir));
+ if plain { Ok(()) } else { Err(format!("source: a path inside the code repository, up to {MAX_SOURCE} characters")) }
+}
+
/// Checks a link: its name, import path and template. Returns the placeholder names that aren't
/// properties of `c` (kept as written).
pub fn check(c: &Component, link: &CodeLink, lang: CodeLang) -> std::result::Result, String> {
@@ -500,6 +521,14 @@ pub fn check(c: &Component, link: &CodeLink, lang: CodeLang) -> std::result::Res
_ => format!("importPath: a module or package name (letters, digits, _ and .), up to {MAX_IMPORT} characters"),
});
}
+ check_source(&link.source)?;
+ if link.notes.chars().count() > MAX_NOTES {
+ return Err(format!("notes: up to {MAX_NOTES} characters"));
+ }
+ let long = |s: &String| s.chars().count() > MAX_NAME;
+ if link.values.len() > MAX_MAPPED || link.values.values().any(|m| m.len() > MAX_MAPPED || m.iter().any(|(k, v)| long(k) || long(v))) {
+ return Err(format!("values: at most {MAX_MAPPED} properties of {MAX_MAPPED} values, each up to {MAX_NAME} characters"));
+ }
let t = &link.template;
if t.trim().is_empty() || t.chars().count() > MAX_TEMPLATE || t.chars().any(|ch| ch.is_control() && !"\n\t\r".contains(ch)) {
return Err(format!("template: the snippet, up to {MAX_TEMPLATE} characters"));
@@ -515,6 +544,11 @@ pub fn check(c: &Component, link: &CodeLink, lang: CodeLang) -> std::result::Res
unknown.push(name.to_string());
}
}
+ for prop in link.values.keys() {
+ if find(c, &values, prop).is_none() && !unknown.iter().any(|u| u == prop) {
+ unknown.push(prop.clone());
+ }
+ }
Ok(unknown)
}
@@ -557,12 +591,98 @@ fn store(doc: &mut Document, owner: NodeId, link: CodeLink) -> Result<()> {
Ok(())
}
+/// The variant properties of component or set `owner`, with their values.
+pub fn variants(doc: &Document, owner: NodeId) -> Vec<(String, Vec)> {
+ main_of(doc, owner)
+ .and_then(|m| describe(doc, m))
+ .map(|c| c.params.iter().filter_map(|p| if let ParamKind::Variant(v) = &p.kind { Some((p.prop.clone(), v.clone())) } else { None }).collect())
+ .unwrap_or_default()
+}
+
+/// A link as the connect file holds it.
+fn link_json(component: &str, l: &CodeLink) -> Value {
+ let mut v = json!({"component": component, "language": l.language, "importPath": l.import_path, "name": l.name, "template": l.template});
+ if !l.source.is_empty() {
+ v["source"] = json!(l.source);
+ }
+ if !l.values.is_empty() {
+ v["values"] = json!(l.values);
+ }
+ if !l.notes.is_empty() {
+ v["notes"] = json!(l.notes);
+ }
+ v
+}
+
+/// The components and sets `ids` are, use or hold (every one in the file without `ids`).
+fn listed(doc: &Document, ids: Option<&[NodeId]>) -> Vec {
+ let mut out: Vec = match ids {
+ None => doc.nodes().filter(|n| owner(doc, n.id) == Some(n.id)).map(|n| n.id).collect(),
+ Some(ids) => ids.iter().flat_map(|i| doc.subtree(*i)).filter_map(|i| owner(doc, i)).collect(),
+ };
+ out.sort_unstable();
+ out.dedup();
+ out
+}
+
+/// What an agent needs to use a component: its code link for each language, or that it has none.
+fn entry(doc: &Document, id: NodeId, root: Option<&str>) -> Option {
+ let n = doc.node(id)?;
+ let links: Vec = n
+ .code_links
+ .iter()
+ .map(|l| {
+ let lang = CodeLang::from_id(&l.language);
+ let mut v = link_json(&n.name, l);
+ if let Some(o) = v.as_object_mut() {
+ o.remove("component");
+ }
+ v["import"] = json!(lang.map(|k| import_line(l, k)));
+ v["snippet"] = json!(lang.and_then(|k| connected_code(doc, id, k, l)));
+ if let Some(root) = root.filter(|_| !l.source.is_empty()) {
+ v["sourceFound"] = json!(crate::file_access::exists(std::path::Path::new(root).join(&l.source)));
+ }
+ v
+ })
+ .collect();
+ Some(json!({
+ "id": id,
+ "name": n.name,
+ "type": n.kind.type_name(),
+ "mapped": !links.is_empty(),
+ "properties": crate::cmd::component::describe_props(doc, id)["properties"],
+ "links": links,
+ }))
+}
+
+fn list(s: &mut Session, p: &Value) -> Result {
+ let cmd = "codeConnect.list";
+ let doc = s.doc()?;
+ // Anything named must be layers; nothing named lists every component in the file.
+ let named = get(p, "ids").is_some() || get(p, "id").is_some();
+ let ids = if named { Some(crate::params::req_targets(cmd, s, p)?) } else { None };
+ let root = text(cmd, p, "root")?;
+ let unmapped = crate::params::boolean(p, "unmapped").unwrap_or(false);
+ let all: Vec = listed(doc, ids.as_deref()).into_iter().filter_map(|id| entry(doc, id, root.as_deref())).collect();
+ let count = |m: bool| all.iter().filter(|e| e["mapped"] == m).count();
+ let (mapped, missing) = (count(true), count(false));
+ let components: Vec = all.into_iter().filter(|e| !unmapped || e["mapped"] == false).collect();
+ Ok(json!({"components": components, "mapped": mapped, "unmapped": missing}))
+}
+
pub fn specs() -> Vec {
vec![
+ spec!(
+ "codeConnect.list",
+ "List code connections",
+ "{ids? | id? (the components those layers are, use or hold; default every component in the file), unmapped? (only those without a link), root? (the code repository: says if each link's source is there)} → {components: [{id, name, type, mapped, properties, links: [{language, importPath, import, name, template, snippet, source?, sourceFound?, values?, notes?}]}], mapped, unmapped}",
+ false,
+ list
+ ),
spec!(
"codeConnect.set",
"Connect to code",
- "{id? (component, set or instance; default the selection), language?: react|leptos|vue|swiftui|compose|arkui|flutter (default react), importPath?, name? (default the generated name), template? (default a call passing every property)} links the component (its set, for a variant) to its code component; fields left out keep their current value. Placeholders: {property} (its name or parameter name) and {property ? \"a\" : \"b\"}; other {…} stay as written → {component, language, code (the snippet for the layer), unknown (placeholder names that aren't properties)}",
+ "{id? (component, set or instance; default the selection), language?: react|leptos|vue|swiftui|compose|arkui|flutter (default react), importPath?, name? (default the generated name), template? (default a call passing every property), source? (the file, relative to the code repository), values? ({property: {design value: code value}}), notes?} links the component (its set, for a variant) to its code component; fields left out keep their current value. Placeholders: {property} (its name or parameter name) and {property ? \"a\" : \"b\"}; other {…} stay as written → {component, language, code (the snippet for the layer), unknown (placeholder names that aren't properties)}",
true,
|s, p| {
let cmd = "codeConnect.set";
@@ -578,7 +698,13 @@ pub fn specs() -> Vec {
None => old.template,
};
let import_path = text(cmd, p, "importPath")?.map_or(old.import_path, |i| i.trim().to_string());
- let link = CodeLink { language: lang.id().into(), import_path, name, template };
+ let source = text(cmd, p, "source")?.map_or(old.source, |v| v.trim().to_string());
+ let notes = text(cmd, p, "notes")?.unwrap_or(old.notes);
+ let values = match get(p, "values") {
+ None => old.values,
+ Some(v) => serde_json::from_value(v.clone()).map_err(|_| bad(cmd, "values: {property: {design value: code value}}"))?,
+ };
+ let link = CodeLink { language: lang.id().into(), import_path, name, template, source, values, notes };
let unknown = check(&c, &link, lang).map_err(|e| bad(cmd, e))?;
let code = connected_code(doc, id, lang, &link);
store(s.doc_mut()?, owner, link)?;
@@ -610,27 +736,32 @@ pub fn specs() -> Vec {
spec!(
"codeConnect.export",
"Export code connections",
- "{path? (write it there, e.g. figcraft.connect.json in the code repository)} every component's links as {version: 1, links: [{component (its name), language, importPath, name, template}]}, sorted → {text, links} or {path, links}",
+ "{path? (write it there, e.g. figcraft.connect.json in the code repository; other top-level keys of a file already there stay, and so do the links of components this file doesn't have)} every component's links as {version: 1, links: [{component (its name), language, importPath, name, template, source?, values?, notes?}]}, sorted → {text, links} or {path, links}",
false,
|s, p| {
let cmd = "codeConnect.export";
let path = text(cmd, p, "path")?;
let doc = s.doc()?;
- let mut links: Vec = doc
- .nodes()
- .filter(|n| owner(doc, n.id) == Some(n.id))
- .flat_map(|n| {
- n.code_links.iter().map(|l| {
- json!({"component": n.name, "language": l.language, "importPath": l.import_path, "name": l.name, "template": l.template})
- })
- })
- .collect();
+ let mut links: Vec =
+ doc.nodes().filter(|n| owner(doc, n.id) == Some(n.id)).flat_map(|n| n.code_links.iter().map(|l| link_json(&n.name, l))).collect();
let key =
|v: &Value| (v["component"].as_str().unwrap_or_default().to_string(), v["language"].as_str().unwrap_or_default().to_string());
links.sort_by_key(key);
let count = links.len();
- let text =
- serde_json::to_string_pretty(&json!({"version": VERSION, "links": links})).map_err(|e| EngineError::Other(e.to_string()))? + "\n";
+ // The file also holds the project's settings and the links of other designs: only
+ // the links of this file's components are this command's.
+ let old = path.as_deref().and_then(kept_keys).unwrap_or_default();
+ let here: Vec<&str> = doc.nodes().filter(|n| owner(doc, n.id) == Some(n.id)).map(|n| n.name.as_str()).collect();
+ let others = old.get("links").and_then(Value::as_array).map(Vec::as_slice).unwrap_or_default();
+ links.extend(others.iter().filter(|l| !l.get("component").and_then(Value::as_str).is_some_and(|c| here.contains(&c))).cloned());
+ links.sort_by_key(key);
+ let mut file = json!({"version": VERSION, "links": links});
+ if let Some(fields) = file.as_object_mut() {
+ for (k, v) in old {
+ fields.entry(k).or_insert(v);
+ }
+ }
+ let text = serde_json::to_string_pretty(&file).map_err(|e| EngineError::Other(e.to_string()))? + "\n";
match path {
Some(path) => {
crate::cmd::file::write(&path, text.as_bytes())?;
@@ -650,6 +781,17 @@ pub fn specs() -> Vec {
]
}
+/// The top-level keys of the connect file at `path`, if there is a readable one.
+fn kept_keys(path: &str) -> Option> {
+ if !crate::file_access::exists(path) {
+ return None;
+ }
+ match serde_json::from_slice(&crate::cmd::file::read_capped(path, MAX_FILE).ok()?).ok()? {
+ Value::Object(fields) => Some(fields),
+ _ => None,
+ }
+}
+
fn import(s: &mut Session, p: &Value) -> Result {
let cmd = "codeConnect.import";
let parse_json = |b: &[u8]| serde_json::from_slice::(b).map_err(|e| bad(cmd, format!("not JSON: {e}")));
@@ -688,11 +830,15 @@ fn import(s: &mut Session, p: &Value) -> Result {
));
continue;
};
+ let values = e.get("values").and_then(|v| serde_json::from_value(v.clone()).ok()).unwrap_or_default();
let link = CodeLink {
language: lang.id().into(),
import_path: field("importPath").unwrap_or_default().to_string(),
name: name.into(),
template: template.into(),
+ source: field("source").unwrap_or_default().to_string(),
+ values,
+ notes: field("notes").unwrap_or_default().to_string(),
};
let matches = owners.get(component).cloned().unwrap_or_default();
if matches.is_empty() {
diff --git a/crates/mcp/src/tools.rs b/crates/mcp/src/tools.rs
index 7fb32e984..abdc1dcae 100644
--- a/crates/mcp/src/tools.rs
+++ b/crates/mcp/src/tools.rs
@@ -101,6 +101,8 @@ pub const TOOL_NAMES: &[&str] = &[
"inspect_document",
"get_node",
"design_context",
+ "component_mappings",
+ "sync_mappings",
"select",
"export",
"screenshot",
@@ -124,6 +126,8 @@ const DOCUMENT_TOOLS: &[&str] = &[
"inspect_document",
"get_node",
"design_context",
+ "component_mappings",
+ "sync_mappings",
"select",
"export",
"screenshot",
@@ -270,6 +274,33 @@ fn tools() -> Vec {
),
true,
),
+ tool(
+ "component_mappings",
+ "Component mappings",
+ "Which code component each design component is: its import, code name, source file, a ready snippet, its properties and variants, and which design values need translating. Check this before writing a component: reuse a mapped one, never recreate it. `unmapped` lists those with no code component yet.",
+ obj(
+ json!({
+ "ids": ids_schema("Layers: the components they are, use or hold (default every component in the file)"),
+ "unmapped": boolean("Only components without a mapping"),
+ "root": string("The code repository, to check each link's source file is there (default where this server runs)")
+ }),
+ &[],
+ ),
+ true,
+ ),
+ tool(
+ "sync_mappings",
+ "Sync mappings with a repository",
+ "Apply a code repository's figcraft.connect.json to the open design (`import`, one undo step), or write the design's mappings to it (`export`, keeping its other keys and the links of components this design doesn't have). Run `import` first when component_mappings shows less than the repository should have.",
+ obj(
+ json!({
+ "direction": {"type": "string", "enum": ["import", "export"], "description": "import: file to design. export: design to file"},
+ "path": string("The file (default figcraft.connect.json where this server runs)")
+ }),
+ &["direction"],
+ ),
+ false,
+ ),
tool(
"select",
"Select layers",
@@ -456,6 +487,26 @@ fn design_context(b: &mut dyn Backend, a: &Map) -> Result) -> Result {
+ let mut params = a.clone();
+ let root = std::path::absolute(s_arg(a, "root")?.unwrap_or(".")).map_err(|e| format!("root: {e}"))?;
+ params.insert("root".into(), json!(root.to_string_lossy()));
+ exec(b, "codeConnect.list", Value::Object(params)).map(|v| ToolResult::json(&v))
+}
+
+/// `codeConnect.import` or `.export` with a code repository's connect file, made absolute here: an
+/// attached app runs in another folder.
+fn sync_mappings(b: &mut dyn Backend, a: &Map) -> Result {
+ let command = match s_arg(a, "direction")? {
+ Some("import") => "codeConnect.import",
+ Some("export") => "codeConnect.export",
+ _ => return Err("`direction`: import or export".into()),
+ };
+ let path = std::path::absolute(s_arg(a, "path")?.unwrap_or("figcraft.connect.json")).map_err(|e| format!("path: {e}"))?;
+ exec(b, command, json!({"path": path.to_string_lossy()})).map(|v| ToolResult::json(&v))
+}
+
fn wait_for_changes(b: &mut dyn Backend, a: &Map) -> Result {
b.call("events.poll", Value::Object(a.clone())).map(|v| ToolResult::json(&v))
}
@@ -602,6 +653,8 @@ pub fn call_tool(b: &mut dyn Backend, name: &str, args: &Value) -> ToolResult {
"inspect_document" => inspect_document(b, &a),
"get_node" => get_node(b, &a),
"design_context" => design_context(b, &a),
+ "component_mappings" => component_mappings(b, &a),
+ "sync_mappings" => sync_mappings(b, &a),
"select" => select(b, &a),
"export" => export(b, &a),
"screenshot" => screenshot(b, &a),
diff --git a/crates/mcp/tests/it/code_connect.rs b/crates/mcp/tests/it/code_connect.rs
new file mode 100644
index 000000000..465da8d17
--- /dev/null
+++ b/crates/mcp/tests/it/code_connect.rs
@@ -0,0 +1,37 @@
+//! `component_mappings` and `sync_mappings` against a code repository's connect file.
+
+use serde_json::{Value, json};
+
+use crate::common::Client;
+
+fn repo(name: &str) -> std::path::PathBuf {
+ let dir = std::env::temp_dir().join(format!("figcraft-mcp-connect-{name}-{}", std::process::id()));
+ let _ = std::fs::remove_dir_all(&dir);
+ std::fs::create_dir_all(&dir).unwrap();
+ std::fs::canonicalize(dir).unwrap()
+}
+
+#[test]
+fn mappings_travel_through_a_repositorys_file() {
+ let dir = repo("travel");
+ let mut c = Client::new();
+ let frame = c.create(json!({"type": "frame", "name": "Tag", "width": 80, "height": 24}));
+ let main = c.run("component.create", json!({"ids": [frame]}))["id"].clone();
+ let file = dir.join("figcraft.connect.json");
+ std::fs::write(&file, r#"{"version":1,"project":{"name":"shop"},"links":[{"component":"Tag","language":"react","importPath":"@/ui/tag","name":"Tag","template":" ","source":"src/tag.tsx"}]}"#).unwrap();
+ let before = c.ok("component_mappings", json!({"unmapped": true, "root": dir}));
+ assert_eq!(before["unmapped"], 1);
+ c.ok("sync_mappings", json!({"direction": "import", "path": file}));
+ let after = c.ok("component_mappings", json!({"ids": [main], "root": dir}));
+ let link = &after["components"][0]["links"][0];
+ assert_eq!(link["import"], r#"import { Tag } from "@/ui/tag";"#);
+ assert_eq!(link["sourceFound"], false, "src/tag.tsx isn't there yet");
+ std::fs::create_dir_all(dir.join("src")).unwrap();
+ std::fs::write(dir.join("src/tag.tsx"), "").unwrap();
+ assert_eq!(c.ok("component_mappings", json!({"ids": [main], "root": dir}))["components"][0]["links"][0]["sourceFound"], true);
+ c.ok("sync_mappings", json!({"direction": "export", "path": file}));
+ let written: Value = serde_json::from_slice(&std::fs::read(&file).unwrap()).unwrap();
+ assert_eq!(written["project"]["name"], "shop", "keys the export doesn't own stay");
+ assert_eq!(written["links"][0]["source"], "src/tag.tsx");
+ assert!(c.err("sync_mappings", json!({"direction": "sideways"})).contains("import or export"));
+}
diff --git a/crates/mcp/tests/it/main.rs b/crates/mcp/tests/it/main.rs
index 7d5195fe7..55495493d 100644
--- a/crates/mcp/tests/it/main.rs
+++ b/crates/mcp/tests/it/main.rs
@@ -8,6 +8,8 @@ mod agent_tasks;
mod attached;
#[allow(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::disallowed_methods)]
mod automation_roots;
+#[allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)]
+mod code_connect;
#[allow(dead_code, clippy::unwrap_used, clippy::expect_used, clippy::panic)]
mod common;
#[allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)]
diff --git a/crates/ui-egui/locales/en.toml b/crates/ui-egui/locales/en.toml
index c6fae54ae..1db66ede6 100644
--- a/crates/ui-egui/locales/en.toml
+++ b/crates/ui-egui/locales/en.toml
@@ -392,6 +392,9 @@ name = "English"
"Ctrl+arrows" = "Ctrl+arrows"
"Ctrl+click" = "Ctrl+click"
"Ctrl+click a padding field" = "Ctrl+click a padding field"
+"In code" = "In code"
+"Source file" = "Source file"
+"Variant value" = "Variant value"
"⌘ click a padding field" = "⌘ click a padding field"
"Ctrl+scroll" = "Ctrl+scroll"
"Current name" = "Current name"
diff --git a/crates/ui-egui/src/panels/dev_mode.rs b/crates/ui-egui/src/panels/dev_mode.rs
index 09c3b9732..228d6bca1 100644
--- a/crates/ui-egui/src/panels/dev_mode.rs
+++ b/crates/ui-egui/src/panels/dev_mode.rs
@@ -481,11 +481,21 @@ pub fn connect_section(app: &mut FigApp, ui: &mut Ui, doc: &Document, id: NodeId
edit = Some(("name", v));
}
});
+ widgets::sublabels(ui, tr("Source file"), None);
+ row(ui, 32.0, |ui| {
+ let width = ui.available_width() - 2.0 * PAD;
+ if let Some(v) =
+ widgets::text_field(ui, Id::unique(("code_connect_source", owner, lang.id())), &link.source, width, "src/components/button.tsx")
+ {
+ edit = Some(("source", v));
+ }
+ });
widgets::sublabels(ui, tr("Template"), None);
if let Some(v) = widgets::multiline_field(ui, template_id(owner, lang), &link.template, "{label} ", 3) {
edit = Some(("template", v));
}
widgets::note(ui, tr("{property} is its value; {property ? \"a\" : \"b\"} picks a string. Other {…} stays as written."), t.text_secondary);
+ variant_values(app, ui, doc, owner, lang, &link);
if let Some((key, value)) = edit {
let mut params = params;
params[key] = json!(value);
@@ -499,6 +509,44 @@ pub fn connect_section(app: &mut FigApp, ui: &mut Ui, doc: &Document, id: NodeId
ui.add_space(4.0);
}
+/// The variant values of a connected component and what code calls them: a value left empty
+/// stays as the design names it.
+fn variant_values(app: &mut FigApp, ui: &mut Ui, doc: &Document, owner: NodeId, lang: CodeLang, link: &CodeLink) {
+ let properties = code_connect::variants(doc, owner);
+ if properties.is_empty() {
+ return;
+ }
+ let mut change: Option<(String, String, String)> = None;
+ widgets::sublabels(ui, tr("Variant value"), Some(tr("In code")));
+ let col = widgets::col_width(ui.available_width());
+ for (property, options) in &properties {
+ for option in options {
+ let current = link.values.get(property).and_then(|m| m.get(option)).map_or("", String::as_str);
+ row(ui, 32.0, |ui| {
+ ui.spacing_mut().item_spacing.x = 8.0;
+ ui.allocate_ui_with_layout(vec2(col, 24.0), egui::Layout::left_to_right(egui::Align::Center), |ui| {
+ ui.set_min_width(col);
+ ui.add(egui::Label::new(format!("{property}: {option}")).truncate());
+ });
+ if let Some(v) = widgets::text_field(ui, Id::unique(("code_connect_value", owner, lang.id(), property, option)), current, col, option)
+ {
+ change = Some((property.clone(), option.clone(), v));
+ }
+ });
+ }
+ }
+ let Some((property, option, value)) = change else { return };
+ let mut values = link.values.clone();
+ let mapped = values.entry(property).or_default();
+ if value.trim().is_empty() {
+ mapped.remove(&option);
+ } else {
+ mapped.insert(option, value.trim().to_string());
+ }
+ values.retain(|_, m| !m.is_empty());
+ app.run("codeConnect.set", json!({"id": owner, "language": lang.id(), "values": values}));
+}
+
/// Dev Mode plugins: the installed plugins that only read the document, run from the Inspect tab.
pub fn plugins_section(app: &mut FigApp, ui: &mut Ui) {
let runnable: Vec<(String, String, String)> = app
diff --git a/docs/mcp.md b/docs/mcp.md
index c1f3992a9..b2aba1f43 100644
--- a/docs/mcp.md
+++ b/docs/mcp.md
@@ -409,6 +409,8 @@ a later step can use `{"$step": 0, "field": "ids/0"}` to target the first match.
| `inspect_document {depth, allPages, fields?, outline?}` | The document as JSON (its `id`, layer tree, styles, selection, history); `fields` selects layer properties, `outline: true` gives a compact tree (below). The tools that act on a document also take `document` (see Naming the document below). |
| `get_node {id, depth, fields?, outline?}` | One layer as JSON; takes the same `fields` and `outline` options; `pluginData` (`{key: value}`, values as strings) when the layer or page has layer data written with `set_properties {props: {pluginData}}`. |
| `design_context {ids?, scope?, depth?, maxNodes?, maxBytes?}` | Everything needed to build a design in one read: see [Design context](#design-context). |
+| `component_mappings {ids?, unmapped?, root?}` | Which code component each design component is: `import`, `name`, `source` (and `sourceFound` under `root`, default the server's folder), a ready `snippet`, `properties` with variants, and `values` that need translating. |
+| `sync_mappings {direction, path?}` | Apply a code repository's `figcraft.connect.json` to the open design (`import`) or write the design's mappings to it (`export`); `path` defaults to that file in the server's folder. |
| `select {ids}` | Replace the selection (`[]` deselects). |
| `export {ids, format, scale \| size, path?, bleed?, cropMarks?, bleedMarks?, cmyk?, contentsOnly?, includeBoundingBox?, svgOutlineText?, svgIdAttribute?, svgSimplifyStroke?, vdCompat?, colorProfile?, quality?}` | png, jpg, svg, webp, pdf, xml (an Android Vector Drawable: `svgIdAttribute` writes `android:name`, `vdCompat` is `bestEffort` (default: approximated with a warning), `exact` (left out with a warning) or `ignore` (no warnings: overlapping layer opacity dropped, even-odd fills kept as `fillType="evenOdd"`, diamond gradients left out), and the result lists `warnings` for what was changed or left out), or `fig`: the whole file as `.fig`, experimental (see Exporting `.fig` files below); `size` is `2x`, `512w` or `512h`; `quality` is the JPG quality, 1 to 100 (default 90). The image covers what the layers paint (shadows towards their offset, strokes, unclipped children, a mask group's mask; hidden layers take no room; a slice is its area with everything under it, or only the frame or group it sits in while `contentsOnly` is on); `contentsOnly: false` also draws every other layer showing in that area, `includeBoundingBox` exports the layers' own boxes; SVG: `svgOutlineText: false` keeps ``, `svgIdAttribute` writes unique ids from layer names, `svgSimplifyStroke: false` writes every stroke as an outline; png, jpg and webp: `colorProfile` is `sameAsFile` (default: the document's profile), `srgb` or `displayP3`, the pixels converted (out-of-gamut colors clip) and the file tagged for it (PNG: `sRGB` chunk, or ICC and `cICP` for Display P3; JPG: ICC profile; WebP: ICC profile for Display P3, none for sRGB) (SVG, XML and RGB PDF output are always sRGB; PDF with `cmyk` is DeviceCMYK). The same options go in export settings (`export.add` / `export.update`). PDF: frames one page each (sized in points), anything else together on one page; print options: `bleed` (points or a length like `"3mm"`, `"0.125in"`), crop and bleed marks, CMYK colour (see Exports below), also taken by `file.export`, `file.exportLayers`, `file.exportFramesPdf` and stored per export setting by `export.add` / `export.update`; `run_command` `file.exportFramesPdf {page?, path?}` writes every top-level frame of a page. Without `path`, images come back as MCP image content, SVG as text, XML as text followed by `{format, bytes, warnings}`. Layers' own export settings: `run_command` with `export.add` / `export.update {index, size?, suffix?, format?}` / `export.remove` and `file.exportLayers {ids?, dir?, assets?}` (every layer once per setting, named `.`, a slash in a layer name making a folder; `assets: true` exports the Inspect tab's assets instead: icons as SVG, images as PNG). |
| `screenshot {ids?, scale?, maxSize?, window?}` | PNG of the page (with background) or of layers, scaled to fit `maxSize` (default 1600). `window: true` captures the app window in front when attached, a window id (see Windows below) that window. |
@@ -1860,11 +1862,19 @@ permissions: without it nothing is downloaded); `plugin.directory.publish {path
`@acme/ui` gives `import { Button } from "@acme/ui";` then `{"Buy
now"} `. `codeConnect.remove {id?, language?}` (no language: all). `codeConnect.export
{path?}` → `{text, links}` (or writes the file): `{version: 1, links: [{component, language,
- importPath, name, template}]}`, sorted, meant to live in the code repository as
- `figcraft.connect.json`; `codeConnect.import {json | path}` → `{linked, warnings}` links each
+ importPath, name, template, source?, values?, notes?}]}`, sorted, meant to live in the code
+ repository as `figcraft.connect.json` (writing a file that's there keeps its other top-level keys
+ and the links of components this design doesn't have, so several designs can share one file); `codeConnect.import {json | path}` → `{linked, warnings}` links each
entry to every component or set with that name (one undo step; at most 5,000 links and 4 MB;
templates up to 4,000 characters, names 100, import paths 300; invalid entries are skipped with a
- warning). `get_node` lists a component's links as `codeLinks`. In the app, the Inspect tab's
+ warning). A link can also say where the code component lives (`source`, a path inside the
+ repository), what a property's design values are called in code (`values`:
+ `{"Variant": {"Primary": "primary"}}`, so `{Variant}` renders `primary`; a value without an entry
+ keeps its design name) and `notes`, through `codeConnect.set`, the file and the Inspect tab.
+ `codeConnect.list {ids?, unmapped?, root?}` → `{components: [{id, name, type, mapped, properties,
+ links: [{language, importPath, import, name, template, snippet, source?, sourceFound?, values?,
+ notes?}]}], mapped, unmapped}` answers which code component each design component is; with `root`
+ it says whether each `source` exists there. `get_node` lists a component's links as `codeLinks`. In the app, the Inspect tab's
Connect to code section edits them in the Code section's language, with a live preview and a
Connected badge. An editor extension isn't needed: agents and editors read the same snippets
through this server. Plugins whose manifest asks only for `read` also run from the Inspect tab,
From dbccabce4170dfe1479a3f9469a93082b7719739 Mon Sep 17 00:00:00 2001
From: B-uchi
Date: Thu, 19 Nov 2026 01:54:50 +0100
Subject: [PATCH 02/59] M8: design context gives Code Connect links as the
connect file does
`inspect.designContext` wrote a component's links through `camel`, which renames keys at every
depth, so a mapped design value such as `extra_large` came out as `extraLarge`. Its components and
the code it gives each connected layer now use Code Connect's own link JSON: value names stay as
written, and the code carries the link's `source` and `notes`. Export also sorts its links once,
after merging the file's other links.
---
crates/engine/src/design_context_tests.rs | 26 +++++++++++++++++++++++
crates/engine/src/dev/code_connect.rs | 16 ++++++++------
crates/engine/src/dev/design_context.rs | 11 ++++++++--
docs/mcp.md | 2 +-
4 files changed, 46 insertions(+), 9 deletions(-)
diff --git a/crates/engine/src/design_context_tests.rs b/crates/engine/src/design_context_tests.rs
index 5d6f51304..722edc8b4 100644
--- a/crates/engine/src/design_context_tests.rs
+++ b/crates/engine/src/design_context_tests.rs
@@ -407,3 +407,29 @@ fn a_join_stopped_at_its_budget_says_so() {
let (some, complete) = crate::design_context::referenced(s.doc().unwrap(), &start, &none, 3);
assert_eq!((some.len(), complete), (3, false), "{some:?}");
}
+
+#[test]
+fn code_links_keep_their_value_names_and_carry_source_and_notes() {
+ let mut s = session();
+ let variants: Vec<_> = ["small", "extra_large"]
+ .iter()
+ .map(|v| {
+ let f = node(&mut s, json!({"type": "frame", "name": format!("Size={v}"), "width": 80, "height": 32}));
+ id(&s.execute("component.create", &json!({"ids": [f]})).unwrap())
+ })
+ .collect();
+ let set = id(&s.execute("component.combineVariants", &json!({"ids": variants})).unwrap());
+ s.execute(
+ "codeConnect.set",
+ &json!({"id": set, "name": "Button", "template": " ", "source": "src/button.tsx",
+ "notes": "Use for main actions", "values": {"Size": {"extra_large": "xl"}}}),
+ )
+ .unwrap();
+ let instance = id(&s.execute("instance.create", &json!({"component": variants[1]})).unwrap());
+ let v = context(&mut s, json!({"ids": [instance]}));
+ let link = &v["components"][set.to_string()]["codeLinks"][0];
+ assert_eq!(link["values"]["Size"]["extra_large"], "xl", "a design value keeps its name: {link}");
+ let code = &only(&v)["code"][0];
+ assert_eq!((code["source"].as_str(), code["notes"].as_str()), (Some("src/button.tsx"), Some("Use for main actions")), "{code}");
+ assert!(code["code"].as_str().unwrap().contains("xl"), "{code}");
+}
diff --git a/crates/engine/src/dev/code_connect.rs b/crates/engine/src/dev/code_connect.rs
index e730c5c48..07b03a180 100644
--- a/crates/engine/src/dev/code_connect.rs
+++ b/crates/engine/src/dev/code_connect.rs
@@ -601,7 +601,15 @@ pub fn variants(doc: &Document, owner: NodeId) -> Vec<(String, Vec)> {
/// A link as the connect file holds it.
fn link_json(component: &str, l: &CodeLink) -> Value {
- let mut v = json!({"component": component, "language": l.language, "importPath": l.import_path, "name": l.name, "template": l.template});
+ let mut v = link_fields(l);
+ v["component"] = json!(component);
+ v
+}
+
+/// A link's own fields, as the connect file and `inspect.designContext` give them: its keys are
+/// the file's, and a mapping's property names and values stay as written.
+pub(crate) fn link_fields(l: &CodeLink) -> Value {
+ let mut v = json!({"language": l.language, "importPath": l.import_path, "name": l.name, "template": l.template});
if !l.source.is_empty() {
v["source"] = json!(l.source);
}
@@ -633,10 +641,7 @@ fn entry(doc: &Document, id: NodeId, root: Option<&str>) -> Option {
.iter()
.map(|l| {
let lang = CodeLang::from_id(&l.language);
- let mut v = link_json(&n.name, l);
- if let Some(o) = v.as_object_mut() {
- o.remove("component");
- }
+ let mut v = link_fields(l);
v["import"] = json!(lang.map(|k| import_line(l, k)));
v["snippet"] = json!(lang.and_then(|k| connected_code(doc, id, k, l)));
if let Some(root) = root.filter(|_| !l.source.is_empty()) {
@@ -746,7 +751,6 @@ pub fn specs() -> Vec {
doc.nodes().filter(|n| owner(doc, n.id) == Some(n.id)).flat_map(|n| n.code_links.iter().map(|l| link_json(&n.name, l))).collect();
let key =
|v: &Value| (v["component"].as_str().unwrap_or_default().to_string(), v["language"].as_str().unwrap_or_default().to_string());
- links.sort_by_key(key);
let count = links.len();
// The file also holds the project's settings and the links of other designs: only
// the links of this file's components are this command's.
diff --git a/crates/engine/src/dev/design_context.rs b/crates/engine/src/dev/design_context.rs
index c21467110..6ad850804 100644
--- a/crates/engine/src/dev/design_context.rs
+++ b/crates/engine/src/dev/design_context.rs
@@ -178,7 +178,14 @@ fn code(doc: &Document, id: NodeId) -> Vec {
.filter_map(|l| {
let lang = CodeLang::from_id(&l.language)?;
let snippet = code_connect::connected_code(doc, id, lang, l)?;
- Some(json!({"language": l.language, "importPath": l.import_path, "name": l.name, "code": snippet}))
+ // The snippet already holds the template and the values it maps.
+ let mut v = code_connect::link_fields(l);
+ if let Some(o) = v.as_object_mut() {
+ o.remove("template");
+ o.remove("values");
+ }
+ v["code"] = json!(snippet);
+ Some(v)
})
.collect()
}
@@ -355,7 +362,7 @@ fn components_json(doc: &Document, ids: &BTreeSet) -> Value {
v["description"] = json!(description);
}
if !n.code_links.is_empty() {
- v["codeLinks"] = camel(serde_json::to_value(&n.code_links).unwrap_or(Value::Null));
+ v["codeLinks"] = json!(n.code_links.iter().map(code_connect::link_fields).collect::>());
}
out.insert(id.to_string(), v);
}
diff --git a/docs/mcp.md b/docs/mcp.md
index b2aba1f43..800428a15 100644
--- a/docs/mcp.md
+++ b/docs/mcp.md
@@ -450,7 +450,7 @@ Each layer in `nodes` has `id`, `name`, `type` and:
with the `name` of each. `explicit` holds the value they resolved to.
- `unsupported`: `{property, why}` for what has no direct CSS equivalent. The value stays in `explicit`.
- `code`: for a component or instance connected to code, per language, `{language, importPath, name,
- code}`, with the instance's own values in `code`. A connected instance stops there: `childCount`
+ source?, notes?, code}`, with the instance's own values in `code`. A connected instance stops there: `childCount`
says what it holds, and `get_node` reads it.
- `children`, or `childCount` where the tree stops.
From d243347fd08325847e84ff717c3eb346fc672108 Mon Sep 17 00:00:00 2001
From: B-uchi
Date: Thu, 19 Nov 2026 01:54:56 +0100
Subject: [PATCH 03/59] M8: Code Connect keeps a connect file it can't read,
and maps values as it checks them
- Export refuses to write over a connect file it can't read (not JSON, not an object, or over
4 MB) instead of replacing it with this design's links alone.
- Import skips an entry whose `values` is malformed, with a warning, instead of replacing the
component's link with one that maps nothing.
- `{Property ? "a" : "b"}` reads the design's value, so mapping Off to `inactive` doesn't make the
condition true.
- A `values` key that is only a parameter name (`state` for State) is reported as unknown, since
the mapping is read by property name and it would do nothing.
---
crates/engine/src/code_connect_tests.rs | 83 +++++++++++++++++++++++++
crates/engine/src/dev/code_connect.rs | 39 ++++++++----
docs/mcp.md | 9 +--
3 files changed, 115 insertions(+), 16 deletions(-)
diff --git a/crates/engine/src/code_connect_tests.rs b/crates/engine/src/code_connect_tests.rs
index 9750db813..f28aa882c 100644
--- a/crates/engine/src/code_connect_tests.rs
+++ b/crates/engine/src/code_connect_tests.rs
@@ -419,3 +419,86 @@ fn listing_refuses_a_malformed_target_rather_than_reading_the_selection() {
assert!(s.execute("codeConnect.list", &p).is_err(), "{p}");
}
}
+
+/// A set called `name` with a variant `prop=value` for each of `values`. Returns (set, variants).
+fn set_of(s: &mut Session, name: &str, prop: &str, values: &[&str]) -> (NodeId, Vec) {
+ let variants: Vec = values
+ .iter()
+ .enumerate()
+ .map(|(k, v)| {
+ let f = idv(&ex(s, "frame.create", json!({"x": k as f64 * 150.0, "y": 600, "width": 100, "height": 40, "name": format!("{prop}={v}")})));
+ idv(&ex(s, "component.create", json!({"ids": [f]})))
+ })
+ .collect();
+ let set = idv(&ex(s, "component.combineVariants", json!({"ids": variants.clone()})));
+ ex(s, "node.set", json!({"id": set, "props": {"name": name}}));
+ (set, variants)
+}
+
+#[test]
+fn a_condition_reads_the_designs_value_not_its_name_in_code() {
+ let mut s = Session::new();
+ ex(&mut s, "file.new", json!({}));
+ let (set, variants) = set_of(&mut s, "Toggle", "State", &["On", "Off"]);
+ ex(&mut s, "codeConnect.set", json!({"id": set, "name": "Toggle", "template": "{State ? \"enabled\" : \"disabled\"} {State}"}));
+ let off = idv(&ex(&mut s, "instance.create", json!({"component": variants[1]})));
+ assert!(code(&mut s, off, "react").starts_with("disabled"), "{}", code(&mut s, off, "react"));
+ // `inactive` reads as true, but the condition is about the design's Off.
+ ex(&mut s, "codeConnect.set", json!({"id": set, "values": {"State": {"Off": "inactive"}}}));
+ let out = code(&mut s, off, "react");
+ assert!(out.starts_with("disabled") && out.contains("inactive"), "{out}");
+}
+
+#[test]
+fn a_mapping_keyed_by_a_name_it_cant_use_is_reported() {
+ let mut s = Session::new();
+ ex(&mut s, "file.new", json!({}));
+ let (set, hover) = button(&mut s);
+ let r = ex(
+ &mut s,
+ "codeConnect.set",
+ json!({"id": set, "name": "Button", "template": " ", "values": {"state": {"Hover": "hovered"}}}),
+ );
+ assert!(r.to_string().contains("\"state\""), "the lowercase key does nothing, so it's named: {r}");
+ let i = idv(&ex(&mut s, "instance.create", json!({"component": hover})));
+ assert!(code(&mut s, i, "react").contains(r#"state="Hover""#));
+ let r = ex(&mut s, "codeConnect.set", json!({"id": set, "values": {"State": {"Hover": "hovered"}}}));
+ assert!(!r.to_string().contains("\"State\""), "{r}");
+}
+
+#[test]
+fn an_import_with_malformed_values_keeps_the_link_there() {
+ let mut s = Session::new();
+ ex(&mut s, "file.new", json!({}));
+ let (set, _) = button(&mut s);
+ ex(&mut s, "codeConnect.set", json!({"id": set, "name": "Button", "template": " ", "values": {"State": {"Hover": "h"}}}));
+ let links = json!([{"component": "Button", "language": "react", "name": "Other", "template": " ", "values": {"State": {"Hover": 7}}}]);
+ let r = ex(&mut s, "codeConnect.import", json!({"json": {"version": 1, "links": links}}));
+ assert_eq!(r["linked"], 0, "{r}");
+ assert!(r["warnings"][0].as_str().unwrap().contains("values"), "{r}");
+ let link = &s.doc().unwrap().node(set).unwrap().code_links[0];
+ assert_eq!((link.name.as_str(), link.values["State"]["Hover"].as_str()), ("Button", "h"));
+}
+
+#[test]
+fn exporting_over_a_file_it_cant_read_is_refused() {
+ let dir = std::env::temp_dir().join(format!("figcraft-connect-unread-{}", std::process::id()));
+ std::fs::create_dir_all(&dir).unwrap();
+ let mut s = Session::new();
+ ex(&mut s, "file.new", json!({}));
+ let (set, _) = button(&mut s);
+ ex(&mut s, "codeConnect.set", json!({"id": set, "name": "Button", "template": " "}));
+ let big = vec![b' '; 4 * 1024 * 1024 + 1];
+ for (name, bytes) in [("broken.json", b"{\"links\": [".to_vec()), ("list.json", b"[]".to_vec()), ("big.json", big)] {
+ let path = dir.join(name);
+ std::fs::write(&path, &bytes).unwrap();
+ assert!(s.execute("codeConnect.export", &json!({"path": path})).is_err(), "{name}");
+ assert_eq!(std::fs::read(&path).unwrap(), bytes, "{name} is left as it was");
+ }
+ // A file that isn't there yet is written.
+ let new = dir.join("figcraft.connect.json");
+ let _ = std::fs::remove_file(&new);
+ ex(&mut s, "codeConnect.export", json!({"path": new}));
+ assert!(new.exists());
+ let _ = std::fs::remove_dir_all(&dir);
+}
diff --git a/crates/engine/src/dev/code_connect.rs b/crates/engine/src/dev/code_connect.rs
index 07b03a180..17866b7c8 100644
--- a/crates/engine/src/dev/code_connect.rs
+++ b/crates/engine/src/dev/code_connect.rs
@@ -382,7 +382,8 @@ fn html_text(s: &str) -> String {
/// `link`'s template with `values` (one per parameter of `c`), every line prefixed by `pad`.
pub(crate) fn render(doc: &Document, c: &Component, values: &[(String, Value)], link: &CodeLink, lang: CodeLang, pad: &str) -> String {
- let values = &in_code(values, link);
+ // A value is written as code calls it; a condition reads the design's own value.
+ let coded = &in_code(values, link);
let mut out = String::new();
// A quoted attribute stays open across substitutions: `title="{a} {b}"` must treat both
// placeholders as attribute values, not text after the first one.
@@ -397,7 +398,7 @@ pub(crate) fn render(doc: &Document, c: &Component, values: &[(String, Value)],
vue_attr = None;
}
}
- Piece::Value { name, inner } => match find(c, values, name) {
+ Piece::Value { name, inner } => match find(c, coded, name) {
Some((p, v)) => {
let e = expr(doc, c, p, v, lang);
// JSX and `view!`: a plain string reads best as an attribute value, anything
@@ -544,8 +545,9 @@ pub fn check(c: &Component, link: &CodeLink, lang: CodeLang) -> std::result::Res
unknown.push(name.to_string());
}
}
+ // `in_code` reads a mapping by property name, so a key that is only a parameter name does nothing.
for prop in link.values.keys() {
- if find(c, &values, prop).is_none() && !unknown.iter().any(|u| u == prop) {
+ if !c.params.iter().any(|p| p.prop == *prop) && !unknown.iter().any(|u| u == prop) {
unknown.push(prop.clone());
}
}
@@ -741,7 +743,7 @@ pub fn specs() -> Vec {
spec!(
"codeConnect.export",
"Export code connections",
- "{path? (write it there, e.g. figcraft.connect.json in the code repository; other top-level keys of a file already there stay, and so do the links of components this file doesn't have)} every component's links as {version: 1, links: [{component (its name), language, importPath, name, template, source?, values?, notes?}]}, sorted → {text, links} or {path, links}",
+ "{path? (write it there, e.g. figcraft.connect.json in the code repository; other top-level keys of a file already there stay, and so do the links of components this file doesn't have; a file there it can't read is left alone and the export refused)} every component's links as {version: 1, links: [{component (its name), language, importPath, name, template, source?, values?, notes?}]}, sorted → {text, links} or {path, links}",
false,
|s, p| {
let cmd = "codeConnect.export";
@@ -754,7 +756,10 @@ pub fn specs() -> Vec {
let count = links.len();
// The file also holds the project's settings and the links of other designs: only
// the links of this file's components are this command's.
- let old = path.as_deref().and_then(kept_keys).unwrap_or_default();
+ let old = match path.as_deref() {
+ Some(path) => kept_keys(cmd, path)?,
+ None => serde_json::Map::new(),
+ };
let here: Vec<&str> = doc.nodes().filter(|n| owner(doc, n.id) == Some(n.id)).map(|n| n.name.as_str()).collect();
let others = old.get("links").and_then(Value::as_array).map(Vec::as_slice).unwrap_or_default();
links.extend(others.iter().filter(|l| !l.get("component").and_then(Value::as_str).is_some_and(|c| here.contains(&c))).cloned());
@@ -785,14 +790,15 @@ pub fn specs() -> Vec {
]
}
-/// The top-level keys of the connect file at `path`, if there is a readable one.
-fn kept_keys(path: &str) -> Option> {
+/// The top-level keys of the connect file at `path`, none when there is no file. A file that
+/// can't be read as one is an error: writing over it would lose what it holds.
+fn kept_keys(cmd: &str, path: &str) -> Result> {
if !crate::file_access::exists(path) {
- return None;
+ return Ok(serde_json::Map::new());
}
- match serde_json::from_slice(&crate::cmd::file::read_capped(path, MAX_FILE).ok()?).ok()? {
- Value::Object(fields) => Some(fields),
- _ => None,
+ match serde_json::from_slice(&crate::cmd::file::read_capped(path, MAX_FILE)?) {
+ Ok(Value::Object(fields)) => Ok(fields),
+ _ => Err(bad(cmd, format!("{path} isn't a connect file it can read, so it was left as it is"))),
}
}
@@ -834,7 +840,16 @@ fn import(s: &mut Session, p: &Value) -> Result {
));
continue;
};
- let values = e.get("values").and_then(|v| serde_json::from_value(v.clone()).ok()).unwrap_or_default();
+ let values = match e.get("values") {
+ None | Some(Value::Null) => Default::default(),
+ Some(v) => match serde_json::from_value(v.clone()) {
+ Ok(values) => values,
+ Err(_) => {
+ warnings.push(format!("link {}: values: {{property: {{design value: code value}}}}, all strings", i + 1));
+ continue;
+ }
+ },
+ };
let link = CodeLink {
language: lang.id().into(),
import_path: field("importPath").unwrap_or_default().to_string(),
diff --git a/docs/mcp.md b/docs/mcp.md
index 800428a15..f00fec26c 100644
--- a/docs/mcp.md
+++ b/docs/mcp.md
@@ -1864,13 +1864,14 @@ permissions: without it nothing is downloaded); `plugin.directory.publish {path
{path?}` → `{text, links}` (or writes the file): `{version: 1, links: [{component, language,
importPath, name, template, source?, values?, notes?}]}`, sorted, meant to live in the code
repository as `figcraft.connect.json` (writing a file that's there keeps its other top-level keys
- and the links of components this design doesn't have, so several designs can share one file); `codeConnect.import {json | path}` → `{linked, warnings}` links each
+ and the links of components this design doesn't have, so several designs can share one file; a
+ file there that isn't a connect file it can read is left alone and the export refused); `codeConnect.import {json | path}` → `{linked, warnings}` links each
entry to every component or set with that name (one undo step; at most 5,000 links and 4 MB;
- templates up to 4,000 characters, names 100, import paths 300; invalid entries are skipped with a
- warning). A link can also say where the code component lives (`source`, a path inside the
+ templates up to 4,000 characters, names 100, import paths 300; invalid entries, a malformed `values`
+ among them, are skipped with a warning). A link can also say where the code component lives (`source`, a path inside the
repository), what a property's design values are called in code (`values`:
`{"Variant": {"Primary": "primary"}}`, so `{Variant}` renders `primary`; a value without an entry
- keeps its design name) and `notes`, through `codeConnect.set`, the file and the Inspect tab.
+ keeps its design name; `{Variant ? "a" : "b"}` still reads the design's value) and `notes`, through `codeConnect.set`, the file and the Inspect tab.
`codeConnect.list {ids?, unmapped?, root?}` → `{components: [{id, name, type, mapped, properties,
links: [{language, importPath, import, name, template, snippet, source?, sourceFound?, values?,
notes?}]}], mapped, unmapped}` answers which code component each design component is; with `root`
From fce55c315ae4f9fdb1b48a889c723db86232d66d Mon Sep 17 00:00:00 2001
From: NK2552003
Date: Thu, 19 Nov 2026 06:55:52 +0530
Subject: [PATCH 04/59] packaging(linux): refresh Hicolor icon cache in AppRun
and support gtk4-update-icon-cache
---
packaging/linux/AppRun | 33 ++++++++++++++++++++----
packaging/linux/apprun-test.sh | 47 +++++++++++++++++++++++++++++++++-
packaging/linux/postinst.sh | 2 ++
3 files changed, 76 insertions(+), 6 deletions(-)
diff --git a/packaging/linux/AppRun b/packaging/linux/AppRun
index f32928930..fe6a6c3bf 100755
--- a/packaging/linux/AppRun
+++ b/packaging/linux/AppRun
@@ -17,6 +17,15 @@ set -u
APPDIR="$(dirname "$(readlink -f "$0")")"
DESK_ID=ai.storyteller.figcraft
+refresh_icon_cache() {
+ if command -v gtk-update-icon-cache >/dev/null 2>&1; then
+ # A per-user hicolor directory need not have index.theme; -t permits that.
+ gtk-update-icon-cache -f -t "$1" >/dev/null 2>&1 || true
+ elif command -v gtk4-update-icon-cache >/dev/null 2>&1; then
+ gtk4-update-icon-cache -f -t "$1" >/dev/null 2>&1 || true
+ fi
+}
+
integrate() {
case "${FIGCRAFT_NO_DESKTOP_INTEGRATION:-}" in
1 | true | yes) return 0 ;;
@@ -63,12 +72,26 @@ integrate() {
src_icons="$APPDIR/usr/share/icons/hicolor"
[ -d "$src_icons" ] || return 0
icons="$data/icons/hicolor"
- (cd "$src_icons" && find . -type f) | while IFS= read -r rel; do
- mkdir -p "$icons/$(dirname "$rel")" 2>/dev/null || continue
- if ! cmp -s "$src_icons/$rel" "$icons/$rel"; then
- cp "$src_icons/$rel" "$icons/$rel" 2>/dev/null || true
+ (cd "$src_icons" && find . -type f) | {
+ changed=false
+ while IFS= read -r rel; do
+ mkdir -p "$icons/$(dirname "$rel")" 2>/dev/null || continue
+ if ! cmp -s "$src_icons/$rel" "$icons/$rel"; then
+ if cp "$src_icons/$rel" "$icons/$rel" 2>/dev/null; then
+ changed=true
+ fi
+ fi
+ done
+ cache="$icons/icon-theme.cache"
+ if [ "$changed" = false ] && [ -f "$cache" ]; then
+ if [ -n "$(find "$icons" -type f -name "$DESK_ID.*" -newer "$cache" 2>/dev/null)" ]; then
+ changed=true
+ fi
fi
- done
+ if [ "$changed" = true ]; then
+ refresh_icon_cache "$icons"
+ fi
+ }
}
# The CLI is headless and its stdout may be a protocol stream (`cli mcp`): no
diff --git a/packaging/linux/apprun-test.sh b/packaging/linux/apprun-test.sh
index 75625480b..ac6d9f494 100755
--- a/packaging/linux/apprun-test.sh
+++ b/packaging/linux/apprun-test.sh
@@ -29,6 +29,27 @@ export APPIMAGE
export HOME="$TMP/home"
export XDG_DATA_HOME="$HOME/.local/share"
mkdir -p "$HOME"
+unset FIGCRAFT_NO_DESKTOP_INTEGRATION
+
+# Record icon-cache refreshes without requiring a desktop session or GTK install.
+export REAL_CACHE_UPDATER
+REAL_CACHE_UPDATER="$(command -v gtk-update-icon-cache || true)"
+mkdir -p "$TMP/tools"
+cat >"$TMP/tools/gtk-update-icon-cache" <<'EOF'
+#!/bin/sh
+printf '%s\n' "$*" >>"$CACHE_CALLS"
+if [ "${CACHE_UPDATER_FAIL:-0}" = 1 ]; then
+ exit 1
+fi
+if [ -n "$REAL_CACHE_UPDATER" ]; then
+ "$REAL_CACHE_UPDATER" "$@"
+else
+ for dir do :; done
+ : >"$dir/icon-theme.cache"
+fi
+EOF
+chmod +x "$TMP/tools/gtk-update-icon-cache"
+export PATH="$TMP/tools:$PATH" CACHE_CALLS="$TMP/cache-calls"
fail() {
echo "FAIL: $*" >&2
@@ -53,10 +74,16 @@ if command -v desktop-file-validate >/dev/null; then
desktop-file-validate "$DESKTOP" || fail "generated desktop entry is invalid"
fi
-# 3. Icons landed under the name the .desktop entry references.
+# 3. Icons landed under the name the .desktop entry references and refreshed the cache.
for f in "16x16/apps/$APP_ID.png" "256x256/apps/$APP_ID.png" "scalable/apps/$APP_ID.svg"; do
[[ -f "$XDG_DATA_HOME/icons/hicolor/$f" ]] || fail "icon missing: $f"
done
+[[ -f "$CACHE_CALLS" ]] || fail "installed icons did not refresh the icon cache"
+[[ "$(wc -l <"$CACHE_CALLS")" -eq 1 ]] || fail "icon cache refreshed more than once"
+grep -Fxq -- "-f -t $XDG_DATA_HOME/icons/hicolor" "$CACHE_CALLS" || fail "wrong icon cache arguments"
+if [[ -n "$REAL_CACHE_UPDATER" ]]; then
+ [[ -f "$XDG_DATA_HOME/icons/hicolor/icon-theme.cache" ]] || fail "GTK did not build the icon cache"
+fi
# 4. Idempotent: a second launch must not rewrite anything (inode unchanged).
before="$(stat -c %i "$DESKTOP")"
@@ -64,6 +91,7 @@ out="$("$APPDIR/AppRun")" || fail "second launch exited non-zero"
[[ "$out" = "stub: " ]] || fail "second launch output: $out"
after="$(stat -c %i "$DESKTOP")"
[[ "$before" = "$after" ]] || fail "desktop entry rewritten although unchanged"
+[[ "$(wc -l <"$CACHE_CALLS")" -eq 1 ]] || fail "unchanged icons refreshed the cache"
# 5. Moving the AppImage refreshes Exec.
mv "$APPIMAGE" "$TMP/moved.AppImage"
@@ -110,4 +138,21 @@ out="$("$APPDIR/AppRun" cli)" || fail "bare cli launch exited non-zero"
out="$("$APPDIR/AppRun" file.figcraft cli)" || fail "app launch with a later cli argument exited non-zero"
[[ "$out" = "stub: file.figcraft cli" ]] || fail "later cli argument hijacked the launch: $out"
+# 11. Pre-existing stale Hicolor cache is rebuilt even when icon bytes are unchanged,
+# and a subsequent launch does not rebuild again.
+rm -rf "$XDG_DATA_HOME" "$CACHE_CALLS"
+"$APPDIR/AppRun" >/dev/null || fail "setup launch for stale-cache test exited non-zero"
+touch -t 202001010000 "$XDG_DATA_HOME/icons/hicolor/icon-theme.cache"
+: >"$CACHE_CALLS"
+"$APPDIR/AppRun" >/dev/null || fail "stale-cache repair launch exited non-zero"
+[[ "$(wc -l <"$CACHE_CALLS")" -eq 1 ]] || fail "stale icon-theme.cache was not refreshed"
+grep -Fxq -- "-f -t $XDG_DATA_HOME/icons/hicolor" "$CACHE_CALLS" || fail "wrong stale-cache refresh arguments"
+"$APPDIR/AppRun" >/dev/null || fail "post-repair launch exited non-zero"
+[[ "$(wc -l <"$CACHE_CALLS")" -eq 1 ]] || fail "repaired icon-theme.cache refreshed again"
+
+# 12. A failing icon-cache updater never blocks the launch.
+rm -rf "$XDG_DATA_HOME" "$CACHE_CALLS"
+out="$(CACHE_UPDATER_FAIL=1 "$APPDIR/AppRun" ok)" || fail "failing icon-cache updater blocked launch"
+[[ "$out" = "stub: ok" ]] || fail "failing icon-cache updater altered launch output: $out"
+
echo "AppRun desktop integration ok"
diff --git a/packaging/linux/postinst.sh b/packaging/linux/postinst.sh
index 775e4df91..567d63c27 100755
--- a/packaging/linux/postinst.sh
+++ b/packaging/linux/postinst.sh
@@ -9,5 +9,7 @@ if command -v update-mime-database >/dev/null 2>&1; then
fi
if command -v gtk-update-icon-cache >/dev/null 2>&1; then
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor || true
+elif command -v gtk4-update-icon-cache >/dev/null 2>&1; then
+ gtk4-update-icon-cache -q -t -f /usr/share/icons/hicolor || true
fi
exit 0
From ef957a61c818b98d7118873b05a20986945e89c7 Mon Sep 17 00:00:00 2001
From: NK2552003
Date: Thu, 19 Nov 2026 07:10:24 +0530
Subject: [PATCH 05/59] packaging(linux): add GTK 4-only icon-cache fallback
test for AppRun and postinst.sh
---
packaging/linux/apprun-test.sh | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/packaging/linux/apprun-test.sh b/packaging/linux/apprun-test.sh
index ac6d9f494..b4861afaa 100755
--- a/packaging/linux/apprun-test.sh
+++ b/packaging/linux/apprun-test.sh
@@ -155,4 +155,29 @@ rm -rf "$XDG_DATA_HOME" "$CACHE_CALLS"
out="$(CACHE_UPDATER_FAIL=1 "$APPDIR/AppRun" ok)" || fail "failing icon-cache updater blocked launch"
[[ "$out" = "stub: ok" ]] || fail "failing icon-cache updater altered launch output: $out"
+# 13. GTK 4-only fallback: when gtk-update-icon-cache is unavailable, both AppRun
+# and postinst.sh invoke gtk4-update-icon-cache with the expected arguments.
+GTK4_BIN="$TMP/gtk4-only"
+GTK4_CALLS="$TMP/gtk4-calls"
+mkdir -p "$GTK4_BIN"
+for cmd in dirname readlink mkdir sed cmp rm mv find cp; do
+ ln -s "$(command -v "$cmd")" "$GTK4_BIN/$cmd"
+done
+cat >"$GTK4_BIN/gtk4-update-icon-cache" <<'EOF'
+#!/bin/sh
+printf 'gtk4-update-icon-cache %s\n' "$*" >>"$GTK4_CALLS"
+EOF
+chmod +x "$GTK4_BIN/gtk4-update-icon-cache"
+
+rm -rf "$XDG_DATA_HOME" "$GTK4_CALLS"
+out="$(PATH="$GTK4_BIN" GTK4_CALLS="$GTK4_CALLS" "$APPDIR/AppRun" gtk4)" || fail "GTK 4-only AppRun launch failed"
+[[ "$out" = "stub: gtk4" ]] || fail "GTK 4-only AppRun altered launch output: $out"
+[[ "$(wc -l <"$GTK4_CALLS")" -eq 1 ]] || fail "GTK 4-only AppRun did not invoke gtk4-update-icon-cache once"
+grep -Fxq -- "gtk4-update-icon-cache -f -t $XDG_DATA_HOME/icons/hicolor" "$GTK4_CALLS" || fail "wrong GTK 4 AppRun arguments"
+
+: >"$GTK4_CALLS"
+PATH="$GTK4_BIN" GTK4_CALLS="$GTK4_CALLS" "$HERE/postinst.sh" || fail "GTK 4-only postinst.sh failed"
+[[ "$(wc -l <"$GTK4_CALLS")" -eq 1 ]] || fail "GTK 4-only postinst.sh did not invoke gtk4-update-icon-cache once"
+grep -Fxq -- "gtk4-update-icon-cache -q -t -f /usr/share/icons/hicolor" "$GTK4_CALLS" || fail "wrong GTK 4 postinst.sh arguments"
+
echo "AppRun desktop integration ok"
From 2eabc8ea8a437653edd13b09670022695e687fa0 Mon Sep 17 00:00:00 2001
From: HagaiBA
Date: Thu, 19 Nov 2026 07:54:13 +0200
Subject: [PATCH 06/59] i18n(he): add complete Hebrew UI catalog, RTL chrome
polish, and web font guard
---
crates/ui-egui/locales/he.toml | 2737 +++++++++++++++++++++++
crates/ui-egui/src/cjk.rs | 14 +
crates/ui-egui/src/home.rs | 76 +-
crates/ui-egui/src/i18n.rs | 4 +-
crates/ui-egui/src/i18n/tests.rs | 42 +-
crates/ui-egui/src/panels/right/menu.rs | 24 +-
6 files changed, 2865 insertions(+), 32 deletions(-)
create mode 100644 crates/ui-egui/locales/he.toml
diff --git a/crates/ui-egui/locales/he.toml b/crates/ui-egui/locales/he.toml
new file mode 100644
index 000000000..57acbebb8
--- /dev/null
+++ b/crates/ui-egui/locales/he.toml
@@ -0,0 +1,2737 @@
+# FigCraft interface strings: Hebrew (עברית).
+# Original translations written from FigCraft's English strings and command labels.
+# Keys are the English UI strings; see docs/translating.md.
+
+[meta]
+name = "עברית"
+status = "draft — needs native review"
+
+[ui]
+"% of all commits" = "% מכלל ההפקדות"
+"(no longer published)" = "(כבר אינו מפורסם)"
+"({n} warnings: some entries were skipped)" = { one = "({n} אזהרה: חלק מהרשומות דולגו)", other = "({n} אזהרות: חלק מהרשומות דולגו)" }
+"+ 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 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 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} עמודות: השאר לא הודבק"
+"A title, an agenda, a big figure, a chart and a closing slide" = "שקופית כותרת, סדר יום, נתון בולט, תרשים ושקופית סיום"
+"A to Z" = "א׳ עד ת׳"
+"About" = "אודות"
+"About FigCraft" = "אודות FigCraft"
+"About this server" = "אודות שרת זה"
+"Action" = "פעולה"
+"Actions" = "פעולות"
+"Actions for {name}" = "פעולות עבור {name}"
+"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" = "הוסף וריאנט עם ערך חדש"
+"Added" = "נוסף"
+"Added the library \"{name}\"" = "הספרייה ״{name}״ נוספה"
+"Adding to {name}" = "מוסיף אל {name}"
+"Adjust" = "התאמה"
+"Adjustment presets" = "תבניות התאמה"
+"Advanced" = "מתקדם"
+"Advanced stroke" = "קו מתאר מתקדם"
+"After delay" = "לאחר השהיה"
+"After delay {ms}ms" = "לאחר השהיה של {ms} מ״ש"
+"Agent" = "סוכן"
+"Align" = "יישור"
+"Align bottom" = "יישור למטה"
+"Align center" = "יישור למרכז"
+"Align horizontal centers" = "יישור למרכז אופקי"
+"Align left" = "יישור לשמאל"
+"Align middle" = "יישור לאמצע"
+"Align right" = "יישור לימין"
+"Align text baselines" = "יישור לקווי הבסיס של הטקסט"
+"Align top" = "יישור למעלה"
+"Align vertical centers" = "יישור למרכז אנכי"
+"Alignment" = "יישור"
+"All" = "הכול"
+"All categories" = "כל הקטגוריות"
+"All comments" = "כל התגובות"
+"All components" = "כל הרכיבים"
+"All fonts" = "כל הגופנים"
+"All objects" = "כל האובייקטים"
+"All supported properties" = "כל המאפיינים הנתמכים"
+"All the fonts this file uses are installed" = "כל הגופנים שבהם קובץ זה משתמש מותקנים"
+"All variables" = "כל המשתנים"
+"Allow and download" = "אפשר והורד"
+"Allow downloading fonts?" = "לאפשר הורדת גופנים?"
+"Along the bottom" = "לאורך הקצה התחתון"
+"Along the left" = "לאורך הקצה השמאלי"
+"Along the right" = "לאורך הקצה הימני"
+"Along the top" = "לאורך הקצה העליון"
+"Alpha" = "אלפא"
+"Alphabetical" = "אלפביתי"
+"Alt+double-click an edge of an auto layout child" = "Alt+לחיצה כפולה על קצה של צאצא בפריסה אוטומטית"
+"Alt+drag" = "Alt+גרירה"
+"An analytics screen on a grid: figures, charts drawn from vectors and a table" = "מסך אנליטיקה על גבי רשת: נתונים, תרשימים וקטוריים וטבלה"
+"An earlier vote" = "הצבעה קודמת"
+"An invite link that opens FigCraft and joins" = "קישור הזמנה שפותח את FigCraft ומצטרף"
+"Anchor" = "עוגן"
+"Android" = "Android"
+"Android Vector Drawable" = "Android Vector Drawable"
+"Angular" = "זוויתי"
+"Animation" = "הנפשה"
+"Annotation" = "הערת תיעוד"
+"Annotations" = "הערות מפתחים"
+"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 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" = "החל משתנה על נראות"
+"Apps" = "יישומים"
+"Apr" = "אפר׳"
+"Arc" = "קשת"
+"Arc ratio" = "יחס קשת"
+"Arc start" = "התחלת קשת"
+"Arc sweep" = "זווית פריסת קשת"
+"Archive" = "העבר לארכיון"
+"Archived" = "בארכיון"
+"Arrange" = "סידור"
+"Arrow" = "חץ"
+"Arrow left" = "חץ שמאלה"
+"Arrow right" = "חץ ימינה"
+"As typed" = "כפי שהוקלד"
+"Asking the server…" = "פונה לשרת…"
+"Assets" = "נכסים"
+"Aug" = "אוג׳"
+"Auto" = "אוטומטי"
+"Auto (space around)" = "אוטומטי (ריווח מסביב)"
+"Auto (space between)" = "אוטומטי (ריווח ביניהם)"
+"Auto (space evenly)" = "אוטומטי (ריווח שווה)"
+"Auto ({mode})" = "אוטומטי ({mode})"
+"Auto columns" = "עמודות אוטומטיות"
+"Auto gap" = "מרווח אוטומטי"
+"Auto height" = "גובה אוטומטי"
+"Auto layout" = "פריסה אוטומטית"
+"Auto rows" = "שורות אוטומטיות"
+"Auto width" = "רוחב אוטומטי"
+"Auto: as many words as fit on each line" = "אוטומטי: מספר המילים המרבי שנכנס בכל שורה"
+"Auto: by the first letter with a direction" = "אוטומטי: לפי האות הראשונה בעלת הכיוון"
+"Back" = "חזרה"
+"Back to Ready for dev" = "חזרה ל״מוכן לפיתוח״"
+"Back to Ready for dev: the next change compares with how it is now" = "חזרה ל״מוכן לפיתוח״: השינוי הבא יושווה למצב הנוכחי"
+"Back to assets" = "חזרה לנכסים"
+"Back to current" = "חזרה לנוכחי"
+"Back to styles" = "חזרה לסגנונות"
+"Back to the FigCraft server" = "חזרה לשרת FigCraft"
+"Back to the canvas from a focused region" = "חזרה למשטח העבודה מאזור ממוקד"
+"Back to the current version" = "חזרה לגרסה הנוכחית"
+"Back to the font's value" = "חזרה לערך הגופן"
+"Back to the values the font style implies" = "חזרה לערכים שנגזרים מסגנון הגופן"
+"Background" = "רקע"
+"Background blur" = "טשטוש רקע"
+"Balance" = "מאוזן"
+"Balance: every line close to the same length" = "מאוזן: כל שורה באורך דומה ככל האפשר"
+"Basics" = "יסודות"
+"Before" = "לפני"
+"Bend" = "כיפוף"
+"Best effort" = "התאמה מיטבית"
+"Between the selected layers" = "בין השכבות הנבחרות"
+"Bevel" = "שיפוע"
+"Binary assets added" = "נכסים בינאריים שנוספו"
+"Binary assets removed" = "נכסים בינאריים שהוסרו"
+"Black & white" = "שחור-לבן"
+"Bleed" = "גלישת דפוס"
+"Bleed marks" = "סימני גלישה"
+"Bleed marks need a bleed" = "סימני גלישה דורשים הגדרת גלישת דפוס"
+"Blend" = "מיזוג"
+"Blend mode" = "מצב מיזוג"
+"Blue" = "כחול"
+"Blur" = "טשטוש"
+"Board grid" = "רשת לוח"
+"Boolean" = "בוליאני"
+"Boolean groups" = "קבוצות בוליאניות"
+"Both directions" = "שני הכיוונים"
+"Bottom" = "למטה"
+"Bottom left radius" = "רדיוס פינה שמאלית תחתונה"
+"Bottom padding" = "ריפוד תחתון"
+"Bottom right radius" = "רדיוס פינה ימנית תחתונה"
+"Bound to {name}. Click to detach the variable." = "מקושר אל {name}. לחץ לניתוק המשתנה."
+"Brainstorm" = "סיעור מוחות"
+"Branch" = "ענף"
+"Branch archived" = "הענף הועבר לארכיון"
+"Branch merged" = "הענף מוזג"
+"Branch name" = "שם הענף"
+"Branch of {file}" = "ענף של {file}"
+"Branch of {file} · merged or archived" = "ענף של {file} · מוזג או הועבר לארכיון"
+"Branch updated from main" = "הענף עודכן מהקובץ הראשי"
+"Branch {name}" = "ענף {name}"
+"Branches" = "ענפים"
+"Bring forward" = "הבא קדימה"
+"Bring the main file's changes into the branch" = "הבא את השינויים מהקובץ הראשי לתוך הענף"
+"Bring to front" = "הבא לחזית"
+"Bristle" = "זיפים"
+"Browse" = "עיון"
+"Brush" = "מברשת"
+"Brush rotation jitter" = "שונות סיבוב מברשת"
+"Brush scatter" = "פיזור מברשת"
+"Brush size jitter" = "שונות גודל מברשת"
+"Brush spacing" = "ריווח מברשת"
+"Bulleted list" = "רשימת תבליטים"
+"C or Shift+C" = "C או Shift+C"
+"C or ⇧C" = "C או ⇧C"
+"CMYK colour" = "צבע CMYK"
+"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 edit" = "יכול לערוך"
+"Can view" = "יכול לצפות"
+"Can't read this library: {e}" = "לא ניתן לקרוא ספרייה זו: {e}"
+"Cancel" = "ביטול"
+"Canvas" = "משטח עבודה"
+"Canvas stacking" = "סדר שכבות במשטח העבודה"
+"Cap height to baseline" = "מגובה אות רישית עד קו הבסיס"
+"Case" = "רישיות"
+"Case-sensitive forms" = "צורות תלויות-רישיות"
+"Categories" = "קטגוריות"
+"Center" = "מרכז"
+"Change alias" = "שנה כינוי"
+"Change resolved" = "השינוי סומן כטופל"
+"Change style" = "שנה סגנון"
+"Change to" = "שנה ל-"
+"Change to needs a layer inside a variant" = "׳שנה ל-׳ דורש שכבה בתוך וריאנט"
+"Changed" = "שונה"
+"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…" = "בדוק אם קיימים עדכונים…"
+"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" = "בחר משתנה"
+"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" = "סגור בלחיצה מחוץ לאזור"
+"Code" = "קוד"
+"Code or invite link" = "קוד או קישור הזמנה"
+"Code syntax" = "תחביר קוד"
+"Collapse" = "כווץ"
+"Collection" = "אוסף"
+"Collections" = "אוספים"
+"Color" = "צבע"
+"Color burn" = "שריפת צבע"
+"Color dodge" = "הבהרת צבע"
+"Color format" = "פורמט צבע"
+"Color profile" = "פרופיל צבע"
+"Color profile: {name}" = "פרופיל צבע: {name}"
+"Color styles" = "סגנונות צבע"
+"Color values in this file are in this color space." = "ערכי הצבע בקובץ זה נמצאים במרחב צבע זה."
+"Color variables" = "משתני צבע"
+"Colour" = "צבע"
+"Colour and text styles, Light and Dark variables, buttons, inputs and cards" = "סגנונות צבע וטקסט, משתני מצב בהיר וכהה, כפתורים, שדות קלט וכרטיסים"
+"Column" = "עמודה"
+"Column gap" = "מרווח בין עמודות"
+"Column sizes" = "גדלי עמודות"
+"Column span" = "פריסת עמודות"
+"Columns" = "עמודות"
+"Columns {count}" = "עמודות {count}"
+"Comment" = "תגובה"
+"Comments" = "תגובות"
+"Commits" = "הפקדות"
+"Company" = "חברה"
+"Compare changes" = "השווה שינויים"
+"Compare with" = "השווה אל"
+"Compatibility" = "תאימות"
+"Compatibility notes" = "הערות תאימות"
+"Completed" = "הושלם"
+"Component" = "רכיב"
+"Component name" = "שם רכיב"
+"Component property" = "מאפיין רכיב"
+"Component set" = "ערכת רכיבים"
+"Component sets" = "ערכות רכיבים"
+"Components" = "רכיבים"
+"Conditional" = "מותנה"
+"Confetti" = "קונפטי"
+"Conflicts" = "התנגשויות"
+"Connect to code" = "חבר לקוד"
+"Connected" = "מחובר"
+"Connected to code: {from}" = "מחובר לקוד: {from}"
+"Connection lost, reconnecting (attempt {attempt})…" = "החיבור אבד, מתחבר מחדש (ניסיון {attempt})…"
+"Connector" = "מחבר"
+"Constrain proportions" = "שמור על פרופורציות"
+"Constraints" = "אילוצים"
+"Content" = "תוכן"
+"Contents hidden" = "התוכן מוסתר"
+"Contextual alternates" = "חלופות הקשריות"
+"Contrast" = "ניגודיות"
+"Contributors" = "תורמים"
+"Contributors: {people} · Commits: {commits}" = "תורמים: {people} · הפקדות: {commits}"
+"Controller" = "בקר משחק"
+"Convert to frame" = "המר למסגרת"
+"Convert to section" = "המר למקטע"
+"Cool" = "קריר"
+"Copied as CSS" = "הועתק כ-CSS"
+"Copied as PNG" = "הועתק כ-PNG"
+"Copied as SVG" = "הועתק כ-SVG"
+"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}"
+"Corner radius" = "רדיוס פינה"
+"Corner smoothing" = "החלקת פינות"
+"Couldn't download the variables" = "לא ניתן להוריד את המשתנים"
+"Couldn't download {name}" = "לא ניתן היה להוריד את {name}"
+"Couldn't reach {server} for its team list." = "לא ניתן היה להתחבר אל {server} כדי לקבל את רשימת הצוותים."
+"Couldn't reach {server}: showing what this computer remembers." = "לא ניתן להגיע אל {server}: מוצג מה שמחשב זה זוכר."
+"Couldn't read {name}." = "לא ניתן לקרוא את {name}."
+"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" = "צור סגנון מהטקסט הנבחר"
+"Created" = "נוצר"
+"Crop" = "חיתוך"
+"Crop image" = "חתוך תמונה"
+"Crop marks" = "סימני חיתוך"
+"Ctrl+Alt+← ↑ → ↓" = "Ctrl+Alt+← ↑ → ↓"
+"Ctrl+arrows" = "Ctrl+חצים"
+"Ctrl+click" = "Ctrl+לחיצה"
+"Ctrl+click a padding field" = "Ctrl+לחיצה על שדה מרווח פנימי"
+"Ctrl+scroll" = "Ctrl+גלילה"
+"Current name" = "שם נוכחי"
+"Current version" = "גרסה נוכחית"
+"Cursor chat" = "צ׳אט סמן"
+"Curved" = "מעוקל"
+"Custom" = "מותאם אישית"
+"Custom size" = "גודל מותאם אישית"
+"Cut" = "גזור"
+"Dark" = "כהה"
+"Darken" = "הכהיה"
+"Dart constants for Flutter…" = "קבועי Dart עבור Flutter…"
+"Dash" = "קו מקווקו"
+"Dash cap" = "קצה קו מקווקו"
+"Dashboard" = "לוח בקרה"
+"Dashes" = "קווים מקווקווים"
+"Dashes take numbers separated by commas" = "קווים מקווקווים מקבלים מספרים מופרדים בפסיקים"
+"Database" = "מסד נתונים"
+"Date created" = "תאריך יצירה"
+"Dec" = "דצמ׳"
+"Decoration" = "עיטור"
+"Decoration style" = "סגנון עיטור"
+"Deep select" = "בחירה עמוקה"
+"Default" = "ברירת מחדל"
+"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 “{name}”? This can't be undone." = "למחוק את ״{name}״? לא ניתן לבטל פעולה זו."
+"Density" = "צפיפות"
+"Depth" = "עומק"
+"Describe how and when to use this component" = "תאר כיצד ומתי להשתמש ברכיב זה"
+"Describe what changed" = "תאר מה השתנה"
+"Description" = "תיאור"
+"Description (optional)" = "תיאור (אופציונלי)"
+"Design" = "עיצוב"
+"Design panel" = "חלונית עיצוב"
+"Design system starter" = "ערכת התחלה למערכת עיצוב"
+"Desktop" = "מחשב שולחני"
+"Destination" = "יעד"
+"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) כדי לערוך"
+"Development" = "פיתוח"
+"Device" = "מכשיר"
+"Device at 100%" = "מכשיר ב-100%"
+"Diamond" = "מעוין"
+"Difference" = "הפרש"
+"Dimensions" = "ממדים"
+"Direction" = "כיוון"
+"Disconnect from code" = "נתק מקוד"
+"Disconnected. Reconnecting…" = "החיבור נותק. מתחבר מחדש…"
+"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" = "פזר מרווחים אנכית"
+"Divider" = "קו מפריד"
+"Document" = "מסמך"
+"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" = "הורד"
+"Downloading… {percent}%" = "מוריד… {percent}%"
+"Drafts" = "טיוטות"
+"Drag the stroke to add a width point" = "גרור את קו המתאר כדי להוסיף נקודת עובי"
+"Draw" = "ציור"
+"Draw a frame" = "צייר מסגרת"
+"Drawing tools" = "כלי ציור"
+"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" = "שחרר כדי להשתמש בתמונה זו"
+"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" = "שכפל עמוד"
+"Edit" = "עריכה"
+"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" = "ערוך באמצעות הבונה"
+"Edited {when}" = "נערך {when}"
+"Effect settings" = "הגדרות אפקט"
+"Effect styles" = "סגנונות אפקט"
+"Effects" = "אפקטים"
+"Elbow" = "מרפק"
+"Ellipse" = "אליפסה"
+"Ellipses" = "אליפסות"
+"Else" = "אחרת"
+"Else if" = "אחרת אם"
+"Embedded profile" = "פרופיל מוטמע"
+"Empty" = "ריק"
+"End" = "סיום"
+"End point" = "נקודת סיום"
+"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 to save · Esc to cancel" = "Enter לשמירה · Esc לביטול"
+"Eraser" = "מחק"
+"Esc" = "Esc"
+"Essential" = "חיוני"
+"Every conflict has a choice." = "לכל התנגשות נבחרה החלטה."
+"Every top-level frame already starts a flow" = "כל מסגרת ברמה העליונה כבר מתחילה תזרים"
+"Everyone who reaches this server can open these files while they are shared." = "כל מי שניגש לשרת זה יכול לפתוח קבצים אלה כל עוד הם משותפים."
+"Exact only" = "מדויק בלבד"
+"Exact opacity (4 then 5: 45%)" = "אטימות מדויקת (4 ואז 5: 45%)"
+"Exclude" = "הוצאה מן הכלל"
+"Excluded" = "מוצא מהכלל"
+"Excluded from layout" = "מוצא מהפריסה האוטומטית"
+"Excludes" = "הוצאות מן הכלל"
+"Exclusion" = "הוצאה מן הכלל"
+"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 settings" = "הגדרות ייצוא"
+"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} קבצים; חלק מהתוכן שונה או הושמט" }
+"Export…" = "ייצוא…"
+"Expose properties to instances" = "חשוף מאפיינים למופעים"
+"Exposure" = "חשיפה"
+"Expression" = "ביטוי"
+"Extend collection" = "הרחב אוסף"
+"Extends \"{name}\": overridden values are marked" = "מרחיב את ״{name}״: ערכים שנדרסו מסומנים"
+"Extra large" = "גדול מאוד"
+"Eye" = "עין"
+"F" = "F"
+"Fade" = "עמעום"
+"False" = "שקר"
+"Feb" = "פבר׳"
+"Fetching from the server…" = "מושך נתונים מהשרת…"
+"FigCraft couldn't open its window: {error}" = "FigCraft לא הצליחה לפתוח את החלון שלה: {error}"
+"FigCraft doesn't support every feature of these files yet. The notes list what was left out or changed in the imported copy; the original file is unchanged." = "FigCraft עדיין אינה תומכת בכל התכונות של קבצים אלו. ההערות מפרטות מה הושמט או שונה בעותק המיובא; הקובץ המקורי נותר ללא שינוי."
+"FigCraft stopped because of an internal error." = "FigCraft עצר עקב שגיאה פנימית."
+"FigCraft tried {apis}, then again with lower requirements on the power-saving GPU. Updating the graphics driver often helps." = "FigCraft ניסה להשתמש ב-{apis}, ולאחר מכן ניסה שוב בדרישות מופחתות במעבד הגרפי החיסכוני. עדכון מנהל ההתקן הגרפי עוזר לעיתים קרובות."
+"File" = "קובץ"
+"File name" = "שם קובץ"
+"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} ימים נמחקים." }
+"Fill" = "מילוי"
+"Fill (fr)" = "מילוי (fr)"
+"Fill container" = "מילוי המכל"
+"Fill window" = "מלא חלון"
+"Fills" = "מילויים"
+"Fill|sizing" = "מילוי"
+"Filter and sort" = "סינון ומיון"
+"Find" = "חיפוש"
+"Find and replace" = "חיפוש והחלפה"
+"Find layers" = "חפש שכבות"
+"First" = "ראשון"
+"First commit" = "הפקדה ראשונה"
+"First on top" = "הראשון למעלה"
+"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 vertical" = "היפוך אנכי"
+"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}"
+"Following" = "עוקב"
+"Following {name} · {key} to stop" = "עוקב אחר {name} · {key} לעצירה"
+"Font" = "גופן"
+"Font not installed" = "הגופן אינו מותקן"
+"Font size" = "גודל גופן"
+"Font style" = "סגנון גופן"
+"Forget on this computer" = "שכח במחשב זה"
+"Format" = "פורמט"
+"Four screens of a trail app with components and a prototype flow" = "ארבעה מסכים של אפליקציית טיולים עם רכיבים ותזרים אב-טיפוס"
+"Fractions" = "שברים"
+"Frame" = "מסגרת"
+"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. דבר אינו מורד עד שתאשר זאת."
+"From the library \"{name}\": read-only" = "מתוך הספרייה ״{name}״: לקריאה בלבד"
+"From {name}" = "מתוך {name}"
+"From {server}" = "מתוך {server}"
+"Frost" = "זכוכית חלבית"
+"Gap" = "מרווח"
+"Gap between columns" = "מרווח בין עמודות"
+"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` מדפיסה אותו)."
+"Glass" = "זכוכית"
+"Go to main component" = "עבור לרכיב הראשי"
+"Go to {name}" = "עבור אל {name}"
+"Grab bag" = "אוסף כללי"
+"Gradient" = "מעבר צבע"
+"Graph paper" = "נייר משבצות"
+"Gray" = "אפור"
+"Green" = "ירוק"
+"Greyscale components and two example screens to sketch a flow with" = "רכיבים בגוני אפור ושני מסכים לדוגמה לשרטוט תזרים"
+"Grid" = "רשת"
+"Grid ({size})" = "רשת ({size})"
+"Grid styles" = "סגנונות רשת"
+"Grid {size}" = "רשת {size}"
+"Group" = "קבוצה"
+"Group selection" = "קבץ בחירה"
+"Groups" = "קבוצות"
+"Gutter" = "רווח בין עמודות"
+"Hand tool" = "כלי היד"
+"Hanging list" = "רשימה תלויה"
+"Hanging punctuation" = "פיסוק תלוי"
+"Hard light" = "אור חזק"
+"Heart" = "לב"
+"Height" = "גובה"
+"Help" = "עזרה"
+"Help and resources" = "עזרה ומשאבים"
+"Help page" = "דף עזרה"
+"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" = "הדגש שכבות בריחוף"
+"Highlighter" = "מרקר"
+"Highlights" = "הבהקים"
+"Hold Alt" = "החזק Alt"
+"Hold Alt+Z" = "החזק Alt+Z"
+"Hold Ctrl" = "החזק Ctrl"
+"Hold Z" = "החזק Z"
+"Hold ⌃ or ⌘" = "החזק ⌃ או ⌘"
+"Hold ⌥" = "החזק ⌥"
+"Hold ⌥Z" = "החזק ⌥Z"
+"Home" = "בית"
+"Horizontal" = "אופקי"
+"Horizontal align" = "יישור אופקי"
+"Horizontal hex" = "משושה אופקי"
+"Horizontal padding" = "ריפוד אופקי"
+"Horizontal spacing" = "ריווח אופקי"
+"Hosted by {operator}" = "מתארח על ידי {operator}"
+"Hover a layer to see its properties" = "רחף מעל שכבה כדי לראות את המאפיינים שלה"
+"Hover other layers to measure the distance" = "רחף מעל שכבות אחרות כדי למדוד את המרחק"
+"Hue" = "גוון"
+"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" = "התעלם מרכיבים לא נתמכים"
+"Image" = "תמונה"
+"Images" = "תמונות"
+"Import" = "ייבוא"
+"Import path" = "נתיב ייבוא"
+"Import plugin from manifest" = "ייבא תוסף מקובץ מניפסט"
+"Import plugin from manifest…" = "ייבא תוסף מקובץ מניפסט…"
+"Import report" = "דוח ייבוא"
+"Import variables" = "ייבא משתנים"
+"Imported document" = "מסמך מיובא"
+"Imported {name}" = "{name} יובא"
+"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"
+"Included" = "כלול"
+"Included in layout" = "כלול בפריסה האוטומטית"
+"Individual corners" = "פינות נפרדות"
+"Individual padding" = "ריפוד נפרד לכל צד"
+"Individual strokes" = "קווי מתאר נפרדים לכל צד"
+"Ink" = "דיו"
+"Inner shadow" = "צל פנימי"
+"Inside" = "פנימי"
+"Inspect" = "בדיקה"
+"Inspect the layer under the pointer: size, colours, typography" = "בדוק את השכבה מתחת למצביע: גודל, צבעים, טיפוגרפיה"
+"Install" = "התקן"
+"Install plugin" = "התקן תוסף"
+"Installed" = "מותקן"
+"Installed {name}" = "{name} הותקן"
+"Installing…" = "מתקין…"
+"Instance" = "מופע"
+"Instance properties" = "מאפייני מופע"
+"Instance swap" = "החלפת מופע"
+"Instance swap (no other component)" = "החלפת מופע (אין רכיב אחר)"
+"Instances" = "מופעים"
+"Instant" = "מיידי"
+"Intensity" = "עוצמה"
+"Interaction" = "אינטראקציה"
+"Interactions" = "אינטראקציות"
+"Interface design and prototyping. A free, open-source, clean-room design tool written from scratch in Rust, part of the ArtCraft Crafting Apps." = "עיצוב ממשקים ובניית אבות-טיפוס. כלי עיצוב חופשי ובקוד פתוח שנכתב מאפס (Clean-room) בשפת Rust, חלק ממשפחת יישומי היצירה של ArtCraft."
+"Interface size" = "גודל ממשק"
+"Internal storage" = "אחסון פנימי"
+"Intersect" = "חיתוך"
+"Intersects" = "חיתוכים"
+"Invalid color" = "צבע לא תקין"
+"Invert zoom direction" = "הפוך כיוון תקריב"
+"Invite link" = "קישור הזמנה"
+"Invite link copied" = "קישור ההזמנה הועתק"
+"It asks permission to:" = "התוסף מבקש הרשאה:"
+"Jan" = "ינו׳"
+"Join" = "הצטרף"
+"Join code copied" = "קוד ההצטרפות הועתק"
+"Join code or invite link" = "קוד הצטרפות או קישור הזמנה"
+"Join live session" = "הצטרף למפגש חי"
+"Join us on Discord" = "הצטרף אלינו ב-Discord"
+"Join with a code" = "הצטרף באמצעות קוד"
+"Joined" = "הצטרפת"
+"Joined {file}" = "הצטרפת אל {file}"
+"Joining live session…" = "מצטרף להפעלה חיה…"
+"Joining…" = "מצטרף…"
+"Join|stroke" = "חיבור פינה"
+"Jul" = "יולי"
+"Jun" = "יוני"
+"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" = "שמור על הערכים"
+"Key/Gamepad" = "מקש/בקר משחק"
+"Key/Gamepad {key}" = "מקש/בקר משחק {key}"
+"Keyboard shortcuts" = "קיצורי מקלדת"
+"Kits" = "ערכות"
+"Landing page" = "דף נחיתה"
+"Language" = "שפה"
+"Large" = "גדול"
+"Lasso" = "לאסו"
+"Last" = "אחרון"
+"Last change: {note}" = "שינוי אחרון: {note}"
+"Last commit" = "הפקדה אחרונה"
+"Last modified" = "שונה לאחרונה"
+"Last on top" = "האחרון למעלה"
+"Layer blur" = "טשטוש שכבה"
+"Layer name" = "שם שכבה"
+"Layers" = "שכבות"
+"Layers in an instance take their position from the main component" = "שכבות במופע מקבלות את מיקומן מהרכיב הראשי"
+"Layout" = "פריסה"
+"Layout grid" = "רשת פריסה"
+"Layout grid settings" = "הגדרות רשת פריסה"
+"Layout grids" = "רשתות פריסה"
+"Leave session" = "עזוב מפגש"
+"Leaves" = "עלים"
+"Leaving the prototype" = "יוצא מאב-הטיפוס"
+"Left" = "שמאל"
+"Left & right" = "שמאל וימין"
+"Left padding" = "ריפוד שמאלי"
+"Left side" = "צד שמאל"
+"Left side width" = "רוחב צד שמאל"
+"Left to right" = "משמאל לימין"
+"Letter case" = "רישיות אותיות"
+"Letter spacing" = "מרווח בין אותיות"
+"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" = "ספרייה: המשתנים שלה הם לקריאה בלבד כאן; ערוך אותם בקובץ הספרייה ופרסם אותה"
+"Light" = "בהיר"
+"Lighten" = "הבהרה"
+"Light|glass" = "תאורה"
+"Line" = "קו"
+"Line arrow" = "חץ קווי"
+"Line delta" = "הפרש שורות"
+"Line height" = "גובה שורה"
+"Linear" = "ליניארי"
+"Lines" = "קווים"
+"Lines +/−" = "שורות +/−"
+"Lines added" = "שורות שנוספו"
+"Lines deleted" = "שורות שנמחקו"
+"Link" = "קישור"
+"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." = "קשר רכיב זה לרכיב הקוד שלו: מופעים יציגו אז את קטע הקוד האמיתי שלך עם הערכים שלהם."
+"List spacing" = "ריווח רשימה"
+"List style" = "סגנון רשימה"
+"Live session" = "מפגש חי"
+"Live · {people}" = "חי · {people}"
+"Local components" = "רכיבים מקומיים"
+"Local network" = "רשת מקומית"
+"Local styles" = "סגנונות מקומיים"
+"Local variables" = "משתנים מקומיים"
+"Lock/Unlock" = "נעל/בטל נעילה"
+"Locked" = "נעול"
+"Lowercase" = "אותיות קטנות"
+"Luminance" = "בהירות"
+"Luminosity" = "בהירות"
+"Main" = "ראשי"
+"Main component deleted" = "הרכיב הראשי נמחק"
+"Main menu" = "תפריט ראשי"
+"Make a component" = "הפוך לרכיב"
+"Make slot" = "הפוך לחריץ תוכן"
+"Manual input" = "קלט ידני"
+"Mar" = "מרץ"
+"Margin" = "שוליים"
+"Mark all as read" = "סמן הכול כנקרא"
+"Mark as resolved" = "סמן כטופל"
+"Mark as unread" = "סמן כלא נקרא"
+"Mark as unresolved" = "סמן כלא טופל"
+"Marker" = "טוש"
+"Mask" = "מסכה"
+"Mass · Stiffness · Damping" = "מסה · קשיחות · ריסון"
+"Match (empty: the whole name)" = "התאמה (ריק: השם כולו)"
+"Max H" = "גובה מרבי"
+"Max W" = "רוחב מרבי"
+"Max lines" = "שורות מרביות"
+"Maximize" = "הגדל למקסימום"
+"May" = "מאי"
+"Measure to the selection" = "מדוד עד לבחירה"
+"Measurements" = "מדידות"
+"Medium" = "בינוני"
+"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" = "מזער"
+"Minutes" = "דקות"
+"Mirror angle" = "שקף זווית"
+"Mirror angle and length" = "שקף זווית ואורך"
+"Mirroring" = "שיקוף"
+"Missing" = "חסר"
+"Missing fonts" = "גופנים חסרים"
+"Missing layer" = "שכבה חסרה"
+"Missing style" = "סגנון חסר"
+"Missing variable" = "משתנה חסר"
+"Miter" = "פינה חדה"
+"Miter angle" = "זווית חיבור חד"
+"Mixed" = "מעורב"
+"Mixed fonts" = "גופנים מעורבים"
+"Mixed interactions: click + to replace them" = "אינטראקציות מעורבות: לחץ על + כדי להחליפן"
+"Mobile app" = "אפליקציה לנייד"
+"Mode" = "מצב"
+"Model" = "מודל"
+"Models" = "מודלים"
+"Mono" = "חד-גוני"
+"More" = "עוד"
+"More instance actions" = "פעולות מופע נוספות"
+"Mouse down" = "לחיצת עכבר"
+"Mouse enter" = "כניסת סמן עכבר"
+"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 tools" = "כלי הזזה"
+"Move up" = "הזז למעלה"
+"Move up or down while dragging its label" = "הזז למעלה או למטה תוך כדי גרירת התווית"
+"Moved to {name}" = "הועבר אל {name}"
+"Multi" = "רב-גוני"
+"Multiply" = "הכפלה"
+"Muted" = "מעומעם"
+"Name" = "שם"
+"Name (A–Z)" = "שם (א׳–ת׳)"
+"Named instance" = "מופע בעל שם"
+"Navigate to" = "נווט אל"
+"Nested instance" = "מופע מקונן"
+"New board" = "לוח חדש"
+"New collection" = "אוסף חדש"
+"New design file" = "קובץ עיצוב חדש"
+"New from selection" = "חדש מהבחירה"
+"Newest first" = "החדשים ביותר תחילה"
+"Next frame" = "המסגרת הבאה"
+"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 boolean variables fit here." = "אין משתנים בוליאניים המתאימים לכאן."
+"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 comments to copy" = "אין הערות להעתקה"
+"No comments yet" = "אין עדיין תגובות"
+"No compatibility warnings reported" = "לא דווחו אזהרות תאימות"
+"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 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 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 list" = "ללא רשימה"
+"No matching comments" = "אין תגובות תואמות"
+"No matching components" = "אין רכיבים תואמים"
+"No matching layers" = "אין שכבות תואמות"
+"No matching styles" = "אין סגנונות תואמים"
+"No matching variables" = "אין משתנים תואמים"
+"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 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 preferred components" = "אין רכיבים מועדפים"
+"No preset" = "ללא תבנית"
+"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 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 variables fit here." = "אין משתנים המתאימים לכאן."
+"No variables yet. Create them in Local variables." = "אין עדיין משתנים. צור אותם תחת ׳משתנים מקומיים׳."
+"No votes yet" = "אין הצבעות עדיין"
+"Nobody else is here yet" = "אף אחד אחר עוד לא נמצא כאן"
+"Nobody shares a file there now." = "אף אחד אינו משתף שם קובץ כרגע."
+"Noise" = "רעש"
+"None" = "ללא"
+"None." = "ללא."
+"Normal" = "רגיל"
+"Not bound" = "לא מקושר"
+"Not checked yet" = "טרם נבדק"
+"Not connected: {reason}. Your work is still in this tab." = "לא מחובר: {reason}. העבודה שלך עדיין שמורה בכרטיסייה זו."
+"Not in a live session" = "לא במפגש חי"
+"Not in this font" = "לא קיים בגופן זה"
+"Not now" = "לא עכשיו"
+"Not properties, kept as written: {names}" = "אינם מאפיינים, נשמרו כפי שנכתבו: {names}"
+"Not read yet" = "טרם נקרא"
+"Not shared" = "לא משותף"
+"Note {n}" = "הערה {n}"
+"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 to export" = "אין מה לייצא"
+"Nothing to pick: the page is empty" = "אין מה לבחור: העמוד ריק"
+"Nov" = "נוב׳"
+"Now" = "עכשיו"
+"Nudge (Shift: big nudge)" = "הזזה קלה (Shift: הזזה גדולה)"
+"Nudge amount" = "מרחק הזזה קלה"
+"Number" = "מספר"
+"Number ↑" = "מספר ↑"
+"Number ↓" = "מספר ↓"
+"Numbered list" = "רשימה ממוספרת"
+"Object" = "אובייקט"
+"Oct" = "אוק׳"
+"Octagon" = "מתומן"
+"Off" = "כבוי"
+"Offered first when filling the slot (any content is allowed)" = "מוצעים ראשונים בעת מילוי חריץ התוכן (כל תוכן מותר)"
+"Offered first when swapping the instance (any component is allowed)" = "מוצעים ראשונים בעת החלפת המופע (כל רכיב מותר)"
+"Offset" = "היסט"
+"Oldest first" = "הישנים ביותר תחילה"
+"On click" = "בלחיצה"
+"On drag" = "בגרירה"
+"On this page" = "בעמוד זה"
+"One announcement in five common sizes: square, portrait, story, link and banner" = "הודעה אחת בחמישה גדלים נפוצים: ריבוע, לאורך, סטורי, קישור ובאנר"
+"Online" = "מקוון"
+"Online files" = "קבצים מקוונים"
+"Online sharing is off: files are shared on the local network only." = "השיתוף המקוון כבוי: קבצים משותפים ברשת המקומית בלבד."
+"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" = "רק השרשורים שלך"
+"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})"
+"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} קבצים כקבצים חדשים" }
+"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" = "המר טקסט לקווי מתאר"
+"Outlines" = "קווי מתאר"
+"Outside" = "חיצוני"
+"Overflow" = "גלישה"
+"Overlay" = "שכבת-על"
+"Overlay position" = "מיקום שכבת-על"
+"Overridden here (the collection it extends has another value)" = "נדרס כאן (לאוסף שהוא מרחיב יש ערך אחר)"
+"Overrides" = "דריסות ערכים"
+"Owner token" = "אסימון בעלים"
+"Owner token copied" = "אסימון הבעלים הועתק"
+"PDF print options" = "אפשרויות הדפסת PDF"
+"PDF print settings" = "הגדרות הדפסת PDF"
+"Padding" = "מרווח פנימי"
+"Page" = "עמוד"
+"Page deleted" = "העמוד נמחק"
+"Pages" = "עמודים"
+"Pages added to the document" = "עמודים שנוספו למסמך"
+"Pages: {pages}" = "עמודים: {pages}"
+"Paint bucket" = "דלי צבע"
+"Pan the canvas" = "הזז את משטח העבודה"
+"Pan with nothing selected (Shift: farther)" = "הזז תצוגה כשדבר אינו נבחר (Shift: מרחק רב יותר)"
+"Panels" = "חלוניות"
+"Paper" = "נייר"
+"Paragraph indent" = "כניסת פסקה"
+"Paragraph indent applies to left-aligned text" = "כניסת פסקה חלה על טקסט המיושר לשמאל"
+"Paragraph spacing" = "ריווח פסקאות"
+"Parallelogram left" = "מקבילית שמאלה"
+"Parallelogram right" = "מקבילית ימינה"
+"Pass through" = "מעבר ישיר"
+"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" = "הדבק להחלפה"
+"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} סוגי תוכן הושמטו" }
+"Pattern" = "תבנית מילוי"
+"Pattern alignment" = "יישור דוגמה"
+"Pattern scale" = "קנה מידה של דוגמה"
+"Pattern source" = "מקור דוגמה"
+"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." = "אנשים ברשת שלך מצטרפים באמצעות קוד. דבר אינו עובר דרך שרת."
+"Phone" = "טלפון"
+"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" = "הצמד מאפיין"
+"Pinch" = "צביטה"
+"Pink" = "ורוד"
+"Pixel grid" = "רשת פיקסלים"
+"Pixel preview 1x" = "תצוגת פיקסלים 1x"
+"Pixel preview 2x" = "תצוגת פיקסלים 2x"
+"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, ללא גישה לקבצים, לרשת או לשעון. התקן רק תוספים שאתה סומך עליהם."
+"Plus" = "פלוס"
+"Plus darker" = "חיבור כהה (Plus darker)"
+"Plus lighter" = "חיבור בהיר (Plus lighter)"
+"Plus one" = "+1"
+"Point" = "נקודה"
+"Points" = "נקודות"
+"Polygon" = "מצולע"
+"Polygons" = "מצולעים"
+"Port" = "פתחה"
+"Position" = "מיקום"
+"Post" = "פרסם"
+"Predefined process" = "תהליך מוגדר מראש"
+"Preferences" = "העדפות"
+"Preferred" = "מועדף"
+"Present" = "הצג"
+"Present or preview" = "הצג או צפה בתצוגה מקדימה"
+"Present this flow" = "הצג תזרים זה"
+"Presentation" = "מצגת"
+"Presentation slides" = "שקופיות מצגת"
+"Presenting: comments" = "הצגה: תגובות"
+"Presenting: cycle the size options" = "הצגה: החלף בין אפשרויות הגודל"
+"Presenting: full screen" = "הצגה: מסך מלא"
+"Presenting: next frame" = "הצגה: המסגרת הבאה"
+"Presenting: previous frame" = "הצגה: המסגרת הקודמת"
+"Presenting: restart" = "הצגה: התחל מחדש"
+"Preserve scroll position" = "שמור על מיקום גלילה"
+"Presets" = "תבניות"
+"Press a key…" = "לחץ על מקש…"
+"Pretty" = "מסודר"
+"Pretty: full lines, no one word alone on the last" = "מסודר: שורות מלאות, ללא מילה בודדת בשורה האחרונה"
+"Preview" = "תצוגה מקדימה"
+"Preview this flow" = "תצוגה מקדימה לתזרים זה"
+"Preview this frame" = "תצוגה מקדימה למסגרת זו"
+"Previous frame" = "המסגרת הקודמת"
+"Previous ready for dev" = "הקודם שמוכן לפיתוח"
+"Progressive" = "פרוגרסיבי"
+"Properties" = "מאפיינים"
+"Properties copied" = "המאפיינים הועתקו"
+"Prototype" = "אב-טיפוס"
+"Prototype preview" = "תצוגה מקדימה של אב-טיפוס"
+"Prototype settings" = "הגדרות אב-טיפוס"
+"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 · {people}" = "פורסם · {people}"
+"Publishing with the server's key." = "מפרסם באמצעות מפתח השרת."
+"Publishing…" = "מפרסם…"
+"Push" = "דחיפה"
+"Push changes to main component" = "דחוף שינויים לרכיב הראשי"
+"Put text on path" = "הנח טקסט על נתיב"
+"Question" = "שאלה"
+"R" = "R"
+"Radial" = "מעגלי"
+"Radius" = "רדיוס"
+"Ratio" = "יחס"
+"Reading the library…" = "קורא את הספרייה…"
+"Ready for dev" = "מוכן לפיתוח"
+"Real name" = "שם אמיתי"
+"Recent" = "אחרונים"
+"Recent files" = "קבצים אחרונים"
+"Recents" = "אחרונים"
+"Recovered {n} unsaved files after the app quit unexpectedly: save them to keep them" = { one = "שוחזר קובץ {n} שלא נשמר לאחר שהיישום נסגר באופן בלתי צפוי: שמור אותו כדי לשמור עליו", other = "שוחזרו {n} קבצים שלא נשמרו לאחר שהיישום נסגר באופן בלתי צפוי: שמור אותם כדי לשמור עליהם" }
+"Rectangle" = "מלבן"
+"Rectangles" = "מלבנים"
+"Red" = "אדום"
+"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} מהמפגש"
+"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…" = "דווח על קובץ זה…"
+"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" = "שנה גודל להתאמה"
+"Resizing" = "שינוי גודל"
+"Resolve" = "סמן כטופל"
+"Resolve change" = "סמן שינוי כטופל"
+"Resolved" = "טופל"
+"Responsive" = "רספונסיבי"
+"Restart" = "התחל מחדש"
+"Restore" = "שחזר"
+"Restore main component" = "שחזר רכיב ראשי"
+"Restore this version" = "שחזר גרסה זו"
+"Restored “{name}”" = "״{name}״ שוחזר"
+"Results" = "תוצאות"
+"Resume" = "המשך"
+"Retrospective" = "רטרוספקטיבה"
+"Retry now" = "נסה שוב כעת"
+"Reverse the order" = "הפוך את הסדר"
+"Reversed triangle" = "משולש הפוך"
+"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" = "סובב לתצוגה אנכית"
+"Rotation" = "סיבוב"
+"Rotation jitter" = "שונות סיבוב"
+"Round" = "עגול"
+"Rounded" = "מעוגל"
+"Rounded rectangle" = "מלבן מעוגל"
+"Row" = "שורה"
+"Row gap" = "מרווח בין שורות"
+"Row sizes" = "גדלי שורות"
+"Row span" = "פריסת שורות"
+"Rows" = "שורות"
+"Rows {count}" = "שורות {count}"
+"Rulers" = "סרגלים"
+"Run" = "הרץ"
+"Run {label}" = "הרץ את {label}"
+"SHA-256: {sha}…" = "SHA-256: {sha}…"
+"Same as file ({profile})" = "זהה לקובץ ({profile})"
+"Same as layer" = "כמו השכבה"
+"Saturation" = "רוויה"
+"Save" = "שמור"
+"Save a copy…" = "שמור עותק…"
+"Save as" = "שמירה בשם"
+"Save as preset…" = "שמור כתבנית…"
+"Save file" = "שמור קובץ"
+"Save files automatically" = "שמור קבצים אוטומטית"
+"Save version {key}" = "שמור גרסה {key}"
+"Saved" = "נשמר"
+"Saved {name}" = "{name} נשמר"
+"Say something" = "אמור משהו"
+"Scale" = "קנה מידה"
+"Scatter" = "פיזור"
+"Scope" = "תחום שימוש"
+"Scope: all supported properties" = "תחום שימוש: כל המאפיינים הנתמכים"
+"Scope: hidden from pickers" = "תחום שימוש: מוסתר מבוררים"
+"Scope: only {scope}" = "תחום שימוש: {scope} בלבד"
+"Scoping: where pickers offer it" = "תחום: היכן בוררים מציעים אותו"
+"Screen" = "מסך"
+"Scroll behavior" = "התנהגות גלילה"
+"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)"
+"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 results" = "תוצאות חיפוש"
+"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" = "בחר משבצת"
+"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 colors" = "צבעי הבחירה"
+"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}"
+"Shadows" = "צללים"
+"Shape" = "צורה"
+"Shape builder" = "בונה צורות"
+"Shape tools" = "כלי צורות"
+"Shapes" = "צורות"
+"Share" = "שיתוף"
+"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" = "משותף: העתק את הקוד שלו מתפריט הקובץ"
+"Sharing on the local network (online sharing is off: no server is set in Preferences)." = "משתף ברשת המקומית (שיתוף מקוון כבוי: לא הוגדר שרת בהעדפות)."
+"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" = "הצג/הסתר ממשק"
+"Side by side" = "זה לצד זה"
+"Sidebar" = "סרגל צד"
+"Simplify stroke" = "פשט קו מתאר"
+"Size" = "גודל"
+"Size jitter" = "רעידת גודל"
+"Skip ink" = "דלג על דיו"
+"Slashed zero" = "אפס משוסף"
+"Slice" = "חיתוך"
+"Slices" = "חיתוכים"
+"Slide in" = "החלקה פנימה"
+"Slide out" = "החלקה החוצה"
+"Slot" = "משבצת"
+"Slot content" = "תוכן משבצת"
+"Slot name" = "שם חריץ התוכן"
+"Small" = "קטן"
+"Small capitals" = "אותיות רישיות קטנות"
+"Small caps" = "רישיות קטנות"
+"Smart animate" = "הנפשה חכמה"
+"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" = "לכמה וריאנטים יש אותם ערכי מאפיינים: תן לכל אחד שילוב ייחודי"
+"Someone who left" = "משתתף שעזב"
+"Sort" = "מיון"
+"Sort by" = "מיין לפי"
+"Sort by date" = "מיין לפי תאריך"
+"Sort by page" = "מיין לפי עמוד"
+"Sort by {column}" = "מיין לפי {column}"
+"Space" = "רווח"
+"Space around" = "מרווח מסביב"
+"Space between" = "מרווח בין"
+"Space drag" = "Space + גרירה"
+"Space evenly" = "מרווח שווה"
+"Space+drag" = "Space+גרירה"
+"Spacing" = "ריווח"
+"Spam, stolen work, abuse…" = "ספאם, עבודה גנובה, שימוש לרעה…"
+"Speech bubble" = "בועת דיבור"
+"Splay" = "מניפה"
+"Spotlight me" = "מקד זרקור עליי"
+"Spread" = "התפשטות"
+"Square" = "ריבוע"
+"Stamp" = "חותמת"
+"Stamps" = "חותמות"
+"Standard" = "רגיל"
+"Standard ligatures" = "ליגטורות רגילות"
+"Star" = "כוכב"
+"Stars" = "כוכבים"
+"Start" = "התחלה"
+"Start ascending from / stop descending at" = "התחל לעלות מ־ / הפסק לרדת ב־"
+"Start from a blank canvas" = "התחל ממשטח עבודה ריק"
+"Start from a template" = "התחל מתבנית"
+"Start on path" = "התחלה על הנתיב"
+"Start on the Home screen" = "התחל במסך הבית"
+"Start point" = "נקודת התחלה"
+"Start sharing" = "התחל שיתוף"
+"Start sharing with the Share button, then pass on the code it gives" = "התחל שיתוף באמצעות כפתור השיתוף, ולאחר מכן העבר את הקוד שניתן"
+"Start vote" = "התחל הצבעה"
+"Starting to share…" = "מתחיל שיתוף…"
+"Status" = "מצב"
+"Sticky" = "דביק"
+"Sticky note" = "פתקית דביקה"
+"Sticky note colors" = "צבעי פתקית דביקה"
+"Sticky notes" = "פתקים דביקים"
+"Sticky notes, shapes and connectors" = "פתקיות דביקות, צורות ומחברים"
+"Stop" = "עצור"
+"Stop following {name}" = "הפסק לעקוב אחר {name}"
+"Stop session" = "הפסק מפגש"
+"Stop sharing" = "הפסק שיתוף"
+"Stop spotlighting" = "הפסק זרקור"
+"Stop timer" = "עצור טיימר"
+"Stop {n} {hex}" = "עצירה {n} {hex}"
+"Straight" = "ישר"
+"Stretch" = "מתיחה"
+"Strikethrough" = "קו חוצה"
+"String" = "מחרוזת"
+"Stroke" = "קו מתאר"
+"Stroke style" = "סגנון קו מתאר"
+"Stroke weight" = "עובי קו מתאר"
+"Strokes" = "קווי מתאר"
+"Strong line every" = "קו מודגש כל"
+"Style" = "סגנון"
+"Styles" = "סגנונות"
+"Stylistic set 1" = "סט סגנוני 1"
+"Stylistic set 2" = "סט סגנוני 2"
+"Stylistic set 3" = "סט סגנוני 3"
+"Stylistic set 4" = "סט סגנוני 4"
+"Stylistic set 5" = "סט סגנוני 5"
+"Subscript" = "כתב תחתי"
+"Subtract" = "חיסור"
+"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" = "החלף רוחב וגובה"
+"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} לא נמצאה התאמה והם עדיין משתמשים בספרייה הישנה" }
+"Sweep" = "מניפה"
+"System" = "מערכת"
+"Tab / Shift+Tab" = "Tab / Shift+Tab"
+"Tab or Ctrl+Space again" = "Tab או Ctrl+Space שוב"
+"Table" = "טבלה"
+"Tablet" = "טאבלט"
+"Tabular numbers" = "מספרים טבלאיים"
+"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" = "ספר למפעיל השרת מה לא תקין בו"
+"Temperature" = "טמפרטורה"
+"Template" = "תבנית"
+"Templates" = "תבניות"
+"Terms" = "תנאים"
+"Text" = "טקסט"
+"Text align" = "יישור טקסט"
+"Text content" = "תוכן טקסט"
+"Text direction" = "כיוון טקסט"
+"Text on a path" = "טקסט על נתיב"
+"Text size" = "גודל טקסט"
+"Text style" = "סגנון טקסט"
+"Text styles" = "סגנונות טקסט"
+"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 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 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}%."
+"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 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 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 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 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 variant's value" = "הערך של וריאנט זה"
+"This version can't be read." = "לא ניתן לקרוא גרסה זו."
+"This version doesn't have it: all of it is new." = "בגרסה זו אין את זה: הכול חדש."
+"Thumbs 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 the layer around it" = "לשכבה שמסביב"
+"Toggle" = "החלף מצב"
+"Toggle light/dark theme" = "החלף ערכת נושא בהירה/כהה"
+"Toggle visibility" = "הצג/הסתר נראות"
+"Tools" = "כלים"
+"Top" = "למעלה"
+"Top & bottom" = "למעלה ולמטה"
+"Top left radius" = "רדיוס שמאלי עליון"
+"Top padding" = "ריפוד עליון"
+"Top right radius" = "רדיוס ימני עליון"
+"Transform" = "טרנספורמציה"
+"Trapezoid" = "טרפז"
+"Triangle" = "משולש"
+"Triangle arrow" = "חץ משולש"
+"Triangle down" = "משולש כלפי מטה"
+"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" = "הפוך שכבה לרכיב, השתמש בה שוב, ושנה כל עותק בבת אחת"
+"Two digits" = "שתי ספרות"
+"Type" = "סוג"
+"Type settings" = "הגדרות טיפוגרפיה"
+"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" = "פרק קבוצה"
+"Uniform" = "אחיד"
+"Union" = "איחוד"
+"Unions" = "איחודים"
+"Unknown — treated as sRGB" = "לא ידוע — מטופל כ־sRGB"
+"Unread" = "לא נקרא"
+"Unresolve" = "סמן כלא נפתר"
+"Unsaved changes" = "שינויים שלא נשמרו"
+"Unsaved changes in {names}. Save them before closing?" = "שינויים שלא נשמרו ב־{names}. לשמור אותם לפני הסגירה?"
+"Up" = "למעלה"
+"Update" = "עדכן"
+"Update check is not supported in the web browser." = "בדיקת עדכונים אינה נתמכת בדפדפן האינטרנט."
+"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. 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 ושומר על כרטיסייה זו מסונכרנת איתו. תקבל קישור לעריכה וקישור לצפייה."
+"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." = "השתמש במרחק התצוגה של הדפדפן כדי לשנות את גודל הממשק."
+"Used in {files} · {instances}" = "בשימוש ב־{files} · {instances}"
+"Username" = "שם משתמש"
+"Uses variables: each layer shows them in its own mode" = "משתמש במשתנים: כל שכבה מציגה אותם במצב שלה"
+"Value" = "ערך"
+"Variable" = "משתנה"
+"Variable collections" = "אוספי משתנים"
+"Variable modes" = "מצבי משתנים"
+"Variable width" = "רוחב משתנה"
+"Variables" = "משתנים"
+"Variables JSON…" = "JSON של משתנים…"
+"Variables store reusable values (colours, numbers, strings, booleans) with modes such as Light and Dark." = "משתנים שומרים ערכים לשימוש חוזר (צבעים, מספרים, מחרוזות, ערכים בוליאניים) עם מצבים כגון בהיר וכהה."
+"Variant" = "וריאנט"
+"Vector" = "וקטור"
+"Vectors" = "וקטורים"
+"Version" = "גרסה"
+"Version history" = "היסטוריית גרסאות"
+"Version {version}" = "גרסה {version}"
+"Version {v} · {components} · {styles} · {variables}" = "גרסה {v} · {components} · {styles} · {variables}"
+"Vertical" = "אנכי"
+"Vertical align" = "יישור אנכי"
+"Vertical hex" = "משושה אנכי"
+"Vertical padding" = "ריפוד אנכי"
+"Vertical spacing" = "ריווח אנכי"
+"Vertical trim" = "חיתוך אנכי"
+"View" = "תצוגה"
+"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." = "צפייה בלבד: אתה רואה כל שינוי בזמן אמת אך אינך יכול לערוך. עזוב כדי לשמור עותק שניתן לערוך."
+"Viewing “{name}”" = "צופה ב־״{name}״"
+"Violet" = "סגול"
+"Visibility" = "נראות"
+"Visible" = "גלוי"
+"Vivid" = "חי"
+"Votes per person" = "הצבעות למשתתף"
+"Voting session" = "הפעלת הצבעה"
+"WGPU_BACKEND is set and names the graphics API to use; unsetting it lets FigCraft choose." = "WGPU_BACKEND מוגדר ומציין את ה־API הגרפי לשימוש; ביטול הגדרתו מאפשר ל־FigCraft לבחור."
+"Warm" = "חם"
+"Watch" = "שעון"
+"Wavy" = "גלי"
+"Web" = "אינטרנט"
+"WebSocket URL" = "כתובת WebSocket"
+"WebSocket URL copied" = "כתובת ה־WebSocket הועתקה"
+"Websites" = "אתרי אינטרנט"
+"Wedge" = "גזרה"
+"Weekly planner" = "מתכנן שבועי"
+"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 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" = "מה שתנסה כאן משנה תצוגה מקדימה זו ואת הקוד למטה, לא את הקובץ"
+"When marked ready" = "כאשר סומן כמוכן"
+"While hovering" = "בזמן ריחוף"
+"While pressing" = "בזמן לחיצה"
+"White" = "לבן"
+"Who runs it, its terms and how long it keeps files" = "מי מפעיל אותו, התנאים שלו וכמה זמן הוא שומר קבצים"
+"Whole screen" = "כל המסך"
+"Why it changed" = "למה זה השתנה"
+"Widget" = "ווידג׳ט"
+"Widgets" = "ווידג׳טים"
+"Width" = "רוחב"
+"Width point" = "נקודת רוחב"
+"Width profile" = "פרופיל רוחב"
+"Wireframe kit" = "ערכת Wireframe"
+"With the layers' export settings" = "עם הגדרות הייצוא של השכבות"
+"Wrap" = "גלישה"
+"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." = "המערכת שלך מבקשת הפחתת תנועה: ההנפשות נשארות כבויות."
+"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 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 tool: zoom out" = "כלי מרחק תצוגה: התרחקות"
+"and {n} more" = { one = "ועוד {n}", other = "ועוד {n}" }
+"bleed marks" = "סימני גלישה"
+"by {author}" = "מאת {author}"
+"call any command its access allows" = "לקרוא לכל פקודה שהגישה שלו מתירה"
+"call only: {commands}" = "לקרוא רק ל: {commands}"
+"can edit the document" = "יכול לערוך את המסמך"
+"can save files" = "יכול לשמור קבצים"
+"conditional prototype actions nested too deeply were skipped" = "פעולות אב־טיפוס מותנות המקוננות עמוק מדי דולגו"
+"conditional prototype actions with conditions that can't be evaluated were skipped" = "פעולות אב־טיפוס מותנות עם תנאים שלא ניתן להעריך דולגו"
+"connector label background was skipped: style data is missing" = "רקע תווית המחבר דולג: נתוני סגנון חסרים"
+"connector label was skipped: background bounds are invalid" = "תווית המחבר דולגה: גבולות הרקע אינם תקינים"
+"connector label was skipped: background transform is invalid" = "תווית המחבר דולגה: טרנספורמציית הרקע אינה תקינה"
+"connector label was skipped: composed text transform is invalid" = "תווית המחבר דולגה: טרנספורמציית הטקסט המורכבת אינה תקינה"
+"connector label was skipped: derived background bounds are missing" = "תווית המחבר דולגה: גבולות רקע נגזרים חסרים"
+"connector label was skipped: derived text bounds are missing" = "תווית המחבר דולגה: גבולות טקסט נגזרים חסרים"
+"connector label was skipped: text bounds are invalid" = "תווית המחבר דולגה: גבולות הטקסט אינם תקינים"
+"connector label was skipped: text style data is missing" = "תווית המחבר דולגה: נתוני סגנון טקסט חסרים"
+"connector label was skipped: text transform is invalid" = "תווית המחבר דולגה: טרנספורמציית הטקסט אינה תקינה"
+"connector labels were skipped" = "תוויות מחברים דולגו"
+"connector labels without a saved snapshot are centred on the line, without their background" = "תוויות מחברים ללא תמונת מצב שמורה ממורכזות על הקו, ללא הרקע שלהן"
+"connector layers import as static frame/vector snapshots with labels when present; live endpoint bindings are not retained" = "שכבות מחברים מיובאות כתמונות מצב סטטיות של מסגרת/וקטור עם תוויות כשקיימות; קישורי נקודות קצה חיים אינם נשמרים"
+"connector snapshot vector data is missing; connector was left empty" = "נתוני וקטור תמונת מצב של מחבר חסרים; המחבר הושאר ריק"
+"connectors whose ends can't be placed are empty" = "מחברים שלא ניתן למקם את קצותיהם ריקים"
+"crop marks" = "סימני חיתוך"
+"damaged vector geometry was skipped" = "גאומטריית וקטור פגומה דולגה"
+"damaged vector networks import as outlines" = "רשתות וקטורים פגומות מיובאות כקווי מתאר"
+"development: {path}" = "פיתוח: {path}"
+"document children other than pages were skipped" = "צאצאי מסמך שאינם עמודים דולגו"
+"duplicate grid track sizing entries use equal tracks" = "ערכי גודל מסלולי רשת כפולים משתמשים במסלולים שווים"
+"e.g. count + 1" = "למשל count + 1"
+"e.g. count >= 3 and not done" = "למשל count >= 3 and not done"
+"elbowed and curved connectors without a saved path are routed afresh" = "מחברי מרפק ומחברים מעוקלים ללא נתיב שמור מנותבים מחדש"
+"entries without a node type were skipped" = "ערכים ללא סוג צומת דולגו"
+"figcraft:// links from a browser, chat or email open this app and join the session." = "קישורי figcraft:// מדפדפן, צ׳אט או דוא״ל פותחים יישום זה ומצטרפים למפגש."
+"from {server}" = "מ־{server}"
+"gamepad triggers without exactly one known controller button were skipped" = "טריגרים של בקר משחק ללא כפתור בקר מוכר אחד בדיוק דולגו"
+"grid track list exceeds 1000 entries; the tracks use the default equal sizing" = "רשימת מסלולי הרשת עולה על 1000 ערכים; המסלולים משתמשים בגודל שווה כברירת מחדל"
+"grid track sizing is unsupported or malformed; affected tracks use equal sizing" = "גודל מסלול רשת אינו נתמך או פגום; המסלולים המושפעים משתמשים בגודל שווה"
+"grid track sizing list exceeds 1000 entries; the tracks use the default equal sizing" = "רשימת גדלי מסלולי הרשת עולה על 1000 ערכים; המסלולים משתמשים בגודל שווה כברירת מחדל"
+"hidden" = "מוסתר"
+"iOS" = "iOS"
+"image fills whose image isn't in the file show a missing-image placeholder and keep its name" = "מילויי תמונה שתמונתם אינה בקובץ מציגים ממלא-מקום לתמונה חסרה ושומרים את שמה"
+"image filters are ambiguous because both filter containers are present; filter conversion was skipped" = "מסנני התמונה דו־משמעיים כיוון ששני מכלי המסננים קיימים; המרת המסננים דולגה"
+"image filters use FigCraft's approximate renderer" = "מסנני תמונה משתמשים במנוע הרינדור המקורב של FigCraft"
+"instance swap properties whose default component isn't in the file were skipped" = "מאפייני החלפת מופע שרכיב ברירת המחדל שלהם אינו בקובץ דולגו"
+"instance swap properties whose default component was past the layer limit were skipped" = "מאפייני החלפת מופע שרכיב ברירת המחדל שלהם חרג ממגבלת השכבות דולגו"
+"instances inside their own main component were imported as frames" = "מופעים בתוך הרכיב הראשי של עצמם יובאו כמסגרות"
+"instances of components that aren't in the file show no layers" = "מופעים של רכיבים שאינם בקובץ אינם מציגים שכבות"
+"instances of components that aren't in the file were imported as frames" = "מופעים של רכיבים שאינם בקובץ יובאו כמסגרות"
+"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 or oversized vector networks import as outlines" = "רשתות וקטורים לא תקינות או חורגות בגודלן מיובאות כקווי מתאר"
+"invalid or oversized vector path data was skipped" = "נתוני נתיב וקטור לא תקינים או חורגים בגודלם דולגו"
+"invalid vector region fill paint list; layer fill used" = "רשימת מילויי אזור וקטורי לא תקינה; נעשה שימוש במילוי השכבה"
+"invalid vector region paints were skipped" = "צבעי אזור וקטורי לא תקינים דולגו"
+"just now" = "ממש עכשיו"
+"key triggers without a supported key were skipped" = "טריגרים של מקשים ללא מקש נתמך דולגו"
+"key up triggers import as key presses" = "טריגרים של שחרור מקש מיובאים כלחיצות מקש"
+"layers without a position were placed at their parent's origin" = "שכבות ללא מיקום הוצבו בראשית הצירים של האב שלהן"
+"layers without a type were skipped" = "שכבות ללא סוג דולגו"
+"legacy image filter container is unsupported; filter conversion was skipped" = "מכל מסנני תמונה מדור קודם אינו נתמך; המרת המסננים דולגה"
+"linked vector region fill styles keep resolved appearance; live style links were left out" = "סגנונות מילוי אזור וקטורי מקושרים שומרים על המראה הפעיל; קישורי סגנון חיים הושמטו"
+"links to shared styles that aren't in the file kept the layers' own values" = "קישורים לסגנונות משותפים שאינם בקובץ שמרו על הערכים העצמאיים של השכבות"
+"locked" = "נעול"
+"malformed image filters container was skipped" = "מכל מסנני תמונה פגום דולג"
+"malformed image paintFilter container was skipped" = "מכל paintFilter פגום של תמונה דולג"
+"malformed slot content assignment was skipped" = "הקצאת תוכן משבצת פגומה דולגה"
+"no bleed" = "ללא גלישה"
+"nobody else here yet" = "אף אחד אחר עוד לא כאן"
+"non-default slot settings are not represented and were skipped" = "הגדרות משבצת שאינן ברירת מחדל אינן מיוצגות ודולגו"
+"note or shape generated child has invalid bounds; child skipped" = "לצאצא שנוצר של פתק או צורה יש גבולות לא תקינים; הצאצא דולג"
+"note or shape generated child is missing its style or bounds; child skipped" = "לצאצא שנוצר של פתק או צורה חסרים סגנון או גבולות; הצאצא דולג"
+"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)" = "הצע קבצים לשמירה כשמתבקש (אתה בוחר היכן לשמור כל אחד)"
+"only in a text style or variable" = "רק בסגנון טקסט או במשתנה"
+"or" = "או"
+"point stroke joins were preserved; dashed or variable-width strokes render with the layer join" = "חיבורי קו מתאר של נקודות נשמרו; קווי מתאר מקווקווים או ברוחב משתנה מרונדרים עם חיבור השכבה"
+"preferred slot component keys cannot be resolved to file nodes and were skipped" = "לא ניתן לפענח מפתחות רכיבי משבצת מועדפים לצומתי קובץ והם דולגו"
+"prototype actions of unknown types were skipped" = "פעולות אב־טיפוס מסוגים לא מוכרים דולגו"
+"prototype actions without a destination in the file were skipped" = "פעולות אב־טיפוס ללא יעד בקובץ דולגו"
+"prototype expressions on variables that aren't in the variables JSON were skipped" = "ביטויי אב־טיפוס על משתנים שאינם ב־JSON המשתנים דולגו"
+"prototype expressions with unsupported functions were skipped" = "ביטויי אב־טיפוס עם פונקציות לא נתמכות דולגו"
+"prototype interactions without supported actions were skipped" = "אינטראקציות אב־טיפוס ללא פעולות נתמכות דולגו"
+"prototype navigations of unknown types were skipped" = "ניווטי אב־טיפוס מסוגים לא מוכרים דולגו"
+"prototype transitions of unknown types play instantly" = "מעברי אב־טיפוס מסוגים לא מוכרים מתנגנים מיידית"
+"prototype triggers of unknown types were skipped" = "טריגרים של אב־טיפוס מסוגים לא מוכרים דולגו"
+"put a widget on the canvas" = "להציב ווידג׳ט על משטח העבודה"
+"read and edit the document" = "לקרוא ולערוך את המסמך"
+"read the document" = "לקרוא את המסמך"
+"reads the document" = "קורא את המסמך"
+"set-variable actions on variables that aren't in the variables JSON were skipped" = "פעולות הגדרת משתנה על משתנים שאינם ב־JSON המשתנים דולגו"
+"set-variable actions with values that can't be evaluated were skipped" = "פעולות הגדרת משתנה עם ערכים שלא ניתן להעריך דולגו"
+"set-variable actions with values that don't fit the variable were skipped" = "פעולות הגדרת משתנה עם ערכים שאינם מתאימים למשתנה דולגו"
+"set-variable actions without a value were skipped" = "פעולות הגדרת משתנה ללא ערך דולגו"
+"set-variable-mode actions on collections or modes that aren't in the variables JSON were skipped" = "פעולות הגדרת מצב משתנה על אוספים או מצבים שאינם ב־JSON המשתנים דולגו"
+"shape generated outline is missing or damaged; using its rectangle" = "מתאר הצורה שנוצר חסר או פגום; נעשה שימוש במלבן שלה"
+"slot content assignment target is missing or is not slot content" = "יעד הקצאת תוכן המשבצת חסר או שאינו תוכן משבצת"
+"slot content assignment uses the empty GUID sentinel and was skipped" = "הקצאת תוכן משבצת משתמשת ב־GUID ריק ודולגה"
+"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" = "ערכי גודל מסלולי רשת מיושנים או לא תקינים התעלמו"
+"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" = "הגדרות סגנון של חלק ממקטעי הווקטור אינן נתמכות; מקטעים אלה משתמשים בקו המתאר של השכבה"
+"swapped instances whose previous component isn't in the file took the new component's look" = "מופעים שהוחלפו ורכיבם הקודם אינו בקובץ קיבלו את מראה הרכיב החדש"
+"text path underline or strikethrough decoration is not rendered" = "עיטור קו תחתון או קו חוצה בנתיב טקסט אינו מרונדר"
+"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` (צפויה תגובת המשתנים המקומיים) והוא התעלם"
+"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 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" = "חיפושי מצב משתנה בביטויי אב־טיפוס שאינם משתנה ואחד ממצביו דולגו"
+"variable modes of collections that aren't in the file were skipped" = "מצבי משתנים של אוספים שאינם בקובץ דולגו"
+"variable modes of collections that aren't in the variables JSON were skipped" = "מצבי משתנים של אוספים שאינם ב־JSON המשתנים דולגו"
+"variable values that don't match their type (or composed colours) were skipped" = "ערכי משתנים שאינם תואמים לסוגם (או צבעים מורכבים) דולגו"
+"variable-bound vector region paints keep resolved appearance; live bindings were left out" = "צבעי אזור וקטורי המקושרים למשתנה שומרים על המראה הפעיל; קישורי משתנים חיים הושמטו"
+"variables of unknown types were skipped" = "משתנים מסוגים לא מוכרים דולגו"
+"variables whose collection isn't in the variables JSON were skipped" = "משתנים שהאוסף שלהם אינו ב־JSON המשתנים דולגו"
+"variables without readable values were skipped" = "משתנים ללא ערכים קריאים דולגו"
+"vector points with unknown stroke joins use the layer join" = "נקודות וקטור עם חיבורי קו מתאר לא מוכרים משתמשות בחיבור השכבה"
+"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)"
+"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" = "פעולות וידאו אינן נתמכות ודולגו"
+"video triggers are not supported and were skipped" = "טריגרים של וידאו אינם נתמכים ודולגו"
+"yesterday" = "אתמול"
+"{count} in it now · Changed {date}" = "{count} כרגע בקובץ · עודכן ב-{date}"
+"{insertions} · {detachments}" = "{insertions} · {detachments}"
+"{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) בעת שחרור על מופע כדי להחליפו."
+"{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} cleared from the list" = "{name} נוקה מהרשימה"
+"{name} from {path}" = "{name} מתוך {path}"
+"{name} is forgotten on this computer; the file stays on {server}" = "{name} נשכח במחשב זה; הקובץ נשאר ב־{server}"
+"{name} is on the server." = "{name} נמצא בשרת."
+"{name} is spotlighting" = "הזרקור על {name}"
+"{name} is too large to open in the browser (over 512 MB)." = "{name} גדול מדי לפתיחה בדפדפן (מעל 512 מ״ב)."
+"{name} was removed from the server" = "{name} הוסר מהשרת"
+"{name} · deleted on main" = "{name} · נמחק בראשי"
+"{name} · deleted on the branch" = "{name} · נמחק בענף"
+"{name} · not published" = "{name} · לא פורסם"
+"{name} · on a server" = "{name} · בשרת"
+"{name} · published version {v}" = "{name} · גרסה שפורסמה {v}"
+"{name} · version {v} on the server" = "{name} · גרסה {v} בשרת"
+"{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}, {kind}, {w} by {h}, selected" = "{name}, {kind}, {w} על {h}, נבחר"
+"{n} added" = { 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} 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} 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} of {total}" = "{n} מתוך {total}"
+"{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}d" = "{n} י׳"
+"{n}h" = "{n} ש׳"
+"{n}m" = "{n} ד׳"
+"{n}w" = "{n} שב׳"
+"{page}, nothing selected" = "{page}, דבר לא נבחר"
+"{percent}%" = "{percent}%"
+"{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} · No longer on the server" = "{server} · כבר לא בשרת"
+"{server} · {shared} · Opened {date}" = "{server} · {shared} · נפתח ב־{date}"
+"{tool} hold {key}" = "{tool} החזק {key}"
+"{used} · {detached}" = "{used} · {detached}"
+"{used} · {inserted}" = "{used} · {inserted}"
+"{value} isn't a colour" = "{value} אינו צבע"
+"{when} · edited" = "{when} · נערך"
+"←" = "←"
+"← ↑ → ↓" = "← ↑ → ↓"
+"← → ↑ ↓" = "← → ↑ ↓"
+"→, Space or N" = "→, Space או N"
+"↵" = "↵"
+"↵ / ⇧↵" = "↵ / ⇧↵"
+"⇥ / ⇧⇥" = "⇥ / ⇧⇥"
+"⇥ or ⌥ Space again" = "⇥ או ⌥ Space שוב"
+"⌘ arrows" = "⌘ חצים"
+"⌘ click" = "⌘ לחיצה"
+"⌘ click a padding field" = "⌘+לחיצה על שדה מרווח פנימי"
+"⌘ scroll" = "⌘ גלילה"
+"⌥ double-click an edge of an auto layout child" = "⌥+לחיצה כפולה על קצה של צאצא בפריסה אוטומטית"
+"⌥ drag" = "⌥ גרירה"
+"⌥⌘ ← ↑ → ↓" = "⌥⌘ ← ↑ → ↓"
+
+[commands]
+"align.bottom" = "יישור למטה"
+"align.hcenter" = "יישור למרכז אופקי"
+"align.left" = "יישור לשמאל"
+"align.right" = "יישור לימין"
+"align.top" = "יישור למעלה"
+"align.vcenter" = "יישור למרכז אנכי"
+"annotation.add" = "הוסף הערת מפתחים"
+"annotation.addCategory" = "הוסף קטגוריית הערות מפתחים"
+"annotation.categories" = "קטגוריות הערות מפתחים"
+"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.spacing" = "ריווח"
+"arrange.tidy" = "סדר באופן אחיד"
+"board.addConnected" = "הוסף צורה מחוברת"
+"board.codeBlock" = "בלוק קוד"
+"board.connector" = "מחבר"
+"board.grid" = "רשת לוח"
+"board.ink" = "קו טוש"
+"board.label" = "תווית מחבר"
+"board.mindMap" = "מפת חשיבה"
+"board.mindMapAdd" = "הוסף צומת למפת חשיבה"
+"board.nextSticky" = "פתקית דביקה הבאה"
+"board.reattach" = "חבר מחדש מחבר"
+"board.reshape" = "עצב מחדש מחבר"
+"board.setColor" = "צבע לוח"
+"board.setLanguage" = "שפת קוד"
+"board.setStyle" = "סגנון לוח"
+"board.shape" = "צורה עם טקסט"
+"board.stamp" = "חותמת"
+"board.sticky" = "פתקית דביקה"
+"board.table" = "טבלה"
+"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" = "עדכן מהקובץ הראשי"
+"codeConnect.export" = "ייצוא חיבורי קוד"
+"codeConnect.import" = "ייבוא חיבורי קוד"
+"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.peers" = "אנשים בקובץ זה"
+"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" = "הזז תגובה"
+"comment.next" = "התגובה הבאה"
+"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" = "הפוך לחריץ תוכן"
+"component.playground" = "מגרש ניסויים לרכיב"
+"component.properties" = "מאפייני רכיב"
+"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" = "פזר מרווחים אנכית"
+"doc.home" = "מסך הבית"
+"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" = "שכפל"
+"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" = "סגור לשונית"
+"file.colorProfile" = "פרופיל צבע"
+"file.duplicate" = "שכפל קובץ"
+"file.export" = "ייצוא"
+"file.exportFramesPdf" = "ייצא מסגרות ל-PDF"
+"file.exportLayers" = "ייצא שכבות"
+"file.exportSvg" = "ייצא בחירה כ-SVG"
+"file.fontReport" = "בדוק גופני מסמך"
+"file.import" = "ייבוא"
+"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.saveAs" = "שמירה בשם"
+"file.saveVersion" = "שמור להיסטוריית גרסאות"
+"file.versionHistory" = "הצג היסטוריית גרסאות"
+"fill.add" = "הוסף מילוי"
+"fill.copy" = "העתק מילוי"
+"fill.move" = "הזז מילוי"
+"fill.paste" = "הדבק מילוי"
+"fill.pattern" = "מילוי תבנית"
+"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" = "בחר קו עזר"
+"help.about" = "אודות FigCraft"
+"help.gettingStarted" = "צעדים ראשונים"
+"help.page" = "דף עזרה"
+"help.shortcuts" = "קיצורי מקלדת"
+"image.adjust" = "התאם תמונה"
+"image.crop" = "חתוך תמונה"
+"image.deletePreset" = "מחק תבנית תמונה"
+"image.place" = "מקם תמונה"
+"image.presets" = "תבניות תמונה"
+"image.replace" = "החלף תמונה"
+"image.savePreset" = "שמור תבנית תמונה"
+"inspect.assets" = "בדוק נכסים"
+"inspect.code" = "קוד עבור שכבה"
+"inspect.componentCode" = "קוד רכיב"
+"inspect.designContext" = "הקשר עיצובי"
+"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" = "הצע פריסה אוטומטית"
+"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" = "החלף מופע לרכיב ספרייה"
+"library.updates" = "עדכוני ספרייה"
+"library.usage" = "שימוש בספרייה"
+"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.flipH" = "היפוך אופקי"
+"object.flipV" = "היפוך אנכי"
+"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" = "עבור לעמוד"
+"page.setBackground" = "רקע עמוד"
+"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.ui" = "חלונית תוסף"
+"plugins.manage" = "ניהול תוספים…"
+"plugins.runLast" = "הרץ תוסף אחרון"
+"pref.autoSave" = "שמור קבצים אוטומטית"
+"pref.highlightHover" = "הדגש שכבות בריחוף"
+"pref.invertZoom" = "הפוך כיוון תקריב"
+"pref.keepTool" = "השאר כלי נבחר לאחר שימוש"
+"pref.language" = "שפת ממשק"
+"pref.nudge" = "מרחק הזזה קלה"
+"pref.numberKeysOpacity" = "השתמש במקשי מספרים לאטימות"
+"pref.publishServer" = "שרת לשיתוף מקוון"
+"pref.reduceMotion" = "הפחת תנועה"
+"pref.renameDuplicates" = "שנה שם לשכבות משוכפלות"
+"pref.scrollWheelZoom" = "תקריב עם גלגל העכבר"
+"pref.showDimensions" = "הצג ממדים על אובייקטים"
+"pref.startOnHome" = "התחל במסך הבית"
+"pref.uiScale" = "גודל ממשק"
+"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" = "ערוך אינטראקציה"
+"proto.linkNotice" = "התראה לפני מעבר לקישור חיצוני"
+"proto.present" = "הצג"
+"proto.presentOptions" = "אפשרויות הצגה"
+"proto.preview" = "פתח תצוגה מקדימה של אב-טיפוס"
+"proto.settings" = "הגדרות אב-טיפוס"
+"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" = "החל משתנה צבע על הבחירה"
+"selection.colors" = "צבעי הבחירה"
+"selection.createColorStyle" = "צור סגנון צבע"
+"selection.detachColor" = "נתק צבע בחירה"
+"selection.selectColor" = "בחר שכבות עם צבע זה"
+"selection.setPaint" = "שנה צבע בחירה"
+"shape.arrow" = "חץ"
+"shape.ellipse" = "אליפסה"
+"shape.line" = "קו"
+"shape.polygon" = "מצולע"
+"shape.rectangle" = "מלבן"
+"shape.star" = "כוכב"
+"shapeBuilder.merge" = "מזג אזורים"
+"shapeBuilder.mode" = "מצב בונה צורות"
+"shapeBuilder.regions" = "אזורי בונה צורות"
+"shapeBuilder.remove" = "הסר אזורים"
+"stroke.add" = "הוסף קו מתאר"
+"stroke.brush" = "מברשת"
+"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" = "יישר למרכז"
+"text.alignJustify" = "יישור דו-צדדי"
+"text.alignLeft" = "יישר לשמאל"
+"text.alignRight" = "יישר לימין"
+"text.bold" = "מודגש"
+"text.bulletList" = "רשימת תבליטים"
+"text.case" = "רישיות אותיות"
+"text.caseLower" = "אותיות קטנות"
+"text.caseOriginal" = "רישיות מקורית"
+"text.caseSmallCaps" = "אותיות רישיות מוקטנות"
+"text.caseTitle" = "אות ראשונה גדולה בכל מילה"
+"text.caseUpper" = "אותיות גדולות"
+"text.create" = "טקסט"
+"text.decoration" = "עיטור טקסט"
+"text.direction" = "כיוון טקסט"
+"text.directionAuto" = "כיוון טקסט: אוטומטי"
+"text.directionLtr" = "כיוון טקסט: משמאל לימין"
+"text.directionRtl" = "כיוון טקסט: מימין לשמאל"
+"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.selection" = "בחירת טקסט"
+"text.endPreview" = "סיים תצוגה מקדימה של טקסט"
+"text.fit" = "התאם טקסט לתיבה שלו"
+"text.fonts" = "הצג רשימת גופנים"
+"text.italic" = "נטוי"
+"text.lineHeightDown" = "הקטן גובה שורה"
+"text.lineHeightUp" = "הגדל גובה שורה"
+"text.link" = "צור קישור"
+"text.listIndent" = "הגדל כניסת רשימה"
+"text.listOutdent" = "הקטן כניסת רשימה"
+"text.listStyle" = "סגנון רשימה"
+"text.loadFont" = "טען קובץ גופן"
+"text.maxLines" = "מספר שורות מרבי"
+"text.missingFonts" = "גופנים חסרים"
+"text.numberList" = "רשימה ממוספרת"
+"text.onPath" = "טקסט על נתיב"
+"text.openLink" = "פתח קישור"
+"text.paragraphIndent" = "כניסת פסקה"
+"text.paragraphSpacing" = "ריווח פסקאות"
+"text.pathOptions" = "אפשרויות טקסט על נתיב"
+"text.preview" = "תצוגה מקדימה לשינוי טקסט"
+"text.refit" = "התאם טקסט לגופנים"
+"text.removeFromPath" = "הסר טקסט מנתיב"
+"text.rescanFonts" = "סרוק מחדש גופנים מותקנים"
+"text.set" = "הגדר טקסט"
+"text.setFeatures" = "תכונות OpenType"
+"text.setVariations" = "צירי גופן משתנה"
+"text.sizeDown" = "הקטן גודל גופן"
+"text.sizeUp" = "הגדל גודל גופן"
+"text.strikethrough" = "קו חוצה"
+"text.style" = "עצב טווח טקסט"
+"text.trackingDown" = "הקטן מרווח בין אותיות"
+"text.trackingUp" = "הגדל מרווח בין אותיות"
+"text.underline" = "קו תחתון"
+"text.weightDown" = "הפחת משקל גופן"
+"text.weightUp" = "הגדל משקל גופן"
+"text.wrapStyle" = "סגנון גלישת שורות"
+"tool.annotation" = "הערת תיעוד"
+"tool.arrow" = "חץ"
+"tool.comment" = "תגובה"
+"tool.connector" = "מחבר"
+"tool.crosshair" = "הזז כוונת מיקום"
+"tool.ellipse" = "אליפסה"
+"tool.eraser" = "מחק"
+"tool.frame" = "מסגרת"
+"tool.hand" = "יד"
+"tool.highlighter" = "מרקר"
+"tool.line" = "קו"
+"tool.marker" = "טוש"
+"tool.move" = "הזזה"
+"tool.pen" = "עט"
+"tool.pencil" = "עיפרון"
+"tool.pencilBrush" = "מברשת עיפרון"
+"tool.place" = "מקם באמצעות הכלי"
+"tool.polygon" = "מצולע"
+"tool.rectangle" = "מלבן"
+"tool.scale" = "שינוי קנה מידה"
+"tool.scaleAnchor" = "עוגן קנה מידה"
+"tool.section" = "מקטע"
+"tool.set" = "בחר כלי"
+"tool.shape" = "צורות"
+"tool.shapeBuilder" = "בונה צורות"
+"tool.slice" = "אזור חיתוך"
+"tool.stamp" = "חותמת"
+"tool.star" = "כוכב"
+"tool.sticky" = "פתקית דביקה"
+"tool.text" = "טקסט"
+"tool.textOnPath" = "טקסט על נתיב"
+"transform.move" = "הזזה"
+"transform.moveTo" = "הזז אל"
+"transform.nudge" = "הזזה קלה"
+"transform.nudgeSize" = "שנה גודל בהזזה קלה"
+"transform.resize" = "שינוי גודל"
+"transform.rotate" = "סיבוב"
+"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" = "ערוך משתנה"
+"vector.create" = "וקטור"
+"vector.deleteHeal" = "מחק ואחה בחירה"
+"vector.edit.addVertex" = "הוסף נקודה"
+"vector.edit.begin" = "ערוך וקטור"
+"vector.edit.bend" = "כופף מקטע"
+"vector.edit.bounds" = "גבולות הנקודות הנבחרות"
+"vector.edit.connect" = "חבר נקודות"
+"vector.edit.cornerRadius" = "רדיוס פינת נקודה"
+"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.paint" = "דלי צבע"
+"vector.edit.pen" = "נקודת עט"
+"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.state" = "מצב עריכת וקטור"
+"vector.edit.strokeCap" = "קצה קו בנקודה"
+"vector.edit.strokeJoin" = "חיבור קו בנקודה"
+"vector.edit.tool" = "כלי עריכת וקטור"
+"vector.edit.transform" = "שנה צורת נקודות"
+"vector.edit.widthPoint" = "נקודת עובי"
+"vector.fillRule" = "הגדר כלל מילוי"
+"vector.flatten" = "שטח נתיב"
+"vector.join" = "חבר בחירה"
+"vector.offset" = "היסט נתיב"
+"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" = "שחזר גרסה"
+"view.assets" = "חלונית נכסים"
+"view.comments" = "תגובות"
+"view.contextMenu" = "הצג תפריט הקשר"
+"view.design" = "חלונית עיצוב"
+"view.designPrototype" = "החלף בין עיצוב לאב-טיפוס"
+"view.devMode" = "מצב פיתוח"
+"view.frameOutlines" = "קווי מתאר של מסגרות"
+"view.fullscreen" = "מסך מלא"
+"view.get" = "קבל תצוגה"
+"view.layers" = "חלונית שכבות"
+"view.layoutGrids" = "רשתות פריסה"
+"view.leftSidebar" = "הצג/הסתר סרגל צד שמאלי"
+"view.maskOutlines" = "קווי מתאר של מסכות"
+"view.minimize" = "צמצם את הממשק"
+"view.multiplayerCursors" = "סמני משתתפים"
+"view.nextFrame" = "התמקד במסגרת הבאה"
+"view.nextPage" = "העמוד הבא"
+"view.nextRegion" = "מקד באזור הבא"
+"view.outlines" = "קווי מתאר"
+"view.outlinesHiddenLayers" = "כלול שכבות מוסתרות בקווי מתאר"
+"view.outlinesObjectBounds" = "כלול גבולות אובייקטים בקווי מתאר"
+"view.outlinesSelection" = "קווי מתאר עבור הבחירה"
+"view.pan" = "הזז תצוגה"
+"view.panelWidths" = "אפס רוחב חלוניות"
+"view.pixelGrid" = "רשת פיקסלים"
+"view.pixelPreview" = "תצוגת פיקסלים מקדימה"
+"view.prevFrame" = "התמקד במסגרת הקודמת"
+"view.prevPage" = "העמוד הקודם"
+"view.previousRegion" = "מקד באזור הקודם"
+"view.proofSrgb" = "הדמיית צבע sRGB"
+"view.prototype" = "חלונית אב-טיפוס"
+"view.rulers" = "סרגלים"
+"view.set" = "הגדר תצוגה"
+"view.slices" = "אזורי חיתוך"
+"view.snapGeometry" = "הצמד לגאומטריה"
+"view.snapObjects" = "הצמד לאובייקטים"
+"view.snapPixel" = "הצמד לרשת הפיקסלים"
+"view.themeDark" = "ערכת נושא כהה"
+"view.themeLight" = "ערכת נושא בהירה"
+"view.themeSystem" = "לפי הגדרת המערכת"
+"view.toggleUi" = "הצג/הסתר ממשק"
+"view.zoom100" = "זום ל-100%"
+"view.zoom200" = "זום ל-200%"
+"view.zoom50" = "זום ל-50%"
+"view.zoomAt" = "כלי הזום"
+"view.zoomFit" = "זום להתאמה לחלון"
+"view.zoomIn" = "התקרב"
+"view.zoomOut" = "התרחק"
+"view.zoomSelection" = "זום לבחירה"
+"widget.click" = "לחץ על ווידג׳ט"
+"widget.hover" = "ריחוף מעל ווידג׳ט"
+"widget.insert" = "הוסף ווידג׳ט"
+"widget.list" = "הצג רשימת ווידג׳טים"
+"widget.menu" = "תפריט ווידג׳ט"
+"widget.setText" = "ערוך שדה ווידג׳ט"
+"window.focus" = "הבא חלון לחזית"
+"window.new" = "חלון חדש"
+
+[menu]
+"bool.exclude" = "הוצאה מן הכלל"
+"bool.flatten" = "שיטוח"
+"bool.intersect" = "חיתוך"
+"bool.subtract" = "חיסור"
+"bool.union" = "איחוד"
+"file.duplicate" = "שכפל"
+"file.import" = "ייבוא מקובץ…"
+"file.rename" = "שנה שם"
+"libraries.open" = "פתח ספריות"
+"select.sameEffect" = "אפקט"
+"select.sameFill" = "מילוי"
+"select.sameFont" = "גופן"
+"select.sameInstance" = "מופע"
+"select.sameProperties" = "מאפיינים"
+"select.sameStroke" = "קו מתאר"
+"select.sameText" = "מאפייני טקסט"
+"text.alignCenter" = "יישור טקסט למרכז"
+"text.alignJustify" = "יישור טקסט דו-צדדי"
+"text.alignLeft" = "יישור טקסט לשמאל"
+"text.alignRight" = "יישור טקסט לימין"
+"text.directionAuto" = "אוטומטי"
+"text.directionLtr" = "משמאל לימין"
+"text.directionRtl" = "מימין לשמאל"
+"view.assets" = "נכסים"
+"view.design" = "עיצוב"
+"view.layers" = "שכבות"
+"view.outlines" = "הצג קווי מתאר"
+"view.outlinesHiddenLayers" = "כלול שכבות מוסתרות"
+"view.outlinesObjectBounds" = "כלול גבולות אובייקטים"
+"view.outlinesSelection" = "הצג קווי מתאר לבחירה"
+"view.prototype" = "אב-טיפוס"
+"view.themeDark" = "כהה"
+"view.themeLight" = "בהיר"
+"view.themeSystem" = "לפי המערכת"
diff --git a/crates/ui-egui/src/cjk.rs b/crates/ui-egui/src/cjk.rs
index 361873aee..0cb76fcf4 100644
--- a/crates/ui-egui/src/cjk.rs
+++ b/crates/ui-egui/src/cjk.rs
@@ -131,6 +131,11 @@ fn shows(code: &str, web: bool) -> bool {
// Arabic; keep the catalog out until an embedded Arabic fallback is supplied.
return figcraft_text::face_with_char('ع', &["Noto Sans Arabic"]).is_some();
}
+ if code.split(['-', '_']).next().is_some_and(|b| b.eq_ignore_ascii_case("he") || b.eq_ignore_ascii_case("iw")) {
+ // Desktop draws Hebrew with a system face (or bundled craft-fonts); the web leaves it out
+ // unless Noto Sans Hebrew is embedded (FIGCRAFT_EMBED_SCRIPTS=Hebr).
+ return figcraft_text::face_with_char('א', &["Noto Sans Hebrew"]).is_some();
+ }
if code.split('-').next() == Some("ta") {
// Desktop draws Tamil with a system face (#2018); the web has none until craft-fonts
// carries Noto Sans Tamil.
@@ -233,6 +238,15 @@ mod tests {
assert_eq!(shows("ar-SA", true), face);
}
+ #[test]
+ fn the_web_offers_hebrew_only_with_its_face() {
+ assert!(shows("he", false), "desktop always lists Hebrew");
+ let face = figcraft_text::face_with_char('א', &["Noto Sans Hebrew"]).is_some();
+ assert_eq!(shows("he", true), face);
+ assert_eq!(shows("he-IL", true), face);
+ assert_eq!(shows("iw-IL", true), face);
+ }
+
#[test]
fn the_web_offers_tamil_only_with_its_face() {
assert!(shows("ta", false), "desktop always lists Tamil");
diff --git a/crates/ui-egui/src/home.rs b/crates/ui-egui/src/home.rs
index d5babe72a..bf881ea87 100644
--- a/crates/ui-egui/src/home.rs
+++ b/crates/ui-egui/src/home.rs
@@ -102,9 +102,6 @@ pub(crate) fn file_row(ui: &Ui, t: &Tokens, r: Rect, resp: &Response, row: &File
if resp.hovered() {
ui.painter().rect_filled(r, CornerRadius::same(5), t.hover);
}
- if let Some((icon, tint)) = row.mark {
- icons::paint(ui.painter(), Rect::from_min_size(pos2(r.min.x + 8.0, r.center().y - 8.0), vec2(16.0, 16.0)), icon, tint);
- }
let (name_font, detail_font) = (regular(12.0), regular(row.detail_size));
let width = |s: &str, font: &egui::FontId| ui.painter().layout_no_wrap(s.to_string(), font.clone(), Color32::WHITE).size().x;
let room = (r.width() - 40.0).max(0.0);
@@ -120,8 +117,19 @@ pub(crate) fn file_row(ui: &Ui, t: &Tokens, r: Rect, resp: &Response, row: &File
widgets::elide_start_font(ui, row.detail, detail_room, detail_font.clone())
};
let cut = name != row.name || detail != row.detail;
- ui.painter().text(pos2(r.min.x + 32.0, r.center().y), Align2::LEFT_CENTER, name, name_font, row.ink);
- ui.painter().text(pos2(r.max.x - 8.0, r.center().y), Align2::RIGHT_CENTER, detail, detail_font, row.detail_ink);
+ if crate::i18n::right_to_left() {
+ if let Some((icon, tint)) = row.mark {
+ icons::paint(ui.painter(), Rect::from_min_size(pos2(r.max.x - 24.0, r.center().y - 8.0), vec2(16.0, 16.0)), icon, tint);
+ }
+ ui.painter().text(pos2(r.max.x - 32.0, r.center().y), Align2::RIGHT_CENTER, name, name_font, row.ink);
+ ui.painter().text(pos2(r.min.x + 8.0, r.center().y), Align2::LEFT_CENTER, detail, detail_font, row.detail_ink);
+ } else {
+ if let Some((icon, tint)) = row.mark {
+ icons::paint(ui.painter(), Rect::from_min_size(pos2(r.min.x + 8.0, r.center().y - 8.0), vec2(16.0, 16.0)), icon, tint);
+ }
+ ui.painter().text(pos2(r.min.x + 32.0, r.center().y), Align2::LEFT_CENTER, name, name_font, row.ink);
+ ui.painter().text(pos2(r.max.x - 8.0, r.center().y), Align2::RIGHT_CENTER, detail, detail_font, row.detail_ink);
+ }
cut
}
@@ -144,30 +152,39 @@ pub fn show(app: &mut FigApp, ui: &mut Ui) {
dropped(app, ui.ctx());
egui::CentralPanel::default().frame(egui::Frame::NONE.fill(t.panel)).show(ui, |ui| {
let rect = ui.max_rect();
- let left = Rect::from_min_size(rect.min, vec2(SIDEBAR, rect.height()));
- ui.painter().line_segment([left.right_top(), left.right_bottom()], Stroke::new(1.0, t.border));
- sidebar(app, ui, &t, left);
+ let rtl = crate::i18n::right_to_left();
+ let side = if rtl {
+ Rect::from_min_size(pos2(rect.max.x - SIDEBAR, rect.min.y), vec2(SIDEBAR, rect.height()))
+ } else {
+ Rect::from_min_size(rect.min, vec2(SIDEBAR, rect.height()))
+ };
+ let border_x = if rtl { side.left() } else { side.right() };
+ ui.painter().line_segment([pos2(border_x, side.top()), pos2(border_x, side.bottom())], Stroke::new(1.0, t.border));
+ sidebar(app, ui, &t, side);
+ let main = if rtl { Rect::from_min_max(rect.min, pos2(side.min.x, rect.max.y)) } else { Rect::from_min_max(pos2(side.max.x, rect.min.y), rect.max) };
if app.ui.home_view.file_query.trim().is_empty() && app.ui.home_view.section == Section::Online {
// Your online files lay themselves out in the area (and scroll their own list).
- let area = Rect::from_min_max(pos2(left.max.x + 40.0, rect.min.y + 24.0), rect.max - vec2(40.0, 24.0));
+ let area = main.shrink2(vec2(40.0, 24.0));
crate::online::section(app, ui, area, &t);
opened_join(app);
return;
}
- let main = Rect::from_min_max(pos2(left.max.x, rect.min.y), rect.max);
ui.scope_builder(egui::UiBuilder::new().max_rect(main), |ui| {
egui::ScrollArea::vertical().id_salt("home").auto_shrink([false, false]).show(ui, |ui| {
egui::Frame::NONE.inner_margin(egui::Margin::symmetric(40, 24)).show(ui, |ui| {
- ui.spacing_mut().item_spacing = vec2(GAP, 0.0);
- if app.ui.home_view.file_query.trim().is_empty() {
- match app.ui.home_view.section {
- Section::Templates => templates(app, ui, &t),
- _ => recents(app, ui, &t),
+ let align = if rtl { egui::Align::Max } else { egui::Align::Min };
+ ui.with_layout(egui::Layout::top_down(align), |ui| {
+ ui.spacing_mut().item_spacing = vec2(GAP, 0.0);
+ if app.ui.home_view.file_query.trim().is_empty() {
+ match app.ui.home_view.section {
+ Section::Templates => templates(app, ui, &t),
+ _ => recents(app, ui, &t),
+ }
+ } else {
+ search_results(app, ui, &t);
+ opened_join(app);
}
- } else {
- search_results(app, ui, &t);
- opened_join(app);
- }
+ });
});
});
});
@@ -221,8 +238,13 @@ fn sidebar(app: &mut FigApp, ui: &mut Ui, t: &Tokens, left: Rect) {
ui.painter().rect_filled(r, CornerRadius::same(5), if current { t.selected_row } else { t.hover });
}
focus_ring(ui, t, r, &resp, 5);
- icons::paint(ui.painter(), Rect::from_min_size(pos2(r.min.x + 10.0, r.center().y - 8.0), vec2(16.0, 16.0)), icon, t.icon);
- ui.painter().text(pos2(r.min.x + 36.0, r.center().y), Align2::LEFT_CENTER, tr(label), regular(12.0), t.text);
+ if crate::i18n::right_to_left() {
+ icons::paint(ui.painter(), Rect::from_min_size(pos2(r.max.x - 26.0, r.center().y - 8.0), vec2(16.0, 16.0)), icon, t.icon);
+ ui.painter().text(pos2(r.max.x - 36.0, r.center().y), Align2::RIGHT_CENTER, tr(label), regular(12.0), t.text);
+ } else {
+ icons::paint(ui.painter(), Rect::from_min_size(pos2(r.min.x + 10.0, r.center().y - 8.0), vec2(16.0, 16.0)), icon, t.icon);
+ ui.painter().text(pos2(r.min.x + 36.0, r.center().y), Align2::LEFT_CENTER, tr(label), regular(12.0), t.text);
+ }
if resp.clicked() {
app.ui.home_view.section = section;
app.ui.home_view.file_query.clear();
@@ -241,10 +263,16 @@ fn sidebar(app: &mut FigApp, ui: &mut Ui, t: &Tokens, left: Rect) {
ui.painter().rect_filled(r, CornerRadius::same(5), if current { t.selected_row } else { t.hover });
}
focus_ring(ui, t, r, &resp, 5);
- icons::paint(ui.painter(), Rect::from_min_size(pos2(r.min.x + 10.0, r.center().y - 8.0), vec2(16.0, 16.0)), Icon::Adjust, t.icon);
- ui.painter().text(pos2(r.min.x + 36.0, r.center().y), Align2::LEFT_CENTER, tr("Preferences"), regular(12.0), t.text);
let key_label = figcraft_engine::keymap::display("Cmd+,", crate::shortcuts::platform());
- ui.painter().text(pos2(r.max.x - 8.0, r.center().y), Align2::RIGHT_CENTER, &key_label, regular(11.0), t.text_secondary);
+ if crate::i18n::right_to_left() {
+ icons::paint(ui.painter(), Rect::from_min_size(pos2(r.max.x - 26.0, r.center().y - 8.0), vec2(16.0, 16.0)), Icon::Adjust, t.icon);
+ ui.painter().text(pos2(r.max.x - 36.0, r.center().y), Align2::RIGHT_CENTER, tr("Preferences"), regular(12.0), t.text);
+ ui.painter().text(pos2(r.min.x + 8.0, r.center().y), Align2::LEFT_CENTER, &key_label, regular(11.0), t.text_secondary);
+ } else {
+ icons::paint(ui.painter(), Rect::from_min_size(pos2(r.min.x + 10.0, r.center().y - 8.0), vec2(16.0, 16.0)), Icon::Adjust, t.icon);
+ ui.painter().text(pos2(r.min.x + 36.0, r.center().y), Align2::LEFT_CENTER, tr("Preferences"), regular(12.0), t.text);
+ ui.painter().text(pos2(r.max.x - 8.0, r.center().y), Align2::RIGHT_CENTER, &key_label, regular(11.0), t.text_secondary);
+ }
resp = resp.on_hover_text(format!("{} ({})", tr("Preferences"), key_label));
if resp.clicked() {
app.ui.preferences = !app.ui.preferences;
diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rs
index c1575e6bf..25b08dd03 100644
--- a/crates/ui-egui/src/i18n.rs
+++ b/crates/ui-egui/src/i18n.rs
@@ -95,7 +95,9 @@ const LATIN_AMERICA: &[&str] =
/// language the UI can't draw (CJK on the web without CJK faces built in) doesn't count.
fn resolve_one(want: &str) -> Option {
let tag = want.trim().split(['.', '@']).next().unwrap_or("").replace('_', "-");
- let base = tag.split('-').next().unwrap_or("");
+ let raw_base = tag.split('-').next().unwrap_or("");
+ // Map the obsolete ISO 639-1 tag `iw` (still emitted by older Java/Android locales) to `he`.
+ let base = if raw_base.eq_ignore_ascii_case("iw") { "he" } else { raw_base };
let has = |subtags: &[&str]| tag.split('-').skip(1).any(|t| subtags.iter().any(|s| s.eq_ignore_ascii_case(t)));
let zh = |code: &str| {
LANGS.iter().position(|l| l.code.eq_ignore_ascii_case(code)).filter(|i| LANGS.get(*i).is_some_and(|l| crate::cjk::can_show(l.code)))
diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs
index 572cd5de7..7bbe7c661 100644
--- a/crates/ui-egui/src/i18n/tests.rs
+++ b/crates/ui-egui/src/i18n/tests.rs
@@ -584,11 +584,51 @@ fn right_to_left_languages_mirror_the_window() {
for code in ["en", "", "es-419", "zh-Hans", "tr", "ru", "arn", "hey"] {
assert!(!writes_right_to_left(code), "{code}");
}
- // Every catalog that mirrors is one of them, and the Arabic one does.
+ // Every catalog that mirrors is one of them, and the Arabic and Hebrew ones do.
assert!(LANGS.iter().any(|l| l.code == "ar" && writes_right_to_left(l.code)));
+ assert!(LANGS.iter().any(|l| l.code == "he" && writes_right_to_left(l.code)));
assert!(!writes_right_to_left(LANGS[0].code), "English reads left to right");
}
+#[test]
+fn hebrew_tags_and_plurals() {
+ let he = LANGS.iter().position(|l| l.code == "he").expect("locales/he.toml is baked in");
+ assert_eq!(LANGS[he].name, "עברית");
+ for tag in ["he", "he-IL", "he_IL.UTF-8", "iw", "iw-IL", "iw_IL.UTF-8"] {
+ assert_eq!(resolve(tag, None), he, "{tag}");
+ assert_eq!(resolve("system", Some(tag)), he, "{tag}");
+ }
+ 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!(dual, "2 שכבות");
+}
+
+#[test]
+fn the_built_in_hebrew_face_draws_the_hebrew_catalog() {
+ if !figcraft_text::CRAFT_FONTS.iter().any(|f| f.family == "Noto Sans Hebrew" && f.style == "Regular") {
+ eprintln!("built without craft-fonts' Noto Sans Hebrew; skipping");
+ return;
+ }
+ let Some(face) = figcraft_text::face_with_char('א', &["Noto Sans Hebrew"]) else {
+ panic!("the supplied Noto Sans Hebrew face must draw Hebrew");
+ };
+ let he = &LANGS[LANGS.iter().position(|l| l.code == "he").unwrap()];
+ let letters: BTreeSet = he
+ .ui
+ .iter()
+ .chain(he.commands)
+ .chain(he.menu)
+ .flat_map(|(_, t)| forms(t))
+ .flat_map(str::chars)
+ .filter(|c| matches!(u32::from(*c), 0x05D0..=0x05EA))
+ .collect();
+ assert!(letters.len() >= 27);
+ let missing: String = letters.iter().filter(|c| !face.has_char(**c)).collect();
+ assert!(missing.is_empty(), "Hebrew catalog glyphs missing from the embedded face: {missing:?}");
+}
+
#[test]
fn the_built_in_arabic_face_draws_the_arabic_catalog() {
if !figcraft_text::CRAFT_FONTS.iter().any(|f| f.family == "Noto Sans Arabic" && f.style == "Regular") {
diff --git a/crates/ui-egui/src/panels/right/menu.rs b/crates/ui-egui/src/panels/right/menu.rs
index 8f6e7f7fd..fa9881842 100644
--- a/crates/ui-egui/src/panels/right/menu.rs
+++ b/crates/ui-egui/src/panels/right/menu.rs
@@ -116,10 +116,19 @@ fn lit_row(
// These menus sit on the theme's popup fill (white in the light theme), not on the dark
// `t.menu` of the menu bar: the theme's text, white only on the green highlight (#972).
let col = if hovered { t.menu_text } else { t.text };
- ui.painter().galley(pos2(r.min.x + MENU_PAD + lead, r.center().y - text.size().y / 2.0), text, col);
- if let Some(k) = keys {
- let at = pos2(r.max.x - MENU_PAD - k.size().x, r.center().y - k.size().y / 2.0);
- ui.painter().galley(at, k, if hovered { t.menu_text } else { t.text_secondary });
+ let rtl = crate::widgets::rtl(ui);
+ if rtl {
+ ui.painter().galley(pos2(r.max.x - MENU_PAD - lead - text.size().x, r.center().y - text.size().y / 2.0), text, col);
+ if let Some(k) = keys {
+ let at = pos2(r.min.x + MENU_PAD, r.center().y - k.size().y / 2.0);
+ ui.painter().galley(at, k, if hovered { t.menu_text } else { t.text_secondary });
+ }
+ } else {
+ ui.painter().galley(pos2(r.min.x + MENU_PAD + lead, r.center().y - text.size().y / 2.0), text, col);
+ if let Some(k) = keys {
+ let at = pos2(r.max.x - MENU_PAD - k.size().x, r.center().y - k.size().y / 2.0);
+ ui.painter().galley(at, k, if hovered { t.menu_text } else { t.text_secondary });
+ }
}
art(ui.painter(), r, col);
resp
@@ -196,13 +205,16 @@ const CHECK_COL: f32 = 14.0;
/// `Some(true)`) is drawn in its own column ahead of the icon, so a checked entry's label does
/// not move against the unchecked ones.
pub fn menu_icon_item(ui: &mut Ui, icon: Option, on: Option, label: &str, shortcut: &str) -> bool {
+ let rtl = crate::widgets::rtl(ui);
let paint = |p: &egui::Painter, r: Rect, col: Color32| {
if on == Some(true) {
let mark = p.layout_no_wrap("✓".to_owned(), regular(11.5), col);
- p.galley(pos2(r.min.x + MENU_PAD, r.center().y - mark.size().y / 2.0), mark, col);
+ let x = if rtl { r.max.x - MENU_PAD - mark.size().x } else { r.min.x + MENU_PAD };
+ p.galley(pos2(x, r.center().y - mark.size().y / 2.0), mark, col);
}
if let Some(icon) = icon {
- crate::icons::paint(p, Rect::from_min_size(pos2(r.min.x + MENU_PAD + CHECK_COL, r.center().y - 8.0), vec2(16.0, 16.0)), icon, col);
+ let x = if rtl { r.max.x - MENU_PAD - CHECK_COL - 16.0 } else { r.min.x + MENU_PAD + CHECK_COL };
+ crate::icons::paint(p, Rect::from_min_size(pos2(x, r.center().y - 8.0), vec2(16.0, 16.0)), icon, col);
}
};
let resp = lit_row(ui, label, shortcut, 0.0, CHECK_COL + 22.0, paint, false);
From 6695cb45c7c77726b7e22ac1fc41122ac80395aa Mon Sep 17 00:00:00 2001
From: HolyZephyros
Date: Thu, 19 Nov 2026 16:13:13 +0300
Subject: [PATCH 07/59] i18n(tr): complete Turkish UI, command, and menu
catalog
---
crates/ui-egui/locales/tr.toml | 286 +++++++++++++++++++++++++++++++++
1 file changed, 286 insertions(+)
diff --git a/crates/ui-egui/locales/tr.toml b/crates/ui-egui/locales/tr.toml
index 3e11aa173..34e299253 100644
--- a/crates/ui-egui/locales/tr.toml
+++ b/crates/ui-egui/locales/tr.toml
@@ -1816,6 +1816,235 @@ name = "Türkçe"
"⌘ scroll" = "⌘ kaydırma"
"⌥ drag" = "⌥ sürükle"
+"1 year" = "1 yıl"
+"30 days" = "30 gün"
+"90 days" = "90 gün"
+"A layer in an auto layout frame is placed by its frame" = "Otomatik yerleşim çerçevesindeki bir katman, çerçevesi tarafından yerleştirilir"
+"A layer on its own aligns to its frame: select more layers, or one in a frame" = "Tek başına bir katman çerçevesine hizalanır: daha fazla katman veya çerçeve içindeki bir katmanı seçin"
+"Adding to {name}" = "{name} öğesine ekleniyor"
+"All the fonts this file uses are installed" = "Bu dosyanın kullandığı tüm yazı tipleri yüklü"
+"Allow and download" = "İzin ver ve indir"
+"Allow downloading fonts?" = "Yazı tiplerinin indirilmesine izin verilsin mi?"
+"Alt+double-click an edge of an auto layout child" = "Otomatik yerleşim alt öğesinin bir kenarına Alt+çift tıklayın"
+"Android Vector Drawable" = "Android Vector Drawable"
+"Annotation" = "Ek açıklama"
+"Anyone on your network with this code can look at the file, not change it, while this app stays open." = "Ağınızdaki bu koda sahip herkes, bu uygulama açık kaldığı sürece dosyayı değiştirmeden görüntüleyebilir."
+"Auto: as many words as fit on each line" = "Otomatik: her satıra sığdığı kadar sözcük"
+"Auto: by the first letter with a direction" = "Otomatik: yönü olan ilk harfe göre"
+"Balance" = "Dengeli"
+"Balance: every line close to the same length" = "Dengeli: her satır yaklaşık aynı uzunlukta"
+"Best effort" = "En iyi uyum"
+"Board grid" = "Pano ızgarası"
+"Bottom padding" = "Alt iç boşluk"
+"Calculated from other variables; it follows them" = "Diğer değişkenlerden hesaplanır; onları izler"
+"Changed {date}" = "{date} tarihinde değiştirildi"
+"Check for Updates" = "Güncellemeleri Denetle"
+"Check for updates…" = "Güncellemeleri denetle…"
+"Checking the fonts installed on this computer…" = "Bu bilgisayarda yüklü yazı tipleri denetleniyor…"
+"Compare with" = "Şununla karşılaştır"
+"Compatibility" = "Uyumluluk"
+"Convert to frame" = "Çerçeveye dönüştür"
+"Convert to section" = "Bölüme dönüştür"
+"Copied comments for AI" = "Yorumlar yapay zeka için kopyalandı"
+"Copy browser link" = "Tarayıcı bağlantısını kopyala"
+"Copy effect" = "Efekti kopyala"
+"Copy fill" = "Dolguyu kopyala"
+"Copy for AI" = "Yapay zeka için kopyala"
+"Copy link to page" = "Sayfa bağlantısını kopyala"
+"Copy stroke" = "Konturu kopyala"
+"Couldn't download the variables" = "Değişkenler indirilemedi"
+"Couldn't download {name}" = "{name} indirilemedi"
+"Couldn't reach {server} for its team list." = "Ekip listesi için {server} sunucusuna ulaşılamadı."
+"Couldn't save automatically: {error}" = "Otomatik olarak kaydedilemedi: {error}"
+"Crop image" = "Görseli kırp"
+"Ctrl+Alt+← ↑ → ↓" = "Ctrl+Alt+← ↑ → ↓"
+"Ctrl+click a padding field" = "Bir iç boşluk alanına Ctrl+tıklayın"
+"Dart constants for Flutter…" = "Flutter için Dart sabitleri…"
+"Delete {n} variables" = { other = "{n} değişkeni sil" }
+"Detach calculation" = "Hesaplamayı ayır"
+"Developer Mode only inspects: switch to Design (Shift+D) to edit" = "Geliştirici Modu yalnızca inceler: düzenlemek için Tasarım (Shift+D) moduna geçin"
+"Disconnected. Reconnecting…" = "Bağlantı kesildi. Yeniden bağlanılıyor…"
+"Disconnected. Your edits stay here and sync when the connection returns. Reconnecting…" = "Bağlantı kesildi. Düzenlemeleriniz burada kalır ve bağlantı geri geldiğinde eşitlenir. Yeniden bağlanılıyor…"
+"Dismiss" = "Kapat"
+"Don't show this again" = "Bunu bir daha gösterme"
+"Double-click an edge of an auto layout frame" = "Otomatik yerleşim çerçevesinin bir kenarına çift tıklayın"
+"Download" = "İndir"
+"Downloading… {percent}%" = "İndiriliyor… %{percent}"
+"Drop a .figcraft, .fig, .jam, .sketch, .json, .svg or image file." = "Bir .figcraft, .fig, .jam, .sketch, .json, .svg veya görsel dosyası bırakın."
+"Drop to import" = "İçe aktarmak için bırakın"
+"Drop to open" = "Açmak için bırakın"
+"Drop to use this image" = "Bu görseli kullanmak için bırakın"
+"Duplicate group" = "Grubu çoğalt"
+"Edit padding on all sides" = "Tüm kenarlardaki iç boşluğu düzenle"
+"Edit variables" = "Değişkenleri düzenle"
+"Enter / Shift+Enter" = "Enter / Shift+Enter"
+"Everyone who reaches this server can open these files while they are shared." = "Bu sunucuya erişebilen herkes, paylaşıldıkları sürece bu dosyaları açabilir."
+"Exact only" = "Yalnızca birebir"
+"Expand the interface" = "Arayüzü genişlet"
+"Exported {name}; {n} kinds of content were changed or left out" = { other = "{name} dışa aktarıldı; {n} tür içerik değiştirildi veya dışarıda bırakıldı" }
+"Exported {n} files; some content was changed or left out" = { other = "{n} dosya dışa aktarıldı; bazı içerikler değiştirildi veya dışarıda bırakıldı" }
+"Extra large" = "Çok büyük"
+"FigCraft couldn't open its window: {error}" = "FigCraft penceresini açamadı: {error}"
+"FigCraft stopped because of an internal error." = "FigCraft bir iç hata nedeniyle durdu."
+"FigCraft tried {apis}, then again with lower requirements on the power-saving GPU. Updating the graphics driver often helps." = "FigCraft {apis} ile denedi, ardından güç tasarruflu GPU üzerinde daha düşük gereksinimlerle yeniden denedi. Grafik sürücüsünü güncellemek genellikle yardımcı olur."
+"Format" = "Biçim"
+"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." = "Ücretsiz yazı tipleri, jsDelivr ve GitHub aracılığıyla Google Fonts ve Noto'dan sağlanır. Her dosya, Craft uygulamalarının ortak kullandığı yazı tipi klasörüne yüklenmeden önce yazı tipi diziniyle karşılaştırılarak denetlenir. Siz izin verene kadar hiçbir şey indirilmez."
+"Graph paper" = "Milimetrik kâğıt"
+"Hide UI" = "Arayüzü gizle"
+"Huge" = "Devasa"
+"If it keeps happening, please report it at {link} with this message." = "Sorun devam ederse lütfen bu mesajla birlikte {link} adresinden bildirin."
+"Ignore unsupported" = "Desteklenmeyenleri yoksay"
+"Individual padding" = "Ayrı ayrı iç boşluk"
+"Interface size" = "Arayüz boyutu"
+"Invert zoom direction" = "Yakınlaştırma yönünü tersine çevir"
+"Joining live session…" = "Canlı oturuma katılınıyor…"
+"Large" = "Büyük"
+"Leaving the prototype" = "Prototipten çıkılıyor"
+"Left padding" = "Sol iç boşluk"
+"Left to right" = "Soldan sağa"
+"Link copied: it opens the file in FigCraft" = "Bağlantı kopyalandı: dosyayı FigCraft'ta açar"
+"Link copied: it opens the file in the browser" = "Bağlantı kopyalandı: dosyayı tarayıcıda açar"
+"Medium" = "Orta"
+"Missing fonts" = "Eksik yazı tipleri"
+"Move out of any group" = "Tüm grupların dışına taşı"
+"Move to group {group}" = "{group} grubuna taşı"
+"Move up or down while dragging its label" = "Etiketini sürüklerken yukarı veya aşağı hareket ettirin"
+"New from selection" = "Seçimden yeni oluştur"
+"No comments to copy" = "Kopyalanacak yorum yok"
+"No files or templates match your search" = "Aramanızla eşleşen dosya veya şablon yok"
+"No other pages" = "Başka sayfa yok"
+"No scope is shared by all the selected variables" = "Seçili tüm değişkenlerin paylaştığı bir kapsam yok"
+"Nobody shares a file there now." = "Şu anda orada kimse dosya paylaşmıyor."
+"Not connected: {reason}. Your work is still in this tab." = "Bağlı değil: {reason}. Çalışmanız hâlâ bu sekmede."
+"Not now" = "Şimdi değil"
+"Nothing changed since this version." = "Bu sürümden bu yana hiçbir şey değişmedi."
+"Nothing counted yet" = "Henüz sayılan bir şey yok"
+"Nothing to pick: the page is empty" = "Seçilecek bir şey yok: sayfa boş"
+"Opening the file…" = "Dosya açılıyor…"
+"Opening {n} files as new files" = { other = "{n} dosya yeni dosya olarak açılıyor" }
+"Other" = "Diğer"
+"Past 30 days" = "Son 30 gün"
+"Past 90 days" = "Son 90 gün"
+"Past year" = "Son 1 yıl"
+"Paste effect" = "Efekti yapıştır"
+"Paste fill" = "Dolguyu yapıştır"
+"Paste stroke" = "Konturu yapıştır"
+"Pick select: Tab and Shift+Tab move between layers, Enter goes into one, Shift+Enter out, Space selects, Escape cancels" = "Katman seçici: Tab ve Shift+Tab katmanlar arasında gezinir, Enter katmanın içine girer, Shift+Enter dışına çıkar, Space seçer, Escape iptal eder"
+"Pick select: into a layer, out to its parent" = "Katman seçici: katmanın içine gir, üst katmana çık"
+"Pick select: next or previous layer" = "Katman seçici: sonraki veya önceki katman"
+"Pick select: select the picked layer" = "Katman seçici: işaretlenen katmanı seç"
+"Plugin" = "Eklenti"
+"Plugins & widgets" = "Eklentiler ve widget'lar"
+"Pretty" = "Düzenli"
+"Pretty: full lines, no one word alone on the last" = "Dengeli: tam satırlar, son satırda tek sözcük kalmaz"
+"Relative to your system's display scaling (100% is the system's own size). Document zoom is separate." = "Sisteminizin ekran ölçeklendirmesine göredir (%100 sistemin kendi boyutudur). Belge yakınlaştırması ayrıdır."
+"Reload the page to get back the unsaved files the browser had room for." = "Tarayıcının yer ayırabildiği kaydedilmemiş dosyaları geri almak için sayfayı yeniden yükleyin."
+"Reload the page to get your unsaved files back." = "Kaydedilmemiş dosyalarınızı geri almak için sayfayı yeniden yükleyin."
+"Reload the page to start again." = "Yeniden başlamak için sayfayı yeniden yükleyin."
+"Remove all auto layout" = "Tüm otomatik yerleşimleri kaldır"
+"Remove {name} from session" = "{name} adlı kişiyi oturumdan kaldır"
+"Removed since this version" = "Bu sürümden bu yana kaldırıldı"
+"Reorder selection" = "Seçimi yeniden sırala"
+"Reset grid" = "Izgarayı sıfırla"
+"Retry now" = "Şimdi yeniden dene"
+"Right padding" = "Sağ iç boşluk"
+"Right to left" = "Sağdan sola"
+"Rotate a degree (Shift: 15)" = "Bir derece döndür (Shift: 15)"
+"Same as file ({profile})" = "Dosyayla aynı ({profile})"
+"Save a copy…" = "Kopyasını kaydet…"
+"Save files automatically" = "Dosyaları otomatik kaydet"
+"Scope" = "Kapsam"
+"Scope: all supported properties" = "Kapsam: desteklenen tüm özellikler"
+"Scope: hidden from pickers" = "Kapsam: seçicilerden gizli"
+"Scope: only {scope}" = "Kapsam: yalnızca {scope}"
+"Scrub a field faster (2x) or slower (1/2, 1/4)" = "Bir alanı daha hızlı (2x) veya daha yavaş (1/2, 1/4) kaydırarak ayarlayın"
+"Scrubbing at 1/2" = "1/2 hızında kaydırma"
+"Scrubbing at 1/4" = "1/4 hızında kaydırma"
+"Scrubbing at 1x" = "1x hızında kaydırma"
+"Scrubbing at 2x" = "2x hızında kaydırma"
+"Search files and templates" = "Dosya ve şablonlarda ara"
+"Search pages" = "Sayfalarda ara"
+"Search results" = "Arama sonuçları"
+"Select a row, a column or a full grid of three or more layers, outside an auto layout flow" = "Otomatik yerleşim akışı dışında üç veya daha fazla katmandan oluşan bir satır, sütun veya tam ızgara seçin"
+"Selection box: switch to pick select" = "Seçim kutusu: tıklayarak seçime geç"
+"Server key" = "Sunucu anahtarı"
+"Set as opening page" = "Açılış sayfası olarak ayarla"
+"Set corner smoothing to 60%" = "Köşe yumuşatmayı %60 olarak ayarla"
+"Set fill container" = "Kapsayıcıyı doldur olarak ayarla"
+"Set hug contents" = "İçeriği sar olarak ayarla"
+"Shared by your team on {server}" = "{server} üzerinde ekibiniz tarafından paylaşıldı"
+"Show and move the placement crosshair (its tool chosen, nothing selected)" = "Yerleştirme artı işaretini göster ve taşı (aracı seçiliyken, hiçbir şey seçili değilken)"
+"Small" = "Küçük"
+"Space" = "Boşluk"
+"Start on the Home screen" = "Ana ekranda başlat"
+"Strong line every" = "Kalın çizgi aralığı"
+"Subscript" = "Alt simge"
+"Superscript" = "Üst simge"
+"Tab or Ctrl+Space again" = "Tekrar Tab veya Ctrl+Space"
+"Text direction" = "Metin yönü"
+"Text on a path" = "Yol üzerinde metin"
+"The bars are hidden. {shortcut} shows them again" = "Çubuklar gizli. {shortcut} bunları yeniden gösterir"
+"The destination document is unavailable. Nothing was imported." = "Hedef belge kullanılamıyor. Hiçbir şey içe aktarılmadı."
+"The destination document was closed. Nothing was imported." = "Hedef belge kapatılmış. Hiçbir şey içe aktarılmadı."
+"The destination page was removed. Nothing was imported." = "Hedef sayfa kaldırılmış. Hiçbir şey içe aktarılmadı."
+"The window is too small for {size}%, so the interface is drawn at {drawn}%. Make the window larger to use {size}%." = "Pencere %{size} için çok küçük olduğundan arayüz %{drawn} olarak çiziliyor. %{size} kullanmak için pencereyi büyütün."
+"This file is too large to join here (up to {mb} MB)" = "Bu dosya buraya eklenmek için çok büyük (en fazla {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." = "Bu dosya, bu bilgisayarda yüklü olmayan yazı tiplerini kullanıyor. Siz yükleyene kadar ilgili metinler yedek bir yazı tipiyle çizilir."
+"This link opens a website outside the prototype:" = "Bu bağlantı prototip dışında bir web sitesi açar:"
+"This link opens your mail app to write a message:" = "Bu bağlantı ileti yazmak için e-posta uygulamanızı açar:"
+"This server doesn't count detached instances" = "Bu sunucu ayrılmış örnekleri saymaz"
+"This server doesn't count insertions" = "Bu sunucu eklemeleri saymaz"
+"This server doesn't count styles and variables" = "Bu sunucu stilleri ve değişkenleri saymaz"
+"This variant's value" = "Bu varyantın değeri"
+"This version can't be read." = "Bu sürüm okunamıyor."
+"This version doesn't have it: all of it is new." = "Bu sürümde yok: tamamı yeni."
+"Top padding" = "Üst iç boşluk"
+"Try another search, or browse templates." = "Başka bir arama deneyin veya şablonlara göz atın."
+"Update check is not supported in the web browser." = "Güncelleme denetimi web tarayıcısında desteklenmiyor."
+"Updating the graphics driver often helps. To use OpenGL only, start FigCraft from a Command Prompt with:" = "Grafik sürücüsünü güncellemek genellikle işe yarar. Yalnızca OpenGL kullanmak için FigCraft'ı Komut İstemi'nden şu komutla başlatın:"
+"Updating the graphics driver often helps. WGPU_BACKEND (vulkan, gl, metal) names another graphics API to try." = "Grafik sürücüsünü güncellemek genellikle işe yarar. WGPU_BACKEND (vulkan, gl, metal) denenecek başka bir grafik API'sini belirtir."
+"Upload from computer" = "Bilgisayardan yükle"
+"Use your browser's zoom to change the interface size." = "Arayüz boyutunu değiştirmek için tarayıcınızın yakınlaştırma ayarını kullanın."
+"WGPU_BACKEND is set and names the graphics API to use; unsetting it lets FigCraft choose." = "WGPU_BACKEND ayarlı ve kullanılacak grafik API'sini belirtiyor; bu ayarı kaldırmak seçimi FigCraft'a bırakır."
+"What changed since a saved version" = "Kaydedilmiş bir sürümden bu yana değişenler"
+"When marked ready" = "Hazır olarak işaretlendiğinde"
+"Widget" = "Widget"
+"Wrap style" = "Satır kaydırma stili"
+"Your unsaved files were too large for the browser to keep." = "Kaydedilmemiş dosyalarınız tarayıcının saklayabileceği boyuttan büyüktü."
+"connector labels without a saved snapshot are centred on the line, without their background" = "kaydedilmiş anlık görüntüsü olmayan bağlayıcı etiketleri, arka planları olmadan çizginin ortasına hizalandı"
+"elbowed and curved connectors without a saved path are routed afresh" = "kaydedilmiş yolu olmayan dirsekli ve kavisli bağlayıcılar yeniden yönlendirildi"
+"instance swap properties whose default component was past the layer limit were skipped" = "varsayılan bileşeni katman sınırını aşan örnek değiştirme özellikleri atlandı"
+"instances whose component was past the layer limit were imported as frames" = "bileşeni katman sınırını aşan örnekler çerçeve olarak içe aktarıldı"
+"invalid vector region fill paint list; layer fill used" = "geçersiz vektör bölgesi dolgu boyası listesi; katman dolgusu kullanıldı"
+"invalid vector region paints were skipped" = "geçersiz vektör bölgesi boyaları atlandı"
+"linked vector region fill styles keep resolved appearance; live style links were left out" = "bağlı vektör bölgesi dolgu stilleri çözümlenmiş görünümü korur; canlı stil bağlantıları dışarıda bırakıldı"
+"note or shape generated child has invalid bounds; child skipped" = "not veya şekil tarafından oluşturulan alt öğenin sınırları geçersiz; alt öğe atlandı"
+"note or shape generated child is missing its style or bounds; child skipped" = "not veya şekil tarafından oluşturulan alt öğenin stili veya sınırları eksik; alt öğe atlandı"
+"note or shape generated children exceed the layer or nesting limit; remaining children skipped" = "not veya şekil tarafından oluşturulan alt öğeler katman veya iç içe geçme sınırını aşıyor; kalan alt öğeler atlandı"
+"note or shape generated layout is missing or unsupported; using its outer frame" = "not veya şekil tarafından oluşturulan yerleşim eksik veya desteklenmiyor; dış çerçevesi kullanılıyor"
+"only in a text style or variable" = "yalnızca bir metin stilinde veya değişkende"
+"shape generated outline is missing or damaged; using its rectangle" = "şekil tarafından oluşturulan dış hat eksik veya bozuk; dikdörtgeni kullanılıyor"
+"slot layers without a matching slot property were imported as frames" = "eşleşen yuva özelliği olmayan yuva katmanları çerçeve olarak içe aktarıldı"
+"sticky layers import as frames with their text" = "yapışkan not katmanları metinleriyle birlikte çerçeve olarak içe aktarılır"
+"swapped instances whose previous component isn't in the file took the new component's look" = "önceki bileşeni dosyada bulunmayan değiştirilmiş örnekler yeni bileşenin görünümünü aldı"
+"variable-bound vector region paints keep resolved appearance; live bindings were left out" = "değişkene bağlı vektör bölgesi boyaları çözümlenmiş görünümü korur; canlı bağlamalar dışarıda bırakıldı"
+"vector region paint data exceeded import limits and was skipped" = "vektör bölgesi boya verileri içe aktarma sınırlarını aştığı için atlandı"
+"vector region references a missing fill style; layer fill used" = "vektör bölgesi eksik bir dolgu stiline başvuruyor; katman dolgusu kullanıldı"
+"{count} in it now · Changed {date}" = "Şu anda {count} · Değiştirilme: {date}"
+"{insertions} · {detachments}" = "{insertions} · {detachments}"
+"{name}, disconnected from its live session" = "{name}, canlı oturum bağlantısı kesildi"
+"{n} detached" = { other = "{n} ayrıldı" }
+"{n} inserted" = { other = "{n} eklendi" }
+"{n} text layers" = { other = "{n} metin katmanı" }
+"{percent}%" = "%{percent}"
+"{period}: {counts}" = "{period}: {counts}"
+"{used} · {detached}" = "{used} · {detached}"
+"{used} · {inserted}" = "{used} · {inserted}"
+"↵ / ⇧↵" = "↵ / ⇧↵"
+"⇥ or ⌥ Space again" = "Tekrar ⇥ veya ⌥ Space"
+"⌘ click a padding field" = "⌘ tuşuyla bir iç boşluk alanına tıklayın"
+"⌥ double-click an edge of an auto layout child" = "⌥ tuşuyla otomatik yerleşim alt öğesinin bir kenarına çift tıklayın"
+"⌥⌘ ← ↑ → ↓" = "⌥⌘ ← ↑ → ↓"
[commands]
"align.bottom" = "Alta hizala"
"align.hcenter" = "Yatay merkezleri hizala"
@@ -2421,6 +2650,60 @@ name = "Türkçe"
"window.new" = "Yeni pencere"
"template.list" = "Şablonları listele"
+"arrange.reorder" = "Yeniden sırala"
+"board.codeBlock" = "Kod bloğu"
+"board.grid" = "Pano ızgarası"
+"board.mindMap" = "Zihin haritası"
+"board.mindMapAdd" = "Zihin haritası düğümü ekle"
+"board.reshape" = "Panoyu yeniden şekillendir"
+"board.setLanguage" = "Kod dili"
+"collab.reconnect" = "Yeniden bağlan"
+"collab.removePerson" = "Kişiyi oturumdan kaldır"
+"comment.prompt" = "Yorum gir"
+"data.fill" = "Veri doldur"
+"effect.copy" = "Efekti kopyala"
+"effect.paste" = "Efekti yapıştır"
+"file.fontReport" = "Yazı tipi raporu"
+"file.markSaved" = "Kaydedildi olarak işaretle"
+"fill.copy" = "Dolguyu kopyala"
+"fill.paste" = "Dolguyu yapıştır"
+"font.download" = "Yazı tipini indir"
+"font.downloads" = "Yazı tipi indirmeleri"
+"image.crop" = "Görseli kırp"
+"image.replace" = "Görseli değiştir"
+"inspect.designContext" = "Tasarım bağlamı"
+"layout.removeAll" = "Tüm yerleşimleri kaldır"
+"library.check" = "Kitaplığı denetle"
+"object.convertToSection" = "Bölüme dönüştür"
+"page.setOpening" = "Açılış sayfası olarak ayarla"
+"pref.autoSave" = "Otomatik kaydet"
+"pref.invertZoom" = "Yakınlaştırmayı ters çevir"
+"pref.startOnHome" = "Ana sayfada başlat"
+"pref.uiScale" = "Arayüz ölçeği"
+"pref.uiScaleDown" = "Arayüz ölçeğini küçült"
+"pref.uiScaleReset" = "Arayüz ölçeğini sıfırla"
+"pref.uiScaleUp" = "Arayüz ölçeğini büyüt"
+"proto.linkNotice" = "Prototip bağlantı bildirimi"
+"selection.createColorStyle" = "Seçimden renk stili oluştur"
+"stroke.copy" = "Konturu kopyala"
+"stroke.paste" = "Konturu yapıştır"
+"text.direction" = "Metin yönü"
+"text.directionAuto" = "Metin yönü: Otomatik"
+"text.directionLtr" = "Metin yönü: Soldan sağa"
+"text.directionRtl" = "Metin yönü: Sağdan sola"
+"text.fit" = "Metni sığdır"
+"text.loadFont" = "Yazı tipini yükle"
+"text.missingFonts" = "Eksik yazı tipleri"
+"text.openLink" = "Bağlantıyı aç"
+"text.refit" = "Metni yeniden sığdır"
+"text.rescanFonts" = "Yazı tiplerini yeniden tara"
+"text.wrapStyle" = "Metin kaydırma stili"
+"tool.annotation" = "Ek açıklama aracı"
+"tool.crosshair" = "Artı işareti aracı"
+"tool.textOnPath" = "Yol üzerinde metin aracı"
+"variable.extendCollection" = "Değişken koleksiyonunu genişlet"
+"view.minimize" = "Simge durumuna küçült"
+"widget.hover" = "Araç takımı üzerine gelme"
[menu]
"bool.exclude" = "Hariç tut"
"bool.flatten" = "Düzleştir"
@@ -2453,3 +2736,6 @@ name = "Türkçe"
"view.themeDark" = "Koyu"
"view.themeLight" = "Açık"
"view.themeSystem" = "Sistemi izle"
+"text.directionAuto" = "Otomatik"
+"text.directionLtr" = "Soldan sağa"
+"text.directionRtl" = "Sağdan sola"
From f6dd6a9c3bd03ac2322c80abedc1383a8c529cee Mon Sep 17 00:00:00 2001
From: HagaiBA
Date: Thu, 19 Nov 2026 15:25:43 +0200
Subject: [PATCH 08/59] fix(ui-egui): mirror RTL menu row artwork rect and
format home.rs
---
crates/ui-egui/src/home.rs | 3 +-
crates/ui-egui/src/panels/right/menu.rs | 39 ++++++++++++++++++++++++-
2 files changed, 40 insertions(+), 2 deletions(-)
diff --git a/crates/ui-egui/src/home.rs b/crates/ui-egui/src/home.rs
index bf881ea87..200afe526 100644
--- a/crates/ui-egui/src/home.rs
+++ b/crates/ui-egui/src/home.rs
@@ -161,7 +161,8 @@ pub fn show(app: &mut FigApp, ui: &mut Ui) {
let border_x = if rtl { side.left() } else { side.right() };
ui.painter().line_segment([pos2(border_x, side.top()), pos2(border_x, side.bottom())], Stroke::new(1.0, t.border));
sidebar(app, ui, &t, side);
- let main = if rtl { Rect::from_min_max(rect.min, pos2(side.min.x, rect.max.y)) } else { Rect::from_min_max(pos2(side.max.x, rect.min.y), rect.max) };
+ let main =
+ if rtl { Rect::from_min_max(rect.min, pos2(side.min.x, rect.max.y)) } else { Rect::from_min_max(pos2(side.max.x, rect.min.y), rect.max) };
if app.ui.home_view.file_query.trim().is_empty() && app.ui.home_view.section == Section::Online {
// Your online files lay themselves out in the area (and scroll their own list).
let area = main.shrink2(vec2(40.0, 24.0));
diff --git a/crates/ui-egui/src/panels/right/menu.rs b/crates/ui-egui/src/panels/right/menu.rs
index fa9881842..9cfdc0e3e 100644
--- a/crates/ui-egui/src/panels/right/menu.rs
+++ b/crates/ui-egui/src/panels/right/menu.rs
@@ -130,7 +130,9 @@ fn lit_row(
ui.painter().galley(at, k, if hovered { t.menu_text } else { t.text_secondary });
}
}
- art(ui.painter(), r, col);
+ // In RTL, anchor right-aligned trailing artwork near the reading end (left) so it stays opposite the label.
+ let art_r = if rtl && art_w > 0.0 { Rect::from_min_max(r.min, pos2((r.min.x + art_w + MENU_PAD).min(r.max.x), r.max.y)) } else { r };
+ art(ui.painter(), art_r, col);
resp
}
@@ -221,3 +223,38 @@ pub fn menu_icon_item(ui: &mut Ui, icon: Option, on: Option<
a11y::menu_item(&resp, label, shortcut, on);
resp.clicked()
}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn rtl_lit_row_places_art_opposite_label() {
+ let ctx = egui::Context::default();
+ ctx.all_styles_mut(|s| s.right_to_left = true);
+ let mut art_rect = None;
+ ctx.run_ui(Default::default(), |ui| {
+ egui::Area::new(egui::Id::unique("menu-rtl-test")).fixed_pos(pos2(0.0, 0.0)).show(ui.ctx(), |ui| {
+ ui.set_width(220.0);
+ let _ = lit_row(
+ ui,
+ "קצוות עגולים",
+ "",
+ 64.0,
+ 0.0,
+ |_pt, r, _| {
+ art_rect = Some(r);
+ },
+ false,
+ );
+ });
+ })
+ .textures_delta
+ .clear();
+ let art_r = art_rect.expect("art invoked");
+ // Artwork paints relative to art_r.max.x in [art_r.max.x - 64.0, art_r.max.x],
+ // so its right edge stays on the left side while the RTL label sits at r.max.x - MENU_PAD.
+ assert!((art_r.max.x - (art_r.min.x + 64.0 + MENU_PAD)).abs() < 0.01, "art_r={art_r:?}");
+ assert!(art_r.max.x < 100.0, "expected trailing left placement, got {art_r:?}");
+ }
+}
From d28438ec5596228c85a6de8572f7fc0f574ef50d Mon Sep 17 00:00:00 2001
From: HolyZephyros
Date: Thu, 19 Nov 2026 18:12:24 +0300
Subject: [PATCH 09/59] i18n(tr): clarify comment.prompt command label for AI
copy action
---
crates/ui-egui/locales/tr.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crates/ui-egui/locales/tr.toml b/crates/ui-egui/locales/tr.toml
index 34e299253..0d300d63e 100644
--- a/crates/ui-egui/locales/tr.toml
+++ b/crates/ui-egui/locales/tr.toml
@@ -2659,7 +2659,7 @@ name = "Türkçe"
"board.setLanguage" = "Kod dili"
"collab.reconnect" = "Yeniden bağlan"
"collab.removePerson" = "Kişiyi oturumdan kaldır"
-"comment.prompt" = "Yorum gir"
+"comment.prompt" = "Yorumları yapay zeka için kopyala"
"data.fill" = "Veri doldur"
"effect.copy" = "Efekti kopyala"
"effect.paste" = "Efekti yapıştır"
From 20a49eb5868c43fc494e3696d507f3a02a30385a Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Wed, 18 Nov 2026 16:29:35 -0500
Subject: [PATCH 10/59] M8: in vector edit mode, deleting a point selects the
next one on its path
Deleting a selected point (Delete or Backspace, or Shift+Delete to
heal) cleared the selection, so removing several points along a path
meant clicking each one before every Delete.
Before the points go, each one's follower is found by walking its path
forward (segment a to b) past the points being deleted, or backward when
the path ends there. After the deletion those followers are found again
by position, as the deleted points already were, and become the
selection of their layer, so Delete pressed again goes on along the
path. A cut (vector_clipboard) still leaves nothing selected.
---
crates/engine/src/canvas/vectoredit.rs | 47 +++++++++++++++++--
.../engine/src/cmd/edit/vector_clipboard.rs | 2 +-
crates/engine/src/vector_behaviour_tests.rs | 25 ++++++++++
docs/ui-parity.md | 3 +-
4 files changed, 71 insertions(+), 6 deletions(-)
diff --git a/crates/engine/src/canvas/vectoredit.rs b/crates/engine/src/canvas/vectoredit.rs
index ff8af30a4..cf00a06de 100644
--- a/crates/engine/src/canvas/vectoredit.rs
+++ b/crates/engine/src/canvas/vectoredit.rs
@@ -642,10 +642,12 @@ fn index(cmd: &str, p: &Value, key: &str) -> Result {
}
/// Delete the points and segments of `parts` (`heal` keeps paths through deleted points closed).
-pub(crate) fn delete_selection(s: &mut Session, parts: Vec, heal: bool) -> Result<()> {
+pub(crate) fn delete_selection(s: &mut Session, parts: Vec, heal: bool, then_select_next: bool) -> Result<()> {
let doc = s.doc_mut()?;
+ let mut next = Vec::new();
for EditPart { id, vertices: verts, segments: segs } in parts {
- edit(doc, id, |net| {
+ let following = edit(doc, id, |net| {
+ let following = if then_select_next { points_following(net, &verts) } else { Vec::new() };
// Segments first (their indices refer to the network before points go).
let segs: Vec =
segs.into_iter().filter(|si| net.segments.get(*si).is_some_and(|x| !verts.contains(&x.a) && !verts.contains(&x.b))).collect();
@@ -654,15 +656,52 @@ pub(crate) fn delete_selection(s: &mut Session, parts: Vec, heal: bool
// Point indices may have shifted: find them again by position.
let now: Vec = pts.iter().filter_map(|p| net.vertices.iter().position(|v| v.point() == *p)).collect();
ops::delete_vertices(net, &now, heal);
+ following.iter().filter_map(|p| net.vertices.iter().position(|v| v.point() == *p)).collect::>()
})?;
+ next.push((id, following));
}
set_state(s, |ve| {
ve.clear_selection();
ve.anchor = None;
ve.pen_out = None;
+ for (id, following) in next {
+ if id == ve.id {
+ ve.vertices = following;
+ } else if let Some(o) = ve.others.iter_mut().find(|o| o.id == id) {
+ o.vertices = following;
+ }
+ }
})
}
+fn points_following(net: &VectorNetwork, deleted: &[usize]) -> Vec {
+ let step = |from: usize, forward: bool| {
+ net.segments.iter().find_map(|sg| match forward {
+ true => (sg.a == from).then_some(sg.b),
+ false => (sg.b == from).then_some(sg.a),
+ })
+ };
+ let mut out: Vec = Vec::new();
+ for &v in deleted {
+ let found = [true, false].into_iter().find_map(|forward| {
+ let mut at = v;
+ for _ in 0..net.vertices.len() {
+ at = step(at, forward)?;
+ if !deleted.contains(&at) {
+ return Some(at);
+ }
+ }
+ None
+ });
+ if let Some(p) = found.and_then(|i| net.vertices.get(i)).map(|x| x.point())
+ && !out.contains(&p)
+ {
+ out.push(p);
+ }
+ }
+ out
+}
+
/// The points a command acts on, per layer: `vertices` names points of the active layer; without
/// it, every edited layer's selected points (with `ends`, the ends of selected segments too).
fn point_sets(s: &Session, p: &Value, ends: bool) -> Result)>> {
@@ -1112,7 +1151,7 @@ pub fn specs() -> Vec {
}),
spec!("vector.deleteHeal", "Delete and heal selection", "{vertices?} (default the selected points of every edited layer)", true, |s, p| {
let parts = point_sets(s, p, false)?.into_iter().map(|(id, vertices)| EditPart { id, vertices, segments: vec![] }).collect();
- delete_selection(s, parts, true)?;
+ delete_selection(s, parts, true, true)?;
Ok(json!({"ok": true}))
}),
spec!("vector.edit.delete", "Delete points", "{vertices?, segments?} (default the selection in every edited layer)", true, |s, p| {
@@ -1121,7 +1160,7 @@ pub fn specs() -> Vec {
(None, None) => ve.parts(),
(v, sg) => vec![EditPart { id: ve.id, vertices: v.unwrap_or_default(), segments: sg.unwrap_or_default() }],
};
- delete_selection(s, parts, false)?;
+ delete_selection(s, parts, false, true)?;
Ok(json!({"ok": true}))
}),
spec!("vector.edit.cornerRadius", "Point corner radius", "{radius, vertices?}", true, |s, p| {
diff --git a/crates/engine/src/cmd/edit/vector_clipboard.rs b/crates/engine/src/cmd/edit/vector_clipboard.rs
index 72c60bf02..f52916ee8 100644
--- a/crates/engine/src/cmd/edit/vector_clipboard.rs
+++ b/crates/engine/src/cmd/edit/vector_clipboard.rs
@@ -154,7 +154,7 @@ pub(super) fn cut_selection(s: &mut Session, sel: EditSelection) -> Result>();
+ let second = point_at(&s, id, (100.0, 0.0));
+ ex(&mut s, "vector.edit.select", json!({"vertices": [second]}));
+ key(&mut s, "Delete", true);
+ assert_eq!(selected(&s), [Point::new(200.0, 0.0)], "the point after the deleted one");
+ key(&mut s, "Delete", true);
+ assert_eq!(selected(&s), [Point::new(300.0, 0.0)], "so Delete again walks along the path");
+ key(&mut s, "Delete", true);
+ assert_eq!(selected(&s), [Point::new(0.0, 0.0)], "past the path's end, the point before it");
+
+ let mut s = Session::new();
+ let id = square(&mut s, true);
+ let tr = point_at(&s, id, (100.0, 0.0));
+ ex(&mut s, "vector.edit.select", json!({"vertices": [tr]}));
+ key(&mut s, "Delete", false);
+ let after = selected(&s);
+ assert_eq!(after.len(), 1, "one point selected after a plain Delete: {after:?}");
+ assert!([Point::new(100.0, 100.0), Point::new(0.0, 0.0)].contains(&after[0]), "a neighbour of the deleted corner: {after:?}");
+}
+
#[test]
fn handles_follow_their_mirroring() {
// A smooth middle point at (100, 0) on an open path; one handle is dragged to (+30, 10).
diff --git a/docs/ui-parity.md b/docs/ui-parity.md
index d756e71b0..ed3e32001 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-19 · **Change:** minor (in vector edit mode, deleting a point selects the next one on its path, so Delete pressed again goes on along it; 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-18 | patch | M8: in vector edit mode, deleting a selected point (Delete or Backspace, or Shift+Delete to heal) left nothing selected, so deleting several points along a path meant clicking each one first. The point that followed the deleted one along its path is now selected, the one before it when the deleted point ended the path, so Delete pressed again goes on along it; points and segments cut to the clipboard still leave nothing selected. Test: `vector_behaviour_tests::deleting_a_point_selects_the_next_one_on_its_path` |
| 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 ead7e5b39023187e168bbaf322ac13f4de233ada Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Thu, 19 Nov 2026 01:28:20 -0500
Subject: [PATCH 11/59] M5: A clicked layer row leaves the arrow keys to the
canvas
A click on a row in the Layers panel gave the arrow keys to the rows:
Up and Down walked the list and Left and Right opened and closed rows. A
layer picked there couldn't be nudged, nor moved one place up or down its
vertical auto layout frame, which is how designers reorder a column. In
Figma a layer picked in the Layers panel moves with the arrows (the
locked-layer rule measured on 2026-11-10 is that a locked one doesn't).
The arrows now nudge after a row click, as on the canvas. Walking the
rows with the arrows stays for the keyboard: F6 into the Layers panel
puts the keyboard on the selected row (a11y::layer_row), which was
already a path of its own. layers_focus still records the click, so
Shift+F10 after it opens the menu at the row. The row-walking tests now
reach the rows by F6, and the perf bench does the same.
---
crates/ui-egui/src/layers_keys_tests.rs | 64 ++++++++++++++++++++-----
crates/ui-egui/src/lib.rs | 5 +-
crates/ui-egui/src/perf_tests.rs | 2 +-
crates/ui-egui/src/shortcuts.rs | 4 --
docs/ui-parity.md | 3 +-
5 files changed, 57 insertions(+), 21 deletions(-)
diff --git a/crates/ui-egui/src/layers_keys_tests.rs b/crates/ui-egui/src/layers_keys_tests.rs
index cb9fe17cc..b89c03fcf 100644
--- a/crates/ui-egui/src/layers_keys_tests.rs
+++ b/crates/ui-egui/src/layers_keys_tests.rs
@@ -1,6 +1,7 @@
-//! Arrow keys in the layers panel once a row has been clicked: up/down through the rows (Shift
-//! extends), left/right to collapse, expand, and go to the parent or first child; a press on the
-//! canvas gives arrows back to nudging. Delete after a click in the Pages list deletes the page.
+//! Arrow keys in the layers panel once F6 has put the keyboard on its rows: up/down through the
+//! rows (Shift extends), left/right to collapse, expand, and go to the parent or first child. After
+//! a click on a row the arrows nudge the layer, as on the canvas. Delete after a click in the Pages
+//! list deletes the page.
use egui::{Event, Key, Modifiers, Pos2, pos2, vec2};
use figcraft_doc::NodeId;
@@ -46,10 +47,29 @@ fn click_row(u: &mut Ui, id: NodeId) {
assert_eq!(sel(u), vec![id]);
}
+/// Presses F6 until the keyboard is on the layers panel, as a keyboard user gets there.
+fn keyboard_into_the_layers(u: &mut Ui) {
+ for _ in 0..crate::a11y::Region::ALL.len() {
+ key(u, Key::F6, false);
+ u.frame(vec![]);
+ if u.app.ui.nav.region == crate::a11y::Region::Layers {
+ return;
+ }
+ }
+ panic!("F6 never reached the layers panel");
+}
+
+/// Selects `id` and moves the keyboard onto its row with F6.
+fn keyboard_to_the_row(u: &mut Ui, id: NodeId) {
+ u.app.run("select.set", json!({"ids": [id]}));
+ u.frame(vec![]);
+ keyboard_into_the_layers(u);
+}
+
#[test]
fn up_and_down_walk_the_rows_and_shift_extends() {
let (mut u, a, frame, _, c) = setup();
- click_row(&mut u, c);
+ keyboard_to_the_row(&mut u, c);
key(&mut u, Key::ArrowDown, false);
assert_eq!(sel(&u), vec![frame]);
key(&mut u, Key::ArrowDown, false);
@@ -103,6 +123,7 @@ fn a_keyboard_shift_range_keeps_an_anchor_covered_by_a_selected_frame() {
let mut want = vec![rect4, frame1];
want.sort();
assert_eq!(got, want, "the pointer range keeps the frame");
+ keyboard_into_the_layers(&mut u);
// Rows: Frame 2, Rect 4, Frame 1, Rect 3, Rect 2. Shift+Down runs from Rect 2 (the anchor).
key(&mut u, Key::ArrowDown, true);
let mut got = sel(&u);
@@ -115,7 +136,7 @@ fn a_keyboard_shift_range_keeps_an_anchor_covered_by_a_selected_frame() {
#[test]
fn left_and_right_open_close_and_move_between_levels() {
let (mut u, _, frame, child, _) = setup();
- click_row(&mut u, frame);
+ keyboard_to_the_row(&mut u, frame);
key(&mut u, Key::ArrowRight, false);
assert!(u.app.ui.expanded.contains(&frame), "Right opens a closed row");
assert_eq!(sel(&u), vec![frame]);
@@ -129,21 +150,38 @@ fn left_and_right_open_close_and_move_between_levels() {
}
#[test]
-fn a_canvas_press_gives_arrows_back_to_nudging() {
+fn a_clicked_row_leaves_the_arrows_to_the_canvas() {
let (mut u, _, _, _, c) = setup();
click_row(&mut u, c);
- assert!(u.app.ui.layers_focus);
- // Press on empty canvas (deselects), then select c from the canvas side and nudge it.
- let p = pos2(900.0, 700.0);
- u.button(p, true);
- u.button(p, false);
- assert!(!u.app.ui.layers_focus);
- u.app.run("select.set", json!({"ids": [c]}));
key(&mut u, Key::ArrowRight, false);
+ assert_eq!(sel(&u), vec![c]);
let doc = u.app.session.doc().unwrap();
assert_eq!(doc.node(c).unwrap().transform.translation().x, 201.0);
}
+#[test]
+fn down_on_a_clicked_row_moves_it_one_place_in_a_vertical_auto_layout() {
+ let mut s = Session::new();
+ let column = id(s.execute("frame.create", &json!({"x": 0, "y": 0, "width": 100, "height": 200, "name": "Column"})).unwrap());
+ let rows: Vec = (0..3)
+ .map(|i| id(s.execute("shape.rectangle", &json!({"x": 0, "y": i * 30, "width": 80, "height": 20, "parent": column})).unwrap()))
+ .collect();
+ s.execute("layout.add", &json!({"ids": [column], "direction": "vertical"})).unwrap();
+ s.execute("select.none", &json!({})).unwrap();
+ let mut u = Ui::new(s);
+ u.app.ui.expanded.insert(column);
+ u.frame(vec![]);
+ click_row(&mut u, rows[1]);
+ key(&mut u, Key::ArrowDown, false);
+ let order = u.app.session.doc().unwrap().node(column).unwrap().children.clone();
+ assert_eq!(order, [rows[0], rows[2], rows[1]]);
+ assert_eq!(sel(&u), vec![rows[1]]);
+ key(&mut u, Key::ArrowUp, false);
+ key(&mut u, Key::ArrowUp, false);
+ let order = u.app.session.doc().unwrap().node(column).unwrap().children.clone();
+ assert_eq!(order, [rows[1], rows[0], rows[2]]);
+}
+
/// The middle of `page`'s row in the Pages list, found by clicking down the list until it opens;
/// then back to `back`.
fn page_row(u: &mut Ui, page: NodeId, back: NodeId) -> Pos2 {
diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs
index 32d859f6c..88b173701 100644
--- a/crates/ui-egui/src/lib.rs
+++ b/crates/ui-egui/src/lib.rs
@@ -550,8 +550,9 @@ pub struct UiState {
pub layer_search: bool,
pub layer_filter: String,
pub layer_anchor: Option,
- /// The layers panel has the keyboard: arrow keys move through its rows instead of nudging
- /// (set by a click on a row, cleared by a press on the canvas).
+ /// A layer row was clicked last: Shift+F10 opens the context menu at its row (set by a click on
+ /// a row, cleared by a press on the canvas). Arrow keys still nudge; they move through the rows
+ /// only once F6 has put the keyboard on the layers panel.
pub layers_focus: bool,
/// The file (its `uid`) whose pages list has the keyboard: Delete with no layers selected deletes
/// its current page (set by a click on a page row or the add-page button, cleared by a click on a
diff --git a/crates/ui-egui/src/perf_tests.rs b/crates/ui-egui/src/perf_tests.rs
index eba5e68cd..bbcee8408 100644
--- a/crates/ui-egui/src/perf_tests.rs
+++ b/crates/ui-egui/src/perf_tests.rs
@@ -114,10 +114,10 @@ fn report(layers: usize) {
let open: Vec = b.app.session.doc().unwrap().nodes().filter(|n| !n.children.is_empty()).map(|n| n.id).collect();
b.app.ui.expanded.extend(open);
rows.push(("first frame, every layer expanded", b.frame(vec![])));
- b.app.ui.layers_focus = true;
let top = b.app.session.doc().ok().and_then(|d| d.node(page)?.children.last().copied());
b.app.session.set_selection(top.into_iter().collect());
b.frame(vec![]);
+ b.frame(key(Key::F6, Modifiers::SHIFT));
rows.push(("arrow key down the expanded layers", b.mean(30, |_| key(Key::ArrowDown, Modifiers::NONE))));
b.app.ui.expanded.clear();
b.frame(vec![]);
diff --git a/crates/ui-egui/src/shortcuts.rs b/crates/ui-egui/src/shortcuts.rs
index 1cac67b4b..a3e6a3ed3 100644
--- a/crates/ui-egui/src/shortcuts.rs
+++ b/crates/ui-egui/src/shortcuts.rs
@@ -476,10 +476,6 @@ fn key_event(app: &mut FigApp, key: Key, physical: Option, m: Modifiers, re
}
return true;
}
- // Arrows move through the layers panel while it has the keyboard.
- if app.ui.layers_focus && !m.command && !m.alt && crate::layers::key_nav(app, key, m.shift) {
- return true;
- }
// Arrow nudges, Alt held too (measuring stays on while the selection moves); with nothing
// selected the arrows pan the view.
let (dx, dy) = match key {
diff --git a/docs/ui-parity.md b/docs/ui-parity.md
index d756e71b0..d560157c1 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-19 · **Change:** minor (after a click on a layer row the arrow keys nudge the selection, or move a layer in an auto layout flow one place, as in Figma; the rows take the arrows once they have the keyboard (F6); 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-19 | patch | M5: a click on a row in the Layers panel gave the arrow keys to the rows, so Up and Down moved the selection through the list and Left and Right opened and closed rows. A layer picked there couldn't be nudged, nor moved up or down its vertical auto layout frame. As in Figma, where a locked layer picked in the Layers panel is the one the arrows don't move (row of 2026-11-10), a clicked row now leaves the arrows to the canvas. Walking the rows with the arrows is still there for the keyboard: F6 into the Layers panel puts the keyboard on the selected row. Shift+F10 after a click still opens the menu at the row. Tests: `layers_keys_tests::a_clicked_row_leaves_the_arrows_to_the_canvas`, `down_on_a_clicked_row_moves_it_one_place_in_a_vertical_auto_layout`; the row-walking tests now reach the rows by F6 |
| 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 85de85d5692f63d00a7264353b3a70ef5f01670a Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Thu, 19 Nov 2026 15:27:42 -0500
Subject: [PATCH 12/59] M3: Paste with a variant's set selected adds the copied
variants to it
Copying a variant and pasting with that variant, a layer in it or its set
selected pasted an instance on the page: the set was not a place paste
could put layers, and a copied main component pastes as an instance of
it. Copied variants of one set now paste into that set as new variants
(deep copies, like Duplicate makes), under the copied variants where they
are now and below the lowest variant with a gap of 20 as Add variant
places one, and the set grows to hold them.
Only a plain edit.paste with the copied variants' own set, or a layer in
it, selected does this: paste decides it and passes it to paste_into's
worker, which also checks the target is that set. Inferring it from the
parent being a component set made copies of the mains for every other
paste into a set too. Those keep making instances: a variant pasted with
another set selected, a main that is no variant pasted with a set
selected, Paste over and Paste to replace on a sibling variant, and an
explicit parent, even the variant's own set. Each has a test.
copying_a_variant_pastes_an_instance_but_copying_its_set_keeps_the_components
now pastes with nothing selected for its instance case.
---
crates/engine/src/cmd/component.rs | 1 +
crates/engine/src/cmd/component/variants.rs | 2 +-
crates/engine/src/cmd/edit/clipboard.rs | 38 ++++++-
.../engine/src/components_behaviour_tests.rs | 103 ++++++++++++++++++
docs/components-parity.md | 5 +-
5 files changed, 144 insertions(+), 5 deletions(-)
diff --git a/crates/engine/src/cmd/component.rs b/crates/engine/src/cmd/component.rs
index f68fac714..c726613b3 100644
--- a/crates/engine/src/cmd/component.rs
+++ b/crates/engine/src/cmd/component.rs
@@ -24,6 +24,7 @@ use instance::{detach, make_slot, push_changes, remove_slot, reset_instance, res
pub(crate) use instance::{swap_at, swap_instance};
use props::{add_prop, bind_prop, delete_prop, edit_prop, set_props};
pub(crate) use props::{apply_prop_bindings, check_prop_binding, describe_props};
+pub(crate) use variants::fit_set;
use variants::{add_variant, combine, create_set};
pub use variants::{can_add_variant, can_combine_variants, can_create_set};
diff --git a/crates/engine/src/cmd/component/variants.rs b/crates/engine/src/cmd/component/variants.rs
index be43bced0..3125daf12 100644
--- a/crates/engine/src/cmd/component/variants.rs
+++ b/crates/engine/src/cmd/component/variants.rs
@@ -166,7 +166,7 @@ pub(super) fn create_set(s: &mut Session, p: &Value) -> Result {
}
/// Grow a component set so it wraps its variants with 20 px of padding (right and bottom).
-pub(super) fn fit_set(doc: &mut Document, set: NodeId) {
+pub(crate) fn fit_set(doc: &mut Document, set: NodeId) {
let Some(kids) = doc.node(set).map(|n| n.children.clone()) else { return };
let (mut w, mut h) = (0.0f64, 0.0f64);
for c in kids {
diff --git a/crates/engine/src/cmd/edit/clipboard.rs b/crates/engine/src/cmd/edit/clipboard.rs
index 09c79190b..98d3eff25 100644
--- a/crates/engine/src/cmd/edit/clipboard.rs
+++ b/crates/engine/src/cmd/edit/clipboard.rs
@@ -221,6 +221,14 @@ pub(super) fn cut(s: &mut Session, p: &Value) -> Result {
/// Paste the clipboard under `parent` with the copied top-left moved to `at` (page coords).
pub fn paste_into(s: &mut Session, parent: NodeId, at: Option<(f64, f64)>) -> Result> {
+ paste_layers(s, parent, at, false)
+}
+
+/// [`paste_into`]. With `as_variants`, copied variants pasted into `parent`, their own set, are
+/// deep copies (new variants, as Duplicate makes) and the set grows to hold them. Only a plain
+/// paste with that set, or a layer in it, selected asks for this; every other paste of a copied
+/// main, into another set too, still makes an instance.
+fn paste_layers(s: &mut Session, parent: NodeId, at: Option<(f64, f64)>, as_variants: bool) -> Result> {
let clip = s.clipboard.clone();
if clip.nodes.is_empty() {
return Err(EngineError::Disabled("edit.paste".into(), "the clipboard is empty".into()));
@@ -238,10 +246,12 @@ pub fn paste_into(s: &mut Session, parent: NodeId, at: Option<(f64, f64)>) -> Re
(Some((x, y)), Some(b)) => Affine::translate((x - b.x0, y - b.y0)),
_ => Affine::IDENTITY,
};
+ let into_set = as_variants && copy_local && copied_variants_set(doc, &clip.nodes) == Some(parent);
let mut out = Vec::new();
let mut all = BTreeMap::new();
for (root, nodes) in &clip.nodes {
if copy_local
+ && !into_set
&& clip.copied_components.contains(root)
&& let Some(n) = nodes.first().filter(|n| matches!(n.kind, NodeKind::Component { .. }))
&& doc.node(*root).is_some_and(|n| matches!(n.kind, NodeKind::Component { .. }))
@@ -264,6 +274,9 @@ pub fn paste_into(s: &mut Session, parent: NodeId, at: Option<(f64, f64)>) -> Re
out.push(doc.paste_nodes(&nodes, &map, *root, into, None)?);
all.extend(map);
}
+ if into_set {
+ crate::cmd::component::fit_set(doc, parent);
+ }
// Board connectors pasted with what they join join the pasted copies.
let originals: Vec<(NodeId, figcraft_doc::BoardItem)> =
clip.nodes.iter().flat_map(|(_, nodes)| nodes).filter_map(|n| Some((*all.get(&n.id)?, n.board.clone()?))).collect();
@@ -286,7 +299,16 @@ pub(super) fn paste(s: &mut Session, p: &Value) -> Result {
let sel = s.selection();
let doc = s.doc()?;
let copy_local = s.ds()?.uid == s.clipboard.source_doc;
- let target = id(p, "parent").or_else(|| {
+ let variants_set = copied_variants_set(doc, &s.clipboard.nodes)
+ .filter(|set| copy_local && id(p, "parent").is_none() && !sel.is_empty() && sel.iter().all(|i| doc.is_ancestor(*set, *i)));
+ // Where the copied variants are now, not where they were copied: the set may have moved since.
+ let below_the_variants = variants_set.and_then(|set| {
+ let copied: Vec = s.clipboard.nodes.iter().map(|(root, _)| *root).collect();
+ let left = doc.bounds_of(&copied)?.x0;
+ let bottom = doc.node(set)?.children.iter().filter_map(|c| doc.world_bounds(*c)).map(|r| r.y1).reduce(f64::max)?;
+ Some((left, bottom + 20.0))
+ });
+ let target = id(p, "parent").or(variants_set).or_else(|| {
sel.first()
.copied()
.filter(|i| {
@@ -301,6 +323,7 @@ pub(super) fn paste(s: &mut Session, p: &Value) -> Result {
let parent = target.unwrap_or(page);
let at = match (num(p, "x"), num(p, "y")) {
(Some(x), Some(y)) => Some((x, y)),
+ _ if below_the_variants.is_some() => below_the_variants,
_ => {
let b = s.clipboard.bounds;
match (target, b) {
@@ -323,7 +346,7 @@ pub(super) fn paste(s: &mut Session, p: &Value) -> Result {
}
}
};
- let ids = paste_into(s, parent, at)?;
+ let ids = paste_layers(s, parent, at, variants_set.is_some())?;
if let Some(sel) = sibling_of {
let above = s.doc()?.index_in_parent(sel).map(|ix| ix + 1);
move_above(s, &ids, parent, above)?;
@@ -360,6 +383,17 @@ fn move_above(s: &mut Session, ids: &[NodeId], parent: NodeId, above: Option)]) -> Option {
+ let mut sets = copied.iter().map(|(root, _)| {
+ let n = doc.node(*root).filter(|n| matches!(n.kind, NodeKind::Component { .. }))?;
+ n.parent.filter(|set| doc.node(*set).is_some_and(|p| matches!(p.kind, NodeKind::ComponentSet { .. })))
+ });
+ let first = sets.next()??;
+ sets.all(|set| set == Some(first)).then_some(first)
+}
+
pub(super) fn paste_over(s: &mut Session, _p: &Value) -> Result {
let sel = s.selection();
let page = s.page()?;
diff --git a/crates/engine/src/components_behaviour_tests.rs b/crates/engine/src/components_behaviour_tests.rs
index e8dda9e95..6cc3a7e85 100644
--- a/crates/engine/src/components_behaviour_tests.rs
+++ b/crates/engine/src/components_behaviour_tests.rs
@@ -115,6 +115,7 @@ fn copying_a_variant_pastes_an_instance_but_copying_its_set_keeps_the_components
let (set, _, hover) = button_set(&mut s);
ex(&mut s, "select.set", json!({"ids": [hover]}));
ex(&mut s, "edit.copy", json!({}));
+ ex(&mut s, "select.set", json!({"ids": []}));
let pasted = crate::params::id_of(&ex(&mut s, "edit.paste", json!({}))["ids"][0]).unwrap();
assert_eq!(component_of(&s, pasted), hover);
assert_eq!(node(&s, pasted).name, node(&s, set).name);
@@ -241,6 +242,108 @@ fn alt_dragging_a_main_component_copies_an_instance() {
healthy(&s);
}
+#[test]
+fn pasting_a_variant_with_its_set_selected_adds_a_variant_below_the_others() {
+ let mut s = Session::new();
+ let (set, _, hover) = button_set(&mut s);
+ let bounds = |s: &Session, i: NodeId| s.doc().unwrap().world_bounds(i).unwrap();
+ let named = |s: &Session, i: NodeId, name: &str| kids(s, i).into_iter().find(|c| node(s, *c).name == name).unwrap();
+ ex(&mut s, "select.set", json!({"ids": [hover]}));
+ ex(&mut s, "edit.copy", json!({}));
+ let bottom = kids(&s, set).iter().map(|k| bounds(&s, *k).y1).fold(f64::MIN, f64::max);
+ let pasted = crate::params::id_of(&ex(&mut s, "edit.paste", json!({}))["ids"][0]).unwrap();
+ assert!(matches!(node(&s, pasted).kind, NodeKind::Component { .. }));
+ assert_eq!(node(&s, pasted).parent, Some(set));
+ assert_eq!(kids(&s, set).len(), 3);
+ assert_eq!(chars(&s, named(&s, pasted, "Label")), "Hover");
+ let (b, h) = (bounds(&s, pasted), bounds(&s, hover));
+ assert_eq!((b.x0, b.y0), (h.x0, bottom + 20.0));
+ assert!(bounds(&s, set).y1 >= b.y1, "the set grows to hold it");
+
+ let label = named(&s, hover, "Label");
+ ex(&mut s, "select.set", json!({"ids": [label]}));
+ let second = crate::params::id_of(&ex(&mut s, "edit.paste", json!({}))["ids"][0]).unwrap();
+ assert_eq!(node(&s, second).parent, Some(set), "a layer inside a variant selected");
+ assert_eq!(bounds(&s, second).y0, b.y1 + 20.0);
+ ex(&mut s, "edit.undo", json!({}));
+ assert_eq!(kids(&s, set).len(), 3);
+ healthy(&s);
+}
+
+#[test]
+fn a_variant_pasted_into_its_set_after_the_set_moved_lands_under_the_variant() {
+ let mut s = Session::new();
+ let (set, _, hover) = button_set(&mut s);
+ let bounds = |s: &Session, i: NodeId| s.doc().unwrap().world_bounds(i).unwrap();
+ ex(&mut s, "select.set", json!({"ids": [hover]}));
+ ex(&mut s, "edit.copy", json!({}));
+ let x = bounds(&s, set).x0;
+ ex(&mut s, "node.set", json!({"id": set, "props": {"x": x + 1000.0}}));
+ let pasted = crate::params::id_of(&ex(&mut s, "edit.paste", json!({}))["ids"][0]).unwrap();
+ let (b, h, sb) = (bounds(&s, pasted), bounds(&s, hover), bounds(&s, set));
+ assert_eq!(b.x0, h.x0, "under the copied variant where it is now, not where it was copied");
+ assert!(sb.x0 <= b.x0 && sb.x1 >= b.x1 && sb.y1 >= b.y1, "inside the set");
+ healthy(&s);
+}
+
+/// Copy `main`, select `selected` and run `command` with `params`; the first pasted layer.
+fn copy_then(s: &mut Session, main: NodeId, selected: &[NodeId], command: &str, params: Value) -> NodeId {
+ ex(s, "select.set", json!({"ids": [main]}));
+ ex(s, "edit.copy", json!({}));
+ ex(s, "select.set", json!({"ids": selected}));
+ crate::params::id_of(&ex(s, command, params)["ids"][0]).unwrap()
+}
+
+// Only a plain paste with the copied variants' own set, or a layer in it, selected makes new
+// variants. Every other paste of a copied main into a set makes an instance of it there, as
+// before: the tests below.
+
+#[test]
+fn a_variant_pasted_with_another_set_selected_is_an_instance() {
+ let mut s = Session::new();
+ let (set, _, hover) = button_set(&mut s);
+ let (other, ..) = button_set(&mut s);
+ ex(&mut s, "node.set", json!({"id": other, "props": {"y": 300}}));
+ let pasted = copy_then(&mut s, hover, &[other], "edit.paste", json!({}));
+ assert_eq!(component_of(&s, pasted), hover);
+ assert_eq!(node(&s, pasted).parent, Some(other));
+ assert_eq!((kids(&s, set).len(), kids(&s, other).len()), (2, 3));
+ healthy(&s);
+}
+
+#[test]
+fn a_main_that_is_no_variant_pasted_with_a_set_selected_is_an_instance() {
+ let mut s = Session::new();
+ let (set, ..) = button_set(&mut s);
+ let k = kit(&mut s);
+ let pasted = copy_then(&mut s, k.card, &[set], "edit.paste", json!({}));
+ assert_eq!(component_of(&s, pasted), k.card);
+ assert_eq!(node(&s, pasted).parent, Some(set));
+ healthy(&s);
+}
+
+#[test]
+fn a_variant_pasted_with_its_own_set_as_an_explicit_parent_is_an_instance() {
+ let mut s = Session::new();
+ let (set, _, hover) = button_set(&mut s);
+ let pasted = copy_then(&mut s, hover, &[hover], "edit.paste", json!({"parent": set}));
+ assert_eq!(component_of(&s, pasted), hover);
+ assert_eq!(node(&s, pasted).parent, Some(set));
+ healthy(&s);
+}
+
+#[test]
+fn pasting_over_or_replacing_a_variant_makes_an_instance_of_the_copied_variant() {
+ for command in ["edit.pasteOver", "edit.pasteReplace"] {
+ let mut s = Session::new();
+ let (set, default, hover) = button_set(&mut s);
+ let pasted = copy_then(&mut s, hover, &[default], command, json!({}));
+ assert_eq!(component_of(&s, pasted), hover, "{command} on a variant of the copied variant's set");
+ assert_eq!(node(&s, pasted).parent, Some(set), "{command}");
+ healthy(&s);
+ }
+}
+
#[test]
fn duplicating_a_variant_adds_a_variant_to_its_set() {
let mut s = Session::new();
diff --git a/docs/components-parity.md b/docs/components-parity.md
index fa4d2494e..b5df94b71 100644
--- a/docs/components-parity.md
+++ b/docs/components-parity.md
@@ -1,6 +1,6 @@
# Components, variants, styles and variables parity
-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (a style of one library that reaches a file through another library's component is, in a file linking both, the first library's own bound copy, so its modes colour it (#2414); with a variant selected, its property dropdowns show its own values and choosing one renames only that variant, instead of setting the set's default and moving the variants (#2349); library analytics count insertions and detachments of styles and variables; combining components gives every variant the properties any of them had; renaming a variable group to a path with `/` nests it under a parent group instead of turning the slash into a hyphen (#2353); a group's context menu in the Local variables window has Duplicate group, a copy named after it plus " 2" holding a copy of every variable, in one undo step (#2084); pages take a variable mode: with nothing selected the Design panel's Page section shows a Variable modes section, Auto or a mode of each collection that has more than one, as the help center says ("Apply variable mode" in the Page section of the right sidebar) (#2215); a text style binds a number variable to its weight (#2174); an instance lists only the properties its variant's layers use and long property names are cut to one line (#2022); with several layers selected the Design panel header's component button offers Create multiple components (#2088); the Local variables window selects several variables (click, Shift+click for a range, Cmd/Ctrl+click to toggle, Escape to clear) and delete, move to a group and scope act on the selected local variables in one undo step (#2002); text styles carry paragraph spacing and indent, the list style and the OpenType features, as the Supported in text styles table of Create and apply text styles says (#1829); a layer's effect binding takes only a field its effect has; Go to main component on an instance of a library component opens the library file in a tab and selects the main there; glass effects take variables; Delete on a layer inside an instance hides it as an override instead of being refused, as the help center says: "Figma will only toggle the layer's visibility instead of removing it"; library analytics list how many layers and files use each style and variable; SwiftUI and Compose code names a bound variable by its iOS or Android code syntax; library analytics count insertions and show insertions and detachments over the past 30 days, 90 days or year; a collection of this file can be extended (Extend collection on its row, `variable.extendCollection`), its extension following its edits at once, and extended collections extend again in the file; a typed or stored variable, collection or mode id names only the object with that id (#1613); colour variables can be calculated from other colours per mode — `{alpha}` replaces a colour's alpha, `{mix}` blends two — and follow them (#1280); stored variable and collection references keep their identity when another object is named like their id (follow-up to #1542); a component set's property rows fit the 240 px right panel: variant values wrap two to a line there and every + and − stays in view; opening a file contacts no team library server it names until you check it (#1097); an explicit variables file path (`variable.import`, the `variables` of `file.open` and `file.import`) is refused past 256 MiB or when it isn't a regular file, as the sibling `variables.json` already was (part of #1114); component properties keep the order they were made in when one is renamed, and Make slot asks for the slot's name first (#1536, #1537); components can't contain their own instances, directly or through others (#1084); the instance-swap menus have a search field (#1338); an instance-swap property's default menu scrolls (#1338); variables on a text style's fields from the style editor; instance-swap properties in the component playground; duplicating or Alt-dragging a main component makes an instance of it (#892); a bound colour variable's alpha applies once (#802); variables import reads `variables` outside `meta` and warns when it imports none (#790); variant properties reorder by drag; library files saved right after a read are read again; Hide when publishing note corrected; size and resizing overrides of layers inside instances (#731); variables export in the browser as a download; core editor leftovers: component playground, variables inside styles; layers and assets panels behaviour suite and fixes; extended collections tail; styles and variables behaviour suite and fixes; components behaviour suite and fixes; team libraries on the server, library usage and swapping a library; extended collections, variables import/export, gradient stops and variant properties bound to variables) · **Target:** Figma Design (desktop app 126.10.7)
+> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (copied variants pasted with their own set, or a layer in it, selected join the set as new variants; a style of one library that reaches a file through another library's component is, in a file linking both, the first library's own bound copy, so its modes colour it (#2414); with a variant selected, its property dropdowns show its own values and choosing one renames only that variant, instead of setting the set's default and moving the variants (#2349); library analytics count insertions and detachments of styles and variables; combining components gives every variant the properties any of them had; renaming a variable group to a path with `/` nests it under a parent group instead of turning the slash into a hyphen (#2353); a group's context menu in the Local variables window has Duplicate group, a copy named after it plus " 2" holding a copy of every variable, in one undo step (#2084); pages take a variable mode: with nothing selected the Design panel's Page section shows a Variable modes section, Auto or a mode of each collection that has more than one, as the help center says ("Apply variable mode" in the Page section of the right sidebar) (#2215); a text style binds a number variable to its weight (#2174); an instance lists only the properties its variant's layers use and long property names are cut to one line (#2022); with several layers selected the Design panel header's component button offers Create multiple components (#2088); the Local variables window selects several variables (click, Shift+click for a range, Cmd/Ctrl+click to toggle, Escape to clear) and delete, move to a group and scope act on the selected local variables in one undo step (#2002); text styles carry paragraph spacing and indent, the list style and the OpenType features, as the Supported in text styles table of Create and apply text styles says (#1829); a layer's effect binding takes only a field its effect has; Go to main component on an instance of a library component opens the library file in a tab and selects the main there; glass effects take variables; Delete on a layer inside an instance hides it as an override instead of being refused, as the help center says: "Figma will only toggle the layer's visibility instead of removing it"; library analytics list how many layers and files use each style and variable; SwiftUI and Compose code names a bound variable by its iOS or Android code syntax; library analytics count insertions and show insertions and detachments over the past 30 days, 90 days or year; a collection of this file can be extended (Extend collection on its row, `variable.extendCollection`), its extension following its edits at once, and extended collections extend again in the file; a typed or stored variable, collection or mode id names only the object with that id (#1613); colour variables can be calculated from other colours per mode — `{alpha}` replaces a colour's alpha, `{mix}` blends two — and follow them (#1280); stored variable and collection references keep their identity when another object is named like their id (follow-up to #1542); a component set's property rows fit the 240 px right panel: variant values wrap two to a line there and every + and − stays in view; opening a file contacts no team library server it names until you check it (#1097); an explicit variables file path (`variable.import`, the `variables` of `file.open` and `file.import`) is refused past 256 MiB or when it isn't a regular file, as the sibling `variables.json` already was (part of #1114); component properties keep the order they were made in when one is renamed, and Make slot asks for the slot's name first (#1536, #1537); components can't contain their own instances, directly or through others (#1084); the instance-swap menus have a search field (#1338); an instance-swap property's default menu scrolls (#1338); variables on a text style's fields from the style editor; instance-swap properties in the component playground; duplicating or Alt-dragging a main component makes an instance of it (#892); a bound colour variable's alpha applies once (#802); variables import reads `variables` outside `meta` and warns when it imports none (#790); variant properties reorder by drag; library files saved right after a read are read again; Hide when publishing note corrected; size and resizing overrides of layers inside instances (#731); variables export in the browser as a download; core editor leftovers: component playground, variables inside styles; layers and assets panels behaviour suite and fixes; extended collections tail; styles and variables behaviour suite and fixes; components behaviour suite and fixes; team libraries on the server, library usage and swapping a library; extended collections, variables import/export, gradient stops and variant properties bound to variables) · **Target:** Figma Design (desktop app 126.10.7)
Design systems are why teams adopt Figma. **Components: breadth ~96%, ready ~72%. Styles and
variables: breadth ~95%, ready ~76% (estimated).** QA'd with a synthetic design system of ~300
@@ -18,7 +18,7 @@ accounts).
| What an instance overrides: fills, strokes, effects, visibility, layer names, text content and every text property (resizing included), auto layout padding, gap and alignment, layout grids, export settings, prototype interactions, nested swaps and property values; the size and resizing (hug, fill, fixed, min and max) of layers inside it; an instance's own resizing (hug or fixed) follows its main's unless its size is overridden, measured: a plain instance turns Fixed when its main does (a child set to Fill along the hugging axis) and back to Hug with it, one whose width was typed keeps it, and Fill in its own auto layout parent is its own | done | each kept when the main changes that property, reset per group; opacity and corner radius too (documentation silent); size and resizing are kept through relayout, undo, save, `.fig` and REST import and detach, and stay with the instance on push |
| What it doesn't: position, rotation, constraints and absolute or grid placement of layers inside it, its auto layout direction and other settings, its structure | done | refused with a message, the fields greyed out (Delete on a layer inside an instance hides it instead of removing it, as the help center says it does); the instance itself resizes and its layers follow the main's constraints |
| Component sets / variants, add variant, switch | done | Combine as variants is in the Object menu, and the canvas and layers context menu and the Design panel offer it when two or more main components are selected; Add variant on a main component not in a set yet makes it a set of itself and the new variant, one undo step (#903); components that are variants already aren't combined again (it used to put a set inside a set); combining gives every variant the component properties any of them had, so another variant's layers can be bound to one made before combining |
-| A main's copy within its file is an instance of it: Duplicate, Alt-drag, Copy then Paste | done | a variant duplicated in its set stays a new variant and a whole set copies as a new set; only the copied roots become instances (a main inside a copied frame is copied as a main); Cut then Paste and pastes into other files keep the component (#892) |
+| A main's copy within its file is an instance of it: Duplicate, Alt-drag, Copy then Paste | done | a variant duplicated in its set stays a new variant and a whole set copies as a new set; only the copied roots become instances (a main inside a copied frame is copied as a main); Cut then Paste and pastes into other files keep the component (#892); copied variants pasted with their own set, or a variant or layer in it, selected join the set as new variants, while other pastes into a set, Paste over and Paste to replace still make an instance |
| A component can't contain its own instance, directly or through other components | done | refused with the loop named (creating, placing, swapping, switching variants, moving, pasting, an instance-swap value); each variant counts as its own component, so a variant may hold a sibling variant's instance unless that one leads back to it; a dropped instance lands on the page; a file holding a loop opens with one instance detached and a note, any other file unchanged; a loop merged in a live session stops expanding where an instance would show itself again (#1084) |
| Switching variants keeps overrides where names match and both variants had the same value; text layers keep theirs | done | |
| Default variant: the top-left one (new instances, Assets thumbnail, generated code) | done | |
@@ -80,6 +80,7 @@ updates with overrides kept: `library_tests.rs`, `components_scale_tests.rs`.
| Date | Change | Summary |
|---|---|---|
+| 2026-11-19 | patch | M3: copying a variant and pasting with that variant, a layer in it or its set selected pasted an instance on the page. Copied variants of one set now paste into that set as new variants (deep copies, as Duplicate makes), under the copied variants where they are now, below the lowest variant with the gap of 20 that Add variant leaves, and the set grows to hold them. Every other paste of a copied main still makes an instance: with nothing selected, into another set, a main that isn't a variant pasted with a set selected, Paste over and Paste to replace on a variant, and an explicit `parent` (even the variant's own set). Tests: `pasting_a_variant_with_its_set_selected_adds_a_variant_below_the_others`, `a_variant_pasted_into_its_set_after_the_set_moved_lands_under_the_variant`, `a_variant_pasted_with_another_set_selected_is_an_instance`, `a_main_that_is_no_variant_pasted_with_a_set_selected_is_an_instance`, `a_variant_pasted_with_its_own_set_as_an_explicit_parent_is_an_instance`, `pasting_over_or_replacing_a_variant_makes_an_instance_of_the_copied_variant` |
| 2026-11-19 | patch | M3, #2414: a kit's style used by a component of a second library reached a file linking both as a second, unbound copy (`::S:1`) frozen in the kit's default mode, so a mode set on the kit's collection didn't colour it (from two hops on, every such style). Publishing now keeps the variables the published styles bind and where the file's copies of other libraries' styles, variables and collections came from; importing files such a copy under that library when the file links it, so it is the file's own bound copy. Test: `library_style_hops_tests::a_kit_style_through_another_library_is_the_kits_bound_copy`; the issue's four-file chain renders Brand and Alt everywhere. Grade unchanged. |
| 2026-11-19 | patch | M3, #2349: with one variant of a set selected, the Design panel's variant property dropdowns showed the set's default values, and choosing a value set the default, so the variants swapped places. They now show the selected variant's own values (hover: "This variant's value"), and choosing one renames that variant only; with the set selected they still set its default. Test: `variant_own_value_tests::a_selected_variants_dropdown_shows_and_sets_its_own_value`. Grade unchanged. |
| 2026-11-18 | minor | M3, gap 10: library analytics count insertions and detachments of styles and variables. Applying one, or copying or duplicating content that uses it, inserts it; the Detach button detaches it; an instance counts as its component alone. Show usage and `library.usage` give them per style and variable over the chosen period. Modes aren't counted. Numbers unchanged. Tests: `library_asset_counts_tests`, `library_assets_tests`. |
From 807d78b86d60d84c0b6b4fd92ceca839b483ffd9 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Thu, 19 Nov 2026 00:46:54 -0500
Subject: [PATCH 13/59] M3: A binding the main layer doesn't have stays an
override when instances are relinked
Linking imported instances to their mains (and detaching an outer
instance, or restoring a main) finds overrides by comparing each layer
with its main layer, and compared values only. A layer bound to a
variable its main layer doesn't bind, resolving to the main's colour,
therefore wasn't an override. The next copy or edit of the main reset it
to the main's unbound paint: in a file using a library, a button's icon
lost the colour variable the library's button gave it, while the label
next to it, whose main binds the variable, kept it.
rebase_instance now adds the groups whose bindings differ from the main
layer's (diff::rebound_groups), as record_overrides already did for a
binding made in an instance. record_overrides no longer clears such an
override when an edit sets the value back to the main's (hiding and
showing the fill). Bindings are compared by what they bind, so `fill`
and `fills/0/color` are one binding.
---
crates/engine/src/assets/components.rs | 2 +
crates/engine/src/assets/components/diff.rs | 32 ++++++++++++
.../assets/components/nested_binding_tests.rs | 51 +++++++++++++++++++
crates/engine/src/assets/components/patch.rs | 11 ++--
crates/engine/src/assets/components/rebase.rs | 4 +-
docs/components-parity.md | 3 +-
6 files changed, 98 insertions(+), 5 deletions(-)
create mode 100644 crates/engine/src/assets/components/nested_binding_tests.rs
diff --git a/crates/engine/src/assets/components.rs b/crates/engine/src/assets/components.rs
index 06c82563a..80108045d 100644
--- a/crates/engine/src/assets/components.rs
+++ b/crates/engine/src/assets/components.rs
@@ -338,6 +338,8 @@ pub fn prop_default_value(d: &PropDef) -> Value {
}
}
+#[cfg(test)]
+mod nested_binding_tests;
#[cfg(test)]
mod rebase_source_tests;
diff --git a/crates/engine/src/assets/components/diff.rs b/crates/engine/src/assets/components/diff.rs
index 5c6b7e4c5..9102a38d6 100644
--- a/crates/engine/src/assets/components/diff.rs
+++ b/crates/engine/src/assets/components/diff.rs
@@ -35,6 +35,38 @@ pub(super) fn bindings_of<'a>(n: &'a Node, g: &'a str) -> impl Iterator- bool {
+ let canonical = |m: &Node| -> std::collections::BTreeSet<(String, String)> {
+ bindings_of(m, g)
+ .map(|(k, v)| {
+ let key = crate::cmd::lists::list_binding(k).map_or_else(|| k.clone(), |(l, i, f)| format!("{}/{i}/{f}", l.prefix()));
+ (key, v.clone())
+ })
+ .collect()
+ };
+ canonical(n) != canonical(src)
+}
+
+/// The property groups whose variable bindings differ between layer `n` and its main layer `src`:
+/// overrides even where both resolve to the same value.
+pub(super) fn rebound_groups(n: &Node, src: &Node) -> Vec<&'static str> {
+ let mut compared = Vec::new();
+ let mut out = Vec::new();
+ for k in n.bound.keys().chain(src.bound.keys()) {
+ let Some(g) = binding_group(k) else { continue };
+ if compared.contains(&g) {
+ continue;
+ }
+ compared.push(g);
+ if bound_differently(n, src, g) {
+ out.push(g);
+ }
+ }
+ out
+}
+
/// Property groups that differ between two versions of a node.
pub fn diff_groups(a: &Node, b: &Node) -> Vec<&'static str> {
let mut out = Vec::new();
diff --git a/crates/engine/src/assets/components/nested_binding_tests.rs b/crates/engine/src/assets/components/nested_binding_tests.rs
new file mode 100644
index 000000000..035014dcf
--- /dev/null
+++ b/crates/engine/src/assets/components/nested_binding_tests.rs
@@ -0,0 +1,51 @@
+use serde_json::json;
+
+use super::rebase_instance;
+use super::tests::{button, copy_of, ex, fill, idv, node};
+use crate::{NodeId, Session};
+
+fn bound_shape_in_button() -> (Session, NodeId, NodeId, NodeId, NodeId) {
+ let mut s = Session::new();
+ let (_, shape, button, nested) = button(&mut s);
+ ex(&mut s, "variable.createCollection", json!({"name": "T"}));
+ ex(&mut s, "variable.create", json!({"collection": "T", "name": "ink", "type": "color", "value": "#111111"}));
+ let inner = copy_of(&s, nested, shape);
+ ex(&mut s, "variable.bind", json!({"ids": [inner.0], "field": "fill", "variable": "ink"}));
+ assert!(node(&s, inner).overrides.contains("fills"));
+ (s, shape, button, nested, inner)
+}
+
+#[test]
+fn relinking_an_instance_keeps_a_binding_its_main_lacks_as_an_override() {
+ let (mut s, shape, button, nested, inner) = bound_shape_in_button();
+ let doc = s.ds_mut().unwrap().doc_mut();
+ doc.get_mut(inner).unwrap().overrides.clear();
+ rebase_instance(doc, nested);
+ assert!(node(&s, inner).overrides.contains("fills"), "the same colour from a variable the main doesn't bind");
+ ex(&mut s, "node.set", json!({"id": shape, "props": {"fill": "#FF0000"}}));
+ assert_eq!(fill(&s, inner), "111111", "an edit of the icon's main leaves the bound colour");
+ let placed = idv(&ex(&mut s, "instance.create", json!({"component": button, "x": 400, "y": 400})));
+ let copy = copy_of(&s, placed, inner);
+ assert_eq!(node(&s, copy).bound.values().collect::
>(), [&node(&s, inner).bound["fill"]]);
+}
+
+#[test]
+fn hiding_and_showing_a_bound_fill_keeps_its_override() {
+ let (mut s, _, _, _, inner) = bound_shape_in_button();
+ ex(&mut s, "fill.set", json!({"ids": [inner.0], "index": 0, "visible": false}));
+ ex(&mut s, "fill.set", json!({"ids": [inner.0], "index": 0, "visible": true}));
+ let n = node(&s, inner);
+ assert!(n.bound.contains_key("fill"));
+ assert!(n.overrides.contains("fills"), "the binding still differs from the main's");
+}
+
+#[test]
+fn a_top_level_instance_s_own_resizing_binding_is_not_an_override() {
+ let mut s = Session::new();
+ let (_, _, button, _) = button(&mut s);
+ let placed = idv(&ex(&mut s, "instance.create", json!({"component": button, "x": 400, "y": 400})));
+ let doc = s.ds_mut().unwrap().doc_mut();
+ doc.get_mut(placed).unwrap().bound.insert("minWidth".into(), "VariableID:1:1".into());
+ rebase_instance(doc, placed);
+ assert!(!node(&s, placed).overrides.contains("resizing"), "a top-level instance's resizing is its own");
+}
diff --git a/crates/engine/src/assets/components/patch.rs b/crates/engine/src/assets/components/patch.rs
index 92d2e2f29..1b275721b 100644
--- a/crates/engine/src/assets/components/patch.rs
+++ b/crates/engine/src/assets/components/patch.rs
@@ -1,4 +1,4 @@
-use super::diff::{binding_group, bindings_of, diff_groups, follow_boolean_defaults, geometry_derived, variable_groups};
+use super::diff::{binding_group, bound_differently, diff_groups, follow_boolean_defaults, geometry_derived, rebound_groups, variable_groups};
use super::guard::{own_slot_content, relink_copy};
use super::instances::{copy_group, field_group, sync_instance};
use super::sync::insert_linked;
@@ -179,12 +179,17 @@ fn override_groups(doc: &Document, before: &Document, id: NodeId, n: &Node, b: &
// Binding another variable (or none) where the main binds one is an override.
for (k, _) in b.bound.iter().chain(n.bound.iter()) {
let Some(g) = binding_group(k) else { continue };
- let rebound = b.bound.get(k) != n.bound.get(k) && !bindings_of(n, g).eq(bindings_of(src, g));
+ let rebound = b.bound.get(k) != n.bound.get(k) && bound_differently(n, src, g);
if rebound && !groups.contains(&g) {
groups.push(g);
}
}
- cleared = raw.iter().filter(|g| !matches!(**g, "size" | "position") && !differs.contains(g) && n.overrides.contains(**g)).copied().collect();
+ let rebound = rebound_groups(n, src);
+ cleared = raw
+ .iter()
+ .filter(|g| !matches!(**g, "size" | "position") && !differs.contains(g) && !rebound.contains(g) && n.overrides.contains(**g))
+ .copied()
+ .collect();
if top_root {
cleared.retain(|g| !matches!(*g, "component" | "props"));
}
diff --git a/crates/engine/src/assets/components/rebase.rs b/crates/engine/src/assets/components/rebase.rs
index aa782cb20..b8a6c67c7 100644
--- a/crates/engine/src/assets/components/rebase.rs
+++ b/crates/engine/src/assets/components/rebase.rs
@@ -1,4 +1,4 @@
-use super::diff::{diff_groups, variable_groups};
+use super::diff::{diff_groups, rebound_groups, variable_groups};
use super::instances::{field_group, path_map};
use super::{BTreeMap, BTreeSet, Document, MAX_DEPTH, Node, NodeId, NodeKind, default_instance_name, holds_content};
@@ -216,6 +216,7 @@ pub fn rebase_instance_with(doc: &mut Document, inst: NodeId, mains: &mut MainPa
let mut bound: Vec<&str> = m.prop_refs.keys().map(|f| field_group(f)).collect();
bound.extend(variable_groups(n, m));
overrides.extend(value_groups(m, n).into_iter().filter(|g| !bound.contains(&g.as_str())));
+ overrides.extend(rebound_groups(n, m).into_iter().map(str::to_string));
if matches!((&m.kind, &n.kind), (NodeKind::Instance { component: a, .. }, NodeKind::Instance { component: b, .. }) if a != b) {
overrides.insert("component".into());
}
@@ -233,6 +234,7 @@ pub fn rebase_instance_with(doc: &mut Document, inst: NodeId, mains: &mut MainPa
let mut groups: Vec = value_groups(m, n)
.into_iter()
.filter(|g| !matches!(g.as_str(), "name" | "exports" | "interactions") && !from_variables.contains(&g.as_str()))
+ .chain(rebound_groups(n, m).into_iter().map(str::to_string))
.filter(|g| placed_source.is_some() || !matches!(g.as_str(), "resizing" | "modes"))
.collect();
let named = if placed_source.is_some() { n.name != m.name } else { n.name != default_instance_name(doc, component) };
diff --git a/docs/components-parity.md b/docs/components-parity.md
index fa4d2494e..2e97e1415 100644
--- a/docs/components-parity.md
+++ b/docs/components-parity.md
@@ -1,6 +1,6 @@
# Components, variants, styles and variables parity
-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (a style of one library that reaches a file through another library's component is, in a file linking both, the first library's own bound copy, so its modes colour it (#2414); with a variant selected, its property dropdowns show its own values and choosing one renames only that variant, instead of setting the set's default and moving the variants (#2349); library analytics count insertions and detachments of styles and variables; combining components gives every variant the properties any of them had; renaming a variable group to a path with `/` nests it under a parent group instead of turning the slash into a hyphen (#2353); a group's context menu in the Local variables window has Duplicate group, a copy named after it plus " 2" holding a copy of every variable, in one undo step (#2084); pages take a variable mode: with nothing selected the Design panel's Page section shows a Variable modes section, Auto or a mode of each collection that has more than one, as the help center says ("Apply variable mode" in the Page section of the right sidebar) (#2215); a text style binds a number variable to its weight (#2174); an instance lists only the properties its variant's layers use and long property names are cut to one line (#2022); with several layers selected the Design panel header's component button offers Create multiple components (#2088); the Local variables window selects several variables (click, Shift+click for a range, Cmd/Ctrl+click to toggle, Escape to clear) and delete, move to a group and scope act on the selected local variables in one undo step (#2002); text styles carry paragraph spacing and indent, the list style and the OpenType features, as the Supported in text styles table of Create and apply text styles says (#1829); a layer's effect binding takes only a field its effect has; Go to main component on an instance of a library component opens the library file in a tab and selects the main there; glass effects take variables; Delete on a layer inside an instance hides it as an override instead of being refused, as the help center says: "Figma will only toggle the layer's visibility instead of removing it"; library analytics list how many layers and files use each style and variable; SwiftUI and Compose code names a bound variable by its iOS or Android code syntax; library analytics count insertions and show insertions and detachments over the past 30 days, 90 days or year; a collection of this file can be extended (Extend collection on its row, `variable.extendCollection`), its extension following its edits at once, and extended collections extend again in the file; a typed or stored variable, collection or mode id names only the object with that id (#1613); colour variables can be calculated from other colours per mode — `{alpha}` replaces a colour's alpha, `{mix}` blends two — and follow them (#1280); stored variable and collection references keep their identity when another object is named like their id (follow-up to #1542); a component set's property rows fit the 240 px right panel: variant values wrap two to a line there and every + and − stays in view; opening a file contacts no team library server it names until you check it (#1097); an explicit variables file path (`variable.import`, the `variables` of `file.open` and `file.import`) is refused past 256 MiB or when it isn't a regular file, as the sibling `variables.json` already was (part of #1114); component properties keep the order they were made in when one is renamed, and Make slot asks for the slot's name first (#1536, #1537); components can't contain their own instances, directly or through others (#1084); the instance-swap menus have a search field (#1338); an instance-swap property's default menu scrolls (#1338); variables on a text style's fields from the style editor; instance-swap properties in the component playground; duplicating or Alt-dragging a main component makes an instance of it (#892); a bound colour variable's alpha applies once (#802); variables import reads `variables` outside `meta` and warns when it imports none (#790); variant properties reorder by drag; library files saved right after a read are read again; Hide when publishing note corrected; size and resizing overrides of layers inside instances (#731); variables export in the browser as a download; core editor leftovers: component playground, variables inside styles; layers and assets panels behaviour suite and fixes; extended collections tail; styles and variables behaviour suite and fixes; components behaviour suite and fixes; team libraries on the server, library usage and swapping a library; extended collections, variables import/export, gradient stops and variant properties bound to variables) · **Target:** Figma Design (desktop app 126.10.7)
+> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (a layer inside an instance bound to a variable its main layer doesn't bind keeps that binding as an override when instances are relinked after an import, a detach or a restore, and when its value is set back to the main's, so a library copy or an edit of the main no longer drops it; a style of one library that reaches a file through another library's component is, in a file linking both, the first library's own bound copy, so its modes colour it (#2414); with a variant selected, its property dropdowns show its own values and choosing one renames only that variant, instead of setting the set's default and moving the variants (#2349); library analytics count insertions and detachments of styles and variables; combining components gives every variant the properties any of them had; renaming a variable group to a path with `/` nests it under a parent group instead of turning the slash into a hyphen (#2353); a group's context menu in the Local variables window has Duplicate group, a copy named after it plus " 2" holding a copy of every variable, in one undo step (#2084); pages take a variable mode: with nothing selected the Design panel's Page section shows a Variable modes section, Auto or a mode of each collection that has more than one, as the help center says ("Apply variable mode" in the Page section of the right sidebar) (#2215); a text style binds a number variable to its weight (#2174); an instance lists only the properties its variant's layers use and long property names are cut to one line (#2022); with several layers selected the Design panel header's component button offers Create multiple components (#2088); the Local variables window selects several variables (click, Shift+click for a range, Cmd/Ctrl+click to toggle, Escape to clear) and delete, move to a group and scope act on the selected local variables in one undo step (#2002); text styles carry paragraph spacing and indent, the list style and the OpenType features, as the Supported in text styles table of Create and apply text styles says (#1829); a layer's effect binding takes only a field its effect has; Go to main component on an instance of a library component opens the library file in a tab and selects the main there; glass effects take variables; Delete on a layer inside an instance hides it as an override instead of being refused, as the help center says: "Figma will only toggle the layer's visibility instead of removing it"; library analytics list how many layers and files use each style and variable; SwiftUI and Compose code names a bound variable by its iOS or Android code syntax; library analytics count insertions and show insertions and detachments over the past 30 days, 90 days or year; a collection of this file can be extended (Extend collection on its row, `variable.extendCollection`), its extension following its edits at once, and extended collections extend again in the file; a typed or stored variable, collection or mode id names only the object with that id (#1613); colour variables can be calculated from other colours per mode — `{alpha}` replaces a colour's alpha, `{mix}` blends two — and follow them (#1280); stored variable and collection references keep their identity when another object is named like their id (follow-up to #1542); a component set's property rows fit the 240 px right panel: variant values wrap two to a line there and every + and − stays in view; opening a file contacts no team library server it names until you check it (#1097); an explicit variables file path (`variable.import`, the `variables` of `file.open` and `file.import`) is refused past 256 MiB or when it isn't a regular file, as the sibling `variables.json` already was (part of #1114); component properties keep the order they were made in when one is renamed, and Make slot asks for the slot's name first (#1536, #1537); components can't contain their own instances, directly or through others (#1084); the instance-swap menus have a search field (#1338); an instance-swap property's default menu scrolls (#1338); variables on a text style's fields from the style editor; instance-swap properties in the component playground; duplicating or Alt-dragging a main component makes an instance of it (#892); a bound colour variable's alpha applies once (#802); variables import reads `variables` outside `meta` and warns when it imports none (#790); variant properties reorder by drag; library files saved right after a read are read again; Hide when publishing note corrected; size and resizing overrides of layers inside instances (#731); variables export in the browser as a download; core editor leftovers: component playground, variables inside styles; layers and assets panels behaviour suite and fixes; extended collections tail; styles and variables behaviour suite and fixes; components behaviour suite and fixes; team libraries on the server, library usage and swapping a library; extended collections, variables import/export, gradient stops and variant properties bound to variables) · **Target:** Figma Design (desktop app 126.10.7)
Design systems are why teams adopt Figma. **Components: breadth ~96%, ready ~72%. Styles and
variables: breadth ~95%, ready ~76% (estimated).** QA'd with a synthetic design system of ~300
@@ -80,6 +80,7 @@ updates with overrides kept: `library_tests.rs`, `components_scale_tests.rs`.
| Date | Change | Summary |
|---|---|---|
+| 2026-11-19 | patch | M3: overrides found by comparing a layer with its main (`rebase_instance`: linking instances after a Figma or REST import, detaching an outer instance, restoring a main) counted values only, so a layer bound to a variable the main layer doesn't bind, resolving to the main's colour, wasn't an override; the next copy or edit of the main (a library update reaching another file) reset it to the main's unbound paint. Icons inside buttons of a design system imported from Figma lost their colour variable this way in the files using it. A binding that differs from the main's is now an override there, and an edit that sets the value back to the main's (hiding and showing the fill) no longer clears an override the binding still makes; `fill` and `fills/0/color` count as one binding. Tests: `nested_binding_tests` |
| 2026-11-19 | patch | M3, #2414: a kit's style used by a component of a second library reached a file linking both as a second, unbound copy (`::S:1`) frozen in the kit's default mode, so a mode set on the kit's collection didn't colour it (from two hops on, every such style). Publishing now keeps the variables the published styles bind and where the file's copies of other libraries' styles, variables and collections came from; importing files such a copy under that library when the file links it, so it is the file's own bound copy. Test: `library_style_hops_tests::a_kit_style_through_another_library_is_the_kits_bound_copy`; the issue's four-file chain renders Brand and Alt everywhere. Grade unchanged. |
| 2026-11-19 | patch | M3, #2349: with one variant of a set selected, the Design panel's variant property dropdowns showed the set's default values, and choosing a value set the default, so the variants swapped places. They now show the selected variant's own values (hover: "This variant's value"), and choosing one renames that variant only; with the set selected they still set its default. Test: `variant_own_value_tests::a_selected_variants_dropdown_shows_and_sets_its_own_value`. Grade unchanged. |
| 2026-11-18 | minor | M3, gap 10: library analytics count insertions and detachments of styles and variables. Applying one, or copying or duplicating content that uses it, inserts it; the Detach button detaches it; an instance counts as its component alone. Show usage and `library.usage` give them per style and variable over the chosen period. Modes aren't counted. Numbers unchanged. Tests: `library_asset_counts_tests`, `library_assets_tests`. |
From 6c590e4e8913721a9484fe06077fc13c4cf2b856 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Thu, 19 Nov 2026 15:41:56 -0500
Subject: [PATCH 14/59] M3: Several selected instances show and set the
properties they share
With two or more instances selected the Design panel showed no instance
properties, so changing a variant or a property meant selecting each
instance in turn. instance.setProperties already took several ids.
The panel now shows the variant, boolean, text and instance-swap
properties the selected instances share, matched by name and type. A
variant property lists only the values every one of their sets has, so
the command can't be refused for one of them. Where the values differ
the row reads Mixed (a dropdown's label, the text field's placeholder,
the checkbox's third state), and a value chosen there is set on every
selected instance in one step. A selection with any layer that isn't an
instance shows none of this. Slots are filled one instance at a time,
so their rows show only for one.
A single instance goes through the same code with one id. One
difference: a single instance's slot property whose slot can't be
found now shows no row, where it showed a label with nothing beside it.
swap_dropdown takes `mixed` to label such a row.
A text field that reads Mixed changes nothing when committed empty: the
field reports its text on every Enter or focus loss, edited or not, so
an empty commit there can't be told from a click in and out.
---
.../src/instances_shared_props_tests.rs | 77 ++++++++
crates/ui-egui/src/lib.rs | 2 +
crates/ui-egui/src/panels/component_panel.rs | 173 +++++++++++++-----
crates/ui-egui/src/panels/dev_mode.rs | 3 +-
docs/components-parity.md | 3 +-
5 files changed, 215 insertions(+), 43 deletions(-)
create mode 100644 crates/ui-egui/src/instances_shared_props_tests.rs
diff --git a/crates/ui-egui/src/instances_shared_props_tests.rs b/crates/ui-egui/src/instances_shared_props_tests.rs
new file mode 100644
index 000000000..225fc184c
--- /dev/null
+++ b/crates/ui-egui/src/instances_shared_props_tests.rs
@@ -0,0 +1,77 @@
+use egui::accesskit::{Node, Role};
+use figcraft_doc::{NodeId, NodeKind};
+use figcraft_engine::Session;
+use serde_json::json;
+
+use crate::component_swap_default_tests::{centre, click, tree};
+use crate::layers_drag_tests::Ui;
+
+fn id(v: serde_json::Value) -> NodeId {
+ NodeId(v["id"].as_u64().unwrap())
+}
+
+fn combos(nodes: &[Node]) -> Vec {
+ nodes.iter().filter(|n| n.role() == Role::ComboBox).filter_map(|n| n.value().map(str::to_string)).collect()
+}
+
+fn small_and_large_instances_selected(with_a_rectangle: bool) -> (Ui, Vec<(String, NodeId)>, Vec) {
+ let mut s = Session::new();
+ let mut variants = Vec::new();
+ for (k, name) in ["Size=S, State=Default", "Size=L, State=Default", "Size=S, State=Hover", "Size=L, State=Hover"].iter().enumerate() {
+ let f = id(s.execute("frame.create", &json!({"x": 0, "y": 20 + k * 44, "width": 80, "height": 30, "name": name})).unwrap());
+ variants.push((name.to_string(), id(s.execute("component.create", &json!({"ids": [f]})).unwrap())));
+ }
+ s.execute("component.combineVariants", &json!({"ids": variants.iter().map(|v| v.1).collect::>()})).unwrap();
+ let small = id(s.execute("instance.create", &json!({"component": variants[0].1, "x": 300, "y": 20})).unwrap());
+ let large = id(s.execute("instance.create", &json!({"component": variants[1].1, "x": 300, "y": 80})).unwrap());
+ let mut selected = vec![small, large];
+ if with_a_rectangle {
+ selected.push(id(s.execute("shape.rectangle", &json!({"x": 500, "y": 20, "width": 20, "height": 20})).unwrap()));
+ }
+ s.execute("select.set", &json!({"ids": selected})).unwrap();
+ let u = Ui::new(s);
+ u.ctx.enable_accesskit();
+ (u, variants, vec![small, large])
+}
+
+fn main_of(u: &Ui, instance: NodeId) -> NodeId {
+ match &u.app.session.doc().unwrap().node(instance).unwrap().kind {
+ NodeKind::Instance { component, .. } => *component,
+ _ => panic!("not an instance"),
+ }
+}
+
+fn pick(u: &mut Ui, shown: &str, value: &str) {
+ let nodes = tree(u);
+ let dropdown = nodes.iter().find(|n| n.role() == Role::ComboBox && n.value() == Some(shown)).unwrap_or_else(|| panic!("a {shown} dropdown"));
+ click(u, centre(dropdown));
+ let nodes = tree(u);
+ let item = nodes
+ .iter()
+ .find(|n| n.label() == Some(value) && !matches!(n.role(), Role::ComboBox | Role::TextInput) && n.bounds().is_some())
+ .unwrap_or_else(|| panic!("{value} in the menu"));
+ click(u, centre(item));
+}
+
+#[test]
+fn two_selected_instances_show_their_shared_variant_properties_and_set_them_together() {
+ let (mut u, variants, instances) = small_and_large_instances_selected(false);
+ let variant = |name: &str| variants.iter().find(|v| v.0 == name).unwrap().1;
+
+ let shown = combos(&tree(&mut u));
+ assert!(shown.contains(&"Mixed".to_string()), "Size differs between them: {shown:?}");
+ assert!(shown.contains(&"Default".to_string()), "State is the same: {shown:?}");
+
+ pick(&mut u, "Mixed", "L");
+ assert_eq!(instances.iter().map(|i| main_of(&u, *i)).collect::>(), [variant("Size=L, State=Default"); 2]);
+
+ pick(&mut u, "Default", "Hover");
+ assert_eq!(instances.iter().map(|i| main_of(&u, *i)).collect::>(), [variant("Size=L, State=Hover"); 2]);
+}
+
+#[test]
+fn instances_selected_with_a_plain_layer_show_no_instance_properties() {
+ let (mut u, _, _) = small_and_large_instances_selected(true);
+ let shown = combos(&tree(&mut u));
+ assert!(!shown.iter().any(|v| v == "Mixed" || v == "Default"), "no property rows: {shown:?}");
+}
diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs
index 32d859f6c..48cb7902e 100644
--- a/crates/ui-egui/src/lib.rs
+++ b/crates/ui-egui/src/lib.rs
@@ -150,6 +150,8 @@ mod import_report_tests;
#[cfg(test)]
mod inspect_fields_tests;
#[cfg(test)]
+mod instances_shared_props_tests;
+#[cfg(test)]
mod layers_behaviour_tests;
#[cfg(test)]
mod layers_component_rows_tests;
diff --git a/crates/ui-egui/src/panels/component_panel.rs b/crates/ui-egui/src/panels/component_panel.rs
index 08f5c543d..ed6398d73 100644
--- a/crates/ui-egui/src/panels/component_panel.rs
+++ b/crates/ui-egui/src/panels/component_panel.rs
@@ -31,6 +31,7 @@ use crate::widgets;
pub fn instance_section(app: &mut FigApp, ui: &mut Ui, doc: &Document, sel: &[NodeId]) {
let [id] = sel else {
combine_ui(app, ui, doc, sel);
+ instances_ui(app, ui, doc, sel);
return;
};
let Some(n) = doc.node(*id) else { return };
@@ -712,7 +713,7 @@ fn instance_ui(app: &mut FigApp, ui: &mut Ui, doc: &Document, n: &Node) {
}
});
}
- instance_props(app, ui, doc, n, &comps);
+ instance_props(app, ui, doc, &[n.id], &comps);
// Exposed nested instances: their properties, under their names.
if !nested {
for c in figcraft_engine::components::exposed_copies(doc, id) {
@@ -722,7 +723,7 @@ fn instance_ui(app: &mut FigApp, ui: &mut Ui, doc: &Document, n: &Node) {
icons::paint(ui.painter(), r, Icon::Instance, crate::theme::COMPONENT);
ui.label(egui::RichText::new(&cn.name).font(semibold(11.0)).color(t.text));
});
- instance_props(app, ui, doc, cn, &comps);
+ instance_props(app, ui, doc, &[cn.id], &comps);
}
}
}
@@ -732,38 +733,120 @@ fn nested_in_main(doc: &Document, id: NodeId) -> bool {
!inside_instance(doc, id) && figcraft_engine::components::owning_component(doc, id).is_some_and(|c| c != id)
}
-/// Variant and component property controls for instance `n`.
-fn instance_props(app: &mut FigApp, ui: &mut Ui, doc: &Document, n: &Node, comps: &[(NodeId, String)]) {
- let NodeKind::Instance { component, props } = &n.kind else { return };
- let id = n.id;
- let set = variant_set(doc, *component);
- let slots = slots_of(doc, id);
+/// The Instance section for a selection of two or more instances: the properties they share. A
+/// selection with any other layer shows nothing.
+fn instances_ui(app: &mut FigApp, ui: &mut Ui, doc: &Document, sel: &[NodeId]) {
+ if sel.len() < 2 || !sel.iter().all(|id| matches!(doc.node(*id).map(|n| &n.kind), Some(NodeKind::Instance { .. }))) {
+ return;
+ }
+ let t = Tokens::get(ui.ctx());
+ let comps = local_components(app, ui, doc);
+ widgets::separator(ui);
+ row(ui, 36.0, |ui| {
+ ui.label(egui::RichText::new(tr("Instance")).font(semibold(11.0)).color(t.text));
+ });
+ instance_props(app, ui, doc, sel, &comps);
+}
+
+/// A variant property the selected instances share: the values every one of their sets has, and
+/// the current value, None when it differs between them (Mixed).
+struct SharedVariantProp {
+ name: String,
+ values: Vec,
+ current: Option,
+}
+
+/// A boolean, text, instance-swap or slot property the selected instances share, by name and type:
+/// its definition (the first instance's) and the value, None when it differs between them (Mixed).
+struct SharedProp {
+ name: String,
+ def: PropDef,
+ value: Option,
+}
+
+/// The variant and other properties of instance `id` with its own values (a property it doesn't
+/// set has its default). None when `id` isn't an instance.
+fn own_props(doc: &Document, id: NodeId) -> Option<(Vec, Vec)> {
+ let Some(NodeKind::Instance { component, props }) = doc.node(id).map(|n| &n.kind) else { return None };
+ let current = doc.node(*component).map(|c| variant_props(&c.name)).unwrap_or_default();
+ let variants = variant_set(doc, *component)
+ .map(|set| variant_options(doc, set))
+ .unwrap_or_default()
+ .into_iter()
+ .map(|(name, values)| SharedVariantProp { current: Some(current.get(&name).cloned().unwrap_or_default()), name, values })
+ .collect();
+ let others = instance_prop_list(doc, *component)
+ .into_iter()
+ .map(|(name, def)| {
+ let value = props.get(&name).cloned().unwrap_or_else(|| figcraft_engine::components::prop_default_value(&def));
+ SharedProp { name, def, value: Some(value) }
+ })
+ .collect();
+ Some((variants, others))
+}
+
+/// The properties every instance in `ids` has, in the first one's order, with the values they share;
+/// nothing when any of `ids` isn't an instance.
+fn shared_props(doc: &Document, ids: &[NodeId]) -> (Vec, Vec) {
+ let Some((first, rest)) = ids.split_first() else { return Default::default() };
+ let Some((mut variants, mut others)) = own_props(doc, *first) else { return Default::default() };
+ for id in rest {
+ let Some((own_variants, own_others)) = own_props(doc, *id) else { return Default::default() };
+ variants.retain_mut(|shared| {
+ let Some(own) = own_variants.iter().find(|o| o.name == shared.name) else { return false };
+ shared.values.retain(|v| own.values.contains(v));
+ if shared.current != own.current {
+ shared.current = None;
+ }
+ true
+ });
+ others.retain_mut(|shared| {
+ let Some(own) =
+ own_others.iter().find(|o| o.name == shared.name && std::mem::discriminant(&o.def) == std::mem::discriminant(&shared.def))
+ else {
+ return false;
+ };
+ if shared.value != own.value {
+ shared.value = None;
+ }
+ true
+ });
+ }
+ (variants, others)
+}
+
+/// Variant and component property controls for instances `ids`: the properties they share, set on
+/// all of them at once. Slots show only for a single instance.
+fn instance_props(app: &mut FigApp, ui: &mut Ui, doc: &Document, ids: &[NodeId], comps: &[(NodeId, String)]) {
+ let (variants, others) = shared_props(doc, ids);
+ let slots = match ids {
+ [id] => slots_of(doc, *id),
+ _ => Vec::new(),
+ };
// Variant properties.
- if let Some(set) = set {
- let current = doc.node(*component).map(|c| variant_props(&c.name)).unwrap_or_default();
- for (k, vals) in variant_options(doc, set) {
- let cur = current.get(&k).cloned().unwrap_or_default();
- row(ui, 32.0, |ui| {
- prop_label(ui, &k, Icon::ComponentSet);
- let w = ui.available_width().max(60.0);
- // A string variable naming one of the values can choose it.
- crate::variable_ui::bindable(app, ui, &[id], &format!("{PROP_BINDING}{k}"), VariableType::String, w, |app, ui| {
- let resp = widgets::dropdown(ui, &cur, w, None);
- menu_popup(&resp).show(|ui| {
- for v in &vals {
- if menu_item(ui, v, "") {
- app.run("instance.setProperties", json!({"ids": [id], "properties": {k.clone(): v}}));
- ui.close();
- }
+ for SharedVariantProp { name: k, values: vals, current } in variants {
+ row(ui, 32.0, |ui| {
+ prop_label(ui, &k, Icon::ComponentSet);
+ let w = ui.available_width().max(60.0);
+ // A string variable naming one of the values can choose it.
+ crate::variable_ui::bindable(app, ui, ids, &format!("{PROP_BINDING}{k}"), VariableType::String, w, |app, ui| {
+ let resp = widgets::dropdown(ui, current.as_deref().unwrap_or(tr("Mixed")), w, None);
+ menu_popup(&resp).show(|ui| {
+ for v in &vals {
+ if menu_item(ui, v, "") {
+ app.run("instance.setProperties", json!({"ids": ids, "properties": {k.clone(): v}}));
+ ui.close();
}
- });
+ }
});
});
- }
+ });
}
// Boolean, text and instance-swap properties.
- for (k, d) in instance_prop_list(doc, *component) {
- let v = props.get(&k).cloned().unwrap_or_else(|| figcraft_engine::components::prop_default_value(&d));
+ for SharedProp { name: k, def: d, value } in others {
+ if matches!(d, PropDef::Slot { .. }) && !slots.iter().any(|(_, name)| *name == k) {
+ continue;
+ }
row(ui, 32.0, |ui| {
prop_label(ui, &k, type_icon(&d));
let w = ui.available_width().max(60.0);
@@ -771,26 +854,28 @@ fn instance_props(app: &mut FigApp, ui: &mut Ui, doc: &Document, n: &Node, comps
let bind_field = format!("{PROP_BINDING}{k}");
match d {
PropDef::Boolean { .. } => {
- crate::variable_ui::bindable(app, ui, &[id], &bind_field, VariableType::Boolean, w, |app, ui| {
- let on = v.as_bool().unwrap_or(false);
- if widgets::checkbox(ui, on, "") {
- app.run("instance.setProperties", json!({"ids": [id], "properties": {k.clone(): !on}}));
+ crate::variable_ui::bindable(app, ui, ids, &bind_field, VariableType::Boolean, w, |app, ui| {
+ let state = value.as_ref().map(|v| v.as_bool().unwrap_or(false));
+ if widgets::checkbox_tri(ui, state, "") {
+ app.run("instance.setProperties", json!({"ids": ids, "properties": {k.clone(): !state.unwrap_or(false)}}));
}
});
}
PropDef::Text { .. } => {
- crate::variable_ui::bindable(app, ui, &[id], &bind_field, VariableType::String, w, |app, ui| {
- let cur = v.as_str().unwrap_or_default().to_string();
- if let Some(ns) = widgets::text_field(ui, Id::unique(("iprop", id, k.as_str())), &cur, w, "")
+ crate::variable_ui::bindable(app, ui, ids, &bind_field, VariableType::String, w, |app, ui| {
+ let cur = value.as_ref().and_then(Value::as_str).unwrap_or_default().to_string();
+ let placeholder = if value.is_some() { "" } else { tr("Mixed") };
+ if let Some(ns) = widgets::text_field(ui, Id::unique(("iprop", ids, k.as_str())), &cur, w, placeholder)
&& ns != cur
{
- app.run("instance.setProperties", json!({"ids": [id], "properties": {k.clone(): ns}}));
+ app.run("instance.setProperties", json!({"ids": ids, "properties": {k.clone(): ns}}));
}
});
}
PropDef::InstanceSwap { preferred, .. } => {
- if let Some(c) = swap_dropdown(ui, doc, figcraft_engine::params::id_of(&v), &preferred, comps, w, &k).1 {
- app.run("instance.setProperties", json!({"ids": [id], "properties": {k.clone(): c.0}}));
+ let cur = value.as_ref().and_then(figcraft_engine::params::id_of);
+ if let Some(c) = swap_dropdown(ui, doc, cur, value.is_none(), &preferred, comps, w, &k).1 {
+ app.run("instance.setProperties", json!({"ids": ids, "properties": {k.clone(): c.0}}));
}
}
PropDef::Variant { .. } => {}
@@ -806,18 +891,24 @@ fn instance_props(app: &mut FigApp, ui: &mut Ui, doc: &Document, n: &Node, comps
/// The dropdown of an instance-swap property showing component `cur`: its menu lists the
/// property's preferred components first (when it has any), then every component in the file. The
-/// dropdown, and the component picked (picking the current one picks nothing). `name` labels it for
-/// assistive technology.
+/// dropdown, and the component picked (picking the current one picks nothing). Without `cur` it reads
+/// "Mixed" when `mixed` (the selected instances swap in different components), else "None". `name`
+/// labels it for assistive technology.
pub(crate) fn swap_dropdown(
ui: &mut Ui,
doc: &Document,
cur: Option,
+ mixed: bool,
preferred: &[NodeId],
comps: &[(NodeId, String)],
w: f32,
name: &str,
) -> (egui::Response, Option) {
- let label = cur.and_then(|c| doc.node(c)).map(|c| c.name.clone()).unwrap_or_else(|| tr("None").into());
+ let label = match cur.and_then(|c| doc.node(c)) {
+ Some(c) => c.name.clone(),
+ None if mixed => tr("Mixed").into(),
+ None => tr("None").into(),
+ };
let resp = widgets::dropdown(ui, &label, w, Some(Icon::Instance));
if !name.is_empty() {
crate::a11y::combo(&resp, name, &label, crate::a11y::menu_open(&resp));
diff --git a/crates/ui-egui/src/panels/dev_mode.rs b/crates/ui-egui/src/panels/dev_mode.rs
index 09c3b9732..f80c4789f 100644
--- a/crates/ui-egui/src/panels/dev_mode.rs
+++ b/crates/ui-egui/src/panels/dev_mode.rs
@@ -404,7 +404,8 @@ pub fn playground_section(app: &mut FigApp, ui: &mut Ui, doc: &Document, id: Nod
widgets::label(ui, name, t.text_secondary);
let preferred: Vec = p["preferred"].as_array().into_iter().flatten().filter_map(figcraft_engine::params::id_of).collect();
let w = ui.available_width().max(60.0);
- if let Some(c) = crate::component_panel::swap_dropdown(ui, doc, figcraft_engine::params::id_of(value), &preferred, &comps, w, name).1
+ if let Some(c) =
+ crate::component_panel::swap_dropdown(ui, doc, figcraft_engine::params::id_of(value), false, &preferred, &comps, w, name).1
{
set = Some((name.to_string(), json!(c.0)));
}
diff --git a/docs/components-parity.md b/docs/components-parity.md
index fa4d2494e..5ca79aed4 100644
--- a/docs/components-parity.md
+++ b/docs/components-parity.md
@@ -1,6 +1,6 @@
# Components, variants, styles and variables parity
-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (a style of one library that reaches a file through another library's component is, in a file linking both, the first library's own bound copy, so its modes colour it (#2414); with a variant selected, its property dropdowns show its own values and choosing one renames only that variant, instead of setting the set's default and moving the variants (#2349); library analytics count insertions and detachments of styles and variables; combining components gives every variant the properties any of them had; renaming a variable group to a path with `/` nests it under a parent group instead of turning the slash into a hyphen (#2353); a group's context menu in the Local variables window has Duplicate group, a copy named after it plus " 2" holding a copy of every variable, in one undo step (#2084); pages take a variable mode: with nothing selected the Design panel's Page section shows a Variable modes section, Auto or a mode of each collection that has more than one, as the help center says ("Apply variable mode" in the Page section of the right sidebar) (#2215); a text style binds a number variable to its weight (#2174); an instance lists only the properties its variant's layers use and long property names are cut to one line (#2022); with several layers selected the Design panel header's component button offers Create multiple components (#2088); the Local variables window selects several variables (click, Shift+click for a range, Cmd/Ctrl+click to toggle, Escape to clear) and delete, move to a group and scope act on the selected local variables in one undo step (#2002); text styles carry paragraph spacing and indent, the list style and the OpenType features, as the Supported in text styles table of Create and apply text styles says (#1829); a layer's effect binding takes only a field its effect has; Go to main component on an instance of a library component opens the library file in a tab and selects the main there; glass effects take variables; Delete on a layer inside an instance hides it as an override instead of being refused, as the help center says: "Figma will only toggle the layer's visibility instead of removing it"; library analytics list how many layers and files use each style and variable; SwiftUI and Compose code names a bound variable by its iOS or Android code syntax; library analytics count insertions and show insertions and detachments over the past 30 days, 90 days or year; a collection of this file can be extended (Extend collection on its row, `variable.extendCollection`), its extension following its edits at once, and extended collections extend again in the file; a typed or stored variable, collection or mode id names only the object with that id (#1613); colour variables can be calculated from other colours per mode — `{alpha}` replaces a colour's alpha, `{mix}` blends two — and follow them (#1280); stored variable and collection references keep their identity when another object is named like their id (follow-up to #1542); a component set's property rows fit the 240 px right panel: variant values wrap two to a line there and every + and − stays in view; opening a file contacts no team library server it names until you check it (#1097); an explicit variables file path (`variable.import`, the `variables` of `file.open` and `file.import`) is refused past 256 MiB or when it isn't a regular file, as the sibling `variables.json` already was (part of #1114); component properties keep the order they were made in when one is renamed, and Make slot asks for the slot's name first (#1536, #1537); components can't contain their own instances, directly or through others (#1084); the instance-swap menus have a search field (#1338); an instance-swap property's default menu scrolls (#1338); variables on a text style's fields from the style editor; instance-swap properties in the component playground; duplicating or Alt-dragging a main component makes an instance of it (#892); a bound colour variable's alpha applies once (#802); variables import reads `variables` outside `meta` and warns when it imports none (#790); variant properties reorder by drag; library files saved right after a read are read again; Hide when publishing note corrected; size and resizing overrides of layers inside instances (#731); variables export in the browser as a download; core editor leftovers: component playground, variables inside styles; layers and assets panels behaviour suite and fixes; extended collections tail; styles and variables behaviour suite and fixes; components behaviour suite and fixes; team libraries on the server, library usage and swapping a library; extended collections, variables import/export, gradient stops and variant properties bound to variables) · **Target:** Figma Design (desktop app 126.10.7)
+> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (with several instances selected, the Design panel shows the properties they share, Mixed where their values differ, and sets a value on all of them; a style of one library that reaches a file through another library's component is, in a file linking both, the first library's own bound copy, so its modes colour it (#2414); with a variant selected, its property dropdowns show its own values and choosing one renames only that variant, instead of setting the set's default and moving the variants (#2349); library analytics count insertions and detachments of styles and variables; combining components gives every variant the properties any of them had; renaming a variable group to a path with `/` nests it under a parent group instead of turning the slash into a hyphen (#2353); a group's context menu in the Local variables window has Duplicate group, a copy named after it plus " 2" holding a copy of every variable, in one undo step (#2084); pages take a variable mode: with nothing selected the Design panel's Page section shows a Variable modes section, Auto or a mode of each collection that has more than one, as the help center says ("Apply variable mode" in the Page section of the right sidebar) (#2215); a text style binds a number variable to its weight (#2174); an instance lists only the properties its variant's layers use and long property names are cut to one line (#2022); with several layers selected the Design panel header's component button offers Create multiple components (#2088); the Local variables window selects several variables (click, Shift+click for a range, Cmd/Ctrl+click to toggle, Escape to clear) and delete, move to a group and scope act on the selected local variables in one undo step (#2002); text styles carry paragraph spacing and indent, the list style and the OpenType features, as the Supported in text styles table of Create and apply text styles says (#1829); a layer's effect binding takes only a field its effect has; Go to main component on an instance of a library component opens the library file in a tab and selects the main there; glass effects take variables; Delete on a layer inside an instance hides it as an override instead of being refused, as the help center says: "Figma will only toggle the layer's visibility instead of removing it"; library analytics list how many layers and files use each style and variable; SwiftUI and Compose code names a bound variable by its iOS or Android code syntax; library analytics count insertions and show insertions and detachments over the past 30 days, 90 days or year; a collection of this file can be extended (Extend collection on its row, `variable.extendCollection`), its extension following its edits at once, and extended collections extend again in the file; a typed or stored variable, collection or mode id names only the object with that id (#1613); colour variables can be calculated from other colours per mode — `{alpha}` replaces a colour's alpha, `{mix}` blends two — and follow them (#1280); stored variable and collection references keep their identity when another object is named like their id (follow-up to #1542); a component set's property rows fit the 240 px right panel: variant values wrap two to a line there and every + and − stays in view; opening a file contacts no team library server it names until you check it (#1097); an explicit variables file path (`variable.import`, the `variables` of `file.open` and `file.import`) is refused past 256 MiB or when it isn't a regular file, as the sibling `variables.json` already was (part of #1114); component properties keep the order they were made in when one is renamed, and Make slot asks for the slot's name first (#1536, #1537); components can't contain their own instances, directly or through others (#1084); the instance-swap menus have a search field (#1338); an instance-swap property's default menu scrolls (#1338); variables on a text style's fields from the style editor; instance-swap properties in the component playground; duplicating or Alt-dragging a main component makes an instance of it (#892); a bound colour variable's alpha applies once (#802); variables import reads `variables` outside `meta` and warns when it imports none (#790); variant properties reorder by drag; library files saved right after a read are read again; Hide when publishing note corrected; size and resizing overrides of layers inside instances (#731); variables export in the browser as a download; core editor leftovers: component playground, variables inside styles; layers and assets panels behaviour suite and fixes; extended collections tail; styles and variables behaviour suite and fixes; components behaviour suite and fixes; team libraries on the server, library usage and swapping a library; extended collections, variables import/export, gradient stops and variant properties bound to variables) · **Target:** Figma Design (desktop app 126.10.7)
Design systems are why teams adopt Figma. **Components: breadth ~96%, ready ~72%. Styles and
variables: breadth ~95%, ready ~76% (estimated).** QA'd with a synthetic design system of ~300
@@ -12,6 +12,7 @@ accounts).
| Feature | Status | Notes |
|---|---|---|
+| 2026-11-18 | patch | M3: with two or more instances selected the Design panel showed no instance properties, so changing a variant or a property meant selecting each instance in turn. It now shows the variant, boolean, text and instance-swap properties they share (by name and type; a variant property lists the values every one of their sets has), each reading Mixed where their values differ, and a value chosen there is set on every selected instance in one step, as Figma does. A selection with any layer that isn't an instance shows none. Tests: `instances_shared_props_tests` |
| 2026-11-11 | minor | M3, #2022: an instance lists only the properties its variant's layers use (its variant properties, slots, and the boolean, text and instance swap properties a layer of its current variant reads), as measured in Figma's web app: an instance of variant A lists `State` and `A label`, never `B label` or a property no layer reads. The set and its variants still list every definition, so unused ones can be deleted there. A long property name in the panel is cut to one line with an ellipsis, the full name on hover, instead of wrapping over the rows around it. Tests: `prop_order_tests::an_instance_lists_only_the_properties_its_variant_uses`, `component_props_reorder_tests::a_long_property_name_stays_on_one_line`, `prop_value_tests::a_set_keeps_each_named_text_definition_and_layers_read_their_own`. Grade unchanged. |
| Create component, instances, detach, reset, go to main, restore main, push changes | done | push from a nested layer goes to the outer main; with two or more layers selected the Design panel header's component button opens a menu with Create component, Create multiple components (each layer its own component in place, one undo step) and Create component set (each layer a component, wrapped in place in a set 20 px around: variants `Property 1=` left to right, `prop=value` names kept, layers that all share a name give a set of that name with `Property 1=Default` variants; measured in Figma), one layer keeps the plain click (#2088) |
| Per-layer overrides with reset; kept across main edits, nested swaps, copy/paste | done | main edits match a full rebuild exactly at 2,000 instances |
From a0539b4c3e554f5f1b744e439b375d55e26fbdf7 Mon Sep 17 00:00:00 2001
From: FueryS
Date: Fri, 20 Nov 2026 00:50:03 +0530
Subject: [PATCH 15/59] M1: image fill in Crop mode morphs and squishes on
normal resize (#2499)
Choosing Crop in the color picker's scale mode dropdown initializes the image's placement crop without closing the picker or entering interactive crop mode on the canvas.
Resizing the layer normally without Cmd keeps the stored crop transform unchanged, stretching/squishing the image fill to fit the layer (Figma parity). Holding Cmd while resizing continues to crop the image without moving pixels.
Tests: transform_behaviour_tests::crop_mode_image_resizing_without_cmd_morphs_and_with_cmd_crops, crop_image_tests.
---
crates/engine/src/cmd/edit/props.rs | 29 ++++++++++
.../engine/src/transform_behaviour_tests.rs | 53 +++++++++++++++++++
crates/ui-egui/src/canvas/handles.rs | 4 +-
crates/ui-egui/src/crop_image_tests.rs | 50 +++++------------
crates/ui-egui/src/widgets/colorpicker.rs | 44 ++++++++-------
5 files changed, 118 insertions(+), 62 deletions(-)
diff --git a/crates/engine/src/cmd/edit/props.rs b/crates/engine/src/cmd/edit/props.rs
index 5bd6710af..0706abcdf 100644
--- a/crates/engine/src/cmd/edit/props.rs
+++ b/crates/engine/src/cmd/edit/props.rs
@@ -445,6 +445,15 @@ fn paint_set_in(s: &mut Session, p: &Value, fills: bool, to_regions: bool) -> Re
}
};
if let Some((id, regions)) = fill_regions(s, cmd, p, &ids)?.filter(|_| fills && to_regions) {
+ let (nw, nh) = s.doc().ok().and_then(|d| d.node(id)).map_or((100.0, 100.0), |n| (n.width, n.height));
+ let image_dims = s.doc().ok().and_then(|d| match &new_paint {
+ Some(figcraft_color::Paint { kind: figcraft_color::PaintKind::Image(img), .. })
+ if img.scale_mode == figcraft_color::ImageScaleMode::Crop && img.crop.is_none() =>
+ {
+ d.images.get(&img.image).map(|data| (f64::from(data.width), f64::from(data.height)))
+ }
+ _ => None,
+ });
edit_region_fills(s.doc_mut()?, id, ®ions, |list| {
if list.is_empty() {
list.push(figcraft_color::Paint::solid(figcraft_color::Color::DEFAULT_SHAPE));
@@ -452,10 +461,24 @@ fn paint_set_in(s: &mut Session, p: &Value, fills: bool, to_regions: bool) -> Re
let at = idx.unwrap_or(list.len().saturating_sub(1));
let Some(slot) = list.get_mut(at) else { return Err(bad(cmd, format!("no paint at index {at}"))) };
edit_slot(slot);
+ if let Some((iw, ih)) = image_dims
+ && let figcraft_color::PaintKind::Image(img) = &mut slot.kind
+ && img.crop.is_none()
+ {
+ img.crop = Some(img.placement_crop(iw, ih, nw, nh));
+ }
Ok(())
})?;
return ok();
}
+ let image_dims = s.doc().ok().and_then(|d| match &new_paint {
+ Some(figcraft_color::Paint { kind: figcraft_color::PaintKind::Image(img), .. })
+ if img.scale_mode == figcraft_color::ImageScaleMode::Crop && img.crop.is_none() =>
+ {
+ d.images.get(&img.image).map(|data| (f64::from(data.width), f64::from(data.height)))
+ }
+ _ => None,
+ });
let doc = s.doc_mut()?;
for i in ids {
let n = doc.get_mut(i)?;
@@ -470,6 +493,12 @@ fn paint_set_in(s: &mut Session, p: &Value, fills: bool, to_regions: bool) -> Re
let Some(slot) = list.get_mut(at) else { return Err(bad(cmd, format!("no paint at index {at}"))) };
let old = slot.clone();
edit_slot(slot);
+ if let Some((iw, ih)) = image_dims
+ && let figcraft_color::PaintKind::Image(img) = &mut slot.kind
+ && img.crop.is_none()
+ {
+ img.crop = Some(img.placement_crop(iw, ih, n.width, n.height));
+ }
crate::cmd::lists::rebind_edited_paint(n, fills, at, &old);
if fills {
n.styles.fill = None;
diff --git a/crates/engine/src/transform_behaviour_tests.rs b/crates/engine/src/transform_behaviour_tests.rs
index 3c37bf6c0..06bdb2a50 100644
--- a/crates/engine/src/transform_behaviour_tests.rs
+++ b/crates/engine/src/transform_behaviour_tests.rs
@@ -217,6 +217,59 @@ fn ordinary_resize_and_scale_keep_image_fill_settings() {
}
}
+#[test]
+fn crop_mode_image_resizing_without_cmd_morphs_and_with_cmd_crops() {
+ use figcraft_doc::color::{ImageScaleMode, PaintKind};
+ let mut s = session();
+ let layer = image_layer(&mut s);
+ // Set the image fill mode to Crop without an explicit crop: fill.set initializes placement crop.
+ let mut fills = s.doc().unwrap().node(layer).unwrap().fills.clone();
+ let PaintKind::Image(img) = &mut fills[0].kind else { panic!("image fill") };
+ img.scale_mode = ImageScaleMode::Crop;
+ img.crop = None;
+ ex(&mut s, "fill.set", json!({"ids": [layer], "index": 0, "paint": fills[0]}));
+
+ // Verify fill.set initialized img.crop with placement crop.
+ let initial_node = s.doc().unwrap().node(layer).unwrap().clone();
+ let PaintKind::Image(img) = &initial_node.fills[0].kind else { panic!("image fill") };
+ let Some(initial_crop) = img.crop else { panic!("crop initialized") };
+
+ let before = figcraft_render::render_node(s.doc().unwrap(), layer, 1.0).unwrap();
+ assert_eq!((before.width(), before.height()), (200, 100));
+
+ // 1. Resize without Cmd (normal resize from bottom edge: 100 -> 50).
+ // The layer height shrinks to 50, but img.crop stays unchanged, stretching/squishing the image.
+ s.pointer(&ev(PointerKind::Down, Point::new(100.0, 100.0), NONE)).unwrap();
+ s.pointer(&ev(PointerKind::Move, Point::new(100.0, 50.0), NONE)).unwrap();
+ s.pointer(&ev(PointerKind::Up, Point::new(100.0, 50.0), NONE)).unwrap();
+ assert_eq!(size(&s, layer), (200.0, 50.0));
+
+ let n = s.doc().unwrap().node(layer).unwrap().clone();
+ let PaintKind::Image(img) = &n.fills[0].kind else { panic!("image fill") };
+ assert_eq!(img.crop, Some(initial_crop), "normal resize leaves crop transform unchanged");
+
+ let morphed = figcraft_render::render_node(s.doc().unwrap(), layer, 1.0).unwrap();
+ assert_eq!((morphed.width(), morphed.height()), (200, 50));
+
+ // 2. Resize with Cmd from right edge: 200 -> 100.
+ // The layer width shrinks to 100, and img.crop is updated so the pixels stay stationary on page (cropping).
+ s.pointer(&ev(PointerKind::Down, Point::new(200.0, 25.0), CMD)).unwrap();
+ s.pointer(&ev(PointerKind::Move, Point::new(100.0, 25.0), CMD)).unwrap();
+ s.pointer(&ev(PointerKind::Up, Point::new(100.0, 25.0), CMD)).unwrap();
+ assert_eq!(size(&s, layer), (100.0, 50.0));
+
+ let n = s.doc().unwrap().node(layer).unwrap().clone();
+ let PaintKind::Image(img) = &n.fills[0].kind else { panic!("image fill") };
+ assert_ne!(img.crop, Some(initial_crop), "Cmd resize updates crop transform");
+
+ let cropped = figcraft_render::render_node(s.doc().unwrap(), layer, 1.0).unwrap();
+ assert_eq!((cropped.width(), cropped.height()), (100, 50));
+ // The remaining 100x50 pixels match the top-left 100x50 of morphed (pixels stayed still in layer space).
+ for y in 0..50usize {
+ assert_eq!(&cropped.data()[y * 400..(y + 1) * 400], &morphed.data()[y * 800..y * 800 + 400], "row {y}: stationary cropped pixels");
+ }
+}
+
#[test]
fn command_crop_preserves_each_image_fill_and_leaves_tiles() {
use figcraft_doc::color::{Color, ImageScaleMode, Paint, PaintKind};
diff --git a/crates/ui-egui/src/canvas/handles.rs b/crates/ui-egui/src/canvas/handles.rs
index 0a300c279..b53ce3bdd 100644
--- a/crates/ui-egui/src/canvas/handles.rs
+++ b/crates/ui-egui/src/canvas/handles.rs
@@ -697,8 +697,8 @@ pub fn input(app: &mut FigApp, ctx: &egui::Context, pos: Pos2) -> Input {
}
}
if let Some((id, fills, index, _, rect)) = crop_target(app) {
- // Crop mode: the layer's own resize handles crop it (the pointer events carry Cmd/Ctrl).
- if app.ui.crop.is_some() && on_resize_handle(app, pos) {
+ // The layer's own resize handles resize/crop the layer, not the crop handles.
+ if on_resize_handle(app, pos) {
return Input::Ignored;
}
let Some(c) = crop_corners(app, id, rect) else { return Input::Ignored };
diff --git a/crates/ui-egui/src/crop_image_tests.rs b/crates/ui-egui/src/crop_image_tests.rs
index 05435d856..16e762cad 100644
--- a/crates/ui-egui/src/crop_image_tests.rs
+++ b/crates/ui-egui/src/crop_image_tests.rs
@@ -141,11 +141,11 @@ fn choose_mode(u: &mut Ui, shown: &str, item: &str) {
u.frame(vec![]);
}
-/// Crop chosen as the image fill's mode in the colour picker enters crop mode, as Crop image does
-/// (#2150): the picker closes, the picture keeps its place, and a corner handle then crops it
-/// with the layer still selected. The other modes only set the mode.
+/// Crop chosen as the image fill's mode in the colour picker sets the mode with a placement crop
+/// (#2499): the picker stays open, crop mode on the canvas does not start, and dragging a corner
+/// handle without Cmd resizes the layer and morphs/squishes the image.
#[test]
-fn crop_chosen_in_the_colour_picker_enters_crop_mode() {
+fn crop_chosen_in_the_colour_picker_sets_mode_and_morphs_on_resize() {
let (mut u, layer, _) = setup();
u.app.ui.picker = Some(crate::colorpicker::PickerTarget::Paint { fills: true, index: 0, ids: vec![layer] });
for _ in 0..4 {
@@ -155,8 +155,8 @@ fn crop_chosen_in_the_colour_picker_enters_crop_mode() {
assert_eq!(mode(&u, layer), (ImageScaleMode::Fit, None));
assert!(u.app.ui.picker.is_some() && u.app.ui.crop.is_none(), "Fit is only a mode");
choose_mode(&mut u, "Fit", "Crop");
- assert_eq!(u.app.ui.crop, Some((layer, 0)), "crop mode on the image fill");
- assert!(u.app.ui.picker.is_none(), "crop mode takes the canvas from the picker");
+ assert_eq!(u.app.ui.crop, None, "Crop in picker does not enter canvas crop mode");
+ assert!(u.app.ui.picker.is_some(), "picker stays open");
// The picture keeps its place: the crop is the one Crop image makes of the fitted image.
let (m, Some(before)) = mode(&u, layer) else { panic!("a crop where the picture was") };
assert_eq!(m, ImageScaleMode::Crop);
@@ -169,29 +169,18 @@ fn crop_chosen_in_the_colour_picker_enters_crop_mode() {
assert_eq!(mode(&menu, other), (ImageScaleMode::Fit, None));
menu.app.run("image.crop", json!({}));
assert_eq!(mode(&menu, other), (ImageScaleMode::Crop, Some(before)));
- // The bottom right corner, dragged in, crops the picture to the top left 3/4 of the layer.
+ // Close the picker to drag the canvas resize handles.
+ u.app.ui.picker = None;
+ u.frame(vec![]);
+ // Dragging the bottom right corner without Cmd resizes the layer to 150x75 and morphs/squishes the image.
let (from, to) = (u.app.to_screen(200.0, 100.0), u.app.to_screen(150.0, 75.0));
u.drag_to(from, to);
u.button(to, false);
assert_eq!(u.app.session.selection(), vec![layer], "the layer stays selected");
- assert_eq!(u.app.ui.crop, Some((layer, 0)), "still cropping");
let n = u.app.session.doc().unwrap().node(layer).unwrap().clone();
assert!((n.width - 150.0).abs() < 1e-6 && (n.height - 75.0).abs() < 1e-6, "{} x {}", n.width, n.height);
let (_, Some(after)) = mode(&u, layer) else { panic!("a crop") };
- assert!((after[0] - before[0] * 0.75).abs() < 1e-9 && (after[3] - before[3] * 0.75).abs() < 1e-9, "{before:?} -> {after:?}");
- assert!((after[4] - before[4]).abs() < 1e-9 && (after[5] - before[5]).abs() < 1e-9, "the top left stays: {before:?} -> {after:?}");
- // The picture's own corner, now outside the layer at (200, 100), scales the picture inside the
- // layer, which keeps its size and its selection.
- let (from, to) = (u.app.to_screen(200.0, 100.0), u.app.to_screen(240.0, 120.0));
- u.drag_to(from, to);
- u.button(to, false);
- assert_eq!(u.app.session.selection(), vec![layer], "the layer stays selected");
- assert_eq!(u.app.ui.crop, Some((layer, 0)), "still cropping");
- let n = u.app.session.doc().unwrap().node(layer).unwrap().clone();
- assert!((n.width - 150.0).abs() < 1e-6 && (n.height - 75.0).abs() < 1e-6, "the layer keeps its size: {} x {}", n.width, n.height);
- let (_, Some(scaled)) = mode(&u, layer) else { panic!("a crop") };
- // The picture grew from 200 x 100 to 240 x 120: the layer shows 5/6 of what it showed.
- assert!((scaled[0] - after[0] * 5.0 / 6.0).abs() < 1e-6 && (scaled[3] - after[3] * 5.0 / 6.0).abs() < 1e-6, "{after:?} -> {scaled:?}");
+ assert_eq!(after, before, "normal resize without Cmd leaves crop transform unchanged to morph/squish");
}
/// The reporter's sequence (#2307): the colour picker open on an image fill held in Crop mode
@@ -206,12 +195,7 @@ fn crop_from_the_colour_picker_then_a_drag_on_the_image_moves_the_crop_not_the_l
u.frame(vec![]);
}
choose_mode(&mut u, "Fill", "Crop");
- // Crop mode on the canvas ended (a click away from the image); the picker opens on the Crop fill.
- u.app.ui.crop = None;
- u.app.ui.picker = Some(crate::colorpicker::PickerTarget::Paint { fills: true, index: 0, ids: vec![layer] });
- for _ in 0..4 {
- u.frame(vec![]);
- }
+ assert!(u.app.ui.picker.is_some());
let (_, Some(before)) = mode(&u, layer) else { panic!("a crop") };
let at = u.app.session.doc().unwrap().node(layer).unwrap().transform.as_coeffs();
let from = u.app.to_screen(100.0, 50.0);
@@ -267,7 +251,7 @@ fn image_at(u: &Ui, id: NodeId, fills: bool, region: Option) -> figcraft_
/// fill have nothing for Crop image to crop either.
#[test]
fn crop_in_the_colour_picker_only_sets_the_mode_where_crop_image_does_not_apply() {
- use crate::colorpicker::{PickerTarget, crop_on_canvas};
+ use crate::colorpicker::PickerTarget;
let picture = |u: &Ui, id: NodeId| u.app.session.doc().unwrap().node(id).unwrap().fills[0].clone();
// Opens the picker on `target`, chooses Crop and checks crop mode stays off.
let crop_only_sets_the_mode = |u: &mut Ui, target: PickerTarget, what: &str| {
@@ -313,12 +297,4 @@ fn crop_in_the_colour_picker_only_sets_the_mode_where_crop_image_does_not_apply(
crop_only_sets_the_mode(&mut u, PickerTarget::Paint { fills: true, index: 0, ids: vec![vector] }, "a region");
assert_eq!(image_at(&u, vector, true, Some(1)).scale_mode, ImageScaleMode::Crop);
assert_eq!(u.app.session.doc().unwrap().node(vector).unwrap().fills, layer_fills, "the layer's fills are untouched");
-
- // A fill that isn't an image, and targets that aren't a layer's paint, have no crop on the canvas.
- let (u, layer, rect) = setup();
- assert_eq!(crop_on_canvas(&u.app, &PickerTarget::Paint { fills: true, index: 0, ids: vec![layer] }), Some((layer, 0)));
- assert_eq!(crop_on_canvas(&u.app, &PickerTarget::Paint { fills: true, index: 0, ids: vec![rect] }), None, "a solid fill");
- assert_eq!(crop_on_canvas(&u.app, &PickerTarget::Paint { fills: true, index: 1, ids: vec![layer] }), None, "no fill there");
- assert_eq!(crop_on_canvas(&u.app, &PickerTarget::PageBackground), None);
- assert_eq!(crop_on_canvas(&u.app, &PickerTarget::Style { id: "S:1".into(), index: 0 }), None);
}
diff --git a/crates/ui-egui/src/widgets/colorpicker.rs b/crates/ui-egui/src/widgets/colorpicker.rs
index 662e4ba24..2d9119d93 100644
--- a/crates/ui-egui/src/widgets/colorpicker.rs
+++ b/crates/ui-egui/src/widgets/colorpicker.rs
@@ -760,19 +760,19 @@ fn blend_row(ui: &mut Ui, app: &mut FigApp, target: &PickerTarget, paint: &mut P
});
}
-/// The layer and fill index to crop on the canvas (`image.crop`) when Crop is chosen for `target`:
-/// one layer's image fill as the Fill section shows it (a text's characters' shared fills
-/// included). Strokes, several layers at once and the regions selected in vector edit mode have
-/// no crop mode, so for them Crop only sets the paint's mode.
-pub(crate) fn crop_on_canvas(app: &FigApp, target: &PickerTarget) -> Option<(NodeId, usize)> {
- let PickerTarget::Paint { fills: true, index, ids } = target else { return None };
- let [id] = ids[..] else { return None };
- if figcraft_engine::vectoredit::selected_region_fills(&app.session, id).is_some() {
- return None;
- }
+fn target_node_size(app: &FigApp, target: &PickerTarget) -> Option<(f64, f64)> {
let doc = app.session.doc().ok()?;
- let shown = figcraft_engine::cmd::lists::character_fills(doc.node(id)?)?;
- matches!(shown.get(*index)?.kind, PaintKind::Image(_)).then_some((id, *index))
+ match target {
+ PickerTarget::Paint { ids, .. } | PickerTarget::Effect { ids, .. } => {
+ let n = doc.node(*ids.first()?)?;
+ Some((n.width, n.height))
+ }
+ PickerTarget::TextRange { id, .. } => {
+ let n = doc.node(*id)?;
+ Some((n.width, n.height))
+ }
+ _ => None,
+ }
}
/// The image paint's scale mode, rotation, colour profile, presets and filter sliders.
@@ -788,19 +788,17 @@ fn image_controls(app: &mut FigApp, ui: &mut Ui, target: &PickerTarget, paint: &
(tr("Tile"), ImageScaleMode::Tile),
] {
if crate::right::menu_item(ui, l, "") {
- match crop_on_canvas(app, target).filter(|_| m == ImageScaleMode::Crop) {
- // Crop for a layer's own image fill is Crop image (#2150): the picture keeps
- // its place and crop mode takes the canvas, closing the picker, so its
- // handles crop it as they do when crop mode comes from the menu.
- Some((id, index)) => {
- app.run("image.crop", json!({"ids": [id], "index": index}));
- }
- None => {
- img.scale_mode = m;
- paint.kind = PaintKind::Image(img.clone());
- write(app, target, paint, false);
+ if m == ImageScaleMode::Crop && img.crop.is_none() {
+ let size = target_node_size(app, target);
+ let doc = app.session.doc().ok();
+ let dims = doc.as_ref().and_then(|d| d.images.get(&img.image)).map(|d| (f64::from(d.width), f64::from(d.height)));
+ if let (Some((w, h)), Some((iw, ih))) = (size, dims) {
+ img.crop = Some(img.placement_crop(iw, ih, w, h));
}
}
+ img.scale_mode = m;
+ paint.kind = PaintKind::Image(img.clone());
+ write(app, target, paint, false);
ui.close();
}
}
From 0f54b38f4218512d55b1fb0983500b4d6bff347a Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Thu, 19 Nov 2026 15:51:49 -0500
Subject: [PATCH 16/59] M3: A variable created with a group shown goes into
that group
With a group selected in the Local variables window, + Create variable
named the new variable after its type alone ("Number"), so it went to
the collection's top level. The table, showing the group, didn't show
it; only All variables did. In Figma it's made in the group shown.
Duplicate already kept the group (the copy is "space/sm copy").
The new variable's name now starts with the group shown. Its name opens
for editing right away, and the row's field edited the whole name while
the row shows only the last part, so typing a name over the new grouped
variable would have moved it straight back out of the group. The field
now edits the part shown and keeps the group; the Edit variable window
still edits the whole name, which is where a variable moves between
groups by typing.
A name typed there with nothing but slashes and spaces is ignored, as an
empty one is: under the group it would clean up to the group's own name
and drop the variable out of it. Creating a collection clears the group
shown, as picking another collection does, so its first variable isn't
named after a group of the collection shown before.
---
crates/ui-egui/src/dialogs/variables_panel.rs | 11 +-
crates/ui-egui/src/lib.rs | 2 +
.../src/variables_group_create_tests.rs | 127 ++++++++++++++++++
docs/components-parity.md | 5 +-
4 files changed, 141 insertions(+), 4 deletions(-)
create mode 100644 crates/ui-egui/src/variables_group_create_tests.rs
diff --git a/crates/ui-egui/src/dialogs/variables_panel.rs b/crates/ui-egui/src/dialogs/variables_panel.rs
index 961471cd0..55bb0cdc2 100644
--- a/crates/ui-egui/src/dialogs/variables_panel.rs
+++ b/crates/ui-egui/src/dialogs/variables_panel.rs
@@ -683,6 +683,7 @@ fn create_collection(app: &mut FigApp, vars: &Variables, st: &mut Editor) {
{
st.library = None;
st.collection = Some(id.clone());
+ st.group = None;
start_rename(st, Rename::Collection(id));
}
}
@@ -896,7 +897,11 @@ fn var_row(app: &mut FigApp, ui: &mut Ui, view: &View, coll: &Collection, v: &Va
// An inherited variable is named (and deleted) in the collection it extends.
let inherited = v.extends.is_some();
if editable && st.rename.as_ref() == Some(&target) {
- if let Some(name) = rename_field(ui, st, &target, &v.name, name_r, regular(11.0)) {
+ // The row shows the name's last part: the field edits that and keeps the group. A name of
+ // slashes and spaces alone is ignored, as the group would swallow it and drop the variable.
+ let (group, short) = v.name.rsplit_once('/').unwrap_or(("", &v.name));
+ if let Some(typed) = rename_field(ui, st, &target, short, name_r, regular(11.0)).filter(|n| n.split('/').any(|p| !p.trim().is_empty())) {
+ let name = if group.is_empty() { typed } else { format!("{group}/{typed}") };
app.run("variable.update", json!({"variable": v.id, "name": name}));
}
} else {
@@ -1160,7 +1165,9 @@ fn create_row(app: &mut FigApp, ui: &mut Ui, view: &View, coll: &Collection, st:
VariableType::Boolean => tr_noop("Boolean"),
};
if menu_item(ui, tr(label), "") {
- let name = unique(label, |n| view.in_collection(&coll.id).any(|v| v.name == n));
+ // Made in the group shown, so the table showing it lists it.
+ let base = st.group.as_ref().map_or_else(|| label.to_string(), |g| format!("{g}/{label}"));
+ let name = unique(&base, |n| view.in_collection(&coll.id).any(|v| v.name == n));
let params = json!({"collection": coll.id, "name": name, "type": kind.id()});
if let Some(id) = app.run("variable.create", params).and_then(|r| r["id"].as_str().map(str::to_string)) {
st.query.clear();
diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs
index 32d859f6c..d3b4ad05b 100644
--- a/crates/ui-egui/src/lib.rs
+++ b/crates/ui-egui/src/lib.rs
@@ -300,6 +300,8 @@ mod variable_picker_tests;
#[cfg(test)]
mod variables_export_ui_tests;
#[cfg(test)]
+mod variables_group_create_tests;
+#[cfg(test)]
mod variables_rename_tests;
#[cfg(test)]
mod variables_select_tests;
diff --git a/crates/ui-egui/src/variables_group_create_tests.rs b/crates/ui-egui/src/variables_group_create_tests.rs
new file mode 100644
index 000000000..81ed67ef7
--- /dev/null
+++ b/crates/ui-egui/src/variables_group_create_tests.rs
@@ -0,0 +1,127 @@
+//! Variables made and named with a group shown in the Local variables window: Create variable
+//! and Duplicate put the variable in that group, and renaming it in its row edits the part shown.
+use egui::{Event, Key, Modifiers, PointerButton, Pos2};
+use figcraft_engine::Session;
+use serde_json::json;
+
+use crate::layers_drag_tests::Ui;
+use crate::live_tests::{flat, has_text, text_center, texts};
+
+fn window_with_groups() -> Ui {
+ let mut s = Session::new();
+ s.execute("variable.createCollection", &json!({"name": "Theme"})).unwrap();
+ for n in ["space/sm", "color/brand"] {
+ s.execute("variable.create", &json!({"collection": "Theme", "name": n, "type": "number", "value": 1})).unwrap();
+ }
+ let mut u = Ui::new(s);
+ u.app.ui.variables = Some(Default::default());
+ settle(&mut u);
+ u
+}
+
+fn settle(u: &mut Ui) {
+ for _ in 0..8 {
+ u.frame(vec![]);
+ }
+}
+
+fn click(u: &mut Ui, p: Pos2, button: PointerButton) {
+ for pressed in [true, false] {
+ u.frame(vec![Event::PointerMoved(p), Event::PointerButton { pos: p, button, pressed, modifiers: Modifiers::NONE }]);
+ }
+ settle(u);
+}
+
+fn leftmost(u: &mut Ui, s: &str) -> Pos2 {
+ let shapes = flat(&u.frame_output(vec![]).shapes);
+ let (_, at, size) =
+ texts(&shapes).into_iter().filter(|(t, ..)| t == s).min_by(|a, b| a.1.x.total_cmp(&b.1.x)).unwrap_or_else(|| panic!("{s} drawn"));
+ at + size / 2.0
+}
+
+fn names(u: &Ui) -> Vec {
+ let mut v: Vec = u.app.session.doc().unwrap().variables.variables.iter().map(|v| v.name.clone()).collect();
+ v.sort();
+ v
+}
+
+fn shown(u: &mut Ui, s: &str) -> bool {
+ has_text(&flat(&u.frame_output(vec![]).shapes), s)
+}
+
+#[test]
+fn a_variable_created_with_a_group_shown_goes_into_that_group_and_keeps_it_when_named() {
+ let mut u = window_with_groups();
+ let group = leftmost(&mut u, "space");
+ click(&mut u, group, PointerButton::Primary);
+ assert!(!shown(&mut u, "brand"), "only the space group is shown");
+
+ let create = text_center(&flat(&u.frame_output(vec![]).shapes), "+ Create variable");
+ click(&mut u, create, PointerButton::Primary);
+ let number = text_center(&flat(&u.frame_output(vec![]).shapes), "Number");
+ click(&mut u, number, PointerButton::Primary);
+ assert_eq!(names(&u), ["color/brand", "space/Number", "space/sm"]);
+
+ u.frame(vec![Event::Text("lg".into())]);
+ for pressed in [true, false] {
+ u.frame(vec![Event::Key { key: Key::Enter, physical_key: None, pressed, repeat: false, modifiers: Modifiers::NONE }]);
+ }
+ settle(&mut u);
+ assert_eq!(names(&u), ["color/brand", "space/lg", "space/sm"], "naming it in its row keeps the group");
+ assert!(shown(&mut u, "lg"), "and it is in the table shown");
+ assert!(u.app.ui.last_error.is_none(), "{:?}", u.app.ui.last_error);
+}
+
+#[test]
+fn a_variable_duplicated_in_a_group_stays_in_it_and_in_view() {
+ let mut u = window_with_groups();
+ let group = leftmost(&mut u, "space");
+ click(&mut u, group, PointerButton::Primary);
+ let row = leftmost(&mut u, "sm");
+ click(&mut u, row, PointerButton::Secondary);
+ let duplicate = text_center(&flat(&u.frame_output(vec![]).shapes), "Duplicate");
+ click(&mut u, duplicate, PointerButton::Primary);
+ assert_eq!(names(&u), ["color/brand", "space/sm", "space/sm copy"]);
+ assert!(shown(&mut u, "sm copy"));
+}
+
+fn create_number(u: &mut Ui) {
+ let create = text_center(&flat(&u.frame_output(vec![]).shapes), "+ Create variable");
+ click(u, create, PointerButton::Primary);
+ let number = text_center(&flat(&u.frame_output(vec![]).shapes), "Number");
+ click(u, number, PointerButton::Primary);
+}
+
+fn type_and_enter(u: &mut Ui, typed: &str) {
+ u.frame(vec![Event::Text(typed.into())]);
+ for pressed in [true, false] {
+ u.frame(vec![Event::Key { key: Key::Enter, physical_key: None, pressed, repeat: false, modifiers: Modifiers::NONE }]);
+ }
+ settle(u);
+}
+
+#[test]
+fn a_name_of_slashes_alone_leaves_the_variable_in_its_group() {
+ for typed in ["/", " / / "] {
+ let mut u = window_with_groups();
+ let group = leftmost(&mut u, "space");
+ click(&mut u, group, PointerButton::Primary);
+ create_number(&mut u);
+ type_and_enter(&mut u, typed);
+ assert_eq!(names(&u), ["color/brand", "space/Number", "space/sm"], "{typed:?}");
+ }
+}
+
+#[test]
+fn a_new_collection_takes_its_first_variable_outside_the_group_shown_before() {
+ let mut u = window_with_groups();
+ let group = leftmost(&mut u, "space");
+ click(&mut u, group, PointerButton::Primary);
+ let heading = leftmost(&mut u, "Collections");
+ let (_, at, _) = texts(&flat(&u.frame_output(vec![]).shapes)).into_iter().find(|(t, ..)| t == "Collections").unwrap();
+ click(&mut u, Pos2::new(at.x - 16.0 + 200.0 - 20.0, heading.y), PointerButton::Primary);
+ assert_eq!(u.app.session.doc().unwrap().variables.collections.len(), 2, "the + by Collections made one");
+ type_and_enter(&mut u, "Sizes");
+ create_number(&mut u);
+ assert_eq!(names(&u), ["Number", "color/brand", "space/sm"]);
+}
diff --git a/docs/components-parity.md b/docs/components-parity.md
index fa4d2494e..48a9486c1 100644
--- a/docs/components-parity.md
+++ b/docs/components-parity.md
@@ -1,6 +1,6 @@
# Components, variants, styles and variables parity
-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (a style of one library that reaches a file through another library's component is, in a file linking both, the first library's own bound copy, so its modes colour it (#2414); with a variant selected, its property dropdowns show its own values and choosing one renames only that variant, instead of setting the set's default and moving the variants (#2349); library analytics count insertions and detachments of styles and variables; combining components gives every variant the properties any of them had; renaming a variable group to a path with `/` nests it under a parent group instead of turning the slash into a hyphen (#2353); a group's context menu in the Local variables window has Duplicate group, a copy named after it plus " 2" holding a copy of every variable, in one undo step (#2084); pages take a variable mode: with nothing selected the Design panel's Page section shows a Variable modes section, Auto or a mode of each collection that has more than one, as the help center says ("Apply variable mode" in the Page section of the right sidebar) (#2215); a text style binds a number variable to its weight (#2174); an instance lists only the properties its variant's layers use and long property names are cut to one line (#2022); with several layers selected the Design panel header's component button offers Create multiple components (#2088); the Local variables window selects several variables (click, Shift+click for a range, Cmd/Ctrl+click to toggle, Escape to clear) and delete, move to a group and scope act on the selected local variables in one undo step (#2002); text styles carry paragraph spacing and indent, the list style and the OpenType features, as the Supported in text styles table of Create and apply text styles says (#1829); a layer's effect binding takes only a field its effect has; Go to main component on an instance of a library component opens the library file in a tab and selects the main there; glass effects take variables; Delete on a layer inside an instance hides it as an override instead of being refused, as the help center says: "Figma will only toggle the layer's visibility instead of removing it"; library analytics list how many layers and files use each style and variable; SwiftUI and Compose code names a bound variable by its iOS or Android code syntax; library analytics count insertions and show insertions and detachments over the past 30 days, 90 days or year; a collection of this file can be extended (Extend collection on its row, `variable.extendCollection`), its extension following its edits at once, and extended collections extend again in the file; a typed or stored variable, collection or mode id names only the object with that id (#1613); colour variables can be calculated from other colours per mode — `{alpha}` replaces a colour's alpha, `{mix}` blends two — and follow them (#1280); stored variable and collection references keep their identity when another object is named like their id (follow-up to #1542); a component set's property rows fit the 240 px right panel: variant values wrap two to a line there and every + and − stays in view; opening a file contacts no team library server it names until you check it (#1097); an explicit variables file path (`variable.import`, the `variables` of `file.open` and `file.import`) is refused past 256 MiB or when it isn't a regular file, as the sibling `variables.json` already was (part of #1114); component properties keep the order they were made in when one is renamed, and Make slot asks for the slot's name first (#1536, #1537); components can't contain their own instances, directly or through others (#1084); the instance-swap menus have a search field (#1338); an instance-swap property's default menu scrolls (#1338); variables on a text style's fields from the style editor; instance-swap properties in the component playground; duplicating or Alt-dragging a main component makes an instance of it (#892); a bound colour variable's alpha applies once (#802); variables import reads `variables` outside `meta` and warns when it imports none (#790); variant properties reorder by drag; library files saved right after a read are read again; Hide when publishing note corrected; size and resizing overrides of layers inside instances (#731); variables export in the browser as a download; core editor leftovers: component playground, variables inside styles; layers and assets panels behaviour suite and fixes; extended collections tail; styles and variables behaviour suite and fixes; components behaviour suite and fixes; team libraries on the server, library usage and swapping a library; extended collections, variables import/export, gradient stops and variant properties bound to variables) · **Target:** Figma Design (desktop app 126.10.7)
+> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (with a variable group shown in the Local variables window, Create variable makes the variable in that group, and renaming a variable in its row changes the part shown and keeps its group; a style of one library that reaches a file through another library's component is, in a file linking both, the first library's own bound copy, so its modes colour it (#2414); with a variant selected, its property dropdowns show its own values and choosing one renames only that variant, instead of setting the set's default and moving the variants (#2349); library analytics count insertions and detachments of styles and variables; combining components gives every variant the properties any of them had; renaming a variable group to a path with `/` nests it under a parent group instead of turning the slash into a hyphen (#2353); a group's context menu in the Local variables window has Duplicate group, a copy named after it plus " 2" holding a copy of every variable, in one undo step (#2084); pages take a variable mode: with nothing selected the Design panel's Page section shows a Variable modes section, Auto or a mode of each collection that has more than one, as the help center says ("Apply variable mode" in the Page section of the right sidebar) (#2215); a text style binds a number variable to its weight (#2174); an instance lists only the properties its variant's layers use and long property names are cut to one line (#2022); with several layers selected the Design panel header's component button offers Create multiple components (#2088); the Local variables window selects several variables (click, Shift+click for a range, Cmd/Ctrl+click to toggle, Escape to clear) and delete, move to a group and scope act on the selected local variables in one undo step (#2002); text styles carry paragraph spacing and indent, the list style and the OpenType features, as the Supported in text styles table of Create and apply text styles says (#1829); a layer's effect binding takes only a field its effect has; Go to main component on an instance of a library component opens the library file in a tab and selects the main there; glass effects take variables; Delete on a layer inside an instance hides it as an override instead of being refused, as the help center says: "Figma will only toggle the layer's visibility instead of removing it"; library analytics list how many layers and files use each style and variable; SwiftUI and Compose code names a bound variable by its iOS or Android code syntax; library analytics count insertions and show insertions and detachments over the past 30 days, 90 days or year; a collection of this file can be extended (Extend collection on its row, `variable.extendCollection`), its extension following its edits at once, and extended collections extend again in the file; a typed or stored variable, collection or mode id names only the object with that id (#1613); colour variables can be calculated from other colours per mode — `{alpha}` replaces a colour's alpha, `{mix}` blends two — and follow them (#1280); stored variable and collection references keep their identity when another object is named like their id (follow-up to #1542); a component set's property rows fit the 240 px right panel: variant values wrap two to a line there and every + and − stays in view; opening a file contacts no team library server it names until you check it (#1097); an explicit variables file path (`variable.import`, the `variables` of `file.open` and `file.import`) is refused past 256 MiB or when it isn't a regular file, as the sibling `variables.json` already was (part of #1114); component properties keep the order they were made in when one is renamed, and Make slot asks for the slot's name first (#1536, #1537); components can't contain their own instances, directly or through others (#1084); the instance-swap menus have a search field (#1338); an instance-swap property's default menu scrolls (#1338); variables on a text style's fields from the style editor; instance-swap properties in the component playground; duplicating or Alt-dragging a main component makes an instance of it (#892); a bound colour variable's alpha applies once (#802); variables import reads `variables` outside `meta` and warns when it imports none (#790); variant properties reorder by drag; library files saved right after a read are read again; Hide when publishing note corrected; size and resizing overrides of layers inside instances (#731); variables export in the browser as a download; core editor leftovers: component playground, variables inside styles; layers and assets panels behaviour suite and fixes; extended collections tail; styles and variables behaviour suite and fixes; components behaviour suite and fixes; team libraries on the server, library usage and swapping a library; extended collections, variables import/export, gradient stops and variant properties bound to variables) · **Target:** Figma Design (desktop app 126.10.7)
Design systems are why teams adopt Figma. **Components: breadth ~96%, ready ~72%. Styles and
variables: breadth ~95%, ready ~76% (estimated).** QA'd with a synthetic design system of ~300
@@ -65,7 +65,7 @@ updates with overrides kept: `library_tests.rs`, `components_scale_tests.rs`.
| Editing a style updates its layers; detach and delete keep values; editing a styled property unlinks that style | done | an edited fill/stroke/effect/grid list or text chars unlink; applying a style replaces variables bound to what it sets; text styles on text layers only |
| Organising styles: folders by `/` names, order, duplicate, rename folder, Local styles list | done | `style.move` (into a folder renames), `style.duplicate` (right below), `style.renameFolder`; the page's Local styles list by type and folder (drag to reorder, right-click) |
| Variables inside styles (paint, effect, grid and text styles; each user resolves them in its own modes) | done | `style.bind`, `style_vars_tests`; the editor binds paint colours, shadow colours, blur radii, grid sizes and a text style's font, font style (a face name from a string variable, or a numeric weight from a number variable, which picks the nearest face and a variable font's `wght` axis), size, line height and letter spacing, the rest through the command; a bound line height is applied in pixels, as the reference tool does (measured 2026-11-10) |
-| Variables: colour, number, string, boolean; collections, modes, aliases, scopes, groups | done | behaviour suite: `variables_behaviour_tests.rs`; aliases same type, no loops (also on create); colour calculations per mode (`{alpha}`: a colour variable with its alpha replaced, `{mix}`: a per-channel blend of two colour variables or literals; they compose, can't loop, and bound layers, modes and undo follow them; REST, CSS, Penpot and `.fig` exports write the colour they show in each of their collection's modes, other collections in their default modes; read-only in the panel, which can swap one for an alias or detach it; `variables_colour_tests.rs`), beyond the incumbent, whose variables only alias; scopes filter pickers only; several variables can be selected in the editor (Shift and Cmd/Ctrl click) and deleted, moved to a group or rescoped at once; a group can be duplicated from its row's menu (Duplicate group, one undo step); the window resizes from its edges and corners (minimum 600 x 240) and keeps its size and place while the app runs, #2354 |
+| Variables: colour, number, string, boolean; collections, modes, aliases, scopes, groups | done | behaviour suite: `variables_behaviour_tests.rs`; aliases same type, no loops (also on create); colour calculations per mode (`{alpha}`: a colour variable with its alpha replaced, `{mix}`: a per-channel blend of two colour variables or literals; they compose, can't loop, and bound layers, modes and undo follow them; REST, CSS, Penpot and `.fig` exports write the colour they show in each of their collection's modes, other collections in their default modes; read-only in the panel, which can swap one for an alias or detach it; `variables_colour_tests.rs`), beyond the incumbent, whose variables only alias; scopes filter pickers only; several variables can be selected in the editor (Shift and Cmd/Ctrl click) and deleted, moved to a group or rescoped at once; a group can be duplicated from its row's menu (Duplicate group, one undo step); Create variable makes the variable in the group shown, and a row's rename edits the name's last part; the window resizes from its edges and corners (minimum 600 x 240) and keeps its size and place while the app runs, #2354 |
| Modes: add, duplicate, rename, delete, set as default / reorder | done | layers on Auto follow a new default; explicit modes stay |
| Deleting a bound variable or its collection | done | layers keep their last value and are unbound; aliases to it take its values and colour calculations reading it keep the colour they show |
| Code syntax per platform (Web, iOS, Android) | done | generated CSS uses the Web name, SwiftUI the iOS one and Compose the Android one (a variable without one keeps its value there); in the variables JSON; ArkUI and Flutter have no platform of their own and write values |
@@ -80,6 +80,7 @@ updates with overrides kept: `library_tests.rs`, `components_scale_tests.rs`.
| Date | Change | Summary |
|---|---|---|
+| 2026-11-19 | patch | M3: with a group selected in the Local variables window, + Create variable named the new variable without the group, so it went to the collection's top level and the table, showing the group, didn't show it; only All variables did. It's now made in the group shown (`space/Number`), as in Figma, where duplicating already kept the group. Renaming a variable in its row edited its whole name while the row shows the last part, so typing a name over a new grouped variable moved it out of the group; the field now edits the part shown and keeps the group (the Edit variable window still edits the whole name), and ignores a name of slashes alone. Creating a collection clears the group shown. Tests: `variables_group_create_tests` |
| 2026-11-19 | patch | M3, #2414: a kit's style used by a component of a second library reached a file linking both as a second, unbound copy (`::S:1`) frozen in the kit's default mode, so a mode set on the kit's collection didn't colour it (from two hops on, every such style). Publishing now keeps the variables the published styles bind and where the file's copies of other libraries' styles, variables and collections came from; importing files such a copy under that library when the file links it, so it is the file's own bound copy. Test: `library_style_hops_tests::a_kit_style_through_another_library_is_the_kits_bound_copy`; the issue's four-file chain renders Brand and Alt everywhere. Grade unchanged. |
| 2026-11-19 | patch | M3, #2349: with one variant of a set selected, the Design panel's variant property dropdowns showed the set's default values, and choosing a value set the default, so the variants swapped places. They now show the selected variant's own values (hover: "This variant's value"), and choosing one renames that variant only; with the set selected they still set its default. Test: `variant_own_value_tests::a_selected_variants_dropdown_shows_and_sets_its_own_value`. Grade unchanged. |
| 2026-11-18 | minor | M3, gap 10: library analytics count insertions and detachments of styles and variables. Applying one, or copying or duplicating content that uses it, inserts it; the Detach button detaches it; an instance counts as its component alone. Show usage and `library.usage` give them per style and variable over the chosen period. Modes aren't counted. Numbers unchanged. Tests: `library_asset_counts_tests`, `library_assets_tests`. |
From 167ce234bc9e298bde4c0a2513865296029b6651 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Wed, 18 Nov 2026 18:39:13 -0500
Subject: [PATCH 17/59] M3: Library styles show in the style pickers without
the Assets tab, with a source menu
Enabled libraries were read from disk only by the Assets panel
(refresh_libraries ran from its show). After a file with enabled
libraries was opened, the Design panel's style pickers found none in
the cache, and a library's text styles weren't offered ("No text styles
yet") until the Assets tab had been opened once.
refresh_libraries now runs from the app's background tick, whichever
tab shows, and reads a local library not read yet at once instead of
waiting out the 2 s throttle. A library the read refuses (too large, or
not on this computer) is never cached, so the tick remembers the paths
it last tried and tries those again only after the throttle; otherwise
it would read again every frame. The periodic repaint that picks up a
library changed on disk stays with the Assets panel, so an idle window
isn't woken every 2 s; the panel's doc comment now describes that
repaint.
The style picker gets Figma's source menu under the search field when
the file has enabled libraries: All libraries (the default, the list as
before), This file, or one library, kept while the picker is open. A
library that goes away falls back to All libraries.
---
crates/ui-egui/locales/en.toml | 1 +
crates/ui-egui/locales/ru.toml | 1 +
crates/ui-egui/src/app/commands.rs | 1 +
crates/ui-egui/src/panels/assets_panel.rs | 40 +++++++----
crates/ui-egui/src/widgets/style_picker.rs | 68 +++++++++++++++++--
.../ui-egui/src/widgets/style_picker/tests.rs | 68 +++++++++++++++++++
docs/components-parity.md | 3 +-
7 files changed, 162 insertions(+), 20 deletions(-)
diff --git a/crates/ui-egui/locales/en.toml b/crates/ui-egui/locales/en.toml
index e42a1c21c..c03f7ad65 100644
--- a/crates/ui-egui/locales/en.toml
+++ b/crates/ui-egui/locales/en.toml
@@ -102,6 +102,7 @@ name = "English"
"All comments" = "All comments"
"All components" = "All components"
"All fonts" = "All fonts"
+"All libraries" = "All libraries"
"All objects" = "All objects"
"All supported properties" = "All supported properties"
"All the fonts this file uses are installed" = "All the fonts this file uses are installed"
diff --git a/crates/ui-egui/locales/ru.toml b/crates/ui-egui/locales/ru.toml
index bc7aa6353..f74c0c02a 100644
--- a/crates/ui-egui/locales/ru.toml
+++ b/crates/ui-egui/locales/ru.toml
@@ -99,6 +99,7 @@ name = "Русский"
"All comments" = "Все комментарии"
"All components" = "Все компоненты"
"All fonts" = "Все шрифты"
+"All libraries" = "Все библиотеки"
"All objects" = "Все объекты"
"All supported properties" = "Все поддерживаемые свойства"
"All the fonts this file uses are installed" = "Все шрифты, которые использует этот файл, установлены"
diff --git a/crates/ui-egui/src/app/commands.rs b/crates/ui-egui/src/app/commands.rs
index e36471b42..e3251fcdd 100644
--- a/crates/ui-egui/src/app/commands.rs
+++ b/crates/ui-egui/src/app/commands.rs
@@ -321,6 +321,7 @@ impl FigApp {
self.autosave_tick(ctx, now);
self.auto_save_tick(ctx, now);
updates_ui::tick(self, ctx);
+ crate::assets_panel::refresh_libraries(self, ctx);
self.logic_ticked = true;
}
}
diff --git a/crates/ui-egui/src/panels/assets_panel.rs b/crates/ui-egui/src/panels/assets_panel.rs
index 9ee6c0dfe..a5f3773bc 100644
--- a/crates/ui-egui/src/panels/assets_panel.rs
+++ b/crates/ui-egui/src/panels/assets_panel.rs
@@ -37,9 +37,9 @@ const MAX_THUMBS: usize = 600;
const THUMBS_PER_FRAME: usize = 8;
/// Layers compared per component when checking whether its thumbnail is stale.
const MAX_COMPARED: usize = 20_000;
-/// Look for changed library files this often (seconds) while the panel shows.
+/// Look for changed library files this often (seconds).
const LIBRARY_REFRESH: f64 = 2.0;
-/// Ask team libraries' servers for newer versions this often (seconds) while the panel shows.
+/// Ask team libraries' servers for newer versions this often (seconds).
// shortcut: polled (a few bytes when nothing changed); a server push needs a connection per
// library, worth it once libraries are used beyond the Assets panel.
const SERVER_REFRESH: f64 = 30.0;
@@ -278,33 +278,42 @@ fn build_listing(app: &FigApp, doc: &Document, q: &str, key: (u64, String, u64))
Listing { key, local: foldered("", local), local_styles, libraries, updates }
}
-/// Re-read enabled library files that changed on disk (throttled).
-fn refresh_libraries(app: &mut FigApp, ui: &Ui) {
+/// Re-read enabled library files that changed on disk (throttled), every logic tick whether or not
+/// the Assets panel shows, so the style pickers list library styles too. A library this file
+/// hasn't tried to read yet (just opened or added) is read at once.
+pub(crate) fn refresh_libraries(app: &mut FigApp, ctx: &egui::Context) {
let Ok(doc) = app.session.doc() else { return };
if doc.libraries.enabled.is_empty() {
return;
}
let paths: Vec = doc.libraries.enabled.iter().map(|l| l.path.clone()).collect();
let id = Id::unique("asset_libraries_checked");
- let now = ui.input(|i| i.time);
- let last: Option = ui.data(|d| d.get_temp(id));
- if last.is_none_or(|l| now - l >= LIBRARY_REFRESH) {
+ // The paths the last read tried: one that was refused (too large, not on this computer) is
+ // never cached, and would otherwise be tried again every frame.
+ let tried_id = Id::unique("asset_libraries_tried");
+ let now = ctx.input(|i| i.time);
+ let last: Option = ctx.data(|d| d.get_temp(id));
+ let tried: Vec = ctx.data(|d| d.get_temp(tried_id)).unwrap_or_default();
+ let unread_here = paths.iter().any(|p| !is_server_link(p) && app.session.libraries.cached(p).is_none() && !tried.contains(p));
+ if unread_here || last.is_none_or(|l| now - l >= LIBRARY_REFRESH) {
for p in &paths {
let _ = app.session.libraries.load(p);
}
- ui.data_mut(|d| d.insert_temp(id, now));
+ ctx.data_mut(|d| {
+ d.insert_temp(id, now);
+ d.insert_temp(tried_id, paths.clone());
+ });
// Team libraries: in the background, at once for one not fetched yet.
let sid = Id::unique("asset_server_libraries_checked");
- let fetched: Option = ui.data(|d| d.get_temp(sid));
+ let fetched: Option = ctx.data(|d| d.get_temp(sid));
// Only the ones you added or checked: a file can't make the app contact a server (#1097).
let team: Vec<&String> = paths.iter().filter(|p| is_server_link(p) && app.session.library_allowed(p)).collect();
let unread = team.iter().any(|p| app.session.libraries.cached(p).is_none());
if !team.is_empty() && (unread || fetched.is_none_or(|l| now - l >= SERVER_REFRESH)) {
app.session.refresh_server_libraries();
- ui.data_mut(|d| d.insert_temp(sid, now));
+ ctx.data_mut(|d| d.insert_temp(sid, now));
}
}
- ui.ctx().request_repaint_after(std::time::Duration::from_secs_f64(LIBRARY_REFRESH));
}
/// The search field with the libraries button; returns the lowercase query.
@@ -577,12 +586,15 @@ fn render_thumbs(ui: &Ui, w: f32, thumbs: &mut Thumbs, wanted: &[(Source, NodeId
}
}
-/// Draw the Assets panel: refresh libraries, switch to the libraries view when asked,
-/// otherwise cache a listing keyed by revision, query and library state, render local and
+/// Draw the Assets panel: repaint every `LIBRARY_REFRESH` while the file has libraries (so a
+/// library changed on disk shows; the app's tick reads it), switch to the libraries view when
+/// asked, otherwise cache a listing keyed by revision, query and library state, render local and
/// enabled-library assets with reused thumbnails, and dispatch place, style, hide, toggle
/// and drag actions.
pub fn show(app: &mut FigApp, ui: &mut Ui) {
- refresh_libraries(app, ui);
+ if app.session.doc().is_ok_and(|d| !d.libraries.enabled.is_empty()) {
+ ui.ctx().request_repaint_after(std::time::Duration::from_secs_f64(LIBRARY_REFRESH));
+ }
if app.ui.libraries {
libraries_view(app, ui);
return;
diff --git a/crates/ui-egui/src/widgets/style_picker.rs b/crates/ui-egui/src/widgets/style_picker.rs
index ca063abad..fb369fbca 100644
--- a/crates/ui-egui/src/widgets/style_picker.rs
+++ b/crates/ui-egui/src/widgets/style_picker.rs
@@ -160,6 +160,30 @@ pub struct Picker {
y: f32,
query: String,
edit: Option,
+ /// Whose styles the list shows (the source menu over the list).
+ source: Source,
+}
+
+/// The source menu's choice: every source, this file's styles, or one enabled library's (by
+/// manifest id).
+#[derive(Clone, Debug, Default, PartialEq)]
+enum Source {
+ #[default]
+ All,
+ ThisFile,
+ Library(String),
+}
+
+impl Source {
+ /// Whether the styles of `lib` (`None`: this file) are listed.
+ fn shows(&self, lib: Option<&PublishedLibrary>) -> bool {
+ match (self, lib) {
+ (Source::All, _) => true,
+ (Source::ThisFile, None) => true,
+ (Source::Library(id), Some(l)) => l.manifest.id == *id,
+ _ => false,
+ }
+ }
}
impl Picker {
@@ -174,7 +198,7 @@ pub fn open(app: &mut FigApp, ui: &Ui, ids: &[NodeId], slot: StyleSlot) {
// Opening the style picker closes the colour picker (it would linger beside it).
crate::colorpicker::close(app);
app.ui.style_picker_popover = None;
- app.ui.style_picker = Some(Picker { slot, ids: ids.to_vec(), y, query: String::new(), edit: None });
+ app.ui.style_picker = Some(Picker { slot, ids: ids.to_vec(), y, query: String::new(), edit: None, source: Source::All });
}
/// Open the picker for `slot` of the selection (the control channel), optionally editing `style`.
@@ -183,7 +207,7 @@ pub fn open_for_selection(app: &mut FigApp, slot: StyleSlot, style: Option<&str>
let edit = style.and_then(|s| app.session.doc().ok()?.style(s).map(editing));
crate::colorpicker::close(app);
app.ui.style_picker_popover = None;
- app.ui.style_picker = Some(Picker { slot, ids, y: 140.0, query: String::new(), edit });
+ app.ui.style_picker = Some(Picker { slot, ids, y: 140.0, query: String::new(), edit, source: Source::All });
}
fn editing(s: &Style) -> Editing {
@@ -522,6 +546,28 @@ fn offered<'a>(doc: &'a Document, lib: Option<&'a PublishedLibrary>, slot: Style
}
}
+/// The source menu over the style list (shown when the file has libraries): All libraries, This
+/// file, then each library by name, the chosen one ticked.
+fn source_menu(ui: &mut Ui, libs: &[std::sync::Arc], source: &mut Source) {
+ let label = match source {
+ Source::All => tr("All libraries").to_string(),
+ Source::ThisFile => tr("This file").to_string(),
+ Source::Library(id) => libs.iter().find(|l| l.manifest.id == *id).map(|l| l.manifest.name.clone()).unwrap_or_default(),
+ };
+ let resp = widgets::dropdown(ui, &label, W, None);
+ crate::right::menu_popup(&resp).width(W).show(|ui| {
+ let mut choices = vec![(Source::All, tr("All libraries").to_string()), (Source::ThisFile, tr("This file").to_string())];
+ choices.extend(libs.iter().map(|l| (Source::Library(l.manifest.id.clone()), l.manifest.name.clone())));
+ for (choice, name) in choices {
+ let mark = if *source == choice { "✓ " } else { " " };
+ if crate::right::menu_item(ui, &format!("{mark}{name}"), "") {
+ *source = choice;
+ ui.close();
+ }
+ }
+ });
+}
+
/// The style list: header, search, this file's and the libraries' styles by folder, and (colour
/// slots) colour variables.
fn listing(app: &FigApp, ui: &mut Ui, doc: &Document, p: &mut Picker, out: &mut Frame) {
@@ -560,8 +606,20 @@ fn listing(app: &FigApp, ui: &mut Ui, doc: &Document, p: &mut Picker, out: &mut
ui.add_space(4.0);
let q = p.query.trim().to_lowercase();
let libs = crate::variable_ui::libraries(app, doc);
- let mut sources: Vec<(Option<&PublishedLibrary>, Vec<&Style>)> = vec![(None, offered(doc, None, slot, &q))];
- for l in &libs {
+ if !libs.is_empty() {
+ source_menu(ui, &libs, &mut p.source);
+ ui.add_space(4.0);
+ }
+ if let Source::Library(id) = &p.source
+ && !libs.iter().any(|l| l.manifest.id == *id)
+ {
+ p.source = Source::All;
+ }
+ let mut sources: Vec<(Option<&PublishedLibrary>, Vec<&Style>)> = Vec::new();
+ if p.source.shows(None) {
+ sources.push((None, offered(doc, None, slot, &q)));
+ }
+ for l in libs.iter().filter(|l| p.source.shows(Some(l))) {
let list = offered(doc, Some(l), slot, &q);
if !list.is_empty() {
sources.push((Some(l.as_ref()), list));
@@ -1246,7 +1304,7 @@ fn edit_local(app: &mut FigApp, ui: &Ui, slot: StyleSlot, id: &str) {
let edit = app.session.doc().ok().and_then(|d| d.style(id).map(editing));
crate::colorpicker::close(app);
app.ui.style_picker_popover = None;
- app.ui.style_picker = Some(Picker { slot, ids: app.session.selection(), y, query: String::new(), edit });
+ app.ui.style_picker = Some(Picker { slot, ids: app.session.selection(), y, query: String::new(), edit, source: Source::All });
}
/// `style.move` for the shown style `from` dropped at shown position `to` (`shown` in display
diff --git a/crates/ui-egui/src/widgets/style_picker/tests.rs b/crates/ui-egui/src/widgets/style_picker/tests.rs
index 08c27f12d..e837d3fa6 100644
--- a/crates/ui-egui/src/widgets/style_picker/tests.rs
+++ b/crates/ui-egui/src/widgets/style_picker/tests.rs
@@ -572,3 +572,71 @@ fn style_picker_icon_buttons_paint_16pt() {
assert!(paints_icon_at_button_size(&painted, icon), "{icon:?} is not 16 pt");
}
}
+
+#[test]
+fn a_reopened_files_text_styles_picker_lists_its_librarys_styles_without_the_assets_tab() {
+ let dir = std::env::temp_dir().join(format!("figcraft-picker-library-{}", std::process::id()));
+ let _ = std::fs::remove_dir_all(&dir);
+ std::fs::create_dir(&dir).unwrap();
+ let (library, file) = (dir.join("ds.figcraft"), dir.join("site.figcraft"));
+ let mut publisher = Session::new();
+ publisher.execute("style.create", &json!({"type": "text", "name": "Display", "value": {"fontFamily": "Inter", "fontSize": 48}})).unwrap();
+ publisher.execute("library.publish", &json!({})).unwrap();
+ publisher.execute("file.saveAs", &json!({"path": library})).unwrap();
+ let mut site = Session::new();
+ site.execute("text.create", &json!({"text": "Hello", "x": 0, "y": 0})).unwrap();
+ site.execute("style.create", &json!({"type": "text", "name": "Body", "value": {"fontFamily": "Inter", "fontSize": 14}})).unwrap();
+ site.execute("library.add", &json!({"path": library})).unwrap();
+ site.execute("file.saveAs", &json!({"path": file})).unwrap();
+
+ let mut reopened = Session::new();
+ reopened.execute("file.open", &json!({"path": file})).unwrap();
+ let text = reopened.doc().unwrap().nodes().find(|n| matches!(n.kind, figcraft_doc::NodeKind::Text(_))).unwrap().id;
+ reopened.execute("select.set", &json!({"ids": [text]})).unwrap();
+ let mut u = crate::layers_drag_tests::Ui::new(reopened);
+ open_for_selection(&mut u.app, StyleSlot::Text, None);
+ for _ in 0..3 {
+ u.frame(vec![]);
+ }
+ let texts = drawn_texts(&mut u);
+ let _ = std::fs::remove_dir_all(&dir);
+ let (display, body) = ("48/Auto", "14/Auto");
+ let shows = |texts: &[(String, Pos2)], s: &str| texts.iter().any(|(t, _)| t == s);
+ assert!(shows(&texts, display) && shows(&texts, body), "every source by default: {:?}", texts.iter().map(|t| &t.0).collect::>());
+
+ let choose = |u: &mut crate::layers_drag_tests::Ui, from: &str, to: &str| {
+ let at = text_at(&drawn_texts(u), from);
+ u.button(at, true);
+ u.button(at, false);
+ let texts = drawn_texts(u);
+ let item = texts.iter().rev().find(|(t, _)| t.trim_start_matches(['✓', ' ']) == to).unwrap_or_else(|| panic!("{to} in the menu")).1;
+ u.button(item, true);
+ u.button(item, false);
+ drawn_texts(u)
+ };
+ let texts = choose(&mut u, "All libraries", "This file");
+ assert!(shows(&texts, body) && !shows(&texts, display), "This file: its own styles only");
+ let texts = choose(&mut u, "This file", "Untitled");
+ assert!(shows(&texts, display) && !shows(&texts, body), "a library: its styles only");
+ assert!(u.app.ui.style_picker.is_some(), "choosing a source keeps the picker open");
+}
+
+#[test]
+fn a_library_that_cant_be_read_is_tried_again_only_after_the_refresh_interval() {
+ let mut s = Session::new();
+ s.doc_mut().unwrap().libraries_mut().enabled.push(figcraft_doc::LibraryLink {
+ id: "elsewhere".into(),
+ name: "Elsewhere".into(),
+ path: "file://server/share/ds.figcraft".into(),
+ relative: String::new(),
+ version: 0,
+ });
+ let mut u = crate::layers_drag_tests::Ui::new(s);
+ let checked = |u: &crate::layers_drag_tests::Ui| u.ctx.data(|d| d.get_temp::(Id::unique("asset_libraries_checked")));
+ u.frame(vec![]);
+ let first = checked(&u).expect("the first frame tries the library");
+ for _ in 0..10 {
+ u.frame(vec![]);
+ }
+ assert_eq!(checked(&u), Some(first), "a refused library doesn't make every frame read again");
+}
diff --git a/docs/components-parity.md b/docs/components-parity.md
index fa4d2494e..02b0ca441 100644
--- a/docs/components-parity.md
+++ b/docs/components-parity.md
@@ -1,6 +1,6 @@
# Components, variants, styles and variables parity
-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (a style of one library that reaches a file through another library's component is, in a file linking both, the first library's own bound copy, so its modes colour it (#2414); with a variant selected, its property dropdowns show its own values and choosing one renames only that variant, instead of setting the set's default and moving the variants (#2349); library analytics count insertions and detachments of styles and variables; combining components gives every variant the properties any of them had; renaming a variable group to a path with `/` nests it under a parent group instead of turning the slash into a hyphen (#2353); a group's context menu in the Local variables window has Duplicate group, a copy named after it plus " 2" holding a copy of every variable, in one undo step (#2084); pages take a variable mode: with nothing selected the Design panel's Page section shows a Variable modes section, Auto or a mode of each collection that has more than one, as the help center says ("Apply variable mode" in the Page section of the right sidebar) (#2215); a text style binds a number variable to its weight (#2174); an instance lists only the properties its variant's layers use and long property names are cut to one line (#2022); with several layers selected the Design panel header's component button offers Create multiple components (#2088); the Local variables window selects several variables (click, Shift+click for a range, Cmd/Ctrl+click to toggle, Escape to clear) and delete, move to a group and scope act on the selected local variables in one undo step (#2002); text styles carry paragraph spacing and indent, the list style and the OpenType features, as the Supported in text styles table of Create and apply text styles says (#1829); a layer's effect binding takes only a field its effect has; Go to main component on an instance of a library component opens the library file in a tab and selects the main there; glass effects take variables; Delete on a layer inside an instance hides it as an override instead of being refused, as the help center says: "Figma will only toggle the layer's visibility instead of removing it"; library analytics list how many layers and files use each style and variable; SwiftUI and Compose code names a bound variable by its iOS or Android code syntax; library analytics count insertions and show insertions and detachments over the past 30 days, 90 days or year; a collection of this file can be extended (Extend collection on its row, `variable.extendCollection`), its extension following its edits at once, and extended collections extend again in the file; a typed or stored variable, collection or mode id names only the object with that id (#1613); colour variables can be calculated from other colours per mode — `{alpha}` replaces a colour's alpha, `{mix}` blends two — and follow them (#1280); stored variable and collection references keep their identity when another object is named like their id (follow-up to #1542); a component set's property rows fit the 240 px right panel: variant values wrap two to a line there and every + and − stays in view; opening a file contacts no team library server it names until you check it (#1097); an explicit variables file path (`variable.import`, the `variables` of `file.open` and `file.import`) is refused past 256 MiB or when it isn't a regular file, as the sibling `variables.json` already was (part of #1114); component properties keep the order they were made in when one is renamed, and Make slot asks for the slot's name first (#1536, #1537); components can't contain their own instances, directly or through others (#1084); the instance-swap menus have a search field (#1338); an instance-swap property's default menu scrolls (#1338); variables on a text style's fields from the style editor; instance-swap properties in the component playground; duplicating or Alt-dragging a main component makes an instance of it (#892); a bound colour variable's alpha applies once (#802); variables import reads `variables` outside `meta` and warns when it imports none (#790); variant properties reorder by drag; library files saved right after a read are read again; Hide when publishing note corrected; size and resizing overrides of layers inside instances (#731); variables export in the browser as a download; core editor leftovers: component playground, variables inside styles; layers and assets panels behaviour suite and fixes; extended collections tail; styles and variables behaviour suite and fixes; components behaviour suite and fixes; team libraries on the server, library usage and swapping a library; extended collections, variables import/export, gradient stops and variant properties bound to variables) · **Target:** Figma Design (desktop app 126.10.7)
+> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (an enabled library's styles are offered in the style pickers without opening the Assets tab first, and the picker filters its list by source (All libraries, This file, one library); a style of one library that reaches a file through another library's component is, in a file linking both, the first library's own bound copy, so its modes colour it (#2414); with a variant selected, its property dropdowns show its own values and choosing one renames only that variant, instead of setting the set's default and moving the variants (#2349); library analytics count insertions and detachments of styles and variables; combining components gives every variant the properties any of them had; renaming a variable group to a path with `/` nests it under a parent group instead of turning the slash into a hyphen (#2353); a group's context menu in the Local variables window has Duplicate group, a copy named after it plus " 2" holding a copy of every variable, in one undo step (#2084); pages take a variable mode: with nothing selected the Design panel's Page section shows a Variable modes section, Auto or a mode of each collection that has more than one, as the help center says ("Apply variable mode" in the Page section of the right sidebar) (#2215); a text style binds a number variable to its weight (#2174); an instance lists only the properties its variant's layers use and long property names are cut to one line (#2022); with several layers selected the Design panel header's component button offers Create multiple components (#2088); the Local variables window selects several variables (click, Shift+click for a range, Cmd/Ctrl+click to toggle, Escape to clear) and delete, move to a group and scope act on the selected local variables in one undo step (#2002); text styles carry paragraph spacing and indent, the list style and the OpenType features, as the Supported in text styles table of Create and apply text styles says (#1829); a layer's effect binding takes only a field its effect has; Go to main component on an instance of a library component opens the library file in a tab and selects the main there; glass effects take variables; Delete on a layer inside an instance hides it as an override instead of being refused, as the help center says: "Figma will only toggle the layer's visibility instead of removing it"; library analytics list how many layers and files use each style and variable; SwiftUI and Compose code names a bound variable by its iOS or Android code syntax; library analytics count insertions and show insertions and detachments over the past 30 days, 90 days or year; a collection of this file can be extended (Extend collection on its row, `variable.extendCollection`), its extension following its edits at once, and extended collections extend again in the file; a typed or stored variable, collection or mode id names only the object with that id (#1613); colour variables can be calculated from other colours per mode — `{alpha}` replaces a colour's alpha, `{mix}` blends two — and follow them (#1280); stored variable and collection references keep their identity when another object is named like their id (follow-up to #1542); a component set's property rows fit the 240 px right panel: variant values wrap two to a line there and every + and − stays in view; opening a file contacts no team library server it names until you check it (#1097); an explicit variables file path (`variable.import`, the `variables` of `file.open` and `file.import`) is refused past 256 MiB or when it isn't a regular file, as the sibling `variables.json` already was (part of #1114); component properties keep the order they were made in when one is renamed, and Make slot asks for the slot's name first (#1536, #1537); components can't contain their own instances, directly or through others (#1084); the instance-swap menus have a search field (#1338); an instance-swap property's default menu scrolls (#1338); variables on a text style's fields from the style editor; instance-swap properties in the component playground; duplicating or Alt-dragging a main component makes an instance of it (#892); a bound colour variable's alpha applies once (#802); variables import reads `variables` outside `meta` and warns when it imports none (#790); variant properties reorder by drag; library files saved right after a read are read again; Hide when publishing note corrected; size and resizing overrides of layers inside instances (#731); variables export in the browser as a download; core editor leftovers: component playground, variables inside styles; layers and assets panels behaviour suite and fixes; extended collections tail; styles and variables behaviour suite and fixes; components behaviour suite and fixes; team libraries on the server, library usage and swapping a library; extended collections, variables import/export, gradient stops and variant properties bound to variables) · **Target:** Figma Design (desktop app 126.10.7)
Design systems are why teams adopt Figma. **Components: breadth ~96%, ready ~72%. Styles and
variables: breadth ~95%, ready ~76% (estimated).** QA'd with a synthetic design system of ~300
@@ -80,6 +80,7 @@ updates with overrides kept: `library_tests.rs`, `components_scale_tests.rs`.
| Date | Change | Summary |
|---|---|---|
+| 2026-11-18 | patch | M3: enabled libraries were read only while the Assets panel showed, so after a file was opened the Design panel's style pickers offered none of their styles (a library's text styles read "No text styles yet") until the Assets tab had been opened. They are refreshed from the app's background tick now, a local library not read yet at once. The style picker has a source menu under its search field, as in Figma: All libraries (the default), This file, or one enabled library. Test: `style_picker::tests::a_reopened_files_text_styles_picker_lists_its_librarys_styles_without_the_assets_tab` |
| 2026-11-19 | patch | M3, #2414: a kit's style used by a component of a second library reached a file linking both as a second, unbound copy (`::S:1`) frozen in the kit's default mode, so a mode set on the kit's collection didn't colour it (from two hops on, every such style). Publishing now keeps the variables the published styles bind and where the file's copies of other libraries' styles, variables and collections came from; importing files such a copy under that library when the file links it, so it is the file's own bound copy. Test: `library_style_hops_tests::a_kit_style_through_another_library_is_the_kits_bound_copy`; the issue's four-file chain renders Brand and Alt everywhere. Grade unchanged. |
| 2026-11-19 | patch | M3, #2349: with one variant of a set selected, the Design panel's variant property dropdowns showed the set's default values, and choosing a value set the default, so the variants swapped places. They now show the selected variant's own values (hover: "This variant's value"), and choosing one renames that variant only; with the set selected they still set its default. Test: `variant_own_value_tests::a_selected_variants_dropdown_shows_and_sets_its_own_value`. Grade unchanged. |
| 2026-11-18 | minor | M3, gap 10: library analytics count insertions and detachments of styles and variables. Applying one, or copying or duplicating content that uses it, inserts it; the Detach button detaches it; an instance counts as its component alone. Show usage and `library.usage` give them per style and variable over the chosen period. Modes aren't counted. Numbers unchanged. Tests: `library_asset_counts_tests`, `library_assets_tests`. |
From 406bbf7aba5073f6d07b113654989939eb7c32ce Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Thu, 19 Nov 2026 16:25:37 -0500
Subject: [PATCH 18/59] M4: Text pasted while editing keeps its formatting;
Shift+Cmd/Ctrl+V matches the style
Text copied or cut while editing reached the clipboard as plain
characters, and a paste inserted them in the style at the caret, so the
copied font, size, colour and text style were lost. A whole text layer
copied with Cmd/Ctrl+C and pasted into another text's edit lost them the
same way. Shift+Cmd/Ctrl+V and Alt+Cmd/Ctrl+V while editing did nothing
useful: on the desktop egui-winit sends those chords as keys, and no text
binding took them.
A copy or cut while editing now also keeps the selection's style runs
(textedit::selected_rich_text), and a copy of text layers keeps theirs
(textedit::layers_rich_text, joined with line breaks as the clipboard's
text is). A run coloured by its layer's fill carries that fill, since a
run without fills of its own takes the fill of whatever layer it lands
in. A paste whose text is still that copied text inserts it with those
runs (textedit::insert_rich); a run linked to a text style the file
doesn't have keeps its look and drops the link, and fills equal to the
destination layer's are left to the layer. The copy also carries the
data of the images the runs' fills use, and the paste adds it where the
file lacks that key, as a layer paste does, so an image fill resolves in
another file. Text from another app pastes as before.
Shift+Cmd/Ctrl+V while editing, and Alt+Cmd/Ctrl+V, read the clipboard's
text and insert it plain, in the style at the caret; in the browser,
where the chord also brings a paste event, the event is used and the key
only marks the chord as handled, and the chord on that key, not the
modifiers held when the event is read, picks the plain paste. Shift
alone is another paste key (Shift+Insert) and keeps the formatting.
Outside text editing Shift+Cmd/Ctrl+V is still Paste over selection and
Alt+Cmd/Ctrl+V Paste properties.
---
crates/engine/src/canvas/textedit.rs | 103 +++++++++++-
crates/engine/src/canvas/textedit/tests.rs | 49 ++++++
crates/ui-egui/src/lib.rs | 6 +
crates/ui-egui/src/menus.rs | 2 +
crates/ui-egui/src/shortcuts.rs | 40 ++++-
crates/ui-egui/src/text_paste_style_tests.rs | 160 +++++++++++++++++++
docs/ui-parity.md | 3 +-
7 files changed, 360 insertions(+), 3 deletions(-)
create mode 100644 crates/ui-egui/src/text_paste_style_tests.rs
diff --git a/crates/engine/src/canvas/textedit.rs b/crates/engine/src/canvas/textedit.rs
index 6c8c15071..ce592775f 100644
--- a/crates/engine/src/canvas/textedit.rs
+++ b/crates/engine/src/canvas/textedit.rs
@@ -1,8 +1,9 @@
//! On-canvas text editing: caret, selection, typing. A whole editing session is one undo step.
+use std::collections::BTreeMap;
use std::sync::{LazyLock, Mutex};
-use figcraft_doc::{Document, ListStyle, NodeId, NodeKind, TextData};
+use figcraft_doc::{Document, ImageData, ListStyle, NodeId, NodeKind, TextData};
use crate::{EngineError, Preedit, Result, Session, TextEdit};
@@ -856,6 +857,106 @@ pub fn selected_text(s: &Session) -> Option {
Some(t.characters.chars().skip(a).take(b.saturating_sub(a)).collect())
}
+/// Copied characters with their formatting, for a paste into a text edit that keeps it.
+#[derive(Clone, Debug, PartialEq)]
+pub struct RichText {
+ pub text: String,
+ /// Styled runs as `(from, to, style)` char ranges of `text`. Each style carries its fills,
+ /// the layer's own where the run had none, so the characters keep their colour elsewhere.
+ pub spans: Vec<(usize, usize, figcraft_doc::TextStyle)>,
+ /// The data of the images the runs' fills use, so they resolve in another file.
+ pub images: BTreeMap,
+}
+
+/// The selected characters while editing, with their formatting (for copy).
+pub fn selected_rich_text(s: &Session) -> Option {
+ let (id, a, b) = selected_range(s)?;
+ rich_text_of(s.doc().ok()?, id, a, b)
+}
+
+/// The characters of the text layers `ids`, one per line, with their formatting; None when one of
+/// them isn't a text layer or there are no characters.
+pub fn layers_rich_text(doc: &Document, ids: &[NodeId]) -> Option {
+ let mut joined = RichText { text: String::new(), spans: Vec::new(), images: BTreeMap::new() };
+ let mut offset = 0;
+ for (i, id) in ids.iter().enumerate() {
+ let layer = rich_text_of(doc, *id, 0, usize::MAX)?;
+ if i > 0 {
+ joined.text.push('\n');
+ offset += 1;
+ }
+ joined.text.push_str(&layer.text);
+ joined.spans.extend(layer.spans.into_iter().map(|(from, to, style)| (from + offset, to + offset, style)));
+ joined.images.extend(layer.images);
+ offset += layer.text.chars().count();
+ }
+ (!joined.text.is_empty()).then_some(joined)
+}
+
+/// Chars `a..b` of the text layer `id` (`b` past the end means to the end), with their formatting.
+fn rich_text_of(doc: &Document, id: NodeId, a: usize, b: usize) -> Option {
+ let n = doc.node(id)?;
+ let t = n.kind.text()?;
+ let b = b.min(t.char_count());
+ let text: String = t.characters.chars().skip(a).take(b.saturating_sub(a)).collect();
+ let spans: Vec<(usize, usize, figcraft_doc::TextStyle)> = t
+ .spans()
+ .into_iter()
+ .filter(|(from, to, _)| *to > a && *from < b)
+ .map(|(from, to, style)| {
+ let mut style = style.clone();
+ style.fills.get_or_insert_with(|| n.fills.clone());
+ (from.max(a) - a, to.min(b) - a, style)
+ })
+ .collect();
+ let mut images = BTreeMap::new();
+ for paint in spans.iter().flat_map(|(_, _, style)| style.fills.iter().flatten()) {
+ if let figcraft_color::PaintKind::Image(img) = &paint.kind
+ && let Some(d) = doc.images.get(&img.image)
+ {
+ images.insert(img.image.clone(), d.clone());
+ }
+ }
+ Some(RichText { text, spans, images })
+}
+
+/// Replace the selection in the text edit with `rich`, keeping its formatting. A link to a style
+/// this file doesn't have is dropped, a fill equal to the layer's is left to the layer, and the
+/// copied image data is added where this file lacks the key, as a pasted layer's is.
+pub fn insert_rich(s: &mut Session, rich: &RichText) -> Result<()> {
+ if s.ds()?.text_edit.is_some() {
+ let doc = s.doc_mut()?;
+ for (k, v) in &rich.images {
+ doc.images.entry(k.clone()).or_insert_with(|| v.clone());
+ }
+ }
+ let doc = s.doc()?;
+ let layer_fills = s.ds()?.text_edit.as_ref().and_then(|te| doc.node(te.id)).map(|n| n.fills.clone());
+ let spans: Vec<(usize, usize, figcraft_doc::TextStyle)> = rich
+ .spans
+ .iter()
+ .map(|(from, to, style)| {
+ let mut style = style.clone();
+ if style.style_id.as_deref().is_some_and(|id| doc.style(id).is_none()) {
+ style.style_id = None;
+ }
+ if style.fills == layer_fills {
+ style.fills = None;
+ }
+ (*from, *to, style)
+ })
+ .collect();
+ edit(s, |t, te| {
+ let (a, b) = range(te);
+ t.replace_range(a, b, &rich.text);
+ for (from, to, style) in &spans {
+ t.restyle(a + from, a + to, |x| *x = style.clone());
+ }
+ te.caret = a + rich.text.chars().count();
+ te.anchor = te.caret;
+ })
+}
+
/// The selected range while editing (for styling commands), or None.
pub fn selected_range(s: &Session) -> Option<(NodeId, usize, usize)> {
let te = s.ds().ok()?.text_edit.clone()?;
diff --git a/crates/engine/src/canvas/textedit/tests.rs b/crates/engine/src/canvas/textedit/tests.rs
index 81756901d..e8daa3bf9 100644
--- a/crates/engine/src/canvas/textedit/tests.rs
+++ b/crates/engine/src/canvas/textedit/tests.rs
@@ -569,3 +569,52 @@ fn an_empty_ime_commit_ends_the_composition_without_inserting_text() {
end(&mut s).unwrap();
assert_eq!(insert_ime_commit(&mut s, "").unwrap(), ImeInsertion::Nothing);
}
+
+#[test]
+fn rich_text_pastes_its_runs_and_drops_a_link_to_a_style_this_file_lacks() {
+ let (mut s, id) = setup("ab");
+ begin(&mut s, id, Some(2), false).unwrap();
+ let mut bold = data(&s, id).style.clone();
+ bold.font_style = "Bold".into();
+ bold.style_id = Some("from another file".into());
+ let plain = data(&s, id).style.clone();
+ insert_rich(&mut s, &RichText { text: "XY".into(), spans: vec![(0, 1, bold), (1, 2, plain)], images: Default::default() }).unwrap();
+ let t = data(&s, id);
+ assert_eq!(t.characters, "abXY");
+ assert_eq!(t.style_at(2).font_style, "Bold");
+ assert_eq!(t.style_at(2).style_id, None, "a link to a style this file doesn't have");
+ assert_eq!(t.style_at(3).font_style, "Regular");
+ assert_eq!(sel(&s), (4, 4));
+ set_caret(&mut s, 2, false).unwrap();
+ set_caret(&mut s, 4, true).unwrap();
+ let copied = selected_rich_text(&s).unwrap();
+ assert_eq!(copied.text, "XY");
+ assert_eq!(copied.spans.iter().map(|(a, b, st)| (*a, *b, st.font_style.as_str())).collect::>(), [(0, 1, "Bold"), (1, 2, "Regular")]);
+}
+
+#[test]
+fn copied_characters_bring_the_image_their_fill_uses_into_another_file() {
+ let (mut source, id) = setup("ab");
+ let data = figcraft_doc::ImageData { bytes: std::sync::Arc::new(vec![1, 2, 3]), width: 2, height: 2 };
+ {
+ let doc = source.doc_mut().unwrap();
+ doc.images.insert("pic".into(), data.clone());
+ doc.get_mut(id).unwrap().fills = vec![figcraft_color::Paint::image("pic", figcraft_color::ImageScaleMode::Fill)];
+ }
+ begin(&mut source, id, Some(0), false).unwrap();
+ set_caret(&mut source, 2, true).unwrap();
+ let copied = selected_rich_text(&source).unwrap();
+ let (mut s, target) = setup("cd");
+ begin(&mut s, target, Some(2), false).unwrap();
+ insert_rich(&mut s, &copied).unwrap();
+ assert_eq!(s.doc().unwrap().images.get("pic"), Some(&data), "the run's image fill resolves here");
+}
+
+#[test]
+fn copied_text_layers_join_one_per_line_with_their_runs_in_place() {
+ let (mut s, first) = setup("ab");
+ let second = crate::params::id_of(&s.execute("text.create", &json!({"text": "cdé", "x": 0, "y": 50})).unwrap()["id"]).unwrap();
+ let joined = layers_rich_text(s.doc().unwrap(), &[first, second]).unwrap();
+ assert_eq!(joined.text, "ab\ncdé");
+ assert_eq!(joined.spans.iter().map(|(a, b, _)| (*a, *b)).collect::>(), [(0, 2), (3, 6)]);
+}
diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs
index 32d859f6c..4aedc0d02 100644
--- a/crates/ui-egui/src/lib.rs
+++ b/crates/ui-egui/src/lib.rs
@@ -286,6 +286,8 @@ mod text_link_tests;
#[cfg(test)]
mod text_mixed_fill_tests;
#[cfg(test)]
+mod text_paste_style_tests;
+#[cfg(test)]
mod tidy_tests;
#[cfg(test)]
mod titlebar_tests;
@@ -628,6 +630,9 @@ pub struct UiState {
/// copy changes the engine clipboard without writing the OS clipboard; the generation then
/// no longer matches, so the stale mirror is not mistaken for the user's own copy.
pub last_copy_generation: u64,
+ /// The formatting of the characters last copied as text: a paste into a text edit of those
+ /// same characters keeps it.
+ pub text_copy: Option,
/// The fill, stroke or effect row highlighted in the Design panel: Cmd/Ctrl+C copies it.
pub property_row: Option,
/// A paint or effect copied from its row: Cmd/Ctrl+V pastes it while it's the last copy.
@@ -775,6 +780,7 @@ impl Default for UiState {
last_copy: None,
last_copy_generation: 0,
+ text_copy: None,
property_row: None,
property_copy: None,
after_field: None,
diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rs
index b0a7dfaf1..3827378ac 100644
--- a/crates/ui-egui/src/menus.rs
+++ b/crates/ui-egui/src/menus.rs
@@ -209,6 +209,7 @@ pub fn invoke(app: &mut FigApp, id: &str) {
.ok()
.and_then(|d| d.vector_edit.as_ref())
.is_some_and(|ve| ve.parts().iter().any(|p| !p.vertices.is_empty() || !p.segments.is_empty()));
+ let rich = doc.filter(|_| !partial).and_then(|d| figcraft_engine::textedit::layers_rich_text(d, &ids));
let mirror = doc.filter(|_| !partial).and_then(|d| text_layers_text(d, &ids).or_else(|| figcraft_svg_export(d, &ids)));
let ran = app.run(id, json!({}));
// A partial copy put temporary layers on the engine clipboard; mirror their SVG.
@@ -223,6 +224,7 @@ pub fn invoke(app: &mut FigApp, id: &str) {
app.clipboard_set_text(&text);
app.ui.last_copy = Some(text);
app.ui.last_copy_generation = app.session.clipboard.layers_generation;
+ app.ui.text_copy = rich;
}
}
"edit.paste" => paste(app, None, None),
diff --git a/crates/ui-egui/src/shortcuts.rs b/crates/ui-egui/src/shortcuts.rs
index 1cac67b4b..fc05b571f 100644
--- a/crates/ui-egui/src/shortcuts.rs
+++ b/crates/ui-egui/src/shortcuts.rs
@@ -776,6 +776,10 @@ fn text_keys(app: &mut FigApp, ctx: &Context, events: &[Event], ime_input: Optio
let reject_ime = ime_input.is_some_and(|baseline| baseline.interrupted(app));
// A key that ran a shortcut swallows the text it also produced (Alt+. types "≥" on macOS).
let mut skip_text = false;
+ let paste_in_batch = events.iter().any(|e| matches!(e, Event::Paste(_)));
+ // The browser sends Shift/Alt+Cmd/Ctrl+V's keys along with its paste event: the chord on the
+ // key, not the modifiers still held when the paste is handled, says to match the style.
+ let match_style = events.iter().any(|e| matches!(e, Event::Key { key: Key::V, pressed: true, modifiers: m, .. } if match_style_chord(*m)));
for ev in events {
if reject_ime && matches!(ev, Event::Ime(_)) {
continue;
@@ -787,9 +791,19 @@ fn text_keys(app: &mut FigApp, ctx: &Context, events: &[Event], ime_input: Optio
}
}
Event::Ime(ime) => ime_event(app, ctx, ime),
- Event::Paste(t) => insert_text(app, ctx, t),
+ Event::Paste(t) => paste_text(app, ctx, t, match_style),
Event::Copy => copy_or_cut(app, ctx, false),
Event::Cut => copy_or_cut(app, ctx, true),
+ // On the desktop the chord comes without a paste event: paste the clipboard's characters.
+ Event::Key { key: Key::V, pressed: true, modifiers: m, .. } if match_style_chord(*m) => {
+ if !paste_in_batch
+ && !app.control_synthetic
+ && let Some(t) = app.services.clipboard_get_text()
+ {
+ insert_text(app, ctx, &t);
+ }
+ skip_text = true;
+ }
Event::Key { key, physical_key, pressed: true, modifiers: m, .. } if text_key_event(app, ctx, *key, *physical_key, *m) => {
skip_text = true;
}
@@ -813,6 +827,29 @@ fn insert_text(app: &mut FigApp, ctx: &Context, t: &str) {
}
}
+/// Shift or Alt with Cmd/Ctrl, the Paste and match style chord with V. Shift alone is another
+/// paste key (Shift+Insert), which keeps the copied formatting.
+fn match_style_chord(m: Modifiers) -> bool {
+ m.command && (m.alt || m.shift)
+}
+
+/// Paste `t` into the edit: with the formatting it was copied with when it's the characters
+/// FigCraft last copied and `match_style` is off, otherwise in the style at the caret.
+fn paste_text(app: &mut FigApp, ctx: &Context, t: &str, match_style: bool) {
+ let pasted = t.replace("\r\n", "\n").replace('\r', "\n");
+ let Some(copied) = app.ui.text_copy.clone().filter(|c| !match_style && c.text == pasted) else {
+ insert_text(app, ctx, t);
+ return;
+ };
+ let before = ime_stamp(app);
+ if let Err(e) = figcraft_engine::textedit::insert_rich(&mut app.session, &copied) {
+ app.toast(e.to_string());
+ }
+ if ime_stamp(app) != before {
+ note_ime_application_change(app, ctx);
+ }
+}
+
/// An IME commit, preedit or surrounding-text deletion for the edit.
fn ime_event(app: &mut FigApp, ctx: &Context, ev: &egui::ImeEvent) {
match ev {
@@ -867,6 +904,7 @@ fn copy_or_cut(app: &mut FigApp, ctx: &Context, cut: bool) {
&& let Some(text) = &selected
{
app.clipboard_set_text(text);
+ app.ui.text_copy = figcraft_engine::textedit::selected_rich_text(&app.session);
}
if cut && selected.is_some() {
let _ = figcraft_engine::textedit::key(&mut app.session, "Delete", false, false, false);
diff --git a/crates/ui-egui/src/text_paste_style_tests.rs b/crates/ui-egui/src/text_paste_style_tests.rs
new file mode 100644
index 000000000..46d33dc6b
--- /dev/null
+++ b/crates/ui-egui/src/text_paste_style_tests.rs
@@ -0,0 +1,160 @@
+//! Pasting into a text edit: characters FigCraft copied keep their formatting, while
+//! Shift/Alt+Cmd/Ctrl+V and text from other apps take the style at the caret.
+use std::cell::RefCell;
+use std::rc::Rc;
+
+use egui::{Event, Key, Modifiers};
+use figcraft_doc::{NodeId, TextData};
+use figcraft_engine::{Session, textedit};
+use serde_json::json;
+
+use crate::layers_drag_tests::Ui;
+
+struct Clipboard(Rc>);
+
+impl crate::Services for Clipboard {
+ fn clipboard_set_text(&mut self, text: &str) {
+ *self.0.borrow_mut() = text.to_string();
+ }
+ fn clipboard_get_text(&mut self) -> Option {
+ Some(self.0.borrow().clone())
+ }
+}
+
+fn text(u: &Ui, id: NodeId) -> TextData {
+ u.app.session.doc().unwrap().node(id).unwrap().kind.text().unwrap().clone()
+}
+
+fn layer(s: &mut Session, chars: &str, size: f64, y: f64) -> NodeId {
+ NodeId(s.execute("text.create", &json!({"text": chars, "x": 0, "y": y, "props": {"fontSize": size}})).unwrap()["id"].as_u64().unwrap())
+}
+
+fn copy_the_bold_word() -> (Ui, NodeId, Rc>) {
+ let mut s = Session::new();
+ let source = layer(&mut s, "Bold plain", 24.0, 0.0);
+ let target = layer(&mut s, "Target", 12.0, 100.0);
+ textedit::begin(&mut s, source, Some(0), false).unwrap();
+ textedit::set_caret(&mut s, 4, true).unwrap();
+ s.execute("text.bold", &json!({})).unwrap();
+ let mut u = Ui::new(s);
+ let clipboard = Rc::new(RefCell::new(String::new()));
+ u.app.services = Box::new(Clipboard(clipboard.clone()));
+ u.frame(vec![Event::Copy]);
+ textedit::end(&mut u.app.session).unwrap();
+ textedit::begin(&mut u.app.session, target, Some(6), false).unwrap();
+ (u, target, clipboard)
+}
+
+#[test]
+fn pasting_copied_text_brings_its_formatting() {
+ let (mut u, target, clipboard) = copy_the_bold_word();
+ assert_eq!(*clipboard.borrow(), "Bold");
+ u.frame(vec![Event::Paste("Bold".into())]);
+ let t = text(&u, target);
+ assert_eq!(t.characters, "TargetBold");
+ assert_eq!((t.style_at(6).font_style.as_str(), t.style_at(6).font_size), ("Bold", 24.0), "the copied characters keep their look");
+ assert_eq!((t.style_at(0).font_style.as_str(), t.style_at(0).font_size), ("Regular", 12.0), "the text around them keeps its own");
+}
+
+#[test]
+fn alt_cmd_v_pastes_the_characters_in_the_style_at_the_caret() {
+ let (mut u, target, _) = copy_the_bold_word();
+ let held = Modifiers { alt: true, command: true, mac_cmd: true, ..Modifiers::NONE };
+ let v = Event::Key { key: Key::V, physical_key: Some(Key::V), pressed: true, repeat: false, modifiers: held };
+ u.frame_with(vec![v], held);
+ let t = text(&u, target);
+ assert_eq!(t.characters, "TargetBold");
+ assert_eq!((t.style_at(6).font_style.as_str(), t.style_at(6).font_size), ("Regular", 12.0), "the destination's look");
+ assert!(t.runs.is_empty());
+}
+
+#[test]
+fn text_copied_elsewhere_pastes_in_the_style_at_the_caret() {
+ let (mut u, target, _) = copy_the_bold_word();
+ u.frame(vec![Event::Paste("From a browser".into())]);
+ let t = text(&u, target);
+ assert_eq!(t.characters, "TargetFrom a browser");
+ assert!(t.runs.is_empty(), "nothing FigCraft copied: plain text");
+}
+
+fn painted(s: &mut Session, id: NodeId, hex: &str) {
+ let paint = figcraft_color::Paint::solid(figcraft_color::Color::from_hex(hex).unwrap());
+ s.ds_mut().unwrap().doc_mut().get_mut(id).unwrap().fills = vec![paint];
+}
+
+fn color_at(u: &Ui, id: NodeId, i: usize) -> Option {
+ let n = u.app.session.doc().unwrap().node(id).unwrap();
+ let fills = n.kind.text().unwrap().style_at(i).fills.clone().unwrap_or_else(|| n.fills.clone());
+ fills.first().and_then(figcraft_color::Paint::solid_color)
+}
+
+fn red_source_and_black_target() -> (Ui, NodeId, NodeId) {
+ let mut s = Session::new();
+ let source = layer(&mut s, "Red", 24.0, 0.0);
+ let target = layer(&mut s, "Target", 12.0, 100.0);
+ painted(&mut s, source, "#FF0000");
+ painted(&mut s, target, "#000000");
+ let mut u = Ui::new(s);
+ u.app.services = Box::new(Clipboard(Rc::new(RefCell::new(String::new()))));
+ (u, source, target)
+}
+
+#[test]
+fn copied_characters_keep_the_colour_of_their_layer() {
+ let (mut u, source, target) = red_source_and_black_target();
+ textedit::begin(&mut u.app.session, source, Some(0), false).unwrap();
+ textedit::set_caret(&mut u.app.session, 3, true).unwrap();
+ u.frame(vec![Event::Copy]);
+ textedit::end(&mut u.app.session).unwrap();
+ textedit::begin(&mut u.app.session, target, Some(6), false).unwrap();
+ u.frame(vec![Event::Paste("Red".into())]);
+ assert_eq!(text(&u, target).characters, "TargetRed");
+ assert_eq!(color_at(&u, target, 6), figcraft_color::Color::from_hex("#FF0000"), "the copied characters stay red");
+ assert_eq!(color_at(&u, target, 0), figcraft_color::Color::from_hex("#000000"), "the target's own text stays black");
+ assert_eq!(text(&u, target).style_at(6).font_size, 24.0);
+}
+
+#[test]
+fn a_copied_text_layer_pastes_into_an_edit_with_its_look() {
+ let (mut u, source, target) = red_source_and_black_target();
+ u.app.session.execute("select.set", &json!({"ids": [source.0]})).unwrap();
+ u.frame(vec![Event::Copy]);
+ textedit::begin(&mut u.app.session, target, Some(6), false).unwrap();
+ u.frame(vec![Event::Paste("Red".into())]);
+ let t = text(&u, target);
+ assert_eq!(t.characters, "TargetRed");
+ assert_eq!(t.style_at(6).font_size, 24.0);
+ assert_eq!(color_at(&u, target, 6), figcraft_color::Color::from_hex("#FF0000"));
+ assert_eq!(t.style_at(0).font_size, 12.0);
+}
+
+#[test]
+fn shift_cmd_v_pastes_the_characters_in_the_style_at_the_caret() {
+ let (mut u, target, _) = copy_the_bold_word();
+ let held = Modifiers { shift: true, command: true, mac_cmd: true, ..Modifiers::NONE };
+ let v = Event::Key { key: Key::V, physical_key: Some(Key::V), pressed: true, repeat: false, modifiers: held };
+ u.frame_with(vec![v], held);
+ let t = text(&u, target);
+ assert_eq!(t.characters, "TargetBold");
+ assert!(t.runs.is_empty(), "the destination's look");
+}
+
+#[test]
+fn shift_insert_is_an_ordinary_paste_and_keeps_the_formatting() {
+ let (mut u, target, _) = copy_the_bold_word();
+ u.frame_with(vec![Event::Paste("Bold".into())], Modifiers::SHIFT);
+ let t = text(&u, target);
+ assert_eq!(t.characters, "TargetBold");
+ assert_eq!(t.style_at(6).font_style, "Bold");
+}
+
+#[test]
+fn the_chord_matches_the_style_though_its_keys_are_up_by_the_paste() {
+ let (mut u, target, _) = copy_the_bold_word();
+ let chord = Modifiers { shift: true, command: true, mac_cmd: true, ..Modifiers::NONE };
+ let v = Event::Key { key: Key::V, physical_key: Some(Key::V), pressed: true, repeat: false, modifiers: chord };
+ u.frame_with(vec![v, Event::Paste("Bold".into())], Modifiers::NONE);
+ let t = text(&u, target);
+ assert_eq!(t.characters, "TargetBold");
+ assert!(t.runs.is_empty(), "the destination's look");
+}
diff --git a/docs/ui-parity.md b/docs/ui-parity.md
index d756e71b0..2e84432cc 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-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); text copied while editing, or a whole text layer copied, pastes into a text edit with its formatting and its layer's colour, and Shift+Cmd/Ctrl+V (also Alt+Cmd/Ctrl+V) pastes it in the style at the caret; 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-18 | patch | M4: text copied or cut while editing went to the clipboard as plain characters, so Cmd/Ctrl+V put it in the style at the caret and dropped its font, size, fills and text style; Alt+Cmd/Ctrl+V while editing did nothing. Cmd/Ctrl+V now pastes the characters with the formatting they were copied with while the clipboard still holds the text FigCraft copied (a link to a text style the file doesn't have is dropped, its look kept), and Alt+Cmd/Ctrl+V pastes the clipboard's characters in the style at the caret, as Paste and match style does. Characters coloured by their layer's fill keep that colour, and a whole text layer copied with Cmd/Ctrl+C pastes into a text edit the same way. Shift+Cmd/Ctrl+V while editing does what Alt+Cmd/Ctrl+V does; outside text editing it is still Paste over selection. Shift+Insert pastes as Cmd/Ctrl+V does, and an image fill on the copied characters brings its image into another file, as a pasted layer's does. Text copied in another app pastes as before. Tests: `text_paste_style_tests`, `textedit::tests::rich_text_pastes_its_runs_and_drops_a_link_to_a_style_this_file_lacks`, `textedit::tests::copied_characters_bring_the_image_their_fill_uses_into_another_file` |
| 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 a28dca47b55d5806b216a16e7e48bc913e58bc38 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Thu, 19 Nov 2026 16:36:58 -0500
Subject: [PATCH 19/59] M1: A curved layer's outline bends smoothly
The hover and selection outline of an ellipse, a vector or a rounded
corner is the layer's path flattened into lines on screen. The lines
could be 0.5 pt from the curve, which made the outline of a 65 by 50
ellipse turn by up to 22 degrees at each point at 100%, and showed its
straight pieces at every zoom. The fill, drawn by the renderer, stayed
smooth under it.
The flattening tolerance is now 0.02 pt on screen for a path with up to
200 curved segments, so the outline stays within a fiftieth of a point
of the curve. Above that it grows with the count, up to the old 0.5 pt
at 5,000 curves. The hover outline is flattened every frame and the
selection outline every frame the view moves, and egui tessellates
every point each frame: at a flat 0.02 pt a vector of 5,000 curves had
about 4.7 times the points and took about 5 to 9 ms more per frame in a
release build (perf_tests harness, frame plus tessellation). Caching
the flattened points alone would not have helped much, since the
tessellation runs every frame anyway.
The test checks how far the outline strays from the curve, which is
what the tolerance controls. The sharpest turn per step depends on how
large the curve is on screen, so a fixed angle was close to the edge.
---
crates/ui-egui/src/canvas/outline.rs | 17 ++++-
crates/ui-egui/src/canvas/outline_tests.rs | 79 ++++++++++++++++++++++
docs/ui-parity.md | 3 +-
3 files changed, 97 insertions(+), 2 deletions(-)
diff --git a/crates/ui-egui/src/canvas/outline.rs b/crates/ui-egui/src/canvas/outline.rs
index 37e7aebc2..1ef4b3b8b 100644
--- a/crates/ui-egui/src/canvas/outline.rs
+++ b/crates/ui-egui/src/canvas/outline.rs
@@ -170,14 +170,29 @@ pub(super) fn outline_path(doc: &Document, n: &figcraft_doc::Node) -> Option f64 {
+ (0.02 * curves as f64 / SMOOTH_CURVES as f64).clamp(0.02, 0.5)
+}
+
+/// The most curved segments an outline flattens at the smooth 0.02 pt ([`outline_tolerance`]).
+pub(super) const SMOOTH_CURVES: usize = 200;
+
/// [`outline_path`] on screen, flattened into polylines.
fn outline_shape(app: &FigApp, doc: &Document, id: NodeId) -> Option>> {
+ use figcraft_geom::kurbo::PathEl;
let n = doc.node(id)?;
let path = outline_path(doc, n)?;
let w = doc.world_transform(id);
let mut out = Vec::new();
let mut cur: Vec = Vec::new();
- figcraft_geom::kurbo::flatten(path.iter(), 0.5 / app.session.ds().map(|d| d.view.zoom).unwrap_or(1.0), |el| {
+ let curves = path.elements().iter().filter(|el| matches!(el, PathEl::QuadTo(..) | PathEl::CurveTo(..))).count();
+ let zoom = app.session.ds().map(|d| d.view.zoom).unwrap_or(1.0);
+ figcraft_geom::kurbo::flatten(path.iter(), outline_tolerance(curves) / zoom, |el| {
use figcraft_geom::kurbo::PathEl::*;
match el {
MoveTo(p) => {
diff --git a/crates/ui-egui/src/canvas/outline_tests.rs b/crates/ui-egui/src/canvas/outline_tests.rs
index 115b83140..5f735051b 100644
--- a/crates/ui-egui/src/canvas/outline_tests.rs
+++ b/crates/ui-egui/src/canvas/outline_tests.rs
@@ -46,3 +46,82 @@ fn square_corners_keep_the_box() {
let id = layer(&mut s, "rectangle", json!({"stroke": "#000000", "strokeWeight": 4, "strokeAlign": "outside"}));
assert!(path_of(s.doc().unwrap(), id).is_none());
}
+
+/// How far, in screen points, layer `id`'s outline strays from its path: the largest distance from
+/// the middle of one of its straight pieces to the path.
+fn largest_stray(u: &crate::layers_drag_tests::Ui, id: NodeId) -> f64 {
+ use figcraft_geom::kurbo::ParamCurveNearest;
+ let doc = u.app.session.doc().unwrap().clone();
+ let path = path_of(&doc, id).unwrap();
+ let to_local = doc.world_transform(id).inverse();
+ let zoom = u.app.session.ds().unwrap().view.zoom;
+ let mut largest: f64 = 0.0;
+ for shape in super::outline::outline_shapes(&u.app, &doc, id, egui::Stroke::new(1.0, egui::Color32::WHITE)) {
+ let egui::Shape::Path(line) = shape else { panic!("a polyline outline") };
+ for piece in line.points.windows(2) {
+ let middle = to_local * u.app.to_page(piece[0] + (piece[1] - piece[0]) * 0.5);
+ let d = path.segments().map(|seg| seg.nearest(middle, 1e-9).distance_sq).fold(f64::MAX, f64::min).sqrt();
+ largest = largest.max(d * zoom);
+ }
+ }
+ largest
+}
+
+/// The outline is flattened to 0.02 pt on screen at any zoom, so its straight pieces don't show:
+/// each stays well within 0.1 pt of the curve (0.5 pt left straight pieces visible on an ellipse).
+#[test]
+fn a_selected_ellipses_outline_stays_on_the_curve_at_any_zoom() {
+ let mut s = Session::new();
+ let ellipse =
+ NodeId(s.execute("node.create", &json!({"type": "ellipse", "x": 0, "y": 0, "width": 65, "height": 50})).unwrap()["id"].as_u64().unwrap());
+ let mut u = crate::layers_drag_tests::Ui::new(s);
+ for zoom in [1.0, 3.5, 16.0] {
+ u.app.session.execute("view.set", &json!({"zoom": zoom, "cx": 30, "cy": 25})).unwrap();
+ u.frame(vec![]);
+ let stray = largest_stray(&u, ellipse);
+ assert!(stray < 0.1, "at {zoom}x the outline strays {stray:.3} pt from the curve");
+ }
+}
+
+/// A vector of `rows` closed bands, each `waves` cubic waves 10 pt wide along its top.
+fn waves(rows: usize, waves: usize) -> String {
+ let mut d = String::new();
+ for r in 0..rows {
+ let y = r as f64 * 10.0;
+ d += &format!("M0 {y} ");
+ for k in 0..waves {
+ let x = k as f64 * 10.0;
+ d += &format!("C{} {} {} {} {} {y} ", x + 3.3, y - 8.0, x + 6.6, y + 8.0, x + 10.0);
+ }
+ d += &format!("L{} {} L0 {} Z ", waves as f64 * 10.0, y + 6.0, y + 6.0);
+ }
+ d
+}
+
+/// Heavy vectors are flattened coarser, so hovering, panning and zooming them stays as cheap as
+/// before: a vector of 5,000 curves keeps the points 0.5 pt gave it (0.02 pt gives about five times
+/// as many), and one of 200 still bends as smoothly as an ellipse.
+#[test]
+fn a_heavy_vectors_outline_keeps_the_points_it_had() {
+ use super::outline::{SMOOTH_CURVES, outline_shapes, outline_tolerance};
+ let mut s = Session::new();
+ let vector = |s: &mut Session, d: String| {
+ NodeId(s.execute("node.create", &json!({"type": "vector", "path": d, "closed": true, "x": 0, "y": 0})).unwrap()["id"].as_u64().unwrap())
+ };
+ let heavy = vector(&mut s, waves(50, 100));
+ let light = vector(&mut s, waves(2, SMOOTH_CURVES / 2));
+ let u = crate::layers_drag_tests::Ui::new(s);
+ let doc = u.app.session.doc().unwrap().clone();
+ let points = |id: NodeId| -> usize {
+ outline_shapes(&u.app, &doc, id, egui::Stroke::new(1.0, egui::Color32::WHITE))
+ .iter()
+ .map(|shape| if let egui::Shape::Path(line) = shape { line.points.len() } else { 0 })
+ .sum()
+ };
+ let zoom = u.app.session.ds().unwrap().view.zoom;
+ let mut before = 0;
+ figcraft_geom::kurbo::flatten(path_of(&doc, heavy).unwrap().iter(), 0.5 / zoom, |_| before += 1);
+ assert!(points(heavy) <= before, "{} points, {before} at 0.5 pt", points(heavy));
+ assert_eq!(outline_tolerance(SMOOTH_CURVES), 0.02);
+ assert!(largest_stray(&u, light) < 0.1, "{SMOOTH_CURVES} curves bend smoothly");
+}
diff --git a/docs/ui-parity.md b/docs/ui-parity.md
index d756e71b0..8164ec306 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-19 · **Change:** minor (the hover and selection outline of a curved layer bends smoothly instead of showing straight pieces; 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:
@@ -219,6 +219,7 @@ This audit records candidates for subsequent fixes; their behaviour is unchanged
| 2026-11-19 | patch | M5, #2360: with a frame selected, a drag that starts on one of its children moves the frame and a click selects the child (a press on a layer inside a selected one drags the selection), as in Figma; Cmd/Ctrl, Shift and layers outside the frame are unchanged. |
| 2026-11-18 | patch | M5, #2372: the arrow keys move a layer along the canvas axes inside a rotated parent (the step was applied along the parent's axes, so Down moved a child of a frame rotated 90 degrees sideways); auto layout children are unchanged |
| 2026-11-18 | patch | M1, #2355: Cmd/Ctrl+V with one layer inside a frame selected pasted the copy onto the page on top of the frame; it now goes into the layer's parent just above it (in an auto layout frame, the item after it, so the layout grows), keeping today's behaviour for a page-level layer, several layers, an instance's children and a board atom. Tests: `paste_sibling_tests` (5) |
+| 2026-11-18 | patch | M1, #1506 follow-up: the hover and selection outline of an ellipse, a vector or a rounded corner was flattened into lines up to 0.5 pt from the curve on screen, so it turned up to 22° at a time on a 65 by 50 ellipse at 100% and showed straight pieces around it. It is now flattened to 0.02 pt at any zoom, so it stays within 0.1 pt of the curve. A path with more than 200 curves is flattened coarser as the count grows, up to the old 0.5 pt at 5,000: the outline is flattened again each frame the view moves or the layer is hovered and every point is tessellated each frame, and at 0.02 pt a vector of 5,000 curves took about 5 to 9 ms more per frame in a release build. Tests: `outline_tests::a_selected_ellipses_outline_stays_on_the_curve_at_any_zoom`, `outline_tests::a_heavy_vectors_outline_keeps_the_points_it_had` |
| 2026-11-08 | minor | M8, #2109: in vector edit mode the Align commands (`align.left` to `align.bottom`, Alt+A/H/D/W/V/S) and Distribute horizontal and vertical spacing act on the selected points when neither `ids` nor `id` is given (either one targets layers), as in Figma (measured in Figma on 2026-11-08): each point moves along one axis only, to its box's left, horizontal centre, right, top, vertical centre or bottom, and distribute spaces the points evenly between the outermost two in order along the axis; handles go with their vertex, a single point stays, with no point selected nothing moves (the layer is not aligned to its frame, as measured in Figma), and one undo restores them. The Design panel draws the alignment row first, with a Distribute menu from three points. Numbers unchanged. |
| 2026-11-08 | patch | Number fields: scrubbing a label moves half a step a point, not a step, as measured in Figma (X from 100: +6 for a 12.2 px drag, +31 for 61.2 px; rotation 6° and opacity 5% for 12.2 px); Shift (x10), Alt (x0.1) and the speed by height are kept on top of it and were not measured, and no field's scrub direction changed |
| 2026-11-17 | patch | M8: each page keeps its view in a session: going back to a page (the Pages list, `page.select`, Previous/Next page) shows it where it was left instead of fitting it again; a new page is still fitted, and going to the page shown moves nothing (`page_view_tests`) |
From 435d85b8a448503564de712dbaac3d79338314ea Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Wed, 18 Nov 2026 18:55:15 -0500
Subject: [PATCH 20/59] M1: Crop mode crops by the layer's sides in auto
layout, up to the image, and never runs with vector edit
In crop mode (Object > Crop image) the layer's sides and corners crop its
image through the Cmd/Ctrl resize: the canvas sends Cmd/Ctrl while crop
mode is on. Several things went wrong around that.
Auto layout. The Cmd/Ctrl crop left out any layer with auto layout on it
or an ancestor (#703), because the layout could recompute the box after
the drag and a crop worked out for the dragged size would stretch. An
image in an auto layout column was resized and squashed instead. The
exclusion is gone: the crop is worked out for the dragged box in the
preview and, once the layout has run, again from the snapshot for the
size it left (crop_to_the_laid_out_box). A resize already makes the
dragged axes Fixed; the layout may still move the layer, and the picture
moves with it, unstretched. Where the layout makes the layer longer than
it was dragged (a minimum width after the left side was dragged in), the
crop slides back along the image rather than past its edge.
Past the image. A side could be dragged beyond the image's edge, leaving
an empty strip inside the layer. While the box isn't flipped, its sides
now stop at the image's box (or where they started, if that was further
out: a Fit image is smaller than its layer). The box is drawn back towards
where it started, both ends of an axis by the same fraction, so an Alt
resize stays centred, and with Shift both axes by the same fraction, so
the ratio holds. A drag past the opposite side still flips as any resize
does (command_crop_keeps_image_placement_in_the_layers_axes pins that).
Ratio. A layer whose proportions are locked kept its ratio in crop mode
too, so dragging a side moved the opposite axis; the crop window now
ignores the lock and Shift keeps the ratio. The image's own corner
handles were the other way round from a resize: in proportion by
default, free with Shift. They now scale freely, in proportion with
Shift.
Vector edit. A double-click on the image enters vector edit mode, and
Object > Crop image could be chosen while vector edit was on, so both ran
at once. The injected Cmd/Ctrl then turned a drag of the layer's side
into the Bend tool (a curved edge), and a dragged top segment showed the
selected points' box, "804 x 0". Now image.crop ends vector edit, crop
mode ends when vector edit starts, the canvas injects Cmd/Ctrl only while
no points are being edited, and a double- or triple-click in crop mode
stays in crop mode. When the second press of that double-click began a
resize on a side of the layer, its release ends the resize.
command_resize_leaves_fills_when_text_or_auto_layout_recomputes_the_box
pinned the auto layout exclusion; its text case stays as
command_resize_leaves_a_texts_fills.
---
crates/engine/src/canvas/tools/drag.rs | 197 ++++++++++++++----
crates/engine/src/cmd/image.rs | 3 +
.../engine/src/transform_behaviour_tests.rs | 147 +++++++++++--
crates/ui-egui/src/canvas.rs | 5 +-
crates/ui-egui/src/canvas/handles.rs | 11 +-
crates/ui-egui/src/canvas/input.rs | 15 ++
crates/ui-egui/src/crop_image_tests.rs | 129 ++++++++++++
docs/ui-parity.md | 3 +-
8 files changed, 445 insertions(+), 65 deletions(-)
diff --git a/crates/engine/src/canvas/tools/drag.rs b/crates/engine/src/canvas/tools/drag.rs
index 84ca02ba4..af183a2bd 100644
--- a/crates/engine/src/canvas/tools/drag.rs
+++ b/crates/engine/src/canvas/tools/drag.rs
@@ -557,9 +557,16 @@ impl Session {
self.tool.overlay.guides = guides;
return Ok(());
}
- // Constrain proportions (Shift, or the node's lock).
- let keep = ev.shift || r.single && ids.first().and_then(|i| self.doc().ok()?.node(*i).map(|n| n.constrain_proportions)).unwrap_or(false);
- let (x0, y0, x1, y1) = resized_box(r.handle, q, w0, h0, keep, ev.alt);
+ let image_box = ids.first().filter(|_| ev.cmd && r.single).and_then(|i| self.image_box(*i));
+ // Constrain proportions (Shift, or the node's lock; cropping an image ignores the lock).
+ let locked =
+ r.single && image_box.is_none() && ids.first().and_then(|i| self.doc().ok()?.node(*i).map(|n| n.constrain_proportions)).unwrap_or(false);
+ let keep = ev.shift || locked;
+ let resized = resized_box(r.handle, q, w0, h0, keep, ev.alt);
+ let (x0, y0, x1, y1) = match image_box {
+ Some(image) => within_the_image(resized, image, (w0, h0), keep),
+ None => resized,
+ };
let (flip_x, flip_y) = (x1 < x0, y1 < y0);
let (nx0, ny0) = (x0.min(x1), y0.min(y1));
let (nw, nh) = ((x1 - x0).abs(), (y1 - y0).abs());
@@ -571,46 +578,30 @@ impl Session {
let keeps = |doc: &Document, id: NodeId| {
doc.node(id).is_some_and(|n| matches!(n.kind, NodeKind::Section { .. }) || (ev.cmd && single && n.kind.is_frame_like()))
};
+ let dragged_box = |world: Affine, (ox, oy): (f64, f64)| {
+ let mut t = world * Affine::translate((ox, oy));
+ if flip_x {
+ t *= Affine::new([-1.0, 0.0, 0.0, 1.0, nw, 0.0]);
+ }
+ if flip_y {
+ t *= Affine::new([1.0, 0.0, 0.0, -1.0, 0.0, nh]);
+ }
+ t
+ };
self.preview(|doc, _| {
if single {
let Some((id, world, _, _)) = nodes.first() else { return Ok(()) };
let kept = if keeps(doc, *id) { crate::cmd::props::children_worlds(doc, *id) } else { Vec::new() };
- let mut t = *world * Affine::translate((nx0, ny0));
- if flip_x {
- t *= Affine::new([-1.0, 0.0, 0.0, 1.0, nw, 0.0]);
- }
- if flip_y {
- t *= Affine::new([1.0, 0.0, 0.0, -1.0, 0.0, nh]);
- }
+ let t = dragged_box(*world, (nx0, ny0));
// Text reflow and auto layout can recompute this box after the preview (a size bound
- // to a variable lets go of it: the resize is an explicit edit).
+ // to a variable lets go of it: the resize is an explicit edit). A text keeps its
+ // fills; any other layer's image is cropped again for the box layout leaves
+ // (`crop_to_the_laid_out_box`).
let n = doc.get(*id)?;
- let crop_images = ev.cmd
- && !matches!(n.kind, NodeKind::Text(_))
- && !std::iter::once(*id).chain(doc.ancestors(*id)).any(|a| doc.node(a).is_some_and(|n| n.layout.is_some()));
- if crop_images {
- // Crop the layer's image fills without moving their pixels on the page.
- // Work from the interaction snapshot, just like the geometry on every move.
- let (w, h) = (n.width.max(1e-6), n.height.max(1e-6));
- let to_old =
- Affine::scale_non_uniform(1.0 / w, 1.0 / h) * world.inverse() * t * Affine::scale_non_uniform(nw.max(0.01), nh.max(0.01));
- let mut fills = n.fills.clone();
- for paint in &mut fills {
- let PaintKind::Image(img) = &mut paint.kind else { continue };
- // A repeating image cannot be represented by a single Crop placement.
- if img.scale_mode == ImageScaleMode::Tile {
- continue;
- }
- let Some(data) = doc.images.get(&img.image) else { continue };
- let (iw, ih) = (f64::from(data.width), f64::from(data.height));
- // A degenerate (zero-scale) layer has no inverse: its image keeps its placement.
- let crop = (Affine::new(img.placement_crop(iw, ih, w, h)) * to_old).as_coeffs();
- if !crop.iter().all(|c| c.is_finite()) {
- continue;
- }
- img.crop = Some(crop);
- img.scale_mode = ImageScaleMode::Crop;
- }
+ // Crop the layer's image fills without moving their pixels on the page.
+ // Work from the interaction snapshot, just like the geometry on every move.
+ if ev.cmd && !matches!(n.kind, NodeKind::Text(_)) {
+ let fills = cropped_image_fills(doc, n, *world, t, (nw, nh));
doc.get_mut(*id)?.fills = fills;
}
doc.set_world_transform(*id, t)?;
@@ -656,10 +647,67 @@ impl Session {
}
Ok(())
})?;
+ if single
+ && ev.cmd
+ && let Some((id, world, _, _)) = nodes.first()
+ {
+ let laid_out_box = |(fw, fh): (f64, f64)| {
+ let origin = match image_box {
+ Some((ix0, iy0, ix1, iy1)) => {
+ (slid_onto_the_image(nx0, fw, flip_x, (ix0, ix1), w0), slid_onto_the_image(ny0, fh, flip_y, (iy0, iy1), h0))
+ }
+ None => (nx0, ny0),
+ };
+ dragged_box(*world, origin)
+ };
+ self.crop_to_the_laid_out_box(*id, *world, laid_out_box, (nw, nh))?;
+ }
self.tool.overlay.guides = guides;
Ok(())
}
+ /// The box `(x0, y0, x1, y1)` of the first visible, untiled image fill of `id` in the layer's
+ /// own axes, as it was when the gesture began; `None` for a text or a layer without one.
+ fn image_box(&self, id: NodeId) -> Option<(f64, f64, f64, f64)> {
+ let snapshot = self.ds().ok()?.interaction.as_ref()?.doc.clone();
+ let n = snapshot.node(id)?;
+ if matches!(n.kind, NodeKind::Text(_)) {
+ return None;
+ }
+ n.fills.iter().filter(|p| p.visible).find_map(|p| match &p.kind {
+ PaintKind::Image(img) if img.scale_mode != ImageScaleMode::Tile => {
+ let data = snapshot.images.get(&img.image)?;
+ let crop = img.effective_crop(f64::from(data.width), f64::from(data.height), n.width, n.height);
+ let (x0, y0, x1, y1) = figcraft_doc::color::ImagePaint::crop_rect(crop);
+ Some((x0 * n.width, y0 * n.height, x1 * n.width, y1 * n.height))
+ }
+ _ => None,
+ })
+ }
+
+ /// After the preview's layout: when the layer didn't keep the dragged size `(nw, nh)` (a
+ /// minimum size, a Hug frame), crop its image fills again from the snapshot for the size it
+ /// has, the box placed by `laid_out_box` (given that size) in the layer's starting axes.
+ fn crop_to_the_laid_out_box(
+ &mut self,
+ id: NodeId,
+ world: Affine,
+ laid_out_box: impl Fn((f64, f64)) -> Affine,
+ (nw, nh): (f64, f64),
+ ) -> Result<()> {
+ let ds = self.ds_mut()?;
+ let Some(snapshot) = ds.interaction.as_ref().map(|it| it.doc.clone()) else { return Ok(()) };
+ let Some(before) = snapshot.node(id).filter(|n| !matches!(n.kind, NodeKind::Text(_))) else { return Ok(()) };
+ let Some((fw, fh)) = ds.doc.node(id).map(|n| (n.width, n.height)) else { return Ok(()) };
+ if (fw - nw.max(0.01)).abs() < 1e-9 && (fh - nh.max(0.01)).abs() < 1e-9 {
+ return Ok(());
+ }
+ let fills = cropped_image_fills(&snapshot, before, world, laid_out_box((fw, fh)), (fw, fh));
+ std::sync::Arc::make_mut(&mut ds.doc).get_mut(id)?.fills = fills;
+ ds.revision += 1;
+ Ok(())
+ }
+
/// Scale tool handle drag (`q`: the snapped pointer in the handle box's axes): everything
/// scales by one factor about the anchor point (Alt: the centre), strokes, effects, radii and
/// text included, children by the same factor whatever their constraints.
@@ -703,3 +751,78 @@ fn only_shifted(doc: &Document, moving: &[NodeId]) -> bool {
!in_flow && !nested
})
}
+
+/// `before`'s fills (from the snapshot `doc`) with each image cropped to the box `dragged` (the
+/// layer's new transform, `nw` × `nh`), its pixels left where they were on the page (`world`:
+/// the layer's transform before the drag).
+fn cropped_image_fills(
+ doc: &Document,
+ before: &figcraft_doc::Node,
+ world: Affine,
+ dragged: Affine,
+ (nw, nh): (f64, f64),
+) -> Vec {
+ let (w, h) = (before.width.max(1e-6), before.height.max(1e-6));
+ let to_before = Affine::scale_non_uniform(1.0 / w, 1.0 / h) * world.inverse() * dragged * Affine::scale_non_uniform(nw.max(0.01), nh.max(0.01));
+ let mut fills = before.fills.clone();
+ for paint in &mut fills {
+ let PaintKind::Image(img) = &mut paint.kind else { continue };
+ // A repeating image cannot be represented by a single Crop placement.
+ if img.scale_mode == ImageScaleMode::Tile {
+ continue;
+ }
+ let Some(data) = doc.images.get(&img.image) else { continue };
+ let (iw, ih) = (f64::from(data.width), f64::from(data.height));
+ // A degenerate (zero-scale) layer has no inverse: its image keeps its placement.
+ let crop = (Affine::new(img.placement_crop(iw, ih, w, h)) * to_before).as_coeffs();
+ if !crop.iter().all(|c| c.is_finite()) {
+ continue;
+ }
+ img.crop = Some(crop);
+ img.scale_mode = ImageScaleMode::Crop;
+ }
+ fills
+}
+
+/// The extent `lo..hi` an image of extent `image` lets a crop reach on one axis of a layer that
+/// started `len` long: the image's, or the layer's where that reaches further (a Fit image is
+/// smaller than its layer).
+fn crop_reach(image: (f64, f64), len: f64) -> (f64, f64) {
+ (image.0.min(image.1).min(0.0), image.0.max(image.1).max(len))
+}
+
+/// The dragged box `(x0, y0, x1, y1)` drawn back towards the starting box `(0, 0, w0, h0)` until
+/// its sides stop at the image's box `image` (see [`crop_reach`]). Both ends of an axis go back by
+/// the same fraction, so an Alt resize stays centred, and with `keep` (Shift) both axes do, so the
+/// ratio holds. A flipped axis stays as dragged.
+fn within_the_image((x0, y0, x1, y1): (f64, f64, f64, f64), image: (f64, f64, f64, f64), (w0, h0): (f64, f64), keep: bool) -> (f64, f64, f64, f64) {
+ let fraction = |a: f64, b: f64, image: (f64, f64), len: f64| {
+ if b < a {
+ return 1.0;
+ }
+ let (lo, hi) = crop_reach(image, len);
+ let mut t: f64 = 1.0;
+ if a < lo {
+ t = t.min(lo / a);
+ }
+ if b > hi {
+ t = t.min((hi - len) / (b - len));
+ }
+ if t.is_finite() { t.clamp(0.0, 1.0) } else { 0.0 }
+ };
+ let (tx, ty) = (fraction(x0, x1, (image.0, image.2), w0), fraction(y0, y1, (image.1, image.3), h0));
+ let (tx, ty) = if keep { (tx.min(ty), tx.min(ty)) } else { (tx, ty) };
+ (x0 * tx, y0 * ty, w0 + (x1 - w0) * tx, h0 + (y1 - h0) * ty)
+}
+
+/// Where a crop box `len` long, placed at `start` on one axis, starts once it is slid back onto
+/// the image (see [`crop_reach`]): layout can make a layer longer than it was dragged (a minimum
+/// size), and the crop then moves along the image rather than past its edge. A flipped axis, or
+/// a box longer than the reach, stays where it is.
+fn slid_onto_the_image(start: f64, len: f64, flipped: bool, image: (f64, f64), len0: f64) -> f64 {
+ let (lo, hi) = crop_reach(image, len0);
+ if flipped || len.is_nan() || len > hi - lo {
+ return start;
+ }
+ start.max(lo).min(hi - len)
+}
diff --git a/crates/engine/src/cmd/image.rs b/crates/engine/src/cmd/image.rs
index 37472b2d4..123f47ed8 100644
--- a/crates/engine/src/cmd/image.rs
+++ b/crates/engine/src/cmd/image.rs
@@ -222,6 +222,9 @@ fn crop(s: &mut Session, p: &Value) -> Result {
// Like any paint edit, the layer leaves its paint style.
n.styles.fill = None;
}
+ if s.ds()?.vector_edit.is_some() {
+ crate::vectoredit::end(s)?;
+ }
s.request_ui(cmd, json!({"id": id, "index": index}));
Ok(json!({"id": id, "index": index}))
}
diff --git a/crates/engine/src/transform_behaviour_tests.rs b/crates/engine/src/transform_behaviour_tests.rs
index 3c37bf6c0..01773c70f 100644
--- a/crates/engine/src/transform_behaviour_tests.rs
+++ b/crates/engine/src/transform_behaviour_tests.rs
@@ -242,43 +242,134 @@ fn command_crop_preserves_each_image_fill_and_leaves_tiles() {
}
#[test]
-fn command_resize_leaves_fills_when_text_or_auto_layout_recomputes_the_box() {
- for case in ["text", "child", "frame"] {
+fn command_resize_leaves_a_texts_fills() {
+ let mut s = session();
+ let image = image_layer(&mut s);
+ let fills = s.doc().unwrap().node(image).unwrap().fills.clone();
+ let layer = id(&ex(
+ &mut s,
+ "text.create",
+ json!({"text": "hello world hello world hello world", "props": {
+ "width": 200, "height": 100, "fontSize": 24, "textAutoResize": "none", "fills": fills
+ }}),
+ ));
+ ex(&mut s, "select.set", json!({"ids": [layer]}));
+ let doc = s.doc().unwrap();
+ let world = doc.world_transform(layer);
+ let n = doc.node(layer).unwrap();
+ let (from, to) = (world * Point::new(n.width, n.height / 2.0), world * Point::new(10.0, n.height / 2.0));
+ drag(&mut s, from, to, CMD);
+ assert_eq!(s.doc().unwrap().node(layer).unwrap().fills, fills, "a text reflows: keep the existing resize behaviour");
+}
+
+fn image_units_per_layer_unit(s: &Session, layer: NodeId) -> (f64, f64, f64, f64) {
+ use figcraft_doc::color::PaintKind;
+ let doc = s.doc().unwrap();
+ let n = doc.node(layer).unwrap();
+ let PaintKind::Image(img) = &n.fills[0].kind else { panic!("image fill") };
+ let data = doc.images.get(&img.image).unwrap();
+ let c = img.effective_crop(f64::from(data.width), f64::from(data.height), n.width, n.height);
+ (c[0] / n.width, c[3] / n.height, c[4], c[5])
+}
+
+#[test]
+fn command_resize_crops_in_auto_layout_against_the_box_layout_leaves() {
+ use figcraft_doc::color::{ImageScaleMode, PaintKind};
+ for case in ["child", "child with a minimum width", "auto layout frame"] {
let mut s = session();
let image = image_layer(&mut s);
let fills = s.doc().unwrap().node(image).unwrap().fills.clone();
- let layer = match case {
- "text" => id(&ex(
- &mut s,
- "text.create",
- json!({"text": "hello world hello world hello world", "props": {
- "width": 200, "height": 100, "fontSize": 24, "textAutoResize": "none", "fills": fills
- }}),
- )),
+ let frame = id(&ex(&mut s, "frame.create", json!({"x": 0, "y": 0, "width": 240, "height": 140})));
+ set(&mut s, &[frame], json!({"layout": "horizontal", "padding": 20}));
+ let (layer, to_x, width) = match case {
+ "auto layout frame" => {
+ set(&mut s, &[frame], json!({"fills": fills}));
+ (frame, 10.0, 40.0)
+ }
_ => {
- let frame = id(&ex(&mut s, "frame.create", json!({"x": 0, "y": 0, "width": 200, "height": 100})));
- set(&mut s, &[frame], json!({"layout": "horizontal", "padding": 20}));
+ ex(&mut s, "node.reparent", json!({"ids": [image], "parent": frame}));
if case == "child" {
- ex(&mut s, "node.reparent", json!({"ids": [image], "parent": frame}));
- set(&mut s, &[image], json!({"minWidth": 150}));
- image
+ (image, 150.0, 150.0)
} else {
- set(&mut s, &[frame], json!({"fills": fills}));
- frame
+ set(&mut s, &[image], json!({"minWidth": 150}));
+ (image, 10.0, 150.0)
}
}
};
ex(&mut s, "select.set", json!({"ids": [layer]}));
+ let before = image_units_per_layer_unit(&s, layer);
let doc = s.doc().unwrap();
let world = doc.world_transform(layer);
let n = doc.node(layer).unwrap();
- let from = world * Point::new(n.width, n.height / 2.0);
- let to = world * Point::new(10.0, n.height / 2.0);
+ let (from, to) = (world * Point::new(n.width, n.height / 2.0), world * Point::new(to_x, n.height / 2.0));
drag(&mut s, from, to, CMD);
- assert_eq!(s.doc().unwrap().node(layer).unwrap().fills, fills, "{case}: keep the existing resize behaviour");
+ let n = s.doc().unwrap().node(layer).unwrap().clone();
+ assert!(near(n.width, width), "{case}: {} wide, as auto layout leaves it", n.width);
+ let PaintKind::Image(img) = &n.fills[0].kind else { panic!("image fill") };
+ assert_eq!(img.scale_mode, ImageScaleMode::Crop, "{case}: cropped");
+ let after = image_units_per_layer_unit(&s, layer);
+ assert!(near(after.0, before.0) && near(after.1, before.1), "{case}: the image keeps its scale, not stretched: {before:?} -> {after:?}");
+ assert!(near(after.2, before.2) && near(after.3, before.3), "{case}: its left edge stays where it was in the layer: {before:?} -> {after:?}");
}
}
+/// A minimum width can give a layer back the width its left side was dragged in by: the crop then
+/// slides back along the image instead of running past its right edge.
+#[test]
+fn command_crop_slides_back_onto_the_image_when_layout_widens_the_layer() {
+ use figcraft_doc::color::{ImagePaint, PaintKind};
+ let mut s = session();
+ let image = image_layer(&mut s);
+ let frame = id(&ex(&mut s, "frame.create", json!({"x": 0, "y": 0, "width": 240, "height": 140})));
+ set(&mut s, &[frame], json!({"layout": "horizontal", "padding": 20}));
+ ex(&mut s, "node.reparent", json!({"ids": [image], "parent": frame}));
+ set(&mut s, &[image], json!({"minWidth": 150}));
+ ex(&mut s, "select.set", json!({"ids": [image]}));
+ let before = image_units_per_layer_unit(&s, image);
+ let world = s.doc().unwrap().world_transform(image);
+ drag(&mut s, world * Point::new(0.0, 50.0), world * Point::new(190.0, 50.0), CMD);
+ let doc = s.doc().unwrap();
+ let n = doc.node(image).unwrap();
+ assert!(near(n.width, 150.0), "{} wide, as the minimum width leaves it", n.width);
+ let PaintKind::Image(img) = &n.fills[0].kind else { panic!("image fill") };
+ let data = doc.images.get(&img.image).unwrap();
+ let crop = img.effective_crop(f64::from(data.width), f64::from(data.height), n.width, n.height);
+ let (x0, _, x1, _) = ImagePaint::crop_rect(crop);
+ assert!(x0 <= 1e-9 && x1 >= 1.0 - 1e-9, "the image covers the layer: {x0}..{x1}");
+ let after = image_units_per_layer_unit(&s, image);
+ assert!(near(after.0, before.0) && near(after.1, before.1), "the image keeps its scale: {before:?} -> {after:?}");
+}
+
+/// Where the image's edge stops a crop, Shift still keeps the ratio (both axes stop together) and
+/// Alt still keeps the box centred (both sides stop together).
+#[test]
+fn command_crop_stopped_by_the_image_keeps_the_ratio_with_shift_and_the_centre_with_alt() {
+ let mut s = session();
+ let layer = image_layer(&mut s);
+ ex(&mut s, "select.set", json!({"ids": [layer]}));
+ drag(&mut s, Point::new(200.0, 100.0), Point::new(150.0, 80.0), CMD);
+ assert_eq!(size(&s, layer), (150.0, 80.0));
+ drag(&mut s, Point::new(150.0, 80.0), Point::new(240.0, 128.0), Mods { shift: true, alt: false, cmd: true });
+ assert!(
+ near_rect(bounds(&s, layer), Rect::new(0.0, 0.0, 187.5, 100.0)),
+ "the bottom stops at the image, the right side with it: {:?}",
+ bounds(&s, layer)
+ );
+
+ let mut s = session();
+ let layer = image_layer(&mut s);
+ ex(&mut s, "select.set", json!({"ids": [layer]}));
+ drag(&mut s, Point::new(0.0, 50.0), Point::new(20.0, 50.0), CMD);
+ drag(&mut s, Point::new(200.0, 50.0), Point::new(150.0, 50.0), CMD);
+ assert!(near_rect(bounds(&s, layer), Rect::new(20.0, 0.0, 150.0, 100.0)), "{:?}", bounds(&s, layer));
+ drag(&mut s, Point::new(150.0, 50.0), Point::new(190.0, 50.0), Mods { shift: false, alt: true, cmd: true });
+ assert!(
+ near_rect(bounds(&s, layer), Rect::new(0.0, 0.0, 170.0, 100.0)),
+ "the left side stops at the image, the right side as far: {:?}",
+ bounds(&s, layer)
+ );
+}
+
/// A resize is an explicit edit of the size: a size bound to a variable lets go of it (#809), so
/// Cmd/Ctrl crops a bound layer's image as any other's; other bindings stay.
#[test]
@@ -856,3 +947,19 @@ fn the_transform_box_and_its_handles() {
// At a larger zoom the same layer is big enough on screen for its handles inside it.
assert_eq!(handle_at(s.doc().unwrap(), &[tiny], Point::new(320.2, 10.2), 20.0), Some(Handle::Corner(0)));
}
+
+#[test]
+fn command_crop_changes_a_locked_ratio_and_stops_at_the_images_edges() {
+ let mut s = session();
+ let layer = image_layer(&mut s);
+ set(&mut s, &[layer], json!({"constrainProportions": true}));
+ ex(&mut s, "select.set", json!({"ids": [layer]}));
+ drag(&mut s, Point::new(200.0, 50.0), Point::new(150.0, 50.0), CMD);
+ assert_eq!(size(&s, layer), (150.0, 100.0), "a side changes the ratio, lock or not");
+ drag(&mut s, Point::new(150.0, 50.0), Point::new(260.0, 50.0), CMD);
+ assert_eq!(size(&s, layer), (200.0, 100.0), "the side stops at the image's edge");
+ drag(&mut s, Point::new(100.0, 0.0), Point::new(100.0, -40.0), CMD);
+ assert!(near_rect(bounds(&s, layer), Rect::new(0.0, 0.0, 200.0, 100.0)), "the top stops at the image's top: {:?}", bounds(&s, layer));
+ drag(&mut s, Point::new(200.0, 50.0), Point::new(100.0, 50.0), Mods { shift: true, alt: false, cmd: true });
+ assert_eq!(size(&s, layer), (100.0, 50.0), "Shift keeps the ratio");
+}
diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs
index 3d3f05082..a05f9414c 100644
--- a/crates/ui-egui/src/canvas.rs
+++ b/crates/ui-egui/src/canvas.rs
@@ -234,8 +234,9 @@ fn pointer_event(app: &FigApp, kind: PointerKind, pos: Pos2, m: &egui::Modifiers
sy: f64::from(pos.y),
shift: m.shift,
alt: m.alt,
- // Crop mode: resizing the layer crops it, as Cmd/Ctrl-resizing does.
- cmd: m.command || app.ui.crop.is_some(),
+ // Crop mode: resizing the layer crops it, as Cmd/Ctrl-resizing does (not while its points
+ // are being edited, where Cmd/Ctrl bends a segment).
+ cmd: m.command || (app.ui.crop.is_some() && app.session.ds().is_ok_and(|d| d.vector_edit.is_none())),
ctrl: m.ctrl,
zoom,
pressure: app.canvas.pressure,
diff --git a/crates/ui-egui/src/canvas/handles.rs b/crates/ui-egui/src/canvas/handles.rs
index 0a300c279..a92cacabf 100644
--- a/crates/ui-egui/src/canvas/handles.rs
+++ b/crates/ui-egui/src/canvas/handles.rs
@@ -529,9 +529,10 @@ fn draw_crop(app: &FigApp, painter: &egui::Painter, id: NodeId, img: &ImagePaint
/// Draw the handles.
pub fn draw(app: &mut FigApp, painter: &egui::Painter) {
- // Crop mode ends when a colour picker opens, or when its layer leaves the selection or its fill
- // is no longer a Crop image (an undo).
- if app.ui.crop.is_some() && (app.ui.picker.is_some() || crop_target(app).is_none()) {
+ // Crop mode ends when a colour picker opens, when its layer leaves the selection or its fill
+ // is no longer a Crop image (an undo), or when the layer's points are being edited.
+ let editing_points = app.session.ds().is_ok_and(|d| d.vector_edit.is_some());
+ if app.ui.crop.is_some() && (app.ui.picker.is_some() || crop_target(app).is_none() || editing_points) {
app.ui.crop = None;
}
let app = &*app;
@@ -821,13 +822,13 @@ fn apply(app: &mut FigApp, drag: &Drag, pos: Pos2, modifiers: egui::Modifiers) {
let (dx, dy) = (u.0 - start.0, u.1 - start.1);
(x0 + dx, y0 + dy, x1 + dx, y1 + dy)
} else {
- // Scale about the opposite corner, keeping the image's aspect ratio unless Shift.
+ // Scale about the opposite corner, keeping the image's aspect ratio with Shift.
let corners = [(x0, y0), (x1, y0), (x1, y1), (x0, y1)];
let (ax, ay) = corners.get((*which + 2) % 4).copied().unwrap_or((x0, y0));
let (cx, cy) = corners.get(*which).copied().unwrap_or((x1, y1));
let (ow, oh) = (cx - ax, cy - ay);
let (mut nw, mut nh) = (u.0 - ax, u.1 - ay);
- if !modifiers.shift {
+ if modifiers.shift {
// Node aspect matters: the unit box is not square in pixels.
let Some(n) = app.session.doc().ok().and_then(|d| d.node(*id)).cloned() else { return };
let k = ((nw * n.width).abs() / (ow * n.width).abs().max(1e-9)).max((nh * n.height).abs() / (oh * n.height).abs().max(1e-9));
diff --git a/crates/ui-egui/src/canvas/input.rs b/crates/ui-egui/src/canvas/input.rs
index 6ecdb948c..1a8dcd1a9 100644
--- a/crates/ui-egui/src/canvas/input.rs
+++ b/crates/ui-egui/src/canvas/input.rs
@@ -297,6 +297,9 @@ pub(super) fn input(app: &mut FigApp, ui: &mut Ui, resp: &egui::Response) -> boo
open_context_menu(app, pos, mods.command);
return true;
}
+ if crop_mode_multi_click(app, resp, pos, &mods) {
+ return true;
+ }
// A third quick click is counted as a triple, not a double (a click elsewhere in between still
// leaves its time in the sequence): it means the same here — edit, enter, open — unless a
// vector or text is being edited, where a triple already has its own meaning. A triple on
@@ -414,6 +417,18 @@ fn pan_past_edge(app: &mut FigApp, ctx: &egui::Context, mods: &egui::Modifiers)
}
}
+/// A double- or triple-click in crop mode stays in crop mode (it would edit the points), and is
+/// taken here. Its last press may have begun a resize on a side of the layer: its release ends that.
+fn crop_mode_multi_click(app: &mut FigApp, resp: &egui::Response, pos: Pos2, mods: &egui::Modifiers) -> bool {
+ if app.ui.crop.is_none() || !(resp.double_clicked() || resp.triple_clicked()) {
+ return false;
+ }
+ if std::mem::take(&mut app.canvas.dragging) {
+ send(app, PointerKind::Up, pos, mods);
+ }
+ true
+}
+
fn send(app: &mut FigApp, kind: PointerKind, pos: Pos2, m: &egui::Modifiers) {
let ev = pointer_event(app, kind, pos, m);
// A hover where nothing changed since the last one finds what that one found (the state is
diff --git a/crates/ui-egui/src/crop_image_tests.rs b/crates/ui-egui/src/crop_image_tests.rs
index 05435d856..8db0094d2 100644
--- a/crates/ui-egui/src/crop_image_tests.rs
+++ b/crates/ui-egui/src/crop_image_tests.rs
@@ -322,3 +322,132 @@ fn crop_in_the_colour_picker_only_sets_the_mode_where_crop_image_does_not_apply(
assert_eq!(crop_on_canvas(&u.app, &PickerTarget::PageBackground), None);
assert_eq!(crop_on_canvas(&u.app, &PickerTarget::Style { id: "S:1".into(), index: 0 }), None);
}
+
+#[test]
+fn in_crop_mode_the_edges_of_an_image_in_auto_layout_crop_it_too() {
+ let (mut u, layer, _) = setup();
+ let column = id(&u.app.session.execute("frame.create", &json!({"x": 0, "y": 0, "width": 200, "height": 100})).unwrap());
+ u.app.run("node.reparent", json!({"ids": [layer], "parent": column}));
+ u.app.run("node.set", json!({"ids": [column], "props": {"layout": "vertical", "sizingV": "hug"}}));
+ u.app.run("select.set", json!({"ids": [layer]}));
+ u.app.run("image.crop", json!({}));
+ u.frame(vec![]);
+ let (_, Some(before)) = mode(&u, layer) else { panic!("a crop") };
+ let (from, to) = (u.app.to_screen(100.0, 100.0), u.app.to_screen(100.0, 60.0));
+ u.drag_to(from, to);
+ u.button(to, false);
+ let n = u.app.session.doc().unwrap().node(layer).unwrap().clone();
+ assert!((n.height - 60.0).abs() < 1e-6 && (n.width - 200.0).abs() < 1e-6, "the bottom edge moved up: {} x {}", n.width, n.height);
+ let (m, Some(after)) = mode(&u, layer) else { panic!("a crop") };
+ assert_eq!(m, ImageScaleMode::Crop);
+ assert!((after[3] - before[3] * 0.6).abs() < 1e-9 && (after[0] - before[0]).abs() < 1e-9, "cropped, not squashed: {before:?} -> {after:?}");
+ assert!((after[5] - before[5]).abs() < 1e-9, "the top stays: {before:?} -> {after:?}");
+ assert_eq!(u.app.ui.crop, Some((layer, 0)), "still cropping");
+}
+
+#[test]
+fn a_double_click_in_crop_mode_keeps_cropping_and_vector_edit_ends_crop_mode() {
+ let (mut u, layer, _) = setup();
+ u.app.run("image.crop", json!({}));
+ u.frame(vec![]);
+ let at = u.app.to_screen(100.0, 50.0);
+ for _ in 0..2 {
+ u.button(at, true);
+ u.button(at, false);
+ }
+ u.frame(vec![]);
+ assert!(u.app.session.ds().unwrap().vector_edit.is_none(), "a double-click while cropping doesn't edit the points");
+ assert_eq!(u.app.ui.crop, Some((layer, 0)), "still cropping");
+ let (from, to) = (u.app.to_screen(200.0, 50.0), u.app.to_screen(150.0, 50.0));
+ u.drag_to(from, to);
+ u.button(to, false);
+ let n = u.app.session.doc().unwrap().node(layer).unwrap().clone();
+ assert!((n.width - 150.0).abs() < 1e-6 && matches!(n.kind, figcraft_doc::NodeKind::Rectangle), "the side crops; the layer stays a rectangle");
+ u.app.run("vector.edit.begin", json!({"id": layer}));
+ u.frame(vec![]);
+ assert_eq!(u.app.ui.crop, None, "editing the points ends crop mode");
+ u.app.run("image.crop", json!({}));
+ u.frame(vec![]);
+ assert!(u.app.session.ds().unwrap().vector_edit.is_none(), "cropping ends editing the points");
+ assert_eq!(u.app.ui.crop, Some((layer, 0)));
+}
+
+/// The second press of a double-click on a side of the layer begins a resize; its release, which
+/// is the double-click, ends it, and crop mode stays.
+#[test]
+fn a_double_click_on_a_side_in_crop_mode_leaves_no_resize_open() {
+ let (mut u, layer, _) = setup();
+ u.app.run("image.crop", json!({}));
+ u.frame(vec![]);
+ let at = u.app.to_screen(200.0, 50.0);
+ for _ in 0..2 {
+ u.button(at, true);
+ u.button(at, false);
+ }
+ u.frame(vec![]);
+ assert!(u.app.session.ds().unwrap().interaction.is_none(), "the resize the second press began is over");
+ assert_eq!(u.app.ui.crop, Some((layer, 0)), "still cropping");
+}
+
+#[test]
+fn in_crop_mode_the_images_corners_scale_freely_and_with_shift_in_proportion() {
+ let image_size = |u: &Ui, layer: NodeId| {
+ let n = u.app.session.doc().unwrap().node(layer).unwrap().clone();
+ let (_, Some(c)) = mode(u, layer) else { panic!("a crop") };
+ let (x0, y0, x1, y1) = figcraft_color::ImagePaint::crop_rect(c);
+ ((x1 - x0) * n.width, (y1 - y0) * n.height)
+ };
+ for shift in [false, true] {
+ let (mut u, layer, _) = setup();
+ u.app.run("image.crop", json!({}));
+ u.frame(vec![]);
+ let (from, to) = (u.app.to_screen(200.0, 50.0), u.app.to_screen(150.0, 50.0));
+ u.drag_to(from, to);
+ u.button(to, false);
+ let (w0, h0) = image_size(&u, layer);
+ let modifiers = if shift { Modifiers::SHIFT } else { Modifiers::NONE };
+ let (from, to) = (u.app.to_screen(200.0, 100.0), u.app.to_screen(260.0, 110.0));
+ u.frame_with(
+ vec![Event::PointerMoved(from), Event::PointerButton { pos: from, button: egui::PointerButton::Primary, pressed: true, modifiers }],
+ modifiers,
+ );
+ for k in 1..=10 {
+ u.frame_with(vec![Event::PointerMoved(from + (to - from) * (k as f32 / 10.0))], modifiers);
+ }
+ u.frame_with(vec![Event::PointerButton { pos: to, button: egui::PointerButton::Primary, pressed: false, modifiers }], modifiers);
+ let (w1, h1) = image_size(&u, layer);
+ let kept = (w1 / h1 - w0 / h0).abs() < 1e-6;
+ assert!(w1 > w0, "the corner scaled the image: {w0}x{h0} -> {w1}x{h1}");
+ assert_eq!(kept, shift, "Shift {shift}: {w0}x{h0} -> {w1}x{h1}");
+ }
+}
+
+#[test]
+fn in_auto_layout_a_side_dragged_past_the_image_leaves_no_empty_strip() {
+ let mut s = Session::new();
+ let image = image::RgbaImage::from_fn(300, 200, |x, y| image::Rgba([(x % 255) as u8, (y % 255) as u8, 120, 255]));
+ let mut png = std::io::Cursor::new(Vec::new());
+ image.write_to(&mut png, image::ImageFormat::Png).unwrap();
+ let data = base64::engine::general_purpose::STANDARD.encode(png.into_inner());
+ let content = id(&s.execute("frame.create", &json!({"x": 0, "y": 0, "width": 1092, "height": 1400})).unwrap());
+ id(&s.execute("shape.rectangle", &json!({"x": 0, "y": 0, "width": 300, "height": 160, "parent": content})).unwrap());
+ let layer = id(&s.execute("image.place", &json!({"data": data, "x": 0, "y": 300, "width": 804, "height": 969})).unwrap());
+ s.execute("node.reparent", &json!({"ids": [layer], "parent": content})).unwrap();
+ s.execute("node.set", &json!({"ids": [content], "props": {"layout": "vertical", "sizingV": "hug", "padding": [112, 0, 100, 0]}})).unwrap();
+ s.execute("node.set", &json!({"ids": [layer], "props": {"constrainProportions": true}})).unwrap();
+ s.execute("select.set", &json!({"ids": [layer]})).unwrap();
+ let mut u = Ui::new(s);
+ u.app.run("view.set", json!({"zoom": 0.5, "cx": 546, "cy": 700}));
+ u.app.run("image.crop", json!({}));
+ u.frame(vec![]);
+ let b = u.app.session.doc().unwrap().world_bounds(layer).unwrap();
+ let (from, to) = (u.app.to_screen(400.0, b.y0), u.app.to_screen(400.0, b.y0 - 120.0));
+ u.drag_to(from, to);
+ u.button(to, false);
+ let n = u.app.session.doc().unwrap().node(layer).unwrap().clone();
+ let (_, Some(c)) = mode(&u, layer) else { panic!("a crop") };
+ let (x0, y0, x1, y1) = figcraft_color::ImagePaint::crop_rect(c);
+ assert!(x0 <= 1e-9 && y0 <= 1e-9 && x1 >= 1.0 - 1e-9 && y1 >= 1.0 - 1e-9, "the image covers the layer: {:?}", (x0, y0, x1, y1));
+ assert!(n.width >= 1.0 && n.height >= 1.0, "{} x {}", n.width, n.height);
+ assert!(u.app.session.ds().unwrap().vector_edit.is_none());
+}
diff --git a/docs/ui-parity.md b/docs/ui-parity.md
index d756e71b0..c7b6e4a07 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-19 · **Change:** minor (crop mode: the layer's sides and corners crop its image in an auto layout frame too, up to the image's edges, change a locked ratio (Shift keeps it), the image's own corners scale freely with Shift proportional as a resize does, and crop mode and vector edit mode end each other; 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-18 | patch | M1, crop mode (Object ▸ Crop image, #1464): the layer's sides and corners (the Cmd/Ctrl resize crop) crop its image in an auto layout frame too, against the box the layout leaves, instead of squashing the picture; a side can go no further than the image's edge, so no empty strip opens inside the layer (Shift still keeps the ratio and Alt the centre there, and a crop the layout widens slides back along the image); a locked ratio doesn't hold the crop window and Shift keeps its ratio; the image's own corner handles scale it freely and in proportion with Shift, as a resize does (they were the other way round). Crop mode and vector edit mode end each other, and a double-click in crop mode stays in it: with both on, the injected Cmd/Ctrl turned a drag of the layer's side into the Bend tool and showed the selected points' box ("804 × 0"). Tests: `crop_image_tests` (5 new), `transform_behaviour_tests::command_crop_changes_a_locked_ratio_and_stops_at_the_images_edges`, `command_crop_stopped_by_the_image_keeps_the_ratio_with_shift_and_the_centre_with_alt`, `command_crop_slides_back_onto_the_image_when_layout_widens_the_layer`, `command_resize_crops_in_auto_layout_against_the_box_layout_leaves` |
| 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 cfef5763f4208fa9bdb7ad1469da4cc22e8ae40c Mon Sep 17 00:00:00 2001
From: FueryS
Date: Sat, 21 Nov 2026 12:38:10 +0530
Subject: [PATCH 21/59] picker: remove picker-side crop init and compute
placement per node (#2499)
Remove picker-side crop initialization when selecting Crop mode in the
color picker, and instead let the engine compute the initial placement
crop per node using each selected layer's own dimensions. This avoids
stretching images when multiple differently sized layers are selected
at once.
---
crates/engine/src/cmd/edit/props.rs | 51 ++++++++++++---
.../engine/src/transform_behaviour_tests.rs | 65 +++++++++++++++++++
crates/ui-egui/src/crop_image_tests.rs | 4 +-
crates/ui-egui/src/widgets/colorpicker.rs | 26 +-------
4 files changed, 112 insertions(+), 34 deletions(-)
diff --git a/crates/engine/src/cmd/edit/props.rs b/crates/engine/src/cmd/edit/props.rs
index 0706abcdf..f115f1321 100644
--- a/crates/engine/src/cmd/edit/props.rs
+++ b/crates/engine/src/cmd/edit/props.rs
@@ -448,7 +448,7 @@ fn paint_set_in(s: &mut Session, p: &Value, fills: bool, to_regions: bool) -> Re
let (nw, nh) = s.doc().ok().and_then(|d| d.node(id)).map_or((100.0, 100.0), |n| (n.width, n.height));
let image_dims = s.doc().ok().and_then(|d| match &new_paint {
Some(figcraft_color::Paint { kind: figcraft_color::PaintKind::Image(img), .. })
- if img.scale_mode == figcraft_color::ImageScaleMode::Crop && img.crop.is_none() =>
+ if img.scale_mode == figcraft_color::ImageScaleMode::Crop =>
{
d.images.get(&img.image).map(|data| (f64::from(data.width), f64::from(data.height)))
}
@@ -460,28 +460,43 @@ fn paint_set_in(s: &mut Session, p: &Value, fills: bool, to_regions: bool) -> Re
}
let at = idx.unwrap_or(list.len().saturating_sub(1));
let Some(slot) = list.get_mut(at) else { return Err(bad(cmd, format!("no paint at index {at}"))) };
+ let old = slot.clone();
edit_slot(slot);
if let Some((iw, ih)) = image_dims
&& let figcraft_color::PaintKind::Image(img) = &mut slot.kind
- && img.crop.is_none()
+ && img.scale_mode == figcraft_color::ImageScaleMode::Crop
{
- img.crop = Some(img.placement_crop(iw, ih, nw, nh));
+ match &old.kind {
+ figcraft_color::PaintKind::Image(old_img) if old_img.image == img.image => {
+ if old_img.rotation != img.rotation {
+ img.crop = None;
+ img.crop = Some(img.placement_crop(iw, ih, nw, nh));
+ } else if img.crop.is_none() {
+ img.crop = Some(old_img.placement_crop(iw, ih, nw, nh));
+ } else if regions.len() > 1 && old_img.scale_mode == figcraft_color::ImageScaleMode::Crop {
+ img.crop = old_img.crop;
+ }
+ }
+ _ => {
+ if img.crop.is_none() {
+ img.crop = Some(img.placement_crop(iw, ih, nw, nh));
+ }
+ }
+ }
}
Ok(())
})?;
return ok();
}
let image_dims = s.doc().ok().and_then(|d| match &new_paint {
- Some(figcraft_color::Paint { kind: figcraft_color::PaintKind::Image(img), .. })
- if img.scale_mode == figcraft_color::ImageScaleMode::Crop && img.crop.is_none() =>
- {
+ Some(figcraft_color::Paint { kind: figcraft_color::PaintKind::Image(img), .. }) if img.scale_mode == figcraft_color::ImageScaleMode::Crop => {
d.images.get(&img.image).map(|data| (f64::from(data.width), f64::from(data.height)))
}
_ => None,
});
let doc = s.doc_mut()?;
- for i in ids {
- let n = doc.get_mut(i)?;
+ for i in &ids {
+ let n = doc.get_mut(*i)?;
if fills {
crate::cmd::lists::take_character_fills(n);
}
@@ -495,9 +510,25 @@ fn paint_set_in(s: &mut Session, p: &Value, fills: bool, to_regions: bool) -> Re
edit_slot(slot);
if let Some((iw, ih)) = image_dims
&& let figcraft_color::PaintKind::Image(img) = &mut slot.kind
- && img.crop.is_none()
+ && img.scale_mode == figcraft_color::ImageScaleMode::Crop
{
- img.crop = Some(img.placement_crop(iw, ih, n.width, n.height));
+ match &old.kind {
+ figcraft_color::PaintKind::Image(old_img) if old_img.image == img.image => {
+ if old_img.rotation != img.rotation {
+ img.crop = None;
+ img.crop = Some(img.placement_crop(iw, ih, n.width, n.height));
+ } else if img.crop.is_none() {
+ img.crop = Some(old_img.placement_crop(iw, ih, n.width, n.height));
+ } else if ids.len() > 1 && old_img.scale_mode == figcraft_color::ImageScaleMode::Crop {
+ img.crop = old_img.crop;
+ }
+ }
+ _ => {
+ if img.crop.is_none() {
+ img.crop = Some(img.placement_crop(iw, ih, n.width, n.height));
+ }
+ }
+ }
}
crate::cmd::lists::rebind_edited_paint(n, fills, at, &old);
if fills {
diff --git a/crates/engine/src/transform_behaviour_tests.rs b/crates/engine/src/transform_behaviour_tests.rs
index 06bdb2a50..53c994d2f 100644
--- a/crates/engine/src/transform_behaviour_tests.rs
+++ b/crates/engine/src/transform_behaviour_tests.rs
@@ -270,6 +270,71 @@ fn crop_mode_image_resizing_without_cmd_morphs_and_with_cmd_crops() {
}
}
+#[test]
+fn multi_layer_crop_mode_selection_computes_placement_per_node() {
+ use figcraft_doc::color::{ImageScaleMode, PaintKind};
+ let mut s = session();
+ let layer1 = image_layer(&mut s); // 200 x 100
+ let layer2 = id(&ex(&mut s, "shape.rectangle", json!({"x": 300, "y": 0, "width": 100, "height": 100})));
+
+ // Choose Crop mode on both layers simultaneously via fill.set with crop: None (as the picker does).
+ let mut fill = s.doc().unwrap().node(layer1).unwrap().fills[0].clone();
+ let PaintKind::Image(img) = &mut fill.kind else { panic!("image fill") };
+ img.scale_mode = ImageScaleMode::Crop;
+ img.crop = None;
+ ex(&mut s, "fill.set", json!({"ids": [layer1, layer2], "index": 0, "paint": fill}));
+
+ // Verify both layers received crop transforms tailored to their own dimensions, not stretched.
+ let n1 = s.doc().unwrap().node(layer1).unwrap().clone();
+ let n2 = s.doc().unwrap().node(layer2).unwrap().clone();
+ let PaintKind::Image(img1) = &n1.fills[0].kind else { panic!("image fill") };
+ let PaintKind::Image(img2) = &n2.fills[0].kind else { panic!("image fill") };
+
+ let crop1 = img1.crop.expect("layer1 crop initialized");
+ let crop2 = img2.crop.expect("layer2 crop initialized");
+
+ // layer1 (200x100) and layer2 (100x100) have different aspect ratios, so their crop transforms must differ.
+ assert_ne!(crop1, crop2, "differently sized layers must have distinct crop transforms");
+
+ // Both should match expected placement crop for their respective dimensions (iw=200, ih=100 from image_layer):
+ assert_eq!(crop1, [1.0, 0.0, 0.0, 1.0, 0.0, 0.0]);
+ assert_eq!(crop2, [0.5, 0.0, 0.0, 1.0, 0.25, 0.0]);
+
+ // Rotate 90° on the multi-selection (as the picker's Rotate button does):
+ let mut rot_fill = n1.fills[0].clone();
+ let PaintKind::Image(img) = &mut rot_fill.kind else { panic!("image fill") };
+ img.rotation = 1;
+ ex(&mut s, "fill.set", json!({"ids": [layer1, layer2], "index": 0, "paint": rot_fill}));
+
+ let n1_rot = s.doc().unwrap().node(layer1).unwrap().clone();
+ let n2_rot = s.doc().unwrap().node(layer2).unwrap().clone();
+ let PaintKind::Image(img1_rot) = &n1_rot.fills[0].kind else { panic!("image fill") };
+ let PaintKind::Image(img2_rot) = &n2_rot.fills[0].kind else { panic!("image fill") };
+
+ let crop1_rot = img1_rot.crop.expect("layer1 rotated crop initialized");
+ let crop2_rot = img2_rot.crop.expect("layer2 rotated crop initialized");
+ assert_ne!(crop1_rot, crop2_rot, "differently sized layers must have distinct rotated crop transforms");
+ assert_eq!(crop1_rot, [1.0, 0.0, 0.0, 0.25, 0.0, 0.375]);
+ assert_eq!(crop2_rot, [1.0, 0.0, 0.0, 0.5, 0.0, 0.25]);
+
+ // Shared filter edit on multi-selection in Crop mode (e.g. Exposure slider):
+ let mut filter_fill = n1_rot.fills[0].clone();
+ let PaintKind::Image(img) = &mut filter_fill.kind else { panic!("image fill") };
+ img.filters.exposure = 0.5;
+ ex(&mut s, "fill.set", json!({"ids": [layer1, layer2], "index": 0, "paint": filter_fill}));
+
+ let n1_filt = s.doc().unwrap().node(layer1).unwrap().clone();
+ let n2_filt = s.doc().unwrap().node(layer2).unwrap().clone();
+ let PaintKind::Image(img1_filt) = &n1_filt.fills[0].kind else { panic!("image fill") };
+ let PaintKind::Image(img2_filt) = &n2_filt.fills[0].kind else { panic!("image fill") };
+
+ // Both layers keep their distinct crop transforms; neither is overwritten by the other.
+ assert_eq!(img1_filt.crop, Some(crop1_rot));
+ assert_eq!(img2_filt.crop, Some(crop2_rot));
+ assert_eq!(img1_filt.filters.exposure, 0.5);
+ assert_eq!(img2_filt.filters.exposure, 0.5);
+}
+
#[test]
fn command_crop_preserves_each_image_fill_and_leaves_tiles() {
use figcraft_doc::color::{Color, ImageScaleMode, Paint, PaintKind};
diff --git a/crates/ui-egui/src/crop_image_tests.rs b/crates/ui-egui/src/crop_image_tests.rs
index 16e762cad..2b21d7d4e 100644
--- a/crates/ui-egui/src/crop_image_tests.rs
+++ b/crates/ui-egui/src/crop_image_tests.rs
@@ -272,7 +272,7 @@ fn crop_in_the_colour_picker_only_sets_the_mode_where_crop_image_does_not_apply(
assert_eq!(image_at(&u, layer, false, None).scale_mode, ImageScaleMode::Crop);
assert_eq!(mode(&u, layer), (ImageScaleMode::Fill, None), "the fill is untouched");
- // Two image layers at once: both take the mode.
+ // Two image layers at once: both take the mode, with each layer's crop sized to its own dimensions.
let (mut u, layer, rect) = setup();
let paint = picture(&u, layer);
u.app.run("fill.set", json!({"ids": [rect], "index": 0, "paint": paint}));
@@ -280,6 +280,8 @@ fn crop_in_the_colour_picker_only_sets_the_mode_where_crop_image_does_not_apply(
crop_only_sets_the_mode(&mut u, PickerTarget::Paint { fills: true, index: 0, ids: vec![layer, rect] }, "two layers");
assert_eq!(mode(&u, layer).0, ImageScaleMode::Crop);
assert_eq!(mode(&u, rect).0, ImageScaleMode::Crop);
+ let (crop1, crop2) = (mode(&u, layer).1.unwrap(), mode(&u, rect).1.unwrap());
+ assert_ne!(crop1, crop2, "differently sized layers must have distinct placement crops without stretching");
// A region's own image fill in vector edit mode: the region's mode is set, the layer's image
// fill is untouched.
diff --git a/crates/ui-egui/src/widgets/colorpicker.rs b/crates/ui-egui/src/widgets/colorpicker.rs
index 2d9119d93..3ab7cb8fb 100644
--- a/crates/ui-egui/src/widgets/colorpicker.rs
+++ b/crates/ui-egui/src/widgets/colorpicker.rs
@@ -760,21 +760,6 @@ fn blend_row(ui: &mut Ui, app: &mut FigApp, target: &PickerTarget, paint: &mut P
});
}
-fn target_node_size(app: &FigApp, target: &PickerTarget) -> Option<(f64, f64)> {
- let doc = app.session.doc().ok()?;
- match target {
- PickerTarget::Paint { ids, .. } | PickerTarget::Effect { ids, .. } => {
- let n = doc.node(*ids.first()?)?;
- Some((n.width, n.height))
- }
- PickerTarget::TextRange { id, .. } => {
- let n = doc.node(*id)?;
- Some((n.width, n.height))
- }
- _ => None,
- }
-}
-
/// The image paint's scale mode, rotation, colour profile, presets and filter sliders.
fn image_controls(app: &mut FigApp, ui: &mut Ui, target: &PickerTarget, paint: &mut Paint, mut img: ImagePaint, t: &Tokens) {
ui.horizontal(|ui| {
@@ -788,14 +773,6 @@ fn image_controls(app: &mut FigApp, ui: &mut Ui, target: &PickerTarget, paint: &
(tr("Tile"), ImageScaleMode::Tile),
] {
if crate::right::menu_item(ui, l, "") {
- if m == ImageScaleMode::Crop && img.crop.is_none() {
- let size = target_node_size(app, target);
- let doc = app.session.doc().ok();
- let dims = doc.as_ref().and_then(|d| d.images.get(&img.image)).map(|d| (f64::from(d.width), f64::from(d.height)));
- if let (Some((w, h)), Some((iw, ih))) = (size, dims) {
- img.crop = Some(img.placement_crop(iw, ih, w, h));
- }
- }
img.scale_mode = m;
paint.kind = PaintKind::Image(img.clone());
write(app, target, paint, false);
@@ -805,6 +782,9 @@ fn image_controls(app: &mut FigApp, ui: &mut Ui, target: &PickerTarget, paint: &
});
if icons::button(ui, Icon::Rotate, 24.0, false, tr("Rotate 90°")).clicked() {
img.rotation = (img.rotation + 1) % 4;
+ if img.scale_mode == ImageScaleMode::Crop {
+ img.crop = None;
+ }
paint.kind = PaintKind::Image(img.clone());
write(app, target, paint, false);
}
From 420365a4ed6be09f424aaa0e50de89dc3465b71f Mon Sep 17 00:00:00 2001
From: supersfera
Date: Sat, 21 Nov 2026 17:09:55 -0800
Subject: [PATCH 22/59] Add Russian translation (ru).
Update the in-app Russian catalog and add Russian strings to the
Linux desktop, AppStream, and MIME metadata.
Copyright (c) 2026 SuperSfera LLC, MIT OR Apache-2.0.
---
crates/ui-egui/locales/ru.toml | 220 ++++++++++++++++++
.../linux/ai.storyteller.figcraft.desktop | 6 +
.../ai.storyteller.figcraft.metainfo.xml.in | 19 ++
.../linux/ai.storyteller.figcraft.mime.xml | 4 +
4 files changed, 249 insertions(+)
diff --git a/crates/ui-egui/locales/ru.toml b/crates/ui-egui/locales/ru.toml
index bc7aa6353..747fb3f9b 100644
--- a/crates/ui-egui/locales/ru.toml
+++ b/crates/ui-egui/locales/ru.toml
@@ -1,3 +1,5 @@
+# Russian translation © 2026 SuperSfera LLC, MIT OR Apache-2.0
+# Russian translation © 2026 SuperSfera LLC, MIT OR Apache-2.0
# FigCraft interface strings: Russian.
# Wording reviewed and approved by VanTan.
# Strings added since that review (2026-10-20) are a machine draft awaiting review.
@@ -1865,6 +1867,183 @@ name = "Русский"
"⌘ click" = "⌘ нажатие"
"⌘ scroll" = "⌘ прокрутка"
"⌥ drag" = "⌥ перетаскивание"
+"1 year" = "1 год"
+"30 days" = "30 дней"
+"90 days" = "90 дней"
+"A layer in an auto layout frame is placed by its frame" = "Слой в Frame с автолейаутом размещается своим Frame"
+"Allow and download" = "Разрешить и загрузить"
+"Allow downloading fonts?" = "Разрешить загрузку шрифтов?"
+"Alt+double-click an edge of an auto layout child" = "Alt+двойное нажатие по краю дочернего объекта автолейаута"
+"Android Vector Drawable" = "Android Vector Drawable"
+"Annotation" = "Аннотация"
+"Anyone on your network with this code can look at the file, not change it, while this app stays open." = "Все в вашей сети с этим кодом могут смотреть файл, но не менять его, пока это приложение открыто."
+"Auto: as many words as fit on each line" = "Авто: столько слов, сколько помещается в строке"
+"Auto: by the first letter with a direction" = "Авто: по первой букве, у которой есть направление"
+"Balance" = "Баланс"
+"Balance: every line close to the same length" = "Баланс: все строки примерно одной длины"
+"Best effort" = "По возможности"
+"Board grid" = "Сетка доски"
+"Calculated from other variables; it follows them" = "Вычисляется из других переменных и следует за ними"
+"Changed {date}" = "Изменено {date}"
+"Check for Updates" = "Проверить обновления"
+"Check for updates…" = "Проверить обновления…"
+"Compare with" = "Сравнить с"
+"Compatibility" = "Совместимость"
+"Copied comments for AI" = "Комментарии скопированы для ИИ"
+"Copy browser link" = "Копировать ссылку для браузера"
+"Copy effect" = "Копировать эффект"
+"Copy fill" = "Копировать заливку"
+"Copy for AI" = "Копировать для ИИ"
+"Copy link to page" = "Копировать ссылку на страницу"
+"Copy stroke" = "Копировать обводку"
+"Couldn't download {name}" = "Не удалось загрузить {name}"
+"Couldn't reach {server} for its team list." = "Не удалось связаться с {server}, чтобы получить список команды."
+"Crop image" = "Обрезать изображение"
+"Ctrl+Alt+← ↑ → ↓" = "Ctrl+Alt+← ↑ → ↓"
+"Ctrl+click a padding field" = "Ctrl+нажатие по полю внутреннего отступа"
+"Dart constants for Flutter…" = "Константы Dart для Flutter…"
+"Delete {n} variables" = { one = "Удалить {n} переменную", few = "Удалить {n} переменные", many = "Удалить {n} переменных", other = "Удалить {n} переменных" }
+"Detach calculation" = "Отвязать вычисление"
+"Developer Mode only inspects: switch to Design (Shift+D) to edit" = "Режим разработчика только просматривает: чтобы редактировать, перейдите в «Дизайн» (Shift+D)"
+"Disconnected. Reconnecting…" = "Соединение разорвано. Повторное подключение…"
+"Disconnected. Your edits stay here and sync when the connection returns. Reconnecting…" = "Соединение разорвано. Ваши правки остаются здесь и синхронизируются, когда связь восстановится. Повторное подключение…"
+"Dismiss" = "Закрыть"
+"Don't show this again" = "Больше не показывать"
+"Double-click an edge of an auto layout frame" = "Двойное нажатие по краю Frame с автолейаутом"
+"Download" = "Загрузить"
+"Downloading… {percent}%" = "Загрузка… {percent}%"
+"Drop to use this image" = "Перетащите, чтобы использовать это изображение"
+"Duplicate group" = "Дублировать группу"
+"Edit padding on all sides" = "Изменить внутренние отступы со всех сторон"
+"Edit variables" = "Редактировать переменные"
+"Enter / Shift+Enter" = "Enter / Shift+Enter"
+"Everyone who reaches this server can open these files while they are shared." = "Все, кто имеет доступ к этому серверу, могут открывать эти файлы, пока они опубликованы."
+"Exact only" = "Только точные"
+"Expand the interface" = "Развернуть интерфейс"
+"Exported {name}; {n} kinds of content were changed or left out" = { one = "Файл {name} экспортирован; {n} тип содержимого изменён или пропущен", few = "Файл {name} экспортирован; {n} типа содержимого изменены или пропущены", many = "Файл {name} экспортирован; {n} типов содержимого изменены или пропущены", other = "Файл {name} экспортирован; {n} типов содержимого изменены или пропущены" }
+"Exported {n} files; some content was changed or left out" = { one = "Экспортирован {n} файл; часть содержимого изменена или пропущена", few = "Экспортировано {n} файла; часть содержимого изменена или пропущена", many = "Экспортировано {n} файлов; часть содержимого изменена или пропущена", other = "Экспортировано {n} файлов; часть содержимого изменена или пропущена" }
+"Extra large" = "Очень крупный"
+"FigCraft stopped because of an internal error." = "FigCraft остановился из-за внутренней ошибки."
+"Format" = "Формат"
+"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. Ничего не загружается, пока вы это не разрешите."
+"Graph paper" = "Бумага в клетку"
+"Hide UI" = "Скрыть интерфейс"
+"Huge" = "Огромный"
+"Ignore unsupported" = "Пропускать неподдерживаемое"
+"Invert zoom direction" = "Инвертировать направление масштабирования"
+"Joining live session…" = "Подключение к сеансу…"
+"Large" = "Крупный"
+"Leaving the prototype" = "Выход из прототипа"
+"Left to right" = "Слева направо"
+"Link copied: it opens the file in FigCraft" = "Ссылка скопирована: она открывает файл в FigCraft"
+"Link copied: it opens the file in the browser" = "Ссылка скопирована: она открывает файл в браузере"
+"Medium" = "Средний"
+"Move out of any group" = "Вынести из любой группы"
+"Move to group {group}" = "Переместить в группу {group}"
+"Move up or down while dragging its label" = "Перемещать вверх или вниз, перетаскивая подпись"
+"New from selection" = "Создать из выделения"
+"No comments to copy" = "Нет комментариев для копирования"
+"No scope is shared by all the selected variables" = "У выделенных переменных нет общей области применения"
+"Nobody shares a file there now." = "Сейчас там никто не публикует файл."
+"Not connected: {reason}. Your work is still in this tab." = "Нет соединения: {reason}. Ваша работа остаётся в этой вкладке."
+"Not now" = "Не сейчас"
+"Nothing changed since this version." = "С этой версии ничего не изменилось."
+"Nothing counted yet" = "Пока ничего не подсчитано"
+"Nothing to pick: the page is empty" = "Нечего выбрать: страница пуста"
+"Past 30 days" = "За 30 дней"
+"Past 90 days" = "За 90 дней"
+"Past year" = "За год"
+"Paste effect" = "Вставить эффект"
+"Paste fill" = "Вставить заливку"
+"Paste stroke" = "Вставить обводку"
+"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" = "Выбор указанием: выделить указанный слой"
+"Pretty" = "Аккуратно"
+"Pretty: full lines, no one word alone on the last" = "Аккуратно: полные строки, без одного слова в последней"
+"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 all auto layout" = "Убрать весь автолейаут"
+"Removed since this version" = "Удалено с этой версии"
+"Reset grid" = "Сбросить сетку"
+"Retry now" = "Повторить сейчас"
+"Right to left" = "Справа налево"
+"Rotate a degree (Shift: 15)" = "Повернуть на градус (Shift: на 15)"
+"Same as file ({profile})" = "Как в файле ({profile})"
+"Save a copy…" = "Сохранить копию…"
+"Scope" = "Область применения"
+"Scope: all supported properties" = "Область применения: все поддерживаемые свойства"
+"Scope: hidden from pickers" = "Область применения: скрыто в списках выбора"
+"Scope: only {scope}" = "Область применения: только {scope}"
+"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"
+"Select a row, a column or a full grid of three or more layers, outside an auto layout flow" = "Выделите строку, столбец или полную сетку из трёх и более слоёв вне потока автолейаута"
+"Selection box: switch to pick select" = "Рамка выделения: переключиться на выбор указанием"
+"Server key" = "Ключ сервера"
+"Set as opening page" = "Сделать стартовой страницей"
+"Set corner smoothing to 60%" = "Задать сглаживание углов 60%"
+"Set fill container" = "Задать: заполнить контейнер"
+"Set hug contents" = "Задать: по размеру содержимого"
+"Shared by your team on {server}" = "Опубликовано вашей командой на {server}"
+"Show and move the placement crosshair (its tool chosen, nothing selected)" = "Показать и перемещать перекрестие размещения (когда выбран его инструмент и ничего не выделено)"
+"Small" = "Мелкий"
+"Space" = "Space"
+"Strong line every" = "Жирная линия каждые"
+"Subscript" = "Нижний индекс"
+"Superscript" = "Верхний индекс"
+"Tab or Ctrl+Space again" = "Tab или Ctrl+Space ещё раз"
+"Text direction" = "Направление текста"
+"Text on a path" = "Текст по контуру"
+"The bars are hidden. {shortcut} shows them again" = "Панели скрыты. {shortcut} показывает их снова"
+"This link opens a website outside the prototype:" = "Эта ссылка открывает сайт вне прототипа:"
+"This link opens your mail app to write a message:" = "Эта ссылка открывает почтовую программу, чтобы написать сообщение:"
+"This server doesn't count detached instances" = "Этот сервер не считает отвязанные экземпляры"
+"This server doesn't count insertions" = "Этот сервер не считает вставки"
+"This server doesn't count styles and variables" = "Этот сервер не считает стили и переменные"
+"This variant's value" = "Значение этого варианта"
+"This version can't be read." = "Эту версию не удалось прочитать."
+"This version doesn't have it: all of it is new." = "В этой версии этого нет: всё появилось позже."
+"Update check is not supported in the web browser." = "Проверка обновлений в браузере не поддерживается."
+"Upload from computer" = "Загрузить с компьютера"
+"What changed since a saved version" = "Что изменилось с сохранённой версии"
+"When marked ready" = "Когда отмечено готовым"
+"Wrap style" = "Стиль переноса"
+"Your unsaved files were too large for the browser to keep." = "Несохранённые файлы оказались слишком большими, чтобы браузер их сохранил."
+"connector labels without a saved snapshot are centred on the line, without their background" = "подписи соединителей без сохранённого снимка центрируются на линии, без фона"
+"elbowed and curved connectors without a saved path are routed afresh" = "ломаные и кривые соединители без сохранённого контура прокладываются заново"
+"instance swap properties whose default component was past the layer limit were skipped" = "свойства замены экземпляра, у которых компонент по умолчанию выходил за предел слоёв, пропущены"
+"instances whose component was past the layer limit were imported as frames" = "экземпляры, чей компонент выходил за предел слоёв, импортированы как Frame"
+"invalid vector region fill paint list; layer fill used" = "недопустимый список заливок векторной области; использована заливка слоя"
+"invalid vector region paints were skipped" = "недопустимые заливки векторной области пропущены"
+"linked vector region fill styles keep resolved appearance; live style links were left out" = "связанные стили заливки векторной области сохраняют вычисленное оформление; живые связи стилей опущены"
+"note or shape generated child has invalid bounds; child skipped" = "у сгенерированного потомка заметки или фигуры недопустимые границы; потомок пропущен"
+"note or shape generated child is missing its style or bounds; child skipped" = "у сгенерированного потомка заметки или фигуры нет стиля или границ; потомок пропущен"
+"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" = "сгенерированная вёрстка заметки или фигуры отсутствует или не поддерживается; использован внешний Frame"
+"shape generated outline is missing or damaged; using its rectangle" = "сгенерированный контур фигуры отсутствует или повреждён; использован её прямоугольник"
+"sticky layers import as frames with their text" = "слои стикеров импортируются как Frame вместе со своим текстом"
+"swapped instances whose previous component isn't in the file took the new component's look" = "заменённые экземпляры, чей прежний компонент отсутствует в файле, получили вид нового компонента"
+"variable-bound vector region paints keep resolved appearance; live bindings were left out" = "привязанные к переменным заливки векторной области сохраняют вычисленное оформление; живые привязки опущены"
+"vector region paint data exceeded import limits and was skipped" = "данные заливки векторной области превысили пределы импорта и пропущены"
+"vector region references a missing fill style; layer fill used" = "векторная область ссылается на отсутствующий стиль заливки; использована заливка слоя"
+"{count} in it now · Changed {date}" = "Сейчас в нём {count} · Изменено {date}"
+"{insertions} · {detachments}" = "{insertions} · {detachments}"
+"{name}, disconnected from its live session" = "{name}, отключён от сеанса"
+"{n} detached" = { one = "{n} отвязан", few = "{n} отвязаны", many = "{n} отвязано", other = "{n} отвязано" }
+"{n} inserted" = { one = "{n} вставлен", few = "{n} вставлены", many = "{n} вставлено", other = "{n} вставлено" }
+"{period}: {counts}" = "{period}: {counts}"
+"{used} · {detached}" = "{used} · {detached}"
+"{used} · {inserted}" = "{used} · {inserted}"
+"↵ / ⇧↵" = "↵ / ⇧↵"
+"⇥ or ⌥ Space again" = "⇥ или ⌥ Space ещё раз"
+"⌘ click a padding field" = "⌘ нажатие по полю внутреннего отступа"
+"⌥ double-click an edge of an auto layout child" = "⌥ двойное нажатие по краю дочернего объекта автолейаута"
+"⌥⌘ ← ↑ → ↓" = "⌥⌘ ← ↑ → ↓"
[commands]
"align.bottom" = "Выровнять по нижнему краю"
@@ -2480,6 +2659,44 @@ name = "Русский"
"window.focus" = "Вывести окно на передний план"
"window.new" = "Новое окно"
"template.list" = "Список шаблонов"
+"board.grid" = "Сетка доски"
+"board.reshape" = "Изменить форму соединителя"
+"collab.reconnect" = "Переподключить сеанс"
+"comment.prompt" = "Копировать комментарии для ИИ"
+"data.fill" = "Заполнить копии данными"
+"effect.copy" = "Копировать эффект"
+"effect.paste" = "Вставить эффект"
+"file.fontReport" = "Проверить шрифты документа"
+"file.markSaved" = "Отметить как сохранённый"
+"fill.copy" = "Копировать заливку"
+"fill.paste" = "Вставить заливку"
+"font.download" = "Загрузить шрифт"
+"font.downloads" = "Загрузки шрифтов"
+"image.crop" = "Обрезать изображение"
+"image.replace" = "Заменить изображение"
+"layout.removeAll" = "Убрать весь автолейаут"
+"library.check" = "Проверить обновления библиотек команды"
+"pref.invertZoom" = "Инвертировать направление масштабирования"
+"pref.uiScaleDown" = "Меньший интерфейс"
+"pref.uiScaleReset" = "Размер интерфейса по умолчанию"
+"pref.uiScaleUp" = "Больший интерфейс"
+"proto.linkNotice" = "Уведомление перед переходом по ссылке"
+"selection.createColorStyle" = "Создать стиль цвета из выделения"
+"stroke.copy" = "Копировать обводку"
+"stroke.paste" = "Вставить обводку"
+"text.direction" = "Направление текста"
+"text.directionAuto" = "Направление текста: авто"
+"text.directionLtr" = "Направление текста: слева направо"
+"text.directionRtl" = "Направление текста: справа налево"
+"text.fit" = "Вписать текст в блок"
+"text.openLink" = "Открыть ссылку"
+"text.wrapStyle" = "Стиль переноса"
+"tool.annotation" = "Аннотация"
+"tool.crosshair" = "Переместить перекрестие размещения"
+"tool.textOnPath" = "Текст по контуру"
+"variable.extendCollection" = "Расширить коллекцию"
+"view.minimize" = "Свернуть интерфейс"
+"widget.hover" = "Виджет наведения"
[menu]
"bool.exclude" = "Исключение"
@@ -2513,3 +2730,6 @@ name = "Русский"
"view.themeDark" = "Тёмная"
"view.themeLight" = "Светлая"
"view.themeSystem" = "Системная"
+"text.directionAuto" = "Авто"
+"text.directionLtr" = "Слева направо"
+"text.directionRtl" = "Справа налево"
diff --git a/packaging/linux/ai.storyteller.figcraft.desktop b/packaging/linux/ai.storyteller.figcraft.desktop
index c739d6a47..fd0d7d629 100644
--- a/packaging/linux/ai.storyteller.figcraft.desktop
+++ b/packaging/linux/ai.storyteller.figcraft.desktop
@@ -1,8 +1,13 @@
+# Russian translation © 2026 SuperSfera LLC, MIT OR Apache-2.0
+# Russian translation © 2026 SuperSfera LLC, MIT OR Apache-2.0
[Desktop Entry]
Type=Application
Name=FigCraft
+Name[ru]=FigCraft
GenericName=Interface Design Tool
+GenericName[ru]=Инструмент для дизайна интерфейсов
Comment=Design and prototype user interfaces
+Comment[ru]=Дизайн и прототипирование пользовательских интерфейсов
Exec=figcraft %U
TryExec=figcraft
Icon=ai.storyteller.figcraft
@@ -11,4 +16,5 @@ StartupNotify=true
StartupWMClass=ai.storyteller.figcraft
Categories=Graphics;2DGraphics;VectorGraphics;X-Design;
Keywords=design;interface;ui;ux;prototype;wireframe;mockup;vector;layout;components;
+Keywords[ru]=дизайн;интерфейс;ui;ux;прототип;вайрфрейм;макет;вектор;вёрстка;верстка;компоненты;
MimeType=application/x-figcraft;image/svg+xml;image/png;image/jpeg;application/x-sketch;x-scheme-handler/figcraft;
diff --git a/packaging/linux/ai.storyteller.figcraft.metainfo.xml.in b/packaging/linux/ai.storyteller.figcraft.metainfo.xml.in
index 43618eb18..5ede36f7f 100644
--- a/packaging/linux/ai.storyteller.figcraft.metainfo.xml.in
+++ b/packaging/linux/ai.storyteller.figcraft.metainfo.xml.in
@@ -1,4 +1,6 @@
+
+
@@ -7,6 +9,7 @@
MIT OR Apache-2.0
FigCraft
Design and prototype user interfaces
+ Дизайн и прототипирование пользовательских интерфейсов
Learning Machines LLC
@@ -16,13 +19,25 @@
on an infinite canvas with frames, auto layout and constraints, build reusable components
and variants, and link screens into clickable prototypes.
+
+ 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
+ ui
wireframe
+ вайрфрейм
#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
+ Документ FigCraft
Sketch document
+ Документ Sketch
From 141083243ac81dc0f349282a9f8f6fb6640c2960 Mon Sep 17 00:00:00 2001
From: supersfera
Date: Sat, 21 Nov 2026 19:28:52 -0800
Subject: [PATCH 23/59] 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 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 24/59] 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 782b2ea3694e717395045fcf60f3c10c4cb4ad00 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Fri, 20 Nov 2026 18:57:49 -0500
Subject: [PATCH 25/59] M4: Tab while editing a text layer goes on to the next
text layer
Tab while editing a text layer typed a tab character, and Shift+Tab did
too, so filling in a form built from instances took a double-click into
every label. Tab now ends editing the text and edits the next text layer
with all of its text selected; Shift+Tab goes to the previous one.
The order is reading order: rows top to bottom, each left to right; two
layers share a row when they overlap vertically by at least half the
shorter one's height. The candidates are the text layers of the same
top-level frame or group, at any depth and inside instances, that are
visible and unlocked along with every layer around them; a text on the
page or in a section goes to the texts beside it. At the last text Tab
does nothing, and Shift+Tab at the first.
Tab keeps nesting a list item, typing two spaces in a code block and
typing a tab in a board object's text or a widget's field. The view
doesn't follow a text that is off screen: nothing in the app scrolls a
layer into view yet.
Two rows of text_tail_tests::list_keys_at_list_items asserted that Tab
outside a list types a tab; they now assert the text stays as it was.
---
crates/engine/src/canvas/textedit.rs | 93 +++++++++++++++++++-
crates/engine/src/cmd/text.rs | 2 +-
crates/engine/src/keymap.rs | 1 +
crates/engine/src/lib.rs | 2 +
crates/engine/src/text_tab_tests.rs | 113 +++++++++++++++++++++++++
crates/engine/src/text_tail_tests.rs | 6 +-
crates/ui-egui/locales/en.toml | 1 +
crates/ui-egui/src/text_enter_tests.rs | 52 +++++++++++-
docs/ui-parity.md | 5 +-
9 files changed, 265 insertions(+), 10 deletions(-)
create mode 100644 crates/engine/src/text_tab_tests.rs
diff --git a/crates/engine/src/canvas/textedit.rs b/crates/engine/src/canvas/textedit.rs
index 6c8c15071..b0c09691d 100644
--- a/crates/engine/src/canvas/textedit.rs
+++ b/crates/engine/src/canvas/textedit.rs
@@ -401,6 +401,94 @@ pub fn list_indent(s: &mut Session, out: bool) -> Result {
Ok(text_of(s, id)? != before)
}
+/// Whether Tab in text layer `id` moves between text layers: not in a board object's text (a
+/// sticky's note, a table cell, a code block) or a widget's field, where it types as before.
+fn tabs_between_texts(doc: &Document, id: NodeId) -> bool {
+ !in_board_object(doc, id) && crate::widgets::field_of(doc, id).is_none()
+}
+
+fn in_board_object(doc: &Document, id: NodeId) -> bool {
+ std::iter::once(id).chain(doc.ancestors(id)).any(|a| doc.node(a).is_some_and(|n| n.board.is_some()))
+}
+
+/// Tab (Shift+Tab: `back`) while editing text layer `from`: editing it ends as Escape ends it, and
+/// the next (previous) text layer in reading order is edited with all of its text selected. At the
+/// last (first) one nothing happens.
+fn tab_to_next_text(s: &mut Session, from: NodeId, back: bool) -> Result<()> {
+ let order = reading_order(s.doc()?, tab_stops(s.doc()?, from));
+ let Some(at) = order.iter().position(|t| *t == from) else { return Ok(()) };
+ let next = if back { at.checked_sub(1).and_then(|i| order.get(i)) } else { order.get(at + 1) };
+ let Some(&next) = next else { return Ok(()) };
+ end(s)?;
+ begin(s, next, None, false)
+}
+
+/// The text layers Tab moves between from text layer `from`: those in the top-level layer holding
+/// it (the frame or group on the page or in a section), at any depth and inside instances, that are
+/// visible and unlocked with every layer around them and not in a board object; for a text on the
+/// page or in a section itself, the text layers beside it there. `from` is always one of them.
+fn tab_stops(doc: &Document, from: NodeId) -> Vec {
+ let is_section = |id: &NodeId| doc.node(*id).is_some_and(|n| matches!(n.kind, NodeKind::Section { .. }));
+ let chain: Vec = std::iter::once(from).chain(doc.ancestors(from)).collect();
+ let Some(page_at) = chain.iter().position(|c| doc.node(*c).is_some_and(|n| n.is_page())) else { return vec![from] };
+ let top = chain.get(..page_at).and_then(|below| below.iter().rev().copied().find(|c| !is_section(c)));
+ let stop = |n: &figcraft_doc::Node| n.visible && !n.locked && n.board.is_none();
+ let mut out = Vec::new();
+ match top {
+ Some(top) if top != from => {
+ let mut stack = vec![top];
+ let mut seen = 0usize;
+ while let Some(id) = stack.pop() {
+ seen += 1;
+ if seen > 1_000_000 {
+ break;
+ }
+ let Some(n) = doc.node(id).filter(|n| stop(n)) else { continue };
+ if matches!(n.kind, NodeKind::Text(_)) {
+ out.push(id);
+ }
+ stack.extend(n.children.iter().copied());
+ }
+ }
+ _ => {
+ let beside = doc.node(from).and_then(|n| n.parent).and_then(|p| doc.node(p)).map(|p| p.children.clone()).unwrap_or_default();
+ out.extend(beside.into_iter().filter(|c| doc.node(*c).is_some_and(|n| stop(n) && matches!(n.kind, NodeKind::Text(_)))));
+ }
+ }
+ if !out.contains(&from) {
+ out.push(from);
+ }
+ out
+}
+
+/// `ids` in reading order by their boxes on the page: rows top to bottom, each row left to right.
+/// Rows are made from the top down: a layer joins the row of the topmost layer before it when the
+/// two overlap vertically by more than nothing and by at least half the height of the shorter one,
+/// else it starts the next row. Layers without bounds are left out.
+fn reading_order(doc: &Document, ids: Vec) -> Vec {
+ let mut boxes: Vec<(NodeId, figcraft_geom::Rect)> = ids.into_iter().filter_map(|i| Some((i, doc.world_bounds(i)?))).collect();
+ boxes.sort_by(|a, b| a.1.y0.total_cmp(&b.1.y0).then(a.1.x0.total_cmp(&b.1.x0)));
+ let mut rows: Vec> = Vec::new();
+ for (id, b) in boxes {
+ let joins = |row: &Vec<(NodeId, figcraft_geom::Rect)>| {
+ row.first().is_some_and(|(_, a)| {
+ let overlap = a.y1.min(b.y1) - a.y0.max(b.y0);
+ overlap > 0.0 && overlap >= 0.5 * a.height().min(b.height())
+ })
+ };
+ match rows.last_mut() {
+ Some(row) if joins(row) => row.push((id, b)),
+ _ => rows.push(vec![(id, b)]),
+ }
+ }
+ rows.into_iter()
+ .flat_map(|mut row| {
+ row.sort_by(|a, b| a.1.x0.total_cmp(&b.1.x0).then(a.1.y0.total_cmp(&b.1.y0)));
+ row.into_iter().map(|(id, _)| id)
+ })
+ .collect()
+}
+
/// The kind of word char `i` belongs to: 0 for spaces and punctuation, else its script, so a word
/// ends where the script changes (Han, hiragana, katakana and Hangul runs are words of their own in
/// text without spaces). Combining marks and voicing marks belong to the char before them.
@@ -459,7 +547,9 @@ fn word_right(chars: &[char], mut i: usize) -> usize {
i
}
-/// A named key: Backspace, Delete, Left, Right, Up, Down, Home, End, Enter, Escape, SelectAll.
+/// A named key: Backspace, Delete, Left, Right, Up, Down, Home, End, Enter, Tab, Escape, SelectAll.
+/// Tab and Shift+Tab outside a list, a code block, a board object and a widget's field edit the
+/// next or previous text layer ([`tab_to_next_text`]).
/// `word` moves or deletes by word, `line` to the line's ends (Up/Down, Home/End: the text's ends);
/// [`crate::keymap::text_motion`] gives them for the platform's keys. `ArrowLeft` etc. also work.
pub fn key(s: &mut Session, key: &str, shift: bool, word: bool, line: bool) -> Result<()> {
@@ -484,6 +574,7 @@ pub fn key(s: &mut Session, key: &str, shift: bool, word: bool, line: bool) -> R
match key {
"Escape" => return end(s),
"Enter" => return insert(s, "\n"),
+ "Tab" if !word && !line && tabs_between_texts(s.doc()?, te.id) => return tab_to_next_text(s, te.id, shift),
"Tab" => return insert(s, "\t"),
"Backspace" | "Delete" => {
return edit(s, |t, te| {
diff --git a/crates/engine/src/cmd/text.rs b/crates/engine/src/cmd/text.rs
index 177155a8a..f80c0c541 100644
--- a/crates/engine/src/cmd/text.rs
+++ b/crates/engine/src/cmd/text.rs
@@ -642,7 +642,7 @@ pub fn specs() -> Vec {
spec!(
"text.edit.key",
"Text key",
- "{key: Backspace|Delete|Left|Right|Up|Down|Home|End|Enter|Tab|Escape|SelectAll, shift?, alt?, cmd?} in a list, Tab nests the item and Shift+Tab, Enter on an empty item or Backspace at its start move it out; in a code block, Tab types two spaces and Enter keeps the line's indent",
+ "{key: Backspace|Delete|Left|Right|Up|Down|Home|End|Enter|Tab|Escape|SelectAll, shift?, alt?, cmd?} in a list, Tab nests the item and Shift+Tab, Enter on an empty item or Backspace at its start move it out; in a code block, Tab types two spaces and Enter keeps the line's indent; elsewhere Tab and Shift+Tab edit the next or previous text layer of the frame in reading order (rows top to bottom, each left to right), all of it selected, and do nothing at the last and the first (in a board object or a widget's field Tab types a tab)",
true,
|s, p| {
let k = req_string("text.edit.key", p, "key")?;
diff --git a/crates/engine/src/keymap.rs b/crates/engine/src/keymap.rs
index 11e7e316a..f289fd457 100644
--- a/crates/engine/src/keymap.rs
+++ b/crates/engine/src/keymap.rs
@@ -365,6 +365,7 @@ pub static GESTURES: &[(Group, &str, &str, &str)] = &[
(Selection, "Pick select: next or previous layer", "⇥ / ⇧⇥", "Tab / Shift+Tab"),
(Selection, "Pick select: into a layer, out to its parent", "↵ / ⇧↵", "Enter / Shift+Enter"),
(Selection, "Pick select: select the picked layer", "Space", "Space"),
+ (Text, "While editing text: next or previous text layer", "⇥ / ⇧⇥", "Tab / Shift+Tab"),
(Edit, "Duplicate by dragging", "⌥ drag", "Alt+drag"),
(Transform, "Nudge (Shift: big nudge)", "← ↑ → ↓", "← ↑ → ↓"),
(Transform, "Resize by the nudge amount", "⌘ arrows", "Ctrl+arrows"),
diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs
index ad6bb085e..5de6d03bf 100644
--- a/crates/engine/src/lib.rs
+++ b/crates/engine/src/lib.rs
@@ -617,6 +617,8 @@ mod text_motion_tests;
#[cfg(test)]
mod text_style_picker_tests;
#[cfg(test)]
+mod text_tab_tests;
+#[cfg(test)]
mod text_tail_tests;
#[cfg(test)]
mod text_weight_step_tests;
diff --git a/crates/engine/src/text_tab_tests.rs b/crates/engine/src/text_tab_tests.rs
new file mode 100644
index 000000000..2f7201290
--- /dev/null
+++ b/crates/engine/src/text_tab_tests.rs
@@ -0,0 +1,113 @@
+//! Tab and Shift+Tab while editing a text layer move editing to the next or previous text layer
+//! of the same top-level frame, in reading order (rows top to bottom, each left to right), with
+//! all of its text selected; hidden and locked text is passed over, and at either end the key
+//! does nothing.
+
+use figcraft_doc::NodeId;
+use serde_json::{Value, json};
+
+use crate::Session;
+use crate::params::id_of;
+
+fn ex(s: &mut Session, cmd: &str, p: Value) -> Value {
+ s.execute(cmd, &p).unwrap_or_else(|e| panic!("{cmd}: {e}"))
+}
+
+fn text(s: &mut Session, chars: &str, x: f64, y: f64, parent: NodeId) -> NodeId {
+ id_of(&ex(s, "text.create", json!({"text": chars, "x": x, "y": y, "parent": parent}))["id"]).unwrap()
+}
+
+fn frame(s: &mut Session, x: f64, y: f64) -> NodeId {
+ id_of(&ex(s, "frame.create", json!({"x": x, "y": y, "width": 400, "height": 300}))["id"]).unwrap()
+}
+
+fn tab(s: &mut Session, shift: bool) {
+ ex(s, "text.edit.key", json!({"key": "Tab", "shift": shift}));
+}
+
+/// The text being edited and whether all of it is selected.
+fn editing(s: &Session) -> (NodeId, bool) {
+ let te = s.ds().unwrap().text_edit.clone().expect("still editing");
+ let n = s.doc().unwrap().node(te.id).unwrap().kind.text().unwrap().char_count();
+ (te.id, te.anchor.min(te.caret) == 0 && te.anchor.max(te.caret) == n)
+}
+
+fn chars(s: &Session, id: NodeId) -> String {
+ s.doc().unwrap().node(id).unwrap().kind.text().unwrap().characters.clone()
+}
+
+/// A frame with a row of three texts whose tops differ by a few pixels, out of order in the
+/// layer list, and a second row below; a text in another frame beside it.
+fn two_rows(s: &mut Session) -> Vec {
+ let f = frame(s, 0.0, 0.0);
+ let b = text(s, "B", 150.0, 12.0, f);
+ let a = text(s, "A", 10.0, 10.0, f);
+ let e = text(s, "E", 150.0, 100.0, f);
+ let c = text(s, "C", 290.0, 6.0, f);
+ let d = text(s, "D", 10.0, 101.0, f);
+ let other = frame(s, 500.0, 0.0);
+ text(s, "Elsewhere", 10.0, 10.0, other);
+ vec![a, b, c, d, e]
+}
+
+#[test]
+fn tab_reads_a_row_left_to_right_then_the_next_row() {
+ let mut s = Session::new();
+ let order = two_rows(&mut s);
+ ex(&mut s, "text.edit.begin", json!({"id": order[0], "caret": 0}));
+ for want in &order[1..] {
+ tab(&mut s, false);
+ assert_eq!(editing(&s), (*want, true), "on to {} with all of it selected", chars(&s, *want));
+ }
+ assert!(order.iter().all(|t| !chars(&s, *t).contains('\t')), "no tab typed");
+}
+
+#[test]
+fn shift_tab_goes_back() {
+ let mut s = Session::new();
+ let order = two_rows(&mut s);
+ ex(&mut s, "text.edit.begin", json!({"id": order[4], "caret": 0}));
+ for want in order[..4].iter().rev() {
+ tab(&mut s, true);
+ assert_eq!(editing(&s).0, *want, "back to {}", chars(&s, *want));
+ }
+}
+
+#[test]
+fn tab_on_the_last_text_keeps_editing_it() {
+ let mut s = Session::new();
+ let order = two_rows(&mut s);
+ let undo = s.ds().unwrap().history.undo.len();
+ ex(&mut s, "text.edit.begin", json!({"id": order[4], "caret": 1}));
+ tab(&mut s, false);
+ let te = s.ds().unwrap().text_edit.clone().expect("still editing");
+ assert_eq!((te.id, te.caret, te.anchor), (order[4], 1, 1), "the last one: nothing moves");
+ assert_eq!(chars(&s, order[4]), "E", "and nothing is typed");
+ // Shift+Tab on the first one does nothing either.
+ ex(&mut s, "text.edit.end", json!({}));
+ ex(&mut s, "text.edit.begin", json!({"id": order[0], "caret": 0}));
+ tab(&mut s, true);
+ assert_eq!(editing(&s).0, order[0]);
+ ex(&mut s, "text.edit.end", json!({}));
+ assert_eq!(s.ds().unwrap().history.undo.len(), undo, "no undo step for it");
+}
+
+#[test]
+fn hidden_and_locked_text_is_skipped() {
+ let mut s = Session::new();
+ let f = frame(&mut s, 0.0, 0.0);
+ let first = text(&mut s, "First", 10.0, 10.0, f);
+ let hidden = text(&mut s, "Hidden", 10.0, 50.0, f);
+ ex(&mut s, "node.set", json!({"id": hidden, "props": {"visible": false}}));
+ let locked = text(&mut s, "Locked", 10.0, 90.0, f);
+ ex(&mut s, "node.set", json!({"id": locked, "props": {"locked": true}}));
+ let inner = id_of(&ex(&mut s, "frame.create", json!({"x": 10, "y": 130, "width": 200, "height": 60, "parent": f}))["id"]).unwrap();
+ text(&mut s, "In a locked frame", 0.0, 0.0, inner);
+ ex(&mut s, "node.set", json!({"id": inner, "props": {"locked": true}}));
+ let last = text(&mut s, "Last", 10.0, 220.0, f);
+ ex(&mut s, "text.edit.begin", json!({"id": first, "caret": 0}));
+ tab(&mut s, false);
+ assert_eq!(editing(&s).0, last, "past the hidden text, the locked one and the text in a locked frame");
+ tab(&mut s, true);
+ assert_eq!(editing(&s).0, first);
+}
diff --git a/crates/engine/src/text_tail_tests.rs b/crates/engine/src/text_tail_tests.rs
index af854a6ea..7ad66d8f7 100644
--- a/crates/engine/src/text_tail_tests.rs
+++ b/crates/engine/src/text_tail_tests.rs
@@ -221,11 +221,11 @@ fn list_keys_at_list_items() {
2,
"Tab",
false,
- "a\n\tb",
+ "a\nb",
vec![(B, 0), (P, 1)],
- "a plain paragraph at a level isn't an item: Tab types a tab",
+ "a plain paragraph at a level isn't an item: Tab leaves the list alone (and moves to the next text, none here)",
),
- ("a\nb", vec![(P, 0), (P, 0)], 3, "Tab", false, "a\nb\t", vec![(P, 0), (P, 0)], "outside a list Tab types a tab"),
+ ("a\nb", vec![(P, 0), (P, 0)], 3, "Tab", false, "a\nb", vec![(P, 0), (P, 0)], "outside a list Tab types no tab"),
("a", vec![(B, 8)], 1, "Tab", false, "a", vec![(B, 8)], "silent: nesting stops at 8 levels"),
];
for (chars, before, caret, k, shift, after, want, why) in cases {
diff --git a/crates/ui-egui/locales/en.toml b/crates/ui-egui/locales/en.toml
index e42a1c21c..ec00c152f 100644
--- a/crates/ui-egui/locales/en.toml
+++ b/crates/ui-egui/locales/en.toml
@@ -1758,6 +1758,7 @@ name = "English"
"What it's for" = "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." = "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."
"When marked ready" = "When marked ready"
+"While editing text: next or previous text layer" = "While editing text: next or previous text layer"
"While hovering" = "While hovering"
"While pressing" = "While pressing"
"White" = "White"
diff --git a/crates/ui-egui/src/text_enter_tests.rs b/crates/ui-egui/src/text_enter_tests.rs
index 89129a7e9..cd0924328 100644
--- a/crates/ui-egui/src/text_enter_tests.rs
+++ b/crates/ui-egui/src/text_enter_tests.rs
@@ -1,7 +1,8 @@
-//! Enter and Escape on text, and the page a new file gets in each theme, driven through egui
+//! Enter, Escape and Tab on text, and the page a new file gets in each theme, driven through egui
//! headless: Enter on a selected text layer edits it with all of its text selected (what a
//! double-click into it does), typing replaces it, and Escape leaves editing with the layer still
-//! selected; File ▸ New in the dark theme makes a dark page.
+//! selected; Tab while editing goes on to the next text layer; File ▸ New in the dark theme makes
+//! a dark page.
use egui::{Event, Key, Modifiers};
use figcraft_color::Color;
@@ -12,7 +13,10 @@ use serde_json::json;
use crate::layers_drag_tests::Ui;
fn press(u: &mut Ui, key: Key) {
- let modifiers = Modifiers::NONE;
+ press_with(u, key, Modifiers::NONE);
+}
+
+fn press_with(u: &mut Ui, key: Key, modifiers: Modifiers) {
u.frame(vec![
Event::Key { key, physical_key: None, pressed: true, repeat: false, modifiers },
Event::Key { key, physical_key: None, pressed: false, repeat: false, modifiers },
@@ -59,6 +63,48 @@ fn enter_edits_a_selected_text_with_all_of_it_selected_and_escape_keeps_the_laye
assert!(u.app.session.selection().is_empty());
}
+/// The text layer inside instance `inst`.
+fn label_of(s: &Session, inst: NodeId) -> NodeId {
+ let doc = s.doc().unwrap();
+ doc.subtree(inst).into_iter().find(|i| doc.node(*i).is_some_and(|n| matches!(n.kind, NodeKind::Text(_)))).unwrap()
+}
+
+#[test]
+fn tab_edits_the_label_in_the_next_row_of_a_form() {
+ // A form: a vertical auto layout frame of instances of an option (a box and a label), each
+ // label set on its instance.
+ let mut s = Session::new();
+ let id = |v: serde_json::Value| NodeId(v["id"].as_u64().unwrap());
+ let option = id(s.execute("frame.create", &json!({"x": 0, "y": 0, "width": 160, "height": 24, "name": "Option"})).unwrap());
+ s.execute("node.set", &json!({"id": option, "props": {"layout": "horizontal", "gap": 8}})).unwrap();
+ s.execute("shape.rectangle", &json!({"x": 0, "y": 0, "width": 16, "height": 16, "parent": option})).unwrap();
+ let main_label = id(s.execute("text.create", &json!({"text": "Label", "x": 0, "y": 0, "parent": option})).unwrap());
+ let option = id(s.execute("component.create", &json!({"ids": [option]})).unwrap());
+ let form = id(s.execute("frame.create", &json!({"x": 0, "y": 200, "width": 240, "height": 200, "name": "Form"})).unwrap());
+ s.execute("node.set", &json!({"id": form, "props": {"layout": "vertical", "gap": 12}})).unwrap();
+ let mut labels = Vec::new();
+ for name in ["Instagram", "Architect", "Designer"] {
+ let inst = id(s.execute("instance.create", &json!({"component": option, "parent": form})).unwrap());
+ let label = label_of(&s, inst);
+ s.execute("text.set", &json!({"id": label, "characters": name})).unwrap();
+ labels.push(label);
+ }
+ s.execute("text.edit.begin", &json!({"id": labels[0], "caret": 9})).unwrap();
+ let mut u = Ui::new(s);
+ press(&mut u, Key::Tab);
+ let te = u.app.session.ds().unwrap().text_edit.clone().expect("still editing");
+ assert_eq!((te.id, te.anchor.min(te.caret), te.anchor.max(te.caret)), (labels[1], 0, 9), "Architect, all of it selected");
+ u.frame(vec![Event::Text("Writer".into())]);
+ assert_eq!(text(&u, labels[1]), "Writer", "typing replaces it");
+ assert_eq!((text(&u, labels[0]), text(&u, main_label)), ("Instagram".into(), "Label".into()), "the others stay");
+ press_with(&mut u, Key::Tab, Modifiers::SHIFT);
+ assert_eq!(u.app.session.ds().unwrap().text_edit.as_ref().map(|te| te.id), Some(labels[0]), "Shift+Tab: back to Instagram");
+ // An override: the main's label changing leaves it as typed.
+ press(&mut u, Key::Escape);
+ u.app.session.execute("text.set", &json!({"id": main_label, "characters": "Choice"})).unwrap();
+ assert_eq!(text(&u, labels[1]), "Writer", "kept as the instance's own text");
+}
+
#[test]
fn copying_and_cutting_selected_text_use_clipboard_service() {
use std::{cell::RefCell, rc::Rc};
diff --git a/docs/ui-parity.md b/docs/ui-parity.md
index d756e71b0..3a5569f87 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-20 · **Change:** minor (Tab and Shift+Tab while editing a text layer go on to the next or previous text layer of its frame, in reading order, with all of its text selected; 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:
@@ -98,7 +98,7 @@ interaction feel only partly compared: the interactions measured so far, case by
| Vector edit mode: bend, paint bucket, lasso, cut, eraser, transform box, point snapping, mirroring | done | a mirror mode on a sharp point turns it smooth by the measured rule (#2110); a double-click a few pixels off a thin stroke enters edit mode (#646); entering edit mode and picking a region keep the canvas still (#322); a point dropped on another point merges with it, and dropping one end of an open path on the other closes it (a 2-point line's end just moves, #401); Flatten keeps open paths open (#377), and bakes a vector's point corner radius into its path (each rounded point becomes the arc's end points joined by curves, the layer stays a vector and its box fits the real geometry, #2195); paint bucket drags across areas; cut drags divide a shape into layers; delete and heal follows the curve; rounded points are drawn, an arc reaching along the whole of a segment whose other end is sharp and half of one whose other end is rounded too, so one rounded corner of a 100 × 100 square with radius 100 runs from one neighbour to the other, while the radius field keeps what was typed (#2334, `vector_radius_tests`, `vector_point_radius_tests`); Shift-click deselects a point at a corner of the box (`vector_behaviour_tests`); several vectors edited at once, Shift-click handles to drag them together, a cap and join per point, rounded points beside curves (`vector_multi_behaviour_tests`); filled regions with the Move tool: the area under the pointer is hatched ("/" lines in the selection colour, clipped by the area's own fill rule, holes left out, gone 3.5 px from a point or 2 px from a segment at any zoom), the line spacing follows octave folding (fitted to measurements at several zoom levels: 8 px at every power-of-two zoom, growing with the zoom and stepping back at √2 · 2ⁿ) and stays fixed to the shape when panning; a click selects the area and its points (moved with it but drawn unselected), Shift adds or removes an area, a press on a selected area drags the whole selection, no hover hatch during drags, a click on an empty spot (a hole) clears it and stays in edit mode; `vector.edit.select {regions}` (`regions_tests`, `vector_regions_tests`); a Bend click on a sharp point between two segments curves it (handles along the line between its neighbours, a third of the way to each, `ops::auto_smooth`), on a curved one sharpens it, a drag sets the handles by hand (#1875); with regions selected, the Fill section (its rows and the colour picker) and `fill.set`, `fill.add`, `fill.remove`, `fill.move` and `fill.paste` edit those regions' own fills, the layer's untouched, or the regions named by `regions: [index, ...]`; Copy fill takes the region's paint, the colour picker and its canvas gradient and crop handles edit it (an image from Upload from computer included; a file dropped on the picker goes to the canvas instead), what belongs to the layer (its fill style, a variable bound to its fill, the image crop button) stays off a region's rows, and `fill.pattern` sets the layer's fill (#1875); the Point section's X and Y show the value the selected points share, or Mixed, and a typed value sets every selected point's own coordinate, in the layer being edited (measured in Figma on 2026-11-08); Copy and Cut with points or segments selected take just those (a lone point: the segments touching it) as a vector with the layer's look, at their own place, so a paste outside edit mode is a new layer in place; Cut removes them as Delete does, the path splitting in the same layer with edit mode staying on; Paste while editing adds the clipboard's segments, or a copied shape's or boolean's outline, to the edited network in place with the new points selected, skipping layers with no outline (text, frames, groups; named in `skipped`) and refusing when none has one, as measured in Figma (`vector_clipboard_tests`, #1875). Not yet: areas of other layers edited at once; the Point section's X and Y over points of several edited layers |
| Shape builder (Shift+M) on fills, strokes and open paths; variable width (Shift+W), one side with Alt | done | |
| Boolean groups: clicked where the result is, double-click or Cmd/Ctrl-click into operands, live results while dragging or editing points, per-operand operations | done | a group past the path operations' caps (250 000 segments, 2 million possible crossings, 4 million segments swept over a fold) draws without its result, with a warning, and Flatten refuses it (#1104); the Design panel's Boolean groups menu leads Union, Subtract, Intersect and Exclude with their own icons, two offset squares with the result filled at reduced alpha (#2003); a boolean group takes a corner radius from the Design panel and from `node.set cornerRadius`: every sharp corner of its result rounds, convex and concave, layers inside keep their own radius and do not stack with it, a radius larger than the edges allow shrinks to fit while the field keeps the value typed, Flatten bakes the arcs and a mixed selection reads Mixed; measured in Figma's web app on 2026-11-10 (#2222; `crates/pathops/src/round_tests.rs`, `crates/render/src/boolean_radius_tests.rs`, `crates/engine/src/boolean_radius_tests.rs`, the boolean group test in `crates/ui-egui/src/field_tests.rs`). Pinned and not yet compared with Figma: corner smoothing on a boolean group draws the polygon profile between straight edges, a corner beside a curve stays within the curve piece next to it, and there is no radius handle on the canvas |
-| Text: point, auto height, fixed; caret, words, lines, IME | done | Backspace or Delete at the start of a list item takes its marker and keeps its level, the paragraph starting where the item's text did ("delete the counter, but keep the same level of indentation", Create bulleted and numbered lists; `text_tail_tests::list_keys_at_list_items`, text crate `behaviour_tests`); max lines on auto-width text keep it auto width, hugging up to that many lines and growing with its longest line ("Text resizing is set to auto height or auto width", Explore text properties; `text_behaviour_tests::max_lines_on_auto_width_text_keeps_auto_width_and_hugs_that_many_lines`); Alt+Enter while editing opens the link at the caret, web and mail links only (`text.openLink`; "press ⌥Option Return/Alt Enter to activate a focused link", Accessibility at Figma; `text_link_tests`); the font picker previews a family on the canvas while hovered (no undo step; Escape restores, #653) and Up/Down step through it (#352); a selection highlight after a line break starts at that line's start and an empty last line shows its mark (#665); carets step over whole emoji and accented letters; colour emoji draw from their colour tables (#300); IME composition replayed in tests as macOS sends it, not yet checked on a Mac (#747); CJK words by script run (no dictionary); vertical trim in Type settings; the caret takes the text's solid fill colour, measured in Figma's web app, 2026-11-09; gradient and image fills (not measured) give a black caret on a light surface and a white one on a dark one (the nearest layer around the text whose top visible fill is a solid at least half opaque as drawn, counting layer opacity, else the page; a layer whose top fill is a gradient or an image is passed over), not the interface's text colour, which is white in the dark theme and vanished on the default light page (#2190) (#2156; `caret_tests`); no spell check |
+| Text: point, auto height, fixed; caret, words, lines, IME | done | Backspace or Delete at the start of a list item takes its marker and keeps its level, the paragraph starting where the item's text did ("delete the counter, but keep the same level of indentation", Create bulleted and numbered lists; `text_tail_tests::list_keys_at_list_items`, text crate `behaviour_tests`); Tab and Shift+Tab while editing a text layer that isn't a list item go on to the next or previous text layer of its frame in reading order, all of its text selected, and do nothing at the last and the first (`text_tab_tests`); max lines on auto-width text keep it auto width, hugging up to that many lines and growing with its longest line ("Text resizing is set to auto height or auto width", Explore text properties; `text_behaviour_tests::max_lines_on_auto_width_text_keeps_auto_width_and_hugs_that_many_lines`); Alt+Enter while editing opens the link at the caret, web and mail links only (`text.openLink`; "press ⌥Option Return/Alt Enter to activate a focused link", Accessibility at Figma; `text_link_tests`); the font picker previews a family on the canvas while hovered (no undo step; Escape restores, #653) and Up/Down step through it (#352); a selection highlight after a line break starts at that line's start and an empty last line shows its mark (#665); carets step over whole emoji and accented letters; colour emoji draw from their colour tables (#300); IME composition replayed in tests as macOS sends it, not yet checked on a Mac (#747); CJK words by script run (no dictionary); vertical trim in Type settings; the caret takes the text's solid fill colour, measured in Figma's web app, 2026-11-09; gradient and image fills (not measured) give a black caret on a light surface and a white one on a dark one (the nearest layer around the text whose top visible fill is a solid at least half opaque as drawn, counting layer opacity, else the page; a layer whose top fill is a gradient or an image is passed over), not the interface's text colour, which is white in the dark theme and vanished on the default light page (#2190) (#2156; `caret_tests`); no spell check |
| Text: wrap style (Auto, Balance, Pretty) | done | per text layer (`wrapStyle` on `node.set`, `text.wrapStyle`, the Type settings control under Vertical trim, inspect, CSS `text-wrap: balance` or `pretty`): Auto breaks greedily; Balance narrows each paragraph as far as it goes without another line, so its lines come out close to the same length (what browsers do for `text-wrap: balance`); Pretty keeps lines full and, when the last line is one word, narrows one of the last four lines just enough to give a word to the lines after it (Explore text properties: "Auto: Figma fits as many words as possible on each line before wrapping to the next", "Balance: Figma distributes text as evenly as possible across every line, so each line is close to the same length", "Pretty: Figma keeps each line full, but adjusts the last four lines to avoid an orphan"). Saved line breaks from a file still win. At three levels (the text layer, a paragraph and a text style, per Explore text properties): the paragraph level is the caret's or the selection's paragraphs while editing (`text.wrapStyle`; the control follows them), or `start`/`end` on `node.set wrapStyle` (a paragraph's own style beats the layer's; setting the layer sets every paragraph again; Enter carries it to the new paragraph; inspect reports `lineWrapStyles` when paragraphs differ and CSS `text-wrap` only when they agree); the text-style level is a style's `wrapStyle` (shown read-only in the style editor, applied with the style, moved by `style.update`, unlinking when edited). The `.fig` import/export mapping stays open (#1827): a `.fig` export leaves the wrap styles out and a `.fig` import reads every text as Auto, so the wrap styles are lost through a `.fig` round trip. Test: `text_behaviour_tests::wrap_style_per_paragraph_overrides_the_layers`, `styles_behaviour_tests::text_styles_carry_the_wrap_style`, `text_behaviour_tests::balance_and_pretty_wrap_styles_break_lines_as_documented` |
| Text: direction override (Text ▸ Text direction) | done | per paragraph (`ParaList::direction`: auto, ltr, rtl): Text ▸ Text direction ▸ Auto / Left to right / Right to left and `text.direction {direction, ids?}` set the edited paragraphs while editing, else every paragraph of the selected texts; `node.set textDirection` the layer's (or the chars `start`/`end` name); the Type settings control appears once a right-to-left script is in the text or a direction is forced; inspect reports `textDirection` when the paragraphs agree and `lineDirections` otherwise; Developer Mode's CSS writes `direction: ltr` or `rtl` when every paragraph is forced the same way (with `text-align: left` beside `rtl`, as Left is absolute on the canvas); `.fig` import and export carry each line's `sourceDirectionality`, read up to the paragraph count. Layout gives the paragraph its base level, so a forced right-to-left paragraph of Latin letters starts at the right, mirrors its list gutter and indent and orders its runs right to left, and a forced left-to-right paragraph of Hebrew the other way ("By default, Figma automatically handles text direction based on language detection. However, controls are available to override text direction per paragraph", "Go to Text > Text direction. Select Left to right or Right to left", Add right-to-left text). Not included: a direction in text styles (the article names none). Tests: `text_behaviour_tests::text_direction_is_forced_per_paragraph`, `fig::text_direction_tests` |
| Text: superscript and subscript | done | `sups` / `subs` use the font's own glyphs where it has the feature and every letter or digit of the run gets one; otherwise the standard glyphs are drawn shrunk and raised or lowered by the font's OS/2 superscript and subscript metrics (0.65 em at 0.35 em up or 0.14 em down without them), and a run mixing available and unavailable glyphs is synthesised whole, as Explore text properties says ("Figma draws a synthesized version by using the font's standard version of the character, shrinking it, and positioning it accordingly"; mixed glyphs "all update to the synthesized form for consistency"), #1828; tests `text::tests::superscript_native_or_synthesised_and_never_mixed`, `text_behaviour_tests::superscript_and_subscript_are_synthesised_without_glyphs_for_them`. Type settings ▸ Details ▸ Position (None, Superscript, Subscript) sets them on the selected layers (#2338); a range of characters can't be raised alone yet, as the features are the layer's |
@@ -211,6 +211,7 @@ This audit records candidates for subsequent fixes; their behaviour is unchanged
| Date | Change | Summary |
|---|---|---|
+| 2026-11-20 | patch | M4: Tab while editing a text layer typed a tab character, and Shift+Tab did too, so filling in a form built from instances took a double-click into every label. Tab now ends editing and edits the next text layer with all of its text selected, so typing replaces it; Shift+Tab goes to the previous one. The order is reading order: rows top to bottom, each left to right, and two layers share a row when they overlap vertically by at least half the shorter one's height. The candidates are the text layers of the same top-level frame or group, at any depth and inside instances (what is typed there is the instance's override), that are visible and unlocked along with every layer around them; a text on the page or in a section goes to the text layers beside it there. At the last text Tab does nothing, and Shift+Tab at the first, with no wrapping. In a list item Tab still nests the item, in a code block it still types two spaces, and in a board object or a widget's field it still types a tab. The view doesn't follow a text that is off screen: nothing in the app scrolls a layer into view yet. Tests: `text_tab_tests`, `text_enter_tests::tab_edits_the_label_in_the_next_row_of_a_form` |
| 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 8056e20dcf6840650e5ec2899b820410e2445c19 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Sun, 22 Nov 2026 16:50:07 -0500
Subject: [PATCH 26/59] M3: a variant switch keeps typed text the other variant
nests in other frames
Switching an instance to another variant matched its old layers to the
new variant's by source and then by name path. When the two variants nest
the same text layer differently (text > Label in one, div > text > Label
in the other), the path differs, the typed layer matched nothing, and the
new variant's own text came back.
A text layer of the new variant that nothing else matched now takes the
old text layer of the same name, when exactly one layer on each side has
that name. Two of one name stay unmatched, since either could be the one
typed into. Layers inside nested instances are left to their own mains'
rebuild, so a text layer never moves between instances.
Matching every layer kind by name alone was left out: a fill or size kept
from another place in the tree would land on a layer that only shares a
name, while text is what was typed and the layer most likely to be the
same one.
---
crates/engine/src/assets/components/sync.rs | 48 ++++++++++++++++++++
crates/engine/src/assets/components/tests.rs | 35 ++++++++++++++
docs/components-parity.md | 5 +-
docs/mcp.md | 3 +-
4 files changed, 88 insertions(+), 3 deletions(-)
diff --git a/crates/engine/src/assets/components/sync.rs b/crates/engine/src/assets/components/sync.rs
index b8c9bdf8d..d0e7a6eac 100644
--- a/crates/engine/src/assets/components/sync.rs
+++ b/crates/engine/src/assets/components/sync.rs
@@ -115,9 +115,57 @@ fn match_layers(
}
m.map.insert(*s, nid);
}
+ match_text_by_name(doc, inst, component, old, &mut m);
m
}
+/// Main text layers nothing matched take the unmatched old text layer of the same name, when
+/// exactly one of each has it: text typed into an instance stays when it switches to a variant that
+/// nests the same text layer in other frames (its name path differs). Only layers outside nested
+/// instances, which rebuild from their own mains.
+fn match_text_by_name(doc: &Document, inst: NodeId, component: NodeId, old: &BTreeMap>, m: &mut Matched) {
+ fn unique(pairs: impl Iterator- ) -> BTreeMap
{
+ let mut seen: BTreeMap> = BTreeMap::new();
+ for (k, id) in pairs {
+ seen.entry(k).and_modify(|e| *e = None).or_insert(Some(id));
+ }
+ seen.into_iter().filter_map(|(k, id)| Some((k, id?))).collect()
+ }
+ let text = |n: &Node| matches!(n.kind, NodeKind::Text(_));
+ let mains = unique(
+ m.fresh.iter().filter_map(|s| doc.node(*s)).filter(|s| text(s) && outside_nested(doc, s.id, component)).map(|s| (s.name.clone(), s.id)),
+ );
+ if mains.is_empty() {
+ return;
+ }
+ let olds = unique(
+ old.iter()
+ .filter(|(id, o)| text(o) && !m.used.contains(id) && outside_nested(doc, **id, inst))
+ .map(|(id, o)| (o.source.and_then(|s| doc.node(s)).map_or(&o.name, |s| &s.name).clone(), *id)),
+ );
+ for (name, s) in mains {
+ if let Some(o) = olds.get(&name) {
+ m.used.insert(*o);
+ m.map.insert(s, *o);
+ m.fresh.retain(|f| *f != s);
+ }
+ }
+}
+
+/// Whether layer `id` is below `root` with no instance between them.
+fn outside_nested(doc: &Document, id: NodeId, root: NodeId) -> bool {
+ let mut cur = doc.node(id).and_then(|n| n.parent);
+ for _ in 0..=1_000_000 {
+ match cur.and_then(|c| doc.node(c)) {
+ Some(n) if n.id == root => return true,
+ Some(n) if matches!(n.kind, NodeKind::Instance { .. }) => return false,
+ Some(n) => cur = n.parent,
+ None => return false,
+ }
+ }
+ false
+}
+
/// A rebuild's copies of the main's layers, pre-order (parents first).
struct Copies {
nodes: Vec,
diff --git a/crates/engine/src/assets/components/tests.rs b/crates/engine/src/assets/components/tests.rs
index fc7d21e86..6bc8e83c5 100644
--- a/crates/engine/src/assets/components/tests.rs
+++ b/crates/engine/src/assets/components/tests.rs
@@ -282,6 +282,41 @@ fn variant_switch_keeps_compatible_overrides() {
healthy(&s);
}
+#[test]
+fn typed_text_stays_across_variants_that_nest_it_differently() {
+ let mut s = Session::new();
+ // Each variant's Label layers, by the frames holding them.
+ let shapes: [(&str, &[&[&str]]); 3] = [("Kind=Plain", &[&["text"]]), ("Kind=Boxed", &[&["div", "text"]]), ("Kind=Twice", &[&["a"], &["b"]])];
+ let mut labels = Vec::new();
+ let mut variants = Vec::new();
+ for (k, (name, paths)) in shapes.into_iter().enumerate() {
+ let v = idv(&ex(&mut s, "frame.create", json!({"x": k as f64 * 300.0, "y": 0, "width": 200, "height": 60, "name": name})));
+ for frames in paths {
+ let mut parent = v;
+ for f in *frames {
+ parent = idv(&ex(&mut s, "frame.create", json!({"x": 0, "y": 0, "width": 200, "height": 60, "parent": parent, "name": f})));
+ }
+ labels.push(idv(&ex(&mut s, "text.create", json!({"text": "I agree", "x": 0, "y": 0, "parent": parent, "props": {"name": "Label"}}))));
+ }
+ variants.push(idv(&ex(&mut s, "component.create", json!({"ids": [v]}))));
+ }
+ ex(&mut s, "component.combineVariants", json!({"ids": variants.clone()}));
+ let i = idv(&ex(&mut s, "instance.create", json!({"component": variants[0], "x": 0, "y": 300})));
+ let typed = copy_of(&s, i, labels[0]);
+ ex(&mut s, "text.set", json!({"id": typed, "characters": "Architect"}));
+
+ ex(&mut s, "instance.setProperties", json!({"ids": [i], "properties": {"Kind": "Boxed"}}));
+ healthy(&s);
+ assert_eq!(chars(&s, copy_of(&s, i, labels[1])), "Architect", "one frame deeper, same name");
+ ex(&mut s, "instance.setProperties", json!({"ids": [i], "properties": {"Kind": "Plain"}}));
+ assert_eq!(chars(&s, copy_of(&s, i, labels[0])), "Architect", "and back");
+
+ ex(&mut s, "instance.setProperties", json!({"ids": [i], "properties": {"Kind": "Twice"}}));
+ healthy(&s);
+ let texts: Vec = labels[2..].iter().map(|l| chars(&s, copy_of(&s, i, *l))).collect();
+ assert_eq!(texts, ["I agree", "I agree"], "two layers of that name: neither is the one typed into");
+}
+
#[test]
fn detach_keeps_the_look() {
let mut s = Session::new();
diff --git a/docs/components-parity.md b/docs/components-parity.md
index fa4d2494e..bd50c9e62 100644
--- a/docs/components-parity.md
+++ b/docs/components-parity.md
@@ -1,6 +1,6 @@
# Components, variants, styles and variables parity
-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (a style of one library that reaches a file through another library's component is, in a file linking both, the first library's own bound copy, so its modes colour it (#2414); with a variant selected, its property dropdowns show its own values and choosing one renames only that variant, instead of setting the set's default and moving the variants (#2349); library analytics count insertions and detachments of styles and variables; combining components gives every variant the properties any of them had; renaming a variable group to a path with `/` nests it under a parent group instead of turning the slash into a hyphen (#2353); a group's context menu in the Local variables window has Duplicate group, a copy named after it plus " 2" holding a copy of every variable, in one undo step (#2084); pages take a variable mode: with nothing selected the Design panel's Page section shows a Variable modes section, Auto or a mode of each collection that has more than one, as the help center says ("Apply variable mode" in the Page section of the right sidebar) (#2215); a text style binds a number variable to its weight (#2174); an instance lists only the properties its variant's layers use and long property names are cut to one line (#2022); with several layers selected the Design panel header's component button offers Create multiple components (#2088); the Local variables window selects several variables (click, Shift+click for a range, Cmd/Ctrl+click to toggle, Escape to clear) and delete, move to a group and scope act on the selected local variables in one undo step (#2002); text styles carry paragraph spacing and indent, the list style and the OpenType features, as the Supported in text styles table of Create and apply text styles says (#1829); a layer's effect binding takes only a field its effect has; Go to main component on an instance of a library component opens the library file in a tab and selects the main there; glass effects take variables; Delete on a layer inside an instance hides it as an override instead of being refused, as the help center says: "Figma will only toggle the layer's visibility instead of removing it"; library analytics list how many layers and files use each style and variable; SwiftUI and Compose code names a bound variable by its iOS or Android code syntax; library analytics count insertions and show insertions and detachments over the past 30 days, 90 days or year; a collection of this file can be extended (Extend collection on its row, `variable.extendCollection`), its extension following its edits at once, and extended collections extend again in the file; a typed or stored variable, collection or mode id names only the object with that id (#1613); colour variables can be calculated from other colours per mode — `{alpha}` replaces a colour's alpha, `{mix}` blends two — and follow them (#1280); stored variable and collection references keep their identity when another object is named like their id (follow-up to #1542); a component set's property rows fit the 240 px right panel: variant values wrap two to a line there and every + and − stays in view; opening a file contacts no team library server it names until you check it (#1097); an explicit variables file path (`variable.import`, the `variables` of `file.open` and `file.import`) is refused past 256 MiB or when it isn't a regular file, as the sibling `variables.json` already was (part of #1114); component properties keep the order they were made in when one is renamed, and Make slot asks for the slot's name first (#1536, #1537); components can't contain their own instances, directly or through others (#1084); the instance-swap menus have a search field (#1338); an instance-swap property's default menu scrolls (#1338); variables on a text style's fields from the style editor; instance-swap properties in the component playground; duplicating or Alt-dragging a main component makes an instance of it (#892); a bound colour variable's alpha applies once (#802); variables import reads `variables` outside `meta` and warns when it imports none (#790); variant properties reorder by drag; library files saved right after a read are read again; Hide when publishing note corrected; size and resizing overrides of layers inside instances (#731); variables export in the browser as a download; core editor leftovers: component playground, variables inside styles; layers and assets panels behaviour suite and fixes; extended collections tail; styles and variables behaviour suite and fixes; components behaviour suite and fixes; team libraries on the server, library usage and swapping a library; extended collections, variables import/export, gradient stops and variant properties bound to variables) · **Target:** Figma Design (desktop app 126.10.7)
+> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-22 · **Change:** minor (switching variants keeps the text typed into an instance when the other variant nests that text layer in other frames, matched by its name; a style of one library that reaches a file through another library's component is, in a file linking both, the first library's own bound copy, so its modes colour it (#2414); with a variant selected, its property dropdowns show its own values and choosing one renames only that variant, instead of setting the set's default and moving the variants (#2349); library analytics count insertions and detachments of styles and variables; combining components gives every variant the properties any of them had; renaming a variable group to a path with `/` nests it under a parent group instead of turning the slash into a hyphen (#2353); a group's context menu in the Local variables window has Duplicate group, a copy named after it plus " 2" holding a copy of every variable, in one undo step (#2084); pages take a variable mode: with nothing selected the Design panel's Page section shows a Variable modes section, Auto or a mode of each collection that has more than one, as the help center says ("Apply variable mode" in the Page section of the right sidebar) (#2215); a text style binds a number variable to its weight (#2174); an instance lists only the properties its variant's layers use and long property names are cut to one line (#2022); with several layers selected the Design panel header's component button offers Create multiple components (#2088); the Local variables window selects several variables (click, Shift+click for a range, Cmd/Ctrl+click to toggle, Escape to clear) and delete, move to a group and scope act on the selected local variables in one undo step (#2002); text styles carry paragraph spacing and indent, the list style and the OpenType features, as the Supported in text styles table of Create and apply text styles says (#1829); a layer's effect binding takes only a field its effect has; Go to main component on an instance of a library component opens the library file in a tab and selects the main there; glass effects take variables; Delete on a layer inside an instance hides it as an override instead of being refused, as the help center says: "Figma will only toggle the layer's visibility instead of removing it"; library analytics list how many layers and files use each style and variable; SwiftUI and Compose code names a bound variable by its iOS or Android code syntax; library analytics count insertions and show insertions and detachments over the past 30 days, 90 days or year; a collection of this file can be extended (Extend collection on its row, `variable.extendCollection`), its extension following its edits at once, and extended collections extend again in the file; a typed or stored variable, collection or mode id names only the object with that id (#1613); colour variables can be calculated from other colours per mode — `{alpha}` replaces a colour's alpha, `{mix}` blends two — and follow them (#1280); stored variable and collection references keep their identity when another object is named like their id (follow-up to #1542); a component set's property rows fit the 240 px right panel: variant values wrap two to a line there and every + and − stays in view; opening a file contacts no team library server it names until you check it (#1097); an explicit variables file path (`variable.import`, the `variables` of `file.open` and `file.import`) is refused past 256 MiB or when it isn't a regular file, as the sibling `variables.json` already was (part of #1114); component properties keep the order they were made in when one is renamed, and Make slot asks for the slot's name first (#1536, #1537); components can't contain their own instances, directly or through others (#1084); the instance-swap menus have a search field (#1338); an instance-swap property's default menu scrolls (#1338); variables on a text style's fields from the style editor; instance-swap properties in the component playground; duplicating or Alt-dragging a main component makes an instance of it (#892); a bound colour variable's alpha applies once (#802); variables import reads `variables` outside `meta` and warns when it imports none (#790); variant properties reorder by drag; library files saved right after a read are read again; Hide when publishing note corrected; size and resizing overrides of layers inside instances (#731); variables export in the browser as a download; core editor leftovers: component playground, variables inside styles; layers and assets panels behaviour suite and fixes; extended collections tail; styles and variables behaviour suite and fixes; components behaviour suite and fixes; team libraries on the server, library usage and swapping a library; extended collections, variables import/export, gradient stops and variant properties bound to variables) · **Target:** Figma Design (desktop app 126.10.7)
Design systems are why teams adopt Figma. **Components: breadth ~96%, ready ~72%. Styles and
variables: breadth ~95%, ready ~76% (estimated).** QA'd with a synthetic design system of ~300
@@ -20,7 +20,7 @@ accounts).
| Component sets / variants, add variant, switch | done | Combine as variants is in the Object menu, and the canvas and layers context menu and the Design panel offer it when two or more main components are selected; Add variant on a main component not in a set yet makes it a set of itself and the new variant, one undo step (#903); components that are variants already aren't combined again (it used to put a set inside a set); combining gives every variant the component properties any of them had, so another variant's layers can be bound to one made before combining |
| A main's copy within its file is an instance of it: Duplicate, Alt-drag, Copy then Paste | done | a variant duplicated in its set stays a new variant and a whole set copies as a new set; only the copied roots become instances (a main inside a copied frame is copied as a main); Cut then Paste and pastes into other files keep the component (#892) |
| A component can't contain its own instance, directly or through other components | done | refused with the loop named (creating, placing, swapping, switching variants, moving, pasting, an instance-swap value); each variant counts as its own component, so a variant may hold a sibling variant's instance unless that one leads back to it; a dropped instance lands on the page; a file holding a loop opens with one instance detached and a note, any other file unchanged; a loop merged in a live session stops expanding where an instance would show itself again (#1084) |
-| Switching variants keeps overrides where names match and both variants had the same value; text layers keep theirs | done | |
+| Switching variants keeps overrides where names match and both variants had the same value; text layers keep theirs | done | a text layer the other variant nests in other frames is matched by its name when one layer on each side has it |
| Default variant: the top-left one (new instances, Assets thumbnail, generated code) | done | |
| Variant property order (names rewritten), duplicate combinations reported | done | drag a property in the Properties section to reorder it, one undo step (#679), or `component.editProperty {index}`; a variant value too long for its field ends with an ellipsis and shows whole on hover (#2368) |
| Properties: boolean, text, instance swap (preferred values), variant | done | listed in the order they were made, a rename keeping the place (#1536; the shared ones don't reorder by drag yet); every component menu scrolls past 320 pt, the default of an instance-swap property's too (#1338); the instance-swap menus (an instance's property and swap menus, a property's default, the playground) open with a search field that filters by name as you type, with Up, Down and Enter to pick and Escape to clear then close; the slot and preferred components menus have no search yet; an instance lists the properties its variant's layers use, so a set with one text property per variant shows one text field per instance (#2022; measured in Figma's web app, 2026-11-11); long names are cut to one line, the full name on hover |
@@ -80,6 +80,7 @@ updates with overrides kept: `library_tests.rs`, `components_scale_tests.rs`.
| Date | Change | Summary |
|---|---|---|
+| 2026-11-22 | patch | M3: switching an instance to another variant put back the variant's own text in place of the text typed into it when the two variants nest that text layer in different frames (`text › Label` in one, `div › text › Label` in the other), because the typed layer was matched to the new variant's by name path only. Now a text layer of the new variant nothing else matched takes the old text layer of the same name, when exactly one layer on each side has that name; layers inside nested instances still go by their own mains. Two layers of one name stay unmatched, since either could be the one typed into. Test: `typed_text_stays_across_variants_that_nest_it_differently`. Grade unchanged. |
| 2026-11-19 | patch | M3, #2414: a kit's style used by a component of a second library reached a file linking both as a second, unbound copy (`::S:1`) frozen in the kit's default mode, so a mode set on the kit's collection didn't colour it (from two hops on, every such style). Publishing now keeps the variables the published styles bind and where the file's copies of other libraries' styles, variables and collections came from; importing files such a copy under that library when the file links it, so it is the file's own bound copy. Test: `library_style_hops_tests::a_kit_style_through_another_library_is_the_kits_bound_copy`; the issue's four-file chain renders Brand and Alt everywhere. Grade unchanged. |
| 2026-11-19 | patch | M3, #2349: with one variant of a set selected, the Design panel's variant property dropdowns showed the set's default values, and choosing a value set the default, so the variants swapped places. They now show the selected variant's own values (hover: "This variant's value"), and choosing one renames that variant only; with the set selected they still set its default. Test: `variant_own_value_tests::a_selected_variants_dropdown_shows_and_sets_its_own_value`. Grade unchanged. |
| 2026-11-18 | minor | M3, gap 10: library analytics count insertions and detachments of styles and variables. Applying one, or copying or duplicating content that uses it, inserts it; the Detach button detaches it; an instance counts as its component alone. Show usage and `library.usage` give them per style and variable over the chosen period. Modes aren't counted. Numbers unchanged. Tests: `library_asset_counts_tests`, `library_assets_tests`. |
diff --git a/docs/mcp.md b/docs/mcp.md
index c1f3992a9..e0e264665 100644
--- a/docs/mcp.md
+++ b/docs/mcp.md
@@ -1109,7 +1109,8 @@ most when it can't be reached).
the instance itself (its layers follow the main's constraints) or edit the main.
- **Variants**: `instance.setProperties {ids?, properties}` switching variants keeps an override
where the layer's name path matches and both variants had the same value for that property;
- text layers keep all theirs. The default variant (`instance.create` with a set, the Assets
+ text layers keep all theirs, and a text layer the other variant nests elsewhere is matched by
+ its name when one layer on each side has it. The default variant (`instance.create` with a set, the Assets
thumbnail) is the one in the set's top-left corner; `component.editProperty {name, default}`
moves the chosen variant there, `{name, index}` reorders variant properties (the variants'
names follow). `component.properties` on a set reports `conflicts`: variants sharing one
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 27/59] 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 80c68ee7a914c53db7d99279a734cf27cbf2c673 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Fri, 20 Nov 2026 18:45:18 -0500
Subject: [PATCH 28/59] M1: Paste over selection with several layers selected
pastes after the last of them
With several layers selected, Shift+Cmd/Ctrl+V took the first one selected,
so the copies landed among the others. It now pastes after the last selected
layer as seen: the last in one auto layout frame's flow, else below the lowest
at the selection's own gap, or right of the rightmost for a row. One selected
layer is unchanged.
---
crates/engine/src/cmd/edit/clipboard.rs | 42 +++++++++++--
crates/engine/src/lib.rs | 2 +
crates/engine/src/paste_over_tests.rs | 80 +++++++++++++++++++++++++
docs/ui-parity.md | 3 +-
4 files changed, 122 insertions(+), 5 deletions(-)
create mode 100644 crates/engine/src/paste_over_tests.rs
diff --git a/crates/engine/src/cmd/edit/clipboard.rs b/crates/engine/src/cmd/edit/clipboard.rs
index 98d3eff25..9e51d629d 100644
--- a/crates/engine/src/cmd/edit/clipboard.rs
+++ b/crates/engine/src/cmd/edit/clipboard.rs
@@ -394,14 +394,16 @@ fn copied_variants_set(doc: &Document, copied: &[(NodeId, Vec)]) -> Option
sets.all(|set| set == Some(first)).then_some(first)
}
+/// Paste over selection (Shift+Cmd/Ctrl+V): the copies go into the parent of the selected layer
+/// [`last_seen`] picks, just above it, at the place it gives.
pub(super) fn paste_over(s: &mut Session, _p: &Value) -> Result {
let sel = s.selection();
let page = s.page()?;
let doc = s.doc()?;
- let (parent, at, above) = match sel.first() {
- Some(i) => {
- let parent = doc.node(*i).and_then(|n| n.parent).unwrap_or(page);
- (parent, doc.world_bounds(*i).map(|b| (b.x0, b.y0)), doc.index_in_parent(*i).map(|ix| ix + 1))
+ let (parent, at, above) = match last_seen(doc, &sel) {
+ Some((i, at)) => {
+ let parent = doc.node(i).and_then(|n| n.parent).unwrap_or(page);
+ (parent, at, doc.index_in_parent(i).map(|ix| ix + 1))
}
None => (page, None, None),
};
@@ -411,6 +413,38 @@ pub(super) fn paste_over(s: &mut Session, _p: &Value) -> Result {
Ok(json!({"ids": ids}))
}
+/// The selected layer Paste over selection pastes after, and where the copies' top-left goes.
+///
+/// One layer: that layer, at its position. Several in one auto layout frame: the last of them in the
+/// flow, which the layout follows. Several elsewhere: the lowest (then rightmost), with the copies
+/// below it, as far below as it is from the selected layers above it. A selection with nothing above
+/// its lowest layer is a row: the copies go right of the rightmost, as far as it is from its
+/// neighbour on the left. Layers that overlap every way get the copies right under the lowest.
+fn last_seen(doc: &Document, sel: &[NodeId]) -> Option<(NodeId, Option<(f64, f64)>)> {
+ let first = *sel.first()?;
+ let top_left = |i: NodeId| doc.world_bounds(i).map(|b| (b.x0, b.y0));
+ if sel.len() == 1 {
+ return Some((first, top_left(first)));
+ }
+ let parent = doc.node(first).and_then(|n| n.parent);
+ let one_flow =
+ parent.and_then(|p| doc.node(p)).is_some_and(|p| p.layout.is_some()) && sel.iter().all(|i| doc.node(*i).is_some_and(|n| n.parent == parent));
+ if one_flow {
+ let last = sel.iter().copied().max_by_key(|i| doc.index_in_parent(*i))?;
+ return Some((last, top_left(last)));
+ }
+ let boxes: Vec<(NodeId, figcraft_geom::Rect)> = sel.iter().filter_map(|i| Some((*i, doc.world_bounds(*i)?))).collect();
+ let (lowest, low) = *boxes.iter().max_by(|(_, a), (_, b)| a.y1.total_cmp(&b.y1).then(a.x1.total_cmp(&b.x1)))?;
+ if let Some(above) = boxes.iter().filter(|(_, o)| o.y1 <= low.y0).map(|(_, o)| o.y1).max_by(f64::total_cmp) {
+ return Some((lowest, Some((low.x0, low.y1 + (low.y0 - above)))));
+ }
+ let (rightmost, right) = *boxes.iter().max_by(|(_, a), (_, b)| a.x1.total_cmp(&b.x1).then(a.y1.total_cmp(&b.y1)))?;
+ match boxes.iter().filter(|(_, o)| o.x1 <= right.x0).map(|(_, o)| o.x1).max_by(f64::total_cmp) {
+ Some(left) => Some((rightmost, Some((right.x1 + (right.x0 - left), right.y0)))),
+ None => Some((lowest, Some((low.x0, low.y1)))),
+ }
+}
+
pub(super) fn paste_replace(s: &mut Session, p: &Value) -> Result {
let targets = req_targets("edit.pasteReplace", s, p)?;
let mut out = Vec::new();
diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs
index ad6bb085e..8814d5be3 100644
--- a/crates/engine/src/lib.rs
+++ b/crates/engine/src/lib.rs
@@ -483,6 +483,8 @@ mod panels_behaviour_tests;
#[cfg(test)]
mod paste_missing_image_tests;
#[cfg(test)]
+mod paste_over_tests;
+#[cfg(test)]
mod paste_sibling_tests;
#[cfg(test)]
mod path_read_caps_tests;
diff --git a/crates/engine/src/paste_over_tests.rs b/crates/engine/src/paste_over_tests.rs
new file mode 100644
index 000000000..3aaf7fbd7
--- /dev/null
+++ b/crates/engine/src/paste_over_tests.rs
@@ -0,0 +1,80 @@
+//! Shift+Cmd/Ctrl+V with several layers selected pastes after the last of them as seen.
+
+use serde_json::{Value, json};
+
+use crate::Session;
+use crate::params::id_of;
+use figcraft_doc::NodeId;
+
+fn id(v: &Value) -> NodeId {
+ id_of(&v["id"]).unwrap()
+}
+
+fn frame(s: &mut Session, x: f64, y: f64) -> NodeId {
+ id(&s.execute("frame.create", &json!({"x": x, "y": y, "width": 200, "height": 100})).unwrap())
+}
+
+fn kids(s: &Session, parent: NodeId) -> Vec {
+ s.doc().unwrap().node(parent).unwrap().children.clone()
+}
+
+fn paste_over(s: &mut Session, sel: Vec) -> Vec {
+ s.set_selection(sel);
+ s.execute("edit.pasteOver", &json!({})).unwrap()["ids"].as_array().unwrap().iter().filter_map(id_of).collect()
+}
+
+fn top_left(s: &Session, n: NodeId) -> (f64, f64) {
+ let b = s.doc().unwrap().world_bounds(n).unwrap();
+ (b.x0, b.y0)
+}
+
+#[test]
+fn several_rows_of_an_auto_layout_selected_get_the_copy_after_the_last_row() {
+ let mut s = Session::new();
+ let rows: Vec =
+ (0..4).map(|k| id(&s.execute("shape.rectangle", &json!({"x": 0, "y": k * 30, "width": 40, "height": 20})).unwrap())).collect();
+ let r = s.execute("layout.add", &json!({"ids": rows, "direction": "vertical"})).unwrap();
+ let list = id_of(&r["ids"][0]).unwrap();
+ assert_eq!(kids(&s, list), rows);
+ s.execute("edit.copy", &json!({"ids": [rows[0]]})).unwrap();
+ // Clicked from the middle down and back: the click order isn't the order on screen.
+ let pasted = paste_over(&mut s, vec![rows[1], rows[3], rows[2]]);
+ assert_eq!(pasted.len(), 1);
+ assert_eq!(kids(&s, list), vec![rows[0], rows[1], rows[2], rows[3], pasted[0]], "after the last selected row");
+ assert_eq!(s.selection(), pasted);
+}
+
+#[test]
+fn several_artboards_in_a_column_get_the_copy_below_the_lowest_with_their_gap() {
+ let mut s = Session::new();
+ let (a, b, c) = (frame(&mut s, 0.0, 0.0), frame(&mut s, 0.0, 140.0), frame(&mut s, 0.0, 280.0));
+ let source = frame(&mut s, 1000.0, 0.0);
+ s.execute("edit.copy", &json!({"ids": [source]})).unwrap();
+ let pasted = paste_over(&mut s, vec![a, c, b]);
+ assert_eq!(pasted.len(), 1);
+ assert_eq!(top_left(&s, pasted[0]), (0.0, 420.0), "below the lowest artboard, 40 below it like the others");
+ let page = s.doc().unwrap().node(c).unwrap().parent.unwrap();
+ let order = kids(&s, page);
+ let at = |n: NodeId| order.iter().position(|i| *i == n).unwrap();
+ assert_eq!(at(pasted[0]), at(c) + 1, "just above the lowest artboard");
+}
+
+#[test]
+fn several_artboards_in_a_row_get_the_copy_right_of_the_rightmost_with_their_gap() {
+ let mut s = Session::new();
+ let (a, b, c) = (frame(&mut s, 0.0, 0.0), frame(&mut s, 260.0, 0.0), frame(&mut s, 520.0, 0.0));
+ let source = frame(&mut s, 0.0, 1000.0);
+ s.execute("edit.copy", &json!({"ids": [source]})).unwrap();
+ let pasted = paste_over(&mut s, vec![b, a, c]);
+ assert_eq!(top_left(&s, pasted[0]), (780.0, 0.0), "right of the rightmost, 60 from it like the others");
+}
+
+#[test]
+fn several_overlapping_layers_get_the_copy_right_under_the_lowest() {
+ let mut s = Session::new();
+ let (a, b) = (frame(&mut s, 0.0, 0.0), frame(&mut s, 50.0, 30.0));
+ let source = frame(&mut s, 1000.0, 0.0);
+ s.execute("edit.copy", &json!({"ids": [source]})).unwrap();
+ let pasted = paste_over(&mut s, vec![b, a]);
+ assert_eq!(top_left(&s, pasted[0]), (50.0, 130.0));
+}
diff --git a/docs/ui-parity.md b/docs/ui-parity.md
index d756e71b0..228f1443c 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-20 · **Change:** minor (Shift+Cmd/Ctrl+V with several layers selected pastes after the last of them as seen: next in an auto layout frame's flow, else below the lowest or right of the rightmost, at the selection's own gap; 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-20 | patch | M1: Shift+Cmd/Ctrl+V (Paste over selection) with several layers selected took the first one selected, so the copies landed among the others, after whichever was clicked first. It now pastes after the last selected layer as seen: in one auto layout frame, the last of them in the flow, the copies coming next; elsewhere below the lowest, as far below it as it is from the selected layers above it, or, for a row with nothing above its lowest layer, right of the rightmost at the row's gap, in that layer's parent just above it. One selected layer is unchanged. Tests: `paste_over_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 fd45d4f05b3e7d95e7b52f0a8c8e386aaf6e9079 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Mon, 23 Nov 2026 22:59:12 -0500
Subject: [PATCH 29/59] M3: a main pasted from its library file into another
file is an instance of it
Copying a main component in a library file and pasting it into another
file made a copy of the main there: a new component of that file, not
linked to the library. Copy then Paste of a main in its own file already
makes an instance, and pasting an instance from the library file already
uses the main from the library. Now a main the source file publishes is
an instance of it from that library too, which gets enabled the same way,
as Figma does with a published component. A variant is an instance of that
variant.
A main the library doesn't offer (hidden from publishing, added since the
last publish) and a main from a file that publishes no library still paste
as a copy. Making those an instance as well was rejected: their main would
stay in the other file, so the instance would show a missing main.
The part of adopt_pasted that brings published components in is now
from_published, shared with the new published_main.
---
crates/engine/src/assets/library.rs | 56 +++++++++++++--------
crates/engine/src/assets/library/tests.rs | 59 +++++++++++++++++++++++
crates/engine/src/cmd/edit/clipboard.rs | 21 +++++---
docs/components-parity.md | 5 +-
docs/mcp.md | 2 +
docs/target-app-parity.md | 3 +-
6 files changed, 116 insertions(+), 30 deletions(-)
diff --git a/crates/engine/src/assets/library.rs b/crates/engine/src/assets/library.rs
index c5b3c1ba0..99f4b07dd 100644
--- a/crates/engine/src/assets/library.rs
+++ b/crates/engine/src/assets/library.rs
@@ -1417,25 +1417,7 @@ pub fn adopt_pasted(doc: &mut Document, src: &Document, src_path: Option<&str>,
remote.extend(merge_components(doc, src, &BTreeMap::new(), Some(&foreign))?);
}
// Components `src` publishes: from its library.
- if let Some(lib) = src.published.as_ref().filter(|l| own.as_deref() != Some(l.manifest.id.as_str())) {
- let keys: Vec =
- roots.iter().copied().filter(|r| !src.is_remote(*r) && lib.manifest.component(*r).is_some() && lib.doc.contains(*r)).collect();
- if !keys.is_empty() {
- remote.extend(import(doc, lib, &keys, false)?);
- let m = &lib.manifest;
- if doc.libraries.link(&m.id).is_none()
- && let Some(path) = src_path
- {
- doc.libraries_mut().enabled.push(LibraryLink {
- id: m.id.clone(),
- name: m.name.clone(),
- path: path.to_string(),
- version: m.version,
- relative: String::new(),
- });
- }
- }
- }
+ remote.extend(from_published(doc, src, src_path, &roots)?);
// Point the pasted layers at those mains; what stays behind gets ids of its own.
let mut behind: BTreeMap = BTreeMap::new();
let mut follow = |doc: &mut Document, id: NodeId| -> NodeId {
@@ -1474,6 +1456,42 @@ pub fn adopt_pasted(doc: &mut Document, src: &Document, src_path: Option<&str>,
Ok(())
}
+/// `doc`'s copies of the components among `roots` (assets of `src`) that `src` publishes as a
+/// library (`src`'s ids → `doc`'s), taken from that library, which gets enabled in `doc` when `src`
+/// is saved at `src_path`. Empty when `src` publishes no library, or publishes `doc`'s own.
+fn from_published(doc: &mut Document, src: &Document, src_path: Option<&str>, roots: &[NodeId]) -> Result> {
+ let own = doc.published.as_ref().map(|p| p.manifest.id.as_str());
+ let Some(lib) = src.published.as_ref().filter(|l| own != Some(l.manifest.id.as_str())) else { return Ok(BTreeMap::new()) };
+ let keys: Vec =
+ roots.iter().copied().filter(|r| !src.is_remote(*r) && lib.manifest.component(*r).is_some() && lib.doc.contains(*r)).collect();
+ if keys.is_empty() {
+ return Ok(BTreeMap::new());
+ }
+ let remote = import(doc, lib, &keys, false)?;
+ let m = &lib.manifest;
+ if doc.libraries.link(&m.id).is_none()
+ && let Some(path) = src_path
+ {
+ doc.libraries_mut().enabled.push(LibraryLink {
+ id: m.id.clone(),
+ name: m.name.clone(),
+ path: path.to_string(),
+ version: m.version,
+ relative: String::new(),
+ });
+ }
+ Ok(remote)
+}
+
+/// The main in `doc` that pasting main component `main`, copied from another document `src`,
+/// makes an instance of: `doc`'s copy of it from the library `src` publishes, as
+/// [`adopt_pasted`] uses for instances. `None` when `src` doesn't publish it, so the paste copies
+/// the main itself.
+pub fn published_main(doc: &mut Document, src: &Document, src_path: Option<&str>, main: NodeId) -> Result> {
+ let Some(root) = asset_root(src, main) else { return Ok(None) };
+ Ok(from_published(doc, src, src_path, &[root])?.get(&main).copied())
+}
+
/// Refuse edits of library copies, except by library commands (and imports of other files,
/// which bring their copies along).
pub fn check_read_only(cmd: &str, before: &Document, after: &Document) -> std::result::Result<(), String> {
diff --git a/crates/engine/src/assets/library/tests.rs b/crates/engine/src/assets/library/tests.rs
index 4c329cb5f..ca4233381 100644
--- a/crates/engine/src/assets/library/tests.rs
+++ b/crates/engine/src/assets/library/tests.rs
@@ -695,3 +695,62 @@ fn library_links_follow_a_moved_folder() {
link_found(&mut s, &lid);
let _ = std::fs::remove_dir_all(&d);
}
+
+/// A main component copied from a library file and pasted into another file is an instance of it
+/// from that library, which gets enabled, as pasting an instance of it is; a variant is an instance
+/// of that variant. A component the library doesn't offer pastes as a copy of itself.
+#[test]
+fn a_main_pasted_from_its_library_file_is_an_instance_of_it() {
+ let d = dir("paste-main");
+ let lib_path = path_str(&d.join("kit.figcraft"));
+ let mut s = Session::new();
+ let k = kit(&mut s);
+ let sizes: Vec = ["Size=S", "Size=L"]
+ .iter()
+ .enumerate()
+ .map(|(n, name)| {
+ idv(&ex(
+ &mut s,
+ "node.create",
+ json!({"type": "component", "name": name, "x": 600.0 + n as f64 * 100.0, "y": 0, "width": 40, "height": 20}),
+ ))
+ })
+ .collect();
+ ex(&mut s, "component.combineVariants", json!({"ids": sizes.clone()}));
+ let spare = idv(&ex(&mut s, "frame.create", json!({"x": 300, "y": 300, "width": 10, "height": 10, "name": "_Spare"})));
+ let spare = idv(&ex(&mut s, "component.create", json!({"ids": [spare]})));
+ let lid = publish_to(&mut s, &lib_path);
+ let at = s.doc().unwrap().world_bounds(k.button).unwrap();
+ ex(&mut s, "file.new", json!({"name": "Design"}));
+ let paste = |s: &mut Session, main: NodeId| -> NodeId {
+ ex(s, "doc.switch", json!({"index": 0}));
+ ex(s, "edit.copy", json!({"ids": [main]}));
+ ex(s, "doc.switch", json!({"index": 1}));
+ id_of(&ex(s, "edit.paste", json!({}))["ids"][0]).unwrap()
+ };
+ let main_of = |s: &Session, id: NodeId| match node(s, id).kind {
+ NodeKind::Instance { component, .. } => component,
+ k => panic!("not an instance: {k:?}"),
+ };
+ let button = paste(&mut s, k.button);
+ let doc = s.doc().unwrap();
+ assert_eq!(library_source(doc, main_of(&s, button)), Some((lid.as_str(), k.button)));
+ assert_eq!(doc.libraries.enabled.iter().map(|l| l.path.as_str()).collect::>(), [lib_path.as_str()]);
+ assert_eq!(doc.world_bounds(button), Some(at), "where the main was");
+ let label = node(&s, button).children[0];
+ assert_eq!(chars(&s, label), "OK");
+ healthy(&s);
+ let copies = s.doc().unwrap().libraries.components.len();
+ let again = paste(&mut s, k.button);
+ assert_eq!(main_of(&s, again), main_of(&s, button), "the same library copy");
+ assert_eq!(s.doc().unwrap().libraries.components.len(), copies);
+ let large = paste(&mut s, sizes[1]);
+ assert_eq!(library_source(s.doc().unwrap(), main_of(&s, large)), Some((lid.as_str(), sizes[1])));
+ let card = paste(&mut s, k.card);
+ assert_eq!(library_source(s.doc().unwrap(), main_of(&s, card)), Some((lid.as_str(), k.card)));
+ let copy = paste(&mut s, spare);
+ assert!(matches!(node(&s, copy).kind, NodeKind::Component { .. }), "not offered by the library: a copy");
+ assert!(!s.doc().unwrap().is_remote(copy));
+ healthy(&s);
+ let _ = std::fs::remove_dir_all(d);
+}
diff --git a/crates/engine/src/cmd/edit/clipboard.rs b/crates/engine/src/cmd/edit/clipboard.rs
index 98d3eff25..b9e490797 100644
--- a/crates/engine/src/cmd/edit/clipboard.rs
+++ b/crates/engine/src/cmd/edit/clipboard.rs
@@ -219,7 +219,9 @@ pub(super) fn cut(s: &mut Session, p: &Value) -> Result {
delete(s, &json!({"ids": layers}))
}
-/// Paste the clipboard under `parent` with the copied top-left moved to `at` (page coords).
+/// Paste the clipboard under `parent` with the copied top-left moved to `at` (page coords). A
+/// copied main is pasted as an instance of it; in another file, as an instance of it from the
+/// library the source file publishes, and as a copy of it when that library doesn't offer it.
pub fn paste_into(s: &mut Session, parent: NodeId, at: Option<(f64, f64)>) -> Result> {
paste_layers(s, parent, at, false)
}
@@ -250,13 +252,16 @@ fn paste_layers(s: &mut Session, parent: NodeId, at: Option<(f64, f64)>, as_vari
let mut out = Vec::new();
let mut all = BTreeMap::new();
for (root, nodes) in &clip.nodes {
- if copy_local
- && !into_set
- && clip.copied_components.contains(root)
- && let Some(n) = nodes.first().filter(|n| matches!(n.kind, NodeKind::Component { .. }))
- && doc.node(*root).is_some_and(|n| matches!(n.kind, NodeKind::Component { .. }))
- {
- let instance = crate::components::create_instance(doc, *root, parent, 0.0, 0.0)?;
+ let copied_main = nodes.first().filter(|n| clip.copied_components.contains(root) && matches!(n.kind, NodeKind::Component { .. }));
+ let main = match (copied_main, foreign) {
+ (Some(_), _) if copy_local => {
+ (!into_set && doc.node(*root).is_some_and(|n| matches!(n.kind, NodeKind::Component { .. }))).then_some(*root)
+ }
+ (Some(_), Some(src)) => crate::library::published_main(doc, src, clip.source_path.as_deref(), *root)?,
+ _ => None,
+ };
+ if let (Some(main), Some(n)) = (main, copied_main) {
+ let instance = crate::components::create_instance(doc, main, parent, 0.0, 0.0)?;
doc.get_mut(instance)?.transform = doc.world_transform(parent).inverse() * shift * n.transform;
out.push(instance);
continue;
diff --git a/docs/components-parity.md b/docs/components-parity.md
index b5df94b71..6d51e275e 100644
--- a/docs/components-parity.md
+++ b/docs/components-parity.md
@@ -1,6 +1,6 @@
# Components, variants, styles and variables parity
-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (copied variants pasted with their own set, or a layer in it, selected join the set as new variants; a style of one library that reaches a file through another library's component is, in a file linking both, the first library's own bound copy, so its modes colour it (#2414); with a variant selected, its property dropdowns show its own values and choosing one renames only that variant, instead of setting the set's default and moving the variants (#2349); library analytics count insertions and detachments of styles and variables; combining components gives every variant the properties any of them had; renaming a variable group to a path with `/` nests it under a parent group instead of turning the slash into a hyphen (#2353); a group's context menu in the Local variables window has Duplicate group, a copy named after it plus " 2" holding a copy of every variable, in one undo step (#2084); pages take a variable mode: with nothing selected the Design panel's Page section shows a Variable modes section, Auto or a mode of each collection that has more than one, as the help center says ("Apply variable mode" in the Page section of the right sidebar) (#2215); a text style binds a number variable to its weight (#2174); an instance lists only the properties its variant's layers use and long property names are cut to one line (#2022); with several layers selected the Design panel header's component button offers Create multiple components (#2088); the Local variables window selects several variables (click, Shift+click for a range, Cmd/Ctrl+click to toggle, Escape to clear) and delete, move to a group and scope act on the selected local variables in one undo step (#2002); text styles carry paragraph spacing and indent, the list style and the OpenType features, as the Supported in text styles table of Create and apply text styles says (#1829); a layer's effect binding takes only a field its effect has; Go to main component on an instance of a library component opens the library file in a tab and selects the main there; glass effects take variables; Delete on a layer inside an instance hides it as an override instead of being refused, as the help center says: "Figma will only toggle the layer's visibility instead of removing it"; library analytics list how many layers and files use each style and variable; SwiftUI and Compose code names a bound variable by its iOS or Android code syntax; library analytics count insertions and show insertions and detachments over the past 30 days, 90 days or year; a collection of this file can be extended (Extend collection on its row, `variable.extendCollection`), its extension following its edits at once, and extended collections extend again in the file; a typed or stored variable, collection or mode id names only the object with that id (#1613); colour variables can be calculated from other colours per mode — `{alpha}` replaces a colour's alpha, `{mix}` blends two — and follow them (#1280); stored variable and collection references keep their identity when another object is named like their id (follow-up to #1542); a component set's property rows fit the 240 px right panel: variant values wrap two to a line there and every + and − stays in view; opening a file contacts no team library server it names until you check it (#1097); an explicit variables file path (`variable.import`, the `variables` of `file.open` and `file.import`) is refused past 256 MiB or when it isn't a regular file, as the sibling `variables.json` already was (part of #1114); component properties keep the order they were made in when one is renamed, and Make slot asks for the slot's name first (#1536, #1537); components can't contain their own instances, directly or through others (#1084); the instance-swap menus have a search field (#1338); an instance-swap property's default menu scrolls (#1338); variables on a text style's fields from the style editor; instance-swap properties in the component playground; duplicating or Alt-dragging a main component makes an instance of it (#892); a bound colour variable's alpha applies once (#802); variables import reads `variables` outside `meta` and warns when it imports none (#790); variant properties reorder by drag; library files saved right after a read are read again; Hide when publishing note corrected; size and resizing overrides of layers inside instances (#731); variables export in the browser as a download; core editor leftovers: component playground, variables inside styles; layers and assets panels behaviour suite and fixes; extended collections tail; styles and variables behaviour suite and fixes; components behaviour suite and fixes; team libraries on the server, library usage and swapping a library; extended collections, variables import/export, gradient stops and variant properties bound to variables) · **Target:** Figma Design (desktop app 126.10.7)
+> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-23 · **Change:** minor (a main component copied from a library file and pasted into another file is an instance of it from that library, instead of a new main; copied variants pasted with their own set, or a layer in it, selected join the set as new variants; a style of one library that reaches a file through another library's component is, in a file linking both, the first library's own bound copy, so its modes colour it (#2414); with a variant selected, its property dropdowns show its own values and choosing one renames only that variant, instead of setting the set's default and moving the variants (#2349); library analytics count insertions and detachments of styles and variables; combining components gives every variant the properties any of them had; renaming a variable group to a path with `/` nests it under a parent group instead of turning the slash into a hyphen (#2353); a group's context menu in the Local variables window has Duplicate group, a copy named after it plus " 2" holding a copy of every variable, in one undo step (#2084); pages take a variable mode: with nothing selected the Design panel's Page section shows a Variable modes section, Auto or a mode of each collection that has more than one, as the help center says ("Apply variable mode" in the Page section of the right sidebar) (#2215); a text style binds a number variable to its weight (#2174); an instance lists only the properties its variant's layers use and long property names are cut to one line (#2022); with several layers selected the Design panel header's component button offers Create multiple components (#2088); the Local variables window selects several variables (click, Shift+click for a range, Cmd/Ctrl+click to toggle, Escape to clear) and delete, move to a group and scope act on the selected local variables in one undo step (#2002); text styles carry paragraph spacing and indent, the list style and the OpenType features, as the Supported in text styles table of Create and apply text styles says (#1829); a layer's effect binding takes only a field its effect has; Go to main component on an instance of a library component opens the library file in a tab and selects the main there; glass effects take variables; Delete on a layer inside an instance hides it as an override instead of being refused, as the help center says: "Figma will only toggle the layer's visibility instead of removing it"; library analytics list how many layers and files use each style and variable; SwiftUI and Compose code names a bound variable by its iOS or Android code syntax; library analytics count insertions and show insertions and detachments over the past 30 days, 90 days or year; a collection of this file can be extended (Extend collection on its row, `variable.extendCollection`), its extension following its edits at once, and extended collections extend again in the file; a typed or stored variable, collection or mode id names only the object with that id (#1613); colour variables can be calculated from other colours per mode — `{alpha}` replaces a colour's alpha, `{mix}` blends two — and follow them (#1280); stored variable and collection references keep their identity when another object is named like their id (follow-up to #1542); a component set's property rows fit the 240 px right panel: variant values wrap two to a line there and every + and − stays in view; opening a file contacts no team library server it names until you check it (#1097); an explicit variables file path (`variable.import`, the `variables` of `file.open` and `file.import`) is refused past 256 MiB or when it isn't a regular file, as the sibling `variables.json` already was (part of #1114); component properties keep the order they were made in when one is renamed, and Make slot asks for the slot's name first (#1536, #1537); components can't contain their own instances, directly or through others (#1084); the instance-swap menus have a search field (#1338); an instance-swap property's default menu scrolls (#1338); variables on a text style's fields from the style editor; instance-swap properties in the component playground; duplicating or Alt-dragging a main component makes an instance of it (#892); a bound colour variable's alpha applies once (#802); variables import reads `variables` outside `meta` and warns when it imports none (#790); variant properties reorder by drag; library files saved right after a read are read again; Hide when publishing note corrected; size and resizing overrides of layers inside instances (#731); variables export in the browser as a download; core editor leftovers: component playground, variables inside styles; layers and assets panels behaviour suite and fixes; extended collections tail; styles and variables behaviour suite and fixes; components behaviour suite and fixes; team libraries on the server, library usage and swapping a library; extended collections, variables import/export, gradient stops and variant properties bound to variables) · **Target:** Figma Design (desktop app 126.10.7)
Design systems are why teams adopt Figma. **Components: breadth ~96%, ready ~72%. Styles and
variables: breadth ~95%, ready ~76% (estimated).** QA'd with a synthetic design system of ~300
@@ -18,7 +18,7 @@ accounts).
| What an instance overrides: fills, strokes, effects, visibility, layer names, text content and every text property (resizing included), auto layout padding, gap and alignment, layout grids, export settings, prototype interactions, nested swaps and property values; the size and resizing (hug, fill, fixed, min and max) of layers inside it; an instance's own resizing (hug or fixed) follows its main's unless its size is overridden, measured: a plain instance turns Fixed when its main does (a child set to Fill along the hugging axis) and back to Hug with it, one whose width was typed keeps it, and Fill in its own auto layout parent is its own | done | each kept when the main changes that property, reset per group; opacity and corner radius too (documentation silent); size and resizing are kept through relayout, undo, save, `.fig` and REST import and detach, and stay with the instance on push |
| What it doesn't: position, rotation, constraints and absolute or grid placement of layers inside it, its auto layout direction and other settings, its structure | done | refused with a message, the fields greyed out (Delete on a layer inside an instance hides it instead of removing it, as the help center says it does); the instance itself resizes and its layers follow the main's constraints |
| Component sets / variants, add variant, switch | done | Combine as variants is in the Object menu, and the canvas and layers context menu and the Design panel offer it when two or more main components are selected; Add variant on a main component not in a set yet makes it a set of itself and the new variant, one undo step (#903); components that are variants already aren't combined again (it used to put a set inside a set); combining gives every variant the component properties any of them had, so another variant's layers can be bound to one made before combining |
-| A main's copy within its file is an instance of it: Duplicate, Alt-drag, Copy then Paste | done | a variant duplicated in its set stays a new variant and a whole set copies as a new set; only the copied roots become instances (a main inside a copied frame is copied as a main); Cut then Paste and pastes into other files keep the component (#892); copied variants pasted with their own set, or a variant or layer in it, selected join the set as new variants, while other pastes into a set, Paste over and Paste to replace still make an instance |
+| A main's copy within its file is an instance of it: Duplicate, Alt-drag, Copy then Paste | done | a variant duplicated in its set stays a new variant and a whole set copies as a new set; only the copied roots become instances (a main inside a copied frame is copied as a main); Cut then Paste keeps the component (#892); pasted into another file, a main the source file publishes as a library is an instance of it from that library, which gets enabled, and any other main is a copy of itself; copied variants pasted with their own set, or a variant or layer in it, selected join the set as new variants, while other pastes into a set, Paste over and Paste to replace still make an instance |
| A component can't contain its own instance, directly or through other components | done | refused with the loop named (creating, placing, swapping, switching variants, moving, pasting, an instance-swap value); each variant counts as its own component, so a variant may hold a sibling variant's instance unless that one leads back to it; a dropped instance lands on the page; a file holding a loop opens with one instance detached and a note, any other file unchanged; a loop merged in a live session stops expanding where an instance would show itself again (#1084) |
| Switching variants keeps overrides where names match and both variants had the same value; text layers keep theirs | done | |
| Default variant: the top-left one (new instances, Assets thumbnail, generated code) | done | |
@@ -80,6 +80,7 @@ updates with overrides kept: `library_tests.rs`, `components_scale_tests.rs`.
| Date | Change | Summary |
|---|---|---|
+| 2026-11-23 | minor | M3: a main component copied from a library file and pasted into another file is an instance of it from that library, which gets enabled in that file, as pasting an instance of it already was and as Figma does with a published component. It used to paste a copy of the main, a new component of that file unlinked from the library. A variant pastes as an instance of that variant. A component the library doesn't offer (hidden from publishing, or added since the last publish) and a main from a file that publishes no library still paste as a copy. Test: `library::tests::a_main_pasted_from_its_library_file_is_an_instance_of_it`. Numbers unchanged |
| 2026-11-19 | patch | M3: copying a variant and pasting with that variant, a layer in it or its set selected pasted an instance on the page. Copied variants of one set now paste into that set as new variants (deep copies, as Duplicate makes), under the copied variants where they are now, below the lowest variant with the gap of 20 that Add variant leaves, and the set grows to hold them. Every other paste of a copied main still makes an instance: with nothing selected, into another set, a main that isn't a variant pasted with a set selected, Paste over and Paste to replace on a variant, and an explicit `parent` (even the variant's own set). Tests: `pasting_a_variant_with_its_set_selected_adds_a_variant_below_the_others`, `a_variant_pasted_into_its_set_after_the_set_moved_lands_under_the_variant`, `a_variant_pasted_with_another_set_selected_is_an_instance`, `a_main_that_is_no_variant_pasted_with_a_set_selected_is_an_instance`, `a_variant_pasted_with_its_own_set_as_an_explicit_parent_is_an_instance`, `pasting_over_or_replacing_a_variant_makes_an_instance_of_the_copied_variant` |
| 2026-11-19 | patch | M3, #2414: a kit's style used by a component of a second library reached a file linking both as a second, unbound copy (`::S:1`) frozen in the kit's default mode, so a mode set on the kit's collection didn't colour it (from two hops on, every such style). Publishing now keeps the variables the published styles bind and where the file's copies of other libraries' styles, variables and collections came from; importing files such a copy under that library when the file links it, so it is the file's own bound copy. Test: `library_style_hops_tests::a_kit_style_through_another_library_is_the_kits_bound_copy`; the issue's four-file chain renders Brand and Alt everywhere. Grade unchanged. |
| 2026-11-19 | patch | M3, #2349: with one variant of a set selected, the Design panel's variant property dropdowns showed the set's default values, and choosing a value set the default, so the variants swapped places. They now show the selected variant's own values (hover: "This variant's value"), and choosing one renames that variant only; with the set selected they still set its default. Test: `variant_own_value_tests::a_selected_variants_dropdown_shows_and_sets_its_own_value`. Grade unchanged. |
diff --git a/docs/mcp.md b/docs/mcp.md
index c1f3992a9..aedab7c3d 100644
--- a/docs/mcp.md
+++ b/docs/mcp.md
@@ -1057,6 +1057,8 @@ name and sets them this way);
same library, components the other file publishes as a library are used from it (and that
library is enabled when the other file is saved), and other mains stay behind: the instance shows
a missing main (`component.restoreMain` makes it a main here).
+ A main component copied from a file that publishes it as a library pastes as an instance of
+ it from that library (enabled the same way); a main that library doesn't offer pastes as a copy.
### Team libraries
diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md
index 409efe1d7..c7d1b74c3 100644
--- a/docs/target-app-parity.md
+++ b/docs/target-app-parity.md
@@ -371,7 +371,8 @@ Hours in this narrative are the builders' estimates; the tables above supersede
Instance swap properties have preferred values (offered first). Alt-drop from the Assets panel
onto an instance swaps it (same-set instance preferred, highlighted while dragging); instances
pasted into other files follow their mains (library copies shared, published components used
- from their library, other mains left behind as a restorable missing main). The Assets panel lays
+ from their library, other mains left behind as a restorable missing main), and a main pasted
+ from its library file is an instance of it from that library. The Assets panel lays
out only the tiles in view and renders thumbnails as they show (cached, re-rendered only for
changed components). A behaviour suite from the public documentation checks overrides (what an
instance takes, what it refuses: geometry, constraints and resizing of its layers, its auto
From f9964e14ae1aeca1a83cc04a204208d2abbf9c4f Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Fri, 20 Nov 2026 23:04:14 -0500
Subject: [PATCH 30/59] Desktop: reopen the files open at quit instead of
starting in a new file
The desktop app started in a new, empty file on every launch, and with a
control port open (FIGCRAFT_CONTROL_PORT set for an attached agent) even
the Start on the Home screen preference was overridden, so the files you
worked in had to be found and opened again each time.
Quitting now keeps the paths of the open tabs' files, in tab order, and the
one in front (Prefs::open_files, Prefs::front_file); the next start opens
them again and brings that one forward, as Figma's desktop app reopens its
tabs. Files without a path (new, imported, joined live) and branch tabs are
left out. A file named on the command line stays in front, a recovered
copy keeps its one tab (file.open switches to an open path), a file gone
since is skipped, and one that won't open is reported like a file named on
the command line.
With nothing to reopen the window starts on the Home screen; only with a
control port open does it still start in a new file (#874: control callers
expect a document). Start on the Home screen now means Home instead of the
reopened files.
The list is written at quit only, with the other preferences. Keeping it on
every tab change would cover a crash too, but a crash already brings back
the unsaved files through recovery copies, and the list from the last quit
is a fair fallback for the rest.
---
apps/figcraft/src/main.rs | 55 +++++++++++-----
apps/figcraft/src/services.rs | 4 +-
crates/engine/src/lib.rs | 3 +
crates/engine/src/prefs.rs | 12 +++-
crates/engine/src/reopen.rs | 38 +++++++++++
crates/engine/src/reopen_tests.rs | 103 ++++++++++++++++++++++++++++++
docs/mcp.md | 7 +-
docs/ui-parity.md | 3 +-
8 files changed, 204 insertions(+), 21 deletions(-)
create mode 100644 crates/engine/src/reopen.rs
create mode 100644 crates/engine/src/reopen_tests.rs
diff --git a/apps/figcraft/src/main.rs b/apps/figcraft/src/main.rs
index 1d24e511b..b340fcbdd 100644
--- a/apps/figcraft/src/main.rs
+++ b/apps/figcraft/src/main.rs
@@ -209,7 +209,7 @@ fn main() -> eframe::Result {
failed_open = Some(format!("{name}: {e}"));
}
}
- let opened: Vec = session.docs.iter().map(|d| d.uid).collect();
+ let mut opened: Vec = session.docs.iter().map(|d| d.uid).collect();
// Documents a crashed or killed run left unsaved come back; this run keeps its own copies.
let recovery_root = services::config_dir().map(|d| d.join("Recovery"));
// The preferences first: they hold the online files a recovered document may be one of.
@@ -233,7 +233,20 @@ fn main() -> eframe::Result {
session.live.links = figcraft_collab_net::links::system();
session.invite_links_startup();
let first_run = svc.prefs.is_none() && args.join.is_none();
- if session.docs.is_empty() && opens_new_file(first_run, session.prefs.start_on_home, port.is_some()) {
+ if reopens_files(first_run, session.prefs.start_on_home) {
+ let before: Vec = session.docs.iter().map(|d| d.uid).collect();
+ for (path, e) in session.reopen_files() {
+ log::error!("{path}: {e}");
+ let name = std::path::Path::new(&path).file_name().map_or_else(|| path.clone(), |n| n.to_string_lossy().into_owned());
+ failed_open = Some(format!("{name}: {e}"));
+ }
+ // A file named on the command line stays in front.
+ if let Some(i) = opened.last().and_then(|uid| session.docs.iter().position(|d| d.uid == *uid)) {
+ session.active = i;
+ }
+ opened.extend(session.docs.iter().map(|d| d.uid).filter(|u| !before.contains(u)));
+ }
+ if session.docs.is_empty() && opens_new_file(first_run, port.is_some()) {
let _ = session.execute("file.new", &json!({}));
}
// The interface language from the first frame on, and for the message when the window can't
@@ -243,7 +256,8 @@ fn main() -> eframe::Result {
fig.set_startup_update_check(true);
fig.automation_roots = roots;
fig.ui.home = false;
- // Files named on the command line are the user's too: their missing fonts are listed.
+ // Files named on the command line or reopened are the user's too: their missing fonts are
+ // listed.
fig.ui.font_checks = opened;
fig.note_recovered(recovered.copies);
if let Some(message) = failed_open {
@@ -325,12 +339,17 @@ fn main() -> eframe::Result {
graphics.finish(result, frames, port.is_some())
}
-/// With nothing to open, whether the window starts in a new file rather than on the home screen.
-/// A first run (no settings kept yet) shows the home screen's tips and templates, and later runs
-/// start in a new file unless the preference asks for Home, which `--control` overrides: its
-/// callers expect a document to act on.
-fn opens_new_file(first_run: bool, start_on_home: bool, control: bool) -> bool {
- !first_run && (!start_on_home || control)
+/// Whether the files open when the app last quit open again: not on a first run (no settings kept
+/// yet), nor when the preference asks for the Home screen.
+fn reopens_files(first_run: bool, start_on_home: bool) -> bool {
+ !first_run && !start_on_home
+}
+
+/// With nothing open, whether the window starts in a new file rather than on the home screen: only
+/// with a control port open (`--control`), whose callers expect a document to act on. A first run
+/// shows the home screen's tips and templates whatever the port.
+fn opens_new_file(first_run: bool, control: bool) -> bool {
+ !first_run && control
}
/// The title bar FigCraft starts with, decided by the shared craft-window crate so every Craft app
@@ -426,13 +445,19 @@ mod title_bar_tests {
#[cfg(test)]
mod start_tests {
- use super::opens_new_file;
+ use super::{opens_new_file, reopens_files};
#[test]
- fn the_home_preference_starts_on_home_except_for_control_callers() {
- assert!(opens_new_file(false, false, false), "a new file by default");
- assert!(!opens_new_file(false, true, false), "Home when the preference asks");
- assert!(opens_new_file(false, true, true), "--control still starts with a document");
- assert!(!opens_new_file(true, false, false), "a first run shows the home screen");
+ fn the_last_files_reopen_unless_the_home_preference_asks_or_on_a_first_run() {
+ assert!(reopens_files(false, false), "by default");
+ assert!(!reopens_files(false, true), "Home when the preference asks");
+ assert!(!reopens_files(true, false), "a first run has nothing to reopen");
+ }
+
+ #[test]
+ fn with_nothing_open_only_control_callers_start_in_a_new_file() {
+ assert!(!opens_new_file(false, false), "the home screen, not an empty file");
+ assert!(opens_new_file(false, true), "--control starts with a document");
+ assert!(!opens_new_file(true, true), "a first run shows the home screen");
}
}
diff --git a/apps/figcraft/src/services.rs b/apps/figcraft/src/services.rs
index 0f2363773..5fd30c35e 100644
--- a/apps/figcraft/src/services.rs
+++ b/apps/figcraft/src/services.rs
@@ -348,9 +348,11 @@ fn open_directory(file: &std::fs::File) -> Result<(), String> {
const STATE: &str = "state.json";
/// Everything quitting keeps, all done when it returns (macOS then ends the process): the
-/// preferences in `dir`, this run's recovery copies ([`Recovery::quit`](crate::recovery::Recovery::quit))
+/// preferences in `dir` with the files open now, which the next start reopens, this run's recovery
+/// copies ([`Recovery::quit`](crate::recovery::Recovery::quit))
/// and the live sessions' ends (one this app hosts tells everyone and stops; a joined one leaves).
pub fn shutdown(app: &mut FigApp, dir: Option<&Path>, recovery: Option) {
+ app.session.remember_open_files();
if let Some(dir) = dir {
write_prefs(dir, &app.session.prefs);
}
diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs
index ad6bb085e..3220e6326 100644
--- a/crates/engine/src/lib.rs
+++ b/crates/engine/src/lib.rs
@@ -106,6 +106,7 @@ mod derived;
mod doc_state;
mod error;
mod prefs;
+mod reopen;
mod session;
mod view_state;
@@ -543,6 +544,8 @@ mod proto_run_tests;
#[cfg(test)]
mod proto_tail_tests;
#[cfg(test)]
+mod reopen_tests;
+#[cfg(test)]
mod rest_slot_tests;
#[cfg(test)]
mod retained_walk_tests;
diff --git a/crates/engine/src/prefs.rs b/crates/engine/src/prefs.rs
index 4225963f5..182c20f00 100644
--- a/crates/engine/src/prefs.rs
+++ b/crates/engine/src/prefs.rs
@@ -63,7 +63,8 @@ pub struct Prefs {
/// Files that have a path are saved by themselves a few seconds after they change (the app's
/// timer; off: only File ▸ Save writes them).
pub auto_save: bool,
- /// The desktop app starts on the Home screen instead of in a new file.
+ /// The desktop app starts on the Home screen instead of reopening the files open when it last
+ /// quit.
pub start_on_home: bool,
/// `figcraft://` invite links open this app (`collab.registerLinks`); `None`: on for installed
/// builds, off for development builds.
@@ -85,6 +86,13 @@ pub struct Prefs {
/// Recently opened or saved files, newest first (File ▸ Open recent; at most
/// [`cmd::file::MAX_RECENT`]).
pub recent_files: Vec,
+ /// The files open when the desktop app last quit, in tab order: the next start opens them again
+ /// ([`Session::reopen_files`](crate::Session::reopen_files)).
+ #[serde(skip_serializing_if = "Vec::is_empty")]
+ pub open_files: Vec,
+ /// Which of [`open_files`](Self::open_files) was in front.
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub front_file: Option,
/// The files you put on a server without its key, with their owner tokens (passwords: see
/// [`online`]), most recently opened first, at most [`online::MAX_ONLINE_FILES`].
#[serde(skip_serializing_if = "Vec::is_empty", deserialize_with = "online::read")]
@@ -155,6 +163,8 @@ impl Default for Prefs {
plugin_directory: None,
publish_server: live::DEFAULT_SERVER.into(),
recent_files: Vec::new(),
+ open_files: Vec::new(),
+ front_file: None,
online_files: Vec::new(),
getting_started_dismissed: false,
link_notice_skipped: false,
diff --git a/crates/engine/src/reopen.rs b/crates/engine/src/reopen.rs
new file mode 100644
index 000000000..b2f7fdeb5
--- /dev/null
+++ b/crates/engine/src/reopen.rs
@@ -0,0 +1,38 @@
+//! The files open when the desktop app quit open again at its next start, in their tabs' order
+//! with the same one in front, as Figma's desktop app reopens its tabs.
+
+use serde_json::json;
+
+use crate::{EngineError, Session};
+
+impl Session {
+ /// Keep the open files to reopen at the next start: each tab's file that has a path, in tab
+ /// order, and the one in front. Files without one (new, imported, joined from a live session)
+ /// and branch tabs are left out.
+ pub fn remember_open_files(&mut self) {
+ let path = |i: usize| self.docs.get(i).filter(|d| d.branch_of.is_none()).and_then(|d| d.path.clone());
+ self.prefs.open_files = (0..self.docs.len()).filter_map(path).collect();
+ self.prefs.front_file = path(self.active);
+ }
+
+ /// Open the files [`remember_open_files`](Self::remember_open_files) kept, then bring the one
+ /// that was in front forward. A file that is no longer there is skipped; the others that don't
+ /// open come back with why. A file already open (a recovered copy, one named at start) keeps
+ /// its tab.
+ pub fn reopen_files(&mut self) -> Vec<(String, EngineError)> {
+ let mut failed = Vec::new();
+ for path in self.prefs.open_files.clone() {
+ if !crate::file_access::exists(&path) {
+ continue;
+ }
+ if let Err(e) = self.execute("file.open", &json!({"path": path})) {
+ failed.push((path, e));
+ }
+ }
+ let front = self.prefs.front_file.as_deref();
+ if let Some(i) = self.docs.iter().position(|d| front.is_some() && d.path.as_deref() == front) {
+ self.active = i;
+ }
+ failed
+ }
+}
diff --git a/crates/engine/src/reopen_tests.rs b/crates/engine/src/reopen_tests.rs
new file mode 100644
index 000000000..b02c95c90
--- /dev/null
+++ b/crates/engine/src/reopen_tests.rs
@@ -0,0 +1,103 @@
+//! The files open when the desktop app quit open again at its next start.
+
+use std::path::PathBuf;
+
+use serde_json::json;
+
+use crate::Session;
+
+fn folder(name: &str) -> PathBuf {
+ let dir = std::env::temp_dir().join(format!("figcraft-reopen-{name}-{}", std::process::id()));
+ let _ = std::fs::remove_dir_all(&dir);
+ std::fs::create_dir_all(&dir).unwrap();
+ dir
+}
+
+fn saved(s: &mut Session, dir: &std::path::Path, name: &str) -> String {
+ let path = dir.join(format!("{name}.figcraft")).to_string_lossy().into_owned();
+ s.execute("file.new", &json!({"name": name})).unwrap();
+ s.execute("file.save", &json!({"path": path})).unwrap();
+ path
+}
+
+fn paths(s: &Session) -> Vec> {
+ s.docs.iter().map(|d| d.path.clone()).collect()
+}
+
+/// The next start: the preferences the last run kept, nothing open yet.
+fn next_start(last: &Session) -> Session {
+ let mut s = Session::empty();
+ s.prefs = last.prefs.clone();
+ s
+}
+
+#[test]
+fn the_files_open_at_quit_reopen_in_their_order_with_the_same_one_in_front() {
+ let dir = folder("order");
+ let mut s = Session::empty();
+ let a = saved(&mut s, &dir, "A");
+ s.execute("file.new", &json!({"name": "Untitled"})).unwrap();
+ let b = saved(&mut s, &dir, "B");
+ let c = saved(&mut s, &dir, "C");
+ s.execute("doc.switch", &json!({"index": 2})).unwrap();
+ s.remember_open_files();
+ assert_eq!(s.prefs.open_files, vec![a.clone(), b.clone(), c.clone()], "the new file without a path is left out");
+ assert_eq!(s.prefs.front_file.as_deref(), Some(b.as_str()));
+
+ let mut t = next_start(&s);
+ assert!(t.reopen_files().is_empty());
+ assert_eq!(paths(&t), vec![Some(a), Some(b.clone()), Some(c)]);
+ assert_eq!(t.docs[t.active].path.as_deref(), Some(b.as_str()), "B is in front again");
+ let _ = std::fs::remove_dir_all(&dir);
+}
+
+#[test]
+fn a_file_gone_since_is_skipped_and_one_that_wont_open_says_why() {
+ let dir = folder("gone");
+ let mut s = Session::empty();
+ let kept = saved(&mut s, &dir, "Kept");
+ let gone = saved(&mut s, &dir, "Gone");
+ let broken = saved(&mut s, &dir, "Broken");
+ s.remember_open_files();
+ std::fs::remove_file(&gone).unwrap();
+ std::fs::write(&broken, b"not a figcraft file").unwrap();
+
+ let mut t = next_start(&s);
+ let failed = t.reopen_files();
+ assert_eq!(failed.iter().map(|(p, _)| p.clone()).collect::>(), vec![broken]);
+ assert_eq!(paths(&t), vec![Some(kept)]);
+ let _ = std::fs::remove_dir_all(&dir);
+}
+
+#[test]
+fn a_file_already_open_at_start_keeps_its_one_tab() {
+ let dir = folder("twice");
+ let mut s = Session::empty();
+ let a = saved(&mut s, &dir, "A");
+ let b = saved(&mut s, &dir, "B");
+ s.execute("doc.switch", &json!({"index": 0})).unwrap();
+ s.remember_open_files();
+
+ // B was named on the command line (or came back as a recovered copy).
+ let mut t = next_start(&s);
+ t.execute("file.open", &json!({"path": b})).unwrap();
+ assert!(t.reopen_files().is_empty());
+ assert_eq!(paths(&t), vec![Some(b), Some(a.clone())]);
+ assert_eq!(t.docs[t.active].path.as_deref(), Some(a.as_str()));
+ let _ = std::fs::remove_dir_all(&dir);
+}
+
+#[test]
+fn quitting_with_nothing_open_leaves_nothing_to_reopen() {
+ let dir = folder("none");
+ let mut s = Session::empty();
+ saved(&mut s, &dir, "A");
+ s.remember_open_files();
+ s.execute("file.close", &json!({"index": 0})).unwrap();
+ s.remember_open_files();
+ assert!(s.prefs.open_files.is_empty());
+ assert_eq!(s.prefs.front_file, None);
+ let saved = serde_json::to_value(&s.prefs).unwrap();
+ assert!(saved.get("open_files").is_none() && saved.get("front_file").is_none(), "not written when empty");
+ let _ = std::fs::remove_dir_all(&dir);
+}
diff --git a/docs/mcp.md b/docs/mcp.md
index c1f3992a9..031b2d2ba 100644
--- a/docs/mcp.md
+++ b/docs/mcp.md
@@ -790,9 +790,10 @@ on; `key` resolves keys the way the canvas does. Commands behind keys:
it is larger; the choice is kept. In the browser the interface always follows the browser's zoom.
- `pref.autoSave {on?}`: files that have a path save themselves a few seconds after they change
(off by default; the desktop app's timer does it, so scripts still call `file.save`).
-- `pref.startOnHome {on?}`: the desktop app starts on the Home screen instead of in a new file
- (off by default; files named on the command line still open, and `--control` starts in a new
- file anyway, so control callers have a document).
+- `pref.startOnHome {on?}`: the desktop app starts on the Home screen instead of reopening the
+ files open when it last quit (off by default; with nothing to reopen it starts on the Home screen
+ too; files named on the command line still open, and with nothing open `--control` starts in a new
+ file, so control callers have a document).
- `pref.language {language: system|en|bs|cs|ru|es|es-419|fr|de|pt-BR|ja|ka|ko|sv|vi|zh-Hans|zh-Hant|…}`: the app's interface language, applied live ("system":
the OS or browser language; a language without a catalog shows English). Command ids, labels and
every result stay English.
diff --git a/docs/ui-parity.md b/docs/ui-parity.md
index d756e71b0..6e5cc17d7 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-20 · **Change:** minor (the desktop app reopens the files open when it quit, in their tabs' order with the same one in front, and with nothing to reopen starts on the Home screen instead of in a new file; 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-20 | patch | The desktop app started in a new, empty file every time, whatever was open when it quit. It now opens those files again, in their tabs' order with the same one in front, as Figma's desktop app reopens its tabs; quitting keeps their paths with the preferences (files without one, such as new or imported files, and branch tabs are left out). A file named on the command line still opens and stays in front, a recovered copy keeps its one tab, a file gone since is skipped and one that won't open says why. With nothing to reopen the app starts on the Home screen; with a control port open (`--control`) it still starts in a new file, so control callers have a document. Preferences ▸ Start on the Home screen starts there instead of reopening the files. Tests: `reopen_tests` (4), `start_tests` (2). Numbers unchanged |
| 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 6247922621bd58188da840eaeadebce5741d6395 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Tue, 24 Nov 2026 00:04:55 -0500
Subject: [PATCH 31/59] M5: a file opens again where it was left
A file always opened on the page saved in it, fitted to its content, so
coming back to a file meant finding the place again. Figma opens a file
where you were.
Closing a file's tab or quitting now keeps the page it showed and each
page's view (centre and zoom) in the preferences, by path, for the last
100 files left. Opening the file shows that page at its view, and the
canvas keeps the view instead of fitting the page when it first gets its
size (DocState::fit_when_sized). A page the file no longer has, a divider
or a view the canvas can't show is left out.
Keeping the view in the file was rejected: it would come back only after a
save, and looking around would make the file unsaved. The preferences are
per machine, so another computer opens the file fitted.
---
apps/figcraft/src/services.rs | 5 +-
crates/engine/src/cmd/file.rs | 1 +
crates/engine/src/cmd/file/open.rs | 1 +
crates/engine/src/doc_state.rs | 27 ++++++
crates/engine/src/file_views.rs | 74 ++++++++++++++++
crates/engine/src/file_views/tests.rs | 123 ++++++++++++++++++++++++++
crates/engine/src/lib.rs | 2 +
crates/engine/src/prefs.rs | 6 ++
crates/ui-egui/src/canvas.rs | 2 +-
docs/ui-parity.md | 5 +-
10 files changed, 241 insertions(+), 5 deletions(-)
create mode 100644 crates/engine/src/file_views.rs
create mode 100644 crates/engine/src/file_views/tests.rs
diff --git a/apps/figcraft/src/services.rs b/apps/figcraft/src/services.rs
index 5fd30c35e..93635e02b 100644
--- a/apps/figcraft/src/services.rs
+++ b/apps/figcraft/src/services.rs
@@ -348,11 +348,12 @@ fn open_directory(file: &std::fs::File) -> Result<(), String> {
const STATE: &str = "state.json";
/// Everything quitting keeps, all done when it returns (macOS then ends the process): the
-/// preferences in `dir` with the files open now, which the next start reopens, this run's recovery
-/// copies ([`Recovery::quit`](crate::recovery::Recovery::quit))
+/// preferences in `dir` with the files open now, which the next start reopens, and where each was
+/// left, this run's recovery copies ([`Recovery::quit`](crate::recovery::Recovery::quit))
/// and the live sessions' ends (one this app hosts tells everyone and stops; a joined one leaves).
pub fn shutdown(app: &mut FigApp, dir: Option<&Path>, recovery: Option) {
app.session.remember_open_files();
+ app.session.remember_views();
if let Some(dir) = dir {
write_prefs(dir, &app.session.prefs);
}
diff --git a/crates/engine/src/cmd/file.rs b/crates/engine/src/cmd/file.rs
index 0c84f3458..a108239f2 100644
--- a/crates/engine/src/cmd/file.rs
+++ b/crates/engine/src/cmd/file.rs
@@ -462,6 +462,7 @@ fn close(s: &mut Session, p: &Value) -> Result {
}
let uid = ds.uid;
let active_uid = s.docs.get(s.active).map(|d| d.uid);
+ s.remember_view(i);
s.remove_tabs(|d| d.uid == uid);
// Removing a tab before the active one shifts its index; keep the same document selected.
s.active = active_uid.and_then(|a| s.docs.iter().position(|d| d.uid == a)).unwrap_or(i.min(s.docs.len().saturating_sub(1)));
diff --git a/crates/engine/src/cmd/file/open.rs b/crates/engine/src/cmd/file/open.rs
index ea9a0d90a..dbb38f6c6 100644
--- a/crates/engine/src/cmd/file/open.rs
+++ b/crates/engine/src/cmd/file/open.rs
@@ -107,6 +107,7 @@ pub(crate) fn open(s: &mut Session, p: &Value) -> Result {
ds.on_disk = on_disk.filter(|_| native);
s.docs.push(ds);
s.active = s.docs.len() - 1;
+ s.restore_view();
let mut out = json!({"index": s.active, "summary": summary});
out[if warnings { "warnings" } else { "repairs" }] = json!(loaded.issues);
Ok(out)
diff --git a/crates/engine/src/doc_state.rs b/crates/engine/src/doc_state.rs
index 12dfefe32..5172fbdae 100644
--- a/crates/engine/src/doc_state.rs
+++ b/crates/engine/src/doc_state.rs
@@ -119,6 +119,9 @@ pub struct DocState {
/// Where each page's view was left in this session (its centre and zoom; see
/// [`Self::open_page`]; not saved).
page_views: BTreeMap,
+ /// The canvas fits the page's content when it first gets its size. Off when the view was
+ /// restored from where the file was left ([`Session::restore_view`]).
+ pub fit_when_sized: bool,
}
/// A version shown on the canvas in place of the document: read-only until it's restored or the
@@ -184,6 +187,7 @@ impl DocState {
images_left_in_file: None,
on_disk: None,
page_views: BTreeMap::new(),
+ fit_when_sized: true,
};
st.zoom_to_fit();
st
@@ -332,6 +336,29 @@ impl DocState {
}
}
+ /// Each page's view as left: the one shown now at its current view, the others shown in this
+ /// session at theirs.
+ pub(crate) fn page_views(&self) -> impl Iterator- + '_ {
+ let shown = (self.page, (self.view.cx, self.view.cy, self.view.zoom));
+ self.page_views.iter().filter(|(p, _)| **p != self.page).map(|(p, v)| (*p, *v)).chain(std::iter::once(shown))
+ }
+
+ /// Take `views` as where their pages were left, and show `page` (or the page shown now) at
+ /// its view. With one, the canvas keeps it instead of fitting the page when it gets its size.
+ pub(crate) fn show_views(&mut self, page: Option
, views: impl IntoIterator- ) {
+ self.page_views.extend(views);
+ if let Some(page) = page {
+ self.page = page;
+ }
+ match self.page_views.get(&self.page) {
+ Some(&(cx, cy, zoom)) => {
+ (self.view.cx, self.view.cy, self.view.zoom) = (cx, cy, zoom);
+ self.fit_when_sized = false;
+ }
+ None => self.zoom_to_fit(),
+ }
+ }
+
pub fn zoom_to_fit(&mut self) {
match self.doc.page_content_bounds(self.page) {
Some(b) => self.view.fit(b, 1.0),
diff --git a/crates/engine/src/file_views.rs b/crates/engine/src/file_views.rs
new file mode 100644
index 000000000..e7f55e9b1
--- /dev/null
+++ b/crates/engine/src/file_views.rs
@@ -0,0 +1,74 @@
+//! Files open again where they were left: when a file's tab closes or the app quits, the page it
+//! showed and each page's view (its centre and zoom) are kept for that file, and opening it again
+//! shows them, as Figma opens a file where you were. They live in the preferences, not in the
+//! file, so looking around never changes a file.
+
+use serde::{Deserialize, Serialize};
+
+use crate::{NodeId, Session, ViewState};
+
+/// How many files' views are kept, the most recently left first.
+pub const MAX_FILE_VIEWS: usize = 100;
+
+/// Where a file was left.
+#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
+pub struct FileView {
+ pub path: String,
+ /// The page shown.
+ pub page: NodeId,
+ /// The view of each page shown while it was open.
+ pub pages: Vec
,
+}
+
+/// A page's view: the page point at the canvas's centre, and the zoom.
+#[derive(Clone, Copy, Debug, PartialEq, Serialize, Deserialize)]
+pub struct PageView {
+ pub page: NodeId,
+ pub cx: f64,
+ pub cy: f64,
+ pub zoom: f64,
+}
+
+impl Session {
+ /// Keep where tab `i`'s file is left. A tab without a file of its own (a new or imported file,
+ /// a branch) keeps nothing.
+ pub(crate) fn remember_view(&mut self, i: usize) {
+ let Some(ds) = self.docs.get(i).filter(|d| d.branch_of.is_none()) else { return };
+ let Some(path) = ds.path.clone() else { return };
+ let pages = ds.page_views().map(|(page, (cx, cy, zoom))| PageView { page, cx, cy, zoom }).collect();
+ let view = FileView { path, page: ds.page, pages };
+ let views = &mut self.prefs.file_views;
+ views.retain(|v| v.path != view.path);
+ views.insert(0, view);
+ views.truncate(MAX_FILE_VIEWS);
+ self.prefs_unsaved = true;
+ }
+
+ /// [`remember_view`](Self::remember_view) for every open tab, before the app quits.
+ pub fn remember_views(&mut self) {
+ for i in 0..self.docs.len() {
+ self.remember_view(i);
+ }
+ }
+
+ /// Show the active tab's file where it was left, if it was: its page, if the file still has
+ /// it as a page that isn't a divider, at its view, and each other page at its view when it is
+ /// shown. A view that isn't a finite centre with a zoom the canvas takes is left out.
+ pub(crate) fn restore_view(&mut self) {
+ let Ok(ds) = self.ds() else { return };
+ let Some(kept) = ds.path.as_deref().and_then(|p| self.prefs.file_views.iter().find(|v| v.path == p)).cloned() else { return };
+ let Ok(ds) = self.ds_mut() else { return };
+ let doc = ds.doc.clone();
+ let views = kept
+ .pages
+ .iter()
+ .filter(|v| doc.pages.contains(&v.page) && [v.cx, v.cy, v.zoom].iter().all(|x| x.is_finite()))
+ .filter(|v| (ViewState::MIN_ZOOM..=ViewState::MAX_ZOOM).contains(&v.zoom))
+ .map(|v| (v.page, (v.cx, v.cy, v.zoom)));
+ let page = Some(kept.page).filter(|p| doc.pages.contains(p) && !doc.is_divider(*p));
+ ds.show_views(page, views);
+ }
+}
+
+#[cfg(test)]
+mod tests;
diff --git a/crates/engine/src/file_views/tests.rs b/crates/engine/src/file_views/tests.rs
new file mode 100644
index 000000000..1606c02ed
--- /dev/null
+++ b/crates/engine/src/file_views/tests.rs
@@ -0,0 +1,123 @@
+//! Files open again where they were left.
+
+use serde_json::{Value, json};
+
+use super::*;
+
+fn ex(s: &mut Session, cmd: &str, p: Value) -> Value {
+ s.execute(cmd, &p).unwrap_or_else(|e| panic!("{cmd} {p}: {e}"))
+}
+
+fn dir(name: &str) -> std::path::PathBuf {
+ let d = std::env::temp_dir().join(format!("figcraft-file-views-{}-{name}", std::process::id()));
+ std::fs::create_dir_all(&d).unwrap();
+ d
+}
+
+/// A saved file at `path` with two pages, each holding a rectangle, the first page shown.
+fn two_pages(s: &mut Session, path: &str) -> (NodeId, NodeId) {
+ ex(s, "file.new", json!({}));
+ ex(s, "shape.rectangle", json!({"x": 0, "y": 0, "width": 100, "height": 100}));
+ ex(s, "page.add", json!({"name": "Second"}));
+ let pages = s.doc().unwrap().pages.clone();
+ ex(s, "page.select", json!({"id": pages[1].0}));
+ ex(s, "shape.rectangle", json!({"x": 2000, "y": 2000, "width": 50, "height": 50}));
+ ex(s, "page.select", json!({"id": pages[0].0}));
+ ex(s, "file.saveAs", json!({"path": path}));
+ (pages[0], pages[1])
+}
+
+fn view(s: &Session) -> (NodeId, f64, f64, f64) {
+ let ds = s.ds().unwrap();
+ (ds.page, ds.view.cx, ds.view.cy, ds.view.zoom)
+}
+
+fn look(s: &mut Session, cx: f64, cy: f64, zoom: f64) {
+ let v = &mut s.ds_mut().unwrap().view;
+ (v.cx, v.cy, v.zoom) = (cx, cy, zoom);
+}
+
+/// Closed and opened again, a file shows the page it showed, at its view, and its other page at
+/// the view that page was left at; looking around leaves the file unchanged.
+#[test]
+fn a_file_opens_again_where_it_was_left() {
+ let d = dir("left");
+ let path = d.join("two.figcraft").to_string_lossy().into_owned();
+ let mut s = Session::new();
+ let (first, second) = two_pages(&mut s, &path);
+ let saved = std::fs::read(&path).unwrap();
+ look(&mut s, 40.0, 60.0, 2.5);
+ ex(&mut s, "page.select", json!({"id": second.0}));
+ look(&mut s, 2010.0, 2020.0, 0.5);
+ assert!(!s.ds().unwrap().is_dirty(), "looking around is no change to the file");
+ ex(&mut s, "file.close", json!({}));
+ assert_eq!(std::fs::read(&path).unwrap(), saved, "nothing written to the file");
+ assert!(s.prefs_unsaved, "kept in the preferences");
+ ex(&mut s, "file.open", json!({"path": path}));
+ assert_eq!(view(&s), (second, 2010.0, 2020.0, 0.5));
+ assert!(!s.ds().unwrap().fit_when_sized, "the canvas keeps the view instead of fitting");
+ ex(&mut s, "page.select", json!({"id": first.0}));
+ assert_eq!(view(&s), (first, 40.0, 60.0, 2.5));
+ // Through the preferences file, as the next start reads them.
+ let prefs: crate::Prefs = serde_json::from_value(serde_json::to_value(&s.prefs).unwrap()).unwrap();
+ let mut next = Session::new();
+ next.prefs = prefs;
+ ex(&mut next, "file.open", json!({"path": path}));
+ assert_eq!(view(&next), (second, 2010.0, 2020.0, 0.5));
+ let _ = std::fs::remove_dir_all(d);
+}
+
+/// Quitting keeps every open file's view; a file never saved keeps none.
+#[test]
+fn quitting_keeps_each_open_files_view() {
+ let d = dir("quit");
+ let (a, b) = (d.join("a.figcraft").to_string_lossy().into_owned(), d.join("b.figcraft").to_string_lossy().into_owned());
+ let mut s = Session::new();
+ let (a_page, _) = two_pages(&mut s, &a);
+ look(&mut s, 1.0, 2.0, 3.0);
+ let (b_page, _) = two_pages(&mut s, &b);
+ look(&mut s, 4.0, 5.0, 0.25);
+ ex(&mut s, "file.new", json!({}));
+ s.remember_views();
+ let kept: Vec<&str> = s.prefs.file_views.iter().map(|v| v.path.as_str()).collect();
+ assert_eq!(kept.len(), 2, "{kept:?}");
+ let mut next = Session::new();
+ next.prefs = s.prefs.clone();
+ ex(&mut next, "file.open", json!({"path": a}));
+ assert_eq!(view(&next), (a_page, 1.0, 2.0, 3.0));
+ ex(&mut next, "file.open", json!({"path": b}));
+ assert_eq!(view(&next), (b_page, 4.0, 5.0, 0.25));
+ let _ = std::fs::remove_dir_all(d);
+}
+
+/// A kept page the file no longer has, or a view the canvas can't show, is left out: the file
+/// opens fitted as before.
+#[test]
+fn a_view_that_no_longer_fits_the_file_is_left_out() {
+ let d = dir("stale");
+ let path = d.join("one.figcraft").to_string_lossy().into_owned();
+ let mut s = Session::new();
+ let (first, _) = two_pages(&mut s, &path);
+ ex(&mut s, "file.close", json!({}));
+ s.prefs.file_views[0].page = NodeId(999_999);
+ s.prefs.file_views[0].pages = vec![PageView { page: first, cx: f64::NAN, cy: 0.0, zoom: 1.0 }];
+ ex(&mut s, "file.open", json!({"path": path}));
+ let ds = s.ds().unwrap();
+ assert_eq!(ds.page, first);
+ assert!(ds.fit_when_sized, "fitted as a file never left");
+ assert!(ds.view.cx.is_finite());
+ let _ = std::fs::remove_dir_all(d);
+}
+
+/// The views kept are bounded, the most recently left first.
+#[test]
+fn the_most_recently_left_files_are_kept() {
+ let mut s = Session::new();
+ for k in 0..MAX_FILE_VIEWS + 5 {
+ ex(&mut s, "file.new", json!({}));
+ s.ds_mut().unwrap().path = Some(format!("/nowhere/{k}.figcraft"));
+ ex(&mut s, "file.close", json!({"force": true}));
+ }
+ assert_eq!(s.prefs.file_views.len(), MAX_FILE_VIEWS);
+ assert_eq!(s.prefs.file_views[0].path, format!("/nowhere/{}.figcraft", MAX_FILE_VIEWS + 4));
+}
diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs
index 3220e6326..fac2cc122 100644
--- a/crates/engine/src/lib.rs
+++ b/crates/engine/src/lib.rs
@@ -105,6 +105,7 @@ use serde_json::{Value, json};
mod derived;
mod doc_state;
mod error;
+mod file_views;
mod prefs;
mod reopen;
mod session;
@@ -113,6 +114,7 @@ mod view_state;
pub use derived::{changed_nodes, normalize};
pub use doc_state::{DocState, History, HistoryEntry, Interaction, PREVIEW_READ_ONLY, Preedit, TextEdit, VersionPreview};
pub use error::{EngineError, Result, bad};
+pub use file_views::{FileView, MAX_FILE_VIEWS, PageView};
pub use prefs::{Clipboard, DefaultProps, MAX_RECENT_ACTIONS, Prefs, UI_SCALE_MAX, UI_SCALE_MIN, UI_SCALE_SIZES, UiRequest, clamp_ui_scale};
pub use session::Forward;
pub use view_state::ViewState;
diff --git a/crates/engine/src/prefs.rs b/crates/engine/src/prefs.rs
index 182c20f00..fb5f5d412 100644
--- a/crates/engine/src/prefs.rs
+++ b/crates/engine/src/prefs.rs
@@ -93,6 +93,11 @@ pub struct Prefs {
/// Which of [`open_files`](Self::open_files) was in front.
#[serde(skip_serializing_if = "Option::is_none")]
pub front_file: Option,
+ /// Where each file was left when its tab closed or the app quit, the most recently left first,
+ /// at most [`MAX_FILE_VIEWS`](crate::MAX_FILE_VIEWS): opening it again shows that page at that
+ /// view ([`Session::remember_views`](crate::Session::remember_views)).
+ #[serde(skip_serializing_if = "Vec::is_empty")]
+ pub file_views: Vec,
/// The files you put on a server without its key, with their owner tokens (passwords: see
/// [`online`]), most recently opened first, at most [`online::MAX_ONLINE_FILES`].
#[serde(skip_serializing_if = "Vec::is_empty", deserialize_with = "online::read")]
@@ -165,6 +170,7 @@ impl Default for Prefs {
recent_files: Vec::new(),
open_files: Vec::new(),
front_file: None,
+ file_views: Vec::new(),
online_files: Vec::new(),
getting_started_dismissed: false,
link_notice_skipped: false,
diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs
index 3d3f05082..140351a11 100644
--- a/crates/ui-egui/src/canvas.rs
+++ b/crates/ui-egui/src/canvas.rs
@@ -272,7 +272,7 @@ pub fn show(app: &mut FigApp, ui: &mut Ui, worker: &mut Worker) {
// Otherwise keep the centre.
ds.view.vw = f64::from(rect.width());
ds.view.vh = f64::from(rect.height());
- if first {
+ if first && ds.fit_when_sized {
ds.zoom_to_fit();
}
}
diff --git a/docs/ui-parity.md b/docs/ui-parity.md
index 6e5cc17d7..31dc52259 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-20 · **Change:** minor (the desktop app reopens the files open when it quit, in their tabs' order with the same one in front, and with nothing to reopen starts on the Home screen instead of in a new file; 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 (a file opens again on the page and at the view it was left at; the desktop app reopens the files open when it quit, in their tabs' order with the same one in front, and with nothing to reopen starts on the Home screen instead of in a new file; 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:
@@ -113,7 +113,7 @@ interaction feel only partly compared: the interactions measured so far, case by
| Item | Status | Notes |
|---|---|---|
-| Pan/zoom: wheel, pinch, Space-drag, Shift+0/1/2, Cmd+0, `+`/`-` | done | Shift-wheel pans sideways, pinch and the zoom tool keep the point under the pointer; Preferences ▸ Scroll wheel zoom makes a mouse wheel zoom about the pointer and Cmd/Ctrl+wheel scroll (a wheel told from a trackpad by the device macOS reports, elsewhere by line versus pixel steps; #1390); the arrows pan the view with nothing selected by 64 px, 320 px (five steps) with Shift (`view.pan`; measured in Figma's web app at 100% zoom: one Right press 62–64 px in two trials, Shift+Right about 320 px, reading offsets from screenshots, about ±3 px); Preferences ▸ Invert zoom direction (Figma's Preferences menu has it, checked 2026-11-09; #2145) reverses wheel zoom: Cmd/Ctrl+wheel, and a plain mouse wheel with Scroll wheel zoom on, zoom out where they would zoom in, by the same factor, while a trackpad pinch and panning are unchanged (only the setting's existence was measured, so the pinch is left alone); zoom steps, limits (2%–25,600%) and frame order pinned where the documentation is silent (`view_behaviour_tests`); Zoom to selection (Shift+2) fits the selection into the canvas above the floating bottom toolbar with a 40 pt margin on all four sides, centred in that area, at a continuous zoom (measured in Figma's web app, 2026-11-09; `zoom_to_selection_leaves_forty_points_and_clears_the_toolbar`, `zoom_to_selection_on_a_wide_layer_is_limited_by_the_width`, `zoom_to_selection_without_a_toolbar_inset_uses_the_whole_height`); Zoom to fit (Shift+1) keeps its 64 pt margin, margin not measured yet (`zoom_to_fit_is_unchanged`) |
+| Pan/zoom: wheel, pinch, Space-drag, Shift+0/1/2, Cmd+0, `+`/`-` | done | Shift-wheel pans sideways, pinch and the zoom tool keep the point under the pointer; Preferences ▸ Scroll wheel zoom makes a mouse wheel zoom about the pointer and Cmd/Ctrl+wheel scroll (a wheel told from a trackpad by the device macOS reports, elsewhere by line versus pixel steps; #1390); the arrows pan the view with nothing selected by 64 px, 320 px (five steps) with Shift (`view.pan`; measured in Figma's web app at 100% zoom: one Right press 62–64 px in two trials, Shift+Right about 320 px, reading offsets from screenshots, about ±3 px); Preferences ▸ Invert zoom direction (Figma's Preferences menu has it, checked 2026-11-09; #2145) reverses wheel zoom: Cmd/Ctrl+wheel, and a plain mouse wheel with Scroll wheel zoom on, zoom out where they would zoom in, by the same factor, while a trackpad pinch and panning are unchanged (only the setting's existence was measured, so the pinch is left alone); zoom steps, limits (2%–25,600%) and frame order pinned where the documentation is silent (`view_behaviour_tests`); Zoom to selection (Shift+2) fits the selection into the canvas above the floating bottom toolbar with a 40 pt margin on all four sides, centred in that area, at a continuous zoom (measured in Figma's web app, 2026-11-09; `zoom_to_selection_leaves_forty_points_and_clears_the_toolbar`, `zoom_to_selection_on_a_wide_layer_is_limited_by_the_width`, `zoom_to_selection_without_a_toolbar_inset_uses_the_whole_height`); Zoom to fit (Shift+1) keeps its 64 pt margin, margin not measured yet (`zoom_to_fit_is_unchanged`). A file opens again on the page it showed and at its view, each of its pages at the view it was left at, when its tab closed or the app quit: kept in the preferences by path for the last 100 files, never in the file, so looking around doesn't change it |
| Auto-pan when a drag holds the pointer near the canvas edge | done | measured in Figma (web, 100% zoom, held drags; #2015): while a drag holds the pointer within about 15 px of the canvas viewport's edge, or past it, the view pans toward that edge by itself at `40 x (15 - d)` screen px per second (d: px inside the edge, negative outside; 0 at 15 px or more, 120 at 12 px, about 280 at 8 px, 520 at 2 px, 600 at the edge and beyond), steadily while the pointer stays still, no acceleration; two edges (a corner) pan both axes, each by its own distance. Covers moving layers (once past the drag threshold), the selection box (once it has grown past it), drawing a shape and dragging a prototype connection out of a layer, so a link can reach a frame off screen; the layer, box, shape or connection follows the document point under the pointer. Not for resizing, rotating, the hand or Space panning, text selection or vector edits (not measured). Speed taken as screen px per second at every zoom (other zooms not measured). The rule is `ViewState::autopan_velocity`, applied each frame by the canvas (`view_autopan_tests`, `canvas_autopan_tests`, `proto_canvas`) |
| Rulers and guides (drag out, move, remove; rotated frames; frame guides) | done | guides belong to the page or a top-level frame (a frame moved into another keeps its guides but they stop applying); a click selects one for Delete, the arrows or the context menu's Remove guide; Alt-drag drops a copy; Alt while dragging measures to the layers in the frame it crosses; ruler numbering checked by eye only |
| Frame labels (rotated, right-to-left), size badge | done | |
@@ -211,6 +211,7 @@ This audit records candidates for subsequent fixes; their behaviour is unchanged
| Date | Change | Summary |
|---|---|---|
+| 2026-11-24 | minor | M5: a file opens again where it was left, as Figma opens a file where you were. Closing its tab or quitting keeps the page it showed and each page's view (centre and zoom) in the preferences by path, for the last 100 files left; opening it shows that page at its view, and the canvas keeps the view instead of fitting the page when it gets its size. Each other page shows its view when it's opened. A page the file no longer has, a divider or a view the canvas can't show is left out, and the file opens fitted as before. Nothing goes into the file: looking around doesn't make it unsaved. Tests: `file_views::tests` (4). Numbers unchanged |
| 2026-11-20 | patch | The desktop app started in a new, empty file every time, whatever was open when it quit. It now opens those files again, in their tabs' order with the same one in front, as Figma's desktop app reopens its tabs; quitting keeps their paths with the preferences (files without one, such as new or imported files, and branch tabs are left out). A file named on the command line still opens and stays in front, a recovered copy keeps its one tab, a file gone since is skipped and one that won't open says why. With nothing to reopen the app starts on the Home screen; with a control port open (`--control`) it still starts in a new file, so control callers have a document. Preferences ▸ Start on the Home screen starts there instead of reopening the files. Tests: `reopen_tests` (4), `start_tests` (2). Numbers unchanged |
| 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`. |
From 338318aaac270afba9f3ac3b4d0c39f110d924e9 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Mon, 23 Nov 2026 23:35:28 -0500
Subject: [PATCH 32/59] M3: a panel menu taller than the window scrolls
A menu opened from a panel ran past the window's bottom when it had more
rows than fit, and the rows below couldn't be reached. With many colour
variables, the Selection colors Styles menu showed only the first ones.
egui moves a popup to keep it in the window but doesn't shorten one taller
than the window.
menu_popup, context_popup and the row context menus now return a Menu
whose rows scroll with the wheel or the scroll bar once they were taller
than the window last frame, the rule the main menu follows since #2217. A
menu that fits is laid out as before.
A scroll area around every menu's rows was tried first and rejected: egui
lays a popup out in the height it measured last frame, so a menu that grows
(the share popover opening its Advanced part) stayed at its old height and
hid the new rows. Ten share and vote tests caught it.
---
crates/ui-egui/src/lib.rs | 2 +
crates/ui-egui/src/menu_scroll_tests.rs | 60 ++++++++++++++++++++++
crates/ui-egui/src/panels/right/menu.rs | 67 ++++++++++++++++++++++---
docs/ui-parity.md | 5 +-
4 files changed, 126 insertions(+), 8 deletions(-)
create mode 100644 crates/ui-egui/src/menu_scroll_tests.rs
diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs
index 32d859f6c..129bd3dc4 100644
--- a/crates/ui-egui/src/lib.rs
+++ b/crates/ui-egui/src/lib.rs
@@ -196,6 +196,8 @@ mod menu_input_tests;
#[cfg(test)]
mod menu_overflow_tests;
#[cfg(test)]
+mod menu_scroll_tests;
+#[cfg(test)]
mod mirror_tests;
#[cfg(test)]
mod missing_fonts_tests;
diff --git a/crates/ui-egui/src/menu_scroll_tests.rs b/crates/ui-egui/src/menu_scroll_tests.rs
new file mode 100644
index 000000000..8b12b2495
--- /dev/null
+++ b/crates/ui-egui/src/menu_scroll_tests.rs
@@ -0,0 +1,60 @@
+//! A panel menu taller than the window scrolls, so its last rows can be reached and picked: the
+//! page's variable mode menu of a collection with more modes than fit.
+
+use egui::{Event, Modifiers, MouseWheelUnit, PointerButton, Pos2, TouchPhase, vec2};
+use figcraft_engine::Session;
+use serde_json::json;
+
+use crate::layers_drag_tests::Ui;
+use crate::live_tests::{flat, text_center, texts};
+
+/// A click at `p`, and the frames that follow; what the last frame drew.
+fn click(u: &mut Ui, p: Pos2) -> Vec {
+ for _ in 0..5 {
+ u.frame(vec![Event::PointerMoved(p)]);
+ }
+ let mut shapes = Vec::new();
+ for pressed in [Some(true), Some(false)].into_iter().chain(std::iter::repeat_n(None, 20)) {
+ let events = pressed.map(|pressed| Event::PointerButton { pos: p, button: PointerButton::Primary, pressed, modifiers: Modifiers::NONE });
+ shapes = flat(&u.frame_output(events.into_iter().collect()).shapes);
+ }
+ shapes
+}
+
+/// Where `label` is drawn, if it is.
+fn at(shapes: &[egui::Shape], label: &str) -> Option {
+ texts(shapes).into_iter().find(|(t, ..)| t == label).map(|(_, p, size)| p + size / 2.0)
+}
+
+#[test]
+fn a_menu_taller_than_the_window_scrolls_to_its_last_row() {
+ let modes: Vec = (0..60).map(|k| format!("Mode {k}")).collect();
+ let mut s = Session::new();
+ s.execute("variable.createCollection", &json!({"name": "Theme", "modes": modes})).unwrap();
+ s.execute("select.set", &json!({"ids": []})).unwrap();
+ let mut u = Ui::new(s);
+ let shapes = flat(&u.frame_output(vec![]).shapes);
+ let menu = click(&mut u, text_center(&shapes, "Auto (Mode 0)"));
+ let first = at(&menu, " Mode 0").expect("the menu is open");
+ assert!(at(&menu, " Mode 59").is_none_or(|p| p.y > 900.0), "the last row starts below the window");
+ let wheel = Event::MouseWheel {
+ unit: MouseWheelUnit::Point,
+ source: egui::MouseWheelSource::Unknown,
+ delta: vec2(0.0, -5000.0),
+ phase: TouchPhase::Move,
+ modifiers: Modifiers::NONE,
+ };
+ u.frame(vec![Event::PointerMoved(first), wheel]);
+ for _ in 0..30 {
+ u.frame(vec![]);
+ }
+ let shapes = flat(&u.frame_output(vec![]).shapes);
+ let last = at(&shapes, " Mode 59").expect("scrolled to the last row");
+ assert!(last.y < 900.0, "inside the window: {last:?}");
+ click(&mut u, last);
+ let page = u.app.session.page().unwrap();
+ let doc = u.app.session.doc().unwrap();
+ let coll = &doc.variables.collections[0];
+ let picked = coll.modes.iter().find(|m| m.name == "Mode 59").unwrap().id.clone();
+ assert_eq!(doc.node(page).unwrap().var_modes.get(&coll.id), Some(&picked), "the last mode is picked");
+}
diff --git a/crates/ui-egui/src/panels/right/menu.rs b/crates/ui-egui/src/panels/right/menu.rs
index 8f6e7f7fd..15c6d1af2 100644
--- a/crates/ui-egui/src/panels/right/menu.rs
+++ b/crates/ui-egui/src/panels/right/menu.rs
@@ -44,22 +44,77 @@ pub(crate) fn preview_blend(app: &mut FigApp, ctx: &egui::Context, ids: &[NodeId
/// (else its 600 px default area width) and keeps the size measured; rows ([`menu_row`]) take the
/// larger of that width and their content, so the menu fits its content. Chain `.width(w)` for a
/// menu at least `w` wide.
-pub fn menu_popup(anchor: &egui::Response) -> egui::Popup<'static> {
- egui::Popup::menu(anchor).width(anchor.rect.width().max(MENU_MIN_W)).style(menu_style)
+pub fn menu_popup(anchor: &egui::Response) -> Menu {
+ Menu(egui::Popup::menu(anchor).width(anchor.rect.width().max(MENU_MIN_W)).style(menu_style))
}
/// A context menu (secondary click on `resp`) sized like [`menu_popup`].
-pub fn context_popup(resp: &egui::Response) -> egui::Popup<'static> {
- egui::Popup::context_menu(resp).width(MENU_MIN_W).style(menu_style)
+pub fn context_popup(resp: &egui::Response) -> Menu {
+ Menu(egui::Popup::context_menu(resp).width(MENU_MIN_W).style(menu_style))
}
/// A context menu for a property row: a secondary click anywhere over `rect` opens it, even over
/// the row's fields (which would otherwise take the click), like the incumbent's row menus.
-pub(super) fn row_context_menu(ui: &Ui, rect: Rect, id: Id) -> egui::Popup<'static> {
+pub(super) fn row_context_menu(ui: &Ui, rect: Rect, id: Id) -> Menu {
let resp = ui.interact(rect, id, Sense::hover());
let open = ui.rect_contains_pointer(rect) && ui.input(|i| i.pointer.secondary_clicked());
let at_pointer = egui::Popup::menu(&resp).width(MENU_MIN_W).style(menu_style).at_pointer_fixed();
- at_pointer.open_memory(open.then_some(egui::SetOpenCommand::Bool(true)))
+ Menu(at_pointer.open_memory(open.then_some(egui::SetOpenCommand::Bool(true))))
+}
+
+/// The gap a menu taller than the window keeps from the window's top and bottom edges.
+const MENU_WINDOW_GAP: f32 = 8.0;
+
+/// A popup menu ([`menu_popup`], [`context_popup`]) whose rows scroll when it would be taller
+/// than the window. egui keeps a popup inside the window by moving it, but one taller than the
+/// window runs off its edge, and rows past it can't be reached.
+#[must_use]
+pub struct Menu(egui::Popup<'static>);
+
+impl Menu {
+ /// At least `width` wide.
+ pub fn width(self, width: f32) -> Self {
+ Self(self.0.width(width))
+ }
+
+ /// Open and closed under `id` instead of the anchor's.
+ pub fn id(self, id: Id) -> Self {
+ Self(self.0.id(id))
+ }
+
+ pub fn close_behavior(self, behavior: egui::PopupCloseBehavior) -> Self {
+ Self(self.0.close_behavior(behavior))
+ }
+
+ /// Show the menu while it is open. Its rows `content` scroll with the wheel or the scroll bar
+ /// once they were taller than the window last frame, as the main menu's do (#2217); a menu
+ /// that fits is laid out as it is, so it still grows with its rows (a scroll area in a popup
+ /// would keep the popup's last height).
+ pub fn show(self, content: impl FnOnce(&mut Ui) -> R) -> Option> {
+ self.0.show(|ui| {
+ let window = ui.ctx().content_rect().height();
+ let max_height = (window - ui.style().spacing.menu_margin.sum().y - 2.0 * MENU_WINDOW_GAP).max(0.0);
+ let rows_height = ui.scope_id().with("menu_rows_height");
+ let last = ui.data(|d| d.get_temp::(rows_height)).unwrap_or(0.0);
+ let (inner, height) = if last > max_height {
+ let out = egui::ScrollArea::vertical()
+ .id_salt("menu_rows")
+ .max_height(max_height)
+ .scroll_source(egui::scroll_area::ScrollSource::MOUSE_WHEEL | egui::scroll_area::ScrollSource::SCROLL_BAR)
+ .show(ui, content);
+ (out.inner, out.content_size.y)
+ } else {
+ let inner = content(ui);
+ let height = ui.min_rect().height();
+ if height > max_height {
+ ui.ctx().request_repaint();
+ }
+ (inner, height)
+ };
+ ui.data_mut(|d| d.insert_temp(rows_height, height));
+ inner
+ })
+ }
}
pub fn menu_item(ui: &mut Ui, label: &str, shortcut: &str) -> bool {
diff --git a/docs/ui-parity.md b/docs/ui-parity.md
index d756e71b0..448ce05a8 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-23 · **Change:** minor (a dropdown, button menu or context menu in the panels that is taller than the window scrolls, so its last rows can be picked; 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:
@@ -23,7 +23,7 @@ interaction feel only partly compared: the interactions measured so far, case by
| Actions palette (Cmd+K, Cmd+/) | done | tabs: All (every command, grouped by menu, or Other; a command that needs parameters only through its menu item, and none twice under one label, #1574), Assets (components and styles) and Plugins & widgets; results ranked prefix first, then shortest, at most 60 rows; Up/Down move a highlight and Enter runs it; Recents list what was run from the palette (matching translated labels); one open/toggle path from every entry point (`palette_tests`). Ranking and the Assets results not compared with Figma's |
| Context menus | done | canvas and layers; submenus as in the main menu below, and a right-click in a new spot starts a fresh menu (Select layer closed); Shift+F10 or the keyboard's Menu key opens them from the keyboard (at the focused layer row or below the canvas selection) and the menu takes the keyboard (`layers_keyboard_tests`) |
| Home screen: Recents, Online and Templates | done (ours) | The sidebar switches between the three (`ui.set {homeSection}`). Online: your online files (see the collaboration checklist). Recents: new file, open, join with a code, open files, recent files (cards with the picture each file carries on its page colour, the file's icon, name and "Edited ... ago" or "File not found", full path on hover; or a Name, Last modified and Created table with sortable headers; sorted by name, creation or last change either way; grid or list and the sort kept in the preferences, `ui.set {homeRecentsView, homeRecentsSort, homeRecentsOrder}`; a click selects, a double-click or Enter opens, arrow keys move the selection; Open, Show in folder and Remove from recents on right-click), a Getting started card (six tips with their shortcuts from the keymap; its close button is remembered in the preferences and Help ▸ Getting started brings it back) and, while there are no recent files, four templates to start from. Templates: the eight starter templates as cards (thumbnail rendered from the document, cached per theme; name, description, kind and size), a search field and a kind filter, an empty state; Tab reaches every card and Enter opens it; cards and tabs are named for screen readers. A first run opens here. No Community files or drafts folder |
-| Main menu from the logo | done | generated from `catalog.rs`; popups sized to content. Submenus open on the first frame their row is hovered (a click or the keyboard opens one at once; Figma's main menu measured 2026-11-07 with synthetic pointer events: median 11 ms to open, 13 ms to switch rows) and close at once when another row is hovered; while the pointer heads for an open submenu inside the triangle to its near edge, the rows it crosses don't take over, and resting 0.3 s on one hands over; closing the menu, however it closes, clears which submenus were open, so it reopens with none (`menu_aim_tests`, 10 tests; the open delay is measured; the safe triangle and its 0.3 s rest are still tuned by feel, and Figma's main menu showed no triangle at all in that measurement, so the aim is kept pending the maintainer's decision). A menu or submenu that would run past the window's bottom moves up to fit (never above the top), and one taller than the window scrolls with the wheel, the keyboard's focus kept in view; the context menu's submenus share this (#2217, `menu_overflow_tests`). Menu and palette items that need a value ask for it first: Create link, Offset path and Move to page in a dialog of the shared controls, the language, user name, server and nudge items in Preferences, Open recent on the home screen's Recents; File ▸ Rename edits the file name in place |
+| Main menu from the logo | done | generated from `catalog.rs`; popups sized to content. Submenus open on the first frame their row is hovered (a click or the keyboard opens one at once; Figma's main menu measured 2026-11-07 with synthetic pointer events: median 11 ms to open, 13 ms to switch rows) and close at once when another row is hovered; while the pointer heads for an open submenu inside the triangle to its near edge, the rows it crosses don't take over, and resting 0.3 s on one hands over; closing the menu, however it closes, clears which submenus were open, so it reopens with none (`menu_aim_tests`, 10 tests; the open delay is measured; the safe triangle and its 0.3 s rest are still tuned by feel, and Figma's main menu showed no triangle at all in that measurement, so the aim is kept pending the maintainer's decision). A menu or submenu that would run past the window's bottom moves up to fit (never above the top), and one taller than the window scrolls with the wheel, the keyboard's focus kept in view; the context menu's submenus share this (#2217, `menu_overflow_tests`). The panels' dropdowns, button menus and context menus do the same: one taller than the window scrolls with the wheel or its scroll bar, as the Selection colors Styles menu with many colour variables did not. Menu and palette items that need a value ask for it first: Create link, Offset path and Move to page in a dialog of the shared controls, the language, user name, server and nudge items in Preferences, Open recent on the home screen's Recents; File ▸ Rename edits the file name in place |
| Keyboard shortcuts panel | done | closes when the home screen shows (#548); docked, tabbed by group like the documentation, searchable, per-platform keycaps; held keys, gestures and presentation keys listed beside the bindings; a label too long for its column ends with "…" and shows in full on hover |
| Several windows | partial | File ▸ New window, Open in new window on a tab, a tab dragged off the strip; screen-reader tree in the main window only; positions not restored |
| Multiplayer avatars, Share button | missing | waits for multiplayer |
@@ -211,6 +211,7 @@ This audit records candidates for subsequent fixes; their behaviour is unchanged
| Date | Change | Summary |
|---|---|---|
+| 2026-11-23 | patch | M3: a menu opened from a panel (a dropdown, a button's menu such as the Selection colors Styles menu, a row's context menu) ran past the window's bottom when it had more rows than fit, and the rows below couldn't be reached: with many colour variables the Styles menu showed only the first ones. egui moves a popup to keep it in the window but doesn't shorten one taller than the window. `menu_popup`, `context_popup` and the row context menus now return a `Menu` whose rows scroll with the wheel or the scroll bar once they were taller than the window last frame, as the main menu's do (#2217); a menu that fits is laid out as before and still grows with its rows. Test: `menu_scroll_tests::a_menu_taller_than_the_window_scrolls_to_its_last_row` (the page's variable mode menu of a collection with 60 modes). Numbers unchanged |
| 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 c324c02977d609c62ff83a6b064bbbd304063e0f Mon Sep 17 00:00:00 2001
From: supersfera
Date: Tue, 24 Nov 2026 07:10:15 -0800
Subject: [PATCH 33/59] 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 34/59] 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 5a875417e79540c926ac53a936dc73d4b71641fd 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 35/59] M8: frames, sections and components land on whole
pixels
Figma's help says they "always snap to the pixel grid, even if Snap to
pixel grid is disabled". In FigCraft they followed the setting like any
layer, and since #2031 a snap to a layer off the grid wins over the
grid, so a frame dragged next to a neighbour at 100.4 landed at 100.4
and the whole numbers inside it sat between pixels.
A move, resize or draw of frames, sections, components, component sets
and instances now rounds to whole pixels before and after object
snapping, whatever Snap to pixel grid says. A moved one also lands on
whole pixels of its parent (`snap::settle_on_pixels`), so a frame
already off the grid comes back onto it. Other layers keep #2031's
order: the pixel grid first, then the snap to a layer wins.
The move rounds the drag itself rather than each layer afterwards, so
the preview keeps its shifted-layers fast path for frames already on
the grid.
---
crates/engine/src/canvas/snap.rs | 21 +++++++++-
crates/engine/src/canvas/tools/drag.rs | 25 ++++++++++-
crates/engine/src/canvas/tools/draw.rs | 11 ++++-
.../engine/src/transform_behaviour_tests.rs | 42 +++++++++++++++++++
docs/mcp.md | 3 +-
docs/ui-parity.md | 5 ++-
6 files changed, 100 insertions(+), 7 deletions(-)
diff --git a/crates/engine/src/canvas/snap.rs b/crates/engine/src/canvas/snap.rs
index ff1a6b64d..329f7503c 100644
--- a/crates/engine/src/canvas/snap.rs
+++ b/crates/engine/src/canvas/snap.rs
@@ -4,13 +4,32 @@
//! guide lines (with spacing labels) for the canvas to draw in red. Vector points also snap to
//! other points (see `vectoredit::snap`); landing on one shows a marker (a zero-length guide).
-use figcraft_doc::{BoardItem, Document, NodeId};
+use figcraft_doc::{BoardItem, Document, Node, NodeId, NodeKind};
use figcraft_geom::{Affine, Point, Rect, Vec2, transform_rect_bbox};
use serde::Serialize;
use crate::guides;
use crate::tools::UNMEASURED_SNAP_PX;
+/// Whether `n` lands on whole pixels when dragged whatever Snap to pixel grid says: frames,
+/// sections, components, component sets and instances. Figma's help: they "always snap to the
+/// pixel grid, even if Snap to pixel grid is disabled". Other layers follow the setting.
+pub fn always_on_pixels(n: &Node) -> bool {
+ n.kind.is_frame_like() || matches!(n.kind, NodeKind::Section { .. })
+}
+
+/// Put `id`'s position in its parent on whole pixels when its axes are its parent's: returns
+/// whether it moved. A layer turned off its parent's axes keeps its position.
+pub fn settle_on_pixels(doc: &mut Document, id: NodeId) -> crate::Result {
+ let n = doc.get_mut(id)?;
+ let [a, b, c, d, e, f] = n.transform.as_coeffs();
+ if !guides::axis_aligned(n.transform) || (e.round() == e && f.round() == f) {
+ return Ok(false);
+ }
+ n.transform = Affine::new([a, b, c, d, e.round(), f.round()]);
+ Ok(true)
+}
+
/// A guide line to draw: from (x0, y0) to (x1, y1) in page coordinates, with an optional label
/// (a distance) at its middle; `dashed` marks a measurement's extension line.
#[derive(Clone, Debug, PartialEq, Serialize)]
diff --git a/crates/engine/src/canvas/tools/drag.rs b/crates/engine/src/canvas/tools/drag.rs
index 84ca02ba4..75e8e8c44 100644
--- a/crates/engine/src/canvas/tools/drag.rs
+++ b/crates/engine/src/canvas/tools/drag.rs
@@ -249,7 +249,11 @@ impl Session {
let raw = d;
let snap_on = self.ds().map(|ds| ds.view.snap_objects).unwrap_or(true) && !ev.cmd && !ev.ctrl;
let mut guides = Vec::new();
- if self.ds().map(|ds| ds.view.snap_pixel).unwrap_or(true) {
+ let boards = {
+ let doc = self.doc()?;
+ ids.iter().all(|i| doc.node(*i).is_some_and(crate::snap::always_on_pixels))
+ };
+ if boards || self.ds().map(|ds| ds.view.snap_pixel).unwrap_or(true) {
// Keep the box's origin on whole pixels (a rotated parent frame's, inside one);
// snapping to layers comes after, so it wins on the axes it snaps.
d = targets.round_move(d);
@@ -259,6 +263,11 @@ impl Session {
d += c;
guides = g2;
}
+ if boards {
+ // Frames, sections and components stay on whole pixels even where a layer
+ // they snap to doesn't.
+ d = targets.round_move(d);
+ }
let ids = ids.clone();
let dup = *duplicate;
let page = self.page()?;
@@ -343,6 +352,9 @@ impl Session {
doc.reparent(*m, page, None)?;
}
move_world(doc, *m, d.x, d.y)?;
+ if doc.node(*m).is_some_and(crate::snap::always_on_pixels) {
+ shifted &= !crate::snap::settle_on_pixels(doc, *m)?;
+ }
}
drop_target = (flow && target != page).then_some(target);
Ok(())
@@ -521,7 +533,13 @@ impl Session {
// The pixel grid: an upright box's dragged sides land on whole pixels (the Scale tool
// scales by the factor as dragged). Snapping to layers comes after, so it wins on the axes
// it snaps.
- if !scale_tool && self.ds().map(|d| d.view.snap_pixel).unwrap_or(true) && crate::guides::axis_aligned(frame) {
+ // Frames, sections and components land on whole pixels whatever the setting, also where a
+ // layer they snap to doesn't.
+ let boards = {
+ let doc = self.doc()?;
+ !scale_tool && crate::guides::axis_aligned(frame) && ids.iter().all(|i| doc.node(*i).is_some_and(crate::snap::always_on_pixels))
+ };
+ if boards || !scale_tool && self.ds().map(|d| d.view.snap_pixel).unwrap_or(true) && crate::guides::axis_aligned(frame) {
p = Point::new(p.x.round(), p.y.round());
}
if let Some(t) = &targets {
@@ -530,6 +548,9 @@ impl Session {
p.y += dy;
guides = g;
}
+ if boards {
+ p = Point::new(p.x.round(), p.y.round());
+ }
let q = frame.inverse() * p;
let is_line = r.single && ids.first().and_then(|i| self.doc().ok()?.node(*i).map(|n| matches!(n.kind, NodeKind::Line))).unwrap_or(false);
if scale_tool {
diff --git a/crates/engine/src/canvas/tools/draw.rs b/crates/engine/src/canvas/tools/draw.rs
index b29768afe..867567618 100644
--- a/crates/engine/src/canvas/tools/draw.rs
+++ b/crates/engine/src/canvas/tools/draw.rs
@@ -30,7 +30,10 @@ impl Session {
let tool = self.tool.tool;
let mut p = ev.p();
let mut guides = Vec::new();
- let pixel = self.ds().map(|d| d.view.snap_pixel).unwrap_or(true);
+ // Frames and sections land on whole pixels whatever the setting, also where a layer they
+ // snap to doesn't (see `snap::always_on_pixels`).
+ let board = matches!(tool, ToolId::Frame | ToolId::Section);
+ let pixel = board || self.ds().map(|d| d.view.snap_pixel).unwrap_or(true);
// The pixel grid first: snapping to layers comes after, so it wins on the axes it snaps.
if pixel {
p = Point::new(p.x.round(), p.y.round());
@@ -41,6 +44,9 @@ impl Session {
p.y += dy;
guides = g;
}
+ if board {
+ p = Point::new(p.x.round(), p.y.round());
+ }
let mut created = id;
let page = self.page()?;
// Edit ▸ Set default properties: what new shapes take (not frames, sections, slices, lines
@@ -100,6 +106,9 @@ impl Session {
n.transform = pw.inverse() * Affine::translate((r.x0, r.y0));
}
doc.insert(n, parent, None)?;
+ if board {
+ crate::snap::settle_on_pixels(doc, nid)?;
+ }
if let Some(d) = &defaults {
// Best effort: a default the shape can't take leaves it as drawn.
let _ = crate::cmd::edit::apply_copied_props("edit.setDefaultProperties", doc, nid, d);
diff --git a/crates/engine/src/transform_behaviour_tests.rs b/crates/engine/src/transform_behaviour_tests.rs
index 3c37bf6c0..e62024380 100644
--- a/crates/engine/src/transform_behaviour_tests.rs
+++ b/crates/engine/src/transform_behaviour_tests.rs
@@ -795,6 +795,48 @@ fn snapping_to_layers_wins_over_the_pixel_grid() {
assert_eq!(size(&s, b), (100.0, 151.0));
}
+#[test]
+fn frames_land_on_whole_pixels_whatever_they_snap_to() {
+ // Figma's help: frames, sections and components "always snap to the pixel grid, even if Snap
+ // to pixel grid is disabled". Other layers follow the setting.
+ let frame = |s: &mut Session, x: f64, y: f64| id(&ex(s, "frame.create", json!({"x": x, "y": y, "width": 100, "height": 100})));
+ let whole = |r: Rect| [r.x0, r.y0, r.x1, r.y1].iter().all(|v| v.fract() == 0.0);
+ let mut s = Session::new();
+ // A neighbour off the pixel grid, as a scaled or imported layer leaves one: its right edge at
+ // 100.4.
+ rect(&mut s, 0.4, 0.0, 100.0, 100.0, None);
+ let f = frame(&mut s, 300.0, 300.0);
+ let r = rect(&mut s, 300.0, 600.0, 100.0, 100.0, None);
+ // Moved next to it, a rectangle snaps onto 100.4 and the frame to the whole pixel there.
+ ex(&mut s, "select.set", json!({"ids": [r]}));
+ drag(&mut s, Point::new(350.0, 650.0), Point::new(151.5, 650.0), Mods::default());
+ assert!(near(bounds(&s, r).x0, 100.4), "{:?}", bounds(&s, r));
+ ex(&mut s, "select.set", json!({"ids": [f]}));
+ drag(&mut s, Point::new(350.0, 350.0), Point::new(151.5, 350.0), Mods::default());
+ assert_eq!(bounds(&s, f).origin(), Point::new(100.0, 300.0), "moved by the snap, onto the whole pixel");
+ // With Snap to pixel grid off, frames still move, resize and draw on whole pixels.
+ ex(&mut s, "view.snapPixel", json!({"on": false}));
+ ex(&mut s, "view.snapObjects", json!({"on": false}));
+ drag(&mut s, Point::new(150.0, 350.0), Point::new(160.3, 360.6), Mods::default());
+ assert_eq!(bounds(&s, f).origin(), Point::new(110.0, 311.0), "moved");
+ drag(&mut s, Point::new(210.0, 411.0), Point::new(250.4, 450.6), Mods::default());
+ assert_eq!(size(&s, f), (140.0, 140.0), "resized");
+ ex(&mut s, "tool.set", json!({"tool": "frame"}));
+ drag(&mut s, Point::new(500.3, 500.6), Point::new(560.6, 540.2), Mods::default());
+ let drawn = s.selection()[0];
+ assert!(whole(bounds(&s, drawn)), "drawn: {:?}", bounds(&s, drawn));
+ // A frame already off the pixel grid lands on it once moved.
+ ex(&mut s, "tool.set", json!({"tool": "move"}));
+ let off = frame(&mut s, 800.4, 800.7);
+ ex(&mut s, "select.set", json!({"ids": [off]}));
+ drag(&mut s, Point::new(850.0, 850.0), Point::new(860.0, 850.0), Mods::default());
+ assert!(whole(bounds(&s, off)), "{:?}", bounds(&s, off));
+ // A rectangle follows the pointer.
+ ex(&mut s, "select.set", json!({"ids": [r]}));
+ drag(&mut s, Point::new(150.0, 650.0), Point::new(160.3, 650.0), Mods::default());
+ assert!(near(bounds(&s, r).x0, 110.7), "{:?}", bounds(&s, r));
+}
+
#[test]
fn corner_cursors_stay_diagonal_whatever_the_proportions() {
let mut s = session();
diff --git a/docs/mcp.md b/docs/mcp.md
index c1f3992a9..dce9cf986 100644
--- a/docs/mcp.md
+++ b/docs/mcp.md
@@ -2173,7 +2173,8 @@ turned off 0°.
`cmd` while resizing a frame ignores its children's constraints (they stay where they are) and,
as in every drag, turns snapping off. Moves snap to edges, centres and equal spacing (the gaps
show in `tool.overlay.guides` with labels); with the pixel grid on, moves and resizes land on
- whole pixels.
+ whole pixels. Frames, sections, components and instances always land on whole pixels of their
+ parent, with the pixel grid off too and after a snap to a layer off the grid.
Tool failures come back as results with `isError: true` and a message; protocol problems (unknown
tool, malformed JSON, wrong parameter types) are JSON-RPC errors. Nothing crashes the server.
diff --git a/docs/ui-parity.md b/docs/ui-parity.md
index d756e71b0..d0277b50a 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 (frames, sections, components and instances move, resize and draw on whole pixels whatever Snap to pixel grid says and whatever they snap to, as Figma's help says; 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:
@@ -75,7 +75,7 @@ interaction feel only partly compared: the interactions measured so far, case by
| Smart guides: edges, centres, equal spacing (between two layers or continuing a row's gap, labelled), spacing labels, parent, layout grid, ruler guides | done | red, `snap.rs`; a guide dragged out of a ruler or moved snaps to layer edges and centres too (Snap to Objects; Cmd/Ctrl suspends), on its own axis only; page guides see the page's top-level layers, frame guides the frame's box, layout grids and every layer in it, along a rotated frame's own axes; the object snap threshold is 4.5 screen pixels, measured against Figma (snapped at a gap of 4.4 screen px, not at 4.6, at 100% and 200% zoom, 2026-11-08; the equal-spacing snap shares it), but the ruler-guide and rotation-origin thresholds (5 px), the red guide's look and snapping with Snap to pixel grid off are not yet compared with Figma's (`guide_snap_tests`, `transform_behaviour_tests`) |
| Ctrl to suspend snapping while dragging (macOS) | done | Control on macOS (Cmd keeps working), Ctrl elsewhere; moving, resizing and drawing |
| Measure (Alt hover, Cmd+Alt nested, Shift+Alt padding/gaps) | done | labels never overlap; the arrows still nudge while measuring (Shift: the big step) and the distances follow; the selection's handles and size label hide while measuring (`measure_nudge_tests`, #894) |
-| Pixel grid snapping, pixel preview, 2x preview | done | moves, resizes and new shapes land on whole pixels; the pixel grid shows from 400% (`view_behaviour_tests`) |
+| Pixel grid snapping, pixel preview, 2x preview | done | moves, resizes and new shapes land on whole pixels; frames, sections and components always do, also with snapping off or next to a layer off the grid, as the help says (`frames_land_on_whole_pixels_whatever_they_snap_to`); the pixel grid shows from 400% (`view_behaviour_tests`) |
| Numeric fields: arithmetic, scrubbing by dragging the label (or the field itself with Alt held), mixed values | done | Numeric panels use `widgets::number_field`; Corner smoothing has an original code-drawn icon, a 24 pt drag target and an accessible name, with live changes, fractional values preserved across consecutive drags, Shift/Alt rates, 0–100% clamping and one-step undo/redo (`corner_individual_tests`); Typography line height, letter spacing and paragraph spacing share its leading-icon scrub logic (#373), retaining their existing unit parsing, Auto/Mixed values, variable chips and selected-character targeting (`typography_scrub_tests`). Scrubbing the label: half a step a point (0.5 px; 0.5% of opacity, 0.5° of rotation), as measured in Figma on 2026-11-08 (a 12.2 px drag moved X by 6, a 61.2 px drag by 31; rotation by 6° and opacity by 5% for 12.2 px), ten times that with Shift (5 steps a point) and a tenth of that with Alt (0.05 steps a point; neither measured), each stretch at the rate held while it was dragged, one undo step when let go; past the edge of the screen it goes on where the platform reports the mouse's own motion (desktop), otherwise it stops there. Arrow keys: Up/Down step a pixel field by the small nudge and Shift by the big nudge (the preferences), other fields by their own step and ten of it; they work while typing (from what is typed) and with the keyboard on the field. Typing: `+ - * /`, brackets, units (`px`, `°`, `%`, `x`, `ms`), a decimal comma; `+10`, `*2`, `/4` are relative to the value, and `50%`, `+10%`, `-10%` too in a field that isn't a percentage. Enter, Tab or a click elsewhere commits (Tab and Shift+Tab move to the next and previous control), Escape restores; a field left as it was commits nothing (no undo step, and a rounded display isn't written back). Mixed values show "Mixed": a number sets them all, a relative edit or an arrow key goes to each layer from its own value in one undo step, for X, Y, W, H, rotation, opacity, corner radius and stroke weight (elsewhere `+10` on Mixed sets 10 and `*2` does nothing) (`field_tests`). Left: scrubbing a Mixed field (nothing happens), `x2`-style suffix edits, the pointer isn't wrapped to the other side of the screen; the Shift and Alt rates and the speed by height are not compared with Figma's, and the rotation scrub's direction is not confirmed; while scrubbing, the pointer's height sets the speed (more than 100 points above where the scrub began: 2x; that far below: 1/2; twice as far: 1/4), a toast names the speed when it changes, and Shift and Alt multiply as before ("Change the speed that you scrub the field by moving the cursor towards the top of the screen to increase the scrubbing speed, or towards the bottom of the screen to reduce it", Scrub fields; #1837) |
| Transform box at small sizes | done | a press inside a layer smaller than its handles moves it, the nearest handle wins, handles answer just outside and are hidden under 16 px on screen; cursors follow each handle and the box's rotation |
| Locked layers | done | selectable from the layers panel; no handles, not dragged with the rest of a selection |
@@ -211,6 +211,7 @@ This audit records candidates for subsequent fixes; their behaviour is unchanged
| Date | Change | Summary |
|---|---|---|
+| 2026-11-24 | patch | M8: Figma's help says frames, sections and components always snap to the pixel grid, even with Snap to pixel grid off. In FigCraft they followed the setting like any layer, and a snap to a layer off the grid (a neighbour scaled or imported to 100.4) won over it (#2031), so a frame could land between pixels and the whole numbers inside it sat off the grid. Now a frame, section, component, component set or instance dragged, resized or drawn lands on whole pixels of its parent in either case; a frame off the grid lands on it once moved. Other layers keep the setting, and a snap to a layer still wins for them. Test: `transform_behaviour_tests::frames_land_on_whole_pixels_whatever_they_snap_to`. |
| 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 36/59] 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 37/59] 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 38/59] 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 39/59] =?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 e0ca0604ae1804688a47fc2536fdbed5f1e726c8 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Tue, 24 Nov 2026 18:24:26 -0500
Subject: [PATCH 40/59] A scrolling panel menu stays open on a scroll bar click
and keeps its rows' ids
A click on a scrolling menu's scroll bar track scrolled it and then closed
it: the menus close on any click, and egui counts the bar's click as one,
so a row the click brought into view could not be picked. The menu now
ignores clicks for the frame its scroll bar is clicked; row clicks and
clicks outside still close it.
The rows were also laid out in the scroll area's own UIs only while the
menu scrolled, so their ids changed when a resized window started or
stopped the scrolling, and the row the keyboard was on lost it. Both
ways now lay the rows out in one UI with a scope id from the popup's.
---
crates/ui-egui/src/menu_scroll_tests.rs | 54 +++++++++++++++++++++++++
crates/ui-egui/src/panels/right/menu.rs | 18 +++++++--
docs/ui-parity.md | 2 +-
3 files changed, 69 insertions(+), 5 deletions(-)
diff --git a/crates/ui-egui/src/menu_scroll_tests.rs b/crates/ui-egui/src/menu_scroll_tests.rs
index 8b12b2495..c58ae7dc8 100644
--- a/crates/ui-egui/src/menu_scroll_tests.rs
+++ b/crates/ui-egui/src/menu_scroll_tests.rs
@@ -58,3 +58,57 @@ fn a_menu_taller_than_the_window_scrolls_to_its_last_row() {
let picked = coll.modes.iter().find(|m| m.name == "Mode 59").unwrap().id.clone();
assert_eq!(doc.node(page).unwrap().var_modes.get(&coll.id), Some(&picked), "the last mode is picked");
}
+
+/// The page's variable mode menu of a collection with `n` modes, opened; what it drew.
+fn mode_menu(n: usize) -> (Ui, Vec) {
+ let modes: Vec = (0..n).map(|k| format!("Mode {k}")).collect();
+ let mut s = Session::new();
+ s.execute("variable.createCollection", &json!({"name": "Theme", "modes": modes})).unwrap();
+ s.execute("select.set", &json!({"ids": []})).unwrap();
+ let mut u = Ui::new(s);
+ let shapes = flat(&u.frame_output(vec![]).shapes);
+ let menu = click(&mut u, text_center(&shapes, "Auto (Mode 0)"));
+ (u, menu)
+}
+
+/// A press and release of `key`, and a frame after it.
+fn key(u: &mut Ui, key: egui::Key) {
+ for pressed in [true, false] {
+ u.frame(vec![Event::Key { key, physical_key: None, pressed, repeat: false, modifiers: Modifiers::NONE }]);
+ }
+ u.frame(vec![]);
+}
+
+#[test]
+fn a_click_on_the_scroll_bar_track_keeps_the_menu_open() {
+ let (mut u, menu) = mode_menu(60);
+ let first = at(&menu, " Mode 0").expect("the menu is open");
+ u.ctx.enable_accesskit();
+ let out = u.frame_output(vec![Event::PointerMoved(first)]);
+ let nodes = out.platform_output.accesskit_update.expect("an AccessKit update").nodes;
+ let bar = nodes
+ .iter()
+ .filter(|(_, n)| n.role() == egui::accesskit::Role::ScrollBar)
+ .filter_map(|(_, n)| n.bounds())
+ .find(|b| b.x0 as f32 > first.x && (b.y0..b.y1).contains(&f64::from(first.y)))
+ .expect("the menu's scroll bar");
+ let shapes = click(&mut u, Pos2::new(((bar.x0 + bar.x1) / 2.0) as f32, (bar.y1 - 10.0) as f32));
+ assert!(texts(&shapes).iter().any(|(t, ..)| t.starts_with(" Mode ")), "the menu is still open");
+ assert!(at(&shapes, " Mode 0").is_none_or(|p| p.y < first.y), "the click on the track scrolled the rows");
+}
+
+#[test]
+fn the_keyboard_stays_on_its_row_when_the_window_shrinks_until_the_menu_scrolls_and_grows_back() {
+ let (mut u, _) = mode_menu(25);
+ for _ in 0..3 {
+ key(&mut u, egui::Key::ArrowDown);
+ }
+ let row = u.ctx.memory(|m| m.focused()).expect("a row has the keyboard");
+ for height in [400.0, 900.0] {
+ u.screen = vec2(1440.0, height);
+ for _ in 0..10 {
+ u.frame(vec![]);
+ }
+ assert_eq!(u.ctx.memory(|m| m.focused()), Some(row), "the same row has the keyboard at a window {height} pt tall");
+ }
+}
diff --git a/crates/ui-egui/src/panels/right/menu.rs b/crates/ui-egui/src/panels/right/menu.rs
index 15c6d1af2..a6c46af61 100644
--- a/crates/ui-egui/src/panels/right/menu.rs
+++ b/crates/ui-egui/src/panels/right/menu.rs
@@ -89,9 +89,17 @@ impl Menu {
/// Show the menu while it is open. Its rows `content` scroll with the wheel or the scroll bar
/// once they were taller than the window last frame, as the main menu's do (#2217); a menu
/// that fits is laid out as it is, so it still grows with its rows (a scroll area in a popup
- /// would keep the popup's last height).
+ /// would keep the popup's last height). A click on the scroll bar scrolls and leaves the menu
+ /// open. The rows have the same ids scrolling or not, so the row the keyboard is on keeps it
+ /// when the window's height changes which of the two the menu does.
pub fn show(self, content: impl FnOnce(&mut Ui) -> R) -> Option> {
- self.0.show(|ui| {
+ let rows = self.0.get_id().with("menu_rows");
+ let bar_key = rows.with("scroll_bar");
+ let ctx = self.0.ctx().clone();
+ let bar_clicked = ctx.data(|d| d.get_temp::(bar_key)).is_some_and(|bar| ctx.interaction_snapshot(|i| i.clicked == Some(bar)));
+ let popup = if bar_clicked { self.0.close_behavior(egui::PopupCloseBehavior::IgnoreClicks) } else { self.0 };
+ let rows_ui = egui::UiBuilder::new().scope_id(rows);
+ popup.show(|ui| {
let window = ui.ctx().content_rect().height();
let max_height = (window - ui.style().spacing.menu_margin.sum().y - 2.0 * MENU_WINDOW_GAP).max(0.0);
let rows_height = ui.scope_id().with("menu_rows_height");
@@ -101,10 +109,12 @@ impl Menu {
.id_salt("menu_rows")
.max_height(max_height)
.scroll_source(egui::scroll_area::ScrollSource::MOUSE_WHEEL | egui::scroll_area::ScrollSource::SCROLL_BAR)
- .show(ui, content);
+ .show(ui, |ui| ui.scope_builder(rows_ui, content).inner);
+ // egui's id for a scroll area's vertical bar (a test in `menu_scroll_tests` clicks it).
+ ui.data_mut(|d| d.insert_temp(bar_key, out.id.with(1_usize)));
(out.inner, out.content_size.y)
} else {
- let inner = content(ui);
+ let inner = ui.scope_builder(rows_ui, content).inner;
let height = ui.min_rect().height();
if height > max_height {
ui.ctx().request_repaint();
diff --git a/docs/ui-parity.md b/docs/ui-parity.md
index 448ce05a8..300f2b194 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-23 | patch | M3: a menu opened from a panel (a dropdown, a button's menu such as the Selection colors Styles menu, a row's context menu) ran past the window's bottom when it had more rows than fit, and the rows below couldn't be reached: with many colour variables the Styles menu showed only the first ones. egui moves a popup to keep it in the window but doesn't shorten one taller than the window. `menu_popup`, `context_popup` and the row context menus now return a `Menu` whose rows scroll with the wheel or the scroll bar once they were taller than the window last frame, as the main menu's do (#2217); a menu that fits is laid out as before and still grows with its rows. Test: `menu_scroll_tests::a_menu_taller_than_the_window_scrolls_to_its_last_row` (the page's variable mode menu of a collection with 60 modes). Numbers unchanged |
+| 2026-11-23 | patch | M3: a menu opened from a panel (a dropdown, a button's menu such as the Selection colors Styles menu, a row's context menu) ran past the window's bottom when it had more rows than fit, and the rows below couldn't be reached: with many colour variables the Styles menu showed only the first ones. egui moves a popup to keep it in the window but doesn't shorten one taller than the window. `menu_popup`, `context_popup` and the row context menus now return a `Menu` whose rows scroll with the wheel or the scroll bar once they were taller than the window last frame, as the main menu's do (#2217); a menu that fits is laid out as before and still grows with its rows. A click on the scroll bar scrolls and leaves the menu open, and the row the keyboard is on keeps it when a resized window starts or stops the scrolling. Tests: `menu_scroll_tests` (the page's variable mode menu of a collection with 60 modes, and 25 for the resize). Numbers unchanged |
| 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 0ada8463ab89a3b67138d0b37598a92634742bb8 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Tue, 24 Nov 2026 18:27:34 -0500
Subject: [PATCH 41/59] Paste over selection: absolutely positioned layers
aren't in the flow
Several absolutely positioned children of one auto layout frame took the
flow branch, so the copies went to the last one's top-left, over it. The
layout doesn't place them, so they now take the geometric branch like
layers elsewhere: below the lowest, at the selection's own gap.
---
crates/engine/src/cmd/edit/clipboard.rs | 8 ++++----
crates/engine/src/paste_over_tests.rs | 15 +++++++++++++++
2 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/crates/engine/src/cmd/edit/clipboard.rs b/crates/engine/src/cmd/edit/clipboard.rs
index 9e51d629d..bc017e333 100644
--- a/crates/engine/src/cmd/edit/clipboard.rs
+++ b/crates/engine/src/cmd/edit/clipboard.rs
@@ -415,8 +415,8 @@ pub(super) fn paste_over(s: &mut Session, _p: &Value) -> Result {
/// The selected layer Paste over selection pastes after, and where the copies' top-left goes.
///
-/// One layer: that layer, at its position. Several in one auto layout frame: the last of them in the
-/// flow, which the layout follows. Several elsewhere: the lowest (then rightmost), with the copies
+/// One layer: that layer, at its position. Several in one auto layout frame's flow (none absolutely
+/// positioned): the last of them in the flow, which the layout follows. Several elsewhere: the lowest (then rightmost), with the copies
/// below it, as far below as it is from the selected layers above it. A selection with nothing above
/// its lowest layer is a row: the copies go right of the rightmost, as far as it is from its
/// neighbour on the left. Layers that overlap every way get the copies right under the lowest.
@@ -427,8 +427,8 @@ fn last_seen(doc: &Document, sel: &[NodeId]) -> Option<(NodeId, Option<(f64, f64
return Some((first, top_left(first)));
}
let parent = doc.node(first).and_then(|n| n.parent);
- let one_flow =
- parent.and_then(|p| doc.node(p)).is_some_and(|p| p.layout.is_some()) && sel.iter().all(|i| doc.node(*i).is_some_and(|n| n.parent == parent));
+ let one_flow = parent.and_then(|p| doc.node(p)).is_some_and(|p| p.layout.is_some())
+ && sel.iter().all(|i| doc.node(*i).is_some_and(|n| n.parent == parent && !n.child_layout.absolute));
if one_flow {
let last = sel.iter().copied().max_by_key(|i| doc.index_in_parent(*i))?;
return Some((last, top_left(last)));
diff --git a/crates/engine/src/paste_over_tests.rs b/crates/engine/src/paste_over_tests.rs
index 3aaf7fbd7..849e93ee7 100644
--- a/crates/engine/src/paste_over_tests.rs
+++ b/crates/engine/src/paste_over_tests.rs
@@ -78,3 +78,18 @@ fn several_overlapping_layers_get_the_copy_right_under_the_lowest() {
let pasted = paste_over(&mut s, vec![b, a]);
assert_eq!(top_left(&s, pasted[0]), (50.0, 130.0));
}
+
+#[test]
+fn several_absolute_layers_of_an_auto_layout_get_the_copy_below_the_lowest() {
+ let mut s = Session::new();
+ let rows: Vec =
+ (0..3).map(|k| id(&s.execute("shape.rectangle", &json!({"x": 0, "y": k * 30, "width": 40, "height": 20})).unwrap())).collect();
+ s.execute("layout.add", &json!({"ids": rows, "direction": "vertical"})).unwrap();
+ s.execute("node.set", &json!({"ids": rows, "props": {"absolute": true}})).unwrap();
+ s.execute("edit.copy", &json!({"ids": [rows[0]]})).unwrap();
+ let (x, y0) = top_left(&s, rows[1]);
+ let (_, y1) = top_left(&s, rows[2]);
+ let pasted = paste_over(&mut s, vec![rows[2], rows[0], rows[1]]);
+ assert_eq!(pasted.len(), 1);
+ assert_eq!(top_left(&s, pasted[0]), (x, y1 + 20.0 + (y1 - y0 - 20.0)), "the layout doesn't place them, so below the lowest");
+}
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 42/59] 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 43/59] 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 44/59] 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 45/59] 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 e8057eeaefc76799452189cc026c745fe8fd57f5 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Tue, 24 Nov 2026 18:42:45 -0500
Subject: [PATCH 46/59] A main the library holds only for an offered component
pastes as a copy
published_main took any main the library's manifest lists as published.
The manifest also lists the components offered ones use, hidden from
publishing included, with published false, so such a hidden main pasted
into another file became an instance of the library's copy. It now has
to be offered itself, and otherwise pastes as a copy of itself, as a
hidden component the library doesn't hold already did. Instances pasted
from the library file still take such a main from the library, since an
offered component brings it along.
---
crates/engine/src/assets/library.rs | 7 +++++--
crates/engine/src/assets/library/tests.rs | 12 +++++++++++-
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/crates/engine/src/assets/library.rs b/crates/engine/src/assets/library.rs
index 99f4b07dd..c557bdcf7 100644
--- a/crates/engine/src/assets/library.rs
+++ b/crates/engine/src/assets/library.rs
@@ -1485,10 +1485,13 @@ fn from_published(doc: &mut Document, src: &Document, src_path: Option<&str>, ro
/// The main in `doc` that pasting main component `main`, copied from another document `src`,
/// makes an instance of: `doc`'s copy of it from the library `src` publishes, as
-/// [`adopt_pasted`] uses for instances. `None` when `src` doesn't publish it, so the paste copies
-/// the main itself.
+/// [`adopt_pasted`] uses for instances. `None` when `src` doesn't offer it, so the paste copies
+/// the main itself: also when the library holds it only because an offered component uses it.
pub fn published_main(doc: &mut Document, src: &Document, src_path: Option<&str>, main: NodeId) -> Result> {
let Some(root) = asset_root(src, main) else { return Ok(None) };
+ if !src.published.as_ref().and_then(|l| l.manifest.component(root)).is_some_and(|a| a.published) {
+ return Ok(None);
+ }
Ok(from_published(doc, src, src_path, &[root])?.get(&main).copied())
}
diff --git a/crates/engine/src/assets/library/tests.rs b/crates/engine/src/assets/library/tests.rs
index ca4233381..5edee822f 100644
--- a/crates/engine/src/assets/library/tests.rs
+++ b/crates/engine/src/assets/library/tests.rs
@@ -698,7 +698,8 @@ fn library_links_follow_a_moved_folder() {
/// A main component copied from a library file and pasted into another file is an instance of it
/// from that library, which gets enabled, as pasting an instance of it is; a variant is an instance
-/// of that variant. A component the library doesn't offer pastes as a copy of itself.
+/// of that variant. A component the library doesn't offer pastes as a copy of itself, also one the
+/// library holds because an offered component uses it.
#[test]
fn a_main_pasted_from_its_library_file_is_an_instance_of_it() {
let d = dir("paste-main");
@@ -719,7 +720,13 @@ fn a_main_pasted_from_its_library_file_is_an_instance_of_it() {
ex(&mut s, "component.combineVariants", json!({"ids": sizes.clone()}));
let spare = idv(&ex(&mut s, "frame.create", json!({"x": 300, "y": 300, "width": 10, "height": 10, "name": "_Spare"})));
let spare = idv(&ex(&mut s, "component.create", json!({"ids": [spare]})));
+ let icon = idv(&ex(&mut s, "frame.create", json!({"x": 400, "y": 300, "width": 10, "height": 10, "name": "_Icon"})));
+ let icon = idv(&ex(&mut s, "component.create", json!({"ids": [icon]})));
+ let badge = idv(&ex(&mut s, "frame.create", json!({"x": 500, "y": 300, "width": 30, "height": 30, "name": "Badge"})));
+ ex(&mut s, "instance.create", json!({"component": icon, "x": 5, "y": 5, "parent": badge}));
+ ex(&mut s, "component.create", json!({"ids": [badge]}));
let lid = publish_to(&mut s, &lib_path);
+ assert!(s.doc().unwrap().published.as_ref().unwrap().manifest.component(icon).is_some_and(|a| !a.published));
let at = s.doc().unwrap().world_bounds(k.button).unwrap();
ex(&mut s, "file.new", json!({"name": "Design"}));
let paste = |s: &mut Session, main: NodeId| -> NodeId {
@@ -751,6 +758,9 @@ fn a_main_pasted_from_its_library_file_is_an_instance_of_it() {
let copy = paste(&mut s, spare);
assert!(matches!(node(&s, copy).kind, NodeKind::Component { .. }), "not offered by the library: a copy");
assert!(!s.doc().unwrap().is_remote(copy));
+ let icon_copy = paste(&mut s, icon);
+ assert!(matches!(node(&s, icon_copy).kind, NodeKind::Component { .. }), "only used by an offered component: a copy");
+ assert!(!s.doc().unwrap().is_remote(icon_copy));
healthy(&s);
let _ = std::fs::remove_dir_all(d);
}
From a69319e8bd1631d87d910d95792628ea628fb9a8 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Tue, 24 Nov 2026 18:46:30 -0500
Subject: [PATCH 47/59] Frames resized together or dropped into a frame land on
whole pixels too
Resizing several frames at once rounded only the pointer, and each frame
took its share of the scale as is: two 100 wide frames resized from 300
to 400 became 133.33 wide, one at 266.67. Each one now has its edges on
the nearest whole pixel of its parent, so the box still follows the
drag, at most half a pixel off per edge, and is never less than a pixel.
A frame moved into another frame was settled on whole pixels of the
parent it was dragged in, then reparented on the drop with its place on
the page kept, so in a frame off the grid it sat at .5 in it. It is
settled again in the frame it is dropped into.
---
crates/engine/src/canvas/tools/drag.rs | 29 ++++++++++++++++++-
crates/engine/src/canvas/tools/draw.rs | 5 ++++
.../engine/src/transform_behaviour_tests.rs | 25 ++++++++++++++++
3 files changed, 58 insertions(+), 1 deletion(-)
diff --git a/crates/engine/src/canvas/tools/drag.rs b/crates/engine/src/canvas/tools/drag.rs
index 75e8e8c44..36c38f45d 100644
--- a/crates/engine/src/canvas/tools/drag.rs
+++ b/crates/engine/src/canvas/tools/drag.rs
@@ -671,8 +671,16 @@ impl Session {
let lin = (mirror * local).with_translation(Vec2::ZERO);
let origin = Point::new(x0 + center.x * sx, y0 + center.y * sy) - lin * Point::new(w2 / 2.0, h2 / 2.0);
let kept = if keeps(doc, *id) { crate::cmd::props::children_worlds(doc, *id) } else { Vec::new() };
- doc.set_world_transform(*id, frame * lin.with_translation(origin))?;
+ let (t, w2, h2) = if boards {
+ on_whole_pixels(doc, *id, frame * lin.with_translation(origin), w2, h2)
+ } else {
+ (frame * lin.with_translation(origin), w2, h2)
+ };
+ doc.set_world_transform(*id, t)?;
crate::cmd::props::resize_node(doc, *id, w2, h2)?;
+ if boards {
+ crate::snap::settle_on_pixels(doc, *id)?;
+ }
crate::cmd::props::restore_worlds(doc, &kept)?;
}
Ok(())
@@ -707,6 +715,25 @@ impl Session {
}
}
+/// `world` and the size `w` x `h` a layer of a resized selection takes, moved so its box in its
+/// parent has its edges on whole pixels, each on the nearest one and the box at least a pixel
+/// wide: a frame resized with others lands on whole pixels as one resized alone does. A layer
+/// turned or scaled in its parent keeps them.
+fn on_whole_pixels(doc: &Document, id: NodeId, world: Affine, w: f64, h: f64) -> (Affine, f64, f64) {
+ let pw = doc.node(id).and_then(|n| n.parent).map_or(Affine::IDENTITY, |p| doc.world_transform(p));
+ let local = pw.inverse() * world;
+ let [a, b, c, d, e, f] = local.as_coeffs();
+ if !crate::guides::axis_aligned(local) || (a.abs() - 1.0).abs() > 1e-9 || (d.abs() - 1.0).abs() > 1e-9 {
+ return (world, w, h);
+ }
+ let edges = |at: f64, flip: bool, len: f64| if flip { (at - len, at) } else { (at, at + len) };
+ let ((x0, x1), (y0, y1)) = (edges(e, a < 0.0, w), edges(f, d < 0.0, h));
+ let (x0, y0) = (x0.round(), y0.round());
+ let (w, h) = ((x1.round() - x0).max(1.0), (y1.round() - y0).max(1.0));
+ let (e, f) = (if a < 0.0 { x0 + w } else { x0 }, if d < 0.0 { y0 + h } else { y0 });
+ (pw * Affine::new([a, b, c, d, e, f]), w, h)
+}
+
/// Moving `moving` by the same offset moves nothing else and changes nothing about them but where
/// they are: none is inside another (it would move twice) or placed by its parent's auto layout
/// (the layout would put it back, or close the gap it leaves).
diff --git a/crates/engine/src/canvas/tools/draw.rs b/crates/engine/src/canvas/tools/draw.rs
index 867567618..0eaee1cae 100644
--- a/crates/engine/src/canvas/tools/draw.rs
+++ b/crates/engine/src/canvas/tools/draw.rs
@@ -165,6 +165,11 @@ impl Session {
}
// A layer can't go into itself; it stays where it is.
let _ = d.reparent(*m, target, None);
+ // Frames, sections and components land on whole pixels of the frame
+ // they are dropped into too.
+ if d.node(*m).is_some_and(crate::snap::always_on_pixels) {
+ crate::snap::settle_on_pixels(d, *m)?;
+ }
}
crate::normalize(ds.doc_mut(), &before);
}
diff --git a/crates/engine/src/transform_behaviour_tests.rs b/crates/engine/src/transform_behaviour_tests.rs
index e62024380..a4fa9289c 100644
--- a/crates/engine/src/transform_behaviour_tests.rs
+++ b/crates/engine/src/transform_behaviour_tests.rs
@@ -837,6 +837,31 @@ fn frames_land_on_whole_pixels_whatever_they_snap_to() {
assert!(near(bounds(&s, r).x0, 110.7), "{:?}", bounds(&s, r));
}
+#[test]
+fn frames_resized_together_each_land_on_whole_pixels() {
+ let mut s = session();
+ let frame = |s: &mut Session, x: f64| id(&ex(s, "frame.create", json!({"x": x, "y": 0, "width": 100, "height": 100})));
+ let (a, b) = (frame(&mut s, 0.0), frame(&mut s, 200.0));
+ ex(&mut s, "select.set", json!({"ids": [a, b]}));
+ // 300 wide to 400: a third more, so each frame alone would be 133.33 wide.
+ drag(&mut s, Point::new(300.0, 100.0), Point::new(400.0, 100.0), Mods::default());
+ assert_eq!(bounds(&s, a), Rect::new(0.0, 0.0, 133.0, 100.0));
+ assert_eq!(bounds(&s, b), Rect::new(267.0, 0.0, 400.0, 100.0));
+}
+
+#[test]
+fn a_frame_dropped_into_a_frame_off_the_pixel_grid_lands_on_its_whole_pixels() {
+ let mut s = session();
+ let target = id(&ex(&mut s, "frame.create", json!({"x": 300.5, "y": 0.5, "width": 300, "height": 300})));
+ let f = id(&ex(&mut s, "frame.create", json!({"x": 0, "y": 0, "width": 50, "height": 50})));
+ ex(&mut s, "select.set", json!({"ids": [f]}));
+ drag(&mut s, Point::new(25.0, 25.0), Point::new(425.0, 125.0), Mods::default());
+ let n = s.doc().unwrap().node(f).unwrap().clone();
+ assert_eq!(n.parent, Some(target));
+ let [.., x, y] = n.transform.as_coeffs();
+ assert_eq!((x.fract(), y.fract()), (0.0, 0.0), "at {x}, {y} in the frame");
+}
+
#[test]
fn corner_cursors_stay_diagonal_whatever_the_proportions() {
let mut s = session();
From 16976d07c37f0e65a20a4e4fd58959ff11348ab9 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Tue, 24 Nov 2026 18:52:46 -0500
Subject: [PATCH 48/59] A text layer's name counts as unique only over all of a
variant's text layers
The name fallback counted names after path matching had taken its layers,
so with a/Label and b/Label switching to a/Label and c/Label, a/Label
matched by path and the two leftovers looked unique: text typed into
b/Label landed in c/Label, although Label names two layers on each side.
Names are now counted over every text layer outside nested instances,
matched ones too, and only then limited to the unmatched ones, as the
rule says: exactly one layer of that name on each side.
---
crates/engine/src/assets/components/sync.rs | 24 +++++++++++++-------
crates/engine/src/assets/components/tests.rs | 13 +++++++++--
2 files changed, 27 insertions(+), 10 deletions(-)
diff --git a/crates/engine/src/assets/components/sync.rs b/crates/engine/src/assets/components/sync.rs
index d0e7a6eac..7ef3fed8c 100644
--- a/crates/engine/src/assets/components/sync.rs
+++ b/crates/engine/src/assets/components/sync.rs
@@ -115,15 +115,23 @@ fn match_layers(
}
m.map.insert(*s, nid);
}
- match_text_by_name(doc, inst, component, old, &mut m);
+ match_text_by_name(doc, inst, component, src, old, &mut m);
m
}
/// Main text layers nothing matched take the unmatched old text layer of the same name, when
/// exactly one of each has it: text typed into an instance stays when it switches to a variant that
/// nests the same text layer in other frames (its name path differs). Only layers outside nested
-/// instances, which rebuild from their own mains.
-fn match_text_by_name(doc: &Document, inst: NodeId, component: NodeId, old: &BTreeMap>, m: &mut Matched) {
+/// instances, which rebuild from their own mains. Names are counted over all those text layers,
+/// matched ones too, so a name two layers share on either side never pairs by elimination.
+fn match_text_by_name(
+ doc: &Document,
+ inst: NodeId,
+ component: NodeId,
+ src: &[NodeId],
+ old: &BTreeMap>,
+ m: &mut Matched,
+) {
fn unique(pairs: impl Iterator- ) -> BTreeMap
{
let mut seen: BTreeMap> = BTreeMap::new();
for (k, id) in pairs {
@@ -132,19 +140,19 @@ fn match_text_by_name(doc: &Document, inst: NodeId, component: NodeId, old: &BTr
seen.into_iter().filter_map(|(k, id)| Some((k, id?))).collect()
}
let text = |n: &Node| matches!(n.kind, NodeKind::Text(_));
- let mains = unique(
- m.fresh.iter().filter_map(|s| doc.node(*s)).filter(|s| text(s) && outside_nested(doc, s.id, component)).map(|s| (s.name.clone(), s.id)),
- );
+ let mut mains =
+ unique(src.iter().filter_map(|s| doc.node(*s)).filter(|s| text(s) && outside_nested(doc, s.id, component)).map(|s| (s.name.clone(), s.id)));
+ mains.retain(|_, s| m.fresh.contains(s));
if mains.is_empty() {
return;
}
let olds = unique(
old.iter()
- .filter(|(id, o)| text(o) && !m.used.contains(id) && outside_nested(doc, **id, inst))
+ .filter(|(id, o)| text(o) && outside_nested(doc, **id, inst))
.map(|(id, o)| (o.source.and_then(|s| doc.node(s)).map_or(&o.name, |s| &s.name).clone(), *id)),
);
for (name, s) in mains {
- if let Some(o) = olds.get(&name) {
+ if let Some(o) = olds.get(&name).filter(|o| !m.used.contains(*o)) {
m.used.insert(*o);
m.map.insert(s, *o);
m.fresh.retain(|f| *f != s);
diff --git a/crates/engine/src/assets/components/tests.rs b/crates/engine/src/assets/components/tests.rs
index 6bc8e83c5..ea5542c9d 100644
--- a/crates/engine/src/assets/components/tests.rs
+++ b/crates/engine/src/assets/components/tests.rs
@@ -286,7 +286,8 @@ fn variant_switch_keeps_compatible_overrides() {
fn typed_text_stays_across_variants_that_nest_it_differently() {
let mut s = Session::new();
// Each variant's Label layers, by the frames holding them.
- let shapes: [(&str, &[&[&str]]); 3] = [("Kind=Plain", &[&["text"]]), ("Kind=Boxed", &[&["div", "text"]]), ("Kind=Twice", &[&["a"], &["b"]])];
+ let shapes: [(&str, &[&[&str]]); 4] =
+ [("Kind=Plain", &[&["text"]]), ("Kind=Boxed", &[&["div", "text"]]), ("Kind=Twice", &[&["a"], &["b"]]), ("Kind=Moved", &[&["a"], &["c"]])];
let mut labels = Vec::new();
let mut variants = Vec::new();
for (k, (name, paths)) in shapes.into_iter().enumerate() {
@@ -313,8 +314,16 @@ fn typed_text_stays_across_variants_that_nest_it_differently() {
ex(&mut s, "instance.setProperties", json!({"ids": [i], "properties": {"Kind": "Twice"}}));
healthy(&s);
- let texts: Vec = labels[2..].iter().map(|l| chars(&s, copy_of(&s, i, *l))).collect();
+ let texts: Vec = labels[2..4].iter().map(|l| chars(&s, copy_of(&s, i, *l))).collect();
assert_eq!(texts, ["I agree", "I agree"], "two layers of that name: neither is the one typed into");
+
+ // `a › Label` matches by path; the leftover `b › Label` and `c › Label` still share a name with it.
+ let typed = copy_of(&s, i, labels[3]);
+ ex(&mut s, "text.set", json!({"id": typed, "characters": "Architect"}));
+ ex(&mut s, "instance.setProperties", json!({"ids": [i], "properties": {"Kind": "Moved"}}));
+ healthy(&s);
+ let texts: Vec = labels[4..].iter().map(|l| chars(&s, copy_of(&s, i, *l))).collect();
+ assert_eq!(texts, ["I agree", "I agree"], "a name two layers share doesn't pair what path matching left over");
}
#[test]
From 09553289bafea54a4984119f46e98e42fb5cf396 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Tue, 24 Nov 2026 18:59:18 -0500
Subject: [PATCH 49/59] Desktop: load the preferences before opening the files
named on the command line
The files named on the command line opened before the preferences were
read, so file.open saw no kept views: such a file opened fitted instead
of where it was left. It also put the file at the top of the recent
files, and the preferences read just after replaced that list.
---
apps/figcraft/src/main.rs | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/apps/figcraft/src/main.rs b/apps/figcraft/src/main.rs
index b340fcbdd..c68ea4a67 100644
--- a/apps/figcraft/src/main.rs
+++ b/apps/figcraft/src/main.rs
@@ -200,6 +200,14 @@ fn main() -> eframe::Result {
let mut session = Session::empty();
// Live sessions: the network threads wake the window when something arrives.
session.live.install(Box::new(figcraft_collab_net::NetLink::new(Arc::new(wake(&ctx_slot)))));
+ // The preferences first: a file named on the command line opens where it was left and goes to
+ // the top of the recent files, and they hold the online files a recovered document may be one of.
+ let recovery = recovery::Shared::default();
+ let svc = services::Desktop::load(recovery.clone());
+ svc.follow_system_dark(wake(&ctx_slot));
+ if let Some(prefs) = svc.prefs.clone() {
+ session.prefs = prefs;
+ }
// A file that won't open is said in the window too: it may have been double-clicked.
let mut failed_open = None;
for f in &args.files {
@@ -212,13 +220,6 @@ fn main() -> eframe::Result {
let mut opened: Vec = session.docs.iter().map(|d| d.uid).collect();
// Documents a crashed or killed run left unsaved come back; this run keeps its own copies.
let recovery_root = services::config_dir().map(|d| d.join("Recovery"));
- // The preferences first: they hold the online files a recovered document may be one of.
- let recovery = recovery::Shared::default();
- let svc = services::Desktop::load(recovery.clone());
- svc.follow_system_dark(wake(&ctx_slot));
- if let Some(prefs) = svc.prefs.clone() {
- session.prefs = prefs;
- }
let recovered = recovery_root.as_deref().map(|r| recovery::recover_all(r, &mut session)).unwrap_or_default();
let mut copies = recovery_root.as_deref().and_then(recovery::Recovery::start);
// Copies of online files stay until their files arrive from their servers.
From 20de68e9ca10bc3b0b8c64624fc22637003e6aa3 Mon Sep 17 00:00:00 2001
From: Denis Gomes <6731020+denisg0mes@users.noreply.github.com>
Date: Tue, 24 Nov 2026 18:59:18 -0500
Subject: [PATCH 50/59] Tests: the reopen and file view tests remove their
folders when they fail too
The folders were removed at each test's end only, so a failing assertion
left them in the temporary directory. They are now removed on drop, as
path_read_caps_tests does.
---
crates/engine/src/file_views/tests.rs | 23 +++++++++++++++++-----
crates/engine/src/reopen_tests.rs | 28 +++++++++++++++++++--------
2 files changed, 38 insertions(+), 13 deletions(-)
diff --git a/crates/engine/src/file_views/tests.rs b/crates/engine/src/file_views/tests.rs
index 1606c02ed..b7d2c9323 100644
--- a/crates/engine/src/file_views/tests.rs
+++ b/crates/engine/src/file_views/tests.rs
@@ -8,10 +8,26 @@ fn ex(s: &mut Session, cmd: &str, p: Value) -> Value {
s.execute(cmd, &p).unwrap_or_else(|e| panic!("{cmd} {p}: {e}"))
}
-fn dir(name: &str) -> std::path::PathBuf {
+/// A test's folder, removed when the test ends, a failing one too.
+struct Dir(std::path::PathBuf);
+
+impl std::ops::Deref for Dir {
+ type Target = std::path::Path;
+ fn deref(&self) -> &std::path::Path {
+ &self.0
+ }
+}
+
+impl Drop for Dir {
+ fn drop(&mut self) {
+ let _ = std::fs::remove_dir_all(&self.0);
+ }
+}
+
+fn dir(name: &str) -> Dir {
let d = std::env::temp_dir().join(format!("figcraft-file-views-{}-{name}", std::process::id()));
std::fs::create_dir_all(&d).unwrap();
- d
+ Dir(d)
}
/// A saved file at `path` with two pages, each holding a rectangle, the first page shown.
@@ -64,7 +80,6 @@ fn a_file_opens_again_where_it_was_left() {
next.prefs = prefs;
ex(&mut next, "file.open", json!({"path": path}));
assert_eq!(view(&next), (second, 2010.0, 2020.0, 0.5));
- let _ = std::fs::remove_dir_all(d);
}
/// Quitting keeps every open file's view; a file never saved keeps none.
@@ -87,7 +102,6 @@ fn quitting_keeps_each_open_files_view() {
assert_eq!(view(&next), (a_page, 1.0, 2.0, 3.0));
ex(&mut next, "file.open", json!({"path": b}));
assert_eq!(view(&next), (b_page, 4.0, 5.0, 0.25));
- let _ = std::fs::remove_dir_all(d);
}
/// A kept page the file no longer has, or a view the canvas can't show, is left out: the file
@@ -106,7 +120,6 @@ fn a_view_that_no_longer_fits_the_file_is_left_out() {
assert_eq!(ds.page, first);
assert!(ds.fit_when_sized, "fitted as a file never left");
assert!(ds.view.cx.is_finite());
- let _ = std::fs::remove_dir_all(d);
}
/// The views kept are bounded, the most recently left first.
diff --git a/crates/engine/src/reopen_tests.rs b/crates/engine/src/reopen_tests.rs
index b02c95c90..f2e2e7a4b 100644
--- a/crates/engine/src/reopen_tests.rs
+++ b/crates/engine/src/reopen_tests.rs
@@ -1,19 +1,35 @@
//! The files open when the desktop app quit open again at its next start.
-use std::path::PathBuf;
+use std::path::{Path, PathBuf};
use serde_json::json;
use crate::Session;
-fn folder(name: &str) -> PathBuf {
+/// A fresh folder for a test's files, removed when the test ends, a failing one too.
+struct Folder(PathBuf);
+
+impl std::ops::Deref for Folder {
+ type Target = Path;
+ fn deref(&self) -> &Path {
+ &self.0
+ }
+}
+
+impl Drop for Folder {
+ fn drop(&mut self) {
+ let _ = std::fs::remove_dir_all(&self.0);
+ }
+}
+
+fn folder(name: &str) -> Folder {
let dir = std::env::temp_dir().join(format!("figcraft-reopen-{name}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(&dir).unwrap();
- dir
+ Folder(dir)
}
-fn saved(s: &mut Session, dir: &std::path::Path, name: &str) -> String {
+fn saved(s: &mut Session, dir: &Path, name: &str) -> String {
let path = dir.join(format!("{name}.figcraft")).to_string_lossy().into_owned();
s.execute("file.new", &json!({"name": name})).unwrap();
s.execute("file.save", &json!({"path": path})).unwrap();
@@ -48,7 +64,6 @@ fn the_files_open_at_quit_reopen_in_their_order_with_the_same_one_in_front() {
assert!(t.reopen_files().is_empty());
assert_eq!(paths(&t), vec![Some(a), Some(b.clone()), Some(c)]);
assert_eq!(t.docs[t.active].path.as_deref(), Some(b.as_str()), "B is in front again");
- let _ = std::fs::remove_dir_all(&dir);
}
#[test]
@@ -66,7 +81,6 @@ fn a_file_gone_since_is_skipped_and_one_that_wont_open_says_why() {
let failed = t.reopen_files();
assert_eq!(failed.iter().map(|(p, _)| p.clone()).collect::>(), vec![broken]);
assert_eq!(paths(&t), vec![Some(kept)]);
- let _ = std::fs::remove_dir_all(&dir);
}
#[test]
@@ -84,7 +98,6 @@ fn a_file_already_open_at_start_keeps_its_one_tab() {
assert!(t.reopen_files().is_empty());
assert_eq!(paths(&t), vec![Some(b), Some(a.clone())]);
assert_eq!(t.docs[t.active].path.as_deref(), Some(a.as_str()));
- let _ = std::fs::remove_dir_all(&dir);
}
#[test]
@@ -99,5 +112,4 @@ fn quitting_with_nothing_open_leaves_nothing_to_reopen() {
assert_eq!(s.prefs.front_file, None);
let saved = serde_json::to_value(&s.prefs).unwrap();
assert!(saved.get("open_files").is_none() && saved.get("front_file").is_none(), "not written when empty");
- let _ = std::fs::remove_dir_all(&dir);
}
From 26b25644cfbc894c9940c7e19a9978f5931dd4dc Mon Sep 17 00:00:00 2001
From: ATOM
Date: Tue, 24 Nov 2026 21:54:38 -0600
Subject: [PATCH 51/59] 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 52/59] 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 53/59] 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 777ccdcc24644621f1fc4c810a521736ccf9f976 Mon Sep 17 00:00:00 2001
From: ATOM
Date: Wed, 25 Nov 2026 09:38:41 -0600
Subject: [PATCH 54/59] 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}\n{inner}
\n{pad}
\n"));
+ }
+
fn element(&mut self, n: &Node, parent: Option<&Node>, depth: usize, path: &str) {
let doc = self.ctx.doc;
let root = n.id == self.ctx.root;
@@ -341,7 +378,7 @@ impl<'c, 'a> Markup<'c, 'a> {
}
let hugs = n.layout.is_some() || matches!(n.kind, NodeKind::Text(_));
let hug = (hugs && n.child_layout.sizing_h == Sizing::Hug, hugs && n.child_layout.sizing_v == Sizing::Hug);
- let mut own = css_decls(doc, n, &mut self.tokens, hug);
+ let mut own = css_decls_for_markup(doc, n, &mut self.tokens, hug);
let page = self.ctx.doc.node(self.ctx.root).map_or(f64::INFINITY, |r| r.width);
if self.fluid && (n.layout.is_some() || matches!(n.kind, NodeKind::Text(_)) || (!root && n.width >= page * self.fluid_leaves)) {
// Full width, or sized by the flex row (`flex: 1`): no cap needed.
@@ -350,6 +387,7 @@ impl<'c, 'a> Markup<'c, 'a> {
if n.layout.is_none() && !n.children.is_empty() && !root && in_flow {
own.push_str("position: relative;\n");
}
+ vector_wrapper_decls(n, in_flow, &mut own);
decls.push_str(&own);
self.rule(path, &class, decls);
// The root's variant attributes, and a Vue `v-if` guard, ride on the open tag.
@@ -361,16 +399,7 @@ impl<'c, 'a> Markup<'c, 'a> {
}
let open = |tag: &str| format!("{pad}<{tag} {attr}=\"{class}\"{attrs}>");
match &n.kind {
- NodeKind::Vector { .. } => {
- // 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 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"));
- }
+ NodeKind::Vector { .. } => self.vector_element(n, depth, path, &class, attr, &pad, &attrs),
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/tailwind.rs b/crates/engine/src/dev/tailwind.rs
index b8629e6b3..373c96dbd 100644
--- a/crates/engine/src/dev/tailwind.rs
+++ b/crates/engine/src/dev/tailwind.rs
@@ -274,8 +274,10 @@ fn decl(key: &str, value: &str) -> Vec<(String, String)> {
("width", "100%") => kw("w-full"),
("width", v) => one(spacing("w", v)),
("height", v) => one(spacing("h", v)),
+ ("max-width", "none") => kw("max-w-none"),
("max-width", v) => one(format!("max-w-{}", arb(v))),
("min-height", v) => one(format!("min-h-{}", arb(v))),
+ ("overflow", "visible") => kw("overflow-visible"),
("margin-inline", "auto") => kw("mx-auto"),
("gap", v) => one(spacing("gap", v)),
("padding", v) => padding(v),
diff --git a/docs/dev-mode-parity.md b/docs/dev-mode-parity.md
index 491647eb1..3ba24ab7f 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 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).
+> **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 inside a node-sized wrapper with the SVG's painted bounds, 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 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-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. A node-sized wrapper keeps layout, rotation and opacity, while the inner image uses the SVG's painted bounds with visible overflow. The SVG owns shadows and layer blur, so wrapper CSS does not apply them twice; standalone CSS and ordinary shapes keep theirs. 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`, `dev::codegen::tests::vector_asset_keeps_stroke_overflow_inside_a_node_sized_wrapper`, `dev::codegen::tests::vector_markup_does_not_duplicate_svg_effects`; real CLI checks nested assets, rotation/opacity, 24→28 stroke bounds and single-application effects |
| 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 |
diff --git a/docs/parity-checklist.md b/docs/parity-checklist.md
index 13fda27c1..27a492d33 100644
--- a/docs/parity-checklist.md
+++ b/docs/parity-checklist.md
@@ -1,10 +1,10 @@
# Parity checklist
-> **Generated:** 2026-10-21 by `cargo xtask parity`. Do not edit by hand.
+> **Generated:** 2026-11-25 by `cargo xtask parity`. Do not edit by hand.
-FigCraft commands registered for the incumbent's main menu and toolbar (575 commands in the engine).
+FigCraft commands registered for the incumbent's main menu and toolbar (652 commands in the engine).
-**212 / 212 menu items (100.0%)**
+**215 / 215 menu items (100.0%)**
Every catalog item has a command.
From e0d3f16477a06736bb80f29f7e17a415f736a232 Mon Sep 17 00:00:00 2001
From: ATOM
Date: Wed, 25 Nov 2026 09:39:40 -0600
Subject: [PATCH 55/59] refactor(dev): drop unused export naming
---
apps/figcraft-cli/src/files.rs | 30 ++++++++++++++++++++++++-----
crates/engine/src/cmd/file.rs | 35 ----------------------------------
2 files changed, 25 insertions(+), 40 deletions(-)
diff --git a/apps/figcraft-cli/src/files.rs b/apps/figcraft-cli/src/files.rs
index a916e4ecb..5f4a006f4 100644
--- a/apps/figcraft-cli/src/files.rs
+++ b/apps/figcraft-cli/src/files.rs
@@ -5,9 +5,6 @@ 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};
@@ -239,6 +236,18 @@ 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,
@@ -304,9 +313,20 @@ 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 names = ExportNames::default();
+ let mut used = std::collections::BTreeSet::new();
+ let mut next_suffix: std::collections::HashMap = std::collections::HashMap::new();
for id in ids {
- let name = names.push(doc.node(id).map(|n| n.name.as_str()).unwrap_or("layer"));
+ 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 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 fe562359a..0c84f3458 100644
--- a/crates/engine/src/cmd/file.rs
+++ b/crates/engine/src/cmd/file.rs
@@ -47,41 +47,6 @@ 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());
From e962260b2d91ebc3c36d61be59ba48fe4772c39b Mon Sep 17 00:00:00 2001
From: Sep Sarip Hidayattuloh
Date: Wed, 25 Nov 2026 23:24:26 +0700
Subject: [PATCH 56/59] fix(ui-egui): keep Preferences language popup aligned
to dropdown
---
crates/ui-egui/src/dialogs.rs | 16 +++++----
crates/ui-egui/src/popup_width_tests.rs | 46 +++++++++++++++++++++++++
2 files changed, 56 insertions(+), 6 deletions(-)
diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rs
index 4cfa9fcce..26195cc0e 100644
--- a/crates/ui-egui/src/dialogs.rs
+++ b/crates/ui-egui/src/dialogs.rs
@@ -344,13 +344,17 @@ pub fn show(app: &mut FigApp, ctx: &Context) {
let selected = langs().find(|(code, _)| on(code)).map_or(tr("System"), |(_, name)| name);
let resp = crate::widgets::dropdown(ui, selected, 220.0, None);
let mut pick = None;
- crate::right::menu_popup(&resp).show(|ui| {
- for (code, name) in langs() {
- if crate::right::menu_check(ui, on(code), name, "") {
- pick = Some(code);
- ui.close();
+ // Vertical-only fallback: keep the menu anchored to the dropdown's start edge.
+ let alt = if ui.style().right_to_left { &[egui::RectAlign::TOP_END] } else { &[egui::RectAlign::TOP_START] };
+ crate::right::menu_popup(&resp).align_alternatives(alt).show(|ui| {
+ egui::ScrollArea::vertical().max_height(320.0).show(ui, |ui| {
+ for (code, name) in langs() {
+ if crate::right::menu_check(ui, on(code), name, "") {
+ pick = Some(code);
+ ui.close();
+ }
}
- }
+ });
});
if let Some(code) = pick {
app.run("pref.language", json!({"language": code}));
diff --git a/crates/ui-egui/src/popup_width_tests.rs b/crates/ui-egui/src/popup_width_tests.rs
index 740222d6c..51a363a2d 100644
--- a/crates/ui-egui/src/popup_width_tests.rs
+++ b/crates/ui-egui/src/popup_width_tests.rs
@@ -101,3 +101,49 @@ fn right_panel_dropdown_menus_fit_the_panel() {
assert!(menu.width() <= app.ui.right_width, "menu {menu:?} fits the {} px panel", app.ui.right_width);
assert!(menu.max.x <= SCREEN.x && menu.min.x >= panel_left - 8.0, "menu {menu:?} inside the window, under the panel");
}
+
+#[test]
+fn preferences_language_menu_stays_aligned_to_dropdown() {
+ use egui::accesskit::Role;
+
+ let screen = Rect::from_min_size(Pos2::ZERO, vec2(1920.0, 1080.0));
+ for mirrored in [false, true] {
+ let mut app = FigApp::new(Session::new(), Box::new(NoServices));
+ app.ui.preferences = true;
+ app.ui.mirrored = mirrored;
+ let ctx = egui::Context::default();
+ ctx.enable_accesskit();
+ let mut t = 0.0;
+ let mut frame = |app: &mut FigApp, events: Vec| {
+ t += 1.0 / 60.0;
+ let raw = RawInput { screen_rect: Some(screen), time: Some(t), events, ..Default::default() };
+ let mut out = ctx.run_ui(raw, |ui| app.ui(ui));
+ out.textures_delta.clear();
+ out
+ };
+ for _ in 0..3 {
+ frame(&mut app, vec![]);
+ }
+ let out = frame(&mut app, vec![]);
+ let nodes = out.platform_output.accesskit_update.expect("an AccessKit update").nodes;
+ let combo =
+ nodes.into_iter().map(|(_, n)| n).find(|n| n.role() == Role::ComboBox && n.value() == Some("System")).expect("the Language dropdown");
+ let b = combo.bounds().expect("Language dropdown bounds");
+ let dropdown = Rect::from_min_max(pos2(b.x0 as f32, b.y0 as f32), pos2(b.x1 as f32, b.y1 as f32));
+ let at = dropdown.center();
+ frame(&mut app, press(at, true));
+ frame(&mut app, press(at, false));
+ for _ in 0..3 {
+ frame(&mut app, vec![]);
+ }
+ let shown = menus(&ctx);
+ let [menu] = shown.as_slice() else { panic!("one Language menu open (mirrored={mirrored}): {shown:?}") };
+ assert!(menu.height() <= 360.0, "Language menu should scroll instead of spanning screen (mirrored={mirrored}): {menu:?}");
+ assert!(screen.contains_rect(*menu), "Language menu should fit inside screen (mirrored={mirrored}): {menu:?}");
+ if mirrored {
+ assert!((menu.max.x - dropdown.max.x).abs() <= 2.0, "RTL Language menu {menu:?} should align to dropdown right {dropdown:?}");
+ } else {
+ assert!((menu.min.x - dropdown.min.x).abs() <= 2.0, "LTR Language menu {menu:?} should align to dropdown left {dropdown:?}");
+ }
+ }
+}
From c1d478515c9667f02187c5222d33c1b76dc569f5 Mon Sep 17 00:00:00 2001
From: EurekaMk2
Date: Wed, 25 Nov 2026 21:41:28 +0300
Subject: [PATCH 57/59] Hide the selection frame while color picker controls
are used
---
crates/ui-egui/src/app/frame.rs | 38 ++++
crates/ui-egui/src/canvas/overlays.rs | 13 +-
.../src/colorpicker_selection_tests.rs | 169 ++++++++++++++++++
crates/ui-egui/src/popover.rs | 5 +
4 files changed, 222 insertions(+), 3 deletions(-)
diff --git a/crates/ui-egui/src/app/frame.rs b/crates/ui-egui/src/app/frame.rs
index 49040b7d9..510ad84e7 100644
--- a/crates/ui-egui/src/app/frame.rs
+++ b/crates/ui-egui/src/app/frame.rs
@@ -72,6 +72,44 @@ impl FigApp {
}
}
+ /// Whether the colour picker is being used right now for the selected layers' own look (a
+ /// paint, an effect, a text range or Selection colors): a drag on its value controls (the
+ /// palette, the hue and alpha sliders, a number field, the gradient bar and its stops), the
+ /// keyboard in one of its fields, the eyedropper sampling, or a drag of the canvas handles it
+ /// owns (gradient stops and handles, image crop). Only then does the canvas hide the selection
+ /// frame and a text's coloured selection, so the colour being chosen shows against the page.
+ /// Merely having the picker open, or pressing a button, a menu or a swatch, leaves it visible.
+ pub(crate) fn picker_hides_selection(&self, ctx: &egui::Context) -> bool {
+ let edits_selection = matches!(
+ self.ui.picker,
+ Some(
+ crate::colorpicker::PickerTarget::Paint { .. }
+ | crate::colorpicker::PickerTarget::Effect { .. }
+ | crate::colorpicker::PickerTarget::TextRange { .. }
+ | crate::colorpicker::PickerTarget::SelectionColor { .. }
+ )
+ );
+ if !edits_selection {
+ return false;
+ }
+ // The picker draws after the canvas, so its card comes from the previous frame.
+ let card = self.ui.picker_popover.as_ref();
+ // A drag changes the colour live; a press alone does not. Buttons, menus, swatches and the
+ // paint-type switches are clicks and must not hide the selection while held (they used to,
+ // which flickered it). Dragging the card by its header moves the popover, not the colour.
+ let header_drag = card.map(|c| c.header_drag_id());
+ let dragging = ctx.dragged_id().is_some_and(|id| header_drag != Some(id))
+ && ctx.input(|i| i.pointer.any_down() && i.pointer.press_origin().is_some_and(|p| card.is_some_and(|c| c.rect.contains(p))));
+ // A value field keeps the keyboard after its click: hide until focus leaves the picker.
+ // Only a text edit counts: every clicked control takes focus in egui, and a focused
+ // palette square or swatch must not keep the selection hidden after the drag.
+ let typing = ctx.text_edit_focused()
+ && ctx
+ .memory(|m| m.focused())
+ .is_some_and(|id| ctx.read_response(id).is_some_and(|r| card.is_some_and(|c| c.rect.contains_rect(r.rect))));
+ dragging || typing || self.session.tool.pick_only || crate::handles::gradient_dragging(ctx) || crate::handles::crop_dragging(ctx)
+ }
+
/// Leaving Design ends a pen path as Escape does and goes back to Move: Prototype and Inspect
/// don't draw (#307). Checked as the frame starts (the control channel) and after the panels
/// and shortcuts (the mode switcher, the tabs, Shift+E/Shift+D), before the canvas sees more.
diff --git a/crates/ui-egui/src/canvas/overlays.rs b/crates/ui-egui/src/canvas/overlays.rs
index b285d8792..cca4a91f3 100644
--- a/crates/ui-egui/src/canvas/overlays.rs
+++ b/crates/ui-egui/src/canvas/overlays.rs
@@ -124,7 +124,10 @@ pub(super) fn overlays(app: &FigApp, painter: &egui::Painter, t: &Tokens) -> Vec
}
// Selection.
let editing = ds.text_edit.clone();
- if !sel.is_empty() && editing.is_none() && ds.vector_edit.is_none() {
+ // While the colour picker is being used on the selection, hide its frame and handles so the
+ // colour being picked shows on the layer itself (a text's coloured selection would hide it
+ // too).
+ if !sel.is_empty() && editing.is_none() && ds.vector_edit.is_none() && !app.picker_hides_selection(painter.ctx()) {
size_label = selection_overlay(app, painter, ds, &doc, &sel, zoom);
}
if app.session.tool.tool == ToolId::ShapeBuilder
@@ -268,12 +271,16 @@ fn text_edit_overlay(app: &FigApp, painter: &egui::Painter, t: &Tokens, doc: &Do
let preedit = app.preedit_view();
let edoc: &Document = preedit.map(|p| &*p.doc).unwrap_or(doc);
let Some(text) = TextOnScreen::of(edoc, te.id) else { return };
+ // While the colour picker is being used on this text, its frame and coloured selection hide
+ // too: the selection colour tinted the very characters whose colour is being chosen. The
+ // caret stays.
+ let picking = app.picker_hides_selection(painter.ctx());
let layout = &text.layout;
- if let Some(q) = node_quad(app, edoc, te.id) {
+ if !picking && let Some(q) = node_quad(app, edoc, te.id) {
quad(painter, q, stroke(accent(painter), 1.0));
}
let (a, b) = (te.caret.min(te.anchor), te.caret.max(te.anchor));
- if a != b && preedit.is_none() {
+ if a != b && preedit.is_none() && !picking {
for q in text.selection(app, a, b) {
painter.add(Shape::convex_polygon(q.to_vec(), accent(painter).gamma_multiply(0.3), Stroke::NONE));
}
diff --git a/crates/ui-egui/src/colorpicker_selection_tests.rs b/crates/ui-egui/src/colorpicker_selection_tests.rs
index e791e0ca9..e1adf380f 100644
--- a/crates/ui-egui/src/colorpicker_selection_tests.rs
+++ b/crates/ui-egui/src/colorpicker_selection_tests.rs
@@ -372,3 +372,172 @@ fn a_gradient_drag_whose_gesture_closes_under_the_held_button_stops_editing() {
u.button(u.app.to_screen(180.0, 200.0), false);
}
}
+
+/// Whether `shape` is painted in `col`, as a fill or a stroke.
+fn painted_in(shape: &egui::Shape, col: egui::Color32) -> bool {
+ use egui::epaint::ColorMode;
+ match shape {
+ egui::Shape::Path(p) => p.fill == col || matches!(p.stroke.color, ColorMode::Solid(c) if c == col),
+ egui::Shape::Rect(r) => r.fill == col || r.stroke.color == col,
+ egui::Shape::LineSegment { stroke, .. } => stroke.color == col,
+ egui::Shape::Circle(c) => c.fill == col || c.stroke.color == col,
+ egui::Shape::Vec(v) => v.iter().any(|s| painted_in(s, col)),
+ _ => false,
+ }
+}
+
+/// How many shapes painted in `col` this frame draws inside `area`. On the page those are the
+/// selection's frame, its handles and a text's coloured selection.
+fn painted_around(out: &egui::FullOutput, area: egui::Rect, col: egui::Color32) -> usize {
+ out.shapes.iter().filter(|c| painted_in(&c.shape, col) && c.shape.visual_bounding_rect().intersects(area)).count()
+}
+
+/// A text layer's box on screen, with room for its handles.
+fn text_area(u: &Ui, id: NodeId) -> egui::Rect {
+ let b = u.app.session.doc().unwrap().world_bounds(id).unwrap();
+ egui::Rect::from_two_pos(u.app.to_screen(b.x0, b.y0), u.app.to_screen(b.x1, b.y1)).expand(20.0)
+}
+
+fn selected_text(s: &mut Session) -> NodeId {
+ let id =
+ NodeId(s.execute("text.create", &json!({"text": "Hello", "x": 300, "y": 200, "props": {"fontSize": 48}})).unwrap()["id"].as_u64().unwrap());
+ s.execute("select.set", &json!({"ids": [id]})).unwrap();
+ id
+}
+
+// The colour picker only hides the selection while it is being used: opening it leaves the frame in
+// view, and the press/drag on its controls hides it. A text makes this matter: its frame runs
+// through the glyphs and its selection is tinted.
+#[test]
+fn a_selected_texts_frame_hides_only_while_its_colour_picker_is_used() {
+ let mut s = Session::new();
+ let text = selected_text(&mut s);
+ let mut u = Ui::new(s);
+ let area = text_area(&u, text);
+ let accent = crate::theme::canvas_accent(&u.ctx);
+ assert!(painted_around(&u.frame_output(vec![]), area, accent) > 0, "the selected text's frame shows");
+
+ let target = PickerTarget::Paint { fills: true, index: 0, ids: vec![text] };
+ u.app.open_picker(target.clone(), None);
+ for _ in 0..3 {
+ u.frame(vec![]);
+ }
+ assert_eq!(u.app.ui.picker, Some(target.clone()), "the picker is open");
+ assert!(painted_around(&u.frame_output(vec![]), area, accent) > 0, "an open picker alone leaves the frame in view");
+
+ // A press alone changes nothing; dragging the saturation/value square uses the picker.
+ let square = u.ctx.read_response(egui::Id::unique("cp_sv")).expect("the saturation/value square").rect;
+ let from = square.center();
+ let to = from + egui::vec2(12.0, 8.0);
+ u.button(from, true);
+ assert!(painted_around(&u.frame_output(vec![]), area, accent) > 0, "holding the palette still leaves the frame");
+ u.frame(vec![egui::Event::PointerMoved(to)]);
+ assert_eq!(painted_around(&u.frame_output(vec![]), area, accent), 0, "dragging the palette hides the frame");
+ u.button(to, false);
+ assert_eq!(u.app.ui.picker, Some(target), "releasing does not close the picker");
+ assert!(painted_around(&u.frame_output(vec![]), area, accent) > 0, "releasing brings the frame back");
+
+ // A button in the picker (the blend dropdown) is a click, not a value drag.
+ let button = egui::pos2(square.center().x, square.min.y - 30.0);
+ u.button(button, true);
+ assert!(painted_around(&u.frame_output(vec![]), area, accent) > 0, "holding a picker button leaves the frame");
+ u.button(button, false);
+}
+
+// The picker's header is its drag handle: moving the card is not choosing a colour.
+#[test]
+fn dragging_the_picker_by_its_header_does_not_hide_the_selection() {
+ let mut s = Session::new();
+ let text = selected_text(&mut s);
+ let mut u = Ui::new(s);
+ let area = text_area(&u, text);
+ let accent = crate::theme::canvas_accent(&u.ctx);
+ u.app.open_picker(PickerTarget::Paint { fills: true, index: 0, ids: vec![text] }, None);
+ for _ in 0..3 {
+ u.frame(vec![]);
+ }
+ let header = u.app.ui.picker_popover.as_ref().expect("the picker is open").header.center();
+ let before = u.app.ui.picker_popover.as_ref().unwrap().rect;
+ u.button(header, true);
+ for k in 1..=5 {
+ u.frame(vec![egui::Event::PointerMoved(header - egui::vec2(0.0, 6.0 * k as f32))]);
+ }
+ assert!(u.app.ui.picker_popover.as_ref().unwrap().rect.min.y < before.min.y - 10.0, "the header drag moved the picker");
+ assert!(painted_around(&u.frame_output(vec![]), area, accent) > 0, "moving the picker leaves the frame in view");
+ u.button(header - egui::vec2(0.0, 30.0), false);
+}
+
+#[test]
+fn a_texts_coloured_selection_hides_only_while_its_colour_picker_is_used() {
+ let mut s = Session::new();
+ let text = selected_text(&mut s);
+ // Select all of it: the selection highlight the colour picker's own layer would otherwise wear.
+ figcraft_engine::textedit::begin(&mut s, text, None, false).unwrap();
+ let mut u = Ui::new(s);
+ let area = text_area(&u, text);
+ let tint = crate::theme::canvas_accent(&u.ctx).gamma_multiply(0.3);
+ assert!(painted_around(&u.frame_output(vec![]), area, tint) > 0, "the text selection is tinted");
+
+ u.app.open_picker(PickerTarget::Paint { fills: true, index: 0, ids: vec![text] }, None);
+ for _ in 0..3 {
+ u.frame(vec![]);
+ }
+ assert!(painted_around(&u.frame_output(vec![]), area, tint) > 0, "an open picker alone leaves it tinted");
+
+ let square = u.ctx.read_response(egui::Id::unique("cp_sv")).expect("the saturation/value square").rect;
+ let from = square.center();
+ let to = from + egui::vec2(10.0, 6.0);
+ u.button(from, true);
+ assert!(painted_around(&u.frame_output(vec![]), area, tint) > 0, "holding the palette still leaves the tint");
+ u.frame(vec![egui::Event::PointerMoved(to)]);
+ assert_eq!(painted_around(&u.frame_output(vec![]), area, tint), 0, "dragging the palette hides the tint");
+ u.button(to, false);
+ assert!(painted_around(&u.frame_output(vec![]), area, tint) > 0, "releasing brings the tint back");
+}
+
+// Typing a colour value counts as using the picker even when no mouse button is down.
+#[test]
+fn a_focused_colour_field_hides_the_selection_while_it_is_edited() {
+ let mut s = Session::new();
+ let text = selected_text(&mut s);
+ let mut u = Ui::new(s);
+ let area = text_area(&u, text);
+ let accent = crate::theme::canvas_accent(&u.ctx);
+ u.app.open_picker(PickerTarget::Paint { fills: true, index: 0, ids: vec![text] }, None);
+ for _ in 0..3 {
+ u.frame(vec![]);
+ }
+ assert!(painted_around(&u.frame_output(vec![]), area, accent) > 0, "the frame shows while the picker is idle");
+
+ let hex = u.ctx.read_response(egui::Id::unique("cp_hex").with("click")).expect("the Hex field").rect;
+ u.button(hex.center(), true);
+ u.button(hex.center(), false);
+ for _ in 0..2 {
+ u.frame(vec![]);
+ }
+ assert_eq!(painted_around(&u.frame_output(vec![]), area, accent), 0, "a focused value field hides the frame");
+ u.frame(vec![egui::Event::Text("0".into())]);
+ assert_eq!(painted_around(&u.frame_output(vec![]), area, accent), 0, "and typing in it keeps the frame hidden");
+}
+
+// egui gives every clicked control the keyboard, a palette square and a swatch included. Only a
+// text field means the picker is being used: a square that keeps focus must not keep the
+// selection hidden after its drag ends.
+#[test]
+fn a_focused_palette_square_does_not_hide_the_selection() {
+ let mut s = Session::new();
+ let text = selected_text(&mut s);
+ let mut u = Ui::new(s);
+ let area = text_area(&u, text);
+ let accent = crate::theme::canvas_accent(&u.ctx);
+ u.app.open_picker(PickerTarget::Paint { fills: true, index: 0, ids: vec![text] }, None);
+ for _ in 0..3 {
+ u.frame(vec![]);
+ }
+ // What egui does to a clicked square.
+ u.ctx.memory_mut(|m| m.request_focus(egui::Id::unique("cp_sv")));
+ for _ in 0..2 {
+ u.frame(vec![]);
+ }
+ assert!(painted_around(&u.frame_output(vec![]), area, accent) > 0, "focus on a palette square leaves the frame in view");
+}
diff --git a/crates/ui-egui/src/popover.rs b/crates/ui-egui/src/popover.rs
index 82886227d..f105f2662 100644
--- a/crates/ui-egui/src/popover.rs
+++ b/crates/ui-egui/src/popover.rs
@@ -124,6 +124,11 @@ impl Popover {
}
}
+ /// The id of the header's drag handle: a drag there moves the panel, not a value in it.
+ pub fn header_drag_id(&self) -> Id {
+ self.id.with("drag")
+ }
+
/// `width` points wide instead of [`WIDTH`].
pub fn width(mut self, width: f32) -> Self {
self.width = width.max(1.0);
From 91f2d22df284a9b0803da7acc82753e57e3c34fe Mon Sep 17 00:00:00 2001
From: Sep Sarip Hidayattuloh
Date: Thu, 26 Nov 2026 13:03:43 +0700
Subject: [PATCH 58/59] test(ui-egui): set RTL direction after language init in
language popup test
---
crates/ui-egui/src/popup_width_tests.rs | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/crates/ui-egui/src/popup_width_tests.rs b/crates/ui-egui/src/popup_width_tests.rs
index 51a363a2d..9a8886b02 100644
--- a/crates/ui-egui/src/popup_width_tests.rs
+++ b/crates/ui-egui/src/popup_width_tests.rs
@@ -110,7 +110,6 @@ fn preferences_language_menu_stays_aligned_to_dropdown() {
for mirrored in [false, true] {
let mut app = FigApp::new(Session::new(), Box::new(NoServices));
app.ui.preferences = true;
- app.ui.mirrored = mirrored;
let ctx = egui::Context::default();
ctx.enable_accesskit();
let mut t = 0.0;
@@ -124,6 +123,12 @@ fn preferences_language_menu_stays_aligned_to_dropdown() {
for _ in 0..3 {
frame(&mut app, vec![]);
}
+ // Set after viewport_setup's first-frame language init so it is not overwritten.
+ app.ui.mirrored = mirrored;
+ for _ in 0..2 {
+ frame(&mut app, vec![]);
+ }
+ assert_eq!(ctx.global_style().right_to_left, mirrored);
let out = frame(&mut app, vec![]);
let nodes = out.platform_output.accesskit_update.expect("an AccessKit update").nodes;
let combo =
From 356b61539b5eacae2d85d6d7d99533d573628926 Mon Sep 17 00:00:00 2001
From: supersfera
Date: Thu, 26 Nov 2026 12:57:38 -0800
Subject: [PATCH 59/59] ru: remove the per-file translation notices
The translation is under the repository's licence, and authorship is in git history.
---
crates/ui-egui/locales/ru.toml | 2 --
packaging/linux/ai.storyteller.figcraft.desktop | 2 --
packaging/linux/ai.storyteller.figcraft.mime.xml | 2 --
3 files changed, 6 deletions(-)
diff --git a/crates/ui-egui/locales/ru.toml b/crates/ui-egui/locales/ru.toml
index 747fb3f9b..c2d159859 100644
--- a/crates/ui-egui/locales/ru.toml
+++ b/crates/ui-egui/locales/ru.toml
@@ -1,5 +1,3 @@
-# Russian translation © 2026 SuperSfera LLC, MIT OR Apache-2.0
-# Russian translation © 2026 SuperSfera LLC, MIT OR Apache-2.0
# FigCraft interface strings: Russian.
# Wording reviewed and approved by VanTan.
# Strings added since that review (2026-10-20) are a machine draft awaiting review.
diff --git a/packaging/linux/ai.storyteller.figcraft.desktop b/packaging/linux/ai.storyteller.figcraft.desktop
index fd0d7d629..4e7fab698 100644
--- a/packaging/linux/ai.storyteller.figcraft.desktop
+++ b/packaging/linux/ai.storyteller.figcraft.desktop
@@ -1,5 +1,3 @@
-# Russian translation © 2026 SuperSfera LLC, MIT OR Apache-2.0
-# Russian translation © 2026 SuperSfera LLC, MIT OR Apache-2.0
[Desktop Entry]
Type=Application
Name=FigCraft
diff --git a/packaging/linux/ai.storyteller.figcraft.mime.xml b/packaging/linux/ai.storyteller.figcraft.mime.xml
index cc644f26a..0c57fdaf7 100644
--- a/packaging/linux/ai.storyteller.figcraft.mime.xml
+++ b/packaging/linux/ai.storyteller.figcraft.mime.xml
@@ -1,6 +1,4 @@
-
-