|
@@ -9,7 +9,7 @@
|
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.THREE = {}));
|
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.THREE = {}));
|
|
}(this, (function (exports) { 'use strict';
|
|
}(this, (function (exports) { 'use strict';
|
|
|
|
|
|
- const REVISION = '127';
|
|
|
|
|
|
+ const REVISION = '128dev';
|
|
const MOUSE = {
|
|
const MOUSE = {
|
|
LEFT: 0,
|
|
LEFT: 0,
|
|
MIDDLE: 1,
|
|
MIDDLE: 1,
|
|
@@ -19192,15 +19192,15 @@
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
- function Bone() {
|
|
|
|
- Object3D.call(this);
|
|
|
|
- this.type = 'Bone';
|
|
|
|
|
|
+ class Bone extends Object3D {
|
|
|
|
+ constructor() {
|
|
|
|
+ super();
|
|
|
|
+ this.type = 'Bone';
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
- Bone.prototype = Object.assign(Object.create(Object3D.prototype), {
|
|
|
|
- constructor: Bone,
|
|
|
|
- isBone: true
|
|
|
|
- });
|
|
|
|
|
|
+ Bone.prototype.isBone = true;
|
|
|
|
|
|
const _offsetMatrix = /*@__PURE__*/new Matrix4();
|
|
const _offsetMatrix = /*@__PURE__*/new Matrix4();
|
|
|
|
|
|
@@ -26721,6 +26721,9 @@
|
|
this.intensity = intensity;
|
|
this.intensity = intensity;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ dispose() {// Empty here in base class; some subclasses override.
|
|
|
|
+ }
|
|
|
|
+
|
|
copy(source) {
|
|
copy(source) {
|
|
super.copy(source);
|
|
super.copy(source);
|
|
this.color.copy(source.color);
|
|
this.color.copy(source.color);
|
|
@@ -26826,6 +26829,16 @@
|
|
return this._frameExtents;
|
|
return this._frameExtents;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ dispose() {
|
|
|
|
+ if (this.map) {
|
|
|
|
+ this.map.dispose();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (this.mapPass) {
|
|
|
|
+ this.mapPass.dispose();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
copy(source) {
|
|
copy(source) {
|
|
this.camera = source.camera.clone();
|
|
this.camera = source.camera.clone();
|
|
this.bias = source.bias;
|
|
this.bias = source.bias;
|
|
@@ -26910,6 +26923,10 @@
|
|
this.intensity = power / Math.PI;
|
|
this.intensity = power / Math.PI;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ dispose() {
|
|
|
|
+ this.shadow.dispose();
|
|
|
|
+ }
|
|
|
|
+
|
|
copy(source) {
|
|
copy(source) {
|
|
super.copy(source);
|
|
super.copy(source);
|
|
this.distance = source.distance;
|
|
this.distance = source.distance;
|
|
@@ -27013,6 +27030,10 @@
|
|
this.intensity = power / (4 * Math.PI);
|
|
this.intensity = power / (4 * Math.PI);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ dispose() {
|
|
|
|
+ this.shadow.dispose();
|
|
|
|
+ }
|
|
|
|
+
|
|
copy(source) {
|
|
copy(source) {
|
|
super.copy(source);
|
|
super.copy(source);
|
|
this.distance = source.distance;
|
|
this.distance = source.distance;
|
|
@@ -27143,6 +27164,10 @@
|
|
this.shadow = new DirectionalLightShadow();
|
|
this.shadow = new DirectionalLightShadow();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ dispose() {
|
|
|
|
+ this.shadow.dispose();
|
|
|
|
+ }
|
|
|
|
+
|
|
copy(source) {
|
|
copy(source) {
|
|
super.copy(source);
|
|
super.copy(source);
|
|
this.target = source.target.clone();
|
|
this.target = source.target.clone();
|
|
@@ -32674,6 +32699,11 @@
|
|
geometry.getAttribute('position').needsUpdate = true;
|
|
geometry.getAttribute('position').needsUpdate = true;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ dispose() {
|
|
|
|
+ this.geometry.dispose();
|
|
|
|
+ this.material.dispose();
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
function setPoint(point, pointMap, geometry, camera, x, y, z) {
|
|
function setPoint(point, pointMap, geometry, camera, x, y, z) {
|
|
@@ -32936,6 +32966,11 @@
|
|
this.type = 'AxesHelper';
|
|
this.type = 'AxesHelper';
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ dispose() {
|
|
|
|
+ this.geometry.dispose();
|
|
|
|
+ this.material.dispose();
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
const _floatView = new Float32Array(1);
|
|
const _floatView = new Float32Array(1);
|