# PropertyNumber
Extends Property
# Properties
units
Array (opens new window)<String (opens new window)> Array of units, eg.['px', '%']
min
Number (opens new window) Minimum value.max
Number (opens new window) Maximum value.step
Number (opens new window) Step value.
# getUnits
Get property units.
Returns Array (opens new window)<String (opens new window)>
# getUnit
Get property unit value.
Returns String (opens new window)
# getMin
Get min value.
Returns Number (opens new window)
# getMax
Get max value.
Returns Number (opens new window)
# getStep
Get step value.
Returns Number (opens new window)
# upUnit
Update property unit value. The change is also propagated to the selected targets.
# Parameters
unit
String (opens new window) New unit valueopts
Object (opens new window) Options (optional, default{}
)opts.noTarget
Boolean (opens new window) Iftrue
the change won't be propagated to selected targets. (optional, defaultfalse
)
Returns String (opens new window)