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

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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-uiresizableallows resizing to be disabledcompose*andinputeventsengineproperty gives status of GPU or CPU rendererSKIA_CANVAS_THREADSenvironment variablemsaaexport argument. If omitted, defaults to 4x MSAA.Breaking Changes
srcproperty 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 thesrcis non-remote.keyup/keydownandinputevent listeners now has fields and values consistent with browser behavior. In particular,codeis now a name (e.g.,ShiftLeftorKeyS) rather than a numeric scancode,keyis a straightforward label for the key (e.g.,Shiftors) and the newlocationfield provides a numeric description of which variant of a key was pressed..asyncproperty has been removed. See the v0.9.28 release notes for details..textTrackingproperty has been removed in favor of the new.letterSpacingpropertyBugfixes
thisto point to the new image (contributed by @mpaperno & @ForkKILLET).fullscreenset totruenow 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)isPointInPathandisPointInStrokenow work with Path2D objectsMisc. Improvements
.gputofalseto prevent any GPU-related resource acquisition from occurringimportstatementBeta Was this translation helpful? Give feedback.
All reactions