viral-viewer-2 2.6.0 → 2.6.2
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/LICENSE +57 -57
- package/dist/components/spinner/viral-spinner.js +159 -159
- package/dist/components/worker/base/worker-pool.d.ts +21 -0
- package/dist/components/worker/base/worker-pool.js +47 -0
- package/dist/components/worker/base/worker-pool.js.map +1 -0
- package/dist/components/worker/base/worker-thread.d.ts +9 -0
- package/dist/components/worker/base/worker-thread.js +30 -0
- package/dist/components/worker/base/worker-thread.js.map +1 -0
- package/dist/components/worker/test-worker.worker.d.ts +6 -0
- package/dist/components/worker/test-worker.worker.js +21 -0
- package/dist/components/worker/test-worker.worker.js.map +1 -0
- package/dist/components/worker/viral-viewer-2.worker.d.ts +1 -1
- package/dist/components/worker/viral-viewer-2.worker.js +9 -6
- package/dist/components/worker/viral-viewer-2.worker.js.map +1 -1
- package/dist/components/worker-script/load-model-worker-2.script.js.map +1 -1
- package/dist/components/worker-script/threejs.script.d.ts +1 -0
- package/dist/components/worker-script/threejs.script.js +23 -0
- package/dist/components/worker-script/threejs.script.js.map +1 -0
- package/dist/components/worker-script/threejs.types.js +292 -292
- package/dist/viral-viewer-api.d.ts +2 -0
- package/dist/viral-viewer-api.js +3 -0
- package/dist/viral-viewer-api.js.map +1 -1
- package/package.json +29 -29
- package/dist/components/worker/load-model.d.ts +0 -126
- package/dist/components/worker/load-model.js +0 -1265
- package/dist/components/worker/load-model.js.map +0 -1
- package/dist/components/worker/test-worker-pool.d.ts +0 -6
- package/dist/components/worker/test-worker-pool.js +0 -21
- package/dist/components/worker/test-worker-pool.js.map +0 -1
- package/dist/components/worker-script/load-model-worker-3.script.d.ts +0 -0
- package/dist/components/worker-script/load-model-worker-3.script.js +0 -170
- package/dist/components/worker-script/load-model-worker-3.script.js.map +0 -1
- package/dist/components/worker-script/test-worker-pool.script.d.ts +0 -1
- package/dist/components/worker-script/test-worker-pool.script.js +0 -12
- package/dist/components/worker-script/test-worker-pool.script.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viral-viewer-api.js","sourceRoot":"","sources":["../src/viral-viewer-api.ts"],"names":[],"mappings":";;;AACA,6FAAuF;AACvF,iFAA6E;AAC7E,iFAA4E;AAC5E,yGAAkG;AAClG,mEAA+D;AAC/D,gEAA4D;AAC5D,gEAA4D;AAC5D,yEAAqE;AACrE,8FAAyF;AACzF,4EAAwE;AACxE,gEAA4D;AAC5D,sEAAkE;AAClE,4EAAuE;AACvE,yEAAqE;AACrE,qFAA+E;
|
|
1
|
+
{"version":3,"file":"viral-viewer-api.js","sourceRoot":"","sources":["../src/viral-viewer-api.ts"],"names":[],"mappings":";;;AACA,6FAAuF;AACvF,iFAA6E;AAC7E,iFAA4E;AAC5E,yGAAkG;AAClG,mEAA+D;AAC/D,gEAA4D;AAC5D,gEAA4D;AAC5D,yEAAqE;AACrE,8FAAyF;AACzF,4EAAwE;AACxE,gEAA4D;AAC5D,sEAAkE;AAClE,4EAAuE;AACvE,yEAAqE;AACrE,qFAA+E;AAC/E,+EAAoE;AAEpE,MAAa,cAAc;IAoBvB,YAAY,OAAsB;QANlC,sBAAiB,GAAsB,IAAI,sCAAiB,EAAE,CAAC;QAC/D,WAAM,GAA6B,IAAI,CAAC;QACxC,YAAO,GAA8B,IAAI,CAAC;QAC1C,YAAO,GAAsB,IAAI,CAAC;QAClC,yCAAyC;QACzC,wBAAmB,GAAwB,IAAI,2CAAmB,EAAE,CAAC;QAEjE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,SAAS,CAAC;QACvC,IAAI,CAAC,mBAAmB,GAAG,IAAI,2CAAmB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,UAAU,GAAG,IAAI,wBAAU,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,YAAY,GAAG,IAAI,4BAAY,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,UAAU,GAAG,IAAI,wBAAU,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,aAAa,GAAG,IAAI,8BAAa,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,WAAW,GAAG,IAAI,0BAAW,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,UAAU,GAAG,IAAI,wBAAU,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,aAAa,GAAG,IAAI,8BAAa,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,cAAc,GAAG,IAAI,gCAAc,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,WAAW,GAAG,IAAI,kDAAsB,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,CAAC,gBAAgB,GAAG,IAAI,6DAA2B,CAAC,IAAI,CAAC,CAAC;QAC9D,IAAI,CAAC,MAAM,GAAG,IAAI,uCAAiB,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,IAAI,0CAAkB,CAAC,IAAI,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,IAAI,+BAAU,EAAE,CAAC;QAChC,uCAAuC;QACvC,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC;IAEpC,CAAC;CAGJ;AA3CD,wCA2CC"}
|
package/package.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "viral-viewer-2",
|
|
3
|
-
"version": "2.6.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist",
|
|
9
|
-
"LICENSE",
|
|
10
|
-
"README.md"
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
14
|
-
"build": "npx tsc"
|
|
15
|
-
},
|
|
16
|
-
"keywords": [],
|
|
17
|
-
"author": "",
|
|
18
|
-
"license": "ISC",
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"@types/node": "^20.2.5",
|
|
21
|
-
"@types/three": "^0.152.1",
|
|
22
|
-
"typescript": "^5.0.4"
|
|
23
|
-
},
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"camera-controls": "^2.3.7",
|
|
26
|
-
"lz-string": "^1.5.0",
|
|
27
|
-
"potree-core-viral": "^0.2.3",
|
|
28
|
-
"three": "^0.152.2"
|
|
29
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "viral-viewer-2",
|
|
3
|
+
"version": "2.6.2",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"LICENSE",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
14
|
+
"build": "npx tsc"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [],
|
|
17
|
+
"author": "",
|
|
18
|
+
"license": "ISC",
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/node": "^20.2.5",
|
|
21
|
+
"@types/three": "^0.152.1",
|
|
22
|
+
"typescript": "^5.0.4"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"camera-controls": "^2.3.7",
|
|
26
|
+
"lz-string": "^1.5.0",
|
|
27
|
+
"potree-core-viral": "^0.2.3",
|
|
28
|
+
"three": "^0.152.2"
|
|
29
|
+
}
|
|
30
30
|
}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
declare function addCustomMesh3(indices: any, vertices: any, material: any, callback: any): void;
|
|
2
|
-
declare function addCustomMesh4(indices: any, vertices: any, material: any, instances: any, callback: any): void;
|
|
3
|
-
declare function progressStructuralGeometries(json: any, callback: any): void;
|
|
4
|
-
declare function progressNoneStructuralGeometries(json: any, callback: any): void;
|
|
5
|
-
declare function rgbToHex(r: any, g: any, b: any): string;
|
|
6
|
-
declare function componentToHex(c: any): any;
|
|
7
|
-
declare class Matrix4 {
|
|
8
|
-
constructor(...args: any[]);
|
|
9
|
-
elements: number[];
|
|
10
|
-
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;
|
|
11
|
-
identity(): Matrix4;
|
|
12
|
-
clone(): Matrix4;
|
|
13
|
-
copy(m: any): Matrix4;
|
|
14
|
-
copyPosition(m: any): Matrix4;
|
|
15
|
-
setFromMatrix3(m: any): Matrix4;
|
|
16
|
-
extractBasis(xAxis: any, yAxis: any, zAxis: any): Matrix4;
|
|
17
|
-
makeBasis(xAxis: any, yAxis: any, zAxis: any): Matrix4;
|
|
18
|
-
extractRotation(m: any): Matrix4;
|
|
19
|
-
makeRotationFromEuler(euler: any): Matrix4;
|
|
20
|
-
makeRotationFromQuaternion(q: any): Matrix4;
|
|
21
|
-
lookAt(eye: any, target: any, up: any): Matrix4;
|
|
22
|
-
multiply(m: any, n: any): Matrix4;
|
|
23
|
-
premultiply(m: any): Matrix4;
|
|
24
|
-
multiplyMatrices(a: any, b: any): Matrix4;
|
|
25
|
-
multiplyScalar(s: any): Matrix4;
|
|
26
|
-
determinant(): number;
|
|
27
|
-
transpose(): Matrix4;
|
|
28
|
-
setPosition(x: any, y: any, z: any): Matrix4;
|
|
29
|
-
invert(): Matrix4;
|
|
30
|
-
scale(v: any): Matrix4;
|
|
31
|
-
getMaxScaleOnAxis(): number;
|
|
32
|
-
makeTranslation(x: any, y: any, z: any): Matrix4;
|
|
33
|
-
makeRotationX(theta: any): Matrix4;
|
|
34
|
-
makeRotationY(theta: any): Matrix4;
|
|
35
|
-
makeRotationZ(theta: any): Matrix4;
|
|
36
|
-
makeRotationAxis(axis: any, angle: any): Matrix4;
|
|
37
|
-
makeScale(x: any, y: any, z: any): Matrix4;
|
|
38
|
-
makeShear(xy: any, xz: any, yx: any, yz: any, zx: any, zy: any): Matrix4;
|
|
39
|
-
compose(position: any, quaternion: any, scale: any): Matrix4;
|
|
40
|
-
decompose(position: any, quaternion: any, scale: any): Matrix4;
|
|
41
|
-
makePerspective(left: any, right: any, top: any, bottom: any, near: any, far: any): Matrix4;
|
|
42
|
-
makeOrthographic(left: any, right: any, top: any, bottom: any, near: any, far: any): Matrix4;
|
|
43
|
-
equals(matrix: any): boolean;
|
|
44
|
-
fromArray(array: any, offset?: number): Matrix4;
|
|
45
|
-
toArray(array?: any[], offset?: number): any[];
|
|
46
|
-
isMatrix4: boolean;
|
|
47
|
-
}
|
|
48
|
-
declare class Vector3 {
|
|
49
|
-
constructor(x?: number, y?: number, z?: number);
|
|
50
|
-
x: number;
|
|
51
|
-
y: number;
|
|
52
|
-
z: number;
|
|
53
|
-
set(x: any, y: any, z: any): Vector3;
|
|
54
|
-
setScalar(scalar: any): Vector3;
|
|
55
|
-
setX(x: any): Vector3;
|
|
56
|
-
setY(y: any): Vector3;
|
|
57
|
-
setZ(z: any): Vector3;
|
|
58
|
-
setComponent(index: any, value: any): Vector3;
|
|
59
|
-
getComponent(index: any): number;
|
|
60
|
-
clone(): any;
|
|
61
|
-
copy(v: any): Vector3;
|
|
62
|
-
add(v: any, w: any): Vector3;
|
|
63
|
-
addScalar(s: any): Vector3;
|
|
64
|
-
addVectors(a: any, b: any): Vector3;
|
|
65
|
-
addScaledVector(v: any, s: any): Vector3;
|
|
66
|
-
sub(v: any, w: any): Vector3;
|
|
67
|
-
subScalar(s: any): Vector3;
|
|
68
|
-
subVectors(a: any, b: any): Vector3;
|
|
69
|
-
multiply(v: any, w: any): Vector3;
|
|
70
|
-
multiplyScalar(scalar: any): Vector3;
|
|
71
|
-
multiplyVectors(a: any, b: any): Vector3;
|
|
72
|
-
applyEuler(euler: any): Vector3;
|
|
73
|
-
applyAxisAngle(axis: any, angle: any): Vector3;
|
|
74
|
-
applyMatrix3(m: any): Vector3;
|
|
75
|
-
applyNormalMatrix(m: any): Vector3;
|
|
76
|
-
applyMatrix4(m: any): Vector3;
|
|
77
|
-
applyQuaternion(q: any): Vector3;
|
|
78
|
-
project(camera: any): Vector3;
|
|
79
|
-
unproject(camera: any): Vector3;
|
|
80
|
-
transformDirection(m: any): Vector3;
|
|
81
|
-
divide(v: any): Vector3;
|
|
82
|
-
divideScalar(scalar: any): Vector3;
|
|
83
|
-
min(v: any): Vector3;
|
|
84
|
-
max(v: any): Vector3;
|
|
85
|
-
clamp(min: any, max: any): Vector3;
|
|
86
|
-
clampScalar(minVal: any, maxVal: any): Vector3;
|
|
87
|
-
clampLength(min: any, max: any): Vector3;
|
|
88
|
-
floor(): Vector3;
|
|
89
|
-
ceil(): Vector3;
|
|
90
|
-
round(): Vector3;
|
|
91
|
-
roundToZero(): Vector3;
|
|
92
|
-
negate(): Vector3;
|
|
93
|
-
dot(v: any): number;
|
|
94
|
-
lengthSq(): number;
|
|
95
|
-
length(): number;
|
|
96
|
-
manhattanLength(): number;
|
|
97
|
-
normalize(): Vector3;
|
|
98
|
-
setLength(length: any): Vector3;
|
|
99
|
-
lerp(v: any, alpha: any): Vector3;
|
|
100
|
-
lerpVectors(v1: any, v2: any, alpha: any): Vector3;
|
|
101
|
-
cross(v: any, w: any): Vector3;
|
|
102
|
-
crossVectors(a: any, b: any): Vector3;
|
|
103
|
-
projectOnVector(v: any): Vector3;
|
|
104
|
-
projectOnPlane(planeNormal: any): Vector3;
|
|
105
|
-
reflect(normal: any): Vector3;
|
|
106
|
-
angleTo(v: any): number;
|
|
107
|
-
distanceTo(v: any): number;
|
|
108
|
-
distanceToSquared(v: any): number;
|
|
109
|
-
manhattanDistanceTo(v: any): number;
|
|
110
|
-
setFromSpherical(s: any): Vector3;
|
|
111
|
-
setFromSphericalCoords(radius: any, phi: any, theta: any): Vector3;
|
|
112
|
-
setFromCylindrical(c: any): Vector3;
|
|
113
|
-
setFromCylindricalCoords(radius: any, theta: any, y: any): Vector3;
|
|
114
|
-
setFromMatrixPosition(m: any): Vector3;
|
|
115
|
-
setFromMatrixScale(m: any): Vector3;
|
|
116
|
-
setFromMatrixColumn(m: any, index: any): Vector3;
|
|
117
|
-
setFromMatrix3Column(m: any, index: any): Vector3;
|
|
118
|
-
equals(v: any): boolean;
|
|
119
|
-
fromArray(array: any, offset?: number): Vector3;
|
|
120
|
-
toArray(array?: any[], offset?: number): any[];
|
|
121
|
-
fromBufferAttribute(attribute: any, index: any, offset: any): Vector3;
|
|
122
|
-
random(): Vector3;
|
|
123
|
-
randomDirection(): Vector3;
|
|
124
|
-
isVector3: boolean;
|
|
125
|
-
[Symbol.iterator](): Generator<number, void, unknown>;
|
|
126
|
-
}
|