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

    <param name="notebook" type="notebook">
        <page name="options" gui-text="Options">
            <param name="rotate" type="float" precision="2" min="-180" max="180" appearance="full"
                gui-text="Rotate">0</param>
            <param name="flip-horizontally" type="bool" gui-text="Flip horizontally">false</param>
            <param name="flip-vertically" type="bool" gui-text="Flip vertically">false</param>
        </page>
        <page name="info" gui-text="Help">
            <label>
                This extension applies transformations while also adjusting the fill angles
            </label>
            <spacer />
            <label>More information on our website</label>
            <label appearance="url">https://inkstitch.org/docs/edit/#transform</label>
        </page>
    </param>

    <effect>
        <object-type>all</object-type>
        <icon>{{ icon_path }}inx/transform.svg</icon>
        <menu-tip>Rotate or flip embroidery elements while also transforming stitch angles.</menu-tip>
        <effects-menu>
            <submenu name="{{ menu_inkstitch }}" translatable="no">
                <submenu name="Edit" />
            </submenu>
        </effects-menu>
    </effect>

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