about summary refs log tree commit diff stats
path: root/decker/viz.deck
diff options
context:
space:
mode:
authorelioat <hi@eli.li>2023-12-18 20:18:05 -0500
committerelioat <hi@eli.li>2023-12-18 20:18:05 -0500
commitaf5ba5b57211acc7e2830768d763551c4531d359 (patch)
treeb5e65c7a38671fd42a66b416c14f378106016f18 /decker/viz.deck
parentec99dee75445f01e6dd15fc1de9eca26eca41df7 (diff)
downloaddecember-2023-main.tar.gz
Diffstat (limited to 'decker/viz.deck')
-rw-r--r--decker/viz.deck51
1 files changed, 51 insertions, 0 deletions
diff --git a/decker/viz.deck b/decker/viz.deck
new file mode 100644
index 0000000..dfeecef
--- /dev/null
+++ b/decker/viz.deck
@@ -0,0 +1,51 @@
+{deck}
+version:1
+card:1
+size:[512,342]
+name:"viz.deck"
+
+{card:home}
+{widgets}
+grid1:{"type":"grid","size":[215,152],"pos":[39,53],"format":"sic","value":{"name":["kiwi","pineapple","watermelon","apple","banana"],"quantity":[33,15,28,78,100],"price":[3.99,8.55,5,0.99,0.89]}}
+
+{card:card1}
+{widgets}
+counter1:{"type":"contraption","size":[128,27],"pos":[368,16],"def":"counter","widgets":{"inc":{},"dec":{},"value":{"value":"22"}}}
+canvas1:{"type":"canvas","size":[336,288],"pos":[16,32],"script":"card1.0","scale":1}
+
+{script:card1.0}
+on click pos do
+ 
+end
+
+on drag pos do
+ 
+end
+
+on release pos do
+ 
+end
+{end}
+
+{contraption:counter}
+size:[128,27]
+margin:[0,0,0,0]
+description:"step counter"
+attributes:{"name":["value"],"label":["Value"],"type":["number"]}
+{widgets}
+inc:{"type":"button","size":[22,20],"pos":[103,3],"script":"counter.0","text":"+"}
+dec:{"type":"button","size":[22,20],"pos":[3,3],"script":"counter.1","text":"-"}
+value:{"type":"field","size":[67,20],"pos":[30,3],"locked":1,"style":"plain","align":"center"}
+
+{script:counter.0}
+on click do
+ value.text:value.text+1
+end
+{end}
+
+{script:counter.1}
+on click do
+ value.text:value.text-1
+end
+{end}
+