diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:29:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:29:01 +0000 |
commit | 35a96bde514a8897f6f0fcc41c5833bf63df2e2a (patch) | |
tree | 657d15a03cc46bd099fc2c6546a7a4ad43815d9f /share/extensions/triangle.inx | |
parent | Initial commit. (diff) | |
download | inkscape-35a96bde514a8897f6f0fcc41c5833bf63df2e2a.tar.xz inkscape-35a96bde514a8897f6f0fcc41c5833bf63df2e2a.zip |
Adding upstream version 1.0.2.upstream/1.0.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/extensions/triangle.inx')
-rw-r--r-- | share/extensions/triangle.inx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/share/extensions/triangle.inx b/share/extensions/triangle.inx new file mode 100644 index 0000000..460ed92 --- /dev/null +++ b/share/extensions/triangle.inx @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Triangle</name> + <id>math.triangle</id> + <param name="s_a" type="float" min="0.01" max="10000" gui-text="Side Length a (px):">100.0</param> + <param name="s_b" type="float" min="0.01" max="10000" gui-text="Side Length b (px):">100.0</param> + <param name="s_c" type="float" min="0.01" max="10000" gui-text="Side Length c (px):">100.0</param> + <param name="a_a" type="float" min="0" max="180" gui-text="Angle a (deg):">60</param> + <param name="a_b" type="float" min="0" max="180" gui-text="Angle b (deg):">30</param> + <param name="a_c" type="float" min="0" max="180" gui-text="Angle c (deg):">90</param> + <param name="mode" type="optiongroup" appearance="combo" gui-text="Mode:"> + <option value="3_sides">From Three Sides</option> + <option value="s_ab_a_c">From Sides a, b and Angle c</option> + <option value="s_ab_a_a">From Sides a, b and Angle a</option> + <option value="s_a_a_ab">From Side a and Angles a, b</option> + <option value="s_c_a_ab">From Side c and Angles a, b</option> + </param> + <effect> + <object-type>all</object-type> + <effects-menu> + <submenu name="Render"/> + </effects-menu> + </effect> + <script> + <command location="inx" interpreter="python">triangle.py</command> + </script> +</inkscape-extension> |