[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]
|
## [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
|
## [0.18.0] - 2020-10-05
|
||||||
|
|
||||||
### Breaking
|
### 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:
|
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({
|
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(...)
|
}).then(...)
|
||||||
|
|
||||||
## Node
|
## 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)
|
See `extra.html` for some optional add-ins like an animation player (Skottie)
|
||||||
and a particles system.
|
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
|
## Drop-in Canvas2D replacement
|
||||||
For environments where an HTML canvas is not available (e.g. Node, headless servers),
|
For environments where an HTML canvas is not available (e.g. Node, headless servers),
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "canvaskit-wasm",
|
"name": "canvaskit-wasm",
|
||||||
"version": "0.18.0",
|
"version": "0.18.1",
|
||||||
"description": "A WASM version of Skia's Canvas API",
|
"description": "A WASM version of Skia's Canvas API",
|
||||||
"main": "bin/canvaskit.js",
|
"main": "bin/canvaskit.js",
|
||||||
"homepage": "https://github.com/google/skia/tree/master/modules/canvaskit",
|
"homepage": "https://github.com/google/skia/tree/master/modules/canvaskit",
|
||||||
|
Loading…
Reference in New Issue
Block a user