| | |
| | | this.graph.positionContent('top',{ padding: { left: 0 }}) |
| | | // this.graph.zoomToFit() |
| | | this.graph.freeze('flowChartView') |
| | | if(flowCode!='planFlow' && flowCode!='wltFlow' && flowCode!='xbsy' && flowCode!='hxsy' && flowCode!='kybgFlow' |
| | | && flowCode!='jsfaFlow' && flowCode!='jzjysFlow' && flowCode!='zjgcFlow'){ |
| | | /* if(params.flowCode!='planFlow'){ |
| | | if(this.graph.scroller){ |
| | | for(let graph in this.graph.scroller.widgetOptions){ |
| | | this.graph.scroller.widgetOptions[graph] = false |
| | |
| | | } |
| | | // this.graph.disablePanning() |
| | | this.graph.lockScroller() |
| | | } |
| | | }*/ |
| | | } else { |
| | | this.graph.unfreeze('flowChartView') |
| | | this.dataForm.id = null |
| | |
| | | this.graph = new Graph({ |
| | | container: document.getElementById('flowChartView'), |
| | | width: document.documentElement.clientWidth*0.5, |
| | | height:this.flowChartHeight? 595:document.documentElement.clientHeight-220, |
| | | height:400, |
| | | // async: true, |
| | | // grid: { |
| | | // visible: true, |