Lines Matching refs:view

329 				var s = this.view.scale;
433 current = this.view.getState(this.model.getParent(current.cell));
480 var edgeStyle = this.view.getEdgeStyle(state);
635 var tmp = this.view.getEdgeStyle(state);
687 var s = this.view.scale;
703 current = this.view.getState(this.model.getParent(current.cell));
732 if (state.view.graph.isHtmlLabel(state.cell))
740 result = state.view.graph.sanitizeHtml(result);
797 var t = this.graph.view.translate;
798 var s = this.graph.view.scale;
1212 var graph = state.view.graph;
2057 var tol = state.view.graph.tolerance;
2084 state.view.graph.labelLinkClicked(state, elt, evt);
2194 var state = this.view.getState(cells[i]);
2419 var state = this.view.getState(cell);
2671 var temp = this.view.getDrawPane();
2726 var useCssTranforms = this.useCssTransforms, scale = this.view.scale,
2727 translate = this.view.translate;
2731 this.view.scale = 1;
2732 this.view.translate = new mxPoint(0, 0);
2740 this.view.scale = scale;
2741 this.view.translate = translate;
3050 var state = this.view.getState(cells[i]);
3084 var state = this.view.getState(cells[i]);
3297 var x0 = Math.floor(Math.ceil(bounds.x / this.view.scale -
3298 this.view.translate.x) / size.width);
3299 var y0 = Math.floor(Math.ceil(bounds.y / this.view.scale -
3300 this.view.translate.y) / size.height);
3301 var w0 = Math.ceil((Math.floor((bounds.x + bounds.width) / this.view.scale) -
3302 this.view.translate.x) / size.width) - x0;
3303 var h0 = Math.ceil((Math.floor((bounds.y + bounds.height) / this.view.scale) -
3304 this.view.translate.y) / size.height) - y0;
3332 this.view.invalidate(cell, false, false);
3339 this.view.validate();
3857 hoverIcons.update(hoverIcons.getState(this.view.getState(cells[1])));
3937 var parentState = this.view.getState(this.model.getParent(source));
3938 var s = this.view.scale;
3939 var t = this.view.translate;
3959 var sourceState = this.view.getState(source);
3982 var targetState = this.view.getState(tempCells[i]);
4372 var state = this.view.getState(cells[i]);
4377 var dx = Math.round(geo.width - state.width / this.view.scale);
4378 var dy = Math.round(geo.height - state.height / this.view.scale);
4430 var tmp = this.view.getState(cells[i]);
4466 var pstate = this.view.getState(parent);
4474 pgeo.width += dx + Math.min(0, pstate.width / this.view.scale - pgeo.width);
4478 pgeo.height += dy + Math.min(0, pstate.height / this.view.scale - pgeo.height);
4644 factor = Math.max(0.01, Math.min(this.view.scale * factor, 160)) / this.view.scale;
4657 if (this.view.scale < 0.15)
4659 this.zoom((this.view.scale + 0.01) / this.view.scale);
4665 this.zoom((Math.round(this.view.scale * this.zoomFactor * 20) / 20) / this.view.scale);
4677 if (this.view.scale <= 0.15)
4679 this.zoom((this.view.scale - 0.01) / this.view.scale);
4685 this.zoom((Math.round(this.view.scale * (1 / this.zoomFactor) * 20) / 20) / this.view.scale);
4705 var t = this.view.translate;
4839 'stroke-dashoffset: ' + (this.view.scale * -16) + ';\n' +
5021 this.graph.view.addListener(mxEvent.SCALE_AND_TRANSLATE, this.repaintHandler);
5022 this.graph.view.addListener(mxEvent.TRANSLATE, this.repaintHandler);
5023 this.graph.view.addListener(mxEvent.SCALE, this.repaintHandler);
5024 this.graph.view.addListener(mxEvent.DOWN, this.repaintHandler);
5025 this.graph.view.addListener(mxEvent.UP, this.repaintHandler);
5134 this.update(this.getState(this.graph.view.getState(
5364 return this.graph.view.getState(this.graph.getCellAt(x, y));
5668 state = this.graph.view.getState(cell);
6465 this.state.view.graph.enableFlowAnimation &&
6466 this.state.view.graph.model.isEdge(this.state.cell) &&
6475 paths[1].setAttribute('stroke-dasharray', (this.state.view.scale * 8));
6478 var anim = this.state.view.graph.getFlowAnimationStyle();
6902 result = shape.state.view.graph.replacePlaceholders(shape.state.cell, result);
7306 var state = new mxCellState(this.graph.view, edge, this.graph.getCellStyle(edge));
7640 var state = this.view.getState(cells[i]);
7651 geo.x = state.x / state.view.scale - state.view.translate.x;
7652 geo.y = state.y / state.view.scale - state.view.translate.y;
7806 if (this.view.getState(temp) != null &&
7857 var targetState = this.view.getState(target);
7858 var sourceState = this.view.getState(cells[0]);
8402 var edgeState = this.view.getState(cell);
8403 var sourceState = this.view.getState(src);
8404 var targetState = this.view.getState(trg);
8444 var state = this.view.getState(cell);
8518 var state = this.view.getState(cell);
8522 this.view.invalidate(cell);
8549 var state = this.view.getState(desc[i]);
8558 this.view.invalidate(desc[i], false, false);
8718 var state = this.view.getState(parents[i]);
8757 this.view.getState(cells[i])))
8925 var state = (this.model.isEdge(cell)) ? this.view.getState(cell) : null;
8935 (mxClient.IS_SVG && src == this.view.getCanvas().ownerSVGElement)))
8939 state = this.view.getState(this.getCellAt(pt.x, pt.y));
8955 var dx = this.container.scrollLeft / this.view.scale - this.view.translate.x;
8956 var dy = this.container.scrollTop / this.view.scale - this.view.translate.y;
8974 var view = this.view;
8979 var x = this.snap(Math.round(Math.max(pt.x, bds.x / view.scale - view.translate.x +
8981 … var y = this.snap(Math.round(Math.max(pt.y, (bds.y + bds.height) / view.scale - view.translate.y +
8998 this.view.scale - this.view.translate.x - bbox.width / 2)),
9000 this.view.scale - this.view.translate.y - bbox.height / 2)));
9005 this.snap(Math.round(this.container.clientWidth / 2 / this.view.scale -
9006 this.view.translate.x - bbox.width / 2)),
9007 this.snap(Math.round(this.container.clientHeight / 2 / this.view.scale -
9008 this.view.translate.y - bbox.height / 2)));
9042 var pt2 = this.view.getRelativePoint(state, x, y);
9048 pt2 = this.view.getPoint(state, label.geometry);
9050 var scale = this.view.scale;
9055 var tr = this.view.translate;
9059 label.geometry.x = Math.round(x / this.view.scale) -
9061 label.geometry.y = Math.round(y / this.view.scale) -
9143 … tmp = (tmp != null && !graph.model.isAncestor(cell, tmp.cell)) ? null : graph.view.getState(cell);
9555 var state = this.view.getState(cells[i]);
9575 var t = this.view.translate;
9576 var s = this.view.scale;
9589 var pstate = this.view.getState(this.model.getParent(vertices[i].cell));
9701 this.view.revalidate();
9714 var bounds = (exportType == 'page') ? this.view.getBackgroundPageBounds() :
9718 var vs = this.view.scale;
9724 (this.view.translate.x + this.backgroundImage.x) * vs,
9725 (this.view.translate.y + this.backgroundImage.y) * vs,
9866 var tr = this.view.translate;
9891 return (result != null && !state.view.graph.isCustomLink(result)) ? result : null;
9896 return state.view.graph.getLinkTargetForCell(state.cell);
9902 var graph = state.view.graph;
9933 this.view.revalidate();
10800 me.state = this.view.getState(cell);
10875 var state = this.graph.view.getState(this.editingCell);
11100 var state = this.graph.view.getState(cell);
11267 var state = this.graph.view.getState(this.editingCell);
11395 var scale = state.view.scale;
11635 var t = this.graph.view.translate;
11636 var s = this.graph.view.scale;
11639 var unit = this.graph.view.unit;
11822 …return this.graph.view.getState(this.graph.model.getParent(this.graph.model.getParent(this.state.c…
11904 var rows = graph.view.getCellStates(model.getChildCells(this.state.cell, true));
11915 var colState = graph.view.getState(cols[index]);
11921 colState = new mxCellState(graph.view, cols[index],
11923 colState.x = tableState.x + geo.x * graph.view.scale;
11924 colState.y = tableState.y + geo.y * graph.view.scale;
11925 colState.width = g.width * graph.view.scale;
11926 colState.height = g.height * graph.view.scale;
11953 dx) * this.graph.view.scale;
11956 0 : start.y * this.graph.view.scale);
11959 (start.height + start.y) * this.graph.view.scale);
12035 dy * this.graph.view.scale;
12175 }))(this.graph.view.getState(model.getChildAt(this.state.cell, i)));
12278 this.state.view.graph.container.appendChild(this.hint);
12287 var s = this.state.view.scale;
12288 var unit = this.state.view.unit;
12363 this.state.view.graph.container.appendChild(this.hint);
12366 var t = this.graph.view.translate;
12367 var s = this.graph.view.scale;
12370 var unit = this.graph.view.unit;
12600 dx = (this.currentX - x0) / this.graph.view.scale;
12601 dy = (this.currentY - y0) / this.graph.view.scale;
12638 var tmp = this.graph.view.getState(cells[i]);
12697 var scale = this.graph.view.scale;
12867 var state = this.graph.view.getState(cells[0]);
12945 if (this.state.view.graph.model.isVertex(this.state.cell) &&
12949 this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION, angle, [this.state.cell]);
12953 this.state.view.graph.turnShapes([this.state.cell]);
13026 shape.init(this.graph.view.getOverlayPane());
13172 return this.state.view.graph.connectionHandler.isEnabled();