Open dy opened 7 years ago
let panel = createPanel({val: {order: 0, type: 'range'}}, {style: 'control', position: 'top-left'}) //panel is just options object here panel.val = 'smth'
Major improvements:
panel
.state
position
top-left
bottom-right
right
left
background
palette
colors
order
Example: https://github.com/picturepan2/spectre
Major improvements:
panel
is directly object with values to set/get, no hidden.state
property.position
sets up placement directly astop-left
,bottom-right
,right
,left
, etc.background
can directly change the bg colorpalette
andcolors
properties are the sameorder
property defined position of an element not included into array