mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 02:35:37 +01:00
Docs: Documents.add checks artboardRowsOrCols for every layout
This commit is contained in:
1 parent
4ef58e025f
commit
8b42847f90
1 file changed
+2
-1
+2
-1
@@ -2971,7 +2971,8 @@ through `$`:
|
||||
and `add(colorSpace?, width?, height?, numArtBoards?, artboardLayout?, artboardSpacing?, artboardRowsOrCols?)`,
|
||||
which runs `file.new` (`artboardRowsOrCols` is the number of rows for `GridByCol` and `RLGridByCol` and the number
|
||||
of columns for `GridByRow` and `RLGridByRow`; `Row`, `RLRow` and `Column` put the artboards in one row or column and
|
||||
do not use it), and `addDocument(startupPreset, presetSettings?, showOptionsDialog?)`, which runs `file.new`
|
||||
do not use it; a supplied value must still be a whole number from 1 to `numArtBoards`, which is 1 when omitted, or
|
||||
`add` throws a `RangeError`), and `addDocument(startupPreset, presetSettings?, showOptionsDialog?)`, which runs `file.new`
|
||||
with the New Document profile `startupPreset` names (`Print`, `Web`, `Mobile`, `Video`, another profile of
|
||||
`file.newPresets`, or `Basic CMYK` and `Basic RGB` for no profile), starting from the first preset
|
||||
`file.newPresets` lists for that profile, and the settings of a `new DocumentPreset()`
|
||||
|
||||
Reference in new issue
Block a user