@softistx/pulsarix-widget 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -27
- package/dist/chunks/{abnfDiagram-XWFEHMT6.xef4vppv.js → abnfDiagram-XWFEHMT6.rxx9wyp3.js} +1 -1
- package/dist/chunks/architecture-WOLXFQ4H.hwrxbct0.js +1 -0
- package/dist/chunks/architectureDiagram-CSQXQB3N.mrm0pgc0.js +36 -0
- package/dist/chunks/{blockDiagram-BEDRHYPZ.wgdr8xfr.js → blockDiagram-BEDRHYPZ.f4dfpk7e.js} +11 -11
- package/dist/chunks/{c4Diagram-M2UUVUY5.t09pndbz.js → c4Diagram-M2UUVUY5.rz43j1my.js} +3 -3
- package/dist/chunks/{chat-markdown-CQ4fSIYN.cv3fprzq.js → chat-markdown-BSu4FB_l.xgn4yj83.js} +29 -29
- package/dist/chunks/{classDiagram-v2-KXABOMEV.9yfjtevj.js → classDiagram-v2-KXABOMEV.m96cfcad.js} +8 -8
- package/dist/chunks/cose-bilkent-JH36ORCC.zz2rwyw6.js +1 -0
- package/dist/chunks/cynefin-EF2NZ3EQ.y29bn1cz.js +1 -0
- package/dist/chunks/{cynefinDiagram-NJNITYFG.k6mhek0s.js → cynefinDiagram-NJNITYFG.az2k68wq.js} +1 -1
- package/dist/chunks/{dagre-KIHZ2IZ3.sqeg911s.js → dagre-KIHZ2IZ3.mgwg8bc4.js} +2 -2
- package/dist/chunks/{diagram-7YQZDPLS.k1qvmctj.js → diagram-7YQZDPLS.x8fg6705.js} +2 -2
- package/dist/chunks/{diagram-QBROCOUO.v7fe7e4g.js → diagram-QBROCOUO.db60dsss.js} +24 -24
- package/dist/chunks/{diagram-RJJCUUZO.12s15pm6.js → diagram-RJJCUUZO.a7e9w297.js} +4 -4
- package/dist/chunks/{diagram-WERXNKYE.tmrcv4we.js → diagram-WERXNKYE.a04f53kd.js} +2 -2
- package/dist/chunks/diagram-YHHI257C.v19jhmrh.js +3 -0
- package/dist/chunks/{diagram-YR4HJLHV.nytxr7pa.js → diagram-YR4HJLHV.c5e87gmw.js} +1 -1
- package/dist/chunks/{ebnfDiagram-N527522P.6eqw92nv.js → ebnfDiagram-N527522P.bjrxfgze.js} +1 -1
- package/dist/chunks/editor-shortcuts-dialog-Cz3T8435.5ve4nsaw.js +1 -0
- package/dist/chunks/editor.yak1qktd.js +4 -0
- package/dist/chunks/{elk-O5DQBFGD.a5rqryhg.js → elk-O5DQBFGD.1ydp0b7a.js} +13 -13
- package/dist/chunks/emoji-picker-00Bw2c2b.gzznrrz5.js +4 -0
- package/dist/chunks/{erDiagram-K3K3BIDK.exfeddaa.js → erDiagram-K3K3BIDK.g171ckq1.js} +8 -8
- package/dist/chunks/eventmodeling-K75KTNOO.46qfxqj7.js +1 -0
- package/dist/chunks/{flow-diagram-Byy7DBZZ.pf5vdbkn.js → flow-diagram-DGZOc1z1.3gbgbm5m.js} +6 -6
- package/dist/chunks/flowDiagram-Z6JWZHQI.f0eaj70g.js +1 -0
- package/dist/chunks/{ganttDiagram-3PRQTZWP.0tjaeqjw.js → ganttDiagram-3PRQTZWP.3b9dh4nr.js} +5 -5
- package/dist/chunks/gitGraph-VSP46ZUC.swware7n.js +1 -0
- package/dist/chunks/{gitGraphDiagram-VXDFKS5L.6vvbj88t.js → gitGraphDiagram-VXDFKS5L.thyp7vsd.js} +22 -22
- package/dist/chunks/{grid-E2QIVN74.frpdy6t3.js → grid-E2QIVN74.entqjpa3.js} +1 -1
- package/dist/chunks/illustration-BcaGDjvB.1q9xtmyq.js +1 -0
- package/dist/chunks/{index.3pn4wy4j.js → index.0g1t1pjx.js} +1 -1
- package/dist/chunks/{index.zjykrx6y.js → index.35d4zbh8.js} +4 -4
- package/dist/chunks/index.5fcbba6e.js +2 -0
- package/dist/chunks/{index.d8b8y928.js → index.6pzexww5.js} +10 -10
- package/dist/chunks/{index.mcyw2bze.js → index.8vaktk8x.js} +1 -1
- package/dist/chunks/{index.xrg5yg8d.js → index.8zg579vd.js} +2 -2
- package/dist/chunks/{index.sv013f1z.js → index.9n1y396a.js} +1 -1
- package/dist/chunks/{index.kh3f3gw8.js → index.a3njhfdd.js} +2 -2
- package/dist/chunks/{index.a6rz456z.js → index.cw97ff3b.js} +2 -2
- package/dist/chunks/{index.fv9af3wd.js → index.d57x7pg9.js} +6 -6
- package/dist/chunks/{index.0kv7tp87.js → index.g2ba0pke.js} +2 -2
- package/dist/chunks/index.h1xzvasx.js +2 -0
- package/dist/chunks/{index.93zpfh3k.js → index.qr6a02kx.js} +2 -2
- package/dist/chunks/index.rkgfxpm3.js +44 -0
- package/dist/chunks/index.sw8gvntb.js +2 -0
- package/dist/chunks/{index.7q6v461v.js → index.v02zf4zg.js} +2 -2
- package/dist/chunks/{index.f6jhkm5c.js → index.w1516g8q.js} +35 -35
- package/dist/chunks/{index.pyz71tqx.js → index.w4emtsqw.js} +2 -2
- package/dist/chunks/{index.nsckd1vt.js → index.yhmqh641.js} +2 -2
- package/dist/chunks/{index.nrd5w1x0.js → index.zkngte5k.js} +2 -2
- package/dist/chunks/{index.yfbwd99n.js → index.zkx4ryzt.js} +104 -104
- package/dist/chunks/info-OHQRW6UA.1er9b42t.js +1 -0
- package/dist/chunks/{infoDiagram-EZ3ZOAHP.qh2bwz3m.js → infoDiagram-EZ3ZOAHP.833fvq8n.js} +2 -2
- package/dist/chunks/{ishikawaDiagram-S3EKX5GW.w2v6vnwd.js → ishikawaDiagram-S3EKX5GW.q3evaw24.js} +5 -5
- package/dist/chunks/{journeyDiagram-POQNLL5X.ftkfdsrw.js → journeyDiagram-POQNLL5X.9werrmpy.js} +5 -5
- package/dist/chunks/{kanban-definition-BH5XI6FM.9scqhcx5.js → kanban-definition-BH5XI6FM.f3ssda0m.js} +7 -7
- package/dist/chunks/markup-color-chrome-ykGNUl8y.pcgw4znz.js +1 -0
- package/dist/chunks/markup-custom-color-MM-HnrqY.sygnt3gs.js +1 -0
- package/dist/chunks/mention-list-6cR5VSPa.x0x55xzp.js +1 -0
- package/dist/chunks/{mermaid.core.tnh468qk.js → mermaid.core.5cqab0cw.js} +7 -7
- package/dist/chunks/{mindmap-definition-WVAN44T4.gskntx1f.js → mindmap-definition-WVAN44T4.pjjxgse0.js} +6 -6
- package/dist/chunks/packet-JDAUHWVQ.t5jwb2rb.js +1 -0
- package/dist/chunks/panel.2vwd6k3h.js +7 -0
- package/dist/chunks/{pegDiagram-D4NLKWP3.yb58dpky.js → pegDiagram-D4NLKWP3.mdacgbzb.js} +1 -1
- package/dist/chunks/pie-XZMESJXO.pe88zesw.js +1 -0
- package/dist/chunks/pieDiagram-36ENHN4W.fb0d6a9w.js +39 -0
- package/dist/chunks/plated-illustration-pTqcYOQg.6b9fm4a7.js +1 -0
- package/dist/chunks/{quadrantDiagram-ZQUDMS73.1a721ces.js → quadrantDiagram-ZQUDMS73.m5cgqatg.js} +4 -4
- package/dist/chunks/radar-ABXABTNO.jtbddwfq.js +1 -0
- package/dist/chunks/railroad-I3PHUGI6.kvyt0f9s.js +1 -0
- package/dist/chunks/railroad-abnf-LNEFI6M7.ybx0vspg.js +1 -0
- package/dist/chunks/railroad-ebnf-DWYD2UWJ.yx4c4enn.js +1 -0
- package/dist/chunks/railroad-peg-JR7BVNR7.mb71eyqe.js +1 -0
- package/dist/chunks/{railroadDiagram-JIZHGYPL.xpgkt1zp.js → railroadDiagram-JIZHGYPL.w2e1k61e.js} +1 -1
- package/dist/chunks/{render-VIF2ZAQL.khtqjmgm.js → render-VIF2ZAQL.exs2rt60.js} +1 -1
- package/dist/chunks/{requirementDiagram-AXW2TVFA.ms6anxwg.js → requirementDiagram-AXW2TVFA.mrxb120d.js} +4 -4
- package/dist/chunks/{sankeyDiagram-FBCJTAIF.40yzed7d.js → sankeyDiagram-FBCJTAIF.csj5n1sg.js} +6 -6
- package/dist/chunks/{sequenceDiagram-3LA2ROMG.z0h3shw2.js → sequenceDiagram-3LA2ROMG.73qx1ab4.js} +11 -11
- package/dist/chunks/{sizeCapture-2Q2CQKSF.4dh5g271.js → sizeCapture-2Q2CQKSF.vfe8maj3.js} +1 -1
- package/dist/chunks/{stateDiagram-v2-ATKHQDJO.5ftcgs8s.js → stateDiagram-v2-ATKHQDJO.h4grfmy4.js} +8 -8
- package/dist/chunks/{swimlanes-YQL5WMAO.r6vmskrb.js → swimlanes-YQL5WMAO.e2y8jam1.js} +1 -1
- package/dist/chunks/swimlanesDiagram-UCCPES4V.dtthssd5.js +8 -0
- package/dist/chunks/{timeline-definition-7Z437IG3.eke70hfq.js → timeline-definition-7Z437IG3.2zxa6hz5.js} +9 -9
- package/dist/chunks/treeView-D4JQ5SDB.3kgztv30.js +1 -0
- package/dist/chunks/treemap-SAJKECNS.xj47e2ae.js +1 -0
- package/dist/chunks/{usecaseDiagram-RDK6N6HP.d8p4tnc6.js → usecaseDiagram-RDK6N6HP.61cdyktj.js} +57 -57
- package/dist/chunks/{vennDiagram-SHRQU5PJ.4s46abxd.js → vennDiagram-SHRQU5PJ.4tspw3rs.js} +7 -7
- package/dist/chunks/wardley-7MLQ67FV.pckbr6zr.js +1 -0
- package/dist/chunks/{wardleyDiagram-F3OXNVQS.mq49fny4.js → wardleyDiagram-F3OXNVQS.q2p8tshx.js} +4 -4
- package/dist/chunks/{xychartDiagram-GDYJKCDI.d7he0fxa.js → xychartDiagram-GDYJKCDI.69desp9j.js} +5 -5
- package/dist/index.js +48 -21
- package/dist/types/config.d.ts +1 -1
- package/dist/types/mount.d.ts +1 -1
- package/docs/integration.md +32 -26
- package/package.json +4 -4
- package/dist/chunks/architecture-WOLXFQ4H.pp4drcrh.js +0 -1
- package/dist/chunks/architectureDiagram-CSQXQB3N.0bddzt5e.js +0 -36
- package/dist/chunks/cose-bilkent-JH36ORCC.qam7r9b1.js +0 -1
- package/dist/chunks/cynefin-EF2NZ3EQ.wgr8qmb2.js +0 -1
- package/dist/chunks/diagram-YHHI257C.7735ve6v.js +0 -3
- package/dist/chunks/editor-shortcuts-dialog-VmvMTjnq.mm7ab69f.js +0 -1
- package/dist/chunks/editor.wb4jsrjy.js +0 -4
- package/dist/chunks/emoji-picker-bnO0yA8e.bymgjc9a.js +0 -4
- package/dist/chunks/eventmodeling-K75KTNOO.nkahp6zg.js +0 -1
- package/dist/chunks/flowDiagram-Z6JWZHQI.54yz6gfm.js +0 -1
- package/dist/chunks/gitGraph-VSP46ZUC.2a0am491.js +0 -1
- package/dist/chunks/illustration-BfueshiW.syv54ccw.js +0 -1
- package/dist/chunks/index.bs3ygyp2.js +0 -2
- package/dist/chunks/index.newjn1k4.js +0 -2
- package/dist/chunks/index.rn0vxns6.js +0 -44
- package/dist/chunks/index.yexf86bf.js +0 -2
- package/dist/chunks/info-OHQRW6UA.4824y3cd.js +0 -1
- package/dist/chunks/markup-color-chrome-ykGNUl8y.8cysjsfb.js +0 -1
- package/dist/chunks/markup-custom-color-CytmKw-R.d25j0pcj.js +0 -1
- package/dist/chunks/mention-list-5h2lZwEU.wffam6eb.js +0 -1
- package/dist/chunks/packet-JDAUHWVQ.w0pv2dxr.js +0 -1
- package/dist/chunks/panel.dq8vt40k.js +0 -7
- package/dist/chunks/pie-XZMESJXO.zq72f2fq.js +0 -1
- package/dist/chunks/pieDiagram-36ENHN4W.7pgn8ayz.js +0 -39
- package/dist/chunks/plated-illustration-VrnsTz7H.tcyq0sxa.js +0 -1
- package/dist/chunks/radar-ABXABTNO.288gs0b8.js +0 -1
- package/dist/chunks/railroad-I3PHUGI6.aadrd13j.js +0 -1
- package/dist/chunks/railroad-abnf-LNEFI6M7.6btgmncj.js +0 -1
- package/dist/chunks/railroad-ebnf-DWYD2UWJ.y44ppt8p.js +0 -1
- package/dist/chunks/railroad-peg-JR7BVNR7.328jgxkz.js +0 -1
- package/dist/chunks/swimlanesDiagram-UCCPES4V.exhrz16x.js +0 -8
- package/dist/chunks/treeView-D4JQ5SDB.xz61fh4x.js +0 -1
- package/dist/chunks/treemap-SAJKECNS.8gv7pmqr.js +0 -1
- package/dist/chunks/wardley-7MLQ67FV.6v9j3be8.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e,
|
|
2
|
-
export{Mt
|
|
1
|
+
import{e,xe,Xr}from"./index.zkx4ryzt.js";var O=0.00001,X=2,Y=0.6;function Rt(t){if(t===!1)return!1;return t==="gap"?"gap":"arc"}e(Rt,"normalizeLineHops");var w=0.000001;function P(t){let n=[];for(let c=0;c<t.length-1;c++)n.push({a:t[c],b:t[c+1]});return n}e(P,"buildSegmentList");function v(t,n,c,a){let i=n.x-t.x,r=n.y-t.y,d=a.x-c.x,l=a.y-c.y,p=i*l-r*d;if(p===0)return null;let s=c.x-t.x,o=c.y-t.y,u=(s*l-o*d)/p,f=(s*r-o*i)/p;if(u<=w||u>=1-w||f<=w||f>=1-w)return null;return{point:{x:t.x+u*i,y:t.y+u*r},tA:u,tB:f}}e(v,"segmentIntersection");function N(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}e(N,"isHorizontalSeg");function B(t,n,c){if(t.curve!=="rounded")return!1;let a=t.points,i=a[n],r=a[n+1];if(!i||!r)return!1;let d=Math.hypot(r.x-i.x,r.y-i.y),l=c*d,p=Xr(t.cornerRadius),s=n>0?R(a[n-1],i,r,p):null;if(s&&l<s.cutLen)return!0;let o=n+2<a.length?R(i,r,a[n+2],p):null;return o!==null&&d-l<o.cutLen}e(B,"crossingSitsInRoundedCorner");function C(t){let n=[];for(let c=0;c<t.length;c++){let a=t[c],i=P(a.points);for(let r=c+1;r<t.length;r++){let d=t[r],l=P(d.points);for(let[p,s]of i.entries())for(let[o,u]of l.entries()){let f=v(s.a,s.b,u.a,u.b);if(!f)continue;if(B(a,p,f.tA)||B(d,o,f.tB))continue;let y=N(s),E=N(u);if(y!==E?y:!1)n.push({jumpEdgeId:a.id,otherEdgeId:d.id,segIndex:p,t:f.tA,point:f.point});else n.push({jumpEdgeId:d.id,otherEdgeId:a.id,segIndex:o,t:f.tB,point:f.point})}}}return n}e(C,"findEdgeIntersections");function b(t){let n=Math.round(t*1000)/1000;return Number.isInteger(n)?`${n}`:`${n}`}e(b,"fmt");function I(t){return`${b(t.x)},${b(t.y)}`}e(I,"pointToString");function H(t){let n=t.b.x-t.a.x,c=t.b.y-t.a.y;if(Math.abs(n)>=Math.abs(c))return n>=0?1:0;return c>=0?1:0}e(H,"getArcSweepFlag");function _(t,n){if(t.length<2)return t.map((r)=>({...r}));let c=t.map((r)=>({...r})),a=n.arrowTypeStart&&xe[n.arrowTypeStart];if(a){let r=t[0],d=t[1],l=Math.atan2(d.y-r.y,d.x-r.x);c[0].x=r.x+a*Math.cos(l),c[0].y=r.y+a*Math.sin(l)}let i=n.arrowTypeEnd&&xe[n.arrowTypeEnd];if(i){let r=t.length,d=t[r-2],l=t[r-1],p=Math.atan2(l.y-d.y,l.x-d.x);c[r-1].x=l.x-i*Math.cos(p),c[r-1].y=l.y-i*Math.sin(p)}return c}e(_,"applyMarkerOffsets");function D(t,n,c,a,i){let r=t.point.x,d=t.point.y,l={x:r-n*t.r,y:d-c*t.r},p={x:r+n*t.r,y:d+c*t.r},s=[`L${I(l)}`];if(i==="arc")s.push(`A${b(t.r)},${b(t.r)} 0 0 ${a} ${I(p)}`);else s.push(`M${I(p)}`);return s}e(D,"emitJump");function R(t,n,c,a){let i=n.x-t.x,r=n.y-t.y,d=c.x-n.x,l=c.y-n.y,p=Math.hypot(i,r),s=Math.hypot(d,l);if(p<O||s<O)return null;let o=i/p,u=r/p,f=d/s,y=l/s,E=o*f+u*y,S=Math.max(-1,Math.min(1,E)),M=Math.acos(S);if(M<O||Math.abs(Math.PI-M)<O)return null;let g=Math.min(a/Math.sin(M/2),p/2,s/2);return{startX:n.x-o*g,startY:n.y-u*g,endX:n.x+f*g,endY:n.y+y*g,ctrlX:n.x,ctrlY:n.y,cutLen:g}}e(R,"computeRoundedCorner");function k(t,n,c){let a=t.points;if(a.length<2)return"";let i=_(a,t),r=t.curve==="rounded",d=Xr(t.cornerRadius),l=P(i),p=new Map;for(let o of n){let u=l[o.segIndex];if(!u)continue;let f=Math.hypot(u.b.x-u.a.x,u.b.y-u.a.y),y=p.get(o.segIndex)??[];y.push({t:o.t,point:o.point,d:o.t*f,r:c.jumpRadius}),p.set(o.segIndex,y)}let s=[`M${I(i[0])}`];for(let o=0;o<l.length;o++){let u=l[o],f=Math.hypot(u.b.x-u.a.x,u.b.y-u.a.y),y=f===0?0:(u.b.x-u.a.x)/f,E=f===0?0:(u.b.y-u.a.y)/f,S=H(u),M=0;if(r&&o>0){let h=R(i[o-1],i[o],i[o+1]??i[o],d);if(h)M=h.cutLen}let g=f,m=null;if(r&&o<l.length-1){if(m=R(i[o],i[o+1],i[o+2]??i[o+1],d),m)g=f-m.cutLen}let A=c.jumpRadius*Y,x=[...p.get(o)??[]].sort((h,L)=>h.t-L.t).filter((h)=>{let L=Math.min(h.d-M,g-h.d)-X;return h.r=Math.min(h.r,L),h.r>=A});for(let h=0;h<x.length-1;h++){let L=x[h+1].d-x[h].d;if(x[h].r+x[h+1].r>L){let T=L/2;x[h].r=Math.min(x[h].r,T),x[h+1].r=Math.min(x[h+1].r,T)}}for(let h of x){if(h.r<A)continue;s.push(...D(h,y,E,S,c.jumpStyle))}if(r&&m)s.push(`L${b(m.startX)},${b(m.startY)}`),s.push(`Q${b(m.ctrlX)},${b(m.ctrlY)} ${b(m.endX)},${b(m.endY)}`);else s.push(`L${I(u.b)}`)}return s.join(" ")}e(k,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}e(J,"isStraightPath");function j(t){if(!t)return!0;return t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter"}e(j,"curveSupportsLineHops");function z(t){if(!t)return null;try{let n=typeof atob==="function"?atob(t):Buffer.from(t,"base64").toString(),c=JSON.parse(n);if(!Array.isArray(c))return null;let a=[];for(let i of c)if(i&&typeof i.x==="number"&&typeof i.y==="number")a.push({x:i.x,y:i.y});return a.length>=2?a:null}catch{return null}}e(z,"decodeDataPoints");function Mt(t,n,c){if(!c.enabled)return;let a=t.node();if(!a)return;let i=new Map;for(let s of n)i.set(s.id,s);let r=new Map;for(let s of a.querySelectorAll("path[data-id]")){let o=s.getAttribute("data-id");if(o!==null&&!r.has(o))r.set(o,s)}let d=[];for(let s of n){let o=r.get(s.id);if(!o)continue;let f=z(o.getAttribute("data-points"))??s.points;d.push({...s,points:f})}let l=C(d);if(l.length===0)return;let p=new Map;for(let s of l){let o=p.get(s.jumpEdgeId)??[];o.push(s),p.set(s.jumpEdgeId,o)}for(let s of d){let o=p.get(s.id);if(!o||o.length===0)continue;let f=i.get(s.id)?.curve;if(f!==void 0&&!j(f))continue;let y=r.get(s.id);if(!y)continue;if(f===void 0){let A=y.getAttribute("d")??"";if(!J(A))continue}let E=y.getAttribute("style")??"",S=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(E),M=S?Number.parseFloat(S[1]):null,g=S?Number.parseFloat(S[2]):null,m=k(s,o,c);if(y.setAttribute("d",m),M!==null&&g!==null&&typeof y.getTotalLength==="function"){let A=y.getTotalLength(),x=Math.max(0,A-M-g),h=`0 ${M} ${x} ${g}`,L=E.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${h};`).replace(/;\s*;+/g,";");y.setAttribute("style",L)}}}e(Mt,"applyLineJumpsToSvg");
|
|
2
|
+
export{Rt,Mt};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{g,d,w,a,r,W,Te,U,nt,Jt,vr,ci,ui}from"./index.rkgfxpm3.js";var A=Object.defineProperty,y=(e,o)=>A(e,"name",{value:o,configurable:!0}),_={Horizontal:"horizontal",Vertical:"vertical"},G=_.Horizontal,D=Object.values(_),Rs=g(y(function(e,o){let{decorative:t,orientation:l=G,...n}=e,u=R(l)?l:G,s=u===_.Vertical?u:void 0,i=t?{role:"none"}:{"aria-orientation":s,role:"separator"};return r(W.div,{"data-orientation":u,...i,...n,ref:o})},"Separator"));function R(e){return D.includes(e)}y(R,"isValidOrientation");var F=Object.defineProperty,H=(e,o)=>F(e,"name",{value:o,configurable:!0}),B="Toggle",E=g(H(function(e,o){let{pressed:t,defaultPressed:l,onPressedChange:n,...u}=e,[s,i]=nt({prop:t,onChange:n,defaultProp:l??!1,caller:B});return r(W.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...u,ref:o,onClick:U(e.onClick,()=>{e.disabled||i(!s)})})},"Toggle")),q=Object.defineProperty,p=(e,o)=>q(e,"name",{value:o,configurable:!0}),v="ToggleGroup",h={Single:"single",Multiple:"multiple"},[P,V]=Te(v,[vr]),S=vr(),El=g(p(function(e,o){let{type:t,...l}=e;if(t===h.Single)return r(J,{role:"radiogroup",...l,ref:o});if(t===h.Multiple)return r(K,{role:"toolbar",...l,ref:o});throw Error(`Missing prop \`type\` expected on \`${v}\``)},"ToggleGroup")),[j,k]=P(v),J=g(p(function(e,o){let{value:t,defaultValue:l,onValueChange:n=p(()=>{},"onValueChange"),...u}=e,[s,i]=nt({prop:t,defaultProp:l??"",onChange:n,caller:v});return r(j,{scope:e.__scopeToggleGroup,type:h.Single,value:w(()=>s?[s]:[],[s]),onItemActivate:i,onItemDeactivate:d(()=>i(""),[i]),children:r(z,{...u,ref:o})})},"ToggleGroupImplSingle")),K=g(p(function(e,o){let{value:t,defaultValue:l,onValueChange:n=p(()=>{},"onValueChange"),...u}=e,[s,i]=nt({prop:t,defaultProp:l??[],onChange:n,caller:v}),c=d((f)=>i((b=[])=>[...b,f]),[i]),m=d((f)=>i((b=[])=>b.filter((x)=>x!==f)),[i]);return r(j,{scope:e.__scopeToggleGroup,type:h.Multiple,value:s,onItemActivate:c,onItemDeactivate:m,children:r(z,{...u,ref:o})})},"ToggleGroupImplMultiple")),[L,N]=P(v),z=g(p(function(e,o){let{__scopeToggleGroup:t,disabled:l=!1,rovingFocus:n=!0,orientation:u,dir:s,loop:i=!0,...c}=e,m=S(t),f=Jt(s),b={dir:f,...c};return r(L,{scope:t,rovingFocus:n,disabled:l,children:n?r(ci,{asChild:!0,...m,orientation:u,dir:f,loop:i,children:r(W.div,{...b,ref:o})}):r(W.div,{...b,ref:o})})},"ToggleGroupImpl")),T="ToggleGroupItem",Al=g(p(function(e,o){let t=k(T,e.__scopeToggleGroup),l=N(T,e.__scopeToggleGroup),n=S(e.__scopeToggleGroup),u=t.value.includes(e.value),s=l.disabled||e.disabled,i={...e,pressed:u,disabled:s},c=a(null);return l.rovingFocus?r(ui,{asChild:!0,...n,focusable:!s,active:u,ref:c,children:r(I,{...i,ref:o})}):r(I,{...i,ref:o})},"ToggleGroupItem")),I=g(p(function(e,o){let{__scopeToggleGroup:t,value:l,...n}=e,u=k(T,t),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},i=u.type===h.Single?s:void 0;return r(E,{...i,...n,ref:o,onPressedChange:(c)=>{c?u.onItemActivate(l):u.onItemDeactivate(l)}})},"ToggleGroupItemImpl")),Q=Object.defineProperty,C=(e,o)=>Q(e,"name",{value:o,configurable:!0}),M="Toolbar",[X,le]=Te(M,[vr,V]),O=vr();V();var[Y,Z]=X(M),_l=g(C(function(e,o){let{__scopeToolbar:t,orientation:l="horizontal",dir:n,loop:u=!0,...s}=e,i=O(t),c=Jt(n);return r(Y,{scope:t,orientation:l,dir:c,children:r(ci,{asChild:!0,...i,orientation:l,dir:c,loop:u,children:r(W.div,{role:"toolbar","aria-orientation":l,dir:c,...s,ref:o})})})},"Toolbar")),ee="ToolbarSeparator",Ll=g(C(function(e,o){let{__scopeToolbar:t,...l}=e,n=Z(ee,t);return r(Rs,{orientation:n.orientation==="horizontal"?"vertical":"horizontal",...l,ref:o})},"ToolbarSeparator")),oa=g(C(function(e,o){let{__scopeToolbar:t,...l}=e,n=O(t);return r(ui,{asChild:!0,...n,focusable:!e.disabled,children:r(W.button,{type:"button",...l,ref:o})})},"ToolbarButton"));
|
|
2
|
+
export{Rs,El,Al,_l,Ll,oa};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e,n,k,u,z,
|
|
2
|
-
export{
|
|
1
|
+
import{e,n,k,u,F,z,Pt,Bt,Tl,Ct,mr,Cl,yn,ze,Sl,_s,Ft,Ls,gr,wn}from"./index.zkx4ryzt.js";import{le}from"./index.sw8gvntb.js";import{_}from"./index.rkgfxpm3.js";function Mi(t,{edgePathsClass:s="edges edgePaths"}={}){let r=t.insert("g").attr("class","root"),o=r.insert("g").attr("class","clusters"),i=r.insert("g").attr("class",s),a=r.insert("g").attr("class","edgeLabels"),l=r.insert("g").attr("class","nodes");return{clusters:o,edgePaths:i,edgeLabels:a,nodes:l,rootGroups:r}}e(Mi,"createLayoutElementGroups");async function L(t,s,r){if(s.label){let{shapeSvg:o,bbox:i}=await z(t,r===void 0?s:{...s,width:r});s.labelBBox={width:i.width,height:i.height},o.remove()}else s.labelBBox={width:0,height:0}}e(L,"measureGroupLabel");async function Ni(t,s,r){let o=await Bt(t,s,r),i=o.node()?.getBBox()??{width:0,height:0};return s.width=i.width,s.height=i.height,o}e(Ni,"insertMeasuredNode");function x(t,s,r){let o=t,i=new Set;while(o){if(o.dir)return o.dir;if(!o.parentId||i.has(o.parentId))break;i.add(o.parentId),o=s.get(o.parentId)}return r}e(x,"resolveNodeDir");async function D(t,s,r={}){let o=new le({multigraph:!0,compound:!0}),i=[...s.edges],a=u(),l=Mi(t),{edgeLabels:d,nodes:c}=l,g=new Map,b=new Map(s.nodes.map((f)=>[f.id,f])),E=s.direction,h=t.node()!=null;await Promise.all(s.nodes.map(async(f)=>{if(f.isGroup){if(h){let w=r.unwrapGroupLabels&&f.labelType!=="markdown";await L(c,f,w?Number.POSITIVE_INFINITY:void 0)}o.setNode(f.id,{...f})}else{if(h){let w=await Ni(c,f,{config:a,dir:x(f,b,E)});g.set(f.id,w)}o.setNode(f.id,{...f})}}));for(let f of i){if(h&&_s(f))await Ft(d,f);if(o.setEdge(f.start,f.end,{...f},f.id),!s.edges.some((v)=>v.id===f.id))s.edges.push(f)}if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:f}=await (_("vfe8maj3"),import("./sizeCapture-2Q2CQKSF.vfe8maj3.js"));f(t,s)}return{graph:o,groups:l,nodeElements:g}}e(D,"createGraphWithElements");var Q=new Map,m=new Map,S=new Map,q=e(()=>{m.clear(),S.clear(),Q.clear()},"clear"),p=e((t,s)=>{let r=m.get(s)||[];return n.trace("In isDescendant",s," ",t," = ",r.includes(t)),r.includes(t)},"isDescendant"),K=e((t,s)=>{let r=m.get(s)||[];if(n.info("Descendants of ",s," is ",r),n.info("Edge is ",t),t.v===s||t.w===s)return!1;if(!r)return n.debug("Tilt, ",s,",not in descendants"),!1;return r.includes(t.v)||p(t.v,s)||p(t.w,s)||r.includes(t.w)},"edgeInCluster"),R=e((t,s,r,o)=>{n.debug("Copying children of ",t,"root",o,"data",s.node(t),o);let i=s.children(t)||[];if(t!==o)i.push(t);n.debug("Copying (nodes) clusterId",t,"nodes",i),i.forEach((a)=>{if(s.children(a).length>0)R(a,s,r,o);else{let l=s.node(a);if(n.info("cp ",a," to ",o," with parent ",t),r.setNode(a,l),o!==s.parent(a))n.debug("Setting parent",a,s.parent(a)),r.setParent(a,s.parent(a));if(t!==o&&a!==t)n.debug("Setting parent",a,t),r.setParent(a,t);else n.info("In copy ",t,"root",o,"data",s.node(t),o),n.debug("Not Setting parent for node=",a,"cluster!==rootId",t!==o,"node!==clusterId",a!==t);let d=s.edges(a);n.debug("Copying Edges",d),d.forEach((c)=>{n.info("Edge",c);let g=s.edge(c.v,c.w,c.name);n.info("Edge data",g,o);try{if(K(c,o))n.info("Copying as ",c.v,c.w,g,c.name),r.setEdge(c.v,c.w,g,c.name),n.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]));else n.info("Skipping copy of edge ",c.v,"-->",c.w," rootId: ",o," clusterId:",t)}catch(b){n.error(b)}})}n.debug("Removing node",a),s.removeNode(a)})},"copy"),T=e((t,s)=>{let r=s.children(t),o=[...r];for(let i of r)S.set(i,t),o=[...o,...T(i,s)];return o},"extractDescendants"),U=e((t,s,r)=>{let o=t.edges().filter((c)=>c.v===s||c.w===s),i=t.edges().filter((c)=>c.v===r||c.w===r),a=o.map((c)=>({v:c.v===s?r:c.v,w:c.w===s?s:c.w})),l=i.map((c)=>({v:c.v,w:c.w}));return a.filter((c)=>l.some((g)=>c.v===g.v&&c.w===g.w))},"findCommonEdges"),fn=e((t,s,r)=>{let o=s.children(t);if(n.trace("Searching children of id ",t,o),o.length<1)return t;let i;for(let a of o){let l=fn(a,s,r),d=U(s,r,l);if(l)if(d.length>0)i=l;else return l}return i},"findNonClusterChild"),y=e((t)=>{if(!Q.has(t))return t;if(!Q.get(t).externalConnections)return t;if(Q.has(t))return Q.get(t).id;return t},"getAnchorId"),ul=e((t,s)=>{if(!t||s>10){n.debug("Opting out, no graph ");return}else n.debug("Opting in, graph ");t.nodes().forEach(function(r){if(t.children(r).length>0)n.debug("Cluster identified",r," Replacement id in edges: ",fn(r,t,r)),m.set(r,T(r,t)),Q.set(r,{id:fn(r,t,r),clusterData:t.node(r)})}),t.nodes().forEach(function(r){let o=t.children(r),i=t.edges();if(o.length>0)n.debug("Cluster identified",r,m),i.forEach((a)=>{let l=p(a.v,r),d=p(a.w,r);if(l^d)n.debug("Edge: ",a," leaves cluster ",r),n.debug("Descendants of XXX ",r,": ",m.get(r)),Q.get(r).externalConnections=!0});else n.debug("Not a cluster ",r,m)});for(let r of Q.keys()){let o=Q.get(r).id,i=t.parent(o);if(i!==r&&Q.has(i)&&!Q.get(i).externalConnections)Q.get(r).id=i;let a=t.edges().some((l)=>l.v===r);if(o&&Q.get(r)?.externalConnections&&a&&M(t,o,r)){let l=Z(t,r,t.parent(o));if(l)Q.get(r).id=l}}t.edges().forEach(function(r){let o=t.edge(r);n.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),n.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(t.edge(r)));let{v:i,w:a}=r;if(n.debug("Fix XXX",Q,"ids:",r.v,r.w,"Translating: ",Q.get(r.v)," --- ",Q.get(r.w)),Q.get(r.v)||Q.get(r.w)){if(n.debug("Fixing and trying - removing XXX",r.v,r.w,r.name),i=y(r.v),a=y(r.w),t.removeEdge(r.v,r.w,r.name),i!==r.v){let l=t.parent(i);Q.get(l).externalConnections=!0,o.fromCluster=r.v}if(a!==r.w){let l=t.parent(a);Q.get(l).externalConnections=!0,o.toCluster=r.w}n.debug("Fix Replacing with XXX",i,a,r.name),t.setEdge(i,a,o,r.name)}}),P(t,0),n.trace(Q)},"adjustClustersAndEdges"),P=e((t,s)=>{if(s>10){n.error("Bailing out");return}let r=t.nodes(),o=!1;for(let i of r){let a=t.children(i);o=o||a.length>0}if(!o){n.debug("Done, no node has children",t.nodes());return}n.debug("Nodes = ",r,s);for(let i of r)if(n.debug("Extracting node",i,Q,Q.has(i)&&!Q.get(i).externalConnections,!t.parent(i),t.node(i),t.children("D")," Depth ",s),!Q.has(i))n.debug("Not a cluster",i,s);else if(!Q.get(i).externalConnections&&t.children(i)&&t.children(i).length>0){n.debug("Cluster without external connections, without a parent and with children",i,s);let l=t.graph().rankdir==="TB"?"LR":"TB";if(Q.get(i)?.clusterData?.dir)l=Q.get(i).clusterData.dir,n.debug("Fixing dir",Q.get(i).clusterData.dir,l);let d=new le({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});R(i,t,d,i),t.setNode(i,{clusterNode:!0,id:i,clusterData:Q.get(i).clusterData,label:Q.get(i).label,graph:d})}else n.debug("Cluster ** ",i," **not meeting the criteria !externalConnections:",!Q.get(i).externalConnections," no parent: ",!t.parent(i)," children ",t.children(i)&&t.children(i).length>0,t.children("D"),s),n.debug(Q);r=t.nodes(),n.debug("New list of nodes",r);for(let i of r){let a=t.node(i);if(n.debug(" Now next level",i,a),a?.clusterNode)P(a.graph,s+1)}},"extractor"),B=e((t,s)=>{if(s.length===0)return[];let r=Object.assign([],s);return s.forEach((o)=>{let i=t.children(o),a=B(t,i);r=[...r,...a]}),r},"sorter"),Oi=e((t)=>B(t,t.children()),"sortNodesByHierarchy"),M=e((t,s,r)=>{let o=t.parent(s);while(o&&o!==r){let i=Q.get(o);if(i&&!i.externalConnections)return!0;o=t.parent(o)}return!1},"isNodeInExtractableCluster"),Z=e((t,s,r)=>{let o=t.children(s)??[];for(let i of o){if(i===r||p(i,r))continue;let a=fn(i,t,s);if(!a)continue;if(!M(t,a,s))return a}return null},"findSafeAnchorNode");function it({prepareLayout:t,measureLayout:s,runLayoutCore:r,paintLayout:o,afterPaint:i,paintOptions:a}){let l=s??hn;return e(async function(c,g,b,E){let h=g.select("g");(b?.insertMarkers??wn)(h,c.markers,c.type,c.diagramId),Di();let f={element:h,helpers:b,options:E};f.preparedLayout=await t?.(c,f);let w=await l(c,f),v=await r(c,f),C={...f,measure:w};if(o)await o(c,C,v);else await A(c,C,a);await i?.(c,C,v)},"render")}e(it,"createCommonLayoutRenderer");function Di(){Tl(),Sl(),Cl(),q()}e(Di,"clearLayoutRenderState");async function hn(t,{element:s},r){return await D(s,t,r)}e(hn,"defaultMeasureLayout");async function A(t,s,r={}){let{measure:o}=s,{groups:i}=o;for(let l of r.getNodes?.(t,s)??t.nodes){if(r.skipNode?.(l,s))continue;await X(i,l,s,r)}let a=O(t.nodes);for(let l of t.edges){if(j(l,r))continue;await H(i,l,a,t,r,s)}}e(A,"paintLayoutData");async function X(t,s,r,o){if(s.clusterNode)Ct(s);else if(G(s,r,o))await mr(t.clusters,s);else Ct(s)}e(X,"paintLayoutNode");function G(t,s,r){return t.isGroup===!0&&(r.isCluster?.(t,s)??!0)}e(G,"shouldPaintAsCluster");function O(t){let s=new Map;for(let r of t)if(r?.id)s.set(r.id,r);return s}e(O,"buildNodeLookup");function j(t,s){return t.isLayoutOnly||Boolean(s.skipEdge?.(t))}e(j,"shouldSkipPaintEdge");async function H(t,s,r,o,i,a){let l=gr(t.edgePaths,{...s},i.clusterDb??new Map,o.type,N(s.start,s,r,a,i),N(s.end,s,r,a,i),o.diagramId,J(s,i),o.layoutAlgorithm);if(_s(s)){if(!yn.has(s.id))await Ft(t.edgeLabels,s);W(s,l)}}e(H,"paintLayoutEdge");function N(t,s,r,o,i){return i.getEdgeNode?.(t,s,o)??(t?r.get(t)??{}:{})}e(N,"getRenderedNode");function J(t,s){return typeof s.skipIntersect==="function"?s.skipIntersect(t):s.skipIntersect??!1}e(J,"shouldSkipIntersect");function W(t,s){let r=s?.updatedPath??s?.originalPath,o=k(),{subGraphTitleTotalMargin:i}=Pt({flowchart:o.flowchart??{}});if(t.label){let a=yn.get(t.id),{x:l,y:d}=Ls(t,s);a.attr("transform",`translate(${l}, ${d+i/2})`)}for(let[a,l]of[["startLeft",t.startLabelLeft],["startRight",t.startLabelRight],["endLeft",t.endLabelLeft],["endRight",t.endLabelRight]])if(l){let{x:d,y:c}=V(t,a,r);ze.get(t.id)[a].attr("transform",`translate(${d}, ${c})`)}}e(W,"positionRenderedEdgeLabel");var I={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function V(t,s,r){let o=t.terminalLabelCenters?.[s];if(o)return{...o};if(!r)return{x:t.x,y:t.y};let i=s.startsWith("start")?t.arrowTypeStart:t.arrowTypeEnd;return F.calcTerminalLabelPosition(i?10:0,I[s],r)}e(V,"terminalLabelTranslate");
|
|
2
|
+
export{Mi,Ni,Q,fn,ul,Oi,it,Di,hn};
|