vis-core 0.16.16 → 0.16.18

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.
@@ -31045,7 +31045,7 @@ let yt = class {
31045
31045
  instantiate(e) {
31046
31046
  return this.drawController.instantiate(this, {
31047
31047
  create: (t) => {
31048
- if (this.object3d)
31048
+ if (this.object3d) {
31049
31049
  if (this.object3d instanceof vh && typeof e == "number") {
31050
31050
  const { size: n } = this.getSize(), s = new De(), l = [
31051
31051
  "color",
@@ -31069,11 +31069,15 @@ let yt = class {
31069
31069
  );
31070
31070
  } else
31071
31071
  t.object3d = this.object3d.clone(!0);
31072
- typeof e == "number" && (t.object3d = new rc(
31073
- t.object3d.geometry,
31074
- t.object3d.material,
31075
- e
31076
- ), t.object3d.instanceMatrix.setUsage(Ly));
31072
+ typeof e == "number" && (t.object3d = new rc(
31073
+ t.object3d.geometry,
31074
+ t.object3d.material,
31075
+ e
31076
+ ), t.object3d.instanceMatrix.setUsage(Ly)), t.position.set(0, 0, 0), t.rotation.set(0, 0, 0), t.setMaterialList("instantiate", "clone"), t.useMaterial("instantiate"), t.object3d.userData.bloom && this.pencil.composerController.toggleBloomSelection(
31077
+ t.object3d,
31078
+ !0
31079
+ ), t.object3d.userData.prefab && (t.object3d.userData.prefab = !1);
31080
+ }
31077
31081
  }
31078
31082
  });
31079
31083
  }
@@ -38721,24 +38725,23 @@ class MK extends yt {
38721
38725
  repeat: n = 0,
38722
38726
  lineLoop: s,
38723
38727
  onRepeat: l,
38724
- onComplete: a
38728
+ onUpdate: a,
38729
+ onComplete: o
38725
38730
  } = {}) {
38726
- const { offset: o, offsetLoop: c } = this.material.uniforms;
38731
+ const { offset: c, offsetLoop: d } = this.material.uniforms;
38727
38732
  if (this.material.userData.tween)
38728
38733
  return;
38729
- const d = s != null ? s : !0;
38730
- o.value.x = 1, c.value = 0;
38731
- let h = 0;
38732
- const r = new IW(o.value).to({ x: -1 }, e).delay(t).repeat(n).onUpdate(({ x: u }) => {
38733
- d && u <= 0 && c.value === 0 && (c.value = 1);
38734
+ const h = s != null ? s : !0;
38735
+ c.value.x = 1, d.value = 0;
38736
+ let r = 0;
38737
+ const u = new IW(c.value).to({ x: -1 }, e).delay(t).repeat(n).onUpdate(({ x: m }) => {
38738
+ h && m <= 0 && d.value === 0 && (d.value = 1), a && a(m);
38734
38739
  }).onRepeat(() => {
38735
- h += 1, l && l(h);
38740
+ r += 1, l && l(r);
38736
38741
  }).onComplete(() => {
38737
- a && a();
38738
- });
38739
- setTimeout(() => {
38740
- r.start();
38741
- }, 0), this.material.userData.tween = r;
38742
+ o && o();
38743
+ }).start();
38744
+ this.material.userData.tween = u;
38742
38745
  }
38743
38746
  render() {
38744
38747
  const { width: e, height: t } = this.pencil.getSize();
@@ -39670,7 +39673,9 @@ class _K extends yt {
39670
39673
  }));
39671
39674
  }
39672
39675
  render() {
39673
- (this.pencil.userData.EditorEnv || !this.prefab) && this.animateIn();
39676
+ setTimeout(() => {
39677
+ (this.pencil.userData.EditorEnv || !this.prefab) && this.animateIn();
39678
+ });
39674
39679
  }
39675
39680
  }
39676
39681
  class qK extends yt {
@@ -43051,15 +43056,11 @@ class Yl {
43051
43056
  return Hi(this, arguments, function* (t, {
43052
43057
  create: n
43053
43058
  } = {}) {
43054
- var s;
43055
- const { objectType: l, objectOptions: a } = t, [, o] = l.split("#"), c = yield this.draw(o, bf(Qn({}, a || {}), {
43059
+ const { objectType: s, objectOptions: l } = t, [, a] = s.split("#");
43060
+ return yield this.draw(a, bf(Qn({}, l || {}), {
43056
43061
  create: n,
43057
43062
  prefab: !1
43058
43063
  }));
43059
- return c.position.set(0, 0, 0), c.rotation.set(0, 0, 0), c.setMaterialList("instantiate", "clone"), c.useMaterial("instantiate"), (s = c.object3d) != null && s.userData.bloom && this.pencil.composerController.toggleBloomSelection(
43060
- c.object3d,
43061
- !0
43062
- ), c;
43063
43064
  });
43064
43065
  }
43065
43066
  initGroup() {
@@ -43669,7 +43670,7 @@ function oa(i) {
43669
43670
  const e = new De();
43670
43671
  return e.color.setScalar(i), e;
43671
43672
  }
43672
- const Gf = "0.16.16", dp = !1;
43673
+ const Gf = "0.16.18", dp = !1;
43673
43674
  class qa {
43674
43675
  constructor(e, t = {}) {
43675
43676
  O(this, "container");
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.16.16";
1
+ declare const _default: "0.16.18";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.16.16",
3
+ "version": "0.16.18",
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",
@@ -38,7 +38,6 @@
38
38
  "@types/geojson": "^7946.0.10",
39
39
  "@types/lodash-es": "^4.17.9",
40
40
  "@types/node": "^20.6.0",
41
- "@types/three": "^0.166.0",
42
41
  "ant-design-vue": "^4.2.3",
43
42
  "archiver": "^7.0.1",
44
43
  "codemirror": "^6.0.1",
@@ -46,7 +45,6 @@
46
45
  "eslint-config-bundler": "^0.4.2",
47
46
  "esus": "^0.4.28",
48
47
  "fs-extra": "^11.1.1",
49
- "gl-draw": "0.9.26",
50
48
  "idb-keyval": "^6.2.1",
51
49
  "pinia": "^2.1.7",
52
50
  "prettier-config-bundler": "^0.4.3",
@@ -55,17 +53,19 @@
55
53
  "three": "0.166.1",
56
54
  "vite-plugin-markdown": "^2.2.0",
57
55
  "vue": "^3.4.27",
58
- "vue-bundler": "^0.4.4",
56
+ "vue-bundler": "^0.4.10",
59
57
  "vue-easy-dnd": "^2.1.3",
60
58
  "vue-router": "^4.3.2",
61
59
  "vue3-colorpicker": "^2.3.0"
62
60
  },
63
61
  "dependencies": {
62
+ "@types/three": "^0.166.0",
64
63
  "@turf/turf": "^6.5.0",
65
64
  "esus-lite": "^0.2.2",
66
65
  "events": "^3.3.0",
67
66
  "geojson-cn": "^0.1.25",
68
- "lodash-es": "^4.17.21"
67
+ "lodash-es": "^4.17.21",
68
+ "gl-draw": "0.9.27"
69
69
  },
70
70
  "prettier": "prettier-config-bundler"
71
71
  }