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
+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.