File: triangle.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 (27 lines) | stat: -rw-r--r-- 1,528 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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>