gisviewer-vue3-arcgis 1.0.173 → 1.0.175
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 +12 -15
- package/es/src/gis-map/gis-map.vue.mjs +131 -119
- package/es/src/gis-map/index.d.ts +12 -15
- package/es/src/gis-map/style/index.css +2 -2
- package/es/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.d.ts +4 -12
- package/es/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.mjs +67 -55
- package/es/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.mjs +35 -36
- package/es/src/gis-map/utils/holo-flow/signal-holo-flow.mjs +1 -1
- package/es/src/gis-map/utils/holo-flow/trace-holo-flow.d.ts +1 -0
- package/es/src/gis-map/utils/holo-flow/trace-holo-flow.mjs +33 -28
- package/es/src/gis-map/utils/open-drive-renderer/index.mjs +20 -23
- package/es/src/gis-map/utils/signal-control-area-controller/index.d.ts +21 -3
- package/es/src/gis-map/utils/signal-control-area-controller/index.mjs +165 -88
- package/lib/src/gis-map/gis-map.vue.d.ts +12 -15
- package/lib/src/gis-map/gis-map.vue.js +1 -1
- package/lib/src/gis-map/index.d.ts +12 -15
- package/lib/src/gis-map/style/index.css +2 -2
- package/lib/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.d.ts +4 -12
- 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.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-holo-flow.d.ts +1 -0
- package/lib/src/gis-map/utils/holo-flow/trace-holo-flow.js +2 -2
- package/lib/src/gis-map/utils/open-drive-renderer/index.js +1 -1
- package/lib/src/gis-map/utils/signal-control-area-controller/index.d.ts +21 -3
- package/lib/src/gis-map/utils/signal-control-area-controller/index.js +1 -1
- package/package.json +1 -1
|
@@ -60,8 +60,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
60
60
|
};
|
|
61
61
|
}[];
|
|
62
62
|
mapViewer: import("vue").ComputedRef<MapView | SceneView>;
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
handleStartSaveTrackLog: () => void;
|
|
64
|
+
handleDownloadTrackLog: () => void;
|
|
65
|
+
handleShowVehicleId: () => void;
|
|
66
|
+
handleShowPlateNumber: () => void;
|
|
65
67
|
setMapCenter: (params: ISetMapCenterParams) => Promise<import("../types").IResult>;
|
|
66
68
|
setMapCamera: (params: ISetMapCameraParams) => Promise<import("../types").IResult>;
|
|
67
69
|
lookAt: (params: ILookAtParams) => Promise<void>;
|
|
@@ -123,7 +125,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
123
125
|
}) => Promise<import("../types").IResult>;
|
|
124
126
|
resetHighlightSignalControlArea: () => import("../types").IResult;
|
|
125
127
|
showSubSignalControlArea: (params: any) => import("../types").IResult;
|
|
126
|
-
editSubSignalControlArea: () => import("../types").IResult
|
|
128
|
+
editSubSignalControlArea: () => Promise<import("../types").IResult> | {
|
|
129
|
+
status: number;
|
|
130
|
+
message: string;
|
|
131
|
+
};
|
|
127
132
|
props: any;
|
|
128
133
|
emit: (event: "mapLoaded" | "markerClick" | "mapClick", ...args: any[]) => void;
|
|
129
134
|
SignalCountdownPanel: import("vue").DefineComponent<{
|
|
@@ -172,21 +177,13 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
172
177
|
transform: string;
|
|
173
178
|
}>;
|
|
174
179
|
uImage: import("vue").ComputedRef<string>;
|
|
175
|
-
uNumberStyle: import("vue").ComputedRef<
|
|
176
|
-
color: string;
|
|
177
|
-
}>;
|
|
180
|
+
uNumberStyle: import("vue").ComputedRef<any>;
|
|
178
181
|
lImage: import("vue").ComputedRef<string>;
|
|
179
|
-
lNumberStyle: import("vue").ComputedRef<
|
|
180
|
-
color: string;
|
|
181
|
-
}>;
|
|
182
|
+
lNumberStyle: import("vue").ComputedRef<any>;
|
|
182
183
|
sImage: import("vue").ComputedRef<string>;
|
|
183
|
-
sNumberStyle: import("vue").ComputedRef<
|
|
184
|
-
color: string;
|
|
185
|
-
}>;
|
|
184
|
+
sNumberStyle: import("vue").ComputedRef<any>;
|
|
186
185
|
rImage: import("vue").ComputedRef<string>;
|
|
187
|
-
rNumberStyle: import("vue").ComputedRef<
|
|
188
|
-
color: string;
|
|
189
|
-
}>;
|
|
186
|
+
rNumberStyle: import("vue").ComputedRef<any>;
|
|
190
187
|
getColorString: (color: string | undefined) => "red" | "rgb(255, 192, 2)" | "lime" | "white";
|
|
191
188
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
192
189
|
displayMode: {
|
|
@@ -1,182 +1,194 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as Pe, ref as k, reactive as Ve, onMounted as Be, getCurrentInstance as Ne, onUnmounted as ze, computed as Qe, openBlock as v, createElementBlock as A, createElementVNode as g, withDirectives as je, vShow as Ee, Fragment as Ze, renderList as $e, createBlock as qe } from "vue";
|
|
2
|
+
import b, { registerStore as Ke } from "./stores/index.mjs";
|
|
3
3
|
import "./style/index.css";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
const
|
|
4
|
+
import Ue from "./utils/holo-flow/index.mjs";
|
|
5
|
+
import Ge from "./utils/holo-flow/signal-countdown-panel.vue.mjs";
|
|
6
|
+
import Je from "./utils/map-initializer.mjs";
|
|
7
|
+
import D from "./utils/open-drive-renderer/index.mjs";
|
|
8
|
+
import L from "./utils/overlay.mjs";
|
|
9
|
+
import Re from "./utils/queue-length.mjs";
|
|
10
|
+
import T from "./utils/road-config-tool/index.mjs";
|
|
11
|
+
import I from "./utils/signal-control-area-controller/index.mjs";
|
|
12
|
+
import We from "./utils/traffic-flow.mjs";
|
|
13
|
+
const Xe = { class: "gis-viewer" }, Ye = { style: { position: "absolute", bottom: "10px", left: "10px" } }, mt = /* @__PURE__ */ Pe({
|
|
14
14
|
__name: "gis-map",
|
|
15
15
|
props: {
|
|
16
16
|
config: {},
|
|
17
17
|
assetsRoot: {}
|
|
18
18
|
},
|
|
19
19
|
emits: ["mapLoaded", "markerClick", "mapClick"],
|
|
20
|
-
setup(
|
|
21
|
-
const d =
|
|
22
|
-
let
|
|
23
|
-
const f =
|
|
24
|
-
|
|
25
|
-
const H =
|
|
20
|
+
setup(M, { expose: _, emit: x }) {
|
|
21
|
+
const d = k(null);
|
|
22
|
+
let s, l, c, o, a, n, p, t, r;
|
|
23
|
+
const f = k(!1);
|
|
24
|
+
Ke();
|
|
25
|
+
const H = b.useAppDataStore, C = Ve([]);
|
|
26
26
|
Be(async () => {
|
|
27
27
|
if (!d.value)
|
|
28
28
|
return;
|
|
29
29
|
document.addEventListener("keydown", (m) => {
|
|
30
30
|
m.ctrlKey && m.key === "i" && (f.value = !f.value);
|
|
31
31
|
});
|
|
32
|
-
const e =
|
|
33
|
-
i.assetsRoot =
|
|
32
|
+
const e = Ne(), { $gisviewerAssetsRoot: u } = e.appContext.config.globalProperties, i = await (await fetch(O.config)).json();
|
|
33
|
+
i.assetsRoot = O.assetsRoot || u, H.mapConfig = i, l = new Je(), s = await l.initialize({
|
|
34
34
|
container: d.value,
|
|
35
35
|
mapConfig: i,
|
|
36
|
-
markerClickCallback: (m,
|
|
37
|
-
y("markerClick", m,
|
|
36
|
+
markerClickCallback: (m, w, h, He) => {
|
|
37
|
+
y("markerClick", m, w, h, He);
|
|
38
38
|
},
|
|
39
|
-
mapClickCallback: (m,
|
|
40
|
-
y("mapClick", m,
|
|
39
|
+
mapClickCallback: (m, w, h) => {
|
|
40
|
+
y("mapClick", m, w, h);
|
|
41
41
|
}
|
|
42
|
-
}), a = new
|
|
43
|
-
}),
|
|
44
|
-
r == null || r.clearSignalControlArea(), t == null || t.clearOpenDrive(), a.clearHoloTrace(), a.clearHoloSignal(),
|
|
42
|
+
}), a = new Ue(s, C), await a.init(), y("mapLoaded");
|
|
43
|
+
}), ze(() => {
|
|
44
|
+
r == null || r.clearSignalControlArea(), t == null || t.clearOpenDrive(), a.clearHoloTrace(), a.clearHoloSignal(), o == null || o.disconnectTrafficFlow();
|
|
45
45
|
});
|
|
46
|
-
const
|
|
47
|
-
const e =
|
|
46
|
+
const P = Qe(() => s), V = () => {
|
|
47
|
+
const e = b.useAppDataStore;
|
|
48
48
|
e.saveTrackLog = !0;
|
|
49
|
-
},
|
|
49
|
+
}, B = () => {
|
|
50
50
|
a.downloadTrackLog();
|
|
51
|
-
},
|
|
51
|
+
}, N = () => {
|
|
52
|
+
S("vehicleId");
|
|
53
|
+
}, z = () => {
|
|
54
|
+
S("plateNumber");
|
|
55
|
+
}, Q = async (e) => await l.setMapCenter(e), j = async (e) => await l.setMapCamera(e), E = async (e) => await l.lookAt(e), Z = (e) => l.setLayerVisibility(e), $ = (e, u) => l.requestCoordinateTransform(e, u), q = (e) => {
|
|
52
56
|
l.cancelCoordinateTransform(e);
|
|
53
|
-
},
|
|
57
|
+
}, K = (e) => {
|
|
54
58
|
l.setMapZoomRange(e);
|
|
55
|
-
},
|
|
59
|
+
}, U = (e) => (c || (c = new T(s)), c.showLaneNumber(e)), G = () => {
|
|
56
60
|
c == null || c.clearLaneNumber();
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
},
|
|
61
|
+
}, J = async (e) => (c || (c = new T(s)), await c.initializeSearch(e)), R = async () => c == null ? void 0 : c.calCrossIndicatorArea(), W = async () => {
|
|
62
|
+
}, X = async (e, u) => {
|
|
63
|
+
o || (o = new We(s)), o.connectTrafficFlow(e, u);
|
|
64
|
+
}, Y = () => {
|
|
65
|
+
o == null || o.disconnectTrafficFlow();
|
|
66
|
+
}, F = async (e) => {
|
|
63
67
|
a.handleVehicleTraceData(e);
|
|
64
|
-
},
|
|
68
|
+
}, ee = () => {
|
|
65
69
|
a.clearHoloTrace();
|
|
66
|
-
},
|
|
70
|
+
}, te = (e) => {
|
|
67
71
|
a.setInterpolate(e);
|
|
68
|
-
},
|
|
72
|
+
}, ae = async (e) => {
|
|
69
73
|
await a.handleSignalData(e);
|
|
70
|
-
},
|
|
74
|
+
}, ne = () => {
|
|
71
75
|
a.clearHoloSignal();
|
|
72
|
-
}, te = (e) => {
|
|
73
|
-
s == null || s.toggleTrafficInfo(e), a == null || a.toggleTrafficInfo(e);
|
|
74
|
-
}, ae = (e) => {
|
|
75
|
-
a == null || a.togglePause(e);
|
|
76
|
-
}, ne = (e) => {
|
|
77
|
-
s == null || s.toggleTrafficObject(e), a == null || a.toggleTrafficObject(e);
|
|
78
76
|
}, re = (e) => {
|
|
77
|
+
o == null || o.toggleTrafficInfo(e), a == null || a.toggleTrafficInfo(e);
|
|
78
|
+
}, oe = (e) => {
|
|
79
|
+
a == null || a.togglePause(e);
|
|
80
|
+
}, se = (e) => {
|
|
81
|
+
o == null || o.toggleTrafficObject(e), a == null || a.toggleTrafficObject(e);
|
|
82
|
+
}, S = (e) => {
|
|
79
83
|
a == null || a.updatePanelContent(e);
|
|
80
|
-
},
|
|
84
|
+
}, ie = async (e) => (n || (n = new L(s)), n.addOverlays(e)), ce = (e) => (n || (n = new L(s)), n.addMask(e)), le = () => {
|
|
81
85
|
n == null || n.removeMask();
|
|
82
|
-
},
|
|
86
|
+
}, ue = (e) => n == null ? void 0 : n.removeOverlaysByType(e), me = (e) => n == null ? void 0 : n.removeOverlaysById(e), pe = () => n == null ? void 0 : n.removeAllOverlays(), ge = () => {
|
|
83
87
|
n == null || n.showAllOverlays();
|
|
84
|
-
},
|
|
85
|
-
p || (p = new
|
|
86
|
-
},
|
|
88
|
+
}, de = (e) => {
|
|
89
|
+
p || (p = new Re(s)), p.updateQueueLength(e);
|
|
90
|
+
}, fe = () => {
|
|
87
91
|
p == null || p.removeQueueLength();
|
|
88
|
-
},
|
|
92
|
+
}, Se = async (e, u) => (t || (t = new D(s)), await t.showOpenDriveFromServer(e, u)), ye = async (e) => (t || (t = new D(s)), await t.clearOpenDrive(), await t.showOpenDriveFromFile(e)), we = async () => await (t == null ? void 0 : t.clearOpenDrive()), he = async (e) => t ? await (t == null ? void 0 : t.findSumo(e)) : {
|
|
89
93
|
status: -1,
|
|
90
94
|
message: "未加载OpenDrive地图"
|
|
91
|
-
},
|
|
95
|
+
}, ve = async (e) => t ? t.selectSumo(e) : {
|
|
92
96
|
status: -1,
|
|
93
97
|
message: "未加载OpenDrive地图"
|
|
94
|
-
},
|
|
98
|
+
}, Ce = async (e) => t ? t.unselectSumo(e) : {
|
|
95
99
|
status: -1,
|
|
96
100
|
message: "未加载OpenDrive地图"
|
|
97
|
-
},
|
|
101
|
+
}, Oe = async (e) => t ? await t.geometrySearch(e) : {
|
|
98
102
|
status: -1,
|
|
99
103
|
message: "未加载OpenDrive地图"
|
|
100
|
-
},
|
|
104
|
+
}, ke = async (e) => t ? await t.getSumoInfo(e) : {
|
|
101
105
|
status: -1,
|
|
102
106
|
message: "未加载OpenDrive地图"
|
|
103
|
-
},
|
|
107
|
+
}, Ae = async (e) => t ? await (t == null ? void 0 : t.splitLane(e)) : {
|
|
104
108
|
status: -1,
|
|
105
109
|
message: "未加载OpenDrive地图"
|
|
106
|
-
},
|
|
110
|
+
}, be = async () => t ? t == null ? void 0 : t.clearSplitLane() : {
|
|
107
111
|
status: -1,
|
|
108
112
|
message: "未加载OpenDrive地图"
|
|
109
|
-
},
|
|
113
|
+
}, De = (e) => (r || (r = new I(s)), r.showSignalControlArea(e)), Le = () => {
|
|
110
114
|
r == null || r.clearSignalControlArea();
|
|
111
|
-
}, Te = async (e) => r ? await r.locateSignalControlArea(e) : { status: -1, message: "未加载信号控制区" },
|
|
112
|
-
return
|
|
113
|
-
mapViewer:
|
|
114
|
-
setLayerVisibility:
|
|
115
|
-
setMapCenter:
|
|
116
|
-
lookAt:
|
|
117
|
-
setMapCamera:
|
|
118
|
-
setMapZoomRange:
|
|
119
|
-
requestCoordinateTransform:
|
|
120
|
-
cancelCoordinateTransform:
|
|
121
|
-
addOverlays:
|
|
122
|
-
addMask:
|
|
123
|
-
removeMask:
|
|
124
|
-
showAllOverlays:
|
|
125
|
-
removeOverlaysByType:
|
|
126
|
-
removeOverlaysById:
|
|
127
|
-
removeAllOverlays:
|
|
128
|
-
showLaneNumber:
|
|
129
|
-
clearLaneNumber:
|
|
130
|
-
initializeAreaTool:
|
|
131
|
-
calCrossIndicatorArea:
|
|
132
|
-
calRoadIndicatorArea:
|
|
133
|
-
connectCarFlow:
|
|
134
|
-
disconnectCarFlow:
|
|
135
|
-
handleHoloVehicleTraceData:
|
|
136
|
-
clearHoloTrace:
|
|
137
|
-
handleHoloSignalData:
|
|
138
|
-
clearHoloSignal:
|
|
139
|
-
setInterpolate:
|
|
140
|
-
toggleTrafficInfo:
|
|
141
|
-
toggleTrafficObject:
|
|
142
|
-
toggleVehicleInfo:
|
|
143
|
-
togglePause:
|
|
144
|
-
updateQueueLength:
|
|
145
|
-
removeQueueLength:
|
|
146
|
-
showOpenDriveFromServer:
|
|
147
|
-
showOpenDriveFromFile:
|
|
148
|
-
clearOpenDrive:
|
|
149
|
-
geometrySearchInOpenDrive:
|
|
150
|
-
findSumoInOpenDrive:
|
|
151
|
-
selectSumoInOpenDrive:
|
|
152
|
-
unselectSumoInOpenDrive:
|
|
153
|
-
getSumoInfo:
|
|
154
|
-
splitOpenDriveLane:
|
|
155
|
-
clearSplitOpenDriveLane:
|
|
156
|
-
showSignalControlArea:
|
|
115
|
+
}, Te = async (e) => r ? await r.locateSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, Ie = async (e) => r ? await r.highlightSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, Me = () => r ? r.resetHighlight() : { status: -1, message: "未加载信号控制区" }, _e = (e) => (r || (r = new I(s)), r.showSubSignalControlArea(e)), xe = () => r ? r.editSubSignalArea() : { status: -1, message: "未加载信号控制区" }, O = M, y = x;
|
|
116
|
+
return _({
|
|
117
|
+
mapViewer: P,
|
|
118
|
+
setLayerVisibility: Z,
|
|
119
|
+
setMapCenter: Q,
|
|
120
|
+
lookAt: E,
|
|
121
|
+
setMapCamera: j,
|
|
122
|
+
setMapZoomRange: K,
|
|
123
|
+
requestCoordinateTransform: $,
|
|
124
|
+
cancelCoordinateTransform: q,
|
|
125
|
+
addOverlays: ie,
|
|
126
|
+
addMask: ce,
|
|
127
|
+
removeMask: le,
|
|
128
|
+
showAllOverlays: ge,
|
|
129
|
+
removeOverlaysByType: ue,
|
|
130
|
+
removeOverlaysById: me,
|
|
131
|
+
removeAllOverlays: pe,
|
|
132
|
+
showLaneNumber: U,
|
|
133
|
+
clearLaneNumber: G,
|
|
134
|
+
initializeAreaTool: J,
|
|
135
|
+
calCrossIndicatorArea: R,
|
|
136
|
+
calRoadIndicatorArea: W,
|
|
137
|
+
connectCarFlow: X,
|
|
138
|
+
disconnectCarFlow: Y,
|
|
139
|
+
handleHoloVehicleTraceData: F,
|
|
140
|
+
clearHoloTrace: ee,
|
|
141
|
+
handleHoloSignalData: ae,
|
|
142
|
+
clearHoloSignal: ne,
|
|
143
|
+
setInterpolate: te,
|
|
144
|
+
toggleTrafficInfo: re,
|
|
145
|
+
toggleTrafficObject: se,
|
|
146
|
+
toggleVehicleInfo: S,
|
|
147
|
+
togglePause: oe,
|
|
148
|
+
updateQueueLength: de,
|
|
149
|
+
removeQueueLength: fe,
|
|
150
|
+
showOpenDriveFromServer: Se,
|
|
151
|
+
showOpenDriveFromFile: ye,
|
|
152
|
+
clearOpenDrive: we,
|
|
153
|
+
geometrySearchInOpenDrive: Oe,
|
|
154
|
+
findSumoInOpenDrive: he,
|
|
155
|
+
selectSumoInOpenDrive: ve,
|
|
156
|
+
unselectSumoInOpenDrive: Ce,
|
|
157
|
+
getSumoInfo: ke,
|
|
158
|
+
splitOpenDriveLane: Ae,
|
|
159
|
+
clearSplitOpenDriveLane: be,
|
|
160
|
+
showSignalControlArea: De,
|
|
157
161
|
clearSignalControlArea: Le,
|
|
158
162
|
locateSignalControlArea: Te,
|
|
159
|
-
highlightSignalControlArea:
|
|
160
|
-
resetHighlightSignalControlArea:
|
|
161
|
-
showSubSignalControlArea:
|
|
162
|
-
editSubSignalControlArea:
|
|
163
|
-
}), (e, u) => (v(),
|
|
163
|
+
highlightSignalControlArea: Ie,
|
|
164
|
+
resetHighlightSignalControlArea: Me,
|
|
165
|
+
showSubSignalControlArea: _e,
|
|
166
|
+
editSubSignalControlArea: xe
|
|
167
|
+
}), (e, u) => (v(), A("div", Xe, [
|
|
164
168
|
g("div", {
|
|
165
169
|
class: "gis-viewer-main",
|
|
166
170
|
ref_key: "mapContainer",
|
|
167
171
|
ref: d
|
|
168
172
|
}, [
|
|
169
|
-
|
|
173
|
+
je(g("div", Ye, [
|
|
170
174
|
g("button", {
|
|
171
175
|
style: { "margin-right": "10px" },
|
|
172
|
-
onClick:
|
|
176
|
+
onClick: V
|
|
173
177
|
}, " 开始记录 "),
|
|
174
|
-
g("button", {
|
|
178
|
+
g("button", {
|
|
179
|
+
style: { "margin-right": "10px" },
|
|
180
|
+
onClick: B
|
|
181
|
+
}, " 下载日志 "),
|
|
182
|
+
g("button", {
|
|
183
|
+
style: { "margin-right": "10px" },
|
|
184
|
+
onClick: N
|
|
185
|
+
}, " 显示车辆id "),
|
|
186
|
+
g("button", { onClick: z }, "显示车辆号牌")
|
|
175
187
|
], 512), [
|
|
176
|
-
[
|
|
188
|
+
[Ee, f.value]
|
|
177
189
|
])
|
|
178
190
|
], 512),
|
|
179
|
-
(v(!0),
|
|
191
|
+
(v(!0), A(Ze, null, $e(C, (i, m) => (v(), qe(Ge, {
|
|
180
192
|
key: m,
|
|
181
193
|
"display-mode": i.displayMode,
|
|
182
194
|
"road-id": i.crossId,
|
|
@@ -192,5 +204,5 @@ const Re = { class: "gis-viewer" }, We = { style: { position: "absolute", bottom
|
|
|
192
204
|
}
|
|
193
205
|
});
|
|
194
206
|
export {
|
|
195
|
-
|
|
207
|
+
mt as default
|
|
196
208
|
};
|
|
@@ -49,8 +49,10 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
49
49
|
};
|
|
50
50
|
}[];
|
|
51
51
|
mapViewer: import("vue").ComputedRef<__esri.MapView | __esri.SceneView>;
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
handleStartSaveTrackLog: () => void;
|
|
53
|
+
handleDownloadTrackLog: () => void;
|
|
54
|
+
handleShowVehicleId: () => void;
|
|
55
|
+
handleShowPlateNumber: () => void;
|
|
54
56
|
setMapCenter: (params: import("../types").ISetMapCenterParams) => Promise<import("../types").IResult>;
|
|
55
57
|
setMapCamera: (params: import("../types").ISetMapCameraParams) => Promise<import("../types").IResult>;
|
|
56
58
|
lookAt: (params: import("../types").ILookAtParams) => Promise<void>;
|
|
@@ -112,7 +114,10 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
112
114
|
}) => Promise<import("../types").IResult>;
|
|
113
115
|
resetHighlightSignalControlArea: () => import("../types").IResult;
|
|
114
116
|
showSubSignalControlArea: (params: any) => import("../types").IResult;
|
|
115
|
-
editSubSignalControlArea: () => import("../types").IResult
|
|
117
|
+
editSubSignalControlArea: () => Promise<import("../types").IResult> | {
|
|
118
|
+
status: number;
|
|
119
|
+
message: string;
|
|
120
|
+
};
|
|
116
121
|
props: any;
|
|
117
122
|
emit: (event: "mapLoaded" | "markerClick" | "mapClick", ...args: any[]) => void;
|
|
118
123
|
SignalCountdownPanel: import("vue").DefineComponent<{
|
|
@@ -161,21 +166,13 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
161
166
|
transform: string;
|
|
162
167
|
}>;
|
|
163
168
|
uImage: import("vue").ComputedRef<string>;
|
|
164
|
-
uNumberStyle: import("vue").ComputedRef<
|
|
165
|
-
color: string;
|
|
166
|
-
}>;
|
|
169
|
+
uNumberStyle: import("vue").ComputedRef<any>;
|
|
167
170
|
lImage: import("vue").ComputedRef<string>;
|
|
168
|
-
lNumberStyle: import("vue").ComputedRef<
|
|
169
|
-
color: string;
|
|
170
|
-
}>;
|
|
171
|
+
lNumberStyle: import("vue").ComputedRef<any>;
|
|
171
172
|
sImage: import("vue").ComputedRef<string>;
|
|
172
|
-
sNumberStyle: import("vue").ComputedRef<
|
|
173
|
-
color: string;
|
|
174
|
-
}>;
|
|
173
|
+
sNumberStyle: import("vue").ComputedRef<any>;
|
|
175
174
|
rImage: import("vue").ComputedRef<string>;
|
|
176
|
-
rNumberStyle: import("vue").ComputedRef<
|
|
177
|
-
color: string;
|
|
178
|
-
}>;
|
|
175
|
+
rNumberStyle: import("vue").ComputedRef<any>;
|
|
179
176
|
getColorString: (color: string | undefined) => "red" | "rgb(255, 192, 2)" | "lime" | "white";
|
|
180
177
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
181
178
|
displayMode: {
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
border-radius: 5px;
|
|
29
29
|
color: white;
|
|
30
30
|
width: 40px;
|
|
31
|
-
height:
|
|
31
|
+
height: 60px;
|
|
32
32
|
justify-content: center;
|
|
33
33
|
align-items: center;
|
|
34
34
|
display: flex;
|
|
35
35
|
flex-direction: column;
|
|
36
36
|
}
|
|
37
37
|
.signal-countdown-number {
|
|
38
|
-
font:
|
|
38
|
+
font: 28px Digital;
|
|
39
39
|
}
|
|
@@ -44,21 +44,13 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
44
44
|
transform: string;
|
|
45
45
|
}>;
|
|
46
46
|
uImage: import("vue").ComputedRef<string>;
|
|
47
|
-
uNumberStyle: import("vue").ComputedRef<
|
|
48
|
-
color: string;
|
|
49
|
-
}>;
|
|
47
|
+
uNumberStyle: import("vue").ComputedRef<any>;
|
|
50
48
|
lImage: import("vue").ComputedRef<string>;
|
|
51
|
-
lNumberStyle: import("vue").ComputedRef<
|
|
52
|
-
color: string;
|
|
53
|
-
}>;
|
|
49
|
+
lNumberStyle: import("vue").ComputedRef<any>;
|
|
54
50
|
sImage: import("vue").ComputedRef<string>;
|
|
55
|
-
sNumberStyle: import("vue").ComputedRef<
|
|
56
|
-
color: string;
|
|
57
|
-
}>;
|
|
51
|
+
sNumberStyle: import("vue").ComputedRef<any>;
|
|
58
52
|
rImage: import("vue").ComputedRef<string>;
|
|
59
|
-
rNumberStyle: import("vue").ComputedRef<
|
|
60
|
-
color: string;
|
|
61
|
-
}>;
|
|
53
|
+
rNumberStyle: import("vue").ComputedRef<any>;
|
|
62
54
|
getColorString: (color: string | undefined) => "red" | "rgb(255, 192, 2)" | "lime" | "white";
|
|
63
55
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
64
56
|
displayMode: {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as C, computed as
|
|
1
|
+
import { defineComponent as C, computed as n, openBlock as a, createElementBlock as r, normalizeStyle as l, createElementVNode as e, toDisplayString as u, createCommentVNode as c } from "vue";
|
|
2
2
|
const b = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "signal-countdown-container"
|
|
5
5
|
}, _ = ["src"], I = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "signal-countdown-container"
|
|
8
|
-
}, N = ["src"],
|
|
8
|
+
}, N = ["src"], $ = {
|
|
9
9
|
key: 2,
|
|
10
10
|
class: "signal-countdown-container"
|
|
11
|
-
},
|
|
11
|
+
}, k = ["src"], V = {
|
|
12
12
|
key: 3,
|
|
13
13
|
class: "signal-countdown-container"
|
|
14
|
-
},
|
|
14
|
+
}, L = ["src"], A = /* @__PURE__ */ C({
|
|
15
15
|
__name: "signal-countdown-panel",
|
|
16
16
|
props: {
|
|
17
17
|
displayMode: {},
|
|
@@ -24,30 +24,42 @@ const b = {
|
|
|
24
24
|
rotation: {},
|
|
25
25
|
lampStatus: {}
|
|
26
26
|
},
|
|
27
|
-
setup(
|
|
28
|
-
const t =
|
|
27
|
+
setup(m) {
|
|
28
|
+
const t = m, p = n(() => ({
|
|
29
29
|
top: `${t.position.top}px`,
|
|
30
30
|
left: `${t.position.left}px`,
|
|
31
31
|
"transform-origin": "bottom center",
|
|
32
32
|
transform: `translateX(-50%) translateY(-100%) rotate(${t.rotation}deg) scale(${t.scale})`
|
|
33
|
-
})),
|
|
33
|
+
})), d = n(
|
|
34
34
|
() => `/GisViewerAssets/Images/SignalLamp/u-${t.lampStatus.uColor}.png`
|
|
35
|
-
),
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
), g = n(() => {
|
|
36
|
+
const o = {
|
|
37
|
+
color: i(t.lampStatus.uColor)
|
|
38
|
+
}, s = t.rotation < 0 ? t.rotation + 360 : t.rotation;
|
|
39
|
+
return s > 135 && s < 315 && (o.transform = "rotate(180deg)"), o;
|
|
40
|
+
}), S = n(
|
|
38
41
|
() => `/GisViewerAssets/Images/SignalLamp/l-${t.lampStatus.lColor}.png`
|
|
39
|
-
),
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
), h = n(() => {
|
|
43
|
+
const o = {
|
|
44
|
+
color: i(t.lampStatus.lColor)
|
|
45
|
+
}, s = t.rotation < 0 ? t.rotation + 360 : t.rotation;
|
|
46
|
+
return s > 135 && s < 315 && (o.transform = "rotate(180deg)"), o;
|
|
47
|
+
}), v = n(
|
|
42
48
|
() => `/GisViewerAssets/Images/SignalLamp/s-${t.lampStatus.sColor}.png`
|
|
43
|
-
),
|
|
44
|
-
|
|
45
|
-
|
|
49
|
+
), y = n(() => {
|
|
50
|
+
const o = {
|
|
51
|
+
color: i(t.lampStatus.sColor)
|
|
52
|
+
}, s = t.rotation < 0 ? t.rotation + 360 : t.rotation;
|
|
53
|
+
return s > 135 && s < 315 && (o.transform = "rotate(180deg)"), o;
|
|
54
|
+
}), w = n(
|
|
46
55
|
() => `/GisViewerAssets/Images/SignalLamp/r-${t.lampStatus.rColor}.png`
|
|
47
|
-
),
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
56
|
+
), f = n(() => {
|
|
57
|
+
const o = {
|
|
58
|
+
color: i(t.lampStatus.rColor)
|
|
59
|
+
}, s = t.rotation < 0 ? t.rotation + 360 : t.rotation;
|
|
60
|
+
return s > 135 && s < 315 && (o.transform = "rotate(180deg)"), o;
|
|
61
|
+
}), i = (o) => {
|
|
62
|
+
switch (o) {
|
|
51
63
|
case "red":
|
|
52
64
|
return "red";
|
|
53
65
|
case "yellow":
|
|
@@ -58,62 +70,62 @@ const b = {
|
|
|
58
70
|
return "white";
|
|
59
71
|
}
|
|
60
72
|
};
|
|
61
|
-
return (
|
|
73
|
+
return (o, s) => (a(), r("div", {
|
|
62
74
|
class: "signal-countdown-panel",
|
|
63
|
-
style:
|
|
75
|
+
style: l(p.value)
|
|
64
76
|
}, [
|
|
65
|
-
|
|
66
|
-
|
|
77
|
+
o.lampStatus.uColor ? (a(), r("div", b, [
|
|
78
|
+
e("div", {
|
|
67
79
|
class: "signal-countdown-number",
|
|
68
|
-
style:
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
src:
|
|
80
|
+
style: l(g.value)
|
|
81
|
+
}, u(o.lampStatus.uNumber), 5),
|
|
82
|
+
e("div", null, [
|
|
83
|
+
e("img", {
|
|
84
|
+
src: d.value,
|
|
73
85
|
width: "20px",
|
|
74
86
|
height: "20px"
|
|
75
87
|
}, null, 8, _)
|
|
76
88
|
])
|
|
77
|
-
])) :
|
|
78
|
-
|
|
79
|
-
|
|
89
|
+
])) : c("", !0),
|
|
90
|
+
o.lampStatus.lColor ? (a(), r("div", I, [
|
|
91
|
+
e("div", {
|
|
80
92
|
class: "signal-countdown-number",
|
|
81
|
-
style:
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
src:
|
|
93
|
+
style: l(h.value)
|
|
94
|
+
}, u(o.lampStatus.lNumber), 5),
|
|
95
|
+
e("div", null, [
|
|
96
|
+
e("img", {
|
|
97
|
+
src: S.value,
|
|
86
98
|
width: "20px",
|
|
87
99
|
height: "20px"
|
|
88
100
|
}, null, 8, N)
|
|
89
101
|
])
|
|
90
|
-
])) :
|
|
91
|
-
|
|
92
|
-
|
|
102
|
+
])) : c("", !0),
|
|
103
|
+
o.lampStatus.sColor ? (a(), r("div", $, [
|
|
104
|
+
e("div", {
|
|
93
105
|
class: "signal-countdown-number",
|
|
94
|
-
style:
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
src:
|
|
106
|
+
style: l(y.value)
|
|
107
|
+
}, u(o.lampStatus.sNumber), 5),
|
|
108
|
+
e("div", null, [
|
|
109
|
+
e("img", {
|
|
110
|
+
src: v.value,
|
|
99
111
|
width: "20px",
|
|
100
112
|
height: "20px"
|
|
101
|
-
}, null, 8,
|
|
113
|
+
}, null, 8, k)
|
|
102
114
|
])
|
|
103
|
-
])) :
|
|
104
|
-
|
|
105
|
-
|
|
115
|
+
])) : c("", !0),
|
|
116
|
+
o.lampStatus.rColor !== void 0 ? (a(), r("div", V, [
|
|
117
|
+
e("div", {
|
|
106
118
|
class: "signal-countdown-number",
|
|
107
|
-
style:
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
|
|
119
|
+
style: l(f.value)
|
|
120
|
+
}, u(o.lampStatus.rNumber), 5),
|
|
121
|
+
e("div", null, [
|
|
122
|
+
e("img", {
|
|
111
123
|
src: w.value,
|
|
112
124
|
width: "20px",
|
|
113
125
|
height: "20px"
|
|
114
|
-
}, null, 8,
|
|
126
|
+
}, null, 8, L)
|
|
115
127
|
])
|
|
116
|
-
])) :
|
|
128
|
+
])) : c("", !0)
|
|
117
129
|
], 4));
|
|
118
130
|
}
|
|
119
131
|
});
|