vis-core 0.21.55 → 0.21.56

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.
@@ -89,7 +89,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
89
89
  ).toString(CryptoJS.enc.Utf8), Jt = JSON.parse(Tt), $t = Date.now();
90
90
  return !Jt.s || Jt.s > $t ? (this.token = void 0, "") : Jt.e && Jt.e < $t ? (this.token = void 0, "") : (Jt.isValid = Yt, Jt);
91
91
  }
92
- }, version = "0.21.55";
92
+ }, version = "0.21.56";
93
93
  /**
94
94
  * @license
95
95
  * Copyright 2010-2024 Three.js Authors
@@ -49601,6 +49601,18 @@ class Editor {
49601
49601
  }
49602
49602
  this.checkSelectOption(st), this.selectOption = st, this.emit("sceneGraphChanged");
49603
49603
  }
49604
+ get selectOption2() {
49605
+ if (!this.viewport.vis)
49606
+ return [];
49607
+ const e = this.viewport.vis.drawController.group, s = (r) => r.map((f) => ({
49608
+ object: f.object3d,
49609
+ id: f.objectType.replace("BaseObject#", ""),
49610
+ uuid: f.key,
49611
+ baseObject: f,
49612
+ children: f.children.length > 0 ? s(f.children) : []
49613
+ }));
49614
+ return s(e.children);
49615
+ }
49604
49616
  execute(e, s) {
49605
49617
  return ti(this, null, function* () {
49606
49618
  yield this.history.execute(e, s);
@@ -54142,12 +54154,18 @@ class City$1 extends Base {
54142
54154
  }
54143
54155
  });
54144
54156
  }
54157
+ disableSSAO() {
54158
+ const s = this.pencil.composerController.ssaoPass;
54159
+ s && (s.enabled = !1);
54160
+ }
54161
+ enabledSSAO() {
54162
+ const s = this.pencil.composerController.ssaoPass;
54163
+ s && (s.enabled = !0);
54164
+ }
54145
54165
  init() {
54146
54166
  return ti(this, null, function* () {
54147
54167
  const { jsonName: s, bbox: r, adcode: f } = this.options;
54148
- yield this.initPencil();
54149
- const st = this.pencil.composerController.ssaoPass;
54150
- st && !this.tier0 && (st.enabled = !0), this.loaderAdd(), this.loaderAddJson(s), console.time(`vis-core:time.${this.visName}${f}-loader`), yield this.loader.loadAll(), console.timeEnd(`vis-core:time.${this.visName}${f}-loader`), this.verticalDragToForward = !0, this.adcode = this.options.adcode, this.options.center && (this.pcenter = this.options.center), this.projection = F$1({
54168
+ yield this.initPencil(), this.tier0 || this.enabledSSAO(), this.loaderAdd(), this.loaderAddJson(s), console.time(`vis-core:time.${this.visName}${f}-loader`), yield this.loader.loadAll(), console.timeEnd(`vis-core:time.${this.visName}${f}-loader`), this.verticalDragToForward = !0, this.adcode = this.options.adcode, this.options.center && (this.pcenter = this.options.center), this.projection = F$1({
54151
54169
  center: this.pcenter,
54152
54170
  scale: this.pscale
54153
54171
  }), this.group = yield this.drawController.draw("Group"), this.group.scale.multiplyScalar(this.multiplyScalar), this.innerAreaGroup = yield this.drawController.draw(
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.21.55";
1
+ declare const _default: "0.21.56";
2
2
  export default _default;
@@ -84,6 +84,8 @@ export default class extends Base {
84
84
  loaderAdd(): void;
85
85
  loaderAddJson(jsonName: string): void;
86
86
  initMaterial(): Promise<void>;
87
+ disableSSAO(): void;
88
+ enabledSSAO(): void;
87
89
  init(): Promise<void>;
88
90
  getInvert(vector3: THREE.Vector3): any;
89
91
  fitTo(obj: BaseObject, enableTransition?: boolean): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.21.55",
3
+ "version": "0.21.56",
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",