gisviewer-vue3-arcgis 1.0.222 → 1.0.224

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 (27) hide show
  1. package/es/src/gis-map/gis-map.vue.d.ts +34 -0
  2. package/es/src/gis-map/gis-map.vue.mjs +110 -103
  3. package/es/src/gis-map/index.d.ts +34 -0
  4. package/es/src/gis-map/style/index.css +13 -1
  5. package/es/src/gis-map/utils/holo-flow/index.d.ts +3 -1
  6. package/es/src/gis-map/utils/holo-flow/index.mjs +33 -16
  7. package/es/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.d.ts +31 -0
  8. package/es/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.mjs +98 -64
  9. package/es/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.d.ts +17 -3
  10. package/es/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.mjs +222 -123
  11. package/es/src/gis-map/utils/sketchView.d.ts +1 -0
  12. package/es/src/gis-map/utils/sketchView.mjs +3 -0
  13. package/es/src/types/index.d.ts +1 -0
  14. package/lib/src/gis-map/gis-map.vue.d.ts +34 -0
  15. package/lib/src/gis-map/gis-map.vue.js +1 -1
  16. package/lib/src/gis-map/index.d.ts +34 -0
  17. package/lib/src/gis-map/style/index.css +13 -1
  18. package/lib/src/gis-map/utils/holo-flow/index.d.ts +3 -1
  19. package/lib/src/gis-map/utils/holo-flow/index.js +1 -1
  20. package/lib/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.d.ts +31 -0
  21. package/lib/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.js +1 -1
  22. package/lib/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.d.ts +17 -3
  23. package/lib/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.js +1 -1
  24. package/lib/src/gis-map/utils/sketchView.d.ts +1 -0
  25. package/lib/src/gis-map/utils/sketchView.js +1 -1
  26. package/lib/src/types/index.d.ts +1 -0
  27. package/package.json +1 -1
@@ -3,6 +3,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
3
3
  type: StringConstructor;
4
4
  required: true;
5
5
  };
6
+ flash: {
7
+ type: BooleanConstructor;
8
+ required: true;
9
+ };
6
10
  crossId: {
7
11
  type: StringConstructor;
8
12
  required: true;
@@ -36,6 +40,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
36
40
  required: true;
37
41
  };
38
42
  }, {
43
+ colors: string[];
39
44
  props: any;
40
45
  panelStyle: import("vue").ComputedRef<{
41
46
  top: string;
@@ -43,14 +48,36 @@ declare const _sfc_main: import("vue").DefineComponent<{
43
48
  'transform-origin': string;
44
49
  transform: string;
45
50
  }>;
51
+ blImage: import("vue").ComputedRef<string>;
52
+ blNumberStyle: import("vue").ComputedRef<any>;
53
+ blLampStyle: import("vue").ComputedRef<{
54
+ display: string;
55
+ animation: string;
56
+ }>;
46
57
  uImage: import("vue").ComputedRef<string>;
47
58
  uNumberStyle: import("vue").ComputedRef<any>;
59
+ uLampStyle: import("vue").ComputedRef<{
60
+ display: string;
61
+ animation: string;
62
+ }>;
48
63
  lImage: import("vue").ComputedRef<string>;
49
64
  lNumberStyle: import("vue").ComputedRef<any>;
65
+ lLampStyle: import("vue").ComputedRef<{
66
+ display: string;
67
+ animation: string;
68
+ }>;
50
69
  sImage: import("vue").ComputedRef<string>;
51
70
  sNumberStyle: import("vue").ComputedRef<any>;
71
+ sLampStyle: import("vue").ComputedRef<{
72
+ display: string;
73
+ animation: string;
74
+ }>;
52
75
  rImage: import("vue").ComputedRef<string>;
53
76
  rNumberStyle: import("vue").ComputedRef<any>;
77
+ rLampStyle: import("vue").ComputedRef<{
78
+ display: string;
79
+ animation: string;
80
+ }>;
54
81
  getColorString: (color: string | undefined) => "red" | "rgb(255, 192, 2)" | "lime" | "white";
55
82
  getNumberStyle: (color: string | undefined) => any;
56
83
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -58,6 +85,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
58
85
  type: StringConstructor;
59
86
  required: true;
60
87
  };
88
+ flash: {
89
+ type: BooleanConstructor;
90
+ required: true;
91
+ };
61
92
  crossId: {
62
93
  type: StringConstructor;
63
94
  required: true;
@@ -1,20 +1,24 @@
1
- import { defineComponent as f, computed as o, openBlock as n, createElementBlock as l, normalizeStyle as a, createElementVNode as s, toDisplayString as i, createCommentVNode as u } from "vue";
2
- const N = {
1
+ import { defineComponent as G, computed as l, openBlock as a, createElementBlock as r, normalizeStyle as o, createElementVNode as e, toDisplayString as u, createCommentVNode as m } from "vue";
2
+ const x = {
3
3
  key: 0,
4
4
  class: "signal-countdown-container"
5
- }, I = ["src"], $ = {
5
+ }, B = ["src"], E = {
6
6
  key: 1,
7
7
  class: "signal-countdown-container"
8
- }, k = ["src"], V = {
8
+ }, z = ["src"], D = {
9
9
  key: 2,
10
10
  class: "signal-countdown-container"
11
- }, L = ["src"], x = {
11
+ }, M = ["src"], P = {
12
12
  key: 3,
13
13
  class: "signal-countdown-container"
14
- }, A = ["src"], B = /* @__PURE__ */ f({
14
+ }, X = ["src"], Y = {
15
+ key: 4,
16
+ class: "signal-countdown-container"
17
+ }, j = ["src"], F = /* @__PURE__ */ G({
15
18
  __name: "signal-countdown-panel",
16
19
  props: {
17
20
  displayMode: {},
21
+ flash: { type: Boolean },
18
22
  crossId: {},
19
23
  roadId: {},
20
24
  mapPoint: {},
@@ -24,22 +28,29 @@ const N = {
24
28
  rotation: {},
25
29
  lampStatus: {}
26
30
  },
27
- setup(p) {
28
- const t = p, d = o(() => ({
31
+ setup(d) {
32
+ const n = ["red", "yellow", "green", "grey"], t = d, S = l(() => ({
29
33
  top: `${t.position.top}px`,
30
34
  left: `${t.position.left}px`,
31
35
  "transform-origin": "bottom center",
32
36
  transform: `translateX(-50%) translateY(-100%) rotate(${t.rotation}deg) scale(${t.scale})`
33
- })), g = o(
34
- () => `/GisViewerAssets/Images/SignalLamp/u-${t.lampStatus.uColor}.png`
35
- ), S = o(() => r(t.lampStatus.uColor)), h = o(
36
- () => `/GisViewerAssets/Images/SignalLamp/l-${t.lampStatus.lColor}.png`
37
- ), v = o(() => r(t.lampStatus.lColor)), w = o(
38
- () => `/GisViewerAssets/Images/SignalLamp/s-${t.lampStatus.sColor}.png`
39
- ), y = o(() => r(t.lampStatus.sColor)), b = o(
40
- () => `/GisViewerAssets/Images/SignalLamp/r-${t.lampStatus.rColor}.png`
41
- ), C = o(() => r(t.lampStatus.rColor)), _ = (e) => {
42
- switch (e) {
37
+ })), g = l(() => !t.lampStatus.blColor || !n.includes(t.lampStatus.blColor) ? "" : `/GisViewerAssets/Images/SignalLamp/bl-${t.lampStatus.blColor}.png`), y = l(() => i(t.lampStatus.blColor)), b = l(() => ({
38
+ display: t.lampStatus.blColor && n.includes(t.lampStatus.blColor) ? "block" : "none",
39
+ animation: t.flash ? "blink 2s infinite" : "none"
40
+ })), C = l(() => !t.lampStatus.uColor || !n.includes(t.lampStatus.uColor) ? "" : `/GisViewerAssets/Images/SignalLamp/u-${t.lampStatus.uColor}.png`), h = l(() => i(t.lampStatus.uColor)), v = l(() => ({
41
+ display: t.lampStatus.uColor && n.includes(t.lampStatus.uColor) ? "block" : "none",
42
+ animation: t.flash ? "blink 2s infinite" : "none"
43
+ })), f = l(() => !t.lampStatus.lColor || !n.includes(t.lampStatus.lColor) ? "" : `/GisViewerAssets/Images/SignalLamp/l-${t.lampStatus.lColor}.png`), w = l(() => i(t.lampStatus.lColor)), k = l(() => ({
44
+ display: t.lampStatus.lColor && n.includes(t.lampStatus.lColor) ? "block" : "none",
45
+ animation: t.flash ? "blink 2s infinite" : "none"
46
+ })), _ = l(() => !t.lampStatus.sColor || !n.includes(t.lampStatus.sColor) ? "" : `/GisViewerAssets/Images/SignalLamp/s-${t.lampStatus.sColor}.png`), N = l(() => i(t.lampStatus.sColor)), I = l(() => ({
47
+ display: t.lampStatus.sColor && n.includes(t.lampStatus.sColor) ? "block" : "none",
48
+ animation: t.flash ? "blink 2s infinite" : "none"
49
+ })), L = l(() => !t.lampStatus.rColor || !n.includes(t.lampStatus.rColor) ? "" : `/GisViewerAssets/Images/SignalLamp/r-${t.lampStatus.rColor}.png`), $ = l(() => i(t.lampStatus.rColor)), V = l(() => ({
50
+ display: t.lampStatus.rColor && n.includes(t.lampStatus.rColor) ? "block" : "none",
51
+ animation: t.flash ? "blink 2s infinite" : "none"
52
+ })), A = (s) => {
53
+ switch (s) {
43
54
  case "red":
44
55
  return "red";
45
56
  case "yellow":
@@ -49,71 +60,94 @@ const N = {
49
60
  default:
50
61
  return "white";
51
62
  }
52
- }, r = (e) => {
63
+ }, i = (s) => {
53
64
  const c = {
54
- color: _(e)
55
- }, m = t.rotation < 0 ? t.rotation + 360 : t.rotation;
56
- return m > 135 && m < 225 && (c.transform = "rotate(180deg)"), c;
65
+ color: A(s)
66
+ }, p = t.rotation < 0 ? t.rotation + 360 : t.rotation;
67
+ return p > 135 && p < 225 && (c.transform = "rotate(180deg)"), c;
57
68
  };
58
- return (e, c) => (n(), l("div", {
69
+ return (s, c) => (a(), r("div", {
59
70
  class: "signal-countdown-panel",
60
- style: a(d.value)
71
+ style: o(S.value)
61
72
  }, [
62
- e.lampStatus.uColor ? (n(), l("div", N, [
63
- s("div", {
73
+ s.lampStatus.uColor ? (a(), r("div", x, [
74
+ e("div", {
75
+ class: "signal-countdown-number",
76
+ style: o(h.value)
77
+ }, u(s.lampStatus.uNumber), 5),
78
+ e("div", {
79
+ style: o(v.value)
80
+ }, [
81
+ e("img", {
82
+ src: C.value,
83
+ width: "20px",
84
+ height: "20px"
85
+ }, null, 8, B)
86
+ ], 4)
87
+ ])) : m("", !0),
88
+ s.lampStatus.blColor ? (a(), r("div", E, [
89
+ e("div", {
64
90
  class: "signal-countdown-number",
65
- style: a(S.value)
66
- }, i(e.lampStatus.uNumber), 5),
67
- s("div", null, [
68
- s("img", {
91
+ style: o(y.value)
92
+ }, u(s.lampStatus.blNumber), 5),
93
+ e("div", {
94
+ style: o(b.value)
95
+ }, [
96
+ e("img", {
69
97
  src: g.value,
70
98
  width: "20px",
71
99
  height: "20px"
72
- }, null, 8, I)
73
- ])
74
- ])) : u("", !0),
75
- e.lampStatus.lColor ? (n(), l("div", $, [
76
- s("div", {
100
+ }, null, 8, z)
101
+ ], 4)
102
+ ])) : m("", !0),
103
+ s.lampStatus.lColor ? (a(), r("div", D, [
104
+ e("div", {
77
105
  class: "signal-countdown-number",
78
- style: a(v.value)
79
- }, i(e.lampStatus.lNumber), 5),
80
- s("div", null, [
81
- s("img", {
82
- src: h.value,
106
+ style: o(w.value)
107
+ }, u(s.lampStatus.lNumber), 5),
108
+ e("div", {
109
+ style: o(k.value)
110
+ }, [
111
+ e("img", {
112
+ src: f.value,
83
113
  width: "20px",
84
114
  height: "20px"
85
- }, null, 8, k)
86
- ])
87
- ])) : u("", !0),
88
- e.lampStatus.sColor ? (n(), l("div", V, [
89
- s("div", {
115
+ }, null, 8, M)
116
+ ], 4)
117
+ ])) : m("", !0),
118
+ s.lampStatus.sColor ? (a(), r("div", P, [
119
+ e("div", {
90
120
  class: "signal-countdown-number",
91
- style: a(y.value)
92
- }, i(e.lampStatus.sNumber), 5),
93
- s("div", null, [
94
- s("img", {
95
- src: w.value,
121
+ style: o(N.value)
122
+ }, u(s.lampStatus.sNumber), 5),
123
+ e("div", {
124
+ style: o(I.value)
125
+ }, [
126
+ e("img", {
127
+ src: _.value,
96
128
  width: "20px",
97
129
  height: "20px"
98
- }, null, 8, L)
99
- ])
100
- ])) : u("", !0),
101
- e.lampStatus.rColor !== void 0 ? (n(), l("div", x, [
102
- s("div", {
130
+ }, null, 8, X)
131
+ ], 4)
132
+ ])) : m("", !0),
133
+ s.lampStatus.rColor !== void 0 ? (a(), r("div", Y, [
134
+ e("div", {
103
135
  class: "signal-countdown-number",
104
- style: a(C.value)
105
- }, i(e.lampStatus.rNumber), 5),
106
- s("div", null, [
107
- s("img", {
108
- src: b.value,
136
+ style: o($.value)
137
+ }, u(s.lampStatus.rNumber), 5),
138
+ e("div", {
139
+ style: o(V.value)
140
+ }, [
141
+ e("img", {
142
+ src: L.value,
109
143
  width: "20px",
110
144
  height: "20px"
111
- }, null, 8, A)
112
- ])
113
- ])) : u("", !0)
145
+ }, null, 8, j)
146
+ ], 4)
147
+ ])) : m("", !0)
114
148
  ], 4));
115
149
  }
116
150
  });
117
151
  export {
118
- B as default
152
+ F as default
119
153
  };
@@ -1,19 +1,31 @@
1
- import { ISignalCountdownProps } from '../../../types';
1
+ import { IResult, ISignalCountdownProps } from '../../../types';
2
2
  import SignalHoloFlow from './signal-holo-flow';
3
3
  export default class LSRSignalHoloFlow extends SignalHoloFlow {
4
4
  private stopLineLayer;
5
5
  private watchHandle;
6
6
  private countdownPanelProps;
7
+ private currentPanelScale;
7
8
  /** 轨迹延迟时间 */
8
9
  private trajectoryDelayTime;
9
- constructor(view: __esri.MapView | __esri.SceneView, countdownPanelInfos: ISignalCountdownProps[]);
10
+ /** 按照路口id->进口道路段id->停止线坐标保存的停止线 */
10
11
  private stopLineMap;
12
+ /** 信号机id->进口道id->灯组id */
13
+ private lampGroupMap;
14
+ constructor(view: __esri.MapView | __esri.SceneView, countdownPanelInfos: ISignalCountdownProps[]);
11
15
  /**
12
16
  * 读取停止线图层,将灯组面板沿着停止线放置
13
17
  * @returns
14
18
  */
15
19
  initializeLayer(): Promise<void>;
16
- private currentPanelScale;
20
+ /**
21
+ * 初始化灯组与进口道的关联关系
22
+ */
23
+ initializeLampGroup(data: any): void;
24
+ /**
25
+ * 处理统一信控平台信号灯数据
26
+ * @param data
27
+ */
28
+ handleUniSignalData(data: any): IResult;
17
29
  /**
18
30
  * 根据地图比例尺计算灯组面板缩放比例
19
31
  */
@@ -22,6 +34,8 @@ export default class LSRSignalHoloFlow extends SignalHoloFlow {
22
34
  * 地图移动时更新灯组面板位置
23
35
  */
24
36
  private updatePanelPosition;
37
+ private doHoloSignalData;
38
+ private updateLampGroupPanelStatus;
25
39
  /**
26
40
  * 处理全息流信号灯数据
27
41
  * @param data