Skip to content
Snippets Groups Projects
Commit f5b09dbd authored by David Sehnal's avatar David Sehnal
Browse files

mol-plugin: added customState to PluginContext

parent 57ea322f
No related branches found
No related tags found
No related merge requests found
...@@ -131,6 +131,12 @@ export class PluginContext { ...@@ -131,6 +131,12 @@ export class PluginContext {
substructureParent: new SubstructureParentHelper(this) substructureParent: new SubstructureParentHelper(this)
} as const; } as const;
/**
* Used to store application specific custom state which is then available
* to State Actions and similar constructs via the PluginContext.
*/
readonly customState: any = Object.create(null);
initViewer(canvas: HTMLCanvasElement, container: HTMLDivElement) { initViewer(canvas: HTMLCanvasElement, container: HTMLDivElement) {
try { try {
this.layout.setRoot(container); this.layout.setRoot(container);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment