Difference between revisions of "Artefact:Template/org/oomodels/converter/templates/simplediagram-1.0-svg-1.1"
From OOModels
< Artefact:Template | org | oomodels | converter | templates
Jump to navigationJump to search
AndreasLeue (talk | contribs) |
AndreasLeue (talk | contribs) |
||
Line 11: | Line 11: | ||
<div class="code"> | <div class="code"> | ||
<span class="oogintro">G-2.0-xml_string-1.0 -*- coding: utf-8; -*-</span> | <span class="oogintro">G-2.0-xml_string-1.0 -*- coding: utf-8; -*-</span> | ||
<svg:svg> | |||
<span class="oogindentation"> ⋮</span><span class="oogcode">«∀(a:<span class="oogpath">‖"Ⓧ/Diagram/Item"</span>){»</span><span class="oogcontinuation">…</span> | <span class="oogindentation"> ⋮</span><span class="oogcode">«∀(a:<span class="oogpath">‖"Ⓧ/Diagram/Item"</span>){»</span><span class="oogcontinuation">…</span> | ||
<svg:g transform="translate(<span class="oogexpression">◂8*Integer.parseInt(<span class="oogpath">‖"Ⓧ/@X"</span>)▸</span>,<span class="oogexpression">◂16*Integer.parseInt(<span class="oogpath">‖"Ⓧ/@Y"</span>)▸</span>)"> | |||
<svg:path style="fill:#000000;fill-opacity:0.49803922;stroke:none;stroke-width:1px;" | |||
d="M 2,2 L 90,2 L 101,24 L 90,46 L 2,46 L 2,2 z "></svg:path>" | |||
<svg:path style="fill:#e6f28b;fill-opacity:1;stroke:#000000;stroke-width:1px;" | |||
. d="M 0,0 L 88,0 L 99,22 L 88.68,44 L 0,44 L 0,0 z "></svg:path> | |||
<svg:text y="26" x="45" | |||
style="font-size:16px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;text-anchor:middle;fill:#000000;font-family:Sans"><span class="oogexpression">◂<span class="oogpath">‖"Ⓧ/@Name"</span>▸</span></svg:text> | |||
</svg:g> | |||
<!-- <span class="oogexpression">◂<span class="oogpath">‖"Ⓧ/@Item"</span>▸</span> --> | |||
<span class="oogindentation"> ⋮</span><span class="oogcode">«}/∀»</span><span class="oogcontinuation">…</span> | <span class="oogindentation"> ⋮</span><span class="oogcode">«}/∀»</span><span class="oogcontinuation">…</span> | ||
</svg:svg> | |||
</div> | </div> | ||
== rounded code == | |||
<pre> | |||
<svg:path style="fill:#000000;fill-opacity:0.49803922;fill-rule:evenodd;stroke:none;stroke-width:1px;" | |||
. d="M 14,2 L 96,2 C 103,2 108,8 108,15 L 108,34 C 108,41 103,47 96,47 L 14,47 C 7,47 2,41 2,34 L 2,15 C 2,8 7,2 14,2 z "></svg:path>" | |||
<path style="fill:#d8cae2;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;" | |||
d="M 12,0 L 94,0 C 101,0 106,6 106,13 L 106,32 C 106,39 101,45 94,45 L 12,45 C 5,45 0,39 0,32 L 0,13 C 0,6 5,0 12,0 z "></svg:path> | |||
</pre> |
Revision as of 21:33, 2 March 2009
Classification | |
---|---|
Type | Type:org/oogenerator/Template/2.0 |
Domain | Domain:it/development/formatting |
Category | Type:org/oomodels/wiki/Template |
Maturity | final |
More | |
Download Code | |
Namespace (more) | |
OOModels main namespace | |
create new pages |
Code[edit]
G-2.0-xml_string-1.0 -*- coding: utf-8; -*- <svg:svg> ⋮«∀(a:‖"Ⓧ/Diagram/Item"){»… <svg:g transform="translate(◂8*Integer.parseInt(‖"Ⓧ/@X")▸,◂16*Integer.parseInt(‖"Ⓧ/@Y")▸)"> <svg:path style="fill:#000000;fill-opacity:0.49803922;stroke:none;stroke-width:1px;" d="M 2,2 L 90,2 L 101,24 L 90,46 L 2,46 L 2,2 z "></svg:path>" <svg:path style="fill:#e6f28b;fill-opacity:1;stroke:#000000;stroke-width:1px;" . d="M 0,0 L 88,0 L 99,22 L 88.68,44 L 0,44 L 0,0 z "></svg:path> <svg:text y="26" x="45" style="font-size:16px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;text-anchor:middle;fill:#000000;font-family:Sans">◂‖"Ⓧ/@Name"▸</svg:text> </svg:g> ⋮«}/∀»… </svg:svg>
rounded code[edit]
<svg:path style="fill:#000000;fill-opacity:0.49803922;fill-rule:evenodd;stroke:none;stroke-width:1px;" . d="M 14,2 L 96,2 C 103,2 108,8 108,15 L 108,34 C 108,41 103,47 96,47 L 14,47 C 7,47 2,41 2,34 L 2,15 C 2,8 7,2 14,2 z "></svg:path>" <path style="fill:#d8cae2;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;" d="M 12,0 L 94,0 C 101,0 106,6 106,13 L 106,32 C 106,39 101,45 94,45 L 12,45 C 5,45 0,39 0,32 L 0,13 C 0,6 5,0 12,0 z "></svg:path>