leiting-bim 2.1.135 → 2.1.136

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.
Files changed (28) hide show
  1. package/leiting-bim.es.js +1 -1
  2. package/leiting-bim.umd.js +1 -1
  3. package/leitingbim.css +1 -1
  4. package/package.json +1 -1
  5. package/plugins/cesium-core/dist/cesium-core.mjs +1505 -1315
  6. package/plugins/cesium-core/dist/cesium-core.mjs.map +1 -1
  7. package/plugins/cesium-core/dist/cesium-core.umd.js +25 -25
  8. package/plugins/cesium-core/dist/cesium-core.umd.js.map +1 -1
  9. package/plugins/cesium-core/dist/components/HtmlOverlayLabelPool.d.ts +36 -0
  10. package/plugins/cesium-core/dist/components/draw/handlers/LineDrawer.d.ts +1 -0
  11. package/plugins/cesium-core/dist/components/draw/handlers/PolygonDrawer.d.ts +1 -0
  12. package/plugins/cesium-core/package.json +1 -1
  13. package/plugins/cesium-vue/dist/HtmlOverlayLabelPool-CbiNlyAM.js +510 -0
  14. package/plugins/cesium-vue/dist/HtmlOverlayLabelPool-CbiNlyAM.js.map +1 -0
  15. package/plugins/cesium-vue/dist/cesium-vue/src/components/marker-bubble/index.d.ts +87 -1
  16. package/plugins/cesium-vue/dist/cesium-vue/src/components/marker-manage/index.d.ts +12 -0
  17. package/plugins/cesium-vue/dist/cesium-vue/src/index.d.ts +3 -2
  18. package/plugins/cesium-vue/dist/components/marker-bubble.js +200 -73
  19. package/plugins/cesium-vue/dist/components/marker-bubble.js.map +1 -1
  20. package/plugins/cesium-vue/dist/components/marker-manage.js +536 -511
  21. package/plugins/cesium-vue/dist/components/marker-manage.js.map +1 -1
  22. package/plugins/cesium-vue/dist/components/measurement.js +1 -1
  23. package/plugins/cesium-vue/dist/index.js +39 -37
  24. package/plugins/cesium-vue/dist/index.js.map +1 -1
  25. package/plugins/cesium-vue/package.json +1 -1
  26. package/plugins/theme-chalk/dist/theme-chalk.css +33 -0
  27. package/plugins/theme-chalk/package.json +1 -1
  28. package/plugins/utils/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { p as Me, c as De, w as Te } from "../create-DynflqE1.js";
2
2
  import { defineComponent as Se, ref as ae, inject as Oe, watch as Fe, onMounted as ke, onUnmounted as Re, openBlock as ce, createElementBlock as de, Fragment as pe, withDirectives as He, createElementVNode as K, normalizeClass as ee, unref as U, renderList as _e, createTextVNode as le, toDisplayString as Ne, vShow as ze } from "vue";
3
- import { H as k, M as Be } from "../HtmlOverlayLabelPool-DgCFnmr3.js";
3
+ import { H as k, M as Be } from "../HtmlOverlayLabelPool-CbiNlyAM.js";
4
4
  class me {
5
5
  Cesium;
6
6
  viewer;
@@ -1,28 +1,28 @@
1
1
  import { CxMarkerDefault as f } from "./components/marker-default.js";
2
2
  import { CxMarkerHtml as s } from "./components/marker-html.js";
3
3
  import { CxMarkerText as u } from "./components/marker-text.js";
4
- import { CxMarkerBubble as c } from "./components/marker-bubble.js";
5
- import { CxMarkerManage as C } from "./components/marker-manage.js";
6
- import { MarkerManagerCore as N } from "./components/marker-manage.js";
4
+ import { CxMarkerBubble as c, CxMarkerBubbleLine as C } from "./components/marker-bubble.js";
5
+ import { CxMarkerManage as x } from "./components/marker-manage.js";
6
+ import { MarkerManagerCore as O } from "./components/marker-manage.js";
7
7
  import { CxBasicVideo as p } from "./components/basic-video.js";
8
- import { CxCardContent as x } from "./components/card-content.js";
9
- import { CxCarouselImg as l } from "./components/carousel-img.js";
10
- import { CxCardPage as M } from "./components/card-page.js";
11
- import { CxCardCarousel as d } from "./components/card-carousel.js";
12
- import { C as g } from "./index-McKGafjp.js";
13
- import { CxBasicAudio as k } from "./components/basic-audio.js";
8
+ import { CxCardContent as l } from "./components/card-content.js";
9
+ import { CxCarouselImg as M } from "./components/carousel-img.js";
10
+ import { CxCardPage as d } from "./components/card-page.js";
11
+ import { CxCardCarousel as g } from "./components/card-carousel.js";
12
+ import { C as k } from "./index-McKGafjp.js";
13
+ import { CxBasicAudio as b } from "./components/basic-audio.js";
14
14
  import { CxMeasurement as P } from "./components/measurement.js";
15
- import { CxPositionPicker as b } from "./components/position-picker.js";
16
- import { ref as h, unref as B, onUnmounted as v } from "vue";
15
+ import { CxPositionPicker as B } from "./components/position-picker.js";
16
+ import { ref as h, unref as v, onUnmounted as y } from "vue";
17
17
  function F() {
18
- const e = h();
18
+ const o = h();
19
19
  function n(r) {
20
- v(() => {
21
- e.value = null;
22
- }), e.value = r;
20
+ y(() => {
21
+ o.value = null;
22
+ }), o.value = r;
23
23
  }
24
24
  function i() {
25
- const r = B(e);
25
+ const r = v(o);
26
26
  return r || console.error("未获取到markerManager实例!"), r;
27
27
  }
28
28
  const m = new Proxy(
@@ -31,55 +31,57 @@ function F() {
31
31
  get(r, a) {
32
32
  const t = i();
33
33
  if (!t) return;
34
- const o = t[a];
35
- return typeof o == "function" ? o.bind(t) : o;
34
+ const e = t[a];
35
+ return typeof e == "function" ? e.bind(t) : e;
36
36
  },
37
37
  set(r, a, t) {
38
- const o = i();
39
- return o ? (o[a] = t, !0) : !1;
38
+ const e = i();
39
+ return e ? (e[a] = t, !0) : !1;
40
40
  }
41
41
  }
42
42
  );
43
43
  return [n, m];
44
44
  }
45
- const y = [
45
+ const E = [
46
46
  f,
47
47
  u,
48
48
  c,
49
49
  C,
50
- p,
51
50
  x,
51
+ p,
52
52
  l,
53
- g,
54
53
  M,
54
+ k,
55
55
  d,
56
+ g,
56
57
  s,
57
58
  P,
58
- b,
59
- k
59
+ B,
60
+ b
60
61
  ], G = {
61
- install(e) {
62
- y.forEach((n) => {
63
- e.use(n);
62
+ install(o) {
63
+ E.forEach((n) => {
64
+ o.use(n);
64
65
  });
65
66
  }
66
67
  };
67
68
  export {
68
- k as CxBasicAudio,
69
+ b as CxBasicAudio,
69
70
  p as CxBasicVideo,
70
- d as CxCardCarousel,
71
- x as CxCardContent,
72
- M as CxCardPage,
73
- l as CxCarouselImg,
74
- g as CxEchartsPro,
71
+ g as CxCardCarousel,
72
+ l as CxCardContent,
73
+ d as CxCardPage,
74
+ M as CxCarouselImg,
75
+ k as CxEchartsPro,
75
76
  c as CxMarkerBubble,
77
+ C as CxMarkerBubbleLine,
76
78
  f as CxMarkerDefault,
77
79
  s as CxMarkerHtml,
78
- C as CxMarkerManage,
80
+ x as CxMarkerManage,
79
81
  u as CxMarkerText,
80
82
  P as CxMeasurement,
81
- b as CxPositionPicker,
82
- N as MarkerManagerCore,
83
+ B as CxPositionPicker,
84
+ O as MarkerManagerCore,
83
85
  G as default,
84
86
  F as useMarKerManage
85
87
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/components/marker-manage/src/hook/useMarkerManage.ts","../src/index.ts"],"sourcesContent":["import { onUnmounted, ref, unref } from 'vue';\r\nimport { MarkerManageMethods } from '../type/markerManage';\r\n\r\nexport function useMarKerManage() {\r\n const instanceRef = ref();\r\n\r\n function register(instance: MarkerManageMethods): void {\r\n onUnmounted(() => {\r\n instanceRef.value = null;\r\n });\r\n // 注册属性\r\n instanceRef.value = instance;\r\n }\r\n\r\n function getInstance() {\r\n const instance = unref(instanceRef);\r\n if (!instance) {\r\n console.error('未获取到markerManager实例!');\r\n }\r\n return instance;\r\n }\r\n\r\n const methods = new Proxy(\r\n {},\r\n {\r\n get(_, key: string) {\r\n const instance = getInstance();\r\n if (!instance) return;\r\n const target = instance[key];\r\n if (typeof target === 'function') {\r\n return target.bind(instance);\r\n }\r\n return target;\r\n },\r\n set(_, key: string, value) {\r\n const instance = getInstance();\r\n if (!instance) return false;\r\n instance[key] = value;\r\n return true;\r\n },\r\n },\r\n );\r\n\r\n return [register, methods];\r\n}\r\n","import type { App } from 'vue';\nimport CxMarkerDefault from './components/marker-default';\nimport CxMarkerHtml from './components/marker-html';\nimport CxMarkerText from './components/marker-text';\nimport CxMarkerBubble from './components/marker-bubble';\nimport CxMarkerManage, { MarkerManagerCore } from './components/marker-manage';\nimport CxBasicVideo from './components/basic-video';\nimport CxCardContent from './components/card-content';\nimport CxCarouselImg from './components/carousel-img';\nimport CxCardPage from './components/card-page';\nimport CxCardCarousel from './components/card-carousel';\nimport CxEchartsPro from './components/echarts-pro';\nimport CxBasicAudio from './components/basic-audio';\nimport CxMeasurement from './components/measurement';\nimport CxPositionPicker from './components/position-picker';\nimport { useMarKerManage } from './components/marker-manage/src/hook/useMarkerManage';\nimport type { MarkerManageOptions } from './components/marker-manage/src/type/markerManage';\n\r\ndeclare global {\r\n interface Window {\r\n Cesium?: any; // 或具体类型\r\n }\r\n}\r\nconst components = [\r\n CxMarkerDefault,\r\n CxMarkerText,\r\n CxMarkerBubble,\r\n CxMarkerManage,\r\n CxBasicVideo,\r\n CxCardContent,\r\n CxCarouselImg,\r\n CxEchartsPro,\r\n CxCardPage,\r\n CxCardCarousel,\r\n CxMarkerHtml,\r\n CxMeasurement,\r\n CxPositionPicker,\n CxBasicAudio,\r\n];\r\n\r\nexport default {\r\n install(app: App) {\r\n components.forEach((component) => {\r\n app.use(component as any);\r\n });\r\n },\r\n};\r\n\r\nexport { useMarKerManage, MarkerManageOptions, MarkerManagerCore };\r\n\r\nexport {\r\n CxMarkerDefault,\r\n CxMarkerText,\r\n CxMarkerBubble,\r\n CxMarkerManage,\r\n CxBasicVideo,\r\n CxCardContent,\r\n CxCarouselImg,\r\n CxEchartsPro,\r\n CxCardPage,\r\n CxCardCarousel,\r\n CxBasicAudio,\r\n CxMarkerHtml,\r\n CxMeasurement,\r\n CxPositionPicker,\n};\r\n\r\ndeclare module 'vue' {\r\n export interface GlobalComponents {\r\n CxMarkerDefault: typeof CxMarkerDefault;\r\n CxMarkerText: typeof CxMarkerText;\r\n CxMarkerBubble: typeof CxMarkerBubble;\r\n CxMarkerManage: typeof CxMarkerManage;\r\n CxBasicVideo: typeof CxBasicVideo;\r\n CxCardContent: typeof CxCardContent;\r\n CxCarouselImg: typeof CxCarouselImg;\r\n CxEchartsPro: typeof CxEchartsPro;\r\n CxCardPage: typeof CxCardPage;\r\n CxCardCarousel: typeof CxCardCarousel;\r\n CxBasicAudio: typeof CxBasicAudio;\r\n CxMarkerHtml: typeof CxMarkerHtml;\r\n CxMeasurement: typeof CxMeasurement;\r\n CxPositionPicker: typeof CxPositionPicker;\n }\r\n}\r\n"],"names":["useMarKerManage","instanceRef","ref","register","instance","onUnmounted","getInstance","unref","methods","_","key","target","value","components","CxMarkerDefault","CxMarkerText","CxMarkerBubble","CxMarkerManage","CxBasicVideo","CxCardContent","CxCarouselImg","CxEchartsPro","CxCardPage","CxCardCarousel","CxMarkerHtml","CxMeasurement","CxPositionPicker","CxBasicAudio","index","app","component"],"mappings":";;;;;;;;;;;;;;;;AAGO,SAASA,IAAkB;AAChC,QAAMC,IAAcC,EAAA;AAEpB,WAASC,EAASC,GAAqC;AACrD,IAAAC,EAAY,MAAM;AAChB,MAAAJ,EAAY,QAAQ;AAAA,IACtB,CAAC,GAEDA,EAAY,QAAQG;AAAA,EACtB;AAEA,WAASE,IAAc;AACrB,UAAMF,IAAWG,EAAMN,CAAW;AAClC,WAAKG,KACH,QAAQ,MAAM,sBAAsB,GAE/BA;AAAA,EACT;AAEA,QAAMI,IAAU,IAAI;AAAA,IAClB,CAAA;AAAA,IACA;AAAA,MACE,IAAIC,GAAGC,GAAa;AAClB,cAAMN,IAAWE,EAAA;AACjB,YAAI,CAACF,EAAU;AACf,cAAMO,IAASP,EAASM,CAAG;AAC3B,eAAI,OAAOC,KAAW,aACbA,EAAO,KAAKP,CAAQ,IAEtBO;AAAA,MACT;AAAA,MACA,IAAIF,GAAGC,GAAaE,GAAO;AACzB,cAAMR,IAAWE,EAAA;AACjB,eAAKF,KACLA,EAASM,CAAG,IAAIE,GACT,MAFe;AAAA,MAGxB;AAAA,IAAA;AAAA,EACF;AAGF,SAAO,CAACT,GAAUK,CAAO;AAC3B;ACrBA,MAAMK,IAAa;AAAA,EACjBC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AACF,GAEAC,IAAe;AAAA,EACb,QAAQC,GAAU;AAChB,IAAAhB,EAAW,QAAQ,CAACiB,MAAc;AAChC,MAAAD,EAAI,IAAIC,CAAgB;AAAA,IAC1B,CAAC;AAAA,EACH;AACF;"}
1
+ {"version":3,"file":"index.js","sources":["../src/components/marker-manage/src/hook/useMarkerManage.ts","../src/index.ts"],"sourcesContent":["import { onUnmounted, ref, unref } from 'vue';\r\nimport { MarkerManageMethods } from '../type/markerManage';\r\n\r\nexport function useMarKerManage() {\r\n const instanceRef = ref();\r\n\r\n function register(instance: MarkerManageMethods): void {\r\n onUnmounted(() => {\r\n instanceRef.value = null;\r\n });\r\n // 注册属性\r\n instanceRef.value = instance;\r\n }\r\n\r\n function getInstance() {\r\n const instance = unref(instanceRef);\r\n if (!instance) {\r\n console.error('未获取到markerManager实例!');\r\n }\r\n return instance;\r\n }\r\n\r\n const methods = new Proxy(\r\n {},\r\n {\r\n get(_, key: string) {\r\n const instance = getInstance();\r\n if (!instance) return;\r\n const target = instance[key];\r\n if (typeof target === 'function') {\r\n return target.bind(instance);\r\n }\r\n return target;\r\n },\r\n set(_, key: string, value) {\r\n const instance = getInstance();\r\n if (!instance) return false;\r\n instance[key] = value;\r\n return true;\r\n },\r\n },\r\n );\r\n\r\n return [register, methods];\r\n}\r\n","import type { App } from 'vue';\nimport CxMarkerDefault from './components/marker-default';\nimport CxMarkerHtml from './components/marker-html';\nimport CxMarkerText from './components/marker-text';\nimport CxMarkerBubble, { CxMarkerBubbleLine } from './components/marker-bubble';\nimport CxMarkerManage, { MarkerManagerCore } from './components/marker-manage';\nimport CxBasicVideo from './components/basic-video';\nimport CxCardContent from './components/card-content';\nimport CxCarouselImg from './components/carousel-img';\nimport CxCardPage from './components/card-page';\nimport CxCardCarousel from './components/card-carousel';\nimport CxEchartsPro from './components/echarts-pro';\nimport CxBasicAudio from './components/basic-audio';\nimport CxMeasurement from './components/measurement';\nimport CxPositionPicker from './components/position-picker';\nimport { useMarKerManage } from './components/marker-manage/src/hook/useMarkerManage';\nimport type { MarkerManageOptions } from './components/marker-manage/src/type/markerManage';\n\r\ndeclare global {\r\n interface Window {\r\n Cesium?: any; // 或具体类型\r\n }\r\n}\r\nconst components = [\r\n CxMarkerDefault,\n CxMarkerText,\n CxMarkerBubble,\n CxMarkerBubbleLine,\n CxMarkerManage,\n CxBasicVideo,\n CxCardContent,\n CxCarouselImg,\r\n CxEchartsPro,\r\n CxCardPage,\r\n CxCardCarousel,\r\n CxMarkerHtml,\r\n CxMeasurement,\r\n CxPositionPicker,\n CxBasicAudio,\r\n];\r\n\r\nexport default {\r\n install(app: App) {\r\n components.forEach((component) => {\r\n app.use(component as any);\r\n });\r\n },\r\n};\r\n\r\nexport { useMarKerManage, MarkerManageOptions, MarkerManagerCore };\r\n\r\nexport {\r\n CxMarkerDefault,\n CxMarkerText,\n CxMarkerBubble,\n CxMarkerBubbleLine,\n CxMarkerManage,\n CxBasicVideo,\n CxCardContent,\n CxCarouselImg,\r\n CxEchartsPro,\r\n CxCardPage,\r\n CxCardCarousel,\r\n CxBasicAudio,\r\n CxMarkerHtml,\r\n CxMeasurement,\r\n CxPositionPicker,\n};\r\n\r\ndeclare module 'vue' {\r\n export interface GlobalComponents {\r\n CxMarkerDefault: typeof CxMarkerDefault;\n CxMarkerText: typeof CxMarkerText;\n CxMarkerBubble: typeof CxMarkerBubble;\n CxMarkerBubbleLine: typeof CxMarkerBubbleLine;\n CxMarkerManage: typeof CxMarkerManage;\n CxBasicVideo: typeof CxBasicVideo;\n CxCardContent: typeof CxCardContent;\r\n CxCarouselImg: typeof CxCarouselImg;\r\n CxEchartsPro: typeof CxEchartsPro;\r\n CxCardPage: typeof CxCardPage;\r\n CxCardCarousel: typeof CxCardCarousel;\r\n CxBasicAudio: typeof CxBasicAudio;\r\n CxMarkerHtml: typeof CxMarkerHtml;\r\n CxMeasurement: typeof CxMeasurement;\r\n CxPositionPicker: typeof CxPositionPicker;\n }\r\n}\r\n"],"names":["useMarKerManage","instanceRef","ref","register","instance","onUnmounted","getInstance","unref","methods","_","key","target","value","components","CxMarkerDefault","CxMarkerText","CxMarkerBubble","CxMarkerBubbleLine","CxMarkerManage","CxBasicVideo","CxCardContent","CxCarouselImg","CxEchartsPro","CxCardPage","CxCardCarousel","CxMarkerHtml","CxMeasurement","CxPositionPicker","CxBasicAudio","index","app","component"],"mappings":";;;;;;;;;;;;;;;;AAGO,SAASA,IAAkB;AAChC,QAAMC,IAAcC,EAAA;AAEpB,WAASC,EAASC,GAAqC;AACrD,IAAAC,EAAY,MAAM;AAChB,MAAAJ,EAAY,QAAQ;AAAA,IACtB,CAAC,GAEDA,EAAY,QAAQG;AAAA,EACtB;AAEA,WAASE,IAAc;AACrB,UAAMF,IAAWG,EAAMN,CAAW;AAClC,WAAKG,KACH,QAAQ,MAAM,sBAAsB,GAE/BA;AAAA,EACT;AAEA,QAAMI,IAAU,IAAI;AAAA,IAClB,CAAA;AAAA,IACA;AAAA,MACE,IAAIC,GAAGC,GAAa;AAClB,cAAMN,IAAWE,EAAA;AACjB,YAAI,CAACF,EAAU;AACf,cAAMO,IAASP,EAASM,CAAG;AAC3B,eAAI,OAAOC,KAAW,aACbA,EAAO,KAAKP,CAAQ,IAEtBO;AAAA,MACT;AAAA,MACA,IAAIF,GAAGC,GAAaE,GAAO;AACzB,cAAMR,IAAWE,EAAA;AACjB,eAAKF,KACLA,EAASM,CAAG,IAAIE,GACT,MAFe;AAAA,MAGxB;AAAA,IAAA;AAAA,EACF;AAGF,SAAO,CAACT,GAAUK,CAAO;AAC3B;ACrBA,MAAMK,IAAa;AAAA,EACjBC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AACF,GAEAC,IAAe;AAAA,EACb,QAAQC,GAAU;AAChB,IAAAjB,EAAW,QAAQ,CAACkB,MAAc;AAChC,MAAAD,EAAI,IAAIC,CAAgB;AAAA,IAC1B,CAAC;AAAA,EACH;AACF;"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leiting-bim/plugins-vue",
3
- "version": "0.0.1",
3
+ "version": "1.1.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -71,6 +71,39 @@
71
71
  top: 0;
72
72
  pointer-events: auto;
73
73
  }
74
+ .cx-marker-bubble-line {
75
+ position: relative;
76
+ pointer-events: none;
77
+ width: 0;
78
+ height: 0;
79
+ }
80
+ .cx-marker-bubble-line__drag {
81
+ position: absolute;
82
+ left: 0;
83
+ top: 0;
84
+ pointer-events: auto;
85
+ touch-action: none;
86
+ }
87
+ .cx-marker-bubble-line__name {
88
+ width: max-content;
89
+ min-width: 60px;
90
+ min-height: 20px;
91
+ text-align: center;
92
+ color: #fff;
93
+ z-index: 1;
94
+ white-space: pre-wrap;
95
+ pointer-events: auto;
96
+ }
97
+ .cx-marker-bubble-line__line {
98
+ position: absolute;
99
+ left: 0;
100
+ top: 0;
101
+ height: 1px;
102
+ background-color: #fff;
103
+ pointer-events: auto;
104
+ transform-origin: 0 50%;
105
+ touch-action: none;
106
+ }
74
107
  .cx-marker-manage {
75
108
  width: 100%;
76
109
  height: 100%;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leiting-bim/plugins-theme",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "Theme package for Report Components using LESS",
5
5
  "main": "dist/theme-chalk.css",
6
6
  "style": "dist/theme-chalk.css",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leiting-bim/plugins-utils",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {