MathObjects

MathObject(数式オブジェクト)のコレクション

プロパティ

Ver.プロパティ名R/O説明
[20][21] length 数値オブジェクト数

メソッド

Ver.メソッドの書式戻り値メソッドの説明
  パラメータパラメータの説明
[20][21] add([mathmlDescription], [destinationPage], [destinationLayer], [placePoint], [withProperties]) MathObject新しいオブジェクトを作成し、それを返す(ページ上に作成される)
[mathmlDescription] 文字列値MathMLの記述
[destinationPage] Page配置するページ
[destinationLayer] Layer配置するレイヤー
[placePoint] [ x, y ]座標(ページが指定されている場合のみ)
[withProperties] Objectプロパティを設定
[20][21] anyItem() MathObjectどれかのオブジェクトを返す
[20][21] count() 数値要素数を返す
[20][21] everyItem() MathObject (Array)全てのオブジェクトを返す
[20][21] firstItem() MathObject最初のオブジェクトを返す
[20][21] item(index) MathObjectインデックスまたは名前で指定したオブジェクトを返す
index 数値, 文字列値インデックスまたは名前
[20][21] itemByID(id) MathObjectIDで指定したオブジェクトを返す
id 数値
[20][21] itemByName(name) MathObject名前で指定したオブジェクトを返す
name 文字列値
[20][21] itemByRange(from, to) MathObject (Array)範囲で指定したオブジェクトを返す
from MathObject, 数値, 文字列値範囲の開始
to MathObject, 数値, 文字列値範囲の終了
[20][21] lastItem() MathObject最後のオブジェクトを返す
[20][21] middleItem() MathObject真ん中のオブジェクトを返す
[20][21] nextItem(obj) MathObject一つ後のオブジェクトを返す
obj MathObject位置の基準になるオブジェクト
[20][21] previousItem(obj) MathObject一つ前のオブジェクトを返す
obj MathObject位置の基準になるオブジェクト
[20][21] toSource() 文字列値ソースコードを表す文字列を返す

MathObject

数式オブジェクト

プロパティ(parentとその逆)

Ver.プロパティR/O
[20][21] parent Rectangle
[20][21] eventListeners EventListeners
[20][21] events Events

プロパティ

Ver.プロパティ名R/O説明
[20][21] appliedMathMLFontSize 数値数式オブジェクトの文字サイズ(ポイント)
[20][21] appliedMathMLRgbColor [ r, g, b ]数式オブジェクトのRGB色
[20][21] appliedMathMLSwatch Swatch, NothingEnum.NOTHING(1851876449/nada)数式オブジェクトの色
[20][21] id 数値オブジェクトのID
[20][21] index 数値インデックス
[20][21] isMathMLObject 真偽値数式オブジェクトかどうか。多分常にtrue
[20][21] isValid 真偽値オブジェクトが有効かどうか
[20][21] label 文字列値スクリプトラベル
[20][21] mathmlDescription 文字列値MathMLの記述
[20][21] name 文字列値オブジェクトの名前
[20][21] properties Object
[20][21] tintValue 数値数式オブジェクトの濃淡 ( 0 - 100 )

メソッド

Ver.メソッドの書式戻り値メソッドの説明
  パラメータパラメータの説明
[20][21] addEventListener(eventType, handler, [captures]) EventListenerEventListenerを作成
eventType 文字列値
handler ファイル, JavaScript関数
[captures] 真偽値(廃止)
[20][21] extractLabel(key) 文字列値キーに関連づけられた値を取得
key 文字列値キー
[20][21] getElements() Array( MathObject )オブジェクト参照を返す
[20][21] insertLabel(key, value) なしキーに関連づけられた値を設定
key 文字列値キー
value 文字列値
[20][21] removeEventListener(eventType, handler, [captures]) 真偽値EventListenerを削除
eventType 文字列値
handler ファイル, JavaScript関数
[captures] 真偽値(廃止)
[20][21] toSource() 文字列値ソースコードを表す文字列を返す
[20][21] toSpecifier() 文字列値Retrieves the object specifier.

クラス

プロパティ名値(文字列)説明
AFTER_PLACEafterPlaceDispatched after a MathObject is placed. This event bubbles. This event is not cancelable.
BEFORE_PLACEbeforePlaceDispatched before a MathObject is placed. This event bubbles. This event is cancelable.