diff --git a/Illustrator/2015.3/index.d.ts b/Illustrator/2015.3/index.d.ts index 6e47d250..d3d96792 100644 --- a/Illustrator/2015.3/index.d.ts +++ b/Illustrator/2015.3/index.d.ts @@ -1,6 +1,33 @@ /// /// +/** + * Location to move element to. + * @see https://ai-scripting.docsforadobe.dev/jsobjref/scripting-constants/?h=elementplacement#elementplacement + */ +declare enum ElementPlacement { + /** + * Inside + */ + INSIDE = "INSIDE", + /** + * Place After + */ + PLACEAFTER = "PLACEAFTER", + /** + * Place At Beginning + */ + PLACEATBEGINNING = "PLACEATBEGINNING", + /** + * Place At End + */ + PLACEATEND = "PLACEATEND", + /** + * Place Before + */ + PLACEBEFORE = "PLACEBEFORE", +} + /** * The screen mode. */ @@ -9090,7 +9117,7 @@ declare class Layer { * @param relativeObject * @param insertionLocation */ - move(relativeObject: object, insertionLocation: any): Layer + move(relativeObject: object, insertionLocation: ElementPlacement): Layer /** * Deletes this object. @@ -9583,7 +9610,7 @@ declare class Symbol { * @param relativeObject * @param insertionLocation */ - duplicate(relativeObject: object, insertionLocation: any): Symbol + duplicate(relativeObject: object, insertionLocation: ElementPlacement): Symbol /** * Deletes this object. @@ -9876,14 +9903,14 @@ declare class PageItem { * @param relativeObject * @param insertionLocation */ - duplicate(relativeObject: object, insertionLocation: any): PageItem + duplicate(relativeObject: object, insertionLocation: ElementPlacement): PageItem /** * Move the object. * @param relativeObject * @param insertionLocation */ - move(relativeObject: object, insertionLocation: any): PageItem + move(relativeObject: object, insertionLocation: ElementPlacement): PageItem /** * Deletes this object. @@ -11006,14 +11033,14 @@ declare class TextRange { * @param relativeObject * @param insertionLocation */ - duplicate(relativeObject: object, insertionLocation: any): TextRange + duplicate(relativeObject: object, insertionLocation: ElementPlacement): TextRange /** * Move the object. * @param relativeObject * @param insertionLocation */ - move(relativeObject: object, insertionLocation: any): TextRange + move(relativeObject: object, insertionLocation: ElementPlacement): TextRange /** * Deletes this object. diff --git a/Illustrator/2022/index.d.ts b/Illustrator/2022/index.d.ts index 25f3c47a..7811eb46 100644 --- a/Illustrator/2022/index.d.ts +++ b/Illustrator/2022/index.d.ts @@ -1,6 +1,33 @@ /// /// +/** + * Location to move element to. + * @see https://ai-scripting.docsforadobe.dev/jsobjref/scripting-constants/?h=elementplacement#elementplacement + */ +declare enum ElementPlacement { + /** + * Inside + */ + INSIDE = "INSIDE", + /** + * Place After + */ + PLACEAFTER = "PLACEAFTER", + /** + * Place At Beginning + */ + PLACEATBEGINNING = "PLACEATBEGINNING", + /** + * Place At End + */ + PLACEATEND = "PLACEATEND", + /** + * Place Before + */ + PLACEBEFORE = "PLACEBEFORE", +} + /** * The screen mode. */ @@ -9090,7 +9117,7 @@ declare class Layer { * @param relativeObject * @param insertionLocation */ - move(relativeObject: object, insertionLocation: any): Layer + move(relativeObject: object, insertionLocation: ElementPlacement): Layer /** * Deletes this object. @@ -9583,7 +9610,7 @@ declare class Symbol { * @param relativeObject * @param insertionLocation */ - duplicate(relativeObject: object, insertionLocation: any): Symbol + duplicate(relativeObject: object, insertionLocation: ElementPlacement): Symbol /** * Deletes this object. @@ -9876,14 +9903,14 @@ declare class PageItem { * @param relativeObject * @param insertionLocation */ - duplicate(relativeObject?: object, insertionLocation?: any): PageItem + duplicate(relativeObject?: object, insertionLocation?: ElementPlacement): PageItem /** * Move the object. * @param relativeObject * @param insertionLocation */ - move(relativeObject: object, insertionLocation: any): PageItem + move(relativeObject: object, insertionLocation: ElementPlacement): PageItem /** * Deletes this object. @@ -10166,14 +10193,14 @@ declare class PathItem extends PageItem { * @param relativeObject * @param insertionLocation */ - duplicate(relativeObject?: object, insertionLocation?: any): PathItem + duplicate(relativeObject?: object, insertionLocation?: ElementPlacement): PathItem /** * Move the object. * @param relativeObject * @param insertionLocation */ - move(relativeObject: object, insertionLocation: any): PathItem + move(relativeObject: object, insertionLocation: ElementPlacement): PathItem } /** @@ -11028,14 +11055,14 @@ declare class TextRange { * @param relativeObject * @param insertionLocation */ - duplicate(relativeObject: object, insertionLocation: any): TextRange + duplicate(relativeObject: object, insertionLocation: ElementPlacement): TextRange /** * Move the object. * @param relativeObject * @param insertionLocation */ - move(relativeObject: object, insertionLocation: any): TextRange + move(relativeObject: object, insertionLocation: ElementPlacement): TextRange /** * Deletes this object.