@cognite/reveal 4.1.1-dev.20230201 → 4.1.1-dev.20230202
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/index.js +33 -33
- package/dist/index.js.map +1 -1
- package/dist/packages/api/src/public/migration/Cognite3DViewer.d.ts +1 -1
- package/dist/packages/tools/src/Measurement/MeasurementLine.d.ts +6 -0
- package/dist/packages/tools/src/Measurement/MeasurementManager.d.ts +5 -0
- package/dist/packages/tools/src/Measurement/MeasurementTool.d.ts +2 -0
- package/package.json +2 -2
|
@@ -491,7 +491,7 @@ export declare class Cognite3DViewer {
|
|
|
491
491
|
* `html2canvas` is used to draw UI and this has some limitations on what CSS properties it is able to render. See {@link https://html2canvas.hertzen.com/documentation the html2canvas documentation} for details.
|
|
492
492
|
* @param width Width of the final image. Default is current canvas size.
|
|
493
493
|
* @param height Height of the final image. Default is current canvas size.
|
|
494
|
-
* @param includeUI If false the screenshot will include only the rendered 3D.
|
|
494
|
+
* @param includeUI If false the screenshot will include only the rendered 3D. Default is true.
|
|
495
495
|
* @returns A {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs Data URL} of the image ('image/png').
|
|
496
496
|
* @example
|
|
497
497
|
* ```js
|
|
@@ -17,6 +17,11 @@ export declare class MeasurementLine {
|
|
|
17
17
|
* @param endPoint Second point of the line to end the measurement.
|
|
18
18
|
*/
|
|
19
19
|
updateLine(endPoint: THREE.Vector3): void;
|
|
20
|
+
/**
|
|
21
|
+
* Updates the measuring line clipping planes
|
|
22
|
+
* @param clippingPlanes current active global clipping planes.
|
|
23
|
+
*/
|
|
24
|
+
updateLineClippingPlanes(clippingPlanes: THREE.Plane[]): void;
|
|
20
25
|
/**
|
|
21
26
|
* Get the distance between the measuring line start point & end point.
|
|
22
27
|
* @returns Return distance between start & end point of the line.
|
|
@@ -41,4 +46,5 @@ export declare class MeasurementLine {
|
|
|
41
46
|
* Generate line geometry and create the mesh.
|
|
42
47
|
*/
|
|
43
48
|
private startLine;
|
|
49
|
+
private clippingPlanesContainPoint;
|
|
44
50
|
}
|
|
@@ -40,6 +40,11 @@ export declare class MeasurementManager {
|
|
|
40
40
|
*/
|
|
41
41
|
removeMeasurement(): void;
|
|
42
42
|
getMeasurement(): Readonly<Measurement>;
|
|
43
|
+
/**
|
|
44
|
+
* Updates the measuring line clipping planes
|
|
45
|
+
* @param clippingPlanes current active global clipping planes.
|
|
46
|
+
*/
|
|
47
|
+
updateLineClippingPlanes(clippingPlanes: THREE.Plane[]): void;
|
|
43
48
|
/**
|
|
44
49
|
* Update current line width.
|
|
45
50
|
* @param lineWidth Width of the measuring line mesh.
|
|
@@ -52,6 +52,7 @@ export declare class MeasurementTool extends Cognite3DViewerToolBase {
|
|
|
52
52
|
private readonly _handlePointerClick;
|
|
53
53
|
private readonly _handlePointerMove;
|
|
54
54
|
private readonly _handleMeasurementCancel;
|
|
55
|
+
private readonly _handleClippingPlanes;
|
|
55
56
|
private readonly _events;
|
|
56
57
|
private readonly _overlayOptions;
|
|
57
58
|
private static readonly defaultLineOptions;
|
|
@@ -187,4 +188,5 @@ export declare class MeasurementTool extends Cognite3DViewerToolBase {
|
|
|
187
188
|
* Cancel the active measurement.
|
|
188
189
|
*/
|
|
189
190
|
private cancelActiveMeasurement;
|
|
191
|
+
private onClipping;
|
|
190
192
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cognite/reveal",
|
|
3
|
-
"version": "4.1.1-dev.
|
|
3
|
+
"version": "4.1.1-dev.20230202",
|
|
4
4
|
"description": "WebGL based 3D viewer for CAD and point clouds processed in Cognite Data Fusion.",
|
|
5
5
|
"homepage": "https://github.com/cognitedata/reveal/tree/master/viewer",
|
|
6
6
|
"repository": {
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"nock": "13.3.0",
|
|
133
133
|
"prettier": "2.8.2",
|
|
134
134
|
"process": "0.11.10",
|
|
135
|
-
"puppeteer": "19.6.
|
|
135
|
+
"puppeteer": "19.6.2",
|
|
136
136
|
"random-seed": "0.3.0",
|
|
137
137
|
"raw-loader": "4.0.2",
|
|
138
138
|
"remove-files-webpack-plugin": "1.5.0",
|