gisviewer-vue3-arcgis 1.0.133 → 1.0.135

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.
Files changed (58) hide show
  1. package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
  2. package/es/src/gis-map/gis-map.vue.d.ts +17 -0
  3. package/es/src/gis-map/gis-map.vue.mjs +118 -113
  4. package/es/src/gis-map/index.d.ts +17 -0
  5. package/es/src/gis-map/utils/components/sketch-tool.vue.d.ts +18 -0
  6. package/es/src/gis-map/utils/components/sketch-tool.vue.mjs +7 -0
  7. package/es/src/gis-map/utils/components/sketch-tool.vue2.mjs +48 -0
  8. package/es/src/gis-map/utils/components/sketch-tool.vue3.mjs +4 -0
  9. package/es/src/gis-map/utils/open-drive-renderer/index.d.ts +2 -1
  10. package/es/src/gis-map/utils/open-drive-renderer/index.mjs +18 -16
  11. package/es/src/gis-map/utils/signal-control-area-controller/district-controller.d.ts +1 -0
  12. package/es/src/gis-map/utils/signal-control-area-controller/district-controller.mjs +5 -4
  13. package/es/src/gis-map/utils/signal-control-area-controller/index.d.ts +2 -1
  14. package/es/src/gis-map/utils/signal-control-area-controller/index.mjs +52 -24
  15. package/es/style.css +1 -1
  16. package/lib/_virtual/_plugin-vue_export-helper.js +1 -0
  17. package/lib/src/gis-map/gis-map.vue.d.ts +17 -0
  18. package/lib/src/gis-map/gis-map.vue.js +1 -1
  19. package/lib/src/gis-map/index.d.ts +17 -0
  20. package/lib/src/gis-map/utils/components/sketch-tool.vue.d.ts +18 -0
  21. package/lib/src/gis-map/utils/components/sketch-tool.vue.js +1 -0
  22. package/lib/src/gis-map/utils/components/sketch-tool.vue2.js +1 -0
  23. package/lib/src/gis-map/utils/components/sketch-tool.vue3.js +1 -0
  24. package/lib/src/gis-map/utils/open-drive-renderer/index.d.ts +2 -1
  25. package/lib/src/gis-map/utils/open-drive-renderer/index.js +1 -1
  26. package/lib/src/gis-map/utils/signal-control-area-controller/district-controller.d.ts +1 -0
  27. package/lib/src/gis-map/utils/signal-control-area-controller/district-controller.js +1 -1
  28. package/lib/src/gis-map/utils/signal-control-area-controller/index.d.ts +2 -1
  29. package/lib/src/gis-map/utils/signal-control-area-controller/index.js +1 -1
  30. package/package.json +1 -1
  31. package/es/src/gis-map/utils/open-drive-renderer/draw-bezier.d.ts +0 -17
  32. package/es/src/gis-map/utils/open-drive-renderer/draw-bezier.mjs +0 -49
  33. package/es/src/gis-map/utils/open-drive-renderer/junction.d.ts +0 -51
  34. package/es/src/gis-map/utils/open-drive-renderer/junction.mjs +0 -151
  35. package/es/src/gis-map/utils/open-drive-renderer/lane-section.d.ts +0 -48
  36. package/es/src/gis-map/utils/open-drive-renderer/lane-section.mjs +0 -82
  37. package/es/src/gis-map/utils/open-drive-renderer/lane-utils.d.ts +0 -29
  38. package/es/src/gis-map/utils/open-drive-renderer/lane-utils.mjs +0 -265
  39. package/es/src/gis-map/utils/open-drive-renderer/lane.d.ts +0 -77
  40. package/es/src/gis-map/utils/open-drive-renderer/lane.mjs +0 -110
  41. package/es/src/gis-map/utils/open-drive-renderer/road.d.ts +0 -62
  42. package/es/src/gis-map/utils/open-drive-renderer/road.mjs +0 -121
  43. package/es/src/gis-map/utils/open-drive-renderer/wasm-loader.d.ts +0 -108
  44. package/es/src/gis-map/utils/open-drive-renderer/wasm-loader.mjs +0 -425
  45. package/lib/src/gis-map/utils/open-drive-renderer/draw-bezier.d.ts +0 -17
  46. package/lib/src/gis-map/utils/open-drive-renderer/draw-bezier.js +0 -1
  47. package/lib/src/gis-map/utils/open-drive-renderer/junction.d.ts +0 -51
  48. package/lib/src/gis-map/utils/open-drive-renderer/junction.js +0 -1
  49. package/lib/src/gis-map/utils/open-drive-renderer/lane-section.d.ts +0 -48
  50. package/lib/src/gis-map/utils/open-drive-renderer/lane-section.js +0 -1
  51. package/lib/src/gis-map/utils/open-drive-renderer/lane-utils.d.ts +0 -29
  52. package/lib/src/gis-map/utils/open-drive-renderer/lane-utils.js +0 -1
  53. package/lib/src/gis-map/utils/open-drive-renderer/lane.d.ts +0 -77
  54. package/lib/src/gis-map/utils/open-drive-renderer/lane.js +0 -1
  55. package/lib/src/gis-map/utils/open-drive-renderer/road.d.ts +0 -62
  56. package/lib/src/gis-map/utils/open-drive-renderer/road.js +0 -1
  57. package/lib/src/gis-map/utils/open-drive-renderer/wasm-loader.d.ts +0 -108
  58. package/lib/src/gis-map/utils/open-drive-renderer/wasm-loader.js +0 -1
@@ -0,0 +1,9 @@
1
+ const s = (t, e) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [r, c] of e)
4
+ o[r] = c;
5
+ return o;
6
+ };
7
+ export {
8
+ s as default
9
+ };
@@ -30,6 +30,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
30
30
  openDriveRenderer: OpenDriveRenderer;
31
31
  signalControlAreaController: SignalControlAreaController;
32
32
  showLogDiv: import("vue").Ref<boolean>;
33
+ showGroupSelect: import("vue").Ref<boolean>;
33
34
  mapViewer: import("vue").ComputedRef<MapView | SceneView>;
34
35
  startSaveTrackLog: () => void;
35
36
  downloadTrackLog: () => void;
@@ -88,6 +89,22 @@ declare const _sfc_main: import("vue").DefineComponent<{
88
89
  resetHighlightSignalControlArea: () => import("../types").IResult;
89
90
  props: any;
90
91
  emit: (event: "mapLoaded" | "markerClick" | "mapClick", ...args: any[]) => void;
92
+ sketchTool: import("vue").DefineComponent<{
93
+ view: {
94
+ type: null;
95
+ required: true;
96
+ };
97
+ }, {
98
+ props: any;
99
+ sketchVM: __esri.SketchViewModel;
100
+ resetButtonHandler: () => void;
101
+ geometrySelectionHandler: (event: any) => void;
102
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
103
+ view: {
104
+ type: null;
105
+ required: true;
106
+ };
107
+ }>>, {}, {}>;
91
108
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("mapLoaded" | "markerClick" | "mapClick")[], "mapLoaded" | "markerClick" | "mapClick", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
92
109
  config: {
93
110
  type: StringConstructor;
@@ -1,168 +1,173 @@
1
- import { defineComponent as Ce, ref as S, onMounted as Oe, getCurrentInstance as ke, onUnmounted as Te, computed as Ae, openBlock as De, createElementBlock as Ie, createElementVNode as p, withDirectives as Le, vShow as be } from "vue";
2
- import C, { registerStore as _e } from "./stores/index.mjs";
1
+ import { defineComponent as ke, ref as y, onMounted as Te, getCurrentInstance as Ae, onUnmounted as De, computed as Ie, openBlock as C, createElementBlock as Le, createElementVNode as p, withDirectives as be, vShow as _e, createBlock as He, unref as xe, createCommentVNode as Me } from "vue";
2
+ import O, { registerStore as Ve } from "./stores/index.mjs";
3
3
  import "./style/index.css";
4
- import He from "./utils/holo-flow/index.mjs";
5
- import xe from "./utils/map-initializer.mjs";
6
- import O from "./utils/open-drive-renderer/index.mjs";
7
- import Me from "./utils/overlay.mjs";
8
- import Ve from "./utils/queue-length.mjs";
9
- import k from "./utils/road-config-tool/index.mjs";
10
- import Be from "./utils/signal-control-area-controller/index.mjs";
11
- import ze from "./utils/traffic-flow.mjs";
12
- const Ne = { class: "gis-viewer" }, Qe = { style: { position: "absolute", bottom: "10px", left: "10px" } }, Je = /* @__PURE__ */ Ce({
4
+ import Be from "./utils/components/sketch-tool.vue.mjs";
5
+ import Ne from "./utils/holo-flow/index.mjs";
6
+ import ze from "./utils/map-initializer.mjs";
7
+ import k from "./utils/open-drive-renderer/index.mjs";
8
+ import Qe from "./utils/overlay.mjs";
9
+ import je from "./utils/queue-length.mjs";
10
+ import T from "./utils/road-config-tool/index.mjs";
11
+ import Pe from "./utils/signal-control-area-controller/index.mjs";
12
+ import Ee from "./utils/traffic-flow.mjs";
13
+ const Fe = { class: "gis-viewer" }, Re = { style: { position: "absolute", bottom: "10px", left: "10px" } }, at = /* @__PURE__ */ ke({
13
14
  __name: "gis-map",
14
15
  props: {
15
16
  config: {},
16
17
  assetsRoot: {}
17
18
  },
18
19
  emits: ["mapLoaded", "markerClick", "mapClick"],
19
- setup(T, { expose: A, emit: D }) {
20
- const g = S(null);
21
- let i, c, s, n, a, r, u, t, o;
22
- const f = S(!1);
23
- Oe(async () => {
24
- if (_e(), !g.value)
20
+ setup(A, { expose: D, emit: I }) {
21
+ const g = y(null);
22
+ let s, c, i, n, a, o, u, t, r;
23
+ const f = y(!1), L = y(!1);
24
+ Te(async () => {
25
+ if (Ve(), !g.value)
25
26
  return;
26
27
  document.addEventListener("keydown", (m) => {
27
28
  m.ctrlKey && m.key === "i" && (f.value = !f.value);
28
29
  });
29
- const e = ke(), { $gisviewerAssetsRoot: l } = e.appContext.config.globalProperties, h = await (await fetch(y.config)).json();
30
- h.assetsRoot = y.assetsRoot || l;
31
- const he = C.useAppDataStore;
32
- he.mapConfig = h, c = new xe(), i = await c.initialize({
30
+ const e = Ae(), { $gisviewerAssetsRoot: l } = e.appContext.config.globalProperties, S = await (await fetch(h.config)).json();
31
+ S.assetsRoot = h.assetsRoot || l;
32
+ const Ce = O.useAppDataStore;
33
+ Ce.mapConfig = S, c = new ze(), s = await c.initialize({
33
34
  container: g.value,
34
- markerClickCallback: (m, d, v, Se) => {
35
- w("markerClick", m, d, v, Se);
35
+ markerClickCallback: (m, v, d, Oe) => {
36
+ w("markerClick", m, v, d, Oe);
36
37
  },
37
- mapClickCallback: (m, d, v) => {
38
- w("mapClick", m, d, v);
38
+ mapClickCallback: (m, v, d) => {
39
+ w("mapClick", m, v, d);
39
40
  }
40
- }), a = new He(i), await a.init(), w("mapLoaded");
41
- }), Te(() => {
42
- o == null || o.clearSignalControlArea(), t == null || t.clearOpenDrive(), a == null || a.clearHoloTrace(), a == null || a.clearHoloSignal(), n == null || n.disconnectTrafficFlow();
41
+ }), a = new Ne(s), await a.init(), w("mapLoaded");
42
+ }), De(() => {
43
+ r == null || r.clearSignalControlArea(), t == null || t.clearOpenDrive(), a == null || a.clearHoloTrace(), a == null || a.clearHoloSignal(), n == null || n.disconnectTrafficFlow();
43
44
  });
44
- const I = Ae(() => i), L = () => {
45
- const e = C.useAppDataStore;
45
+ const b = Ie(() => s), _ = () => {
46
+ const e = O.useAppDataStore;
46
47
  e.saveTrackLog = !0;
47
- }, b = () => {
48
+ }, H = () => {
48
49
  a.downloadTrackLog();
49
- }, _ = async (e) => await c.setMapCenter(e), H = async (e) => await c.setMapCamera(e), x = async (e) => await c.lookAt(e), M = (e) => c.setLayerVisibility(e), V = (e, l) => c.requestCoordinateTransform(e, l), B = (e) => {
50
+ }, x = async (e) => await c.setMapCenter(e), M = async (e) => await c.setMapCamera(e), V = async (e) => await c.lookAt(e), B = (e) => c.setLayerVisibility(e), N = (e, l) => c.requestCoordinateTransform(e, l), z = (e) => {
50
51
  c.cancelCoordinateTransform(e);
51
- }, z = (e) => {
52
+ }, Q = (e) => {
52
53
  c.setMapZoomRange(e);
53
- }, N = (e) => (s || (s = new k(i)), s.showLaneNumber(e)), Q = () => {
54
- s == null || s.clearLaneNumber();
55
- }, j = async (e) => (s || (s = new k(i)), await s.initializeSearch(e)), P = async () => s == null ? void 0 : s.calCrossIndicatorArea(), E = async () => {
56
- }, F = async (e, l) => {
57
- n || (n = new ze(i)), n.connectTrafficFlow(e, l);
58
- }, R = () => {
54
+ }, j = (e) => (i || (i = new T(s)), i.showLaneNumber(e)), P = () => {
55
+ i == null || i.clearLaneNumber();
56
+ }, E = async (e) => (i || (i = new T(s)), await i.initializeSearch(e)), F = async () => i == null ? void 0 : i.calCrossIndicatorArea(), R = async () => {
57
+ }, Z = async (e, l) => {
58
+ n || (n = new Ee(s)), n.connectTrafficFlow(e, l);
59
+ }, q = () => {
59
60
  n == null || n.disconnectTrafficFlow();
60
- }, Z = (e) => {
61
+ }, G = (e) => {
61
62
  a.handleVehicleTraceData(e);
62
- }, q = () => {
63
+ }, K = () => {
63
64
  a.clearHoloTrace();
64
- }, K = (e) => {
65
+ }, U = (e) => {
65
66
  a.setInterpolate(e);
66
- }, U = async (e) => {
67
+ }, $ = async (e) => {
67
68
  await a.handleSignalData(e);
68
- }, $ = () => {
69
+ }, J = () => {
69
70
  a.clearHoloSignal();
70
- }, G = (e) => {
71
+ }, W = (e) => {
71
72
  n == null || n.toggleTrafficInfo(e), a.toggleTrafficInfo(e);
72
- }, J = (e) => {
73
+ }, X = (e) => {
73
74
  a.togglePause(e);
74
- }, W = (e) => {
75
+ }, Y = (e) => {
75
76
  n == null || n.toggleTrafficObject(e), a.toggleTrafficObject(e);
76
- }, X = (e) => {
77
+ }, ee = (e) => {
77
78
  a.updatePanelContent(e);
78
- }, Y = async (e) => (r || (r = new Me(i)), r.addOverlays(e)), ee = (e) => r == null ? void 0 : r.removeOverlaysByType(e), te = (e) => r == null ? void 0 : r.removeOverlaysById(e), ae = () => r == null ? void 0 : r.removeAllOverlays(), ne = () => {
79
- r == null || r.showAllOverlays();
80
- }, re = (e) => {
81
- u || (u = new Ve(i)), u.updateQueueLength(e);
82
- }, oe = () => {
79
+ }, te = async (e) => (o || (o = new Qe(s)), o.addOverlays(e)), ae = (e) => o == null ? void 0 : o.removeOverlaysByType(e), ne = (e) => o == null ? void 0 : o.removeOverlaysById(e), oe = () => o == null ? void 0 : o.removeAllOverlays(), re = () => {
80
+ o == null || o.showAllOverlays();
81
+ }, se = (e) => {
82
+ u || (u = new je(s)), u.updateQueueLength(e);
83
+ }, ie = () => {
83
84
  u == null || u.removeQueueLength();
84
- }, se = async (e, l) => (t || (t = new O(i)), await t.showOpenDriveFromServer(e, l)), ie = async (e) => (t || (t = new O(i)), await t.clearOpenDrive(), await t.showOpenDriveFromFile(e)), ce = async () => await (t == null ? void 0 : t.clearOpenDrive()), le = async (e) => t ? await (t == null ? void 0 : t.findSumo(e)) : {
85
+ }, ce = async (e, l) => (t || (t = new k(s)), await t.showOpenDriveFromServer(e, l)), le = async (e) => (t || (t = new k(s)), await t.clearOpenDrive(), await t.showOpenDriveFromFile(e)), ue = async () => await (t == null ? void 0 : t.clearOpenDrive()), me = async (e) => t ? await (t == null ? void 0 : t.findSumo(e)) : {
85
86
  status: -1,
86
87
  message: "未加载OpenDrive地图"
87
- }, ue = async (e) => t ? t.selectSumo(e) : {
88
+ }, pe = async (e) => t ? t.selectSumo(e) : {
88
89
  status: -1,
89
90
  message: "未加载OpenDrive地图"
90
- }, me = async (e) => t ? t.unselectSumo(e) : {
91
+ }, ge = async (e) => t ? t.unselectSumo(e) : {
91
92
  status: -1,
92
93
  message: "未加载OpenDrive地图"
93
- }, pe = async (e) => t ? await t.getSumoInfo(e) : {
94
+ }, fe = async (e) => t ? await t.getSumoInfo(e) : {
94
95
  status: -1,
95
96
  message: "未加载OpenDrive地图"
96
- }, ge = async (e) => t ? await (t == null ? void 0 : t.splitLane(e)) : {
97
+ }, we = async (e) => t ? await (t == null ? void 0 : t.splitLane(e)) : {
97
98
  status: -1,
98
99
  message: "未加载OpenDrive地图"
99
- }, fe = (e) => (o || (o = new Be(i)), o.showSignalControlArea(e)), we = () => {
100
- o == null || o.clearSignalControlArea();
101
- }, de = async (e) => o ? await o.locateSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, ve = async (e) => o ? await o.highlightSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, ye = () => o ? o.resetHighlight() : { status: -1, message: "未加载信号控制区" }, y = T, w = D;
102
- return A({
103
- mapViewer: I,
104
- setLayerVisibility: M,
105
- setMapCenter: _,
106
- lookAt: x,
107
- setMapCamera: H,
108
- setMapZoomRange: z,
109
- requestCoordinateTransform: V,
110
- cancelCoordinateTransform: B,
111
- addOverlays: Y,
112
- showAllOverlays: ne,
113
- removeOverlaysByType: ee,
114
- removeOverlaysById: te,
115
- removeAllOverlays: ae,
116
- showLaneNumber: N,
117
- clearLaneNumber: Q,
118
- initializeAreaTool: j,
119
- calCrossIndicatorArea: P,
120
- calRoadIndicatorArea: E,
121
- connectCarFlow: F,
122
- disconnectCarFlow: R,
123
- handleHoloVehicleTraceData: Z,
124
- clearHoloTrace: q,
125
- handleHoloSignalData: U,
126
- clearHoloSignal: $,
127
- setInterpolate: K,
128
- toggleTrafficInfo: G,
129
- toggleTrafficObject: W,
130
- toggleVehicleInfo: X,
131
- togglePause: J,
132
- updateQueueLength: re,
133
- removeQueueLength: oe,
134
- showOpenDriveFromServer: se,
135
- showOpenDriveFromFile: ie,
136
- clearOpenDrive: ce,
137
- findSumoInOpenDrive: le,
138
- selectSumoInOpenDrive: ue,
139
- unselectSumoInOpenDrive: me,
140
- getSumoInfo: pe,
141
- splitOpenDriveLane: ge,
142
- showSignalControlArea: fe,
143
- clearSignalControlArea: we,
144
- locateSignalControlArea: de,
145
- highlightSignalControlArea: ve,
146
- resetHighlightSignalControlArea: ye
147
- }), (e, l) => (De(), Ie("div", Ne, [
100
+ }, ve = (e) => (r || (r = new Pe(s)), r.showSignalControlArea(e)), de = () => {
101
+ r == null || r.clearSignalControlArea();
102
+ }, ye = async (e) => r ? await r.locateSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, he = async (e) => r ? await r.highlightSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, Se = () => r ? r.resetHighlight() : { status: -1, message: "未加载信号控制区" }, h = A, w = I;
103
+ return D({
104
+ mapViewer: b,
105
+ setLayerVisibility: B,
106
+ setMapCenter: x,
107
+ lookAt: V,
108
+ setMapCamera: M,
109
+ setMapZoomRange: Q,
110
+ requestCoordinateTransform: N,
111
+ cancelCoordinateTransform: z,
112
+ addOverlays: te,
113
+ showAllOverlays: re,
114
+ removeOverlaysByType: ae,
115
+ removeOverlaysById: ne,
116
+ removeAllOverlays: oe,
117
+ showLaneNumber: j,
118
+ clearLaneNumber: P,
119
+ initializeAreaTool: E,
120
+ calCrossIndicatorArea: F,
121
+ calRoadIndicatorArea: R,
122
+ connectCarFlow: Z,
123
+ disconnectCarFlow: q,
124
+ handleHoloVehicleTraceData: G,
125
+ clearHoloTrace: K,
126
+ handleHoloSignalData: $,
127
+ clearHoloSignal: J,
128
+ setInterpolate: U,
129
+ toggleTrafficInfo: W,
130
+ toggleTrafficObject: Y,
131
+ toggleVehicleInfo: ee,
132
+ togglePause: X,
133
+ updateQueueLength: se,
134
+ removeQueueLength: ie,
135
+ showOpenDriveFromServer: ce,
136
+ showOpenDriveFromFile: le,
137
+ clearOpenDrive: ue,
138
+ findSumoInOpenDrive: me,
139
+ selectSumoInOpenDrive: pe,
140
+ unselectSumoInOpenDrive: ge,
141
+ getSumoInfo: fe,
142
+ splitOpenDriveLane: we,
143
+ showSignalControlArea: ve,
144
+ clearSignalControlArea: de,
145
+ locateSignalControlArea: ye,
146
+ highlightSignalControlArea: he,
147
+ resetHighlightSignalControlArea: Se
148
+ }), (e, l) => (C(), Le("div", Fe, [
148
149
  p("div", {
149
150
  class: "gis-viewer-main",
150
151
  ref_key: "mapContainer",
151
152
  ref: g
152
153
  }, [
153
- Le(p("div", Qe, [
154
+ be(p("div", Re, [
154
155
  p("button", {
155
156
  style: { "margin-right": "10px" },
156
- onClick: L
157
+ onClick: _
157
158
  }, " 开始记录 "),
158
- p("button", { onClick: b }, "下载日志")
159
+ p("button", { onClick: H }, "下载日志")
159
160
  ], 512), [
160
- [be, f.value]
161
- ])
161
+ [_e, f.value]
162
+ ]),
163
+ L.value ? (C(), He(Be, {
164
+ key: 0,
165
+ view: xe(s)
166
+ }, null, 8, ["view"])) : Me("", !0)
162
167
  ], 512)
163
168
  ]));
164
169
  }
165
170
  });
166
171
  export {
167
- Je as default
172
+ at as default
168
173
  };
@@ -19,6 +19,7 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
19
19
  openDriveRenderer: import("./utils/open-drive-renderer").default;
20
20
  signalControlAreaController: import("./utils/signal-control-area-controller").default;
21
21
  showLogDiv: import("vue").Ref<boolean>;
22
+ showGroupSelect: import("vue").Ref<boolean>;
22
23
  mapViewer: import("vue").ComputedRef<__esri.MapView | __esri.SceneView>;
23
24
  startSaveTrackLog: () => void;
24
25
  downloadTrackLog: () => void;
@@ -77,6 +78,22 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
77
78
  resetHighlightSignalControlArea: () => import("../types").IResult;
78
79
  props: any;
79
80
  emit: (event: "mapLoaded" | "markerClick" | "mapClick", ...args: any[]) => void;
81
+ sketchTool: import("vue").DefineComponent<{
82
+ view: {
83
+ type: null;
84
+ required: true;
85
+ };
86
+ }, {
87
+ props: any;
88
+ sketchVM: __esri.SketchViewModel;
89
+ resetButtonHandler: () => void;
90
+ geometrySelectionHandler: (event: any) => void;
91
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
92
+ view: {
93
+ type: null;
94
+ required: true;
95
+ };
96
+ }>>, {}, {}>;
80
97
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("mapLoaded" | "markerClick" | "mapClick")[], "mapLoaded" | "markerClick" | "mapClick", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
81
98
  config: {
82
99
  type: StringConstructor;
@@ -0,0 +1,18 @@
1
+ import SketchViewModel from '@arcgis/core/widgets/Sketch/SketchViewModel';
2
+ declare const _sfc_main: import("vue").DefineComponent<{
3
+ view: {
4
+ type: null;
5
+ required: true;
6
+ };
7
+ }, {
8
+ props: any;
9
+ sketchVM: SketchViewModel;
10
+ resetButtonHandler: () => void;
11
+ geometrySelectionHandler: (event: any) => void;
12
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
+ view: {
14
+ type: null;
15
+ required: true;
16
+ };
17
+ }>>, {}, {}>;
18
+ export default _sfc_main;
@@ -0,0 +1,7 @@
1
+ import o from "./sketch-tool.vue2.mjs";
2
+ import "./sketch-tool.vue3.mjs";
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ac0f5d06"]]);
5
+ export {
6
+ f as default
7
+ };
@@ -0,0 +1,48 @@
1
+ import { defineComponent as a, onMounted as m, onUnmounted as p, openBlock as u, createElementBlock as d, createElementVNode as n } from "vue";
2
+ import g from "@arcgis/core/layers/GraphicsLayer";
3
+ import k from "@arcgis/core/widgets/Sketch/SketchViewModel";
4
+ const y = { class: "gisviewer-sketch-tool gisviewer-sketch-tool-position" }, _ = /* @__PURE__ */ a({
5
+ __name: "sketch-tool",
6
+ props: {
7
+ view: {}
8
+ },
9
+ setup(l) {
10
+ const c = l;
11
+ let o;
12
+ m(() => {
13
+ const e = new g();
14
+ c.view.map.add(e), o = new k({
15
+ layer: e,
16
+ view: c.view
17
+ });
18
+ }), p(() => {
19
+ o.destroy();
20
+ });
21
+ const i = () => {
22
+ }, s = (e) => {
23
+ var r;
24
+ console.log(e);
25
+ const t = (r = e.target) == null ? void 0 : r.value;
26
+ console.log(t), o.create(t);
27
+ };
28
+ return (e, t) => (u(), d("div", y, [
29
+ n("button", {
30
+ class: "esri-icon-pan geometry-button",
31
+ onClick: i
32
+ }),
33
+ n("button", {
34
+ class: "esri-icon-checkbox-unchecked geometry-button",
35
+ value: "rectangle",
36
+ onClick: s
37
+ }),
38
+ n("button", {
39
+ class: "esri-icon-polygon geometry-button",
40
+ value: "polygon",
41
+ onClick: s
42
+ })
43
+ ]));
44
+ }
45
+ });
46
+ export {
47
+ _ as default
48
+ };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -9,11 +9,11 @@ export default class OpenDriveRenderer {
9
9
  private sectionLayer;
10
10
  private highlightLayer;
11
11
  private flashLayer;
12
+ private drawLayer;
12
13
  private allLaneGraphics;
13
14
  private allRefLineGraphics;
14
15
  private mouseMoveHandler;
15
16
  private mouseClickHandler;
16
- private wasmLoader;
17
17
  constructor(view: __esri.MapView | __esri.SceneView);
18
18
  private projectName;
19
19
  private openDriveServer;
@@ -49,6 +49,7 @@ export default class OpenDriveRenderer {
49
49
  private currentJunctionId;
50
50
  private hitGraphic;
51
51
  private highlightGraphic;
52
+ private monitorMouseDrag;
52
53
  /**
53
54
  * 监听鼠标移动事件,高亮显示鼠标所在路段和路口
54
55
  */
@@ -3,15 +3,14 @@ import * as j from "@arcgis/core/core/promiseUtils";
3
3
  import { Polygon as O } from "@arcgis/core/geometry";
4
4
  import * as I from "@arcgis/core/geometry/geometryEngine";
5
5
  import G from "@arcgis/core/layers/FeatureLayer";
6
- import b from "@arcgis/core/layers/GraphicsLayer";
6
+ import f from "@arcgis/core/layers/GraphicsLayer";
7
7
  import m from "axios";
8
8
  import F from "md5";
9
9
  import S from "pako";
10
10
  import A from "../common-utils.mjs";
11
- import $ from "./wasm-loader.mjs";
12
11
  class C {
13
12
  constructor(e) {
14
- this.wasmLoader = $.getInstance(), this.projectName = "", this.openDriveServer = "", this.currentSectionCode = "", this.currentJunctionId = "", this.view = e, this.view.popup.visibleElements = {
13
+ this.projectName = "", this.openDriveServer = "", this.currentSectionCode = "", this.currentJunctionId = "", this.view = e, this.view.popup.visibleElements = {
15
14
  closeButton: !1,
16
15
  collapseButton: !1,
17
16
  actionBar: !1
@@ -273,13 +272,14 @@ class C {
273
272
  }
274
273
  }
275
274
  ]
276
- }), this.junctionLayer = new b({ id: "OpenDriveJunction" }), this.sectionLayer = new b({ id: "OpenDriveSection" }), this.highlightLayer = new b({ id: "OpenDriveHighlight" }), this.flashLayer = new b({ id: "OpenDriveFlash" }), this.view.map.addMany([
275
+ }), this.junctionLayer = new f({ id: "OpenDriveJunction" }), this.sectionLayer = new f({ id: "OpenDriveSection" }), this.highlightLayer = new f({ id: "OpenDriveHighlight" }), this.flashLayer = new f({ id: "OpenDriveFlash" }), this.drawLayer = new f({ id: "Draw" }), this.view.map.addMany([
277
276
  this.laneLayer,
278
277
  this.junctionLayer,
279
278
  this.sectionLayer,
280
279
  this.roadNameLayer,
281
280
  this.highlightLayer,
282
- this.flashLayer
281
+ this.flashLayer,
282
+ this.drawLayer
283
283
  ]);
284
284
  }
285
285
  static getInstance(e) {
@@ -299,7 +299,7 @@ class C {
299
299
  * @returns
300
300
  */
301
301
  async showOpenDriveFromFile(e) {
302
- var d, f;
302
+ var d, g;
303
303
  this.openDriveClickCallback = e.selectedCallback, console.time("md5用时");
304
304
  const t = await this.makeMd5FromFile(e.file);
305
305
  if (t.status !== 0)
@@ -336,7 +336,7 @@ class C {
336
336
  await this.showAllLanes(
337
337
  c,
338
338
  ((d = e.options) == null ? void 0 : d.showJunctionLane) || !1,
339
- ((f = e.options) == null ? void 0 : f.showRoadName) || !0
339
+ ((g = e.options) == null ? void 0 : g.showRoadName) || !0
340
340
  );
341
341
  const h = o.data.result.junctions;
342
342
  if (this.showJunction(h), e.options && e.options.centerMap !== !1) {
@@ -388,7 +388,7 @@ class C {
388
388
  const { id: c, refLine: h } = r;
389
389
  let d = r.name;
390
390
  d.includes("(") && (d = d.slice(0, d.indexOf("("))), d = d.replace(/(.)/g, "$1 ");
391
- const f = new p({
391
+ const g = new p({
392
392
  geometry: {
393
393
  type: "polyline",
394
394
  paths: [h]
@@ -399,18 +399,18 @@ class C {
399
399
  roadName: d
400
400
  }
401
401
  });
402
- this.allRefLineGraphics.push(f), r.laneSections.sort((u, g) => Number(u.id) - Number(g.id));
402
+ this.allRefLineGraphics.push(g), r.laneSections.sort((u, w) => Number(u.id) - Number(w.id));
403
403
  for (let u = 0; u < r.laneSections.length; u++) {
404
- const g = r.laneSections[u], L = Number(g.id);
405
- for (const y of g.lanePaths) {
406
- const w = Number(y.id);
407
- if (w === 0)
404
+ const w = r.laneSections[u], L = Number(w.id);
405
+ for (const y of w.lanePaths) {
406
+ const b = Number(y.id);
407
+ if (b === 0)
408
408
  continue;
409
409
  const N = y.type, v = y.innerPath.concat(
410
410
  y.outerPath.reverse()
411
411
  );
412
412
  if (v.length <= 3) {
413
- console.warn(`lane ${w} has less than 3 points`);
413
+ console.warn(`lane ${b} has less than 3 points`);
414
414
  continue;
415
415
  }
416
416
  v.push(y.innerPath[0]);
@@ -422,12 +422,12 @@ class C {
422
422
  geometry: D,
423
423
  attributes: {
424
424
  ObjectID: l++,
425
- id: `${c}+${L}+${w}`,
425
+ id: `${c}+${L}+${b}`,
426
426
  roadId: c,
427
427
  roadName: r.name,
428
428
  sectionId: L,
429
429
  sectionIndex: u,
430
- laneId: w,
430
+ laneId: b,
431
431
  type: N,
432
432
  sumoId: ""
433
433
  }
@@ -489,6 +489,8 @@ class C {
489
489
  }
490
490
  this.junctionLayer.addMany(t);
491
491
  }
492
+ monitorMouseDrag() {
493
+ }
492
494
  /**
493
495
  * 监听鼠标移动事件,高亮显示鼠标所在路段和路口
494
496
  */
@@ -4,6 +4,7 @@ interface ICross {
4
4
  parentId: string;
5
5
  latitude: number;
6
6
  longitude: number;
7
+ signalId: string;
7
8
  }
8
9
  export default class DistrictController {
9
10
  id: string;
@@ -1,4 +1,4 @@
1
- class r {
1
+ class i {
2
2
  constructor(t) {
3
3
  this.parentName = "", this.crosses = [], this.subDistricts = [], this.areaColor = [
4
4
  Math.floor(Math.random() * 255),
@@ -7,7 +7,7 @@ class r {
7
7
  ], this.crossCount = 0, this.subDistrictCount = 0, this.id = t.id, this.name = t.name, this.parentId = t.parentId;
8
8
  for (const s of t.children)
9
9
  if (s.children) {
10
- const o = new r(s);
10
+ const o = new i(s);
11
11
  o.parentName = this.name, o.areaColor = this.areaColor, this.subDistricts.push(o), this.subDistrictCount++, this.crossCount += o.crossCount;
12
12
  } else {
13
13
  const o = {
@@ -15,7 +15,8 @@ class r {
15
15
  name: s.name,
16
16
  parentId: s.parentId,
17
17
  latitude: Number(s.latitude),
18
- longitude: Number(s.longitude)
18
+ longitude: Number(s.longitude),
19
+ signalId: s.signalId
19
20
  };
20
21
  this.crosses.push(o), this.crossCount++;
21
22
  }
@@ -30,5 +31,5 @@ class r {
30
31
  }
31
32
  }
32
33
  export {
33
- r as default
34
+ i as default
34
35
  };
@@ -5,7 +5,8 @@ export default class SignalControlAreaController {
5
5
  private subDistrictControllerLayer;
6
6
  private crossLayer;
7
7
  private highlightLayer;
8
- private eventHandle?;
8
+ private watchHandle?;
9
+ private readonly crossScale;
9
10
  constructor(view: __esri.MapView | __esri.SceneView);
10
11
  showSignalControlArea(params: any): IResult;
11
12
  clearSignalControlArea(): IResult;