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.
- package/es/src/gis-map/gis-map.vue.d.ts +24 -4
- package/es/src/gis-map/gis-map.vue.mjs +144 -138
- package/es/src/gis-map/index.d.ts +24 -4
- package/es/src/gis-map/utils/common-utils.mjs +9 -9
- 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 +17 -1
- 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 +41 -39
- package/es/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.d.ts +3 -0
- package/es/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.mjs +117 -71
- 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 +2 -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/map-initializer.d.ts +1 -0
- package/es/src/gis-map/utils/map-initializer.mjs +121 -122
- 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 +169 -67
- package/es/src/types/index.d.ts +2 -0
- package/es/style.css +1 -1
- package/lib/src/gis-map/gis-map.vue.d.ts +24 -4
- package/lib/src/gis-map/gis-map.vue.js +1 -1
- package/lib/src/gis-map/index.d.ts +24 -4
- package/lib/src/gis-map/utils/common-utils.js +1 -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 +17 -1
- 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 +3 -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 +2 -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/map-initializer.d.ts +1 -0
- package/lib/src/gis-map/utils/map-initializer.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 +2 -0
- 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) =>
|
|
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" | "
|
|
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
|
|
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
|
|
23
|
-
let s, l,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
+
if (!d.value)
|
|
28
29
|
return;
|
|
29
30
|
document.addEventListener("keydown", (m) => {
|
|
30
|
-
m.ctrlKey && m.key === "i" && (
|
|
31
|
+
m.ctrlKey && m.key === "i" && (f.value = !f.value);
|
|
31
32
|
});
|
|
32
|
-
const e =
|
|
33
|
-
|
|
34
|
-
container:
|
|
35
|
-
|
|
36
|
-
|
|
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,
|
|
39
|
-
w("mapClick", m,
|
|
40
|
+
mapClickCallback: (m, S, y) => {
|
|
41
|
+
w("mapClick", m, S, y);
|
|
40
42
|
}
|
|
41
|
-
}),
|
|
42
|
-
}),
|
|
43
|
-
|
|
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
|
|
46
|
-
const e =
|
|
47
|
+
const P = ze(() => s), B = () => {
|
|
48
|
+
const e = A.useAppDataStore;
|
|
47
49
|
e.saveTrackLog = !0;
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
},
|
|
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
|
-
},
|
|
54
|
+
}, q = (e) => {
|
|
53
55
|
l.setMapZoomRange(e);
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
|
|
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
|
|
64
|
+
a || (a = new T(s), await a.init()), a.handleVehicleTraceData(e);
|
|
69
65
|
}, Y = () => {
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
},
|
|
74
|
-
|
|
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
|
-
|
|
74
|
+
o == null || o.toggleTrafficInfo(e), a == null || a.toggleTrafficInfo(e);
|
|
77
75
|
}, ne = (e) => {
|
|
78
|
-
|
|
79
|
-
}, re =
|
|
80
|
-
a == null || a.
|
|
81
|
-
},
|
|
82
|
-
a == null || a.
|
|
83
|
-
},
|
|
84
|
-
|
|
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
|
-
},
|
|
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
|
-
},
|
|
92
|
+
}, ve = async (e) => t ? t.selectSumo(e) : {
|
|
91
93
|
status: -1,
|
|
92
94
|
message: "未加载OpenDrive地图"
|
|
93
|
-
},
|
|
95
|
+
}, Ce = async (e) => t ? t.unselectSumo(e) : {
|
|
94
96
|
status: -1,
|
|
95
97
|
message: "未加载OpenDrive地图"
|
|
96
|
-
},
|
|
98
|
+
}, he = async (e) => t ? await t.geometrySearch(e) : {
|
|
97
99
|
status: -1,
|
|
98
100
|
message: "未加载OpenDrive地图"
|
|
99
|
-
},
|
|
101
|
+
}, Oe = async (e) => t ? await t.getSumoInfo(e) : {
|
|
100
102
|
status: -1,
|
|
101
103
|
message: "未加载OpenDrive地图"
|
|
102
|
-
},
|
|
104
|
+
}, ke = async (e) => t ? await (t == null ? void 0 : t.splitLane(e)) : {
|
|
103
105
|
status: -1,
|
|
104
106
|
message: "未加载OpenDrive地图"
|
|
105
|
-
},
|
|
107
|
+
}, Ae = async () => t ? t == null ? void 0 : t.clearSplitLane() : {
|
|
106
108
|
status: -1,
|
|
107
109
|
message: "未加载OpenDrive地图"
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
},
|
|
111
|
-
return
|
|
112
|
-
mapViewer:
|
|
113
|
-
setLayerVisibility:
|
|
114
|
-
setMapCenter:
|
|
115
|
-
lookAt:
|
|
116
|
-
setMapCamera:
|
|
117
|
-
setMapZoomRange:
|
|
118
|
-
requestCoordinateTransform:
|
|
119
|
-
cancelCoordinateTransform:
|
|
120
|
-
addOverlays:
|
|
121
|
-
addMask:
|
|
122
|
-
removeMask:
|
|
123
|
-
showAllOverlays:
|
|
124
|
-
removeOverlaysByType:
|
|
125
|
-
removeOverlaysById:
|
|
126
|
-
removeAllOverlays:
|
|
127
|
-
showLaneNumber:
|
|
128
|
-
clearLaneNumber:
|
|
129
|
-
initializeAreaTool:
|
|
130
|
-
calCrossIndicatorArea:
|
|
131
|
-
calRoadIndicatorArea:
|
|
132
|
-
connectCarFlow:
|
|
133
|
-
disconnectCarFlow:
|
|
134
|
-
handleHoloVehicleTraceData:
|
|
135
|
-
clearHoloTrace:
|
|
136
|
-
handleHoloSignalData:
|
|
137
|
-
clearHoloSignal:
|
|
138
|
-
setInterpolate:
|
|
139
|
-
toggleTrafficInfo:
|
|
140
|
-
toggleTrafficObject:
|
|
141
|
-
toggleVehicleInfo:
|
|
142
|
-
togglePause:
|
|
143
|
-
updateQueueLength:
|
|
144
|
-
removeQueueLength:
|
|
145
|
-
showOpenDriveFromServer:
|
|
146
|
-
showOpenDriveFromFile:
|
|
147
|
-
clearOpenDrive:
|
|
148
|
-
geometrySearchInOpenDrive:
|
|
149
|
-
findSumoInOpenDrive:
|
|
150
|
-
selectSumoInOpenDrive:
|
|
151
|
-
unselectSumoInOpenDrive:
|
|
152
|
-
getSumoInfo:
|
|
153
|
-
splitOpenDriveLane:
|
|
154
|
-
clearSplitOpenDriveLane:
|
|
155
|
-
showSignalControlArea:
|
|
156
|
-
clearSignalControlArea:
|
|
157
|
-
locateSignalControlArea:
|
|
158
|
-
highlightSignalControlArea:
|
|
159
|
-
resetHighlightSignalControlArea:
|
|
160
|
-
|
|
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:
|
|
168
|
+
ref: d
|
|
165
169
|
}, [
|
|
166
|
-
|
|
170
|
+
Ne(g("div", Xe, [
|
|
167
171
|
g("button", {
|
|
168
172
|
style: { "margin-right": "10px" },
|
|
169
|
-
onClick:
|
|
173
|
+
onClick: B
|
|
170
174
|
}, " 开始记录 "),
|
|
171
|
-
g("button", { onClick:
|
|
175
|
+
g("button", { onClick: V }, "下载日志")
|
|
172
176
|
], 512), [
|
|
173
|
-
[
|
|
177
|
+
[Qe, f.value]
|
|
174
178
|
])
|
|
175
179
|
], 512),
|
|
176
|
-
(
|
|
180
|
+
(v(!0), k(je, null, Ee(Ze(x), (i, m) => (v(), qe(Ue, {
|
|
177
181
|
key: m,
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
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
|
-
|
|
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) =>
|
|
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" | "
|
|
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
|
|
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
|
|
8
|
-
import
|
|
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
|
|
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,
|
|
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,
|
|
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 =
|
|
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
|
-
})
|
|
231
|
+
});
|
|
232
|
+
return r.geometry.coordinates[r.geometry.coordinates.length - 1];
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
export {
|