Motion Canvas v3.10.0
· 阅读需 3 分钟
New features 🎉

Rect和
Circle节点现在扩展
Curve,使它们可以访问其所有属性和方法:
#771#759Press play to preview the animationimport ...
export default makeScene2D(function* (view) {
const ref = createRef<Circle>();
view.add(
<Circle
ref={ref}
size={160}
stroke={'lightseagreen'}
lineWidth={8}
endAngle={270}
endArrow
/>,
);
yield* all(ref().start(1, 1), ref().rotation(180, 1, easeInCubic));
ref().start(0).end(0);
yield* all(ref().end(1, 1), ref().rotation(360, 1, easeOutCubic));
});
新的 SVG
Path组件:
#700Press play to preview the animationimport ...
export default makeScene2D(function* (view) {
view.add(
<Path
scale={8}
position={-96}
fill={'lightseagreen'}
data={
'M4 6.47L5.76 10H20v8H4V6.47M22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4z'
}
/>,
);
});
用于动画
Grid节点的新
start和
end信号。
#761
用于管理引用的新辅助方法: #775

带有半径的
Img和
Video节点会自动裁剪。
#773
BBox转换方法接受
PossibleMatrix2D。
#770
新的
middle#758
Vector2的新
rotate和
polarLerp方法。
#756
编辑器现在让你可以按 P 复制鼠标坐标
#737
可以在不使用持续时间的情况下调用
restore()以立即恢复状态。
#736
Fixed bugs 🐛
查看 更新指南 获取如何更新现有项目的信息。