babylon.nodeEditor.module.d.ts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /// <reference types="react" />
  2. declare module "babylonjs-nodeEditor/globalState" {
  3. export class GlobalState {
  4. }
  5. }
  6. declare module "babylonjs-nodeEditor/components/graphEditor" {
  7. import * as React from "react";
  8. import { GlobalState } from "babylonjs-nodeEditor/globalState";
  9. interface IGraphEditorProps {
  10. globalState: GlobalState;
  11. }
  12. export class GraphEditor extends React.Component<IGraphEditorProps> {
  13. constructor(props: IGraphEditorProps);
  14. render(): JSX.Element;
  15. }
  16. }
  17. declare module "babylonjs-nodeEditor/nodeEditor" {
  18. /**
  19. * Interface used to specify creation options for the node editor
  20. */
  21. export interface INodeEditorOptions {
  22. /**
  23. * Defines the DOM element that will host the node editor
  24. */
  25. hostElement: HTMLDivElement;
  26. }
  27. /**
  28. * Class used to create a node editor
  29. */
  30. export class NodeEditor {
  31. /**
  32. * Show the node editor
  33. * @param options defines the options to use to configure the node editor
  34. */
  35. static Show(options: INodeEditorOptions): void;
  36. }
  37. }
  38. declare module "babylonjs-nodeEditor/index" {
  39. export * from "babylonjs-nodeEditor/nodeEditor";
  40. }
  41. declare module "babylonjs-nodeEditor/legacy/legacy" {
  42. export * from "babylonjs-nodeEditor/index";
  43. }
  44. declare module "babylonjs-nodeEditor" {
  45. export * from "babylonjs-nodeEditor/legacy/legacy";
  46. }
  47. /// <reference types="react" />
  48. declare module NODEEDITOR {
  49. export class GlobalState {
  50. }
  51. }
  52. declare module NODEEDITOR {
  53. interface IGraphEditorProps {
  54. globalState: GlobalState;
  55. }
  56. export class GraphEditor extends React.Component<IGraphEditorProps> {
  57. constructor(props: IGraphEditorProps);
  58. render(): JSX.Element;
  59. }
  60. }
  61. declare module NODEEDITOR {
  62. /**
  63. * Interface used to specify creation options for the node editor
  64. */
  65. export interface INodeEditorOptions {
  66. /**
  67. * Defines the DOM element that will host the node editor
  68. */
  69. hostElement: HTMLDivElement;
  70. }
  71. /**
  72. * Class used to create a node editor
  73. */
  74. export class NodeEditor {
  75. /**
  76. * Show the node editor
  77. * @param options defines the options to use to configure the node editor
  78. */
  79. static Show(options: INodeEditorOptions): void;
  80. }
  81. }