babylon.playground.module.d.ts 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /// <reference types="react" />
  2. declare module "babylonjs-playground/globalState" {
  3. export class GlobalState {
  4. }
  5. }
  6. declare module "babylonjs-playground/components/monacoComponent" {
  7. import * as React from "react";
  8. interface IMonacoComponentProps {
  9. language: "JS" | "TS";
  10. }
  11. export class MonacoComponent extends React.Component<IMonacoComponentProps> {
  12. private _hostReference;
  13. private _editor;
  14. private _definitionWorker;
  15. private _deprecatedCandidates;
  16. constructor(props: IMonacoComponentProps);
  17. setupMonaco(): Promise<void>;
  18. setupMonacoColorProvider(): void;
  19. setupMonacoCompilationPipeline(libContent: string): void;
  20. setupDefinitionWorker(libContent: string): void;
  21. analyzeCode(): Promise<void>;
  22. isDeprecatedEntry(details: any): any;
  23. isDeprecatedTag(tag: any): boolean;
  24. componentDidMount(): void;
  25. render(): JSX.Element;
  26. }
  27. }
  28. declare module "babylonjs-playground/playground" {
  29. import * as React from "react";
  30. interface IPlaygroundProps {
  31. }
  32. export class Playground extends React.Component<IPlaygroundProps, {
  33. errorMessage: string;
  34. }> {
  35. constructor(props: IPlaygroundProps);
  36. render(): JSX.Element;
  37. static Show(hostElement: HTMLElement): void;
  38. }
  39. }
  40. declare module "babylonjs-playground/index" {
  41. export * from "babylonjs-playground/playground";
  42. }
  43. declare module "babylonjs-playground/legacy/legacy" {
  44. export * from "babylonjs-playground/index";
  45. }
  46. declare module "babylonjs-playground" {
  47. export * from "babylonjs-playground/legacy/legacy";
  48. }
  49. /// <reference types="react" />
  50. declare module PLAYGROUND {
  51. export class GlobalState {
  52. }
  53. }
  54. declare module PLAYGROUND {
  55. interface IMonacoComponentProps {
  56. language: "JS" | "TS";
  57. }
  58. export class MonacoComponent extends React.Component<IMonacoComponentProps> {
  59. private _hostReference;
  60. private _editor;
  61. private _definitionWorker;
  62. private _deprecatedCandidates;
  63. constructor(props: IMonacoComponentProps);
  64. setupMonaco(): Promise<void>;
  65. setupMonacoColorProvider(): void;
  66. setupMonacoCompilationPipeline(libContent: string): void;
  67. setupDefinitionWorker(libContent: string): void;
  68. analyzeCode(): Promise<void>;
  69. isDeprecatedEntry(details: any): any;
  70. isDeprecatedTag(tag: any): boolean;
  71. componentDidMount(): void;
  72. render(): JSX.Element;
  73. }
  74. }
  75. declare module PLAYGROUND {
  76. interface IPlaygroundProps {
  77. }
  78. export class Playground extends React.Component<IPlaygroundProps, {
  79. errorMessage: string;
  80. }> {
  81. constructor(props: IPlaygroundProps);
  82. render(): JSX.Element;
  83. static Show(hostElement: HTMLElement): void;
  84. }
  85. }