Skip to content

Commit

Permalink
Fix calling getImageRaw to be compatible with future Molstar changes
Browse files Browse the repository at this point in the history
  • Loading branch information
midlik committed Aug 19, 2024
1 parent 39cd531 commit 11723a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
},
"homepage": "https://github.com/PDBeurope/pdb-images#readme",
"devDependencies": {
"@types/argparse": "^2.0.16",
"@types/gl": "^6.0.2",
"@types/jest": "^29.5.0",
"@types/jpeg-js": "^0.3.7",
Expand All @@ -50,6 +51,7 @@
"typescript": "^5.0.3"
},
"dependencies": {
"argparse": "^2.0.1",
"gl": "^6.0.2",
"log4js": "^6.9.1",
"molstar": "~4.5.0",
Expand Down
2 changes: 1 addition & 1 deletion src/save.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function makeSaveFunction(plugin: HeadlessPluginContext, outDir: string,
if (args.render_each_size || !fullsizeImage) {
// Render new image
plugin.canvas3d!.commit(true);
image = await plugin.renderer.getImageRaw(size, postprocessing);
image = await plugin.getImageRaw(size, postprocessing);
if (!args.no_axes) {
addAxisIndicators(image, spec._view);
}
Expand Down

0 comments on commit 11723a9

Please sign in to comment.