bimatter-viewer-react 0.6.4 → 0.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.
- package/README.md +2 -0
- package/lib/Viewer.d.ts +1 -0
- package/lib/index.js +1123 -1067
- package/lib/utils/ClippingUtils/ClippingCaps.d.ts +4 -0
- package/lib/utils/ClippingUtils/ClippingUtils.d.ts +1 -0
- package/lib/utils/ClippingUtils/PlaneHelper.d.ts +1 -1
- package/lib/utils/DimentionsUtils/DimentionsUtils.d.ts +1 -1
- package/package.json +1 -1
|
@@ -19,6 +19,9 @@ export declare class ClippingCaps {
|
|
|
19
19
|
private readonly tempLine;
|
|
20
20
|
private readonly tempVector;
|
|
21
21
|
private readonly tempVector1;
|
|
22
|
+
private readonly tempAxisX;
|
|
23
|
+
private readonly tempAxisY;
|
|
24
|
+
private readonly tempAxisZ;
|
|
22
25
|
private readonly worldPoint;
|
|
23
26
|
private capClippingPlanesKey;
|
|
24
27
|
private capShader;
|
|
@@ -51,6 +54,7 @@ export declare class ClippingCaps {
|
|
|
51
54
|
private triangulateContours;
|
|
52
55
|
private pushContourVertex;
|
|
53
56
|
private getHatchSpacing;
|
|
57
|
+
private getModelHatchReferenceDirection;
|
|
54
58
|
private getModelWorldBox;
|
|
55
59
|
}
|
|
56
60
|
export {};
|
|
@@ -65,6 +65,7 @@ export declare class ClippingUtils {
|
|
|
65
65
|
getCameraUtils(): CameraUtilsApi;
|
|
66
66
|
getDomElement(): HTMLCanvasElement;
|
|
67
67
|
getRaycaster(): Raycaster;
|
|
68
|
+
getMaxTextureAnisotropy(): number;
|
|
68
69
|
getControlRef(): ViewerControlsRef;
|
|
69
70
|
getMeshes(): Mesh<import("three").BufferGeometry<import("three").NormalBufferAttributes, import("three").BufferGeometryEventMap>, Material<import("three").MaterialEventMap> | Material<import("three").MaterialEventMap>[], import("three").Object3DEventMap>[];
|
|
70
71
|
getSelectableObjects(): Mesh<import("three").BufferGeometry<import("three").NormalBufferAttributes, import("three").BufferGeometryEventMap>, Material<import("three").MaterialEventMap> | Material<import("three").MaterialEventMap>[], import("three").Object3DEventMap>[];
|
|
@@ -34,7 +34,7 @@ export declare class PlaneHelper extends Object3D {
|
|
|
34
34
|
private stopHelperPriorityEvent;
|
|
35
35
|
private getPointerIntersection;
|
|
36
36
|
private getNearestHelperIntersection;
|
|
37
|
-
private
|
|
37
|
+
private hasModelIntersection;
|
|
38
38
|
private isPointerHitNearEdge;
|
|
39
39
|
private getEdgeInteractionWidth;
|
|
40
40
|
private getDragDistanceEpsilon;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Color, ConeGeometry, Object3D, SphereGeometry, type Camera, type Scene } from "three";
|
|
2
|
-
import type
|
|
2
|
+
import { type CameraUtilsApi } from "../../Camera/useCameraUtils";
|
|
3
3
|
import type { ViewerStoreApi } from "../../store/ViewerStore";
|
|
4
4
|
import type { ViewerControlsRef, ViewerModelRef } from "../../types";
|
|
5
5
|
import { DimensionLine, type DimensionUnit } from "./DimentionLine";
|