gisviewer-vue3-arcgis 1.0.182 → 1.0.183
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/utils/holo-flow/signal-holo-flow.d.ts +0 -2
- package/es/src/gis-map/utils/holo-flow/signal-holo-flow.mjs +8 -24
- package/es/src/gis-map/utils/holo-flow/trace-renderer-external.mjs +162 -156
- package/es/src/gis-map/utils/holo-flow/trace-renderer-layer.mjs +4 -4
- package/es/src/gis-map/utils/map-initializer.mjs +101 -99
- package/es/src/types/index.d.ts +1 -1
- package/lib/src/gis-map/utils/holo-flow/signal-holo-flow.d.ts +0 -2
- 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.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.js +1 -1
- package/lib/src/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { Point as
|
|
1
|
+
import * as c from "@arcgis/core/core/reactiveUtils";
|
|
2
|
+
import { Point as d } from "@arcgis/core/geometry";
|
|
3
3
|
import p from "@arcgis/core/layers/FeatureLayer";
|
|
4
4
|
import { toRaw as u } from "vue";
|
|
5
|
-
import
|
|
6
|
-
class
|
|
5
|
+
import y from "../../stores/index.mjs";
|
|
6
|
+
class C {
|
|
7
7
|
constructor(e) {
|
|
8
8
|
this.currentPhaseMap = /* @__PURE__ */ new Map(), this.countdownCanvasMap = /* @__PURE__ */ new Map(), this.lastDataTime = 0, this.isDeletingCanvas = !1, this.canvasWidth = 80, this.canvasHeight = 40, this.view = (e.type === "2d", e);
|
|
9
|
-
const t =
|
|
9
|
+
const t = y.useAppDataStore;
|
|
10
10
|
this.mapConfig = u(t.mapConfig);
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
@@ -148,7 +148,7 @@ class v {
|
|
|
148
148
|
this.drawCountdownText(n.countdownCanvas, s);
|
|
149
149
|
else
|
|
150
150
|
try {
|
|
151
|
-
const i = new
|
|
151
|
+
const i = new d({
|
|
152
152
|
longitude: a,
|
|
153
153
|
latitude: t,
|
|
154
154
|
z: 10
|
|
@@ -164,7 +164,7 @@ class v {
|
|
|
164
164
|
} catch (i) {
|
|
165
165
|
console.log("倒计时canvas创建失败", e, i);
|
|
166
166
|
}
|
|
167
|
-
this.countdownWatchHandel || (this.countdownWatchHandel =
|
|
167
|
+
this.countdownWatchHandel || (this.countdownWatchHandel = c.watch(
|
|
168
168
|
() => this.view.extent,
|
|
169
169
|
() => {
|
|
170
170
|
this.countdownCanvasMap.forEach((i) => {
|
|
@@ -191,22 +191,6 @@ class v {
|
|
|
191
191
|
e.height / 2
|
|
192
192
|
);
|
|
193
193
|
}
|
|
194
|
-
drawCircle(e, t) {
|
|
195
|
-
console.log(t);
|
|
196
|
-
const a = e.getContext("2d");
|
|
197
|
-
a.clearRect(0, 0, e.width, e.height), this.ctxDraw(
|
|
198
|
-
a,
|
|
199
|
-
"lime",
|
|
200
|
-
e.width / 2,
|
|
201
|
-
e.height / 2,
|
|
202
|
-
20,
|
|
203
|
-
-Math.PI / 2,
|
|
204
|
-
-Math.PI / 2 + 2 * 0.6 * Math.PI
|
|
205
|
-
);
|
|
206
|
-
}
|
|
207
|
-
ctxDraw(e, t, a, s, n, i, o) {
|
|
208
|
-
e.save, e.beginPath(), e.lineWidth = 4, e.strokeStyle = t, e.arc(a, s, n, i, o), e.stroke(), e.closePath(), e.font = "26px Digital", e.textBaseline = "middle", e.textAlign = "center", e.fillText("A", a, s), e.restore();
|
|
209
|
-
}
|
|
210
194
|
async updatePhaseLine(e, t, a) {
|
|
211
195
|
const s = this.phaseLineLayer.source.filter(
|
|
212
196
|
(n) => n.getAttribute("id").includes(e)
|
|
@@ -248,5 +232,5 @@ class v {
|
|
|
248
232
|
}
|
|
249
233
|
}
|
|
250
234
|
export {
|
|
251
|
-
|
|
235
|
+
C as default
|
|
252
236
|
};
|