Lines Matching refs:geo

375 									var geo = this.getCellGeometry(state.cell);
376 var g = (geo.alternateBounds != null) ? geo.alternateBounds : geo;
2449 var geo = this.getCellGeometry(result);
2451 while (geo != null && geo.relative)
2454 geo = this.getCellGeometry(result);
4038 var geo = this.getCellGeometry(realTarget);
4040 if (geo != null)
4046 pt.y -= geo.height / 2;
4050 pt.y += geo.height / 2;
4054 pt.x -= geo.width / 2;
4058 pt.x += geo.width / 2;
4062 geo.x = pt.x - geo.width / 2;
4063 geo.y = pt.y - geo.height / 2;
4317 Graph.prototype.updateAlternateBounds = function(cell, geo, willCollapse) argument
4319 if (cell != null && geo != null && this.layoutManager != null && geo.alternateBounds != null)
4327 geo.alternateBounds.height = 0;
4331 geo.alternateBounds.width = 0;
4373 var geo = this.getCellGeometry(cells[i]);
4375 if (state != null && geo != null)
4377 var dx = Math.round(geo.width - state.width / this.view.scale);
4378 var dy = Math.round(geo.height - state.height / this.view.scale);
4431 var geo = this.getCellGeometry(cells[i]);
4433 if (tmp != null && geo != null)
4435 geo = geo.clone();
4436 geo.translate(Math.round(dx * Math.max(0, Math.min(1, (tmp.x - state.x) / state.width))),
4438 this.model.setGeometry(cells[i], geo);
5547 var geo = this.graph.model.isVertex(cell) && this.graph.getCellGeometry(cell);
5551 !this.graph.isSwimlane(cell) && (geo == null || currentGeo == null ||
5552 (geo.height < 3 * currentGeo.height && geo.width < 3 * currentGeo.width)))
5790 var geo = this.getCellGeometry(clone)
5792 if (geo != null)
5794 geo.x += i * dx;
5795 geo.y += i * dy;
5977 var geo = this.getCellGeometry(nextRow);
5979 if (geo != null)
5981 geo = geo.clone();
5982 geo.y += dy;
5983 geo.height -= dy;
5985 model.setGeometry(nextRow, geo);
6046 var geo = this.getCellGeometry(cell);
6048 if (geo != null)
6050 geo = geo.clone();
6051 geo.width += dx;
6053 if (geo.alternateBounds != null)
6055 geo.alternateBounds.width += dx;
6058 model.setGeometry(cell, geo);
6065 var geo = this.getCellGeometry(cell);
6067 if (geo != null)
6069 geo = geo.clone();
6070 geo.x += dx;
6074 geo.width -= dx;
6076 if (geo.alternateBounds != null)
6078 geo.alternateBounds.width -= dx;
6082 model.setGeometry(cell, geo);
6159 var geo = this.graph.getCellGeometry(cells[i]);
6161 if (geo != null)
6163 total += (horizontal) ? geo.width : geo.height;
6267 if (upper != null && upper.geo != null &&
6270 upper.geo.height += (cell.alternateBounds != null) ?
6277 if (last != null && last.geo != null &&
6280 last.geo.width += (cell.alternateBounds != null) ?
6289 var temp = {style: style, cell: cells[i], geo: cell}; property in TableLayout.layoutRow.temp
7644 var geo = this.getCellGeometry(clones[i]);
7646 if (geo != null && geo.relative && !this.model.isEdge(cells[i]) &&
7649 geo.offset = null;
7650 geo.relative = false;
7651 geo.x = state.x / state.view.scale - state.view.translate.x;
7652 geo.y = state.y / state.view.scale - state.view.translate.y;
7734 var geo = this.getCellGeometry(sourceLabels[i]);
7736 if (geo != null && geo.relative && geo.x > 0)
7746 var geo = this.getCellGeometry(targetLabels[i]);
7748 if (geo != null && geo.relative && geo.x <= 0)
8010 var geo = this.getCellGeometry(cols[j]);
8013 if (geo != null && geo2 != null)
8016 geo2.width = geo.width;
8383 var geo = model.getGeometry(cell);
8385 if (geo != null)
8387 geo = geo.clone();
8389 if (geo.points != null)
8391 geo.points.reverse();
8394 var sp = geo.getTerminalPoint(true);
8395 var tp = geo.getTerminalPoint(false)
8397 geo.setTerminalPoint(sp, false);
8398 geo.setTerminalPoint(tp, true);
8399 model.setGeometry(cell, geo);
8426 var geo = this.getCellGeometry(cell);
8428 if (geo != null)
8434 geo = geo.clone();
8435 geo.x += geo.width / 2 - geo.height / 2;
8436 geo.y += geo.height / 2 - geo.width / 2;
8437 var tmp = geo.width;
8438 geo.width = geo.height;
8439 geo.height = tmp;
8440 model.setGeometry(cell, geo);
9590 var geo = this.getCellGeometry(vertices[i].cell);
9593 if (geo != null && pstate != null)
9595 geo = geo.clone();
9599 geo.x = Math.round(t0 - geo.width / 2) - pstate.origin.x;
9603 geo.y = Math.round(t0 - geo.height / 2) - pstate.origin.y;
9606 this.getModel().setGeometry(vertices[i].cell, geo);
10253 var geo = this.getCellGeometry(clone);
10256 if (geo != null)
10258 dw = geo.width;
10263 geo.height = rowGeo.height;
10410 var geo = this.getCellGeometry(cell);
10412 if (geo != null)
10414 geo.height = rowGeo.height;
10495 var geo = this.getCellGeometry(child);
10497 if (geo != null)
10499 width = Math.max(width, geo.width);
10561 var geo = this.getCellGeometry(row);
10563 if (geo != null)
10565 height = geo.height;
11122 var geo = this.graph.getCellGeometry(cell);
11124 if ((this.graph.getModel().isEdge(parent) && geo != null && geo.relative) ||
11674 var geo = (parent != null) ? this.graph.getCellGeometry(parent) : null;
11676 if (geo != null)
11685 geo = geo.clone();
11689 geo.height = bounds.height + start.y + start.height + 2 * border;
11693 geo.width = bounds.width + start.x + start.width + 2 * border;
11696 this.graph.model.setGeometry(parent, geo);
11916 var geo = graph.getCellGeometry(cols[index]);
11917 var g = (geo.alternateBounds != null) ? geo.alternateBounds : geo;
11923 colState.x = tableState.x + geo.x * graph.view.scale;
11924 colState.y = tableState.y + geo.y * graph.view.scale;
12639 var geo = this.graph.getCellGeometry(cells[i]);
12641 if (tmp != null && geo != null)
12643 geo = geo.clone();
12644 geo.translate(dx, dy);
12645 this.graph.model.setGeometry(cells[i], geo);
12863 var geo = this.graph.getCellGeometry(cells[0]);
12865 if (model.isEdge(parent) && geo != null && geo.relative)
12906 var geo = this.graph.getCellGeometry(state.cell);
12908 …if (model.isEdge(parent) && geo != null && geo.relative && state.width < 2 && state.height < 2 && …
12927 var geo = this.graph.getCellGeometry(this.state.cell);
12932 if (handle == mxEvent.ROTATION_HANDLE || !model.isEdge(parent) || geo == null || !geo.relative ||