diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:50:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:50:49 +0000 |
commit | c853ffb5b2f75f5a889ed2e3ef89b818a736e87a (patch) | |
tree | 7d13a0883bb7936b84d6ecdd7bc332b41ed04bee /share/extensions/voronoi_diagram.inx | |
parent | Initial commit. (diff) | |
download | inkscape-upstream.tar.xz inkscape-upstream.zip |
Adding upstream version 1.3+ds.upstream/1.3+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/extensions/voronoi_diagram.inx')
-rw-r--r-- | share/extensions/voronoi_diagram.inx | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/share/extensions/voronoi_diagram.inx b/share/extensions/voronoi_diagram.inx new file mode 100644 index 0000000..1be189c --- /dev/null +++ b/share/extensions/voronoi_diagram.inx @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Voronoi Diagram</name> + <id>effect.voronoi</id> + <dependency type="file" location="inx">voronoi.py</dependency> + <param name="tab" type="notebook"> + <page name="options" gui-text="Options"> + <param name="diagram-type" type="optiongroup" appearance="combo" gui-text="Type of diagram:"> + <option value="Voronoi">Voronoi Diagram</option> + <option value="Delaunay">Delaunay Triangulation</option> + <option value="Both">Voronoi and Delaunay</option> + </param> + <label appearance="header">Options for Voronoi diagram</label> + <param name="clip-box" type="optiongroup" appearance="combo" gui-text="Bounding box of the diagram:"> + <option value="Page">Page</option> + <option value="Automatic from seeds">Automatic from selected objects</option> + </param> + <param name="show-clip-box" type="bool" gui-text="Show the bounding box">false</param> + <label appearance="header">Options for Delaunay Triangulation</label> + <param name="delaunay-fill-options" gui-text="Triangles color" type="optiongroup" appearance="radio"> + <option value="delaunay-no-fill">Default (Stroke black and no fill)</option> + <option value="delaunay-fill">Triangles with item color</option> + <option value="delaunay-fill-random">Triangles with item color (random on apply)</option> + </param> + </page> + <page name="help" gui-text="Help"> + <label>Select a set of objects. Their centroids will be used as the sites of the Voronoi diagram. Text objects are not handled.</label> + </page> + </param> + <effect> + <object-type>all</object-type> + <effects-menu> + <submenu name="Generate from Path"/> + </effects-menu> + </effect> + <script> + <command location="inx" interpreter="python">voronoi_diagram.py</command> + </script> +</inkscape-extension> |