vis-core 0.16.15 → 0.16.17
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.
- package/dist/index.js +3 -3
- package/dist/index.module.js +29 -28
- package/dist/version.d.ts +1 -1
- package/package.json +4 -4
package/dist/index.module.js
CHANGED
|
@@ -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 Nh && 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
|
-
|
|
31073
|
-
|
|
31074
|
-
|
|
31075
|
-
|
|
31076
|
-
|
|
31072
|
+
typeof e == "number" && (t.object3d = new rc(
|
|
31073
|
+
t.object3d.geometry,
|
|
31074
|
+
t.object3d.material,
|
|
31075
|
+
e
|
|
31076
|
+
), t.object3d.instanceMatrix.setUsage(Cy)), 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
|
}
|
|
@@ -38727,24 +38731,23 @@ class MK extends yt {
|
|
|
38727
38731
|
repeat: n = 0,
|
|
38728
38732
|
lineLoop: s,
|
|
38729
38733
|
onRepeat: l,
|
|
38730
|
-
|
|
38734
|
+
onUpdate: a,
|
|
38735
|
+
onComplete: o
|
|
38731
38736
|
} = {}) {
|
|
38732
|
-
const { offset:
|
|
38737
|
+
const { offset: c, offsetLoop: d } = this.material.uniforms;
|
|
38733
38738
|
if (this.material.userData.tween)
|
|
38734
38739
|
return;
|
|
38735
|
-
const
|
|
38736
|
-
|
|
38737
|
-
let
|
|
38738
|
-
const
|
|
38739
|
-
|
|
38740
|
+
const h = s != null ? s : !0;
|
|
38741
|
+
c.value.x = 1, d.value = 0;
|
|
38742
|
+
let r = 0;
|
|
38743
|
+
const u = new NW(c.value).to({ x: -1 }, e).delay(t).repeat(n).onUpdate(({ x: m }) => {
|
|
38744
|
+
h && m <= 0 && d.value === 0 && (d.value = 1), a && a(m);
|
|
38740
38745
|
}).onRepeat(() => {
|
|
38741
|
-
|
|
38746
|
+
r += 1, l && l(r);
|
|
38742
38747
|
}).onComplete(() => {
|
|
38743
|
-
|
|
38744
|
-
});
|
|
38745
|
-
|
|
38746
|
-
r.start();
|
|
38747
|
-
}, 0), this.material.userData.tween = r;
|
|
38748
|
+
o && o();
|
|
38749
|
+
}).start();
|
|
38750
|
+
this.material.userData.tween = u;
|
|
38748
38751
|
}
|
|
38749
38752
|
render() {
|
|
38750
38753
|
const { width: e, height: t } = this.pencil.getSize();
|
|
@@ -39609,7 +39612,7 @@ class _K extends yt {
|
|
|
39609
39612
|
s.line = t, s.object3d = t.object3d;
|
|
39610
39613
|
}
|
|
39611
39614
|
});
|
|
39612
|
-
return n.object3d.raycast = hX, n;
|
|
39615
|
+
return n.object3d.raycast = hX, n.scale.set(1, 1, 1), n;
|
|
39613
39616
|
});
|
|
39614
39617
|
}
|
|
39615
39618
|
setPath(t, n, s, l = (a) => a * 1) {
|
|
@@ -39676,7 +39679,9 @@ class _K extends yt {
|
|
|
39676
39679
|
}));
|
|
39677
39680
|
}
|
|
39678
39681
|
render() {
|
|
39679
|
-
(
|
|
39682
|
+
setTimeout(() => {
|
|
39683
|
+
(this.pencil.userData.EditorEnv || !this.prefab) && this.animateIn();
|
|
39684
|
+
});
|
|
39680
39685
|
}
|
|
39681
39686
|
}
|
|
39682
39687
|
class qK extends yt {
|
|
@@ -43057,15 +43062,11 @@ class Yl {
|
|
|
43057
43062
|
return Hi(this, arguments, function* (t, {
|
|
43058
43063
|
create: n
|
|
43059
43064
|
} = {}) {
|
|
43060
|
-
|
|
43061
|
-
|
|
43065
|
+
const { objectType: s, objectOptions: l } = t, [, a] = s.split("#");
|
|
43066
|
+
return yield this.draw(a, Zf(Qn({}, l || {}), {
|
|
43062
43067
|
create: n,
|
|
43063
43068
|
prefab: !1
|
|
43064
43069
|
}));
|
|
43065
|
-
return c.position.set(0, 0, 0), c.rotation.set(0, 0, 0), c.scale.multiplyScalar(1), c.setMaterialList("instantiate", "clone"), c.useMaterial("instantiate"), (s = c.object3d) != null && s.userData.bloom && this.pencil.composerController.toggleBloomSelection(
|
|
43066
|
-
c.object3d,
|
|
43067
|
-
!0
|
|
43068
|
-
), c;
|
|
43069
43070
|
});
|
|
43070
43071
|
}
|
|
43071
43072
|
initGroup() {
|
|
@@ -43675,7 +43676,7 @@ function oa(i) {
|
|
|
43675
43676
|
const e = new De();
|
|
43676
43677
|
return e.color.setScalar(i), e;
|
|
43677
43678
|
}
|
|
43678
|
-
const Xf = "0.16.
|
|
43679
|
+
const Xf = "0.16.17", dp = !1;
|
|
43679
43680
|
class qa {
|
|
43680
43681
|
constructor(e, t = {}) {
|
|
43681
43682
|
O(this, "container");
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.16.
|
|
1
|
+
declare const _default: "0.16.17";
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.17",
|
|
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,7 +46,6 @@
|
|
|
46
46
|
"eslint-config-bundler": "^0.4.2",
|
|
47
47
|
"esus": "^0.4.28",
|
|
48
48
|
"fs-extra": "^11.1.1",
|
|
49
|
-
"gl-draw": "0.9.25",
|
|
50
49
|
"idb-keyval": "^6.2.1",
|
|
51
50
|
"pinia": "^2.1.7",
|
|
52
51
|
"prettier-config-bundler": "^0.4.3",
|
|
@@ -55,7 +54,7 @@
|
|
|
55
54
|
"three": "0.166.1",
|
|
56
55
|
"vite-plugin-markdown": "^2.2.0",
|
|
57
56
|
"vue": "^3.4.27",
|
|
58
|
-
"vue-bundler": "^0.4.
|
|
57
|
+
"vue-bundler": "^0.4.10",
|
|
59
58
|
"vue-easy-dnd": "^2.1.3",
|
|
60
59
|
"vue-router": "^4.3.2",
|
|
61
60
|
"vue3-colorpicker": "^2.3.0"
|
|
@@ -65,7 +64,8 @@
|
|
|
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
|
}
|