vis-core 0.21.17 → 0.21.19

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.
@@ -45558,7 +45558,7 @@ function createAreaLightMaterial(h) {
45558
45558
  const e = new MeshBasicMaterial();
45559
45559
  return e.color.setScalar(h), e;
45560
45560
  }
45561
- const version = "0.21.17";
45561
+ const version = "0.21.19";
45562
45562
  class Event {
45563
45563
  constructor() {
45564
45564
  M0(this, "event", new EventEmitter());
@@ -46877,14 +46877,17 @@ class Base extends Event {
46877
46877
  fov: 45
46878
46878
  },
46879
46879
  bloom: !0,
46880
- ssao: !1,
46880
+ ssao: !0,
46881
+ ssaoParams: {
46882
+ minDistance: 1e-3
46883
+ },
46881
46884
  scene: {
46882
46885
  background: new Color$1(0)
46883
46886
  }
46884
- }, this.pencilConfig), this.options.pencilConfig));
46885
- this.leftTruck && (s.controls.mouseButtons.left = ri$1.TRUCK, s.controls.mouseButtons.right = ri$1.ROTATE), s.use(this.mList), s.use(this.loader), s.use(this.worker), s.use(this.drawController), yield this.drawController.initGroup(), this.drawController.hide(), this.pencil = s, this.checkDprTimer = new Timer(() => {
46886
- const c = this.getDevicePixelRatio();
46887
- this.setDevicePixelRatio(c);
46887
+ }, this.pencilConfig), this.options.pencilConfig)), c = s.composerController.ssaoPass;
46888
+ c && (c.enabled = !1), this.leftTruck && (s.controls.mouseButtons.left = ri$1.TRUCK, s.controls.mouseButtons.right = ri$1.ROTATE), s.use(this.mList), s.use(this.loader), s.use(this.worker), s.use(this.drawController), yield this.drawController.initGroup(), this.drawController.hide(), this.pencil = s, this.checkDprTimer = new Timer(() => {
46889
+ const Y = this.getDevicePixelRatio();
46890
+ this.setDevicePixelRatio(Y);
46888
46891
  }), s.event.on("resize", () => {
46889
46892
  this.checkDprTimer.tickNow();
46890
46893
  }), this.initSceneUserData(), this.playing || (window.vis = this, window.pencil = s), this.initSettings();
@@ -50423,7 +50426,9 @@ class City$1 extends Base {
50423
50426
  init() {
50424
50427
  return D0(this, null, function* () {
50425
50428
  const { jsonName: s, bbox: c, adcode: Y } = this.options;
50426
- yield this.initPencil(), this.loaderAdd(), this.loaderAddJson(s), console.time(`vis-core:time.${this.visName}${Y}-loader`), yield this.loader.loadAll(), console.timeEnd(`vis-core:time.${this.visName}${Y}-loader`), this.verticalDragToForward = !0, this.adcode = this.options.adcode, this.options.center && (this.pcenter = this.options.center), this.projection = F({
50429
+ yield this.initPencil();
50430
+ const k = this.pencil.composerController.ssaoPass;
50431
+ k && (k.enabled = !0), this.loaderAdd(), this.loaderAddJson(s), console.time(`vis-core:time.${this.visName}${Y}-loader`), yield this.loader.loadAll(), console.timeEnd(`vis-core:time.${this.visName}${Y}-loader`), this.verticalDragToForward = !0, this.adcode = this.options.adcode, this.options.center && (this.pcenter = this.options.center), this.projection = F({
50427
50432
  center: this.pcenter,
50428
50433
  scale: this.pscale
50429
50434
  }), this.group = yield this.drawController.draw("Group"), this.group.scale.multiplyScalar(this.multiplyScalar), this.outAreaGroup = yield this.drawController.draw("Group", {}, this.group), yield this.initMaterial(), yield this.initVis(), yield Promise.all(this.drawController.objectsPromise);
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.21.17";
1
+ declare const _default: "0.21.19";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.21.17",
3
+ "version": "0.21.19",
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",