mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-31 15:49:48 +00:00
A widget description can have a line, 100 long and black and 1 thick unless told otherwise, and an SVG that comes in as locked layers, scaled to fit a size and within the widget's 256 layers. The Counter example uses both.
11 lines
415 B
JSON
11 lines
415 B
JSON
{
|
||
"id": "org.figcraft.examples.counter",
|
||
"name": "Counter",
|
||
"version": "1.2.0",
|
||
"description": "A widget that counts on the canvas: click its + and − buttons, double-click its label to edit it, and use its menu to reset it, set it in a panel, count in tens or colour it. Everything is kept in the document.",
|
||
"main": "counter.wasm",
|
||
"api": 6,
|
||
"widget": true,
|
||
"permissions": { "access": "read" }
|
||
}
|