vis-core 0.19.9 → 0.19.11

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.
@@ -28907,11 +28907,19 @@ const g1 = 1, To = !1, qM = new jt({ color: "black" }), $M = new to({ color: "bl
28907
28907
  class eT {
28908
28908
  constructor(t) {
28909
28909
  this.bloomComposerActive = !1, this.active = !0, this.bloomSelection = /* @__PURE__ */ new Set(), this.bloomLayer = new Bc(), this.bloomMaterials = {}, this.transformControlsVisible = !1, this.options = t;
28910
- const { renderer: e, scene: i, camera: n, composerParams: l } = t, { multisampling: a } = l, { maxSamples: o } = e.capabilities, c = e.getDrawingBufferSize(new _()), d = new I0(c.width, c.height, {
28911
- samples: Math.min(a, o),
28912
- type: g0
28913
- }), h = new LM(i, n), r = new oG(e, d);
28910
+ const { renderer: e, scene: i, camera: n, composerParams: l } = t, { multisampling: a } = l, { maxSamples: o } = e.capabilities, c = e.getDrawingBufferSize(
28911
+ new _()
28912
+ ), d = new I0(
28913
+ c.width,
28914
+ c.height,
28915
+ {
28916
+ samples: Math.min(a, o),
28917
+ type: g0
28918
+ }
28919
+ ), h = new LM(i, n), r = new oG(e, d);
28914
28920
  r.addPass(h), this.renderer = e, this.scene = i, this.camera = n, this.finalComposer = r, this.renderPass = h;
28921
+ const u = e.getSize(new _());
28922
+ this.setSize(u.width, u.height);
28915
28923
  }
28916
28924
  setRenderPassCamera(t) {
28917
28925
  this.renderPass.camera = t;
@@ -28960,7 +28968,13 @@ class eT {
28960
28968
  gl_FragColor = vec4(base_color.rgb + bloom_color.rgb, max(base_color.a, lum));
28961
28969
  }else if( bloomAlphaType == 0.5){
28962
28970
  gl_FragColor = ( base_color + vec4( 1.0 ) * bloom_color );
28963
- gl_FragColor.a = base_color.a;
28971
+ if(base_color.a == 0.0){
28972
+ if( bloom_color.r == 0.0 && bloom_color.g == 0.0 && bloom_color.b == 0.0){
28973
+ gl_FragColor.a = 0.0;
28974
+ }else{
28975
+ gl_FragColor.a = 0.002;
28976
+ }
28977
+ }
28964
28978
  }else{
28965
28979
  gl_FragColor = ( base_color + vec4( 1.0 ) * bloom_color );
28966
28980
  }
@@ -40356,7 +40370,7 @@ function ra(s) {
40356
40370
  const t = new jt();
40357
40371
  return t.color.setScalar(s), t;
40358
40372
  }
40359
- const wf = "0.19.9";
40373
+ const wf = "0.19.11";
40360
40374
  class Fk {
40361
40375
  constructor() {
40362
40376
  A(this, "event", new ty());
@@ -41181,6 +41195,11 @@ class Dk {
41181
41195
  var t, e;
41182
41196
  (e = (t = this.vis) == null ? void 0 : t.pencil.cameraControls) == null || e.reset(!0);
41183
41197
  }
41198
+ setResetCameraUp() {
41199
+ var a, o, c;
41200
+ const e = ((a = this.vis) == null ? void 0 : a.pencil.getPlugin("draw").group).getSize(), i = (e.max.x + e.min.x) / 2, n = (e.max.y + e.min.y) / 2, l = (o = this.vis) == null ? void 0 : o.pencil.cameraPositon.z;
41201
+ (c = this.vis) == null || c.pencil.cameraControls.setLookAt(i, n, l, i, n, 0, !0);
41202
+ }
41184
41203
  initEvent() {
41185
41204
  var e, i, n, l;
41186
41205
  const { pencil: t } = this.vis;
@@ -41659,7 +41678,7 @@ class pd extends Fk {
41659
41678
  }
41660
41679
  initSceneUserData() {
41661
41680
  var o, c, d, h, r, u;
41662
- const e = this.pencil, i = e.scene.background, n = i instanceof st ? "Color" : i instanceof Fe ? "Texture" : "None", l = n === "Texture" ? i : null, a = n === "Color" ? i.getHexString() : "#ffffff";
41681
+ const e = this.pencil, i = e.scene.background, n = i instanceof st ? "Color" : i instanceof Fe ? "Texture" : "None", l = n === "Texture" ? i : null, a = n === "Color" ? "#" + i.getHexString() : "#000000";
41663
41682
  e.scene.userData = new Proxy(
41664
41683
  {
41665
41684
  backgroundType: n,
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.19.9";
1
+ declare const _default: "0.19.11";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.19.9",
3
+ "version": "0.19.11",
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",
@@ -46,16 +46,16 @@
46
46
  "esus": "^0.4.31",
47
47
  "fs-extra": "^11.1.1",
48
48
  "idb-keyval": "^6.2.1",
49
- "pinia": "^2.1.7",
49
+ "pinia": "^2.2.2",
50
50
  "prettier-config-bundler": "^0.4.3",
51
51
  "stylelint-config-bundler": "^0.4.5",
52
52
  "tailwind-config-bundler": "^0.4.6",
53
53
  "three": "0.168.0",
54
54
  "vite-plugin-javascript-obfuscator": "^3.1.0",
55
55
  "vite-plugin-markdown": "^2.2.0",
56
- "vue": "^3.4.33",
56
+ "vue": "^3.5.3",
57
57
  "vue-bundler": "^0.4.10",
58
- "vue-router": "^4.4.0",
58
+ "vue-router": "^4.4.3",
59
59
  "vue3-colorpicker": "^2.3.0"
60
60
  },
61
61
  "dependencies": {
@@ -66,7 +66,7 @@
66
66
  "esus-lite": "^0.2.2",
67
67
  "events": "^3.3.0",
68
68
  "geojson-cn": "^0.1.29",
69
- "gl-draw": "0.10.16",
69
+ "gl-draw": "0.10.18",
70
70
  "jsrsasign": "^11.1.0",
71
71
  "lodash-es": "^4.17.21"
72
72
  },