Lines Matching refs:points

3619     parsePointsAttribute: function(points) {  argument
3622 if (!points) {
3627 points = points.replace(/,/g, ' ').trim();
3629 points = points.split(/\s+/);
3633 len = points.length;
3636 x: parseFloat(points[i]),
3637 y: parseFloat(points[i + 1])
4230 this.points = [];
4242 this.points.push(point);
4249 appendPoints: function (points) { argument
4250 this.points = this.points.concat(points);
4273 result.points.push(new fabric.Point(a1.x + ua * (a2.x - a1.x), a1.y + ua * (a2.y - a1.y)));
4298 fabric.Intersection.intersectLinePolygon = function(a1, a2, points) { argument
4300 length = points.length;
4303 var b1 = points[i],
4304 b2 = points[(i + 1) % length],
4307 result.appendPoints(inter.points);
4309 if (result.points.length > 0) {
4331 result.appendPoints(inter.points);
4333 if (result.points.length > 0) {
4347 fabric.Intersection.intersectPolygonRectangle = function (points, r1, r2) { argument
4352 inter1 = Intersection.intersectLinePolygon(min, topRight, points),
4353 inter2 = Intersection.intersectLinePolygon(topRight, max, points),
4354 inter3 = Intersection.intersectLinePolygon(max, bottomLeft, points),
4355 inter4 = Intersection.intersectLinePolygon(bottomLeft, min, points),
4358 result.appendPoints(inter1.points);
4359 result.appendPoints(inter2.points);
4360 result.appendPoints(inter3.points);
4361 result.appendPoints(inter4.points);
4363 if (result.points.length > 0) {
7486 convertPointsToSVGPath: function(points) { argument
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, ' ');
7492 for (var i = 1, len = points.length; i < len; i++) {
7498 p1 = new fabric.Point(points[i].x, points[i].y);
7499 if ((i + 1) < points.length) {
7500 p2 = new fabric.Point(points[i + 1].x, points[i + 1].y);
7587 this.points = [ ];
7613 this.points.length = 0;
7636 for (var i = 0, len = this.points.length; i < len; i++) {
7637 var point = this.points[i],
7680 this.points.push(pointerPoint);
13537 initialize: function(points, options) { argument
13540 if (!points) {
13541 points = [0, 0, 0, 0];
13546 this.set('x1', points[0]);
13547 this.set('y1', points[1]);
13548 this.set('x2', points[2]);
13549 this.set('y2', points[3]);
13758 points = [
13764 return new fabric.Line(points, extend(parsedAttributes, options));
13776 var points = [object.x1, object.y1, object.x2, object.y2];
13777 return new fabric.Line(points, object);
14140 points = [
14149 'points="', points,
14669 points: null,
14705 initialize: function(points, options) { argument
14706 return fabric.Polygon.prototype.initialize.call(this, points, options); argument
14763 for (var i = 0, len = this.points.length; i < len; i++) {
14764 p1 = this.points[i];
14765 p2 = this.points[i + 1] || p1;
14802 var points = fabric.parsePointsAttribute(element.getAttribute('points')),
14805 return new fabric.Polyline(points, fabric.util.object.extend(parsedAttributes, options));
14817 var points = object.points;
14818 return new fabric.Polyline(points, object, true);
14859 points: null,
14881 initialize: function(points, options) { argument
14883 this.points = points || [ ];
14899 var points = this.points,
14900 minX = min(points, 'x'),
14901 minY = min(points, 'y'),
14902 maxX = max(points, 'x'),
14903 maxY = max(points, 'y');
14918 this.points.forEach(function(p) {
14931 points: this.points.concat()
14942 var points = [],
14945 for (var i = 0, len = this.points.length; i < len; i++) {
14946 points.push(toFixed(this.points[i].x, 2), ',', toFixed(this.points[i].y, 2), ' ');
14951 'points="', points.join(''),
14982 var point, len = this.points.length;
14984 if (!len || isNaN(this.points[len - 1].y)) {
14999 ctx.moveTo(this.points[0].x, this.points[0].y);
15001 point = this.points[i];
15021 return this.points.length;
15049 var points = fabric.parsePointsAttribute(element.getAttribute('points')),
15052 return new fabric.Polygon(points, extend(parsedAttributes, options));
15064 return new fabric.Polygon(object.points, object, true);
16105 var points, p, xC = [ ], yC = [ ], path, height, width,
16111 points = [
16117 for (var i = 0; i < points.length; i++) {
16118 p = points[i];