Skip to content

Commit 4d310b0

Browse files
muronggjuzi214032
authored andcommitted
fix(ImageClipper): 修复 canvas 2d 导致的无法绘制图片问题
close #1156
1 parent dd328b5 commit 4d310b0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/image-clipper/index.wxml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,7 @@
4646
style="width: {{imageWidth ? imageWidth + 'px' : 'auto'}};height: {{imageHeight ? imageHeight + 'px' : 'auto'}};transform: translate3d({{imageLeft - imageWidth / 2}}px, {{imageTop - imageHeight / 2}}px,0) scale({{scale}}) rotate({{angle}}deg); transition-duration: {{cutAnimation ? 0.35 : 0}}s;"
4747
/>
4848
<!-- 图片绘制容器 -->
49-
<!--
50-
refactor:
51-
canvas 2d 接口支持同层渲染且性能更佳,建议切换使用。
52-
详见文档:https://developers.weixin.qq.com/miniprogram/dev/component/canvas.html#Canvas-2D-%E7%A4%BA%E4%BE%8B%E4%BB%A3%E7%A0%81
53-
-->
5449
<canvas
55-
type="2d"
5650
canvas-id="image-clipper"
5751
id="image-clipper"
5852
:disable-scroll="true"

0 commit comments

Comments
 (0)