@zhangdali1996/lr-map-viewer 0.0.16 → 0.0.18

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.
@@ -21,7 +21,7 @@ var ee = Object.create, N = Object.defineProperty, P = Object.getOwnPropertyDesc
21
21
  }) : n, e)), ae = {
22
22
  name: "@zhangdali1996/lr-map-viewer",
23
23
  private: !1,
24
- version: "0.0.15",
24
+ version: "0.0.17",
25
25
  type: "module",
26
26
  files: ["dist"],
27
27
  main: "./dist/lr-map-viewer.js",
@@ -35,7 +35,10 @@ var ee = Object.create, N = Object.defineProperty, P = Object.getOwnPropertyDesc
35
35
  "./style.css": "./dist/lr-map-viewer.css",
36
36
  "./package.json": "./package.json"
37
37
  },
38
- scripts: { build: "vite build --config vite.config.js" },
38
+ scripts: {
39
+ build: "vite build --config vite.config.js",
40
+ "publish:public": "npm version patch --no-git-tag-version && npm publish --access public"
41
+ },
39
42
  sideEffects: ["**/*.css"],
40
43
  dependencies: { pako: "^2.1.0" },
41
44
  peerDependencies: {
@@ -4624,14 +4627,14 @@ var ee = Object.create, N = Object.defineProperty, P = Object.getOwnPropertyDesc
4624
4627
  }));
4625
4628
  }));
4626
4629
  //#endregion
4627
- //#region node_modules/axios/lib/helpers/bind.js
4630
+ //#region ../../node_modules/axios/lib/helpers/bind.js
4628
4631
  function B(e, t) {
4629
4632
  return function() {
4630
4633
  return e.apply(t, arguments);
4631
4634
  };
4632
4635
  }
4633
4636
  //#endregion
4634
- //#region node_modules/axios/lib/utils.js
4637
+ //#region ../../node_modules/axios/lib/utils.js
4635
4638
  var { toString: oe } = Object.prototype, { getPrototypeOf: se } = Object, { iterator: ce, toStringTag: le } = Symbol, ue = ((e) => (t) => {
4636
4639
  let n = oe.call(t);
4637
4640
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
@@ -4897,7 +4900,7 @@ var ot = (e) => {
4897
4900
  };
4898
4901
  lt.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE", lt.ERR_BAD_OPTION = "ERR_BAD_OPTION", lt.ECONNABORTED = "ECONNABORTED", lt.ETIMEDOUT = "ETIMEDOUT", lt.ERR_NETWORK = "ERR_NETWORK", lt.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS", lt.ERR_DEPRECATED = "ERR_DEPRECATED", lt.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE", lt.ERR_BAD_REQUEST = "ERR_BAD_REQUEST", lt.ERR_CANCELED = "ERR_CANCELED", lt.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT", lt.ERR_INVALID_URL = "ERR_INVALID_URL", lt.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
4899
4902
  //#endregion
4900
- //#region node_modules/axios/lib/helpers/toFormData.js
4903
+ //#region ../../node_modules/axios/lib/helpers/toFormData.js
4901
4904
  function ut(e) {
4902
4905
  return J.isPlainObject(e) || J.isArray(e);
4903
4906
  }
@@ -4962,7 +4965,7 @@ function ht(e, t, n) {
4962
4965
  return m(e), t;
4963
4966
  }
4964
4967
  //#endregion
4965
- //#region node_modules/axios/lib/helpers/AxiosURLSearchParams.js
4968
+ //#region ../../node_modules/axios/lib/helpers/AxiosURLSearchParams.js
4966
4969
  function gt(e) {
4967
4970
  let t = {
4968
4971
  "!": "%21",
@@ -4991,7 +4994,7 @@ vt.append = function(e, t) {
4991
4994
  }, "").join("&");
4992
4995
  };
4993
4996
  //#endregion
4994
- //#region node_modules/axios/lib/helpers/buildURL.js
4997
+ //#region ../../node_modules/axios/lib/helpers/buildURL.js
4995
4998
  function yt(e) {
4996
4999
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
4997
5000
  }
@@ -5005,7 +5008,7 @@ function bt(e, t, n) {
5005
5008
  return e;
5006
5009
  }
5007
5010
  //#endregion
5008
- //#region node_modules/axios/lib/core/InterceptorManager.js
5011
+ //#region ../../node_modules/axios/lib/core/InterceptorManager.js
5009
5012
  var xt = class {
5010
5013
  constructor() {
5011
5014
  this.handlers = [];
@@ -5064,7 +5067,7 @@ var xt = class {
5064
5067
  ...Ct
5065
5068
  };
5066
5069
  //#endregion
5067
- //#region node_modules/axios/lib/helpers/toURLEncodedForm.js
5070
+ //#region ../../node_modules/axios/lib/helpers/toURLEncodedForm.js
5068
5071
  function jt(e, t) {
5069
5072
  return ht(e, new At.classes.URLSearchParams(), {
5070
5073
  visitor: function(e, t, n, r) {
@@ -5074,7 +5077,7 @@ function jt(e, t) {
5074
5077
  });
5075
5078
  }
5076
5079
  //#endregion
5077
- //#region node_modules/axios/lib/helpers/formDataToJSON.js
5080
+ //#region ../../node_modules/axios/lib/helpers/formDataToJSON.js
5078
5081
  function Mt(e) {
5079
5082
  return J.matchAll(/\w+|\[(\w*)]/g, e).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
5080
5083
  }
@@ -5099,7 +5102,7 @@ function Pt(e) {
5099
5102
  return null;
5100
5103
  }
5101
5104
  //#endregion
5102
- //#region node_modules/axios/lib/defaults/index.js
5105
+ //#region ../../node_modules/axios/lib/defaults/index.js
5103
5106
  var Ft = (e, t) => e != null && J.hasOwnProp(e, t) ? e[t] : void 0;
5104
5107
  function It(e, t, n) {
5105
5108
  if (J.isString(e)) try {
@@ -5174,7 +5177,7 @@ J.forEach([
5174
5177
  Lt.headers[e] = {};
5175
5178
  });
5176
5179
  //#endregion
5177
- //#region node_modules/axios/lib/helpers/parseHeaders.js
5180
+ //#region ../../node_modules/axios/lib/helpers/parseHeaders.js
5178
5181
  var Rt = J.toObjectSet([
5179
5182
  "age",
5180
5183
  "authorization",
@@ -5382,7 +5385,7 @@ Zt.accessor([
5382
5385
  };
5383
5386
  }), J.freezeMethods(Zt);
5384
5387
  //#endregion
5385
- //#region node_modules/axios/lib/core/transformData.js
5388
+ //#region ../../node_modules/axios/lib/core/transformData.js
5386
5389
  function Qt(e, t) {
5387
5390
  let n = this || Lt, r = t || n, i = Zt.from(r.headers), a = r.data;
5388
5391
  return J.forEach(e, function(e) {
@@ -5390,31 +5393,31 @@ function Qt(e, t) {
5390
5393
  }), i.normalize(), a;
5391
5394
  }
5392
5395
  //#endregion
5393
- //#region node_modules/axios/lib/cancel/isCancel.js
5396
+ //#region ../../node_modules/axios/lib/cancel/isCancel.js
5394
5397
  function $t(e) {
5395
5398
  return !!(e && e.__CANCEL__);
5396
5399
  }
5397
5400
  //#endregion
5398
- //#region node_modules/axios/lib/cancel/CanceledError.js
5401
+ //#region ../../node_modules/axios/lib/cancel/CanceledError.js
5399
5402
  var en = class extends lt {
5400
5403
  constructor(e, t, n) {
5401
5404
  super(e ?? "canceled", lt.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
5402
5405
  }
5403
5406
  };
5404
5407
  //#endregion
5405
- //#region node_modules/axios/lib/core/settle.js
5408
+ //#region ../../node_modules/axios/lib/core/settle.js
5406
5409
  function tn(e, t, n) {
5407
5410
  let r = n.config.validateStatus;
5408
5411
  !n.status || !r || r(n.status) ? e(n) : t(new lt("Request failed with status code " + n.status, [lt.ERR_BAD_REQUEST, lt.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n));
5409
5412
  }
5410
5413
  //#endregion
5411
- //#region node_modules/axios/lib/helpers/parseProtocol.js
5414
+ //#region ../../node_modules/axios/lib/helpers/parseProtocol.js
5412
5415
  function nn(e) {
5413
5416
  let t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
5414
5417
  return t && t[1] || "";
5415
5418
  }
5416
5419
  //#endregion
5417
- //#region node_modules/axios/lib/helpers/speedometer.js
5420
+ //#region ../../node_modules/axios/lib/helpers/speedometer.js
5418
5421
  function rn(e, t) {
5419
5422
  e ||= 10;
5420
5423
  let n = Array(e), r = Array(e), i = 0, a = 0, o;
@@ -5429,7 +5432,7 @@ function rn(e, t) {
5429
5432
  };
5430
5433
  }
5431
5434
  //#endregion
5432
- //#region node_modules/axios/lib/helpers/throttle.js
5435
+ //#region ../../node_modules/axios/lib/helpers/throttle.js
5433
5436
  function an(e, t) {
5434
5437
  let n = 0, r = 1e3 / t, i, a, o = (t, r = Date.now()) => {
5435
5438
  n = r, i = null, a &&= (clearTimeout(a), null), e(...t);
@@ -5442,7 +5445,7 @@ function an(e, t) {
5442
5445
  }, () => i && o(i)];
5443
5446
  }
5444
5447
  //#endregion
5445
- //#region node_modules/axios/lib/helpers/progressEventReducer.js
5448
+ //#region ../../node_modules/axios/lib/helpers/progressEventReducer.js
5446
5449
  var on = (e, t, n = 3) => {
5447
5450
  let r = 0, i = rn(50, 250);
5448
5451
  return an((n) => {
@@ -5488,23 +5491,23 @@ var on = (e, t, n = 3) => {
5488
5491
  remove() {}
5489
5492
  };
5490
5493
  //#endregion
5491
- //#region node_modules/axios/lib/helpers/isAbsoluteURL.js
5494
+ //#region ../../node_modules/axios/lib/helpers/isAbsoluteURL.js
5492
5495
  function dn(e) {
5493
5496
  return typeof e == "string" ? /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) : !1;
5494
5497
  }
5495
5498
  //#endregion
5496
- //#region node_modules/axios/lib/helpers/combineURLs.js
5499
+ //#region ../../node_modules/axios/lib/helpers/combineURLs.js
5497
5500
  function fn(e, t) {
5498
5501
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
5499
5502
  }
5500
5503
  //#endregion
5501
- //#region node_modules/axios/lib/core/buildFullPath.js
5504
+ //#region ../../node_modules/axios/lib/core/buildFullPath.js
5502
5505
  function pn(e, t, n) {
5503
5506
  let r = !dn(t);
5504
5507
  return e && (r || n === !1) ? fn(e, t) : t;
5505
5508
  }
5506
5509
  //#endregion
5507
- //#region node_modules/axios/lib/core/mergeConfig.js
5510
+ //#region ../../node_modules/axios/lib/core/mergeConfig.js
5508
5511
  var mn = (e) => e instanceof Zt ? { ...e } : e;
5509
5512
  function hn(e, t) {
5510
5513
  t ||= {};
@@ -5568,7 +5571,7 @@ function hn(e, t) {
5568
5571
  }), n;
5569
5572
  }
5570
5573
  //#endregion
5571
- //#region node_modules/axios/lib/helpers/resolveConfig.js
5574
+ //#region ../../node_modules/axios/lib/helpers/resolveConfig.js
5572
5575
  var gn = (e) => {
5573
5576
  let t = hn({}, e), { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: s } = t;
5574
5577
  if (t.headers = o = Zt.from(o), t.url = bt(pn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), s && o.set("Authorization", "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))), J.isFormData(n)) {
@@ -5820,7 +5823,7 @@ var gn = (e) => {
5820
5823
  };
5821
5824
  jn();
5822
5825
  //#endregion
5823
- //#region node_modules/axios/lib/adapters/adapters.js
5826
+ //#region ../../node_modules/axios/lib/adapters/adapters.js
5824
5827
  var Mn = {
5825
5828
  http: null,
5826
5829
  xhr: _n,
@@ -5856,7 +5859,7 @@ var In = {
5856
5859
  adapters: Mn
5857
5860
  };
5858
5861
  //#endregion
5859
- //#region node_modules/axios/lib/core/dispatchRequest.js
5862
+ //#region ../../node_modules/axios/lib/core/dispatchRequest.js
5860
5863
  function Ln(e) {
5861
5864
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new en(null, e);
5862
5865
  }
@@ -5872,7 +5875,7 @@ function Rn(e) {
5872
5875
  });
5873
5876
  }
5874
5877
  //#endregion
5875
- //#region node_modules/axios/lib/env/data.js
5878
+ //#region ../../node_modules/axios/lib/env/data.js
5876
5879
  var zn = "1.15.1", Bn = {};
5877
5880
  [
5878
5881
  "object",
@@ -6042,7 +6045,7 @@ J.forEach([
6042
6045
  Gn.prototype[e] = t(), Gn.prototype[e + "Form"] = t(!0);
6043
6046
  });
6044
6047
  //#endregion
6045
- //#region node_modules/axios/lib/cancel/CancelToken.js
6048
+ //#region ../../node_modules/axios/lib/cancel/CancelToken.js
6046
6049
  var Kn = class e {
6047
6050
  constructor(e) {
6048
6051
  if (typeof e != "function") throw TypeError("executor must be a function.");
@@ -6099,19 +6102,19 @@ var Kn = class e {
6099
6102
  }
6100
6103
  };
6101
6104
  //#endregion
6102
- //#region node_modules/axios/lib/helpers/spread.js
6105
+ //#region ../../node_modules/axios/lib/helpers/spread.js
6103
6106
  function qn(e) {
6104
6107
  return function(t) {
6105
6108
  return e.apply(null, t);
6106
6109
  };
6107
6110
  }
6108
6111
  //#endregion
6109
- //#region node_modules/axios/lib/helpers/isAxiosError.js
6112
+ //#region ../../node_modules/axios/lib/helpers/isAxiosError.js
6110
6113
  function Jn(e) {
6111
6114
  return J.isObject(e) && e.isAxiosError === !0;
6112
6115
  }
6113
6116
  //#endregion
6114
- //#region node_modules/axios/lib/helpers/HttpStatusCode.js
6117
+ //#region ../../node_modules/axios/lib/helpers/HttpStatusCode.js
6115
6118
  var Yn = {
6116
6119
  Continue: 100,
6117
6120
  SwitchingProtocols: 101,
@@ -6187,7 +6190,7 @@ Object.entries(Yn).forEach(([e, t]) => {
6187
6190
  Yn[t] = e;
6188
6191
  });
6189
6192
  //#endregion
6190
- //#region node_modules/axios/lib/axios.js
6193
+ //#region ../../node_modules/axios/lib/axios.js
6191
6194
  function Xn(e) {
6192
6195
  let t = new Gn(e), n = B(Gn.prototype.request, t);
6193
6196
  return J.extend(n, Gn.prototype, t, { allOwnKeys: !0 }), J.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
@@ -6199,7 +6202,7 @@ Zn.Axios = Gn, Zn.CanceledError = en, Zn.CancelToken = Kn, Zn.isCancel = $t, Zn.
6199
6202
  return Promise.all(e);
6200
6203
  }, Zn.spread = qn, Zn.isAxiosError = Jn, Zn.mergeConfig = hn, Zn.AxiosHeaders = Zt, Zn.formToJSON = (e) => Pt(J.isHTMLForm(e) ? new FormData(e) : e), Zn.getAdapter = In.getAdapter, Zn.HttpStatusCode = Yn, Zn.default = Zn;
6201
6204
  //#endregion
6202
- //#region node_modules/@longruan/lr-map/dist/lr-map.es.js
6205
+ //#region ../../node_modules/@longruan/lr-map/dist/lr-map.es.js
6203
6206
  var Y = /* @__PURE__ */ R(z(), 1);
6204
6207
  (function(e) {
6205
6208
  typeof define == "function" && define.amd ? define(e) : e();
@@ -50818,7 +50821,7 @@ function pw({ createLayer: e, clearLayer: t, map: n, markerClick: r, callbackMar
50818
50821
  };
50819
50822
  }
50820
50823
  //#endregion
50821
- //#region packages/lr-map-viewer/src/utils/credential-crypto.js
50824
+ //#region src/utils/credential-crypto.js
50822
50825
  var mw = 256, hw = 12, gw = 12e4, _w = "SHA-256";
50823
50826
  function vw() {
50824
50827
  let e = globalThis?.crypto;
@@ -50862,7 +50865,7 @@ async function xw(e, t) {
50862
50865
  }
50863
50866
  }
50864
50867
  //#endregion
50865
- //#region packages/lr-map-viewer/src/config/internal-auth.js
50868
+ //#region src/config/internal-auth.js
50866
50869
  var Sw = Object.freeze({
50867
50870
  gis_server_url: "https://cloud-dev.longruan.com/",
50868
50871
  map_server_url: "http://39.102.163.10:8046/",
@@ -50906,7 +50909,7 @@ async function ww(e, t = {}) {
50906
50909
  };
50907
50910
  }
50908
50911
  //#endregion
50909
- //#region packages/lr-map-viewer/src/config/lr2d.js
50912
+ //#region src/config/lr2d.js
50910
50913
  var Tw = {
50911
50914
  engine: "lr-map",
50912
50915
  behavior: {
@@ -51000,7 +51003,7 @@ function Hw(e = {}, t = {}) {
51000
51003
  return kw(Tw, jw(e, t));
51001
51004
  }
51002
51005
  //#endregion
51003
- //#region packages/lr-map-viewer/src/adapters/lr2d/index.js
51006
+ //#region src/adapters/lr2d/index.js
51004
51007
  var Uw = null;
51005
51008
  function Ww(e, t = "") {
51006
51009
  if (e?.dataset) {
@@ -51047,7 +51050,7 @@ function Xw() {
51047
51050
  return e?.invalidateSize ? (e.invalidateSize(), !0) : !1;
51048
51051
  }
51049
51052
  //#endregion
51050
- //#region packages/lr-map-viewer/src/utils/loadScript.js
51053
+ //#region src/utils/loadScript.js
51051
51054
  var Zw = /* @__PURE__ */ new Map();
51052
51055
  function Qw(e) {
51053
51056
  return new URL(e, window.location.origin).toString();
@@ -51082,7 +51085,7 @@ function eT(e, t = {}) {
51082
51085
  return Zw.set(n, r), r;
51083
51086
  }
51084
51087
  //#endregion
51085
- //#region packages/lr-map-viewer/src/config/lr3d.js
51088
+ //#region src/config/lr3d.js
51086
51089
  var tT = {
51087
51090
  sdk: {
51088
51091
  resourcePrefix: "",
@@ -51251,7 +51254,7 @@ function CT(e = {}, t = {}) {
51251
51254
  return uT(aT(tT, pT(e, t)));
51252
51255
  }
51253
51256
  //#endregion
51254
- //#region node_modules/pako/dist/pako.esm.mjs
51257
+ //#region ../../node_modules/pako/dist/pako.esm.mjs
51255
51258
  var wT = 4, TT = 0, ET = 1, DT = 2;
51256
51259
  function OT(e) {
51257
51260
  let t = e.length;
@@ -52705,7 +52708,7 @@ var fA = {
52705
52708
  constants: LE
52706
52709
  };
52707
52710
  //#endregion
52708
- //#region packages/lr-map-viewer/src/sdk/lr3d/CLoudDataLoader.js
52711
+ //#region src/sdk/lr3d/CLoudDataLoader.js
52709
52712
  function SA(e) {
52710
52713
  let t = window.atob(e), n = t.length, r = new Uint8Array(n);
52711
52714
  for (let e = 0; e < n; e++) r[e] = t.charCodeAt(e);
@@ -53350,8 +53353,8 @@ var TA = class {
53350
53353
  layername: n,
53351
53354
  id: e.id,
53352
53355
  attrs: o,
53353
- height: 4,
53354
- width: 4,
53356
+ height: this.params?.laneSize?.height ?? 10,
53357
+ width: this.params?.laneSize?.width ?? 10,
53355
53358
  modeType: 0,
53356
53359
  topWidth: 3,
53357
53360
  archHeight: 2,
@@ -54156,7 +54159,7 @@ async function jj(e = {}) {
54156
54159
  };
54157
54160
  }
54158
54161
  //#endregion
54159
- //#region packages/lr-map-viewer/src/core/mode-manager.js
54162
+ //#region src/core/mode-manager.js
54160
54163
  var Mj = "3d", Nj = ["2d", "3d"];
54161
54164
  function Pj() {
54162
54165
  return [...Nj];
@@ -54312,7 +54315,7 @@ async function tM(e, t = {}) {
54312
54315
  };
54313
54316
  }
54314
54317
  //#endregion
54315
- //#region packages/lr-map-viewer/src/mock/mine-data/caojiatan.js
54318
+ //#region src/mock/mine-data/caojiatan.js
54316
54319
  var nM = [
54317
54320
  {
54318
54321
  id: "safe-001",
@@ -55090,7 +55093,7 @@ function fM(e) {
55090
55093
  return uM(dM(e).monitorPointItems);
55091
55094
  }
55092
55095
  //#endregion
55093
- //#region packages/lr-map-viewer/src/services/monitor-point.js
55096
+ //#region src/services/monitor-point.js
55094
55097
  var pM = Object.freeze([
55095
55098
  "安全监测",
55096
55099
  "人员定位",
@@ -55125,7 +55128,7 @@ async function vM(e) {
55125
55128
  }), t.map((e, t) => _M(e, t)).filter(Boolean);
55126
55129
  }
55127
55130
  //#endregion
55128
- //#region packages/lr-map-viewer/src/components/LrMonitorPointPopupPanel.vue
55131
+ //#region src/components/LrMonitorPointPopupPanel.vue
55129
55132
  var yM = { class: "lr3d-monitor-overlay__popup-header" }, bM = { class: "lr3d-monitor-overlay__popup-intro" }, xM = { class: "lr3d-monitor-overlay__popup-heading" }, SM = { class: "lr3d-monitor-overlay__popup-heading-text" }, CM = { class: "lr3d-monitor-overlay__popup-title" }, wM = { class: "lr3d-monitor-overlay__popup-type" }, TM = { class: "lr3d-monitor-overlay__popup-position-block" }, EM = { class: "lr3d-monitor-overlay__popup-section-bar" }, DM = { class: "lr3d-monitor-overlay__popup-section-label" }, OM = { class: "lr3d-monitor-overlay__popup-section-meta" }, kM = { class: "lr3d-monitor-overlay__popup-position-strip" }, AM = { class: "lr3d-monitor-overlay__popup-position" }, jM = { class: "lr3d-monitor-overlay__popup-data" }, MM = { class: "lr3d-monitor-overlay__popup-section-bar" }, NM = { class: "lr3d-monitor-overlay__popup-section-meta" }, PM = { class: "lr3d-monitor-overlay__popup-row-label" }, FM = { class: "lr3d-monitor-overlay__popup-row-value" }, IM = "--", LM = /* @__PURE__ */ zj({
55130
55133
  __name: "LrMonitorPointPopupPanel",
55131
55134
  props: {
@@ -55403,9 +55406,9 @@ var yM = { class: "lr3d-monitor-overlay__popup-header" }, bM = { class: "lr3d-mo
55403
55406
  k(() => [l.mineId, u.value?.mineId], (e, t) => {
55404
55407
  Le({ reloadSceneData: Array.isArray(t) && e.some((e, n) => e !== t[n]) });
55405
55408
  }, { immediate: !0 }), k(() => l.showMonitorPanel, (e) => {
55406
- he.value = e;
55409
+ e || (he.value = !1);
55407
55410
  }, { immediate: !0 }), k(() => l.showDebugPanel, (e) => {
55408
- H.value = e;
55411
+ e || (H.value = !1);
55409
55412
  }, { immediate: !0 }), k(() => p.value, (e) => {
55410
55413
  if (e === "ready") {
55411
55414
  Et();
@@ -56501,7 +56504,7 @@ var yM = { class: "lr3d-monitor-overlay__popup-header" }, bM = { class: "lr3d-mo
56501
56504
  let t = WA()?.manager?.modules?.lanemodulen;
56502
56505
  if (!t || typeof t.toggleLaneMaterial != "function") throw Error("当前三维实例缺少巷道材质切换接口");
56503
56506
  [...new Set(e.map((e) => typeof e?.layerName == "string" ? e.layerName.trim() : "").filter(Boolean))].forEach((e) => {
56504
- t.toggleLaneMaterial(e, "glass");
56507
+ t.toggleLaneMaterial(e, "uncover");
56505
56508
  }), (Array.isArray(t.typeGroup?.children) ? t.typeGroup.children : []).forEach((e) => {
56506
56509
  (Array.isArray(e?.children) ? e.children : []).forEach((e, t) => {
56507
56510
  t == 0 && console.log("lane", e), e.children[1] && (e.children[1].visible = !1), (Array.isArray(e?.material) ? e.material : [e?.material]).forEach((e, t) => {
@@ -56858,7 +56861,7 @@ var yM = { class: "lr3d-monitor-overlay__popup-header" }, bM = { class: "lr3d-mo
56858
56861
  "stroke-linejoin": "round",
56859
56862
  "stroke-width": "1.8"
56860
56863
  }, null, -1)
56861
- ]])) : (S(), o("svg", JM, [...n[23] ||= [c("<circle cx=\"12\" cy=\"12\" r=\"4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" data-v-30add9c4></circle><path d=\"M12 4V7\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-30add9c4></path><path d=\"M12 17V20\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-30add9c4></path><path d=\"M4 12H7\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-30add9c4></path><path d=\"M17 12H20\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-30add9c4></path>", 5)]]))], 8, UM),
56864
+ ]])) : (S(), o("svg", JM, [...n[23] ||= [c("<circle cx=\"12\" cy=\"12\" r=\"4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" data-v-63b333b4></circle><path d=\"M12 4V7\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-63b333b4></path><path d=\"M12 17V20\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-63b333b4></path><path d=\"M4 12H7\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-63b333b4></path><path d=\"M17 12H20\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-63b333b4></path>", 5)]]))], 8, UM),
56862
56865
  e.isActive && We.value ? (S(), i(LM, {
56863
56866
  key: 0,
56864
56867
  title: We.value.name,
@@ -57142,7 +57145,7 @@ var yM = { class: "lr3d-monitor-overlay__popup-header" }, bM = { class: "lr3d-mo
57142
57145
  p.value === "error" ? (S(), o("div", LP, [...n[40] ||= [s("p", null, "最小初始化未完成", -1), s("small", null, "请根据状态信息检查 SDK 依赖或资源路径", -1)]])) : a("", !0)
57143
57146
  ])], 2)]));
57144
57147
  }
57145
- }, [["__scopeId", "data-v-30add9c4"]]), rF = { class: "lr-map-viewer" }, iF = { class: "lr-map-viewer__stack" }, aF = "LrMapViewer", oF = /* @__PURE__ */ zj({
57148
+ }, [["__scopeId", "data-v-63b333b4"]]), rF = { class: "lr-map-viewer" }, iF = { class: "lr-map-viewer__stack" }, aF = "LrMapViewer", oF = /* @__PURE__ */ zj({
57146
57149
  __name: "LrMapViewer",
57147
57150
  props: {
57148
57151
  mode: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zhangdali1996/lr-map-viewer",
3
3
  "private": false,
4
- "version": "0.0.16",
4
+ "version": "0.0.18",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -18,7 +18,8 @@
18
18
  "./package.json": "./package.json"
19
19
  },
20
20
  "scripts": {
21
- "build": "vite build --config vite.config.js"
21
+ "build": "vite build --config vite.config.js",
22
+ "publish:public": "npm version patch --no-git-tag-version && npm publish --access public"
22
23
  },
23
24
  "sideEffects": [
24
25
  "**/*.css"