Skip to content

Commit

Permalink
update to 0.20.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jprochazk committed Dec 4, 2024
1 parent 751d6b9 commit f5ec647
Show file tree
Hide file tree
Showing 5 changed files with 310 additions and 174 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
},
"devDependencies": {
"typescript": "^5.0.2",
"vite": "^4.4.5"
"vite": "^6.0.2"
},
"dependencies": {
"@rerun-io/web-viewer": "0.11.0",
"@rerun-io/web-viewer": "0.20.3",
"vite-plugin-top-level-await": "^1.3.1",
"vite-plugin-wasm": "^3.2.2"
}
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}

7 changes: 5 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { WebViewer } from "@rerun-io/web-viewer";

const rrd =
new URLSearchParams(location.search).get("url") ||
"https://demo.rerun.io/version/0.11.0/examples/structure_from_motion/data.rrd";
"https://app.rerun.io/version/0.20.3/examples/structure_from_motion.rrd";
const viewer = new WebViewer();
viewer.start(rrd);
viewer.start(rrd, null, {
width: "100%",
height: "100%",
});

3 changes: 3 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ canvas {
margin-left: auto;
display: block;
position: absolute;
width: 100%;
height: 100%;
top: 0%;
left: 50%;
transform: translate(-50%, 0%);
Expand Down Expand Up @@ -114,3 +116,4 @@ a .button {
transition: opacity 0.2s ease-in;
visibility: visible;
}

3 changes: 3 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import topLevelAwait from "vite-plugin-top-level-await";
/** @type {import("vite").UserConfig} */
const config = {
plugins: [wasm(), topLevelAwait()],
optimizeDeps: {
exclude: process.env.NODE_ENV === "production" ? [] : ["@rerun-io/web-viewer"],
},
server: {
port: 5173,
},
Expand Down
Loading

0 comments on commit f5ec647

Please sign in to comment.