New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fabric

Package Overview
Dependencies
Maintainers
2
Versions
311
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fabric - npm Package Versions

1
1012
32

3.6.3-browser

Diff
asturur
published 3.6.3-browser •
asturur
published 4.0.0-beta.7 •

Changelog

Source

[4.0.0-beta.7]

feat(controls): Added controls mouseUpHandler and mouseDownHandler #6158 Removal of deprecated methods / patterns. #6111

  • removed Object.setShadow, and BaseBrush.setShadow. change rect.setShadow(options) to rect.set('shadow', new fabric.Shadow(options))
  • removed Object.transformMatrix.
  • removed object:selected event. use selection:created. In the callback you will still find target in the options, but also you will find selected with all the objects selected during that single event.
  • removed Gradient.forObject. No alternative available.
  • removed Object and canvas clipTo. Use Object.clipPath;
  • removed Canvas.loadFromDatalessJSON, it was just an alias for loadFromJSON
  • removed observe, stopObserving, trigger from observable. Keep using on, off, fire.
  • removed the Object.set ability to take a function as a value. Was rather strange to use.
  • removed Object.setGradient. Change rect.setGradient(options) with rect.set('fill', new fabric.Gradient(otherOptions)). The options format is slightly different, but keeping 2 formats does not really make sense.
  • removed Object.setPatternFill. Change rect.setPatternFill(options) to rect.set('fill', new fabric.Pattern(options));
  • removed Object.setColor. Change rect.setColor(color) to rect.set('fill', color)
  • removed fabric.util.customTransformMatrix. Use the replacement fabric.util.composeMatrix
asturur
published 4.0.0-beta.7-browser •
asturur
published 4.0.0-beta.6 •

Changelog

Source

[4.0.0-beta.6]

fix(fabric.IText): exitEditing won't error on missing hiddenTextarea. #6138

asturur
published 4.0.0-beta.6-browser •
asturur
published 3.6.2 •

Changelog

Source

[3.6.2]

  • fix fabric.Object.toDataURL blurriness on images with odd pixel number #6131
asturur
published 3.6.2-browser •
asturur
published 4.0.0-beta.5 •

Changelog

Source

[4.0.0-beta.5]

fix(fabric.Object): getObjectScaling takes in account rotation of objects inside groups. #6118

asturur
published 4.0.0-beta.5-browser •
asturur
published 4.0.0-beta.4 •

Changelog

Source

[4.0.0-beta.4]

fix(fabric.Group): will draw shadow will call parent method. #6116