1 <?xml version="1.0" encoding="UTF-8"?>
2 <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
3 <_name>Transmit Attributes</_name>
4 <id>org.inkscape.web.transmit-att</id>
5 <dependency type="executable" location="extensions">web-transmit-att.py</dependency>
6 <dependency type="executable" location="extensions">inkex.py</dependency>
7 <_param name="intro" type="description">This effect adds a feature visible (or usable) only on a SVG enabled web browser (like Firefox).</_param>
8 <_param name="sep1" type="description">••••••••••••••••••••••••••••••••••••••••••••••••</_param>
9 <_param name="help" type="description">This effect transmits one or more attributes from the first selected element to the second when a event occurs.</_param>
10 <_param name="sep2" type="description">••••••••••••••••••••••••••••••••••••••••••••••••</_param>
11 <_param name="help" type="description">If you want to transmit more than one attribute, you should separate this with a space, and only with a space.</_param>
12 <param name="att" type="string" _gui-text="Attribute to transmit">fill</param>
13 <param name="when" type="enum" _gui-text="When to transmit">
14 <_item value="onclick">on click</_item>
15 <_item value="onfocusin">on focus</_item>
16 <_item value="onfocusout">on blur</_item>
17 <_item value="onactivate">on activate</_item>
18 <_item value="onmousedown">on mouse down</_item>
19 <_item value="onmouseup">on mouse up</_item>
20 <_item value="onmouseover">on mouse over</_item>
21 <_item value="onmousemove">on mouse move</_item>
22 <_item value="onmouseout">on mouse out</_item>
23 <_item value="onload">on element loaded</_item>
24 </param>
25 <param name="compatibility" type="enum" _gui-text="Compatibility with previews code to this event">
26 <_item value="append">Run it after</_item>
27 <_item value="prepend">Run it before</_item>
28 <_item value="replace">Replace</_item>
29 </param>
30 <_param name="help" type="description">The next parameter is useful when you select more than two elements</_param>
31 <param name="from-and-to" type="enum" _gui-text="Source and destination of transmitting">
32 <_item value="g-to-one">All selected ones transmits to the last one</_item>
33 <_item value="one-to-g">The first selected transmits to all others</_item>
34 </param>
35 <effect>
36 <object-type>all</object-type>
37 <effects-menu>
38 <submenu _name="Web">
39 <submenu name="JavaScript"/>
40 </submenu>
41 </effects-menu>
42 </effect>
43 <script>
44 <command reldir="extensions" interpreter="python">web-transmit-att.py</command>
45 </script>
46 </inkscape-extension>