Lines Matching refs:canvas

9909       if (this.canvas) {
9910 this.canvas.width = 0;
9911 this.canvas.height = 0;
9912 delete this.canvas;
9948 var canvas = document.createElement('canvas');
9949 this.canvas = canvas;
9950 canvas.mozOpaque = true;
9951 var ctx = canvas.getContext('2d', {
9955 canvas.width = this.canvasWidth * outputScale.sx | 0;
9956 canvas.height = this.canvasHeight * outputScale.sy | 0;
9957 canvas.style.width = this.canvasWidth + 'px';
9958 canvas.style.height = this.canvasHeight + 'px';
9971 if (!this.canvas) {
9983 this.canvas.id = id;
9984 this.canvas.className = className;
9988 _this.canvas.setAttribute('aria-label', msg);
9991 this.ring.appendChild(this.canvas);
10005 image.src = this.canvas.toDataURL();
10009 this.canvas.width = 0;
10010 this.canvas.height = 0;
10011 delete this.canvas;
10088 var img = pageView.canvas;
10102 var canvas = ctx.canvas;
10104 if (img.width <= 2 * canvas.width) {
10105 ctx.drawImage(img, 0, 0, img.width, img.height, 0, 0, canvas.width, canvas.height);
10112 var reducedWidth = canvas.width << MAX_NUM_SCALING_STEPS;
10113 var reducedHeight = canvas.height << MAX_NUM_SCALING_STEPS;
10124 while (reducedWidth > 2 * canvas.width) {
10130 … ctx.drawImage(reducedImage, 0, 0, reducedWidth, reducedHeight, 0, 0, canvas.width, canvas.height);
10155 } else if (_this3.disableCanvasToImageConversion && _this3.canvas) {
10156 _this3.canvas.setAttribute('aria-label', ariaLabel);
11766 if (this.canvas) {
11767 this.paintedViewportMap["delete"](this.canvas);
11768 this.canvas.width = 0;
11769 this.canvas.height = 0;
11770 delete this.canvas;
11812 if (this.canvas && this.maxCanvasPixels > 0) {
11820 if (this.canvas) {
11822 this.cssTransform(this.canvas, true);
11831 if (!this.zoomLayer && !this.canvas.hasAttribute('hidden')) {
11832 this.zoomLayer = this.canvas.parentNode;
12116 var canvas = document.createElement('canvas');
12117 canvas.id = this.renderingId;
12118 canvas.setAttribute('hidden', 'hidden');
12123 canvas.removeAttribute('hidden');
12128 canvasWrapper.appendChild(canvas);
12129 this.canvas = canvas;
12130 canvas.mozOpaque = true;
12131 var ctx = canvas.getContext('2d', {
12162 canvas.width = (0, _ui_utils.roundToDivide)(viewport.width * outputScale.sx, sfx[0]);
12163 canvas.height = (0, _ui_utils.roundToDivide)(viewport.height * outputScale.sy, sfy[0]);
12164 canvas.style.width = (0, _ui_utils.roundToDivide)(viewport.width, sfx[1]) + 'px';
12165 canvas.style.height = (0, _ui_utils.roundToDivide)(viewport.height, sfy[1]) + 'px';
12166 this.paintedViewportMap.set(canvas, viewport);