589236406c371989ebb03dd7b83e032196b4125876322a670ed0c32b158f025a.json 3.3 KB

1
  1. {"ast":null,"code":"import { Observable } from \"../Misc/observable.js\";\n/**\n * The engine store class is responsible to hold all the instances of Engine and Scene created\n * during the life time of the application.\n */\nexport class EngineStore {\n /**\n * Gets the latest created engine\n */\n static get LastCreatedEngine() {\n if (this.Instances.length === 0) {\n return null;\n }\n return this.Instances[this.Instances.length - 1];\n }\n /**\n * Gets the latest created scene\n */\n static get LastCreatedScene() {\n return this._LastCreatedScene;\n }\n}\n/** Gets the list of created engines */\nEngineStore.Instances = [];\n/**\n * Notifies when an engine was disposed.\n * Mainly used for static/cache cleanup\n */\nEngineStore.OnEnginesDisposedObservable = new Observable();\n/** @internal */\nEngineStore._LastCreatedScene = null;\n/**\n * Gets or sets a global variable indicating if fallback texture must be used when a texture cannot be loaded\n * @ignorenaming\n */\nEngineStore.UseFallbackTexture = true;\n/**\n * Texture content used if a texture cannot loaded\n * @ignorenaming\n */\nEngineStore.FallbackTexture = \"\";","map":{"version":3,"names":["Observable","EngineStore","LastCreatedEngine","Instances","length","LastCreatedScene","_LastCreatedScene","OnEnginesDisposedObservable","UseFallbackTexture","FallbackTexture"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Engines/engineStore.js"],"sourcesContent":["import { Observable } from \"../Misc/observable.js\";\n/**\n * The engine store class is responsible to hold all the instances of Engine and Scene created\n * during the life time of the application.\n */\nexport class EngineStore {\n /**\n * Gets the latest created engine\n */\n static get LastCreatedEngine() {\n if (this.Instances.length === 0) {\n return null;\n }\n return this.Instances[this.Instances.length - 1];\n }\n /**\n * Gets the latest created scene\n */\n static get LastCreatedScene() {\n return this._LastCreatedScene;\n }\n}\n/** Gets the list of created engines */\nEngineStore.Instances = [];\n/**\n * Notifies when an engine was disposed.\n * Mainly used for static/cache cleanup\n */\nEngineStore.OnEnginesDisposedObservable = new Observable();\n/** @internal */\nEngineStore._LastCreatedScene = null;\n/**\n * Gets or sets a global variable indicating if fallback texture must be used when a texture cannot be loaded\n * @ignorenaming\n */\nEngineStore.UseFallbackTexture = true;\n/**\n * Texture content used if a texture cannot loaded\n * @ignorenaming\n */\nEngineStore.FallbackTexture = \"\";\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,uBAAuB;AAClD;AACA;AACA;AACA;AACA,OAAO,MAAMC,WAAW,CAAC;EACrB;AACJ;AACA;EACI,WAAWC,iBAAiBA,CAAA,EAAG;IAC3B,IAAI,IAAI,CAACC,SAAS,CAACC,MAAM,KAAK,CAAC,EAAE;MAC7B,OAAO,IAAI;IACf;IACA,OAAO,IAAI,CAACD,SAAS,CAAC,IAAI,CAACA,SAAS,CAACC,MAAM,GAAG,CAAC,CAAC;EACpD;EACA;AACJ;AACA;EACI,WAAWC,gBAAgBA,CAAA,EAAG;IAC1B,OAAO,IAAI,CAACC,iBAAiB;EACjC;AACJ;AACA;AACAL,WAAW,CAACE,SAAS,GAAG,EAAE;AAC1B;AACA;AACA;AACA;AACAF,WAAW,CAACM,2BAA2B,GAAG,IAAIP,UAAU,CAAC,CAAC;AAC1D;AACAC,WAAW,CAACK,iBAAiB,GAAG,IAAI;AACpC;AACA;AACA;AACA;AACAL,WAAW,CAACO,kBAAkB,GAAG,IAAI;AACrC;AACA;AACA;AACA;AACAP,WAAW,CAACQ,eAAe,GAAG,EAAE","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}