summaryrefslogtreecommitdiff
path: root/templates/jump_to_stroke.xml
blob: ac932dd4dfd110507c44d8979b292c647f09dfdf (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
    <name>Jump Stitch to Stroke</name>
    <id>org.{{ id_inkstitch }}.jump_to_stroke</id>
    <param name="extension" type="string" gui-hidden="true">jump_to_stroke</param>
    <effect>
        <object-type>all</object-type>
        <icon>{{ icon_path }}inx/jump_to_stroke.svg</icon>
        <menu-tip>Converts a jump stitch between selected elements into a running stitch</menu-tip>
        <effects-menu>
            <submenu name="{{ menu_inkstitch }}" translatable="no">
                <submenu name="Tools: Stroke" />
            </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>
        <param name="connect" type="optiongroup" appearance="combo" gui-text="Connect">
            <option value="all">all</option>
            <option value="layer">in same layer</option>
            <option value="group">in same group</option>
        </param>
        <label>Do not connect after</label>
        <param name="exclude-trim" type="bool" indent="1" gui-text="Trim">true</param>
        <param name="exclude-stop" type="bool" indent="1" gui-text="Stop">true</param>
        <param name="exclude-force-lock-stitch" indent="1" type="bool" gui-text="Force lock stitch">true</param>
      </page>
      <page name="output-settings" gui-text="Output settings">
        <param name="merge" type="bool" gui-text="Merge consecutive strokes of same type">false</param>
        <param name="merge_subpaths" type="bool" gui-text="Merge subpaths of stroke elements">false</param>
        <spacer />
        <separator />
        <spacer />
        <label>These settings only apply for unmerged connectors</label>
        <param name="stitch-length" type="float" indent="1" gui-text="Running stitch length (mm)">2.5</param>
        <param name="tolerance" type="float" indent="1" gui-text="Running stitch tolerance (mm)">2.0</param>
      </page>
      <page name="info" gui-text="Help">
        <label appearance="header">This extension converts jump stitches to running stitches.</label>
        <label>Get more information on our website</label>
        <label appearance="url">https://inkstitch.org/docs/stroke-tools/#jump-to-stroke</label>
      </page>
    </param>
    <script>
        {{ command_tag | safe }}
    </script>
</inkscape-extension>