presentation props
position props/el props
size props
callbacks
onCompleteChain: null
tween props
inherit the radiusX/Y from radius if werent defined o.radiusX ?= o.radius; o.radiusY ?= o.radius
size = "#{@props.size/@h.remBase}rem"
increase el's size on elastic and back easings
calc the curent value from deltas
override deltas only if options obj wasnt passed
skip props from skipProps object
if options object was passed = save the value to options object and delete the old delta value is used for new run options
delete the old delta
else get the value from options or fallback to defaults
parse random values
save to props
position properties should be parsed with units
strokeDash properties should be parsed with units
if delta object was passed: like { 20: 75 } calculate delta
skip props defined in skipPropsDelta map needed for modules based on transit like swirl
stoke-linecap filter
and set the start value to props
copy start values to o to exclude tween options and callbacks but inherit duration
if tween option or callback reset it
loop thru result object
if new value is a tween value or new value is an object/ function then just save it
inherit radius value for radiusX/Y
if start value is object - rewrite the start value
set startKey to delta object's start valeu
make delta object
if endValue is null or undefined save start value to options else o[key] = startKey
copy the tween options from passed o or current props
TWEEN
if then chain is present and the user tries to change the start timing - warn him and delete the props to prevent the timing change
transform the history, tune current option and save to the history but only if actual options were passed
adds new options to history chain on run call
loop over the past options
loop over the history skipping the first item
if optionRecord? if history record is object
get the end value and delete the record
if delta in history and object in passed value :: new {100: 50} was {200: 40}
:: new 20 was {200: 40}
if type is defined and it's different than the current type - warn and delete
extend defaults only if options obj was passed
defer tween start to wait for "then" functions
if you reset the timeline options - you should reset the whole "then" chain if one is present
istanbul ignore next