Ver. | プロパティ名 | R/O | 値 | 説明 |
|
allowOverrides | |
真偽値 | マスターページ(親ページ)アイテムのオーバーライドを許可(通常ページのオブジェクトではエラー) |
|
fitToPage | |
真偽値 | If true, horizontal orientation guides stop at the edges of the specified page. If false, the guides extends across the width of the spread and into the pasteboard area. |
|
guideColor | |
[ r, g, b ], UIColors | スマートガイドのカラー |
|
guideType | |
GuideTypeOptions
GuideTypeOptions |
---|
Ver. | 値 | 10進数/文字列 | 説明 |
| LIQUID | 1735617635 gslc | Liquid guide. |
| RULER | 1735618160 gsnp | Ruler guide (default). |
| The type of the guide. |
|
guideZone | |
長さ値 | The zone of the guide. |
|
id | ○ |
数値 | オブジェクトのID |
|
index | ○ |
数値 | インデックス |
|
isValid | ○ |
真偽値 | オブジェクトが有効かどうか |
|
itemLayer | |
Layer | オブジェクトのあるレイヤー |
|
label | |
文字列値 | スクリプトラベル |
|
location | |
長さ値 | The location at which to place the guide relative to the current ruler zero point. |
|
locked | |
真偽値 | ロックされているか |
|
name | |
文字列値 | オブジェクトの名前 - label のエイリアス |
|
orientation | |
HorizontalOrVertical
HorizontalOrVertical |
---|
Ver. | 値 | 10進数/文字列 | 説明 |
| HORIZONTAL | 1752134266 horz | 横組み(横) |
| VERTICAL | 1986359924 vert | 縦組み(縦) |
| The orientation of the guide. |
|
overridden | ○ |
真偽値 | オーバーライドしたオブジェクトかどうか |
|
overriddenMasterPageItem | ○ |
PageItem, Guide, Graphic, Movie, Sound | オーバーライド元のページアイテム |
|
properties | |
Object | |
|
viewThreshold | |
数値 | The view magnification as a percentage below which guides are no longer displayed. (5 - 4000 %) |
Ver. | メソッドの書式 | 戻り値 | メソッドの説明 |
---|
| | パラメータ | 値 | | パラメータの説明 |
|
addEventListener(eventType, handler, [captures]) |
EventListener | EventListenerを作成 |
| eventType |
文字列値 | | |
| handler |
ファイル, JavaScript関数 | | |
| [captures] |
真偽値 | | (廃止) |
|
detach() |
なし | オーバーライドされたマスターページアイテムをマスターから分離 |
|
duplicate() |
Guide | 複製。複製されたオブジェクトを返す |
|
extractLabel(key) |
文字列値 | キーに関連づけられた値を取得 |
| key |
文字列値 | | キー |
|
getElements() |
Array( Guide ) | オブジェクト参照を返す |
|
insertLabel(key, value) |
なし | キーに関連づけられた値を設定 |
| key |
文字列値 | | キー |
| value |
文字列値 | | 値 |
|
move([to], [by]) |
なし | 移動。ToまたはByが必要 |
| [to] |
[ x, y ] | | 移動先(座標値)。x, yは数値または長さ値 |
| [by] |
[ x, y ] | | 移動先(相対値)。x, yは数値または長さ値 |
|
override(destinationPage) |
作成されたオブジェクト | マスターページアイテムの上書き(オーバーライド) |
| destinationPage |
Page | | オーバーライド先のページ |
|
remove() |
なし | 削除 |
|
removeEventListener(eventType, handler, [captures]) |
真偽値 | EventListenerを削除 |
| eventType |
文字列値 | | |
| handler |
ファイル, JavaScript関数 | | |
| [captures] |
真偽値 | | (廃止) |
|
removeOverride() |
なし | オーバーライドを削除 |
|
resolve(location, in, [consideringRulerUnits]) |
varies=any | Get the coordinates of the given location in the specified coordinate system. |
| location |
varies=any | | The location requested. Can accept: Array of 2 Reals, AnchorPoint enumerator or Array of Arrays of 2 Reals, CoordinateSpaces enumerators, AnchorPoint enumerators, BoundingBoxLimits enumerators or Long Integers. |
| in |
CoordinateSpaces
CoordinateSpaces |
---|
Ver. | 値 | 10進数/文字列 | 説明 |
| INNER_COORDINATES | 2021222766 xyin | 自身を基準とした座標空間 |
| PAGE_COORDINATES | 2021224551 xypg | ページ基準の座標空間 |
| PARENT_COORDINATES | 2021224545 xypa | 親オブジェクト基準の座標空間 |
| PASTEBOARD_COORDINATES | 2021224546 xypb | ペーストボード基準の座標空間 |
| SPREAD_COORDINATES | 2021225328 xysp | スプレッド基準の座標空間 |
| | 使用する座標空間 |
| [consideringRulerUnits] |
真偽値 | | ルーラの単位を使うかどうか (既定値=false) |
|
select([existingSelection]) |
なし | 選択状態にする |
| [existingSelection] |
SelectionOptions
SelectionOptions |
---|
Ver. | 値 | 10進数/文字列 | 説明 |
| ADD_TO | 1633969202 add2 | 追加選択する |
| REMOVE_FROM | 1919249734 remF | 選択から削除する |
| REPLACE_WITH | 1919250519 repW | 置き換える |
| SET_KEY | 1936028779 setk | 整列のキーオブジェクトにする |
| | 既に選択されているものがあった場合 (既定値=SelectionOptions.REPLACE_WITH) |
|
toSource() |
文字列値 | ソースコードを表す文字列を返す |
|
toSpecifier() |
文字列値 | Retrieves the object specifier. |
|
transformValuesOf(in) |
Array( TransformationMatrix ) | 変形の値を取得 |
| in |
CoordinateSpaces
CoordinateSpaces |
---|
Ver. | 値 | 10進数/文字列 | 説明 |
| INNER_COORDINATES | 2021222766 xyin | 自身を基準とした座標空間 |
| PAGE_COORDINATES | 2021224551 xypg | ページ基準の座標空間 |
| PARENT_COORDINATES | 2021224545 xypa | 親オブジェクト基準の座標空間 |
| PASTEBOARD_COORDINATES | 2021224546 xypb | ペーストボード基準の座標空間 |
| SPREAD_COORDINATES | 2021225328 xysp | スプレッド基準の座標空間 |
| | 使用する座標空間 |