leiting-bim 2.1.198 → 2.1.200

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.
@@ -4739,7 +4739,7 @@ class ju {
4739
4739
  `正在加载第 ${o}/${e.length} 个模型: 加载${a.modelName}`
4740
4740
  );
4741
4741
  try {
4742
- const { outPutPath: l, dbName: r, modelId: c } = a, d = `${/^https?:\/\//i.test(l) ? l : `${window.location.origin}${l}`}${r}/tileset.json`, f = await s.Cesium3DTileset.fromUrl(d, {
4742
+ const { outPutPath: l, dbName: r, modelId: c } = a, d = `${/^(https?|atom):\/\//i.test(l) ? l : `${window.location.origin}${l}`}${r}/tileset.json`, f = await s.Cesium3DTileset.fromUrl(d, {
4743
4743
  maximumScreenSpaceError: 16,
4744
4744
  preferLeaves: !0,
4745
4745
  cullWithChildrenBounds: !0,
@@ -4861,7 +4861,7 @@ class ju {
4861
4861
  }
4862
4862
  // 获取 tileset.json 所在目录
4863
4863
  getBaseUrlPath(e) {
4864
- const t = /^https?:\/\//i.test(e) ? e : `${window.location.origin}${e}`, s = t.lastIndexOf("/");
4864
+ const t = /^(https?|atom):\/\//i.test(e) ? e : `${window.location.origin}${e}`, s = t.lastIndexOf("/");
4865
4865
  return s === -1 ? "." : t.substr(0, s);
4866
4866
  }
4867
4867
  // 优先尝试 tileset.zip,否则回退 tileset.json
@@ -4873,7 +4873,7 @@ class ju {
4873
4873
  if (r) {
4874
4874
  r?.asset?.watermark && this.watermarkEnabled && zu(r.asset.watermark, this.viewer?.container);
4875
4875
  const c = this.getBaseUrlPath(e), u = (h) => {
4876
- !h || typeof h != "object" || (typeof h.uri == "string" && !/^(data:|https?:\/\/)/i.test(h.uri) && (h.uri = encodeURI(`${c}/${h.uri.replace(/^\.?\//, "")}`)), Object.values(h).forEach((g) => {
4876
+ !h || typeof h != "object" || (typeof h.uri == "string" && !/^(data:|https?:|atom:)\/\//i.test(h.uri) && (h.uri = encodeURI(`${c}/${h.uri.replace(/^\.?\//, "")}`)), Object.values(h).forEach((g) => {
4877
4877
  if (Array.isArray(g)) {
4878
4878
  g.forEach((v) => u(v));
4879
4879
  return;
@@ -7075,7 +7075,7 @@ class av {
7075
7075
  const a = await this.loadModelFile(n);
7076
7076
  if (a) {
7077
7077
  const l = (u) => {
7078
- !u || typeof u != "object" || (typeof u.uri == "string" && !/^(data:|https?:\/\/)/i.test(u.uri) && (u.uri = encodeURI(`${s}/${u.uri.replace(/^\.?\//, "")}`)), Object.values(u).forEach((d) => {
7078
+ !u || typeof u != "object" || (typeof u.uri == "string" && !/^(data:|https?:|atom:)\/\//i.test(u.uri) && (u.uri = encodeURI(`${s}/${u.uri.replace(/^\.?\//, "")}`)), Object.values(u).forEach((d) => {
7079
7079
  if (Array.isArray(d)) {
7080
7080
  d.forEach((f) => l(f));
7081
7081
  return;
@@ -7103,7 +7103,7 @@ class av {
7103
7103
  if (this.renderGenAll !== s) return;
7104
7104
  const o = this.renderGenByModel[n.modelId] || 0;
7105
7105
  if ((this.renderGenByModel[n.modelId] || 0) !== o || ~this.dxfModelsList.findIndex((c) => c.modelId === n.modelId)) return;
7106
- /^https?:\/\//i.test(n.outPutPath) || (n.outPutPath = `${window.location.origin}${n.outPutPath}`);
7106
+ /^(https?|atom):\/\//i.test(n.outPutPath) || (n.outPutPath = `${window.location.origin}${n.outPutPath}`);
7107
7107
  const l = `${n.outPutPath}${n.dbName}/tileset.json`, r = { ...this.options, ...t };
7108
7108
  try {
7109
7109
  const c = `${n.outPutPath}${n.dbName}/layerInfo.zip`, u = await this.loadModelFile(c);
@@ -11909,7 +11909,7 @@ class hw {
11909
11909
  let t = window?.VectorTileLayer || window?.CesiumVectorTileGL?.VectorTileLayer || this.cesium?.VectorTileLayer;
11910
11910
  if (!t)
11911
11911
  try {
11912
- const n = await import("./index-CippYUXQ.js"), o = n?.VectorTileLayer || n?.CesiumVectorTileGL?.VectorTileLayer || n?.default?.VectorTileLayer || n?.default;
11912
+ const n = await import("./index-COCO5OeD.js"), o = n?.VectorTileLayer || n?.CesiumVectorTileGL?.VectorTileLayer || n?.default?.VectorTileLayer || n?.default;
11913
11913
  if (o)
11914
11914
  window.VectorTileLayer = o, n?.CesiumVectorTileGL && (window.CesiumVectorTileGL = n.CesiumVectorTileGL), t = o;
11915
11915
  else {
@@ -11997,13 +11997,13 @@ class hw {
11997
11997
  let t = window?.VectorTileLayer || window?.CesiumVectorTileGL?.VectorTileLayer || this.cesium?.VectorTileLayer;
11998
11998
  if (!t)
11999
11999
  try {
12000
- const r = await import("./index-CippYUXQ.js"), c = r?.VectorTileLayer || r?.CesiumVectorTileGL?.VectorTileLayer || r?.default?.VectorTileLayer || r?.default;
12000
+ const r = await import("./index-COCO5OeD.js"), c = r?.VectorTileLayer || r?.CesiumVectorTileGL?.VectorTileLayer || r?.default?.VectorTileLayer || r?.default;
12001
12001
  c && (window.VectorTileLayer = c, r?.CesiumVectorTileGL && (window.CesiumVectorTileGL = r.CesiumVectorTileGL), t = c);
12002
12002
  } catch {
12003
12003
  }
12004
12004
  if (!(window?.CesiumVectorTileGL?.VectorTileset || window?.VectorTileset))
12005
12005
  try {
12006
- const r = await import("./index-CippYUXQ.js"), c = r?.VectorTileset || r?.CesiumVectorTileGL?.VectorTileset || r?.default?.VectorTileset;
12006
+ const r = await import("./index-COCO5OeD.js"), c = r?.VectorTileset || r?.CesiumVectorTileGL?.VectorTileset || r?.default?.VectorTileset;
12007
12007
  c && (window.VectorTileset = c);
12008
12008
  } catch {
12009
12009
  }
@@ -12749,7 +12749,7 @@ class hw {
12749
12749
  };
12750
12750
  for (const o of e) {
12751
12751
  if (this.gisCadModelsList.find((h) => h.modelId === o.modelId)) continue;
12752
- /^https?:\/\//i.test(o.outPutPath) || (o.outPutPath = `${window.location.origin}${o.outPutPath}`);
12752
+ /^(https?|atom):\/\//i.test(o.outPutPath) || (o.outPutPath = `${window.location.origin}${o.outPutPath}`);
12753
12753
  const r = `${o.outPutPath.endsWith("/") ? o.outPutPath : `${o.outPutPath}/`}${o.dbName}/region.zip`, c = await this.loadModelFile(r);
12754
12754
  c && typeof c == "object" && (["longitude", "latitude", "scale", "totalRotation", "height"].some((v) => c[v] !== void 0) && (o.formData = {
12755
12755
  ...o.formData || {},
@@ -1,4 +1,4 @@
1
- import { g as To } from "./index-BLRBUwT1.js";
1
+ import { g as To } from "./index-5b4BSr27.js";
2
2
  function R(n, e) {
3
3
  this.x = n, this.y = e;
4
4
  }
package/leiting-bim.es.js CHANGED
@@ -1 +1 @@
1
- (function(_0x10957b,_0x263f51){var _0xa034f2=a0_0x5895,_0x333080=_0x10957b();while(!![]){try{var _0x2945ef=-parseInt(_0xa034f2(0x1a9))/0x1+-parseInt(_0xa034f2(0x1aa))/0x2+-parseInt(_0xa034f2(0x1a4))/0x3*(parseInt(_0xa034f2(0x1a6))/0x4)+parseInt(_0xa034f2(0x1a7))/0x5+-parseInt(_0xa034f2(0x1a8))/0x6*(parseInt(_0xa034f2(0x1ab))/0x7)+parseInt(_0xa034f2(0x1a3))/0x8*(parseInt(_0xa034f2(0x1a2))/0x9)+parseInt(_0xa034f2(0x1a5))/0xa;if(_0x2945ef===_0x263f51)break;else _0x333080['push'](_0x333080['shift']());}catch(_0x1cf837){_0x333080['push'](_0x333080['shift']());}}}(a0_0x39c5,0x371ae));function a0_0x5895(_0x4a80b1,_0x3f6778){_0x4a80b1=_0x4a80b1-0x1a2;var _0x39c585=a0_0x39c5();var _0x589502=_0x39c585[_0x4a80b1];return _0x589502;}function a0_0x39c5(){var _0x564eff=['3PSCKCN','8164660sCeIIj','651704DCKqZl','2093330keMetu','786ncxaDl','436526cilyXw','420386XvjzdQ','12761iawZee','175662neYVOl','16Hpgrep'];a0_0x39c5=function(){return _0x564eff;};return a0_0x39c5();}import{D as a0_0x20923d,L as a0_0x30f975,b as a0_0x358dc9,e as a0_0x2ee927,_ as a0_0x5d882b,d as a0_0x1c6c98,f as a0_0xc72ebd,c as a0_0x8fbf18,h as a0_0x214879,a as a0_0x56e473,L as a0_0x4d7fee,b as a0_0x2a0010,e as a0_0x388d3a,_ as a0_0x1b235b,d as a0_0x3dc745,f as a0_0x43bef4,c as a0_0x46189e,h as a0_0x92b967,a as a0_0x52030d,M as a0_0x33be62,k as a0_0x311b2e,r as a0_0xff0b7c,p as a0_0x592df5,q as a0_0x4119db,o as a0_0x3767d8,n as a0_0x461304,m as a0_0x3acf71,i as a0_0x2b4cf8,I as a0_0x1671fd,z as a0_0x221afa,j as a0_0x4ec8ce,J as a0_0x1fa0b5,N as a0_0x3fbc4e,K as a0_0x57284d,L as a0_0x9e33cd,l as a0_0x2d71c6,y as a0_0x39ce86,F as a0_0x68b09d,v as a0_0x54990c,E as a0_0x67f3e9,C as a0_0x316170,H as a0_0x46f189,u as a0_0x294cc3,u as a0_0x277a9a,A as a0_0x47a3bb,B as a0_0x4329ca,s as a0_0x11489d,t as a0_0x2729bd,G as a0_0x99433d,x as a0_0x5aec34,w as a0_0x26092f}from'./index-BLRBUwT1.js';export{a0_0x20923d as DEFAULT_CESIUM_CONFIG,a0_0x30f975 as LeiTingBIM,a0_0x358dc9 as LeiTingDraggableCard,a0_0x2ee927 as LeiTingInfo,a0_0x5d882b as LeiTingMenu,a0_0x1c6c98 as LeiTingPlayer,a0_0xc72ebd as LeiTingPosition,a0_0x8fbf18 as LeiTingSection,a0_0x214879 as LeiTingSetting,a0_0x56e473 as LeiTingTree,a0_0x4d7fee as LeitingBIM,a0_0x2a0010 as LeitingDraggableCard,a0_0x388d3a as LeitingInfo,a0_0x1b235b as LeitingMenu,a0_0x3dc745 as LeitingPlayer,a0_0x43bef4 as LeitingPosition,a0_0x46189e as LeitingSection,a0_0x92b967 as LeitingSetting,a0_0x52030d as LeitingTree,a0_0x33be62 as MobileBottomNav,a0_0x311b2e as MobileDrawer,a0_0xff0b7c as MobileInfo,a0_0x592df5 as MobileMeasurement,a0_0x4119db as MobilePlayer,a0_0x3767d8 as MobileSection,a0_0x461304 as MobileSetting,a0_0x3acf71 as MobileTree,a0_0x2b4cf8 as default,a0_0x1671fd as defaultMobileConfig,a0_0x221afa as disableDoubleTapZoom,a0_0x4ec8ce as getAccessToken,a0_0x1fa0b5 as getCesiumOptionsForMobile,a0_0x3fbc4e as getTilesetOptionsForMobile,a0_0x57284d as getViewerOptionsForMobile,a0_0x9e33cd as leitingBim,a0_0x2d71c6 as loadCesium,a0_0x39ce86 as preventDefaultTouchEvents,a0_0x68b09d as useDebounce,a0_0x54990c as useDevice,a0_0x67f3e9 as useFrameRateControl,a0_0x316170 as useGestureDetection,a0_0x46f189 as useLazyLoad,a0_0x294cc3 as useLeiTing,a0_0x277a9a as useLeiting,a0_0x47a3bb as useLongPress,a0_0x4329ca as useLongPressOnElement,a0_0x11489d as useModelTree,a0_0x2729bd as useRightContextMenu,a0_0x99433d as useThrottle,a0_0x5aec34 as useTouchEvents,a0_0x26092f as waitForCesium};
1
+ function a0_0x5560(){var _0x7c6c2d=['3079708RFvyOu','841074bdRPds','135934tkQzcL','341688eAKHwK','3609960BPcblo','8HqJyJV','2150981FIINTB','2035032hthRvk'];a0_0x5560=function(){return _0x7c6c2d;};return a0_0x5560();}function a0_0x5a59(_0x1fd75a,_0xed0b02){_0x1fd75a=_0x1fd75a-0x112;var _0x55600d=a0_0x5560();var _0x5a59d7=_0x55600d[_0x1fd75a];return _0x5a59d7;}(function(_0x5b07ba,_0x1ec8f5){var _0x4772f3=a0_0x5a59,_0x1ead80=_0x5b07ba();while(!![]){try{var _0x2e8f54=-parseInt(_0x4772f3(0x116))/0x1*(parseInt(_0x4772f3(0x113))/0x2)+parseInt(_0x4772f3(0x118))/0x3+parseInt(_0x4772f3(0x119))/0x4+-parseInt(_0x4772f3(0x115))/0x5+-parseInt(_0x4772f3(0x112))/0x6+parseInt(_0x4772f3(0x117))/0x7+parseInt(_0x4772f3(0x114))/0x8;if(_0x2e8f54===_0x1ec8f5)break;else _0x1ead80['push'](_0x1ead80['shift']());}catch(_0x14d999){_0x1ead80['push'](_0x1ead80['shift']());}}}(a0_0x5560,0x5fca6));import{D as a0_0xfc963e,L as a0_0xe587cd,b as a0_0x2e7426,e as a0_0x5c235b,_ as a0_0x26e55f,d as a0_0x4ca000,f as a0_0x226aaf,c as a0_0x4522b9,h as a0_0x2366d8,a as a0_0x54e4e4,L as a0_0x1ae043,b as a0_0x3ae2bb,e as a0_0x2ebbfe,_ as a0_0x22a382,d as a0_0x248ce7,f as a0_0xe59f3a,c as a0_0x5609d1,h as a0_0x19b41c,a as a0_0x435836,M as a0_0xcc1532,k as a0_0x3fccef,r as a0_0x340baf,p as a0_0x1e9006,q as a0_0x4d5e41,o as a0_0x1acaa7,n as a0_0x384a0c,m as a0_0x462fd6,i as a0_0x3540b9,I as a0_0x4f1cdb,z as a0_0x3c1556,j as a0_0x215246,J as a0_0x28a680,N as a0_0x295fd,K as a0_0x5bc9cf,L as a0_0x1850f7,l as a0_0x965773,y as a0_0xbaba37,F as a0_0xe47bb6,v as a0_0x596ffd,E as a0_0x3d5c4e,C as a0_0x1910b3,H as a0_0x15f4b2,u as a0_0xcf4f66,u as a0_0x372680,A as a0_0x571ef5,B as a0_0x162403,s as a0_0x387eec,t as a0_0x207972,G as a0_0x86d2de,x as a0_0x5569db,w as a0_0xbd5f5a}from'./index-5b4BSr27.js';export{a0_0xfc963e as DEFAULT_CESIUM_CONFIG,a0_0xe587cd as LeiTingBIM,a0_0x2e7426 as LeiTingDraggableCard,a0_0x5c235b as LeiTingInfo,a0_0x26e55f as LeiTingMenu,a0_0x4ca000 as LeiTingPlayer,a0_0x226aaf as LeiTingPosition,a0_0x4522b9 as LeiTingSection,a0_0x2366d8 as LeiTingSetting,a0_0x54e4e4 as LeiTingTree,a0_0x1ae043 as LeitingBIM,a0_0x3ae2bb as LeitingDraggableCard,a0_0x2ebbfe as LeitingInfo,a0_0x22a382 as LeitingMenu,a0_0x248ce7 as LeitingPlayer,a0_0xe59f3a as LeitingPosition,a0_0x5609d1 as LeitingSection,a0_0x19b41c as LeitingSetting,a0_0x435836 as LeitingTree,a0_0xcc1532 as MobileBottomNav,a0_0x3fccef as MobileDrawer,a0_0x340baf as MobileInfo,a0_0x1e9006 as MobileMeasurement,a0_0x4d5e41 as MobilePlayer,a0_0x1acaa7 as MobileSection,a0_0x384a0c as MobileSetting,a0_0x462fd6 as MobileTree,a0_0x3540b9 as default,a0_0x4f1cdb as defaultMobileConfig,a0_0x3c1556 as disableDoubleTapZoom,a0_0x215246 as getAccessToken,a0_0x28a680 as getCesiumOptionsForMobile,a0_0x295fd as getTilesetOptionsForMobile,a0_0x5bc9cf as getViewerOptionsForMobile,a0_0x1850f7 as leitingBim,a0_0x965773 as loadCesium,a0_0xbaba37 as preventDefaultTouchEvents,a0_0xe47bb6 as useDebounce,a0_0x596ffd as useDevice,a0_0x3d5c4e as useFrameRateControl,a0_0x1910b3 as useGestureDetection,a0_0x15f4b2 as useLazyLoad,a0_0xcf4f66 as useLeiTing,a0_0x372680 as useLeiting,a0_0x571ef5 as useLongPress,a0_0x162403 as useLongPressOnElement,a0_0x387eec as useModelTree,a0_0x207972 as useRightContextMenu,a0_0x86d2de as useThrottle,a0_0x5569db as useTouchEvents,a0_0xbd5f5a as waitForCesium};