Lines Matching refs:x

459 	  var x = a.length
463 var len = Math.min(x, y)
471 x = a[i]
475 if (x < y) return -1
476 if (y < x) return 1
2224 renderLine(item.item, item.item.x, item.item.y, pdfKitDoc);
2227 renderImage(item.item, item.item.x, item.item.y, pdfKitDoc);
2239 function renderLine(line, x, y, pdfKitDoc) {
2240 x = x || 0;
2245 textDecorator.drawBackground(line, x, y, pdfKitDoc);
2260 …pdfKitDoc.addContent('' + (x + inline.x) + ' ' + (pdfKitDoc.page.height - y - ascenderHeight) + ' …
2269 textDecorator.drawDecorations(line, x, y, pdfKitDoc);
2310 pdfDoc.ellipse(vector.x, vector.y, vector.r1, vector.r2);
2314 pdfDoc.roundedRect(vector.x, vector.y, vector.w, vector.h, vector.r);
2316 pdfDoc.rect(vector.x, vector.y, vector.w, vector.h);
2326 pdfDoc.moveTo(vector.points[0].x, vector.points[0].y);
2328 pdfDoc.lineTo(vector.points[i].x, vector.points[i].y);
2335 if (vector.closePath || p1.x === pn.x && p1.y === pn.y) {
2351 function renderImage(image, x, y, pdfKitDoc) {
2352 pdfKitDoc.image(image.image, image.x, image.y, { width: image._width, height: image._height });
3264 (function(x) {
13575 this.writer.commitUnbreakableBlock(sizes.x, sizes.y);
13583 x: 0,
13592 x: 0,
13664 var x = node.x, y = node.y;
13668 var x = vector.x, y = vector.y, x1 = vector.x1, y1 = vector.y1, x2 = vector.x2, y2 = vector.y2;
13670 vector.x = x;
13680 node.x = x;
13698 self.writer.context().moveTo(absPosition.x || 0, absPosition.y || 0);
13895 markerLine.x = -marker._minWidth;
14265 x: radius,
14508 w = Math.max(w, vector.x + vector.r1);
14512 w = Math.max(w, vector.x + vector.w);
14521 w = Math.max(w, vector.points[i2].x);
15148 function offsetVector(vector, x, y) {
15152 vector.x += x;
15156 vector.x1 += x;
15157 vector.x2 += x;
15163 vector.points[i].x += x;
15453 var pack = function(x, n) {
15455 buf.push(bits | (x >> (n -= remaining)));
15456 while (n >= 8) buf.push((x >> (n -= 8)) & 255);
15460 if (n > 0) bits |= (x & ((1 << n) - 1)) << (remaining -= n);
15602 var blit = function(y, x, h, w, bits) {
15605 matrix[y+i][x+j] = (bits[i] >> j) & 1;
15606 reserved[y+i][x+j] = 1;
15900 x: 0, y: 0, w: size, h: size, lineWidth: 0, color: background
15908 x: modSize * i,
15955 this.x = pageMargins.left;
15971 x: this.x,
15991 this.x = this.x + this.lastColumnWidth + (offset || 0);
16010 this.x = endingCell._columnEndingContext.x;
16020 x: this.x,
16034 this.x = saved.x;
16043 this.x += left;
16068 DocumentContext.prototype.moveTo = function(x,y) {
16069 if(x !== undefined && x !== null) {
16070 this.x = x;
16071 this.availableWidth = this.getCurrentPage().pageSize.width - this.x - this.pageMargins.right;
16081 x: this.x,
16094 this.x = saved.x;
16184 left: this.x,
16187 horizontalRatio: ((this.x - this.pageMargins.left) / innerWidth)
16200 x: r.x,
16300 this.originalX = this.writer.context.x;
16412 line.x = context.x + (line.x || 0);
16445 line.x = (line.x || 0) + offset;
16457 line.inlines[i].x += offset;
16471 image.x = context.x + (image.x || 0);
16495 qr.x = context.x + (qr.x || 0);
16502 vector.x += qr.x;
16526 image.x = (image.x || 0) + offset;
16536 offsetVector(vector, ignoreContextX ? 0 : context.x, ignoreContextY ? 0 : context.y);
16568 l.x = (l.x || 0) + (useBlockXOffset ? (block.xOffset || 0) : ctx.x);
16580 …offsetVector(v, useBlockXOffset ? (block.xOffset || 0) : ctx.x, useBlockYOffset ? (block.yOffset |…
16590 img.x = (img.x || 0) + (useBlockXOffset ? (block.xOffset || 0) : ctx.x);
16683 inline.x = this.inlineWidths - this.leadingCut;
16765 var x = 0;
16775 x += lastWidth;
16776 rsd.push({ left: x, rowSpan: 0, width: 0 });
16852 TableProcessor.prototype.drawVerticalLine = function(x, y0, y1, vLineIndex, writer) {
16857 x1: x + width/2,
16858 x2: x + width/2,
16925 … this.drawVerticalLine(xs[i].x, y1 - hzLineOffset, y2 + this.bottomLineWidth, xs[i].index, writer);
16931 var xf = xs[i].x+wBorder;
16935 x: xf,
16937 w: xs[i+1].x-xf,
17006 result.push({ x: self.rowSpanData[i].left, index: i});
17016 …result.push({ x: self.rowSpanData[self.rowSpanData.length - 1].left, index: self.rowSpanData.lengt…
17134 this.x = this.page.margins.left;
18707 function indexOf (xs, x) {
18709 if (xs[i] === x) return i;
26687 var str = String(f).replace(formatRegExp, function(x) {
26688 if (x === '%%') return '%';
26689 if (i >= len) return x;
26690 switch (x) {
26700 return x;
26703 for (var x = args[i]; i < len; x = args[++i]) {
26704 if (isNull(x) || !isObject(x)) {
26705 str += ' ' + x;
26707 str += ' ' + inspect(x);
28449 moveTo: function(x, y) {
28450 return this.addContent("" + x + " " + y + " m");
28452 lineTo: function(x, y) {
28453 return this.addContent("" + x + " " + y + " l");
28455 bezierCurveTo: function(cp1x, cp1y, cp2x, cp2y, x, y) {
28456 …return this.addContent("" + cp1x + " " + cp1y + " " + cp2x + " " + cp2y + " " + x + " " + y + " c"…
28458 quadraticCurveTo: function(cpx, cpy, x, y) {
28459 return this.addContent("" + cpx + " " + cpy + " " + x + " " + y + " v");
28461 rect: function(x, y, w, h) {
28462 return this.addContent("" + x + " " + y + " " + w + " " + h + " re");
28464 roundedRect: function(x, y, w, h, r) {
28468 this.moveTo(x + r, y);
28469 this.lineTo(x + w - r, y);
28470 this.quadraticCurveTo(x + w, y, x + w, y + r);
28471 this.lineTo(x + w, y + h - r);
28472 this.quadraticCurveTo(x + w, y + h, x + w - r, y + h);
28473 this.lineTo(x + r, y + h);
28474 this.quadraticCurveTo(x, y + h, x, y + h - r);
28475 this.lineTo(x, y + r);
28476 return this.quadraticCurveTo(x, y, x + r, y);
28478 ellipse: function(x, y, r1, r2) {
28483 x -= r1;
28487 xe = x + r1 * 2;
28489 xm = x + r1;
28491 this.moveTo(x, ym);
28492 this.bezierCurveTo(x, ym - oy, xm - ox, y, xm, y);
28495 this.bezierCurveTo(xm - ox, ye, x, ym + oy, x, ym);
28498 circle: function(x, y, radius) {
28499 return this.ellipse(x, y, radius);
28582 translate: function(x, y) {
28583 return this.transform(1, 0, 0, 1, x, y);
28586 var cos, rad, sin, x, x1, y, y1, _ref;
28593 x = y = 0;
28595 _ref = options.origin, x = _ref[0], y = _ref[1];
28596 x1 = x * cos - y * sin;
28597 y1 = x * sin + y * cos;
28598 x -= x1;
28601 return this.transform(cos, sin, -sin, cos, x, y);
28604 var x, y, _ref;
28615 x = y = 0;
28617 _ref = options.origin, x = _ref[0], y = _ref[1];
28618 x -= xFactor * x;
28621 return this.transform(xFactor, 0, 0, yFactor, x, y);
28909 solveArc = function(doc, x, y, coords) {
28912 segs = arcToSegments(ex, ey, rx, ry, large, sweep, rot, x, y);
28922 arcToSegments = function(x, y, rx, ry, large, sweep, rotateX, ox, oy) {
28929 px = cos_th * (ox - x) * 0.5 + sin_th * (oy - y) * 0.5;
28930 py = cos_th * (oy - y) * 0.5 - sin_th * (ox - x) * 0.5;
28943 x1 = a00 * x + a01 * y;
28944 y1 = a10 * x + a11 * y;
31617 this.x = 0;
31639 _text: function(text, x, y, options, lineCallback) {
31641 options = this._initOptions(x, y, options);
31664 text: function(text, x, y, options) {
31665 return this._text(text, x, y, options, this._line.bind(this));
31674 var height, lineGap, x, y;
31678 x = this.x, y = this.y;
31682 this._text(text, this.x, this.y, options, (function(_this) {
31688 this.x = x;
31692 list: function(list, x, y, options, wrapper) {
31694 options = this._initOptions(x, y, options);
31727 _this.x += diff;
31731 _this.circle(_this.x - indent + r, _this.y + r + (r / 2), r);
31739 _this.x += pos;
31747 _this.x -= pos;
31754 _initOptions: function(x, y, options) {
31756 if (x == null) {
31757 x = {};
31762 if (typeof x === 'object') {
31763 options = x;
31764 x = null;
31786 if (x != null) {
31787 this.x = x;
31795 options.width = this.page.width - this.x - margins.right;
31809 this._fragment(text, this.x, this.y, options);
31812 return this.x += this.widthOfString(text);
31817 _fragment: function(text, x, y, options) {
31830 x += options.lineWidth - textWidth;
31833 x += options.lineWidth / 2 - options.textWidth / 2;
31844 this.link(x, y, renderedWidth, this.currentLineHeight(), options.link);
31858 this.moveTo(x, lineY);
31859 this.lineTo(x + renderedWidth, lineY);
31871 this.addContent("" + x + " " + y + " Td");
31946 this.startX = this.document.x;
31961 _this.document.x += indent;
31964 _this.document.x -= indent;
32139 return this.document.x = this.startX;
32154 this.document.x = this.startX;
32160 this.document.x += this.lineWidth + this.columnGap;
65186 image: function(src, x, y, options) {
65191 if (typeof x === 'object') {
65192 options = x;
65193 x = null;
65195 x = (_ref = x != null ? x : options.x) != null ? _ref : this.x;
65235 x = x + bw / 2 - w / 2;
65237 x = x + bw - w;
65249 this.transform(w, 0, 0, -h, x, y + h);
65425 var mask, palette, params, rgb, val, x, _i, _len;
65462 x = rgb[_i];
65463 mask.push(x, x);
65898 annotate: function(x, y, w, h, options) {
65901 options.Rect = this._convertRect(x, y, w, h);
65921 note: function(x, y, w, h, contents, options) {
65931 return this.annotate(x, y, w, h, options);
65933 link: function(x, y, w, h, url, options) {
65943 return this.annotate(x, y, w, h, options);
65945 _markup: function(x, y, w, h, options) {
65950 _ref = this._convertRect(x, y, w, h), x1 = _ref[0], y1 = _ref[1], x2 = _ref[2], y2 = _ref[3];
65953 return this.annotate(x, y, w, h, options);
65955 highlight: function(x, y, w, h, options) {
65963 return this._markup(x, y, w, h, options);
65965 underline: function(x, y, w, h, options) {
65970 return this._markup(x, y, w, h, options);
65972 strike: function(x, y, w, h, options) {
65977 return this._markup(x, y, w, h, options);
65988 rectAnnotation: function(x, y, w, h, options) {
65994 return this.annotate(x, y, w, h, options);
65996 ellipseAnnotation: function(x, y, w, h, options) {
66002 return this.annotate(x, y, w, h, options);
66004 textAnnotation: function(x, y, w, h, text, options) {
66011 return this.annotate(x, y, w, h, options);
66179 function drawDecoration(group, x, y, pdfKitDoc) {
66223 .rect(x + firstInline.x, y-lw/2, totalWidth, lw/2).fill()
66224 .rect(x + firstInline.x, y+gap-lw/2, totalWidth, lw/2).fill();
66227 var rdx = x + firstInline.x;
66236 var rx = x + firstInline.x;
66246 var rwx = x + firstInline.x - 1;
66247 pdfKitDoc.rect(x + firstInline.x, y-sv, totalWidth, y+sv).clip();
66259 .rect(x + firstInline.x, y-lw/2, totalWidth, lw)
66265 function drawDecorations(line, x, y, pdfKitDoc) {
66268 drawDecoration(groups[i], x, y, pdfKitDoc);
66272 function drawBackground(line, x, y, pdfKitDoc) {
66278 .rect(x + inline.x, y, inline.width, height)