gisviewer-vue3-arcgis 1.0.167 → 1.0.169
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 +13 -2
- package/es/src/gis-map/gis-map.vue.mjs +138 -135
- package/es/src/gis-map/index.d.ts +13 -2
- package/es/src/gis-map/utils/holo-flow/index.mjs +37 -36
- package/es/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.d.ts +8 -0
- package/es/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.mjs +2 -2
- package/es/src/gis-map/utils/holo-flow/signal-countdown-panel.vue2.mjs +36 -35
- package/es/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.d.ts +2 -0
- package/es/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.mjs +100 -84
- package/es/src/gis-map/utils/holo-flow/signal-holo-flow.mjs +6 -5
- package/es/src/gis-map/utils/holo-flow/trace-renderer-external.d.ts +1 -1
- package/es/src/gis-map/utils/holo-flow/trace-renderer-external.mjs +10 -9
- package/es/src/gis-map/utils/holo-flow/trace-renderer-layer.mjs +6 -5
- package/es/src/gis-map/utils/signal-control-area-controller/index.d.ts +3 -1
- package/es/src/gis-map/utils/signal-control-area-controller/index.mjs +184 -79
- package/es/src/types/index.d.ts +1 -0
- package/es/style.css +1 -1
- package/lib/src/gis-map/gis-map.vue.d.ts +13 -2
- package/lib/src/gis-map/gis-map.vue.js +1 -1
- package/lib/src/gis-map/index.d.ts +13 -2
- 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 +8 -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-countdown-panel.vue2.js +1 -1
- package/lib/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.d.ts +2 -0
- package/lib/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.js +1 -1
- package/lib/src/gis-map/utils/holo-flow/signal-holo-flow.js +1 -1
- package/lib/src/gis-map/utils/holo-flow/trace-renderer-external.d.ts +1 -1
- package/lib/src/gis-map/utils/holo-flow/trace-renderer-external.js +1 -1
- package/lib/src/gis-map/utils/holo-flow/trace-renderer-layer.js +1 -1
- package/lib/src/gis-map/utils/signal-control-area-controller/index.d.ts +3 -1
- package/lib/src/gis-map/utils/signal-control-area-controller/index.js +1 -1
- package/lib/src/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -47,6 +47,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
47
47
|
top: number;
|
|
48
48
|
};
|
|
49
49
|
rotation: number;
|
|
50
|
+
scale: number;
|
|
50
51
|
lampStatus: {
|
|
51
52
|
uNumber?: number | undefined;
|
|
52
53
|
uColor?: string | undefined;
|
|
@@ -81,7 +82,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
81
82
|
calRoadIndicatorArea: () => Promise<void>;
|
|
82
83
|
connectCarFlow: (url: string, options?: any) => Promise<void>;
|
|
83
84
|
disconnectCarFlow: () => void;
|
|
84
|
-
handleHoloVehicleTraceData: (vehicleTrace: any) => void
|
|
85
|
+
handleHoloVehicleTraceData: (vehicleTrace: any) => Promise<void>;
|
|
85
86
|
clearHoloTrace: () => void;
|
|
86
87
|
setInterpolate: (enable: boolean) => void;
|
|
87
88
|
handleHoloSignalData: (signalData: any) => Promise<void>;
|
|
@@ -112,7 +113,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
112
113
|
status: number;
|
|
113
114
|
message: string;
|
|
114
115
|
}>;
|
|
115
|
-
showSignalControlArea: (params: any) =>
|
|
116
|
+
showSignalControlArea: (params: any) => import("../types").IResult;
|
|
116
117
|
clearSignalControlArea: () => void;
|
|
117
118
|
locateSignalControlArea: (params: {
|
|
118
119
|
id: string;
|
|
@@ -121,6 +122,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
121
122
|
id: string;
|
|
122
123
|
}) => Promise<import("../types").IResult>;
|
|
123
124
|
resetHighlightSignalControlArea: () => import("../types").IResult;
|
|
125
|
+
showSubSignalControlArea: (params: any) => import("../types").IResult;
|
|
126
|
+
editSubSignalControlArea: () => import("../types").IResult;
|
|
124
127
|
props: any;
|
|
125
128
|
emit: (event: "mapLoaded" | "markerClick" | "mapClick", ...args: any[]) => void;
|
|
126
129
|
SignalCountdownPanel: import("vue").DefineComponent<{
|
|
@@ -144,6 +147,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
144
147
|
type: ArrayConstructor;
|
|
145
148
|
required: true;
|
|
146
149
|
};
|
|
150
|
+
scale: {
|
|
151
|
+
type: NumberConstructor;
|
|
152
|
+
required: true;
|
|
153
|
+
};
|
|
147
154
|
position: {
|
|
148
155
|
type: ObjectConstructor;
|
|
149
156
|
required: true;
|
|
@@ -202,6 +209,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
202
209
|
type: ArrayConstructor;
|
|
203
210
|
required: true;
|
|
204
211
|
};
|
|
212
|
+
scale: {
|
|
213
|
+
type: NumberConstructor;
|
|
214
|
+
required: true;
|
|
215
|
+
};
|
|
205
216
|
position: {
|
|
206
217
|
type: ObjectConstructor;
|
|
207
218
|
required: true;
|
|
@@ -1,194 +1,197 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { storeToRefs as
|
|
3
|
-
import
|
|
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
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
const
|
|
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(
|
|
22
|
-
const d =
|
|
23
|
-
let s, l,
|
|
24
|
-
const f =
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
|
|
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
28
|
if (!d.value)
|
|
29
29
|
return;
|
|
30
30
|
document.addEventListener("keydown", (m) => {
|
|
31
31
|
m.ctrlKey && m.key === "i" && (f.value = !f.value);
|
|
32
32
|
});
|
|
33
|
-
const e =
|
|
34
|
-
|
|
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
35
|
container: d.value,
|
|
36
|
-
mapConfig:
|
|
37
|
-
markerClickCallback: (m,
|
|
38
|
-
w("markerClick", m,
|
|
36
|
+
mapConfig: i,
|
|
37
|
+
markerClickCallback: (m, S, y, He) => {
|
|
38
|
+
w("markerClick", m, S, y, He);
|
|
39
39
|
},
|
|
40
|
-
mapClickCallback: (m,
|
|
41
|
-
w("mapClick", m,
|
|
40
|
+
mapClickCallback: (m, S, y) => {
|
|
41
|
+
w("mapClick", m, S, y);
|
|
42
42
|
}
|
|
43
|
-
}),
|
|
44
|
-
}),
|
|
45
|
-
r == null || r.clearSignalControlArea(), t == null || t.clearOpenDrive(),
|
|
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();
|
|
46
46
|
});
|
|
47
|
-
const
|
|
48
|
-
const e =
|
|
47
|
+
const P = ze(() => s), B = () => {
|
|
48
|
+
const e = A.useAppDataStore;
|
|
49
49
|
e.saveTrackLog = !0;
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
},
|
|
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) => {
|
|
53
53
|
l.cancelCoordinateTransform(e);
|
|
54
|
-
},
|
|
54
|
+
}, q = (e) => {
|
|
55
55
|
l.setMapZoomRange(e);
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
o || (o = new
|
|
61
|
-
},
|
|
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
62
|
o == null || o.disconnectTrafficFlow();
|
|
63
|
-
}, G = (e) => {
|
|
64
|
-
n.handleVehicleTraceData(e);
|
|
65
|
-
}, J = () => {
|
|
66
|
-
n.clearHoloTrace();
|
|
67
|
-
}, W = (e) => {
|
|
68
|
-
n.setInterpolate(e);
|
|
69
63
|
}, X = async (e) => {
|
|
70
|
-
await
|
|
64
|
+
a || (a = new T(s), await a.init()), a.handleVehicleTraceData(e);
|
|
71
65
|
}, Y = () => {
|
|
72
|
-
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
},
|
|
76
|
-
|
|
66
|
+
a.clearHoloTrace();
|
|
67
|
+
}, F = (e) => {
|
|
68
|
+
a.setInterpolate(e);
|
|
69
|
+
}, ee = async (e) => {
|
|
70
|
+
await a.handleSignalData(e);
|
|
71
|
+
}, te = () => {
|
|
72
|
+
a.clearHoloSignal();
|
|
77
73
|
}, ae = (e) => {
|
|
78
|
-
o == null || o.
|
|
74
|
+
o == null || o.toggleTrafficInfo(e), a == null || a.toggleTrafficInfo(e);
|
|
79
75
|
}, ne = (e) => {
|
|
80
|
-
|
|
81
|
-
},
|
|
82
|
-
a == null || a.
|
|
83
|
-
},
|
|
84
|
-
a == null || a.
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
}, 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 = () => {
|
|
88
88
|
p == null || p.removeQueueLength();
|
|
89
|
-
},
|
|
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)) : {
|
|
90
90
|
status: -1,
|
|
91
91
|
message: "未加载OpenDrive地图"
|
|
92
|
-
},
|
|
92
|
+
}, ve = async (e) => t ? t.selectSumo(e) : {
|
|
93
93
|
status: -1,
|
|
94
94
|
message: "未加载OpenDrive地图"
|
|
95
|
-
},
|
|
95
|
+
}, Ce = async (e) => t ? t.unselectSumo(e) : {
|
|
96
96
|
status: -1,
|
|
97
97
|
message: "未加载OpenDrive地图"
|
|
98
|
-
},
|
|
98
|
+
}, he = async (e) => t ? await t.geometrySearch(e) : {
|
|
99
99
|
status: -1,
|
|
100
100
|
message: "未加载OpenDrive地图"
|
|
101
|
-
},
|
|
101
|
+
}, Oe = async (e) => t ? await t.getSumoInfo(e) : {
|
|
102
102
|
status: -1,
|
|
103
103
|
message: "未加载OpenDrive地图"
|
|
104
|
-
},
|
|
104
|
+
}, ke = async (e) => t ? await (t == null ? void 0 : t.splitLane(e)) : {
|
|
105
105
|
status: -1,
|
|
106
106
|
message: "未加载OpenDrive地图"
|
|
107
|
-
},
|
|
107
|
+
}, Ae = async () => t ? t == null ? void 0 : t.clearSplitLane() : {
|
|
108
108
|
status: -1,
|
|
109
109
|
message: "未加载OpenDrive地图"
|
|
110
|
-
},
|
|
110
|
+
}, Te = (e) => (r || (r = new I(s)), r.showSignalControlArea(e)), Le = () => {
|
|
111
111
|
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:
|
|
132
|
-
calCrossIndicatorArea:
|
|
133
|
-
calRoadIndicatorArea:
|
|
134
|
-
connectCarFlow:
|
|
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:
|
|
149
|
-
clearOpenDrive:
|
|
150
|
-
geometrySearchInOpenDrive:
|
|
151
|
-
findSumoInOpenDrive:
|
|
152
|
-
selectSumoInOpenDrive:
|
|
153
|
-
unselectSumoInOpenDrive:
|
|
154
|
-
getSumoInfo:
|
|
155
|
-
splitOpenDriveLane:
|
|
156
|
-
clearSplitOpenDriveLane:
|
|
157
|
-
showSignalControlArea:
|
|
158
|
-
clearSignalControlArea:
|
|
159
|
-
locateSignalControlArea:
|
|
160
|
-
highlightSignalControlArea:
|
|
161
|
-
resetHighlightSignalControlArea:
|
|
162
|
-
|
|
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, [
|
|
163
165
|
g("div", {
|
|
164
166
|
class: "gis-viewer-main",
|
|
165
167
|
ref_key: "mapContainer",
|
|
166
168
|
ref: d
|
|
167
169
|
}, [
|
|
168
|
-
|
|
170
|
+
Ne(g("div", Xe, [
|
|
169
171
|
g("button", {
|
|
170
172
|
style: { "margin-right": "10px" },
|
|
171
|
-
onClick:
|
|
173
|
+
onClick: B
|
|
172
174
|
}, " 开始记录 "),
|
|
173
|
-
g("button", { onClick:
|
|
175
|
+
g("button", { onClick: V }, "下载日志")
|
|
174
176
|
], 512), [
|
|
175
|
-
[
|
|
177
|
+
[Qe, f.value]
|
|
176
178
|
])
|
|
177
179
|
], 512),
|
|
178
|
-
(
|
|
180
|
+
(v(!0), k(je, null, Ee(Ze(x), (i, m) => (v(), qe(Ue, {
|
|
179
181
|
key: m,
|
|
180
|
-
"display-mode":
|
|
181
|
-
"road-id":
|
|
182
|
-
"cross-id":
|
|
183
|
-
"map-point":
|
|
184
|
-
"stop-line":
|
|
185
|
-
position:
|
|
186
|
-
rotation:
|
|
187
|
-
|
|
188
|
-
|
|
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))
|
|
189
192
|
]));
|
|
190
193
|
}
|
|
191
194
|
});
|
|
192
195
|
export {
|
|
193
|
-
|
|
196
|
+
mt as default
|
|
194
197
|
};
|
|
@@ -36,6 +36,7 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
36
36
|
top: number;
|
|
37
37
|
};
|
|
38
38
|
rotation: number;
|
|
39
|
+
scale: number;
|
|
39
40
|
lampStatus: {
|
|
40
41
|
uNumber?: number | undefined;
|
|
41
42
|
uColor?: string | undefined;
|
|
@@ -70,7 +71,7 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
70
71
|
calRoadIndicatorArea: () => Promise<void>;
|
|
71
72
|
connectCarFlow: (url: string, options?: any) => Promise<void>;
|
|
72
73
|
disconnectCarFlow: () => void;
|
|
73
|
-
handleHoloVehicleTraceData: (vehicleTrace: any) => void
|
|
74
|
+
handleHoloVehicleTraceData: (vehicleTrace: any) => Promise<void>;
|
|
74
75
|
clearHoloTrace: () => void;
|
|
75
76
|
setInterpolate: (enable: boolean) => void;
|
|
76
77
|
handleHoloSignalData: (signalData: any) => Promise<void>;
|
|
@@ -101,7 +102,7 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
101
102
|
status: number;
|
|
102
103
|
message: string;
|
|
103
104
|
}>;
|
|
104
|
-
showSignalControlArea: (params: any) =>
|
|
105
|
+
showSignalControlArea: (params: any) => import("../types").IResult;
|
|
105
106
|
clearSignalControlArea: () => void;
|
|
106
107
|
locateSignalControlArea: (params: {
|
|
107
108
|
id: string;
|
|
@@ -110,6 +111,8 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
110
111
|
id: string;
|
|
111
112
|
}) => Promise<import("../types").IResult>;
|
|
112
113
|
resetHighlightSignalControlArea: () => import("../types").IResult;
|
|
114
|
+
showSubSignalControlArea: (params: any) => import("../types").IResult;
|
|
115
|
+
editSubSignalControlArea: () => import("../types").IResult;
|
|
113
116
|
props: any;
|
|
114
117
|
emit: (event: "mapLoaded" | "markerClick" | "mapClick", ...args: any[]) => void;
|
|
115
118
|
SignalCountdownPanel: import("vue").DefineComponent<{
|
|
@@ -133,6 +136,10 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
133
136
|
type: ArrayConstructor;
|
|
134
137
|
required: true;
|
|
135
138
|
};
|
|
139
|
+
scale: {
|
|
140
|
+
type: NumberConstructor;
|
|
141
|
+
required: true;
|
|
142
|
+
};
|
|
136
143
|
position: {
|
|
137
144
|
type: ObjectConstructor;
|
|
138
145
|
required: true;
|
|
@@ -191,6 +198,10 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
191
198
|
type: ArrayConstructor;
|
|
192
199
|
required: true;
|
|
193
200
|
};
|
|
201
|
+
scale: {
|
|
202
|
+
type: NumberConstructor;
|
|
203
|
+
required: true;
|
|
204
|
+
};
|
|
194
205
|
position: {
|
|
195
206
|
type: ObjectConstructor;
|
|
196
207
|
required: true;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
+
import { toRaw as i } from "vue";
|
|
1
2
|
import { EVehiclePlateState as a } from "../../../types/index.mjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
class
|
|
7
|
-
constructor(
|
|
8
|
-
this.view =
|
|
3
|
+
import r from "../../stores/index.mjs";
|
|
4
|
+
import s from "./signal-holo-flow.mjs";
|
|
5
|
+
import n from "./signal-holo-flow-lsr.mjs";
|
|
6
|
+
import c from "./trace-holo-flow.mjs";
|
|
7
|
+
class m {
|
|
8
|
+
constructor(o) {
|
|
9
|
+
this.view = o;
|
|
9
10
|
}
|
|
10
11
|
async init() {
|
|
11
|
-
this.traceHoloFlow = new
|
|
12
|
+
this.traceHoloFlow = new c(this.view), await this.traceHoloFlow.init();
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
15
|
* 处理全息流轨迹数据
|
|
15
16
|
* */
|
|
16
|
-
handleVehicleTraceData(
|
|
17
|
-
this.traceHoloFlow.handleVehicleTraceData(
|
|
17
|
+
handleVehicleTraceData(o) {
|
|
18
|
+
this.traceHoloFlow.handleVehicleTraceData(o);
|
|
18
19
|
}
|
|
19
|
-
toggleTrafficObject(
|
|
20
|
-
switch (
|
|
20
|
+
toggleTrafficObject(o) {
|
|
21
|
+
switch (o.name.toLowerCase()) {
|
|
21
22
|
case "groundVehicle".toLowerCase():
|
|
22
|
-
this.traceHoloFlow.toggleGroundVehicle(
|
|
23
|
+
this.traceHoloFlow.toggleGroundVehicle(o.visible);
|
|
23
24
|
break;
|
|
24
25
|
case "elevatedVehicle".toLowerCase():
|
|
25
|
-
this.traceHoloFlow.toggleElevatedVehicle(
|
|
26
|
+
this.traceHoloFlow.toggleElevatedVehicle(o.visible);
|
|
26
27
|
break;
|
|
27
28
|
}
|
|
28
29
|
}
|
|
@@ -32,49 +33,49 @@ class p {
|
|
|
32
33
|
// public toggleVehiclePlate(visible: boolean): void {
|
|
33
34
|
// this.traceHoloFlow?.togglePlateLayer(visible);
|
|
34
35
|
// }
|
|
35
|
-
toggleTrafficInfo(
|
|
36
|
-
this.traceHoloFlow.toggleTrafficInfo(
|
|
36
|
+
toggleTrafficInfo(o) {
|
|
37
|
+
this.traceHoloFlow.toggleTrafficInfo(o);
|
|
37
38
|
}
|
|
38
|
-
togglePause(
|
|
39
|
-
this.traceHoloFlow.togglePause(
|
|
39
|
+
togglePause(o) {
|
|
40
|
+
this.traceHoloFlow.togglePause(o);
|
|
40
41
|
}
|
|
41
|
-
updatePanelContent(
|
|
42
|
-
let
|
|
43
|
-
switch (
|
|
42
|
+
updatePanelContent(o) {
|
|
43
|
+
let e = a.None;
|
|
44
|
+
switch (o) {
|
|
44
45
|
case "none":
|
|
45
|
-
|
|
46
|
+
e = a.None;
|
|
46
47
|
break;
|
|
47
48
|
case "plateNumber":
|
|
48
|
-
|
|
49
|
+
e = a.PlateNumber;
|
|
49
50
|
break;
|
|
50
51
|
case "vehicleId":
|
|
51
|
-
|
|
52
|
+
e = a.Id;
|
|
52
53
|
break;
|
|
53
54
|
case "mix":
|
|
54
|
-
|
|
55
|
+
e = a.Mix;
|
|
55
56
|
break;
|
|
56
57
|
}
|
|
57
|
-
this.traceHoloFlow.updatePanelContent(
|
|
58
|
+
this.traceHoloFlow.updatePanelContent(e);
|
|
58
59
|
}
|
|
59
|
-
async handleSignalData(
|
|
60
|
-
var
|
|
60
|
+
async handleSignalData(o) {
|
|
61
|
+
var e, l;
|
|
61
62
|
if (!this.signalHoloFlow) {
|
|
62
|
-
const t =
|
|
63
|
-
((l = (
|
|
63
|
+
const t = r.useAppDataStore;
|
|
64
|
+
((l = (e = i(t.mapConfig).holoFlow) == null ? void 0 : e.signal) == null ? void 0 : l.style) === "LSR" ? this.signalHoloFlow = new n(this.view) : this.signalHoloFlow = new s(this.view), await this.signalHoloFlow.initializeLayer();
|
|
64
65
|
}
|
|
65
|
-
await this.signalHoloFlow.handleSignalData(
|
|
66
|
+
await this.signalHoloFlow.handleSignalData(o);
|
|
66
67
|
}
|
|
67
68
|
clearHoloSignal() {
|
|
68
|
-
var
|
|
69
|
-
(
|
|
69
|
+
var o;
|
|
70
|
+
(o = this.signalHoloFlow) == null || o.clearSignal();
|
|
70
71
|
}
|
|
71
|
-
setInterpolate(
|
|
72
|
-
this.traceHoloFlow.setInterpolate(
|
|
72
|
+
setInterpolate(o) {
|
|
73
|
+
this.traceHoloFlow.setInterpolate(o);
|
|
73
74
|
}
|
|
74
75
|
downloadTrackLog() {
|
|
75
76
|
this.traceHoloFlow.downloadLog();
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
export {
|
|
79
|
-
|
|
80
|
+
m as default
|
|
80
81
|
};
|
|
@@ -19,6 +19,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
19
19
|
type: ArrayConstructor;
|
|
20
20
|
required: true;
|
|
21
21
|
};
|
|
22
|
+
scale: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
22
26
|
position: {
|
|
23
27
|
type: ObjectConstructor;
|
|
24
28
|
required: true;
|
|
@@ -77,6 +81,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
77
81
|
type: ArrayConstructor;
|
|
78
82
|
required: true;
|
|
79
83
|
};
|
|
84
|
+
scale: {
|
|
85
|
+
type: NumberConstructor;
|
|
86
|
+
required: true;
|
|
87
|
+
};
|
|
80
88
|
position: {
|
|
81
89
|
type: ObjectConstructor;
|
|
82
90
|
required: true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./signal-countdown-panel.vue2.mjs";
|
|
2
2
|
import "./signal-countdown-panel.vue3.mjs";
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f1172941"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|