leiting-bim 2.2.3 → 2.2.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.
@@ -11953,7 +11953,7 @@ class dw {
11953
11953
  let t = window?.VectorTileLayer || window?.CesiumVectorTileGL?.VectorTileLayer || this.cesium?.VectorTileLayer;
11954
11954
  if (!t)
11955
11955
  try {
11956
- const n = await import("./index-lALVR919.js"), o = n?.VectorTileLayer || n?.CesiumVectorTileGL?.VectorTileLayer || n?.default?.VectorTileLayer || n?.default;
11956
+ const n = await import("./index-SNck7wKy.js"), o = n?.VectorTileLayer || n?.CesiumVectorTileGL?.VectorTileLayer || n?.default?.VectorTileLayer || n?.default;
11957
11957
  if (o)
11958
11958
  window.VectorTileLayer = o, n?.CesiumVectorTileGL && (window.CesiumVectorTileGL = n.CesiumVectorTileGL), t = o;
11959
11959
  else {
@@ -12048,13 +12048,13 @@ class dw {
12048
12048
  let t = window?.VectorTileLayer || window?.CesiumVectorTileGL?.VectorTileLayer || this.cesium?.VectorTileLayer;
12049
12049
  if (!t)
12050
12050
  try {
12051
- const r = await import("./index-lALVR919.js"), c = r?.VectorTileLayer || r?.CesiumVectorTileGL?.VectorTileLayer || r?.default?.VectorTileLayer || r?.default;
12051
+ const r = await import("./index-SNck7wKy.js"), c = r?.VectorTileLayer || r?.CesiumVectorTileGL?.VectorTileLayer || r?.default?.VectorTileLayer || r?.default;
12052
12052
  c && (window.VectorTileLayer = c, r?.CesiumVectorTileGL && (window.CesiumVectorTileGL = r.CesiumVectorTileGL), t = c);
12053
12053
  } catch {
12054
12054
  }
12055
12055
  if (!(window?.CesiumVectorTileGL?.VectorTileset || window?.VectorTileset))
12056
12056
  try {
12057
- const r = await import("./index-lALVR919.js"), c = r?.VectorTileset || r?.CesiumVectorTileGL?.VectorTileset || r?.default?.VectorTileset;
12057
+ const r = await import("./index-SNck7wKy.js"), c = r?.VectorTileset || r?.CesiumVectorTileGL?.VectorTileset || r?.default?.VectorTileset;
12058
12058
  c && (window.VectorTileset = c);
12059
12059
  } catch {
12060
12060
  }
@@ -12469,7 +12469,7 @@ class dw {
12469
12469
  return console.warn("Failed to parse CAD color, fallback to white:", e), s;
12470
12470
  }
12471
12471
  getLineWidth(e) {
12472
- return typeof e != "number" || Number.isNaN(e) ? 1 : Math.max(1, Math.min(4, Math.round(e * 4)));
12472
+ return typeof e != "number" || Number.isNaN(e) ? 1.25 : Math.max(2.5, e * 5);
12473
12473
  }
12474
12474
  uniqueKey(e) {
12475
12475
  return e.map((t) => `${t ?? ""}`).join("::");
@@ -27267,7 +27267,9 @@ function oI(i) {
27267
27267
  creditContainer: document.createElement("div"),
27268
27268
  contextOptions: {
27269
27269
  webgl: {
27270
- alpha: !0
27270
+ alpha: !0,
27271
+ // 保留 drawing buffer,使 canvas.toDataURL() 能正确截取 3D 渲染内容
27272
+ preserveDrawingBuffer: !0
27271
27273
  }
27272
27274
  }
27273
27275
  }, u = t?.config?.globalProperties?.$leitingBimOptions, d = {
@@ -1,4 +1,4 @@
1
- import { g as To } from "./index-BXFStPqs.js";
1
+ import { g as To } from "./index-B8NarhWA.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 a0_0x50c9(_0x5bd9ab,_0x218fa9){_0x5bd9ab=_0x5bd9ab-0x1db;var _0x59dec6=a0_0x59de();var _0x50c9a4=_0x59dec6[_0x5bd9ab];return _0x50c9a4;}(function(_0xe0f115,_0x282908){var _0x2b5696=a0_0x50c9,_0x27310b=_0xe0f115();while(!![]){try{var _0x35f486=-parseInt(_0x2b5696(0x1dc))/0x1*(parseInt(_0x2b5696(0x1e4))/0x2)+-parseInt(_0x2b5696(0x1e1))/0x3*(-parseInt(_0x2b5696(0x1db))/0x4)+parseInt(_0x2b5696(0x1dd))/0x5*(-parseInt(_0x2b5696(0x1e7))/0x6)+parseInt(_0x2b5696(0x1e0))/0x7*(-parseInt(_0x2b5696(0x1de))/0x8)+-parseInt(_0x2b5696(0x1e2))/0x9+-parseInt(_0x2b5696(0x1e5))/0xa*(parseInt(_0x2b5696(0x1e6))/0xb)+-parseInt(_0x2b5696(0x1e3))/0xc*(-parseInt(_0x2b5696(0x1df))/0xd);if(_0x35f486===_0x282908)break;else _0x27310b['push'](_0x27310b['shift']());}catch(_0x24cd5f){_0x27310b['push'](_0x27310b['shift']());}}}(a0_0x59de,0x571c5));function a0_0x59de(){var _0x590e41=['130324xyxbvD','64ftWQHD','2990qDVHCr','72sHnYBL','4129255EkFrEm','177520spYVLC','30gvIRss','5165298odlMec','60pvJQVS','11958DgNLXy','5450gytzuU','2398bAUOCC','2544umRgpg'];a0_0x59de=function(){return _0x590e41;};return a0_0x59de();}import{D as a0_0x23180b,L as a0_0xb81b1f,b as a0_0x333a56,e as a0_0xd1e528,_ as a0_0x1ab85b,d as a0_0x141fd1,f as a0_0x18835d,c as a0_0x11d8cf,h as a0_0x5410a7,a as a0_0xc5112,L as a0_0x14c801,b as a0_0x1ecc45,e as a0_0x3c8f51,_ as a0_0x2d2f56,d as a0_0x28312d,f as a0_0x41971b,c as a0_0x550266,h as a0_0x58dbe4,a as a0_0x38ec6d,M as a0_0x2a61e3,k as a0_0x41d7c8,r as a0_0x1a210b,p as a0_0x587a64,q as a0_0x349746,o as a0_0x5ef6c9,n as a0_0x1d32cf,m as a0_0x54b92e,i as a0_0x37117c,I as a0_0x535528,z as a0_0x30733f,j as a0_0x1abfad,J as a0_0x519e04,N as a0_0x2167f4,K as a0_0x35a1da,L as a0_0x10ebc9,l as a0_0x3c1fd1,y as a0_0x50e7b9,F as a0_0x4ae1e3,v as a0_0x14a89d,E as a0_0x21d332,C as a0_0x22bb99,H as a0_0x4ff1a0,u as a0_0x305d86,u as a0_0x5cbef0,A as a0_0x4c4cde,B as a0_0xffbfa9,s as a0_0x4a0a73,t as a0_0x30bd78,G as a0_0x5d7024,x as a0_0x166f6c,w as a0_0x5e0ea7}from'./index-BXFStPqs.js';export{a0_0x23180b as DEFAULT_CESIUM_CONFIG,a0_0xb81b1f as LeiTingBIM,a0_0x333a56 as LeiTingDraggableCard,a0_0xd1e528 as LeiTingInfo,a0_0x1ab85b as LeiTingMenu,a0_0x141fd1 as LeiTingPlayer,a0_0x18835d as LeiTingPosition,a0_0x11d8cf as LeiTingSection,a0_0x5410a7 as LeiTingSetting,a0_0xc5112 as LeiTingTree,a0_0x14c801 as LeitingBIM,a0_0x1ecc45 as LeitingDraggableCard,a0_0x3c8f51 as LeitingInfo,a0_0x2d2f56 as LeitingMenu,a0_0x28312d as LeitingPlayer,a0_0x41971b as LeitingPosition,a0_0x550266 as LeitingSection,a0_0x58dbe4 as LeitingSetting,a0_0x38ec6d as LeitingTree,a0_0x2a61e3 as MobileBottomNav,a0_0x41d7c8 as MobileDrawer,a0_0x1a210b as MobileInfo,a0_0x587a64 as MobileMeasurement,a0_0x349746 as MobilePlayer,a0_0x5ef6c9 as MobileSection,a0_0x1d32cf as MobileSetting,a0_0x54b92e as MobileTree,a0_0x37117c as default,a0_0x535528 as defaultMobileConfig,a0_0x30733f as disableDoubleTapZoom,a0_0x1abfad as getAccessToken,a0_0x519e04 as getCesiumOptionsForMobile,a0_0x2167f4 as getTilesetOptionsForMobile,a0_0x35a1da as getViewerOptionsForMobile,a0_0x10ebc9 as leitingBim,a0_0x3c1fd1 as loadCesium,a0_0x50e7b9 as preventDefaultTouchEvents,a0_0x4ae1e3 as useDebounce,a0_0x14a89d as useDevice,a0_0x21d332 as useFrameRateControl,a0_0x22bb99 as useGestureDetection,a0_0x4ff1a0 as useLazyLoad,a0_0x305d86 as useLeiTing,a0_0x5cbef0 as useLeiting,a0_0x4c4cde as useLongPress,a0_0xffbfa9 as useLongPressOnElement,a0_0x4a0a73 as useModelTree,a0_0x30bd78 as useRightContextMenu,a0_0x5d7024 as useThrottle,a0_0x166f6c as useTouchEvents,a0_0x5e0ea7 as waitForCesium};
1
+ (function(_0x1eaf9a,_0xc84eff){var _0x58074a=a0_0x2e5d,_0x3a32b0=_0x1eaf9a();while(!![]){try{var _0x3a19f1=parseInt(_0x58074a(0x17c))/0x1+-parseInt(_0x58074a(0x17b))/0x2+parseInt(_0x58074a(0x17a))/0x3*(parseInt(_0x58074a(0x176))/0x4)+parseInt(_0x58074a(0x177))/0x5*(-parseInt(_0x58074a(0x178))/0x6)+-parseInt(_0x58074a(0x17e))/0x7*(-parseInt(_0x58074a(0x17f))/0x8)+-parseInt(_0x58074a(0x179))/0x9+-parseInt(_0x58074a(0x180))/0xa*(parseInt(_0x58074a(0x17d))/0xb);if(_0x3a19f1===_0xc84eff)break;else _0x3a32b0['push'](_0x3a32b0['shift']());}catch(_0x278b2c){_0x3a32b0['push'](_0x3a32b0['shift']());}}}(a0_0x277e,0xe6ea1));import{D as a0_0x48affe,L as a0_0x4082c4,b as a0_0x3ba20c,e as a0_0x955f36,_ as a0_0x10373c,d as a0_0x57fe93,f as a0_0x1adf21,c as a0_0x2c0dff,h as a0_0x4417f4,a as a0_0x47fc70,L as a0_0x451350,b as a0_0x274f47,e as a0_0x69e2f4,_ as a0_0x39817a,d as a0_0x263497,f as a0_0x1ad5eb,c as a0_0x4027fd,h as a0_0x537295,a as a0_0x4f3566,M as a0_0x5c407f,k as a0_0x17743e,r as a0_0x3fcf17,p as a0_0x3fc55a,q as a0_0x3f1f77,o as a0_0x168567,n as a0_0x57017a,m as a0_0x2f76f6,i as a0_0x422b38,I as a0_0x240dc0,z as a0_0x217e92,j as a0_0x331ce4,J as a0_0x196006,N as a0_0x3c1880,K as a0_0x292a27,L as a0_0x28c48a,l as a0_0x4a257c,y as a0_0x3a3b4b,F as a0_0x459a7e,v as a0_0x48a184,E as a0_0x20aa42,C as a0_0x2bf051,H as a0_0x80f912,u as a0_0x5b8a74,u as a0_0x2f59a9,A as a0_0x22d3d4,B as a0_0x2b8a02,s as a0_0x3f8ebd,t as a0_0x284805,G as a0_0x28ee0c,x as a0_0x8b7f69,w as a0_0x4d205b}from'./index-B8NarhWA.js';function a0_0x2e5d(_0x58ba17,_0x3da962){_0x58ba17=_0x58ba17-0x176;var _0x277e51=a0_0x277e();var _0x2e5d70=_0x277e51[_0x58ba17];return _0x2e5d70;}export{a0_0x48affe as DEFAULT_CESIUM_CONFIG,a0_0x4082c4 as LeiTingBIM,a0_0x3ba20c as LeiTingDraggableCard,a0_0x955f36 as LeiTingInfo,a0_0x10373c as LeiTingMenu,a0_0x57fe93 as LeiTingPlayer,a0_0x1adf21 as LeiTingPosition,a0_0x2c0dff as LeiTingSection,a0_0x4417f4 as LeiTingSetting,a0_0x47fc70 as LeiTingTree,a0_0x451350 as LeitingBIM,a0_0x274f47 as LeitingDraggableCard,a0_0x69e2f4 as LeitingInfo,a0_0x39817a as LeitingMenu,a0_0x263497 as LeitingPlayer,a0_0x1ad5eb as LeitingPosition,a0_0x4027fd as LeitingSection,a0_0x537295 as LeitingSetting,a0_0x4f3566 as LeitingTree,a0_0x5c407f as MobileBottomNav,a0_0x17743e as MobileDrawer,a0_0x3fcf17 as MobileInfo,a0_0x3fc55a as MobileMeasurement,a0_0x3f1f77 as MobilePlayer,a0_0x168567 as MobileSection,a0_0x57017a as MobileSetting,a0_0x2f76f6 as MobileTree,a0_0x422b38 as default,a0_0x240dc0 as defaultMobileConfig,a0_0x217e92 as disableDoubleTapZoom,a0_0x331ce4 as getAccessToken,a0_0x196006 as getCesiumOptionsForMobile,a0_0x3c1880 as getTilesetOptionsForMobile,a0_0x292a27 as getViewerOptionsForMobile,a0_0x28c48a as leitingBim,a0_0x4a257c as loadCesium,a0_0x3a3b4b as preventDefaultTouchEvents,a0_0x459a7e as useDebounce,a0_0x48a184 as useDevice,a0_0x20aa42 as useFrameRateControl,a0_0x2bf051 as useGestureDetection,a0_0x80f912 as useLazyLoad,a0_0x5b8a74 as useLeiTing,a0_0x2f59a9 as useLeiting,a0_0x22d3d4 as useLongPress,a0_0x2b8a02 as useLongPressOnElement,a0_0x3f8ebd as useModelTree,a0_0x284805 as useRightContextMenu,a0_0x28ee0c as useThrottle,a0_0x8b7f69 as useTouchEvents,a0_0x4d205b as waitForCesium};function a0_0x277e(){var _0x5ec873=['7240656kzPYBz','13149144Ytnjcc','12EjUHtq','3113254DySGRS','1732498lDADnP','11tMbUan','63sAGJTd','1617160ZrAPeY','1757230cdqRrG','1794164cgHcRb','5gtmvTq'];a0_0x277e=function(){return _0x5ec873;};return a0_0x277e();}