hitotsuShapeSvg関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One shape as SVG markup.
インポート
import { hitotsuShapeSvg } from "@johnmorrisdotca/hitotsu";
定義
function hitotsuShapeSvg(shape: HitotsuShape): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
shape | HitotsuShape | One of the native card drawing shapes. |
戻り値
string
One shape as SVG markup.
例
import { hitotsuCardShapes, hitotsuShapeSvg } from "@johnmorrisdotca/hitotsu";
console.log(hitotsuShapeSvg(hitotsuCardShapes("R70")[0]!));<rect x="0" y="0" width="100" height="140" rx="9" fill="#fffdf6"/>出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。