Skip to content

Instantly share code, notes, and snippets.

@shibukawa
Last active October 3, 2017 16:39
Show Gist options
  • Save shibukawa/0879416d5ef9fa2c8202ca080ee68e74 to your computer and use it in GitHub Desktop.
Save shibukawa/0879416d5ef9fa2c8202ca080ee68e74 to your computer and use it in GitHub Desktop.
multiline
Display the source blob
Display the rendered blob
Raw
<svg height="200" viewBox="0 0 448 200" width="448" xmlns="http://www.w3.org/2000/svg" xmlns:inkspace="http://www.inkscape.org/namespaces/inkscape" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs id="defs_block">
<filter height="1.504" id="filter_blur" inkspace:collect="always" width="1.1575" x="-0.07875" y="-0.252">
<feGaussianBlur id="feGaussianBlur3780" inkspace:collect="always" stdDeviation="4.2" />
</filter>
</defs>
<title>blockdiag</title>
<desc />
<rect fill="rgb(0,0,0)" height="40" stroke="rgb(0,0,0)" style="filter:url(#filter_blur);opacity:0.7;fill-opacity:1" width="128" x="67" y="46" />
<rect fill="rgb(0,0,0)" height="40" stroke="rgb(0,0,0)" style="filter:url(#filter_blur);opacity:0.7;fill-opacity:1" width="128" x="259" y="46" />
<rect fill="rgb(0,0,0)" height="40" stroke="rgb(0,0,0)" style="filter:url(#filter_blur);opacity:0.7;fill-opacity:1" width="128" x="259" y="126" />
<rect fill="rgb(255,255,255)" height="40" stroke="rgb(0,0,0)" width="128" x="64" y="40" />
<text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="84" x="128.0" y="66">ABCDEFGHIJKLMN</text>
<rect fill="rgb(255,255,255)" height="40" stroke="rgb(0,0,0)" width="128" x="256" y="40" />
<!-- POC -->
<foreignObject x="256" y="40" width="128" height="40">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; justify-content: center; align-items: center; height: 40px; width: 128px;">
<div xmlns="http://www.w3.org/1999/xhtml" style="color: rgb(0,0,0); font-family: sans-serif; font-size: 11px; font-style: normal; font-weight: normal; text-align: center; word-wrap: break-word; width: 128px;">JKFDAJKFDASJKFfdakfadlfjas</div>
</div>
</foreignObject>
<!-- tspan
<text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal">
<tspan text-anchor="middle" textLength="126" x="320.0" y="59">JKFDAJKFDASJKFfdakfad</tspan>
<tspan text-anchor="middle" textLength="30" x="320.0" y="72">lfjas</tspan>
</text>
-->
<!-- Original
<text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="126" x="320.0" y="59">JKFDAJKFDASJKFfdakfad</text>
<text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="30" x="320.0" y="72">lfjas</text>
-->
<rect fill="rgb(255,255,255)" height="40" stroke="rgb(0,0,0)" width="128" x="256" y="120" />
<text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="96" x="320.0" y="146">JKFDAJKFDAfdaFDA</text>
<path d="M 192 60 L 248 60" fill="none" stroke="rgb(0,0,0)" />
<polygon fill="rgb(0,0,0)" points="255,60 248,56 248,64 255,60" stroke="rgb(0,0,0)" />
<path d="M 192 60 L 224 60" fill="none" stroke="rgb(0,0,0)" />
<path d="M 224 60 L 224 140" fill="none" stroke="rgb(0,0,0)" />
<path d="M 224 140 L 248 140" fill="none" stroke="rgb(0,0,0)" />
<polygon fill="rgb(0,0,0)" points="255,140 248,136 248,144 255,140" stroke="rgb(0,0,0)" />
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment