-
Notifications
You must be signed in to change notification settings - Fork 2
/
index copy.html
267 lines (245 loc) · 11.7 KB
/
index copy.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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>Papergrapher</title>
<link href="css/reset.css" rel="stylesheet" />
<link href="css/spectrum.css" rel="stylesheet" />
<link href="css/spectrum_override.css" rel="stylesheet" />
<link href="css/modal.css" rel="stylesheet" />
<link href="css/menu.css" rel="stylesheet" />
<link href="css/styles.css" rel="stylesheet" />
<link href="css/toolbar.css" rel="stylesheet" />
<link href="css/toolOptionPanel.css" rel="stylesheet" />
</head>
<body>
<canvas id="paperCanvas" data-paper-resize="true" data-paper-hidpi="off"></canvas>
<div id="loadingScreen" class="loadingScreen">
<div class="panel">Loading...</div>
</div>
<!-- Main Menu -->
<nav class="appNav" id="appNav">
<ul class="topMenu">
<li class="topMenuButton"><svg class="burgerButton" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><line stroke-width="12" x1="0" y1="9.5" x2="100" y2="9.5"/><line stroke-width="12" x1="0" y1="50.5" x2="100" y2="50.5"/><line stroke-width="12" x1="0" y1="90.5" x2="100" y2="90.5"/></svg>
<ul class="subMenu">
<li class="clearDocument_button">New</li>
<li class="importJSON_button">Open<input id="fileUploadJSON" class="fileUploadInput" type="file" accept=".json" ></li>
<li class="exportJSON_button">Save</li>
<li class="space"></li>
<li class="undo_button halfWidth left">Undo</li>
<li class="redo_button halfWidth right">Redo</li>
<li class="space"></li>
<li class="importMenu hasSubSubMenu">Import
<ul class="subSubMenu">
<li class="importImage_button">Image<input id="fileUploadImage" class="fileUploadInput" type="file" accept=".gif, .jpg, .jpeg, .png" ></li>
<li class="importImageFromURL_button">Image from URL</li>
<li class="importSVG_button">SVG<input id="fileUploadSVG" class="fileUploadInput" type="file" accept=".svg" ></li>
<li class="importSVGFromURL_button">SVG from URL</li>
<li class="importTH2_button">TH2<input id="fileUploadTH2" class="fileUploadInput" type="file" accept=".th2" ></li>
<li class="importXVI_button">XVI<input id="fileUploadXVI" class="fileUploadInput" type="file" accept=".xvi" ></li>
</ul>
</li>
<li class="exportMenu hasSubSubMenu">Export
<ul class="subSubMenu">
<li class="exportImage_button">Image</li>
<li class="exportSVG_button">SVG</li>
</ul>
</li>
<li class="space"></li>
<li class="layerPanelButton" title="Layer Panel">Layers</li>
<li class="scriptEditorButton" title="Script Editor">Script Editor</li>
<li class="space"></li>
<li class="hasSubSubMenu">View
<ul class="subSubMenu">
<li class="zoomIn_button" title="Alt-ScrollUp">Zoom in</li>
<li class="zoomOut_button" title="Alt-ScrollDown">Zoom out</li>
<li class="resetZoom_button" title="Ctrl-1">Reset zoom</li>
<li class="resetPan_button">Reset pan</li>
</ul>
</li>
<li class="space"></li>
<li class="resetSettings_button">Reset Settings</li>
<li class="space"></li>
<li class="aboutButton" title="About">About</li>
</ul>
</li>
<li class="topMenuButton">Tool
<ul class="subMenu" id="toolSubMenu">
</ul>
</li>
</ul>
</nav>
<div id="toolbar" class="toolbar">
<!-- Tools Container -->
<div class="toolsContainer toolbarSection"></div>
<!-- Color Container -->
<div class="colorContainer toolbarSection extraSpace">
<input type="text" id="fillColorInput" class="fillColor" />
<input type="text" id="strokeColorInput" class="strokeColor"/>
<div class="colorSwitchButton" id="colorSwitchButton" title="Switch colors"></div>
</div>
<div class="opacitySection toolbarSection extraSpace">
<label class="toolbarLabel">Opacity</label>
<input type="number" min="0" max="100" maxlength="3" id="opacityInput" value="100" class="opacityInput comboInput" title="Opacity"/>
<select id="opacitySelect" class="opacitySelect comboSelect" title="Opacity">
<option class="hidden" selected value=""></option>
<option value="0">0%</option>
<option value="10">10%</option>
<option value="20">20%</option>
<option value="30">30%</option>
<option value="40">40%</option>
<option value="50">50%</option>
<option value="60">60%</option>
<option value="70">70%</option>
<option value="80">80%</option>
<option value="90">90%</option>
<option value="100">100%</option>
</select>
</div>
<div class="blendModeSection toolbarSection extraSpace">
<label class="toolbarLabel">Blending</label>
<select id="blendModeSelect" class="blendModeSelect" title="Blend mode">
<option value="normal" selected>Normal</option>
<option value="multiply">Multiply</option>
<option value="screen">Screen</option>
<option value="overlay">Overlay</option>
<option value="soft-light">Soft-Light</option>
<option value="hard-light">Hard-Light</option>
<option value="color-dodge">Color-Dodge</option>
<option value="color-burn">Color-Burn</option>
<option value="darken">Darken</option>
<option value="lighten">Lighten</option>
<option value="differende">Difference</option>
<option value="exclusion">Exclusion</option>
<option value="hue">Hue</option>
<option value="saturation">Saturation</option>
<option value="luminosity">Luminosity</option>
<option value="color">Color</option>
<option value="add">Add</option>
<option value="subtract">Subtract</option>
<option value="average">Average</option>
<option value="pin-light">Pin-Light</option>
<option value="negation">Negation</option>
<option value="source-over">Source-Over</option>
<option value="source-in">Source-In</option>
<option value="source-atop">Source-Atop</option>
<option value="destination-over">Destination-Over</option>
<option value="destination-in">Destination-In</option>
<option value="destination-out">Destination-Out</option>
<option value="destination-atop">Destination-Atop</option>
<option value="lighter">Lighter</option>
<option value="darker">Darker</option>
<option value="copy">Copy</option>
<option value="xor">XOR</option>
</select>
</div>
<div class="strokeSection toolbarSection extraSpace">
<label class="toolbarLabel">Stroke</label>
<input type="number" min="0" maxlength="3" id="strokeInput" value="1" class="strokeInput"/>
<div class="strokeButtons">
<button class="inputHelper increase" id="increaseStrokeWidthButton">▴</button>
<button class="inputHelper decrease" id="decreaseStrokeWidthButton">▾</button>
</div>
</div>
</div>
<div id="statusBar" class="statusBar">
<div id="selectionInfoBar" class="statusBarSection">
<div id="selectionTypeLabel" class="selectionTypeLabel"></div>
</div>
<!-- Zoom Container -->
<div class="zoomContainer statusBarSection">
<label class="zoomLabel">Zoom</label>
<input type="number" min="0" max="6000" maxlength="4" id="zoomInput" value="100" class="zoomInput comboInput"/>
<select id="zoomSelect" class="zoomSelect comboSelect">
<option class="hidden" selected value=""></option>
<option value="10">1000%</option>
<option value="5">500%</option>
<option value="3">300%</option>
<option value="2">200%</option>
<option value="1.5">150%</option>
<option value="1">100%</option>
<option value="0.5">50%</option>
<option value="0.2">20%</option>
<option value="0.1">10%</option>
</select>
</div>
</div>
<div id="codeEditorContainer" class="codeEditorContainer hidden">
<nav class="codeEditorButtons appNav">
<ul class="topMenu">
<li id="runScriptButton" class="runScriptButton">Run</li>
</ul>
</nav>
<textarea id="codeEditorArea" class="codeEditorArea"></textarea>
<div class="consoleOutput" id="consoleOutput"><div id="clearConsoleButton" class="clearConsoleButton">Clear</div></div>
</div>
<div id="menuInputBlocker" class="menuInputBlocker hidden"></div>
<div id="colorInputBlocker" class="colorInputBlocker hidden"></div>
<!-- libraries -->
<script src="js/lib/paper-full.min.js"></script>
<script src="js/lib/jquery-2.2.4.min.js"></script>
<script src="js/lib/jquery-ui.min.js"></script>
<script src="js/lib/jquery-extensions.js"></script>
<script src="js/lib/filesaver.js"></script>
<script src="js/lib/canvas-toBlob.js"></script>
<script src="js/lib/spectrum.js"></script>
<script src="js/lib/opentype.min.js"></script>
<!-- application -->
<script src="js/init.js"></script>
<script src="js/settings.js"></script>
<script src="js/document.js"></script>
<script src="js/import.js"></script>
<script src="js/export.js"></script>
<script src="js/modal.js"></script>
<script src="js/view.js"></script>
<script src="js/item.js"></script>
<script src="js/group.js"></script>
<script src="js/layer.js"></script>
<script src="js/selection.js"></script>
<script src="js/toolOptionPanel.js"></script>
<script src="js/hover.js"></script>
<script src="js/order.js"></script>
<script src="js/menu.js"></script>
<script src="js/input.js"></script>
<script src="js/guides.js"></script>
<script src="js/boolean.js"></script>
<script src="js/text.js"></script>
<script src="js/tools.js"></script>
<script src="js/toolbar.js"></script>
<script src="js/stylebar.js"></script>
<script src="js/statusbar.js"></script>
<script src="js/layerPanel.js"></script>
<script src="js/math.js"></script>
<script src="js/edit.js"></script>
<script src="js/compoundPath.js"></script>
<script src="js/undo.js"></script>
<script src="js/helper.js"></script>
<script src="js/codeEditor.js"></script>
<script src="js/geometry.js" type="text/paperscript" data-paper-canvas="paperCanvas"></script>
<script src="js/editTH2.js"></script>
<!-- tools -->
<script src="js/tools/select.js" type="text/paperscript" data-paper-canvas="paperCanvas"></script>
<script src="js/tools/detailselect.js" type="text/paperscript" data-paper-canvas="paperCanvas"></script>
<script src="js/tools/draw.js" type="text/paperscript" data-paper-canvas="paperCanvas"></script>
<script src="js/tools/bezier.js" type="text/paperscript" data-paper-canvas="paperCanvas"></script>
<script src="js/tools/cloud.js" type="text/paperscript" data-paper-canvas="paperCanvas"></script>
<script src="js/tools/broadbrush.js" type="text/paperscript" data-paper-canvas="paperCanvas"></script>
<script src="js/tools/text.js" type="text/paperscript" data-paper-canvas="paperCanvas"></script>
<script src="js/tools/eyedropper.js" type="text/paperscript" data-paper-canvas="paperCanvas"></script>
<script src="js/tools/circle.js" type="text/paperscript" data-paper-canvas="paperCanvas"></script>
<script src="js/tools/rectangle.js" type="text/paperscript" data-paper-canvas="paperCanvas"></script>
<script src="js/tools/rotate.js" type="text/paperscript" data-paper-canvas="paperCanvas"></script>
<script src="js/tools/scale.js" type="text/paperscript" data-paper-canvas="paperCanvas"></script>
<script src="js/tools/exportrect.js" type="text/paperscript" data-paper-canvas="paperCanvas"></script>
<script src="js/tools/zoom.js" type="text/paperscript" data-paper-canvas="paperCanvas"></script>
<script src="js/tools/viewgrab.js" type="text/paperscript" data-paper-canvas="paperCanvas"></script>
<script src="js/tools/viewzoom.js" type="text/paperscript" data-paper-canvas="paperCanvas"></script>
<!-- dev -->
<script src="js/dev.js"></script>
<script src="js/exportTH2.js"></script>
<script src="js/importTH2.js"></script>
<script src="js/importXVI.js"></script>
</body>
</html>