");return a.innerHTML=""+l,a},shouldBegin:e=>"name-shape"===e.target.get("name")});new G6.Minimap({size:[100,100],className:"minimap",type:"delegate"});graph=new G6.TreeGraph({container:"container",...defaultConfig,...t,plugins:[r,l],fitView:!0}),"function"==typeof a&&a(graph),graph.data(e),graph.render(),graph.zoom(t.defaultZoom||1);const i=e=>{const a=e.target.get("modelId"),t=graph.findById(a),l=t.getModel();l.collapsed=!l.collapsed,graph.layout(),graph.setItemState(t,"collapse",l.collapsed)};graph.on("collapse-text:click",e=>{i(e)}),graph.on("collapse-back:click",e=>{i(e)})};initGraph(data),"undefined"!=typeof window&&(window.onresize=()=>{graph&&!graph.get("destroyed")&&container&&container.scrollWidth&&container.scrollHeight&&graph.changeSize(container.scrollWidth,container.scrollHeight)})