This repository has been archived on 2023-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
mightyscape-1.1-deprecated/extensions/fablabchemnitz/shapes/shapes.inx

197 lines
11 KiB
Plaintext
Raw Normal View History

2020-12-09 10:51:21 +01:00
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<name>Shapes</name>
<id>fablabchemnitz.de.shapes</id>
2021-04-27 14:38:04 +02:00
<label>Create shapes using the bounding box or the node position of the selected objects</label>
2020-12-09 10:51:21 +01:00
<param name="tab" type="notebook">
<page name="bbox" gui-text="From bounding box">
<param type="notebook" name="tab_from_bb">
<page name="chamfer" gui-text="From corners">
<!--image>shapes-squared-plugin.svg</image-->
<hbox>
2021-04-27 14:38:04 +02:00
<param type="optiongroup" name="chamfertype" appearance="combo" gui-text="Type:">
<option value="chamfer">Chamfer</option>
<option value="rect">Rect inside</option>
<option value="round">Round inside</option>
<option value="starcorners">Star</option>
<option value="crosscornersquad">Crossed corners quads</option>
<option value="crosscornerstri">Crossed corners tris</option>
<option value="crosscornersround">Crossed corners round</option>
<option value="pillowrect">Pillow</option>
<option value="spiralrect">Rect spiral</option>
2020-12-09 10:51:21 +01:00
</param>
2021-04-27 14:38:04 +02:00
<spacer/>
<spacer/>
<spacer/>
2020-12-09 10:51:21 +01:00
<vbox>
2021-04-27 14:38:04 +02:00
<param type="bool" name="fromCornersInv" gui-text="Inverse (for chamfer and round)">false</param>
2020-12-09 10:51:21 +01:00
<param type="float" name="size" min="0.0" max="1000.0" gui-text="Size:">20</param>
</vbox>
</hbox>
</page>
<page name="mid" gui-text="From the middle">
<!--image>shapes-squared-plugin.svg</image-->
<hbox>
2021-04-27 14:38:04 +02:00
<param type="optiongroup" appearance="combo" name="midtype" gui-text="Type:">
<option value="rombus">Rombus</option>
<option value="cross">Cross</option>
<option value="starcenter">Star</option>
<option value="pillowrombus">Pillow</option>
2020-12-09 10:51:21 +01:00
</param>
2021-04-27 14:38:04 +02:00
<spacer/>
<spacer/>
<spacer/>
2020-12-09 10:51:21 +01:00
<vbox>
<param type="float" name="midsize" min="0.0" max="1000.0" gui-text="Size:">20</param>
</vbox>
</hbox>
</page>
<page name="spikes" gui-text="Spikes">
<hbox>
<vbox>
2021-04-27 14:38:04 +02:00
<param name="spikestype" type="optiongroup" appearance="combo" gui-text="Shape:">
<option value="tri">Triangle</option>
<option value="trirect">Rectangle</option>
<option value="squ">Square</option>
<option value="rnd">Rounded</option>
<option value="wav">Wave</option>
2020-12-09 10:51:21 +01:00
</param>
<param name="spikesize" type="float" min="0.1" max="1000.0" gui-text="Size:">2.0</param>
<param name="spikesep" type="float" min="-1000.0" max="1000.0" gui-text="Distance:">0.0</param>
<param name="spikeheight" type="float" min="-1000.0" max="1000.0" gui-text="Height:">0.0</param>
</vbox>
<vbox>
2021-04-27 14:38:04 +02:00
<param name="spikesdir" type="optiongroup" appearance="combo" gui-text="Direction:" indent="1">
<option value="out">Outside</option>
<option value="ins">Inside</option>
<option value="alt">Alternate</option>
2020-12-09 10:51:21 +01:00
</param>
2021-04-27 14:38:04 +02:00
<param name="spikesdirt" type="optiongroup" appearance="combo" gui-text="Top:" indent="1">
<option value="pre">Predefined</option>
<option value="non">None</option>
<option value="out">Outside</option>
<option value="ins">Inside</option>
<option value="alt">Alternate</option>
2020-12-09 10:51:21 +01:00
</param>
2021-04-27 14:38:04 +02:00
<param name="spikesdirr" type="optiongroup" appearance="combo" gui-text="Right:" indent="1">
<option value="pre">Predefined</option>
<option value="non">None</option>
<option value="out">Outside</option>
<option value="ins">Inside</option>
<option value="alt">Alternate</option>
2020-12-09 10:51:21 +01:00
</param>
2021-04-27 14:38:04 +02:00
<param name="spikesdirb" type="optiongroup" appearance="combo" gui-text="Bottom:" indent="1">
<option value="pre">Predefined</option>
<option value="non">None</option>
<option value="out">Outside</option>
<option value="ins">Inside</option>
<option value="alt">Alternate</option>
2020-12-09 10:51:21 +01:00
</param>
2021-04-27 14:38:04 +02:00
<param name="spikesdirl" type="optiongroup" appearance="combo" gui-text="Left:" indent="1">
<option value="pre">Predefined</option>
<option value="non">None</option>
<option value="out">Outside</option>
<option value="ins">Inside</option>
<option value="alt">Alternate</option>
2020-12-09 10:51:21 +01:00
</param>
</vbox>
</hbox>
</page>
<page name="triangles" gui-text="Triangles">
2021-04-27 14:38:04 +02:00
<param name="tritype" type="optiongroup" appearance="combo" gui-text="Triangle type:">
<option value="isosceles">Isosceles</option>
<option value="equi">Equilateral</option>
<option value="rect">Rectangle</option>
<option value="trii">From 3 nodes: Inscribed triangle</option>
<option value="circi">From 3 nodes: Inscribed circle</option>
<option value="circe">From 3 nodes: Bounding circle</option>
2020-12-09 10:51:21 +01:00
</param>
2021-04-27 14:38:04 +02:00
<param name="trihside" type="bool" gui-text="Right side aligned">false</param>
<param name="trivside" type="bool" gui-text="Top side aligned">false</param>
2020-12-09 10:51:21 +01:00
</page>
<page name="arrow" gui-text="Arrows">
2021-04-27 14:38:04 +02:00
<param name="arrowtype" type="optiongroup" appearance="combo" gui-text="Arrow type:">
<option value="arrowfilled">Filled</option>
<option value="arrowstick">Stick</option>
2020-12-09 10:51:21 +01:00
</param>
<param name="headWidth" type="float" min="0.1" max="1000.0" gui-text="Head width:">20.0</param>
<param name="headHeight" type="float" min="0.1" max="1000.0" gui-text="Head height:">40.0</param>
<param name="arrowWidth" type="float" min="0.1" max="1000.0" gui-text="Tail width:">10.0</param>
</page>
</param>
</page>
<page name="extra" gui-text="Join circles">
2021-04-27 14:38:04 +02:00
<param name="joincirctype" type="optiongroup" appearance="combo" gui-text="Function:">
<option value="trapecio">Rect</option>
<option value="blob">Blob</option>
<option value="oval">Oval</option>
2020-12-09 10:51:21 +01:00
</param>
<param name="joinradius" type="float" min="0.0" max="1000.0" gui-text="Join radius:">0.0</param>
</page>
<page name="nodes" gui-text="From nodes">
<hbox>
2021-04-27 14:38:04 +02:00
<param name="obj" type="optiongroup" appearance="combo" gui-text="Add:">
<option value="s">Square</option>
<option value="c">Circle</option>
<option value="number">Numerate</option>
<option value="coords">Nodes coordinates</option>
<option value="obj">Object</option>
2020-12-09 10:51:21 +01:00
</param>
<spacer />
<spacer />
<spacer />
<param name="objsize" type="float" min="0.01" max="1000.0" gui-text="Diameter/Side size:">3</param>
</hbox>
<param name="objid" type="string" gui-text="Object ID"></param>
<hbox>
<label appearance="header">Position - </label>
2021-04-27 14:38:04 +02:00
<param name="posh" type="optiongroup" appearance="combo" gui-text="Horizontal:">
<option value="0">Center</option>
<option value="1">Left</option>
<option value="-1">Right</option>
2020-12-09 10:51:21 +01:00
</param>
2021-04-27 14:38:04 +02:00
<param name="posv" type="optiongroup" appearance="combo" gui-text="Vertical:">
<option value="0">Center</option>
<option value="-1">Bottom</option>
<option value="1">Top</option>
2020-12-09 10:51:21 +01:00
</param>
</hbox>
<hbox>
<param name="reducey" type="float" min="0.00" max="1000.0" gui-text="Reduce size in Y axis (%):">0.00</param>
2021-04-27 14:38:04 +02:00
<param name="ordery" type="bool" gui-text="Z-index by Y position">false</param>
2020-12-09 10:51:21 +01:00
</hbox>
<param name="fntsize" type="float" min="0.1" max="100.0" gui-text="Font size (for numerate/coordinates):">10</param>
<param name="maxdecimals" type="int" min="1" max="6" gui-text="Number of decimals (for coordinates):">6</param>
</page>
</param>
<hbox>
<vbox>
<param name="incdec" type="float" min="-1000.0" max="1000.0" gui-text="Increase/decrease size:">0.0</param>
</vbox>
<vbox>
2021-04-27 14:38:04 +02:00
<param name="unit" gui-text="Unit for values:" type="optiongroup" appearance="combo">
<option value="px">px</option>
<option value="pt">pt</option>
<option value="in">in</option>
<option value="cm">cm</option>
<option value="mm">mm</option>
2020-12-09 10:51:21 +01:00
</param>
</vbox>
</hbox>
<hbox>
2021-04-27 14:38:04 +02:00
<param name="squareselection" type="bool" gui-text="Make the result object square">false</param>
<param name="copyfill" type="bool" gui-text="Copy fill from selected">false</param>
2020-12-09 10:51:21 +01:00
</hbox>
2021-04-27 14:38:04 +02:00
<param name="deleteorigin" type="bool" gui-text="Delete origin object">false</param>
2020-12-09 10:51:21 +01:00
<effect needs-live-preview="true">
<object-type>all</object-type>
<effects-menu>
<submenu name="FabLab Chemnitz">
<submenu name="Shape/Pattern from existing Object(s)"/>
2020-12-09 10:51:21 +01:00
</submenu>
</effects-menu>
</effect>
<script>
2021-04-27 14:38:04 +02:00
<command location="inx" interpreter="python">shapes.py</command>
2020-12-09 10:51:21 +01:00
</script>
</inkscape-extension>