@cognite/reveal 4.0.0-dev.20230113 → 4.0.0-dev.20230117

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.
@@ -207,6 +207,18 @@ export declare class CogniteCadModel implements CdfModelNodeCollectionDataProvid
207
207
  * @param out Preallocated `THREE.Matrix4` (optional)
208
208
  */
209
209
  getCdfToDefaultModelTransformation(out?: THREE.Matrix4): THREE.Matrix4;
210
+ /**
211
+ * Map point from CDF to model space, taking the model's custom transformation into account
212
+ * @param point Point to compute transformation from
213
+ * @param out Optional pre-allocated point
214
+ */
215
+ mapPointFromCdfToModelCoordinates(point: THREE.Vector3, out?: THREE.Vector3): THREE.Vector3;
216
+ /**
217
+ * Map bounding box from CDF to model space, taking the model's custom transformation into account
218
+ * @param box Box to compute transformation from
219
+ * @param out Optional pre-allocated box
220
+ */
221
+ mapBoxFromCdfToModelCoordinates(box: THREE.Box3, out?: THREE.Box3): THREE.Box3;
210
222
  /**
211
223
  * Fetches a bounding box from the CDF by the nodeId.
212
224
  * @param nodeId
@@ -64,6 +64,18 @@ export declare class CognitePointCloudModel {
64
64
  * @param out Preallocated `THREE.Matrix4` (optional)
65
65
  */
66
66
  getCdfToDefaultModelTransformation(out?: THREE.Matrix4): THREE.Matrix4;
67
+ /**
68
+ * Map point from CDF to model space, taking the model's custom transformation into account
69
+ * @param point Point to compute transformation from
70
+ * @param out Optional pre-allocated point
71
+ */
72
+ mapPointFromCdfToModelCoordinates(point: THREE.Vector3, out?: THREE.Vector3): THREE.Vector3;
73
+ /**
74
+ * Map bounding box from CDF to model space, taking the model's custom transformation into account
75
+ * @param box Box to compute transformation from
76
+ * @param out Optional pre-allocated box
77
+ */
78
+ mapBoxFromCdfToModelCoordinates(box: THREE.Box3, out?: THREE.Box3): THREE.Box3;
67
79
  /**
68
80
  * Sets a visible filter on points of a given class.
69
81
  * @param pointClass ASPRS classification class code. Either one of the well known
@@ -7,7 +7,8 @@ export declare class MeasurementLine {
7
7
  private readonly _meshes;
8
8
  private readonly _fixedWidthLineMaterial;
9
9
  private readonly _adaptiveWidthLineMaterial;
10
- private readonly _position;
10
+ private readonly _startPos;
11
+ private readonly _endpoint;
11
12
  constructor(lineWidth: number, lineColor: THREE.Color, startPoint: THREE.Vector3);
12
13
  dispose(): void;
13
14
  get meshes(): THREE.Group;
@@ -38,7 +39,6 @@ export declare class MeasurementLine {
38
39
  updateLineColor(color: THREE.Color): void;
39
40
  /**
40
41
  * Generate line geometry and create the mesh.
41
- * @param point Point from where the line will be generated.
42
42
  */
43
43
  private startLine;
44
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cognite/reveal",
3
- "version": "4.0.0-dev.20230113",
3
+ "version": "4.0.0-dev.20230117",
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": {
@@ -87,8 +87,8 @@
87
87
  "three-stdlib": "2.21.1"
88
88
  },
89
89
  "devDependencies": {
90
- "@azure/msal-browser": "2.32.1",
91
- "@cognite/sdk": "7.14.1",
90
+ "@azure/msal-browser": "2.32.2",
91
+ "@cognite/sdk": "7.15.0",
92
92
  "@microsoft/api-extractor": "^7.33.6",
93
93
  "@types/dat.gui": "0.7.7",
94
94
  "@types/expect-puppeteer": "5.0.2",
@@ -106,8 +106,8 @@
106
106
  "@types/skmeans": "0.11.3",
107
107
  "@types/stats": "0.16.30",
108
108
  "@types/tween.js": "18.5.1",
109
- "@typescript-eslint/eslint-plugin": "5.48.0",
110
- "@typescript-eslint/parser": "5.48.0",
109
+ "@typescript-eslint/eslint-plugin": "5.48.1",
110
+ "@typescript-eslint/parser": "5.48.1",
111
111
  "concurrently": "7.6.0",
112
112
  "cross-env": "7.0.3",
113
113
  "cross-var": "1.1.0",
@@ -127,15 +127,15 @@
127
127
  "jest": "29.3.1",
128
128
  "jest-canvas-mock": "2.4.0",
129
129
  "jest-environment-jsdom": "29.3.1",
130
- "jest-extended": "3.2.2",
130
+ "jest-extended": "3.2.3",
131
131
  "jest-image-snapshot": "6.1.0",
132
132
  "jest-puppeteer": "6.2.0",
133
133
  "jsdom": "20.0.3",
134
134
  "moq.ts": "10.0.2",
135
- "nock": "13.2.9",
135
+ "nock": "13.3.0",
136
136
  "prettier": "2.8.2",
137
137
  "process": "0.11.10",
138
- "puppeteer": "19.4.1",
138
+ "puppeteer": "19.5.2",
139
139
  "random-seed": "0.3.0",
140
140
  "raw-loader": "4.0.2",
141
141
  "remove-files-webpack-plugin": "1.5.0",
@@ -143,7 +143,7 @@
143
143
  "shx": "0.3.4",
144
144
  "stats.js": "0.17.0",
145
145
  "three": "0.148.0",
146
- "ts-jest": "29.0.3",
146
+ "ts-jest": "29.0.4",
147
147
  "ts-loader": "9.4.2",
148
148
  "tsc-alias": "1.8.2",
149
149
  "typescript": "4.9.4",
@@ -156,7 +156,7 @@
156
156
  "workerize-loader": "2.0.2"
157
157
  },
158
158
  "peerDependencies": {
159
- "@cognite/sdk": "7.14.1",
159
+ "@cognite/sdk": "7.15.0",
160
160
  "three": "0.148.0"
161
161
  },
162
162
  "glslify": {