-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
44 lines (44 loc) · 1.52 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Echarts with OffscreenCanvas</title>
</head>
<body>
<header>
<fieldset id="startField">
<div style="display: flex; justify-content: space-between;">
<label>
<input id="forceFallback" type="checkbox" />
强制使用 UI 线程渲染
</label>
<a href="https://caniuse.com/#feat=offscreencanvas" target="_blank" id="explain"></a>
<button id="start">开始</button>
</div>
</fieldset>
<fieldset id="optionField" disabled>
<div style="display: flex; justify-content: space-between;">
<div>
<select id="dataOption">
<option value="normal.json" selected>普通</option>
<option value="largeBar.json">大量数据——柱状图</option>
<option value="largeLine.json">大量数据——折线图</option>
<option value="largeLineSampling.json">大量数据——折线图+降采样</option>
</select>
<button id="loadData">加载数据</button>
</div>
<span id="fps"></span>
<div>
<button id="addEvent">添加点击事件</button>
<button id="delEvent">移除点击事件</button>
</div>
</div>
</fieldset>
</header>
<hr />
<div id="content"></div>
<script type="module" src="./demo/main.js"></script>
</body>
</html>