1 |
- {"ast":null,"code":"import { IsWindowObjectExist } from \"./domManagement.js\";\n/**\n * Class containing a set of static utilities functions for precision date\n */\nexport class PrecisionDate {\n /**\n * Gets either window.performance.now() if supported or Date.now() else\n */\n static get Now() {\n if (IsWindowObjectExist() && window.performance && window.performance.now) {\n return window.performance.now();\n }\n return Date.now();\n }\n}","map":{"version":3,"names":["IsWindowObjectExist","PrecisionDate","Now","window","performance","now","Date"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Misc/precisionDate.js"],"sourcesContent":["import { IsWindowObjectExist } from \"./domManagement.js\";\n/**\n * Class containing a set of static utilities functions for precision date\n */\nexport class PrecisionDate {\n /**\n * Gets either window.performance.now() if supported or Date.now() else\n */\n static get Now() {\n if (IsWindowObjectExist() && window.performance && window.performance.now) {\n return window.performance.now();\n }\n return Date.now();\n }\n}\n"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,oBAAoB;AACxD;AACA;AACA;AACA,OAAO,MAAMC,aAAa,CAAC;EACvB;AACJ;AACA;EACI,WAAWC,GAAGA,CAAA,EAAG;IACb,IAAIF,mBAAmB,CAAC,CAAC,IAAIG,MAAM,CAACC,WAAW,IAAID,MAAM,CAACC,WAAW,CAACC,GAAG,EAAE;MACvE,OAAOF,MAAM,CAACC,WAAW,CAACC,GAAG,CAAC,CAAC;IACnC;IACA,OAAOC,IAAI,CAACD,GAAG,CAAC,CAAC;EACrB;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|