<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
    <name>Fill to Stroke</name>
    <id>org.{{ id_inkstitch }}.fill_to_stroke</id>
    <param name="extension" type="string" gui-hidden="true">fill_to_stroke</param>
    <effect>
        <object-type>all</object-type>
        <effects-menu>
            <submenu name="{{ menu_inkstitch }}" translatable="no">
                <submenu name="Tools: Stroke" />
            </submenu>
        </effects-menu>
    </effect>
    <param name="options" type="notebook">
      <page name="options" gui-text="Options">
          <param name="keep_original" type="boolean" gui-text="Keep original">false</param>
          <param name="threshold_mm" type="float" precision="2" min="0" max="500"
                 gui-text="Threshold for dead ends (mm)"
                 gui-description="Deletes small lines. A good value in most cases is the approximate line width of the original shape">10</param>
          <param name="line_width_mm" type="float" gui-text="Line width (mm)" min="0" max="15" precision="2">0.26</param>
          <param name="close_gaps" type="boolean" gui-text="Cut lines: close gaps">false</param>
      </page>
      <page name="info" gui-text="Help">
          <label appearance="header">Fill to Stroke</label>
          <label>Fill outlines never look nice when embroidered - but it is a lot of work to convert a fill outline to a satin column or a running stitch.
                 This tool helps you with this operation.</label>
          <label>It is comparable to the Inkscape functionality of Path > Trace bitmap > Centerline tracing (- and has similar issues.)
                 But instead of converting raster graphics, it will find the centerline of vector based objects with a fill.</label>
          <spacer />
          <label>You can improve the result by defining cut lines.</label>
          <spacer />
          <label>Get more information on our website</label>
          <label appearance="url">https://inkstitch.org/docs/stroke-tools/#fill-to-stroke</label>
      </page>
    </param>
    <script>
        {{ command_tag | safe }}
    </script>
</inkscape-extension>
