MathObject(数式オブジェクト)のコレクション
| Ver. | プロパティ名 | R/O | 値 | 説明 |
|---|---|---|---|---|
| length | ○ | 数値 | オブジェクト数 |
| Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||
|---|---|---|---|---|---|
| パラメータ | 値 | パラメータの説明 | |||
| add([mathmlDescription], [destinationPage], [destinationLayer], [placePoint], [withProperties]) | MathObject | 新しいオブジェクトを作成し、それを返す(ページ上に作成される) | |||
| [mathmlDescription] | 文字列値 | MathMLの記述 | |||
| [destinationPage] | Page | 配置するページ | |||
| [destinationLayer] | Layer | 配置するレイヤー | |||
| [placePoint] | [ x, y ] | 座標(ページが指定されている場合のみ) | |||
| [withProperties] | Object | プロパティを設定 | |||
| anyItem() | MathObject | どれかのオブジェクトを返す | |||
| count() | 数値 | 要素数を返す | |||
| everyItem() | MathObject (Array) | 全てのオブジェクトを返す | |||
| firstItem() | MathObject | 最初のオブジェクトを返す | |||
| item(index) | MathObject | インデックスまたは名前で指定したオブジェクトを返す | |||
| index | 数値, 文字列値 | インデックスまたは名前 | |||
| itemByID(id) | MathObject | IDで指定したオブジェクトを返す | |||
| id | 数値 | ||||
| itemByName(name) | MathObject | 名前で指定したオブジェクトを返す | |||
| name | 文字列値 | ||||
| itemByRange(from, to) | MathObject (Array) | 範囲で指定したオブジェクトを返す | |||
| from | MathObject, 数値, 文字列値 | 範囲の開始 | |||
| to | MathObject, 数値, 文字列値 | 範囲の終了 | |||
| lastItem() | MathObject | 最後のオブジェクトを返す | |||
| middleItem() | MathObject | 真ん中のオブジェクトを返す | |||
| nextItem(obj) | MathObject | 一つ後のオブジェクトを返す | |||
| obj | MathObject | 位置の基準になるオブジェクト | |||
| previousItem(obj) | MathObject | 一つ前のオブジェクトを返す | |||
| obj | MathObject | 位置の基準になるオブジェクト | |||
| toSource() | 文字列値 | ソースコードを表す文字列を返す | |||
数式オブジェクト
| Ver. | プロパティ | R/O | 値 |
|---|---|---|---|
| parent | ○ | Rectangle | |
| eventListeners | ○ | EventListeners | |
| events | ○ | Events | |
| Ver. | プロパティ名 | R/O | 値 | 説明 |
|---|---|---|---|---|
| appliedMathMLFontSize | 数値 | 数式オブジェクトの文字サイズ(ポイント) | ||
| appliedMathMLRgbColor | [ r, g, b ] | 数式オブジェクトのRGB色 | ||
| appliedMathMLSwatch | Swatch, NothingEnum.NOTHING(1851876449/nada) | 数式オブジェクトの色 | ||
| id | ○ | 数値 | オブジェクトのID | |
| index | ○ | 数値 | インデックス | |
| isMathMLObject | ○ | 真偽値 | 数式オブジェクトかどうか。多分常にtrue | |
| isValid | ○ | 真偽値 | オブジェクトが有効かどうか | |
| label | 文字列値 | スクリプトラベル | ||
| mathmlDescription | 文字列値 | MathMLの記述 | ||
| name | 文字列値 | オブジェクトの名前 | ||
| properties | Object | |||
| tintValue | 数値 | 数式オブジェクトの濃淡 ( 0 - 100 ) |
| Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||
|---|---|---|---|---|---|
| パラメータ | 値 | パラメータの説明 | |||
| addEventListener(eventType, handler, [captures]) | EventListener | EventListenerを作成 | |||
| eventType | 文字列値 | ||||
| handler | ファイル, JavaScript関数 | ||||
| [captures] | 真偽値 | (廃止) | |||
| extractLabel(key) | 文字列値 | キーに関連づけられた値を取得 | |||
| key | 文字列値 | キー | |||
| getElements() | Array( MathObject ) | オブジェクト参照を返す | |||
| insertLabel(key, value) | なし | キーに関連づけられた値を設定 | |||
| key | 文字列値 | キー | |||
| value | 文字列値 | 値 | |||
| removeEventListener(eventType, handler, [captures]) | 真偽値 | EventListenerを削除 | |||
| eventType | 文字列値 | ||||
| handler | ファイル, JavaScript関数 | ||||
| [captures] | 真偽値 | (廃止) | |||
| toSource() | 文字列値 | ソースコードを表す文字列を返す | |||
| toSpecifier() | 文字列値 | Retrieves the object specifier. | |||
| プロパティ名 | 値(文字列) | 説明 |
|---|---|---|
| AFTER_PLACE | afterPlace | Dispatched after a MathObject is placed. This event bubbles. This event is not cancelable. |
| BEFORE_PLACE | beforePlace | Dispatched before a MathObject is placed. This event bubbles. This event is cancelable. |