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.8.47 to 0.8.50

4

package.json
{
"name": "fabric",
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.",
"version": "0.8.47",
"version": "0.8.50",
"author": "Juriy Zaytsev <kangax@gmail.com>",

@@ -17,3 +17,3 @@ "keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model"],

"dependencies": {
"canvas": "0.12.0",
"canvas": "0.13.0",
"jsdom": ">=0.2.3",

@@ -20,0 +20,0 @@ "xmldom": ">=0.1.7"

@@ -21,4 +21,4 @@ (function() {

'top': 0,
'width': fabric.isLikelyNode ? 0 : IMG_WIDTH, // node-canvas doesn't seem to allow setting width/height on image objects
'height': fabric.isLikelyNode ? 0 : IMG_HEIGHT,
'width': IMG_WIDTH, // node-canvas doesn't seem to allow setting width/height on image objects
'height': IMG_HEIGHT,
'fill': 'rgb(0,0,0)',

@@ -25,0 +25,0 @@ 'overlayFill': null,

@@ -6,3 +6,3 @@ (function() {

function createTextObject() {
return new fabric.Text('foo');
return new fabric.Text('x');
}

@@ -14,3 +14,3 @@

'top': 0,
'width': 50,
'width': 20,
'height': 52,

@@ -32,3 +32,3 @@ 'fill': 'rgb(0,0,0)',

'hasRotatingPoint': false,
'text': 'foo',
'text': 'x',
'fontSize': 40,

@@ -56,3 +56,3 @@ 'fontWeight': 100,

equal(text.get('type'), 'text');
equal(text.get('text'), 'foo');
equal(text.get('text'), 'x');
});

@@ -63,3 +63,3 @@

ok(typeof text.toString == 'function');
equal(text.toString(), '#<fabric.Text (0): { "text": "foo", "fontFamily": "Times New Roman" }>');
equal(text.toString(), '#<fabric.Text (0): { "text": "x", "fontFamily": "Times New Roman" }>');
});

@@ -111,3 +111,3 @@

ok(typeof text.getText == 'function');
equal(text.getText(), 'foo');
equal(text.getText(), 'x');
equal(text.getText(), text.get('text'));

@@ -133,3 +133,3 @@ });

var elText = fabric.document.createElement('text');
elText.textContent = 'foo';
elText.textContent = 'x';

@@ -141,3 +141,3 @@ var text = fabric.Text.fromElement(elText);

// temp workaround for text objects not obtaining width under node
text.width = 50;
// text.width = 20;

@@ -150,3 +150,3 @@ deepEqual(text.toObject(), REFERENCE_TEXT_OBJECT);

var elTextWithAttrs = fabric.document.createElement('text');
elTextWithAttrs.textContent = 'foo';
elTextWithAttrs.textContent = 'x';

@@ -167,3 +167,3 @@ elTextWithAttrs.setAttribute('x', 10);

// temp workaround for text objects not obtaining width under node
textWithAttrs.width = 50;
textWithAttrs.width = 20;

@@ -175,2 +175,3 @@ ok(textWithAttrs instanceof fabric.Text);

top: 20,
width: 20,
height: 159.9,

@@ -177,0 +178,0 @@ fill: 'rgb(255,255,255)',

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

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