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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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 || {},
|
package/leiting-bim.es.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
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};
|