234 lines
14 KiB
XML
234 lines
14 KiB
XML
<?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>
|
|
<label>Create shapes using the bounding box or the node position of the selected objects</label>
|
|
<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">
|
|
<hbox>
|
|
<param type="optiongroup" appearance="combo" name="chamfertype" 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="crosscorners">Crossed corners</option>
|
|
<option value="deflaterect">Deflate</option>
|
|
<option value="spiralrect">Rect spiral</option>
|
|
<option value="letterenvelope">Letter envelope</option>
|
|
</param>
|
|
<spacer/>
|
|
<vbox>
|
|
<param type="float" name="size" min="0.0" max="1000.0" gui-text="Size:">20</param>
|
|
<param type="bool" name="fromCornersInv" gui-text="Inverse (For chamfer and round)">false</param>
|
|
<param type="optiongroup" name="crosscornersshape" gui-text="Crossed corners shape:" appearance="combo">
|
|
<option value="quads">Quads</option>
|
|
<option value="tris">Tris</option>
|
|
<option value="round">Round</option>
|
|
</param>
|
|
<param type="optiongroup" name="envelopetype" gui-text="Envelope type:" appearance="combo">
|
|
<option value="rect">Rect</option>
|
|
<option value="rectreg">Rect regular</option>
|
|
<option value="rounded">Rounded</option>
|
|
<option value="roundedreg">Rounded regular</option>
|
|
</param>
|
|
</vbox>
|
|
</hbox>
|
|
</page>
|
|
<page name="mid" gui-text="From the middle">
|
|
<hbox>
|
|
<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="deflaterombus">Deflate</option>
|
|
</param>
|
|
<spacer/>
|
|
<spacer/>
|
|
<spacer/>
|
|
<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>
|
|
<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>
|
|
<option value="tab">Paper craft tab</option>
|
|
</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>
|
|
<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>
|
|
</param>
|
|
<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>
|
|
<option value="void">Void</option>
|
|
</param>
|
|
<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>
|
|
<option value="void">Void</option>
|
|
</param>
|
|
<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>
|
|
<option value="void">Void</option>
|
|
</param>
|
|
<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>
|
|
<option value="void">Void</option>
|
|
</param>
|
|
</vbox>
|
|
</hbox>
|
|
</page>
|
|
<page name="triangles" gui-text="Triangles">
|
|
<param name="tritype" type="optiongroup" appearance="combo" gui-text="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>
|
|
</param>
|
|
<param name="trihside" type="bool" gui-text="Right side aligned">false</param>
|
|
<param name="trivside" type="bool" gui-text="Top side aligned">false</param>
|
|
</page>
|
|
<page name="arrow" gui-text="Arrows">
|
|
<param name="arrowtype" type="optiongroup" appearance="combo" gui-text="Arrow type:">
|
|
<option value="arrowfilled">Filled</option>
|
|
<option value="arrowstick">Stick</option>
|
|
</param>
|
|
<param name="headWidth" type="float" min="0.1" max="1000.0" gui-text="Width">20.0</param>
|
|
<param name="headHeight" type="float" min="0.1" max="1000.0" gui-text="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">
|
|
<param name="joincirctype" type="optiongroup" appearance="combo" gui-text="Function:">
|
|
<option value="tangent">Tangent</option>
|
|
<option value="tangentinside">Tangent inside</option>
|
|
<option value="blob">Blob</option>
|
|
<option value="oval">Oval</option>
|
|
</param>
|
|
<param name="joinradius" type="float" min="0.0" max="1000.0" gui-text="Join radius:">0.0</param>
|
|
<param name="joincircleonlyrect" type="bool" gui-text="Only join shapes">false</param>
|
|
</page>
|
|
<page name="arches" gui-text="Arches">
|
|
<param name="arch" type="optiongroup" appearance="combo" gui-text="Type:">
|
|
<option value="3c">Three centered</option>
|
|
<option value="rnd">Round</option>
|
|
<option value="segmental">Segmental</option>
|
|
<option value="horseshoe">Horseshoe</option>
|
|
<option value="roundedhorseshoe">Rounded horseshoe</option>
|
|
<option value="roundrampant">Round rampant</option>
|
|
<option value="trefoil">Trefoil</option>
|
|
<option value="reverseogee">Reverse ogee</option>
|
|
<option value="threepointed">Three pointed</option>
|
|
<option value="multifoil">Multi foil</option>
|
|
<option value="ogee">Ogee</option>
|
|
</param>
|
|
<param name="archmax" type="float" min="0.01" max="1000.0" gui-text="Major radius:">30</param>
|
|
<param name="archmin" type="float" min="0.01" max="1000.0" gui-text="Minor radius:">3</param>
|
|
<param name="archfoils" type="int" min="2" max="100" gui-text="Foils:">3</param>
|
|
<param name="helpbuild" type="bool" gui-text="Show construction guides">false</param>
|
|
</page>
|
|
<page name="nodes" gui-text="From nodes">
|
|
<hbox>
|
|
<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>
|
|
<option value="def">Deflate</option>
|
|
<option value="tabs">Tabs</option>
|
|
</param>
|
|
<param name="objid" type="string" gui-text="Object ID" />
|
|
</hbox>
|
|
<hbox>
|
|
<param name="reverse" type="bool" gui-text="Reverse path">false</param>
|
|
</hbox>
|
|
<hbox>
|
|
<param name="objsize" type="float" min="0.01" max="1000.0" gui-text="Diameter/Side size/Tab height:">3</param>
|
|
<param name="tabsize" type="float" min="0.01" max="1000.0" gui-text="Tab size:">3</param>
|
|
</hbox>
|
|
<hbox>
|
|
<label appearance="header">Position -</label>
|
|
<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>
|
|
</param>
|
|
<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>
|
|
</param>
|
|
</hbox>
|
|
<hbox>
|
|
<param name="reducey" type="float" min="0.00" max="1000.0" gui-text="Reduce size in Y axis (%):">0.00</param>
|
|
<param name="ordery" type="bool" gui-text="Z-index by Y position">false</param>
|
|
</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>
|
|
<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>
|
|
</param>
|
|
</vbox>
|
|
</hbox>
|
|
<hbox>
|
|
<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>
|
|
</hbox>
|
|
<param name="deleteorigin" type="bool" gui-text="Delete origin object">false</param>
|
|
<effect needs-live-preview="true">
|
|
<object-type>all</object-type>
|
|
<effects-menu>
|
|
<submenu name="FabLab Chemnitz">
|
|
<submenu name="Shape/Pattern from existing Object(s)" />
|
|
</submenu>
|
|
</effects-menu>
|
|
</effect>
|
|
<script>
|
|
<command location="inx" interpreter="python">shapes.py</command>
|
|
</script>
|
|
</inkscape-extension> |