調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >utils >svgPaths >moveBy
utils.svgPaths.moveBy() 関数
線を描画せずにカーソルを特定の位置に移動します。座標は相対座標です。これらの座標は単位がないので、ユーザー座標系になります。詳しくは developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths#Line_commands をご覧ください。
署名:
export declare function moveBy(dx: number, dy: number): string;
パラメータ
パラメータ |
型 |
説明 |
dx |
数値 |
相対 x 座標。 |
日 |
数値 |
相対的な y 座標。 |
戻り値:
文字列
'm dx,dy '
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-22 UTC。
[null,null,["最終更新日 2024-08-22 UTC。"],[[["The `moveBy` function generates an SVG path command to move the cursor without drawing, using relative coordinates."],["It accepts `dx` and `dy` parameters representing the relative horizontal and vertical movement, respectively."],["The function returns a string in the format ' m dx,dy ', which can be incorporated into an SVG path string."],["The coordinates provided are unitless and within the user coordinate system."]]],[]]