Lines Matching refs:y

414       var rx = point.x * cos - point.y * sin,
415 ry = point.x * sin + point.y * cos;
432 t[0] * p.x + t[2] * p.y,
433 t[1] * p.x + t[3] * p.y
437 t[0] * p.x + t[2] * p.y + t[4],
438 t[1] * p.x + t[3] * p.y + t[5]
453 var o = fabric.util.transformPoint({ x: t[4], y: t[5] }, r);
455 r[5] = -o.y;
694 drawDashedLine: function(ctx, x, y, x2, y2, da) { argument
696 dy = y2 - y,
704 ctx.translate(x, y);
831 isTransparent: function(ctx, x, y, tolerance) { argument
842 if (y > tolerance) {
843 y -= tolerance;
846 y = 0;
851 imageData = ctx.getImageData(x, y, (tolerance * 2) || 1, (tolerance * 2) || 1);
1032 boundCopy[0].y = bound[0].y + fy;
1034 boundCopy[1].y = bound[1].y + fy;
1103 var x, y, j = tvalues.length, jlen = j, mt; variable
1110 y = (mt * mt * mt * y0) + (3 * mt * mt * t * y1) + (3 * mt * t * t * y2) + (t * t * t * y3);
1111 bounds[1][j] = y;
1121 y: min.apply(null, bounds[1])
1125 y: max.apply(null, bounds[1])
1820 y: pointerY(event) + scroll.top
2830 y: 'top', property in attributesMap
3185 y = el.getAttribute('y') || 0,
3187 currentTrans = (el2.getAttribute('transform') || '') + ' translate(' + x + ', ' + y + ')',
3637 y: parseFloat(points[i + 1])
3943 function Point(x, y) { argument
3945 this.y = y;
3958 return new Point(this.x + that.x, this.y + that.y);
3968 this.y += that.y;
3978 return new Point(this.x + scalar, this.y + scalar);
3988 this.y += scalar;
3998 return new Point(this.x - that.x, this.y - that.y);
4008 this.y -= that.y;
4018 return new Point(this.x - scalar, this.y - scalar);
4028 this.y -= scalar;
4038 return new Point(this.x * scalar, this.y * scalar);
4048 this.y *= scalar;
4058 return new Point(this.x / scalar, this.y / scalar);
4068 this.y /= scalar;
4078 return (this.x === that.x && this.y === that.y);
4087 return (this.x < that.x && this.y < that.y);
4096 return (this.x <= that.x && this.y <= that.y);
4106 return (this.x > that.x && this.y > that.y);
4115 return (this.x >= that.x && this.y >= that.y);
4125 return new Point(this.x + (that.x - this.x) * t, this.y + (that.y - this.y) * t);
4135 dy = this.y - that.y;
4145 return new Point(this.x + (that.x - this.x)/2, this.y + (that.y - this.y)/2);
4154 return new Point(Math.min(this.x, that.x), Math.min(this.y, that.y));
4163 return new Point(Math.max(this.x, that.x), Math.max(this.y, that.y));
4171 return this.x + ',' + this.y;
4179 setXY: function (x, y) { argument
4181 this.y = y;
4190 this.y = that.y;
4199 y = this.y;
4201 this.y = that.y;
4203 that.y = y;
4265 uaT = (b2.x - b1.x) * (a1.y - b1.y) - (b2.y - b1.y) * (a1.x - b1.x),
4266 ubT = (a2.x - a1.x) * (a1.y - b1.y) - (a2.y - a1.y) * (a1.x - b1.x),
4267 uB = (b2.y - b1.y) * (a2.x - a1.x) - (b2.x - b1.x) * (a2.y - a1.y);
4273 result.points.push(new fabric.Point(a1.x + ua * (a2.x - a1.x), a1.y + ua * (a2.y - a1.y)));
4350 topRight = new fabric.Point(max.x, min.y),
4351 bottomLeft = new fabric.Point(min.x, max.y),
6291 this.viewportTransform[5] += before.y - after.y;
6318 this.viewportTransform[5] = -point.y;
6335 -point.y - this.viewportTransform[5]
6640 … this._centerObject(object, new fabric.Point(this.getCenter().left, object.getCenterPoint().y));
6934 options.viewBox.y + ' ' +
7402 var p = new fabric.Point(pointer.x, pointer.y);
7407 this.canvas.contextTop.moveTo(p.x, p.y);
7434 var pointerPoint = new fabric.Point(pointer.x, pointer.y);
7456 if (this._points.length === 2 && p1.x === p2.x && p1.y === p2.y) {
7460 ctx.moveTo(p1.x, p1.y);
7466 ctx.quadraticCurveTo(p1.x, p1.y, midPoint.x, midPoint.y);
7474 ctx.lineTo(p1.x, p1.y);
7488 p1 = new fabric.Point(points[0].x, points[0].y),
7489 p2 = new fabric.Point(points[1].x, points[1].y);
7491 path.push('M ', points[0].x, ' ', points[0].y, ' ');
7497 path.push('Q ', p1.x, ' ', p1.y, ' ', midPoint.x, ' ', midPoint.y, ' ');
7498 p1 = new fabric.Point(points[i].x, points[i].y);
7500 p2 = new fabric.Point(points[i + 1].x, points[i + 1].y);
7503 path.push('L ', p1.x, ' ', p1.y, ' ');
7602 ctx.arc(point.x, point.y, point.radius, 0, Math.PI * 2, false);
7641 top: point.y,
7668 var pointerPoint = new fabric.Point(pointer.x, pointer.y),
7785 top: sprayChunk[j].y + 1,
7851 ctx.fillRect(point.x, point.y, point.width, point.width);
7862 var x, y, width, radius = this.width / 2;
7867 y = fabric.util.getRandomInt(pointer.y - radius, pointer.y + radius);
7879 var point = new fabric.Point(x, y);
8217 y = pointer.y,
8228 y -= lt.y;
8230 return { x: x, y: y };
8240 isTargetTransparent: function (target, x, y) { argument
8252 this.contextCache, x, y, this.targetFindTolerance);
8315 y: target.originY property in AnonymousFunction064b60f1b500.origin
8326 origin.y = 'bottom';
8329 origin.y = 'top';
8373 offsetY: pointer.y - target.top,
8375 originY: origin.y,
8377 ey: pointer.y,
8392 originY: origin.y
8404 _translateObject: function (x, y) { argument
8411 target.set('top', y - this._currentTransform.offsetY);
8423 _scaleObject: function (x, y, by) { argument
8436 localMouse = target.toLocalPoint(new fabric.Point(x, y), t.originX, t.originY);
8455 transform.newScaleY = localMouse.y / (target.height + strokeWidth / 2);
8488 var dist = localMouse.y + localMouse.x,
8543 localMouse.y *= -1;
8546 localMouse.y *= t.mouseYSign * 2;
8548 if (localMouse.y < 0) {
8566 if (abs(localMouse.y) > target.padding) {
8567 if (localMouse.y < 0) {
8568 localMouse.y += target.padding;
8571 localMouse.y -= target.padding;
8575 localMouse.y = 0;
8585 _rotateObject: function (x, y) { argument
8594 curAngle = atan2(y - t.top, x - t.left),
8741 var isTransparent = this.isTargetTransparent(obj, pointer.x, pointer.y);
8800 pointer.y = pointer.y - this._offset.top;
8821 y: pointer.y * cssScale.height
9353 pointer.y !== this._previousPointer.y))
9445 target.top = originPoint.y;
9593 ey: pointer.y,
9614 target.top = center.y;
9634 target.top = originPoint.y;
9668 groupSelector.top = pointer.y - groupSelector.ey;
9713 y = pointer.y,
9718 this._rotateObject(x, y);
9722 this._onScale(e, transform, x, y);
9726 this._scaleObject(x, y, 'x');
9730 this._scaleObject(x, y, 'y');
9734 this._translateObject(x, y);
9769 _onScale: function(e, transform, x, y) { argument
9774 this._scaleObject(x, y);
9783 this._scaleObject(x, y, 'equally');
11245 ctx.translate(center.x, center.y);
11522 ctx.translate(center.x, center.y);
11528 center.y *= this.group.scaleY;
11530 ctx.translate(center.x, center.y);
11957 y: pointer.y - objectLeftTop.y
12031 cy = point.y,
12042 cy = point.y + (this.getHeight() + strokeWidth * this.scaleY) / 2;
12045 cy = point.y - (this.getHeight() + strokeWidth * this.scaleY) / 2;
12061 y = center.y,
12072 y = center.y - (this.getHeight() + strokeWidth * this.scaleY) / 2;
12075 y = center.y + (this.getHeight() + strokeWidth * this.scaleY) / 2;
12079 return fabric.util.rotatePoint(new fabric.Point(x, y), center, degreesToRadians(this.angle));
12121 x, y;
12135 y = center.y - (this.getHeight() + strokeWidth * this.scaleY) / 2;
12138 y = center.y + (this.getHeight() + strokeWidth * this.scaleY) / 2;
12141 y = center.y;
12146 y = this.top;
12149 …return fabric.util.rotatePoint(new fabric.Point(point.x, point.y), center, -degreesToRadians(this.…
12150 .subtractEquals(new fabric.Point(x, y));
12174 this.set('top', position.y);
12231 this.top = center.y;
12249 this.top = originPoint.y;
12287 tl = new fabric.Point(oCoords.tl.x, oCoords.tl.y),
12288 tr = new fabric.Point(oCoords.tr.x, oCoords.tr.y),
12289 bl = new fabric.Point(oCoords.bl.x, oCoords.bl.y),
12290 br = new fabric.Point(oCoords.br.x, oCoords.br.y),
12308 tl: new fabric.Point(oCoords.tl.x, oCoords.tl.y),
12309 tr: new fabric.Point(oCoords.tr.x, oCoords.tr.y),
12310 bl: new fabric.Point(oCoords.bl.x, oCoords.bl.y),
12311 br: new fabric.Point(oCoords.br.x, oCoords.br.y)
12349 boundingRect.top >= pointTL.y &&
12350 boundingRect.top + boundingRect.height <= pointBR.y
12408 if ((iLine.o.y < point.y) && (iLine.d.y < point.y)) {
12412 if ((iLine.o.y >= point.y) && (iLine.d.y >= point.y)) {
12418 yi = point.y;
12423 b2 = (iLine.d.y - iLine.o.y) / (iLine.d.x - iLine.o.x);
12424 a1 = point.y - b1 * point.x;
12425 a2 = iLine.o.y - b2 * iLine.o.x;
12472 yCoords = [this.oCoords.tl.y, this.oCoords.tr.y, this.oCoords.br.y, this.oCoords.bl.y],
12577 currentWidth = p.x, currentHeight = p.y;
12600 _tl = new fabric.Point(coords.x - offsetX, coords.y - offsetY),
12601 _tr = new fabric.Point(_tl.x + (wh.x * cosTh), _tl.y + (wh.x * sinTh)),
12602 bl = f(new fabric.Point(_tl.x - (wh.y * sinTh), _tl.y + (wh.y * cosTh))),
12603 br = f(new fabric.Point(_tr.x - (wh.y * sinTh), _tr.y + (wh.y * cosTh))),
12606 ml = new fabric.Point((tl.x + bl.x)/2, (tl.y + bl.y)/2),
12607 mt = new fabric.Point((tr.x + tl.x)/2, (tr.y + tl.y)/2),
12608 mr = new fabric.Point((br.x + tr.x)/2, (br.y + tr.y)/2),
12609 mb = new fabric.Point((br.x + bl.x)/2, (br.y + bl.y)/2),
12610 …mtr = new fabric.Point(mt.x + sinTh * this.rotatingPointOffset, mt.y - cosTh * this.rotatingPointO…
12786 toFixed(center.y, NUM_FRACTION_DIGITS) +
12917 ey = pointer.y,
12952 xPoints = this._findCrossPoints({ x: ex, y: ey }, lines);
12972 x, y;
12976 y = coords[point].y;
12980 y: y - cosHalfOffset
12984 y: y - sinHalfOffset
12988 y: y + sinHalfOffset
12992 y: y + cosHalfOffset
13029 return { x: w, y: h };
13053 height = wh.y;
13096 height = wh.y,
13636 cp.y - this.strokeWidth / 2
13907 var markup = this._createBaseSVGMarkup(), x = 0, y = 0,
13913 y = this.top + this.radius;
13917 'cx="' + x + '" cy="' + y + '" ',
14298 var markup = this._createBaseSVGMarkup(), x = 0, y = 0;
14301 y = this.top + this.ry;
14305 'cx="', x, '" cy="', y, '" ',
14496 y = noTransform ? this.top : -this.height / 2,
14502 ctx.moveTo(x + rx, y);
14504 ctx.lineTo(x + w - rx, y);
14505 isRounded && ctx.bezierCurveTo(x + w - k * rx, y, x + w, y + k * ry, x + w, y + ry);
14507 ctx.lineTo(x + w, y + h - ry);
14508 … isRounded && ctx.bezierCurveTo(x + w, y + h - k * ry, x + w - k * rx, y + h, x + w - rx, y + h);
14510 ctx.lineTo(x + rx, y + h);
14511 isRounded && ctx.bezierCurveTo(x + k * rx, y + h, x, y + h - k * ry, x, y + h - ry);
14513 ctx.lineTo(x, y + ry);
14514 isRounded && ctx.bezierCurveTo(x, y + k * ry, x + k * rx, y, x + rx, y);
14528 y = -this.height / 2,
14533 fabric.util.drawDashedLine(ctx, x, y, x + w, y, this.strokeDashArray);
14534 fabric.util.drawDashedLine(ctx, x + w, y, x + w, y + h, this.strokeDashArray);
14535 fabric.util.drawDashedLine(ctx, x + w, y + h, x, y + h, this.strokeDashArray);
14536 fabric.util.drawDashedLine(ctx, x, y + h, x, y, this.strokeDashArray);
14563 var markup = this._createBaseSVGMarkup(), x = this.left, y = this.top;
14566 y = -this.height / 2;
14570 'x="', x, '" y="', y,
14766 fabric.util.drawDashedLine(ctx, p1.x, p1.y, p2.x, p2.y, this.strokeDashArray);
14920 p.y -= (this.minY + this.height / 2);
14946 points.push(toFixed(this.points[i].x, 2), ',', toFixed(this.points[i].y, 2), ' ');
14984 if (!len || isNaN(this.points[len - 1].y)) {
14999 ctx.moveTo(this.points[0].x, this.points[0].y);
15002 ctx.lineTo(point.x, point.y);
15203 y: this.minY + this.height / 2
15217 y = 0, // current y
15223 t = -this.pathOffset.y;
15240 y += current[2];
15241 ctx.lineTo(x + l, y + t);
15246 y = current[2];
15247 ctx.lineTo(x + l, y + t);
15252 ctx.lineTo(x + l, y + t);
15257 ctx.lineTo(x + l, y + t);
15261 y += current[1];
15262 ctx.lineTo(x + l, y + t);
15266 y = current[1];
15267 ctx.lineTo(x + l, y + t);
15272 y += current[2];
15274 subpathStartY = y;
15275 ctx.moveTo(x + l, y + t);
15280 y = current[2];
15282 subpathStartY = y;
15283 ctx.moveTo(x + l, y + t);
15288 tempY = y + current[6];
15290 controlY = y + current[4];
15293 y + current[2] + t, // y1
15300 y = tempY;
15305 y = current[6];
15314 y + t
15322 tempY = y + current[4];
15328 controlY = y;
15333 controlY = 2 * y - controlY;
15340 y + current[2] + t,
15349 controlY = y + current[2];
15352 y = tempY;
15362 controlY = y;
15367 controlY = 2 * y - controlY;
15378 y = tempY;
15392 tempY = y + current[4];
15395 controlY = y + current[2];
15404 y = tempY;
15418 y = tempY;
15427 tempY = y + current[2];
15433 controlY = y;
15438 controlY = 2 * y - controlY;
15448 y = tempY;
15460 controlY = y;
15465 controlY = 2 * y - controlY;
15474 y = tempY;
15479 drawArc(ctx, x + l, y + t, [
15486 current[7] + y + t
15489 y += current[7];
15494 drawArc(ctx, x + l, y + t, [
15504 y = current[7];
15510 y = subpathStartY;
15577 addTransform = ' translate(' + (-this.pathOffset.x) + ', ' + (-this.pathOffset.y) + ') ';
15663 y = 0, // current y
15678 y += current[2];
15684 y = current[2];
15699 y += current[1];
15704 y = current[1];
15710 y += current[2];
15712 subpathStartY = y;
15718 y = current[2];
15720 subpathStartY = y;
15726 tempY = y + current[6];
15728 controlY = y + current[4];
15729 bounds = fabric.util.getBoundsOfCurve(x, y,
15731 y + current[2], // y1
15738 y = tempY;
15743 y = current[6];
15746 bounds = fabric.util.getBoundsOfCurve(x, y,
15752 y
15760 tempY = y + current[4];
15766 controlY = y;
15771 controlY = 2 * y - controlY;
15774 bounds = fabric.util.getBoundsOfCurve(x, y,
15778 y + current[2],
15787 controlY = y + current[2];
15789 y = tempY;
15799 controlY = y;
15804 controlY = 2 * y - controlY;
15806 bounds = fabric.util.getBoundsOfCurve(x, y,
15815 y = tempY;
15827 tempY = y + current[4];
15829 controlY = y + current[2];
15830 bounds = fabric.util.getBoundsOfCurve(x, y,
15839 y = tempY;
15845 bounds = fabric.util.getBoundsOfCurve(x, y,
15854 y = current[4];
15860 tempY = y + current[2];
15865 controlY = y;
15870 controlY = 2 * y - controlY;
15873 bounds = fabric.util.getBoundsOfCurve(x, y,
15882 y = tempY;
15894 controlY = y;
15899 controlY = 2 * y - controlY;
15901 bounds = fabric.util.getBoundsOfCurve(x, y,
15910 y = tempY;
15915 bounds = fabric.util.getBoundsOfArc(x, y,
15922 current[7] + y
15925 y += current[7];
15930 bounds = fabric.util.getBoundsOfArc(x, y,
15940 y = current[7];
15946 y = subpathStartY;
15952 aY.push(point.y);
15955 aY.push(y);
16112 { x: path.left, y: path.top },
16113 { x: path.left + width, y: path.top },
16114 { x: path.left, y: path.top + height },
16115 { x: path.left + width, y: path.top + height }
16123 yC.push(p.y);
16213 translatePart = 'translate(' + p.x + ' ' + p.y + ')',
16406 top: objectTop - center.y
16619 top: center.y
16630 top: newOrigin.y
16681 top: center.y + rotated.top,
16759 aY.push(o.oCoords[prop].y);
16775 height: (maxXY.y - minXY.y) || 0
16780 obj.top = minXY.y || 0;
17057 y = -this.height / 2,
17065 fabric.util.drawDashedLine(ctx, x, y, x + w, y, this.strokeDashArray);
17066 fabric.util.drawDashedLine(ctx, x + w, y, x + w, y + h, this.strokeDashArray);
17067 fabric.util.drawDashedLine(ctx, x + w, y + h, x, y + h, this.strokeDashArray);
17068 fabric.util.drawDashedLine(ctx, x, y + h, x, y, this.strokeDashArray);
17098 var markup = [], x = -this.width / 2, y = -this.height / 2,
17102 y = this.top;
17110 '" x="', x, '" y="', y,
17126 'x="', x, '" y="', y,
17246 var x, y, imageMargins = this._findMargins(), elementToDraw;
17249 y = (noTransform ? this.top : -this.height / 2);
17253 ctx.rect(x, y, this.width, this.height);
17267 y + imageMargins.marginY,
17846 for (var y = 0; y < h; y++) {
17848 var sy = y,
17850 dstOff = (y * w + x) * 4,
19158 center.y = (v + 0.5) * ratioY;
19159 icenter.y = floor(center.y);
19169 for (var j = icenter.y - range2Y; j <= icenter.y + range2Y; j++) {
19173 fY = floor(1000 * abs(j - center.y));
19218 var a, b, c, d, x, y, i, j, xDiff, yDiff, chnl,
19227 y = floor(ratioY * i);
19229 yDiff = ratioY * i - y;
19230 origPix = 4 * (y * w + x);
22290 this.__lastPointer.y === newPointer.y && this.__lastIsEditing;
22297 this.__lastPointer.y === newPointer.y;
22339 this.__mousedownY = pointer.y;
22364 this.__mousedownY !== pointer.y;
22415 pClicked = new fabric.Point(pointer.x, pointer.y),
22460 if (height <= mouseOffset.y || width <= mouseOffset.x) {
22469 if (mouseOffset.y < height) {