Skip to content

Commit 756c3cc

Browse files
committed
Move to jsdelivr for examples
1 parent aad6b75 commit 756c3cc

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

examples/blocks/dist.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@ const fs = require("fs");
44
const hashes = JSON.parse(fs.readFileSync("gists.json"));
55

66
const replacements = {
7-
"/node_modules/": "https://unpkg.com/",
8-
"perspective-viewer-datagrid/dist/umd/perspective-viewer-datagrid.js":
9-
"perspective-viewer-datagrid",
10-
"perspective-viewer-d3fc/dist/umd/perspective-viewer-d3fc.js":
11-
"perspective-viewer-d3fc",
7+
"/node_modules/": "https://cdn.jsdelivr.net/npm/",
128

139
// TODO jsdelivr has slightly different logic for trailing '/' that causes
1410
// the wasm assets to not load correctly when using aliases ..
1511

1612
// "perspective/dist/umd/perspective.js": "perspective"
13+
"perspective/dist/cdn/perspective.js": "perspective",
14+
"perspective-viewer/dist/cdn/perspective-viewer.js": "perspective-viewer",
15+
"perspective-viewer-datagrid/dist/cdn/perspective-viewer-datagrid.js":
16+
"perspective-viewer-datagrid",
17+
"perspective-viewer-d3fc/dist/cdn/perspective-viewer-d3fc.js":
18+
"perspective-viewer-d3fc",
1719
};
1820

1921
execute`mkdir -p dist`;

examples/blocks/src/editable/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@
4141
<style>
4242
perspective-viewer {
4343
position: absolute;
44-
inset: 0;
44+
top: 0;
45+
left: 0;
46+
bottom: 0;
47+
right: 0;
4548
}
4649
</style>
4750
</head>

rust/perspective-viewer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"license": "Apache-2.0",
1010
"unpkg": "dist/cdn/perspective-viewer.js",
11-
"jsdelvr": "dist/cdn/perspective-viewer.js",
11+
"jsdelivr": "dist/cdn/perspective-viewer.js",
1212
"exports": {
1313
".": {
1414
"require": "./dist/umd/perspective-viewer.js",

scripts/publish_python.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ try {
7777
"cp38-cp38-manylinux2014_x86_64",
7878
"cp38-cp38m-win64_amd",
7979
"cp39-cp39-macosx_10_15_x86_64",
80+
"cp39-cp39-macosx_11_0_x86_64",
8081
"cp39-cp39-manylinux2010_x86_64",
8182
"cp39-cp39-manylinux2014_x86_64",
8283
"cp39-cp39m-win64_amd",

0 commit comments

Comments
 (0)