-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathindex.html
220 lines (217 loc) · 18.1 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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chokoku CAD</title>
<link rel="stylesheet" href="./static/css/styles.css">
<meta name="description" content="A breakthrough CAD software on your browser">
<!-- For old IEs -->
<link rel="shortcut icon" href="favicon.ico">
<!-- For new browsers - multisize ico -->
<link rel="icon" type="image/x-icon" sizes="16x16 32x32" href="favicon.ico">
<!-- For iPad with high-resolution Retina display running iOS ≥ 7: -->
<link rel="apple-touch-icon" sizes="152x152" href="./static/img/icon/favicon-152-precomposed.png">
<!-- For iPad with high-resolution Retina display running iOS ≤ 6: -->
<link rel="apple-touch-icon" sizes="144x144" href="./static/img/icon/favicon-144-precomposed.png">
<!-- For iPhone with high-resolution Retina display running iOS ≥ 7: -->
<link rel="apple-touch-icon" sizes="120x120" href="./static/img/icon/favicon-120-precomposed.png">
<!-- For iPhone with high-resolution Retina display running iOS ≤ 6: -->
<link rel="apple-touch-icon" sizes="114x114" href="./static/img/icon/favicon-114-precomposed.png">
<!-- For iPhone 6+ -->
<link rel="apple-touch-icon" sizes="180x180" href="./static/img/icon/favicon-180-precomposed.png">
<!-- For first- and second-generation iPad: -->
<link rel="apple-touch-icon" sizes="72x72" href="./static/img/icon/favicon-72-precomposed.png">
<!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
<link rel="apple-touch-icon" sizes="57x57" href="./static/img/icon/favicon-57.png">
<!-- For Old Chrome -->
<link rel="icon" sizes="32x32" href="./static/img/icon/favicon-32.png" >
<!-- For IE10 Metro -->
<meta name="msapplication-TileColor" content="#efab00">
<meta name="msapplication-TileImage" content="./static/img/icon/favicon-96.png">
<meta name="theme-color" content="#efab00">
<!-- Chrome for Android -->
<link rel="manifest" href="manifest.json">
<link rel="icon" sizes="192x192" href="./static/img/icon/favicon-192.png">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VD0P9H76HX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-VD0P9H76HX');
</script>
</head>
<body>
<div id="loading-mask">
<div id="loading-mask-inner">
<img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzUwIiBoZWlnaHQ9Ijc1IiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA5MyAyMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnL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wMCIgc3R5bGU9ImZvbnQtdmFyaWF0aW9uLXNldHRpbmdzOm5vcm1hbCIvPgo8cGF0aCBkPSJtNDgzIDYwLTAuMyAzLjMgMTMgMTUgNDcgMTggNzktMC42IDEuMi05NS00Mi0wLjMtODQgMjUtMTQgMTV6IiBmaWxsPSJ1cmwoI2MpIiBzdG9wLWNvbG9yPSIjMDAwMDAwIiBzdHlsZT0iZm9udC12YXJpYXRpb24tc2V0dGluZ3M6bm9ybWFsIi8+CjwvZz4KPC9nPgo8L3N2Zz4K" alt="Chokoku CAD">
<h4>LOADING...</h4>
</div>
</div>
<canvas id="path-canvas" resize></canvas>
<div id="mask"></div>
<div id="view-canvas-wrap">
</div>
<div id="re-undo">
<img src="./static/img/undo.svg" width="25" height="25" alt="戻す" title="戻す" id="undo-btn" class="tool-item-mini disabled">
<img src="./static/img/redo.svg" width="25" height="25" alt="進む" title="進む" id="redo-btn" class="tool-item-mini disabled">
</div>
<div id="main-canvas-wrap"></div>
<div id="start-modal" class="modal">
<img src="./static/img/logo.svg" alt="Chokoku CAD" width="300" height="64">
<h2 data-en="Create new">新規作成</h2>
<h3 data-en="Size">直方体の寸法</h3>
<div id="size-input-wrap">
<label for="depth"><span data-en="depth: ">縦:</span><input type="number" min="1" value="50" id="depth"> cm</label><br>
<label for="width"><span data-en="width: ">横:</span><input type="number" min="1" value="50" id="width"> cm</label><br>
<label for="height"><span data-en="height: ">高さ:</span><input type="number" min="1" value="50" id="height"> cm</label>
<div class="btn-wrap">
<div class="btn" data-en="Create!">作成!</div>
</div>
<h2 data-en="Open file">開く</h2>
<div class="btn-wrap">
<label for="file-upload-start" class="btn">
<input type="file" id="file-upload-start" class="hidden" accept=".stl, .gltf, .glb"><span data-en="Upload file">ファイルをアップロード</span>
</label><br>
<span data-en="* available extension: .stl, .glb(gltf)">※.stl, .glb(gltf)のみ</span>
</div>
<span id="view-source">
<a href="https://github.com/itta611/ChokokuCAD" target="blank"><img src="static/img/GitHub-Mark-64px.png" alt="source code" width="20" height="20" class="tool-item-mini"></a>
</span>
</div>
</div>
<div id="tools">
<img src="./static/img/chokoku-tool.svg" id="chokoku-tool" class="tool-item selected">
<img src="./static/img/paint-tool.svg" id="paint-tool" class="tool-item">
<img src="./static/img/upload-tool.svg" id="upload-tool" class="tool-item">
<img src="./static/img/export-tool.svg" id="export-tool" class="tool-item">
<img src="./static/img/add-tool.svg" id="add-tool" class="tool-item">
</div>
<div id="setting">
<div class="setting-item" id="chokoku-setting">
<div class="param-group setting-center">
<img src="./static/img/chokoku-setting-chokokutou.svg" width="40" height="40" alt="Sclupt" id="chokoku-setting-chokoku-btn" class="tool-item-mini selected">
<img src="./static/img/chokoku-setting-lock.svg" width="40" height="40" alt="Lock" id="chokoku-setting-lock-btn" class="tool-item-mini">
</div>
<div class="param-group setting-center">
<img src="./static/img/chokoku-setting-add.svg" width="40" height="40" alt="Add mode" id="chokoku-setting-add-btn" class="tool-item-mini selected">
<img src="./static/img/chokoku-setting-edit.svg" width="40" height="40" alt="Edit mode" id="chokoku-setting-edit-btn" class="tool-item-mini">
</div>
<div class="param-group setting-center" id="chokoku-setting-add-mode-params">
<img src="./static/img/chokoku-setting-pencil.svg" width="40" height="40" alt="pencil" id="chokoku-setting-pencil-btn" class="tool-item-mini selected">
<img src="./static/img/chokoku-setting-eraser.svg" width="40" height="40" alt="eraser" id="chokoku-setting-eraser-btn" class="tool-item-mini">
</div>
<div class="param-group setting-center">
<label for="chokoku-setting-issnap">
<span data-en="Snap: ">マス目にスナップ:</span><input type="checkbox" id="chokoku-setting-issnap">
<label for="grid-size" class="disabled">
<span data-en="Grid size: ">マス目の大きさ:</span><input type="number" id="grid-size" value="5" min="0" disabled> cm
</label>
</label>
</div>
<div class="param-group setting-center">
<div class="btn" id="enter-btn" data-en="OK (Enter)">決定(Enterキー)</div>
<div class="btn disabled" id="reuse-btn" data-en="Use previous path">一つ前のパスを使用</div>
</div>
</div>
<div class="setting-item hidden" id="paint-setting">
<div class="param-group">
<!-- <span class="beta-label">Beta</span> -->
<label for="model-color-btn">
色:<label for="model-color" id="model-color-btn" class="color-select-label" style="background: #efab00;"><input type="color" id="model-color" value="#f9c446"></label>
</label>
<span data-en="Click model to set color.">モデルをクリックすることで色を付けることができます。</span>
</div>
<div class="param-group setting-center">
<div id="set-material-btn" class="btn" data-en="Apply to all faces">すべての面に適用</div>
</div>
</div>
<div class="setting-item hidden" id="upload-setting">
<div id="file-upload-add-step1">
<p data-en="Add a existing file.">既存のファイルを追加することができます。</p>
<div class="param-group">
<div class="btn-wrap">
<label for="file-upload-add" class="btn"><input type="file" id="file-upload-add" class="hidden" accept=".stl, .gltf, .glb"><span data-en="Upload file">ファイルをアップロード</span></label>
</div>
</div>
</div>
<div id="file-upload-add-step2" class="hidden">
X:
<label for="new-model-position-x">
<input type="number" id="new-model-position-x" value="0"> cm
</label>,
<label for="new-model-rotation-x">
<input type="number" id="new-model-rotation-x" value="0"> °
</label>,
<label for="new-model-scale-x">
×<input type="number" id="new-model-scale-x" value="1" min="0.01">
</label>
<br>
Y:
<label for="new-model-position-y">
<input type="number" id="new-model-position-y" value="0">
cm
</label>,
<label for="new-model-rotation-y">
<input type="number" id="new-model-rotation-y" value="0"> °
</label>,
<label for="new-model-scale-y">
×<input type="number" id="new-model-scale-y" value="1" min="0.01">
</label>
<br>
Z:
<label for="new-model-position-z">
<input type="number" id="new-model-position-z" value="0"> cm
</label>,
<label for="new-model-rotation-z">
<input type="number" id="new-model-rotation-z" value="0"> °
</label>,
<label for="new-model-scale-z">
×<input type="number" id="new-model-scale-z" value="1" min="0.01">
</label>
<br>
<div class="btn-wrap">
<div class="btn" data-en="OK">決定</div>
</div>
</div>
</div>
<div class="setting-item hidden" id="export-setting">
<p data-en="Export model">モデルをエクスポートします。</p>
<div class="param-group">
<label for="export-file-format">
<span data-en="File type: ">形式:</span>
<select id="export-file-format">
<option data-en="STL *Color data is not saved." value="stl">STL ※色情報は保存されません</option>
<option data-en="GLTF" value="gltf">GLTF</option>
</select>
</label>
<label for="export-file-name">
<span data-en="File name: ">ファイル名:</span>
<input type="text" id="export-file-name" value="無題のモデル" data-en="Untitled">
</label>
</div>
<div class="param-group setting-center"><div class="btn" data-en="Export">エクスポート</div></div>
</div>
<div class="setting-item hidden" id="add-setting">
<div id="add-step1">
<p data-en="Create a new model and merge it.">新しくモデルを作成して結合します。</p>
<div class="param-group">
<div class="btn-wrap">
<div data-en="Create new" class="btn">新しいモデルを作る</div>
</div>
</div>
</div>
<div id="add-step2" class="hidden">
<p data-en="You are now in the add mode. You can now edit the additional model with the chokoku tool.">現在追加モードになっています。このまま彫刻ツールなどでで追加モデルを編集できます。</p>
<br>
<div class="btn-wrap">
<div class="btn cancel" data-en="Cancel" id="add-cancel-btn">キャンセル</div>
<div class="btn" data-en="Union" id="add-btn">結合</div>
</div>
</div>
</div>
</div>
<div id="status-bar"></div>
</body>
</html>