| aspectRatio |
[number, number] |
[3, 1] |
N |
Canvas aspect ratio |
| direction |
'top' \| 'bottom' \| 'left' \| 'right' |
'top' |
N |
Direction mark for identifying orientation in landscape mode |
| lineWidth |
number |
3 |
N |
Line width in pixels |
| lineColor |
string |
- |
N |
Line color, auto adapts to light/dark mode if not set |
| bgColor |
string |
- |
N |
Background color, auto adapts to light/dark mode if not set |
| radius |
'none'\|'sm'\|'md'\|'lg'\|'xl'\|'2xl'\|'3xl'\|'4xl'\|'' |
'' |
N |
Canvas border radius using theme config |
| showDirectionMark |
boolean |
true |
N |
Whether to show direction mark |
| showButtons |
boolean |
true |
N |
Whether to show action buttons |
| clearText |
string |
'Clear' |
N |
Clear button text |
| confirmText |
string |
'Confirm' |
N |
Confirm button text |
| clearButton |
Button |
{} |
N |
Clear button parameters |
| confirmButton |
Button |
{} |
N |
Confirm button parameters |
| imageType |
'png' \| 'jpeg' \| 'webp' |
'png' |
N |
Export image format |
| imageQuality |
number |
0.92 |
N |
Export image quality (0-1, only for jpeg/webp) |
| injClass |
string |
'' |
N |
Inject CSS class |
| canvasClass |
string |
'' |
N |
Canvas inject CSS class |