Code

measure update patch
[inkscape.git] / share / extensions / measure.inx
1 <inkscape-extension>
2     <_name>Measure Path</_name>
3     <id>com.njhurst.filter.measure_length</id>
4         <dependency type="executable" location="extensions">measure.py</dependency>
5         <dependency type="executable" location="extensions">inkex.py</dependency>
6         <param name="tab" type="notebook">
7                 <page name="measure" _gui-text="Measure">
8       <param name="fontsize" type="int" min="1" max="1000" _gui-text="Font size [px]">12</param>
9       <param name="offset" type="float" min="-10000" max="10000" _gui-text="Offset [px]">-6</param>
10       <param name="precision" type="int" min="0" max="25" _gui-text="Precision">2</param>
11       <param name="scale" type="float" min="1e-8" max="1e10" _gui-text="Scale Factor (Drawing:Real Length) = 1:">1</param>
12     <!--        <param name="orient" type="boolean" _gui-text="Keep text orientation upright">true</param>-->
13       <!--<param name="unit" type="string" _gui-text="Unit {km|m|cm|mm|in|px|pt}">mm</param>-->
14       <param name="unit" type="enum" _gui-text="Length Unit: ">
15         <item>px</item>
16         <item>pt</item>
17         <item>in</item>
18         <item>mm</item>
19         <item>cm</item>
20         <item>m</item>
21         <item>km</item>
22       </param>
23                 </page>
24                 <page name="desc" _gui-text="Help">
25                         <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>
26                 </page>
27 </param>
28     <effect>
29                 <object-type>path</object-type>
30                 <effects-menu>
31                     <submenu _name="Visualize Path"/>
32                 </effects-menu>
33     </effect>
34     <script>
35         <command reldir="extensions" interpreter="python">measure.py</command>
36     </script>
37 </inkscape-extension>