|
|
|
<view style='position: relative;{{customStyle}};{{painterStyle}}'>
|
|
|
|
<block wx:if="{{!use2D}}">
|
|
|
|
<canvas canvas-id="photo" style="{{photoStyle}};position: absolute; left: -9999px; top: -9999rpx;" />
|
|
|
|
<canvas canvas-id="bottom" style="{{painterStyle}};position: absolute;" />
|
|
|
|
<canvas canvas-id="k-canvas" style="{{painterStyle}};position: absolute;" />
|
|
|
|
<canvas canvas-id="top" style="{{painterStyle}};position: absolute;" />
|
|
|
|
<canvas
|
|
|
|
canvas-id="front"
|
|
|
|
style="{{painterStyle}};position: absolute;"
|
|
|
|
bindtouchstart="onTouchStart"
|
|
|
|
bindtouchmove="onTouchMove"
|
|
|
|
bindtouchend="onTouchEnd"
|
|
|
|
bindtouchcancel="onTouchCancel"
|
|
|
|
disable-scroll="{{true}}" />
|
|
|
|
<canvas canvas-id="photo" style="position: absolute; left: -9999px; top: -9999rpx;{{photoStyle}}" />
|
|
|
|
<canvas canvas-id="bottom" style="position: absolute;{{painterStyle}}" />
|
|
|
|
<canvas canvas-id="k-canvas" style="position: absolute;{{painterStyle}}" />
|
|
|
|
<canvas canvas-id="top" style="position: absolute;{{painterStyle}}" />
|
|
|
|
<canvas canvas-id="front" style="position: absolute;{{painterStyle}}" bindtouchstart="onTouchStart" bindtouchmove="onTouchMove" bindtouchend="onTouchEnd" bindtouchcancel="onTouchCancel" disable-scroll="{{true}}" />
|
|
|
|
</block>
|
|
|
|
<block wx:if="{{use2D}}">
|
|
|
|
<canvas type="2d" id="photo" style="{{photoStyle}};" />
|
|
|
|
<canvas type="2d" id="photo" style="{{photoStyle}}" />
|
|
|
|
<!-- <canvas type="2d" id="bottom" style="{{painterStyle}};position: absolute;" />
|
|
|
|
<canvas type="2d" id="k-canvas" style="{{painterStyle}};position: absolute;" />
|
|
|
|
<canvas type="2d" id="top" style="{{painterStyle}};position: absolute;" />
|
|
...
|
...
|
@@ -28,4 +21,4 @@ |
|
|
|
bindtouchcancel="onTouchCancel"
|
|
|
|
disable-scroll="{{true}}" /> -->
|
|
|
|
</block>
|
|
|
|
</view> |
|
|
|
</view> |
|
|
\ No newline at end of file |
...
|
...
|
|