run test and build
This commit is contained in:
@@ -1 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="428" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="green" stroke="#000" d="M0 0h120v20H0zM120 0h109v20H120zM229 0h87v20h-87zM316 0h112v20H316z"/><path fill="url(#smooth)" d="M0 0h428v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Statements 51.19%</text><text class="high" x="5" y="14">Statements 51.19%</text><text class="shadow" x="125.5" y="15">Branches 40.89%</text><text class="high" x="125" y="14">Branches 40.89%</text><text class="shadow" x="234.5" y="15">Lines 51.91%</text><text class="high" x="234" y="14">Lines 51.91%</text><text class="shadow" x="321.5" y="15">Functions 58.65%</text><text class="high" x="321" y="14">Functions 58.65%</text></g></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="428" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="green" stroke="#000" d="M0 0h120v20H0zM120 0h109v20H120zM229 0h87v20h-87zM316 0h112v20H316z"/><path fill="url(#smooth)" d="M0 0h428v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Statements 51.13%</text><text class="high" x="5" y="14">Statements 51.13%</text><text class="shadow" x="125.5" y="15">Branches 40.85%</text><text class="high" x="125" y="14">Branches 40.85%</text><text class="shadow" x="234.5" y="15">Lines 51.84%</text><text class="high" x="234" y="14">Lines 51.84%</text><text class="shadow" x="321.5" y="15">Functions 58.67%</text><text class="high" x="321" y="14">Functions 58.67%</text></g></svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
162
dist/editor/index.html
vendored
162
dist/editor/index.html
vendored
@@ -1,10 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
|
||||
<!-- No-op until loaded dynamically (could make configurable) -->
|
||||
@@ -12,7 +12,8 @@
|
||||
|
||||
<!-- STYLESHEETS (others loaded dynamically) -->
|
||||
<style id="styleoverrides" media="screen"></style>
|
||||
<link href="svgedit.css" rel="stylesheet" media="all"></link>
|
||||
<link href="svgedit.css" rel="stylesheet" media="all">
|
||||
</link>
|
||||
|
||||
<!-- SCRIPTS -->
|
||||
|
||||
@@ -25,6 +26,7 @@
|
||||
|
||||
<title>SVG-edit</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="svg_container" style="visibility: hidden;">
|
||||
@@ -64,13 +66,11 @@
|
||||
</tr>
|
||||
</table>
|
||||
<span id="selLayerLabel">Move elements to:</span>
|
||||
<select id="selLayerNames" title="Move selected elements to a different layer"
|
||||
disabled="disabled">
|
||||
<select id="selLayerNames" title="Move selected elements to a different layer" disabled="disabled">
|
||||
<option selected="selected" value="layer1">Layer 1</option>
|
||||
</select>
|
||||
</div>
|
||||
<div id="sidepanel_handle"
|
||||
title="Drag left/right to resize side panel [X]">L a y e r s
|
||||
<div id="sidepanel_handle" title="Drag left/right to resize side panel [X]">L a y e r s
|
||||
</div>
|
||||
</div>
|
||||
<div id="main_button">
|
||||
@@ -126,40 +126,29 @@
|
||||
<!-- History buttons -->
|
||||
<div id="history_panel">
|
||||
<div class="tool_sep"></div>
|
||||
<div class="push_button tool_button_disabled" id="tool_undo"
|
||||
title="Undo [Z]"></div>
|
||||
<div class="push_button tool_button_disabled" id="tool_redo"
|
||||
title="Redo [Y]"></div>
|
||||
<div class="push_button tool_button_disabled" id="tool_undo" title="Undo [Z]"></div>
|
||||
<div class="push_button tool_button_disabled" id="tool_redo" title="Redo [Y]"></div>
|
||||
</div>
|
||||
<!-- Buttons when a single element is selected -->
|
||||
<div id="selected_panel">
|
||||
<div class="toolset">
|
||||
<div class="tool_sep"></div>
|
||||
<div class="push_button" id="tool_clone"
|
||||
title="Duplicate Element [D]"></div>
|
||||
<div class="push_button" id="tool_delete"
|
||||
title="Delete Element [Delete/Backspace]"></div>
|
||||
<div class="push_button" id="tool_clone" title="Duplicate Element [D]"></div>
|
||||
<div class="push_button" id="tool_delete" title="Delete Element [Delete/Backspace]"></div>
|
||||
<div class="tool_sep"></div>
|
||||
<div class="push_button" id="tool_move_top"
|
||||
title="Bring to Front [ Ctrl+Shift+] ]"></div>
|
||||
<div class="push_button" id="tool_move_bottom"
|
||||
title="Send to Back [ Ctrl+Shift+[ ]"></div>
|
||||
<div class="push_button" id="tool_topath"
|
||||
title="Convert to Path"></div>
|
||||
<div class="push_button" id="tool_reorient"
|
||||
title="Reorient path"></div>
|
||||
<div class="push_button" id="tool_make_link"
|
||||
title="Make (hyper)link"></div>
|
||||
<div class="push_button" id="tool_move_top" title="Bring to Front [ Ctrl+Shift+] ]"></div>
|
||||
<div class="push_button" id="tool_move_bottom" title="Send to Back [ Ctrl+Shift+[ ]"></div>
|
||||
<div class="push_button" id="tool_topath" title="Convert to Path"></div>
|
||||
<div class="push_button" id="tool_reorient" title="Reorient path"></div>
|
||||
<div class="push_button" id="tool_make_link" title="Make (hyper)link"></div>
|
||||
<div class="tool_sep"></div>
|
||||
<label id="idLabel" title="Identify the element">
|
||||
<span>id:</span>
|
||||
<input id="elem_id" class="attr_changer"
|
||||
data-attr="id" size="10" type="text"/>
|
||||
<input id="elem_id" class="attr_changer" data-attr="id" size="10" type="text" />
|
||||
</label>
|
||||
<label id="classLabel" title="Element class">
|
||||
<span>class:</span>
|
||||
<input id="elem_class" class="attr_changer"
|
||||
data-attr="class" size="10" type="text"/>
|
||||
<input id="elem_class" class="attr_changer" data-attr="class" size="10" type="text" />
|
||||
</label>
|
||||
</div>
|
||||
<label id="tool_angle" title="Change rotation angle" class="toolset">
|
||||
@@ -174,7 +163,9 @@
|
||||
<div id="blur_dropdown" class="dropdown">
|
||||
<button></button>
|
||||
<ul>
|
||||
<li class="special"><div id="blur_slider"></div></li>
|
||||
<li class="special">
|
||||
<div id="blur_slider"></div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -184,22 +175,18 @@
|
||||
</div>
|
||||
<div id="xy_panel" class="toolset">
|
||||
<label>
|
||||
x: <input id="selected_x" class="attr_changer"
|
||||
title="Change X coordinate" size="3" data-attr="x"/>
|
||||
x: <input id="selected_x" class="attr_changer" title="Change X coordinate" size="3" data-attr="x" />
|
||||
</label>
|
||||
<label>
|
||||
y: <input id="selected_y" class="attr_changer"
|
||||
title="Change Y coordinate" size="3" data-attr="y"/>
|
||||
y: <input id="selected_y" class="attr_changer" title="Change Y coordinate" size="3" data-attr="y" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Buttons when multiple elements are selected -->
|
||||
<div id="multiselected_panel">
|
||||
<div class="tool_sep"></div>
|
||||
<div class="push_button" id="tool_clone_multi"
|
||||
title="Clone Elements [C]"></div>
|
||||
<div class="push_button" id="tool_delete_multi"
|
||||
title="Delete Selected Elements [Delete/Backspace]"></div>
|
||||
<div class="push_button" id="tool_clone_multi" title="Clone Elements [C]"></div>
|
||||
<div class="push_button" id="tool_delete_multi" title="Delete Selected Elements [Delete/Backspace]"></div>
|
||||
<div class="tool_sep"></div>
|
||||
<div class="push_button" id="tool_group_elements" title="Group Elements [G]"></div>
|
||||
<div class="push_button" id="tool_make_link_multi" title="Make (hyper)link"></div>
|
||||
@@ -231,8 +218,7 @@
|
||||
<input id="rect_height" class="attr_changer" size="3" data-attr="height" />
|
||||
</label>
|
||||
</div>
|
||||
<label id="cornerRadiusLabel" class="toolset"
|
||||
title="Change Rectangle Corner Radius">
|
||||
<label id="cornerRadiusLabel" class="toolset" title="Change Rectangle Corner Radius">
|
||||
<span class="icon_label"></span>
|
||||
<input id="rect_rx" size="3" value="0" type="text" data-attr="Corner Radius" />
|
||||
</label>
|
||||
@@ -240,12 +226,10 @@
|
||||
<div id="image_panel">
|
||||
<div class="toolset">
|
||||
<label><span id="iwidthLabel" class="icon_label"></span>
|
||||
<input id="image_width" class="attr_changer"
|
||||
title="Change image width" size="3" data-attr="width"/>
|
||||
<input id="image_width" class="attr_changer" title="Change image width" size="3" data-attr="width" />
|
||||
</label>
|
||||
<label><span id="iheightLabel" class="icon_label"></span>
|
||||
<input id="image_height" class="attr_changer"
|
||||
title="Change image height" size="3" data-attr="height"/>
|
||||
<input id="image_height" class="attr_changer" title="Change image height" size="3" data-attr="height" />
|
||||
</label>
|
||||
</div>
|
||||
<div class="toolset">
|
||||
@@ -262,71 +246,66 @@
|
||||
<div id="circle_panel">
|
||||
<div class="toolset">
|
||||
<label id="tool_circle_cx">cx:
|
||||
<input id="circle_cx" class="attr_changer"
|
||||
title="Change circle's cx coordinate" size="3" data-attr="cx"/>
|
||||
<input id="circle_cx" class="attr_changer" title="Change circle's cx coordinate" size="3"
|
||||
data-attr="cx" />
|
||||
</label>
|
||||
<label id="tool_circle_cy">cy:
|
||||
<input id="circle_cy" class="attr_changer"
|
||||
title="Change circle's cy coordinate" size="3" data-attr="cy"/>
|
||||
<input id="circle_cy" class="attr_changer" title="Change circle's cy coordinate" size="3"
|
||||
data-attr="cy" />
|
||||
</label>
|
||||
</div>
|
||||
<div class="toolset">
|
||||
<label id="tool_circle_r">r:
|
||||
<input id="circle_r" class="attr_changer"
|
||||
title="Change circle's radius" size="3" data-attr="r"/>
|
||||
<input id="circle_r" class="attr_changer" title="Change circle's radius" size="3" data-attr="r" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ellipse_panel">
|
||||
<div class="toolset">
|
||||
<label id="tool_ellipse_cx">cx:
|
||||
<input id="ellipse_cx" class="attr_changer"
|
||||
title="Change ellipse's cx coordinate" size="3" data-attr="cx"/>
|
||||
<input id="ellipse_cx" class="attr_changer" title="Change ellipse's cx coordinate" size="3"
|
||||
data-attr="cx" />
|
||||
</label>
|
||||
<label id="tool_ellipse_cy">cy:
|
||||
<input id="ellipse_cy" class="attr_changer"
|
||||
title="Change ellipse's cy coordinate" size="3" data-attr="cy"/>
|
||||
<input id="ellipse_cy" class="attr_changer" title="Change ellipse's cy coordinate" size="3"
|
||||
data-attr="cy" />
|
||||
</label>
|
||||
</div>
|
||||
<div class="toolset">
|
||||
<label id="tool_ellipse_rx">rx:
|
||||
<input id="ellipse_rx" class="attr_changer"
|
||||
title="Change ellipse's x radius" size="3" data-attr="rx"/>
|
||||
<input id="ellipse_rx" class="attr_changer" title="Change ellipse's x radius" size="3" data-attr="rx" />
|
||||
</label>
|
||||
<label id="tool_ellipse_ry">ry:
|
||||
<input id="ellipse_ry" class="attr_changer"
|
||||
title="Change ellipse's y radius" size="3" data-attr="ry"/>
|
||||
<input id="ellipse_ry" class="attr_changer" title="Change ellipse's y radius" size="3" data-attr="ry" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div id="line_panel">
|
||||
<div class="toolset">
|
||||
<label id="tool_line_x1">x1:
|
||||
<input id="line_x1" class="attr_changer"
|
||||
title="Change line's starting x coordinate" size="3" data-attr="x1"/>
|
||||
<input id="line_x1" class="attr_changer" title="Change line's starting x coordinate" size="3"
|
||||
data-attr="x1" />
|
||||
</label>
|
||||
<label id="tool_line_y1">y1:
|
||||
<input id="line_y1" class="attr_changer"
|
||||
title="Change line's starting y coordinate" size="3" data-attr="y1"/>
|
||||
<input id="line_y1" class="attr_changer" title="Change line's starting y coordinate" size="3"
|
||||
data-attr="y1" />
|
||||
</label>
|
||||
</div>
|
||||
<div class="toolset">
|
||||
<label id="tool_line_x2">x2:
|
||||
<input id="line_x2" class="attr_changer"
|
||||
title="Change line's ending x coordinate" size="3" data-attr="x2"/>
|
||||
<input id="line_x2" class="attr_changer" title="Change line's ending x coordinate" size="3"
|
||||
data-attr="x2" />
|
||||
</label>
|
||||
<label id="tool_line_y2">y2:
|
||||
<input id="line_y2" class="attr_changer"
|
||||
title="Change line's ending y coordinate" size="3" data-attr="y2"/>
|
||||
<input id="line_y2" class="attr_changer" title="Change line's ending y coordinate" size="3"
|
||||
data-attr="y2" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div id="text_panel">
|
||||
<div class="toolset">
|
||||
<div class="tool_button" id="tool_bold"
|
||||
title="Bold Text [B]"><span></span>B</div>
|
||||
<div class="tool_button" id="tool_italic"
|
||||
title="Italic Text [I]"><span></span>i</div>
|
||||
<div class="tool_button" id="tool_bold" title="Bold Text [B]"><span></span>B</div>
|
||||
<div class="tool_button" id="tool_italic" title="Italic Text [I]"><span></span>i</div>
|
||||
</div>
|
||||
<div class="toolset" id="tool_font_family">
|
||||
<label>
|
||||
@@ -364,8 +343,7 @@
|
||||
</label>
|
||||
</div>
|
||||
<div id="use_panel">
|
||||
<div class="push_button" id="tool_unlink_use"
|
||||
title="Break link to reference element (make unique)"></div>
|
||||
<div class="push_button" id="tool_unlink_use" title="Break link to reference element (make unique)"></div>
|
||||
</div>
|
||||
<div id="g_panel">
|
||||
<div class="push_button" id="tool_ungroup" title="Ungroup Elements [G]"></div>
|
||||
@@ -379,20 +357,16 @@
|
||||
</div>
|
||||
<div id="path_node_panel">
|
||||
<div class="tool_sep"></div>
|
||||
<div id="tool_node_link" class="tool_button push_button_pressed"
|
||||
title="Link Control Points"></div>
|
||||
<div id="tool_node_link" class="tool_button push_button_pressed" title="Link Control Points"></div>
|
||||
<div class="tool_sep"></div>
|
||||
<label id="tool_node_x">x:
|
||||
<input id="path_node_x" class="attr_changer"
|
||||
title="Change node's x coordinate" size="3" data-attr="x"/>
|
||||
<input id="path_node_x" class="attr_changer" title="Change node's x coordinate" size="3" data-attr="x" />
|
||||
</label>
|
||||
<label id="tool_node_y">y:
|
||||
<input id="path_node_y" class="attr_changer"
|
||||
title="Change node's y coordinate" size="3" data-attr="y"/>
|
||||
<input id="path_node_y" class="attr_changer" title="Change node's y coordinate" size="3" data-attr="y" />
|
||||
</label>
|
||||
<select id="seg_type" title="Change Segment type">
|
||||
<option id="straight_segments"
|
||||
selected="selected" value="4">Straight</option>
|
||||
<option id="straight_segments" selected="selected" value="4">Straight</option>
|
||||
<option id="curve_segments" value="6">Curve</option>
|
||||
</select>
|
||||
<div class="tool_button" id="tool_node_clone" title="Clone Node"></div>
|
||||
@@ -407,12 +381,10 @@
|
||||
<div class="tool_button" id="tool_select" title="Select Tool"></div>
|
||||
<div class="tool_button" id="tool_fhpath" title="Pencil Tool"></div>
|
||||
<div class="tool_button" id="tool_line" title="Line Tool"></div>
|
||||
<div id="tools_rect_show" class="tool_button flyout_current"
|
||||
title="Square/Rect Tool">
|
||||
<div id="tools_rect_show" class="tool_button flyout_current" title="Square/Rect Tool">
|
||||
<div class="flyout_arrow_horiz"></div>
|
||||
</div>
|
||||
<div id="tools_ellipse_show" class="tool_button flyout_current"
|
||||
title="Ellipse/Circle Tool">
|
||||
<div id="tools_ellipse_show" class="tool_button flyout_current" title="Ellipse/Circle Tool">
|
||||
<div class="flyout_arrow_horiz"></div>
|
||||
</div>
|
||||
<div class="tool_button" id="tool_path" title="Path Tool"></div>
|
||||
@@ -469,9 +441,8 @@
|
||||
<div id="stroke_color" class="color_block" title="Change stroke color"></div>
|
||||
</div>
|
||||
<label class="stroke_label">
|
||||
<input id="stroke_width"
|
||||
title="Change stroke width by 1, shift-click to change by 0.1"
|
||||
size="2" value="5" type="text" data-attr="Stroke Width"/>
|
||||
<input id="stroke_width" title="Change stroke width by 1, shift-click to change by 0.1" size="2"
|
||||
value="5" type="text" data-attr="Stroke Width" />
|
||||
</label>
|
||||
<div id="toggle_stroke_tools" title="Show/hide more stroke tools"></div>
|
||||
<label class="stroke_tool">
|
||||
@@ -505,7 +476,9 @@
|
||||
<li>50%</li>
|
||||
<li>75%</li>
|
||||
<li>100%</li>
|
||||
<li class="special"><div id="opac_slider"></div></li>
|
||||
<li class="special">
|
||||
<div id="opac_slider"></div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -513,8 +486,7 @@
|
||||
</div>
|
||||
<div id="tools_bottom_3">
|
||||
<div id="palette_holder">
|
||||
<div id="palette"
|
||||
title="Click to change fill color, shift-click to change stroke color">
|
||||
<div id="palette" title="Click to change fill color, shift-click to change stroke color">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -586,15 +558,13 @@
|
||||
</label>
|
||||
<label>
|
||||
<select id="resolution">
|
||||
<option id="selectedPredefined"
|
||||
selected="selected">Select predefined:</option>
|
||||
<option id="selectedPredefined" selected="selected">Select predefined:</option>
|
||||
<option>640x480</option>
|
||||
<option>800x600</option>
|
||||
<option>1024x768</option>
|
||||
<option>1280x960</option>
|
||||
<option>1600x1200</option>
|
||||
<option id="fitToContent"
|
||||
value="content">Fit to Content</option>
|
||||
<option id="fitToContent" value="content">Fit to Content</option>
|
||||
</select>
|
||||
</label>
|
||||
</fieldset>
|
||||
@@ -684,8 +654,7 @@
|
||||
<legend id="svginfo_units_rulers">Units & Rulers</legend>
|
||||
<label>
|
||||
<span id="svginfo_rulers_onoff">Show rulers</span>
|
||||
<input id="show_rulers" type="checkbox"
|
||||
value="show_rulers" checked="checked"/>
|
||||
<input id="show_rulers" type="checkbox" value="show_rulers" checked="checked" />
|
||||
</label>
|
||||
<label>
|
||||
<span id="svginfo_unit">Base Unit:</span>
|
||||
@@ -754,4 +723,5 @@
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
42
dist/editor/index.js
vendored
42
dist/editor/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/editor/index.js.map
vendored
2
dist/editor/index.js.map
vendored
File diff suppressed because one or more lines are too long
162
dist/editor/system/index.html
vendored
162
dist/editor/system/index.html
vendored
@@ -1,10 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
|
||||
<!-- No-op until loaded dynamically (could make configurable) -->
|
||||
@@ -12,7 +12,8 @@
|
||||
|
||||
<!-- STYLESHEETS (others loaded dynamically) -->
|
||||
<style id="styleoverrides" media="screen"></style>
|
||||
<link href="svgedit.css" rel="stylesheet" media="all"></link>
|
||||
<link href="svgedit.css" rel="stylesheet" media="all">
|
||||
</link>
|
||||
|
||||
<!-- SCRIPTS -->
|
||||
|
||||
@@ -32,6 +33,7 @@
|
||||
|
||||
<title>SVG-edit</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="svg_container" style="visibility: hidden;">
|
||||
@@ -71,13 +73,11 @@
|
||||
</tr>
|
||||
</table>
|
||||
<span id="selLayerLabel">Move elements to:</span>
|
||||
<select id="selLayerNames" title="Move selected elements to a different layer"
|
||||
disabled="disabled">
|
||||
<select id="selLayerNames" title="Move selected elements to a different layer" disabled="disabled">
|
||||
<option selected="selected" value="layer1">Layer 1</option>
|
||||
</select>
|
||||
</div>
|
||||
<div id="sidepanel_handle"
|
||||
title="Drag left/right to resize side panel [X]">L a y e r s
|
||||
<div id="sidepanel_handle" title="Drag left/right to resize side panel [X]">L a y e r s
|
||||
</div>
|
||||
</div>
|
||||
<div id="main_button">
|
||||
@@ -133,40 +133,29 @@
|
||||
<!-- History buttons -->
|
||||
<div id="history_panel">
|
||||
<div class="tool_sep"></div>
|
||||
<div class="push_button tool_button_disabled" id="tool_undo"
|
||||
title="Undo [Z]"></div>
|
||||
<div class="push_button tool_button_disabled" id="tool_redo"
|
||||
title="Redo [Y]"></div>
|
||||
<div class="push_button tool_button_disabled" id="tool_undo" title="Undo [Z]"></div>
|
||||
<div class="push_button tool_button_disabled" id="tool_redo" title="Redo [Y]"></div>
|
||||
</div>
|
||||
<!-- Buttons when a single element is selected -->
|
||||
<div id="selected_panel">
|
||||
<div class="toolset">
|
||||
<div class="tool_sep"></div>
|
||||
<div class="push_button" id="tool_clone"
|
||||
title="Duplicate Element [D]"></div>
|
||||
<div class="push_button" id="tool_delete"
|
||||
title="Delete Element [Delete/Backspace]"></div>
|
||||
<div class="push_button" id="tool_clone" title="Duplicate Element [D]"></div>
|
||||
<div class="push_button" id="tool_delete" title="Delete Element [Delete/Backspace]"></div>
|
||||
<div class="tool_sep"></div>
|
||||
<div class="push_button" id="tool_move_top"
|
||||
title="Bring to Front [ Ctrl+Shift+] ]"></div>
|
||||
<div class="push_button" id="tool_move_bottom"
|
||||
title="Send to Back [ Ctrl+Shift+[ ]"></div>
|
||||
<div class="push_button" id="tool_topath"
|
||||
title="Convert to Path"></div>
|
||||
<div class="push_button" id="tool_reorient"
|
||||
title="Reorient path"></div>
|
||||
<div class="push_button" id="tool_make_link"
|
||||
title="Make (hyper)link"></div>
|
||||
<div class="push_button" id="tool_move_top" title="Bring to Front [ Ctrl+Shift+] ]"></div>
|
||||
<div class="push_button" id="tool_move_bottom" title="Send to Back [ Ctrl+Shift+[ ]"></div>
|
||||
<div class="push_button" id="tool_topath" title="Convert to Path"></div>
|
||||
<div class="push_button" id="tool_reorient" title="Reorient path"></div>
|
||||
<div class="push_button" id="tool_make_link" title="Make (hyper)link"></div>
|
||||
<div class="tool_sep"></div>
|
||||
<label id="idLabel" title="Identify the element">
|
||||
<span>id:</span>
|
||||
<input id="elem_id" class="attr_changer"
|
||||
data-attr="id" size="10" type="text"/>
|
||||
<input id="elem_id" class="attr_changer" data-attr="id" size="10" type="text" />
|
||||
</label>
|
||||
<label id="classLabel" title="Element class">
|
||||
<span>class:</span>
|
||||
<input id="elem_class" class="attr_changer"
|
||||
data-attr="class" size="10" type="text"/>
|
||||
<input id="elem_class" class="attr_changer" data-attr="class" size="10" type="text" />
|
||||
</label>
|
||||
</div>
|
||||
<label id="tool_angle" title="Change rotation angle" class="toolset">
|
||||
@@ -181,7 +170,9 @@
|
||||
<div id="blur_dropdown" class="dropdown">
|
||||
<button></button>
|
||||
<ul>
|
||||
<li class="special"><div id="blur_slider"></div></li>
|
||||
<li class="special">
|
||||
<div id="blur_slider"></div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -191,22 +182,18 @@
|
||||
</div>
|
||||
<div id="xy_panel" class="toolset">
|
||||
<label>
|
||||
x: <input id="selected_x" class="attr_changer"
|
||||
title="Change X coordinate" size="3" data-attr="x"/>
|
||||
x: <input id="selected_x" class="attr_changer" title="Change X coordinate" size="3" data-attr="x" />
|
||||
</label>
|
||||
<label>
|
||||
y: <input id="selected_y" class="attr_changer"
|
||||
title="Change Y coordinate" size="3" data-attr="y"/>
|
||||
y: <input id="selected_y" class="attr_changer" title="Change Y coordinate" size="3" data-attr="y" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Buttons when multiple elements are selected -->
|
||||
<div id="multiselected_panel">
|
||||
<div class="tool_sep"></div>
|
||||
<div class="push_button" id="tool_clone_multi"
|
||||
title="Clone Elements [C]"></div>
|
||||
<div class="push_button" id="tool_delete_multi"
|
||||
title="Delete Selected Elements [Delete/Backspace]"></div>
|
||||
<div class="push_button" id="tool_clone_multi" title="Clone Elements [C]"></div>
|
||||
<div class="push_button" id="tool_delete_multi" title="Delete Selected Elements [Delete/Backspace]"></div>
|
||||
<div class="tool_sep"></div>
|
||||
<div class="push_button" id="tool_group_elements" title="Group Elements [G]"></div>
|
||||
<div class="push_button" id="tool_make_link_multi" title="Make (hyper)link"></div>
|
||||
@@ -238,8 +225,7 @@
|
||||
<input id="rect_height" class="attr_changer" size="3" data-attr="height" />
|
||||
</label>
|
||||
</div>
|
||||
<label id="cornerRadiusLabel" class="toolset"
|
||||
title="Change Rectangle Corner Radius">
|
||||
<label id="cornerRadiusLabel" class="toolset" title="Change Rectangle Corner Radius">
|
||||
<span class="icon_label"></span>
|
||||
<input id="rect_rx" size="3" value="0" type="text" data-attr="Corner Radius" />
|
||||
</label>
|
||||
@@ -247,12 +233,10 @@
|
||||
<div id="image_panel">
|
||||
<div class="toolset">
|
||||
<label><span id="iwidthLabel" class="icon_label"></span>
|
||||
<input id="image_width" class="attr_changer"
|
||||
title="Change image width" size="3" data-attr="width"/>
|
||||
<input id="image_width" class="attr_changer" title="Change image width" size="3" data-attr="width" />
|
||||
</label>
|
||||
<label><span id="iheightLabel" class="icon_label"></span>
|
||||
<input id="image_height" class="attr_changer"
|
||||
title="Change image height" size="3" data-attr="height"/>
|
||||
<input id="image_height" class="attr_changer" title="Change image height" size="3" data-attr="height" />
|
||||
</label>
|
||||
</div>
|
||||
<div class="toolset">
|
||||
@@ -269,71 +253,66 @@
|
||||
<div id="circle_panel">
|
||||
<div class="toolset">
|
||||
<label id="tool_circle_cx">cx:
|
||||
<input id="circle_cx" class="attr_changer"
|
||||
title="Change circle's cx coordinate" size="3" data-attr="cx"/>
|
||||
<input id="circle_cx" class="attr_changer" title="Change circle's cx coordinate" size="3"
|
||||
data-attr="cx" />
|
||||
</label>
|
||||
<label id="tool_circle_cy">cy:
|
||||
<input id="circle_cy" class="attr_changer"
|
||||
title="Change circle's cy coordinate" size="3" data-attr="cy"/>
|
||||
<input id="circle_cy" class="attr_changer" title="Change circle's cy coordinate" size="3"
|
||||
data-attr="cy" />
|
||||
</label>
|
||||
</div>
|
||||
<div class="toolset">
|
||||
<label id="tool_circle_r">r:
|
||||
<input id="circle_r" class="attr_changer"
|
||||
title="Change circle's radius" size="3" data-attr="r"/>
|
||||
<input id="circle_r" class="attr_changer" title="Change circle's radius" size="3" data-attr="r" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ellipse_panel">
|
||||
<div class="toolset">
|
||||
<label id="tool_ellipse_cx">cx:
|
||||
<input id="ellipse_cx" class="attr_changer"
|
||||
title="Change ellipse's cx coordinate" size="3" data-attr="cx"/>
|
||||
<input id="ellipse_cx" class="attr_changer" title="Change ellipse's cx coordinate" size="3"
|
||||
data-attr="cx" />
|
||||
</label>
|
||||
<label id="tool_ellipse_cy">cy:
|
||||
<input id="ellipse_cy" class="attr_changer"
|
||||
title="Change ellipse's cy coordinate" size="3" data-attr="cy"/>
|
||||
<input id="ellipse_cy" class="attr_changer" title="Change ellipse's cy coordinate" size="3"
|
||||
data-attr="cy" />
|
||||
</label>
|
||||
</div>
|
||||
<div class="toolset">
|
||||
<label id="tool_ellipse_rx">rx:
|
||||
<input id="ellipse_rx" class="attr_changer"
|
||||
title="Change ellipse's x radius" size="3" data-attr="rx"/>
|
||||
<input id="ellipse_rx" class="attr_changer" title="Change ellipse's x radius" size="3" data-attr="rx" />
|
||||
</label>
|
||||
<label id="tool_ellipse_ry">ry:
|
||||
<input id="ellipse_ry" class="attr_changer"
|
||||
title="Change ellipse's y radius" size="3" data-attr="ry"/>
|
||||
<input id="ellipse_ry" class="attr_changer" title="Change ellipse's y radius" size="3" data-attr="ry" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div id="line_panel">
|
||||
<div class="toolset">
|
||||
<label id="tool_line_x1">x1:
|
||||
<input id="line_x1" class="attr_changer"
|
||||
title="Change line's starting x coordinate" size="3" data-attr="x1"/>
|
||||
<input id="line_x1" class="attr_changer" title="Change line's starting x coordinate" size="3"
|
||||
data-attr="x1" />
|
||||
</label>
|
||||
<label id="tool_line_y1">y1:
|
||||
<input id="line_y1" class="attr_changer"
|
||||
title="Change line's starting y coordinate" size="3" data-attr="y1"/>
|
||||
<input id="line_y1" class="attr_changer" title="Change line's starting y coordinate" size="3"
|
||||
data-attr="y1" />
|
||||
</label>
|
||||
</div>
|
||||
<div class="toolset">
|
||||
<label id="tool_line_x2">x2:
|
||||
<input id="line_x2" class="attr_changer"
|
||||
title="Change line's ending x coordinate" size="3" data-attr="x2"/>
|
||||
<input id="line_x2" class="attr_changer" title="Change line's ending x coordinate" size="3"
|
||||
data-attr="x2" />
|
||||
</label>
|
||||
<label id="tool_line_y2">y2:
|
||||
<input id="line_y2" class="attr_changer"
|
||||
title="Change line's ending y coordinate" size="3" data-attr="y2"/>
|
||||
<input id="line_y2" class="attr_changer" title="Change line's ending y coordinate" size="3"
|
||||
data-attr="y2" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div id="text_panel">
|
||||
<div class="toolset">
|
||||
<div class="tool_button" id="tool_bold"
|
||||
title="Bold Text [B]"><span></span>B</div>
|
||||
<div class="tool_button" id="tool_italic"
|
||||
title="Italic Text [I]"><span></span>i</div>
|
||||
<div class="tool_button" id="tool_bold" title="Bold Text [B]"><span></span>B</div>
|
||||
<div class="tool_button" id="tool_italic" title="Italic Text [I]"><span></span>i</div>
|
||||
</div>
|
||||
<div class="toolset" id="tool_font_family">
|
||||
<label>
|
||||
@@ -371,8 +350,7 @@
|
||||
</label>
|
||||
</div>
|
||||
<div id="use_panel">
|
||||
<div class="push_button" id="tool_unlink_use"
|
||||
title="Break link to reference element (make unique)"></div>
|
||||
<div class="push_button" id="tool_unlink_use" title="Break link to reference element (make unique)"></div>
|
||||
</div>
|
||||
<div id="g_panel">
|
||||
<div class="push_button" id="tool_ungroup" title="Ungroup Elements [G]"></div>
|
||||
@@ -386,20 +364,16 @@
|
||||
</div>
|
||||
<div id="path_node_panel">
|
||||
<div class="tool_sep"></div>
|
||||
<div id="tool_node_link" class="tool_button push_button_pressed"
|
||||
title="Link Control Points"></div>
|
||||
<div id="tool_node_link" class="tool_button push_button_pressed" title="Link Control Points"></div>
|
||||
<div class="tool_sep"></div>
|
||||
<label id="tool_node_x">x:
|
||||
<input id="path_node_x" class="attr_changer"
|
||||
title="Change node's x coordinate" size="3" data-attr="x"/>
|
||||
<input id="path_node_x" class="attr_changer" title="Change node's x coordinate" size="3" data-attr="x" />
|
||||
</label>
|
||||
<label id="tool_node_y">y:
|
||||
<input id="path_node_y" class="attr_changer"
|
||||
title="Change node's y coordinate" size="3" data-attr="y"/>
|
||||
<input id="path_node_y" class="attr_changer" title="Change node's y coordinate" size="3" data-attr="y" />
|
||||
</label>
|
||||
<select id="seg_type" title="Change Segment type">
|
||||
<option id="straight_segments"
|
||||
selected="selected" value="4">Straight</option>
|
||||
<option id="straight_segments" selected="selected" value="4">Straight</option>
|
||||
<option id="curve_segments" value="6">Curve</option>
|
||||
</select>
|
||||
<div class="tool_button" id="tool_node_clone" title="Clone Node"></div>
|
||||
@@ -414,12 +388,10 @@
|
||||
<div class="tool_button" id="tool_select" title="Select Tool"></div>
|
||||
<div class="tool_button" id="tool_fhpath" title="Pencil Tool"></div>
|
||||
<div class="tool_button" id="tool_line" title="Line Tool"></div>
|
||||
<div id="tools_rect_show" class="tool_button flyout_current"
|
||||
title="Square/Rect Tool">
|
||||
<div id="tools_rect_show" class="tool_button flyout_current" title="Square/Rect Tool">
|
||||
<div class="flyout_arrow_horiz"></div>
|
||||
</div>
|
||||
<div id="tools_ellipse_show" class="tool_button flyout_current"
|
||||
title="Ellipse/Circle Tool">
|
||||
<div id="tools_ellipse_show" class="tool_button flyout_current" title="Ellipse/Circle Tool">
|
||||
<div class="flyout_arrow_horiz"></div>
|
||||
</div>
|
||||
<div class="tool_button" id="tool_path" title="Path Tool"></div>
|
||||
@@ -476,9 +448,8 @@
|
||||
<div id="stroke_color" class="color_block" title="Change stroke color"></div>
|
||||
</div>
|
||||
<label class="stroke_label">
|
||||
<input id="stroke_width"
|
||||
title="Change stroke width by 1, shift-click to change by 0.1"
|
||||
size="2" value="5" type="text" data-attr="Stroke Width"/>
|
||||
<input id="stroke_width" title="Change stroke width by 1, shift-click to change by 0.1" size="2"
|
||||
value="5" type="text" data-attr="Stroke Width" />
|
||||
</label>
|
||||
<div id="toggle_stroke_tools" title="Show/hide more stroke tools"></div>
|
||||
<label class="stroke_tool">
|
||||
@@ -512,7 +483,9 @@
|
||||
<li>50%</li>
|
||||
<li>75%</li>
|
||||
<li>100%</li>
|
||||
<li class="special"><div id="opac_slider"></div></li>
|
||||
<li class="special">
|
||||
<div id="opac_slider"></div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -520,8 +493,7 @@
|
||||
</div>
|
||||
<div id="tools_bottom_3">
|
||||
<div id="palette_holder">
|
||||
<div id="palette"
|
||||
title="Click to change fill color, shift-click to change stroke color">
|
||||
<div id="palette" title="Click to change fill color, shift-click to change stroke color">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -593,15 +565,13 @@
|
||||
</label>
|
||||
<label>
|
||||
<select id="resolution">
|
||||
<option id="selectedPredefined"
|
||||
selected="selected">Select predefined:</option>
|
||||
<option id="selectedPredefined" selected="selected">Select predefined:</option>
|
||||
<option>640x480</option>
|
||||
<option>800x600</option>
|
||||
<option>1024x768</option>
|
||||
<option>1280x960</option>
|
||||
<option>1600x1200</option>
|
||||
<option id="fitToContent"
|
||||
value="content">Fit to Content</option>
|
||||
<option id="fitToContent" value="content">Fit to Content</option>
|
||||
</select>
|
||||
</label>
|
||||
</fieldset>
|
||||
@@ -691,8 +661,7 @@
|
||||
<legend id="svginfo_units_rulers">Units & Rulers</legend>
|
||||
<label>
|
||||
<span id="svginfo_rulers_onoff">Show rulers</span>
|
||||
<input id="show_rulers" type="checkbox"
|
||||
value="show_rulers" checked="checked"/>
|
||||
<input id="show_rulers" type="checkbox" value="show_rulers" checked="checked" />
|
||||
</label>
|
||||
<label>
|
||||
<span id="svginfo_unit">Base Unit:</span>
|
||||
@@ -761,4 +730,5 @@
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
44
dist/editor/system/index.js
vendored
44
dist/editor/system/index.js
vendored
File diff suppressed because one or more lines are too long
162
dist/editor/xdomain-index.html
vendored
162
dist/editor/xdomain-index.html
vendored
@@ -1,10 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
|
||||
<!-- No-op until loaded dynamically (could make configurable) -->
|
||||
@@ -12,7 +12,8 @@
|
||||
|
||||
<!-- STYLESHEETS (others loaded dynamically) -->
|
||||
<style id="styleoverrides" media="screen"></style>
|
||||
<link href="svgedit.css" rel="stylesheet" media="all"></link>
|
||||
<link href="svgedit.css" rel="stylesheet" media="all">
|
||||
</link>
|
||||
|
||||
<!-- SCRIPTS -->
|
||||
|
||||
@@ -25,6 +26,7 @@
|
||||
|
||||
<title>SVG-edit</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="svg_container" style="visibility: hidden;">
|
||||
@@ -64,13 +66,11 @@
|
||||
</tr>
|
||||
</table>
|
||||
<span id="selLayerLabel">Move elements to:</span>
|
||||
<select id="selLayerNames" title="Move selected elements to a different layer"
|
||||
disabled="disabled">
|
||||
<select id="selLayerNames" title="Move selected elements to a different layer" disabled="disabled">
|
||||
<option selected="selected" value="layer1">Layer 1</option>
|
||||
</select>
|
||||
</div>
|
||||
<div id="sidepanel_handle"
|
||||
title="Drag left/right to resize side panel [X]">L a y e r s
|
||||
<div id="sidepanel_handle" title="Drag left/right to resize side panel [X]">L a y e r s
|
||||
</div>
|
||||
</div>
|
||||
<div id="main_button">
|
||||
@@ -126,40 +126,29 @@
|
||||
<!-- History buttons -->
|
||||
<div id="history_panel">
|
||||
<div class="tool_sep"></div>
|
||||
<div class="push_button tool_button_disabled" id="tool_undo"
|
||||
title="Undo [Z]"></div>
|
||||
<div class="push_button tool_button_disabled" id="tool_redo"
|
||||
title="Redo [Y]"></div>
|
||||
<div class="push_button tool_button_disabled" id="tool_undo" title="Undo [Z]"></div>
|
||||
<div class="push_button tool_button_disabled" id="tool_redo" title="Redo [Y]"></div>
|
||||
</div>
|
||||
<!-- Buttons when a single element is selected -->
|
||||
<div id="selected_panel">
|
||||
<div class="toolset">
|
||||
<div class="tool_sep"></div>
|
||||
<div class="push_button" id="tool_clone"
|
||||
title="Duplicate Element [D]"></div>
|
||||
<div class="push_button" id="tool_delete"
|
||||
title="Delete Element [Delete/Backspace]"></div>
|
||||
<div class="push_button" id="tool_clone" title="Duplicate Element [D]"></div>
|
||||
<div class="push_button" id="tool_delete" title="Delete Element [Delete/Backspace]"></div>
|
||||
<div class="tool_sep"></div>
|
||||
<div class="push_button" id="tool_move_top"
|
||||
title="Bring to Front [ Ctrl+Shift+] ]"></div>
|
||||
<div class="push_button" id="tool_move_bottom"
|
||||
title="Send to Back [ Ctrl+Shift+[ ]"></div>
|
||||
<div class="push_button" id="tool_topath"
|
||||
title="Convert to Path"></div>
|
||||
<div class="push_button" id="tool_reorient"
|
||||
title="Reorient path"></div>
|
||||
<div class="push_button" id="tool_make_link"
|
||||
title="Make (hyper)link"></div>
|
||||
<div class="push_button" id="tool_move_top" title="Bring to Front [ Ctrl+Shift+] ]"></div>
|
||||
<div class="push_button" id="tool_move_bottom" title="Send to Back [ Ctrl+Shift+[ ]"></div>
|
||||
<div class="push_button" id="tool_topath" title="Convert to Path"></div>
|
||||
<div class="push_button" id="tool_reorient" title="Reorient path"></div>
|
||||
<div class="push_button" id="tool_make_link" title="Make (hyper)link"></div>
|
||||
<div class="tool_sep"></div>
|
||||
<label id="idLabel" title="Identify the element">
|
||||
<span>id:</span>
|
||||
<input id="elem_id" class="attr_changer"
|
||||
data-attr="id" size="10" type="text"/>
|
||||
<input id="elem_id" class="attr_changer" data-attr="id" size="10" type="text" />
|
||||
</label>
|
||||
<label id="classLabel" title="Element class">
|
||||
<span>class:</span>
|
||||
<input id="elem_class" class="attr_changer"
|
||||
data-attr="class" size="10" type="text"/>
|
||||
<input id="elem_class" class="attr_changer" data-attr="class" size="10" type="text" />
|
||||
</label>
|
||||
</div>
|
||||
<label id="tool_angle" title="Change rotation angle" class="toolset">
|
||||
@@ -174,7 +163,9 @@
|
||||
<div id="blur_dropdown" class="dropdown">
|
||||
<button></button>
|
||||
<ul>
|
||||
<li class="special"><div id="blur_slider"></div></li>
|
||||
<li class="special">
|
||||
<div id="blur_slider"></div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -184,22 +175,18 @@
|
||||
</div>
|
||||
<div id="xy_panel" class="toolset">
|
||||
<label>
|
||||
x: <input id="selected_x" class="attr_changer"
|
||||
title="Change X coordinate" size="3" data-attr="x"/>
|
||||
x: <input id="selected_x" class="attr_changer" title="Change X coordinate" size="3" data-attr="x" />
|
||||
</label>
|
||||
<label>
|
||||
y: <input id="selected_y" class="attr_changer"
|
||||
title="Change Y coordinate" size="3" data-attr="y"/>
|
||||
y: <input id="selected_y" class="attr_changer" title="Change Y coordinate" size="3" data-attr="y" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Buttons when multiple elements are selected -->
|
||||
<div id="multiselected_panel">
|
||||
<div class="tool_sep"></div>
|
||||
<div class="push_button" id="tool_clone_multi"
|
||||
title="Clone Elements [C]"></div>
|
||||
<div class="push_button" id="tool_delete_multi"
|
||||
title="Delete Selected Elements [Delete/Backspace]"></div>
|
||||
<div class="push_button" id="tool_clone_multi" title="Clone Elements [C]"></div>
|
||||
<div class="push_button" id="tool_delete_multi" title="Delete Selected Elements [Delete/Backspace]"></div>
|
||||
<div class="tool_sep"></div>
|
||||
<div class="push_button" id="tool_group_elements" title="Group Elements [G]"></div>
|
||||
<div class="push_button" id="tool_make_link_multi" title="Make (hyper)link"></div>
|
||||
@@ -231,8 +218,7 @@
|
||||
<input id="rect_height" class="attr_changer" size="3" data-attr="height" />
|
||||
</label>
|
||||
</div>
|
||||
<label id="cornerRadiusLabel" class="toolset"
|
||||
title="Change Rectangle Corner Radius">
|
||||
<label id="cornerRadiusLabel" class="toolset" title="Change Rectangle Corner Radius">
|
||||
<span class="icon_label"></span>
|
||||
<input id="rect_rx" size="3" value="0" type="text" data-attr="Corner Radius" />
|
||||
</label>
|
||||
@@ -240,12 +226,10 @@
|
||||
<div id="image_panel">
|
||||
<div class="toolset">
|
||||
<label><span id="iwidthLabel" class="icon_label"></span>
|
||||
<input id="image_width" class="attr_changer"
|
||||
title="Change image width" size="3" data-attr="width"/>
|
||||
<input id="image_width" class="attr_changer" title="Change image width" size="3" data-attr="width" />
|
||||
</label>
|
||||
<label><span id="iheightLabel" class="icon_label"></span>
|
||||
<input id="image_height" class="attr_changer"
|
||||
title="Change image height" size="3" data-attr="height"/>
|
||||
<input id="image_height" class="attr_changer" title="Change image height" size="3" data-attr="height" />
|
||||
</label>
|
||||
</div>
|
||||
<div class="toolset">
|
||||
@@ -262,71 +246,66 @@
|
||||
<div id="circle_panel">
|
||||
<div class="toolset">
|
||||
<label id="tool_circle_cx">cx:
|
||||
<input id="circle_cx" class="attr_changer"
|
||||
title="Change circle's cx coordinate" size="3" data-attr="cx"/>
|
||||
<input id="circle_cx" class="attr_changer" title="Change circle's cx coordinate" size="3"
|
||||
data-attr="cx" />
|
||||
</label>
|
||||
<label id="tool_circle_cy">cy:
|
||||
<input id="circle_cy" class="attr_changer"
|
||||
title="Change circle's cy coordinate" size="3" data-attr="cy"/>
|
||||
<input id="circle_cy" class="attr_changer" title="Change circle's cy coordinate" size="3"
|
||||
data-attr="cy" />
|
||||
</label>
|
||||
</div>
|
||||
<div class="toolset">
|
||||
<label id="tool_circle_r">r:
|
||||
<input id="circle_r" class="attr_changer"
|
||||
title="Change circle's radius" size="3" data-attr="r"/>
|
||||
<input id="circle_r" class="attr_changer" title="Change circle's radius" size="3" data-attr="r" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ellipse_panel">
|
||||
<div class="toolset">
|
||||
<label id="tool_ellipse_cx">cx:
|
||||
<input id="ellipse_cx" class="attr_changer"
|
||||
title="Change ellipse's cx coordinate" size="3" data-attr="cx"/>
|
||||
<input id="ellipse_cx" class="attr_changer" title="Change ellipse's cx coordinate" size="3"
|
||||
data-attr="cx" />
|
||||
</label>
|
||||
<label id="tool_ellipse_cy">cy:
|
||||
<input id="ellipse_cy" class="attr_changer"
|
||||
title="Change ellipse's cy coordinate" size="3" data-attr="cy"/>
|
||||
<input id="ellipse_cy" class="attr_changer" title="Change ellipse's cy coordinate" size="3"
|
||||
data-attr="cy" />
|
||||
</label>
|
||||
</div>
|
||||
<div class="toolset">
|
||||
<label id="tool_ellipse_rx">rx:
|
||||
<input id="ellipse_rx" class="attr_changer"
|
||||
title="Change ellipse's x radius" size="3" data-attr="rx"/>
|
||||
<input id="ellipse_rx" class="attr_changer" title="Change ellipse's x radius" size="3" data-attr="rx" />
|
||||
</label>
|
||||
<label id="tool_ellipse_ry">ry:
|
||||
<input id="ellipse_ry" class="attr_changer"
|
||||
title="Change ellipse's y radius" size="3" data-attr="ry"/>
|
||||
<input id="ellipse_ry" class="attr_changer" title="Change ellipse's y radius" size="3" data-attr="ry" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div id="line_panel">
|
||||
<div class="toolset">
|
||||
<label id="tool_line_x1">x1:
|
||||
<input id="line_x1" class="attr_changer"
|
||||
title="Change line's starting x coordinate" size="3" data-attr="x1"/>
|
||||
<input id="line_x1" class="attr_changer" title="Change line's starting x coordinate" size="3"
|
||||
data-attr="x1" />
|
||||
</label>
|
||||
<label id="tool_line_y1">y1:
|
||||
<input id="line_y1" class="attr_changer"
|
||||
title="Change line's starting y coordinate" size="3" data-attr="y1"/>
|
||||
<input id="line_y1" class="attr_changer" title="Change line's starting y coordinate" size="3"
|
||||
data-attr="y1" />
|
||||
</label>
|
||||
</div>
|
||||
<div class="toolset">
|
||||
<label id="tool_line_x2">x2:
|
||||
<input id="line_x2" class="attr_changer"
|
||||
title="Change line's ending x coordinate" size="3" data-attr="x2"/>
|
||||
<input id="line_x2" class="attr_changer" title="Change line's ending x coordinate" size="3"
|
||||
data-attr="x2" />
|
||||
</label>
|
||||
<label id="tool_line_y2">y2:
|
||||
<input id="line_y2" class="attr_changer"
|
||||
title="Change line's ending y coordinate" size="3" data-attr="y2"/>
|
||||
<input id="line_y2" class="attr_changer" title="Change line's ending y coordinate" size="3"
|
||||
data-attr="y2" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div id="text_panel">
|
||||
<div class="toolset">
|
||||
<div class="tool_button" id="tool_bold"
|
||||
title="Bold Text [B]"><span></span>B</div>
|
||||
<div class="tool_button" id="tool_italic"
|
||||
title="Italic Text [I]"><span></span>i</div>
|
||||
<div class="tool_button" id="tool_bold" title="Bold Text [B]"><span></span>B</div>
|
||||
<div class="tool_button" id="tool_italic" title="Italic Text [I]"><span></span>i</div>
|
||||
</div>
|
||||
<div class="toolset" id="tool_font_family">
|
||||
<label>
|
||||
@@ -364,8 +343,7 @@
|
||||
</label>
|
||||
</div>
|
||||
<div id="use_panel">
|
||||
<div class="push_button" id="tool_unlink_use"
|
||||
title="Break link to reference element (make unique)"></div>
|
||||
<div class="push_button" id="tool_unlink_use" title="Break link to reference element (make unique)"></div>
|
||||
</div>
|
||||
<div id="g_panel">
|
||||
<div class="push_button" id="tool_ungroup" title="Ungroup Elements [G]"></div>
|
||||
@@ -379,20 +357,16 @@
|
||||
</div>
|
||||
<div id="path_node_panel">
|
||||
<div class="tool_sep"></div>
|
||||
<div id="tool_node_link" class="tool_button push_button_pressed"
|
||||
title="Link Control Points"></div>
|
||||
<div id="tool_node_link" class="tool_button push_button_pressed" title="Link Control Points"></div>
|
||||
<div class="tool_sep"></div>
|
||||
<label id="tool_node_x">x:
|
||||
<input id="path_node_x" class="attr_changer"
|
||||
title="Change node's x coordinate" size="3" data-attr="x"/>
|
||||
<input id="path_node_x" class="attr_changer" title="Change node's x coordinate" size="3" data-attr="x" />
|
||||
</label>
|
||||
<label id="tool_node_y">y:
|
||||
<input id="path_node_y" class="attr_changer"
|
||||
title="Change node's y coordinate" size="3" data-attr="y"/>
|
||||
<input id="path_node_y" class="attr_changer" title="Change node's y coordinate" size="3" data-attr="y" />
|
||||
</label>
|
||||
<select id="seg_type" title="Change Segment type">
|
||||
<option id="straight_segments"
|
||||
selected="selected" value="4">Straight</option>
|
||||
<option id="straight_segments" selected="selected" value="4">Straight</option>
|
||||
<option id="curve_segments" value="6">Curve</option>
|
||||
</select>
|
||||
<div class="tool_button" id="tool_node_clone" title="Clone Node"></div>
|
||||
@@ -407,12 +381,10 @@
|
||||
<div class="tool_button" id="tool_select" title="Select Tool"></div>
|
||||
<div class="tool_button" id="tool_fhpath" title="Pencil Tool"></div>
|
||||
<div class="tool_button" id="tool_line" title="Line Tool"></div>
|
||||
<div id="tools_rect_show" class="tool_button flyout_current"
|
||||
title="Square/Rect Tool">
|
||||
<div id="tools_rect_show" class="tool_button flyout_current" title="Square/Rect Tool">
|
||||
<div class="flyout_arrow_horiz"></div>
|
||||
</div>
|
||||
<div id="tools_ellipse_show" class="tool_button flyout_current"
|
||||
title="Ellipse/Circle Tool">
|
||||
<div id="tools_ellipse_show" class="tool_button flyout_current" title="Ellipse/Circle Tool">
|
||||
<div class="flyout_arrow_horiz"></div>
|
||||
</div>
|
||||
<div class="tool_button" id="tool_path" title="Path Tool"></div>
|
||||
@@ -469,9 +441,8 @@
|
||||
<div id="stroke_color" class="color_block" title="Change stroke color"></div>
|
||||
</div>
|
||||
<label class="stroke_label">
|
||||
<input id="stroke_width"
|
||||
title="Change stroke width by 1, shift-click to change by 0.1"
|
||||
size="2" value="5" type="text" data-attr="Stroke Width"/>
|
||||
<input id="stroke_width" title="Change stroke width by 1, shift-click to change by 0.1" size="2"
|
||||
value="5" type="text" data-attr="Stroke Width" />
|
||||
</label>
|
||||
<div id="toggle_stroke_tools" title="Show/hide more stroke tools"></div>
|
||||
<label class="stroke_tool">
|
||||
@@ -505,7 +476,9 @@
|
||||
<li>50%</li>
|
||||
<li>75%</li>
|
||||
<li>100%</li>
|
||||
<li class="special"><div id="opac_slider"></div></li>
|
||||
<li class="special">
|
||||
<div id="opac_slider"></div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -513,8 +486,7 @@
|
||||
</div>
|
||||
<div id="tools_bottom_3">
|
||||
<div id="palette_holder">
|
||||
<div id="palette"
|
||||
title="Click to change fill color, shift-click to change stroke color">
|
||||
<div id="palette" title="Click to change fill color, shift-click to change stroke color">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -586,15 +558,13 @@
|
||||
</label>
|
||||
<label>
|
||||
<select id="resolution">
|
||||
<option id="selectedPredefined"
|
||||
selected="selected">Select predefined:</option>
|
||||
<option id="selectedPredefined" selected="selected">Select predefined:</option>
|
||||
<option>640x480</option>
|
||||
<option>800x600</option>
|
||||
<option>1024x768</option>
|
||||
<option>1280x960</option>
|
||||
<option>1600x1200</option>
|
||||
<option id="fitToContent"
|
||||
value="content">Fit to Content</option>
|
||||
<option id="fitToContent" value="content">Fit to Content</option>
|
||||
</select>
|
||||
</label>
|
||||
</fieldset>
|
||||
@@ -684,8 +654,7 @@
|
||||
<legend id="svginfo_units_rulers">Units & Rulers</legend>
|
||||
<label>
|
||||
<span id="svginfo_rulers_onoff">Show rulers</span>
|
||||
<input id="show_rulers" type="checkbox"
|
||||
value="show_rulers" checked="checked"/>
|
||||
<input id="show_rulers" type="checkbox" value="show_rulers" checked="checked" />
|
||||
</label>
|
||||
<label>
|
||||
<span id="svginfo_unit">Base Unit:</span>
|
||||
@@ -754,4 +723,5 @@
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
42
dist/editor/xdomain-index.js
vendored
42
dist/editor/xdomain-index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/editor/xdomain-index.js.map
vendored
2
dist/editor/xdomain-index.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user