Lines Matching refs:current

14052       var cmds, current;
14076 current = cmds[i];
14078 if (current.args !== undefined) {
14079 args = current.args.join(',');
14084 js += 'c.' + current.cmd + '(' + args + ');\n';
14092 current = cmds[_i];
14094 if (current.cmd === 'scale') {
14095 current.args = [size, -size];
14098 c[current.cmd].apply(c, current.args);
14522 this.current = new CanvasExtraState();
14937 if (this.current.activeSMask !== null) {
14960 this.current.lineWidth = width;
15022 this.current.strokeAlpha = state[1];
15026 this.current.fillAlpha = state[1];
15035 if (this.current.activeSMask) {
15036 …ngth > 0 && this.stateStack[this.stateStack.length - 1].activeSMask === this.current.activeSMask) {
15043 this.current.activeSMask = value ? this.tempSMask : null;
15045 if (this.current.activeSMask) {
15055 var activeSMask = this.current.activeSMask;
15078 composeSMask(this.ctx, this.current.activeSMask, groupCtx, this.webGLContext);
15082 this.current.resumeSMaskCtx = groupCtx;
15084 …var deltaTransform = _util.Util.transform(this.current.activeSMask.startTransformInverse, groupCtx…
15093 var groupCtx = this.current.resumeSMaskCtx;
15103 composeSMask(this.ctx, this.current.activeSMask, groupCtx, this.webGLContext);
15107 …var deltaTransform = _util.Util.transform(this.current.activeSMask.startTransformInverse, groupCtx…
15113 var old = this.current;
15115 this.current = old.clone();
15116 this.current.resumeSMaskCtx = null;
15119 if (this.current.resumeSMaskCtx) {
15123 …f (this.current.activeSMask !== null && (this.stateStack.length === 0 || this.stateStack[this.stat…
15128 this.current = this.stateStack.pop();
15140 var current = this.current;
15141 var x = current.x,
15142 y = current.y;
15209 current.setCurrentPoint(x, y);
15217 var strokeColor = this.current.strokeColor;
15218 … ctx.lineWidth = Math.max(this.getSinglePixelWidth() * MIN_WIDTH_FACTOR, this.current.lineWidth);
15219 ctx.globalAlpha = this.current.strokeAlpha;
15234 ctx.globalAlpha = this.current.fillAlpha;
15243 var fillColor = this.current.fillColor;
15244 var isPatternFill = this.current.patternFill;
15305 this.current.textMatrix = _util.IDENTITY_MATRIX;
15306 this.current.textMatrixScale = 1;
15307 this.current.x = this.current.lineX = 0;
15308 this.current.y = this.current.lineY = 0;
15335 this.current.charSpacing = spacing;
15338 this.current.wordSpacing = spacing;
15341 this.current.textHScale = scale / 100;
15344 this.current.leading = -leading;
15348 var current = this.current;
15354 current.fontMatrix = fontObj.fontMatrix ? fontObj.fontMatrix : _util.FONT_IDENTITY_MATRIX;
15356 if (current.fontMatrix[0] === 0 || current.fontMatrix[3] === 0) {
15362 current.fontDirection = -1;
15364 current.fontDirection = 1;
15367 this.current.font = fontObj;
15368 this.current.fontSize = size;
15379 this.current.fontSizeScale = size / browserFontSize;
15383 this.current.textRenderingMode = mode;
15386 this.current.textRise = rise;
15389 this.current.x = this.current.lineX += x;
15390 this.current.y = this.current.lineY += y;
15397 this.current.textMatrix = [a, b, c, d, e, f];
15398 this.current.textMatrixScale = Math.sqrt(a * a + b * b);
15399 this.current.x = this.current.lineX = 0;
15400 this.current.y = this.current.lineY = 0;
15403 this.moveText(0, this.current.leading);
15407 var current = this.current;
15408 var font = current.font;
15409 var textRenderingMode = current.textRenderingMode;
15410 var fontSize = current.fontSize / current.fontSizeScale;
15413 var patternFill = current.patternFill && font.data;
15481 var current = this.current;
15482 var font = current.font;
15488 var fontSize = current.fontSize;
15495 var fontSizeScale = current.fontSizeScale;
15496 var charSpacing = current.charSpacing;
15497 var wordSpacing = current.wordSpacing;
15498 var fontDirection = current.fontDirection;
15499 var textHScale = current.textHScale * fontDirection;
15504 var widthAdvanceScale = fontSize * current.fontMatrix[0];
15505 …var simpleFillText = current.textRenderingMode === _util.TextRenderingMode.FILL && !font.disableFo…
15509 if (current.patternFill) {
15511 var pattern = current.fillColor.getPattern(ctx, this);
15517 ctx.transform.apply(ctx, current.textMatrix);
15518 ctx.translate(current.x, current.y + current.textRise);
15526 var lineWidth = current.lineWidth;
15527 var scale = current.textMatrixScale;
15530 var fillStrokeMode = current.textRenderingMode & _util.TextRenderingMode.FILL_STROKE_MASK;
15615 current.y -= x * textHScale;
15617 current.x += x * textHScale;
15624 var current = this.current;
15625 var font = current.font;
15626 var fontSize = current.fontSize;
15627 var fontDirection = current.fontDirection;
15629 var charSpacing = current.charSpacing;
15630 var wordSpacing = current.wordSpacing;
15631 var textHScale = current.textHScale * fontDirection;
15632 var fontMatrix = current.fontMatrix || _util.FONT_IDENTITY_MATRIX;
15634 var isTextInvisible = current.textRenderingMode === _util.TextRenderingMode.INVISIBLE;
15643 ctx.transform.apply(ctx, current.textMatrix);
15644 ctx.translate(current.x, current.y);
15653 current.x += spacingLength * textHScale;
15676 current.x += width * textHScale;
15709 this.current.strokeColor = this.getColorN_Pattern(arguments);
15712 this.current.fillColor = this.getColorN_Pattern(arguments);
15713 this.current.patternFill = true;
15719 this.current.strokeColor = color;
15725 this.current.fillColor = color;
15726 this.current.patternFill = false;
15866 this.current.activeSMask = null;
15900 this.current = new CanvasExtraState();
15947 var fillColor = this.current.fillColor;
15948 var isPatternFill = this.current.patternFill;
15981 var fillColor = this.current.fillColor;
15982 var isPatternFill = this.current.patternFill;
16003 var fillColor = this.current.fillColor;
16004 var isPatternFill = this.current.patternFill;
16601 current = graphics.current;
16608 current.fillColor = ctx.fillStyle;
16609 current.strokeColor = ctx.strokeStyle;
16617 current.fillColor = cssColor;
16618 current.strokeColor = cssColor;
21224 this.current = new SVGExtraState();
21247 var old = this.current;
21249 this.current = old.clone();
21255 this.current = this.extraStack.pop();
21291 _this.current.dependencies.push(promise);
21313 return Promise.all(this.current.dependencies);
21599 this.current.wordSpacing = wordSpacing;
21604 this.current.charSpacing = charSpacing;
21609 this.moveText(0, this.current.leading);
21614 var current = this.current;
21615 current.textMatrix = current.lineMatrix = [a, b, c, d, e, f];
21616 current.textMatrixScale = Math.sqrt(a * a + b * b);
21617 current.x = current.lineX = 0;
21618 current.y = current.lineY = 0;
21619 current.xcoords = [];
21620 current.tspan = this.svgFactory.createElement('svg:tspan');
21621 current.tspan.setAttributeNS(null, 'font-family', current.fontFamily);
21622 current.tspan.setAttributeNS(null, 'font-size', "".concat(pf(current.fontSize), "px"));
21623 current.tspan.setAttributeNS(null, 'y', pf(-current.y));
21624 current.txtElement = this.svgFactory.createElement('svg:text');
21625 current.txtElement.appendChild(current.tspan);
21630 var current = this.current;
21631 current.x = current.lineX = 0;
21632 current.y = current.lineY = 0;
21633 current.textMatrix = _util.IDENTITY_MATRIX;
21634 current.lineMatrix = _util.IDENTITY_MATRIX;
21635 current.textMatrixScale = 1;
21636 current.tspan = this.svgFactory.createElement('svg:tspan');
21637 current.txtElement = this.svgFactory.createElement('svg:text');
21638 current.txtgrp = this.svgFactory.createElement('svg:g');
21639 current.xcoords = [];
21644 var current = this.current;
21645 current.x = current.lineX += x;
21646 current.y = current.lineY += y;
21647 current.xcoords = [];
21648 current.tspan = this.svgFactory.createElement('svg:tspan');
21649 current.tspan.setAttributeNS(null, 'font-family', current.fontFamily);
21650 current.tspan.setAttributeNS(null, 'font-size', "".concat(pf(current.fontSize), "px"));
21651 current.tspan.setAttributeNS(null, 'y', pf(-current.y));
21656 var current = this.current;
21657 var font = current.font;
21658 var fontSize = current.fontSize;
21664 var charSpacing = current.charSpacing;
21665 var wordSpacing = current.wordSpacing;
21666 var fontDirection = current.fontDirection;
21667 var textHScale = current.textHScale * fontDirection;
21669 var widthAdvanceScale = fontSize * current.fontMatrix[0];
21697 current.xcoords.push(current.x + x * textHScale);
21698 current.tspan.textContent += character;
21717 current.y -= x * textHScale;
21719 current.x += x * textHScale;
21722 current.tspan.setAttributeNS(null, 'x', current.xcoords.map(pf).join(' '));
21723 current.tspan.setAttributeNS(null, 'y', pf(-current.y));
21724 current.tspan.setAttributeNS(null, 'font-family', current.fontFamily);
21725 current.tspan.setAttributeNS(null, 'font-size', "".concat(pf(current.fontSize), "px"));
21727 if (current.fontStyle !== SVG_DEFAULTS.fontStyle) {
21728 current.tspan.setAttributeNS(null, 'font-style', current.fontStyle);
21731 if (current.fontWeight !== SVG_DEFAULTS.fontWeight) {
21732 current.tspan.setAttributeNS(null, 'font-weight', current.fontWeight);
21735 var fillStrokeMode = current.textRenderingMode & _util.TextRenderingMode.FILL_STROKE_MASK;
21738 if (current.fillColor !== SVG_DEFAULTS.fillColor) {
21739 current.tspan.setAttributeNS(null, 'fill', current.fillColor);
21742 if (current.fillAlpha < 1) {
21743 current.tspan.setAttributeNS(null, 'fill-opacity', current.fillAlpha);
21745 } else if (current.textRenderingMode === _util.TextRenderingMode.ADD_TO_PATH) {
21746 current.tspan.setAttributeNS(null, 'fill', 'transparent');
21748 current.tspan.setAttributeNS(null, 'fill', 'none');
21752 var lineWidthScale = 1 / (current.textMatrixScale || 1);
21754 this._setStrokeAttributes(current.tspan, lineWidthScale);
21757 var textMatrix = current.textMatrix;
21759 if (current.textRise !== 0) {
21761 textMatrix[5] += current.textRise;
21764current.txtElement.setAttributeNS(null, 'transform', "".concat(pm(textMatrix), " scale(1, -1)"));
21765 current.txtElement.setAttributeNS(XML_NS, 'xml:space', 'preserve');
21766 current.txtElement.appendChild(current.tspan);
21767 current.txtgrp.appendChild(current.txtElement);
21769 this._ensureTransformGroup().appendChild(current.txtElement);
21792 var current = this.current;
21795 current.font = fontObj;
21802 current.fontMatrix = fontObj.fontMatrix ? fontObj.fontMatrix : _util.FONT_IDENTITY_MATRIX;
21808 current.fontDirection = -1;
21810 current.fontDirection = 1;
21813 current.fontSize = size;
21814 current.fontFamily = fontObj.loadedName;
21815 current.fontWeight = bold;
21816 current.fontStyle = italic;
21817 current.tspan = this.svgFactory.createElement('svg:tspan');
21818 current.tspan.setAttributeNS(null, 'y', pf(-current.y));
21819 current.xcoords = [];
21824 var current = this.current;
21826 …if (current.textRenderingMode & _util.TextRenderingMode.ADD_TO_PATH_FLAG && current.txtElement &&
21827 current.element = current.txtElement;
21836 this.current.lineWidth = width;
21842 this.current.lineCap = LINE_CAP_STYLES[style];
21847 this.current.lineJoin = LINE_JOIN_STYLES[style];
21852 this.current.miterLimit = limit;
21857 this.current.strokeAlpha = strokeAlpha;
21862 this.current.strokeColor = _util.Util.makeCssRgb(r, g, b);
21867 this.current.fillAlpha = fillAlpha;
21872 this.current.fillColor = _util.Util.makeCssRgb(r, g, b);
21873 this.current.tspan = this.svgFactory.createElement('svg:tspan');
21874 this.current.xcoords = [];
21879 this.current.strokeColor = this._makeColorN_Pattern(args);
21884 this.current.fillColor = this._makeColorN_Pattern(args);
21968 var fillColor = this.current.fillColor;
21969 var strokeColor = this.current.strokeColor;
21977 this.current.fillColor = cssColor;
21978 this.current.strokeColor = cssColor;
21984 this.current.fillColor = fillColor;
21985 this.current.strokeColor = strokeColor;
22076 this.current.dashArray = dashArray;
22077 this.current.dashPhase = dashPhase;
22082 var current = this.current;
22083 var x = current.x,
22084 y = current.y;
22161 …if (current.path && ops.length > 0 && ops[0] !== _util.OPS.rectangle && ops[0] !== _util.OPS.moveT…
22162 d = current.path.getAttributeNS(null, 'd') + d;
22164 current.path = this.svgFactory.createElement('svg:path');
22166 this._ensureTransformGroup().appendChild(current.path);
22169 current.path.setAttributeNS(null, 'd', d);
22170 current.path.setAttributeNS(null, 'fill', 'none');
22171 current.element = current.path;
22172 current.setCurrentPoint(x, y);
22177 var current = this.current;
22178 current.path = null;
22184 if (!current.element) {
22193 var clipElement = current.element.cloneNode(true);
22205 if (current.activeClipUrl) {
22206 current.clipGroup = null;
22210 clipPath.setAttributeNS(null, 'clip-path', current.activeClipUrl);
22213 current.activeClipUrl = "url(#".concat(clipId, ")");
22224 var current = this.current;
22226 if (current.path) {
22227 var d = "".concat(current.path.getAttributeNS(null, 'd'), "Z");
22228 current.path.setAttributeNS(null, 'd', d);
22234 this.current.leading = -leading;
22239 this.current.textRise = textRise;
22244 this.current.textRenderingMode = textRenderingMode;
22249 this.current.textHScale = scale / 100;
22334 var current = this.current;
22336 if (current.element) {
22337 current.element.setAttributeNS(null, 'fill', current.fillColor);
22338 current.element.setAttributeNS(null, 'fill-opacity', current.fillAlpha);
22345 var current = this.current;
22347 if (current.element) {
22348 this._setStrokeAttributes(current.element);
22350 current.element.setAttributeNS(null, 'fill', 'none');
22358 var current = this.current;
22359 var dashArray = current.dashArray;
22367 element.setAttributeNS(null, 'stroke', current.strokeColor);
22368 element.setAttributeNS(null, 'stroke-opacity', current.strokeAlpha);
22369 element.setAttributeNS(null, 'stroke-miterlimit', pf(current.miterLimit));
22370 element.setAttributeNS(null, 'stroke-linecap', current.lineCap);
22371 element.setAttributeNS(null, 'stroke-linejoin', current.lineJoin);
22372 element.setAttributeNS(null, 'stroke-width', pf(lineWidthScale * current.lineWidth) + 'px');
22374 … element.setAttributeNS(null, 'stroke-dashoffset', pf(lineWidthScale * current.dashPhase) + 'px');
22379 if (this.current.element) {
22380 this.current.element.setAttributeNS(null, 'fill-rule', 'evenodd');
22394 if (this.current.element) {
22395 this.current.element.setAttributeNS(null, 'fill-rule', 'evenodd');
22426 rect.setAttributeNS(null, 'fill', this.current.fillColor);
22467 this.current.element = cliprect;
22486 var current = this.current;
22489 var fillColor = current.fillColor;
22490 current.maskId = "mask".concat(maskCount++);
22492 mask.setAttributeNS(null, 'id', current.maskId);
22499 rect.setAttributeNS(null, 'mask', "url(#".concat(current.maskId, ")"));
22521 this.current.element = cliprect;
22545 if (!this.current.clipGroup) {
22547 clipGroup.setAttributeNS(null, 'clip-path', this.current.activeClipUrl);
22549 this.current.clipGroup = clipGroup;
22552 return this.current.clipGroup;
22561 if (this.current.activeClipUrl) {