From 8b42847f90db12f20ccbde5c2951862ee33d3eb5 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Mon, 30 Nov 2026 15:09:19 -0800 Subject: [PATCH] Docs: Documents.add checks artboardRowsOrCols for every layout --- docs/mcp.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/mcp.md b/docs/mcp.md index b67a0f7cb9..4a5d1f9344 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -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()`