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

skia-canvas

Package Overview
Dependencies
Maintainers
0
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

skia-canvas - npm Package Versions

12

0.9.5

Diff

samizdatco
published 0.9.4 •

samizdatco
published 0.9.3 •

Changelog

Source

📦 ⟩ [v0.9.30] ⟩ Jun 7, 2022

New Features

  • Enhacements to the shared FontLibrary object:
    • Added a [reset()][FontLibrary.reset] method to FontLibrary which uninstalls any fonts that had been dynamically installed via FontLibrary.use()
    • The [use()][FontLibrary.use] method now checks for previously installed fonts with the same family name (or alias) and will replace them with the newly added font
  • Added pre-compiled binaries for Alpine Linux on arm64

Bugfixes

  • Calling clip with an empty path (or one that does not intersect the current clipping mask) will now prevent drawing altogether
  • Transformation (translate, rotate, etc.) and line-drawing methods (moveTo, lineTo, ellipse, etc.) are now silently ignored if called with NaN, Infinity, or non-Number values in the arguments rather than throwing an error
    • applies to both the Context and Path2D versions of the drawing methods
    • a TypeError is thrown only if the number of arguments is too low (mirroring browser behavior)
  • [conicCurveTo()][conicCurveTo] now correctly reflects the canvas's transform state
  • The browser-based version of [loadImage()][loadImage] now returns a Promise that correctly resolves to an Image object
  • SVG exports no longer have an invisible, canvas-sized <rect/> as their first element
  • Fixed an incompatibility on Alpine between the version of libstdc++ present on the node:alpine docker images and the version used when building the precompiled binaries

Misc. Improvements

  • Upgraded Skia to milestone 101
samizdatco
published 0.9.2 •

Changelog

Source

📦 ⟩ [v0.9.29] ⟩ Feb 7, 2022

New Features

  • PDF exports now support the optional [matte][matte] argument.

Breaking Changes

  • When the [drawImage()][mdn_drawImage] function is passed a Canvas object as its image source it will now rasterize the canvas before drawing. The prior behavior (in which it is drawn as a vector graphic) can now be accessed through the new [drawCanvas()][drawCanvas] method which supports the same numerical arguments as drawImage but requires that its first argument be a Canvas.

Bugfixes

  • Regions erased using [clearRect()][mdn_clearRect] are now properly antialiased
  • The [clip()][mdn_clip] method now interprets the current translate/scale/rotate state correctly when combining clipping masks

Misc. Improvements

  • Upgraded Skia to milestone 97
samizdatco
published 0.9.1 •

Changelog

Source

📦 ⟩ [v0.9.19] ⟩ Aug 30, 2020

Initial public release 🎉

samizdatco
published 0.9.0 •

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