A css selector, you can use .container, .element#e
A JSON object with the initials css styles. Will show in 0%
A JSON object with the final css styles. Will show in 100%
Private
#Private
#exctractPrivate
#formattedConvert a number array to string with format The format param is a example of format
formattedValues("0px 0vw 0pt", [12, 23, 17]): "12px 23vw 17pt"
String with the format
Array with the values
Private
#handleSepared color in int values for add to first color the percened defined to te second color.
handleColors("rbg(120, 190, 250)", "rgb(130, 100, 120)", 10): rgb(121, 181, 250)
this looks like this
this applies to every number
substraction = newUnits - prevUnits;
result = (newUnits * percent) + prevUnits;
Private
#handleAdd the percentage sent, from the second number to the first
handleUnit("20px 30px 40px","10px 40px 50px",10): "19px 31px 41px"
-This looks like this
substraction = newUnits - prevUnits;
result = (newUnits * percent) + prevUnits;
Private
#increaseAdds the percentage of the second value to the first value for each item it logs.
Float is optional and set the ammount the float in the number
increaseInSets(45, 32, 17): 42.79
increaseInSets(45, 32, 17, 0): 42
The old value will be added to this X percentage of the newValue
The new value will be multiplied for (percent) and divided by 100
This value will be multiplied for newValue and the result will be added to prevValue
The amount of numbers decimals in the result.
Generated using TypeDoc
Principal class