[canvaskit] use the live CDN version for the docs
Also update pathkit's page to use most recent version.
No-Try: true
Docs-Preview: https://skia.org/?cl=178920
Bug: skia:8584
Change-Id: I53b58b12c937b78ffd0a527b8ca5080bd2e3f156
Reviewed-on: https://skia-review.googlesource.com/c/178920
Reviewed-by: Kevin Lubick <kjlubick@google.com>
diff --git a/site/user/modules/canvaskit.md b/site/user/modules/canvaskit.md
index 5246413..c079729 100644
--- a/site/user/modules/canvaskit.md
+++ b/site/user/modules/canvaskit.md
@@ -96,7 +96,7 @@
var locate_file = '';
if (window.WebAssembly && typeof window.WebAssembly.compile === 'function') {
console.log('WebAssembly is supported!');
- locate_file = 'https://storage.googleapis.com/skia-cdn/canvaskit-wasm/0.2.1/bin/';
+ locate_file = 'https://unpkg.com/canvaskit-wasm@0.3.0/bin/';
} else {
console.log('WebAssembly is not supported (yet) on this browser.');
document.getElementById('demo').innerHTML = "<div>WASM not supported by your browser. Try a recent version of Chrome, Firefox, Edge, or Safari.</div>";
@@ -113,7 +113,6 @@
CanvasKitInit({
locateFile: (file) => locate_file + file,
}).then((CK) => {
- CK.initFonts();
CanvasKit = CK;
DrawingExample(CanvasKit);
InkExample(CanvasKit);
@@ -354,4 +353,4 @@
Download
--------
-Work is underway on an npm download. Check back soon.
+Get [CanvasKit on NPM](https://www.npmjs.com/package/canvaskit-wasm)
diff --git a/site/user/modules/pathkit.md b/site/user/modules/pathkit.md
index 3859c95..b081176 100644
--- a/site/user/modules/pathkit.md
+++ b/site/user/modules/pathkit.md
@@ -40,10 +40,10 @@
let s = document.createElement('script');
if (window.WebAssembly && typeof window.WebAssembly.compile === 'function') {
console.log('WebAssembly is supported! Using the wasm version of PathKit');
- window.__pathkit_locate_file = 'https://unpkg.com/experimental-pathkit-wasm@0.3.1/bin/';
+ window.__pathkit_locate_file = 'https://unpkg.com/pathkit-wasm@0.5.0/bin/';
} else {
console.log('WebAssembly is not supported (yet) on this browser. Using the asmjs version of PathKit');
- window.__pathkit_locate_file = 'https://unpkg.com/experimental-pathkit-asmjs@0.3.1/bin/';
+ window.__pathkit_locate_file = 'https://unpkg.com/pathkit-asmjs@0.5.0/bin/';
}
s.src = window.__pathkit_locate_file+'pathkit.js';
s.onload = () => {