Lines Matching refs:bounds

170 			x = this.bounds.x / s;
171 y = this.bounds.y / s;
172 w = this.bounds.width / s;
173 h = this.bounds.height / s;
685 function CylinderShape3(bounds, fill, stroke, strokewidth) argument
688 this.bounds = bounds;
2251 mxPerimeter.CenterPerimeter = function (bounds, vertex, next, orthogonal) argument
2253 return new mxPoint(bounds.getCenterX(), bounds.getCenterY());
2258 mxPerimeter.LifelinePerimeter = function (bounds, vertex, next, orthogonal) argument
2269 if (next.x < bounds.getCenterX())
2275 return new mxPoint(bounds.getCenterX() + sw, Math.min(bounds.y + bounds.height,
2276 Math.max(bounds.y + size, next.y)));
2281 mxPerimeter.OrthogonalPerimeter = function (bounds, vertex, next, orthogonal) argument
2290 mxPerimeter.BackbonePerimeter = function (bounds, vertex, next, orthogonal) argument
2302 if (next.x < bounds.getCenterX())
2308 return new mxPoint(bounds.getCenterX() + sw, Math.min(bounds.y + bounds.height,
2309 Math.max(bounds.y, next.y)));
2313 if (next.y < bounds.getCenterY())
2319 return new mxPoint(Math.min(bounds.x + bounds.width, Math.max(bounds.x, next.x)),
2320 bounds.getCenterY() + sw);
2327 mxPerimeter.CalloutPerimeter = function (bounds, vertex, next, orthogonal) argument
2329 return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(bounds, new mxRectangle(0, 0, 0,
2330 Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(vertex.style, 'size',
2338 mxPerimeter.ParallelogramPerimeter = function (bounds, vertex, next, orthogonal) argument
2353 var x = bounds.x;
2354 var y = bounds.y;
2355 var w = bounds.width;
2356 var h = bounds.height;
2378 var cx = bounds.getCenterX();
2379 var cy = bounds.getCenterY();
2401 mxPerimeter.TrapezoidPerimeter = function (bounds, vertex, next, orthogonal) argument
2416 var x = bounds.x;
2417 var y = bounds.y;
2418 var w = bounds.width;
2419 var h = bounds.height;
2451 var cx = bounds.getCenterX();
2452 var cy = bounds.getCenterY();
2474 mxPerimeter.StepPerimeter = function (bounds, vertex, next, orthogonal) argument
2489 var x = bounds.x;
2490 var y = bounds.y;
2491 var w = bounds.width;
2492 var h = bounds.height;
2494 var cx = bounds.getCenterX();
2495 var cy = bounds.getCenterY();
2551 mxPerimeter.HexagonPerimeter2 = function (bounds, vertex, next, orthogonal) argument
2566 var x = bounds.x;
2567 var y = bounds.y;
2568 var w = bounds.width;
2569 var h = bounds.height;
2571 var cx = bounds.getCenterX();
2572 var cy = bounds.getCenterY();
3554 function mxShapeBasicRect2(bounds, fill, stroke, strokewidth) argument
3557 this.bounds = bounds;
5411 return createHandle(state, [mxConstants.STYLE_ARCSIZE], function(bounds) argument
5413 var tmp = (yOffset != null) ? yOffset : bounds.height / 8;
5419 … return new mxPoint(bounds.x + bounds.width - Math.min(bounds.width / 2, arcSize), bounds.y + tmp);
5426 …return new mxPoint(bounds.x + bounds.width - Math.min(Math.max(bounds.width / 2, bounds.height / 2…
5427 Math.min(bounds.width, bounds.height) * arcSize), bounds.y + tmp);
5429 }, function(bounds, pt, me) argument
5433 this.state.style[mxConstants.STYLE_ARCSIZE] = Math.round(Math.max(0, Math.min(bounds.width,
5434 (bounds.x + bounds.width - pt.x) * 2)));
5438 var f = Math.min(50, Math.max(0, (bounds.width - pt.x + bounds.x) * 100 /
5439 Math.min(bounds.width, bounds.height)));
5466 var handles = [createHandle(state, ['size'], function(bounds)
5471 …return new mxPoint(bounds.x + Math.min(bounds.width * 0.75 * max, size * ((fixed) ? 0.75 : bounds.…
5472 }, function(bounds, pt)
5475 …var size = (fixed) ? (pt.x - bounds.x) : Math.max(0, Math.min(max, (pt.x - bounds.x) / bounds.widt…
5495 var handles = [createHandle(state, ['size'], function(bounds)
5500 …return new mxPoint(bounds.x + Math.max(0, Math.min(bounds.width * 0.5, size * ((fixed) ? 1 : bound…
5501 }, function(bounds, pt, me)
5504 …var size = (fixed) ? (pt.x - bounds.x) : Math.max(0, Math.min(max, (pt.x - bounds.x) / bounds.widt…
5522 var handles = [createHandle(state, ['size'], function(bounds)
5524 var size = Math.max(0, Math.min(bounds.width, Math.min(bounds.height, parseFloat(
5527 return new mxPoint(bounds.x + size, bounds.y + size);
5528 }, function(bounds, pt)
5530 …this.state.style['size'] = Math.round(Math.max(0, Math.min(Math.min(bounds.width, pt.x - bounds.x),
5531 Math.min(bounds.height, pt.y - bounds.y))) / factor);
5547 return [createHandle(state, ['size'], function(bounds) argument
5549 …var size = Math.max(0, Math.min(bounds.height * 0.5, parseFloat(mxUtils.getValue(this.state.style,…
5551 return new mxPoint(bounds.x, bounds.y + size);
5552 }, function(bounds, pt) argument
5554 this.state.style['size'] = Math.max(0, pt.y - bounds.y);
5563 return [createHandle(state, ['arrowWidth', 'arrowSize'], function(bounds) argument
5568 … return new mxPoint(bounds.x + (1 - as) * bounds.width, bounds.y + (1 - aw) * bounds.height / 2);
5569 }, function(bounds, pt) argument
5571 …tyle['arrowWidth'] = Math.max(0, Math.min(1, Math.abs(bounds.y + bounds.height / 2 - pt.y) / bound…
5572 …ate.style['arrowSize'] = Math.max(0, Math.min(maxSize, (bounds.x + bounds.width - pt.x) / (bounds.…
5579 return createHandle(state, keys, function(bounds) argument
5597 }, function(bounds, pt, me) argument
5805 handles.push(createHandle(state, [mxConstants.STYLE_STARTSIZE], function(bounds) argument
5811 … return new mxPoint(bounds.getCenterX(), bounds.y + Math.max(0, Math.min(bounds.height, size)));
5815 return new mxPoint(bounds.x + Math.max(0, Math.min(bounds.width, size)), bounds.getCenterY());
5817 }, function(bounds, pt) argument
5821 Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y))) :
5822 Math.round(Math.max(0, Math.min(bounds.width, pt.x - bounds.x)));
5862 return [createHandle(state, ['size'], function(bounds) argument
5864 …var size = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'size…
5866 return new mxPoint(bounds.getCenterX(), bounds.y + size);
5867 }, function(bounds, pt) argument
5869 this.state.style['size'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y)));
5874 var handles = [createHandle(state, ['width', 'height'], function(bounds)
5876 …var w0 = Math.max(UmlFrame.prototype.corner, Math.min(bounds.width, mxUtils.getValue(this.state.st…
5877 …var h0 = Math.max(UmlFrame.prototype.corner * 1.5, Math.min(bounds.height, mxUtils.getValue(this.s…
5879 return new mxPoint(bounds.x + w0, bounds.y + h0);
5880 }, function(bounds, pt)
5882 …width'] = Math.round(Math.max(UmlFrame.prototype.corner, Math.min(bounds.width, pt.x - bounds.x)));
5883 … = Math.round(Math.max(UmlFrame.prototype.corner * 1.5, Math.min(bounds.height, pt.y - bounds.y)));
5890 var handles = [createHandle(state, ['size'], function(bounds)
5896 …fixed) ? new mxPoint(bounds.x + size, bounds.y + bounds.height / 4) : new mxPoint(bounds.x + bound…
5897 }, function(bounds, pt)
5900 …ixed) ? Math.max(0, Math.min(bounds.width * 0.5, (pt.x - bounds.x))) : Math.max(0, Math.min(0.5, (…
5913 return [createHandle(state, ['size'], function(bounds) argument
5915 var m = Math.min(bounds.width, bounds.height);
5918 return new mxPoint(bounds.getCenterX() - size, bounds.getCenterY() - size);
5919 }, function(bounds, pt) argument
5921 var m = Math.min(bounds.width, bounds.height);
5922 …this.state.style['size'] = Math.max(0, Math.min(1, Math.min((Math.max(0, bounds.getCenterY() - pt.…
5923 (Math.max(0, bounds.getCenterX() - pt.x) / m) * 2)));
5928 return [createHandle(state, ['size'], function(bounds) argument
5930 var size = Math.max(0, Math.min(bounds.width, Math.min(bounds.height, parseFloat(
5933 return new mxPoint(bounds.x + bounds.width - size, bounds.y + size);
5934 }, function(bounds, pt) argument
5936 …ate.style['size'] = Math.round(Math.max(0, Math.min(Math.min(bounds.width, bounds.x + bounds.width…
5937 Math.min(bounds.height, pt.y - bounds.y))));
5942 return [createHandle(state, ['size'], function(bounds) argument
5944 var size = Math.max(0, Math.min(bounds.width, Math.min(bounds.height, parseFloat(
5947 return new mxPoint(bounds.x + bounds.width - size, bounds.y + size);
5948 }, function(bounds, pt) argument
5950 …ate.style['size'] = Math.round(Math.max(0, Math.min(Math.min(bounds.width, bounds.x + bounds.width…
5951 Math.min(bounds.height, pt.y - bounds.y))));
5956 var handles = [createHandle(state, ['size'], function(bounds)
5958 …var size = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'size', ManualIn…
5960 return new mxPoint(bounds.x + bounds.width / 4, bounds.y + size * 3 / 4);
5961 }, function(bounds, pt)
5963 …this.state.style['size'] = Math.round(Math.max(0, Math.min(bounds.height, (pt.y - bounds.y) * 4 / …
5975 return [createHandle(state, ['size'], function(bounds) argument
5980 …return new mxPoint(bounds.x + bounds.width - size * ((fixed) ? 1 : bounds.width), bounds.getCenter…
5981 }, function(bounds, pt) argument
5984 …h.max(0, Math.min(bounds.width, (bounds.x + bounds.width - pt.x))) : Math.max(0, Math.min(1, (boun…
5991 var handles = [createHandle(state, ['size', 'position'], function(bounds)
5993 …var size = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'size', CalloutS…
5995 …var base = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'base', CalloutSh…
5997 return new mxPoint(bounds.x + position * bounds.width, bounds.y + bounds.height - size);
5998 }, function(bounds, pt)
6000 …var base = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'base', CalloutSh…
6001 …this.state.style['size'] = Math.round(Math.max(0, Math.min(bounds.height, bounds.y + bounds.height…
6002 …this.state.style['position'] = Math.round(Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width…
6003 }, false), createHandle(state, ['position2'], function(bounds)
6007 return new mxPoint(bounds.x + position2 * bounds.width, bounds.y + bounds.height);
6008 }, function(bounds, pt)
6010 …this.state.style['position2'] = Math.round(Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.widt…
6011 }, false), createHandle(state, ['base'], function(bounds)
6013 …var size = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'size', CalloutS…
6015 …var base = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'base', CalloutSh…
6017 …return new mxPoint(bounds.x + Math.min(bounds.width, position * bounds.width + base), bounds.y + b…
6018 }, function(bounds, pt)
6022 …ate.style['base'] = Math.round(Math.max(0, Math.min(bounds.width, pt.x - bounds.x - position * bou…
6034 var handles = [createHandle(state, ['dx', 'dy'], function(bounds)
6036 …var dx = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'dx', InternalStora…
6037 …var dy = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'dy', InternalStor…
6039 return new mxPoint(bounds.x + dx, bounds.y + dy);
6040 }, function(bounds, pt)
6042 this.state.style['dx'] = Math.round(Math.max(0, Math.min(bounds.width, pt.x - bounds.x)));
6043 this.state.style['dy'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y)));
6055 var handles = [createHandle(state, ['jettyWidth', 'jettyHeight'], function(bounds)
6057 …var dx = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'jettyWidth', Modul…
6058 …var dy = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'jettyHeight', Mod…
6060 return new mxPoint(bounds.x + dx / 2, bounds.y + dy * 2);
6061 }, function(bounds, pt)
6063 …this.state.style['jettyWidth'] = Math.round(Math.max(0, Math.min(bounds.width, pt.x - bounds.x)) *…
6064 …this.state.style['jettyHeight'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y))…
6071 return [createHandle(state, ['dx', 'dy'], function(bounds) argument
6073 …var dx = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'dx', CornerShape.p…
6074 …var dy = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'dy', CornerShape.…
6076 return new mxPoint(bounds.x + dx, bounds.y + dy);
6077 }, function(bounds, pt) argument
6079 this.state.style['dx'] = Math.round(Math.max(0, Math.min(bounds.width, pt.x - bounds.x)));
6080 this.state.style['dy'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y)));
6085 return [createHandle(state, ['dx', 'dy'], function(bounds) argument
6087 …var dx = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'dx', TeeShape.prot…
6088 …var dy = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'dy', TeeShape.pro…
6090 return new mxPoint(bounds.x + (bounds.width + dx) / 2, bounds.y + dy);
6091 }, function(bounds, pt) argument
6093 …is.state.style['dx'] = Math.round(Math.max(0, Math.min(bounds.width / 2, (pt.x - bounds.x - bounds
6094 this.state.style['dy'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y)));
6101 return [createHandle(state, ['tabWidth', 'tabHeight'], function(bounds) argument
6103 …var tw = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'tabWidth', FolderS…
6104 …var th = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'tabHeight', Folde…
6108 tw = bounds.width - tw;
6111 return new mxPoint(bounds.x + tw, bounds.y + th);
6112 }, function(bounds, pt) argument
6114 var tw = Math.max(0, Math.min(bounds.width, pt.x - bounds.x));
6118 tw = bounds.width - tw;
6122 … this.state.style['tabHeight'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y)));
6127 return [createHandle(state, ['size'], function(bounds) argument
6131 return new mxPoint(bounds.x + 3 * bounds.width / 4, bounds.y + (1 - size) * bounds.height);
6132 }, function(bounds, pt) argument
6134 …this.state.style['size'] = Math.max(0, Math.min(1, (bounds.y + bounds.height - pt.y) / bounds.heig…
6139 return [createHandle(state, ['size'], function(bounds) argument
6143 return new mxPoint(bounds.getCenterX(), bounds.y + size * bounds.height / 2);
6144 }, function(bounds, pt) argument
6146 this.state.style['size'] = Math.max(0, Math.min(1, ((pt.y - bounds.y) / bounds.height) * 2));
6151 return [createHandle(state, ['isoAngle'], function(bounds) argument
6154 var isoH = Math.min(bounds.width * Math.tan(isoAngle), bounds.height * 0.5);
6156 return new mxPoint(bounds.x, bounds.y + isoH);
6157 }, function(bounds, pt) argument
6159 this.state.style['isoAngle'] = Math.max(0, (pt.y - bounds.y) * 50 / bounds.height);
6166 return [createHandle(state, ['size'], function(bounds) argument
6170 return new mxPoint(bounds.getCenterX(), bounds.y + (1 - size) * bounds.height);
6171 }, function(bounds, pt) argument
6173 …this.state.style['size'] = Math.max(0, Math.min(1, (bounds.y + bounds.height - pt.y) / bounds.heig…
6178 var handles = [Graph.createHandle(state, ['size'], function(bounds)
6180 …var size = Math.max(0, Math.min(bounds.width / 2, bounds.height / 2, parseFloat(mxUtils.getValue(t…
6182 return new mxPoint(bounds.x + size, bounds.y + size);
6183 }, function(bounds, pt)
6185 …le['size'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bou…
6188 var handle2 = Graph.createHandle(state, ['indent'], function(bounds) argument
6192 return new mxPoint(bounds.x + bounds.width * 0.75, bounds.y + dx2 * bounds.height / 200);
6193 }, function(bounds, pt) argument
6195 …ndent'] = Math.round(100 * Math.max(0, Math.min(100, 200 * (pt.y - bounds.y) / bounds.height))) / …