viral-viewer-2 3.3.9 → 3.4.0
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/animation/viral-animation.d.ts +1 -0
- package/dist/components/animation/viral-animation.js +26 -2
- package/dist/components/animation/viral-animation.js.map +1 -1
- package/dist/components/camera/viral-camera.d.ts +13 -3
- package/dist/components/camera/viral-camera.js +57 -7
- package/dist/components/camera/viral-camera.js.map +1 -1
- package/dist/components/centralized-event-handler/viral-centralized-event-handler.js.map +1 -1
- package/dist/components/compress/{compress.processor.d.ts → viral-compress.processor.d.ts} +1 -1
- package/dist/components/compress/{compress.processor.js → viral-compress.processor.js} +4 -4
- package/dist/components/compress/viral-compress.processor.js.map +1 -0
- package/dist/components/context-menu/viral-context-menu.js +9 -8
- package/dist/components/context-menu/viral-context-menu.js.map +1 -1
- package/dist/components/keyboard/viral-keyboard.d.ts +11 -1
- package/dist/components/keyboard/viral-keyboard.js +33 -0
- package/dist/components/keyboard/viral-keyboard.js.map +1 -1
- package/dist/components/loader/{viral-viewer-point-cloud.loader.d.ts → viral-point-cloud.loader.d.ts} +1 -1
- package/dist/components/loader/{viral-viewer-point-cloud.loader.js → viral-point-cloud.loader.js} +4 -4
- package/dist/components/loader/viral-point-cloud.loader.js.map +1 -0
- package/dist/components/loader/{viral-viewer-revit.loader.d.ts → viral-revit.loader.d.ts} +1 -3
- package/dist/components/loader/{viral-viewer-revit.loader.js → viral-revit.loader.js} +8 -13
- package/dist/components/loader/viral-revit.loader.js.map +1 -0
- package/dist/components/loader/viral-three.loader.d.ts +11 -0
- package/dist/components/loader/viral-three.loader.js +20 -0
- package/dist/components/loader/viral-three.loader.js.map +1 -0
- package/dist/components/loader/viral.loader.d.ts +11 -0
- package/dist/components/loader/viral.loader.js +16 -0
- package/dist/components/loader/viral.loader.js.map +1 -0
- package/dist/components/mouse/viral-mouse.js +0 -1
- package/dist/components/mouse/viral-mouse.js.map +1 -1
- package/dist/components/scene/viral-scene.d.ts +8 -3
- package/dist/components/scene/viral-scene.js +28 -15
- package/dist/components/scene/viral-scene.js.map +1 -1
- package/dist/components/spinner/viral-spinner.js +159 -159
- package/dist/components/stats/viral-stats.d.ts +7 -0
- package/dist/components/stats/viral-stats.js +16 -0
- package/dist/components/stats/viral-stats.js.map +1 -0
- package/dist/components/worker/viral-viewer-2.worker.d.ts +1 -4
- package/dist/components/worker/viral-viewer-2.worker.js +3 -10
- package/dist/components/worker/viral-viewer-2.worker.js.map +1 -1
- package/dist/components/worker/viral-viewer-3.worker.d.ts +1 -7
- package/dist/components/worker/viral-viewer-3.worker.js +7 -18
- package/dist/components/worker/viral-viewer-3.worker.js.map +1 -1
- package/dist/components/worker-script/threejs.types.js +185 -185
- package/dist/const/colors.d.ts +1 -0
- package/dist/const/colors.js +1 -0
- package/dist/const/colors.js.map +1 -1
- package/dist/models/dictionary.model.d.ts +0 -10
- package/dist/models/dictionary.model.js +0 -41
- package/dist/models/dictionary.model.js.map +1 -1
- package/dist/threejs-addon/gltf-loader.d.ts +17 -0
- package/dist/threejs-addon/gltf-loader.js +2796 -0
- package/dist/threejs-addon/gltf-loader.js.map +1 -0
- package/dist/threejs-addon/transform-control.d.ts +74 -0
- package/dist/threejs-addon/transform-control.js +1033 -0
- package/dist/threejs-addon/transform-control.js.map +1 -0
- package/dist/types.d.ts +18 -0
- package/dist/types.js +48 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/threejs.d.ts +2 -0
- package/dist/utils/threejs.js +10 -1
- package/dist/utils/threejs.js.map +1 -1
- package/dist/viral-viewer-api.d.ts +7 -11
- package/dist/viral-viewer-api.js +10 -14
- package/dist/viral-viewer-api.js.map +1 -1
- package/package.json +30 -29
- package/dist/components/compress/compress.processor.js.map +0 -1
- package/dist/components/loader/viral-viewer-point-cloud.loader.js.map +0 -1
- package/dist/components/loader/viral-viewer-revit.loader.js.map +0 -1
- package/dist/components/worker/test-worker.worker.d.ts +0 -6
- package/dist/components/worker/test-worker.worker.js +0 -21
- package/dist/components/worker/test-worker.worker.js.map +0 -1
- package/dist/components/worker/viral-viewer.worker-pool.d.ts +0 -0
- package/dist/components/worker/viral-viewer.worker-pool.js +0 -61
- package/dist/components/worker/viral-viewer.worker-pool.js.map +0 -1
- package/dist/components/worker/worker-pool.d.ts +0 -21
- package/dist/components/worker/worker-pool.js +0 -47
- package/dist/components/worker/worker-pool.js.map +0 -1
- package/dist/components/worker/worker-thread.d.ts +0 -9
- package/dist/components/worker/worker-thread.js +0 -30
- package/dist/components/worker/worker-thread.js.map +0 -1
- package/dist/components/worker-script/threejs.script.d.ts +0 -1
- package/dist/components/worker-script/threejs.script.js +0 -16
- package/dist/components/worker-script/threejs.script.js.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ObjectLoader } from "three";
|
|
2
|
+
import { ViralViewerApi } from "../../viral-viewer-api";
|
|
3
|
+
import { GLTFLoader } from "../../threejs-addon/gltf-loader";
|
|
4
|
+
export declare class ViralThreeLoader {
|
|
5
|
+
viralViewerApi: ViralViewerApi;
|
|
6
|
+
objectLoader: ObjectLoader;
|
|
7
|
+
gltfLoader: GLTFLoader;
|
|
8
|
+
constructor(viralViewerApi: ViralViewerApi);
|
|
9
|
+
parseObject(data: any): import("three").Object3D<import("three").Event>;
|
|
10
|
+
loadGLTF(url: string, loaded?: (data: any) => void, onProgress?: (data: any) => void, onError?: (data: any) => void): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ViralThreeLoader = void 0;
|
|
4
|
+
const three_1 = require("three");
|
|
5
|
+
const gltf_loader_1 = require("../../threejs-addon/gltf-loader");
|
|
6
|
+
class ViralThreeLoader {
|
|
7
|
+
constructor(viralViewerApi) {
|
|
8
|
+
this.viralViewerApi = viralViewerApi;
|
|
9
|
+
this.objectLoader = new three_1.ObjectLoader();
|
|
10
|
+
this.gltfLoader = new gltf_loader_1.GLTFLoader();
|
|
11
|
+
}
|
|
12
|
+
parseObject(data) {
|
|
13
|
+
return this.objectLoader.parse(data);
|
|
14
|
+
}
|
|
15
|
+
loadGLTF(url, loaded = (data) => { }, onProgress = (data) => { }, onError = (data) => { }) {
|
|
16
|
+
this.gltfLoader.load(url, loaded, onprogress, onError);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.ViralThreeLoader = ViralThreeLoader;
|
|
20
|
+
//# sourceMappingURL=viral-three.loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viral-three.loader.js","sourceRoot":"","sources":["../../../src/components/loader/viral-three.loader.ts"],"names":[],"mappings":";;;AAAA,iCAAqC;AAErC,iEAA6D;AAE7D,MAAa,gBAAgB;IAGzB,YAAmB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;QAF1C,iBAAY,GAAG,IAAI,oBAAY,EAAE,CAAC;QAClC,eAAU,GAAG,IAAI,wBAAU,EAAE,CAAC;IAGrC,CAAC;IAEM,WAAW,CAAC,IAAS;QACxB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IAEM,QAAQ,CAAC,GAAW,EAAE,SAAS,CAAC,IAAS,EAAE,EAAE,GAAG,CAAC,EAAE,aAAa,CAAC,IAAS,EAAE,EAAE,GAAG,CAAC,EAAE,UAAU,CAAC,IAAS,EAAE,EAAE,GAAG,CAAC;QACnH,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;CACJ;AAdD,4CAcC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ViralViewerApi } from "../../viral-viewer-api";
|
|
2
|
+
import { ViralPointCloudLoader } from "./viral-point-cloud.loader";
|
|
3
|
+
import { ViralRevitLoader } from "./viral-revit.loader";
|
|
4
|
+
import { ViralThreeLoader } from "./viral-three.loader";
|
|
5
|
+
export declare class ViralLoader {
|
|
6
|
+
viralViewerApi: ViralViewerApi;
|
|
7
|
+
viralRevitLoader: ViralRevitLoader;
|
|
8
|
+
pointCloudLoader: ViralPointCloudLoader;
|
|
9
|
+
threeLoader: ViralThreeLoader;
|
|
10
|
+
constructor(viralViewerApi: ViralViewerApi);
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ViralLoader = void 0;
|
|
4
|
+
const viral_point_cloud_loader_1 = require("./viral-point-cloud.loader");
|
|
5
|
+
const viral_revit_loader_1 = require("./viral-revit.loader");
|
|
6
|
+
const viral_three_loader_1 = require("./viral-three.loader");
|
|
7
|
+
class ViralLoader {
|
|
8
|
+
constructor(viralViewerApi) {
|
|
9
|
+
this.viralViewerApi = viralViewerApi;
|
|
10
|
+
this.viralRevitLoader = new viral_revit_loader_1.ViralRevitLoader(this.viralViewerApi);
|
|
11
|
+
this.pointCloudLoader = new viral_point_cloud_loader_1.ViralPointCloudLoader(this.viralViewerApi);
|
|
12
|
+
this.threeLoader = new viral_three_loader_1.ViralThreeLoader(this.viralViewerApi);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.ViralLoader = ViralLoader;
|
|
16
|
+
//# sourceMappingURL=viral.loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viral.loader.js","sourceRoot":"","sources":["../../../src/components/loader/viral.loader.ts"],"names":[],"mappings":";;;AACA,yEAAmE;AACnE,6DAAwD;AACxD,6DAAwD;AAGxD,MAAa,WAAW;IAIpB,YAAmB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;QAC7C,IAAI,CAAC,gBAAgB,GAAG,IAAI,qCAAgB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAClE,IAAI,CAAC,gBAAgB,GAAG,IAAI,gDAAqB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACvE,IAAI,CAAC,WAAW,GAAG,IAAI,qCAAgB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IACjE,CAAC;CACJ;AATD,kCASC"}
|
|
@@ -28,7 +28,6 @@ class ViralMouse {
|
|
|
28
28
|
this.handleClick = (_event) => __awaiter(this, void 0, void 0, function* () {
|
|
29
29
|
var _a, _b;
|
|
30
30
|
if (this.viralViewerApi) {
|
|
31
|
-
console.log(_event.button);
|
|
32
31
|
if (_event.button == 0) {
|
|
33
32
|
if (this.mouseDownLeftQueuedEvents.length > 0) {
|
|
34
33
|
this.mouseDownLeftQueuedEvents.forEach(element => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viral-mouse.js","sourceRoot":"","sources":["../../../src/components/mouse/viral-mouse.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAsC;AAEtC,uCAAkD;AAElD,MAAa,UAAU;IASnB,YAAmB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;QARjD,aAAQ,GAAG,IAAI,eAAO,EAAE,CAAC;QACzB,gBAAW,GAAG,IAAI,eAAO,EAAE,CAAC;QACpB,0BAAqB,GAAsC,EAAE,CAAC;QAC9D,8BAAyB,GAAsC,EAAE,CAAC;QAClE,4BAAuB,GAAsC,EAAE,CAAC;QAChE,+BAA0B,GAAsC,EAAE,CAAC;QACnE,6BAAwB,GAAsC,EAAE,CAAC;QAmHzE,YAAY;QAEZ,eAAe;QACP,gBAAW,GAAqB,EAAE,CAAC;QAoCnC,gBAAW,GAAG,CAAO,MAAkB,EAAE,EAAE;;YAC/C,IAAI,IAAI,CAAC,cAAc,EAAE;gBACrB,
|
|
1
|
+
{"version":3,"file":"viral-mouse.js","sourceRoot":"","sources":["../../../src/components/mouse/viral-mouse.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAsC;AAEtC,uCAAkD;AAElD,MAAa,UA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AAQ,CAAC,QAAQ,CAAC,CAAC;SAElE;QACD,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;IAC/C,CAAC;IAED,YAAY;IAEZ,oBAAoB;IACZ,cAAc,CAAC,UAAuB;QAC1C,UAAW,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;IAE/C,CAAC;IA8CD,YAAY;IAEZ,kBAAkB;IACV,YAAY,CAAC,UAAuB;QACxC,UAAW,CAAC,SAAS,GAAG,IAAI,CAAC,aAAa,CAAC;IAE/C,CAAC;CA6BJ;AAjPD,gCAiPC"}
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
import { Scene, Object3D, Light, CameraHelper, Material } from 'three';
|
|
2
2
|
import { ViralViewerApi } from '../../viral-viewer-api';
|
|
3
|
+
import { Dictionary } from '../../types';
|
|
4
|
+
import { TransformControls } from '../../threejs-addon/transform-control';
|
|
3
5
|
export declare class ViralScene {
|
|
4
6
|
viralViewerApi: ViralViewerApi;
|
|
5
7
|
scene: Scene;
|
|
6
8
|
objects: Object3D[];
|
|
7
9
|
models: Object3D[];
|
|
8
10
|
lights: Light[];
|
|
11
|
+
transformControls: TransformControls | null;
|
|
9
12
|
lightHelpers: CameraHelper[];
|
|
10
|
-
materials: Material
|
|
13
|
+
materials: Dictionary<number, Material>;
|
|
11
14
|
constructor(viralViewerApi: ViralViewerApi);
|
|
12
15
|
addObject(object: Object3D): void;
|
|
13
16
|
addModel(object: Object3D): void;
|
|
17
|
+
addMaterial(index: number, material: Material): void;
|
|
14
18
|
getObjectByName(name: string): Object3D<import("three").Event> | undefined;
|
|
15
|
-
|
|
19
|
+
addLights(): void;
|
|
20
|
+
addPivotPoint(): void;
|
|
21
|
+
addTransformControls(): void;
|
|
16
22
|
addCube(): void;
|
|
17
23
|
addAxes(): void;
|
|
18
|
-
addPivotPoint(): void;
|
|
19
24
|
enableLightHelper(value: boolean): void;
|
|
20
25
|
}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ViralScene = void 0;
|
|
4
4
|
const three_1 = require("three");
|
|
5
|
+
const types_1 = require("../../types");
|
|
6
|
+
const transform_control_1 = require("../../threejs-addon/transform-control");
|
|
5
7
|
class ViralScene {
|
|
6
8
|
constructor(viralViewerApi) {
|
|
7
9
|
this.viralViewerApi = viralViewerApi;
|
|
@@ -9,11 +11,13 @@ class ViralScene {
|
|
|
9
11
|
this.objects = [];
|
|
10
12
|
this.models = [];
|
|
11
13
|
this.lights = [];
|
|
14
|
+
this.transformControls = null;
|
|
12
15
|
this.lightHelpers = [];
|
|
13
|
-
this.materials =
|
|
14
|
-
this.
|
|
16
|
+
this.materials = new types_1.Dictionary();
|
|
17
|
+
this.addLights();
|
|
15
18
|
this.addPivotPoint();
|
|
16
19
|
}
|
|
20
|
+
//#region Add Objects
|
|
17
21
|
addObject(object) {
|
|
18
22
|
this.scene.add(object);
|
|
19
23
|
this.objects.push(object);
|
|
@@ -22,11 +26,15 @@ class ViralScene {
|
|
|
22
26
|
this.addObject(object);
|
|
23
27
|
this.models.push(object);
|
|
24
28
|
}
|
|
29
|
+
addMaterial(index, material) {
|
|
30
|
+
this.materials.add(index, material);
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
25
33
|
getObjectByName(name) {
|
|
26
34
|
var object = this.scene.getObjectByName(name);
|
|
27
35
|
return object;
|
|
28
36
|
}
|
|
29
|
-
|
|
37
|
+
addLights() {
|
|
30
38
|
const light1 = new three_1.DirectionalLight(0xffffff, 0.8);
|
|
31
39
|
light1.position.set(1, 1, 1).normalize();
|
|
32
40
|
const light2 = new three_1.DirectionalLight(0xffffff, 0.8);
|
|
@@ -59,18 +67,6 @@ class ViralScene {
|
|
|
59
67
|
this.lights.push(sunlight);
|
|
60
68
|
this.lightHelpers.push(sunlightHelper);
|
|
61
69
|
}
|
|
62
|
-
addCube() {
|
|
63
|
-
if (this.scene) {
|
|
64
|
-
const mesh = new three_1.Mesh(new three_1.BoxGeometry(1, 1, 1), new three_1.MeshStandardMaterial({ color: 0xff0000, wireframe: true }));
|
|
65
|
-
this.addObject(mesh);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
addAxes() {
|
|
69
|
-
if (this.scene) {
|
|
70
|
-
const axesHelper = new three_1.AxesHelper(5);
|
|
71
|
-
this.addObject(axesHelper);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
70
|
addPivotPoint() {
|
|
75
71
|
const sphereGeometry = new three_1.SphereGeometry(1, 32, 32);
|
|
76
72
|
const sphereMaterial = new three_1.MeshBasicMaterial({
|
|
@@ -83,6 +79,23 @@ class ViralScene {
|
|
|
83
79
|
sphere.visible = false;
|
|
84
80
|
this.addObject(sphere);
|
|
85
81
|
}
|
|
82
|
+
addTransformControls() {
|
|
83
|
+
this.transformControls = new transform_control_1.TransformControls(this.viralViewerApi.viralCamera.camera, this.viralViewerApi.viralRenderer.renderer.domElement);
|
|
84
|
+
this.addObject(this.transformControls);
|
|
85
|
+
}
|
|
86
|
+
//#region Helper
|
|
87
|
+
addCube() {
|
|
88
|
+
if (this.scene) {
|
|
89
|
+
const mesh = new three_1.Mesh(new three_1.BoxGeometry(1, 1, 1), new three_1.MeshStandardMaterial({ color: 0xff0000, wireframe: true }));
|
|
90
|
+
this.addObject(mesh);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
addAxes() {
|
|
94
|
+
if (this.scene) {
|
|
95
|
+
const axesHelper = new three_1.AxesHelper(5);
|
|
96
|
+
this.addObject(axesHelper);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
86
99
|
enableLightHelper(value) {
|
|
87
100
|
for (let index = 0; index < this.lightHelpers.length; index++) {
|
|
88
101
|
const element = this.lightHelpers[index];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viral-scene.js","sourceRoot":"","sources":["../../../src/components/scene/viral-scene.ts"],"names":[],"mappings":";;;AAAA,iCAee;
|
|
1
|
+
{"version":3,"file":"viral-scene.js","sourceRoot":"","sources":["../../../src/components/scene/viral-scene.ts"],"names":[],"mappings":";;;AAAA,iCAee;AAEf,uCAAyC;AACzC,6EAA0E;AAE1E,MAAa,UAAU;IAQnB,YAAmB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;QAPjD,UAAK,GAAU,IAAI,aAAK,EAAE,CAAC;QAC3B,YAAO,GAAe,EAAE,CAAC;QACzB,WAAM,GAAe,EAAE,CAAC;QACxB,WAAM,GAAY,EAAE,CAAC;QACrB,sBAAiB,GAA6B,IAAI,CAAC;QACnD,iBAAY,GAAmB,EAAE,CAAC;QAClC,cAAS,GAAiC,IAAI,kBAAU,EAAoB,CAAC;QAEzE,IAAI,CAAC,SAAS,EAAE,CAAC;QACjB,IAAI,CAAC,aAAa,EAAE,CAAC;IACzB,CAAC;IACD,qBAAqB;IACd,SAAS,CAAC,MAAgB;QAC7B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACvB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;IACM,QAAQ,CAAC,MAAgB;QAC5B,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACvB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;IACM,WAAW,CAAC,KAAa,EAAE,QAAkB;QAChD,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;IAEvC,CAAC;IACD,YAAY;IAEL,eAAe,CAAC,IAAY;QAC/B,IAAI,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAC9C,OAAO,MAAM,CAAC;IAClB,CAAC;IACM,SAAS;QACZ,MAAM,MAAM,GAAG,IAAI,wBAAgB,CAAC,QAAQ,EAAE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 135.46667 135.46667"
|
|
11
|
-
version="1.1"
|
|
12
|
-
id="svg7238"
|
|
13
|
-
sodipodi:docname="viral2-green.svg"
|
|
14
|
-
inkscape:export-filename="viral2-512.png"
|
|
15
|
-
inkscape:export-xdpi="96"
|
|
16
|
-
inkscape:export-ydpi="96"
|
|
17
|
-
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
|
18
|
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
19
|
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
20
|
-
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
21
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
22
|
-
xmlns:svg="http://www.w3.org/2000/svg">
|
|
23
|
-
<sodipodi:namedview
|
|
24
|
-
id="namedview7240"
|
|
25
|
-
pagecolor="#ffffff"
|
|
26
|
-
bordercolor="#000000"
|
|
27
|
-
borderopacity="0.25"
|
|
28
|
-
inkscape:showpageshadow="2"
|
|
29
|
-
inkscape:pageopacity="0.0"
|
|
30
|
-
inkscape:pagecheckerboard="0"
|
|
31
|
-
inkscape:deskcolor="#d1d1d1"
|
|
32
|
-
inkscape:document-units="px"
|
|
33
|
-
showgrid="false"
|
|
34
|
-
showborder="false"
|
|
35
|
-
inkscape:zoom="0.99327643"
|
|
36
|
-
inkscape:cx="-5.53723"
|
|
37
|
-
inkscape:cy="208.4012"
|
|
38
|
-
inkscape:window-width="1920"
|
|
39
|
-
inkscape:window-height="1025"
|
|
40
|
-
inkscape:window-x="-8"
|
|
41
|
-
inkscape:window-y="-8"
|
|
42
|
-
inkscape:window-maximized="1"
|
|
43
|
-
inkscape:current-layer="layer1" />
|
|
44
|
-
<defs
|
|
45
|
-
id="defs7235">
|
|
46
|
-
<linearGradient
|
|
47
|
-
inkscape:collect="always"
|
|
48
|
-
id="linearGradient1616">
|
|
49
|
-
<stop
|
|
50
|
-
style="stop-color:#56674d;stop-opacity:1;"
|
|
51
|
-
offset="0"
|
|
52
|
-
id="stop1612" />
|
|
53
|
-
<stop
|
|
54
|
-
style="stop-color:#ffffff;stop-opacity:0;"
|
|
55
|
-
offset="1"
|
|
56
|
-
id="stop1614" />
|
|
57
|
-
</linearGradient>
|
|
58
|
-
<linearGradient
|
|
59
|
-
inkscape:collect="always"
|
|
60
|
-
xlink:href="#linearGradient15690"
|
|
61
|
-
id="linearGradient18609"
|
|
62
|
-
gradientUnits="userSpaceOnUse"
|
|
63
|
-
gradientTransform="translate(-166.15654,32.013661)"
|
|
64
|
-
x1="307.17484"
|
|
65
|
-
y1="52.350281"
|
|
66
|
-
x2="326.05994"
|
|
67
|
-
y2="54.673866" />
|
|
68
|
-
<linearGradient
|
|
69
|
-
inkscape:collect="always"
|
|
70
|
-
id="linearGradient15690">
|
|
71
|
-
<stop
|
|
72
|
-
style="stop-color:#56674d;stop-opacity:1;"
|
|
73
|
-
offset="0"
|
|
74
|
-
id="stop15686" />
|
|
75
|
-
<stop
|
|
76
|
-
style="stop-color:#496e7c;stop-opacity:0;"
|
|
77
|
-
offset="1"
|
|
78
|
-
id="stop15688" />
|
|
79
|
-
</linearGradient>
|
|
80
|
-
<linearGradient
|
|
81
|
-
inkscape:collect="always"
|
|
82
|
-
xlink:href="#linearGradient15766"
|
|
83
|
-
id="linearGradient16111-2"
|
|
84
|
-
gradientUnits="userSpaceOnUse"
|
|
85
|
-
x1="94.716965"
|
|
86
|
-
y1="77.459938"
|
|
87
|
-
x2="120.0867"
|
|
88
|
-
y2="65.915489" />
|
|
89
|
-
<linearGradient
|
|
90
|
-
inkscape:collect="always"
|
|
91
|
-
id="linearGradient15766">
|
|
92
|
-
<stop
|
|
93
|
-
style="stop-color:#56674d;stop-opacity:1;"
|
|
94
|
-
offset="0"
|
|
95
|
-
id="stop15762" />
|
|
96
|
-
<stop
|
|
97
|
-
style="stop-color:#496e7c;stop-opacity:0;"
|
|
98
|
-
offset="1"
|
|
99
|
-
id="stop15764" />
|
|
100
|
-
</linearGradient>
|
|
101
|
-
<linearGradient
|
|
102
|
-
inkscape:collect="always"
|
|
103
|
-
xlink:href="#linearGradient15924"
|
|
104
|
-
id="linearGradient18611"
|
|
105
|
-
gradientUnits="userSpaceOnUse"
|
|
106
|
-
gradientTransform="translate(-166.15654,32.013661)"
|
|
107
|
-
x1="252.87965"
|
|
108
|
-
y1="104.78405"
|
|
109
|
-
x2="305.49805"
|
|
110
|
-
y2="61.56583" />
|
|
111
|
-
<linearGradient
|
|
112
|
-
inkscape:collect="always"
|
|
113
|
-
id="linearGradient15924">
|
|
114
|
-
<stop
|
|
115
|
-
style="stop-color:#56674d;stop-opacity:1;"
|
|
116
|
-
offset="0"
|
|
117
|
-
id="stop15920" />
|
|
118
|
-
<stop
|
|
119
|
-
style="stop-color:#ffffff;stop-opacity:0;"
|
|
120
|
-
offset="1"
|
|
121
|
-
id="stop15922" />
|
|
122
|
-
</linearGradient>
|
|
123
|
-
<linearGradient
|
|
124
|
-
inkscape:collect="always"
|
|
125
|
-
xlink:href="#linearGradient1616"
|
|
126
|
-
id="linearGradient18613"
|
|
127
|
-
gradientUnits="userSpaceOnUse"
|
|
128
|
-
gradientTransform="translate(-166.15654,32.013661)"
|
|
129
|
-
x1="262.83365"
|
|
130
|
-
y1="98.616089"
|
|
131
|
-
x2="303.40704"
|
|
132
|
-
y2="56.86591" />
|
|
133
|
-
</defs>
|
|
134
|
-
<g
|
|
135
|
-
inkscape:label="Layer 1"
|
|
136
|
-
inkscape:groupmode="layer"
|
|
137
|
-
id="layer1"
|
|
138
|
-
transform="translate(-81.132986,-92.575601)">
|
|
139
|
-
<g
|
|
140
|
-
id="g489"
|
|
141
|
-
transform="matrix(1.5365255,0,0,1.474116,-14.471343,-5.8524295)">
|
|
142
|
-
<path
|
|
143
|
-
id="path11327-0-0-0"
|
|
144
|
-
style="fill:url(#linearGradient18609);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.4;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:normal"
|
|
145
|
-
d="m 130.56075,85.04143 c 0.52476,0.26239 -18.03983,28.95537 -21.66379,32.11329 -3.42113,2.98116 -7.7736,3.69559 -11.21431,3.82302 -3.4407,0.12743 -10.95953,-1.27434 -10.95953,-1.27434 l 9.53171,15.82074 c 10.00038,14.90295 18.17614,-1.81278 29.33516,-18.06246 3.96568,-5.77479 7.78809,-12.47359 12.92015,-21.46123 4.04139,-7.0776 -7.96539,-10.97224 -7.94939,-10.95902 z" />
|
|
146
|
-
<path
|
|
147
|
-
style="fill:url(#linearGradient16111-2);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.4;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:normal"
|
|
148
|
-
d="m 95.83013,56.198256 16.05664,29.946913 c 0,0 -10.06725,0.637171 -12.870796,-1.019467 L 87.652946,64.863746 c 0,0 -2.527248,-8.028321 8.177184,-8.66549 z"
|
|
149
|
-
id="path11425-3-4-8"
|
|
150
|
-
sodipodi:nodetypes="ccccc"
|
|
151
|
-
class="UnoptimicedTransforms"
|
|
152
|
-
transform="translate(-14.07671,30.372343)" />
|
|
153
|
-
<path
|
|
154
|
-
id="path11327-0-5-6-6-4-3"
|
|
155
|
-
style="fill:url(#linearGradient18611);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.4;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:normal"
|
|
156
|
-
d="m 130.56075,85.04143 c -1.47647,3.17228 -18.24916,29.13777 -21.66379,32.11329 -3.42112,2.98116 -7.7736,3.69559 -11.2143,3.82302 -3.4407,0.12743 -10.95954,-1.27434 -10.95954,-1.27434 l 4.7656,7.91063 h 5.2e-4 c 0.002,0.001 10.85017,15.99897 19.37348,5.76286 2.99574,-3.59774 5.15135,-6.65533 6.98187,-9.54746 2.95629,-4.67075 5.06469,-8.90995 8.4947,-14.29586 14.90527,-23.40477 3.86084,-23.27687 4.22146,-24.49214 z"
|
|
157
|
-
sodipodi:nodetypes="csscccsssc" />
|
|
158
|
-
<path
|
|
159
|
-
id="path11327-0-5-6-6-7-5-9"
|
|
160
|
-
style="fill:url(#linearGradient18613);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.4;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:normal"
|
|
161
|
-
d="m 130.56075,85.04143 c -1.47647,3.17228 -18.24916,29.13777 -21.66379,32.11329 -3.42112,2.98116 -7.7736,3.69559 -11.2143,3.82302 -3.4407,0.12743 -10.95954,-1.27434 -10.95954,-1.27434 l 4.7656,7.91063 h 5.2e-4 c 0.002,0.001 12.41225,10.17869 19.50733,-1.0945 10.41305,-16.54503 3.05221,-4.8499 9.84606,-15.81454 14.04378,-22.66534 9.3575,-24.44829 9.71812,-25.66356 z"
|
|
162
|
-
sodipodi:nodetypes="csscccssc" />
|
|
163
|
-
</g>
|
|
164
|
-
</g>
|
|
9
|
+
this.logo = `<svg
|
|
10
|
+
viewBox="0 0 135.46667 135.46667"
|
|
11
|
+
version="1.1"
|
|
12
|
+
id="svg7238"
|
|
13
|
+
sodipodi:docname="viral2-green.svg"
|
|
14
|
+
inkscape:export-filename="viral2-512.png"
|
|
15
|
+
inkscape:export-xdpi="96"
|
|
16
|
+
inkscape:export-ydpi="96"
|
|
17
|
+
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
|
18
|
+
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
19
|
+
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
20
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
21
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
22
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
|
23
|
+
<sodipodi:namedview
|
|
24
|
+
id="namedview7240"
|
|
25
|
+
pagecolor="#ffffff"
|
|
26
|
+
bordercolor="#000000"
|
|
27
|
+
borderopacity="0.25"
|
|
28
|
+
inkscape:showpageshadow="2"
|
|
29
|
+
inkscape:pageopacity="0.0"
|
|
30
|
+
inkscape:pagecheckerboard="0"
|
|
31
|
+
inkscape:deskcolor="#d1d1d1"
|
|
32
|
+
inkscape:document-units="px"
|
|
33
|
+
showgrid="false"
|
|
34
|
+
showborder="false"
|
|
35
|
+
inkscape:zoom="0.99327643"
|
|
36
|
+
inkscape:cx="-5.53723"
|
|
37
|
+
inkscape:cy="208.4012"
|
|
38
|
+
inkscape:window-width="1920"
|
|
39
|
+
inkscape:window-height="1025"
|
|
40
|
+
inkscape:window-x="-8"
|
|
41
|
+
inkscape:window-y="-8"
|
|
42
|
+
inkscape:window-maximized="1"
|
|
43
|
+
inkscape:current-layer="layer1" />
|
|
44
|
+
<defs
|
|
45
|
+
id="defs7235">
|
|
46
|
+
<linearGradient
|
|
47
|
+
inkscape:collect="always"
|
|
48
|
+
id="linearGradient1616">
|
|
49
|
+
<stop
|
|
50
|
+
style="stop-color:#56674d;stop-opacity:1;"
|
|
51
|
+
offset="0"
|
|
52
|
+
id="stop1612" />
|
|
53
|
+
<stop
|
|
54
|
+
style="stop-color:#ffffff;stop-opacity:0;"
|
|
55
|
+
offset="1"
|
|
56
|
+
id="stop1614" />
|
|
57
|
+
</linearGradient>
|
|
58
|
+
<linearGradient
|
|
59
|
+
inkscape:collect="always"
|
|
60
|
+
xlink:href="#linearGradient15690"
|
|
61
|
+
id="linearGradient18609"
|
|
62
|
+
gradientUnits="userSpaceOnUse"
|
|
63
|
+
gradientTransform="translate(-166.15654,32.013661)"
|
|
64
|
+
x1="307.17484"
|
|
65
|
+
y1="52.350281"
|
|
66
|
+
x2="326.05994"
|
|
67
|
+
y2="54.673866" />
|
|
68
|
+
<linearGradient
|
|
69
|
+
inkscape:collect="always"
|
|
70
|
+
id="linearGradient15690">
|
|
71
|
+
<stop
|
|
72
|
+
style="stop-color:#56674d;stop-opacity:1;"
|
|
73
|
+
offset="0"
|
|
74
|
+
id="stop15686" />
|
|
75
|
+
<stop
|
|
76
|
+
style="stop-color:#496e7c;stop-opacity:0;"
|
|
77
|
+
offset="1"
|
|
78
|
+
id="stop15688" />
|
|
79
|
+
</linearGradient>
|
|
80
|
+
<linearGradient
|
|
81
|
+
inkscape:collect="always"
|
|
82
|
+
xlink:href="#linearGradient15766"
|
|
83
|
+
id="linearGradient16111-2"
|
|
84
|
+
gradientUnits="userSpaceOnUse"
|
|
85
|
+
x1="94.716965"
|
|
86
|
+
y1="77.459938"
|
|
87
|
+
x2="120.0867"
|
|
88
|
+
y2="65.915489" />
|
|
89
|
+
<linearGradient
|
|
90
|
+
inkscape:collect="always"
|
|
91
|
+
id="linearGradient15766">
|
|
92
|
+
<stop
|
|
93
|
+
style="stop-color:#56674d;stop-opacity:1;"
|
|
94
|
+
offset="0"
|
|
95
|
+
id="stop15762" />
|
|
96
|
+
<stop
|
|
97
|
+
style="stop-color:#496e7c;stop-opacity:0;"
|
|
98
|
+
offset="1"
|
|
99
|
+
id="stop15764" />
|
|
100
|
+
</linearGradient>
|
|
101
|
+
<linearGradient
|
|
102
|
+
inkscape:collect="always"
|
|
103
|
+
xlink:href="#linearGradient15924"
|
|
104
|
+
id="linearGradient18611"
|
|
105
|
+
gradientUnits="userSpaceOnUse"
|
|
106
|
+
gradientTransform="translate(-166.15654,32.013661)"
|
|
107
|
+
x1="252.87965"
|
|
108
|
+
y1="104.78405"
|
|
109
|
+
x2="305.49805"
|
|
110
|
+
y2="61.56583" />
|
|
111
|
+
<linearGradient
|
|
112
|
+
inkscape:collect="always"
|
|
113
|
+
id="linearGradient15924">
|
|
114
|
+
<stop
|
|
115
|
+
style="stop-color:#56674d;stop-opacity:1;"
|
|
116
|
+
offset="0"
|
|
117
|
+
id="stop15920" />
|
|
118
|
+
<stop
|
|
119
|
+
style="stop-color:#ffffff;stop-opacity:0;"
|
|
120
|
+
offset="1"
|
|
121
|
+
id="stop15922" />
|
|
122
|
+
</linearGradient>
|
|
123
|
+
<linearGradient
|
|
124
|
+
inkscape:collect="always"
|
|
125
|
+
xlink:href="#linearGradient1616"
|
|
126
|
+
id="linearGradient18613"
|
|
127
|
+
gradientUnits="userSpaceOnUse"
|
|
128
|
+
gradientTransform="translate(-166.15654,32.013661)"
|
|
129
|
+
x1="262.83365"
|
|
130
|
+
y1="98.616089"
|
|
131
|
+
x2="303.40704"
|
|
132
|
+
y2="56.86591" />
|
|
133
|
+
</defs>
|
|
134
|
+
<g
|
|
135
|
+
inkscape:label="Layer 1"
|
|
136
|
+
inkscape:groupmode="layer"
|
|
137
|
+
id="layer1"
|
|
138
|
+
transform="translate(-81.132986,-92.575601)">
|
|
139
|
+
<g
|
|
140
|
+
id="g489"
|
|
141
|
+
transform="matrix(1.5365255,0,0,1.474116,-14.471343,-5.8524295)">
|
|
142
|
+
<path
|
|
143
|
+
id="path11327-0-0-0"
|
|
144
|
+
style="fill:url(#linearGradient18609);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.4;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:normal"
|
|
145
|
+
d="m 130.56075,85.04143 c 0.52476,0.26239 -18.03983,28.95537 -21.66379,32.11329 -3.42113,2.98116 -7.7736,3.69559 -11.21431,3.82302 -3.4407,0.12743 -10.95953,-1.27434 -10.95953,-1.27434 l 9.53171,15.82074 c 10.00038,14.90295 18.17614,-1.81278 29.33516,-18.06246 3.96568,-5.77479 7.78809,-12.47359 12.92015,-21.46123 4.04139,-7.0776 -7.96539,-10.97224 -7.94939,-10.95902 z" />
|
|
146
|
+
<path
|
|
147
|
+
style="fill:url(#linearGradient16111-2);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.4;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:normal"
|
|
148
|
+
d="m 95.83013,56.198256 16.05664,29.946913 c 0,0 -10.06725,0.637171 -12.870796,-1.019467 L 87.652946,64.863746 c 0,0 -2.527248,-8.028321 8.177184,-8.66549 z"
|
|
149
|
+
id="path11425-3-4-8"
|
|
150
|
+
sodipodi:nodetypes="ccccc"
|
|
151
|
+
class="UnoptimicedTransforms"
|
|
152
|
+
transform="translate(-14.07671,30.372343)" />
|
|
153
|
+
<path
|
|
154
|
+
id="path11327-0-5-6-6-4-3"
|
|
155
|
+
style="fill:url(#linearGradient18611);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.4;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:normal"
|
|
156
|
+
d="m 130.56075,85.04143 c -1.47647,3.17228 -18.24916,29.13777 -21.66379,32.11329 -3.42112,2.98116 -7.7736,3.69559 -11.2143,3.82302 -3.4407,0.12743 -10.95954,-1.27434 -10.95954,-1.27434 l 4.7656,7.91063 h 5.2e-4 c 0.002,0.001 10.85017,15.99897 19.37348,5.76286 2.99574,-3.59774 5.15135,-6.65533 6.98187,-9.54746 2.95629,-4.67075 5.06469,-8.90995 8.4947,-14.29586 14.90527,-23.40477 3.86084,-23.27687 4.22146,-24.49214 z"
|
|
157
|
+
sodipodi:nodetypes="csscccsssc" />
|
|
158
|
+
<path
|
|
159
|
+
id="path11327-0-5-6-6-7-5-9"
|
|
160
|
+
style="fill:url(#linearGradient18613);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.4;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:normal"
|
|
161
|
+
d="m 130.56075,85.04143 c -1.47647,3.17228 -18.24916,29.13777 -21.66379,32.11329 -3.42112,2.98116 -7.7736,3.69559 -11.2143,3.82302 -3.4407,0.12743 -10.95954,-1.27434 -10.95954,-1.27434 l 4.7656,7.91063 h 5.2e-4 c 0.002,0.001 12.41225,10.17869 19.50733,-1.0945 10.41305,-16.54503 3.05221,-4.8499 9.84606,-15.81454 14.04378,-22.66534 9.3575,-24.44829 9.71812,-25.66356 z"
|
|
162
|
+
sodipodi:nodetypes="csscccssc" />
|
|
163
|
+
</g>
|
|
164
|
+
</g>
|
|
165
165
|
</svg>`;
|
|
166
166
|
this.injectSpinner();
|
|
167
167
|
}
|
|
168
168
|
injectSpinner() {
|
|
169
169
|
// Create the @keyframes animation
|
|
170
|
-
const keyframes = `@keyframes spin {
|
|
171
|
-
0% { transform: rotate(0deg); }
|
|
172
|
-
100% { transform: rotate(360deg); }
|
|
170
|
+
const keyframes = `@keyframes spin {
|
|
171
|
+
0% { transform: rotate(0deg); }
|
|
172
|
+
100% { transform: rotate(360deg); }
|
|
173
173
|
}`;
|
|
174
174
|
// Create a style element and append the keyframes animation
|
|
175
175
|
const style = document.createElement('style');
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ViralStats = void 0;
|
|
4
|
+
class ViralStats {
|
|
5
|
+
constructor(viralViewerApi) {
|
|
6
|
+
this.viralViewerApi = viralViewerApi;
|
|
7
|
+
this.stats = null;
|
|
8
|
+
if (this.viralViewerApi.targetElement) {
|
|
9
|
+
this.stats = new Stats();
|
|
10
|
+
this.stats.showPanel(0);
|
|
11
|
+
this.viralViewerApi.targetElement.appendChild(this.stats.dom);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.ViralStats = ViralStats;
|
|
16
|
+
//# sourceMappingURL=viral-stats.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viral-stats.js","sourceRoot":"","sources":["../../../src/components/stats/viral-stats.ts"],"names":[],"mappings":";;;AAEA,MAAa,UAAU;IAEnB,YAAmB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;QAD1C,UAAK,GAAiB,IAAI,CAAC;QAE9B,IAAI,IAAI,CAAC,cAAc,CAAC,aAAa,EAAE;YACnC,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC;YACzB,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACxB,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SAEjE;IACL,CAAC;CACJ;AAVD,gCAUC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ViralViewerApi } from "../../viral-viewer-api";
|
|
2
|
-
import { RenderMaterial, ViralViewerRevitNoneStructuralGeometry, ViralViewerRevitStructuralGeometry } from "../../types";
|
|
2
|
+
import { Dictionary, RenderMaterial, ViralViewerRevitNoneStructuralGeometry, ViralViewerRevitStructuralGeometry } from "../../types";
|
|
3
3
|
import { Mesh, MeshPhongMaterial } from "three";
|
|
4
|
-
import { Dictionary } from "../../models/dictionary.model";
|
|
5
4
|
import { WorkerThreadPool } from "./base/worker-pool";
|
|
6
5
|
export declare class ViralViewerWorker2 {
|
|
7
6
|
viralViewerApi: ViralViewerApi;
|
|
@@ -15,6 +14,4 @@ export declare class ViralViewerWorker2 {
|
|
|
15
14
|
initial(materials: RenderMaterial[]): void;
|
|
16
15
|
loadStructuralGeometry(model: ViralViewerRevitStructuralGeometry, callbackOnSuccess?: () => void): void;
|
|
17
16
|
loadNoneStructuralGeometry(model: ViralViewerRevitNoneStructuralGeometry, callbackOnSuccess?: () => void): void;
|
|
18
|
-
rgbToHex(r: number, g: number, b: number): string;
|
|
19
|
-
componentToHex(c: number): string;
|
|
20
17
|
}
|