Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PLAT-4506] Using JSDelivr instead of Unpkg #80

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/guides/install-sdk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,17 @@ The UI Components can be used without any build system, either by uploading file
<meta charset="utf-8" />
<link
rel="stylesheet"
href="https://unpkg.com/@vertexvis/viewer@0.17.x/dist/viewer/viewer.css"
href="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.17.x/dist/viewer/viewer.css"
/>
</head>
<body>
<script
type="module"
src="https://unpkg.com/@vertexvis/viewer@0.17.x/dist/viewer/viewer.esm.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.17.x/dist/viewer/viewer.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/@vertexvis/viewer@0.17.x/dist/viewer.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.17.x/dist/viewer.js"
></script>
</body>
</html>
Expand Down
10 changes: 5 additions & 5 deletions docs/guides/render-your-first-scene.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Save the following HTML to a file on your computer and open it in your browser.
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
href="https://unpkg.com/@vertexvis/viewer@0.17.x/dist/viewer/viewer.css"
href="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.17.x/dist/viewer/viewer.css"
/>
<style>
html,
Expand All @@ -46,11 +46,11 @@ Save the following HTML to a file on your computer and open it in your browser.
<body>
<script
type="module"
src="https://unpkg.com/@vertexvis/viewer@0.17.x/dist/viewer/viewer.esm.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.17.x/dist/viewer/viewer.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/@vertexvis/viewer@0.17.x/dist/viewer.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.17.x/dist/viewer.js"
></script>

<vertex-viewer
Expand All @@ -71,8 +71,8 @@ Save the following HTML to a file on your computer and open it in your browser.
To render a scene, you'll need a stream key. Stream keys grant the Viewer component access to a specific scene. This is explained in more detail later, but for now, use our test key, `AH7v0jg5aN5_thkhU-XTzB_29aqW89EjyOH8`. Copy the following into the empty `<script>` tag.

```js
import { defineCustomElements } from 'https://unpkg.com/@vertexvis/viewer@0.17.x/dist/esm/loader.js';
import { ColorMaterial } from 'https://unpkg.com/@vertexvis/viewer@0.17.x/dist/esm/index.js';
import { defineCustomElements } from 'https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.17.x/dist/esm/loader.js';
import { ColorMaterial } from 'https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.17.x/dist/esm/index.js';

async function main() {
await defineCustomElements(window);
Expand Down
10 changes: 5 additions & 5 deletions static/examples/first-scene/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
href="https://unpkg.com/@vertexvis/viewer@0.17.x/dist/viewer/viewer.css"
href="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.17.x/dist/viewer/viewer.css"
/>
<style>
html,
Expand All @@ -22,11 +22,11 @@
<body>
<script
type="module"
src="https://unpkg.com/@vertexvis/viewer@0.17.x/dist/viewer/viewer.esm.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.17.x/dist/viewer/viewer.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/@vertexvis/viewer@0.17.x/dist/viewer.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.17.x/dist/viewer.js"
></script>

<vertex-viewer
Expand All @@ -36,8 +36,8 @@
</vertex-viewer>

<script type="module">
import { defineCustomElements } from 'https://unpkg.com/@vertexvis/viewer@0.17.x/dist/esm/loader.js';
import { ColorMaterial } from 'https://unpkg.com/@vertexvis/viewer@0.17.x/dist/esm/index.js';
import { defineCustomElements } from 'https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.17.x/dist/esm/loader.js';
import { ColorMaterial } from 'https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.17.x/dist/esm/index.js';

async function main() {
await defineCustomElements(window);
Expand Down
6 changes: 3 additions & 3 deletions static/examples/load-model/configure-scene.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<head>
<link
rel="stylesheet"
href="https://unpkg.com/@vertexvis/viewer@0.3.x/dist/viewer/viewer.css"
href="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.3.x/dist/viewer/viewer.css"
/>
<script
type="module"
src="https://unpkg.com/@vertexvis/viewer@0.3.x/dist/viewer/viewer.esm.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.3.x/dist/viewer/viewer.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/@vertexvis/viewer@0.3.x/dist/viewer.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.3.x/dist/viewer.js"
></script>

<link rel="stylesheet" href="../viewer.css" />
Expand Down
6 changes: 3 additions & 3 deletions static/examples/load-model/create-scene.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<head>
<link
rel="stylesheet"
href="https://unpkg.com/@vertexvis/viewer@0.3.x/dist/viewer/viewer.css"
href="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.3.x/dist/viewer/viewer.css"
/>
<script
type="module"
src="https://unpkg.com/@vertexvis/viewer@0.3.x/dist/viewer/viewer.esm.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.3.x/dist/viewer/viewer.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/@vertexvis/viewer@0.3.x/dist/viewer.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.3.x/dist/viewer.js"
></script>

<link rel="stylesheet" href="../viewer.css" />
Expand Down
6 changes: 3 additions & 3 deletions static/examples/loading-model/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<meta charset="utf-8" />
<link
rel="stylesheet"
href="https://unpkg.com/@vertexvis/viewer@0.17.x/dist/viewer/viewer.css"
href="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.17.x/dist/viewer/viewer.css"
/>
<script
type="module"
src="https://unpkg.com/@vertexvis/viewer@0.17.x/dist/viewer/viewer.esm.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.17.x/dist/viewer/viewer.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/@vertexvis/viewer@0.17.x/dist/viewer.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.17.x/dist/viewer.js"
></script>
</head>
<body>
Expand Down
6 changes: 3 additions & 3 deletions static/examples/scene-operations/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<head>
<link
rel="stylesheet"
href="https://unpkg.com/@vertexvis/viewer@0.3.x/dist/viewer/viewer.css"
href="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.3.x/dist/viewer/viewer.css"
/>
<script
type="module"
src="https://unpkg.com/@vertexvis/viewer@0.3.x/dist/viewer/viewer.esm.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.3.x/dist/viewer/viewer.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/@vertexvis/viewer@0.3.x/dist/viewer.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.3.x/dist/viewer.js"
></script>

<link rel="stylesheet" type="text/css" href="../viewer.css" />
Expand Down
12 changes: 6 additions & 6 deletions versioned_docs/version-beta/sdk/sdk-web-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ The easiest way to pull the viewer component into your project is to include the
<head>
<link
rel="stylesheet"
href="https://unpkg.com/@vertexvis/viewer@0.3.x/dist/viewer/viewer.css"
href="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.3.x/dist/viewer/viewer.css"
/>
<script
type="module"
src="https://unpkg.com/@vertexvis/viewer@0.3.x/dist/viewer/viewer.esm.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.3.x/dist/viewer/viewer.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/@vertexvis/viewer@0.3.x/dist/viewer.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.3.x/dist/viewer.js"
></script>
</head>
</html>
Expand All @@ -51,15 +51,15 @@ Here's a simple example of loading a model:
<head>
<link
rel="stylesheet"
href="https://unpkg.com/@vertexvis/viewer@0.3.2-5/dist/viewer/viewer.css"
href="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.3.2-5/dist/viewer/viewer.css"
/>
<script
type="module"
src="https://unpkg.com/@vertexvis/viewer@0.3.2-5/dist/viewer/viewer.esm.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.3.2-5/dist/viewer/viewer.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/@vertexvis/viewer@0.3.2-5/dist/viewer.js"
src="https://cdn.jsdelivr.net/npm/@vertexvis/viewer@0.3.2-5/dist/viewer.js"
></script>

<script>
Expand Down