index.ts 797 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
  3. *
  4. * @author David Sehnal <david.sehnal@gmail.com>
  5. */
  6. import { PluginBehavior } from '../../mol-plugin/behavior/behavior';
  7. import { Mp4EncoderUI } from './ui';
  8. export const Mp4Export = PluginBehavior.create<{ }>({
  9. name: 'extension-mp4-export',
  10. category: 'misc',
  11. display: {
  12. name: 'MP4 Animation Export'
  13. },
  14. ctor: class extends PluginBehavior.Handler<{ }> {
  15. register(): void {
  16. this.ctx.customStructureControls.set('mp4-export', Mp4EncoderUI as any);
  17. }
  18. update() {
  19. return false;
  20. }
  21. unregister() {
  22. this.ctx.customStructureControls.delete('mp4-export');
  23. }
  24. },
  25. params: () => ({ })
  26. });