You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
53 KiB
JavaScript

9 months ago
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4025],{45021:function(t,e,n){var i;t.exports=(i=n(50969),function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=7)}([function(t,e){t.exports=i},function(t,e,n){var i=n(0).FDLayoutConstants;function o(){}for(var r in i)o[r]=i[r];o.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,o.DEFAULT_RADIAL_SEPARATION=i.DEFAULT_EDGE_LENGTH,o.DEFAULT_COMPONENT_SEPERATION=60,o.TILE=!0,o.TILING_PADDING_VERTICAL=10,o.TILING_PADDING_HORIZONTAL=10,o.TREE_REDUCTION_ON_INCREMENTAL=!1,t.exports=o},function(t,e,n){var i=n(0).FDLayoutEdge;function o(t,e,n){i.call(this,t,e,n)}for(var r in o.prototype=Object.create(i.prototype),i)o[r]=i[r];t.exports=o},function(t,e,n){var i=n(0).LGraph;function o(t,e,n){i.call(this,t,e,n)}for(var r in o.prototype=Object.create(i.prototype),i)o[r]=i[r];t.exports=o},function(t,e,n){var i=n(0).LGraphManager;function o(t){i.call(this,t)}for(var r in o.prototype=Object.create(i.prototype),i)o[r]=i[r];t.exports=o},function(t,e,n){var i=n(0).FDLayoutNode,o=n(0).IMath;function r(t,e,n,o){i.call(this,t,e,n,o)}for(var a in r.prototype=Object.create(i.prototype),i)r[a]=i[a];r.prototype.move=function(){var t=this.graphManager.getLayout();this.displacementX=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementX=t.coolingFactor*t.maxNodeDisplacement*o.sign(this.displacementX)),Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementY=t.coolingFactor*t.maxNodeDisplacement*o.sign(this.displacementY)),null==this.child?this.moveBy(this.displacementX,this.displacementY):0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),t.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},r.prototype.propogateDisplacementToChildren=function(t,e){for(var n,i=this.getChild().getNodes(),o=0;o<i.length;o++)null==(n=i[o]).getChild()?(n.moveBy(t,e),n.displacementX+=t,n.displacementY+=e):n.propogateDisplacementToChildren(t,e)},r.prototype.setPred1=function(t){this.pred1=t},r.prototype.getPred1=function(){return pred1},r.prototype.getPred2=function(){return pred2},r.prototype.setNext=function(t){this.next=t},r.prototype.getNext=function(){return next},r.prototype.setProcessed=function(t){this.processed=t},r.prototype.isProcessed=function(){return processed},t.exports=r},function(t,e,n){var i=n(0).FDLayout,o=n(4),r=n(3),a=n(5),s=n(2),c=n(1),h=n(0).FDLayoutConstants,l=n(0).LayoutConstants,d=n(0).Point,g=n(0).PointD,p=n(0).Layout,u=n(0).Integer,y=n(0).IGeometry,f=n(0).LGraph,m=n(0).Transform;function E(){i.call(this),this.toBeTiled={}}for(var N in E.prototype=Object.create(i.prototype),i)E[N]=i[N];E.prototype.newGraphManager=function(){var t=new o(this);return this.graphManager=t,t},E.prototype.newGraph=function(t){return new r(null,this.graphManager,t)},E.prototype.newNode=function(t){return new a(this.graphManager,t)},E.prototype.newEdge=function(t){return new s(null,null,t)},E.prototype.initParameters=function(){i.prototype.initParameters.call(this,arguments),this.isSubLayout||(c.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=c.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLength