Merge #1160: M0.9: figcraft-cli export names files as the app's export does (#1154) (@switch87)

This commit is contained in:
bflatastic
2026-10-24 09:16:12 +07:00
5 changed files with 49 additions and 4 deletions
+4
View File
@@ -53,6 +53,10 @@ page 1 "Screens": 380 nodes, 4 top-level
- `<out>` is a directory: one file per top-level frame of the page (default the first page), named
after the frame (`Home.png`, `Settings.png`…); with no frames, one file per top-level layer.
The name is kept as it is, except for the characters file systems refuse (`/ \ : * ? " < > |`
and control characters), which become `_`, and leading or trailing spaces and dots, which are
dropped. A name is cut at 100 characters. The app's export replaces the same characters (there a
`/` makes a folder). Two layers with the same name get `Name 2`, `Name 3`…
- `<out>` has an image extension: one file with the given `--node`, or the whole page composited.
- `--node` takes a layer id (`12` or `0:12`) or a layer name.
- `--format fig` (or an `<out>` ending in `.fig`) writes the whole file as `.fig`, experimental: