File: pixelsnap.inx

package info (click to toggle)
inkscape 1.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 320,944 kB
  • sloc: cpp: 532,425; ansic: 59,393; python: 51,398; javascript: 3,864; xml: 2,708; sh: 2,426; perl: 614; makefile: 431
file content (24 lines) | stat: -rw-r--r-- 1,307 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
    <name>PixelSnap</name>
    <id>org.inkscape.filter.pixel_snap</id>
    <label>Snap selected paths, images, and rectangles to pixel boundaries. Strokes with a non-zero odd width are snapped to midpoints, so they align correctly</label>

    <param name="snap_ancestors" type="bool" gui-text="Snap unselected ancestors' translations (groups, layers, document height) first">true</param>
    <param name="ancestor_offset" type="bool" gui-text="Calculate offset relative to unselected ancestors' transforms (includes document height offset)">true</param>

    <param name="max_gradient" type="float" gui-text="Maximum slope to consider straight (%)" min="-10000.0" max="10000.0">0.5</param>
    <param name="snap_to" type="optiongroup" appearance="radio" gui-text="Origin of the coordinate system:">
      <option value="tl">Top left corner</option>
      <option value="bl">Bottom left corner</option>
    </param>
    <effect>
      <object-type>all</object-type>
      <effects-menu>
        <submenu name="Modify Path"/>
      </effects-menu>
    </effect>
    <script>
        <command location="inx" interpreter="python">pixelsnap.py</command>
    </script>
</inkscape-extension>