RuntimeController.d.ts 838 B

12345678910111213141516171819202122
  1. import type Component from '../Model/Component';
  2. import SceneController from '../Model/SceneController';
  3. import { WebGLRenderer, Scene } from 'three';
  4. export declare class RuntimeController extends SceneController {
  5. uiContainer: HTMLDivElement;
  6. private onPlayCbsFlaggedForRemoval;
  7. private onStopCbsFlaggedForRemoval;
  8. play(scene: Scene, renderer?: WebGLRenderer, componentsToLoad?: any): void;
  9. onPlay(callback: () => any): {
  10. stop: () => void;
  11. };
  12. onStop(callback: () => any): {
  13. stop: () => void;
  14. };
  15. stop(): void;
  16. private createUIContainer;
  17. private removeUIContainer;
  18. protected afterUpdate(): void;
  19. protected traverseSceneComponents(callback: (component: Component) => void): void;
  20. protected beginUpdateCycle(): void;
  21. }
  22. export declare const Runtime: RuntimeController;