소스 검색

Merge branch 'master' of https://github.com/molstar/molstar

Alexander Rose 5 년 전
부모
커밋
f3b1ec0ed8
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/mol-plugin/context.ts

+ 6 - 0
src/mol-plugin/context.ts

@@ -131,6 +131,12 @@ export class PluginContext {
         substructureParent: new SubstructureParentHelper(this)
     } 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) {
         try {
             this.layout.setRoot(container);