summaryrefslogtreecommitdiff
path: root/templates/outline.xml
blob: b8e999dc96eefb0df56d3aaa9230ae94b99ba3a9 (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
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
    <name>Outline</name>
    <id>org.{{ id_inkstitch }}.outline</id>
    <param name="extension" type="string" gui-hidden="true">outline</param>

    <param name="notebook" type="notebook">
        <page name="options" gui-text="Options">
            <param name="keep-original" type="boolean" gui-text="Keep original element(s)">false</param>
            <spacer />
            <separator />
            <spacer />
            <param name="threshold" type="float" appearance="full" precision="2" min="0" max="100"
                   gui-text="Threshold (mm²)" gui-description="Removes smaller shape areas than that">10</param>
            <param name="buffer" type="float" appearance="full" precision="3" min="0.001" max="1"
                   gui-text="Buffer (mm)" gui-description="Enlarge strokes by this amount">0.001</param>
            <param name="smoothness" type="float" appearance="full" precision="2" min="0.01" max="5"
                   gui-text="Smoothness (mm)" gui-description="Smooth path by this amount">0.3</param>
            <spacer />
            <separator />
            <spacer />
            <param name="inset" type="float" appearance="full" precision="3" min="0" max="5"
                   gui-text="Inset (mm)" gui-description="Counteract the buffer effect">0</param>
        </page>
        <page name="info" gui-text="Help">
            <label>This extension helps reconstruct an original object from a stitch file.</label>
            <spacer />
            <label>More information on our website</label>
            <label appearance="url">https://inkstitch.org/docs/stroke-tools/#outline</label>
        </page>
    </param>

    <effect>
        <object-type>all</object-type>
        <icon>{{ icon_path }}inx/outline.svg</icon>
        <menu-tip>Generates an outline around stitch paths</menu-tip>
        <effects-menu>
            <submenu name="{{ menu_inkstitch }}" translatable="no">
                <submenu name="Tools: Stroke" />
            </submenu>
        </effects-menu>
    </effect>

    <script>
        {{ command_tag | safe }}
    </script>
</inkscape-extension>