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.
- package/es/src/gis-map/gis-map.vue.d.ts +34 -0
- package/es/src/gis-map/gis-map.vue.mjs +110 -103
- package/es/src/gis-map/index.d.ts +34 -0
- package/es/src/gis-map/style/index.css +13 -1
- package/es/src/gis-map/utils/holo-flow/index.d.ts +3 -1
- package/es/src/gis-map/utils/holo-flow/index.mjs +33 -16
- package/es/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.d.ts +31 -0
- package/es/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.mjs +98 -64
- package/es/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.d.ts +17 -3
- package/es/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.mjs +222 -123
- package/es/src/gis-map/utils/sketchView.d.ts +1 -0
- package/es/src/gis-map/utils/sketchView.mjs +3 -0
- package/es/src/types/index.d.ts +1 -0
- package/lib/src/gis-map/gis-map.vue.d.ts +34 -0
- package/lib/src/gis-map/gis-map.vue.js +1 -1
- package/lib/src/gis-map/index.d.ts +34 -0
- package/lib/src/gis-map/style/index.css +13 -1
- package/lib/src/gis-map/utils/holo-flow/index.d.ts +3 -1
- package/lib/src/gis-map/utils/holo-flow/index.js +1 -1
- package/lib/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.d.ts +31 -0
- package/lib/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.js +1 -1
- package/lib/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.d.ts +17 -3
- package/lib/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.js +1 -1
- package/lib/src/gis-map/utils/sketchView.d.ts +1 -0
- package/lib/src/gis-map/utils/sketchView.js +1 -1
- package/lib/src/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -41,6 +41,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
41
41
|
countdownPanels: ISignalCountdownProps[];
|
|
42
42
|
}, {}, {}>;
|
|
43
43
|
countdownPanelProps: {
|
|
44
|
+
flash: boolean;
|
|
44
45
|
displayMode: string;
|
|
45
46
|
crossId: string;
|
|
46
47
|
roadId: string;
|
|
@@ -92,6 +93,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
92
93
|
clearHoloTrace: () => void;
|
|
93
94
|
setInterpolate: (enable: boolean) => void;
|
|
94
95
|
handleHoloSignalData: (signalData: any) => Promise<void>;
|
|
96
|
+
initializeLampGroup: (data: any) => Promise<void>;
|
|
97
|
+
handleUniSignalData: (signalData: any) => void;
|
|
95
98
|
clearHoloSignal: () => void;
|
|
96
99
|
toggleTrafficInfo: (params: IToggleTrafficInfoParams) => void;
|
|
97
100
|
togglePause: (pause: boolean) => void;
|
|
@@ -162,6 +165,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
162
165
|
type: StringConstructor;
|
|
163
166
|
required: true;
|
|
164
167
|
};
|
|
168
|
+
flash: {
|
|
169
|
+
type: BooleanConstructor;
|
|
170
|
+
required: true;
|
|
171
|
+
};
|
|
165
172
|
crossId: {
|
|
166
173
|
type: StringConstructor;
|
|
167
174
|
required: true;
|
|
@@ -195,6 +202,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
195
202
|
required: true;
|
|
196
203
|
};
|
|
197
204
|
}, {
|
|
205
|
+
colors: string[];
|
|
198
206
|
props: any;
|
|
199
207
|
panelStyle: import("vue").ComputedRef<{
|
|
200
208
|
top: string;
|
|
@@ -202,14 +210,36 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
202
210
|
'transform-origin': string;
|
|
203
211
|
transform: string;
|
|
204
212
|
}>;
|
|
213
|
+
blImage: import("vue").ComputedRef<string>;
|
|
214
|
+
blNumberStyle: import("vue").ComputedRef<any>;
|
|
215
|
+
blLampStyle: import("vue").ComputedRef<{
|
|
216
|
+
display: string;
|
|
217
|
+
animation: string;
|
|
218
|
+
}>;
|
|
205
219
|
uImage: import("vue").ComputedRef<string>;
|
|
206
220
|
uNumberStyle: import("vue").ComputedRef<any>;
|
|
221
|
+
uLampStyle: import("vue").ComputedRef<{
|
|
222
|
+
display: string;
|
|
223
|
+
animation: string;
|
|
224
|
+
}>;
|
|
207
225
|
lImage: import("vue").ComputedRef<string>;
|
|
208
226
|
lNumberStyle: import("vue").ComputedRef<any>;
|
|
227
|
+
lLampStyle: import("vue").ComputedRef<{
|
|
228
|
+
display: string;
|
|
229
|
+
animation: string;
|
|
230
|
+
}>;
|
|
209
231
|
sImage: import("vue").ComputedRef<string>;
|
|
210
232
|
sNumberStyle: import("vue").ComputedRef<any>;
|
|
233
|
+
sLampStyle: import("vue").ComputedRef<{
|
|
234
|
+
display: string;
|
|
235
|
+
animation: string;
|
|
236
|
+
}>;
|
|
211
237
|
rImage: import("vue").ComputedRef<string>;
|
|
212
238
|
rNumberStyle: import("vue").ComputedRef<any>;
|
|
239
|
+
rLampStyle: import("vue").ComputedRef<{
|
|
240
|
+
display: string;
|
|
241
|
+
animation: string;
|
|
242
|
+
}>;
|
|
213
243
|
getColorString: (color: string | undefined) => "red" | "rgb(255, 192, 2)" | "lime" | "white";
|
|
214
244
|
getNumberStyle: (color: string | undefined) => any;
|
|
215
245
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -217,6 +247,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
217
247
|
type: StringConstructor;
|
|
218
248
|
required: true;
|
|
219
249
|
};
|
|
250
|
+
flash: {
|
|
251
|
+
type: BooleanConstructor;
|
|
252
|
+
required: true;
|
|
253
|
+
};
|
|
220
254
|
crossId: {
|
|
221
255
|
type: StringConstructor;
|
|
222
256
|
required: true;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import D, { registerStore as
|
|
1
|
+
import { defineComponent as $e, ref as k, reactive as qe, onMounted as Ke, getCurrentInstance as Je, onUnmounted as Re, computed as Xe, openBlock as O, createElementBlock as L, createElementVNode as f, withDirectives as Ye, vShow as Fe, Fragment as et, renderList as tt, createBlock as at } from "vue";
|
|
2
|
+
import D, { registerStore as nt } from "./stores/index.mjs";
|
|
3
3
|
import "./style/index.css";
|
|
4
|
-
import
|
|
4
|
+
import rt from "./utils/detect-gpu.mjs";
|
|
5
5
|
import T from "./utils/green-wave-band-controller/index.mjs";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
6
|
+
import st from "./utils/holo-flow/index.mjs";
|
|
7
|
+
import ot from "./utils/holo-flow/signal-countdown-panel.vue.mjs";
|
|
8
|
+
import it from "./utils/map-initializer.mjs";
|
|
9
|
+
import B from "./utils/open-drive-renderer/index.mjs";
|
|
10
|
+
import I from "./utils/overlay.mjs";
|
|
11
|
+
import ct from "./utils/queue-length.mjs";
|
|
12
12
|
import M from "./utils/road-config-tool/index.mjs";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
const
|
|
13
|
+
import lt from "./utils/signal-control-area-controller/edit-area.mjs";
|
|
14
|
+
import ut from "./utils/signal-control-area-controller/show-area.mjs";
|
|
15
|
+
import mt from "./utils/traffic-flow.mjs";
|
|
16
|
+
const pt = { class: "gis-viewer" }, gt = { style: { position: "absolute", bottom: "80px", left: "10px", "z-index": "9999" } }, Bt = /* @__PURE__ */ $e({
|
|
17
17
|
__name: "gis-map",
|
|
18
18
|
props: {
|
|
19
19
|
config: {},
|
|
@@ -24,46 +24,46 @@ const ut = { class: "gis-viewer" }, mt = { style: { position: "absolute", bottom
|
|
|
24
24
|
const S = k(null);
|
|
25
25
|
let s, u, c, o, a, n, d, t, l, r, m;
|
|
26
26
|
const y = k(!1);
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
|
|
27
|
+
nt();
|
|
28
|
+
const G = D.useAppDataStore, b = qe([]);
|
|
29
|
+
rt(), Ke(async () => {
|
|
30
30
|
if (!S.value)
|
|
31
31
|
return;
|
|
32
32
|
document.addEventListener("keydown", (g) => {
|
|
33
33
|
g.ctrlKey && g.key === "i" && (y.value = !y.value);
|
|
34
34
|
});
|
|
35
|
-
const e =
|
|
36
|
-
i.assetsRoot = A.assetsRoot || p,
|
|
35
|
+
const e = Je(), { $gisviewerAssetsRoot: p } = e.appContext.config.globalProperties, i = await (await fetch(A.config)).json();
|
|
36
|
+
i.assetsRoot = A.assetsRoot || p, G.mapConfig = i, u = new it(), s = await u.initialize({
|
|
37
37
|
container: S.value,
|
|
38
38
|
mapConfig: i,
|
|
39
|
-
markerClickCallback: (g, w, h,
|
|
40
|
-
v("markerClick", g, w, h,
|
|
39
|
+
markerClickCallback: (g, w, h, Ze) => {
|
|
40
|
+
v("markerClick", g, w, h, Ze);
|
|
41
41
|
},
|
|
42
42
|
mapClickCallback: (g, w, h) => {
|
|
43
43
|
v("mapClick", g, w, h);
|
|
44
44
|
}
|
|
45
|
-
}), a = new
|
|
46
|
-
}),
|
|
45
|
+
}), a = new st(s, b), await a.init(), v("mapLoaded");
|
|
46
|
+
}), Re(() => {
|
|
47
47
|
r == null || r.clearSignalControlArea(), t == null || t.clearOpenDrive(), a.clearHoloTrace(), a.clearHoloSignal(), o == null || o.disconnectTrafficFlow();
|
|
48
48
|
});
|
|
49
|
-
const
|
|
49
|
+
const H = Xe(() => s), z = () => {
|
|
50
50
|
const e = D.useAppDataStore;
|
|
51
51
|
e.saveTrackLog = !0;
|
|
52
|
-
},
|
|
52
|
+
}, P = () => {
|
|
53
53
|
a.downloadTrackLog();
|
|
54
|
-
},
|
|
54
|
+
}, W = () => {
|
|
55
55
|
C("vehicleId");
|
|
56
|
-
},
|
|
56
|
+
}, N = () => {
|
|
57
57
|
C("plateNumber");
|
|
58
|
-
}, E = async (e) => await u.setMapCenter(e), Q = async (e) => await u.setMapCamera(e), j = async (e) => await u.lookAt(e),
|
|
58
|
+
}, E = async (e) => await u.setMapCenter(e), Q = async (e) => await u.setMapCamera(e), j = async (e) => await u.lookAt(e), U = (e) => u.setLayerVisibility(e), Z = (e, p) => u.requestCoordinateTransform(e, p), $ = (e) => {
|
|
59
59
|
u.cancelCoordinateTransform(e);
|
|
60
|
-
},
|
|
60
|
+
}, q = (e) => {
|
|
61
61
|
u.setMapZoomRange(e);
|
|
62
|
-
},
|
|
62
|
+
}, K = (e) => (c || (c = new M(s)), c.showLaneNumber(e)), J = () => {
|
|
63
63
|
c == null || c.clearLaneNumber();
|
|
64
64
|
}, R = async (e) => (c || (c = new M(s)), await c.initializeSearch(e)), X = async () => c == null ? void 0 : c.calCrossIndicatorArea(), Y = async () => {
|
|
65
65
|
}, F = async (e, p) => {
|
|
66
|
-
o || (o = new
|
|
66
|
+
o || (o = new mt(s)), o.connectTrafficFlow(e, p);
|
|
67
67
|
}, ee = () => {
|
|
68
68
|
o == null || o.disconnectTrafficFlow();
|
|
69
69
|
}, te = async (e) => {
|
|
@@ -74,70 +74,74 @@ const ut = { class: "gis-viewer" }, mt = { style: { position: "absolute", bottom
|
|
|
74
74
|
a.setInterpolate(e);
|
|
75
75
|
}, re = async (e) => {
|
|
76
76
|
await a.handleSignalData(e);
|
|
77
|
-
}, se = () => {
|
|
78
|
-
a.
|
|
77
|
+
}, se = async (e) => {
|
|
78
|
+
await a.initializeLampGroup(e);
|
|
79
79
|
}, oe = (e) => {
|
|
80
|
+
a.handleUniSignalData(e);
|
|
81
|
+
}, ie = () => {
|
|
82
|
+
a.clearHoloSignal();
|
|
83
|
+
}, ce = (e) => {
|
|
80
84
|
o == null || o.toggleTrafficInfo(e), a == null || a.toggleTrafficInfo(e);
|
|
81
|
-
},
|
|
85
|
+
}, le = (e) => {
|
|
82
86
|
a == null || a.togglePause(e);
|
|
83
|
-
},
|
|
87
|
+
}, ue = (e) => {
|
|
84
88
|
o == null || o.toggleTrafficObject(e), a == null || a.toggleTrafficObject(e);
|
|
85
89
|
}, C = (e) => {
|
|
86
90
|
a == null || a.updatePanelContent(e);
|
|
87
|
-
},
|
|
91
|
+
}, me = async (e) => (n || (n = new I(s)), n.addOverlays(e)), pe = (e) => (n || (n = new I(s)), n.addMask(e)), ge = () => {
|
|
88
92
|
n == null || n.removeMask();
|
|
89
|
-
},
|
|
93
|
+
}, de = (e) => n == null ? void 0 : n.removeOverlaysByType(e), fe = (e) => n == null ? void 0 : n.removeOverlaysById(e), Se = () => n == null ? void 0 : n.removeAllOverlays(), ye = () => {
|
|
90
94
|
n == null || n.showAllOverlays();
|
|
91
|
-
},
|
|
92
|
-
d || (d = new
|
|
93
|
-
},
|
|
95
|
+
}, Ce = (e) => {
|
|
96
|
+
d || (d = new ct(s)), d.updateQueueLength(e);
|
|
97
|
+
}, ve = () => {
|
|
94
98
|
d == null || d.removeQueueLength();
|
|
95
|
-
},
|
|
99
|
+
}, we = async (e, p) => (t || (t = new B(s)), await t.showOpenDriveFromServer(e, p)), he = async (e) => (t || (t = new B(s)), await t.clearOpenDrive(), await t.showOpenDriveFromFile(e)), Oe = async () => await (t == null ? void 0 : t.clearOpenDrive()), be = async (e) => t ? await (t == null ? void 0 : t.findSumo(e)) : {
|
|
96
100
|
status: -1,
|
|
97
101
|
message: "未加载OpenDrive地图"
|
|
98
|
-
},
|
|
102
|
+
}, Ae = async (e) => t ? t.selectSumo(e) : {
|
|
99
103
|
status: -1,
|
|
100
104
|
message: "未加载OpenDrive地图"
|
|
101
|
-
},
|
|
105
|
+
}, ke = async (e) => t ? t.unselectSumo(e) : {
|
|
102
106
|
status: -1,
|
|
103
107
|
message: "未加载OpenDrive地图"
|
|
104
|
-
},
|
|
108
|
+
}, Le = async (e) => t ? await t.geometrySearch(e) : {
|
|
105
109
|
status: -1,
|
|
106
110
|
message: "未加载OpenDrive地图"
|
|
107
|
-
},
|
|
111
|
+
}, De = async (e) => t ? await t.getSumoInfo(e) : {
|
|
108
112
|
status: -1,
|
|
109
113
|
message: "未加载OpenDrive地图"
|
|
110
|
-
},
|
|
114
|
+
}, Te = async (e) => t ? await (t == null ? void 0 : t.splitLane(e)) : {
|
|
111
115
|
status: -1,
|
|
112
116
|
message: "未加载OpenDrive地图"
|
|
113
|
-
},
|
|
117
|
+
}, Be = async () => t ? t == null ? void 0 : t.clearSplitLane() : {
|
|
114
118
|
status: -1,
|
|
115
119
|
message: "未加载OpenDrive地图"
|
|
116
|
-
},
|
|
120
|
+
}, Ie = async (e) => (r || (r = new ut(s)), await r.showSignalControlArea(e)), Me = async () => await (r == null ? void 0 : r.clearSignalControlArea()), _e = (e) => r == null ? void 0 : r.setLayerVisibility(e), xe = async (e) => r ? await (r == null ? void 0 : r.locateSignalControlArea(e)) : { status: -1, message: "未加载信号控制区" }, Ve = async (e) => r ? await r.highlightSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, Ge = () => r ? r.resetHighlight() : { status: -1, message: "未加载信号控制区" }, He = (e) => (l || (l = new lt(s)), l.showSubSignalControlArea(e)), ze = (e) => l ? l.editSubSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, Pe = () => l ? l.stopEditSubSignalControlArea() : { status: -1, message: "未加载信号控制区" }, We = (e) => l ? l.selectSubSignalControlAreaCross(e) : { status: -1, message: "未加载信号控制区" }, Ne = (e) => l ? l.unselectSubSignalControlAreaCross(e) : { status: -1, message: "未加载信号控制区" }, Ee = (e) => {
|
|
117
121
|
if (!l)
|
|
118
122
|
return { status: -1, message: "未加载信号控制区" };
|
|
119
|
-
},
|
|
123
|
+
}, Qe = (e) => (m || (m = new T(s)), m.addGreenWaveBand(e)), je = () => {
|
|
120
124
|
if (!m)
|
|
121
125
|
return { status: -1, message: "未加载绿波带" };
|
|
122
126
|
m.stopAddGreenWaveBand();
|
|
123
|
-
},
|
|
127
|
+
}, Ue = async (e) => (m || (m = new T(s)), await m.showGreenWaveBand(e)), A = _, v = V;
|
|
124
128
|
return x({
|
|
125
|
-
mapViewer:
|
|
126
|
-
setLayerVisibility:
|
|
129
|
+
mapViewer: H,
|
|
130
|
+
setLayerVisibility: U,
|
|
127
131
|
setMapCenter: E,
|
|
128
132
|
lookAt: j,
|
|
129
133
|
setMapCamera: Q,
|
|
130
|
-
setMapZoomRange:
|
|
131
|
-
requestCoordinateTransform:
|
|
132
|
-
cancelCoordinateTransform:
|
|
133
|
-
addOverlays:
|
|
134
|
-
addMask:
|
|
135
|
-
removeMask:
|
|
136
|
-
showAllOverlays:
|
|
137
|
-
removeOverlaysByType:
|
|
138
|
-
removeOverlaysById:
|
|
139
|
-
removeAllOverlays:
|
|
140
|
-
showLaneNumber:
|
|
134
|
+
setMapZoomRange: q,
|
|
135
|
+
requestCoordinateTransform: Z,
|
|
136
|
+
cancelCoordinateTransform: $,
|
|
137
|
+
addOverlays: me,
|
|
138
|
+
addMask: pe,
|
|
139
|
+
removeMask: ge,
|
|
140
|
+
showAllOverlays: ye,
|
|
141
|
+
removeOverlaysByType: de,
|
|
142
|
+
removeOverlaysById: fe,
|
|
143
|
+
removeAllOverlays: Se,
|
|
144
|
+
showLaneNumber: K,
|
|
141
145
|
clearLaneNumber: J,
|
|
142
146
|
initializeAreaTool: R,
|
|
143
147
|
calCrossIndicatorArea: X,
|
|
@@ -146,67 +150,70 @@ const ut = { class: "gis-viewer" }, mt = { style: { position: "absolute", bottom
|
|
|
146
150
|
disconnectCarFlow: ee,
|
|
147
151
|
handleHoloVehicleTraceData: te,
|
|
148
152
|
clearHoloTrace: ae,
|
|
153
|
+
initializeLampGroup: se,
|
|
154
|
+
handleUniSignalData: oe,
|
|
149
155
|
handleHoloSignalData: re,
|
|
150
|
-
clearHoloSignal:
|
|
156
|
+
clearHoloSignal: ie,
|
|
151
157
|
setInterpolate: ne,
|
|
152
|
-
toggleTrafficInfo:
|
|
153
|
-
toggleTrafficObject:
|
|
158
|
+
toggleTrafficInfo: ce,
|
|
159
|
+
toggleTrafficObject: ue,
|
|
154
160
|
toggleVehicleInfo: C,
|
|
155
|
-
togglePause:
|
|
156
|
-
updateQueueLength:
|
|
157
|
-
removeQueueLength:
|
|
158
|
-
showOpenDriveFromServer:
|
|
159
|
-
showOpenDriveFromFile:
|
|
160
|
-
clearOpenDrive:
|
|
161
|
-
geometrySearchInOpenDrive:
|
|
162
|
-
findSumoInOpenDrive:
|
|
163
|
-
selectSumoInOpenDrive:
|
|
164
|
-
unselectSumoInOpenDrive:
|
|
165
|
-
getSumoInfo:
|
|
166
|
-
splitOpenDriveLane:
|
|
167
|
-
clearSplitOpenDriveLane:
|
|
168
|
-
showSignalControlArea:
|
|
169
|
-
clearSignalControlArea:
|
|
170
|
-
setSignalControlAreaVisibility:
|
|
171
|
-
locateSignalControlArea:
|
|
172
|
-
highlightSignalControlArea:
|
|
173
|
-
resetHighlightSignalControlArea:
|
|
174
|
-
showSubSignalControlArea:
|
|
175
|
-
editSubSignalControlArea:
|
|
176
|
-
stopEditSubSignalControlArea:
|
|
177
|
-
selectSubSignalControlAreaCross:
|
|
178
|
-
unselectSubSignalControlAreaCross:
|
|
179
|
-
changeSubSignalControlAreaBorderVisibility:
|
|
180
|
-
addGreenWaveBand:
|
|
181
|
-
stopAddGreenWaveBand:
|
|
182
|
-
showGreenWaveBand:
|
|
183
|
-
}), (e, p) => (O(), L("div",
|
|
161
|
+
togglePause: le,
|
|
162
|
+
updateQueueLength: Ce,
|
|
163
|
+
removeQueueLength: ve,
|
|
164
|
+
showOpenDriveFromServer: we,
|
|
165
|
+
showOpenDriveFromFile: he,
|
|
166
|
+
clearOpenDrive: Oe,
|
|
167
|
+
geometrySearchInOpenDrive: Le,
|
|
168
|
+
findSumoInOpenDrive: be,
|
|
169
|
+
selectSumoInOpenDrive: Ae,
|
|
170
|
+
unselectSumoInOpenDrive: ke,
|
|
171
|
+
getSumoInfo: De,
|
|
172
|
+
splitOpenDriveLane: Te,
|
|
173
|
+
clearSplitOpenDriveLane: Be,
|
|
174
|
+
showSignalControlArea: Ie,
|
|
175
|
+
clearSignalControlArea: Me,
|
|
176
|
+
setSignalControlAreaVisibility: _e,
|
|
177
|
+
locateSignalControlArea: xe,
|
|
178
|
+
highlightSignalControlArea: Ve,
|
|
179
|
+
resetHighlightSignalControlArea: Ge,
|
|
180
|
+
showSubSignalControlArea: He,
|
|
181
|
+
editSubSignalControlArea: ze,
|
|
182
|
+
stopEditSubSignalControlArea: Pe,
|
|
183
|
+
selectSubSignalControlAreaCross: We,
|
|
184
|
+
unselectSubSignalControlAreaCross: Ne,
|
|
185
|
+
changeSubSignalControlAreaBorderVisibility: Ee,
|
|
186
|
+
addGreenWaveBand: Qe,
|
|
187
|
+
stopAddGreenWaveBand: je,
|
|
188
|
+
showGreenWaveBand: Ue
|
|
189
|
+
}), (e, p) => (O(), L("div", pt, [
|
|
184
190
|
f("div", {
|
|
185
191
|
class: "gis-viewer-main",
|
|
186
192
|
ref_key: "mapContainer",
|
|
187
193
|
ref: S
|
|
188
194
|
}, [
|
|
189
|
-
|
|
195
|
+
Ye(f("div", gt, [
|
|
190
196
|
f("button", {
|
|
191
197
|
style: { "margin-right": "10px" },
|
|
192
|
-
onClick:
|
|
198
|
+
onClick: z
|
|
193
199
|
}, " 开始记录 "),
|
|
194
200
|
f("button", {
|
|
195
201
|
style: { "margin-right": "10px" },
|
|
196
|
-
onClick:
|
|
202
|
+
onClick: P
|
|
197
203
|
}, " 下载日志 "),
|
|
198
204
|
f("button", {
|
|
199
205
|
style: { "margin-right": "10px" },
|
|
200
|
-
onClick:
|
|
206
|
+
onClick: W
|
|
201
207
|
}, " 显示车辆id "),
|
|
202
|
-
f("button", { onClick:
|
|
208
|
+
f("button", { onClick: N }, "显示车辆号牌")
|
|
203
209
|
], 512), [
|
|
204
|
-
[
|
|
210
|
+
[Fe, y.value]
|
|
205
211
|
])
|
|
206
212
|
], 512),
|
|
207
|
-
(O(!0), L(
|
|
213
|
+
(O(!0), L(et, null, tt(b, (i, g) => (O(), at(ot, {
|
|
208
214
|
key: g,
|
|
209
215
|
"display-mode": i.displayMode,
|
|
216
|
+
flash: i.flash,
|
|
210
217
|
"road-id": i.crossId,
|
|
211
218
|
"cross-id": i.roadId,
|
|
212
219
|
"map-point": i.mapPoint,
|
|
@@ -215,10 +222,10 @@ const ut = { class: "gis-viewer" }, mt = { style: { position: "absolute", bottom
|
|
|
215
222
|
rotation: i.rotation,
|
|
216
223
|
scale: i.scale,
|
|
217
224
|
"lamp-status": i.lampStatus
|
|
218
|
-
}, null, 8, ["display-mode", "road-id", "cross-id", "map-point", "stop-line", "position", "rotation", "scale", "lamp-status"]))), 128))
|
|
225
|
+
}, null, 8, ["display-mode", "flash", "road-id", "cross-id", "map-point", "stop-line", "position", "rotation", "scale", "lamp-status"]))), 128))
|
|
219
226
|
]));
|
|
220
227
|
}
|
|
221
228
|
});
|
|
222
229
|
export {
|
|
223
|
-
|
|
230
|
+
Bt as default
|
|
224
231
|
};
|
|
@@ -28,6 +28,7 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
28
28
|
countdownPanels: import("../types").ISignalCountdownProps[];
|
|
29
29
|
}, {}, {}>;
|
|
30
30
|
countdownPanelProps: {
|
|
31
|
+
flash: boolean;
|
|
31
32
|
displayMode: string;
|
|
32
33
|
crossId: string;
|
|
33
34
|
roadId: string;
|
|
@@ -79,6 +80,8 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
79
80
|
clearHoloTrace: () => void;
|
|
80
81
|
setInterpolate: (enable: boolean) => void;
|
|
81
82
|
handleHoloSignalData: (signalData: any) => Promise<void>;
|
|
83
|
+
initializeLampGroup: (data: any) => Promise<void>;
|
|
84
|
+
handleUniSignalData: (signalData: any) => void;
|
|
82
85
|
clearHoloSignal: () => void;
|
|
83
86
|
toggleTrafficInfo: (params: import("../types").IToggleTrafficInfoParams) => void;
|
|
84
87
|
togglePause: (pause: boolean) => void;
|
|
@@ -149,6 +152,10 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
149
152
|
type: StringConstructor;
|
|
150
153
|
required: true;
|
|
151
154
|
};
|
|
155
|
+
flash: {
|
|
156
|
+
type: BooleanConstructor;
|
|
157
|
+
required: true;
|
|
158
|
+
};
|
|
152
159
|
crossId: {
|
|
153
160
|
type: StringConstructor;
|
|
154
161
|
required: true;
|
|
@@ -182,6 +189,7 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
182
189
|
required: true;
|
|
183
190
|
};
|
|
184
191
|
}, {
|
|
192
|
+
colors: string[];
|
|
185
193
|
props: any;
|
|
186
194
|
panelStyle: import("vue").ComputedRef<{
|
|
187
195
|
top: string;
|
|
@@ -189,14 +197,36 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
189
197
|
'transform-origin': string;
|
|
190
198
|
transform: string;
|
|
191
199
|
}>;
|
|
200
|
+
blImage: import("vue").ComputedRef<string>;
|
|
201
|
+
blNumberStyle: import("vue").ComputedRef<any>;
|
|
202
|
+
blLampStyle: import("vue").ComputedRef<{
|
|
203
|
+
display: string;
|
|
204
|
+
animation: string;
|
|
205
|
+
}>;
|
|
192
206
|
uImage: import("vue").ComputedRef<string>;
|
|
193
207
|
uNumberStyle: import("vue").ComputedRef<any>;
|
|
208
|
+
uLampStyle: import("vue").ComputedRef<{
|
|
209
|
+
display: string;
|
|
210
|
+
animation: string;
|
|
211
|
+
}>;
|
|
194
212
|
lImage: import("vue").ComputedRef<string>;
|
|
195
213
|
lNumberStyle: import("vue").ComputedRef<any>;
|
|
214
|
+
lLampStyle: import("vue").ComputedRef<{
|
|
215
|
+
display: string;
|
|
216
|
+
animation: string;
|
|
217
|
+
}>;
|
|
196
218
|
sImage: import("vue").ComputedRef<string>;
|
|
197
219
|
sNumberStyle: import("vue").ComputedRef<any>;
|
|
220
|
+
sLampStyle: import("vue").ComputedRef<{
|
|
221
|
+
display: string;
|
|
222
|
+
animation: string;
|
|
223
|
+
}>;
|
|
198
224
|
rImage: import("vue").ComputedRef<string>;
|
|
199
225
|
rNumberStyle: import("vue").ComputedRef<any>;
|
|
226
|
+
rLampStyle: import("vue").ComputedRef<{
|
|
227
|
+
display: string;
|
|
228
|
+
animation: string;
|
|
229
|
+
}>;
|
|
200
230
|
getColorString: (color: string | undefined) => "red" | "rgb(255, 192, 2)" | "lime" | "white";
|
|
201
231
|
getNumberStyle: (color: string | undefined) => any;
|
|
202
232
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -204,6 +234,10 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
204
234
|
type: StringConstructor;
|
|
205
235
|
required: true;
|
|
206
236
|
};
|
|
237
|
+
flash: {
|
|
238
|
+
type: BooleanConstructor;
|
|
239
|
+
required: true;
|
|
240
|
+
};
|
|
207
241
|
crossId: {
|
|
208
242
|
type: StringConstructor;
|
|
209
243
|
required: true;
|
|
@@ -11,6 +11,17 @@
|
|
|
11
11
|
.esri-view .esri-view-surface:focus::after {
|
|
12
12
|
outline: none !important;
|
|
13
13
|
}
|
|
14
|
+
@keyframes blink {
|
|
15
|
+
0% {
|
|
16
|
+
opacity: 1;
|
|
17
|
+
}
|
|
18
|
+
50% {
|
|
19
|
+
opacity: 0;
|
|
20
|
+
}
|
|
21
|
+
100% {
|
|
22
|
+
opacity: 1;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
14
25
|
.signal-countdown-panel {
|
|
15
26
|
position: absolute;
|
|
16
27
|
display: flex;
|
|
@@ -21,7 +32,7 @@
|
|
|
21
32
|
.signal-countdown-container {
|
|
22
33
|
margin: 0 1px;
|
|
23
34
|
padding: 0px;
|
|
24
|
-
background-color: rgba(0, 0, 0, 0.
|
|
35
|
+
background-color: rgba(0, 0, 0, 0.9);
|
|
25
36
|
border-style: solid;
|
|
26
37
|
border-color: turquoise;
|
|
27
38
|
border-width: 2px;
|
|
@@ -36,4 +47,5 @@
|
|
|
36
47
|
}
|
|
37
48
|
.signal-countdown-number {
|
|
38
49
|
font: 28px Digital;
|
|
50
|
+
height: 34px;
|
|
39
51
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISignalCountdownProps, IToggleTrafficInfoParams } from '../../../types';
|
|
1
|
+
import { IResult, ISignalCountdownProps, IToggleTrafficInfoParams } from '../../../types';
|
|
2
2
|
export default class Index {
|
|
3
3
|
private readonly view;
|
|
4
4
|
private traceHoloFlow;
|
|
@@ -16,6 +16,8 @@ export default class Index {
|
|
|
16
16
|
togglePause(pause: boolean): void;
|
|
17
17
|
updatePanelContent(contentType: string): void;
|
|
18
18
|
handleSignalData(data: any): Promise<void>;
|
|
19
|
+
initializeLampGroup(data: any): Promise<void>;
|
|
20
|
+
handleUniSignalData(data: any): IResult;
|
|
19
21
|
clearHoloSignal(): void;
|
|
20
22
|
setInterpolate(enable: boolean): void;
|
|
21
23
|
downloadTrackLog(): void;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { toRaw as i } from "vue";
|
|
2
|
-
import { EVehiclePlateState as
|
|
2
|
+
import { EVehiclePlateState as l } from "../../../types/index.mjs";
|
|
3
3
|
import n from "../../stores/index.mjs";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import c from "./signal-holo-flow.mjs";
|
|
5
|
+
import s from "./signal-holo-flow-lsr.mjs";
|
|
6
|
+
import w from "./trace-holo-flow.mjs";
|
|
7
7
|
class m {
|
|
8
|
-
constructor(o,
|
|
9
|
-
this.view = o, this.signalCountdownPanelProps =
|
|
8
|
+
constructor(o, a) {
|
|
9
|
+
this.view = o, this.signalCountdownPanelProps = a;
|
|
10
10
|
}
|
|
11
11
|
async init() {
|
|
12
|
-
this.traceHoloFlow = new
|
|
12
|
+
this.traceHoloFlow = new w(this.view), await this.traceHoloFlow.init();
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* 处理全息流轨迹数据
|
|
@@ -40,34 +40,51 @@ class m {
|
|
|
40
40
|
this.traceHoloFlow.togglePause(o);
|
|
41
41
|
}
|
|
42
42
|
updatePanelContent(o) {
|
|
43
|
-
let
|
|
43
|
+
let a = l.None;
|
|
44
44
|
switch (o) {
|
|
45
45
|
case "none":
|
|
46
|
-
|
|
46
|
+
a = l.None;
|
|
47
47
|
break;
|
|
48
48
|
case "plateNumber":
|
|
49
|
-
|
|
49
|
+
a = l.PlateNumber;
|
|
50
50
|
break;
|
|
51
51
|
case "vehicleId":
|
|
52
|
-
|
|
52
|
+
a = l.Id;
|
|
53
53
|
break;
|
|
54
54
|
case "mix":
|
|
55
|
-
|
|
55
|
+
a = l.Mix;
|
|
56
56
|
break;
|
|
57
57
|
}
|
|
58
|
-
this.traceHoloFlow.updatePanelContent(
|
|
58
|
+
this.traceHoloFlow.updatePanelContent(a);
|
|
59
59
|
}
|
|
60
60
|
async handleSignalData(o) {
|
|
61
|
-
var
|
|
61
|
+
var a, e;
|
|
62
62
|
if (!this.signalHoloFlow) {
|
|
63
63
|
const t = n.useAppDataStore;
|
|
64
|
-
((
|
|
64
|
+
((e = (a = i(t.mapConfig).holoFlow) == null ? void 0 : a.signal) == null ? void 0 : e.style) === "LSR" ? this.signalHoloFlow = new s(
|
|
65
65
|
this.view,
|
|
66
66
|
this.signalCountdownPanelProps
|
|
67
|
-
) : this.signalHoloFlow = new
|
|
67
|
+
) : this.signalHoloFlow = new c(this.view), await this.signalHoloFlow.initializeLayer();
|
|
68
68
|
}
|
|
69
69
|
await this.signalHoloFlow.handleHoloSignalData(o);
|
|
70
70
|
}
|
|
71
|
+
async initializeLampGroup(o) {
|
|
72
|
+
var a, e;
|
|
73
|
+
if (!this.signalHoloFlow) {
|
|
74
|
+
const t = n.useAppDataStore;
|
|
75
|
+
if (((e = (a = i(t.mapConfig).holoFlow) == null ? void 0 : a.signal) == null ? void 0 : e.style) === "LSR")
|
|
76
|
+
this.signalHoloFlow = new s(
|
|
77
|
+
this.view,
|
|
78
|
+
this.signalCountdownPanelProps
|
|
79
|
+
);
|
|
80
|
+
else
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
await this.signalHoloFlow.initializeLayer(), this.signalHoloFlow.initializeLampGroup(o);
|
|
84
|
+
}
|
|
85
|
+
handleUniSignalData(o) {
|
|
86
|
+
return this.signalHoloFlow.handleUniSignalData(o);
|
|
87
|
+
}
|
|
71
88
|
clearHoloSignal() {
|
|
72
89
|
var o;
|
|
73
90
|
(o = this.signalHoloFlow) == null || o.clearSignal();
|