Skip to content

场地中心卡 ​

从 yugioh-card 导入 FieldCenterCard。各字段可通过构造选项的 data 或 setData() 提供。

正面

示例数据 ​

json
{
  "artwork": "/artwork.png",
  "renderBackSide": false,
  "roundCorners": true,
  "renderScale": 1
}

参数 ​

字段类型默认值说明与可选值
artworkstring''卡图 URL 或本地绝对路径
roundCornersbooleantrue使用圆角
renderBackSidebooleanfalse切换到背面,卡图用于正面
renderScalenumber1卡片原始尺寸的倍率

将示例中的 /artwork.png 换成你的卡图地址。