utils.svgMath 名前空間
関数
| 職務 | 説明 |
|---|---|
| getDocumentScroll() | ドキュメントのスクロール距離を座標オブジェクトとして取得します。Closure の goog.dom.getDocumentScroll からコピーされました。 |
| getInjectionDivXY(element) | Blockly が挿入された div を基準とした、この要素の左上隅の座標を返します。 |
| getRelativeXY(element) | この要素の左上隅の座標を、親を基準として返します。SVG 要素と子(rect、g、path など)のみ。 |
| screenToWsCoordinates(ws, screenCoordinates) | 画面座標をワークスペース座標に変換します。 |
| wsToScreenCoordinates(ws, workspaceCoordinates) | ワークスペースの座標を画面の座標に変換します。 |
変数
| 変数 | 説明 |
|---|---|
| TEST_ONLY |