Beta test: v2.0 #189
samizdatco
announced in
Announcements
Replies: 2 comments 2 replies
-
Use And get this wrong: |
Beta Was this translation helpful? Give feedback.
2 replies
-
I noticed two changes after upgrade from 1.0.2 to 2.0.0
Screen.Recording.2024-12-06.at.4.10.04.PM.movWere there any changes in this area? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I've posted a pre-release version of Skia Canvas 2.0 and would love some help finding any remaining show-stoppers before publishing it to NPM. If you wouldn't mind giving it a quick test, you can install the new version by typing:
Please post general 👍/👎 experiences here or feel free to open an issue if you want to report something specific.
Thanks!
New Features
sans-serif
,serif
,monospace
, andsystem-ui
resizable
allows resizing to be disabledcompose*
andinput
eventsengine
property gives status of GPU or CPU rendererSKIA_CANVAS_THREADS
environment variablemsaa
export argument. If omitted, defaults to 4x MSAA.Breaking Changes
src
property has been set to a local path. As a result, it's now necessary toawait img.decode()
or set up an.on("load", …)
handler before drawing it—even when thesrc
is non-remote.keyup
/keydown
andinput
event listeners now has fields and values consistent with browser behavior. In particular,code
is now a name (e.g.,ShiftLeft
orKeyS
) rather than a numeric scancode,key
is a straightforward label for the key (e.g.,Shift
ors
) and the newlocation
field provides a numeric description of which variant of a key was pressed..async
property has been removed. See the v0.9.28 release notes for details..textTracking
property has been removed in favor of the new.letterSpacing
propertyBugfixes
this
to point to the new image (contributed by @mpaperno & @ForkKILLET).fullscreen
set totrue
now takes effect immediately.on("draw")
handlers no longer become unresponsive on macOS 14+ after being fully occluded by other windowsdrawCanvas()
method now clips to the specified crop size (contributed by @mpaperno)isPointInPath
andisPointInStroke
now work with Path2D objectsMisc. Improvements
.gpu
tofalse
to prevent any GPU-related resource acquisition from occurringimport
statementBeta Was this translation helpful? Give feedback.
All reactions