Comparing version 4.0.0-beta.4 to 4.0.0-beta.5
/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */ | ||
var fabric = fabric || { version: '4.0.0-beta.4' }; | ||
var fabric = fabric || { version: '4.0.0-beta.5' }; | ||
if (typeof exports !== 'undefined') { | ||
@@ -5,0 +5,0 @@ exports.fabric = fabric; |
@@ -5,3 +5,3 @@ { | ||
"homepage": "http://fabricjs.com/", | ||
"version": "4.0.0-beta.4", | ||
"version": "4.0.0-beta.5", | ||
"author": "Juriy Zaytsev <kangax@gmail.com>", | ||
@@ -8,0 +8,0 @@ "contributors": [ |
@@ -173,3 +173,3 @@ (function() { | ||
var wh = this._calculateCurrentDimensions(), | ||
strokeWidth = 1 / this.borderScaleFactor, | ||
strokeWidth = this.borderScaleFactor, | ||
width = wh.x + strokeWidth, | ||
@@ -227,3 +227,3 @@ height = wh.y + strokeWidth, | ||
styleOverride = styleOverride || {}; | ||
var p = this._getNonTransformedDimensions(), | ||
var p = { x: this.width, y: this.height }, | ||
matrix = fabric.util.composeMatrix({ | ||
@@ -235,6 +235,8 @@ scaleX: options.scaleX, | ||
wh = fabric.util.transformPoint(p, matrix), | ||
strokeWidth = 1 / this.borderScaleFactor, | ||
width = wh.x + strokeWidth, | ||
height = wh.y + strokeWidth; | ||
strokeWidth = this.strokeWidth, | ||
borderScaleFactor = this.borderScaleFactor, | ||
width = | ||
wh.x + strokeWidth * (this.strokeUniform ? this.canvas.getZoom() : options.scaleX) + borderScaleFactor, | ||
height = | ||
wh.y + strokeWidth * (this.strokeUniform ? this.canvas.getZoom() : options.scaleY) + borderScaleFactor; | ||
ctx.save(); | ||
@@ -241,0 +243,0 @@ this._setLineDash(ctx, styleOverride.borderDashArray || this.borderDashArray, null); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2408224
56740