Lines Matching refs:graph

86 	function getGraphAttributes(graph)   argument
105 var bounds = graph.getGraphBounds().clone();
106 var sc = graph.view.scale;
107 var tr = graph.view.translate;
113 var availableWidth = graph.pageFormat.width;
114 var availableHeight = graph.pageFormat.height;
129 attr['gridEnabled'] = graph.gridEnabled;
130 attr['gridSize'] = graph.gridSize;
131 attr['guidesEnabled'] = graph.graphHandler.guidesEnabled
132 attr['pageVisible'] = graph.pageVisible;
133 attr['pageScale'] = graph.pageScale;
134 attr['pageWidth'] = graph.pageFormat.width * hpages;
135 attr['pageHeight'] = graph.pageFormat.height * vpages;
136 attr['backgroundClr'] = graph.background;
137 attr['mathEnabled'] = graph.mathEnabled;
138 attr['shadowVisible'] = graph.shadowVisible;
392 function createEdge(cell, layerIndex, graph, xmlDoc, parentHeight, isChild) argument
394 var state = graph.view.getState(cell, true);
495 function convertMxCell2Shape(cell, layerIndex, graph, xmlDoc, parentHeight, parentGeo, isChild) argument
541 var subShape = convertMxCell2Shape(cell, layerIndex, graph, xmlDoc, geo.height, geo, true);
555 var subShape = convertMxCell2Shape(child, layerIndex, graph, xmlDoc, geo.height, geo, true);
575 var state = graph.view.getState(cell, true);
604 return createEdge(cell, layerIndex, graph, xmlDoc, parentHeight, isChild);
619 function convertMxModel2Page(graph, modelAttrib) argument
631 var model = graph.model;
633 var t = graph.view.translate;
634 var s = graph.view.scale;
635 var bounds = graph.getGraphBounds();
641 …vsdxCanvas.shiftX = Math.ceil((t.x - bounds.x / s) / graph.pageFormat.width) * graph.pageFormat.wi…
642 …vsdxCanvas.shiftY = Math.ceil((t.y - bounds.y / s) / graph.pageFormat.height) * graph.pageFormat.h…
650 var layers = graph.model.getChildCells(graph.model.root);
666 var shape = convertMxCell2Shape(cell, layerIndex, graph, xmlDoc, modelAttrib.pageHeight);
856 function collectLayers(graph, diagramName) argument
858 var layers = graph.model.getChildCells(graph.model.root);
880 var graph = editorUi.editor.graph;
885 if (graph.themes != null && graph.defaultThemeName == 'darkTheme')
887 temp = graph.stylesheet;
888 graph.stylesheet = graph.getDefaultStylesheet();
889 graph.refresh();
894 var modelAttrib = getGraphAttributes(graph);
895 pages[diagramName] = convertMxModel2Page(graph, modelAttrib);
896 collectLayers(graph, diagramName);
904 graph.stylesheet = temp;
905 graph.refresh();
910 var selectedCells = editorUi.editor.graph.getSelectionCells();
936 editorUi.editor.graph.setSelectionCells(selectedCells);
941 var graph = editorUi.editor.graph;
942 var modelAttrib = getGraphAttributes(graph);
944 pages[diagramName] = convertMxModel2Page(graph, modelAttrib);
945 collectLayers(graph, diagramName);