Skip to content

v1.1.1-mp

Latest
Compare
Choose a tag to compare
@mpaperno mpaperno released this 25 Sep 14:08
· 1 commit to master since this release
94fb310

Fixes

  • Fixed issue in Path2D::add_ellipse() (basis for context and path ellipse() and arc() JS API) where trying to draw a complete circle from certain angle combinations produced nothing (eg. -90° to 270° clockwise). (bb99a3ad)
  • Fixed a missed get_picture() call in window class missing required parameter since v1.1.0, breaking those builds. (2f8b175d)

Improvements

  • CanvasRenderingContext2D.transform() can now accept a DOMMatrix instance as the argument (like the similar Path2D method). (b6b31c04)
  • Minor optimization in add_ellipse() as it now skips transform creation if there is no rotation to be applied (as with any arc() call). (bb99a3ad)
  • Added option to "properly" draw ellipses spanning more than 360 degrees. The default method always stops at 360 even if the user wanted the ending point further along the path (eg. 0° to 450°). This option "fixes" that behavior, but is non-standard (not how browsers draw it). The option is settable via an SKIA_CANVAS_DRAW_ELLIPSE_PAST_FULL_CIRCLE environment variable ("1" to enable). (f1864b86)

Other

  • Released binaries are now built with support for Window.
  • Package name has been scoped to "@mpaperno/skia-canvas".

Full change log.

NOTE: Binaries have GPU disabled by default