Skip to content

Commit 1b4ed5e

Browse files
committed
Updated Canvas 2D Interface (for ^2.30 Base Repo)
1 parent 9b48827 commit 1b4ed5e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

eaterplanet_ecommerce/components/painter/painter.wxml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
<block wx:if="{{!use2D}}">
33
<canvas canvas-id="photo" style="{{photoStyle}};position: absolute; left: -9999px; top: -9999rpx" />
44
<block wx:if="{{dancePalette}}">
5-
<canvas canvas-id="bottom" style="{{painterStyle}};position: absolute" />
6-
<canvas canvas-id="k-canvas" style="{{painterStyle}};position: absolute" />
7-
<canvas canvas-id="top" style="{{painterStyle}};position: absolute" />
5+
<canvas type="2d" canvas-id="bottom" style="{{painterStyle}};position: absolute" />
6+
<canvas type="2d" canvas-id="k-canvas" style="{{painterStyle}};position: absolute" />
7+
<canvas type="2d" canvas-id="top" style="{{painterStyle}};position: absolute" />
88
<canvas
9+
type="2d"
910
canvas-id="front"
1011
style="{{painterStyle}};position: absolute"
1112
bindtouchstart="onTouchStart"

0 commit comments

Comments
 (0)