Skip to content

Instantly share code, notes, and snippets.

@vonbeitthia
Created February 8, 2021 20:42
Show Gist options
  • Select an option

  • Save vonbeitthia/b8e6df7fa09a706b400c7ab3367bcaf4 to your computer and use it in GitHub Desktop.

Select an option

Save vonbeitthia/b8e6df7fa09a706b400c7ab3367bcaf4 to your computer and use it in GitHub Desktop.
@startuml
object Car
object Bus
object Tire
object Engine
object Driver
Car <|- Bus
Car *-down- Tire
Car *-down- Engine
Bus o-down- Driver
@enduml
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="148px" preserveAspectRatio="none" style="width:235px;height:148px;" version="1.1" viewBox="0 0 235 148" width="235px" zoomAndPan="magnify"><defs><filter height="300%" id="f10h7p36bwhtix" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><rect fill="#FEFECE" filter="url(#f10h7p36bwhtix)" height="33.9688" style="stroke:#A80036;stroke-width:1.5;" width="35" x="90" y="7"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="21" x="97" y="20.1387">Car</text><line style="stroke:#A80036;stroke-width:1.5;" x1="91" x2="124" y1="24.9688" y2="24.9688"/><rect fill="#FEFECE" filter="url(#f10h7p36bwhtix)" height="33.9688" style="stroke:#A80036;stroke-width:1.5;" width="37" x="169" y="7"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="23" x="176" y="20.1387">Bus</text><line style="stroke:#A80036;stroke-width:1.5;" x1="170" x2="205" y1="24.9688" y2="24.9688"/><rect fill="#FEFECE" filter="url(#f10h7p36bwhtix)" height="33.9688" style="stroke:#A80036;stroke-width:1.5;" width="37" x="7" y="101"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="23" x="14" y="114.1387">Tire</text><line style="stroke:#A80036;stroke-width:1.5;" x1="8" x2="43" y1="118.9688" y2="118.9688"/><rect fill="#FEFECE" filter="url(#f10h7p36bwhtix)" height="33.9688" style="stroke:#A80036;stroke-width:1.5;" width="57" x="79" y="101"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="43" x="86" y="114.1387">Engine</text><line style="stroke:#A80036;stroke-width:1.5;" x1="80" x2="135" y1="118.9688" y2="118.9688"/><rect fill="#FEFECE" filter="url(#f10h7p36bwhtix)" height="33.9688" style="stroke:#A80036;stroke-width:1.5;" width="50" x="171.5" y="101"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="36" x="178.5" y="114.1387">Driver</text><line style="stroke:#A80036;stroke-width:1.5;" x1="172.5" x2="220.5" y1="118.9688" y2="118.9688"/><!--MD5=[7a943fd74b5311c5083c1a187bc5dad6]
reverse link Car to Bus--><path codeLine="7" d="M145.5811,24 C153.2382,24 160.8952,24 168.5522,24 " fill="none" id="Car-backto-Bus" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="none" points="145.3125,30.9999,125.3125,24,145.3125,16.9999,145.3125,30.9999" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[7dd53d29adca0ab4143315cf19e9974d]
reverse link Car to Tire--><path codeLine="8" d="M83.8312,51.1325 C69.8423,67.1685 52.5545,86.9863 40.4447,100.8683 " fill="none" id="Car-backto-Tire" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="92.4599,41.241,85.5014,43.1329,84.5715,50.2838,91.5299,48.3919,92.4599,41.241" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[68cc089a05bca8a2306644317e8b6b93]
reverse link Car to Engine--><path codeLine="9" d="M107.5,54.3873 C107.5,69.7845 107.5,87.9118 107.5,100.8683 " fill="none" id="Car-backto-Engine" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="107.5,41.241,103.5,47.241,107.5,53.241,111.5,47.241,107.5,41.241" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[ddc2210afe9e2adbb477db5b258be579]
reverse link Bus to Driver--><path codeLine="10" d="M190.4094,54.3873 C191.8836,69.7845 193.6192,87.9118 194.8597,100.8683 " fill="none" id="Bus-backto-Driver" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#FFFFFF" points="189.1507,41.241,185.7408,47.595,190.2945,53.1864,193.7044,46.8324,189.1507,41.241" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[60b73930363c41ae29f1f844207c7faa]
@startuml
object Car
object Bus
object Tire
object Engine
object Driver
Car <|- Bus
Car *-down- Tire
Car *-down- Engine
Bus o-down- Driver
@enduml
PlantUML version 1.2020.22(Sun Dec 06 09:36:27 UTC 2020)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Default Encoding: UTF-8
Language: en
Country: US
--></g></svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment