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

fabric

Package Overview
Dependencies
Maintainers
2
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 4.0.0-beta.4 to 4.0.0-beta.5

2

HEADER.js
/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */
var fabric = fabric || { version: '4.0.0-beta.4' };
var fabric = fabric || { version: '4.0.0-beta.5' };
if (typeof exports !== 'undefined') {

@@ -5,0 +5,0 @@ exports.fabric = fabric;

@@ -5,3 +5,3 @@ {

"homepage": "http://fabricjs.com/",
"version": "4.0.0-beta.4",
"version": "4.0.0-beta.5",
"author": "Juriy Zaytsev <kangax@gmail.com>",

@@ -8,0 +8,0 @@ "contributors": [

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

var wh = this._calculateCurrentDimensions(),
strokeWidth = 1 / this.borderScaleFactor,
strokeWidth = this.borderScaleFactor,
width = wh.x + strokeWidth,

@@ -227,3 +227,3 @@ height = wh.y + strokeWidth,

styleOverride = styleOverride || {};
var p = this._getNonTransformedDimensions(),
var p = { x: this.width, y: this.height },
matrix = fabric.util.composeMatrix({

@@ -235,6 +235,8 @@ scaleX: options.scaleX,

wh = fabric.util.transformPoint(p, matrix),
strokeWidth = 1 / this.borderScaleFactor,
width = wh.x + strokeWidth,
height = wh.y + strokeWidth;
strokeWidth = this.strokeWidth,
borderScaleFactor = this.borderScaleFactor,
width =
wh.x + strokeWidth * (this.strokeUniform ? this.canvas.getZoom() : options.scaleX) + borderScaleFactor,
height =
wh.y + strokeWidth * (this.strokeUniform ? this.canvas.getZoom() : options.scaleY) + borderScaleFactor;
ctx.save();

@@ -241,0 +243,0 @@ this._setLineDash(ctx, styleOverride.borderDashArray || this.borderDashArray, null);

Sorry, the diff of this file is too big to display

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