Lines Matching refs:toFixed

467     toFixed: function(number, fractionDigits) {  method in fabric.util
468 return parseFloat(Number(number).toFixed(fractionDigits));
2821 toFixed = fabric.util.toFixed, variable
2920 …attributes[attr] = color.setAlpha(toFixed(color.getAlpha() * attributes[colorAttributes[attr]], 2)…
4580 … average = parseInt((source[0] * 0.3 + source[1] * 0.59 + source[2] * 0.11).toFixed(0), 10),
4593 average = (source[0] * 0.3 + source[1] * 0.59 + source[2] * 0.11).toFixed(0),
5462 toFixed = fabric.util.toFixed; variable
5579 fBoxX = toFixed(Math.abs(this.offsetX / object.getWidth()), 2) * 100 + 20;
5580 fBoxY = toFixed(Math.abs(this.offsetY / object.getHeight()), 2) * 100 + 20;
5587 toFixed(this.blur ? this.blur / 2 : 0, 3) +
10500 toFixed = fabric.util.toFixed, variable
11265 left: toFixed(this.left, NUM_FRACTION_DIGITS),
11266 top: toFixed(this.top, NUM_FRACTION_DIGITS),
11267 width: toFixed(this.width, NUM_FRACTION_DIGITS),
11268 height: toFixed(this.height, NUM_FRACTION_DIGITS),
11271 strokeWidth: toFixed(this.strokeWidth, NUM_FRACTION_DIGITS),
11275 strokeMiterLimit: toFixed(this.strokeMiterLimit, NUM_FRACTION_DIGITS),
11276 scaleX: toFixed(this.scaleX, NUM_FRACTION_DIGITS),
11277 scaleY: toFixed(this.scaleY, NUM_FRACTION_DIGITS),
11278 angle: toFixed(this.getAngle(), NUM_FRACTION_DIGITS),
11281 opacity: toFixed(this.opacity, NUM_FRACTION_DIGITS),
11395 this.minScaleLimit = toFixed(Math.min(0.1, 1/Math.max(this.width, this.height)), 2);
12776 var toFixed = fabric.util.toFixed,
12784 toFixed(center.x, NUM_FRACTION_DIGITS) +
12786 toFixed(center.y, NUM_FRACTION_DIGITS) +
12790 ? (' rotate(' + toFixed(angle, NUM_FRACTION_DIGITS) + ')')
12796 toFixed(this.scaleX * vpt[0], NUM_FRACTION_DIGITS) +
12798 toFixed(this.scaleY * vpt[3], NUM_FRACTION_DIGITS) +
14832 toFixed = fabric.util.toFixed;
14946 points.push(toFixed(this.points[i].x, 2), ',', toFixed(this.points[i].y, 2), ' ');
19331 toFixed = fabric.util.toFixed,
20215 toFixed(textLeftOffset + this._getLineLeftOffset(this.__lineWidths[i]), 4), '" ',
20217 toFixed(yPos, 4),
20232 toFixed(textLeftOffset + this._getLineLeftOffset(this.__lineWidths[i]), 4),
20234 toFixed(height - this.height / 2, 4),
20236 toFixed(this.__lineWidths[i], 4),
20238 toFixed(this._getHeightOfLine(this.ctx, i) / this.lineHeight, 4),
20248 toFixed(-this.width / 2, 4),
20250 toFixed(-this.height / 2, 4),
20252 toFixed(this.width, 4),
20254 toFixed(this.height, 4),
23194 return fabric.util.toFixed(this._getLineLeftOffset(this.__lineWidths[lineIndex]), 2);