From 9751249377d86e8b3d5b4cc829676e879b8cbe1a Mon Sep 17 00:00:00 2001 From: utenma <19735362+utenma@users.noreply.github.com> Date: Tue, 12 Nov 2024 22:31:23 -0700 Subject: [PATCH 1/2] DocumentPreset updated --- Illustrator/2022/index.d.ts | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/Illustrator/2022/index.d.ts b/Illustrator/2022/index.d.ts index 25f3c47..c66059d 100644 --- a/Illustrator/2022/index.d.ts +++ b/Illustrator/2022/index.d.ts @@ -7064,62 +7064,67 @@ declare class DocumentPreset { /** * Layout for artboards. */ - static artboardLayout: DocumentArtboardLayout + artboardLayout: DocumentArtboardLayout /** * Number of rows (for rows layout) OR column(for column layouts)of artboards.Range is 1 to (docNumArtboards - 1) or 1 for single row or column layouts. */ - static artboardRowsOrCols: number + artboardRowsOrCols: number /** * Spacing between artboards. */ - static artboardSpacing: number + artboardSpacing: number /** * The color mode for the new document. */ - static colorMode: DocumentColorSpace + colorMode: DocumentColorSpace /** * The height for the new document. */ - static height: number + height: number /** * Number of artboards for new document.Range (1:100). */ - static numArtboards: number + numArtboards: number /** * The preview mode for the new document. */ - static previewMode: DocumentPreviewMode + previewMode: DocumentPreviewMode /** * The raster resolution for the new document. */ - static rasterResolution: DocumentRasterResolution + rasterResolution: DocumentRasterResolution /** * The title for the new document. */ - static title: string + title: string /** * The transparency grid for the new document. */ - static transparencyGrid: DocumentTransparencyGrid + transparencyGrid: DocumentTransparencyGrid + + /** + * Read-only. The class name of the referenced object. + */ + readonly typename: string /** * The units for the new document. */ - static units: RulerUnits + units: RulerUnits /** * The width for the new document. */ - static width: number + width: number } /** From a6d560d5d913c5db2a158f6d58fd91a77345df47 Mon Sep 17 00:00:00 2001 From: utenma <19735362+utenma@users.noreply.github.com> Date: Tue, 12 Nov 2024 22:46:03 -0700 Subject: [PATCH 2/2] Documents instance member addDocument() --- Illustrator/2022/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Illustrator/2022/index.d.ts b/Illustrator/2022/index.d.ts index c66059d..61c5d28 100644 --- a/Illustrator/2022/index.d.ts +++ b/Illustrator/2022/index.d.ts @@ -3778,7 +3778,7 @@ declare class Documents extends Array { * @param presetSettings Custom settings to apply to the preset. * @param showOptionsDialog If false, do not show Options dialog. */ - static addDocument( + addDocument( startupPreset: string, presetSettings?: DocumentPreset, showOptionsDialog?: boolean,