aboutsummaryrefslogtreecommitdiff
path: root/static/js/chunks/mermaid.esm.min/chunk-S67DUUA5.mjs
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-15 14:37:33 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-15 14:37:33 +0300
commit47fc02a8c71af4926148beb5d5cc0fc221aa5429 (patch)
treee2e5922b7fc16f3d25b02cd345ad534991d38629 /static/js/chunks/mermaid.esm.min/chunk-S67DUUA5.mjs
parent017c7b792f3e679f61b004ec132a36f866b39e9b (diff)
Auto-commit 2024-12-15
Diffstat (limited to 'static/js/chunks/mermaid.esm.min/chunk-S67DUUA5.mjs')
-rw-r--r--static/js/chunks/mermaid.esm.min/chunk-S67DUUA5.mjs1
1 files changed, 1 insertions, 0 deletions
diff --git a/static/js/chunks/mermaid.esm.min/chunk-S67DUUA5.mjs b/static/js/chunks/mermaid.esm.min/chunk-S67DUUA5.mjs
new file mode 100644
index 0000000..e7db630
--- /dev/null
+++ b/static/js/chunks/mermaid.esm.min/chunk-S67DUUA5.mjs
@@ -0,0 +1 @@
+import{a as p}from"./chunk-GTKDMUJJ.mjs";var o={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};function b(n,a){if(n===void 0||a===void 0)return{angle:0,deltaX:0,deltaY:0};n=t(n),a=t(a);let[c,e]=[n.x,n.y],[l,f]=[a.x,a.y],s=l-c,m=f-e;return{angle:Math.atan(m/s),deltaX:s,deltaY:m}}p(b,"calculateDeltaAndAngle");var t=p(n=>Array.isArray(n)?{x:n[0],y:n[1]}:n,"pointTransformer"),d=p(n=>({x:p(function(a,c,e){let l=0,f=t(e[0]).x<t(e[e.length-1]).x?"left":"right";if(c===0&&Object.hasOwn(o,n.arrowTypeStart)){let{angle:r,deltaX:h}=b(e[0],e[1]);l=o[n.arrowTypeStart]*Math.cos(r)*(h>=0?1:-1)}else if(c===e.length-1&&Object.hasOwn(o,n.arrowTypeEnd)){let{angle:r,deltaX:h}=b(e[e.length-1],e[e.length-2]);l=o[n.arrowTypeEnd]*Math.cos(r)*(h>=0?1:-1)}let s=Math.abs(t(a).x-t(e[e.length-1]).x),m=Math.abs(t(a).y-t(e[e.length-1]).y),i=Math.abs(t(a).x-t(e[0]).x),x=Math.abs(t(a).y-t(e[0]).y),u=o[n.arrowTypeStart],y=o[n.arrowTypeEnd],g=1;if(s<y&&s>0&&m<y){let r=y+g-s;r*=f==="right"?-1:1,l-=r}if(i<u&&i>0&&x<u){let r=u+g-i;r*=f==="right"?-1:1,l+=r}return t(a).x+l},"x"),y:p(function(a,c,e){let l=0,f=t(e[0]).y<t(e[e.length-1]).y?"down":"up";if(c===0&&Object.hasOwn(o,n.arrowTypeStart)){let{angle:r,deltaY:h}=b(e[0],e[1]);l=o[n.arrowTypeStart]*Math.abs(Math.sin(r))*(h>=0?1:-1)}else if(c===e.length-1&&Object.hasOwn(o,n.arrowTypeEnd)){let{angle:r,deltaY:h}=b(e[e.length-1],e[e.length-2]);l=o[n.arrowTypeEnd]*Math.abs(Math.sin(r))*(h>=0?1:-1)}let s=Math.abs(t(a).y-t(e[e.length-1]).y),m=Math.abs(t(a).x-t(e[e.length-1]).x),i=Math.abs(t(a).y-t(e[0]).y),x=Math.abs(t(a).x-t(e[0]).x),u=o[n.arrowTypeStart],y=o[n.arrowTypeEnd],g=1;if(s<y&&s>0&&m<y){let r=y+g-s;r*=f==="up"?-1:1,l-=r}if(i<u&&i>0&&x<u){let r=u+g-i;r*=f==="up"?-1:1,l+=r}return t(a).y+l},"y")}),"getLineFunctionsWithOffset");export{d as a};