Comparing version 1.4.1 to 1.4.2
@@ -6,3 +6,7 @@ **Edge** | ||
- Add "mouse:over" and "mouse:out" canvas events (and corresponding "mouseover", "mouseout" object events) | ||
- Add support for passing options to `fabric.createCanvasForNode` | ||
- Various iText fixes and performance improvements | ||
- Fix `overlayImage` / `overlayColor` during selection mode | ||
- Fix double callback in loadFromJSON when there's no objects | ||
- Fix paths parsing when number has negative exponent | ||
@@ -9,0 +13,0 @@ - Fix background offset in iText |
@@ -5,3 +5,3 @@ { | ||
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model"], | ||
@@ -8,0 +8,0 @@ "dependencies": {}, |
{ | ||
"name": "fabric", | ||
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"author": "Juriy Zaytsev <kangax@gmail.com>", | ||
@@ -17,3 +17,3 @@ "keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model"], | ||
"dependencies": { | ||
"canvas": "1.0.x", | ||
"canvas": "1.1.x", | ||
"jsdom": "0.8.x", | ||
@@ -24,3 +24,3 @@ "xmldom": "0.1.x" | ||
"qunit": "0.5.x", | ||
"jshint": "2.3.x", | ||
"jshint": "2.4.x", | ||
"uglify-js": "2.4.x", | ||
@@ -27,0 +27,0 @@ "execSync": "0.0.x", |
@@ -1,5 +0,1 @@ | ||
<a href="http://fabricjs.challengepost.com/?utm_source=partner&utm_medium=banner&utm_campaign=fabricjs" style="display:block"> | ||
<img src="https://dl.dropboxusercontent.com/u/822184/fabric-js-promo-widget-github.gif" style="width: auto"> | ||
</a> | ||
### Fabric | ||
@@ -10,3 +6,5 @@ [![Build Status](https://secure.travis-ci.org/kangax/fabric.js.png?branch=master)](http://travis-ci.org/#!/kangax/fabric.js) | ||
<a href="https://npmjs.org/package/fabric"><img src="https://badge.fury.io/js/fabric.png"></a> | ||
[![Dependency Status](https://gemnasium.com/kangax/fabric.js.png)](https://gemnasium.com/kangax/fabric.js) | ||
**Fabric.js** is a framework that makes it easy to work with HTML5 canvas element. It is an **interactive object model** on top of canvas element. It is also an **SVG-to-canvas parser**. | ||
@@ -224,1 +222,5 @@ | ||
SOFTWARE. | ||
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/kangax/fabric.js/trend.png)](https://bitdeli.com/free "Bitdeli Badge") | ||
@@ -92,2 +92,14 @@ (function() { | ||
asyncTest('path array not shared when cloned', function() { | ||
makePathObject(function(originalPath) { | ||
originalPath.clone(function(clonedPath) { | ||
clonedPath.path[0][1] = 200; | ||
equal(originalPath.path[0][1], 100); | ||
start(); | ||
}); | ||
}); | ||
}); | ||
asyncTest('toDatalessObject', function() { | ||
@@ -196,2 +208,15 @@ makePathObject(function(path) { | ||
}); | ||
asyncTest('compressed path commands with e^x', function() { | ||
var el = getPathElement('M56.224e2 84.12E-2c-.047.132-.138.221-.322.215.046-.131.137-.221.322-.215m-.050 -20.100z'); | ||
fabric.Path.fromElement(el, function(obj) { | ||
deepEqual(obj.path[0], ['M', 5622.4, 0.8412]); | ||
deepEqual(obj.path[1], ['c', -0.047, 0.132, -0.138, 0.221, -0.322, 0.215]); | ||
deepEqual(obj.path[2], ['c', 0.046, -0.131, 0.137, -0.221, 0.322, -0.215]); | ||
deepEqual(obj.path[3], ['m', -0.05, -20.100]); | ||
deepEqual(obj.path[4], ['z']); | ||
start(); | ||
}); | ||
}); | ||
})(); |
@@ -479,8 +479,16 @@ (function() { | ||
stop(); | ||
var group1, group2; | ||
var group1; | ||
fabric.loadSVGFromString(SVG_WITH_1_ELEMENT, function(objects, options) { | ||
group1 = fabric.util.groupSVGElements(objects, options); | ||
}); | ||
setTimeout(function() { | ||
ok(group1 instanceof fabric.Polygon); | ||
start(); | ||
}, 2000); | ||
}); | ||
asyncTest('fabric.util.groupSVGElements #2', function() { | ||
var group2; | ||
fabric.loadSVGFromString(SVG_WITH_2_ELEMENTS, function(objects, options) { | ||
@@ -491,6 +499,5 @@ group2 = fabric.util.groupSVGElements(objects, options); | ||
setTimeout(function() { | ||
ok(group1 instanceof fabric.Polygon); | ||
ok(group2 instanceof fabric.PathGroup); | ||
start(); | ||
}, 1000); | ||
}, 2000); | ||
}); | ||
@@ -497,0 +504,0 @@ |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
6709008
54
45668
225
14
+ Addedcanvas@1.1.6(transitive)
+ Addednan@1.2.0(transitive)
- Removedcanvas@1.0.4(transitive)
Updatedcanvas@1.1.x