side parsed, and parses it if so.
Method to sort an array form smallest to largest.
Parameters:
Array
must be an Any.Array
must be an Any.Returns a Number
(Comparation indicator.)
Method to get the nearest to item to the progress.
Parameters:
Array
must be an Array.Progress
must be a Number.Returns a Number
(Nearest item index.)
Method to get the nearest to item to the progress.
Parameters:
Array
must be an Array.Progress
must be a Number.Returns a Number
(Nearest item index.)
if there are more than 1 mix values - sort the array
if there is just one value - parse it's easing expression
return 1 if not defined
evaluate the function if it was passed or return the value itself
Method initialize the mix function. It was made since requiring "easing" module cuases cycle dependensies issue but we need the module. So we pass it to the create method and it assigns it to already declared easing variable.
Parameters:
Easing
must be an Object.Returns a Function
(Mix function.)
Method to check if need to parse easing expression.
Parameters:
Mix
must be an Object.(array item)
Returns a Function, Number
(Parsed easing or static easing number.)