-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvg-edit.xml
executable file
·90 lines (79 loc) · 3.25 KB
/
svg-edit.xml
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
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="SVG Editor" height="300">
<Require feature="rpc" />
</ModulePrefs>
<Content type="html">
<![CDATA[
<script type="text/javascript" src="http://wave-api.appspot.com/public/wave.js"></script>
<link rel="stylesheet" href="svg-edit/farbtastic.css" type="text/css"/>
<link rel="stylesheet" href="svg-edit/svg-editor.css" type="text/css"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<script type="text/javascript" src="svg-edit/jquery.rightClick.js"></script>
<script type="text/javascript" src="svg-edit/farbtastic.js"></script>
<script type="text/javascript" src="svg-edit/svg-editor.js"></script>
<div id="color_pick">
<div id="color_pick_wheel"></div>
<input type="text" id="color_pick_text" />
<input type="button" id="color_pick_ok" value="OK" />
</div>
<div id="svg_editor">
<div id="tools">
<div>
<!--<img class="tool_button" id="tool_select" src="svg-edit/images/select.png" />-->
<img class="tool_button" id="tool_path" src="svg-edit/images/path.png" />
<img class="tool_button" id="tool_line" src="svg-edit/images/line.png" />
<!-- <img class="tool_button" id="tool_square" src="svg-edit/images/rect.png" /> -->
<img class="tool_button" id="tool_rect" src="svg-edit/images/rect.png" /><br/>
<!-- <img class="tool_button" id="tool_fhrect" src="svg-edit/images/rect.png" /><br/> -->
<!-- <img class="tool_button" id="tool_circle" src="svg-edit/images/circle.png" /> -->
<img class="tool_button" id="tool_ellipse" src="svg-edit/images/circle.png" />
<!-- <img class="tool_button" id="tool_fhellipse" src="svg-edit/images/circle.png" /><br/> -->
<img class="tool_button" id="tool_delete" src="svg-edit/images/delete.png" />
<img class="tool_button" id="tool_clear" src="svg-edit/images/clear.png" />
<!--<img class="tool_button" id="tool_submit" src="svg-edit/images/submit.png" /> -->
</div>
<div>Fill
<div id="fill_color"></div>
</div>
<div>Stroke
<div id="stroke_color"></div>
<select id="stroke_width">
<option selected="selected" value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="5">5</option>
<option value="7">7</option>
</select>
<select id="stroke_style">
<option selected="selected" value="none">-----</option>
<option value="2,2">.....</option>
<option value="5,5">- - -</option>
<option value="5,2,2,2">- . -</option>
<option value="5,2,2,2,2,2">- .. -</option>
</select>
</div>
</div>
<div id="workarea">
<div id="canvas">
<object class="canvas" data="svg-edit/svgcanvas.svg" type="image/svg+xml">
<embed class="canvas" src="svg-edit/svgcanvas.svg" type="image/svg+xml" />
</object>
</div>
</div>
<script type="text/javascript">
function stateUpdated() {
//alert('stateUploaded');
SvgCanvas.updateState(wave.getState());
}
function main() {
svg_edit_setup();
// if (wave && wave.isInWaveContainer()) {
wave.setStateCallback(stateUpdated);
// }
}
gadgets.util.registerOnLoadHandler(main);
</script>
]]>
</Content>
</Module>