Lines Matching refs:x

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);
454 r[4] = -o.x;
694 drawDashedLine: function(ctx, x, y, x2, y2, da) { argument
695 var dx = x2 - x,
704 ctx.translate(x, y);
708 x = 0;
709 while (len > x) {
710 x += da[di++ % dc];
711 if (x > len) {
712 x = len;
714 ctx[draw ? 'lineTo' : 'moveTo'](x, 0);
831 isTransparent: function(ctx, x, y, tolerance) { argument
836 if (x > tolerance) {
837 x -= tolerance;
840 x = 0;
851 imageData = ctx.getImageData(x, y, (tolerance * 2) || 1, (tolerance * 2) || 1);
1031 boundCopy[0].x = bound[0].x + fx;
1033 boundCopy[1].x = bound[1].x + fx;
1103 var x, y, j = tvalues.length, jlen = j, mt; variable
1107 x = (mt * mt * mt * x0) + (3 * mt * mt * t * x1) + (3 * mt * t * t * x2) + (t * t * t * x3);
1108 bounds[0][j] = x;
1120 x: min.apply(null, bounds[0]),
1124 x: max.apply(null, bounds[0]),
1819 x: pointerX(event) + scroll.left,
2827 x: 'left', property in attributesMap
3184 x = el.getAttribute('x') || 0,
3187 currentTrans = (el2.getAttribute('transform') || '') + ' translate(' + x + ', ' + y + ')',
3636 x: parseFloat(points[i]),
3943 function Point(x, y) { argument
3944 this.x = x;
3958 return new Point(this.x + that.x, this.y + that.y);
3967 this.x += that.x;
3978 return new Point(this.x + scalar, this.y + scalar);
3987 this.x += scalar;
3998 return new Point(this.x - that.x, this.y - that.y);
4007 this.x -= that.x;
4018 return new Point(this.x - scalar, this.y - scalar);
4027 this.x -= scalar;
4038 return new Point(this.x * scalar, this.y * scalar);
4047 this.x *= scalar;
4058 return new Point(this.x / scalar, this.y / scalar);
4067 this.x /= 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);
4134 var dx = this.x - that.x,
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
4180 this.x = x;
4189 this.x = that.x;
4198 var x = this.x,
4200 this.x = that.x;
4202 that.x = x;
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),
6290 this.viewportTransform[4] += before.x - after.x;
6317 this.viewportTransform[4] = -point.x;
6334 -point.x - this.viewportTransform[4],
6653 this._centerObject(object, new fabric.Point(object.getCenterPoint().x, this.getCenter().top));
6933 options.viewBox.x + ' ' +
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) {
7457 p1.x -= 0.5;
7458 p2.x += 0.5;
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);
7640 left: point.x,
7668 var pointerPoint = new fabric.Point(pointer.x, pointer.y),
7784 left: sprayChunk[j].x + 1,
7851 ctx.fillRect(point.x, point.y, point.width, point.width);
7862 var x, y, width, radius = this.width / 2;
7866 x = fabric.util.getRandomInt(pointer.x - radius, pointer.x + radius);
7879 var point = new fabric.Point(x, y);
8216 x = pointer.x,
8227 x -= lt.x;
8230 return { x: x, y: y };
8240 isTargetTransparent: function (target, x, y) { argument
8252 this.contextCache, x, y, this.targetFindTolerance);
8314 x: target.originX, property in AnonymousFunction064b60f1b500.origin
8319 origin.x = 'right';
8322 origin.x = 'left';
8372 offsetX: pointer.x - target.left,
8374 originX: origin.x,
8376 ex: pointer.x,
8391 originX: origin.x,
8404 _translateObject: function (x, y) { argument
8408 target.set('left', x - this._currentTransform.offsetX);
8423 _scaleObject: function (x, y, by) { argument
8436 localMouse = target.toLocalPoint(new fabric.Point(x, y), t.originX, t.originY);
8454 transform.newScaleX = localMouse.x / (target.width + strokeWidth / 2);
8488 var dist = localMouse.y + localMouse.x,
8532 localMouse.x *= -1;
8535 localMouse.x *= t.mouseXSign * 2;
8537 if (localMouse.x < 0) {
8554 if (abs(localMouse.x) > target.padding) {
8555 if (localMouse.x < 0) {
8556 localMouse.x += target.padding;
8559 localMouse.x -= target.padding;
8563 localMouse.x = 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);
8799 pointer.x = pointer.x - this._offset.left;
8820 x: pointer.x * cssScale.width,
9352 pointer.x !== this._previousPointer.x ||
9444 target.left = originPoint.x;
9592 ex: pointer.x,
9613 target.left = center.x;
9633 target.left = originPoint.x;
9667 groupSelector.left = pointer.x - groupSelector.ex;
9712 var x = pointer.x,
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);
11527 center.x *= this.group.scaleX;
11530 ctx.translate(center.x, center.y);
11956 x: pointer.x - objectLeftTop.x,
12030 var cx = point.x,
12035 cx = point.x + (this.getWidth() + strokeWidth * this.scaleX) / 2;
12038 cx = point.x - (this.getWidth() + strokeWidth * this.scaleX) / 2;
12060 var x = center.x,
12066 x = center.x - (this.getWidth() + strokeWidth * this.scaleX) / 2;
12069 x = center.x + (this.getWidth() + strokeWidth * this.scaleX) / 2;
12079 return fabric.util.rotatePoint(new fabric.Point(x, y), center, degreesToRadians(this.angle));
12121 x, y;
12125 x = center.x - (this.getWidth() + strokeWidth * this.scaleX) / 2;
12128 x = center.x + (this.getWidth() + strokeWidth * this.scaleX) / 2;
12131 x = center.x;
12145 x = this.left;
12149 …return fabric.util.rotatePoint(new fabric.Point(point.x, point.y), center, -degreesToRadians(this.…
12150 .subtractEquals(new fabric.Point(x, y));
12173 this.set('left', position.x);
12230 this.left = center.x;
12248 this.left = originPoint.x;
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)
12347 boundingRect.left >= pointTL.x &&
12348 boundingRect.left + boundingRect.width <= pointBR.x &&
12416 if ((iLine.o.x === iLine.d.x) && (iLine.o.x >= point.x)) {
12417 xi = iLine.o.x;
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;
12431 if (xi >= point.x) {
12467 var xCoords = [this.oCoords.tl.x, this.oCoords.tr.x, this.oCoords.br.x, this.oCoords.bl.x],
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…
12784 toFixed(center.x, NUM_FRACTION_DIGITS) +
12916 var ex = pointer.x,
12952 xPoints = this._findCrossPoints({ x: ex, y: ey }, lines);
12972 x, y;
12975 x = coords[point].x;
12979 x: x - sinHalfOffset,
12983 x: x + cosHalfOffset,
12987 x: x - cosHalfOffset,
12991 x: x + sinHalfOffset,
13029 return { x: w, y: h };
13052 width = wh.x,
13095 width = wh.x,
13635 cp.x - this.strokeWidth / 2,
13907 var markup = this._createBaseSVGMarkup(), x = 0, y = 0,
13912 x = this.left + this.radius;
13917 'cx="' + x + '" cy="' + y + '" ',
14298 var markup = this._createBaseSVGMarkup(), x = 0, y = 0;
14300 x = this.left + this.rx;
14305 'cx="', x, '" cy="', y, '" ',
14495 x = noTransform ? this.left : -this.width / 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);
14527 var x = -this.width / 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;
14565 x = -this.width / 2;
14570 'x="', x, '" y="', y,
14766 fabric.util.drawDashedLine(ctx, p1.x, p1.y, p2.x, p2.y, this.strokeDashArray);
14919 p.x -= (this.minX + this.width / 2);
14946 points.push(toFixed(this.points[i].x, 2), ',', toFixed(this.points[i].y, 2), ' ');
14999 ctx.moveTo(this.points[0].x, this.points[0].y);
15002 ctx.lineTo(point.x, point.y);
15202 x: this.minX + this.width / 2,
15216 x = 0, // current x
15222 l = -this.pathOffset.x,
15239 x += current[1];
15241 ctx.lineTo(x + l, y + t);
15245 x = current[1];
15247 ctx.lineTo(x + l, y + t);
15251 x += current[1];
15252 ctx.lineTo(x + l, y + t);
15256 x = current[1];
15257 ctx.lineTo(x + l, y + t);
15262 ctx.lineTo(x + l, y + t);
15267 ctx.lineTo(x + l, y + t);
15271 x += current[1];
15273 subpathStartX = x;
15275 ctx.moveTo(x + l, y + t);
15279 x = current[1];
15281 subpathStartX = x;
15283 ctx.moveTo(x + l, y + t);
15287 tempX = x + current[5];
15289 controlX = x + current[3];
15292 x + current[1] + l, // x1
15299 x = tempX;
15304 x = current[5];
15313 x + l,
15321 tempX = x + current[3];
15327 controlX = x;
15332 controlX = 2 * x - controlX;
15339 x + current[1] + l,
15348 controlX = x + current[1];
15351 x = tempX;
15361 controlX = x;
15366 controlX = 2 * x - controlX;
15377 x = tempX;
15391 tempX = x + current[3];
15394 controlX = x + current[1];
15403 x = tempX;
15417 x = tempX;
15426 tempX = x + current[1];
15432 controlX = x;
15437 controlX = 2 * x - controlX;
15447 x = tempX;
15459 controlX = x;
15464 controlX = 2 * x - controlX;
15473 x = tempX;
15479 drawArc(ctx, x + l, y + t, [
15485 current[6] + x + l,
15488 x += current[6];
15494 drawArc(ctx, x + l, y + t, [
15503 x = current[6];
15509 x = subpathStartX;
15577 addTransform = ' translate(' + (-this.pathOffset.x) + ', ' + (-this.pathOffset.y) + ') ';
15662 x = 0, // current x
15677 x += current[1];
15683 x = current[1];
15689 x += current[1];
15694 x = current[1];
15709 x += current[1];
15711 subpathStartX = x;
15717 x = current[1];
15719 subpathStartX = x;
15725 tempX = x + current[5];
15727 controlX = x + current[3];
15729 bounds = fabric.util.getBoundsOfCurve(x, y,
15730 x + current[1], // x1
15737 x = tempX;
15742 x = current[5];
15746 bounds = fabric.util.getBoundsOfCurve(x, y,
15751 x,
15759 tempX = x + current[3];
15765 controlX = x;
15770 controlX = 2 * x - controlX;
15774 bounds = fabric.util.getBoundsOfCurve(x, y,
15777 x + current[1],
15786 controlX = x + current[1];
15788 x = tempX;
15798 controlX = x;
15803 controlX = 2 * x - controlX;
15806 bounds = fabric.util.getBoundsOfCurve(x, y,
15814 x = tempX;
15826 tempX = x + current[3];
15828 controlX = x + current[1];
15830 bounds = fabric.util.getBoundsOfCurve(x, y,
15838 x = tempX;
15845 bounds = fabric.util.getBoundsOfCurve(x, y,
15853 x = current[3];
15859 tempX = x + current[1];
15864 controlX = x;
15869 controlX = 2 * x - controlX;
15873 bounds = fabric.util.getBoundsOfCurve(x, y,
15881 x = tempX;
15893 controlX = x;
15898 controlX = 2 * x - controlX;
15901 bounds = fabric.util.getBoundsOfCurve(x, y,
15909 x = tempX;
15915 bounds = fabric.util.getBoundsOfArc(x, y,
15921 current[6] + x,
15924 x += current[6];
15930 bounds = fabric.util.getBoundsOfArc(x, y,
15939 x = current[6];
15945 x = subpathStartX;
15951 aX.push(point.x);
15954 aX.push(x);
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 }
16122 xC.push(p.x);
16213 translatePart = 'translate(' + p.x + ' ' + p.y + ')',
16405 left: objectLeft - center.x,
16618 left: center.x,
16629 left: newOrigin.x,
16680 left: center.x + rotated.left,
16758 aX.push(o.oCoords[prop].x);
16774 width: (maxXY.x - minXY.x) || 0,
16779 obj.left = minXY.x || 0;
17056 var x = -this.width / 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,
17101 x = this.left;
17110 '" x="', x, '" y="', y,
17126 'x="', x, '" y="', y,
17246 var x, y, imageMargins = this._findMargins(), elementToDraw;
17248 x = (noTransform ? this.left : -this.width / 2);
17253 ctx.rect(x, y, this.width, this.height);
17266 x + imageMargins.marginX,
17847 for (var x = 0; x < w; x++) {
17849 sx = x,
17850 dstOff = (y * w + x) * 4,
19139 return function(x) { argument
19140 if (x > lobes) {
19143 x *= Math.PI;
19144 if (abs(x) < 1e-16) {
19147 var xx = x / lobes;
19148 return sin(x) * sin(xx) / x / xx;
19155 center.x = (u + 0.5) * ratioX;
19156 icenter.x = floor(center.x);
19161 for (i = icenter.x - range2X; i <= icenter.x + range2X; i++) {
19165 fX = floor(1000 * abs(i - center.x));
19218 var a, b, c, d, x, y, i, j, xDiff, yDiff, chnl,
19226 x = floor(ratioX * j);
19228 xDiff = ratioX * j - x;
19230 origPix = 4 * (y * w + x);
22289 this.__lastPointer.x === newPointer.x &&
22296 this.__lastPointer.x === newPointer.x &&
22338 this.__mousedownX = pointer.x;
22363 return this.__mousedownX !== pointer.x ||
22415 pClicked = new fabric.Point(pointer.x, pointer.y),
22460 if (height <= mouseOffset.y || width <= mouseOffset.x) {
22486 var distanceBtwLastCharAndCursor = mouseOffset.x - prevWidth,
22487 distanceBtwNextCharAndCursor = width - mouseOffset.x,