Browse Source

expose MP4 export

JonStargaryen 4 years ago
parent
commit
5d5fe69412
2 changed files with 7 additions and 1 deletions
  1. 4 0
      CHANGELOG.md
  2. 3 1
      src/viewer/index.ts

+ 4 - 0
CHANGELOG.md

@@ -2,6 +2,10 @@
 
 [Semantic Versioning](https://semver.org/)
 
+## [1.3.0] - 2021-03-10
+### Added
+- expose video export option
+
 ## [1.2.3] - 2021-03-03
 ### Bug fixes
 - warn when residues are more than 15 A apart (RO-2597)

+ 3 - 1
src/viewer/index.ts

@@ -38,6 +38,7 @@ import {StructureSelection} from 'molstar/lib/mol-model/structure/query';
 import {StructureRef} from 'molstar/lib/mol-plugin-state/manager/structure/hierarchy-state';
 import {StructureSelectionQuery} from 'molstar/lib/mol-plugin-state/helpers/structure-selection-query';
 import {StructureRepresentationRegistry} from 'molstar/lib/mol-repr/structure/registry';
+import {Mp4Export} from 'molstar/lib/extensions/mp4-export';
 
 /** package version, filled in at bundle build time */
 declare const __RCSB_MOLSTAR_VERSION__: string;
@@ -50,7 +51,8 @@ export const BUILD_DATE = new Date(BUILD_TIMESTAMP);
 
 const Extensions = {
     'rcsb-assembly-symmetry': PluginSpec.Behavior(RCSBAssemblySymmetry),
-    'rcsb-validation-report': PluginSpec.Behavior(RCSBValidationReport)
+    'rcsb-validation-report': PluginSpec.Behavior(RCSBValidationReport),
+    'mp4-export': PluginSpec.Behavior(Mp4Export)
 };
 
 const DefaultViewerProps = {