調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >utils >svgPaths >アーク
utils.svgPaths.arc() 関数
楕円曲線を描きます。これらの座標は単位がないので、ユーザー座標系になります。developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#Elliptical_Arc_Curve
署名:
export declare function arc(command: string, flags: string, radius: number, point: string): string;
パラメータ
パラメータ |
型 |
説明 |
command |
文字列 |
コマンド文字列。「a」または「A」を指定します。 |
flags |
文字列 |
フラグの文字列。説明と例については、MDN のドキュメントをご覧ください。 |
半径 |
数値 |
描画する円弧の半径。 |
ポイント |
文字列 |
円弧を描いた後にカーソルを移動する点。コマンドに応じて絶対座標または相対座標で指定します。 |
戻り値:
文字列
「コマンドの半径のフラグ ポイント」形式の文字列
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-10-15 UTC。
[null,null,["最終更新日 2024-10-15 UTC。"],[[["`utils.svgPaths.arc()` is a function that generates SVG path strings for drawing elliptical arcs."],["It takes parameters for command type, flags, radius, and endpoint to define the arc's properties."],["The function returns a formatted string ready to be used within an SVG path's `d` attribute."],["This utility simplifies creating elliptical arc curves in Blockly, utilizing a coordinate system relative to the user's view."],["Refer to MDN documentation for detailed information regarding SVG elliptical arc curve syntax and flag options."]]],[]]