diff --git a/modules/canvaskit/CHANGELOG.md b/modules/canvaskit/CHANGELOG.md index 779e4fc8c9..f35330e55a 100644 --- a/modules/canvaskit/CHANGELOG.md +++ b/modules/canvaskit/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.18.1] - 2020-10-06 + +### Added + - Typescript types (and documentation) are now in the types subfolder. We will keep these updated + as we make changes to the CanvasKit library. + ## [0.18.0] - 2020-10-05 ### Breaking diff --git a/modules/canvaskit/canvaskit/README.md b/modules/canvaskit/canvaskit/README.md index d3aeae4354..29d605cc64 100644 --- a/modules/canvaskit/canvaskit/README.md +++ b/modules/canvaskit/canvaskit/README.md @@ -16,9 +16,9 @@ To use the library, run `npm install canvaskit-wasm` and then simply include it: As with all npm packages, there's a freely available CDN via unpkg.com: - + CanvasKitInit({ - locateFile: (file) => 'https://unpkg.com/canvaskit-wasm@0.16.0/bin/'+file, + locateFile: (file) => 'https://unpkg.com/canvaskit-wasm@0.18.1/bin/'+file, }).then(...) ## Node @@ -75,7 +75,8 @@ See `example.html` and `node.example.js` for demos of how to use the core API. See `extra.html` for some optional add-ins like an animation player (Skottie) and a particles system. -More detailed docs will be coming soon. +See `types/index.d.ts` for a typescript definition file that contains all the +APIs and some documentation about them. ## Drop-in Canvas2D replacement For environments where an HTML canvas is not available (e.g. Node, headless servers), diff --git a/modules/canvaskit/canvaskit/package.json b/modules/canvaskit/canvaskit/package.json index 3a5bd2abc0..9fd557a9c8 100644 --- a/modules/canvaskit/canvaskit/package.json +++ b/modules/canvaskit/canvaskit/package.json @@ -1,6 +1,6 @@ { "name": "canvaskit-wasm", - "version": "0.18.0", + "version": "0.18.1", "description": "A WASM version of Skia's Canvas API", "main": "bin/canvaskit.js", "homepage": "https://github.com/google/skia/tree/master/modules/canvaskit", diff --git a/site/user/modules/quickstart.md b/site/user/modules/quickstart.md index 84882b9cf1..65f971c9b6 100644 --- a/site/user/modules/quickstart.md +++ b/site/user/modules/quickstart.md @@ -362,4 +362,4 @@ the canvas with ``` js paragraph.layout(290); // width in pixels to use when wrapping text canvas.drawParagraph(paragraph, 10, 10); // (x, y) position of left top corner of paragraph. -``` \ No newline at end of file +```