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
309
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fabric - npm Package Versions

1
31

2.2.3

Diff

Changelog

Source

[2.2.3]

  • improvement: Allow to parse quoted url string. url('#myid') #4881
  • improvement: text fromSVG import char-spacing attribute #3718
  • fix: text toSVG export with multiple spaces in safari #4880
  • fix: setSrc reset width and height on images #4877
  • improvements: Removed forced origin swap when rotating #4878
  • fix: Make the background of canvas cover all SVG in toSVG export #4852
  • fix: Added startAngle to cacheProperties for fabric.Circle #4875
  • fix: Rerender all the content of upperCanvas if canvas gets resized #4850
  • fix: Remove references to context when disposing #4846
  • improvements: Added single quoting to font names in toSVG #4840
  • improvements: Added reserved space to wrapLine functionality #4841
asturur
published 2.2.2 •

Changelog

Source

[2.2.2]

  • Fixed: Applying filters to an image will invalidate its cache #4828
  • Fixed: Attempt at fix font families that requires quoting #4831
  • Improvement: check upperCanvas client size for textarea position #4827
  • Fixed: Attempt to fix multiple touchends #4804
  • Fixed: Wrapping of textbox with charspacing #4803
  • Fixed: bad calculation of empty line in text (regression from 2.2.0) #4802
asturur
published 2.2.1 •

Changelog

Source

[2.2.1]

  • Reworked how amd and commonJS are together in the same file.
asturur
published 2.2.0 •

Changelog

Source

[2.2.0]

  • Fixed: super/sub script svg export #4780
  • Added: Text superScript and subScript support #4765
  • Fixed: negative kerning support (Pacifico font) #4772
  • Fixed: removing text on mousedown should be safe now #4774
  • Improved: pass to inner functions the parameter calculate coords in isOnscreen #4763
asturur
published 2.1.0 •

Changelog

Source

[2.1.0]

  • Added: Added: Drag and drop event binding #4421
  • Fixed: isEmptyStyle implementation for TextBox #4762
asturur
published 2.0.3 •

Changelog

Source

[2.0.3]

  • Fix: now sub target check can work with subclasses of fabric.Group #4753
  • Improvement: PencilBrush is now compexity 1 instead of complexity N during draw #4743
  • Fix the cleanStyle was not checking for the right property to exist #4751
  • Fix onBeforeScaleRotate with canvas zoom #4748
asturur
published 2.0.2 •

Changelog

Source

[2.0.2]

  • fixed image toSVG support for crop #4738
  • changed math for better rounded results #4734
asturur
published 2.0.1 •

Changelog

Source

[2.0.1]

  • fixed filter for blend image in WEBGL #4706
  • fixed interactions between canvas toDataURL and multiplier + retina #4705
  • fixed bug with originX and originY not invalidating the transform #4703
  • fixed unwanted mutation on object enliving in fabric.Image #4699
asturur
published 2.0.0 •

Changelog

Source

[2.0.0]

  • final
    • fix dataurl and svg export on retina and rounding #4674
    • avoid error if iText is removed on mousedown #4650
    • fix calcOffset when text enter editing #4649
    • Gradient fix parsing floats #4637
    • Add CrossOrigin managment to fabric.Pattern #4618
    • Add patternTransform toObject saving #4626
    • normalize brushes render #4613
    • avoid charspacing shortcut #4594
    • Fix color toHexa() #4579
  • rc3 and rc4
    • more fixes to transformMatrix memoization
    • Canvas.selectionFullyContained allows you to select objects just when full grabbed by the selections. #4508
    • Remove some ouput of blank spaces from svg in order to avoid extra colored areas #4524
    • Reinserted a performance shortcut for when there is no style at all #4519
    • Manage canvas resize during a freedrawing brush without wiping the brush #4527
    • Removed an extra closePath that was creating wrong visual on IntelIntegrated cards #4549
    • Added a method to insert and remove text from command line #4541
    • Some fixes around text styles management
    • nodejs support changes: removed specific node code in order to use standard fabricjs code in nodejs.
    • added fabric.util.getNodeCanvas that passed a JSDOM element allows you to get the node-canvas instance behind it and do what you need.
  • rc2
    • Fixed a transform matrix memoize missing width/height #4491
    • Fix pattern drawing a point #4492
    • Fixed Text.removeChars #4495
    • Added back 2 node-canvas methods #4497
    • Fix a typo not restoring hoverCursor correctly.
  • rc1
    • Remove node specific code #4470
    • Improved Canvas.dispose code to leak less memory #4471
    • Remove extra padding of cache when upper limited #4467
    • Solved 2 perfomances problems with textbox #4466 #4465
    • Added justify-left justify-right and justify-center #4437
    • Fix Group fromObject and subTargetCheck #4454
    • Fix regression on IMG from SVG #4450
    • Remove cache dimensions together with canvas #4453
    • Fixed some fuzzyness cases for cache #4452
    • Fixed resize filter for webgl #4426
    • Stop searching target during a mouse move with a transform #4442
    • safeguard shaders for non supported precisions #4433
    • fix insert and remove style for edge cases #4420
    • Fix object.move when in active selection #4394
    • Memoize calcTransformMatrix function #4418
    • Make _set flag object as dirty just when a real change happen#4415
    • Add browserShadowBlurConstant to adjust shadowBlur value #4413
    • Fix set element not clearing the cacheTexture. #4410
    • Multi selection key can be configured with an array of keys. #4363
    • fix fast type in text loosing some style. #4339
    • fixed division by zero with lockscaling flip.
    • added paintFirst ( paint-order with svg support ) #4303
  • beta7
    • added a build flag for not attaching fabric to window #4199
    • removed .active property from objects #4200
    • Normalize Api for getSelectionStyles, setSelectionStyles #4202
    • Fix shader for convolute filter #4207
    • Better mouse support for lockscaling flip #4225
    • Fix toDataUrl getting a blank canvas #4229
    • Ouput version to json Objects #4251
    • Use backstoreOnly for toDataUrl resize #4254
    • Fix safari svg whitespace #4294
    • Fix Gradient export for paths #4274
    • Move mouseout/over in mousemove events #4283
    • Fix detection of click at the end of line #4295
    • added new event selection:updated #4311
    • Fixed free drawing path displacement #4311
    • Fixed scale equally and flipping not happening #4313
    • Select by drag makes the object fires 'selected' #4314
  • beta6
    • incompat: New filter system with WEBGL.
    • incompat: New Text/IText/Textbox code. Multibyte compatible, more accurate.
    • incompat: RequestAnimationFrame is used for the automatic render calls.
    • incompat: Named setter/getter are optional now.
    • incompat: Removed PathGroup class
    • incompat: Paths cannot be restored anymore from strings #3713
    • incompat: bumped node version to 4+ and jsdom to 9. #3717
    • incompat: removed the es5 / JSON shim support #3722
    • fix/incompat: IText setSelectionStyles does not change anymore style if no selection is present #3765
    • skipOffscreen default to true
    • Text.setSelectionStyle does not change anything if there is no selection #3765
    • Switch to canvas-prebuilt as dependency. Added parameter to choose the canvas package #3757
    • improvement: renderControls can now be called on its own. Added parameter styleOverride to allow for overriding current properties #3887
    • removed hasMoved and saveCoords from Group class #3910
    • forced all fromObject and fromElement to be async, normalized api. #3996
    • improvement: added support for request animation frame in mouse events #3997
    • added dblclick support for all objects #3998
    • textbox scale as a normal object #4052
    • Removed image meetOrSlice, alignX, alignY, introduced cropX, cropY #4055
    • Added Text.cleanStyle, Text.removeStyle #4060
    • change: lockRotation will not hide the mtr control anymore. introduced notAllowedCursor for canvas. #4064
    • improvement: added 2 percentage values to fabric.util.animate. #4068
    • change: pathOffset does not get exported anymore in path.toObject, toDatalessObject export sourcePath instead of modifying path. #4108
asturur
published 1.7.22 •

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