Lines Matching refs:graph

59 			graph: {background: '#F1FAEE'}},
61 graph: {background: '#F4F1DE', gridColor: '#D4D0C0'}},
64 graph: {background: '#DAD2D8', gridColor: '#ABA4A9'}},
66 graph: {background: '#283618', gridColor: '#48632C'}},
68 graph: {background: '#114B5F', gridColor: '#0B3240'}},
80 graph: {background: '#FCE7CD', gridColor: '#CFBDA8'}},
84 graph: {background: '#B0E3E6', gridColor: '#87AEB0'}},
88 graph: {background: '#EEEEEE'}},
91 graph: {background: '#FAD9D5', gridColor: '#BFA6A3'}},
94 graph: {background: '#09555B', gridColor: '#13B4C2'}},
98 graph: {background: '#182E3E', gridColor: '#4D94C7'}}
402 var graph = format.editorUi.editor.graph;
405 state.edges.length == 0 && graph.isTableCell(state.vertices[0]);
409 var graph = format.editorUi.editor.graph;
412 state.edges.length == 0 && graph.isTableCell(state.vertices[0]);
418 var graph = format.editorUi.editor.graph;
419 var style = graph.getCellStyle(cell);
424 var graph = format.editorUi.editor.graph;
427 graph.isTable(state.vertices[0]);
432 var graph = format.editorUi.editor.graph;
433 var style = graph.getCellStyle(cell);
438 var graph = format.editorUi.editor.graph;
441 graph.isTable(state.vertices[0]);
461 var graph = format.editorUi.editor.graph;
463 return graph.isCellConnectable(cell);
489 var graph = format.editorUi.editor.graph;
491 return cell != null && (graph.isSwimlane(cell) || graph.model.getChildCount(cell) > 0);
499 var graph = format.editorUi.editor.graph;
501 return cell != null && ((graph.isContainer(cell) && state.style['collapsible'] != '0') ||
502 (!graph.isContainer(cell) && state.style['collapsible'] == '1'));
510 !format.editorUi.editor.graph.isSwimlane(state.vertices[0]) &&
516 var model = format.editorUi.editor.graph.model;
526 …var geo = (state.vertices.length > 0) ? format.editorUi.editor.graph.getCellGeometry(state.vertice…
542 return format.editorUi.editor.graph.isSwimlane(state.vertices[0]) ||
548 … return state.vertices.length > 0 && format.editorUi.editor.graph.isContainer(state.vertices[0]);
936 this.shape.state.view.graph.shapeBackgroundColor :
2237 var node2 = (this.graph.themes != null) ?
2238 this.graph.themes['default-old'] :
2244 dec2.decode(node2, this.graph.getStylesheet());
2247 else if (style != this.graph.currentStyle)
2249 var node2 = (this.graph.themes != null) ?
2250 this.graph.themes[style] :
2256 dec2.decode(node2, this.graph.getStylesheet());
2260 this.graph.currentStyle = style;
2261 this.graph.mathEnabled = (urlParams['math'] == '1' || node.getAttribute('math') == '1');
2267 this.graph.setBackgroundImage(this.graph.parseBackgroundImage(bgImg));
2271 this.graph.setBackgroundImage(null);
2274 mxClient.NO_FO = ((this.graph.mathEnabled && !this.useForeignObjectForMath)) ?
2277 this.graph.useCssTransforms = !mxClient.NO_FO &&
2279 this.graph.isCssTransformsSupported();
2280 this.graph.updateCssTransform();
2282 this.graph.setShadowVisible(node.getAttribute('shadow') == '1', false);
2298 this.graph.addExtFont(extFonts[i].name, extFonts[i].url);
2306 else if (this.graph.extFonts != null && this.graph.extFonts.length > 0)
2308 this.graph.extFonts = [];
2334 if (this.graph.currentStyle != null && this.graph.currentStyle != 'default-style2')
2336 node.setAttribute('style', this.graph.currentStyle);
2339 var bgImg = this.graph.getBackgroundImageObject(
2340 this.graph.backgroundImage,
2349 node.setAttribute('math', (this.graph.mathEnabled) ? '1' : '0');
2350 node.setAttribute('shadow', (this.graph.shadowVisible) ? '1' : '0');
2352 if (this.graph.extFonts != null && this.graph.extFonts.length > 0)
2354 var strExtFonts = this.graph.extFonts.map(function(ef)
2418 this.graph.mathEnabled = (urlParams['math'] == '1');
2419 this.graph.view.x0 = null;
2420 this.graph.view.y0 = null;
2421 mxClient.NO_FO = ((this.graph.mathEnabled && !this.useForeignObjectForMath)) ?
2424 this.graph.useCssTransforms = !mxClient.NO_FO &&
2426 this.graph.isCssTransformsSupported();
2427 this.graph.updateCssTransform();
2439 mxClient.NO_FO = ((this.graph.mathEnabled && !this.useForeignObjectForMath) &&
2442 this.graph.useCssTransforms = !mxClient.NO_FO &&
2444 this.graph.isCssTransformsSupported();
2445 this.graph.updateCssTransform();
2547 this.graph.addListener(mxEvent.SIZE, mxUtils.bind(this, function(sender, evt)
2549 if (this.graph.container != null && this.graph.mathEnabled && !this.graph.blockMathRender)
2551 Editor.MathJaxRender(this.graph.container);
3040 if (this.graph.isRelativeUrl(url))
3209 var extFonts = this.graph.getCustomFonts();
3365 ignoreSelection, scale, transparentBackground, addShadow, converter, graph, border, noCrop, grid, argument
3372 graph = (graph != null) ? graph : this.graph;
3375 var bg = (transparentBackground) ? null : graph.background;
3390 bg = (keepTheme) ? this.graph.defaultPageBackgroundColor : '#ffffff';
3393 this.convertImages(graph.getSvg(null, null, border, noCrop, null, ignoreSelection,
3456 var view = graph.view;
3462 var phase = graph.gridSize * view.gridSteps * scale;
3464 var b = graph.getGraphBounds();
3534 this.graph.addSvgShadow(svgRoot);
3537 if (this.graph.mathEnabled)
3781 if (ui.editor.graph.getModel().getParent(cell) != null)
4054 var graph = editor.graph;
4058 return graph.shadowVisible;
4066 graph.model.execute(change);
4073 apply(graph.shadowVisible);
4106 var graph = editor.graph;
4108 if (graph.isEnabled())
4146 if (this.isMathOptionVisible() && graph.isEnabled() && typeof(MathJax) !== 'undefined')
4151 return graph.mathEnabled;
4161 apply(graph.mathEnabled);
4476 var view = this.editorUi.editor.graph.view;
4561 var graph = this.editorUi.editor.graph;
4609 var graph = this.editorUi.editor.graph;
4619 graph.getModel().beginUpdate();
4661 graph.setCellStyles(prop.countProperty, allVals.length, graph.getSelectionCells());
4668 graph.setCellStyles(pName, newVal, graph.getSelectionCells());
4692 graph.setCellStyles(prop.dependentProps[i], vals, graph.getSelectionCells());
4700 prop.onChange(graph, newVal);
4704 'values', changedVals, 'cells', graph.getSelectionCells()));
4708 graph.getModel().endUpdate();
5193 var graph = ui.editor.graph;
5265 graph.getModel().beginUpdate();
5272 var style = graph.getModel().getStyle(cells[i]);
5279 …var defaults = (graph.getModel().isVertex(cells[i])) ? graph.defaultVertexStyle : graph.defaultEdg…
5299 graph.getModel().isVertex(cells[i]))
5328 if (graph.getModel().isVertex(cells[i]))
5335 graph.getModel().setStyle(cells[i], style);
5340 graph.getModel().endUpdate();
5373 btn.style.backgroundColor = mxUtils.getValue(graph.defaultVertexStyle,
5378 btn.style.backgroundColor = colorset['fill'] || mxUtils.getValue(graph.defaultVertexStyle,
5388 btn.style.border = b + ' ' + mxUtils.getValue(graph.defaultVertexStyle,
5393 … btn.style.border = b + ' ' + (colorset['stroke'] || mxUtils.getValue(graph.defaultVertexStyle,
5404 var bg = mxUtils.getValue(graph.defaultVertexStyle, mxConstants.STYLE_FILLCOLOR, '#ffffff');
5405 var bd = mxUtils.getValue(graph.defaultVertexStyle, mxConstants.STYLE_STROKECOLOR, '#000000');
5509 var graph = this.editorUi.editor.graph;
5510 var state = (ss.cells.length == 1) ? graph.view.getState(ss.cells[0]) : null;
5873 var style = this.graph.getCellStyle(cell);
5880 var rackLayout = new mxStackLayout(this.graph, false);
5981 var graph = this;
5982 var allTags = graph.hiddenTags.slice();
5999 tagCloud.style.border = (graph.isEnabled()) ? '1px solid #808080' : 'none';
6000 tagCloud.style.bottom = (graph.isEnabled()) ? '48px' : '10px';
6006 var cells = graph.getSelectionCells();
6011 if (graph.isCellVisible(cells[i]))
6017 graph.setSelectionCells(visible);
6024 graph.hiddenTags = [];
6028 graph.hiddenTags = allTags.slice();
6032 graph.refresh();
6037 graph.hiddenTags = [];
6041 allTags = graph.hiddenTags.slice();
6045 graph.refresh();
6068 graph.addListener(mxEvent.ROOT, function()
6070 allTags = graph.hiddenTags.slice();
6098 graph.hiddenTags = temp;
6100 graph.refresh();
6105 var cells = graph.getCellsForTags(
6108 if (graph.isEnabled())
6110 graph.setSelectionCells(cells);
6114 graph.highlightCells(cells);
6118 var visible = mxUtils.indexOf(graph.hiddenTags, tag) < 0;
6141 var idx = mxUtils.indexOf(graph.hiddenTags, tag);
6145 setAllVisible(mxUtils.indexOf(graph.hiddenTags, tag) >= 0);
6151 graph.hiddenTags.push(tag);
6155 graph.hiddenTags.splice(idx, 1);
6159 graph.refresh();
6191 if (visible && graph.hiddenTags.length > 0)
6206 if (graph.isEnabled())
6240 graph.removeTagsForCells(
6241 graph.model.getDescendants(
6242 graph.model.getRoot()), [tag]);
6243 graph.refresh();
6268 graph.addTagsForCells(graph.getSelectionCells(), [tag]);
6272 graph.removeTagsForCells(graph.getSelectionCells(), [tag]);
6298 var tags = graph.getAllTags();
6310 if (graph.isSelectionEmpty())
6316 refreshTags(allTags, graph.getCommonTagsForCells(
6317 graph.getSelectionCells()));
6322 graph.selectionModel.addListener(mxEvent.CHANGE, refreshUi);
6323 graph.model.addListener(mxEvent.CHANGE, refreshUi);
6324 graph.addListener(mxEvent.REFRESH, refreshUi);
6336 if (graph.isEnabled())
6643 if (this.graph.mathEnabled && !mxClient.NO_FO &&
6646 this.graph.container.firstChild.nodeName == 'svg')
6652 else if (this.webKitForceRepaintNode != null && (!this.graph.mathEnabled ||
6653 (this.graph.container.firstChild.nodeName != 'svg' &&
6654 this.graph.container.firstChild != this.webKitForceRepaintNode)))
7813 var graph = editorUi.editor.graph;
8040 editorUi.editor.graph.pageFormat || mxConstants.PAGE_FORMAT_A4_PORTRAIT);
8076 if (graph.themes != null && graph.defaultThemeName == 'darkTheme')
8078 darkStylesheet = graph.stylesheet;
8079 graph.stylesheet = graph.getDefaultStylesheet()
8080 graph.refresh();
8226 mxClient.NO_FO = (this.graph.mathEnabled && !editorUi.editor.useForeignObjectForMath) ?
8231 if (this.graph.mathEnabled)
8248 var enableFlowAnimation = graph.enableFlowAnimation;
8249 graph.enableFlowAnimation = false;
8251 if (graph.themes != null && graph.defaultThemeName == 'darkTheme')
8253 temp = graph.stylesheet;
8254 graph.stylesheet = graph.getDefaultStylesheet()
8255 graph.refresh();
8262 graph.enableFlowAnimation = enableFlowAnimation;
8267 graph.stylesheet = temp;
8268 graph.refresh();
8357 var tempGraph = (page == editorUi.currentPage) ? graph : null;
8361 tempGraph = editorUi.createTemporaryGraph(graph.stylesheet);
8422 if (tempGraph != graph)
8430 pv = printGraph(graph);
8465 graph.stylesheet = darkStylesheet;
8466 graph.refresh();
8485 graph.openLink('https://www.diagrams.net/doc/faq/print-diagram');
8579 … if (this.shadowVisible != null && this.shadowVisible != this.ui.editor.graph.shadowVisible)
8581 this.ui.editor.graph.setShadowVisible(this.shadowVisible);