Skip to content

Commit

Permalink
Upgrade to modified v0.43.0
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Aug 12, 2024
1 parent b190861 commit 909b027
Show file tree
Hide file tree
Showing 3 changed files with 399 additions and 383 deletions.
6 changes: 4 additions & 2 deletions previewers/betatest/js/voyager.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ function writeContent(fileUrl, file, title, authors) {
const rootUrl = fileUrl.substring(0, lastIndexOfChar + 1);
const fileName = fileUrl.substring(lastIndexOfChar + 1);
console.log(fileUrl);
$("voyager-explorer").attr("root", rootUrl).attr("model", fileName);
// To use v0.43.0, we have to add the quality attribute
// See https://github.com/Smithsonian/dpo-voyager/issues/297
$("voyager-explorer").attr("root", rootUrl).attr("model", fileName).attr("quality", "High");
//For Dataverse 6.4+, this can use the standard script:
//$.getScript("https://3d-api.si.edu/resources/js/v0.42.1/voyager-explorer.min.js");
$.getScript("lib/voyager-explorer.v0.42.1.gdcc.min.js");
$.getScript("lib/voyager-explorer.v0.43.0.gdcc.min.js");
}
381 changes: 0 additions & 381 deletions previewers/betatest/lib/voyager-explorer.v0.42.1.gdcc.min.js

This file was deleted.

395 changes: 395 additions & 0 deletions previewers/betatest/lib/voyager-explorer.v0.43.0.gdcc.min.js

Large diffs are not rendered by default.

0 comments on commit 909b027

Please sign in to comment.