mirror of
https://github.com/troisjs/trois.git
synced 2024-11-23 20:02:32 +08:00
0.1.13
This commit is contained in:
parent
6cfefd9761
commit
9884606a9a
@ -2077,9 +2077,9 @@ var Tube = {
|
||||
this$1.refreshGeometry();
|
||||
});
|
||||
});
|
||||
// watch(() => this.points, () => {
|
||||
// this.updatePoints();
|
||||
// });
|
||||
vue.watch(function () { return this$1.points; }, function () {
|
||||
updateTubeGeometryPoints(this$1.geometry, this$1.points);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
createGeometry: function createGeometry() {
|
||||
@ -2093,8 +2093,9 @@ var Tube = {
|
||||
}
|
||||
this.geometry = new three.TubeGeometry(curve, this.tubularSegments, this.radius, this.radialSegments, this.closed);
|
||||
},
|
||||
updateCurve: function updateCurve() {
|
||||
updateTubeGeometryPoints(this.geometry, this.points);
|
||||
// update curve points (without using prop, faster)
|
||||
updateCurve: function updateCurve(points) {
|
||||
updateTubeGeometryPoints(this.geometry, points);
|
||||
},
|
||||
},
|
||||
__hmrId: 'Tube',
|
||||
|
@ -2073,9 +2073,9 @@ var Tube = {
|
||||
this$1.refreshGeometry();
|
||||
});
|
||||
});
|
||||
// watch(() => this.points, () => {
|
||||
// this.updatePoints();
|
||||
// });
|
||||
watch(function () { return this$1.points; }, function () {
|
||||
updateTubeGeometryPoints(this$1.geometry, this$1.points);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
createGeometry: function createGeometry() {
|
||||
@ -2089,8 +2089,9 @@ var Tube = {
|
||||
}
|
||||
this.geometry = new TubeGeometry$1(curve, this.tubularSegments, this.radius, this.radialSegments, this.closed);
|
||||
},
|
||||
updateCurve: function updateCurve() {
|
||||
updateTubeGeometryPoints(this.geometry, this.points);
|
||||
// update curve points (without using prop, faster)
|
||||
updateCurve: function updateCurve(points) {
|
||||
updateTubeGeometryPoints(this.geometry, points);
|
||||
},
|
||||
},
|
||||
__hmrId: 'Tube',
|
||||
|
File diff suppressed because one or more lines are too long
2
build/trois.module.cdn.min.js
vendored
2
build/trois.module.cdn.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -2073,9 +2073,9 @@ var Tube = {
|
||||
this$1.refreshGeometry();
|
||||
});
|
||||
});
|
||||
// watch(() => this.points, () => {
|
||||
// this.updatePoints();
|
||||
// });
|
||||
watch(function () { return this$1.points; }, function () {
|
||||
updateTubeGeometryPoints(this$1.geometry, this$1.points);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
createGeometry: function createGeometry() {
|
||||
@ -2089,8 +2089,9 @@ var Tube = {
|
||||
}
|
||||
this.geometry = new TubeGeometry$1(curve, this.tubularSegments, this.radius, this.radialSegments, this.closed);
|
||||
},
|
||||
updateCurve: function updateCurve() {
|
||||
updateTubeGeometryPoints(this.geometry, this.points);
|
||||
// update curve points (without using prop, faster)
|
||||
updateCurve: function updateCurve(points) {
|
||||
updateTubeGeometryPoints(this.geometry, points);
|
||||
},
|
||||
},
|
||||
__hmrId: 'Tube',
|
||||
|
File diff suppressed because one or more lines are too long
2
build/trois.module.min.js
vendored
2
build/trois.module.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "troisjs",
|
||||
"version": "0.1.12",
|
||||
"version": "0.1.13",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
|
@ -20,9 +20,9 @@ export default {
|
||||
this.refreshGeometry();
|
||||
});
|
||||
});
|
||||
// watch(() => this.points, () => {
|
||||
// this.updatePoints();
|
||||
// });
|
||||
watch(() => this.points, () => {
|
||||
updateTubeGeometryPoints(this.geometry, this.points);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
createGeometry() {
|
||||
|
Loading…
Reference in New Issue
Block a user