Comparing version 0.9.3 to 0.9.5
{ | ||
"name": "fabric", | ||
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.", | ||
"version": "0.9.3", | ||
"version": "0.9.5", | ||
"author": "Juriy Zaytsev <kangax@gmail.com>", | ||
@@ -6,0 +6,0 @@ "keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model"], |
@@ -849,2 +849,23 @@ (function() { | ||
asyncTest('loadFromJSON with async content', function() { | ||
var group = new fabric.Group([ | ||
new fabric.Rect({ width: 10, height: 20 }), | ||
new fabric.Circle({ radius: 10 }) | ||
]); | ||
var rect = new fabric.Rect({ width: 20, height: 10 }); | ||
var circle = new fabric.Circle({ radius: 25 }); | ||
canvas.add(group, rect, circle); | ||
var json = JSON.stringify(canvas); | ||
canvas.clear(); | ||
equal(0, canvas.getObjects().length); | ||
canvas.loadFromJSON(json, function() { | ||
equal(3, canvas.getObjects().length); | ||
start(); | ||
}); | ||
}); | ||
})(); |
@@ -193,3 +193,3 @@ (function(){ | ||
fabric.Object.prototype.NUM_FRACTION_DIGITS = fractionDigits; | ||
fabric.Object.NUM_FRACTION_DIGITS = fractionDigits; | ||
@@ -202,3 +202,3 @@ testedProperties.forEach(function(property) { | ||
fabric.Object.prototype.NUM_FRACTION_DIGITS = fractionDigitsDefault; | ||
fabric.Object.NUM_FRACTION_DIGITS = fractionDigitsDefault; | ||
} | ||
@@ -205,0 +205,0 @@ |
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
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
5887776
17576