In PR #7703 and #7699 we recently iterated on keyframe parsing and keyframe updating.
Now, I want to take the next step: Properly parsing easings and clamping.
- When parsing, we should also return the clamping that applies. If not specified, assume the default of
interpolate()
- Also parse Easing. Right now, we only support 2 types of easing:
Easing.bezier. In that case I want [number, number, number, number]. And Easing.linear or no easing at all, which also defaults to linear. If it is a different type of easing, we don't support keyframes at all and bail out to "computed"!
Also keep in mind that easings can take multiple arguments, so this parsing should also return n - 1 items, where n is the amount of keyframes.
In PR #7703 and #7699 we recently iterated on keyframe parsing and keyframe updating.
Now, I want to take the next step: Properly parsing easings and clamping.
interpolate()Easing.bezier. In that case I want[number, number, number, number]. And Easing.linear or no easing at all, which also defaults to linear. If it is a different type of easing, we don't support keyframes at all and bail out to "computed"!Also keep in mind that easings can take multiple arguments, so this parsing should also return
n - 1items, where n is the amount of keyframes.