import * as Babylon from "../index"; import * as DebugImport from "../Debug/index"; declare var global: any; /** * Legacy support, defining window.BABYLON (global variable). * * This is the entry point for the UMD module. * The entry point for a future ESM package should be index.ts */ var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined); if (typeof globalObject !== "undefined") { (globalObject).BABYLON = BABYLON; (globalObject).BABYLON = (globalObject).BABYLON || {}; var BABYLON = (globalObject).BABYLON; BABYLON.Debug = BABYLON.Debug || {}; const keys = []; for (var key in DebugImport) { BABYLON.Debug[key] = (DebugImport)[key]; keys.push(key); } for (var key in Babylon) { BABYLON[key] = (Babylon)[key]; } } export * from "../index"; export const Debug = { AxesViewer: DebugImport.AxesViewer, BoneAxesViewer: DebugImport.BoneAxesViewer, PhysicsViewer: DebugImport.PhysicsViewer, SkeletonViewer: DebugImport.SkeletonViewer, };