Skip to content

Commit 514efce

Browse files
committed
Update Molstar to 4.17.0
1 parent 28eb511 commit 514efce

File tree

4 files changed

+32
-41
lines changed

4 files changed

+32
-41
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
All notable changes to this project will be documented in this file, following the suggestions of [Keep a CHANGELOG](http://keepachangelog.com/). This project adheres to [Semantic Versioning](http://semver.org/) for its most widely used - and defacto - public interfaces.
33

44
## [Unreleased]
5-
- Mol* core dependency updated to 4.14.1
5+
- Mol* core dependency updated to 4.17.0
66
- Custom interactions extension (PDBeMolstarPlugin.extensions.Interactions)
77

88
## [v3.4.0] - 2025-11-25

package-lock.json

Lines changed: 28 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"d3-scale": "^4.0.2",
7979
"d3-selection": "^3.0.0",
8080
"lit": "^3.1.1",
81-
"molstar": "4.14.1",
81+
"molstar": "4.17.0",
8282
"path-browserify": "^1.0.1",
8383
"stream-browserify": "^3.0.0",
8484
"vm-browserify": "^1.1.2"

src/app/extensions/state-gallery/manager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { PreemptiveQueue, PreemptiveQueueResult, combineUrl, createIndex, distin
1010
import { StateGalleryCustomState } from './behavior';
1111
import { StateGalleryConfigValues, getStateGalleryConfig } from './config';
1212
import { ImageTitles } from './titles';
13+
import { StringLike } from 'molstar/lib/mol-io/common/string-like';
1314

1415

1516
/** Shape of data coming from `https://www.ebi.ac.uk/pdbe/static/entry/{entryId}.json`[entryId] */
@@ -216,7 +217,7 @@ export class StateGalleryManager {
216217
private async fetchSnapshot(filename: string): Promise<string> {
217218
const url = combineUrl(this.options.ServerUrl, `${filename}.molj`);
218219
const data = await this.plugin.runTask(this.plugin.fetch({ url, type: 'string' }));
219-
return data;
220+
return StringLike.toString(data);
220221
}
221222
/** Get MOLJ state for the image (get from cache or fetch from API) */
222223
async getSnapshot(filename: string): Promise<string> {

0 commit comments

Comments
 (0)