-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdrawio.plug.json
executable file
·14 lines (14 loc) · 1.06 KB
/
drawio.plug.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
"name": "plantuml",
"version": 0.1,
"imports": [
"https://get.silverbullet.md/global.plug.json"
],
"functions": {
"plantumlWidget": {
"codeWidget": "plantuml",
"code": "(() => { var mod=(()=>{var n=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var a=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,d)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let i of p(e))!s.call(t,i)&&i!==r&&n(t,i,{get:()=>e[i],enumerable:!(d=l(e,i))||d.enumerable});return t};var o=t=>c(n({},\"__esModule\",{value:!0}),t);var h={};a(h,{default:()=>g});function m(t){return{html:`<pre class=\"plantuml\">${t.replaceAll(\"<\",\"<\")}</pre>`,script:`\n loadJsByUrl(\"https://cdn.jsdelivr.net/npm/plantuml@9/dist/plantuml.min.js\").then(() => {\n plantuml.init().then(updateHeight);\n });\n document.addEventListener(\"click\", () => {\n api({type: \"blur\"});\n });\n `}}var g=m;return o(h);})();\n return mod;})()"
}
},
"assets": {}
}