Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fabric

Package Overview
Dependencies
Maintainers
1
Versions
299
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fabric - npm Package Compare versions

Comparing version 0.9.3 to 0.9.5

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc