M6: a pasted image the clipboard doesn't carry shows as missing and is named (#1648)

* M6: a pasted image the clipboard doesn't carry shows as missing and is named (#1646)

The placeholder an import stores for an image it lacks is now striped, not flat grey; the fill keeps the image's name; .fig and paste give a fixed, translated note per image; edit.pasteDesignLayers returns missingImages, the paste's message names those layers, and a paste with notes opens the import report.

* M6: the missing-image placeholder's stripes stay clean when scaled, and a .fig gives one note (#1646)
This commit is contained in:
BFlat
2026-10-30 19:34:24 +07:00
committed by GitHub
parent 4965620d77
commit 01b07af55a
37 changed files with 293 additions and 27 deletions
+2 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -127,7 +127,7 @@ pub fn specs() -> Vec<CommandSpec> {
spec!(
"edit.pasteDesignLayers",
"Paste design layers",
"{html (the clipboard's HTML) | data (base64 of the clipboard's design data, at most 256 MB), parent?, x?, y?} layers copied from another design app (a .fig canvas in the clipboard's HTML), read like a .fig file (best effort, with `warnings`), pasted as edit.paste pastes",
"{html (the clipboard's HTML) | data (base64 of the clipboard's design data, at most 256 MB), parent?, x?, y?} layers copied from another design app (a .fig canvas in the clipboard's HTML), read like a .fig file (best effort, with `warnings`), pasted as edit.paste pastes; `missingImages`: the names of pasted layers whose image the clipboard didn't carry (they show the missing-image placeholder)",
true,
paste_design_layers
),
+27
View File
@@ -134,12 +134,39 @@ pub(super) fn paste_design_layers(s: &mut Session, p: &Value) -> Result<Value> {
layers_generation,
};
let mut out = paste(s, p)?;
let pasted: Vec<NodeId> = out["ids"].as_array().map(|a| a.iter().filter_map(crate::params::id_of).collect()).unwrap_or_default();
let missing = layers_missing_images(s.doc()?, &pasted);
if !missing.is_empty() {
out["missingImages"] = json!(missing);
}
if !other.issues.is_empty() {
out["warnings"] = json!(other.issues);
}
Ok(out)
}
/// The most layers [`layers_missing_images`] names.
const MAX_MISSING_NAMED: usize = 20;
/// The names of the layers under `ids` with an image fill or stroke whose image the paste didn't
/// carry (#1646): it shows the importer's missing-image placeholder, or nothing at all.
fn layers_missing_images(doc: &figcraft_doc::Document, ids: &[NodeId]) -> Vec<String> {
let missing = |p: &figcraft_color::Paint| match &p.kind {
figcraft_color::PaintKind::Image(img) => doc.images.get(&img.image).is_none_or(figcraft_format::rest::is_missing_image),
_ => false,
};
let mut names: Vec<String> = Vec::new();
for n in ids.iter().flat_map(|i| doc.subtree(*i)).filter_map(|i| doc.node(i)) {
if n.fills.iter().chain(&n.strokes).any(missing) && !names.contains(&n.name) {
names.push(n.name.clone());
if names.len() == MAX_MISSING_NAMED {
break;
}
}
}
names
}
pub(super) fn copy(s: &mut Session, p: &Value) -> Result<Value> {
let ids = req_targets("edit.copy", s, p)?;
copy_to_clipboard(s, "edit.copy", &ids)?;
+2
View File
@@ -429,6 +429,8 @@ mod paint_tests;
#[cfg(test)]
mod panels_behaviour_tests;
#[cfg(test)]
mod paste_missing_image_tests;
#[cfg(test)]
mod path_read_caps_tests;
#[cfg(test)]
mod pdf_print_tests;
@@ -0,0 +1,54 @@
//! Layers pasted from another design app whose image the clipboard doesn't carry (#1646): the
//! paste names them (`missingImages`), and they keep their image's name. Design data made by our
//! own `.fig` export: its canvas alone, as a clipboard carries it, and the whole file with images.
use std::io::Read;
use base64::Engine as _;
use serde_json::{Value, json};
use crate::Session;
use crate::params::id_of;
/// A `.fig` export of a page with "Photo" (an image fill) and "Plain" (a solid fill).
fn exported() -> Vec<u8> {
let mut s = Session::new();
let photo = id_of(&s.execute("shape.rectangle", &json!({"x": 0, "y": 0, "width": 80, "height": 60})).unwrap()["id"]).unwrap();
let plain = id_of(&s.execute("shape.rectangle", &json!({"x": 100, "y": 0, "width": 80, "height": 60})).unwrap()["id"]).unwrap();
let mut png = Vec::new();
image::RgbaImage::from_pixel(4, 4, image::Rgba([200, 40, 40, 255]))
.write_to(&mut std::io::Cursor::new(&mut png), image::ImageFormat::Png)
.unwrap();
let doc = s.doc_mut().unwrap();
let (hash, _, _) = figcraft_format::add_image(doc, png).unwrap();
let n = doc.get_mut(photo).unwrap();
n.name = "Photo".into();
n.fills = vec![figcraft_color::Paint::image(hash, figcraft_color::ImageScaleMode::Fill)];
doc.get_mut(plain).unwrap().name = "Plain".into();
let r = s.execute("file.export", &json!({"format": "fig"})).unwrap();
base64::engine::general_purpose::STANDARD.decode(r["data"].as_str().unwrap()).unwrap()
}
/// Just the canvas of a `.fig` file: the design data a clipboard carries, without the images.
fn canvas_only(fig: &[u8]) -> Vec<u8> {
let mut z = zip::ZipArchive::new(std::io::Cursor::new(fig)).unwrap();
let mut out = Vec::new();
z.by_name("canvas.fig").unwrap().read_to_end(&mut out).unwrap();
out
}
fn paste(data: &[u8]) -> Value {
let mut s = Session::new();
s.execute("edit.pasteDesignLayers", &json!({"data": base64::engine::general_purpose::STANDARD.encode(data)})).unwrap()
}
#[test]
fn layers_whose_image_the_clipboard_lacks_are_named() {
let fig = exported();
let r = paste(&canvas_only(&fig));
assert_eq!(r["missingImages"], json!(["Photo"]), "{r}");
assert!(r["warnings"].as_array().unwrap().iter().any(|w| w.as_str().unwrap().contains("missing-image placeholder")), "{r}");
// With its images, nothing is missing.
let r = paste(&fig);
assert!(r.get("missingImages").is_none(), "{r}");
}
+2
View File
@@ -30,6 +30,8 @@ pub mod kiwi;
#[cfg(test)]
mod layer_cap_tests;
mod map;
#[cfg(test)]
mod missing_image_tests;
mod network;
#[cfg(test)]
mod paste_style_tests;
-4
View File
@@ -91,10 +91,6 @@ pub(super) fn adapt_warning(w: String) -> Option<String> {
if w.contains("geometry=paths") {
return None;
}
if w.contains("without image data") {
let count = w.split_whitespace().next().unwrap_or("Some");
return Some(format!("{count} image fill(s) whose image isn't in the file show a grey placeholder"));
}
Some(w.replace("the variables JSON", "the file").replace("the file JSON", "the file"))
}
@@ -0,0 +1,60 @@
//! Design data whose image fill names an image it doesn't carry, as a clipboard copied from
//! another design app does (#1646): the fill keeps the image's name, so the image can be put back
//! under it; the layer shows the missing-image placeholder (light grey with darker stripes, not a
//! grey a design could have chosen); and the import says so, once per image. Built in code and
//! read as `edit.pasteDesignLayers` reads a clipboard's design data.
use figcraft_doc::Document;
use figcraft_doc::color::PaintKind;
use super::kiwi::Kv;
use super::tests::{arr, canvas, e, node, o, schema, xy};
use super::try_import;
use crate::rest::{is_missing_image, missing_image_placeholder};
const HASH: [u8; 20] = [0x5a; 20];
fn image_fill() -> Kv<'static> {
o(vec![("type", e("IMAGE")), ("image", o(vec![("hash", Kv::Bytes(HASH.to_vec()))])), ("imageScaleMode", e("FILL"))])
}
/// Two layers filled with the same image, which the data doesn't carry.
fn pasted() -> (Document, Vec<String>) {
let nodes = vec![
node(0, None, "DOCUMENT", "Document", vec![]),
node(1, Some((0, "!")), "CANVAS", "Page", vec![]),
node(10, Some((1, "!")), "RECTANGLE", "Hero", vec![("size", xy(200.0, 100.0)), ("fillPaints", arr(vec![image_fill()]))]),
node(11, Some((1, "\"")), "RECTANGLE", "Hero copy", vec![("size", xy(200.0, 100.0)), ("fillPaints", arr(vec![image_fill()]))]),
];
let bytes = canvas(&schema(), &o(vec![("nodeChanges", arr(nodes))]));
try_import(&bytes, "Pasted layers").expect("design data").expect("it imports")
}
#[test]
fn a_missing_image_keeps_its_name_and_shows_as_missing() {
let (doc, warnings) = pasted();
let hex: String = HASH.iter().map(|b| format!("{b:02x}")).collect();
for name in ["Hero", "Hero copy"] {
let layer = doc.nodes().find(|n| n.name == name).unwrap();
let Some(PaintKind::Image(img)) = layer.fills.first().map(|p| &p.kind) else { panic!("{name}: {:?}", layer.fills) };
assert_eq!(img.image, hex, "{name}: the image's own name, so it can come back under it");
assert!(doc.images.get(&img.image).is_some_and(is_missing_image), "{name}: the missing-image placeholder");
}
let note = "image fills whose image isn't in the file show a missing-image placeholder and keep its name";
assert_eq!(warnings.iter().filter(|w| w.starts_with(note)).count(), 1, "{warnings:?}");
assert!(!warnings.iter().any(|w| w.contains("without image data")), "the REST JSON note isn't given too: {warnings:?}");
}
#[test]
fn the_placeholder_reads_as_missing_not_as_grey() {
let png = image::load_from_memory(missing_image_placeholder().unwrap()).unwrap().to_rgba8();
// Two tones (their anti-aliased edges between): darker stripes over a light ground, not one
// flat grey.
let count = |c: u8| png.pixels().filter(|p| p.0 == [c, c, c, 0xFF]).count();
let all = png.pixels().count();
let (ground, stripe) = (count(0xE6), count(0xB4));
assert!(ground > all / 2 && stripe > all / 8 && ground + stripe > all * 3 / 4, "{ground} ground, {stripe} stripe of {all}");
// A real image of one colour is never taken for the placeholder.
let flat = figcraft_doc::ImageData { bytes: std::sync::Arc::new(vec![1, 2, 3]), width: 64, height: 64 };
assert!(!is_missing_image(&flat));
}
+43 -13
View File
@@ -7,7 +7,7 @@
//! corners, constraints, auto layout, layout grids, export settings, text with styled runs,
//! vectors from `fillGeometry` / `strokeGeometry`, components, component sets, instances and
//! component properties (slots included) are imported. Image fills keep their `imageRef` as the
//! image key and show a grey placeholder unless an [`ImageResolver`] supplies the bytes (nothing is fetched).
//! image key and show a missing-image placeholder unless an [`ImageResolver`] supplies the bytes (nothing is fetched).
//! Prototyping comes along: interactions (triggers, actions, transitions, easing), flows,
//! scrolling and the prototype device. Variables come from the local variables response
//! (`GET /v1/files/:key/variables/local`), embedded next to the file JSON or passed separately
@@ -1003,7 +1003,7 @@ impl<'a> Ctx<'a> {
}
/// The document image key for an `imageRef`: its bytes when the resolver has them, else a
/// grey placeholder stored under the `imageRef` itself when that name can legitimately be an
/// missing-image placeholder stored under the `imageRef` itself when that name can legitimately be an
/// archive member (`is_valid_key`) and claims no content hash (`claims_content_hash`: the
/// placeholder's bytes don't hash to it); any other name shares the `rest-image-missing`
/// placeholder.
@@ -1016,6 +1016,11 @@ impl<'a> Ctx<'a> {
Some((hash, _, _)) => hash,
None => {
self.missing_images += 1;
// A design file's (or a paste's) image fill names its image by hash: one note per
// fill, counted, read the same in every language.
if self.fig_sources.is_some() {
self.warn("image fills whose image isn't in the file show a missing-image placeholder and keep its name");
}
// An `imageRef` arrives from an untrusted file, and keys become archive member
// names on save: a name that can't legitimately be one must not reach the map,
// nor one claiming a content hash the placeholder's bytes don't have.
@@ -1024,9 +1029,11 @@ impl<'a> Ctx<'a> {
let key = if named { candidate } else { MISSING_IMAGE };
let key = key.to_string();
if !self.doc.images.contains_key(&key)
&& let Some(png) = placeholder_png()
&& let Some(png) = missing_image_placeholder()
{
self.doc.images.insert(key.clone(), ImageData { bytes: Arc::new(png), width: PLACEHOLDER_SIDE, height: PLACEHOLDER_SIDE });
self.doc
.images
.insert(key.clone(), ImageData { bytes: Arc::new(png.to_vec()), width: PLACEHOLDER_SIDE, height: PLACEHOLDER_SIDE });
}
key
}
@@ -1046,6 +1053,8 @@ impl<'a> Ctx<'a> {
/// Cross-references that need every layer imported first.
fn finish(&mut self) {
// A `.fig` import (its sources are taken below) noted each missing image already.
let fig = self.fig_sources.is_some();
self.resolve_swap_defaults();
// Variants share their set's property definitions.
for (set, defs) in std::mem::take(&mut self.set_defs) {
@@ -1079,11 +1088,11 @@ impl<'a> Ctx<'a> {
flows.push(Flow { name, start: id, description: String::new() });
}
}
if self.missing_images > 0 {
if self.missing_images > 0 && !fig {
let n = self.missing_images;
let (s, verb) = if n == 1 { ("", "shows") } else { ("s", "show") };
self.warn(format!(
"{n} image{s} without image data {verb} a grey placeholder, named by its imageRef when that can legitimately name a file and by the shared name otherwise (put the downloaded images, named by imageRef, in an `images` folder next to the JSON)"
"{n} image{s} without image data {verb} a missing-image placeholder, named by its imageRef when that can legitimately name a file and by the shared name otherwise (put the downloaded images, named by imageRef, in an `images` folder next to the JSON)"
));
}
let unused = self.style_meta.keys().filter(|k| !self.doc.styles.iter().any(|s| s.id == **k)).count();
@@ -1465,12 +1474,33 @@ fn sane(p: &BezPath) -> bool {
}
/// Side of the placeholder image (large enough that scaling it up stays flat).
const PLACEHOLDER_SIDE: u32 = 64;
const PLACEHOLDER_SIDE: u32 = 256;
/// A light-grey PNG standing in for image fills whose bytes aren't available.
fn placeholder_png() -> Option<Vec<u8>> {
let img = image::RgbaImage::from_pixel(PLACEHOLDER_SIDE, PLACEHOLDER_SIDE, image::Rgba([0xD9, 0xD9, 0xD9, 0xFF]));
let mut out = Vec::new();
img.write_to(&mut std::io::Cursor::new(&mut out), image::ImageFormat::Png).ok()?;
Some(out)
/// The PNG standing in for image fills whose bytes aren't available (#1646): light grey crossed
/// by darker diagonal stripes, so it reads as an image that is missing, not as a grey the design
/// chose. Made once; [`is_missing_image`] recognises it.
pub fn missing_image_placeholder() -> Option<&'static [u8]> {
static PNG: std::sync::OnceLock<Option<Vec<u8>>> = std::sync::OnceLock::new();
PNG.get_or_init(|| {
// Stripes 6 px wide every 18 px across the diagonal, their edges anti-aliased, so they
// stay clean when a fill scales the picture up.
let (period, width) = (18.0f32, 6.0f32);
let (ground, stripe) = ([0xE6u8, 0xE6, 0xE6], [0xB4u8, 0xB4, 0xB4]);
let img = image::RgbaImage::from_fn(PLACEHOLDER_SIDE, PLACEHOLDER_SIDE, |x, y| {
let t = ((x + y) as f32 + 1.0) / std::f32::consts::SQRT_2 % period;
let inside = if t < width { t.min(width - t) + 0.5 } else { 0.5 - (t - width).min(period - t) };
let k = inside.clamp(0.0, 1.0);
let mix = |i: usize| (f32::from(ground[i]) + (f32::from(stripe[i]) - f32::from(ground[i])) * k).round() as u8;
image::Rgba([mix(0), mix(1), mix(2), 0xFF])
});
let mut out = Vec::new();
img.write_to(&mut std::io::Cursor::new(&mut out), image::ImageFormat::Png).ok()?;
Some(out)
})
.as_deref()
}
/// `data` is the placeholder an import stored for an image it didn't have.
pub fn is_missing_image(data: &ImageData) -> bool {
missing_image_placeholder().is_some_and(|png| data.bytes.as_slice() == png)
}
+3
View File
@@ -811,6 +811,8 @@ status = "draft — needs native review"
"Main menu" = "القائمة الرئيسية"
"Make a component" = "إنشاء مكوّن"
"Make slot" = "إنشاء خانة محتوى"
"Pasted design layers" = "طبقات تصميم ملصقة"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "لُصقت طبقات التصميم؛ لم تحمل الحافظة صور: {layers}"
"Scroll wheel zoom" = "التكبير بعجلة التمرير"
"Slot name" = "اسم خانة المحتوى"
"Mar" = "مارس"
@@ -1710,6 +1712,7 @@ status = "draft — needs native review"
"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" = "تم تخطي خصائص استبدال النسخة المثيلة التي لا يوجد مكوّنها الافتراضي في الملف"
+3
View File
@@ -779,6 +779,8 @@ status = "draft — needs native review"
"Main menu" = "প্রধান মেনু"
"Make a component" = "একটি কম্পোনেন্ট তৈরি করুন"
"Make slot" = "স্লট তৈরি করুন"
"Pasted design layers" = "পেস্ট করা ডিজাইন লেয়ার"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "ডিজাইন লেয়ার পেস্ট হয়েছে; ক্লিপবোর্ডে এগুলোর ছবি ছিল না: {layers}"
"Scroll wheel zoom" = "স্ক্রল হুইল দিয়ে জুম"
"Slot name" = "স্লটের নাম"
"Mar" = "মার্চ"
@@ -1654,6 +1656,7 @@ status = "draft — needs native review"
"grid track sizing list exceeds 1000 entries; the tracks use the default equal sizing" = "গ্রিড ট্র্যাক সাইজিং তালিকা ১০০০ এন্ট্রি অতিক্রম করেছে; ট্র্যাকগুলো ডিফল্ট সমান সাইজিং ব্যবহার করে"
"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" = "ইনস্ট্যান্স সোয়াপ প্রপার্টি যার ডিফল্ট কম্পোনেন্ট ফাইলে নেই তা বাদ দেওয়া হয়েছে"
+3
View File
@@ -764,6 +764,8 @@ status = "draft — needs native review"
"Main menu" = "Hlavní nabídka"
"Make a component" = "Vytvořit komponentu"
"Make slot" = "Vytvořit slot"
"Pasted design layers" = "Vložené návrhové vrstvy"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "Návrhové vrstvy vloženy; schránka neobsahovala obrázky těchto vrstev: {layers}"
"Scroll wheel zoom" = "Přibližování kolečkem myši"
"Slot name" = "Název slotu"
"Mar" = "března"
@@ -1619,6 +1621,7 @@ status = "draft — needs native review"
"grid track sizing list exceeds 1000 entries; the tracks use the default equal sizing" = "seznam velikostí stop mřížky přesahuje 1000 položek; stopy používají výchozí stejnou velikost"
"hidden" = "skryté"
"iOS" = "iOS"
"image fills whose image isn't in the file show a missing-image placeholder and keep its name" = "obrazové výplně, jejichž obrázek v souboru není, ukazují zástupný symbol chybějícího obrázku a ponechávají jeho název"
"image filters are ambiguous because both filter containers are present; filter conversion was skipped" = "filtry obrázku jsou nejednoznačné, protože jsou přítomny oba kontejnery filtrů; převod filtrů byl přeskočen"
"image filters use FigCraft's approximate renderer" = "filtry obrázku používají přibližné vykreslování FigCraftu"
"instance swap properties whose default component isn't in the file were skipped" = "vlastnosti výměny instance, jejichž výchozí komponenta není v souboru, byly přeskočeny"
+3
View File
@@ -743,6 +743,8 @@ status = "draft — needs native review"
"Main component deleted" = "Hauptkomponente gelöscht"
"Main menu" = "Hauptmenü"
"Make slot" = "Slot erstellen"
"Pasted design layers" = "Eingefügte Designebenen"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "Designebenen eingefügt; die Zwischenablage enthielt die Bilder von {layers} nicht"
"Scroll wheel zoom" = "Mit dem Mausrad zoomen"
"Slot name" = "Slot-Name"
"Margin" = "Rand"
@@ -1580,6 +1582,7 @@ status = "draft — needs native review"
"grid track sizing list exceeds 1000 entries; the tracks use the default equal sizing" = "die Liste der Rasterspurgrößen hat mehr als 1000 Einträge; die Spuren verwenden die standardmäßige gleiche Größe"
"hidden" = "ausgeblendet"
"iOS" = "iOS"
"image fills whose image isn't in the file show a missing-image placeholder and keep its name" = "Bildfüllungen, deren Bild nicht in der Datei ist, zeigen einen Platzhalter für ein fehlendes Bild und behalten seinen Namen"
"image filters are ambiguous because both filter containers are present; filter conversion was skipped" = "Bildfilter sind mehrdeutig, weil beide Filtercontainer vorhanden sind; die Filterumwandlung wurde übersprungen"
"image filters use FigCraft's approximate renderer" = "Bildfilter verwenden die näherungsweise Darstellung von FigCraft"
"instance swap properties whose default component isn't in the file were skipped" = "Instanztausch-Eigenschaften, deren Standardkomponente nicht in der Datei ist, wurden übersprungen"
+3
View File
@@ -820,6 +820,8 @@ name = "English"
"Main menu" = "Main menu"
"Make a component" = "Make a component"
"Make slot" = "Make slot"
"Pasted design layers" = "Pasted design layers"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "Pasted design layers; the clipboard didn't carry the images of: {layers}"
"Scroll wheel zoom" = "Scroll wheel zoom"
"Slot name" = "Slot name"
"Mar" = "Mar"
@@ -1729,6 +1731,7 @@ name = "English"
"grid track sizing list exceeds 1000 entries; the tracks use the default equal sizing" = "grid track sizing list exceeds 1000 entries; the tracks use the default equal sizing"
"hidden" = "hidden"
"iOS" = "iOS"
"image fills whose image isn't in the file show a missing-image placeholder and keep its name" = "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 are ambiguous because both filter containers are present; filter conversion was skipped"
"image filters use FigCraft's approximate renderer" = "image filters use FigCraft's approximate renderer"
"instance swap properties whose default component isn't in the file were skipped" = "instance swap properties whose default component isn't in the file were skipped"
+3
View File
@@ -32,6 +32,8 @@ status = "draft — needs native review"
"Connector" = "Conector"
"Couldn't download the variables" = "No se pudieron descargar las variables"
"Couldn't download {name}" = "No se pudo descargar {name}"
"Pasted design layers" = "Capas de diseño pegadas"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "Capas de diseño pegadas; el portapapeles no traía las imágenes de: {layers}"
"Relative to" = "Relativa a"
"Scroll wheel zoom" = "Zoom con la rueda del ratón"
"Trigger layer" = "Capa que la abre"
@@ -1698,6 +1700,7 @@ status = "draft — needs native review"
"grid track sizing list exceeds 1000 entries; the tracks use the default equal sizing" = "la lista de tamaños de pista de cuadrícula supera las 1000 entradas; las pistas usan el tamaño igual predeterminado"
"hidden" = "oculta"
"iOS" = "iOS"
"image fills whose image isn't in the file show a missing-image placeholder and keep its name" = "los rellenos de imagen cuya imagen no está en el archivo muestran un marcador de imagen ausente y conservan su nombre"
"image filters are ambiguous because both filter containers are present; filter conversion was skipped" = "los filtros de imagen son ambiguos porque están los dos contenedores de filtros; se omitió la conversión de filtros"
"image filters use FigCraft's approximate renderer" = "los filtros de imagen usan el renderizado aproximado de FigCraft"
"instance swap properties whose default component isn't in the file were skipped" = "se omitieron las propiedades de intercambio de instancia cuyo componente predeterminado no está en el archivo"
+3
View File
@@ -781,6 +781,8 @@ status = "draft — needs native review"
"Main menu" = "Päävalikko"
"Make a component" = "Luo komponentti"
"Make slot" = "Luo sisältöpaikka"
"Pasted design layers" = "Liitetyt suunnittelutasot"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "Suunnittelutasot liitetty; leikepöydällä ei ollut näiden kuvia: {layers}"
"Scroll wheel zoom" = "Zoomaus hiiren rullalla"
"Slot name" = "Sisältöpaikan nimi"
"Mar" = "maalisk."
@@ -1659,6 +1661,7 @@ status = "draft — needs native review"
"grid track sizing list exceeds 1000 entries; the tracks use the default equal sizing" = "ruudukon kokomääritysten luettelo ylittää 1000 kohdetta; osat käyttävät oletuksen mukaista tasakokoa"
"hidden" = "kätketty"
"iOS" = "iOS"
"image fills whose image isn't in the file show a missing-image placeholder and keep its name" = "kuvatäytöt, joiden kuvaa ei ole tiedostossa, näyttävät puuttuvan kuvan paikkamerkin ja säilyttävät sen nimen"
"image filters are ambiguous because both filter containers are present; filter conversion was skipped" = "kuvasuotimet ovat monitulkintaisia, koska molemmat suodinsäilöt ovat läsnä; suotimien muunnos ohitettiin"
"image filters use FigCraft's approximate renderer" = "kuvasuotimet käyttävät FigCraftin likimääräistä renderöijää"
"instance swap properties whose default component isn't in the file were skipped" = "ilmentymän vaihto-ominaisuudet ohitettiin, koska niiden oletuskomponenttia ei ole tiedostossa"
+3
View File
@@ -781,6 +781,8 @@ status = "draft — needs native review"
"Main menu" = "Menu principal"
"Make a component" = "Créer un composant"
"Make slot" = "Créer un emplacement"
"Pasted design layers" = "Calques de design collés"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "Calques de design collés ; le presse-papiers ne contenait pas les images de : {layers}"
"Scroll wheel zoom" = "Zoom avec la molette"
"Slot name" = "Nom de l'emplacement"
"Mar" = "mars"
@@ -1662,6 +1664,7 @@ status = "draft — needs native review"
"grid track sizing list exceeds 1000 entries; the tracks use the default equal sizing" = "la liste de dimensionnement des pistes de grille dépasse 1 000 entrées ; les pistes utilisent le dimensionnement égal par défaut"
"hidden" = "masqué"
"iOS" = "iOS"
"image fills whose image isn't in the file show a missing-image placeholder and keep its name" = "les remplissages d'image dont l'image n'est pas dans le fichier affichent un espace réservé d'image manquante et gardent son nom"
"image filters are ambiguous because both filter containers are present; filter conversion was skipped" = "les filtres d’image sont ambigus, car les deux conteneurs de filtres sont présents ; la conversion des filtres a été ignorée"
"image filters use FigCraft's approximate renderer" = "les filtres d’image utilisent le rendu approximatif de FigCraft"
"instance swap properties whose default component isn't in the file were skipped" = "les propriétés de permutation d’instance dont le composant par défaut n’est pas dans le fichier ont été ignorées"
+3
View File
@@ -9,6 +9,8 @@ status = "draft — needs native review"
[ui]
"Add a connected shape" = "Tambahkan bentuk yang terhubung"
"Pasted design layers" = "Lapisan desain yang ditempel"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "Lapisan desain ditempel; papan klip tidak membawa gambar dari: {layers}"
"Relative to" = "Relatif terhadap"
"Scroll wheel zoom" = "Zoom dengan roda gulir"
"Trigger layer" = "Layer pemicu"
@@ -1623,6 +1625,7 @@ status = "draft — needs native review"
"grid track sizing list exceeds 1000 entries; the tracks use the default equal sizing" = "daftar ukuran track grid melebihi 1000 entri; track memakai ukuran sama besar bawaan"
"hidden" = "tersembunyi"
"iOS" = "iOS"
"image fills whose image isn't in the file show a missing-image placeholder and keep its name" = "isian gambar yang gambarnya tidak ada di file menampilkan placeholder gambar hilang dan mempertahankan namanya"
"image filters are ambiguous because both filter containers are present; filter conversion was skipped" = "filter gambar ambigu karena kedua kontainer filter ada; konversi filter dilewati"
"image filters use FigCraft's approximate renderer" = "filter gambar memakai perenderan perkiraan FigCraft"
"instance swap properties whose default component isn't in the file were skipped" = "properti tukar instance yang component bawaannya tidak ada di file dilewati"
+3
View File
@@ -754,6 +754,8 @@ status = "draft — needs native review"
"Main menu" = "Menu principale"
"Make a component" = "Crea un componente"
"Make slot" = "Crea slot"
"Pasted design layers" = "Livelli di design incollati"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "Livelli di design incollati; gli appunti non contenevano le immagini di: {layers}"
"Scroll wheel zoom" = "Zoom con la rotella del mouse"
"Slot name" = "Nome dello slot"
"Mar" = "mar"
@@ -1597,6 +1599,7 @@ status = "draft — needs native review"
"grid track sizing list exceeds 1000 entries; the tracks use the default equal sizing" = "l'elenco di dimensionamento delle tracce della griglia supera 1000 voci; le tracce usano il dimensionamento uniforme predefinito"
"hidden" = "nascosto"
"iOS" = "iOS"
"image fills whose image isn't in the file show a missing-image placeholder and keep its name" = "i riempimenti immagine la cui immagine non è nel file mostrano un segnaposto di immagine mancante e ne mantengono il nome"
"image filters are ambiguous because both filter containers are present; filter conversion was skipped" = "i filtri immagine sono ambigui perché sono presenti entrambi i contenitori di filtri; la conversione dei filtri è stata saltata"
"image filters use FigCraft's approximate renderer" = "i filtri immagine usano il renderer approssimato di FigCraft"
"instance swap properties whose default component isn't in the file were skipped" = "le proprietà di scambio istanza il cui componente predefinito non è nel file sono state saltate"
+3
View File
@@ -775,6 +775,8 @@ status = "draft — needs native review"
"Main menu" = "メインメニュー"
"Make a component" = "コンポーネントを作成"
"Make slot" = "スロットにする"
"Pasted design layers" = "貼り付けたデザインレイヤー"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "デザインレイヤーを貼り付けました。クリップボードに次の画像がありませんでした: {layers}"
"Scroll wheel zoom" = "スクロールホイールでズーム"
"Slot name" = "スロット名"
"Mar" = "3月"
@@ -1643,6 +1645,7 @@ status = "draft — needs native review"
"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" = "デフォルトのコンポーネントがファイルにないインスタンスの入れ替えプロパティをスキップ"
+3
View File
@@ -788,6 +788,8 @@ status = "draft — reviewed by a native speaker, awaiting a maintainer's approv
"Main menu" = "მთავარი მენიუ"
"Make a component" = "შექმენით კომპონენტი"
"Make slot" = "სლოტად გადაქცევა"
"Pasted design layers" = "ჩასმული დიზაინის ფენები"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "დიზაინის ფენები ჩაისვა; ბუფერში არ იყო შემდეგის სურათები: {layers}"
"Scroll wheel zoom" = "მასშტაბირება გადახვევის ბორბლით"
"Slot name" = "სლოტის სახელი"
"Mar" = "მარ"
@@ -1680,6 +1682,7 @@ status = "draft — reviewed by a native speaker, awaiting a maintainer's approv
"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" = "ინსტანსის ჩანაცვლების თვისებები, რომელთა ნაგულისხმევი კომპონენტი ფაილში არ არის, გამოტოვებულია"
+3
View File
@@ -739,6 +739,8 @@ status = "draft — needs native review"
"Main component deleted" = "메인 컴포넌트가 삭제됨"
"Main menu" = "메인 메뉴"
"Make slot" = "슬롯으로 만들기"
"Pasted design layers" = "붙여넣은 디자인 레이어"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "디자인 레이어를 붙여넣었습니다. 클립보드에 다음 이미지가 없었습니다: {layers}"
"Scroll wheel zoom" = "스크롤 휠로 확대/축소"
"Slot name" = "슬롯 이름"
"Margin" = "여백"
@@ -1571,6 +1573,7 @@ status = "draft — needs native review"
"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" = "기본 컴포넌트가 파일에 없는 인스턴스 교체 속성을 건너뜀"
+3
View File
@@ -781,6 +781,8 @@ status = "draft — needs native review"
"Main menu" = "Hoofdmenu"
"Make a component" = "Maak een component"
"Make slot" = "Slot maken"
"Pasted design layers" = "Geplakte ontwerplagen"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "Ontwerplagen geplakt; het klembord bevatte de afbeeldingen van {layers} niet"
"Scroll wheel zoom" = "Zoomen met scrollwiel"
"Slot name" = "Slotnaam"
"Mar" = "mrt."
@@ -1659,6 +1661,7 @@ status = "draft — needs native review"
"grid track sizing list exceeds 1000 entries; the tracks use the default equal sizing" = "de lijst met maten voor rastertracks bevat meer dan 1000 items; de tracks gebruiken de standaard gelijke maat"
"hidden" = "verborgen"
"iOS" = "iOS"
"image fills whose image isn't in the file show a missing-image placeholder and keep its name" = "afbeeldingsvullingen waarvan de afbeelding niet in het bestand staat, tonen een plaatsaanduiding voor een ontbrekende afbeelding en behouden de naam"
"image filters are ambiguous because both filter containers are present; filter conversion was skipped" = "afbeeldingsfilters zijn dubbelzinnig omdat beide filtercontainers aanwezig zijn; filterconversie is overgeslagen"
"image filters use FigCraft's approximate renderer" = "afbeeldingsfilters gebruiken de benaderende renderer van FigCraft"
"instance swap properties whose default component isn't in the file were skipped" = "instance-swap-eigenschappen waarvan de standaardcomponent niet in het bestand zit, zijn overgeslagen"
+3
View File
@@ -783,6 +783,8 @@ name = "Polski"
"Main menu" = "Menu główne"
"Make a component" = "Utwórz komponent"
"Make slot" = "Utwórz gniazdo (slot)"
"Pasted design layers" = "Wklejone warstwy projektu"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "Wklejono warstwy projektu; schowek nie zawierał obrazów warstw: {layers}"
"Scroll wheel zoom" = "Powiększanie kółkiem myszy"
"Slot name" = "Nazwa gniazda"
"Mar" = "Mar"
@@ -1669,6 +1671,7 @@ name = "Polski"
"grid track sizing list exceeds 1000 entries; the tracks use the default equal sizing" = "lista rozmiarów ścieżek siatki przekracza 1000 pozycji; ścieżki używają domyślnego równego rozmiaru"
"hidden" = "ukryty"
"iOS" = "iOS"
"image fills whose image isn't in the file show a missing-image placeholder and keep its name" = "wypełnienia obrazem, których obrazu nie ma w pliku, pokazują symbol zastępczy brakującego obrazu i zachowują jego nazwę"
"image filters are ambiguous because both filter containers are present; filter conversion was skipped" = "filtry obrazu są niejednoznaczne, ponieważ obecne są oba kontenery filtrów; konwersja filtrów została pominięta"
"image filters use FigCraft's approximate renderer" = "filtry obrazu używają przybliżonego renderera FigCraft"
"instance swap properties whose default component isn't in the file were skipped" = "właściwości podmiany instancji, których domyślny komponent nie znajduje się w pliku, zostały pominięte"
+3
View File
@@ -738,6 +738,8 @@ status = "draft — needs native review"
"Main component deleted" = "Componente principal excluído"
"Main menu" = "Menu principal"
"Make slot" = "Transformar em slot"
"Pasted design layers" = "Camadas de design coladas"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "Camadas de design coladas; a área de transferência não trouxe as imagens de: {layers}"
"Scroll wheel zoom" = "Zoom com a roda do mouse"
"Slot name" = "Nome do slot"
"Margin" = "Margem"
@@ -1569,6 +1571,7 @@ status = "draft — needs native review"
"grid track sizing list exceeds 1000 entries; the tracks use the default equal sizing" = "a lista de dimensionamento de faixas da grade passa de 1000 entradas; as faixas usam o dimensionamento igual padrão"
"hidden" = "oculta"
"iOS" = "iOS"
"image fills whose image isn't in the file show a missing-image placeholder and keep its name" = "preenchimentos de imagem cuja imagem não está no arquivo mostram um marcador de imagem ausente e mantêm seu nome"
"image filters are ambiguous because both filter containers are present; filter conversion was skipped" = "os filtros de imagem são ambíguos porque os dois contêineres de filtro estão presentes; a conversão dos filtros foi ignorada"
"image filters use FigCraft's approximate renderer" = "os filtros de imagem usam a renderização aproximada do FigCraft"
"instance swap properties whose default component isn't in the file were skipped" = "propriedades de troca de instância cujo componente padrão não está no arquivo foram ignoradas"
+3
View File
@@ -783,6 +783,8 @@ name = "Русский"
"Main menu" = "Главное меню"
"Make a component" = "Создать компонент"
"Make slot" = "Сделать слотом"
"Pasted design layers" = "Вставленные слои дизайна"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "Слои дизайна вставлены; в буфере обмена не было изображений слоёв: {layers}"
"Scroll wheel zoom" = "Масштабирование колесом мыши"
"Slot name" = "Имя слота"
"Mar" = "мар."
@@ -1669,6 +1671,7 @@ name = "Русский"
"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" = "свойства замены экземпляра, компонент по умолчанию которых отсутствует в файле, пропущены"
+3
View File
@@ -818,6 +818,8 @@ name = "Svenska"
"Main menu" = "Huvudmeny"
"Make a component" = "Skapa en komponent"
"Make slot" = "Gör till plats"
"Pasted design layers" = "Inklistrade designlager"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "Designlager inklistrade; urklippet innehöll inte bilderna för: {layers}"
"Scroll wheel zoom" = "Zooma med scrollhjulet"
"Slot name" = "Platsens namn"
"Mar" = "Mar"
@@ -1726,6 +1728,7 @@ name = "Svenska"
"grid track sizing list exceeds 1000 entries; the tracks use the default equal sizing" = "listan över storlekar på rutnätsspår har fler än 1000 poster; spåren får standardstorleken med lika stora spår"
"hidden" = "dold"
"iOS" = "iOS"
"image fills whose image isn't in the file show a missing-image placeholder and keep its name" = "bildfyllningar vars bild inte finns i filen visar en platshållare för saknad bild och behåller dess namn"
"image filters are ambiguous because both filter containers are present; filter conversion was skipped" = "bildfiltren är tvetydiga eftersom båda filterbehållarna finns; filterkonverteringen hoppades över"
"image filters use FigCraft's approximate renderer" = "bildfilter använder FigCrafts ungefärliga rendering"
"instance swap properties whose default component isn't in the file were skipped" = "egenskaper för instansbyte vars standardkomponent inte finns i filen hoppades över"
+3
View File
@@ -777,6 +777,8 @@ status = "draft — needs native review"
"Main menu" = "เมนูหลัก"
"Make a component" = "สร้างคอมโพเนนต์"
"Make slot" = "สร้างสล็อต"
"Pasted design layers" = "เลเยอร์ดีไซน์ที่วาง"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "วางเลเยอร์ดีไซน์แล้ว คลิปบอร์ดไม่มีภาพของ: {layers}"
"Scroll wheel zoom" = "ซูมด้วยล้อเลื่อนเมาส์"
"Slot name" = "ชื่อสล็อต"
"Mar" = "มี.ค."
@@ -1648,6 +1650,7 @@ status = "draft — needs native review"
"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" = "ข้ามพร็อพเพอร์ตีสลับอินสแตนซ์ที่คอมโพเนนต์เริ่มต้นไม่อยู่ในไฟล์"
+3
View File
@@ -768,6 +768,8 @@ name = "Türkçe"
"Main menu" = "Ana menü"
"Make a component" = "Bileşen yap"
"Make slot" = "Yuva yap"
"Pasted design layers" = "Yapıştırılan tasarım katmanları"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "Tasarım katmanları yapıştırıldı; pano şunların görsellerini taşımıyordu: {layers}"
"Scroll wheel zoom" = "Kaydırma tekerleğiyle yakınlaştırma"
"Slot name" = "Yuva adı"
"Mar" = "Mar"
@@ -1623,6 +1625,7 @@ name = "Türkçe"
"grid track sizing list exceeds 1000 entries; the tracks use the default equal sizing" = "ızgara izi boyutlandırma listesi 1000 girdiyi aşıyor; izler varsayılan eşit boyutlandırmayı kullanır"
"hidden" = "gizli"
"iOS" = "iOS"
"image fills whose image isn't in the file show a missing-image placeholder and keep its name" = "görseli dosyada olmayan görsel dolguları eksik görsel yer tutucusu gösterir ve adını korur"
"image filters are ambiguous because both filter containers are present; filter conversion was skipped" = "iki filtre kapsayıcısı da bulunduğu için görüntü filtreleri belirsiz; filtre dönüştürme atlandı"
"image filters use FigCraft's approximate renderer" = "görüntü filtreleri FigCraft'ın yaklaşık işlemesini kullanır"
"instance swap properties whose default component isn't in the file were skipped" = "varsayılan bileşeni dosyada olmayan örnek değiştirme özellikleri atlandı"
+3
View File
@@ -755,6 +755,8 @@ status = "draft — needs native review"
"Main menu" = "Trình đơn chính"
"Make a component" = "Tạo thành phần"
"Make slot" = "Tạo ô chứa"
"Pasted design layers" = "Các lớp thiết kế đã dán"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "Đã dán các lớp thiết kế; bộ nhớ tạm không có hình ảnh của: {layers}"
"Scroll wheel zoom" = "Thu phóng bằng con lăn chuột"
"Slot name" = "Tên ô chứa"
"Mar" = "Thg 3"
@@ -1598,6 +1600,7 @@ status = "draft — needs native review"
"grid track sizing list exceeds 1000 entries; the tracks use the default equal sizing" = "danh sách kích thước dải lưới vượt quá 1000 mục; các dải sẽ dùng kích thước đều nhau mặc định"
"hidden" = "đã ẩn"
"iOS" = "iOS"
"image fills whose image isn't in the file show a missing-image placeholder and keep its name" = "các phần tô hình ảnh có hình ảnh không có trong tệp hiển thị phần giữ chỗ hình ảnh bị thiếu và giữ tên của nó"
"image filters are ambiguous because both filter containers are present; filter conversion was skipped" = "bộ lọc hình ảnh không rõ ràng do có cả hai vùng chứa bộ lọc; đã bỏ qua chuyển đổi bộ lọc"
"image filters use FigCraft's approximate renderer" = "bộ lọc hình ảnh sử dụng bộ kết xuất xấp xỉ của FigCraft"
"instance swap properties whose default component isn't in the file were skipped" = "đã bỏ qua các thuộc tính hoán đổi bản thể có thành phần mặc định không nằm trong tệp"
+3
View File
@@ -744,6 +744,8 @@ status = "draft — needs native review"
"Main component deleted" = "主组件已删除"
"Main menu" = "主菜单"
"Make slot" = "设为插槽"
"Pasted design layers" = "粘贴的设计图层"
"Pasted design layers; the clipboard didn't carry the images of: {layers}" = "已粘贴设计图层;剪贴板未包含以下图层的图像:{layers}"
"Scroll wheel zoom" = "滚轮缩放"
"Slot name" = "插槽名称"
"Margin" = "边距"
@@ -1579,6 +1581,7 @@ status = "draft — needs native review"
"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" = "已跳过默认组件不在文件中的实例替换属性"
+8 -3
View File
@@ -35,10 +35,15 @@ impl Report {
/// a native file's `repairs` are shown by the engine's own message, and an SVG opened without
/// notes has nothing to report. `params` are the command's, for the file's name.
pub fn from_result(command: &str, params: &Value, result: &Value) -> Option<Self> {
if !matches!(command, "file.open" | "file.openRecent" | "file.import") {
if !matches!(command, "file.open" | "file.openRecent" | "file.import" | "edit.pasteDesignLayers") {
return None;
}
let warnings = result.get("warnings").and_then(Value::as_array)?;
// A paste is reported when something was left out or changed, as an import into the page.
let pasted = command == "edit.pasteDesignLayers";
if pasted && warnings.is_empty() {
return None;
}
let file_name = params.get("path").and_then(Value::as_str).and_then(|p| std::path::Path::new(p).file_name()).and_then(|n| n.to_str());
if command != "file.import" && warnings.is_empty() && file_name.is_some_and(|n| n.to_ascii_lowercase().ends_with(".svg")) {
return None;
@@ -56,14 +61,14 @@ impl Report {
.and_then(Value::as_str)
.or(file_name)
.or_else(|| params.get("name").and_then(Value::as_str))
.unwrap_or(tr("Imported document"));
.unwrap_or(if pasted { tr("Pasted design layers") } else { tr("Imported document") });
let mut report = Self {
name: name.chars().take(512).collect(),
pages: count("pages"),
layers: count("layers"),
images: count("images"),
appended,
placed: command == "file.import" && !appended,
placed: (command == "file.import" && !appended) || pasted,
uid: 0,
notes: Vec::new(),
shown: Vec::new(),
+12
View File
@@ -202,3 +202,15 @@ fn a_file_opened_from_base64_data_has_a_summary_too() {
// Shown as a sentence, worked out once when the report opens.
assert!(report.shown.iter().any(|n| n == "Layers without a type were skipped"), "{:?}", report.shown);
}
#[test]
fn a_paste_that_left_something_out_is_reported_like_an_import() {
let note = "image fills whose image isn't in the file show a missing-image placeholder and keep its name";
let result = json!({"ids": [], "warnings": [note], "missingImages": ["Hero"]});
let report = Report::from_result("edit.pasteDesignLayers", &json!({"html": "<span></span>"}), &result).unwrap();
assert_eq!(report.name, "Pasted design layers");
assert!(report.placed && !report.appended, "placed on the current page");
assert_eq!(report.notes.len(), 1);
// A paste that left nothing out opens no report.
assert!(Report::from_result("edit.pasteDesignLayers", &json!({}), &json!({"ids": [], "warnings": []})).is_none());
}
+10 -2
View File
@@ -1,4 +1,7 @@
use serde_json::Value;
use super::{FigApp, dev_mode_refuses, json, trn};
use crate::i18n::trf;
/// Run a menu item: some open dialogs or use platform services, the rest go to the engine.
/// Paste: the system clipboard wins when it holds something newer than our own copy (layers copied
@@ -28,12 +31,17 @@ pub fn paste(app: &mut FigApp, event_text: Option<&str>, at: Option<(f64, f64)>)
params["x"] = json!(x);
params["y"] = json!(y);
}
if let Some(r) = app.run("edit.pasteDesignLayers", params) {
// A paste the user made: what was left out shows in the import report.
if let Some(r) = app.run_user("edit.pasteDesignLayers", params) {
// The pasted layers are now our copy: text another app puts on the clipboard later is newer.
app.ui.last_copy = Some(app.services.clipboard_get_text().unwrap_or_default());
app.ui.last_copy_generation = app.session.clipboard.layers_generation;
let missing: Vec<&str> = r["missingImages"].as_array().map(|a| a.iter().filter_map(Value::as_str).collect()).unwrap_or_default();
let left_out = r["warnings"].as_array().map_or(0, Vec::len);
if left_out > 0 {
if !missing.is_empty() {
// Name the layers: an image the clipboard didn't carry is easy to miss among them.
app.toast(trf("Pasted design layers; the clipboard didn't carry the images of: {layers}", &[("layers", &missing.join(", "))]));
} else if left_out > 0 {
app.toast(trn("Pasted design layers; {n} kinds of content were left out", left_out, &[]));
}
}
+1 -1
View File
@@ -100,7 +100,7 @@ layers}]` with `--json`); their text renders in a fallback font.
Every subcommand that reads a file also takes the public REST API file JSON (the response of
`GET /v1/files/:key` or of its nodes endpoint, written to a `.json` file): it is imported on the fly.
Image fills come from `images/<imageRef>.png` (or `.jpg`, …) next to the JSON when present, else a
grey placeholder. `.fig` files are read the same way (best effort, images from the file itself), and
missing-image placeholder (light grey with darker diagonal stripes). `.fig` files are read the same way (best effort, images from the file itself), and
so are `.sketch` files saved by Sketch 48 or newer;
`info` lists what wasn't imported as `note:` lines.
+3 -1
View File
@@ -1,6 +1,6 @@
# File format parity
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-30 · **Change:** minor (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-10-30 · **Change:** minor (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
@@ -39,6 +39,7 @@ and prototype interactions are still unchecked there.
| BMP | — | yes | | — |
| MP4, MOV, WebM (video fills, paid plans) | yes | **no** | shortcut: decoding H.264/HEVC/VP9 needs non-Rust libraries (FFmpeg or each platform's media framework); presenter playback would reuse the animated GIF clock | 4–8 |
| Images over 4096 px | downscaled to 4096 | kept | | — |
| Pasted content from other apps | images, SVG, text, Figma clipboard | images, SVG, text (newest clipboard content wins), **layers copied from another design app, best effort** | Cmd/Ctrl+V reads an image copied in another app (under Wayland through the data-control protocol, not run on Linux here; Linux and BSD clipboard reads give up after 2 s). Copied design layers: the `.fig` canvas in the clipboard's HTML is read like a `.fig` file (with its warnings) and pasted as Paste pastes, in place or into the selected frame (`edit.pasteDesignLayers {html \| data}`, refused over 256 MB before decoding); text copied later pastes as text again. An image the clipboard doesn't carry keeps its name on the fill and shows the missing-image placeholder (light grey with darker stripes), and the paste names those layers and lists its notes in the import report (#1646). Tested with clipboard HTML made from our own `.fig` export (`design_paste_tests`), never with a real clipboard from other software | with `.fig` |
| Pasted content from other apps | images, SVG, text, Figma clipboard | images, SVG, text (newest clipboard content wins), **layers copied from another design app, best effort** | Cmd/Ctrl+V reads an image copied in another app (under Wayland through the data-control protocol, not run on Linux here; Linux and BSD clipboard reads give up after 2 s). Copied design layers: the `.fig` canvas in the clipboard's HTML is read like a `.fig` file (with its warnings) and pasted as Paste pastes, in place or into the selected frame (`edit.pasteDesignLayers {html \| data}`, refused over 256 MB before decoding); text copied later pastes as text again. Shared paint, text and effect styles that a pasted layer links by the guid of the library it came from are found by their library asset, so the layers keep the style's colours and their link to it; a link to a style the clipboard doesn't hold keeps the layer's stored colours, with a note (#1638). Tested with clipboard HTML made from our own `.fig` export (`design_paste_tests`) and with design data built in code (`paste_style_tests`), never with a real clipboard from other software | with `.fig` |
## Export
@@ -186,6 +187,7 @@ source paint coordinates.
| Date | Change | Summary |
|---|---|---|
| 2026-10-30 | minor | Pasted content row: an image the clipboard doesn't carry keeps its name and shows a placeholder that reads as missing; the paste names those layers in its message and opens the import report with its notes (#1646). Numbers unchanged |
| 2026-10-30 | minor | Pasted content row: styles a pasted layer links by its library's guid are found by their library asset, so paint-style colours on pasted components and instances no longer import as black; a link to a style that isn't there keeps the stored colour, with a note (#1638). Numbers unchanged |
| 2026-10-30 | minor | `.fig` import: elbowed and curved connectors saved without their path were drawn straight; they now run as FigCraft's board connectors do, in right angles or one curve, from the side of each layer they join (the file's `magnet`, else the edge its point is on, else the side facing the other end). The router moved from the engine into `figcraft-doc` (`route_points`) so both use it. Straight connectors are unchanged. Not checked on real files. Tests: `fig::tests::tail` (`other_layer_kinds_import_as_the_closest_layers`, `connectors_without_a_saved_path_follow_their_line_style`) |
| 2026-10-30 | minor | M3, #1280: `.fig` export writes a colour calculation (a variable's `{alpha}` or `{mix}` value) as the colour it shows in each mode of its collection, other collections in their default modes; one that resolves to nothing (an operand missing, or more than 32 variables to read) is left out with a warning. Tests: `crates/format/src/fig/assets_tests.rs`. Numbers unchanged. |
+2 -1
View File
File diff suppressed because one or more lines are too long