three-base 2.0.117 → 2.0.118

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.
@@ -25,8 +25,6 @@ declare class PathGeometry extends BufferGeometry {
25
25
  * @param {Boolean} [generateUv2=false]
26
26
  */
27
27
  constructor(initData: PathGeometryParam, generateUv2?: boolean);
28
- computeBoundsTree: any;
29
- disposeBoundsTree: any;
30
28
  _initByMaxVertex(maxVertex: number, generateUv2: boolean): void;
31
29
  _initByData(pathPointList: PathPointList, options: Options, usage: Usage, generateUv2: boolean): void;
32
30
  /**
@@ -3,7 +3,6 @@ import { PathPoint } from './PathPoint.js';
3
3
  import { BufferGeometry } from 'three/src/core/BufferGeometry.js';
4
4
  import { BufferAttribute } from 'three/src/core/BufferAttribute.js';
5
5
  import { Vector3 } from 'three/src/math/Vector3.js';
6
- import { computeBoundsTree, disposeBoundsTree } from 'three-mesh-bvh';
7
6
  /**
8
7
  * PathGeometry
9
8
  */
@@ -16,8 +15,6 @@ class PathGeometry extends BufferGeometry {
16
15
  super();
17
16
  this._initByData(initData.pathPointList, initData.options, initData.usage, generateUv2);
18
17
  }
19
- computeBoundsTree = computeBoundsTree.bind(this);
20
- disposeBoundsTree = disposeBoundsTree.bind(this);
21
18
  _initByMaxVertex(maxVertex, generateUv2) {
22
19
  this.setAttribute('position', new BufferAttribute(new Float32Array(maxVertex * 3), 3).setUsage(DynamicDrawUsage));
23
20
  this.setAttribute('normal', new BufferAttribute(new Float32Array(maxVertex * 3), 3).setUsage(DynamicDrawUsage));
package/ThreeMouse.js CHANGED
@@ -7,7 +7,7 @@
7
7
  import { Raycaster, Vector2 } from "three";
8
8
  import { Mesh } from "three";
9
9
  import { debounce } from "lodash";
10
- import { computeBoundsTree, disposeBoundsTree, acceleratedRaycast, } from "three-mesh-bvh";
10
+ import { computeBoundsTree, acceleratedRaycast, } from "three-mesh-bvh";
11
11
  // Add the extension functions
12
12
  Mesh.prototype.raycast = acceleratedRaycast;
13
13
  /**
@@ -117,7 +117,7 @@ export default class ThreeMouse {
117
117
  ])) {
118
118
  if (mesh.isMesh && !mesh.geometry.boundsTree) {
119
119
  computeBoundsTree.apply(mesh.geometry);
120
- disposeBoundsTree.apply(mesh.geometry);
120
+ // disposeBoundsTree.apply((mesh as Mesh).geometry);
121
121
  }
122
122
  meshs.push(mesh);
123
123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "three-base",
3
- "version": "2.0.117",
3
+ "version": "2.0.118",
4
4
  "description": "three 3d three-base",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"