Skip to content

Commit 98ce8ae

Browse files
committed
[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>
1 parent aaa2bbe commit 98ce8ae

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

modules/canvaskit/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.18.1] - 2020-10-06
10+
11+
### Added
12+
- Typescript types (and documentation) are now in the types subfolder. We will keep these updated
13+
as we make changes to the CanvasKit library.
14+
915
## [0.18.0] - 2020-10-05
1016

1117
### Breaking

modules/canvaskit/canvaskit/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ To use the library, run `npm install canvaskit-wasm` and then simply include it:
1616

1717
As with all npm packages, there's a freely available CDN via unpkg.com:
1818

19-
<script src="https://unpkg.com/canvaskit-wasm@0.16.0/bin/canvaskit.js"></script>
19+
<script src="https://unpkg.com/canvaskit-wasm@0.18.1/bin/canvaskit.js"></script>
2020
CanvasKitInit({
21-
locateFile: (file) => 'https://unpkg.com/canvaskit-wasm@0.16.0/bin/'+file,
21+
locateFile: (file) => 'https://unpkg.com/canvaskit-wasm@0.18.1/bin/'+file,
2222
}).then(...)
2323

2424
## Node
@@ -75,7 +75,8 @@ See `example.html` and `node.example.js` for demos of how to use the core API.
7575
See `extra.html` for some optional add-ins like an animation player (Skottie)
7676
and a particles system.
7777

78-
More detailed docs will be coming soon.
78+
See `types/index.d.ts` for a typescript definition file that contains all the
79+
APIs and some documentation about them.
7980

8081
## Drop-in Canvas2D replacement
8182
For environments where an HTML canvas is not available (e.g. Node, headless servers),

modules/canvaskit/canvaskit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "canvaskit-wasm",
3-
"version": "0.18.0",
3+
"version": "0.18.1",
44
"description": "A WASM version of Skia's Canvas API",
55
"main": "bin/canvaskit.js",
66
"homepage": "https://github.com/google/skia/tree/master/modules/canvaskit",

site/user/modules/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,4 +362,4 @@ the canvas with
362362
``` js
363363
paragraph.layout(290); // width in pixels to use when wrapping text
364364
canvas.drawParagraph(paragraph, 10, 10); // (x, y) position of left top corner of paragraph.
365-
```
365+
```

0 commit comments

Comments
 (0)