Compass

コンパスのクラス

Constructor

new ZDC.Compass(positionopt, offsetopt)

コンパスを作成します。
作成されるコンパスのz-indexは16777271です。

Parameters

名前 説明
position(optional)
string
default 'top-right'
画面上の表示位置
'top-left','top-right','bottom-left','bottom-right'を選択できます。
offset(optional)
Point
positionからPointのピクセル分移動します。(x軸は右が正、y軸は下が正)