From c3fb37573a106ace5877afcd277dd2a7f9ec0492 Mon Sep 17 00:00:00 2001 From: Hai Nguyen Date: Wed, 4 Dec 2024 16:07:23 -0500 Subject: [PATCH] more --- js/src/molstarview/widget.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/src/molstarview/widget.ts b/js/src/molstarview/widget.ts index 4560215b..3d9a1257 100644 --- a/js/src/molstarview/widget.ts +++ b/js/src/molstarview/widget.ts @@ -9,6 +9,7 @@ import { PLUGIN_VERSION } from 'molstar/lib/mol-plugin/version'; import './light.css'; // npx sass node_modules/molstar/lib/mol-plugin-ui/skin/light.scss > light.css import * as representation from "./representation"; import { renderReact18 } from "molstar/lib/mol-plugin-ui/react18"; +import { PluginUIContext } from 'molstar/lib/mol-plugin-ui/context'; // import { basicSpec } from "./ui" @@ -47,8 +48,8 @@ export class MolstarModel extends widgets.DOMWidgetModel { // Custom View. Renders the widget model. export class MolstarView extends widgets.DOMWidgetView { - plugin: any; - container: any; + plugin: PluginUIContext; + container: HTMLDivElement; isLeader: boolean; _focused: boolean; _synced_model_ids: any;