leiting-bim 2.1.127 → 2.1.128

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.
@@ -1,6 +1,6 @@
1
1
  import { w as we } from "../create-DynflqE1.js";
2
- import { h as L, markRaw as M, render as S, defineComponent as xe, inject as Se, onMounted as Ie, watch as Z, onUnmounted as De, renderSlot as Oe, unref as Ee } from "vue";
3
- import { M as I, H as J, a as H } from "../HtmlOverlayLabelPool-DgCFnmr3.js";
2
+ import { h as L, markRaw as M, render as S, defineComponent as xe, inject as Se, onMounted as De, watch as Z, onUnmounted as Ie, renderSlot as Oe, unref as Ee } from "vue";
3
+ import { M as D, H as J, a as H } from "../HtmlOverlayLabelPool-DgCFnmr3.js";
4
4
  import { CxCardCarousel as Q } from "./card-carousel.js";
5
5
  import { CxMarkerBubble as Ge } from "./marker-bubble.js";
6
6
  import { CxMarkerDefault as ee } from "./marker-default.js";
@@ -18,7 +18,7 @@ const qe = {
18
18
  themeConfig: { type: Object }
19
19
  // Optional override
20
20
  };
21
- var D = /* @__PURE__ */ ((r) => (r.左建选中模型 = "MODEL_LEFT_CLICK", r.标记左键点击 = "TAG_LEFT_CLICK", r.标记移入 = "TAG_MOUSEENTER", r.标记移出 = "TAG_MOUSELEAVE", r.模型位置保存 = "SAVE_REGION", r.模型加载完成 = "MODEL_READY", r))(D || {});
21
+ var I = /* @__PURE__ */ ((r) => (r.左建选中模型 = "MODEL_LEFT_CLICK", r.标记左键点击 = "TAG_LEFT_CLICK", r.标记移入 = "TAG_MOUSEENTER", r.标记移出 = "TAG_MOUSELEAVE", r.模型位置保存 = "SAVE_REGION", r.模型加载完成 = "MODEL_READY", r))(I || {});
22
22
  class je {
23
23
  Cesium;
24
24
  viewer;
@@ -683,7 +683,7 @@ function St(r, e, t) {
683
683
  a[i] = r[i + e];
684
684
  return a;
685
685
  }
686
- function It(r) {
686
+ function Dt(r) {
687
687
  return function(e, t, i) {
688
688
  for (var o = -1, a = Object(e), n = i(e), s = n.length; s--; ) {
689
689
  var h = n[++o];
@@ -693,7 +693,7 @@ function It(r) {
693
693
  return e;
694
694
  };
695
695
  }
696
- var Dt = It();
696
+ var It = Dt();
697
697
  function F(r, e, t) {
698
698
  (t !== void 0 && !le(r[e], t) || t === void 0 && !(e in r)) && He(r, e, t);
699
699
  }
@@ -721,7 +721,7 @@ function Gt(r, e, t, i, o, a, n) {
721
721
  d && (n.set(h, l), o(l, h, i, a, n), n.delete(h)), F(r, t, l);
722
722
  }
723
723
  function be(r, e, t, i, o) {
724
- r !== e && Dt(e, function(a, n) {
724
+ r !== e && It(e, function(a, n) {
725
725
  if (o || (o = new Ye()), V(a))
726
726
  Gt(r, e, n, t, be, i, o);
727
727
  else {
@@ -805,7 +805,7 @@ function Vt(r, e) {
805
805
  vec2 st = materialInput.st;
806
806
  float time = fract(mod(float(czm_frameNumber * 33.0) , float(${a.duration})) / float(${a.duration}));
807
807
  ${a.freely === "vertical" ? `vec4 colorImage = texture(image, vec2(fract(float(${a.count}) *st.t ${a.direction} time), fract(st.s)));` : `vec4 colorImage = texture(image, vec2(fract(float(${a.count}) *st.s ${a.direction} time), fract(st.t)));`}
808
- ${a.isCustomColor ? "material.diffuse = color.rgb;" : "material.diffuse = colorImage.rgb;"}
808
+ material.diffuse = color.rgb;
809
809
  material.alpha = colorImage.a;
810
810
  return material;
811
811
  }`;
@@ -822,8 +822,7 @@ function Vt(r, e) {
822
822
  count: e.count,
823
823
  freely: e.freely || "",
824
824
  direction: e.direction,
825
- duration: e.duration || 100,
826
- isCustomColor: e.isCustomColor
825
+ duration: e.duration || 100
827
826
  })
828
827
  },
829
828
  translucent() {
@@ -865,10 +864,10 @@ function _e(r, e) {
865
864
  return a.freely == "vertical" ? n += "vec4 colorImage = texture(image, vec2(fract(float(" + a.count + ")*st.t " + a.direction + ` time), fract(st.s)));
866
865
  ` : n += "vec4 colorImage = texture(image, vec2(fract(float(" + a.count + ")*st.s " + a.direction + ` time), fract(st.t)));
867
866
  `, n += `vec4 fragColor;
868
- fragColor.rgb = (colorImage.rgb) / 1.0;
867
+ fragColor.rgb = (color.rgb) / 1.0;
869
868
  fragColor = czm_gammaCorrect(fragColor);
870
- `, n += ` material.diffuse = colorImage.rgb;
871
- material.alpha = colorImage.a;
869
+ `, n += ` material.diffuse = color.rgb;
870
+ material.alpha = colorImage.a * color.a;
872
871
  material.emission = fragColor.rgb;
873
872
 
874
873
  return material;
@@ -879,7 +878,7 @@ function _e(r, e) {
879
878
  fabric: {
880
879
  type: t,
881
880
  uniforms: {
882
- color: new r.Color(1, 0, 0, 0.5),
881
+ color: e.color || new r.Color(1, 1, 1, 1),
883
882
  image: e.image,
884
883
  time: 0
885
884
  },
@@ -1091,7 +1090,7 @@ class Xt {
1091
1090
  aggregator;
1092
1091
  cardPool;
1093
1092
  constructor(e, t, i, o, a, n) {
1094
- this.id = e, this.Cesium = t, this.viewer = i, this.materialManager = o, this.aggregator = a, this.cardPool = n, this.aggregator.labelPool.eventBus.addListener(I.Click, {
1093
+ this.id = e, this.Cesium = t, this.viewer = i, this.materialManager = o, this.aggregator = a, this.cardPool = n, this.aggregator.labelPool.eventBus.addListener(D.Click, {
1095
1094
  name: "BufferedHierarchicalAggregator_maker_click",
1096
1095
  fn: (h, c) => {
1097
1096
  this.cardPool.showByIds([h.data.id]);
@@ -1513,7 +1512,7 @@ function Qt({
1513
1512
  } else if (e.data?.wallType == "DynamicImgMaterial") {
1514
1513
  let i = _e(r, {
1515
1514
  image: e.img,
1516
- // color: new Cesium.Color.fromCssColorString(options?.options?.color),
1515
+ color: new r.Color.fromCssColorString(e?.options?.color),
1517
1516
  duration: 5e3,
1518
1517
  freely: e.data?.freely || "vertical",
1519
1518
  direction: "+",
@@ -1834,15 +1833,15 @@ class ei extends jt {
1834
1833
  //标记监听事件
1835
1834
  initTagListener(e, t) {
1836
1835
  let { viewer: i, tagListeningOptions: o } = t;
1837
- e.addListener(I.Click, {
1836
+ e.addListener(D.Click, {
1838
1837
  name: "marker:click",
1839
1838
  fn: (a) => {
1840
- t.runListener?.(D.标记左键点击, a.data), ge(a.data?.onClick) && a.data?.onClick(a.data), a.data?.cameraPoint && a.data?.billboard[0]?.isFlyToCameraPoint && i?.camera?.flyTo({
1839
+ t.runListener?.(I.标记左键点击, a.data), ge(a.data?.onClick) && a.data?.onClick(a.data), a.data?.cameraPoint && a.data?.billboard[0]?.isFlyToCameraPoint && i?.camera?.flyTo({
1841
1840
  duration: 1,
1842
1841
  ...a.data?.cameraPoint
1843
1842
  });
1844
1843
  }
1845
- }), e.addListener(I.MouseEnter, {
1844
+ }), e.addListener(D.MouseEnter, {
1846
1845
  name: "marker:mouseenter",
1847
1846
  fn: (a) => {
1848
1847
  let n = this.opt.Cesium, s = { x: 0, y: 0 };
@@ -1854,9 +1853,9 @@ class ei extends jt {
1854
1853
  } catch (h) {
1855
1854
  console.log(h);
1856
1855
  }
1857
- t.runListener?.(D.标记移入, a.data, s);
1856
+ t.runListener?.(I.标记移入, a.data, s);
1858
1857
  }
1859
- }), e.addListener(I.MouseLeave, {
1858
+ }), e.addListener(D.MouseLeave, {
1860
1859
  name: "marker:mouseleave",
1861
1860
  fn: (a) => {
1862
1861
  let n = this.opt.Cesium, s = { x: 0, y: 0 };
@@ -1868,7 +1867,7 @@ class ei extends jt {
1868
1867
  } catch (h) {
1869
1868
  console.log(h);
1870
1869
  }
1871
- t.runListener?.(D.标记移出, a.data, s);
1870
+ t.runListener?.(I.标记移出, a.data, s);
1872
1871
  }
1873
1872
  }), o?.forEach((a) => {
1874
1873
  e.addListener(a.key, a.ListenerItem, a.overwrite);
@@ -1925,7 +1924,7 @@ const ti = /* @__PURE__ */ xe({
1925
1924
  const l = Ee(a), d = l?.getCesium?.(), g = l?.getViewer?.();
1926
1925
  d && g ? s({ Cesium: d, viewer: g, methods: l }) : i.Cesium && i.viewer && s({ methods: l });
1927
1926
  }
1928
- return Ie(() => {
1927
+ return De(() => {
1929
1928
  c();
1930
1929
  }), Z(
1931
1930
  () => [i.Cesium, i.viewer],
@@ -1938,7 +1937,7 @@ const ti = /* @__PURE__ */ xe({
1938
1937
  c();
1939
1938
  },
1940
1939
  { deep: !1 }
1941
- ), De(() => {
1940
+ ), Ie(() => {
1942
1941
  }), (l, d) => Oe(l.$slots, "default");
1943
1942
  }
1944
1943
  }), di = we(ti);
@@ -1946,7 +1945,7 @@ export {
1946
1945
  di as CxMarkerManage,
1947
1946
  ei as MarkerManage,
1948
1947
  jt as MarkerManagerCore,
1949
- D as ReportListenerKey,
1948
+ I as ReportListenerKey,
1950
1949
  di as default,
1951
1950
  qe as markerManageProps
1952
1951
  };