-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
87 lines (79 loc) · 3.74 KB
/
index.html
File metadata and controls
87 lines (79 loc) · 3.74 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!--
Copyright Oscar Litorell 2019
-->
<!DOCTYPE html>
<html lang="en">
<head>
<script>if (location.href[location.href.length-1] != "/" && window.location.href.split("?")[0].substr(-5) !== ".html") location.href += "/"</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<title>Complex Graphing</title>
</head>
<body>
<div class="flex-container">
<section class="graph">
<canvas id="maincanvas" width="800" height="600"></canvas>
<div class="graph-controls">
<div class="inline">
<p>Trace x:</p>
<input type="number" id="trace-x" value="0" title="Hold shift and drag across the graph to manually move the tracing point.">
</div>
<div class="inline">
<input type="button" onclick="view.snapAngle()" value="Snap camera angle" title="ctrl+Q">
<input type="button" onclick="view.snapPosition()" value="Snap position" title="ctrl+I">
</div>
<div class="inline">
<p>x Offset:</p>
<input type="number" id="x-offset" value="0">
</div>
<div class="inline">
<p>Real Offset:</p>
<input type="number" id="y-offset" value="0">
</div>
<div class="inline">
<p>Imaginary Offset:</p>
<input type="number" id="z-offset" value="0">
</div>
<div class="inline">
<p>Graph starts at: </p>
<input type="number" onchange="updateFunction()" id="minX" value="-2">
</div>
<div class="inline">
<p>Graph ends at: </p>
<input type="number" onchange="updateFunction()" id="maxX" value="2">
</div>
<div class="inline">
<p>Graph resolution: </p>
<input type="number" onchange="updateFunction()" id="resolution" value="0.05">
</div>
<div class="inline">
<p>Projection: </p>
<select name="projection" id="projection">
<option value="perspective">Perspective</option>
<option value="orthogonal">Orthogonal</option>
</select>
</div>
<p class="button" onclick="fullscreen(event)">Set fullscreen</p>
</div>
</section>
<section class="list function">
<h2>Function</h2>
<textarea id="function" rows="20" autocorrect="off" autocomplete="off" spellcheck="off"></textarea>
<p class="button" onclick="updateFunction()">Set function</p>
<a href="https://github.com/OscarLitorell/complex-graphing/blob/master/user-manual/english.md" target="_blank">How does it work?</a>
</section>
<section class="list">
<h2>Variables</h2>
<ul id="variable-list">
</ul>
<p class="button" id="addVariableElement">+ Add variable</p>
</section>
</div>
<script src="complex.js"></script>
<script src="linear-algebra.js"></script>
<script src="script.js"></script>
<script src="expression-parser.js"></script>
</body>
</html>