Lines Matching refs:y

460 	  var y = b.length
463 var len = Math.min(x, y)
472 y = b[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) {
2241 y = y || 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 });
13575 this.writer.commitUnbreakableBlock(sizes.x, sizes.y);
13584 y: 0,
13593 y: pageSize.height - pageMargins.bottom,
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;
13671 vector.y = y;
13681 node.y = y;
13698 self.writer.context().moveTo(absPosition.x || 0, absPosition.y || 0);
13842 pageDesc.y = Math.min(pageDesc.y, data.y);
13896 markerLine.y = line.getAscenderHeight() - markerLine.getAscenderHeight();
14266y: (gapSize.height / gapSize.lineHeight) + gapSize.decender - gapSize.fontSize / 3,//0,// gapSize.…
14509 h = Math.max(h, vector.y + vector.r2);
14513 h = Math.max(h, vector.y + vector.h);
14522 h = Math.max(h, vector.points[i2].y);
15148 function offsetVector(vector, x, y) {
15153 vector.y += y;
15158 vector.y1 += y;
15159 vector.y2 += y;
15164 vector.points[i].y += y;
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
15909 y: modSize * j,
15972 y: this.y,
15976 bottomMost: { y: this.y, page: this.page },
15992 this.y = saved.y;
16011 this.y = endingCell._columnEndingContext.y;
16021 y: this.y,
16035 this.y = saved.bottomMost.y;
16048 this.y += offset;
16055 this.y = this.pageMargins.top;
16068 DocumentContext.prototype.moveTo = function(x,y) {
16073 if(y !== undefined && y !== null){
16074 this.y = y;
16075 this.availableHeight = this.getCurrentPage().pageSize.height - this.y - this.pageMargins.bottom;
16082 y: this.y,
16095 this.y = saved.y;
16138 var prevY = this.y;
16152 y: this.y
16185 top: this.y,
16186 verticalRatio: ((this.y - this.pageMargins.top) / innerHeight),
16196 else r = (c1.y > c2.y) ? c1 : c2;
16201 y: r.y,
16294 y: nextPage.y
16329 fragment.height = unbreakableContext.y;
16352 rep.height = unbreakableContext.y;
16413 line.y = context.y + (line.y || 0);
16472 image.y = context.y;
16496 qr.y = context.y;
16503 vector.y += qr.y;
16536 offsetVector(vector, ignoreContextX ? 0 : context.x, ignoreContextY ? 0 : context.y);
16569 l.y = (l.y || 0) + (useBlockYOffset ? (block.yOffset || 0) : ctx.y);
16580 …v, useBlockXOffset ? (block.xOffset || 0) : ctx.x, useBlockYOffset ? (block.yOffset || 0) : ctx.y);
16591 img.y = (img.y || 0) + (useBlockYOffset ? (block.yOffset || 0) : ctx.y);
16662 var y = 0;
16665 y = Math.max(y, inline.font.ascender / 1000 * inline.fontSize);
16667 return y;
16804 this.rowTopY = writer.context().y;
16830 var y = (overrideY || 0) + offset;
16838 y1: y,
16839 y2: y,
16880 var endingY = writer.context().y;
16898 ys.push({y0: pageBreak.y, page: pageBreak.prevPage + 1});
16936 y: yf,
16955 writer.context().y = endingY;
17135 this.y = this.page.margins.top;
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) {
28484 y -= r2;
28488 ye = y + r2 * 2;
28490 ym = y + r2;
28492 this.bezierCurveTo(x, ym - oy, xm - ox, y, xm, y);
28493 this.bezierCurveTo(xm + ox, y, xe, ym - oy, xe, 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;
28599 y -= y1;
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];
28619 y -= yFactor * y;
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;
31618 this.y = 0;
31629 this.y += this.currentLineHeight(true) * lines + this._lineGap;
31636 this.y -= this.currentLineHeight(true) * lines + this._lineGap;
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) {
31684 return _this.y += _this.currentLineHeight(true) + lineGap;
31687 height = this.y - y;
31689 this.y = y;
31692 list: function(list, x, y, options, wrapper) {
31694 options = this._initOptions(x, y, options);
31731 _this.circle(_this.x - indent + r, _this.y + r + (r / 2), r);
31754 _initOptions: function(x, y, options) {
31789 if (y != null) {
31790 this.y = y;
31809 this._fragment(text, this.x, this.y, options);
31814 return this.y += this.currentLineHeight(true) + lineGap;
31817 _fragment: function(text, x, y, options) {
31844 this.link(x, y, renderedWidth, this.currentLineHeight(), options.link);
31854 lineY = y + this.currentLineHeight() / d;
31865 y = this.page.height - y - (this._font.ascender / 1000 * this._fontSize);
31871 this.addContent("" + x + " " + y + " Td");
31947 this.startY = this.document.y;
31984 _this.document.y += options.paragraphGap || 0;
32034 var buffer, emitLine, lc, nextY, textWidth, wc, y;
32047 nextY = this.document.y + this.document.currentLineHeight(true);
32048 if (this.document.y > this.maxY || nextY > this.maxY) {
32055 y = this.document.y;
32061 y = _this.document.y;
32084 …if ((_this.height != null) && _this.ellipsis && _this.document.y + lh * 2 > _this.maxY && _this.co…
32097 if (_this.document.y + lh > _this.maxY) {
32137 return this.document.y = y;
32161 this.document.y = this.startY;
65186 image: function(src, x, y, options) {
65196 y = (_ref1 = y != null ? y : options.y) != null ? _ref1 : this.y;
65240 y = y + bh / 2 - h / 2;
65242 y = y + bh - h;
65245 if (this.y === y) {
65246 this.y += h;
65249 this.transform(w, 0, 0, -h, x, y + h);
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) {
66207 y += lineAscent + descent * 0.45;
66210 y += lineAscent - (ascent * 0.85);
66213 y += lineAscent - (ascent * 0.25);
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();
66228 pdfKitDoc.rect(rdx, y, totalWidth, lw).clip();
66231 pdfKitDoc.rect(rdx, y-lw/2, 3.96, lw).fill();
66237 pdfKitDoc.rect(rx, y, totalWidth, lw).clip();
66240 pdfKitDoc.rect(rx, y-lw/2, lw, lw).fill();
66247 pdfKitDoc.rect(x + firstInline.x, y-sv, totalWidth, y+sv).clip();
66249 pdfKitDoc.moveTo(rwx, y);
66251 pdfKitDoc .bezierCurveTo(rwx+sh, y-sv, rwx+sh*2, y-sv, rwx+sh*3, y)
66252 .bezierCurveTo(rwx+sh*4, y+sv, rwx+sh*5, y+sv, rwx+sh*6, y);
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)