summaryrefslogtreecommitdiffstats
path: root/share/extensions/pixelsnap.inx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--share/extensions/pixelsnap.inx24
1 files changed, 24 insertions, 0 deletions
diff --git a/share/extensions/pixelsnap.inx b/share/extensions/pixelsnap.inx
new file mode 100644
index 0000000..a9c3203
--- /dev/null
+++ b/share/extensions/pixelsnap.inx
@@ -0,0 +1,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>