Comparing version 1.3.7 to 1.3.8
@@ -5,3 +5,3 @@ { | ||
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model"], | ||
@@ -8,0 +8,0 @@ "dependencies": {}, |
@@ -23,3 +23,3 @@ var fs = require('fs'), | ||
var fn = function(n, src, got, all) { | ||
if (n == 0) { | ||
if (n === 0) { | ||
if (got.length > 0) { | ||
@@ -34,3 +34,3 @@ all[all.length] = got; | ||
return; | ||
} | ||
}; | ||
var all = []; | ||
@@ -42,3 +42,3 @@ for (var i = min, _len = a.length; i < _len; i++) { | ||
return all; | ||
} | ||
}; | ||
@@ -45,0 +45,0 @@ var combinations = combine(modules, 1); |
{ | ||
"name": "fabric", | ||
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"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.7.x", | ||
"canvas": "1.1.x", | ||
"jsdom": "0.8.x", | ||
"xmldom": "0.1.x" | ||
@@ -24,4 +24,4 @@ }, | ||
"qunit": "0.5.x", | ||
"jshint": "2.1.x", | ||
"uglify-js": "2.3.x", | ||
"jshint": "2.3.x", | ||
"uglify-js": "2.4.x", | ||
"execSync": "0.0.x", | ||
@@ -28,0 +28,0 @@ "plato": "0.6.x" |
@@ -22,3 +22,3 @@ ### Fabric | ||
- Runs under ES5 strict mode | ||
- Runs on a server under [Node.js](http://nodejs.org/) (0.6, 0.8, 0.10) | ||
- Runs on a server under [Node.js](http://nodejs.org/) (0.6, 0.8, 0.10) (see [Node.js limitations](https://github.com/kangax/fabric.js/wiki/Fabric-limitations-in-node.js)) | ||
@@ -59,10 +59,10 @@ ### Supported browsers | ||
- Or build a custom distribution file, by passing (comma separated) module names to be included. | ||
2.1 Or build a custom distribution file, by passing (comma separated) module names to be included. | ||
$ node build.js modules=text,serialization,parser | ||
// or | ||
$ node build.js modules=text | ||
// or | ||
$ node build.js modules=parser,text | ||
// etc. | ||
$ node build.js modules=text,serialization,parser | ||
// or | ||
$ node build.js modules=text | ||
// or | ||
$ node build.js modules=parser,text | ||
// etc. | ||
@@ -75,8 +75,12 @@ By default (when none of the modules are specified) only basic functionality is included. | ||
$ node build.js modules=interaction | ||
$ node build.js modules=interaction | ||
- You can also include all modules like so: | ||
2.2 You can also include all modules like so: | ||
$ node build.js modules=ALL | ||
$ node build.js modules=ALL | ||
2.3 You can exclude a few modules like so: | ||
$ node build.js modules=ALL exclude=gestures,image_filters | ||
3. Create a minified distribution file | ||
@@ -92,4 +96,12 @@ | ||
$ node build.js requirejs modules=... | ||
$ node build.js requirejs modules=... | ||
5. Create source map file for better productive debugging (requires uglify or google closure compiler).<br>More information about [source maps](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/). | ||
$ node build.js sourcemap modules=... | ||
If you use google closure compiler you have to add `sourceMappingURL` manually at the end of the minified file all.min.js (see issue https://code.google.com/p/closure-compiler/issues/detail?id=941). | ||
//# sourceMappingURL=all.min.js.map | ||
### Demos | ||
@@ -111,3 +123,4 @@ | ||
- **text** — Adds support for `fabric.Text` | ||
- **text** — Adds support for static text (`fabric.Text`) | ||
- **itext** — Adds support for interactive text (`fabric.IText`) | ||
- **serialization** — Adds support for `loadFromJSON`, `loadFromDatalessJSON`, and `clone` methods on `fabric.Canvas` | ||
@@ -130,2 +143,3 @@ - **interaction** — Adds support for interactive features of fabric — selecting/transforming objects/groups via mouse/touch devices. | ||
- **no-es5-compat** - Removes ES5 compat methods (Array.prototype.*, String.prototype.*, Function.prototype.*) | ||
- **sourcemap** - Generates a sourceMap file and adds the `sourceMappingURL` (only if uglifyjs is used) to `dist/all.min.js` | ||
@@ -132,0 +146,0 @@ For example: |
@@ -138,2 +138,15 @@ (function() { | ||
test('toObject without default value', function() { | ||
var shadow = new fabric.Shadow(); | ||
shadow.includeDefaultValues = false; | ||
equal(JSON.stringify(shadow.toObject()), '{}'); | ||
shadow.color = 'red'; | ||
equal(JSON.stringify(shadow.toObject()), '{"color":"red"}'); | ||
shadow.offsetX = 15; | ||
equal(JSON.stringify(shadow.toObject()), '{"color":"red","offsetX":15}'); | ||
}); | ||
test('toSVG', function() { | ||
@@ -152,2 +165,2 @@ // reset uid | ||
})(); | ||
})(); |
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
6689293
45271
200
+ Addedcanvas@1.1.6(transitive)
+ Addedjsdom@0.8.11(transitive)
+ Addednan@1.2.0(transitive)
+ Addedxmlhttprequest@1.8.0(transitive)
- Removedcanvas@1.0.4(transitive)
- Removedcssom@0.2.5(transitive)
- Removedjsdom@0.7.0(transitive)
Updatedcanvas@1.1.x
Updatedjsdom@0.8.x