vis-core 0.28.6 → 0.28.8

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.
@@ -88,7 +88,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
88
88
  ).toString(CryptoJS.enc.Utf8), ke = JSON.parse(Ae), He = Date.now();
89
89
  return !ke.s || ke.s > He ? (this.token = void 0, "") : ke.e && ke.e < He ? (this.token = void 0, "") : (ke.isValid = Pe, ke);
90
90
  }
91
- }, version = "0.28.6";
91
+ }, version = "0.28.8";
92
92
  /**
93
93
  * @license
94
94
  * Copyright 2010-2025 Three.js Authors
@@ -54495,12 +54495,13 @@ class ee {
54495
54495
  });
54496
54496
  }
54497
54497
  setPageActive(t, r) {
54498
- this.activeIndex = t, this.activeControllerSet.clear(), this.controller = (Array.from(this.controllerMap.entries()).find(
54499
- ([m, v]) => {
54500
- const C = v.isEnabled(t);
54501
- return C && this.activeControllerSet.add(m), r == null || r(m, C), C;
54502
- }
54503
- ) || [])[0], this.event.emit("pageChange", this.controller);
54498
+ this.activeIndex = t, this.activeControllerSet.clear();
54499
+ const m = Array.from(this.controllerMap.entries()).map(([v, C]) => {
54500
+ const w = C.isEnabled(t);
54501
+ if (r == null || r(v, w), w)
54502
+ return this.activeControllerSet.add(v), v;
54503
+ }).filter(Boolean);
54504
+ this.controller = m[0], this.event.emit("pageChange", this.controller);
54504
54505
  }
54505
54506
  update(t, r) {
54506
54507
  this.activeControllerSet.forEach((m) => {
@@ -59709,7 +59710,7 @@ function applyFixes(g, t) {
59709
59710
  }
59710
59711
  },
59711
59712
  {
59712
- version: "0.28.4",
59713
+ version: "0.29.0",
59713
59714
  fix: () => !1
59714
59715
  }
59715
59716
  ];
@@ -60006,7 +60007,7 @@ class Editor {
60006
60007
  object: r.object3d,
60007
60008
  baseObject: r,
60008
60009
  material: m,
60009
- use: !!this.pencil.mList.getBaseObjectMap(m).size
60010
+ use: this.pencil.mList.getBaseObjectMap(m).size
60010
60011
  };
60011
60012
  }), this.emit("mListGraphChanged");
60012
60013
  }
@@ -60748,7 +60749,7 @@ class Base extends Camera {
60748
60749
  if (this.options.css2DContainer && (r.css2DRendererParams = {
60749
60750
  container: this.options.css2DContainer
60750
60751
  }), this.options.pencil)
60751
- this.pencil = this.options.pencil, this.sceneActive = this.pencil.addPage({
60752
+ this.pencil = this.options.pencil, this.pencil.stop(), this.sceneActive = this.pencil.addPage({
60752
60753
  cameraOptions: {
60753
60754
  fov: (C = (v = r.camera) == null ? void 0 : v.fov) != null ? C : 45,
60754
60755
  near: (O = (w = r.camera) == null ? void 0 : w.near) != null ? O : 0.1,
@@ -60946,7 +60947,7 @@ class Base extends Camera {
60946
60947
  this.showState || (this.useSaveCamera("visShow"), this.options.disableInitShow || this.showAction());
60947
60948
  }
60948
60949
  showAction() {
60949
- this.lead.group.show(), this.playing || this.lead.prefabGroup.show(), this.pencil.start(), this.showState = !0, this.emit("show");
60950
+ this.showState || (this.lead.group.show(), this.playing || this.lead.prefabGroup.show(), this.pencil.start(), this.showState = !0, this.emit("show"));
60950
60951
  }
60951
60952
  hide() {
60952
60953
  this.showState && (this.lead.group.hide(), this.lead.prefabGroup.hide(), this.showState = !1, this.emit("hide"));
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.28.6";
1
+ declare const _default: "0.28.8";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.28.6",
3
+ "version": "0.28.8",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version && bundler",
@@ -69,7 +69,7 @@
69
69
  "esus-lite": "^0.2.8",
70
70
  "events": "^3.3.0",
71
71
  "geojson-cn": "^0.2.5",
72
- "gl-draw": "0.15.7",
72
+ "gl-draw": "0.15.8",
73
73
  "jsrsasign": "^11.1.0",
74
74
  "lodash-es": "^4.17.21"
75
75
  },