Skip to content

Commit 8eb3627

Browse files
authored
chore: 发布版本 0.8.13
2 parents 3d7f25e + 0505ced commit 8eb3627

File tree

23 files changed

+2
-15
lines changed

23 files changed

+2
-15
lines changed

dist/image-clipper/index.wxml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929

3030
<image class="cropper-image" binderror="imageLoad" bindload="imageLoad" bind:touchstart="imageTouchStart" bind:touchmove="imageTouchMove" bind:touchend="imageTouchEnd" src="{{imageUrl}}" mode="widthFix" wx:if="{{imageUrl}}" 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;"/>
3131

32-
33-
<canvas type="2d" canvas-id="image-clipper" id="image-clipper" :disable-scroll="true" style="width: {{CANVAS_WIDTH * scaleRatio}}px; height:{{CANVAS_HEIGHT * scaleRatio}}px;" class="clipper-canvas"></canvas>
32+
<canvas canvas-id="image-clipper" id="image-clipper" :disable-scroll="true" style="width: {{CANVAS_WIDTH * scaleRatio}}px; height:{{CANVAS_HEIGHT * scaleRatio}}px;" class="clipper-canvas"></canvas>
3433

3534
<view class="footer-tools">
3635
<view class="tools-icon">

examples/dist/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"
-823 Bytes
Loading
-892 Bytes
Loading
-1011 Bytes
Loading
-1.25 KB
Loading
-810 Bytes
Loading
-1.14 KB
Loading
-654 Bytes
Loading
-947 Bytes
Loading

0 commit comments

Comments
 (0)