1 | <!DOCTYPE html>
|
---|
2 | <html>
|
---|
3 | <!-- removed for now, causes problems in Firefox: manifest="svg-editor.manifest" -->
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
|
---|
6 | <meta http-equiv="X-UA-Compatible" content="chrome=1"/>
|
---|
7 | <link rel="icon" type="image/png" href="images/logo.png"/>
|
---|
8 |
|
---|
9 | <!--{if svg_edit_release}>
|
---|
10 | <link rel="stylesheet" href="css/method-draw.compiled.css" type="text/css"/>
|
---|
11 | <!{else}-->
|
---|
12 | <link rel="stylesheet" href="lib/jgraduate/css/jPicker.css" type="text/css"/>
|
---|
13 | <link rel="stylesheet" href="lib/jgraduate/css/jgraduate.css" type="text/css"/>
|
---|
14 | <link rel="stylesheet" href="css/method-draw.css" type="text/css"/>
|
---|
15 | <link rel="stylesheet" href="css/fonts.css" type="text/css"/>
|
---|
16 | <!--{endif}-->
|
---|
17 | <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;"/>
|
---|
18 | <meta name="apple-mobile-web-app-capable" content="yes"/>
|
---|
19 |
|
---|
20 |
|
---|
21 | <script type="text/javascript" src="lib/jquery.js"></script>
|
---|
22 |
|
---|
23 |
|
---|
24 | <!--{if svg_edit_release}>
|
---|
25 | <script type="text/javascript" src="method-draw.compiled.js"></script>
|
---|
26 | <!{else}-->
|
---|
27 | <script type="text/javascript" src="lib/touch.js"></script>
|
---|
28 | <script type="text/javascript" src="lib/js-hotkeys/jquery.hotkeys.min.js"></script>
|
---|
29 | <script type="text/javascript" src="lib/jquerybbq/jquery.bbq.min.js"></script>
|
---|
30 | <script type="text/javascript" src="icons/jquery.svgicons.js"></script>
|
---|
31 | <script type="text/javascript" src="lib/jgraduate/jquery.jgraduate.js"></script>
|
---|
32 | <script type="text/javascript" src="lib/contextmenu/jquery.contextMenu.js"></script>
|
---|
33 | <script type="text/javascript" src="lib/jquery-ui/jquery-ui-1.8.17.custom.min.js"></script>
|
---|
34 | <script type="text/javascript" src="src/browser.js"></script>
|
---|
35 | <script type="text/javascript" src="src/svgtransformlist.js"></script>
|
---|
36 | <script type="text/javascript" src="src/math.js"></script>
|
---|
37 | <script type="text/javascript" src="src/units.js"></script>
|
---|
38 | <script type="text/javascript" src="src/svgutils.js"></script>
|
---|
39 | <script type="text/javascript" src="src/sanitize.js"></script>
|
---|
40 | <script type="text/javascript" src="src/history.js"></script>
|
---|
41 | <script type="text/javascript" src="src/select.js"></script>
|
---|
42 | <script type="text/javascript" src="src/draw.js"></script>
|
---|
43 | <script type="text/javascript" src="src/path.js"></script>
|
---|
44 | <script type="text/javascript" src="src/dialog.js"></script>
|
---|
45 | <script type="text/javascript" src="src/svgcanvas.js"></script>
|
---|
46 | <script type="text/javascript" src="src/method-draw.js"></script>
|
---|
47 | <script type="text/javascript" src="lib/jquery-draginput.js"></script>
|
---|
48 | <script type="text/javascript" src="lib/contextmenu.js"></script>
|
---|
49 | <script type="text/javascript" src="lib/jgraduate/jpicker.min.js"></script>
|
---|
50 | <script type="text/javascript" src="lib/mousewheel.js"></script>
|
---|
51 | <script type="text/javascript" src="extensions/ext-eyedropper.js"></script>
|
---|
52 | <script type="text/javascript" src="extensions/ext-shapes.js"></script>
|
---|
53 | <script type="text/javascript" src="extensions/ext-grid.js"></script>
|
---|
54 | <script type="text/javascript" src="lib/requestanimationframe.js"></script>
|
---|
55 | <script type="text/javascript" src="lib/taphold.js"></script>
|
---|
56 | <!--{endif}-->
|
---|
57 |
|
---|
58 |
|
---|
59 | <title>Method Draw</title>
|
---|
60 | </head>
|
---|
61 | <body>
|
---|
62 | <div id="svg_editor">
|
---|
63 |
|
---|
64 | <div id="rulers">
|
---|
65 | <div id="ruler_corner"></div>
|
---|
66 | <div id="ruler_x">
|
---|
67 | <div id="ruler_x_cursor"></div>
|
---|
68 | <div>
|
---|
69 | <canvas height="15"></canvas>
|
---|
70 | </div>
|
---|
71 | </div>
|
---|
72 | <div id="ruler_y">
|
---|
73 | <div id="ruler_y_cursor"></div>
|
---|
74 | <div>
|
---|
75 | <canvas width="15"></canvas>
|
---|
76 | </div>
|
---|
77 | </div>
|
---|
78 | </div>
|
---|
79 |
|
---|
80 | <div id="workarea">
|
---|
81 | <div id="svgcanvas" style="position:relative">
|
---|
82 |
|
---|
83 | </div>
|
---|
84 | </div>
|
---|
85 |
|
---|
86 | <div id="menu_bar">
|
---|
87 | <a class="menu">
|
---|
88 | <div class="menu_title" id="logo"></div>
|
---|
89 | <div class="menu_list">
|
---|
90 | <div id="tool_about" class="menu_item">About this Editor...</div>
|
---|
91 | <div class="separator"></div>
|
---|
92 | <div id="tool_about" class="menu_item">Keyboard Shortcus...</div>
|
---|
93 | </div>
|
---|
94 | </a>
|
---|
95 |
|
---|
96 | <div class="menu">
|
---|
97 | <div class="menu_title">File</div>
|
---|
98 | <div class="menu_list" id="file_menu">
|
---|
99 | <div id="tool_clear" class="menu_item">New Document</div>
|
---|
100 | <div id="tool_open" class="menu_item" style="display: none;"><div id="fileinputs"></div>Open SVG...</div>
|
---|
101 | <div id="tool_import" class="menu_item" style="display: none;"><div id="fileinputs_import"></div>Import Image...</div>
|
---|
102 | <div id="tool_save" class="menu_item">Save Image... <span class="shortcut">âS</span></div>
|
---|
103 | <div id="tool_export" class="menu_item">Export as PNG</div>
|
---|
104 | </div>
|
---|
105 | </div>
|
---|
106 |
|
---|
107 | <div class="menu">
|
---|
108 | <div class="menu_title">Edit</div>
|
---|
109 | <div class="menu_list" id="edit_menu">
|
---|
110 | <div class="menu_item" id="tool_undo">Undo <span class="shortcut">âZ</span></div>
|
---|
111 | <div class="menu_item" id="tool_redo">Redo <span class="shortcut">âY</span></div>
|
---|
112 | <div class="separator"></div>
|
---|
113 | <div class="menu_item action_selected disabled" id="tool_cut">Cut <span class="shortcut">âX</span></div>
|
---|
114 | <div class="menu_item action_selected disabled" id="tool_copy">Copy <span class="shortcut">âC</span></div>
|
---|
115 | <div class="menu_item action_selected disabled" id="tool_paste">Paste <span class="shortcut">âV</span></div>
|
---|
116 | <div class="menu_item action_selected disabled" id="tool_clone">Duplicate <span class="shortcut">âD</span></div>
|
---|
117 | <div class="menu_item action_selected disabled" id="tool_delete">Delete <span>â«</span></div>
|
---|
118 | </div>
|
---|
119 | </div>
|
---|
120 |
|
---|
121 | <div class="menu">
|
---|
122 | <div class="menu_title">Object</div>
|
---|
123 | <div class="menu_list" id="object_menu">
|
---|
124 | <div class="menu_item action_selected disabled" id="tool_move_top">Bring to Front <span class="shortcut">ââ§â</span></div>
|
---|
125 | <div class="menu_item action_selected disabled" id="tool_move_up">Bring Forward <span class="shortcut">ââ</span></div>
|
---|
126 | <div class="menu_item action_selected disabled" id="tool_move_down">Send Backward <span class="shortcut">ââ</span></div>
|
---|
127 | <div class="menu_item action_selected disabled" id="tool_move_bottom">Send to Back <span class="shortcut">ââ§â</span></div>
|
---|
128 | <div class="separator"></div>
|
---|
129 | <div class="menu_item action_multi_selected disabled" id="tool_group">Group Elements <span class="shortcut">âG</span></div>
|
---|
130 | <div class="menu_item action_group_selected disabled" id="tool_ungroup">Ungroup Elements <span class="shortcut">ââ§G</span></div>
|
---|
131 | <div class="separator"></div>
|
---|
132 | <div class="menu_item action_path_convert_selected disabled" id="tool_topath">Convert to Path</div>
|
---|
133 | <div class="menu_item action_path_selected disabled" id="tool_reorient">Reorient path</div>
|
---|
134 | </div>
|
---|
135 | </div>
|
---|
136 |
|
---|
137 | <div class="menu">
|
---|
138 | <div class="menu_title">View</div>
|
---|
139 | <div class="menu_list" id="view_menu">
|
---|
140 | <div class="menu_item push_button_pressed" id="tool_rulers">View Rulers</div>
|
---|
141 | <div class="menu_item" id="tool_wireframe">View Wireframe</div>
|
---|
142 | <div class="menu_item" id="tool_snap">Snap to Grid</div>
|
---|
143 | <div class="separator"></div>
|
---|
144 | <div class="menu_item" id="tool_source">Source... <span class="shortcut">âU</span></div>
|
---|
145 | </div>
|
---|
146 | </div>
|
---|
147 |
|
---|
148 |
|
---|
149 |
|
---|
150 | </div>
|
---|
151 |
|
---|
152 | <div id="tools_top" class="tools_panel">
|
---|
153 |
|
---|
154 | <div id="canvas_panel" class="context_panel">
|
---|
155 |
|
---|
156 | <h4 class="clearfix">Canvas</h4>
|
---|
157 |
|
---|
158 | <label data-title="Change canvas width">
|
---|
159 | <input size="3" id="canvas_width" type="text" pattern="[0-9]*" />
|
---|
160 | <span class="icon_label">Width</span>
|
---|
161 | </label>
|
---|
162 | <label data-title="Change canvas height">
|
---|
163 | <input id="canvas_height" size="3" type="text" pattern="[0-9]*" />
|
---|
164 | <span class="icon_label">Height</span>
|
---|
165 | </label>
|
---|
166 |
|
---|
167 |
|
---|
168 | <label data-title="Change canvas color" class="draginput">
|
---|
169 | <span>Color</span>
|
---|
170 | <div id="color_canvas_tools">
|
---|
171 | <div class="color_tool active" id="tool_canvas">
|
---|
172 | <div class="color_block">
|
---|
173 | <div id="canvas_bg"></div>
|
---|
174 | <div id="canvas_color"></div>
|
---|
175 | </div>
|
---|
176 | </div>
|
---|
177 | </div>
|
---|
178 | </label>
|
---|
179 |
|
---|
180 | <div class="draginput">
|
---|
181 | <span>Sizes</span>
|
---|
182 | <select id="resolution">
|
---|
183 | <option id="selectedPredefined" selected="selected">Custom</option>
|
---|
184 | <option>640x480</option>
|
---|
185 | <option>800x600</option>
|
---|
186 | <option>1024x768</option>
|
---|
187 | <option>1280x960</option>
|
---|
188 | <option>1600x1200</option>
|
---|
189 | <option id="fitToContent" value="content">Fit to Content</option>
|
---|
190 | </select>
|
---|
191 | <div class="caret"></div>
|
---|
192 | <label id="resolution_label">Custom</label>
|
---|
193 | </div>
|
---|
194 |
|
---|
195 | </div>
|
---|
196 |
|
---|
197 | <div id="rect_panel" class="context_panel">
|
---|
198 | <h4 class="clearfix">Rectangle</h4>
|
---|
199 | <label>
|
---|
200 | <input id="rect_x" class="attr_changer" data-title="Change X coordinate" size="3" data-attr="x" pattern="[0-9]*" />
|
---|
201 | <span>X</span>
|
---|
202 | </label>
|
---|
203 | <label>
|
---|
204 | <input id="rect_y" class="attr_changer" data-title="Change Y coordinate" size="3" data-attr="y" pattern="[0-9]*" />
|
---|
205 | <span>Y</span>
|
---|
206 | </label>
|
---|
207 | <label id="rect_width_tool attr_changer" data-title="Change rectangle width">
|
---|
208 | <input id="rect_width" class="attr_changer" size="3" data-attr="width" type="text" pattern="[0-9]*" />
|
---|
209 | <span class="icon_label">Width</span>
|
---|
210 | </label>
|
---|
211 | <label id="rect_height_tool" data-title="Change rectangle height">
|
---|
212 | <input id="rect_height" class="attr_changer" size="3" data-attr="height" type="text" pattern="[0-9]*" />
|
---|
213 | <span class="icon_label">Height</span>
|
---|
214 | </label>
|
---|
215 | </div>
|
---|
216 |
|
---|
217 | <div id="path_panel" class="context_panel clearfix">
|
---|
218 | <h4 class="clearfix">Path</h4>
|
---|
219 | <label>
|
---|
220 | <input id="path_x" class="attr_changer" data-title="Change ellipse's cx coordinate" size="3" data-attr="x" pattern="[0-9]*" />
|
---|
221 | <span>X</span>
|
---|
222 | </label>
|
---|
223 | <label>
|
---|
224 | <input id="path_y" class="attr_changer" data-title="Change ellipse's cy coordinate" size="3" data-attr="y" pattern="[0-9]*" />
|
---|
225 | <span>Y</span>
|
---|
226 | </label>
|
---|
227 | </div>
|
---|
228 |
|
---|
229 | <div id="image_panel" class="context_panel clearfix">
|
---|
230 | <h4>Image</h4>
|
---|
231 | <label>
|
---|
232 | <input id="image_x" class="attr_changer" data-title="Change X coordinate" size="3" data-attr="x" pattern="[0-9]*"/>
|
---|
233 | <span>X</span>
|
---|
234 | </label>
|
---|
235 | <label>
|
---|
236 | <input id="image_y" class="attr_changer" data-title="Change Y coordinate" size="3" data-attr="y" pattern="[0-9]*"/>
|
---|
237 | <span>Y</span>
|
---|
238 | </label>
|
---|
239 | <label>
|
---|
240 | <input id="image_width" class="attr_changer" data-title="Change image width" size="3" data-attr="width" pattern="[0-9]*" />
|
---|
241 | <span class="icon_label">Width</span>
|
---|
242 | </label>
|
---|
243 | <label>
|
---|
244 | <input id="image_height" class="attr_changer" data-title="Change image height" size="3" data-attr="height" pattern="[0-9]*" />
|
---|
245 | <span class="icon_label">Height</span>
|
---|
246 | </label>
|
---|
247 | </div>
|
---|
248 |
|
---|
249 | <div id="circle_panel" class="context_panel">
|
---|
250 | <h4>Circle</h4>
|
---|
251 | <label id="tool_circle_cx">
|
---|
252 | <span>Center X</span>
|
---|
253 | <input id="circle_cx" class="attr_changer" title="Change circle's cx coordinate" size="3" data-attr="cx"/>
|
---|
254 | </label>
|
---|
255 | <label id="tool_circle_cy">
|
---|
256 | <span>Center Y</span>
|
---|
257 | <input id="circle_cy" class="attr_changer" title="Change circle's cy coordinate" size="3" data-attr="cy"/>
|
---|
258 | </label>
|
---|
259 | <label id="tool_circle_r">
|
---|
260 | <span>Radius</span>
|
---|
261 | <input id="circle_r" class="attr_changer" title="Change circle's radius" size="3" data-attr="r"/>
|
---|
262 | </label>
|
---|
263 | </div>
|
---|
264 |
|
---|
265 | <div id="ellipse_panel" class="context_panel clearfix">
|
---|
266 | <h4>Ellipse</h4>
|
---|
267 | <label id="tool_ellipse_cx">
|
---|
268 | <input id="ellipse_cx" class="attr_changer" data-title="Change ellipse's cx coordinate" size="3" data-attr="cx" pattern="[0-9]*" />
|
---|
269 | <span>X</span>
|
---|
270 | </label>
|
---|
271 | <label id="tool_ellipse_cy">
|
---|
272 | <input id="ellipse_cy" class="attr_changer" data-title="Change ellipse's cy coordinate" size="3" data-attr="cy" pattern="[0-9]*" />
|
---|
273 | <span>Y</span>
|
---|
274 | </label>
|
---|
275 | <label id="tool_ellipse_rx">
|
---|
276 | <input id="ellipse_rx" class="attr_changer" data-title="Change ellipse's x radius" size="3" data-attr="rx" pattern="[0-9]*" />
|
---|
277 | <span>Radius X</span>
|
---|
278 | </label>
|
---|
279 | <label id="tool_ellipse_ry">
|
---|
280 | <input id="ellipse_ry" class="attr_changer" data-title="Change ellipse's y radius" size="3" data-attr="ry" pattern="[0-9]*" />
|
---|
281 | <span>Radius Y</span>
|
---|
282 | </label>
|
---|
283 | </div>
|
---|
284 |
|
---|
285 | <div id="line_panel" class="context_panel clearfix">
|
---|
286 | <h4>Line</h4>
|
---|
287 | <label id="tool_line_x1">
|
---|
288 | <input id="line_x1" class="attr_changer" data-title="Change line's starting x coordinate" size="3" data-attr="x1" pattern="[0-9]*" />
|
---|
289 | <span>Start X</span>
|
---|
290 | </label>
|
---|
291 | <label id="tool_line_y1">
|
---|
292 | <input id="line_y1" class="attr_changer" data-title="Change line's starting y coordinate" size="3" data-attr="y1" pattern="[0-9]*" />
|
---|
293 | <span>Start Y</span>
|
---|
294 | </label>
|
---|
295 | <label id="tool_line_x2">
|
---|
296 | <input id="line_x2" class="attr_changer" data-title="Change line's ending x coordinate" size="3" data-attr="x2" pattern="[0-9]*" />
|
---|
297 | <span>End X</span>
|
---|
298 | </label>
|
---|
299 | <label id="tool_line_y2">
|
---|
300 | <input id="line_y2" class="attr_changer" data-title="Change line's ending y coordinate" size="3" data-attr="y2" pattern="[0-9]*" />
|
---|
301 | <span>End Y</span>
|
---|
302 | </label>
|
---|
303 | </div>
|
---|
304 |
|
---|
305 | <div id="text_panel" class="context_panel">
|
---|
306 | <h4>Text</h4>
|
---|
307 | <label>
|
---|
308 | <input id="text_x" class="attr_changer" data-title="Change text x coordinate" size="3" data-attr="x" pattern="[0-9]*" />
|
---|
309 | <span>X</span>
|
---|
310 | </label>
|
---|
311 | <label>
|
---|
312 | <input id="text_y" class="attr_changer" data-title="Change text y coordinate" size="3" data-attr="y" pattern="[0-9]*" />
|
---|
313 | <span>Y</span>
|
---|
314 | </label>
|
---|
315 |
|
---|
316 | <div class="toolset draginput select twocol" id="tool_font_family">
|
---|
317 | <!-- Font family -->
|
---|
318 | <span>Font</span>
|
---|
319 | <div id="preview_font" style="font-family: Helvetica, Arial, sans-serif;">Helvetica</div>
|
---|
320 | <div class="caret"></div>
|
---|
321 | <input id="font_family" data-title="Change Font Family" size="12" type="hidden" />
|
---|
322 | <select id="font_family_dropdown">
|
---|
323 | <option value="Helvetica, Arial, sans-serif" selected="selected">Helvetica</option>
|
---|
324 | <!--<option value="Arvo, sans-serif">Arvo</option>
|
---|
325 | <option value="Euphoria, sans-serif">Euphoria</option>
|
---|
326 | <option value="Oswald, sans-serif">Oswald</option>
|
---|
327 | <option value="'Shadows Into Light', serif">Shadows Into Light</option>
|
---|
328 | <option value="'Simonetta', serif">Simonetta</option>-->
|
---|
329 | <option value="'Trebuchet MS', Gadget, sans-serif">Trebuchet</option>
|
---|
330 | <option value="Georgia, Times, 'Times New Roman', serif">Georgia</option>
|
---|
331 | <option value="'Palatino Linotype', 'Book Antiqua', Palatino, serif">Palatino</option>
|
---|
332 | <option value="'Times New Roman', Times, serif">Times</option>
|
---|
333 | <option value="'Courier New', Courier, monospace">Courier</option>
|
---|
334 | </select>
|
---|
335 | <div class="tool_button" id="tool_bold" data-title="Bold Text [B]">B</div>
|
---|
336 | <div class="tool_button" id="tool_italic" data-title="Italic Text [I]">i</div>
|
---|
337 | </div>
|
---|
338 |
|
---|
339 | <label id="tool_font_size" data-title="Change Font Size">
|
---|
340 | <input id="font_size" size="3" value="0" />
|
---|
341 | <span id="font_sizeLabel" class="icon_label">Font Size</span>
|
---|
342 | </label>
|
---|
343 | <!-- Not visible, but still used -->
|
---|
344 | <input id="text" type="text" size="35"/>
|
---|
345 | </div>
|
---|
346 |
|
---|
347 | <!-- formerly gsvg_panel -->
|
---|
348 | <div id="container_panel" class="context_panel clearfix">
|
---|
349 | </div>
|
---|
350 |
|
---|
351 | <div id="use_panel" class="context_panel clearfix">
|
---|
352 | <div class="tool_button clearfix" id="tool_unlink_use" data-title="Break link to reference element (make unique)">Break link reference</div>
|
---|
353 | </div>
|
---|
354 |
|
---|
355 | <div id="g_panel" class="context_panel clearfix">
|
---|
356 | <h4>Group</h4>
|
---|
357 | <label>
|
---|
358 | <input id="g_x" class="attr_changer" data-title="Change groups's x coordinate" size="3" data-attr="x" pattern="[0-9]*" />
|
---|
359 | <span>X</span>
|
---|
360 | </label>
|
---|
361 | <label>
|
---|
362 | <input id="g_y" class="attr_changer" data-title="Change groups's y coordinate" size="3" data-attr="y" pattern="[0-9]*" />
|
---|
363 | <span>Y</span>
|
---|
364 | </label>
|
---|
365 | </div>
|
---|
366 |
|
---|
367 | <div id="path_node_panel" class="context_panel clearfix">
|
---|
368 | <h4>Edit Path</h4>
|
---|
369 |
|
---|
370 | <label id="tool_node_x">
|
---|
371 | <input id="path_node_x" class="attr_changer" data-title="Change node's x coordinate" size="3" data-attr="x" />
|
---|
372 | <span>X</span>
|
---|
373 | </label>
|
---|
374 | <label id="tool_node_y">
|
---|
375 | <input id="path_node_y" class="attr_changer" data-title="Change node's y coordinate" size="3" data-attr="y" />
|
---|
376 | <span>Y</span>
|
---|
377 | </label>
|
---|
378 |
|
---|
379 | <div id="segment_type" class="draginput label">
|
---|
380 | <span>Segment Type</span>
|
---|
381 | <select id="seg_type" data-title="Change Segment type">
|
---|
382 | <option id="straight_segments" selected="selected" value="4">Straight</option>
|
---|
383 | <option id="curve_segments" value="6">Curve</option>
|
---|
384 | </select>
|
---|
385 | <div class="caret"></div>
|
---|
386 | <label id="seg_type_label">Straight</label>
|
---|
387 | </div>
|
---|
388 |
|
---|
389 | <!--
|
---|
390 | <label class="draginput checkbox" data-title="Link Control Points">
|
---|
391 | <span>Linked Control Points</span>
|
---|
392 | <div class="push_bottom"><input type="checkbox" id="tool_node_link" checked="checked" /></div>
|
---|
393 | </label>
|
---|
394 | -->
|
---|
395 |
|
---|
396 | <div class="clearfix"></div>
|
---|
397 | <div class="tool_button" id="tool_node_clone" title="Adds a node">Add Node</div>
|
---|
398 | <div class="tool_button" id="tool_node_delete" title="Delete Node">Delete Node</div>
|
---|
399 | <div class="tool_button" id="tool_openclose_path" title="Open/close sub-path">Open Path</div>
|
---|
400 | <!--<div class="tool_button" id="tool_add_subpath" title="Add sub-path"></div>-->
|
---|
401 | </div>
|
---|
402 |
|
---|
403 | <!-- Buttons when a single element is selected -->
|
---|
404 | <div id="selected_panel" class="context_panel">
|
---|
405 |
|
---|
406 | <label id="tool_angle" data-title="Change rotation angle" class="draginput">
|
---|
407 | <input id="angle" class="attr_changer" size="2" value="0" data-attr="transform" data-min="-180" data-max="180" type="text"/>
|
---|
408 | <span class="icon_label">Rotation</span>
|
---|
409 | <div id="tool_angle_indicator">
|
---|
410 | <div id="tool_angle_indicator_cursor"></div>
|
---|
411 | </div>
|
---|
412 | </label>
|
---|
413 |
|
---|
414 | <label class="toolset" id="tool_opacity" data-title="Change selected item opacity">
|
---|
415 | <input id="group_opacity" class="attr_changer" data-attr="opacity" data-multiplier="0.01" size="3" value="100" step="5" min="0" max="100" />
|
---|
416 | <span id="group_opacityLabel" class="icon_label">Opacity</span>
|
---|
417 | </label>
|
---|
418 |
|
---|
419 | <div class="toolset" id="tool_blur" data-title="Change gaussian blur value">
|
---|
420 | <label>
|
---|
421 | <input id="blur" size="2" value="0" step=".1" min="0" max="10" />
|
---|
422 | <span class="icon_label">Blur</span>
|
---|
423 | </label>
|
---|
424 | </div>
|
---|
425 |
|
---|
426 | <label id="cornerRadiusLabel" data-title="Change Rectangle Corner Radius">
|
---|
427 | <input id="rect_rx" size="3" value="0" data-attr="rx" class="attr_changer" type="text" pattern="[0-9]*" />
|
---|
428 | <span class="icon_label">Roundness</span>
|
---|
429 | </label>
|
---|
430 |
|
---|
431 | <div class="clearfix"></div>
|
---|
432 | <div id="align_tools">
|
---|
433 | <h4>Align</h4>
|
---|
434 | <div class="toolset align_buttons" id="tool_position">
|
---|
435 | <label>
|
---|
436 | <div class="col last clear" id="position_opts">
|
---|
437 | <div class="draginput_cell" id="tool_posleft" title="Align Left"></div>
|
---|
438 | <div class="draginput_cell" id="tool_poscenter" title="Align Center"></div>
|
---|
439 | <div class="draginput_cell" id="tool_posright" title="Align Right"></div>
|
---|
440 | <div class="draginput_cell" id="tool_postop" title="Align Top"></div>
|
---|
441 | <div class="draginput_cell" id="tool_posmiddle" title="Align Middle"></div>
|
---|
442 | <div class="draginput_cell" id="tool_posbottom" title="Align Bottom"></div>
|
---|
443 | </div>
|
---|
444 | </label>
|
---|
445 | </div>
|
---|
446 | </div>
|
---|
447 | </div>
|
---|
448 |
|
---|
449 | <!-- Buttons when multiple elements are selected -->
|
---|
450 | <div id="multiselected_panel" class="context_panel clearfix">
|
---|
451 | <h4 class="hidable">Multiple Elements</h4>
|
---|
452 |
|
---|
453 | <div class="toolset align_buttons" style="position: relative">
|
---|
454 | <label id="tool_align_relative" style="margin-top: 10px;">
|
---|
455 | <select id="align_relative_to" title="Align relative to ...">
|
---|
456 | <option id="selected_objects" value="selected">Align to objects</option>
|
---|
457 | <option id="page" value="page">Align to page</option>
|
---|
458 | </select>
|
---|
459 | </label>
|
---|
460 | <h4>.</h4>
|
---|
461 | <div class="col last clear">
|
---|
462 | <div class="draginput_cell" id="tool_alignleft" title="Align Left"></div>
|
---|
463 | <div class="draginput_cell" id="tool_aligncenter" title="Align Center"></div>
|
---|
464 | <div class="draginput_cell" id="tool_alignright" title="Align Right"></div>
|
---|
465 | <div class="draginput_cell" id="tool_aligntop" title="Align Top"></div>
|
---|
466 | <div class="draginput_cell" id="tool_alignmiddle" title="Align Middle"></div>
|
---|
467 | <div class="draginput_cell" id="tool_alignbottom" title="Align Bottom"></div>
|
---|
468 | </div>
|
---|
469 | </div>
|
---|
470 | <div class="clearfix"></div>
|
---|
471 |
|
---|
472 | </div>
|
---|
473 |
|
---|
474 | <div id="stroke_panel" class="context_panel clearfix">
|
---|
475 | <div class="clearfix"></div>
|
---|
476 | <h4>Stroke</h4>
|
---|
477 | <div class="toolset" data-title="Change stroke">
|
---|
478 | <label>
|
---|
479 | <input id="stroke_width" size="2" value="5" data-attr="stroke-width" min="0" max="99" step="1" />
|
---|
480 | <span class="icon_label">Stroke Width</span>
|
---|
481 | </label>
|
---|
482 | </div>
|
---|
483 | <div class="stroke_tool draginput">
|
---|
484 | <span>Stroke Dash</span>
|
---|
485 | <select id="stroke_style" data-title="Change stroke dash style">
|
---|
486 | <option selected="selected" value="none">â</option>
|
---|
487 | <option value="2,2">···</option>
|
---|
488 | <option value="5,5">- -</option>
|
---|
489 | <option value="5,2,2,2">-·-</option>
|
---|
490 | <option value="5,2,2,2,2,2">-··-</option>
|
---|
491 | </select>
|
---|
492 | <div class="caret"></div>
|
---|
493 | <label id="stroke_style_label">â</label>
|
---|
494 | </div>
|
---|
495 |
|
---|
496 | <label style="display: none;">
|
---|
497 | <span class="icon_label">Stroke Join</span>
|
---|
498 | </label>
|
---|
499 |
|
---|
500 | <label style="display: none;">
|
---|
501 | <span class="icon_label">Stroke Cap</span>
|
---|
502 | </label>
|
---|
503 | </div>
|
---|
504 |
|
---|
505 | </div> <!-- tools_top -->
|
---|
506 | <div id="cur_context_panel">
|
---|
507 |
|
---|
508 | </div>
|
---|
509 |
|
---|
510 |
|
---|
511 | <div id="tools_left" class="tools_panel">
|
---|
512 | <div class="tool_button" id="tool_select" title="Select Tool [V]"></div>
|
---|
513 | <div class="tool_button" id="tool_fhpath" title="Pencil Tool [P]"></div>
|
---|
514 | <div class="tool_button" id="tool_line" title="Line Tool [L]"></div>
|
---|
515 | <div class="tool_button" id="tool_rect" title="Square/Rect Tool [R]"></div>
|
---|
516 | <div class="tool_button" id="tool_ellipse" title="Ellipse/Circle Tool [C]"></div>
|
---|
517 | <div class="tool_button" id="tool_path" title="Path Tool [P]"></div>
|
---|
518 | <div class="tool_button" id="tool_text" title="Text Tool [T]"></div>
|
---|
519 | <div class="tool_button" id="tool_zoom" title="Zoom Tool [Z]"></div>
|
---|
520 |
|
---|
521 | <div id="color_tools">
|
---|
522 | <div id="tool_switch" title="Switch stroke and fill colors [X]"></div>
|
---|
523 | <div class="color_tool active" id="tool_fill">
|
---|
524 | <label class="icon_label" title="Change fill color"></label>
|
---|
525 | <div class="color_block">
|
---|
526 | <div id="fill_bg"></div>
|
---|
527 | <div id="fill_color" class="color_block"></div>
|
---|
528 | </div>
|
---|
529 | </div>
|
---|
530 |
|
---|
531 | <div class="color_tool" id="tool_stroke">
|
---|
532 | <label class="icon_label" title="Change stroke color"></label>
|
---|
533 | <div class="color_block">
|
---|
534 | <div id="stroke_bg"></div>
|
---|
535 | <div id="stroke_color" class="color_block" title="Change stroke color"></div>
|
---|
536 | </div>
|
---|
537 | </div>
|
---|
538 | </div>
|
---|
539 | </div> <!-- tools_left -->
|
---|
540 |
|
---|
541 | <div id="tools_bottom" class="tools_panel">
|
---|
542 |
|
---|
543 | <!-- Zoom buttons -->
|
---|
544 | <div id="zoom_panel" class="toolset" title="Change zoom level">
|
---|
545 | <div class="draginput select" id="zoom_label">
|
---|
546 | <span id="zoomLabel" class="zoom_tool icon_label"></span>
|
---|
547 | <select id="zoom_select">
|
---|
548 | <option value="6">6%</option>
|
---|
549 | <option value="12">12%</option>
|
---|
550 | <option value="16">16%</option>
|
---|
551 | <option value="25">25%</option>
|
---|
552 | <option value="50">50%</option>
|
---|
553 | <option value="75">75%</option>
|
---|
554 | <option value="100" selected="selected">100%</option>
|
---|
555 | <option value="150">150%</option>
|
---|
556 | <option value="200">200%</option>
|
---|
557 | <option value="300">300%</option>
|
---|
558 | <option value="400">400%</option>
|
---|
559 | <option value="600">600%</option>
|
---|
560 | <option value="800">800%</option>
|
---|
561 | <option value="1600">1600%</option>
|
---|
562 | </select>
|
---|
563 | <div class="caret"></div>
|
---|
564 | <input id="zoom" size="3" value="100%" type="text" readonly="readonly" />
|
---|
565 | </div>
|
---|
566 | </div>
|
---|
567 |
|
---|
568 | <div id="tools_bottom_3">
|
---|
569 | <div id="palette" title="Click to change fill color, shift-click to change stroke color"></div>
|
---|
570 | </div>
|
---|
571 | </div>
|
---|
572 |
|
---|
573 | <!-- hidden divs -->
|
---|
574 | <div id="color_picker"></div>
|
---|
575 |
|
---|
576 | </div> <!-- svg_editor -->
|
---|
577 |
|
---|
578 | <div id="svg_source_editor">
|
---|
579 | <div id="svg_source_overlay"></div>
|
---|
580 | <div id="svg_source_container">
|
---|
581 | <div id="save_output_btns">
|
---|
582 | <p id="copy_save_note">Copy the contents of this box into a text editor, then save the file with a .svg extension.</p>
|
---|
583 | <button id="copy_save_done">Done</button>
|
---|
584 | </div>
|
---|
585 | <form>
|
---|
586 | <textarea id="svg_source_textarea" spellcheck="false"></textarea>
|
---|
587 | </form>
|
---|
588 | <div id="tool_source_back" class="toolbar_button">
|
---|
589 | <button id="tool_source_cancel" class="cancel">Cancel</button>
|
---|
590 | <button id="tool_source_save" class="ok">Apply Changes</button>
|
---|
591 | </div>
|
---|
592 | </div>
|
---|
593 | </div>
|
---|
594 |
|
---|
595 | <div id="base_unit_container">
|
---|
596 | <select id="base_unit">
|
---|
597 | <option value="px">Pixels</option>
|
---|
598 | <option value="cm">Centimeters</option>
|
---|
599 | <option value="mm">Millimeters</option>
|
---|
600 | <option value="in">Inches</option>
|
---|
601 | <option value="pt">Points</option>
|
---|
602 | <option value="pc">Picas</option>
|
---|
603 | <option value="em">Ems</option>
|
---|
604 | <option value="ex">Exs</option>
|
---|
605 | </select>
|
---|
606 | </div>
|
---|
607 |
|
---|
608 | <div id="dialog_box">
|
---|
609 | <div id="dialog_box_overlay"></div>
|
---|
610 | <div id="dialog_container">
|
---|
611 | <div id="dialog_content"></div>
|
---|
612 | <div id="dialog_buttons"></div>
|
---|
613 | </div>
|
---|
614 | </div>
|
---|
615 |
|
---|
616 | <ul id="cmenu_canvas" class="contextMenu">
|
---|
617 | <li><a href="#cut">Cut <span class="shortcut">âX;</span></a></li>
|
---|
618 | <li><a href="#copy">Copy<span class="shortcut">âC</span></a></li>
|
---|
619 | <li><a href="#paste">Paste<span class="shortcut">âV</span></a></li>
|
---|
620 | <li class="separator"><a href="#delete">Delete<span class="shortcut">â«</span></a></li>
|
---|
621 | <li class="separator"><a href="#group">Group<span class="shortcut">âG</span></a></li>
|
---|
622 | <li><a href="#ungroup">Ungroup<span class="shortcut">ââ§G</span></a></li>
|
---|
623 | <li class="separator"><a href="#move_front">Bring to Front<span class="shortcut">ââ§â</span></a></li>
|
---|
624 | <li><a href="#move_up">Bring Forward<span class="shortcut">ââ</span></a></li>
|
---|
625 | <li><a href="#move_down">Send Backward<span class="shortcut">ââ</span></a></li>
|
---|
626 | <li><a href="#move_back">Send to Back<span class="shortcut">ââ§â</span></a></li>
|
---|
627 | </ul>
|
---|
628 |
|
---|
629 | </body>
|
---|
630 | </html>
|
---|