Lines Matching refs:width

3359         width: widthAttr,  property in fabric.parseSVGDocument.AnonymousFunction064b60f11000.options
3422 'width="', canvas[property].source.width,
3426 'width="', canvas[property].source.width,
5036 coords[prop] += this.offsetX - object.width / 2;
5110 coords[prop] += -this.offsetX + object.width / 2;
5121 coords[prop] -= object.width / 2;
5264 multFactor *= gradientUnits === 'objectBoundingBox' ? object.width : 1;
5396 patternWidth = patternSource.width / object.getWidth(),
5420 ' width="' + patternSource.width +
5576 if (object.width && object.height) {
6089 this.width = this.width || parseInt(this.lowerCanvasEl.width, 10) || 0;
6096 this.lowerCanvasEl.width = this.width;
6099 this.lowerCanvasEl.style.width = this.width + 'px';
6128 return this.width;
6149 return this.setDimensions({ width: value }, options);
6428 ctx.clearRect(0, 0, this.width, this.height);
6563 this.width,
6584 this.width,
6905 var width, height, vpt;
6908 width = options.viewBox.width;
6912 width = this.width;
6916 width /= vpt[0];
6926 'width="', width, '" ',
6935 options.viewBox.width + ' ' +
6979 ? this[property].source.width
6980 : this.width),
6992 'width="', this.width,
7257 width: 1,
7308 ctx.lineWidth = this.width;
7516 strokeWidth: this.width,
7578 width: 10,
7671 Math.max(0, this.width - 20), this.width + 20) / 2,
7698 width: 10,
7782 width: sprayChunk[j].width,
7783 height: sprayChunk[j].width,
7851 ctx.fillRect(point.x, point.y, point.width, point.width);
7862 var x, y, width, radius = this.width / 2;
7870 width = fabric.util.getRandomInt(
7876 width = this.dotWidth;
7880 point.width = width;
7908 patternCanvas.width = patternCanvas.height = dotWidth + dotDistance;
8381 width: target.width * target.scaleX, property in AnonymousFunction064b60f1b700._currentTransform
8454 transform.newScaleX = localMouse.x / (target.width + strokeWidth / 2);
8491 (target.width + (strokeWidth / 2)) * transform.original.scaleX;
8784 boundsWidth = bounds.width || 0,
8810 cssScale = { width: 1, height: 1 };
8814 width: upperCanvasEl.width / boundsWidth,
8820 x: pointer.x * cssScale.width,
8847 this.cacheCanvasEl.setAttribute('width', this.width);
8860 width: this.getWidth() + 'px',
8872 var width = this.getWidth() || element.width,
8877 width: width + 'px',
8882 element.width = width;
10092 width: options.width, property in AnonymousFunction064b60f110b00.cropping
10150 croppedCanvasEl.width = cropping.width || this.width;
10184 if (cropping.width) {
10185 cropping.width *= multiplier;
10188 cropping.width = scaledWidth;
10211 this.width = origWidth;
10474 el.width = this.getWidth();
10827 width: 0,
11267 width: toFixed(this.width, NUM_FRACTION_DIGITS), property in AnonymousFunction064b60f112d00.object
11395 this.minScaleLimit = toFixed(Math.min(0.1, 1/Math.max(this.width, this.height)), 2);
11451 if ((this.width === 0 && this.height === 0) || !this.visible) {
11584 -this.width / 2 + this.fill.offsetX || 0,
11680 el.width = boundingRect.width;
11702 this.setPositionByOrigin(new fabric.Point(el.width / 2, el.height / 2), 'center', 'center');
12332 …point2 = new fabric.Point(boundingRect.left + boundingRect.width, boundingRect.top + boundingRect.…
12348 boundingRect.left + boundingRect.width <= pointBR.x &&
12448 return this.getBoundingRect().width;
12470 width = Math.abs(minX - maxX),
12480 width: width,
12490 return this.width * this.scaleX;
12549 return this.scale(value / this.width / boundingRectFactor);
12801 addTranslateX = this.type === 'path-group' ? this.width * vpt[0] : 0,
13001 w = this.width,
13004 vLine = this.type === 'line' && this.width === 0,
13052 width = wh.x,
13055 width = width * this.group.scaleX;
13060 ~~(-(width / 2)) - 0.5, // offset needed to make lines look sharper
13062 ~~(width) + 1, // double offset needed to make lines look sharper
13095 width = wh.x,
13097 left = -(width / 2),
13116 left + width - scaleOffset,
13126 left + width - scaleOffset,
13133 left + width/2 - scaleOffset,
13138 left + width/2 - scaleOffset,
13143 left + width - scaleOffset,
13155 left + width/2 - scaleOffset,
13561 this.width = Math.abs(this.x2 - this.x1);
13688 x1 = (xMult * this.width * 0.5),
13690 x2 = (xMult * this.width * -0.5),
14093 this.set('width', options.width || 100)
14102 var widthBy2 = this.width / 2,
14120 var widthBy2 = this.width / 2,
14138 widthBy2 = this.width / 2,
14486 if (this.width === 1 && this.height === 1) {
14491 var rx = this.rx ? Math.min(this.rx, this.width / 2) : 0,
14493 w = this.width,
14495 x = noTransform ? this.left : -this.width / 2,
14527 var x = -this.width / 2,
14529 w = this.width,
14565 x = -this.width / 2;
14572 '" width="', this.width, '" height="', this.height,
14619 rect.visible = rect.width > 0 && rect.height > 0;
14905 this.width = (maxX - minX) || 0;
14919 p.x -= (this.minX + this.width / 2);
15183 this.width = calcDim.width;
15187 ? this.width / 2
15189 ? this.width
15202 x: this.minX + this.width / 2,
15968 width: deltaX,
16105 var points, p, xC = [ ], yC = [ ], path, height, width,
16110 width = path.width + path.strokeWidth;
16113 { x: path.left + width, y: path.top },
16115 { x: path.left + width, y: path.top + height }
16126 options.width = Math.max.apply(null, xC);
16149 ctx.translate(-this.width/2, -this.height/2);
16774 width: (maxXY.x - minXY.x) || 0, property in AnonymousFunction064b60f120800.obj
16782 obj.left += obj.width / 2;
16785 obj.left += obj.width;
17033 width: element.width,
17046 ctx.strokeRect(-this.width / 2, -this.height / 2, this.width, this.height);
17056 var x = -this.width / 2,
17058 w = this.width,
17098 var markup = [], x = -this.width / 2, y = -this.height / 2,
17115 '" width="', this.width,
17127 '" width="', this.width, '" height="', this.height,
17202 canvasEl.width = imgEl.width;
17204 canvasEl.getContext('2d').drawImage(imgEl, 0, 0, imgEl.width, imgEl.height);
17214 _this.width *= filter.scaleX;
17220 replacement.width = canvasEl.width;
17248 x = (noTransform ? this.left : -this.width / 2);
17253 ctx.rect(x, y, this.width, this.height);
17268 imageMargins.width,
17285 var width = this.width, height = this.height, scales,
17289 scales = [this.width / this._element.width, this.height / this._element.height];
17292 width = this._element.width * scale;
17295 marginX = (this.width - width) / 2;
17298 marginX = this.width - width;
17308 width: width,
17321 this.set('width', element.width);
17370 this.width = 'width' in options
17371 ? options.width
17373 ? this.getElement().width || 0
17698 imageData = context.getImageData(0, 0, canvasEl.width, canvasEl.height),
17828 pixels = context.getImageData(0, 0, canvasEl.width, canvasEl.height),
17833 sw = pixels.width,
17957 imageData = context.getImageData(0, 0, canvasEl.width, canvasEl.height),
18026 imageData = context.getImageData(0, 0, canvasEl.width, canvasEl.height),
18028 len = imageData.width * imageData.height * 4,
18089 imageData = context.getImageData(0, 0, canvasEl.width, canvasEl.height),
18163 imageData = context.getImageData(0, 0, canvasEl.width, canvasEl.height),
18169 iLen = imageData.width * imageData.height * 4;
18171 maskCanvasEl.width = maskEl.width;
18174 maskCanvasEl.getContext('2d').drawImage(maskEl, 0, 0, maskEl.width, maskEl.height);
18176 … var maskImageData = maskCanvasEl.getContext('2d').getImageData(0, 0, maskEl.width, maskEl.height),
18269 imageData = context.getImageData(0, 0, canvasEl.width, canvasEl.height),
18356 imageData = context.getImageData(0, 0, canvasEl.width, canvasEl.height),
18359 jLen = imageData.width,
18471 imageData = context.getImageData(0, 0, canvasEl.width, canvasEl.height),
18556 imageData = context.getImageData(0, 0, canvasEl.width, canvasEl.height),
18616 imageData = context.getImageData(0, 0, canvasEl.width, canvasEl.height),
18706 imageData = context.getImageData(0, 0, canvasEl.width, canvasEl.height),
18813 imageData = context.getImageData(0, 0, canvasEl.width, canvasEl.height),
18891 imageData = context.getImageData(0, 0, canvasEl.width, canvasEl.height),
18904 _el.width = this.image.width;
18910 source = context2.getImageData(0, 0, tmpCanvas.width, tmpCanvas.height).data;
19066 var oW = canvasEl.width, oH = canvasEl.height,
19082 canvasEl.width = dW;
19087 sliceByTwo: function(canvasEl, width, height, newWidth, newHeight) { argument
19090 doneW = false, doneH = false, stepW = width, stepH = height,
19095 tmpCanvas.width = max(newWidth, width);
19098 if (newWidth > width) {
19106 imageData = context.getImageData(0, 0, width, height);
19107 canvasEl.width = max(newWidth, width);
19112 width = stepW;
19128 imageData = context.getImageData(0, 0, width, height);
19131 context.drawImage(tmpCanvas, 0, 0, width, height, 0, 0, stepW, stepH);
19658 this.width = this._getTextWidth(ctx);
19710 ctx.translate(this.textAlign === 'center' ? (this.width / 2) : this.width, 0);
19784 totalWidth = this.width;
19796 leftOffset += ctx.measureText(words[i]).width + spaceWidth;
19810 return ctx.measureText(line.replace(/\s+/g, '')).width;
19818 return -this.width / 2;
19928 this.width,
19974 return (this.width - lineWidth) / 2;
19977 return this.width - lineWidth;
20014 this.__lineWidths[lineIndex] = ctx.measureText(this._textLines[lineIndex]).width;
20152 textLeft = -this.width / 2,
20248 toFixed(-this.width / 2, 4),
20252 toFixed(this.width, 4),
20966 ? (this.width / 2)
20968 ? this.width
21062 ctx.translate(ctx.measureText(_char).width, 0);
21271 return ctx.measureText(_char).width;
21275 this._charWidthsCache[cacheProp] = ctx.measureText(_char).width;
21329 var width = this._applyCharStylesGetWidth(ctx, _char, lineIndex, charIndex);
21331 return width;
21360 var width = 0, i, _char;
21363 width += this._getWidthOfChar(ctx, _char, lineIndex, i);
21365 return width;
21391 widthDiff = this.width - wordsWidth,
21393 width = widthDiff / numSpaces;
21394 this.__widthOfSpace[lineIndex] = width;
21395 return width;
21405 var width = 0;
21411 width += this._getWidthOfChar(ctx, _char, lineIndex, charIndex);
21415 return width;
21468 this.width,
22432 width = 0,
22445 width = lineLeftOffset * this.scaleX;
22455 prevWidth = width;
22457 width += this._getWidthOfChar(this.ctx, _char, i, this.flipX ? jlen - j : j) *
22460 if (height <= mouseOffset.y || width <= mouseOffset.x) {
22466 mouseOffset, prevWidth, width, charIndex + i, jlen);
22471 mouseOffset, prevWidth, width, charIndex + i, jlen);
22484 _getNewSelectionStartFromOffset: function(mouseOffset, prevWidth, width, index, jlen) { argument
22487 distanceBtwNextCharAndCursor = width - mouseOffset.x,
23167 lineLeftOffset = this._getSVGLineLeftOffset(lineIndex) - this.width / 2,
23401 fabric.createCanvasForNode = function(width, height, options, nodeCanvasOptions) { argument
23405 nodeCanvas = new Canvas(width || 600, height || 600, nodeCanvasOptions);
23410 canvasEl.width = nodeCanvas.width;
23433 fabric.StaticCanvas.prototype.setWidth = function(width, options) { argument
23434 origSetWidth.call(this, width, options);
23435 this.nodeCanvas.width = width;