Skip to content

Commit 6c4cd24

Browse files
committed
chore: cleanup public playground pages
1 parent edb1ea7 commit 6c4cd24

File tree

5 files changed

+59
-134
lines changed

5 files changed

+59
-134
lines changed

site/jest-function-plot.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- This page is used for tests purposes, think twice before making changes in <body> -->
12
<!DOCTYPE html>
23
<html>
34
<head lang="en">

site/playground.html

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<!-- This page is used for tests purposes, think twice before making changes in <body> -->
2+
<!DOCTYPE html>
3+
<html>
4+
<head lang="en">
5+
<meta charset="UTF-8">
6+
<title>Function Plot</title>
7+
<link rel="stylesheet" type="text/css" rel="noopener" target="_blank" href="./css/reset.css">
8+
<style>
9+
body, text {
10+
font-family: Arial, sans-serif;
11+
color: black;
12+
font-size: 14px;
13+
}
14+
</style>
15+
</head>
16+
<body>
17+
<div id="playground"></div>
18+
<script src="function-plot.js"></script>
19+
<script>
20+
(function () {
21+
functionPlot({
22+
target: '#playground',
23+
xAxis: {
24+
type: 'log',
25+
domain: [0.01, 1]
26+
},
27+
yAxis: {
28+
domain: [-100, 100]
29+
},
30+
grid: true,
31+
data: [{
32+
fn: '1/x * cos(1/x)',
33+
// to make it look like a definite integral
34+
closed: true
35+
}]
36+
})
37+
functionPlot({
38+
target: '#playground',
39+
data: [
40+
{
41+
graphType: "text",
42+
location: [1, 1],
43+
text: "hello world"
44+
},
45+
{
46+
graphType: "text",
47+
location: [-1, -1],
48+
text: "foo bar",
49+
attr: {
50+
'text-anchor': 'end'
51+
}
52+
},
53+
]
54+
})
55+
})()
56+
</script>
57+
</body>
58+
</html>

site/sampling.html

Lines changed: 0 additions & 134 deletions
This file was deleted.

0 commit comments

Comments
 (0)