調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >utils >svgPaths >lineTo
utils.svgPaths.lineTo() 関数
現在の点から終点(x 軸に沿って dx、y 軸に沿って dy だけ現在の点)を結ぶ線を引きます。これらの座標は単位がないので、ユーザー座標系になります。詳しくは developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths#Line_commands をご覧ください。
署名:
export declare function lineTo(dx: number, dy: number): string;
パラメータ
パラメータ |
型 |
説明 |
dx |
数値 |
相対 x 座標。 |
日 |
数値 |
相対的な y 座標。 |
戻り値:
文字列
'l dx,dy '
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-22 UTC。
[null,null,["最終更新日 2024-08-22 UTC。"],[[["The `utils.svgPaths.lineTo()` function generates an SVG path command to draw a line from the current point to a new point relative to the current position."],["It takes two arguments: `dx` (the change in x-coordinate) and `dy` (the change in y-coordinate), both in user coordinate units."],["The function returns a string representing the SVG path command for drawing the line, formatted as ' l dx,dy '."],["This command is used within SVG path definitions to create line segments, contributing to the overall shape or drawing within the SVG."]]],[]]