viral-viewer-2 6.6.4 → 6.6.5
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.
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { BufferGeometry, Material, Mesh } from "three";
|
|
1
|
+
import { BufferGeometry, LineBasicMaterial, Material, Mesh } from "three";
|
|
2
2
|
import { BufferElement } from "../..";
|
|
3
3
|
export declare class ViralMergedMesh extends Mesh {
|
|
4
4
|
constructor(geometry?: BufferGeometry, material?: Material);
|
|
5
5
|
addBufferElements(bufferElements: BufferElement[]): void;
|
|
6
|
+
addEdge(material: LineBasicMaterial): void;
|
|
6
7
|
private _isHidingElementIds;
|
|
7
8
|
hide(elementId: string): void;
|
|
8
9
|
reset(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Scene, Mesh, Object3D, Light, CameraHelper } from "three";
|
|
1
|
+
import { Scene, DirectionalLight, Mesh, Object3D, Light, CameraHelper } from "three";
|
|
2
2
|
import { ViralViewerApi } from "../../viral-viewer-api";
|
|
3
3
|
import { TransformControls } from "three/examples/jsm/controls/TransformControls";
|
|
4
4
|
import { ViralMergedModel } from "../custom-objects/viral-merged-model";
|
|
@@ -13,6 +13,7 @@ export declare class ViralScene {
|
|
|
13
13
|
hideables: Object3D[];
|
|
14
14
|
selectables: Object3D[];
|
|
15
15
|
edges: Object3D[];
|
|
16
|
+
sunLight: DirectionalLight | null;
|
|
16
17
|
lights: Light[];
|
|
17
18
|
transformControls: TransformControls | null;
|
|
18
19
|
lightHelpers: CameraHelper[];
|
|
@@ -27,9 +28,13 @@ export declare class ViralScene {
|
|
|
27
28
|
addMergedObject(object: Object3D): void;
|
|
28
29
|
getObjectByName(name: string): Object3D<import("three").Object3DEventMap> | undefined;
|
|
29
30
|
addLights(): void;
|
|
31
|
+
enableShadow(): void;
|
|
32
|
+
disableShadow(): void;
|
|
33
|
+
private adjustLightForMesh;
|
|
30
34
|
addPivotPoint(): void;
|
|
31
35
|
addTransformControls(): void;
|
|
32
36
|
addCube(): void;
|
|
37
|
+
addGround(): void;
|
|
33
38
|
addAxes(): void;
|
|
34
39
|
enableLightHelper(value: boolean): void;
|
|
35
40
|
}
|