1"use strict";(self.webpackChunkwanghley_com=self.webpackChunkwanghley_com||[]).push([[7141],{7274(e,t,n){function i(e,t){var n,i,a;e.accDescr&&(null===(n=t.setAccDescription)||void 0===n||n.call(t,e.accDescr));e.accTitle&&(null===(i=t.setAccTitle)||void 0===i||i.call(t,e.accTitle));e.title&&(null===(a=t.setDiagramTitle)||void 0===a||a.call(t,e.title))}n.d(t,{S:()=>i}),(0,n(32748).K2)(i,"populateCommonDb")},94787(e,t,n){n.d(t,{m:()=>c});var i,a=n(32748),c=(i=class{constructor(e){this.init=e,this.records=this.init()}reset(){this.records=this.init()}},(0,a.K2)(i,"ImperativeState"),i)},37141(e,t,n){n.d(t,{diagram:()=>f});var i=n(4363),a=n(7274),c=n(94787),o=n(85640),r=n(51717),l=n(32748),s=n(55502),d=new c.m(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",children:[]}]})),h=(0,l.K2)(()=>{d.reset(),(0,r.IU)()},"clear"),g=(0,l.K2)(()=>d.records.stack[0],"getRoot"),p=(0,l.K2)(()=>d.records.cnt,"getCount"),w=r.UI.treeView,m=(0,l.K2)(()=>(0,o.$t)(w,(0,r.zj)().treeView),"getConfig"),k={clear:h,addNode:(0,l.K2)((e,t)=>{for(;e<=d.records.stack[d.records.stack.length-1].level;)d.records.stack.pop();const n={id:d.records.cnt++,level:e,name:t,children:[]};d.records.stack[d.records.stack.length-1].children.push(n),d.records.stack.push(n)},"addNode"),getRoot:g,getCount:p,getConfig:m,getAccTitle:r.iN,getAccDescription:r.m7,getDiagramTitle:r.ab,setAccDescription:r.EI,setAccTitle:r.SV,setDiagramTitle:r.ke},u=(0,l.K2)(e=>{(0,a.S)(e,k),e.nodes.map(e=>k.addNode(e.indent?parseInt(e.indent):0,e.name))},"populate"),b={parse:(0,l.K2)(async e=>{const t=await(0,s.qg)("treeView",e);l.Rm.debug(t),u(t)},"parse")},x=(0,l.K2)((e,t,n,i,a)=>{const c=i.append("text").text(n.name).attr("dominant-baseline","middle").attr("class","treeView-node-label"),o=c.node().getBBox(),r=o.height,l=o.width,s=r+2*a.paddingY,d=l+2*a.paddingX;c.attr("x",e+a.paddingX),c.attr("y",t+s/2),n.BBox={x:e,y:t,width:d,height:s}},"positionLabel"),K=(0,l.K2)((e,t,n,i,a,c)=>e.append("line").attr("x1",t).attr("y1",n).attr("x2",i).attr("y2",a).attr("stroke-width",c).attr("class","treeView-node-line"),"positionLine"),v=(0,l.K2)((e,t,n)=>{let i=0,a=0;const c=(0,l.K2)((e,t,n,c)=>{const o=c*(n.rowIndent+n.paddingX);x(o,i,t,e,n);const r=t.BBox,l=r.height,s=r.width;K(e,o-n.rowIndent,i+l/2,o,i+l/2,n.lineThickness),a=Math.max(a,o+s),i+=l},"drawNode"),o=(0,l.K2)(function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;c(e,t,n,i),t.children.forEach(e=>{o(e,i+1)});const a=t.BBox,r=a.x,l=a.y,s=a.height;if(t.children.length){const i=t.children[t.children.length-1].BBox,a=i.y,c=i.height;K(e,r+n.paddingX,l+s,r+n.paddingX,a+c/2+n.lineThickness/2,n.lineThickness)}},"processNode");return o(t),{totalHeight:i,totalWidth:a}},"drawTree"),T={labelFontSize:"16px",labelColor:"black",lineColor:"black"},f={db:k,renderer:{draw:(0,l.K2)((e,t,n,a)=>{l.Rm.debug("Rendering treeView diagram\n"+e);const c=a.db,o=c.getRoot(),s=c.getConfig(),d=(0,i.D)(t),h=d.append("g");h.attr("class","tree-view");const g=v(h,o,s),p=g.totalHeight,w=g.totalWidth;d.attr("viewBox","-".concat(s.lineThickness/2," 0 ").concat(w," ").concat(p)),(0,r.a$)(d,p,w,s.useMaxWidth)},"draw")},parser:b,styles:(0,l.K2)(e=>{let t=e.treeView;const n=(0,o.$t)(T,t),i=n.labelFontSize,a=n.labelColor,c=n.lineColor;return"\n .treeView-node-label {\n font-size: ".concat(i,";\n fill: ").concat(a,";\n }\n .treeView-node-line {\n stroke: ").concat(c,";\n }\n ")},"styles")}}}]); 2//# sourceMappingURL=7141.dfb34605.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.