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.
@@ -36,8 +36,6 @@ export default class SignalHoloFlow {
36
36
  * @param rtStage.stageYellowTime 黄灯时间
37
37
  */
38
38
  private drawCountdownText;
39
- private drawCircle;
40
- private ctxDraw;
41
39
  private updatePhaseLine;
42
40
  /**
43
41
  * 车道是否在通道中
@@ -1,12 +1,12 @@
1
- import * as d from "@arcgis/core/core/reactiveUtils";
2
- import { Point as c } from "@arcgis/core/geometry";
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 g from "../../stores/index.mjs";
6
- class v {
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 = g.useAppDataStore;
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 c({
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 = d.watch(
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
- v as default
235
+ C as default
252
236
  };