viral-viewer-2 2.2.8 → 2.2.9
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/components/worker-script/load-model-worker-3.script.d.ts +0 -1
- package/dist/components/worker-script/load-model-worker-3.script.js +169 -110
- package/dist/components/worker-script/load-model-worker-3.script.js.map +1 -1
- package/dist/components/worker-script/threejs.types.d.ts +0 -148
- package/dist/components/worker-script/threejs.types.js +74841 -71488
- package/dist/components/worker-script/threejs.types.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const workerCode: any;
|
|
@@ -1,111 +1,170 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
1
|
+
// // import { Matrix4, Vector3 } from "./threejs.types";
|
|
2
|
+
// function workerFunction() {
|
|
3
|
+
// function addCustomMesh3(indices: number[], vertices: ViralPoint[], material: RenderMaterial, callback = (buffer: Float32Array, colorString: string, opacity: number) => { }) {
|
|
4
|
+
// let verticePoints = [];
|
|
5
|
+
// for (let i = 0; i < indices.length; i++) {
|
|
6
|
+
// const index = indices[i];
|
|
7
|
+
// const point = vertices[index];
|
|
8
|
+
// verticePoints.push(-point.X);
|
|
9
|
+
// verticePoints.push(point.Z);
|
|
10
|
+
// verticePoints.push(point.Y);
|
|
11
|
+
// }
|
|
12
|
+
// const buffer = new Float32Array(verticePoints);
|
|
13
|
+
// let colorString = rgbToHex(material.Red, material.Green, material.Blue);
|
|
14
|
+
// callback(buffer, colorString, material.Opacity);
|
|
15
|
+
// }
|
|
16
|
+
// function addCustomMesh4(indices: number[], vertices: ViralPoint[], material: RenderMaterial, instances: RevitTransform[], callback = (buffer: Float32Array, colorString: string, opacity: number) => { }) {
|
|
17
|
+
// let colorString = rgbToHex(material.Red, material.Green, material.Blue);
|
|
18
|
+
// let finalVerticePoints: number[] = [];
|
|
19
|
+
// for (let index = 0; index < instances.length; index++) {
|
|
20
|
+
// const instance = instances[index];
|
|
21
|
+
// let numbers = [
|
|
22
|
+
// instance.BasisX.X,
|
|
23
|
+
// -instance.BasisX.Z,
|
|
24
|
+
// -instance.BasisX.Y,
|
|
25
|
+
// 0,
|
|
26
|
+
// -instance.BasisZ.X,
|
|
27
|
+
// instance.BasisZ.Z,
|
|
28
|
+
// instance.BasisZ.Y,
|
|
29
|
+
// 0,
|
|
30
|
+
// -instance.BasisY.X,
|
|
31
|
+
// instance.BasisY.Z,
|
|
32
|
+
// instance.BasisY.Y,
|
|
33
|
+
// 0,
|
|
34
|
+
// -instance.Offset.X,
|
|
35
|
+
// instance.Offset.Z,
|
|
36
|
+
// instance.Offset.Y,
|
|
37
|
+
// 1,
|
|
38
|
+
// ];
|
|
39
|
+
// let matrix4 = new Matrix4();
|
|
40
|
+
// matrix4.fromArray(numbers);
|
|
41
|
+
// let newVertices = [];
|
|
42
|
+
// for (let i = 0; i < vertices.length; i++) {
|
|
43
|
+
// const point = vertices[i];
|
|
44
|
+
// const point2 = new Vector3(-point.X, point.Z, point.Y);
|
|
45
|
+
// point2.applyMatrix4(matrix4);
|
|
46
|
+
// newVertices.push(point2);
|
|
47
|
+
// }
|
|
48
|
+
// let verticePoints = [];
|
|
49
|
+
// for (let i = 0; i < indices.length; i++) {
|
|
50
|
+
// const index = indices[i];
|
|
51
|
+
// const point = newVertices[index];
|
|
52
|
+
// verticePoints.push(point.x);
|
|
53
|
+
// verticePoints.push(point.y);
|
|
54
|
+
// verticePoints.push(point.z);
|
|
55
|
+
// }
|
|
56
|
+
// finalVerticePoints = finalVerticePoints.concat(verticePoints);
|
|
57
|
+
// }
|
|
58
|
+
// const buffer = new Float32Array(finalVerticePoints);
|
|
59
|
+
// callback(buffer, colorString, material.Opacity);
|
|
60
|
+
// }
|
|
61
|
+
// function progressStructuralGeometries(materials: RenderMaterial[], json: ViralViewerRevitGeometry, callback = (buffer: Float32Array, colorString: string, opacity: number) => { }) {
|
|
62
|
+
// addCustomMesh3(
|
|
63
|
+
// json.Indices,
|
|
64
|
+
// json.Vertices,
|
|
65
|
+
// materials[json.MaterialIndex],
|
|
66
|
+
// (buffer, colorString, opacity) => {
|
|
67
|
+
// callback(buffer, colorString, opacity);
|
|
68
|
+
// }
|
|
69
|
+
// );
|
|
70
|
+
// }
|
|
71
|
+
// function progressNoneStructuralGeometries(materials: RenderMaterial[], json: ViralViewerRevitGeometry, callback = (buffer: Float32Array, colorString: string, opacity: number) => { }) {
|
|
72
|
+
// addCustomMesh4(
|
|
73
|
+
// json.Indices,
|
|
74
|
+
// json.Vertices,
|
|
75
|
+
// materials[json.MaterialIndex],
|
|
76
|
+
// json.Instances,
|
|
77
|
+
// (buffer, colorString, opacity) => {
|
|
78
|
+
// callback(buffer, colorString, opacity);
|
|
79
|
+
// }
|
|
80
|
+
// );
|
|
81
|
+
// }
|
|
82
|
+
// function rgbToHex(r: number, g: number, b: number) {
|
|
83
|
+
// return "#" + componentToHex(r) + componentToHex(g) + componentToHex(b);
|
|
84
|
+
// }
|
|
85
|
+
// function componentToHex(c: number) {
|
|
86
|
+
// var hex = c.toString(16);
|
|
87
|
+
// return hex.length == 1 ? "0" + hex : hex;
|
|
88
|
+
// }
|
|
89
|
+
// self.addEventListener("message", (event: MessageEvent<WorkerEvent<ViralViewerRevitGeometry>>) => {
|
|
90
|
+
// switch (event.data.type) {
|
|
91
|
+
// case 1:
|
|
92
|
+
// console.log('receive structural')
|
|
93
|
+
// progressStructuralGeometries(
|
|
94
|
+
// event.data.materials,
|
|
95
|
+
// event.data.data,
|
|
96
|
+
// (buffer, colorString, opacity) => {
|
|
97
|
+
// self.postMessage({
|
|
98
|
+
// type: 1,
|
|
99
|
+
// buffer: buffer,
|
|
100
|
+
// materialColorString: colorString,
|
|
101
|
+
// materialOpacity: opacity,
|
|
102
|
+
// });
|
|
103
|
+
// }
|
|
104
|
+
// );
|
|
105
|
+
// break;
|
|
106
|
+
// case 2:
|
|
107
|
+
// console.log('receive none structural')
|
|
108
|
+
// progressNoneStructuralGeometries(
|
|
109
|
+
// event.data.materials,
|
|
110
|
+
// event.data.data,
|
|
111
|
+
// (buffer, colorString, opacity) => {
|
|
112
|
+
// self.postMessage({
|
|
113
|
+
// type: 1,
|
|
114
|
+
// buffer: buffer,
|
|
115
|
+
// materialColorString: colorString,
|
|
116
|
+
// materialOpacity: opacity,
|
|
117
|
+
// });
|
|
118
|
+
// }
|
|
119
|
+
// );
|
|
120
|
+
// break;
|
|
121
|
+
// default:
|
|
122
|
+
// break;
|
|
123
|
+
// }
|
|
124
|
+
// },
|
|
125
|
+
// false
|
|
126
|
+
// );
|
|
127
|
+
// interface WorkerEvent<T> {
|
|
128
|
+
// type: number;
|
|
129
|
+
// materials: RenderMaterial[];
|
|
130
|
+
// data: T;
|
|
131
|
+
// }
|
|
132
|
+
// interface ViewerOptions {
|
|
133
|
+
// container: HTMLElement;
|
|
134
|
+
// cameraZUp: boolean;
|
|
135
|
+
// }
|
|
136
|
+
// interface ViralViewerRevitProject {
|
|
137
|
+
// Materials: RenderMaterial[];
|
|
138
|
+
// StructuralGeometries: ViralViewerRevitGeometry[];
|
|
139
|
+
// NoneStructuralGeometries: ViralViewerRevitGeometry[]
|
|
140
|
+
// }
|
|
141
|
+
// interface RenderMaterial {
|
|
142
|
+
// Name: String;
|
|
143
|
+
// Opacity: number;
|
|
144
|
+
// Metalness: number;
|
|
145
|
+
// Roughness: number;
|
|
146
|
+
// Red: number;
|
|
147
|
+
// Green: number;
|
|
148
|
+
// Blue: number;
|
|
149
|
+
// }
|
|
150
|
+
// interface ViralViewerRevitGeometry {
|
|
151
|
+
// MaterialIndex: number;
|
|
152
|
+
// Vertices: ViralPoint[];
|
|
153
|
+
// Indices: number[];
|
|
154
|
+
// Name: string;
|
|
155
|
+
// Instances: RevitTransform[];
|
|
156
|
+
// }
|
|
157
|
+
// interface ViralPoint {
|
|
158
|
+
// X: number;
|
|
159
|
+
// Y: number;
|
|
160
|
+
// Z: number;
|
|
161
|
+
// }
|
|
162
|
+
// interface RevitTransform {
|
|
163
|
+
// BasisX: ViralPoint;
|
|
164
|
+
// BasisY: ViralPoint;
|
|
165
|
+
// BasisZ: ViralPoint;
|
|
166
|
+
// Offset: ViralPoint;
|
|
167
|
+
// }
|
|
168
|
+
// }
|
|
169
|
+
// export const workerCode: any = workerFunction;
|
|
111
170
|
//# sourceMappingURL=load-model-worker-3.script.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-model-worker-3.script.js","sourceRoot":"","sources":["../../../src/components/worker-script/load-model-worker-3.script.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"load-model-worker-3.script.js","sourceRoot":"","sources":["../../../src/components/worker-script/load-model-worker-3.script.ts"],"names":[],"mappings":"AAAA,yDAAyD;AAEzD,8BAA8B;AAC9B,qLAAqL;AACrL,kCAAkC;AAClC,qDAAqD;AACrD,wCAAwC;AACxC,6CAA6C;AAC7C,4CAA4C;AAC5C,2CAA2C;AAC3C,2CAA2C;AAC3C,YAAY;AACZ,0DAA0D;AAC1D,mFAAmF;AAEnF,2DAA2D;AAC3D,QAAQ;AACR,kNAAkN;AAClN,mFAAmF;AACnF,iDAAiD;AACjD,mEAAmE;AACnE,iDAAiD;AAEjD,8BAA8B;AAC9B,qCAAqC;AACrC,sCAAsC;AACtC,sCAAsC;AACtC,qBAAqB;AACrB,sCAAsC;AACtC,qCAAqC;AACrC,qCAAqC;AACrC,qBAAqB;AACrB,sCAAsC;AACtC,qCAAqC;AACrC,qCAAqC;AACrC,qBAAqB;AACrB,sCAAsC;AACtC,qCAAqC;AACrC,qCAAqC;AACrC,qBAAqB;AACrB,iBAAiB;AACjB,2CAA2C;AAC3C,0CAA0C;AAC1C,oCAAoC;AACpC,0DAA0D;AAC1D,6CAA6C;AAC7C,0EAA0E;AAC1E,gDAAgD;AAChD,4CAA4C;AAC5C,gBAAgB;AAChB,sCAAsC;AACtC,yDAAyD;AACzD,4CAA4C;AAC5C,oDAAoD;AACpD,+CAA+C;AAC/C,+CAA+C;AAC/C,+CAA+C;AAC/C,gBAAgB;AAChB,6EAA6E;AAC7E,YAAY;AACZ,+DAA+D;AAC/D,2DAA2D;AAC3D,QAAQ;AACR,2LAA2L;AAC3L,0BAA0B;AAC1B,4BAA4B;AAC5B,6BAA6B;AAC7B,6CAA6C;AAC7C,kDAAkD;AAClD,0DAA0D;AAC1D,gBAAgB;AAChB,aAAa;AACb,QAAQ;AACR,+LAA+L;AAC/L,0BAA0B;AAC1B,4BAA4B;AAC5B,6BAA6B;AAC7B,6CAA6C;AAC7C,8BAA8B;AAC9B,kDAAkD;AAClD,0DAA0D;AAC1D,gBAAgB;AAChB,aAAa;AACb,QAAQ;AACR,2DAA2D;AAC3D,kFAAkF;AAClF,QAAQ;AACR,2CAA2C;AAC3C,oCAAoC;AACpC,oDAAoD;AACpD,QAAQ;AACR,yGAAyG;AACzG,qCAAqC;AACrC,sBAAsB;AACtB,oDAAoD;AACpD,gDAAgD;AAChD,4CAA4C;AAC5C,uCAAuC;AACvC,0DAA0D;AAC1D,6CAA6C;AAC7C,uCAAuC;AACvC,8CAA8C;AAC9C,gEAAgE;AAChE,wDAAwD;AAExD,8BAA8B;AAC9B,wBAAwB;AACxB,qBAAqB;AAErB,yBAAyB;AACzB,sBAAsB;AACtB,yDAAyD;AAEzD,oDAAoD;AACpD,4CAA4C;AAC5C,uCAAuC;AACvC,0DAA0D;AAC1D,6CAA6C;AAC7C,uCAAuC;AACvC,8CAA8C;AAC9C,gEAAgE;AAChE,wDAAwD;AACxD,8BAA8B;AAC9B,wBAAwB;AACxB,qBAAqB;AACrB,yBAAyB;AACzB,uBAAuB;AACvB,yBAAyB;AACzB,YAAY;AACZ,SAAS;AACT,gBAAgB;AAChB,SAAS;AAET,iCAAiC;AACjC,wBAAwB;AACxB,uCAAuC;AACvC,mBAAmB;AACnB,QAAQ;AAER,gCAAgC;AAChC,kCAAkC;AAClC,8BAA8B;AAC9B,QAAQ;AACR,0CAA0C;AAC1C,uCAAuC;AACvC,4DAA4D;AAC5D,+DAA+D;AAC/D,QAAQ;AAER,iCAAiC;AACjC,wBAAwB;AACxB,2BAA2B;AAC3B,6BAA6B;AAC7B,6BAA6B;AAC7B,uBAAuB;AACvB,yBAAyB;AACzB,wBAAwB;AACxB,QAAQ;AACR,2CAA2C;AAC3C,iCAAiC;AACjC,kCAAkC;AAClC,6BAA6B;AAC7B,wBAAwB;AACxB,uCAAuC;AACvC,QAAQ;AACR,6BAA6B;AAC7B,qBAAqB;AACrB,qBAAqB;AACrB,qBAAqB;AACrB,QAAQ;AACR,iCAAiC;AACjC,8BAA8B;AAC9B,8BAA8B;AAC9B,8BAA8B;AAC9B,8BAA8B;AAC9B,QAAQ;AACR,IAAI;AAEJ,iDAAiD"}
|
|
@@ -1,149 +1 @@
|
|
|
1
|
-
export class Vector3 {
|
|
2
|
-
constructor(x?: number, y?: number, z?: number);
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
z: number;
|
|
6
|
-
set(x: any, y: any, z: any): Vector3;
|
|
7
|
-
setScalar(scalar: any): Vector3;
|
|
8
|
-
setX(x: any): Vector3;
|
|
9
|
-
setY(y: any): Vector3;
|
|
10
|
-
setZ(z: any): Vector3;
|
|
11
|
-
setComponent(index: any, value: any): Vector3;
|
|
12
|
-
getComponent(index: any): number;
|
|
13
|
-
clone(): any;
|
|
14
|
-
copy(v: any): Vector3;
|
|
15
|
-
add(v: any, w: any): Vector3;
|
|
16
|
-
addScalar(s: any): Vector3;
|
|
17
|
-
addVectors(a: any, b: any): Vector3;
|
|
18
|
-
addScaledVector(v: any, s: any): Vector3;
|
|
19
|
-
sub(v: any, w: any): Vector3;
|
|
20
|
-
subScalar(s: any): Vector3;
|
|
21
|
-
subVectors(a: any, b: any): Vector3;
|
|
22
|
-
multiply(v: any, w: any): Vector3;
|
|
23
|
-
multiplyScalar(scalar: any): Vector3;
|
|
24
|
-
multiplyVectors(a: any, b: any): Vector3;
|
|
25
|
-
applyEuler(euler: any): Vector3;
|
|
26
|
-
applyAxisAngle(axis: any, angle: any): Vector3;
|
|
27
|
-
applyMatrix3(m: any): Vector3;
|
|
28
|
-
applyNormalMatrix(m: any): Vector3;
|
|
29
|
-
applyMatrix4(m: any): Vector3;
|
|
30
|
-
applyQuaternion(q: any): Vector3;
|
|
31
|
-
project(camera: any): Vector3;
|
|
32
|
-
unproject(camera: any): Vector3;
|
|
33
|
-
transformDirection(m: any): Vector3;
|
|
34
|
-
divide(v: any): Vector3;
|
|
35
|
-
divideScalar(scalar: any): Vector3;
|
|
36
|
-
min(v: any): Vector3;
|
|
37
|
-
max(v: any): Vector3;
|
|
38
|
-
clamp(min: any, max: any): Vector3;
|
|
39
|
-
clampScalar(minVal: any, maxVal: any): Vector3;
|
|
40
|
-
clampLength(min: any, max: any): Vector3;
|
|
41
|
-
floor(): Vector3;
|
|
42
|
-
ceil(): Vector3;
|
|
43
|
-
round(): Vector3;
|
|
44
|
-
roundToZero(): Vector3;
|
|
45
|
-
negate(): Vector3;
|
|
46
|
-
dot(v: any): number;
|
|
47
|
-
lengthSq(): number;
|
|
48
|
-
length(): number;
|
|
49
|
-
manhattanLength(): number;
|
|
50
|
-
normalize(): Vector3;
|
|
51
|
-
setLength(length: any): Vector3;
|
|
52
|
-
lerp(v: any, alpha: any): Vector3;
|
|
53
|
-
lerpVectors(v1: any, v2: any, alpha: any): Vector3;
|
|
54
|
-
cross(v: any, w: any): Vector3;
|
|
55
|
-
crossVectors(a: any, b: any): Vector3;
|
|
56
|
-
projectOnVector(v: any): Vector3;
|
|
57
|
-
projectOnPlane(planeNormal: any): Vector3;
|
|
58
|
-
reflect(normal: any): Vector3;
|
|
59
|
-
angleTo(v: any): number;
|
|
60
|
-
distanceTo(v: any): number;
|
|
61
|
-
distanceToSquared(v: any): number;
|
|
62
|
-
manhattanDistanceTo(v: any): number;
|
|
63
|
-
setFromSpherical(s: any): Vector3;
|
|
64
|
-
setFromSphericalCoords(radius: any, phi: any, theta: any): Vector3;
|
|
65
|
-
setFromCylindrical(c: any): Vector3;
|
|
66
|
-
setFromCylindricalCoords(radius: any, theta: any, y: any): Vector3;
|
|
67
|
-
setFromMatrixPosition(m: any): Vector3;
|
|
68
|
-
setFromMatrixScale(m: any): Vector3;
|
|
69
|
-
setFromMatrixColumn(m: any, index: any): Vector3;
|
|
70
|
-
setFromMatrix3Column(m: any, index: any): Vector3;
|
|
71
|
-
equals(v: any): boolean;
|
|
72
|
-
fromArray(array: any, offset?: number): Vector3;
|
|
73
|
-
toArray(array?: any[], offset?: number): any[];
|
|
74
|
-
fromBufferAttribute(attribute: any, index: any, offset: any): Vector3;
|
|
75
|
-
random(): Vector3;
|
|
76
|
-
randomDirection(): Vector3;
|
|
77
|
-
isVector3: boolean;
|
|
78
|
-
setEulerFromRotationMatrix(): void;
|
|
79
|
-
setEulerFromQuaternion(): void;
|
|
80
|
-
getPositionFromMatrix(m: any): Vector3;
|
|
81
|
-
getScaleFromMatrix(m: any): Vector3;
|
|
82
|
-
getColumnFromMatrix(index: any, matrix: any): Vector3;
|
|
83
|
-
applyProjection(m: any): Vector3;
|
|
84
|
-
fromAttribute(attribute: any, index: any, offset: any): Vector3;
|
|
85
|
-
distanceToManhattan(v: any): number;
|
|
86
|
-
lengthManhattan(): number;
|
|
87
|
-
[Symbol.iterator](): Generator<number, void, unknown>;
|
|
88
|
-
}
|
|
89
|
-
export class Matrix4 {
|
|
90
|
-
constructor(...args: any[]);
|
|
91
|
-
elements: number[];
|
|
92
|
-
set(n11: any, n12: any, n13: any, n14: any, n21: any, n22: any, n23: any, n24: any, n31: any, n32: any, n33: any, n34: any, n41: any, n42: any, n43: any, n44: any): Matrix4;
|
|
93
|
-
identity(): Matrix4;
|
|
94
|
-
clone(): Matrix4;
|
|
95
|
-
copy(m: any): Matrix4;
|
|
96
|
-
copyPosition(m: any): Matrix4;
|
|
97
|
-
setFromMatrix3(m: any): Matrix4;
|
|
98
|
-
extractBasis(xAxis: any, yAxis: any, zAxis: any): Matrix4;
|
|
99
|
-
makeBasis(xAxis: any, yAxis: any, zAxis: any): Matrix4;
|
|
100
|
-
extractRotation(m: any): Matrix4;
|
|
101
|
-
makeRotationFromEuler(euler: any): Matrix4;
|
|
102
|
-
makeRotationFromQuaternion(q: any): Matrix4;
|
|
103
|
-
lookAt(eye: any, target: any, up: any): Matrix4;
|
|
104
|
-
multiply(m: any, n: any): Matrix4;
|
|
105
|
-
premultiply(m: any): Matrix4;
|
|
106
|
-
multiplyMatrices(a: any, b: any): Matrix4;
|
|
107
|
-
multiplyScalar(s: any): Matrix4;
|
|
108
|
-
determinant(): number;
|
|
109
|
-
transpose(): Matrix4;
|
|
110
|
-
setPosition(x: any, y: any, z: any): Matrix4;
|
|
111
|
-
invert(): Matrix4;
|
|
112
|
-
scale(v: any): Matrix4;
|
|
113
|
-
getMaxScaleOnAxis(): number;
|
|
114
|
-
makeTranslation(x: any, y: any, z: any): Matrix4;
|
|
115
|
-
makeRotationX(theta: any): Matrix4;
|
|
116
|
-
makeRotationY(theta: any): Matrix4;
|
|
117
|
-
makeRotationZ(theta: any): Matrix4;
|
|
118
|
-
makeRotationAxis(axis: any, angle: any): Matrix4;
|
|
119
|
-
makeScale(x: any, y: any, z: any): Matrix4;
|
|
120
|
-
makeShear(xy: any, xz: any, yx: any, yz: any, zx: any, zy: any): Matrix4;
|
|
121
|
-
compose(position: any, quaternion: any, scale: any): Matrix4;
|
|
122
|
-
decompose(position: any, quaternion: any, scale: any): Matrix4;
|
|
123
|
-
makePerspective(left: any, right: any, top: any, bottom: any, near: any, far: any): Matrix4;
|
|
124
|
-
makeOrthographic(left: any, right: any, top: any, bottom: any, near: any, far: any): Matrix4;
|
|
125
|
-
equals(matrix: any): boolean;
|
|
126
|
-
fromArray(array: any, offset?: number): Matrix4;
|
|
127
|
-
toArray(array?: any[], offset?: number): any[];
|
|
128
|
-
isMatrix4: boolean;
|
|
129
|
-
extractPosition(m: any): Matrix4;
|
|
130
|
-
flattenToArrayOffset(array: any, offset: any): any[];
|
|
131
|
-
getPosition(): Vector3;
|
|
132
|
-
setRotationFromQuaternion(q: any): Matrix4;
|
|
133
|
-
multiplyToArray(): void;
|
|
134
|
-
multiplyVector3(vector: any): any;
|
|
135
|
-
multiplyVector4(vector: any): any;
|
|
136
|
-
multiplyVector3Array(): void;
|
|
137
|
-
rotateAxis(v: any): void;
|
|
138
|
-
crossVector(vector: any): any;
|
|
139
|
-
translate(): void;
|
|
140
|
-
rotateX(): void;
|
|
141
|
-
rotateY(): void;
|
|
142
|
-
rotateZ(): void;
|
|
143
|
-
rotateByAxis(): void;
|
|
144
|
-
applyToBufferAttribute(attribute: any): any;
|
|
145
|
-
applyToVector3Array(): void;
|
|
146
|
-
makeFrustum(left: any, right: any, bottom: any, top: any, near: any, far: any): Matrix4;
|
|
147
|
-
getInverse(matrix: any): Matrix4;
|
|
148
|
-
}
|
|
149
1
|
export function workerCode(): void;
|