PathPoints

PathPoint(アンカーポイント)のコレクション

プロパティ

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

メソッド

Ver.メソッドの書式戻り値メソッドの説明
  パラメータパラメータの説明
[18][19][20][21] add([withProperties]) PathPoint新しいオブジェクトを作成し、それを返す
[withProperties] Objectプロパティを設定
[18][19][20][21] anyItem() PathPointどれかのオブジェクトを返す
[18][19][20][21] count() 数値要素数を返す
[18][19][20][21] everyItem() PathPoint (Array)全てのオブジェクトを返す
[18][19][20][21] firstItem() PathPoint最初のオブジェクトを返す
[18][19][20][21] item(index) PathPointインデックスまたは名前で指定したオブジェクトを返す
index 数値, 文字列値インデックスまたは名前
[18][19][20][21] itemByRange(from, to) PathPoint (Array)範囲で指定したオブジェクトを返す
from PathPoint, 数値, 文字列値範囲の開始
to PathPoint, 数値, 文字列値範囲の終了
[18][19][20][21] lastItem() PathPoint最後のオブジェクトを返す
[18][19][20][21] middleItem() PathPoint真ん中のオブジェクトを返す
[18][19][20][21] nextItem(obj) PathPoint一つ後のオブジェクトを返す
obj PathPoint位置の基準になるオブジェクト
[18][19][20][21] previousItem(obj) PathPoint一つ前のオブジェクトを返す
obj PathPoint位置の基準になるオブジェクト
[18][19][20][21] toSource() 文字列値ソースコードを表す文字列を返す

PathPoint

アンカーポイント

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

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

プロパティ

Ver.プロパティ名R/O説明
[18][19][20][21] anchor [ x, y ]アンカーポイントの座標。x,yは数値または長さ値
[18][19][20][21] index 数値インデックス
[18][19][20][21] isValid 真偽値オブジェクトが有効かどうか
[18][19][20][21] leftDirection [ x, y ]ハンドルの座標。x,yは数値または長さ値
[18][19][20][21] pointType PointType
PointType
Ver.プロパティ値/管理用文字説明
[18][19][20][21]CORNER1668443762
crnr
コーナーポイント
[18][19][20][21]PLAIN1886151022
plan
The point is a plain point, it has no direction lines.
[18][19][20][21]SMOOTH1936553064
smth
スムースポイント
[18][19][20][21]SYMMETRICAL1937337709
symm
A special type of smooth point with two direction lines of equal length.
[18][19][20][21] properties Object
[18][19][20][21] rightDirection [ x, y ]ハンドルの座標。x,yは数値または長さ値

メソッド

Ver.メソッドの書式戻り値メソッドの説明
  パラメータパラメータの説明
[18][19][20][21] addEventListener(eventType, handler, [captures]) EventListenerEventListenerを作成
eventType 文字列値
handler ファイル, JavaScript関数
[captures] 真偽値(廃止)
[18][19][20][21] getElements() Array( PathPoint )オブジェクト参照を返す
[18][19][20][21] join(reference, [given]) なしパスの結合
reference PathPoint位置の基準になるアンカーポイント
[given] JoinOptions
JoinOptions
Ver.プロパティ値/管理用文字説明
[18][19][20][21]COMBINE1668113006
cmbn
Combine two end points and replace with an single averaged point.
[18][19][20][21]CONNECT1668178804
cnct
Connect two end points (default).
[18][19][20][21] remove() なし削除
[18][19][20][21] removeEventListener(eventType, handler, [captures]) 真偽値EventListenerを削除
eventType 文字列値
handler ファイル, JavaScript関数
[captures] 真偽値(廃止)
[18][19][20][21] toSource() 文字列値ソースコードを表す文字列を返す
[18][19][20][21] toSpecifier() 文字列値Retrieves the object specifier.