@@ -16,5 +16,7 @@ import * as THREE from 'three'; | ||
widthCallback: WidthCallback | null; | ||
_points: Float32Array | number[]; | ||
_geometry: THREE.BufferGeometry | null; | ||
matrixWorld: THREE.Matrix4; | ||
geometry: THREE.BufferGeometry; | ||
points: PointsRepresentation; | ||
geometry: THREE.BufferGeometry | null; | ||
points: Float32Array | number[]; | ||
constructor(); | ||
@@ -21,0 +23,0 @@ setMatrixWorld(matrixWorld: THREE.Matrix4): void; |
@@ -59,2 +59,4 @@ import * as THREE from 'three'; | ||
widthCallback = null; | ||
_points = []; | ||
_geometry = null; | ||
// Used to raycast | ||
@@ -70,3 +72,3 @@ matrixWorld = new THREE.Matrix4(); | ||
get() { | ||
return this._geom; | ||
return this._geometry; | ||
}, | ||
@@ -98,3 +100,3 @@ set(value) { | ||
if (g instanceof THREE.BufferGeometry) { | ||
this.geometry = g; | ||
this._geometry = g; | ||
this.setPoints(g.getAttribute('position').array, c); | ||
@@ -111,3 +113,3 @@ } | ||
// for later retreival when necessary (declaritive architectures) | ||
this.points = points; | ||
this._points = points; | ||
this.widthCallback = wcb ?? null; | ||
@@ -114,0 +116,0 @@ this.positions = []; |
{ | ||
"name": "meshline", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"author": "Jaume Sanchez <the.spite@gmail.com> (https://www.clicktorelease.com)", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
73647
0.38%1342
0.45%0
-100%