Lines Matching refs:graph

124                 mxVsdxCodec.prototype.scaleGraph = function(graph, scale) 
127 var model = graph.getModel();
492 var graph = new Graph();
493 graph.setExtendParents(false);
494 graph.setExtendParentsOnAdd(false);
495 graph.setConstrainChildren(false);
496 graph.setHtmlLabels(true);
497 graph.getModel().maintainEdgeParent = false;
498 return graph;
500 mxVsdxCodec.prototype.processPage = function (graph, page) {
502 var node = codec.encode(graph.getModel());
623 mxVsdxCodec.prototype.importPage = function (page, graph, parent, noSanitize)
630 graph.getModel().setValue(graph.getDefaultParent(), page.getPageName());
632 graph.addCell(backCell, graph.getModel().getRoot(), 0, null, null);
633 this.importPage(backPage, graph, graph.getDefaultParent());
642 this.layersMap[0] = graph.getDefaultParent();
681 var layerCell = graph.getDefaultParent();
686 graph.addCell(layerCell, graph.model.root, layerIndex);
711 this.addShape(graph, shape, p? p : parent, pageId, pageHeight);
719 … var edgeId = this.addConnectedEdge(graph, entry.getValue(), pageId, pageHeight);
734 … this.addUnconnectedEdge(graph, /* get */ (function (m, k) { if (m.entries == null)
744 this.sanitiseGraph(graph);
753 mxVsdxCodec.prototype.postImportPage = function(page, graph, callback)
864 … mxVsdxCodec.prototype.addShape = function (graph, shape, parent, pageId, parentHeight) {
887 v1 = this.addGroup(graph, shape, parent, pageId, parentHeight);
890 v1 = this.addVertex(graph, shape, parent, pageId, parentHeight);
903 graph.setLinkForCell(v1, lnkObj.extLink);
907 graph.setLinkForCell(v1, 'data:page/id,' + lnkObj.pageLink);
917 graph.setAttributeForCell(v1, props[i].key, props[i].val);
928 shape.setShapeIndex(graph.getModel().getChildCount(parent));
955 … mxVsdxCodec.prototype.addGroup = function (graph, shape, parent, pageId, parentHeight) {
977 …group = graph.insertVertex(parent, null, null, Math.floor(Math.round(o.x * 100) / 100), Math.floor…
981 …group = graph.insertVertex(parent, null, textLabel, Math.floor(Math.round(o.x * 100) / 100), Math.…
1010 this.addGroup(graph, subShape, group, pageId, d.y);
1013 this.addVertex(graph, subShape, group, pageId, d.y);
1042 this.addUnconnectedEdge(graph, group, subShape, parentHeight);
1048 shape.createLabelSubShape(graph, group);
1091 … mxVsdxCodec.prototype.addVertex = function (graph, shape, parent, pageId, parentHeight) {
1116 …v1 = graph.insertVertex(parent, null, null, Math.floor(Math.round(coordinates.x * 100) / 100), Mat…
1119 …v1 = graph.insertVertex(parent, null, textLabel, Math.floor(Math.round(coordinates.x * 100) / 100)…
1129 shape.createLabelSubShape(graph, v1);
1193 … mxVsdxCodec.prototype.addConnectedEdge = function (graph, connect, pageId, pageHeight) {
1211 var parentGeo = graph.getModel().getGeometry(parent);
1219 this.rotateChildEdge(graph.getModel(), parent, beginXY, endXY, points);
1232 …source = graph.insertVertex(parent, null, null, Math.floor(Math.round(beginXY.x * 100) / 100), Mat…
1263 …target = graph.insertVertex(parent, null, null, Math.floor(Math.round(endXY.x * 100) / 100), Math.…
1286 …edge = graph.insertEdge(parent, null, null, source, target, com.mxgraph.io.vsdx.mxVsdxUtils.getSty…
1287 var label = edgeShape.createLabelSubShape(graph, edge);
1298 …edge = graph.insertEdge(parent, null, edgeShape.getTextLabel(), source, target, com.mxgraph.io.vsd…
1299 var lblOffset = edgeShape.getLblEdgeOffset(graph.getView(), points);
1305 graph.setConnectionConstraint(edge, source, true,
1316 graph.setConnectionConstraint(edge, target, false,
1325 var edgeGeometry = graph.getModel().getGeometry(edge);
1364 edgeGeometry = graph.getModel().getGeometry(edge);
1381 … mxVsdxCodec.prototype.addUnconnectedEdge = function (graph, parent, edgeShape, pageHeight) {
1384 var parentGeometry = graph.getModel().getGeometry(parent);
1397 …edge = graph.insertEdge(parent, null, null, null, null, com.mxgraph.io.vsdx.mxVsdxUtils.getStyleSt…
1400 …edge = graph.createEdge(parent, null, null, null, null, com.mxgraph.io.vsdx.mxVsdxUtils.getStyleSt…
1401 …edge = graph.addEdge(edge, parent, null, null, edgeShape.getShapeIndex() + this.shapeIndexShift++);
1403 var label = edgeShape.createLabelSubShape(graph, edge);
1415 …edge = graph.insertEdge(parent, null, edgeShape.getTextLabel(), null, null, com.mxgraph.io.vsdx.mx…
1418 …edge = graph.createEdge(parent, null, edgeShape.getTextLabel(), null, null, com.mxgraph.io.vsdx.mx…
1419 …edge = graph.addEdge(edge, parent, null, null, edgeShape.getShapeIndex() + this.shapeIndexShift++);
1421 var lblOffset = edgeShape.getLblEdgeOffset(graph.getView(), points);
1424 this.rotateChildEdge(graph.getModel(), parent, beginXY, endXY, points);
1425 var edgeGeometry = graph.getModel().getGeometry(edge);
1438 edgeGeometry = graph.getModel().getGeometry(edge);
1474 mxVsdxCodec.prototype.sanitiseGraph = function (graph) {
1475 var root = graph.getModel().getRoot();
1476 this.sanitiseCell(graph, root);
1478 /*private*/ mxVsdxCodec.prototype.sanitiseCell = function (graph, cell) {
1479 var model = graph.getModel();
1484 var remove = this.sanitiseCell(graph, child);
1707 mxVssxCodec.prototype.normalizeGraph = function (graph) argument
1730 for (var id in graph.model.cells)
1732 var cell = graph.model.cells[id];
1758 for (var id in graph.model.cells)
1760 var cell = graph.model.cells[id];
1798 mxVssxCodec.prototype.processPage = function (graph, page) { argument
1799 var model = graph.getModel();
1807 if (graph.getDefaultParent() === model.getParent(c)) {
12035 VsdxShape.prototype.createLabelSubShape = function (graph, parent) {
12084 var v1 = graph.insertVertex(parent, null, textLabel,