Field Center Card
Import FieldCenterCard from yugioh-card. Pass card fields in the constructor's data option or to setData().

Example data
json
{
"artwork": "/artwork.png",
"renderBackSide": false,
"roundCorners": true,
"renderScale": 1
}Parameters
| Field | Type | Default | Meaning and values |
|---|---|---|---|
artwork | string | '' | Artwork URL or absolute path |
roundCorners | boolean | true | Round the corners |
renderBackSide | boolean | false | Show the back. Artwork appears on the front |
renderScale | number | 1 | Scale relative to native dimensions |
Replace /artwork.png in the example with your artwork URL.