Code

8f2f411593d1255950628fc6276b97b7aa79706d
[inkscape.git] / share / extensions / measure.inx
1 <?xml version="1.0" encoding="UTF-8"?>
2 <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
3   <_name>Measure Path</_name>
4   <id>com.njhurst.filter.measure_length</id>
5   <dependency type="executable" location="extensions">measure.py</dependency>
6   <dependency type="executable" location="extensions">inkex.py</dependency>
7   <param name="tab" type="notebook">
8     <page name="measure" _gui-text="Measure">
9       <param name="fontsize" type="int" min="1" max="1000" _gui-text="Font size [px]">12</param>
10       <param name="offset" type="float" min="-10000" max="10000" _gui-text="Offset [px]">-6</param>
11       <param name="precision" type="int" min="0" max="25" _gui-text="Precision">2</param>
12       <param name="scale" type="float" min="1e-8" max="1e10" _gui-text="Scale Factor (Drawing:Real Length) = 1:">1</param>
13       <!--<param name="orient" type="boolean" _gui-text="Keep text orientation upright">true</param>-->
14       <!--<param name="unit" type="string" _gui-text="Unit {km|m|cm|mm|in|px|pt}">mm</param>-->
15       <param name="unit" type="enum" _gui-text="Length Unit: ">
16         <item value="px">px</item>
17         <item value="pt">pt</item>
18         <item value="in">in</item>
19         <item value="ft">ft</item>
20         <item value="yd">yd</item>
21         <item value="mm">mm</item>
22         <item value="cm">cm</item>
23         <item value="m">m</item>
24         <item value="km">km</item>
25       </param>
26     </page>
27     <page name="desc" _gui-text="Help">
28       <_param name="measurehelp" type="description">This effect measures the length of the selected path and adds it as a text-on-path object with the selected unit. The number of significant digits can be controlled by the Precision field. The Offset field controls the distance from the text to the path. The Scale factor can be used to make measurements in scaled drawings. For example, if 1 cm in the drawing equals 2.5 m in the real world, Scale must be set to 250.</_param>
29     </page>
30   </param>
31   <effect>
32     <object-type>path</object-type>
33     <effects-menu>
34       <submenu _name="Visualize Path"/>
35     </effects-menu>
36   </effect>
37   <script>
38     <command reldir="extensions" interpreter="python">measure.py</command>
39   </script>
40 </inkscape-extension>