調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ブロックする >utils >svgPaths >曲線
utils.svgPaths.curve() 関数
3 次曲線または 2 次曲線を描画する。developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#Cubic_B%C3%A9zier_Curve をご覧ください。これらの座標は単位のないので、ユーザーの座標系になります。
署名:
export declare function curve(command: string, points: string[]): string;
パラメータ
パラメータ |
型 |
説明 |
command |
文字列 |
使用するコマンド。c、C、s、S、q、Q のいずれかを指定する必要があります。 |
ポイント |
string[] |
曲線コマンドに渡すすべてのポイントを順番に含む配列。ポイントは、x, y ' です。 |
戻り値:
文字列
1 つ以上のベジェ曲線を定義する文字列。正確な形式については、MDN のドキュメントをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-10-15 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-10-15 UTC。"],[[["The `utils.svgPaths.curve()` function draws cubic or quadratic curves within the user coordinate system using SVG path commands."],["It takes a `command` specifying the curve type (c, C, s, S, q, Q) and an array of `points` in 'x, y' format as input."],["The function returns a string that defines the Bezier curve(s) for use in SVG path data."],["Refer to the MDN documentation on Cubic Bézier Curves for details on the expected format and usage within SVG paths."]]],[]]