LinkChartLayout.js 1.7 KB

12345
  1. /*
  2. All material copyright ESRI, All Rights Reserved, unless otherwise specified.
  3. See https://js.arcgis.com/4.24/esri/copyright.txt for details.
  4. */
  5. import{getAssetUrl as t}from"../../assets.js";let n,r=null;function a(){return!!r}function u(){return n||(n=import("../../chunks/lclayout.js").then((t=>t.l)).then((({default:n})=>n({locateFile:n=>t(`esri/libs/linkchartlayout/${n}`)}))).then((t=>{e(t)})),n)}function e(t){r=t}function o(t,n,a,u,e){const o=n.length,l=u.length,i=Float64Array.BYTES_PER_ELEMENT,y=Uint32Array.BYTES_PER_ELEMENT,c=16,p=c-1+o*(2*i)+l*(2*y),s=r._malloc(p);try{const p=s+c-s%c,f=p+o*i,E=f+o*i,h=E+l*y,m=()=>[r.HEAPF64.subarray(p>>3,(p>>3)+o),r.HEAPF64.subarray(f>>3,(f>>3)+o),r.HEAPU32.subarray(E>>2,(E>>2)+l),r.HEAPU32.subarray(h>>2,(h>>2)+l)],[L,A,P,T]=m();L.set(n),A.set(a),P.set(u),T.set(e);const _=t(o,p,f,l,E,h),[b,F,H,S]=m();return n.set(b),a.set(F),u.set(H),e.set(S),_}finally{r._free(s)}}var l,i,y,c,p,s;!function(t){function n(t,n,a,u){return o(r.applyForceDirectedLayout,t,n,a,u)}t.apply=n}(l||(l={})),function(t){function n(t,n,a,u){return o(r.applyCommunityLayout,t,n,a,u)}t.apply=n}(i||(i={})),function(t){function n(t,n,a,u){return o(r.applySimpleLayout,t,n,a,u)}t.apply=n}(y||(y={})),function(t){function n(t,n,a,u){return o(r.applyHierarchicalLayout,t,n,a,u)}t.apply=n}(c||(c={})),function(t){function n(t,n,a,u){return o(r.applyRadialTreeLayout,t,n,a,u)}t.apply=n}(p||(p={})),function(t){function n(t,n,a,u){return o(r.applySmartTreeLayout,t,n,a,u)}t.apply=n}(s||(s={}));export{i as LCCommunityLayout,l as LCForceDirectedLayout,c as LCHierarchicalLayout,p as LCRadialTreeLayout,y as LCSimpleLayout,s as LCSmartTreeLayout,r as _lclayout,a as isLoaded,u as load};