mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 05:22:58 -05:00
Merge pull request #10640 from dotCooCoo/fix/newdoc-preset-category
New Document: a bad preset or presetCategory is an error instead of being ignored
This commit is contained in:
4 files changed
+69
-6
No files matched your search
+1
-1
@@ -11257,7 +11257,7 @@ and goes back to Document Setup, whose OK runs `document.setup`; its Cancel goes
|
||||
|
||||
`file.new` takes everything New Document sets: `preset` (a name from `file.newPresets`, a saved preset before a
|
||||
built-in one of the same name; with `presetCategory`, a category of `file.newPresets`, the preset of that name in
|
||||
that category), `name`, `width`/`height`
|
||||
that category; an unknown category, or `presetCategory` without `preset`, is an error), `name`, `width`/`height`
|
||||
(points, or lengths such as `"210 mm"`), `units`, `orientation`, `artboards` with `artboardLayout {layout, columns,
|
||||
rows, spacing, rightToLeft}` (`artboards`, `columns` and `rows` are whole numbers from 1 to 1000, and any other number is an error; `rows` gives a `gridByColumn` layout that many rows, at most one for each artboard, in place of `columns`, and is
|
||||
an error with another layout; a preset keeps the rows, and `file.newPresets` lists them as set even when there are
|
||||
|
||||
Reference in new issue
Block a user