You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
controlX1: x coordinates of The first control point
controlY1: y coordinates of The first control point
controlX2: x coordinates of The second control point
controlY2: y coordinates of The second control point
return:
Void
the cubicBezier function's last 4 parameters are controlX1, controlY1, controlX2, controlY2.
In this animation implementation, we get the return value of formatBezier function, and join the result with ',' so that we pass it as the last 4 parameters for the cubicBezier function.
According to BindingX Doc,
the
cubicBezier
function's last 4 parameters arecontrolX1, controlY1, controlX2, controlY2
.In this animation implementation, we get the return value of
formatBezier
function, and join the result with ',' so that we pass it as the last 4 parameters for thecubicBezier
function.universal-api/packages/animation/src/index.js
Lines 85 to 88 in 2692aaf
However, the
formatBezier
function returns[m[1], m[4], m[3], m[4]]
-- in my opinion, it meanscontrolX1, controlY2, controlX2, controlY2
.universal-api/packages/animation/src/formatBezier.js
Lines 1 to 6 in 7424381
Should it return
[m[1], m[2], m[3], m[4]]
rather than[m[1], m[4], m[3], m[4]]
?The text was updated successfully, but these errors were encountered: