-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtransforming.html
56 lines (47 loc) · 2.53 KB
/
transforming.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
45
46
47
48
49
50
51
52
53
54
55
56
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="styles-global.css">
</head>
<body>
<svg class="transforming" width="1000" height="300" style="display: block; margin: auto;">
<g class="pq">
<text x="350" y="25" class="code">CREATE STREAM s2 AS SELECT a, uppercase(b) FROM s1 EMIT CHANGES;</text>
<path d="M 450,50 h -50 v 50" fill="none" stroke-width="1" class="persistent-query"/>
<path d="M 550,50 h 50 v 50" fill="none" stroke-width="1" class="persistent-query"/>
<path d="M 400,200 v 50 h 50" fill="none" stroke-width="1" class="persistent-query"/>
<path d="M 600,200 v 50 h -50" fill="none" stroke-width="1" class="persistent-query"/>
</g>
<g class="events">
<text x="25" y="100" class="code">p0</text>
<path d="M 40, 115 h -15 v 15" fill="none" stroke-width="1" class="partition"/>
<path d="M 285, 115 h 15 v 15" fill="none" stroke-width="1" class="partition"/>
<path d="M 25, 175 v 15 h 15" fill="none" stroke-width="1" class="partition"/>
<path d="M 300, 175 v 15 h -15" fill="none" stroke-width="1" class="partition"/>
<rect height="25" width="25" x="250" y="140" class="event e-1"/>
<rect height="25" width="25" x="210" y="140" class="event e-2"/>
<rect height="25" width="25" x="170" y="140" class="event e-3"/>
<rect height="25" width="25" x="130" y="140" class="event e-4"/>
<rect height="25" width="25" x="90" y="140" class="event e-5"/>
<rect height="25" width="25" x="50" y="140" class="event e-6"/>
</g>
<g class="output">
<text x="685" y="100" class="code">p0</text>
<path d="M 700, 115 h -15 v 15" fill="none" stroke-width="1" class="partition"/>
<path d="M 925, 115 h 15 v 15" fill="none" stroke-width="1" class="partition"/>
<path d="M 685, 175 v 15 h 15" fill="none" stroke-width="1" class="partition"/>
<path d="M 940, 175 v 15 h -15" fill="none" stroke-width="1" class="partition"/>
</g>
</svg>
<div class="transforming controls">
<button class="play">Play</button>
<button class="pause">Pause</button>
<button class="restart">Restart</button>
<input class="progress" step=".001" type="range" min="0" max="100" value="0"/>
</div>
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/animejs/lib/anime.min.js"></script>
<script src="script-transforming.js"></script>
</body>
</html>