45 lines
1.6 KiB
XML
45 lines
1.6 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<svg
|
||
|
|
id="d2-svg"
|
||
|
|
style="background: white;"
|
||
|
|
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
||
|
|
width="254" height="216" viewBox="-102 -102 254 216"><style type="text/css">
|
||
|
|
<![CDATA[
|
||
|
|
.shape {
|
||
|
|
shape-rendering: geometricPrecision;
|
||
|
|
stroke-linejoin: round;
|
||
|
|
}
|
||
|
|
.connection {
|
||
|
|
stroke-linecap: round;
|
||
|
|
stroke-linejoin: round;
|
||
|
|
}
|
||
|
|
.blend {
|
||
|
|
mix-blend-mode: multiply;
|
||
|
|
opacity: 0.5;
|
||
|
|
}
|
||
|
|
|
||
|
|
]]>
|
||
|
|
</style><script type="application/javascript"><![CDATA[window.addEventListener("DOMContentLoaded", () => {
|
||
|
|
if (document.documentElement.getAttribute("id") !== "d2-svg") {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
const svgEl = document.documentElement;
|
||
|
|
let width = parseInt(svgEl.getAttribute("width"), 10);
|
||
|
|
let height = parseInt(svgEl.getAttribute("height"), 10);
|
||
|
|
let ratio;
|
||
|
|
if (width > height) {
|
||
|
|
if (width > window.innerWidth) {
|
||
|
|
ratio = window.innerWidth / width;
|
||
|
|
}
|
||
|
|
} else if (height > window.innerHeight) {
|
||
|
|
ratio = window.innerHeight / height;
|
||
|
|
}
|
||
|
|
if (ratio) {
|
||
|
|
svgEl.setAttribute("width", width * ratio - 16);
|
||
|
|
svgEl.setAttribute("height", height * ratio - 16);
|
||
|
|
}
|
||
|
|
});
|
||
|
|
]]></script><g id="a"><g class="shape" ><rect class="shape" x="0" y="0" width="50" height="12" style="fill:#FFFFFF;stroke:#0A0F25;stroke-width:2;"/><rect class="class_header" x="0.000000" y="0.000000" width="50.000000" height="12.000000" fill="#0A0F25" /></g></g><mask id="2389823220" maskUnits="userSpaceOnUse" x="-100" y="-100" width="254" height="216">
|
||
|
|
<rect x="-100" y="-100" width="254" height="216" fill="white"></rect>
|
||
|
|
|
||
|
|
</mask><style type="text/css"><![CDATA[]]></style></svg>
|