You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
valcanvas= document.querySelector("#monadcanvas").asInstanceOf[HTMLCanvasElement]
valctx= canvas.getContext("2d", js.Dictionary("alpha"->true))
ctx.beginPath(); // beginPath is not automatically recommended even though it is an internal function of ctx
Current
abstractclassHTMLCanvasElementextendsHTMLElement {
// When returning to js.Dynamic, the API type required for drawing is not inferreddefgetContext(contextId: String, args: js.Any*): js.Dynamic= js.native
}
Suggest is..
[ contextId ] -> [ returntype ]
"2d"->CanvasRenderingContext2D"webgl" or "experimental-webgl"->WebGLRenderingContext"webgl2"->WebGL2RenderingContext"webgpu"->GPUCanvasContext"bitmaprenderer"->ImageBitmapRenderingContext// This is only match when contextType value is "2d" , We need general matching function ...defgetContext(contextType: String,
contextAttributes: js.UndefOr[js.Dictionary[js.Any]] = js.native):CanvasRenderingContext2D= js.native
The text was updated successfully, but these errors were encountered:
Problem
Current
Suggest is..
The text was updated successfully, but these errors were encountered: