babylon.nodeEditor.d.ts 974 B

1234567891011121314151617181920212223242526272829303132333435
  1. /// <reference types="react" />
  2. declare module NODEEDITOR {
  3. export class GlobalState {
  4. }
  5. }
  6. declare module NODEEDITOR {
  7. interface IGraphEditorProps {
  8. globalState: GlobalState;
  9. }
  10. export class GraphEditor extends React.Component<IGraphEditorProps> {
  11. constructor(props: IGraphEditorProps);
  12. render(): JSX.Element;
  13. }
  14. }
  15. declare module NODEEDITOR {
  16. /**
  17. * Interface used to specify creation options for the node editor
  18. */
  19. export interface INodeEditorOptions {
  20. /**
  21. * Defines the DOM element that will host the node editor
  22. */
  23. hostElement: HTMLDivElement;
  24. }
  25. /**
  26. * Class used to create a node editor
  27. */
  28. export class NodeEditor {
  29. /**
  30. * Show the node editor
  31. * @param options defines the options to use to configure the node editor
  32. */
  33. static Show(options: INodeEditorOptions): void;
  34. }
  35. }