Comparing version 1.2.6 to 1.2.9
{ | ||
"name": "fabric", | ||
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.", | ||
"version": "1.2.6", | ||
"version": "1.2.9", | ||
"author": "Juriy Zaytsev <kangax@gmail.com>", | ||
@@ -17,4 +17,4 @@ "keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model"], | ||
"dependencies": { | ||
"canvas": "1.0.x", | ||
"jsdom": "0.5.6", | ||
"canvas": "1.1.x", | ||
"jsdom": "0.7.x", | ||
"xmldom": "0.1.x" | ||
@@ -21,0 +21,0 @@ }, |
@@ -49,3 +49,3 @@ ### Fabric | ||
2. Build distribution file **[~76K minified, ~22K gzipped]** | ||
2. Build distribution file **[~77K minified, ~20K gzipped]** | ||
@@ -109,2 +109,3 @@ $ node build.js | ||
- **object_straightening** — Adds support for rotating an object to one of 0, 90, 180, 270, etc. depending on which is angle is closer. | ||
- **animation** — Adds support for animation (fabric.util.animate, fabric.util.requestAnimFrame, fabric.Object#animate, fabric.Canvas#fxCenterObjectH/#fxCenterObjectV/#fxRemove) | ||
@@ -141,4 +142,12 @@ Additional flags for build script are: | ||
Follow [@fabric.js](http://twitter.com/fabricjs) or [@kangax](http://twitter.com/kangax) on twitter. Questions, suggestions — [fabric.js on Google Groups](http://groups.google.com/group/fabricjs). | ||
Follow [@fabric.js](http://twitter.com/fabricjs) or [@kangax](http://twitter.com/kangax) on twitter. | ||
Questions, suggestions — [fabric.js on Google Groups](http://groups.google.com/group/fabricjs). | ||
See [Fabric questions on Stackoverflow](stackoverflow.com/questions/tagged/fabricjs), | ||
Fabric snippets on [jsfiddle](http://jsfiddle.net/user/fabricjs/fiddles/) | ||
or [codepen.io](http://codepen.io/tag/fabricjs). | ||
Get help in Fabric's IRC channel — irc://irc.freenode.net/#fabric.js | ||
### Credits | ||
@@ -145,0 +154,0 @@ |
@@ -33,2 +33,6 @@ var testrunner = require('qunit'); | ||
}, function(err, report) { | ||
if (err) { | ||
console.log(err); | ||
process.exit(1); | ||
} | ||
if(report.failed > 0){ | ||
@@ -39,5 +43,2 @@ process.on('exit', function() { | ||
} | ||
if (err) { | ||
console.log(err); | ||
} | ||
}); |
@@ -430,2 +430,10 @@ (function() { | ||
})(); | ||
test('toSVG', function() { | ||
var gradient = createLinearGradient(); | ||
ok(typeof gradient.toSVG == 'function'); | ||
// TODO: test toSVG | ||
}); | ||
})(); |
@@ -114,2 +114,10 @@ (function() { | ||
test('toSVG', function() { | ||
var pattern = createPattern(); | ||
ok(typeof pattern.toSVG == 'function'); | ||
// TODO: test toSVG | ||
}); | ||
})(); |
@@ -94,5 +94,3 @@ (function() { | ||
fabric.util.object.clone(REFERENCE_OBJECT), { | ||
points: [ { x: -5, y: -5 }, { x: 5, y: 5 } ], | ||
left: 15, | ||
top: 17 | ||
points: [ { x: 10, y: 12 }, { x: 20, y: 22 } ] | ||
}); | ||
@@ -116,6 +114,6 @@ | ||
var expectedPoints = [ | ||
{ x: -10, y: -10 }, | ||
{ x: 0, y: 0 }, | ||
{ x: 10, y: 10 }, | ||
{ x: -10, y: -10 } | ||
{ x: 20, y: 20 }, | ||
{ x: 30, y: 30 }, | ||
{ x: 10, y: 10 } | ||
]; | ||
@@ -134,5 +132,3 @@ | ||
'opacity': 0.34, | ||
'points': expectedPoints, | ||
'left': 20, | ||
'top': 20 | ||
'points': expectedPoints | ||
})); | ||
@@ -139,0 +135,0 @@ |
@@ -90,7 +90,3 @@ (function() { | ||
deepEqual(polyline.toObject(), fabric.util.object.extend(REFERENCE_OBJECT, { | ||
points: [ { x: -5, y: -5 }, { x: 5, y: 5 } ], | ||
left: 15, | ||
top: 17 | ||
})); | ||
deepEqual(polyline.toObject(), REFERENCE_OBJECT); | ||
@@ -111,8 +107,3 @@ var elPolylineWithAttrs = fabric.document.createElement('polyline'); | ||
var expectedPoints = [ | ||
{ x: -10, y: -10 }, | ||
{ x: 0, y: 0 }, | ||
{ x: 10, y: 10 }, | ||
{ x: -10, y: -10 } | ||
]; | ||
var expectedPoints = [{x: 10, y: 10}, {x: 20, y: 20}, {x: 30, y: 30}, {x: 10, y: 10}]; | ||
@@ -130,5 +121,3 @@ deepEqual(polylineWithAttrs.toObject(), fabric.util.object.extend(REFERENCE_OBJECT, { | ||
'opacity': 0.34, | ||
'points': expectedPoints, | ||
'left': 20, | ||
'top': 20 | ||
'points': expectedPoints | ||
})); | ||
@@ -135,0 +124,0 @@ |
Sorry, the diff of this file is not supported yet
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
5906442
22794
176
+ Addedcanvas@1.1.6(transitive)
+ Addeddom-serializer@0.2.2(transitive)
+ Addeddomelementtype@1.3.12.3.0(transitive)
+ Addeddomhandler@2.4.2(transitive)
+ Addeddomutils@1.7.0(transitive)
+ Addedentities@1.1.22.2.0(transitive)
+ Addedhtmlparser2@3.10.1(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedjsdom@0.7.0(transitive)
+ Addednan@1.2.0(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
- Removedcanvas@1.0.4(transitive)
- Removedhtmlparser@1.7.7(transitive)
- Removedjsdom@0.5.6(transitive)
Updatedcanvas@1.1.x
Updatedjsdom@0.7.x