Open momo2019 opened 1 month ago
需要修改SimpleClipImagePlugin.ts代码
在shell.on('deselected', 中加入clipPath.rotate((clipPath.angle || 0) - (activeObject.angle || 0));
shell.on('deselected',
clipPath.rotate((clipPath.angle || 0) - (activeObject.angle || 0));
shell.on('deselected', () => { if (clipPath instanceof fabric.Ellipse && shell instanceof fabric.Ellipse) { // ..... } clipPath.rotate((clipPath.angle || 0) - (activeObject.angle || 0)); // 加入这行代码 activeObject.set('dirty', true); this.canvas.remove(shell); this.canvas.requestRenderAll(); });
需要使用裁剪原本的旋转值和消除素材的旋转值带来的影响。
示例视频
需要修改SimpleClipImagePlugin.ts代码
在
shell.on('deselected',
中加入clipPath.rotate((clipPath.angle || 0) - (activeObject.angle || 0));
需要使用裁剪原本的旋转值和消除素材的旋转值带来的影响。
示例视频