vis-core 0.21.36 → 0.21.37

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.
@@ -48349,7 +48349,7 @@ function createAreaLightMaterial(st) {
48349
48349
  const e = new MeshBasicMaterial();
48350
48350
  return e.color.setScalar(st), e;
48351
48351
  }
48352
- const version = "0.21.36";
48352
+ const version = "0.21.37";
48353
48353
  class Event {
48354
48354
  constructor() {
48355
48355
  J0(this, "event", new EventEmitter());
@@ -51168,9 +51168,7 @@ const objs$4 = Bi(bi({}, objs$5), {
51168
51168
  show() {
51169
51169
  return ii(this, null, function* () {
51170
51170
  if (this.showState || this.options.disableInitShow) return;
51171
- this.options.depthReference && this.options.bboxMap[this.options.adcode] && (yield this.fitTo(this.map, {
51172
- enableTransition: !1
51173
- })), dn(pn.prototype, this, "show").call(this);
51171
+ dn(pn.prototype, this, "show").call(this);
51174
51172
  const s = this.drawController.group;
51175
51173
  this.mapHistory[0] && (s.position.z = -this.mapHistory[0].depth, yield new Promise((c) => {
51176
51174
  new Tween(s.position).to(
@@ -54864,7 +54862,7 @@ const getMapConfig = (c, ...ct) => ii(void 0, [c, ...ct], function* (st, e = b,
54864
54862
  bbox: Wt,
54865
54863
  jsonName: ec(Yt, `${st}`)
54866
54864
  };
54867
- }), access = {
54865
+ }), removeCameraHistory = (st) => st.filter((e) => !(e.objectUuid === "camera" && ["SetPosition", "SetTarget"].includes(e.type))), access = {
54868
54866
  set token(st) {
54869
54867
  accessToken.token = st;
54870
54868
  }
@@ -54884,5 +54882,6 @@ export {
54884
54882
  getCityConfig,
54885
54883
  getMap2Config,
54886
54884
  getMap2WithCityConfig,
54887
- getMapConfig
54885
+ getMapConfig,
54886
+ removeCameraHistory
54888
54887
  };
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.21.36";
1
+ declare const _default: "0.21.37";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.21.36",
3
+ "version": "0.21.37",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version &&PUBLIC_EXCLUDE=public/city bundler",