vis-core 0.24.8 → 0.24.10

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.
@@ -90,7 +90,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
90
90
  ).toString(CryptoJS.enc.Utf8), ct = JSON.parse(rt), Zt = Date.now();
91
91
  return !ct.s || ct.s > Zt ? (this.token = void 0, "") : ct.e && ct.e < Zt ? (this.token = void 0, "") : (ct.isValid = qe, ct);
92
92
  }
93
- }, version = "0.24.8";
93
+ }, version = "0.24.10";
94
94
  /**
95
95
  * @license
96
96
  * Copyright 2010-2025 Three.js Authors
@@ -23073,10 +23073,10 @@ function M$3(de, e) {
23073
23073
  function Ke() {
23074
23074
  typeof de.removeListener == "function" && de.removeListener("error", Je), r([].slice.call(arguments));
23075
23075
  }
23076
- O(de, e, Ke, { once: !0 }), e !== "error" && A$2(de, Je, { once: !0 });
23076
+ O(de, e, Ke, { once: !0 }), e !== "error" && A$1(de, Je, { once: !0 });
23077
23077
  });
23078
23078
  }
23079
- function A$2(de, e, r) {
23079
+ function A$1(de, e, r) {
23080
23080
  typeof de.on == "function" && O(de, "error", e, r);
23081
23081
  }
23082
23082
  function O(de, e, r, c) {
@@ -33696,7 +33696,7 @@ const g$1 = (de, e = 1) => {
33696
33696
  `;
33697
33697
  }, new Points(r, Je);
33698
33698
  };
33699
- let A$1 = class {
33699
+ class v {
33700
33700
  constructor() {
33701
33701
  this.objectType = "BaseObject", this.userData = {}, this.prefab = !1, this.isInstantiate = !1, this.pm = makePromiseCreator(), this.materialList = {}, this.useMaterialType = "origin", this.onPointerIndex = [];
33702
33702
  }
@@ -33730,6 +33730,18 @@ let A$1 = class {
33730
33730
  get visible() {
33731
33731
  return this.object3d ? this.object3d.visible : !1;
33732
33732
  }
33733
+ get visibleWithAncestors() {
33734
+ if (this.visible) {
33735
+ let e = this.parent;
33736
+ for (; e; ) {
33737
+ if (!e.visible)
33738
+ return !1;
33739
+ e = e.parent;
33740
+ }
33741
+ return !0;
33742
+ } else
33743
+ return !1;
33744
+ }
33733
33745
  create() {
33734
33746
  }
33735
33747
  render() {
@@ -33894,7 +33906,7 @@ let A$1 = class {
33894
33906
  this.drawController.removePick(e);
33895
33907
  }), this.object3d && E$3(this.object3d, !1);
33896
33908
  }
33897
- };
33909
+ }
33898
33910
  var Xt = Object.defineProperty, Kt = Object.defineProperties, qt$1 = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, jt$1 = Object.prototype.propertyIsEnumerable, Ot = (de, e, r) => e in de ? Xt(de, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : de[e] = r, V$1 = (de, e) => {
33899
33911
  for (var r in e || (e = {}))
33900
33912
  Qt.call(e, r) && Ot(de, r, e[r]);
@@ -34054,7 +34066,7 @@ class fe {
34054
34066
  }
34055
34067
  }
34056
34068
  const nt = 1 / 8, ge = /Mac/.test(navigator.platform);
34057
- let v, Pt, at, ut, L, S, P$1, W, J, F$1, I, N$1, At, Dt, z$1, tt, G$1, bt, ft$1, Ut$1, gt$1, yt, ht$1;
34069
+ let T$1, Pt, at, ut, L, S, P$1, W, J, F$1, I, N$1, At, Dt, z$1, tt, G$1, bt, ft$1, Ut$1, gt$1, Ct, ht$1;
34058
34070
  class q extends fe {
34059
34071
  /**
34060
34072
  * Injects THREE as the dependency. You can then proceed to use CameraControls.
@@ -34097,7 +34109,7 @@ class q extends fe {
34097
34109
  * @category Statics
34098
34110
  */
34099
34111
  static install(e) {
34100
- v = e.THREE, Pt = Object.freeze(new v.Vector3(0, 0, 0)), at = Object.freeze(new v.Vector3(0, 1, 0)), ut = Object.freeze(new v.Vector3(0, 0, 1)), L = new v.Vector2(), S = new v.Vector3(), P$1 = new v.Vector3(), W = new v.Vector3(), J = new v.Vector3(), F$1 = new v.Vector3(), I = new v.Vector3(), N$1 = new v.Vector3(), At = new v.Vector3(), Dt = new v.Vector3(), z$1 = new v.Spherical(), tt = new v.Spherical(), G$1 = new v.Box3(), bt = new v.Box3(), ft$1 = new v.Sphere(), Ut$1 = new v.Quaternion(), gt$1 = new v.Quaternion(), yt = new v.Matrix4(), ht$1 = new v.Raycaster();
34112
+ T$1 = e.THREE, Pt = Object.freeze(new T$1.Vector3(0, 0, 0)), at = Object.freeze(new T$1.Vector3(0, 1, 0)), ut = Object.freeze(new T$1.Vector3(0, 0, 1)), L = new T$1.Vector2(), S = new T$1.Vector3(), P$1 = new T$1.Vector3(), W = new T$1.Vector3(), J = new T$1.Vector3(), F$1 = new T$1.Vector3(), I = new T$1.Vector3(), N$1 = new T$1.Vector3(), At = new T$1.Vector3(), Dt = new T$1.Vector3(), z$1 = new T$1.Spherical(), tt = new T$1.Spherical(), G$1 = new T$1.Box3(), bt = new T$1.Box3(), ft$1 = new T$1.Sphere(), Ut$1 = new T$1.Quaternion(), gt$1 = new T$1.Quaternion(), Ct = new T$1.Matrix4(), ht$1 = new T$1.Raycaster();
34101
34113
  }
34102
34114
  /**
34103
34115
  * list all ACTIONs
@@ -34125,7 +34137,7 @@ class q extends fe {
34125
34137
  */
34126
34138
  constructor(e, r) {
34127
34139
  super(), this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.minDistance = Number.EPSILON, this.maxDistance = 1 / 0, this.infinityDolly = !1, this.minZoom = 0.01, this.maxZoom = 1 / 0, this.smoothTime = 0.25, this.draggingSmoothTime = 0.125, this.maxSpeed = 1 / 0, this.azimuthRotateSpeed = 1, this.polarRotateSpeed = 1, this.dollySpeed = 1, this.dollyDragInverted = !1, this.truckSpeed = 2, this.dollyToCursor = !1, this.dragToOffset = !1, this.verticalDragToForward = !1, this.boundaryFriction = 0, this.restThreshold = 0.01, this.colliderMeshes = [], this.cancel = () => {
34128
- }, this._enabled = !0, this._state = h.NONE, this._viewport = null, this._changedDolly = 0, this._changedZoom = 0, this._hasRested = !0, this._boundaryEnclosesCamera = !1, this._needsUpdate = !0, this._updatedLastTime = !1, this._elementRect = new DOMRect(), this._isDragging = !1, this._dragNeedsUpdate = !0, this._activePointers = [], this._lockedPointer = null, this._interactiveArea = new DOMRect(0, 0, 1, 1), this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._isUserControllingOffset = !1, this._isUserControllingZoom = !1, this._lastDollyDirection = Y.NONE, this._thetaVelocity = { value: 0 }, this._phiVelocity = { value: 0 }, this._radiusVelocity = { value: 0 }, this._targetVelocity = new v.Vector3(), this._focalOffsetVelocity = new v.Vector3(), this._zoomVelocity = { value: 0 }, this._truckInternal = (dt, vt, Jt) => {
34140
+ }, this._enabled = !0, this._state = h.NONE, this._viewport = null, this._changedDolly = 0, this._changedZoom = 0, this._hasRested = !0, this._boundaryEnclosesCamera = !1, this._needsUpdate = !0, this._updatedLastTime = !1, this._elementRect = new DOMRect(), this._isDragging = !1, this._dragNeedsUpdate = !0, this._activePointers = [], this._lockedPointer = null, this._interactiveArea = new DOMRect(0, 0, 1, 1), this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._isUserControllingOffset = !1, this._isUserControllingZoom = !1, this._lastDollyDirection = Y.NONE, this._thetaVelocity = { value: 0 }, this._phiVelocity = { value: 0 }, this._radiusVelocity = { value: 0 }, this._targetVelocity = new T$1.Vector3(), this._focalOffsetVelocity = new T$1.Vector3(), this._zoomVelocity = { value: 0 }, this._truckInternal = (dt, vt, Jt) => {
34129
34141
  let $t, e0;
34130
34142
  if (B$1(this._camera)) {
34131
34143
  const t0 = S.copy(this._camera.position).sub(this._target), i0 = this._camera.getEffectiveFOV() * Q, n0 = t0.length() * Math.tan(i0 * 0.5);
@@ -34159,22 +34171,22 @@ class q extends fe {
34159
34171
  }, this._zoomInternal = (dt, vt, Jt) => {
34160
34172
  const $t = Math.pow(0.95, dt * this.dollySpeed), e0 = this._zoom, t0 = this._zoom * $t;
34161
34173
  this.zoomTo(t0, !0), this.dollyToCursor && (this._changedZoom += t0 - e0, this._dollyControlCoord.set(vt, Jt));
34162
- }, typeof v == "undefined" && console.error(
34174
+ }, typeof T$1 == "undefined" && console.error(
34163
34175
  "camera-controls: `THREE` is undefined. You must first run `CameraControls.install( { THREE: THREE } )`. Check the docs for further information."
34164
- ), this._camera = e, this._yAxisUpSpace = new v.Quaternion().setFromUnitVectors(
34176
+ ), this._camera = e, this._yAxisUpSpace = new T$1.Quaternion().setFromUnitVectors(
34165
34177
  this._camera.up,
34166
34178
  at
34167
- ), this._yAxisUpSpaceInverse = this._yAxisUpSpace.clone().invert(), this._state = h.NONE, this._target = new v.Vector3(), this._targetEnd = this._target.clone(), this._focalOffset = new v.Vector3(), this._focalOffsetEnd = this._focalOffset.clone(), this._spherical = new v.Spherical().setFromVector3(
34179
+ ), this._yAxisUpSpaceInverse = this._yAxisUpSpace.clone().invert(), this._state = h.NONE, this._target = new T$1.Vector3(), this._targetEnd = this._target.clone(), this._focalOffset = new T$1.Vector3(), this._focalOffsetEnd = this._focalOffset.clone(), this._spherical = new T$1.Spherical().setFromVector3(
34168
34180
  S.copy(this._camera.position).applyQuaternion(this._yAxisUpSpace)
34169
34181
  ), this._sphericalEnd = this._spherical.clone(), this._lastDistance = this._spherical.radius, this._zoom = this._camera.zoom, this._zoomEnd = this._zoom, this._lastZoom = this._zoom, this._nearPlaneCorners = [
34170
- new v.Vector3(),
34171
- new v.Vector3(),
34172
- new v.Vector3(),
34173
- new v.Vector3()
34174
- ], this._updateNearPlaneCorners(), this._boundary = new v.Box3(
34175
- new v.Vector3(-1 / 0, -1 / 0, -1 / 0),
34176
- new v.Vector3(1 / 0, 1 / 0, 1 / 0)
34177
- ), this._cameraUp0 = this._camera.up.clone(), this._target0 = this._target.clone(), this._position0 = this._camera.position.clone(), this._zoom0 = this._zoom, this._focalOffset0 = this._focalOffset.clone(), this._dollyControlCoord = new v.Vector2(), this.mouseButtons = {
34182
+ new T$1.Vector3(),
34183
+ new T$1.Vector3(),
34184
+ new T$1.Vector3(),
34185
+ new T$1.Vector3()
34186
+ ], this._updateNearPlaneCorners(), this._boundary = new T$1.Box3(
34187
+ new T$1.Vector3(-1 / 0, -1 / 0, -1 / 0),
34188
+ new T$1.Vector3(1 / 0, 1 / 0, 1 / 0)
34189
+ ), this._cameraUp0 = this._camera.up.clone(), this._target0 = this._target.clone(), this._position0 = this._camera.position.clone(), this._zoom0 = this._zoom, this._focalOffset0 = this._focalOffset.clone(), this._dollyControlCoord = new T$1.Vector2(), this.mouseButtons = {
34178
34190
  left: h.ROTATE,
34179
34191
  middle: h.DOLLY,
34180
34192
  right: h.TRUCK,
@@ -34184,7 +34196,7 @@ class q extends fe {
34184
34196
  two: B$1(this._camera) ? h.TOUCH_DOLLY_TRUCK : k(this._camera) ? h.TOUCH_ZOOM_TRUCK : h.NONE,
34185
34197
  three: h.TOUCH_TRUCK
34186
34198
  };
34187
- const c = new v.Vector2(), Je = new v.Vector2(), Ke = new v.Vector2(), Qe = (dt) => {
34199
+ const c = new T$1.Vector2(), Je = new T$1.Vector2(), Ke = new T$1.Vector2(), Qe = (dt) => {
34188
34200
  if (!this._enabled || !this._domElement) return;
34189
34201
  if (this._interactiveArea.left !== 0 || this._interactiveArea.top !== 0 || this._interactiveArea.width !== 1 || this._interactiveArea.height !== 1) {
34190
34202
  const $t = this._domElement.getBoundingClientRect(), e0 = (dt.clientX - $t.left) / ($t.right - $t.left), t0 = (dt.clientY - $t.top) / ($t.bottom - $t.top);
@@ -35103,7 +35115,7 @@ class q extends fe {
35103
35115
  this._viewport = null;
35104
35116
  return;
35105
35117
  }
35106
- this._viewport = this._viewport || new v.Vector4(), typeof e == "number" ? this._viewport.set(e, r, c, Je) : this._viewport.copy(e);
35118
+ this._viewport = this._viewport || new T$1.Vector4(), typeof e == "number" ? this._viewport.set(e, r, c, Je) : this._viewport.copy(e);
35107
35119
  }
35108
35120
  /**
35109
35121
  * Calculate the distance to fit the box.
@@ -35138,7 +35150,7 @@ class q extends fe {
35138
35150
  * @category Methods
35139
35151
  */
35140
35152
  getTarget(e, r = !0) {
35141
- return (e && e.isVector3 ? e : new v.Vector3()).copy(r ? this._targetEnd : this._target);
35153
+ return (e && e.isVector3 ? e : new T$1.Vector3()).copy(r ? this._targetEnd : this._target);
35142
35154
  }
35143
35155
  /**
35144
35156
  * Returns the camera position.
@@ -35147,7 +35159,7 @@ class q extends fe {
35147
35159
  * @category Methods
35148
35160
  */
35149
35161
  getPosition(e, r = !0) {
35150
- return (e && e.isVector3 ? e : new v.Vector3()).setFromSpherical(r ? this._sphericalEnd : this._spherical).applyQuaternion(this._yAxisUpSpaceInverse).add(r ? this._targetEnd : this._target);
35162
+ return (e && e.isVector3 ? e : new T$1.Vector3()).setFromSpherical(r ? this._sphericalEnd : this._spherical).applyQuaternion(this._yAxisUpSpaceInverse).add(r ? this._targetEnd : this._target);
35151
35163
  }
35152
35164
  /**
35153
35165
  * Returns the spherical coordinates of the orbit.
@@ -35156,7 +35168,7 @@ class q extends fe {
35156
35168
  * @category Methods
35157
35169
  */
35158
35170
  getSpherical(e, r = !0) {
35159
- return (e || new v.Spherical()).copy(r ? this._sphericalEnd : this._spherical);
35171
+ return (e || new T$1.Spherical()).copy(r ? this._sphericalEnd : this._spherical);
35160
35172
  }
35161
35173
  /**
35162
35174
  * Returns the focal offset, which is how much the camera appears to be translated in screen parallel coordinates.
@@ -35165,7 +35177,7 @@ class q extends fe {
35165
35177
  * @category Methods
35166
35178
  */
35167
35179
  getFocalOffset(e, r = !0) {
35168
- return (e && e.isVector3 ? e : new v.Vector3()).copy(
35180
+ return (e && e.isVector3 ? e : new T$1.Vector3()).copy(
35169
35181
  r ? this._focalOffsetEnd : this._focalOffset
35170
35182
  );
35171
35183
  }
@@ -35491,10 +35503,10 @@ class q extends fe {
35491
35503
  if (!(this.colliderMeshes.length >= 1) || _t(this._camera, "_collisionTest"))
35492
35504
  return e;
35493
35505
  const r = this._getTargetDirection(J);
35494
- yt.lookAt(Pt, r, this._camera.up);
35506
+ Ct.lookAt(Pt, r, this._camera.up);
35495
35507
  for (let c = 0; c < 4; c++) {
35496
35508
  const Je = P$1.copy(this._nearPlaneCorners[c]);
35497
- Je.applyMatrix4(yt);
35509
+ Je.applyMatrix4(Ct);
35498
35510
  const Ke = W.addVectors(this._target, Je);
35499
35511
  ht$1.set(Ke, r), ht$1.far = this._spherical.radius + 1;
35500
35512
  const Qe = ht$1.intersectObjects(this.colliderMeshes);
@@ -35563,7 +35575,7 @@ class q extends fe {
35563
35575
  ".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead."
35564
35576
  );
35565
35577
  }
35566
- static createBoundingSphere(e, r = new v.Sphere()) {
35578
+ static createBoundingSphere(e, r = new T$1.Sphere()) {
35567
35579
  const c = r, Je = c.center;
35568
35580
  G$1.makeEmpty(), e.traverseVisible((Qe) => {
35569
35581
  Qe.isMesh && G$1.expandByObject(Qe);
@@ -35579,7 +35591,7 @@ class q extends fe {
35579
35591
  }), c.radius = Math.sqrt(Ke), c;
35580
35592
  }
35581
35593
  }
35582
- const ye = {
35594
+ const Ce = {
35583
35595
  antialias: !1,
35584
35596
  devicePixelRatio: window.devicePixelRatio,
35585
35597
  powerPreference: "high-performance",
@@ -35592,7 +35604,7 @@ const ye = {
35592
35604
  depth: !1,
35593
35605
  physicallyCorrectLights: !1
35594
35606
  };
35595
- class Ce {
35607
+ class ye {
35596
35608
  constructor(e) {
35597
35609
  this.options = e;
35598
35610
  const { width: r, height: c, rendererParams: Je } = e, {
@@ -35673,13 +35685,13 @@ class Oe {
35673
35685
  this.setSize(1, 1), (e = this.renderer) == null || e.clear(), (r = this.renderer) == null || r.dispose();
35674
35686
  }
35675
35687
  }
35676
- const Te$1 = {
35688
+ const ve = {
35677
35689
  fov: 45,
35678
35690
  near: 1,
35679
35691
  far: 1e3,
35680
35692
  up: new Vector3(0, 1, 0)
35681
35693
  };
35682
- class ve {
35694
+ let Te$1 = class {
35683
35695
  constructor(e) {
35684
35696
  this.event = new P$2.EventEmitter(), this.cameraArr = [], this.cameraActiveIndex = 0, this.customCamera = !1, this.width = 0, this.height = 0, this.width = e.width, this.height = e.height;
35685
35697
  }
@@ -35690,6 +35702,9 @@ class ve {
35690
35702
  const { fov: r, far: c, near: Je, up: Ke, aspect: Qe } = e, _e = Qe != null ? Qe : this.width / this.height, $e = new PerspectiveCamera(r, _e, Je, c);
35691
35703
  return $e.up = Ke, this.cameraArr.push($e), $e;
35692
35704
  }
35705
+ removeCamera(e) {
35706
+ e === this.cameraActiveIndex && (this.cameraActiveIndex = 0), this.cameraArr.splice(e, 1);
35707
+ }
35693
35708
  setCameraActive(e) {
35694
35709
  this.cameraActiveIndex = e, this.event.emit("cameraChange", this.camera);
35695
35710
  }
@@ -35751,7 +35766,7 @@ class ve {
35751
35766
  (this.camera.fov !== r.fov || this.camera.aspect !== qe || !this.camera.matrixWorld.equals(Ke) || !this.camera.matrixWorldInverse.equals(Qe)) && (this.camera.fov = r.fov, this.camera.updateProjectionMatrix(), this.camera.matrixAutoUpdate = !1, this.camera.matrixWorld.copy(Ke), this.camera.matrixWorldInverse.copy(Qe), this.camera.aspect = qe, this.camera.updateProjectionMatrix());
35752
35767
  }
35753
35768
  }
35754
- }
35769
+ };
35755
35770
  const xe = {
35756
35771
  background: null
35757
35772
  }, we = new Scene();
@@ -35766,6 +35781,9 @@ let Se$1 = class {
35766
35781
  const r = new Scene();
35767
35782
  return e != null && e.background && (r.background = e.background), this.sceneArr.push(r), r;
35768
35783
  }
35784
+ removeScene(e) {
35785
+ e === this.sceneActiveIndex && (this.sceneActiveIndex = 0), this.sceneArr.splice(e, 1);
35786
+ }
35769
35787
  setSceneActive(e) {
35770
35788
  this.sceneActiveIndex = e, this.event.emit("sceneChange", this.scene);
35771
35789
  }
@@ -35881,6 +35899,10 @@ class Ae {
35881
35899
  });
35882
35900
  })), this.cameraControlsArr.push(Je), Je;
35883
35901
  }
35902
+ removeCameraControls(e) {
35903
+ var r;
35904
+ e === this.cameraControlsActiveIndex && (this.cameraControlsActiveIndex = 0), (r = this.cameraControlsArr[e]) == null || r.dispose(), this.cameraControlsArr.splice(e, 1);
35905
+ }
35884
35906
  setCameraControlsActive(e) {
35885
35907
  this.cameraControlsActiveIndex = e;
35886
35908
  }
@@ -36314,7 +36336,7 @@ const Ie = (de) => {
36314
36336
  "baseTexture"
36315
36337
  );
36316
36338
  return e.needsSwap = !0, e;
36317
- }, Ct = 1, K$2 = !1, He = new MeshBasicMaterial({ color: "black" }), ke = new PointsMaterial({
36339
+ }, yt = 1, K$2 = !1, He = new MeshBasicMaterial({ color: "black" }), ke = new PointsMaterial({
36318
36340
  color: "black",
36319
36341
  sizeAttenuation: !1
36320
36342
  }), Ve = new PointsMaterial({
@@ -36421,7 +36443,7 @@ class Xe {
36421
36443
  const $e = new EffectComposer(r);
36422
36444
  $e.renderToScreen = !1, $e.addPass(this.renderPass), $e.addPass(_e), this.bloomComposer = $e;
36423
36445
  const qe = Ie($e);
36424
- qe.uniforms.bloomAlphaType.value = Qe, this.bloomComposer = $e, this.finalComposer.addPass(qe), this.mixPass = qe, this.bloomLayer.set(Ct);
36446
+ qe.uniforms.bloomAlphaType.value = Qe, this.bloomComposer = $e, this.finalComposer.addPass(qe), this.mixPass = qe, this.bloomLayer.set(yt);
36425
36447
  }
36426
36448
  addBloomGui(e) {
36427
36449
  this.bloomComposer && new kt$1({
@@ -36457,9 +36479,9 @@ class Xe {
36457
36479
  return;
36458
36480
  let Je = r;
36459
36481
  r === void 0 && (Je = !this.bloomSelection.has(c)), Je ? (this.bloomSelection.add(c), c.traverse((Ke) => {
36460
- Ke.layers.enable(Ct);
36482
+ Ke.layers.enable(yt);
36461
36483
  })) : (this.bloomSelection.delete(c), c.traverse((Ke) => {
36462
- Ke.layers.disable(Ct);
36484
+ Ke.layers.disable(yt);
36463
36485
  })), this.bloomSelection.size === 0 ? this.bloomComposerActive = !1 : this.bloomComposerActive = !0;
36464
36486
  }
36465
36487
  enable() {
@@ -36583,6 +36605,9 @@ const lt$1 = class J1 {
36583
36605
  const c = this.cameraController.addPerspectiveCamera(r);
36584
36606
  return this.sceneController.addScene(e).add(c), this.controlsController.addCameraControls(c), this.sceneController.sceneArr.length - 1;
36585
36607
  }
36608
+ removePage(e) {
36609
+ e <= 0 || (this.cameraController.removeCamera(e), this.sceneController.removeScene(e), this.controlsController.removeCameraControls(e), this.pageActiveIndex === e && this.showPage(0));
36610
+ }
36586
36611
  showPage(e) {
36587
36612
  if (e !== this.pageActiveIndex) {
36588
36613
  if (e !== -1 && !this.sceneController.sceneArr[e]) {
@@ -36605,13 +36630,13 @@ const lt$1 = class J1 {
36605
36630
  height: $e,
36606
36631
  renderer: r.WebGPURenderer,
36607
36632
  rendererParams: Ee
36608
- }) : new Ce({
36633
+ }) : new ye({
36609
36634
  width: _e,
36610
36635
  height: $e,
36611
36636
  rendererParams: mt$1(V$1({}, Ke), {
36612
36637
  antialias: !1
36613
36638
  })
36614
- }), st = new ve({
36639
+ }), st = new Te$1({
36615
36640
  width: _e,
36616
36641
  height: $e
36617
36642
  }), rt = new Se$1({}), ct = new Ae({
@@ -36814,10 +36839,10 @@ lt$1.options = {
36814
36839
  viewHelper: K$2,
36815
36840
  controls: !0,
36816
36841
  transformControls: K$2,
36817
- renderer: ye,
36842
+ renderer: Ce,
36818
36843
  composer: Ge$1,
36819
36844
  scene: xe,
36820
- camera: Te$1,
36845
+ camera: ve,
36821
36846
  bloom: !1,
36822
36847
  bloomParams: We,
36823
36848
  ssao: !1,
@@ -36829,7 +36854,7 @@ lt$1.options = {
36829
36854
  };
36830
36855
  let Vt$1 = lt$1;
36831
36856
  const ws = q.ACTION;
36832
- let t$1 = class extends A$1 {
36857
+ let t$1 = class extends v {
36833
36858
  create() {
36834
36859
  this.createGroup();
36835
36860
  }
@@ -36942,7 +36967,7 @@ var kt = Object.defineProperty, Ft = Object.defineProperties, qt = Object.getOwn
36942
36967
  }, _e = ($e) => $e.done ? c($e.value) : Promise.resolve($e.value).then(Ke, Qe);
36943
36968
  _e((r = r.apply(de, e)).next());
36944
36969
  });
36945
- class Se extends A$1 {
36970
+ class Se extends v {
36946
36971
  constructor(e) {
36947
36972
  super(), this.objectType = "BaseObject#Node", this.onNodePointerIndex = [], this.options = P({
36948
36973
  type: "2d"
@@ -36989,7 +37014,7 @@ class Se extends A$1 {
36989
37014
  }), super.dispose();
36990
37015
  }
36991
37016
  }
36992
- class Me extends A$1 {
37017
+ class Me extends v {
36993
37018
  constructor(e) {
36994
37019
  super(), this.rectAreaLightUniformsLibInit = !1, this.options = e;
36995
37020
  }
@@ -37222,7 +37247,7 @@ const Vt = (de) => {
37222
37247
  const { points: e } = de, r = e.reduce((c, Je, Ke) => (Ke < e.length - 1 && c.push(Je, e[Ke + 1]), c), []);
37223
37248
  return new BufferGeometry().setFromPoints(r);
37224
37249
  };
37225
- let Te = class extends A$1 {
37250
+ let Te = class extends v {
37226
37251
  constructor(de = {}) {
37227
37252
  super(), this.options = P({}, de);
37228
37253
  }
@@ -37379,7 +37404,7 @@ const gt = (de) => {
37379
37404
  const { setPointWidth: e, nodes: r } = de, c = new he();
37380
37405
  return c.setPoints(r, e), c;
37381
37406
  };
37382
- class Ge extends A$1 {
37407
+ class Ge extends v {
37383
37408
  constructor(e = {}) {
37384
37409
  super(), this.options = P({}, e);
37385
37410
  }
@@ -37493,7 +37518,7 @@ const zt = (de) => {
37493
37518
  endHeight: Qe
37494
37519
  }));
37495
37520
  };
37496
- class Be extends A$1 {
37521
+ class Be extends v {
37497
37522
  constructor(e) {
37498
37523
  super(), this.options = P({}, e);
37499
37524
  }
@@ -37878,7 +37903,7 @@ const Rt = (de) => {
37878
37903
  });
37879
37904
  return E(), rt;
37880
37905
  };
37881
- class je extends A$1 {
37906
+ class je extends v {
37882
37907
  constructor(e) {
37883
37908
  super(), this.options = P({
37884
37909
  depth: 1
@@ -37972,7 +37997,7 @@ class Light extends Me {
37972
37997
  Qe.isPointLight && (Qe.shadow.mapSize.width = 2048, Qe.shadow.mapSize.height = 2048);
37973
37998
  }
37974
37999
  }
37975
- class Point extends A$1 {
38000
+ class Point extends v {
37976
38001
  constructor(r) {
37977
38002
  super();
37978
38003
  J0(this, "options");
@@ -38050,7 +38075,7 @@ const V = {
38050
38075
  return e * de.renderer.getPixelRatio() / Qe.width / (1 / $e);
38051
38076
  };
38052
38077
  let map;
38053
- class Arc extends A$1 {
38078
+ class Arc extends v {
38054
38079
  constructor(r) {
38055
38080
  super();
38056
38081
  J0(this, "options");
@@ -38226,7 +38251,7 @@ class Arc extends A$1 {
38226
38251
  });
38227
38252
  }
38228
38253
  }
38229
- class CrossPlane extends A$1 {
38254
+ class CrossPlane extends v {
38230
38255
  constructor(r) {
38231
38256
  super();
38232
38257
  J0(this, "options");
@@ -38246,7 +38271,7 @@ class CrossPlane extends A$1 {
38246
38271
  });
38247
38272
  }
38248
38273
  }
38249
- class PlaneShadow extends A$1 {
38274
+ class PlaneShadow extends v {
38250
38275
  create() {
38251
38276
  return ti(this, null, function* () {
38252
38277
  const e = new PlaneGeometry(100, 100, 2, 2), r = new ShadowMaterial();
@@ -38254,7 +38279,7 @@ class PlaneShadow extends A$1 {
38254
38279
  });
38255
38280
  }
38256
38281
  }
38257
- class Model extends A$1 {
38282
+ class Model extends v {
38258
38283
  constructor(r) {
38259
38284
  super();
38260
38285
  J0(this, "options");
@@ -38282,25 +38307,25 @@ class Model extends A$1 {
38282
38307
  });
38283
38308
  }
38284
38309
  }
38285
- class Box extends A$1 {
38310
+ class Box extends v {
38286
38311
  create() {
38287
38312
  const e = new BoxGeometry(1, 1, 1, 1, 1, 1);
38288
38313
  this.createMesh(e), this.scale.multiplyScalar(20);
38289
38314
  }
38290
38315
  }
38291
- class Capsule extends A$1 {
38316
+ class Capsule extends v {
38292
38317
  create() {
38293
38318
  const e = new CapsuleGeometry(1, 1, 4, 8);
38294
38319
  this.createMesh(e), this.scale.multiplyScalar(20);
38295
38320
  }
38296
38321
  }
38297
- class Circle extends A$1 {
38322
+ class Circle extends v {
38298
38323
  create() {
38299
38324
  const e = new CircleGeometry(1, 32, 0, Math.PI * 2);
38300
38325
  this.createMesh(e), this.scale.multiplyScalar(20);
38301
38326
  }
38302
38327
  }
38303
- class Cylinder extends A$1 {
38328
+ class Cylinder extends v {
38304
38329
  create() {
38305
38330
  const e = new CylinderGeometry(
38306
38331
  1,
@@ -38315,19 +38340,19 @@ class Cylinder extends A$1 {
38315
38340
  this.createMesh(e), this.scale.multiplyScalar(20);
38316
38341
  }
38317
38342
  }
38318
- class Dodecahedron extends A$1 {
38343
+ class Dodecahedron extends v {
38319
38344
  create() {
38320
38345
  const e = new DodecahedronGeometry(1, 0);
38321
38346
  this.createMesh(e), this.scale.multiplyScalar(20);
38322
38347
  }
38323
38348
  }
38324
- class Icosahedron extends A$1 {
38349
+ class Icosahedron extends v {
38325
38350
  create() {
38326
38351
  const e = new IcosahedronGeometry(1, 0);
38327
38352
  this.createMesh(e), this.scale.multiplyScalar(20);
38328
38353
  }
38329
38354
  }
38330
- class Lathe extends A$1 {
38355
+ class Lathe extends v {
38331
38356
  create() {
38332
38357
  const e = new LatheGeometry();
38333
38358
  this.createMesh(
@@ -38336,25 +38361,25 @@ class Lathe extends A$1 {
38336
38361
  ), this.scale.multiplyScalar(20);
38337
38362
  }
38338
38363
  }
38339
- class Octahedron extends A$1 {
38364
+ class Octahedron extends v {
38340
38365
  create() {
38341
38366
  const e = new OctahedronGeometry(1, 0);
38342
38367
  this.createMesh(e), this.scale.multiplyScalar(20);
38343
38368
  }
38344
38369
  }
38345
- class Plane extends A$1 {
38370
+ class Plane extends v {
38346
38371
  create() {
38347
38372
  const e = new PlaneGeometry(1, 1, 2, 2);
38348
38373
  this.createMesh(e), this.scale.multiplyScalar(20);
38349
38374
  }
38350
38375
  }
38351
- class Ring extends A$1 {
38376
+ class Ring extends v {
38352
38377
  create() {
38353
38378
  const e = new RingGeometry(0.5, 1, 32, 1, 0, Math.PI * 2);
38354
38379
  this.createMesh(e), this.scale.multiplyScalar(20);
38355
38380
  }
38356
38381
  }
38357
- class Sphere extends A$1 {
38382
+ class Sphere extends v {
38358
38383
  constructor() {
38359
38384
  super(...arguments);
38360
38385
  J0(this, "radius", 100);
@@ -38368,7 +38393,7 @@ class Sphere extends A$1 {
38368
38393
  this.createMesh(r, this.material), this.object3d.rotation.y = Math.PI / 180 * 90;
38369
38394
  }
38370
38395
  }
38371
- class Sprite extends A$1 {
38396
+ class Sprite extends v {
38372
38397
  create() {
38373
38398
  this.createSprite(new SpriteMaterial()), this.scale.multiplyScalar(20);
38374
38399
  }
@@ -38387,25 +38412,25 @@ class Sprite extends A$1 {
38387
38412
  }
38388
38413
  }
38389
38414
  }
38390
- class Tetrahedron extends A$1 {
38415
+ class Tetrahedron extends v {
38391
38416
  create() {
38392
38417
  const e = new TetrahedronGeometry(1, 0);
38393
38418
  this.createMesh(e), this.scale.multiplyScalar(20);
38394
38419
  }
38395
38420
  }
38396
- class Torus extends A$1 {
38421
+ class Torus extends v {
38397
38422
  create() {
38398
38423
  const e = new TorusGeometry(1, 0.4, 12, 48, Math.PI * 2);
38399
38424
  this.createMesh(e), this.scale.multiplyScalar(20);
38400
38425
  }
38401
38426
  }
38402
- class TorusKnot extends A$1 {
38427
+ class TorusKnot extends v {
38403
38428
  create() {
38404
38429
  const e = new TorusKnotGeometry(1, 0.4, 64, 8, 2, 3);
38405
38430
  this.createMesh(e), this.scale.multiplyScalar(20);
38406
38431
  }
38407
38432
  }
38408
- class Tube extends A$1 {
38433
+ class Tube extends v {
38409
38434
  constructor(r) {
38410
38435
  super();
38411
38436
  J0(this, "options");
@@ -48105,7 +48130,7 @@ class sl {
48105
48130
  return Wt.type === "down" || Wt.type === "downOutside" || Wt.type === "click";
48106
48131
  }).reduce(
48107
48132
  (Wt, Yt) => Wt.concat(
48108
- Yt.objArr.map((Tt) => ({ obj: Tt, type: Yt.type, cb: Yt.cb })).filter(({ obj: Tt }) => Tt.object3d && Tt.visible)
48133
+ Yt.objArr.map((Tt) => ({ obj: Tt, type: Yt.type, cb: Yt.cb })).filter(({ obj: Tt }) => Tt.object3d && Tt.visibleWithAncestors)
48109
48134
  ),
48110
48135
  []
48111
48136
  ).reduce(
@@ -50903,6 +50928,16 @@ class Base extends Event {
50903
50928
  this.pencil.controls.smoothTime = Ke / 1e3, this.pencil.controls.restThreshold = 0, yield this.pencil.controls.truck(r, c, Je), this.pencil.controls.restThreshold = 25e-4, this.pencil.controls.smoothTime = 250 / 1e3;
50904
50929
  });
50905
50930
  }
50931
+ dollyTo(r, c = !1, Je = 250) {
50932
+ return ti(this, null, function* () {
50933
+ let Ke = r;
50934
+ if (typeof Ke == "string") {
50935
+ const [Qe, _e] = Ke.split("=");
50936
+ Qe === "+" ? Ke = this.pencil.controls.distance + +_e : Qe === "-" ? Ke = this.pencil.controls.distance - +_e : Qe === "*" ? Ke = this.pencil.controls.distance * +_e : Qe === "/" ? Ke = this.pencil.controls.distance / +_e : console.error("dollyTo distance error");
50937
+ }
50938
+ this.pencil.controls.smoothTime = Je / 1e3, yield this.pencil.controls.dollyTo(Ke, c), this.pencil.controls.smoothTime = 250 / 1e3;
50939
+ });
50940
+ }
50906
50941
  absoluteAngle(r, c) {
50907
50942
  const Je = Math.PI * 2, Ke = r - c;
50908
50943
  return MathUtils.euclideanModulo(Ke + Math.PI, Je) - Math.PI;
@@ -50953,9 +50988,9 @@ class Base extends Event {
50953
50988
  }
50954
50989
  dispose() {
50955
50990
  var r, c, Je, Ke;
50956
- super.dispose(), this.editor && (this.editor.viewport.vis = void 0, this.editor.dispose()), this.cameraState = {}, this.publicDir = {}, this.options.pencil ? (this.drawController.objects.forEach((Qe) => {
50991
+ super.dispose(), this.editor && (this.editor.viewport.vis = void 0, this.editor.dispose()), this.cameraState = {}, this.publicDir = {}, this.sceneActive > 0 ? (this.drawController.objects.forEach((Qe) => {
50957
50992
  Qe.erase();
50958
- }), this.drawController.dispose(), (r = this.mList) == null || r.dispose()) : (c = this.pencil) == null || c.dispose(), (Je = this.pmremGenerator) == null || Je.dispose(), (Ke = this.re) == null || Ke.dispose();
50993
+ }), this.drawController.dispose(), (r = this.mList) == null || r.dispose(), this.pencil.removePage(this.sceneActive)) : (c = this.pencil) == null || c.dispose(), (Je = this.pmremGenerator) == null || Je.dispose(), (Ke = this.re) == null || Ke.dispose();
50959
50994
  }
50960
50995
  }
50961
50996
  J0(Base, "VisName", "base");
@@ -129340,7 +129375,7 @@ const continentsM49 = {
129340
129375
  colorWrite: !1,
129341
129376
  transparent: !0
129342
129377
  });
129343
- let PlaneMap$1 = class extends A$1 {
129378
+ let PlaneMap$1 = class extends v {
129344
129379
  constructor(r) {
129345
129380
  super();
129346
129381
  J0(this, "options");
@@ -130219,7 +130254,7 @@ Water.WaterShader = {
130219
130254
  }`
130220
130255
  )
130221
130256
  };
130222
- class CityPlane extends A$1 {
130257
+ class CityPlane extends v {
130223
130258
  constructor(r) {
130224
130259
  super();
130225
130260
  J0(this, "options");
@@ -130232,7 +130267,9 @@ class CityPlane extends A$1 {
130232
130267
  }
130233
130268
  create() {
130234
130269
  return ti(this, null, function* () {
130235
- const { width: r, height: c, color: Je, map: Ke, material: Qe } = this.options, _e = new PlaneGeometry(r, c, 2, 2);
130270
+ const { width: r, height: c, color: Je, map: Ke, material: Qe } = this.options;
130271
+ console.log("create plane", r, c);
130272
+ const _e = new PlaneGeometry(r, c, 2, 2);
130236
130273
  this.plane = _e;
130237
130274
  const $e = Qe || new MeshBasicMaterial({
130238
130275
  color: Je,
@@ -130256,7 +130293,7 @@ class CityPlane extends A$1 {
130256
130293
  this.water = c, c.position.z = 1e-3, this.add(c);
130257
130294
  }
130258
130295
  }
130259
- class ContinentsBg extends A$1 {
130296
+ class ContinentsBg extends v {
130260
130297
  constructor(r) {
130261
130298
  super();
130262
130299
  J0(this, "options");
@@ -130341,7 +130378,7 @@ class ContinentsBg extends A$1 {
130341
130378
  }), this.mapArr.length = 0;
130342
130379
  }
130343
130380
  }
130344
- class PlaneMap extends A$1 {
130381
+ class PlaneMap extends v {
130345
130382
  constructor(r) {
130346
130383
  super();
130347
130384
  J0(this, "options");
@@ -131215,21 +131252,21 @@ const objs$4 = Pi(li({}, objs$5), {
131215
131252
  const Je = Math.abs(c[3] - c[1]) / Math.abs(r[3] - r[1]), Ke = Math.abs(c[2] - c[0]) / Math.abs(r[2] - r[0]);
131216
131253
  return Math.max(Je, Ke);
131217
131254
  }
131218
- getAdcodeShowLevel(r) {
131219
- var c;
131220
- if ((c = this.options.fixCity) != null && c[r] && (r = this.options.fixCity[r]), r === 0)
131255
+ getAdcodeShowLevel(r, c = !0) {
131256
+ var Je;
131257
+ if ((Je = this.options.fixCity) != null && Je[r] && (r = this.options.fixCity[r]), r === 0)
131221
131258
  return "world";
131222
131259
  if (r === 1e5)
131223
131260
  return "country";
131224
131261
  if (/^\d{6}$/.test(`${r}`)) {
131225
- const { level: Je, parent: Ke } = adcodeMap[r], Qe = Ke && adcodeMap[Ke].level;
131226
- return Je === "district" && Qe === "province" ? "city" : Je;
131227
- } else if (continentsType.find((Je) => Je.adcode === r))
131262
+ const { level: Ke, parent: Qe } = adcodeMap[r], _e = Qe && adcodeMap[Qe].level;
131263
+ return Ke === "district" && _e === "province" && c ? "city" : Ke;
131264
+ } else if (continentsType.find((Ke) => Ke.adcode === r))
131228
131265
  return "continent";
131229
131266
  }
131230
131267
  handleClick(r) {
131231
131268
  const { drillDownRestrictions: c } = this.options;
131232
- this.isAnimating || (r && r.userData.adcode && this.getAdcodeShowLevel(r.userData.adcode) === "district" && this.options.showDistrictStreetView ? this.emit(
131269
+ this.isAnimating || (r && r.userData.adcode && this.getAdcodeShowLevel(r.userData.adcode, !1) === "district" && this.options.showDistrictStreetView ? this.emit(
131233
131270
  "beforeDrillDown",
131234
131271
  [...this.adcodes, r.userData.adcode],
131235
131272
  "city"
@@ -131707,7 +131744,7 @@ const getBoxMultiPoly = (de) => {
131707
131744
  const e = de.features.map((r) => r.geometry.type === "Polygon" ? [r.geometry.coordinates] : r.geometry.coordinates).flat();
131708
131745
  return Array.from({ length: e.length }, (r, c) => polygon(e[c]));
131709
131746
  };
131710
- class Building extends A$1 {
131747
+ class Building extends v {
131711
131748
  constructor(r) {
131712
131749
  super();
131713
131750
  J0(this, "options");
@@ -131852,7 +131889,7 @@ class Building extends A$1 {
131852
131889
  super.dispose(), this.outJson.clear();
131853
131890
  }
131854
131891
  }
131855
- class Road extends A$1 {
131892
+ class Road extends v {
131856
131893
  constructor(r) {
131857
131894
  super();
131858
131895
  J0(this, "options");
@@ -131955,7 +131992,7 @@ class Road extends A$1 {
131955
131992
  }), this.linePrimary = [], this.lineSecondary = [], this.outJson.clear();
131956
131993
  }
131957
131994
  }
131958
- class Area extends A$1 {
131995
+ class Area extends v {
131959
131996
  constructor(r) {
131960
131997
  super();
131961
131998
  J0(this, "options");
@@ -132052,7 +132089,7 @@ function getCanvasTexture(de) {
132052
132089
  const Je = new CanvasTexture(e);
132053
132090
  return Je.colorSpace = SRGBColorSpace, Je.wrapT = RepeatWrapping, Je.magFilter = NearestFilter, Je.minFilter = NearestFilter, e.remove(), Je;
132054
132091
  }
132055
- class Target extends A$1 {
132092
+ class Target extends v {
132056
132093
  constructor(r) {
132057
132094
  super();
132058
132095
  J0(this, "options");
@@ -133038,7 +133075,7 @@ class City$1 extends Base {
133038
133075
  let Yt = 1e3, Tt = 1e3;
133039
133076
  if (Je) {
133040
133077
  const Jt = this.projection([Je[0], Je[1]]), $t = this.projection([Je[2], Je[3]]), e0 = Math.abs($t[0] - Jt[0]), t0 = Math.abs($t[1] - Jt[1]);
133041
- Yt = e0, Tt = t0;
133078
+ Yt = e0, Tt = t0, console.log("bbox", e0, t0);
133042
133079
  }
133043
133080
  const dt = this.mList.getMaterial("city-plane"), vt = yield this.drawController.draw(
133044
133081
  "CityPlane",
@@ -133133,7 +133170,7 @@ class City$1 extends Base {
133133
133170
  console.warn(" json:Building");
133134
133171
  return;
133135
133172
  }
133136
- const c = `building-${this.options.cacheKey || this.adcode}${r.grey ? "-grey" : ""}`, Je = yield this.drawController.draw(
133173
+ const c = this.options.cacheKey ? `building-${this.options.cacheKey}${r.grey ? "-grey" : ""}` : void 0, Je = yield this.drawController.draw(
133137
133174
  "Building",
133138
133175
  {
133139
133176
  projection: {
@@ -133171,7 +133208,7 @@ class City$1 extends Base {
133171
133208
  return;
133172
133209
  }
133173
133210
  if (!r.type) return;
133174
- const { grey: c } = r, Je = c ? "-grey" : "", Ke = `${r.type}-${this.options.cacheKey || this.adcode}${r.grey ? "-grey" : ""}`, Qe = yield this.drawController.draw(
133211
+ const { grey: c } = r, Je = c ? "-grey" : "", Ke = this.options.cacheKey ? `${r.type}-${this.options.cacheKey}${r.grey ? "-grey" : ""}` : void 0, Qe = yield this.drawController.draw(
133175
133212
  "Area",
133176
133213
  {
133177
133214
  projection: {
@@ -133210,7 +133247,7 @@ class City$1 extends Base {
133210
133247
  console.warn(" json:Road");
133211
133248
  return;
133212
133249
  }
133213
- const c = `road-${this.options.cacheKey || this.adcode}${r.grey ? "-grey" : ""}`, Je = yield this.drawController.draw(
133250
+ const c = this.options.cacheKey ? `road-${this.options.cacheKey}${r.grey ? "-grey" : ""}` : void 0, Je = yield this.drawController.draw(
133214
133251
  "Road",
133215
133252
  {
133216
133253
  projection: {
@@ -133292,6 +133329,7 @@ const m1 = class m1 extends Map$1 {
133292
133329
  showBuilding: !0,
133293
133330
  buildingSideGradient: !1,
133294
133331
  showRoad: !0,
133332
+ cacheCity: !0,
133295
133333
  showGrassland: !0,
133296
133334
  showRiver: !0,
133297
133335
  setWaterMaterial: !1,
@@ -133339,7 +133377,7 @@ const m1 = class m1 extends Map$1 {
133339
133377
  bbox: Qe,
133340
133378
  fitTo: !1,
133341
133379
  adcode: r,
133342
- cacheKey: this.options.adcode + "-" + r,
133380
+ cacheKey: this.options.cacheCity ? `${this.options.adcode}-${r}` : void 0,
133343
133381
  jsonName: _e,
133344
133382
  grey: c.grey,
133345
133383
  greyFull: this.options.greyFull,
@@ -133428,7 +133466,7 @@ const m1 = class m1 extends Map$1 {
133428
133466
  }
133429
133467
  dispose() {
133430
133468
  Object.values(this.cityVisObj).forEach((r) => {
133431
- r.city && (r.city.options.pencil = this.pencil, r.city.dispose()), r.state.reject();
133469
+ r.city && r.city.dispose(), r.state.reject();
133432
133470
  }), super.dispose();
133433
133471
  }
133434
133472
  };
@@ -133447,7 +133485,7 @@ class Earth$1 extends Sphere {
133447
133485
  this.material = c, super.create(), this.rotation.y = Math.PI / 180 * -90, this.object3d.name = "地球", r.setObject3d(this.object3d, "earth");
133448
133486
  }
133449
133487
  }
133450
- class Countries extends A$1 {
133488
+ class Countries extends v {
133451
133489
  constructor(r) {
133452
133490
  super();
133453
133491
  J0(this, "options");
@@ -133568,7 +133606,7 @@ class Countries extends A$1 {
133568
133606
  return Qe.emissive.set(c), Qe.emissiveIntensity = Je, r.useMaterial(Ke), Qe;
133569
133607
  }
133570
133608
  }
133571
- class SphereShadow extends A$1 {
133609
+ class SphereShadow extends v {
133572
133610
  constructor(r) {
133573
133611
  super();
133574
133612
  J0(this, "options");