Resize
resize operator allows to resize controls
a +-> (x, y)
There are three possible resize types:
- resize by relative value
control +-> +(50,100) // same as +[1,2]
- resize to absolute value
control +-> (100,100)
- resize to other control size
control +-> otherControl
infoNotice that in case of dot (or dots) resize applies to radius
- DABL
- HTML
title: 'resize control'
box id: otherBox at: [2,0]
dot id: d1 text: 'dot' at: [-3,-1] radius: 45
step: 'resize dot by 2 cells'
d1 +-> +[2,0]
step: 'resize dot to 150'
d1 +-> 150
step: 'resize to otherBox'
d1 -> otherBox, d1 +-> otherBox // move to otherBox and resize to it's size
step: 'resize otherBox'
otherBox +-> +[1,1]
<dot-and-box controls style="height: 250px" code="
title: 'resize control'
box id: otherBox at: [2,0]
dot id: d1 text: 'dot' at: [-3,-1] radius: 45
step: 'resize dot by 2 cells'
d1 +-> +[2,0]
step: 'resize dot to 150'
d1 +-> 150
step: 'resize to otherBox'
d1 -> otherBox, d1 +-> otherBox // move to otherBox and resize to it's size
step: 'resize otherBox'
otherBox +-> +[1,1]
">
</dot-and-box>