legacy.ts 536 B

123456789101112131415
  1. import * as GUI from "./index";
  2. /**
  3. * Legacy support, defining window.BABYLON.GUI (global variable).
  4. *
  5. * This is the entry point for the UMD module.
  6. * The entry point for a future ESM package should be index.ts
  7. */
  8. var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
  9. if (typeof globalObject !== "undefined") {
  10. (<any>globalObject).BABYLON = (<any>globalObject).BABYLON || {};
  11. (<any>globalObject).BABYLON.GUI = GUI;
  12. }
  13. export * from "./index";