Lines Matching refs:graphConfig

8 GraphViewer = function(container, xmlNode, graphConfig)  argument
10 this.init(container, xmlNode, graphConfig);
118 GraphViewer.prototype.init = function(container, xmlNode, graphConfig) argument
120 this.graphConfig = (graphConfig != null) ? graphConfig : {};
121 this.autoFit = (this.graphConfig['auto-fit'] != null) ?
122 this.graphConfig['auto-fit'] : this.autoFit;
123 this.autoCrop = (this.graphConfig['auto-crop'] != null) ?
124 this.graphConfig['auto-crop'] : this.autoCrop;
125 this.autoOrigin = (this.graphConfig['auto-origin'] != null) ?
126 this.graphConfig['auto-origin'] : this.autoOrigin;
127 this.allowZoomOut = (this.graphConfig['allow-zoom-out'] != null) ?
128 this.graphConfig['allow-zoom-out'] : this.allowZoomOut;
129 this.allowZoomIn = (this.graphConfig['allow-zoom-in'] != null) ?
130 this.graphConfig['allow-zoom-in'] : this.allowZoomIn;
131 this.forceCenter = (this.graphConfig['forceCenter'] != null) ?
132 this.graphConfig['forceCenter'] : this.forceCenter;
133 this.center = (this.graphConfig['center'] != null) ?
134 this.graphConfig['center'] : (this.center || this.forceCenter);
135 this.checkVisibleState = (this.graphConfig['check-visible-state'] != null) ?
136 this.graphConfig['check-visible-state'] : this.checkVisibleState;
137 this.toolbarItems = (this.graphConfig.toolbar != null) ?
138 this.graphConfig.toolbar.split(' ') : [];
143 this.lightboxClickEnabled = this.graphConfig.lightbox != false;
146 this.currentPage = parseInt(this.graphConfig.page) || 0;
147 this.responsive = ((this.graphConfig['responsive'] != null) ?
148 this.graphConfig['responsive'] : this.responsive) &&
150 this.pageId = this.graphConfig.pageId;
154 if (this.graphConfig['toolbar-position'] == 'inline')
179 if (this.graphConfig.border != null)
181 root.style.padding = this.graphConfig.border + 'px';
213 if (this.graphConfig.move)
236 if (this.graphConfig['toolbar-nohide'] == true)
411 urlParams['nav'] = (this.graphConfig.nav != false) ? '1' : '0';
414 this.graph.view.scale = this.graphConfig.zoom || 1;
419 this.graph.border = (this.graphConfig.border != null) ? this.graphConfig.border : 8;
444 if (this.graphConfig.toolbar != null)
448 else if (this.graphConfig.title != null && this.showTitleAsTooltip)
450 container.setAttribute('title', this.graphConfig.title);
465 this.graph.setTooltips(this.graphConfig.tooltips != false);
744 if (this.graphConfig['toolbar-nohide'] != true)
760 if (this.graphConfig['toolbar-nohide'] != true)
777 if (this.toolbar != null && this.graphConfig['toolbar-nohide'] != true)
790 if (this.graphConfig['toolbar-position'] == 'bottom')
796 if (this.graphConfig['toolbar-position'] != 'inline')
843 this.graph.maxFitScale = (maxScale != null) ? maxScale : (this.graphConfig.zoom ||
847 if (this.center || !(this.graphConfig.resize != false || container.style.height == ''))
854 if (this.graphConfig.resize != false || container.style.height == '')
890 …if (this.graphConfig.resize || ((this.zoomEnabled || !this.autoFit) && this.graphConfig.resize != …
903 if (this.graphConfig.resize != false || container.style.height == '')
953 var maxHeight = (this.graphConfig['max-height'] != null) ? this.graphConfig['max-height'] :
969 …else if (!this.widthIsEmpty && origin == null && !(this.graphConfig.resize != false || container.s…
971 …this.graph.center((!this.widthIsEmpty || bounds.width < this.minWidth) && this.graphConfig.resize …
1043 var layers = this.graphConfig.layers;
1045 var layerIds = this.graphConfig.layerIds;
1128 if (this.graphConfig['toolbar-position'] == 'bottom')
1132 else if (this.graphConfig['toolbar-position'] != 'inline')
1149 if (this.graphConfig['toolbar-position'] == 'inline')
1552 else if (this.graphConfig['toolbar-buttons'] != null)
1554 var def = this.graphConfig['toolbar-buttons'][token];
1569 if (this.graphConfig.title != null)
1574 filename.setAttribute('title', this.graphConfig.title);
1575 mxUtils.write(filename, this.graphConfig.title);
1587 toolbar.style.width = (this.graphConfig['toolbar-position'] == 'inline') ? 'auto' :
1591 if (this.graphConfig['toolbar-nohide'] != true)
1603 if (this.graphConfig['toolbar-position'] == 'bottom')
1609 if (this.graphConfig['toolbar-position'] != 'inline')
1672 if (this.graphConfig['toolbar-nohide'] != true)
1695 var def = this.graphConfig['toolbar-buttons'][token];
1714 graph.linkPolicy = this.graphConfig.target || graph.linkPolicy;
1716 graph.addClickHandler(this.graphConfig.highlight, mxUtils.bind(this, function(evt, href)
1774 if (this.graphConfig.lightbox == 'open' || window.self !== window.top)
1783 ((this.graphConfig.editable != null) ?
1784 this.graphConfig.editable : true);
1792 param.edit = this.graphConfig.edit || '_blank';
1810 if (this.graphConfig != null && this.graphConfig.nav != false)
1815 if (this.graphConfig != null && this.graphConfig.highlight != null)
1817 param.highlight = this.graphConfig.highlight.substring(1);
1889 urlParams['page-id'] = this.graphConfig.pageId;
1890 …urlParams['layer-ids'] = (this.graphConfig.layerIds != null && this.graphConfig.layerIds.length > …
1891 ? this.graphConfig.layerIds.join(' ') : null;
1892 urlParams['nav'] = (this.graphConfig.nav != false) ? '1' : '0';
1903 Editor.prototype.editButtonLink = this.graphConfig.edit;
1904 Editor.prototype.editButtonFunc = this.graphConfig.editFunc;
1988 if (this.graphConfig.move)