Repository navigation
docs: update for canvas 3.0.0 - #2
Merged
Merged
Conversation
- New pages: OffscreenCanvas and Workers, Web API Compatibility, and canvas-svg Styling - Windows and Linux in the platform and context tables, and across the svg, media, gamepad, audio-context and polyfill pages - Performance: threaded 2D and WebGL rendering (what waits on the thread, how to opt out) and image/GPU memory behaviour - Images: ImageAsset toImageSource() and toNativeImage(), and createImageBitmap rejecting undecodable bytes - WebGPU: importExternalTexture on Android 10+, Windows and Linux - canvas-svg: the stylesheet property, the error event, and CSS animations started by any selector - Upgrading to 3.0: the late threading, WebGL, image and svg behaviour changes
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings the docs up to date with
@nativescript/canvas3.0.0.New pages
/canvas/guides/offscreen-canvas): drawing with no view,transferControlToOffscreen(), and rendering in a Worker. Android and iOS send a handle withOffscreenCanvas._toHandle(), and Windows uses apostMessagetransfer list. Includes one version that works on every runtime./canvas/compatibility): every interface, with what is supported, what is a no-op, and what isn't available yet./canvas-svg/guides/styling): thestylesheetproperty, view styles the document inherits, and the supported selectors.Updated
requestAnimationFrameholds back, and how to opt out.threadedattribute,Canvas.threaded2D/threadedWebGL,@nativescript/canvas/worker, and theOffscreenCanvasglobals.ImageAsset.toImageSource()andtoNativeImage().createImageBitmaprejects bytes it can't decode.texImage2Dsource on Windows and Linux.importExternalTexturenow works on Android 10+ (with an RGB decoder), Windows and Linux. Previously documented as throwing on Android.stylesheetproperty anderrorevent. CSS animations can be started by any selector, not only#id.vitepress buildpasses, including its dead-link check. In-page anchors were checked against the built HTML.