Events.d.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { Object3D } from 'three';
  2. import Component from '../Model/Component';
  3. import SceneController from '../Model/SceneController';
  4. export declare function onObjectAdded(callback: (object: Object3D, target: Object3D) => void): {
  5. stop: () => void;
  6. };
  7. export declare function onObjectRemoved(callback: (object: Object3D, target: Object3D) => void): {
  8. stop: () => void;
  9. };
  10. export declare function objectAdded(object: Object3D, target: Object3D): void;
  11. export declare function objectRemoved(object: Object3D, target: Object3D): void;
  12. export declare function onComponentAdded(callback: (component: Component, target: Object3D) => void): {
  13. stop: () => void;
  14. };
  15. export declare function onComponentLoaded(callback: (component: Component, target: Object3D) => void): {
  16. stop: () => void;
  17. };
  18. export declare function onComponentRemoved(callback: (component: Component, target: Object3D) => void): {
  19. stop: () => void;
  20. };
  21. export declare function componentAdded(component: Component, target: Object3D): void;
  22. export declare function componentLoaded(component: Component, target: Object3D): void;
  23. export declare function componentRemoved(component: Component, target: Object3D): void;
  24. export declare function onBeforeUpdate(callback: (sceneController: SceneController) => void): {
  25. stop: () => void;
  26. };
  27. export declare function onUpdate(callback: (sceneController: SceneController) => void): {
  28. stop: () => void;
  29. };
  30. export declare function onAfterUpdate(callback: (sceneController: SceneController) => void): {
  31. stop: () => void;
  32. };
  33. export declare function onNextFrame(callback: (sceneController: SceneController) => void): void;
  34. export declare function runBeforeUpdate(sceneController: SceneController): void;
  35. export declare function runUpdate(sceneController: SceneController): void;
  36. export declare function runAfterUpdate(sceneController: SceneController): void;
  37. export declare function runNextFrame(sceneController: SceneController): void;