Comparing version 1.7.7 to 1.7.8
@@ -0,6 +1,14 @@ | ||
**Version 1.7.8** | ||
- Fix: Fix dirty flag propagation [#3782](https://github.com/kangax/fabric.js/pull/3782) | ||
- Fix: Path parsing error in bounding boxes of curves [#3774](https://github.com/kangax/fabric.js/pull/3774) | ||
- Add: Middle click mouse management on canvas [#3764](https://github.com/kangax/fabric.js/pull/3764) | ||
- Add: Add parameter to detect and skip offscreen drawing [#3758](https://github.com/kangax/fabric.js/pull/3758) | ||
- Fix: textarea loosing focus after a drag and exit from canvas [#3759](https://github.com/kangax/fabric.js/pull/3759) | ||
**Version 1.7.7** | ||
- Fix for opacity parsing in svg with nested opacities [#3747] (https://github.com/kangax/fabric.js/pull/3747) | ||
- Fix text initialization and boundingrect [#3745] (https://github.com/kangax/fabric.js/pull/3745) | ||
- Fix line bounding box [#3742] (https://github.com/kangax/fabric.js/pull/3742) | ||
- Fix for opacity parsing in svg with nested opacities [#3747](https://github.com/kangax/fabric.js/pull/3747) | ||
- Fix text initialization and boundingrect [#3745](https://github.com/kangax/fabric.js/pull/3745) | ||
- Fix line bounding box [#3742](https://github.com/kangax/fabric.js/pull/3742) | ||
- Improvement: do not pollute style object while typing if not necessary [#3743](https://github.com/kangax/fabric.js/pull/3743) | ||
@@ -7,0 +15,0 @@ - fix for broken prototype chain when restoring a dataless object on fill an stroke [#3735](https://github.com/kangax/fabric.js/pull/3735) |
@@ -28,3 +28,3 @@ <!-- | ||
## Version | ||
1.7.7 | ||
1.7.8 | ||
@@ -31,0 +31,0 @@ ## Test Case |
@@ -5,3 +5,3 @@ { | ||
"homepage": "http://fabricjs.com/", | ||
"version": "1.7.7", | ||
"version": "1.7.8", | ||
"author": "Juriy Zaytsev <kangax@gmail.com>", | ||
@@ -8,0 +8,0 @@ "contributors": [ |
@@ -541,2 +541,13 @@ (function() { | ||
test('dirty flag propagation from children up with', function() { | ||
var g1 = makeGroupWith4Objects(); | ||
var obj = g1.item(0); | ||
g1.dirty = false; | ||
obj.dirty = false; | ||
equal(g1.dirty, false, 'Group has no dirty flag set'); | ||
obj.set('angle', 5); | ||
equal(obj.dirty, false, 'Obj has dirty flag still false'); | ||
equal(g1.dirty, true, 'Group has dirty flag set'); | ||
}); | ||
test('_getCacheCanvasDimensions returns dimensions and zoom for cache canvas are influenced by group', function() { | ||
@@ -543,0 +554,0 @@ var g1 = makeGroupWith4Objects(); |
@@ -334,2 +334,27 @@ (function() { | ||
test('isOnScreen with object that include canvas', function(){ | ||
var cObj = new fabric.Object( | ||
{ left: -10, top: -10, width: canvas.getWidth() + 100, height: canvas.getHeight(), strokeWidth: 0}); | ||
canvas.viewportTransform = [1, 0, 0, 1, 0, 0]; | ||
cObj.canvas = canvas; | ||
cObj.setCoords(); | ||
equal(cObj.isOnScreen(), true, 'object is onScreen because it include the canvas'); | ||
cObj.top = -1000; | ||
cObj.left = -1000; | ||
cObj.setCoords(); | ||
equal(cObj.isOnScreen(), false, 'object is completely out of viewport'); | ||
}); | ||
test('isOnScreen with object that is in top left corner of canvas', function(){ | ||
var cObj = new fabric.Rect({left: -46.56, top: -9.23, width: 50,height: 50, angle: 314.57}); | ||
canvas.viewportTransform = [1, 0, 0, 1, 0, 0]; | ||
cObj.canvas = canvas; | ||
cObj.setCoords(); | ||
ok(cObj.isOnScreen(), 'object is onScreen because it intersect a canvas line'); | ||
cObj.top -= 20; | ||
cObj.left -= 20; | ||
cObj.setCoords(); | ||
ok(!cObj.isOnScreen(), 'object is completely out of viewport'); | ||
}); | ||
test('calcTransformMatrix', function(){ | ||
@@ -336,0 +361,0 @@ var cObj = new fabric.Object({ width: 10, height: 15, strokeWidth: 0 }); |
@@ -56,2 +56,9 @@ (function() { | ||
test('cache properties', function() { | ||
var rect = new fabric.Rect(); | ||
ok(rect.cacheProperties.indexOf('rx') > -1, 'rx is in cacheProperties array'); | ||
ok(rect.cacheProperties.indexOf('ry') > -1, 'ry is in cacheProperties array'); | ||
}); | ||
test('toObject', function() { | ||
@@ -58,0 +65,0 @@ var rect = new fabric.Rect(); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
11331207
56362