forked from VisActor/VChart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.wxml
20 lines (20 loc) · 856 Bytes
/
index.wxml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<view class="vchart" id="{{ canvasId }}" style="{{ styles }}">
<canvas
class="cs-canvas"
bindtouchstart="bindEvent"
bindtouchmove="bindEvent"
bindtouchend="bindEvent"
bindmousemove="bindEvent"
bindmouseover="bindEvent"
bindmouseout="bindEvent"
bindmousedown="bindEvent"
bindmouseup="bindEvent"
id="{{ canvasId }}_draw_canvas"
canvas-id="{{ canvasId }}_draw_canvas"
type="2d"
></canvas>
<canvas width="{{ offscreenCanvasWidth }}" height="{{ offscreenCanvasHeight }}" id="{{ canvasId }}_hit_canvas"
canvas-id="{{ canvasId }}_hit_canvas" class="cs-tooltip-canvas" type="2d"></canvas>
<canvas width="{{ offscreenCanvasWidth }}" height="{{ offscreenCanvasHeight }}" id="{{ canvasId }}_tooltip_canvas"
canvas-id="{{ canvasId }}_tooltip_canvas" class="cs-tooltip-canvas" type="2d"></canvas>
</view>