Skip to content

Added definition of ElementPlacement. #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 33 additions & 6 deletions Illustrator/2015.3/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
/// <reference path="../../shared/global.d.ts" />
/// <reference path="../../shared/ScriptUI.d.ts" />

/**
* 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.
*/
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
43 changes: 35 additions & 8 deletions Illustrator/2022/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
/// <reference path="../../shared/global.d.ts" />
/// <reference path="../../shared/ScriptUI.d.ts" />

/**
* 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.
*/
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
}

/**
Expand Down Expand Up @@ -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.
Expand Down