earthsdk3-assets 3.0.3 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,7 +24,7 @@ function getNameAndExtFromFileName(fileName) {
24
24
  }
25
25
  }
26
26
 
27
- const init = () => {
27
+ const _earthsdk3AssetsInit = () => {
28
28
  window.ESSDK_ENV = window.ESSDK_ENV || {};
29
29
  const currentScriptPath = document?.currentScript?.src; // 获取当前脚本路径
30
30
  const [scriptDir, scriptFileName] = getDirAndFileNameFromPath(currentScriptPath) ?? ['', '']; // 获取脚本目录和文件名
@@ -40,4 +40,4 @@ const init = () => {
40
40
  window.ESSDK_ENV[`${scriptName}-script-ext`] = scriptExt;// 设置脚本扩展名
41
41
  }
42
42
 
43
- init();
43
+ _earthsdk3AssetsInit();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "earthsdk3-assets",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",
5
5
  "main": "./earthsdk3-assets.js",
6
6
  "files": [
Binary file
Binary file
Binary file