measure.inx revision 20d0349a1f3c4b7ec90f29c36e56481e2f8c0147
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan<?xml version="1.0" encoding="UTF-8"?>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <_name>Measure Path</_name>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <id>com.njhurst.filter.measure_length</id>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <dependency type="executable" location="extensions">measure.py</dependency>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <dependency type="executable" location="extensions">inkex.py</dependency>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <param name="tab" type="notebook">
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <page name="measure" _gui-text="Measure">
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <param name="type" type="enum" _gui-text="Measurement Type: ">
4f85511823f8f0866f80af7f3d92e9d077d3cc0aJazzyNico <_item value="length">Length</_item>
241ef7771aef53c1e27e4c8c1a721dec6d206509Kris <_item msgctxt="measure extension" value="area">Area</_item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner </param>
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <param name="format" type="enum" _gui-text="Display Format: ">
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <_item value="textonpath">Text On Path</_item>
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <_item value="0">Angle 0</_item>
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <_item value="30">Angle 30</_item>
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <_item value="45">Angle 45</_item>
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <_item value="60">Angle 60</_item>
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <_item value="90">Angle 90</_item>
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <_item value="120">Angle 120</_item>
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <_item value="135">Angle 135</_item>
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <_item value="150">Angle 150</_item>
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <_item value="180">Angle 180</_item>
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <_item value="210">Angle 210</_item>
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <_item value="225">Angle 225</_item>
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <_item value="240">Angle 240</_item>
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <_item value="270">Angle 270</_item>
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <_item value="300">Angle 300</_item>
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <_item value="315">Angle 315</_item>
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <_item value="330">Angle 330</_item>
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner </param>
6b464dfa85f56bbe7e0ff053bcb709fe346a5e2cJazzyNico <param name="fontsize" type="int" min="1" max="1000" _gui-text="Font size (px):">12</param>
6b464dfa85f56bbe7e0ff053bcb709fe346a5e2cJazzyNico <param name="offset" type="float" min="-10000" max="10000" _gui-text="Offset (px):">-6</param>
6b464dfa85f56bbe7e0ff053bcb709fe346a5e2cJazzyNico <param name="precision" type="int" min="0" max="25" _gui-text="Precision:">2</param>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <param name="scale" type="float" min="1e-8" max="1e10" _gui-text="Scale Factor (Drawing:Real Length) = 1:">1</param>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <!--<param name="orient" type="boolean" _gui-text="Keep text orientation upright">true</param>-->
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <!--<param name="unit" type="string" _gui-text="Unit {km|m|cm|mm|in|px|pt}">mm</param>-->
6b464dfa85f56bbe7e0ff053bcb709fe346a5e2cJazzyNico <param name="unit" type="enum" _gui-text="Length Unit:">
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="px">px</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="pt">pt</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="in">in</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="ft">ft</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="yd">yd</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="mm">mm</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="cm">cm</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="m">m</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="km">km</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner </param>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner </page>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <page name="desc" _gui-text="Help">
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner <_param name="measurehelp" type="description" xml:space="preserve">This effect measures the length, or area, of the selected paths and adds it as a text object with the selected units.
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner
20d0349a1f3c4b7ec90f29c36e56481e2f8c0147apenner * Display format can be either Text-On-Path, or stand-alone text at a specified angle.
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner * The number of significant digits can be controlled by the Precision field.
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner * The Offset field controls the distance from the text to the path.
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner * 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.
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner * When calculating area, the result should be precise for polygons and Bezier curves. If a circle is used, the area may be too high by as much as 0.03%.</_param>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner </page>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner </param>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <effect>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <object-type>path</object-type>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <effects-menu>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <submenu _name="Visualize Path"/>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner </effects-menu>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner </effect>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <script>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <command reldir="extensions" interpreter="python">measure.py</command>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner </script>
f3d3661f257ff23dc3b673e926afe4dc6547d59anjh</inkscape-extension>