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

fabric

Package Overview
Dependencies
Maintainers
1
Versions
304
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 1.2.6 to 1.2.9

6

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

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