gisviewer-vue3-arcgis 1.0.170 → 1.0.172
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.
- package/es/src/gis-map/gis-map.vue.d.ts +4 -4
- package/es/src/gis-map/gis-map.vue.mjs +98 -99
- package/es/src/gis-map/index.d.ts +2 -2
- package/es/src/gis-map/utils/holo-flow/index.d.ts +3 -2
- package/es/src/gis-map/utils/holo-flow/index.mjs +9 -6
- package/es/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.d.ts +3 -8
- package/es/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.mjs +94 -95
- package/es/src/gis-map/utils/holo-flow/trace-renderer-external.d.ts +1 -0
- package/es/src/gis-map/utils/holo-flow/trace-renderer-external.mjs +132 -125
- package/es/src/gis-map/utils/open-drive-renderer/index.mjs +19 -19
- package/lib/src/gis-map/gis-map.vue.d.ts +4 -4
- package/lib/src/gis-map/gis-map.vue.js +1 -1
- package/lib/src/gis-map/index.d.ts +2 -2
- package/lib/src/gis-map/utils/holo-flow/index.d.ts +3 -2
- package/lib/src/gis-map/utils/holo-flow/index.js +1 -1
- package/lib/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.d.ts +3 -8
- package/lib/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.js +1 -1
- package/lib/src/gis-map/utils/holo-flow/trace-renderer-external.d.ts +1 -0
- package/lib/src/gis-map/utils/holo-flow/trace-renderer-external.js +1 -1
- package/lib/src/gis-map/utils/open-drive-renderer/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import MapView from '@arcgis/core/views/MapView';
|
|
2
2
|
import SceneView from '@arcgis/core/views/SceneView';
|
|
3
|
-
import { IFindSumoParams, ILaneNumberParams, ILayerVisibleParams, ILookAtParams, IMaskParam, IOverlayParam, IQueueLengthParams, ISetMapCameraParams, ISetMapCenterParams, IShowOpenDriveFromFileParams, ISplitOpenDriveLaneParams, IStartCrossBufferParam, IToggleTrafficInfoParams, IUnselectSumoParams } from '../types';
|
|
3
|
+
import { IFindSumoParams, ILaneNumberParams, ILayerVisibleParams, ILookAtParams, IMaskParam, IOverlayParam, IQueueLengthParams, ISetMapCameraParams, ISetMapCenterParams, IShowOpenDriveFromFileParams, ISignalCountdownProps, ISplitOpenDriveLaneParams, IStartCrossBufferParam, IToggleTrafficInfoParams, IUnselectSumoParams } from '../types';
|
|
4
4
|
import HoloFlow from './utils/holo-flow';
|
|
5
5
|
import MapInitializer from './utils/map-initializer';
|
|
6
6
|
import OpenDriveRenderer from './utils/open-drive-renderer';
|
|
@@ -34,9 +34,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
34
34
|
mapConfig: {};
|
|
35
35
|
saveTrackLog: boolean;
|
|
36
36
|
isSketching: boolean;
|
|
37
|
-
countdownPanels:
|
|
37
|
+
countdownPanels: ISignalCountdownProps[];
|
|
38
38
|
}, {}, {}>;
|
|
39
|
-
|
|
39
|
+
countdownPanelProps: {
|
|
40
40
|
displayMode: string;
|
|
41
41
|
crossId: string;
|
|
42
42
|
roadId: string;
|
|
@@ -58,7 +58,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
58
58
|
rNumber?: number | undefined;
|
|
59
59
|
rColor?: string | undefined;
|
|
60
60
|
};
|
|
61
|
-
}[]
|
|
61
|
+
}[];
|
|
62
62
|
mapViewer: import("vue").ComputedRef<MapView | SceneView>;
|
|
63
63
|
startSaveTrackLog: () => void;
|
|
64
64
|
downloadTrackLog: () => void;
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import A, { registerStore as Ke } from "./stores/index.mjs";
|
|
1
|
+
import { defineComponent as He, ref as O, reactive as xe, onMounted as Be, getCurrentInstance as Pe, 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, createBlock as Ze } from "vue";
|
|
2
|
+
import A, { registerStore as $e } from "./stores/index.mjs";
|
|
4
3
|
import "./style/index.css";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import qe from "./utils/holo-flow/index.mjs";
|
|
5
|
+
import Ke from "./utils/holo-flow/signal-countdown-panel.vue.mjs";
|
|
7
6
|
import Ue from "./utils/map-initializer.mjs";
|
|
8
7
|
import L from "./utils/open-drive-renderer/index.mjs";
|
|
9
|
-
import
|
|
8
|
+
import T from "./utils/overlay.mjs";
|
|
10
9
|
import Ge from "./utils/queue-length.mjs";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
10
|
+
import D from "./utils/road-config-tool/index.mjs";
|
|
11
|
+
import b from "./utils/signal-control-area-controller/index.mjs";
|
|
13
12
|
import Je from "./utils/traffic-flow.mjs";
|
|
14
|
-
const
|
|
13
|
+
const Re = { class: "gis-viewer" }, We = { style: { position: "absolute", bottom: "10px", left: "10px" } }, lt = /* @__PURE__ */ He({
|
|
15
14
|
__name: "gis-map",
|
|
16
15
|
props: {
|
|
17
16
|
config: {},
|
|
18
17
|
assetsRoot: {}
|
|
19
18
|
},
|
|
20
19
|
emits: ["mapLoaded", "markerClick", "mapClick"],
|
|
21
|
-
setup(
|
|
20
|
+
setup(I, { expose: M, emit: _ }) {
|
|
22
21
|
const d = O(null);
|
|
23
22
|
let o, l, c, s, a, n, p, t, r;
|
|
24
23
|
const f = O(!1);
|
|
25
|
-
|
|
26
|
-
const
|
|
24
|
+
$e();
|
|
25
|
+
const H = A.useAppDataStore, h = xe([]);
|
|
27
26
|
Be(async () => {
|
|
28
27
|
if (!d.value)
|
|
29
28
|
return;
|
|
@@ -31,153 +30,153 @@ const We = { class: "gis-viewer" }, Xe = { style: { position: "absolute", bottom
|
|
|
31
30
|
m.ctrlKey && m.key === "i" && (f.value = !f.value);
|
|
32
31
|
});
|
|
33
32
|
const e = Pe(), { $gisviewerAssetsRoot: u } = e.appContext.config.globalProperties, i = await (await fetch(C.config)).json();
|
|
34
|
-
i.assetsRoot = C.assetsRoot || u,
|
|
33
|
+
i.assetsRoot = C.assetsRoot || u, H.mapConfig = i, l = new Ue(), o = await l.initialize({
|
|
35
34
|
container: d.value,
|
|
36
35
|
mapConfig: i,
|
|
37
|
-
markerClickCallback: (m,
|
|
38
|
-
|
|
36
|
+
markerClickCallback: (m, S, w, _e) => {
|
|
37
|
+
y("markerClick", m, S, w, _e);
|
|
39
38
|
},
|
|
40
|
-
mapClickCallback: (m,
|
|
41
|
-
|
|
39
|
+
mapClickCallback: (m, S, w) => {
|
|
40
|
+
y("mapClick", m, S, w);
|
|
42
41
|
}
|
|
43
|
-
}), a = new
|
|
42
|
+
}), a = new qe(o, h), await a.init(), y("mapLoaded");
|
|
44
43
|
}), Ve(() => {
|
|
45
44
|
r == null || r.clearSignalControlArea(), t == null || t.clearOpenDrive(), a.clearHoloTrace(), a.clearHoloSignal(), s == null || s.disconnectTrafficFlow();
|
|
46
45
|
});
|
|
47
|
-
const
|
|
46
|
+
const x = ze(() => o), B = () => {
|
|
48
47
|
const e = A.useAppDataStore;
|
|
49
48
|
e.saveTrackLog = !0;
|
|
50
|
-
},
|
|
49
|
+
}, P = () => {
|
|
51
50
|
a.downloadTrackLog();
|
|
52
|
-
},
|
|
51
|
+
}, V = async (e) => await l.setMapCenter(e), z = async (e) => await l.setMapCamera(e), N = async (e) => await l.lookAt(e), Q = (e) => l.setLayerVisibility(e), j = (e, u) => l.requestCoordinateTransform(e, u), E = (e) => {
|
|
53
52
|
l.cancelCoordinateTransform(e);
|
|
54
|
-
},
|
|
53
|
+
}, Z = (e) => {
|
|
55
54
|
l.setMapZoomRange(e);
|
|
56
|
-
},
|
|
55
|
+
}, $ = (e) => (c || (c = new D(o)), c.showLaneNumber(e)), q = () => {
|
|
57
56
|
c == null || c.clearLaneNumber();
|
|
58
|
-
},
|
|
57
|
+
}, K = async (e) => (c || (c = new D(o)), await c.initializeSearch(e)), U = async () => c == null ? void 0 : c.calCrossIndicatorArea(), G = async () => {
|
|
59
58
|
}, J = async (e, u) => {
|
|
60
59
|
s || (s = new Je(o)), s.connectTrafficFlow(e, u);
|
|
61
|
-
},
|
|
60
|
+
}, R = () => {
|
|
62
61
|
s == null || s.disconnectTrafficFlow();
|
|
63
|
-
},
|
|
64
|
-
a
|
|
65
|
-
},
|
|
62
|
+
}, W = async (e) => {
|
|
63
|
+
a.handleVehicleTraceData(e);
|
|
64
|
+
}, X = () => {
|
|
66
65
|
a.clearHoloTrace();
|
|
67
|
-
},
|
|
66
|
+
}, Y = (e) => {
|
|
68
67
|
a.setInterpolate(e);
|
|
69
|
-
},
|
|
68
|
+
}, F = async (e) => {
|
|
70
69
|
await a.handleSignalData(e);
|
|
71
|
-
},
|
|
70
|
+
}, ee = () => {
|
|
72
71
|
a.clearHoloSignal();
|
|
73
|
-
},
|
|
72
|
+
}, te = (e) => {
|
|
74
73
|
s == null || s.toggleTrafficInfo(e), a == null || a.toggleTrafficInfo(e);
|
|
75
|
-
},
|
|
74
|
+
}, ae = (e) => {
|
|
76
75
|
a == null || a.togglePause(e);
|
|
77
|
-
},
|
|
76
|
+
}, ne = (e) => {
|
|
78
77
|
s == null || s.toggleTrafficObject(e), a == null || a.toggleTrafficObject(e);
|
|
79
|
-
},
|
|
78
|
+
}, re = (e) => {
|
|
80
79
|
a == null || a.updatePanelContent(e);
|
|
81
|
-
},
|
|
80
|
+
}, se = async (e) => (n || (n = new T(o)), n.addOverlays(e)), oe = (e) => (n || (n = new T(o)), n.addMask(e)), ie = () => {
|
|
82
81
|
n == null || n.removeMask();
|
|
83
|
-
},
|
|
82
|
+
}, ce = (e) => n == null ? void 0 : n.removeOverlaysByType(e), le = (e) => n == null ? void 0 : n.removeOverlaysById(e), ue = () => n == null ? void 0 : n.removeAllOverlays(), me = () => {
|
|
84
83
|
n == null || n.showAllOverlays();
|
|
85
|
-
},
|
|
84
|
+
}, pe = (e) => {
|
|
86
85
|
p || (p = new Ge(o)), p.updateQueueLength(e);
|
|
87
|
-
},
|
|
86
|
+
}, ge = () => {
|
|
88
87
|
p == null || p.removeQueueLength();
|
|
89
|
-
},
|
|
88
|
+
}, de = async (e, u) => (t || (t = new L(o)), await t.showOpenDriveFromServer(e, u)), fe = async (e) => (t || (t = new L(o)), await t.clearOpenDrive(), await t.showOpenDriveFromFile(e)), ye = async () => await (t == null ? void 0 : t.clearOpenDrive()), Se = async (e) => t ? await (t == null ? void 0 : t.findSumo(e)) : {
|
|
90
89
|
status: -1,
|
|
91
90
|
message: "未加载OpenDrive地图"
|
|
92
|
-
},
|
|
91
|
+
}, we = async (e) => t ? t.selectSumo(e) : {
|
|
93
92
|
status: -1,
|
|
94
93
|
message: "未加载OpenDrive地图"
|
|
95
|
-
},
|
|
94
|
+
}, ve = async (e) => t ? t.unselectSumo(e) : {
|
|
96
95
|
status: -1,
|
|
97
96
|
message: "未加载OpenDrive地图"
|
|
98
|
-
},
|
|
97
|
+
}, he = async (e) => t ? await t.geometrySearch(e) : {
|
|
99
98
|
status: -1,
|
|
100
99
|
message: "未加载OpenDrive地图"
|
|
101
|
-
},
|
|
100
|
+
}, Ce = async (e) => t ? await t.getSumoInfo(e) : {
|
|
102
101
|
status: -1,
|
|
103
102
|
message: "未加载OpenDrive地图"
|
|
104
|
-
},
|
|
103
|
+
}, Oe = async (e) => t ? await (t == null ? void 0 : t.splitLane(e)) : {
|
|
105
104
|
status: -1,
|
|
106
105
|
message: "未加载OpenDrive地图"
|
|
107
|
-
},
|
|
106
|
+
}, ke = async () => t ? t == null ? void 0 : t.clearSplitLane() : {
|
|
108
107
|
status: -1,
|
|
109
108
|
message: "未加载OpenDrive地图"
|
|
110
|
-
},
|
|
109
|
+
}, Ae = (e) => (r || (r = new b(o)), r.showSignalControlArea(e)), Le = () => {
|
|
111
110
|
r == null || r.clearSignalControlArea();
|
|
112
|
-
},
|
|
113
|
-
return
|
|
114
|
-
mapViewer:
|
|
115
|
-
setLayerVisibility:
|
|
116
|
-
setMapCenter:
|
|
117
|
-
lookAt:
|
|
118
|
-
setMapCamera:
|
|
119
|
-
setMapZoomRange:
|
|
120
|
-
requestCoordinateTransform:
|
|
121
|
-
cancelCoordinateTransform:
|
|
122
|
-
addOverlays:
|
|
123
|
-
addMask:
|
|
124
|
-
removeMask:
|
|
125
|
-
showAllOverlays:
|
|
126
|
-
removeOverlaysByType:
|
|
127
|
-
removeOverlaysById:
|
|
128
|
-
removeAllOverlays:
|
|
129
|
-
showLaneNumber:
|
|
130
|
-
clearLaneNumber:
|
|
131
|
-
initializeAreaTool:
|
|
111
|
+
}, Te = async (e) => r ? await r.locateSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, De = async (e) => r ? await r.highlightSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, be = () => r ? r.resetHighlight() : { status: -1, message: "未加载信号控制区" }, Ie = (e) => (r || (r = new b(o)), r.showSubSignalControlArea(e)), Me = () => r ? r.editSubSignalArea() : { status: -1, message: "未加载信号控制区" }, C = I, y = _;
|
|
112
|
+
return M({
|
|
113
|
+
mapViewer: x,
|
|
114
|
+
setLayerVisibility: Q,
|
|
115
|
+
setMapCenter: V,
|
|
116
|
+
lookAt: N,
|
|
117
|
+
setMapCamera: z,
|
|
118
|
+
setMapZoomRange: Z,
|
|
119
|
+
requestCoordinateTransform: j,
|
|
120
|
+
cancelCoordinateTransform: E,
|
|
121
|
+
addOverlays: se,
|
|
122
|
+
addMask: oe,
|
|
123
|
+
removeMask: ie,
|
|
124
|
+
showAllOverlays: me,
|
|
125
|
+
removeOverlaysByType: ce,
|
|
126
|
+
removeOverlaysById: le,
|
|
127
|
+
removeAllOverlays: ue,
|
|
128
|
+
showLaneNumber: $,
|
|
129
|
+
clearLaneNumber: q,
|
|
130
|
+
initializeAreaTool: K,
|
|
132
131
|
calCrossIndicatorArea: U,
|
|
133
132
|
calRoadIndicatorArea: G,
|
|
134
133
|
connectCarFlow: J,
|
|
135
|
-
disconnectCarFlow:
|
|
136
|
-
handleHoloVehicleTraceData:
|
|
137
|
-
clearHoloTrace:
|
|
138
|
-
handleHoloSignalData:
|
|
139
|
-
clearHoloSignal:
|
|
140
|
-
setInterpolate:
|
|
141
|
-
toggleTrafficInfo:
|
|
142
|
-
toggleTrafficObject:
|
|
143
|
-
toggleVehicleInfo:
|
|
144
|
-
togglePause:
|
|
145
|
-
updateQueueLength:
|
|
146
|
-
removeQueueLength:
|
|
147
|
-
showOpenDriveFromServer:
|
|
148
|
-
showOpenDriveFromFile:
|
|
134
|
+
disconnectCarFlow: R,
|
|
135
|
+
handleHoloVehicleTraceData: W,
|
|
136
|
+
clearHoloTrace: X,
|
|
137
|
+
handleHoloSignalData: F,
|
|
138
|
+
clearHoloSignal: ee,
|
|
139
|
+
setInterpolate: Y,
|
|
140
|
+
toggleTrafficInfo: te,
|
|
141
|
+
toggleTrafficObject: ne,
|
|
142
|
+
toggleVehicleInfo: re,
|
|
143
|
+
togglePause: ae,
|
|
144
|
+
updateQueueLength: pe,
|
|
145
|
+
removeQueueLength: ge,
|
|
146
|
+
showOpenDriveFromServer: de,
|
|
147
|
+
showOpenDriveFromFile: fe,
|
|
149
148
|
clearOpenDrive: ye,
|
|
150
|
-
geometrySearchInOpenDrive:
|
|
149
|
+
geometrySearchInOpenDrive: he,
|
|
151
150
|
findSumoInOpenDrive: Se,
|
|
152
|
-
selectSumoInOpenDrive:
|
|
153
|
-
unselectSumoInOpenDrive:
|
|
154
|
-
getSumoInfo:
|
|
155
|
-
splitOpenDriveLane:
|
|
156
|
-
clearSplitOpenDriveLane:
|
|
157
|
-
showSignalControlArea:
|
|
151
|
+
selectSumoInOpenDrive: we,
|
|
152
|
+
unselectSumoInOpenDrive: ve,
|
|
153
|
+
getSumoInfo: Ce,
|
|
154
|
+
splitOpenDriveLane: Oe,
|
|
155
|
+
clearSplitOpenDriveLane: ke,
|
|
156
|
+
showSignalControlArea: Ae,
|
|
158
157
|
clearSignalControlArea: Le,
|
|
159
|
-
locateSignalControlArea:
|
|
160
|
-
highlightSignalControlArea:
|
|
161
|
-
resetHighlightSignalControlArea:
|
|
162
|
-
showSubSignalControlArea:
|
|
163
|
-
editSubSignalControlArea:
|
|
164
|
-
}), (e, u) => (v(), k("div",
|
|
158
|
+
locateSignalControlArea: Te,
|
|
159
|
+
highlightSignalControlArea: De,
|
|
160
|
+
resetHighlightSignalControlArea: be,
|
|
161
|
+
showSubSignalControlArea: Ie,
|
|
162
|
+
editSubSignalControlArea: Me
|
|
163
|
+
}), (e, u) => (v(), k("div", Re, [
|
|
165
164
|
g("div", {
|
|
166
165
|
class: "gis-viewer-main",
|
|
167
166
|
ref_key: "mapContainer",
|
|
168
167
|
ref: d
|
|
169
168
|
}, [
|
|
170
|
-
Ne(g("div",
|
|
169
|
+
Ne(g("div", We, [
|
|
171
170
|
g("button", {
|
|
172
171
|
style: { "margin-right": "10px" },
|
|
173
|
-
onClick:
|
|
172
|
+
onClick: B
|
|
174
173
|
}, " 开始记录 "),
|
|
175
|
-
g("button", { onClick:
|
|
174
|
+
g("button", { onClick: P }, "下载日志")
|
|
176
175
|
], 512), [
|
|
177
176
|
[Qe, f.value]
|
|
178
177
|
])
|
|
179
178
|
], 512),
|
|
180
|
-
(v(!0), k(je, null, Ee(
|
|
179
|
+
(v(!0), k(je, null, Ee(h, (i, m) => (v(), Ze(Ke, {
|
|
181
180
|
key: m,
|
|
182
181
|
"display-mode": i.displayMode,
|
|
183
182
|
"road-id": i.crossId,
|
|
@@ -193,5 +192,5 @@ const We = { class: "gis-viewer" }, Xe = { style: { position: "absolute", bottom
|
|
|
193
192
|
}
|
|
194
193
|
});
|
|
195
194
|
export {
|
|
196
|
-
|
|
195
|
+
lt as default
|
|
197
196
|
};
|
|
@@ -25,7 +25,7 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
25
25
|
isSketching: boolean;
|
|
26
26
|
countdownPanels: import("../types").ISignalCountdownProps[];
|
|
27
27
|
}, {}, {}>;
|
|
28
|
-
|
|
28
|
+
countdownPanelProps: {
|
|
29
29
|
displayMode: string;
|
|
30
30
|
crossId: string;
|
|
31
31
|
roadId: string;
|
|
@@ -47,7 +47,7 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
47
47
|
rNumber?: number | undefined;
|
|
48
48
|
rColor?: string | undefined;
|
|
49
49
|
};
|
|
50
|
-
}[]
|
|
50
|
+
}[];
|
|
51
51
|
mapViewer: import("vue").ComputedRef<__esri.MapView | __esri.SceneView>;
|
|
52
52
|
startSaveTrackLog: () => void;
|
|
53
53
|
downloadTrackLog: () => void;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { IToggleTrafficInfoParams } from '../../../types';
|
|
1
|
+
import { ISignalCountdownProps, IToggleTrafficInfoParams } from '../../../types';
|
|
2
2
|
export default class Index {
|
|
3
3
|
private readonly view;
|
|
4
4
|
private traceHoloFlow;
|
|
5
5
|
private signalHoloFlow;
|
|
6
|
-
|
|
6
|
+
private signalCountdownPanelProps;
|
|
7
|
+
constructor(view: __esri.MapView | __esri.SceneView, signalCountdownPanelProps: ISignalCountdownProps[]);
|
|
7
8
|
init(): Promise<void>;
|
|
8
9
|
/**
|
|
9
10
|
* 处理全息流轨迹数据
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { toRaw as i } from "vue";
|
|
2
2
|
import { EVehiclePlateState as a } from "../../../types/index.mjs";
|
|
3
|
-
import
|
|
3
|
+
import n from "../../stores/index.mjs";
|
|
4
4
|
import s from "./signal-holo-flow.mjs";
|
|
5
|
-
import
|
|
5
|
+
import r from "./signal-holo-flow-lsr.mjs";
|
|
6
6
|
import c from "./trace-holo-flow.mjs";
|
|
7
7
|
class m {
|
|
8
|
-
constructor(o) {
|
|
9
|
-
this.view = o;
|
|
8
|
+
constructor(o, e) {
|
|
9
|
+
this.view = o, this.signalCountdownPanelProps = e;
|
|
10
10
|
}
|
|
11
11
|
async init() {
|
|
12
12
|
this.traceHoloFlow = new c(this.view), await this.traceHoloFlow.init();
|
|
@@ -60,8 +60,11 @@ class m {
|
|
|
60
60
|
async handleSignalData(o) {
|
|
61
61
|
var e, l;
|
|
62
62
|
if (!this.signalHoloFlow) {
|
|
63
|
-
const t =
|
|
64
|
-
((l = (e = i(t.mapConfig).holoFlow) == null ? void 0 : e.signal) == null ? void 0 : l.style) === "LSR" ? this.signalHoloFlow = new
|
|
63
|
+
const t = n.useAppDataStore;
|
|
64
|
+
((l = (e = i(t.mapConfig).holoFlow) == null ? void 0 : e.signal) == null ? void 0 : l.style) === "LSR" ? this.signalHoloFlow = new r(
|
|
65
|
+
this.view,
|
|
66
|
+
this.signalCountdownPanelProps
|
|
67
|
+
) : this.signalHoloFlow = new s(this.view), await this.signalHoloFlow.initializeLayer();
|
|
65
68
|
}
|
|
66
69
|
await this.signalHoloFlow.handleSignalData(o);
|
|
67
70
|
}
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
+
import { ISignalCountdownProps } from '../../../types';
|
|
1
2
|
import SignalHoloFlow from './signal-holo-flow';
|
|
2
3
|
export default class LSRSignalHoloFlow extends SignalHoloFlow {
|
|
3
4
|
private stopLineLayer;
|
|
4
|
-
private store;
|
|
5
5
|
private watchHandle;
|
|
6
|
-
|
|
6
|
+
private countdownPanelProps;
|
|
7
|
+
constructor(view: __esri.MapView | __esri.SceneView, countdownPanelInfos: ISignalCountdownProps[]);
|
|
7
8
|
private stopLineMap;
|
|
8
9
|
initializeLayer(): Promise<void>;
|
|
9
10
|
private currentPanelScale;
|
|
10
11
|
private getPanelScale;
|
|
11
12
|
handleSignalData(data: any): Promise<void>;
|
|
12
13
|
clearSignal(): void;
|
|
13
|
-
/**
|
|
14
|
-
* 从停止线坐标计算面板位置
|
|
15
|
-
* @param coordinates
|
|
16
|
-
* @returns
|
|
17
|
-
*/
|
|
18
|
-
private getPanelPoint;
|
|
19
14
|
/**
|
|
20
15
|
* 从停止线坐标计算面板旋转角度
|
|
21
16
|
* @param coordinates
|