forked from kachurovskiy/lathecode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (50 loc) · 1.82 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
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>lathecode editor</title>
<link rel="icon" href="data:,">
</head>
<body>
<div class="vcont">
<div id="editorContainer">
<h2>Editor</h2>
<p>Visualizes lathecode and generates GCode - more on <a href="https://github.com/kachurovskiy/lathecode">GitHub</a></p>
<div class="inputContainer">
<textarea class="latheCodeInput">; Lines starting with ";" are comments
; UNITS IN ; you can use inches
STOCK D5
; STOCK R2.5 ; diameter or radius can be used
TOOL RECT R0.2 L3
; TOOL ROUND R8 ; round tool is also supported
DEPTH CUT1 ; default depth of cut is 0.5mm
; FEED MOVE200 PASS50 PART10 ; speeds mm/min
L1 D2
L3 D3
L4 DS3 DE5
L3</textarea>
<div class="errorContainer"></div>
</div>
<div class="toolbar">
<button class="imageButton" title="Generate lathecode from a PNG image file">From image</button>
<button class="stlButton" title="Download STL file">To STL</button>
<button class="planButton" title="Generate GCode from current lathecode">To GCode</button>
</div>
</div>
<div id="sceneContainer">
<h2>3D rendering</h2>
</div>
<div id="plannerContainer"></div>
<div id="gcodeContainer">
<h2>GCode</h2>
<textarea></textarea>
<div class="senderError" style="display: none;"></div>
<progress max="1" style="display: none;"></progress>
<button class="sendButton">Send to NanoEls H4</button>
<button class="stopButton" style="display: none;">Stop</button>
<a class="whatLink" href="https://github.com/kachurovskiy/nanoels/tree/main/h4" target="_blank">What is NanoEls H4?</a>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>