[canvaskit] Update to 0.18.1 (including typescript types/docs).
Bug: skia:10717 Change-Id: I97b03b3ceea6ad0a66c6c2471782c9b7ebf274fa Docs-Preview: https://skia.org/?cl=322577 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/322577 Reviewed-by: Kevin Lubick <kjlubick@google.com>
This commit is contained in:
parent
aaa2bbe84c
commit
98ce8ae8ea
@ -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
|
||||
|
@ -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:
|
||||
|
||||
<script src="https://unpkg.com/canvaskit-wasm@0.16.0/bin/canvaskit.js"></script>
|
||||
<script src="https://unpkg.com/canvaskit-wasm@0.18.1/bin/canvaskit.js"></script>
|
||||
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),
|
||||
|
@ -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",
|
||||
|
@ -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.
|
||||
```
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user