Canvasprops
Overview
canvasProps applies to canvas.
Field Table
Key |
Type |
Default |
Binding |
UI Effect / Limits |
|---|---|---|---|---|
|
|
|
|
declarative drawing command list |
Canvascommand Field Table
Key |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
command type |
|
integer px |
|
start point or rectangle X coordinate |
|
integer px |
|
start point or rectangle Y coordinate |
|
integer px |
|
width |
|
integer px |
|
height |
|
string, |
|
command color |
Canvascommand Type
Currently exposed command types:
Value |
Meaning |
Fields used |
|---|---|---|
|
fill the entire canvas background with |
|
|
set a pixel at |
|
width / height are currently accepted by the parser but not yet used during command execution. A type that is not listed is ignored.
Example
"canvasProps": {
"commands": [
{
"type": "fill",
"color": "#3b82f6"
},
{
"type": "pixel",
"x": 12,
"y": 8,
"width": 0,
"height": 0,
"color": "#ffffff"
}
]
}