gisviewer-vue3-arcgis 1.0.166 → 1.0.168

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 (40) hide show
  1. package/es/src/gis-map/gis-map.vue.d.ts +24 -4
  2. package/es/src/gis-map/gis-map.vue.mjs +144 -138
  3. package/es/src/gis-map/index.d.ts +24 -4
  4. package/es/src/gis-map/utils/common-utils.mjs +9 -9
  5. package/es/src/gis-map/utils/holo-flow/index.mjs +37 -36
  6. package/es/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.d.ts +17 -1
  7. package/es/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.mjs +2 -2
  8. package/es/src/gis-map/utils/holo-flow/signal-countdown-panel.vue2.mjs +41 -39
  9. package/es/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.d.ts +3 -0
  10. package/es/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.mjs +117 -71
  11. package/es/src/gis-map/utils/holo-flow/signal-holo-flow.mjs +6 -5
  12. package/es/src/gis-map/utils/holo-flow/trace-renderer-external.d.ts +2 -1
  13. package/es/src/gis-map/utils/holo-flow/trace-renderer-external.mjs +10 -9
  14. package/es/src/gis-map/utils/holo-flow/trace-renderer-layer.mjs +6 -5
  15. package/es/src/gis-map/utils/map-initializer.d.ts +1 -0
  16. package/es/src/gis-map/utils/map-initializer.mjs +121 -122
  17. package/es/src/gis-map/utils/signal-control-area-controller/index.d.ts +3 -1
  18. package/es/src/gis-map/utils/signal-control-area-controller/index.mjs +169 -67
  19. package/es/src/types/index.d.ts +2 -0
  20. package/es/style.css +1 -1
  21. package/lib/src/gis-map/gis-map.vue.d.ts +24 -4
  22. package/lib/src/gis-map/gis-map.vue.js +1 -1
  23. package/lib/src/gis-map/index.d.ts +24 -4
  24. package/lib/src/gis-map/utils/common-utils.js +1 -1
  25. package/lib/src/gis-map/utils/holo-flow/index.js +1 -1
  26. package/lib/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.d.ts +17 -1
  27. package/lib/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.js +1 -1
  28. package/lib/src/gis-map/utils/holo-flow/signal-countdown-panel.vue2.js +1 -1
  29. package/lib/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.d.ts +3 -0
  30. package/lib/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.js +1 -1
  31. package/lib/src/gis-map/utils/holo-flow/signal-holo-flow.js +1 -1
  32. package/lib/src/gis-map/utils/holo-flow/trace-renderer-external.d.ts +2 -1
  33. package/lib/src/gis-map/utils/holo-flow/trace-renderer-external.js +1 -1
  34. package/lib/src/gis-map/utils/holo-flow/trace-renderer-layer.js +1 -1
  35. package/lib/src/gis-map/utils/map-initializer.d.ts +1 -0
  36. package/lib/src/gis-map/utils/map-initializer.js +1 -1
  37. package/lib/src/gis-map/utils/signal-control-area-controller/index.d.ts +3 -1
  38. package/lib/src/gis-map/utils/signal-control-area-controller/index.js +1 -1
  39. package/lib/src/types/index.d.ts +2 -0
  40. package/package.json +1 -1
@@ -29,6 +29,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
29
29
  queueLength: QueueLength;
30
30
  openDriveRenderer: OpenDriveRenderer;
31
31
  signalControlAreaController: SignalControlAreaController;
32
+ showLogDiv: import("vue").Ref<boolean>;
32
33
  appDataStore: import("pinia").Store<"appData", {
33
34
  mapConfig: {};
34
35
  saveTrackLog: boolean;
@@ -36,6 +37,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
36
37
  countdownPanels: import("../types").ISignalCountdownProps[];
37
38
  }, {}, {}>;
38
39
  countdownPanelInfos: import("vue").Ref<{
40
+ displayMode: string;
39
41
  crossId: string;
40
42
  roadId: string;
41
43
  mapPoint: number[];
@@ -45,6 +47,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
45
47
  top: number;
46
48
  };
47
49
  rotation: number;
50
+ scale: number;
48
51
  lampStatus: {
49
52
  uNumber?: number | undefined;
50
53
  uColor?: string | undefined;
@@ -56,7 +59,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
56
59
  rColor?: string | undefined;
57
60
  };
58
61
  }[]>;
59
- showLogDiv: import("vue").Ref<boolean>;
60
62
  mapViewer: import("vue").ComputedRef<MapView | SceneView>;
61
63
  startSaveTrackLog: () => void;
62
64
  downloadTrackLog: () => void;
@@ -80,7 +82,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
80
82
  calRoadIndicatorArea: () => Promise<void>;
81
83
  connectCarFlow: (url: string, options?: any) => Promise<void>;
82
84
  disconnectCarFlow: () => void;
83
- handleHoloVehicleTraceData: (vehicleTrace: any) => void;
85
+ handleHoloVehicleTraceData: (vehicleTrace: any) => Promise<void>;
84
86
  clearHoloTrace: () => void;
85
87
  setInterpolate: (enable: boolean) => void;
86
88
  handleHoloSignalData: (signalData: any) => Promise<void>;
@@ -111,7 +113,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
111
113
  status: number;
112
114
  message: string;
113
115
  }>;
114
- showSignalControlArea: (params: any) => Promise<import("../types").IResult>;
116
+ showSignalControlArea: (params: any) => import("../types").IResult;
115
117
  clearSignalControlArea: () => void;
116
118
  locateSignalControlArea: (params: {
117
119
  id: string;
@@ -120,9 +122,15 @@ declare const _sfc_main: import("vue").DefineComponent<{
120
122
  id: string;
121
123
  }) => Promise<import("../types").IResult>;
122
124
  resetHighlightSignalControlArea: () => import("../types").IResult;
125
+ showSubSignalControlArea: (params: any) => import("../types").IResult;
126
+ editSubSignalControlArea: () => import("../types").IResult;
123
127
  props: any;
124
128
  emit: (event: "mapLoaded" | "markerClick" | "mapClick", ...args: any[]) => void;
125
129
  SignalCountdownPanel: import("vue").DefineComponent<{
130
+ displayMode: {
131
+ type: StringConstructor;
132
+ required: true;
133
+ };
126
134
  crossId: {
127
135
  type: StringConstructor;
128
136
  required: true;
@@ -139,6 +147,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
139
147
  type: ArrayConstructor;
140
148
  required: true;
141
149
  };
150
+ scale: {
151
+ type: NumberConstructor;
152
+ required: true;
153
+ };
142
154
  position: {
143
155
  type: ObjectConstructor;
144
156
  required: true;
@@ -175,8 +187,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
175
187
  rNumberStyle: import("vue").ComputedRef<{
176
188
  color: string;
177
189
  }>;
178
- getColorString: (color: string | undefined) => "red" | "yellow" | "lime" | "white";
190
+ getColorString: (color: string | undefined) => "red" | "rgb(255, 192, 2)" | "lime" | "white";
179
191
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
192
+ displayMode: {
193
+ type: StringConstructor;
194
+ required: true;
195
+ };
180
196
  crossId: {
181
197
  type: StringConstructor;
182
198
  required: true;
@@ -193,6 +209,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
193
209
  type: ArrayConstructor;
194
210
  required: true;
195
211
  };
212
+ scale: {
213
+ type: NumberConstructor;
214
+ required: true;
215
+ };
196
216
  position: {
197
217
  type: ObjectConstructor;
198
218
  required: true;
@@ -1,191 +1,197 @@
1
- import { defineComponent as be, ref as C, onMounted as Me, getCurrentInstance as _e, onUnmounted as He, computed as xe, openBlock as S, createElementBlock as k, createElementVNode as g, withDirectives as Pe, vShow as Be, Fragment as Ve, renderList as ze, unref as Ne, createBlock as Qe } from "vue";
2
- import { storeToRefs as je } from "pinia";
3
- import T, { registerStore as Ee } from "./stores/index.mjs";
1
+ import { defineComponent as xe, ref as O, onMounted as Pe, getCurrentInstance as Be, onUnmounted as Ve, computed as ze, openBlock as v, createElementBlock as k, createElementVNode as g, withDirectives as Ne, vShow as Qe, Fragment as je, renderList as Ee, unref as Ze, createBlock as qe } from "vue";
2
+ import { storeToRefs as Ke } from "pinia";
3
+ import A, { registerStore as Re } from "./stores/index.mjs";
4
4
  import "./style/index.css";
5
- import Fe from "./utils/holo-flow/index.mjs";
6
- import Ze from "./utils/holo-flow/signal-countdown-panel.vue.mjs";
7
- import qe from "./utils/map-initializer.mjs";
5
+ import T from "./utils/holo-flow/index.mjs";
6
+ import Ue from "./utils/holo-flow/signal-countdown-panel.vue.mjs";
7
+ import $e from "./utils/map-initializer.mjs";
8
8
  import L from "./utils/open-drive-renderer/index.mjs";
9
9
  import D from "./utils/overlay.mjs";
10
- import Ke from "./utils/queue-length.mjs";
11
- import A from "./utils/road-config-tool/index.mjs";
12
- import Re from "./utils/signal-control-area-controller/index.mjs";
13
- import Ue from "./utils/traffic-flow.mjs";
14
- const $e = { class: "gis-viewer" }, Ge = { style: { position: "absolute", bottom: "10px", left: "10px" } }, lt = /* @__PURE__ */ be({
10
+ import Ge from "./utils/queue-length.mjs";
11
+ import b from "./utils/road-config-tool/index.mjs";
12
+ import I from "./utils/signal-control-area-controller/index.mjs";
13
+ import Je from "./utils/traffic-flow.mjs";
14
+ const We = { class: "gis-viewer" }, Xe = { style: { position: "absolute", bottom: "10px", left: "10px" } }, mt = /* @__PURE__ */ xe({
15
15
  __name: "gis-map",
16
16
  props: {
17
17
  config: {},
18
18
  assetsRoot: {}
19
19
  },
20
20
  emits: ["mapLoaded", "markerClick", "mapClick"],
21
- setup(I, { expose: b, emit: M }) {
22
- const f = C(null);
23
- let s, l, i, r, n, a, p, t, o;
24
- Ee();
25
- const h = T.useAppDataStore, { countdownPanels: _ } = je(h), d = C(!1);
26
- Me(async () => {
27
- if (!f.value)
21
+ setup(M, { expose: _, emit: H }) {
22
+ const d = O(null);
23
+ let s, l, c, o, a, n, p, t, r;
24
+ const f = O(!1);
25
+ Re();
26
+ const C = A.useAppDataStore, { countdownPanels: x } = Ke(C);
27
+ Pe(async () => {
28
+ if (!d.value)
28
29
  return;
29
30
  document.addEventListener("keydown", (m) => {
30
- m.ctrlKey && m.key === "i" && (d.value = !d.value);
31
+ m.ctrlKey && m.key === "i" && (f.value = !f.value);
31
32
  });
32
- const e = _e(), { $gisviewerAssetsRoot: u } = e.appContext.config.globalProperties, c = await (await fetch(O.config)).json();
33
- c.assetsRoot = O.assetsRoot || u, h.mapConfig = c, l = new qe(), s = await l.initialize({
34
- container: f.value,
35
- markerClickCallback: (m, y, v, Ie) => {
36
- w("markerClick", m, y, v, Ie);
33
+ const e = Be(), { $gisviewerAssetsRoot: u } = e.appContext.config.globalProperties, i = await (await fetch(h.config)).json();
34
+ i.assetsRoot = h.assetsRoot || u, C.mapConfig = i, l = new $e(), s = await l.initialize({
35
+ container: d.value,
36
+ mapConfig: i,
37
+ markerClickCallback: (m, S, y, He) => {
38
+ w("markerClick", m, S, y, He);
37
39
  },
38
- mapClickCallback: (m, y, v) => {
39
- w("mapClick", m, y, v);
40
+ mapClickCallback: (m, S, y) => {
41
+ w("mapClick", m, S, y);
40
42
  }
41
- }), n = new Fe(s), await n.init(), w("mapLoaded");
42
- }), He(() => {
43
- o == null || o.clearSignalControlArea(), t == null || t.clearOpenDrive(), n == null || n.clearHoloTrace(), n == null || n.clearHoloSignal(), r == null || r.disconnectTrafficFlow();
43
+ }), a = new T(s), await a.init(), w("mapLoaded");
44
+ }), Ve(() => {
45
+ r == null || r.clearSignalControlArea(), t == null || t.clearOpenDrive(), a.clearHoloTrace(), a.clearHoloSignal(), o == null || o.disconnectTrafficFlow();
44
46
  });
45
- const H = xe(() => s), x = () => {
46
- const e = T.useAppDataStore;
47
+ const P = ze(() => s), B = () => {
48
+ const e = A.useAppDataStore;
47
49
  e.saveTrackLog = !0;
48
- }, P = () => {
49
- n.downloadTrackLog();
50
- }, B = async (e) => await l.setMapCenter(e), V = async (e) => await l.setMapCamera(e), z = async (e) => await l.lookAt(e), N = (e) => l.setLayerVisibility(e), Q = (e, u) => l.requestCoordinateTransform(e, u), j = (e) => {
50
+ }, V = () => {
51
+ a.downloadTrackLog();
52
+ }, z = async (e) => await l.setMapCenter(e), N = async (e) => await l.setMapCamera(e), Q = async (e) => await l.lookAt(e), j = (e) => l.setLayerVisibility(e), E = (e, u) => l.requestCoordinateTransform(e, u), Z = (e) => {
51
53
  l.cancelCoordinateTransform(e);
52
- }, E = (e) => {
54
+ }, q = (e) => {
53
55
  l.setMapZoomRange(e);
54
- }, F = (e) => (i || (i = new A(s)), i.showLaneNumber(e)), Z = () => {
55
- i == null || i.clearLaneNumber();
56
- }, q = async (e) => (i || (i = new A(s)), await i.initializeSearch(e)), K = async () => i == null ? void 0 : i.calCrossIndicatorArea(), R = async () => {
57
- }, U = async (e, u) => {
58
- r || (r = new Ue(s)), r.connectTrafficFlow(e, u);
59
- }, $ = () => {
60
- r == null || r.disconnectTrafficFlow();
61
- }, G = (e) => {
62
- n.handleVehicleTraceData(e);
63
- }, J = () => {
64
- n.clearHoloTrace();
65
- }, W = (e) => {
66
- n.setInterpolate(e);
56
+ }, K = (e) => (c || (c = new b(s)), c.showLaneNumber(e)), R = () => {
57
+ c == null || c.clearLaneNumber();
58
+ }, U = async (e) => (c || (c = new b(s)), await c.initializeSearch(e)), $ = async () => c == null ? void 0 : c.calCrossIndicatorArea(), G = async () => {
59
+ }, J = async (e, u) => {
60
+ o || (o = new Je(s)), o.connectTrafficFlow(e, u);
61
+ }, W = () => {
62
+ o == null || o.disconnectTrafficFlow();
67
63
  }, X = async (e) => {
68
- await n.handleSignalData(e);
64
+ a || (a = new T(s), await a.init()), a.handleVehicleTraceData(e);
69
65
  }, Y = () => {
70
- n.clearHoloSignal();
71
- }, ee = (e) => {
72
- r == null || r.toggleTrafficInfo(e), n.toggleTrafficInfo(e);
73
- }, te = (e) => {
74
- n.togglePause(e);
66
+ a.clearHoloTrace();
67
+ }, F = (e) => {
68
+ a.setInterpolate(e);
69
+ }, ee = async (e) => {
70
+ await a.handleSignalData(e);
71
+ }, te = () => {
72
+ a.clearHoloSignal();
75
73
  }, ae = (e) => {
76
- r == null || r.toggleTrafficObject(e), n.toggleTrafficObject(e);
74
+ o == null || o.toggleTrafficInfo(e), a == null || a.toggleTrafficInfo(e);
77
75
  }, ne = (e) => {
78
- n.updatePanelContent(e);
79
- }, re = async (e) => (a || (a = new D(s)), a.addOverlays(e)), oe = (e) => (a || (a = new D(s)), a.addMask(e)), se = () => {
80
- a == null || a.removeMask();
81
- }, ie = (e) => a == null ? void 0 : a.removeOverlaysByType(e), ce = (e) => a == null ? void 0 : a.removeOverlaysById(e), le = () => a == null ? void 0 : a.removeAllOverlays(), ue = () => {
82
- a == null || a.showAllOverlays();
83
- }, me = (e) => {
84
- p || (p = new Ke(s)), p.updateQueueLength(e);
85
- }, pe = () => {
76
+ a == null || a.togglePause(e);
77
+ }, re = (e) => {
78
+ o == null || o.toggleTrafficObject(e), a == null || a.toggleTrafficObject(e);
79
+ }, oe = (e) => {
80
+ a == null || a.updatePanelContent(e);
81
+ }, se = async (e) => (n || (n = new D(s)), n.addOverlays(e)), ie = (e) => (n || (n = new D(s)), n.addMask(e)), ce = () => {
82
+ n == null || n.removeMask();
83
+ }, le = (e) => n == null ? void 0 : n.removeOverlaysByType(e), ue = (e) => n == null ? void 0 : n.removeOverlaysById(e), me = () => n == null ? void 0 : n.removeAllOverlays(), pe = () => {
84
+ n == null || n.showAllOverlays();
85
+ }, ge = (e) => {
86
+ p || (p = new Ge(s)), p.updateQueueLength(e);
87
+ }, de = () => {
86
88
  p == null || p.removeQueueLength();
87
- }, ge = async (e, u) => (t || (t = new L(s)), await t.showOpenDriveFromServer(e, u)), fe = async (e) => (t || (t = new L(s)), await t.clearOpenDrive(), await t.showOpenDriveFromFile(e)), de = async () => await (t == null ? void 0 : t.clearOpenDrive()), we = async (e) => t ? await (t == null ? void 0 : t.findSumo(e)) : {
89
+ }, fe = async (e, u) => (t || (t = new L(s)), await t.showOpenDriveFromServer(e, u)), we = async (e) => (t || (t = new L(s)), await t.clearOpenDrive(), await t.showOpenDriveFromFile(e)), Se = async () => await (t == null ? void 0 : t.clearOpenDrive()), ye = async (e) => t ? await (t == null ? void 0 : t.findSumo(e)) : {
88
90
  status: -1,
89
91
  message: "未加载OpenDrive地图"
90
- }, ye = async (e) => t ? t.selectSumo(e) : {
92
+ }, ve = async (e) => t ? t.selectSumo(e) : {
91
93
  status: -1,
92
94
  message: "未加载OpenDrive地图"
93
- }, ve = async (e) => t ? t.unselectSumo(e) : {
95
+ }, Ce = async (e) => t ? t.unselectSumo(e) : {
94
96
  status: -1,
95
97
  message: "未加载OpenDrive地图"
96
- }, Se = async (e) => t ? await t.geometrySearch(e) : {
98
+ }, he = async (e) => t ? await t.geometrySearch(e) : {
97
99
  status: -1,
98
100
  message: "未加载OpenDrive地图"
99
- }, he = async (e) => t ? await t.getSumoInfo(e) : {
101
+ }, Oe = async (e) => t ? await t.getSumoInfo(e) : {
100
102
  status: -1,
101
103
  message: "未加载OpenDrive地图"
102
- }, Oe = async (e) => t ? await (t == null ? void 0 : t.splitLane(e)) : {
104
+ }, ke = async (e) => t ? await (t == null ? void 0 : t.splitLane(e)) : {
103
105
  status: -1,
104
106
  message: "未加载OpenDrive地图"
105
- }, Ce = async () => t ? t == null ? void 0 : t.clearSplitLane() : {
107
+ }, Ae = async () => t ? t == null ? void 0 : t.clearSplitLane() : {
106
108
  status: -1,
107
109
  message: "未加载OpenDrive地图"
108
- }, ke = async (e) => (o || (o = new Re(s)), await o.showSignalControlArea(e)), Te = () => {
109
- o == null || o.clearSignalControlArea();
110
- }, Le = async (e) => o ? await o.locateSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, De = async (e) => o ? await o.highlightSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, Ae = () => o ? o.resetHighlight() : { status: -1, message: "未加载信号控制区" }, O = I, w = M;
111
- return b({
112
- mapViewer: H,
113
- setLayerVisibility: N,
114
- setMapCenter: B,
115
- lookAt: z,
116
- setMapCamera: V,
117
- setMapZoomRange: E,
118
- requestCoordinateTransform: Q,
119
- cancelCoordinateTransform: j,
120
- addOverlays: re,
121
- addMask: oe,
122
- removeMask: se,
123
- showAllOverlays: ue,
124
- removeOverlaysByType: ie,
125
- removeOverlaysById: ce,
126
- removeAllOverlays: le,
127
- showLaneNumber: F,
128
- clearLaneNumber: Z,
129
- initializeAreaTool: q,
130
- calCrossIndicatorArea: K,
131
- calRoadIndicatorArea: R,
132
- connectCarFlow: U,
133
- disconnectCarFlow: $,
134
- handleHoloVehicleTraceData: G,
135
- clearHoloTrace: J,
136
- handleHoloSignalData: X,
137
- clearHoloSignal: Y,
138
- setInterpolate: W,
139
- toggleTrafficInfo: ee,
140
- toggleTrafficObject: ae,
141
- toggleVehicleInfo: ne,
142
- togglePause: te,
143
- updateQueueLength: me,
144
- removeQueueLength: pe,
145
- showOpenDriveFromServer: ge,
146
- showOpenDriveFromFile: fe,
147
- clearOpenDrive: de,
148
- geometrySearchInOpenDrive: Se,
149
- findSumoInOpenDrive: we,
150
- selectSumoInOpenDrive: ye,
151
- unselectSumoInOpenDrive: ve,
152
- getSumoInfo: he,
153
- splitOpenDriveLane: Oe,
154
- clearSplitOpenDriveLane: Ce,
155
- showSignalControlArea: ke,
156
- clearSignalControlArea: Te,
157
- locateSignalControlArea: Le,
158
- highlightSignalControlArea: De,
159
- resetHighlightSignalControlArea: Ae
160
- }), (e, u) => (S(), k("div", $e, [
110
+ }, Te = (e) => (r || (r = new I(s)), r.showSignalControlArea(e)), Le = () => {
111
+ r == null || r.clearSignalControlArea();
112
+ }, De = async (e) => r ? await r.locateSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, be = async (e) => r ? await r.highlightSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, Ie = () => r ? r.resetHighlight() : { status: -1, message: "未加载信号控制区" }, Me = (e) => (r || (r = new I(s)), r.showSubSignalControlArea(e)), _e = () => r ? r.editSubSignalArea() : { status: -1, message: "未加载信号控制区" }, h = M, w = H;
113
+ return _({
114
+ mapViewer: P,
115
+ setLayerVisibility: j,
116
+ setMapCenter: z,
117
+ lookAt: Q,
118
+ setMapCamera: N,
119
+ setMapZoomRange: q,
120
+ requestCoordinateTransform: E,
121
+ cancelCoordinateTransform: Z,
122
+ addOverlays: se,
123
+ addMask: ie,
124
+ removeMask: ce,
125
+ showAllOverlays: pe,
126
+ removeOverlaysByType: le,
127
+ removeOverlaysById: ue,
128
+ removeAllOverlays: me,
129
+ showLaneNumber: K,
130
+ clearLaneNumber: R,
131
+ initializeAreaTool: U,
132
+ calCrossIndicatorArea: $,
133
+ calRoadIndicatorArea: G,
134
+ connectCarFlow: J,
135
+ disconnectCarFlow: W,
136
+ handleHoloVehicleTraceData: X,
137
+ clearHoloTrace: Y,
138
+ handleHoloSignalData: ee,
139
+ clearHoloSignal: te,
140
+ setInterpolate: F,
141
+ toggleTrafficInfo: ae,
142
+ toggleTrafficObject: re,
143
+ toggleVehicleInfo: oe,
144
+ togglePause: ne,
145
+ updateQueueLength: ge,
146
+ removeQueueLength: de,
147
+ showOpenDriveFromServer: fe,
148
+ showOpenDriveFromFile: we,
149
+ clearOpenDrive: Se,
150
+ geometrySearchInOpenDrive: he,
151
+ findSumoInOpenDrive: ye,
152
+ selectSumoInOpenDrive: ve,
153
+ unselectSumoInOpenDrive: Ce,
154
+ getSumoInfo: Oe,
155
+ splitOpenDriveLane: ke,
156
+ clearSplitOpenDriveLane: Ae,
157
+ showSignalControlArea: Te,
158
+ clearSignalControlArea: Le,
159
+ locateSignalControlArea: De,
160
+ highlightSignalControlArea: be,
161
+ resetHighlightSignalControlArea: Ie,
162
+ showSubSignalControlArea: Me,
163
+ editSubSignalControlArea: _e
164
+ }), (e, u) => (v(), k("div", We, [
161
165
  g("div", {
162
166
  class: "gis-viewer-main",
163
167
  ref_key: "mapContainer",
164
- ref: f
168
+ ref: d
165
169
  }, [
166
- Pe(g("div", Ge, [
170
+ Ne(g("div", Xe, [
167
171
  g("button", {
168
172
  style: { "margin-right": "10px" },
169
- onClick: x
173
+ onClick: B
170
174
  }, " 开始记录 "),
171
- g("button", { onClick: P }, "下载日志")
175
+ g("button", { onClick: V }, "下载日志")
172
176
  ], 512), [
173
- [Be, d.value]
177
+ [Qe, f.value]
174
178
  ])
175
179
  ], 512),
176
- (S(!0), k(Ve, null, ze(Ne(_), (c, m) => (S(), Qe(Ze, {
180
+ (v(!0), k(je, null, Ee(Ze(x), (i, m) => (v(), qe(Ue, {
177
181
  key: m,
178
- "road-id": c.crossId,
179
- "cross-id": c.roadId,
180
- "map-point": c.mapPoint,
181
- "stop-line": c.stopLine,
182
- position: c.position,
183
- rotation: c.rotation,
184
- "lamp-status": c.lampStatus
185
- }, null, 8, ["road-id", "cross-id", "map-point", "stop-line", "position", "rotation", "lamp-status"]))), 128))
182
+ "display-mode": i.displayMode,
183
+ "road-id": i.crossId,
184
+ "cross-id": i.roadId,
185
+ "map-point": i.mapPoint,
186
+ "stop-line": i.stopLine,
187
+ position: i.position,
188
+ rotation: i.rotation,
189
+ scale: i.scale,
190
+ "lamp-status": i.lampStatus
191
+ }, null, 8, ["display-mode", "road-id", "cross-id", "map-point", "stop-line", "position", "rotation", "scale", "lamp-status"]))), 128))
186
192
  ]));
187
193
  }
188
194
  });
189
195
  export {
190
- lt as default
196
+ mt as default
191
197
  };
@@ -18,6 +18,7 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
18
18
  queueLength: import("./utils/queue-length").default;
19
19
  openDriveRenderer: import("./utils/open-drive-renderer").default;
20
20
  signalControlAreaController: import("./utils/signal-control-area-controller").default;
21
+ showLogDiv: import("vue").Ref<boolean>;
21
22
  appDataStore: import("pinia").Store<"appData", {
22
23
  mapConfig: {};
23
24
  saveTrackLog: boolean;
@@ -25,6 +26,7 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
25
26
  countdownPanels: import("../types").ISignalCountdownProps[];
26
27
  }, {}, {}>;
27
28
  countdownPanelInfos: import("vue").Ref<{
29
+ displayMode: string;
28
30
  crossId: string;
29
31
  roadId: string;
30
32
  mapPoint: number[];
@@ -34,6 +36,7 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
34
36
  top: number;
35
37
  };
36
38
  rotation: number;
39
+ scale: number;
37
40
  lampStatus: {
38
41
  uNumber?: number | undefined;
39
42
  uColor?: string | undefined;
@@ -45,7 +48,6 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
45
48
  rColor?: string | undefined;
46
49
  };
47
50
  }[]>;
48
- showLogDiv: import("vue").Ref<boolean>;
49
51
  mapViewer: import("vue").ComputedRef<__esri.MapView | __esri.SceneView>;
50
52
  startSaveTrackLog: () => void;
51
53
  downloadTrackLog: () => void;
@@ -69,7 +71,7 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
69
71
  calRoadIndicatorArea: () => Promise<void>;
70
72
  connectCarFlow: (url: string, options?: any) => Promise<void>;
71
73
  disconnectCarFlow: () => void;
72
- handleHoloVehicleTraceData: (vehicleTrace: any) => void;
74
+ handleHoloVehicleTraceData: (vehicleTrace: any) => Promise<void>;
73
75
  clearHoloTrace: () => void;
74
76
  setInterpolate: (enable: boolean) => void;
75
77
  handleHoloSignalData: (signalData: any) => Promise<void>;
@@ -100,7 +102,7 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
100
102
  status: number;
101
103
  message: string;
102
104
  }>;
103
- showSignalControlArea: (params: any) => Promise<import("../types").IResult>;
105
+ showSignalControlArea: (params: any) => import("../types").IResult;
104
106
  clearSignalControlArea: () => void;
105
107
  locateSignalControlArea: (params: {
106
108
  id: string;
@@ -109,9 +111,15 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
109
111
  id: string;
110
112
  }) => Promise<import("../types").IResult>;
111
113
  resetHighlightSignalControlArea: () => import("../types").IResult;
114
+ showSubSignalControlArea: (params: any) => import("../types").IResult;
115
+ editSubSignalControlArea: () => import("../types").IResult;
112
116
  props: any;
113
117
  emit: (event: "mapLoaded" | "markerClick" | "mapClick", ...args: any[]) => void;
114
118
  SignalCountdownPanel: import("vue").DefineComponent<{
119
+ displayMode: {
120
+ type: StringConstructor;
121
+ required: true;
122
+ };
115
123
  crossId: {
116
124
  type: StringConstructor;
117
125
  required: true;
@@ -128,6 +136,10 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
128
136
  type: ArrayConstructor;
129
137
  required: true;
130
138
  };
139
+ scale: {
140
+ type: NumberConstructor;
141
+ required: true;
142
+ };
131
143
  position: {
132
144
  type: ObjectConstructor;
133
145
  required: true;
@@ -164,8 +176,12 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
164
176
  rNumberStyle: import("vue").ComputedRef<{
165
177
  color: string;
166
178
  }>;
167
- getColorString: (color: string | undefined) => "red" | "yellow" | "lime" | "white";
179
+ getColorString: (color: string | undefined) => "red" | "rgb(255, 192, 2)" | "lime" | "white";
168
180
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
181
+ displayMode: {
182
+ type: StringConstructor;
183
+ required: true;
184
+ };
169
185
  crossId: {
170
186
  type: StringConstructor;
171
187
  required: true;
@@ -182,6 +198,10 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
182
198
  type: ArrayConstructor;
183
199
  required: true;
184
200
  };
201
+ scale: {
202
+ type: NumberConstructor;
203
+ required: true;
204
+ };
185
205
  position: {
186
206
  type: ObjectConstructor;
187
207
  required: true;
@@ -1,11 +1,11 @@
1
- import { Point as P, Polyline as f } from "@arcgis/core/geometry";
1
+ import { Point as L, Polyline as f } from "@arcgis/core/geometry";
2
2
  import * as g from "@arcgis/core/geometry/geometryEngineAsync";
3
3
  import * as l from "@arcgis/core/geometry/support/webMercatorUtils";
4
4
  import p from "@turf/bearing";
5
5
  import u from "@turf/destination";
6
6
  import * as a from "@turf/helpers";
7
- import O from "@turf/length";
8
- import d from "@turf/line-slice-along";
7
+ import d from "@turf/length";
8
+ import O from "@turf/line-slice-along";
9
9
  import w from "pako";
10
10
  import y from "proj4";
11
11
  class s {
@@ -20,7 +20,7 @@ class s {
20
20
  const r = a.point([t.x, t.y]), i = u(r, n, e, {
21
21
  units: "meters"
22
22
  });
23
- return new P({
23
+ return new L({
24
24
  x: i.geometry.coordinates[0],
25
25
  y: i.geometry.coordinates[1]
26
26
  });
@@ -42,12 +42,12 @@ class s {
42
42
  static extendLineInTowDir(t, e) {
43
43
  const n = t.paths[0], r = a.point(n[0]), i = a.point(n[1]), o = p(i, r), c = u(r, e, o, {
44
44
  units: "meters"
45
- }), h = o > 0 ? o - 180 : o + 180, L = u(i, e, h, {
45
+ }), h = o > 0 ? o - 180 : o + 180, P = u(i, e, h, {
46
46
  units: "meters"
47
47
  });
48
48
  return new f({
49
49
  paths: [
50
- [c.geometry.coordinates, L.geometry.coordinates]
50
+ [c.geometry.coordinates, P.geometry.coordinates]
51
51
  ]
52
52
  });
53
53
  }
@@ -226,10 +226,10 @@ class s {
226
226
  * @returns
227
227
  */
228
228
  static getCenterPointInLine(t) {
229
- const e = a.lineString(t), n = O(e, { units: "meters" }) / 2;
230
- return d(e, 0, n, {
229
+ const e = a.lineString(t), n = d(e, { units: "meters" }) / 2, r = O(e, 0, n, {
231
230
  units: "meters"
232
- }).geometry.coordinates[1];
231
+ });
232
+ return r.geometry.coordinates[r.geometry.coordinates.length - 1];
233
233
  }
234
234
  }
235
235
  export {