From cb6a54a8a132e35d6db87101d685149c37a80f63 Mon Sep 17 00:00:00 2001 From: Andy Wong Date: Sun, 27 Mar 2022 22:57:07 -0700 Subject: [PATCH] Update doc link --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8dbd20d0..f307c10f 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Additional WASM language bindings (e.g. Rust) and platform supports (e.g. native Desktop) are planned. ## API Documentation -For JavaScript / AssemblyScript interface, see TSDoc: http://andykswong.github.io/mugl +For JavaScript / AssemblyScript interface, see TSDoc: http://andykswong.github.io/mugl/latest/docs For raw WebAssembly interface, see the API spec: [API.wit](./API.wit) \ or the AssemblyScript imports: [mugl.ts](./assembly/mugl.ts) @@ -171,7 +171,7 @@ imports.mugl.memory = instance.exports.memory; ``` In the AssemblyScript WASM module, you can then use `getCanvasById` to get a canvas handle for creating a device: -```typescript +```javascript import { getCanvasById, WebGL } from 'mugl'; const device = WebGL.requestWebGL2Device(getCanvasById('canvasId'));