summaryrefslogtreecommitdiff
path: root/templates/jump_to_trim.xml
blob: a23131b30f2b26a5233ae48aa221308fc8235492 (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
    <name>Jump Stitch to Trim Command</name>
    <id>org.{{ id_inkstitch }}.jump_to_trim</id>
    <param name="extension" type="string" gui-hidden="true">jump_to_trim</param>
    <effect>
        <object-type>all</object-type>
        <icon>{{ icon_path }}inx/jump_to_trim.svg</icon>
        <menu-tip>Sets a trim command on elements which are followed by a jump stitch</menu-tip>
        <effects-menu>
            <submenu name="{{ menu_inkstitch }}" translatable="no">
                <submenu name="Commands" />
            </submenu>
        </effects-menu>
    </effect>
    <param name="tab" type="notebook">
      <page name="options" gui-text="Options">
        <param name="minimum-jump-length" type="float" precision="2" min="0" max="100"
               gui-text="Convert jumps not shorter than (mm)">3.0</param>
        <param name="maximum-jump-length" type="float" precision="2" min="0" max="10000"
               gui-text="Convert jumps not longer than (mm)">0</param>
        <spacer />
        <separator />
        <spacer />
        <param name="use-command-symbol" type="boolean" indent="1" gui-text="Use command symbol">false</param>
      </page>
      <page name="info" gui-text="Help">
        <label appearance="header">This extension inserts trim commands to avoid jump stitches.</label>
        <label>Get more information on our website</label>
        <label appearance="url">https://inkstitch.org/docs/commands/#jump-to-trim</label>
      </page>
    </param>
    <script>
        {{ command_tag | safe }}
    </script>
</inkscape-extension>