Fixes
- Fixed issue in
Path2D::add_ellipse()
(basis for context and pathellipse()
andarc()
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 inwindow
class missing required parameter since v1.1.0, breaking those builds. (2f8b175d)
Improvements
CanvasRenderingContext2D.transform()
can now accept aDOMMatrix
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 anyarc()
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".
NOTE: Binaries have GPU disabled by default