@vertexvis/viewer 0.13.2-canary.47 → 0.13.2-canary.48

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.
Files changed (59) hide show
  1. package/dist/cjs/{config-d4f37e96.js → config-a77b3bd2.js} +1 -1
  2. package/dist/cjs/{entities-308c6990.js → entities-83249107.js} +2 -2
  3. package/dist/cjs/index.cjs.js +4 -4
  4. package/dist/cjs/{mapper-7ee069ef.js → mapper-339d8e48.js} +1 -1
  5. package/dist/cjs/{scene-7f29039e.js → scene-a12ad121.js} +1 -1
  6. package/dist/cjs/{streamAttributes-07357da5.js → streamAttributes-061be87a.js} +1 -1
  7. package/dist/cjs/vertex-scene-tree.cjs.entry.js +2 -2
  8. package/dist/cjs/vertex-viewer-dom-element_2.cjs.entry.js +1 -1
  9. package/dist/cjs/vertex-viewer-measurement-details.cjs.entry.js +1 -1
  10. package/dist/cjs/vertex-viewer-measurement-distance.cjs.entry.js +2 -2
  11. package/dist/cjs/vertex-viewer-measurement-line_2.cjs.entry.js +2 -2
  12. package/dist/cjs/vertex-viewer-measurement-precise.cjs.entry.js +4 -4
  13. package/dist/cjs/vertex-viewer-measurement-tool.cjs.entry.js +1 -1
  14. package/dist/cjs/vertex-viewer-measurements.cjs.entry.js +2 -2
  15. package/dist/cjs/vertex-viewer-pin-group.cjs.entry.js +2 -2
  16. package/dist/cjs/vertex-viewer-transform-widget.cjs.entry.js +1 -1
  17. package/dist/cjs/vertex-viewer-view-cube.cjs.entry.js +1 -1
  18. package/dist/cjs/vertex-viewer.cjs.entry.js +3 -3
  19. package/dist/collection/lib/types/depthBuffer.js +2 -2
  20. package/dist/custom-elements/index.js +1 -1
  21. package/dist/esm/{config-9bfe8c21.js → config-453f918d.js} +1 -1
  22. package/dist/esm/{entities-0d912fa6.js → entities-00e4d357.js} +2 -2
  23. package/dist/esm/index.js +4 -4
  24. package/dist/esm/index.mjs +4 -4
  25. package/dist/esm/{mapper-5b18505e.js → mapper-995300e7.js} +1 -1
  26. package/dist/esm/{scene-9b3e8284.js → scene-261ba659.js} +1 -1
  27. package/dist/esm/{streamAttributes-dfe159d1.js → streamAttributes-c60bf910.js} +1 -1
  28. package/dist/esm/vertex-scene-tree.entry.js +2 -2
  29. package/dist/esm/vertex-viewer-dom-element_2.entry.js +1 -1
  30. package/dist/esm/vertex-viewer-measurement-details.entry.js +1 -1
  31. package/dist/esm/vertex-viewer-measurement-distance.entry.js +2 -2
  32. package/dist/esm/vertex-viewer-measurement-line_2.entry.js +2 -2
  33. package/dist/esm/vertex-viewer-measurement-precise.entry.js +4 -4
  34. package/dist/esm/vertex-viewer-measurement-tool.entry.js +1 -1
  35. package/dist/esm/vertex-viewer-measurements.entry.js +2 -2
  36. package/dist/esm/vertex-viewer-pin-group.entry.js +2 -2
  37. package/dist/esm/vertex-viewer-transform-widget.entry.js +1 -1
  38. package/dist/esm/vertex-viewer-view-cube.entry.js +1 -1
  39. package/dist/esm/vertex-viewer.entry.js +3 -3
  40. package/dist/viewer/index.esm.js +1 -1
  41. package/dist/viewer/{p-3b4aa1cc.js → p-059963ff.js} +1 -1
  42. package/dist/viewer/{p-5bfcd20c.js → p-0d46c015.js} +1 -1
  43. package/dist/viewer/{p-cfc93df0.entry.js → p-16f3dbfc.entry.js} +1 -1
  44. package/dist/viewer/{p-b9996b31.entry.js → p-1822e3b2.entry.js} +1 -1
  45. package/dist/viewer/{p-a00d5537.entry.js → p-27c9adc6.entry.js} +1 -1
  46. package/dist/viewer/{p-b09a7169.entry.js → p-27dea3bb.entry.js} +1 -1
  47. package/dist/viewer/{p-831fe8e4.entry.js → p-2b7a22dc.entry.js} +1 -1
  48. package/dist/viewer/{p-d06cd07b.entry.js → p-4619ffde.entry.js} +1 -1
  49. package/dist/viewer/{p-72507726.js → p-638792af.js} +1 -1
  50. package/dist/viewer/{p-8fdf9440.entry.js → p-670050a1.entry.js} +1 -1
  51. package/dist/viewer/{p-86712a86.entry.js → p-7773faaf.entry.js} +1 -1
  52. package/dist/viewer/{p-8897b397.entry.js → p-8bdaed25.entry.js} +1 -1
  53. package/dist/viewer/{p-c01fd67b.js → p-992ca092.js} +1 -1
  54. package/dist/viewer/{p-ad4834a6.entry.js → p-a24160bd.entry.js} +2 -2
  55. package/dist/viewer/{p-5afa156e.entry.js → p-b83b5dd2.entry.js} +1 -1
  56. package/dist/viewer/{p-5cf3846b.entry.js → p-d299762f.entry.js} +1 -1
  57. package/dist/viewer/{p-c2f6cf04.js → p-d5211029.js} +1 -1
  58. package/dist/viewer/viewer.esm.js +1 -1
  59. package/package.json +7 -7
@@ -4,7 +4,7 @@
4
4
  'use strict';
5
5
 
6
6
  const browser_esm = require('./browser.esm-739c5a8a.js');
7
- require('./streamAttributes-07357da5.js');
7
+ require('./streamAttributes-061be87a.js');
8
8
  require('./entities-9eb7e608.js');
9
9
 
10
10
  const DEFAULT_ANIMATION_DURATION = 500;
@@ -3,9 +3,9 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- const mapper = require('./mapper-7ee069ef.js');
6
+ const mapper = require('./mapper-339d8e48.js');
7
7
  const grpcWebClient_umd = require('./grpc-web-client.umd-2af20c1b.js');
8
- const streamAttributes = require('./streamAttributes-07357da5.js');
8
+ const streamAttributes = require('./streamAttributes-061be87a.js');
9
9
  const browser_esm = require('./browser.esm-739c5a8a.js');
10
10
 
11
11
  function requestUnary(caller) {
@@ -5,19 +5,19 @@
5
5
 
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
- const scene = require('./scene-7f29039e.js');
8
+ const scene = require('./scene-a12ad121.js');
9
9
  const cursors = require('./cursors-6b087455.js');
10
- const entities$1 = require('./entities-308c6990.js');
10
+ const entities$1 = require('./entities-83249107.js');
11
11
  const model = require('./model-2dbabec1.js');
12
12
  const overlays = require('./overlays-bac05f94.js');
13
13
  const results = require('./results-6cab066c.js');
14
- const streamAttributes = require('./streamAttributes-07357da5.js');
14
+ const streamAttributes = require('./streamAttributes-061be87a.js');
15
15
  const entities = require('./entities-9eb7e608.js');
16
16
  const markup = require('./markup-d779dd54.js');
17
17
  const viewport = require('./viewport-aeb8a3f3.js');
18
18
  require('./browser.esm-739c5a8a.js');
19
19
  require('./bundle.esm-3581a1e0.js');
20
- require('./mapper-7ee069ef.js');
20
+ require('./mapper-339d8e48.js');
21
21
  require('./_commonjsHelpers-dcc4cf71.js');
22
22
  require('./grpc-web-client.umd-2af20c1b.js');
23
23
 
@@ -6,7 +6,7 @@
6
6
  const _commonjsHelpers = require('./_commonjsHelpers-dcc4cf71.js');
7
7
  const grpcWebClient_umd = require('./grpc-web-client.umd-2af20c1b.js');
8
8
  const browser_esm = require('./browser.esm-739c5a8a.js');
9
- const streamAttributes = require('./streamAttributes-07357da5.js');
9
+ const streamAttributes = require('./streamAttributes-061be87a.js');
10
10
 
11
11
  var uuid_pb = _commonjsHelpers.createCommonjsModule(function (module, exports) {
12
12
  /**
@@ -5,7 +5,7 @@
5
5
 
6
6
  const browser_esm = require('./browser.esm-739c5a8a.js');
7
7
  const bundle_esm = require('./bundle.esm-3581a1e0.js');
8
- const streamAttributes = require('./streamAttributes-07357da5.js');
8
+ const streamAttributes = require('./streamAttributes-061be87a.js');
9
9
  require('./entities-9eb7e608.js');
10
10
 
11
11
  const defaultColor = {
@@ -37573,7 +37573,7 @@ class DepthBuffer {
37573
37573
  getOrthographicDepthAtPoint(point, fallbackNormalizedDepth) {
37574
37574
  const { near, far } = this.camera;
37575
37575
  const depth = this.getNormalizedDepthAtPoint(point, fallbackNormalizedDepth);
37576
- return depth * (far - near) + near / 2;
37576
+ return depth * (far - near);
37577
37577
  }
37578
37578
  /**
37579
37579
  * Computes a depth from a 2D point within the coordinate space of the frame.
@@ -9,10 +9,10 @@ const index = require('./index-e100709a.js');
9
9
  const bundle_esm = require('./bundle.esm-3581a1e0.js');
10
10
  const _commonjsHelpers = require('./_commonjsHelpers-dcc4cf71.js');
11
11
  const grpcWebClient_umd = require('./grpc-web-client.umd-2af20c1b.js');
12
- const config = require('./config-d4f37e96.js');
12
+ const config = require('./config-a77b3bd2.js');
13
13
  const browser_esm = require('./browser.esm-739c5a8a.js');
14
14
  const dom = require('./dom-d162f898.js');
15
- require('./streamAttributes-07357da5.js');
15
+ require('./streamAttributes-061be87a.js');
16
16
  require('./entities-9eb7e608.js');
17
17
 
18
18
  window.requestIdleCallback =
@@ -8,7 +8,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
8
8
  const index = require('./index-e100709a.js');
9
9
  const bundle_esm = require('./bundle.esm-3581a1e0.js');
10
10
  const browser_esm = require('./browser.esm-739c5a8a.js');
11
- require('./streamAttributes-07357da5.js');
11
+ require('./streamAttributes-061be87a.js');
12
12
  require('./entities-9eb7e608.js');
13
13
  const viewport = require('./viewport-aeb8a3f3.js');
14
14
  require('./_commonjsHelpers-dcc4cf71.js');
@@ -6,7 +6,7 @@
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
8
  const index = require('./index-e100709a.js');
9
- const streamAttributes = require('./streamAttributes-07357da5.js');
9
+ const streamAttributes = require('./streamAttributes-061be87a.js');
10
10
  require('./entities-9eb7e608.js');
11
11
  const bundle_esm = require('./bundle.esm-3581a1e0.js');
12
12
  const index$1 = require('./index-b9d13137.js');
@@ -10,9 +10,9 @@ const bundle_esm = require('./bundle.esm-3581a1e0.js');
10
10
  const constants = require('./constants-be2deb55.js');
11
11
  const cursors = require('./cursors-6b087455.js');
12
12
  const dom = require('./dom-b82f5a23.js');
13
- require('./mapper-7ee069ef.js');
13
+ require('./mapper-339d8e48.js');
14
14
  require('./grpc-web-client.umd-2af20c1b.js');
15
- const streamAttributes = require('./streamAttributes-07357da5.js');
15
+ const streamAttributes = require('./streamAttributes-061be87a.js');
16
16
  const model = require('./model-2dbabec1.js');
17
17
  const overlays = require('./overlays-bac05f94.js');
18
18
  const results = require('./results-6cab066c.js');
@@ -7,9 +7,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
8
  const index = require('./index-e100709a.js');
9
9
  const bundle_esm = require('./bundle.esm-3581a1e0.js');
10
- require('./mapper-7ee069ef.js');
10
+ require('./mapper-339d8e48.js');
11
11
  require('./grpc-web-client.umd-2af20c1b.js');
12
- require('./streamAttributes-07357da5.js');
12
+ require('./streamAttributes-061be87a.js');
13
13
  const overlays = require('./overlays-bac05f94.js');
14
14
  const utils = require('./utils-1bfe6fec.js');
15
15
  require('./_commonjsHelpers-dcc4cf71.js');
@@ -6,11 +6,11 @@
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
8
  const index = require('./index-e100709a.js');
9
- const mapper = require('./mapper-7ee069ef.js');
9
+ const mapper = require('./mapper-339d8e48.js');
10
10
  const grpcWebClient_umd = require('./grpc-web-client.umd-2af20c1b.js');
11
- const config = require('./config-d4f37e96.js');
12
- const entities = require('./entities-308c6990.js');
13
- require('./streamAttributes-07357da5.js');
11
+ const config = require('./config-a77b3bd2.js');
12
+ const entities = require('./entities-83249107.js');
13
+ require('./streamAttributes-061be87a.js');
14
14
  const model = require('./model-2dbabec1.js');
15
15
  const overlays = require('./overlays-bac05f94.js');
16
16
  const bundle_esm = require('./bundle.esm-3581a1e0.js');
@@ -8,7 +8,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
8
8
  const index = require('./index-e100709a.js');
9
9
  const constants = require('./constants-be2deb55.js');
10
10
  const templates = require('./templates-e57b3741.js');
11
- require('./streamAttributes-07357da5.js');
11
+ require('./streamAttributes-061be87a.js');
12
12
  require('./entities-9eb7e608.js');
13
13
  const measurement = require('./measurement-42bea53c.js');
14
14
  const utils = require('./utils-1bfe6fec.js');
@@ -7,9 +7,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
8
  const index = require('./index-e100709a.js');
9
9
  const constants = require('./constants-be2deb55.js');
10
- require('./mapper-7ee069ef.js');
10
+ require('./mapper-339d8e48.js');
11
11
  require('./grpc-web-client.umd-2af20c1b.js');
12
- require('./streamAttributes-07357da5.js');
12
+ require('./streamAttributes-061be87a.js');
13
13
  const model = require('./model-2dbabec1.js');
14
14
  const results = require('./results-6cab066c.js');
15
15
  const templates = require('./templates-e57b3741.js');
@@ -8,9 +8,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
8
8
  const index = require('./index-e100709a.js');
9
9
  const bundle_esm = require('./bundle.esm-3581a1e0.js');
10
10
  require('./cursors-6b087455.js');
11
- require('./mapper-7ee069ef.js');
11
+ require('./mapper-339d8e48.js');
12
12
  require('./grpc-web-client.umd-2af20c1b.js');
13
- require('./streamAttributes-07357da5.js');
13
+ require('./streamAttributes-061be87a.js');
14
14
  require('./entities-9eb7e608.js');
15
15
  const viewport = require('./viewport-aeb8a3f3.js');
16
16
  const model = require('./model-1fb38025.js');
@@ -11,7 +11,7 @@ const index$1 = require('./index-b9d13137.js');
11
11
  const stencil = require('./stencil-a664cd10.js');
12
12
  const browser_esm = require('./browser.esm-739c5a8a.js');
13
13
  const _commonjsHelpers = require('./_commonjsHelpers-dcc4cf71.js');
14
- require('./streamAttributes-07357da5.js');
14
+ require('./streamAttributes-061be87a.js');
15
15
  require('./entities-9eb7e608.js');
16
16
  const viewport = require('./viewport-aeb8a3f3.js');
17
17
 
@@ -8,7 +8,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
8
8
  const index = require('./index-e100709a.js');
9
9
  const bundle_esm = require('./bundle.esm-3581a1e0.js');
10
10
  const stencil = require('./stencil-a664cd10.js');
11
- const streamAttributes = require('./streamAttributes-07357da5.js');
11
+ const streamAttributes = require('./streamAttributes-061be87a.js');
12
12
  require('./entities-9eb7e608.js');
13
13
  const index$1 = require('./index-b9d13137.js');
14
14
  require('./browser.esm-739c5a8a.js');
@@ -7,13 +7,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
8
  const index = require('./index-e100709a.js');
9
9
  const bundle_esm = require('./bundle.esm-3581a1e0.js');
10
- const streamAttributes = require('./streamAttributes-07357da5.js');
10
+ const streamAttributes = require('./streamAttributes-061be87a.js');
11
11
  const browser_esm = require('./browser.esm-739c5a8a.js');
12
12
  const index$1 = require('./index-b9d13137.js');
13
- const config = require('./config-d4f37e96.js');
13
+ const config = require('./config-a77b3bd2.js');
14
14
  const cursors = require('./cursors-6b087455.js');
15
15
  const dom = require('./dom-b82f5a23.js');
16
- const scene = require('./scene-7f29039e.js');
16
+ const scene = require('./scene-a12ad121.js');
17
17
  const entities = require('./entities-9eb7e608.js');
18
18
  const viewport = require('./viewport-aeb8a3f3.js');
19
19
  require('./_commonjsHelpers-dcc4cf71.js');
@@ -67,7 +67,7 @@ export class DepthBuffer {
67
67
  getOrthographicDepthAtPoint(point, fallbackNormalizedDepth) {
68
68
  const { near, far } = this.camera;
69
69
  const depth = this.getNormalizedDepthAtPoint(point, fallbackNormalizedDepth);
70
- return depth * (far - near) + near / 2;
70
+ return depth * (far - near);
71
71
  }
72
72
  /**
73
73
  * Computes a depth from a 2D point within the coordinate space of the frame.
@@ -168,4 +168,4 @@ export class DepthBuffer {
168
168
  * by a depth buffer.
169
169
  */
170
170
  DepthBuffer.MAX_DEPTH_VALUE = 2 ** 16 - 1;
171
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwdGhCdWZmZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL3R5cGVzL2RlcHRoQnVmZmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxLQUFLLEVBQUUsR0FBRyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDakQsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBVTlDOzs7Ozs7OztHQVFHO0FBQ0gsTUFBTSxPQUFPLFdBQVc7RUFPdEI7Ozs7OztLQU1HO0VBQ0gsWUFDa0IsTUFBK0IsRUFDL0IsU0FBOEIsRUFDOUIsTUFBbUI7SUFGbkIsV0FBTSxHQUFOLE1BQU0sQ0FBe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UM7SUFFbkQsT0FBTyxRQUFRLEdBQUcsS0FBSyxDQUFDO0VBQzFCLENBQUM7O0FBL01EOzs7R0FHRztBQUNXLDJCQUFlLEdBQUcsQ0FBQyxJQUFJLEVBQUUsR0FBRyxDQUFDLENBQUMifQ==
@@ -55069,7 +55069,7 @@ class DepthBuffer {
55069
55069
  getOrthographicDepthAtPoint(point, fallbackNormalizedDepth) {
55070
55070
  const { near, far } = this.camera;
55071
55071
  const depth = this.getNormalizedDepthAtPoint(point, fallbackNormalizedDepth);
55072
- return depth * (far - near) + near / 2;
55072
+ return depth * (far - near);
55073
55073
  }
55074
55074
  /**
55075
55075
  * Computes a depth from a 2D point within the coordinate space of the frame.
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
3
  */
4
4
  import { o as objects } from './browser.esm-143a5c89.js';
5
- import './streamAttributes-dfe159d1.js';
5
+ import './streamAttributes-c60bf910.js';
6
6
  import './entities-ce81dd7f.js';
7
7
 
8
8
  const DEFAULT_ANIMATION_DURATION = 500;
@@ -1,9 +1,9 @@
1
1
  /**!
2
2
  * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
3
  */
4
- import { m as mapMeasureResponseOrThrow, s as scene_view_api_pb, a as model_entity_pb, g as geometry_pb } from './mapper-5b18505e.js';
4
+ import { m as mapMeasureResponseOrThrow, s as scene_view_api_pb, a as model_entity_pb, g as geometry_pb } from './mapper-995300e7.js';
5
5
  import { g as grpcWebClient_umd, w as wrappers_pb } from './grpc-web-client.umd-5409853c.js';
6
- import { j as fromPbVector3f, v as vertexvis } from './streamAttributes-dfe159d1.js';
6
+ import { j as fromPbVector3f, v as vertexvis } from './streamAttributes-c60bf910.js';
7
7
  import { m as mapper } from './browser.esm-143a5c89.js';
8
8
 
9
9
  function requestUnary(caller) {
package/dist/esm/index.js CHANGED
@@ -1,18 +1,18 @@
1
1
  /**!
2
2
  * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
3
  */
4
- export { c as ColorMaterial, l as LoadableResource, S as Scene, a as SynchronizedClock } from './scene-9b3e8284.js';
4
+ export { c as ColorMaterial, l as LoadableResource, S as Scene, a as SynchronizedClock } from './scene-261ba659.js';
5
5
  export { C as CursorManager, l as labelPinCursor, m as measurementCursor, a as measurementWithArrowCursor, p as pinCursor } from './cursors-347fd452.js';
6
- export { M as MeasurementController, a as MeasurementEntity } from './entities-0d912fa6.js';
6
+ export { M as MeasurementController, a as MeasurementEntity } from './entities-00e4d357.js';
7
7
  export { M as MeasurementModel } from './model-c493072d.js';
8
8
  export { M as MeasurementOverlayManager } from './overlays-65844bc2.js';
9
9
  export { m as makeMinimumDistanceResult } from './results-ab028446.js';
10
- export { A as AngleUnits, f as AreaUnits, D as DistanceUnits, F as FrameCameraBase, a as ReceivedFrame, b as ReceivedFrameImage, c as ReceivedFrameScene, d as ReceivedOrthographicCamera, e as ReceivedPerspectiveCamera } from './streamAttributes-dfe159d1.js';
10
+ export { A as AngleUnits, f as AreaUnits, D as DistanceUnits, F as FrameCameraBase, a as ReceivedFrame, b as ReceivedFrameImage, c as ReceivedFrameScene, d as ReceivedOrthographicCamera, e as ReceivedPerspectiveCamera } from './streamAttributes-c60bf910.js';
11
11
  export { E as EntityType } from './entities-ce81dd7f.js';
12
12
  export { A as ArrowMarkup, C as CircleMarkup, F as FreeformMarkup } from './markup-b008dccb.js';
13
13
  export { V as Viewport } from './viewport-7e612d0d.js';
14
14
  import './browser.esm-143a5c89.js';
15
15
  import './bundle.esm-2d468648.js';
16
- import './mapper-5b18505e.js';
16
+ import './mapper-995300e7.js';
17
17
  import './_commonjsHelpers-11ca3be1.js';
18
18
  import './grpc-web-client.umd-5409853c.js';
@@ -1,18 +1,18 @@
1
1
  /**!
2
2
  * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
3
  */
4
- export { c as ColorMaterial, l as LoadableResource, S as Scene, a as SynchronizedClock } from './scene-9b3e8284.js';
4
+ export { c as ColorMaterial, l as LoadableResource, S as Scene, a as SynchronizedClock } from './scene-261ba659.js';
5
5
  export { C as CursorManager, l as labelPinCursor, m as measurementCursor, a as measurementWithArrowCursor, p as pinCursor } from './cursors-347fd452.js';
6
- export { M as MeasurementController, a as MeasurementEntity } from './entities-0d912fa6.js';
6
+ export { M as MeasurementController, a as MeasurementEntity } from './entities-00e4d357.js';
7
7
  export { M as MeasurementModel } from './model-c493072d.js';
8
8
  export { M as MeasurementOverlayManager } from './overlays-65844bc2.js';
9
9
  export { m as makeMinimumDistanceResult } from './results-ab028446.js';
10
- export { A as AngleUnits, f as AreaUnits, D as DistanceUnits, F as FrameCameraBase, a as ReceivedFrame, b as ReceivedFrameImage, c as ReceivedFrameScene, d as ReceivedOrthographicCamera, e as ReceivedPerspectiveCamera } from './streamAttributes-dfe159d1.js';
10
+ export { A as AngleUnits, f as AreaUnits, D as DistanceUnits, F as FrameCameraBase, a as ReceivedFrame, b as ReceivedFrameImage, c as ReceivedFrameScene, d as ReceivedOrthographicCamera, e as ReceivedPerspectiveCamera } from './streamAttributes-c60bf910.js';
11
11
  export { E as EntityType } from './entities-ce81dd7f.js';
12
12
  export { A as ArrowMarkup, C as CircleMarkup, F as FreeformMarkup } from './markup-b008dccb.js';
13
13
  export { V as Viewport } from './viewport-7e612d0d.js';
14
14
  import './browser.esm-143a5c89.js';
15
15
  import './bundle.esm-2d468648.js';
16
- import './mapper-5b18505e.js';
16
+ import './mapper-995300e7.js';
17
17
  import './_commonjsHelpers-11ca3be1.js';
18
18
  import './grpc-web-client.umd-5409853c.js';
@@ -4,7 +4,7 @@
4
4
  import { c as createCommonjsModule } from './_commonjsHelpers-11ca3be1.js';
5
5
  import { a as googleProtobuf, w as wrappers_pb } from './grpc-web-client.umd-5409853c.js';
6
6
  import { m as mapper } from './browser.esm-143a5c89.js';
7
- import { k as fromPbPlane, j as fromPbVector3f } from './streamAttributes-dfe159d1.js';
7
+ import { k as fromPbPlane, j as fromPbVector3f } from './streamAttributes-c60bf910.js';
8
8
 
9
9
  var uuid_pb = createCommonjsModule(function (module, exports) {
10
10
  /**
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { c as color, u as uri, a as async, b as uuid } from './browser.esm-143a5c89.js';
5
5
  import { v as vector3, b as boundingBox, a as boundingSphere, m as matrix4, q as quaternion, r as ray, p as point, d as dimensions } from './bundle.esm-2d468648.js';
6
- import { v as vertexvis, t as toProtoDuration, g as toProtobuf, e as FramePerspectiveCamera, h as constrainViewVector, d as FrameOrthographicCamera, w as withPositionAndViewVector, i as fromBoundingBoxAndLookAtCamera } from './streamAttributes-dfe159d1.js';
6
+ import { v as vertexvis, t as toProtoDuration, g as toProtobuf, e as FramePerspectiveCamera, h as constrainViewVector, d as FrameOrthographicCamera, w as withPositionAndViewVector, i as fromBoundingBoxAndLookAtCamera } from './streamAttributes-c60bf910.js';
7
7
  import './entities-ce81dd7f.js';
8
8
 
9
9
  const defaultColor = {
@@ -37571,7 +37571,7 @@ class DepthBuffer {
37571
37571
  getOrthographicDepthAtPoint(point, fallbackNormalizedDepth) {
37572
37572
  const { near, far } = this.camera;
37573
37573
  const depth = this.getNormalizedDepthAtPoint(point, fallbackNormalizedDepth);
37574
- return depth * (far - near) + near / 2;
37574
+ return depth * (far - near);
37575
37575
  }
37576
37576
  /**
37577
37577
  * Computes a depth from a 2D point within the coordinate space of the frame.
@@ -5,10 +5,10 @@ import { h, F as Fragment, r as registerInstance, c as createEvent, f as forceUp
5
5
  import { o as __rest } from './bundle.esm-2d468648.js';
6
6
  import { c as createCommonjsModule } from './_commonjsHelpers-11ca3be1.js';
7
7
  import { a as googleProtobuf, w as wrappers_pb, g as grpcWebClient_umd } from './grpc-web-client.umd-5409853c.js';
8
- import { p as parseConfig } from './config-9bfe8c21.js';
8
+ import { p as parseConfig } from './config-453f918d.js';
9
9
  import { E as EventDispatcher } from './browser.esm-143a5c89.js';
10
10
  import { g as getSceneTreeContainsElement } from './dom-2111ed19.js';
11
- import './streamAttributes-dfe159d1.js';
11
+ import './streamAttributes-c60bf910.js';
12
12
  import './entities-ce81dd7f.js';
13
13
 
14
14
  window.requestIdleCallback =
@@ -4,7 +4,7 @@
4
4
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-10c1495a.js';
5
5
  import { v as vector3, q as quaternion, m as matrix4, u as euler } from './bundle.esm-2d468648.js';
6
6
  import { o as objects } from './browser.esm-143a5c89.js';
7
- import './streamAttributes-dfe159d1.js';
7
+ import './streamAttributes-c60bf910.js';
8
8
  import './entities-ce81dd7f.js';
9
9
  import { V as Viewport } from './viewport-7e612d0d.js';
10
10
  import './_commonjsHelpers-11ca3be1.js';
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
3
  */
4
4
  import { h, F as Fragment, r as registerInstance, H as Host } from './index-10c1495a.js';
5
- import { D as DistanceUnits, A as AngleUnits, f as AreaUnits } from './streamAttributes-dfe159d1.js';
5
+ import { D as DistanceUnits, A as AngleUnits, f as AreaUnits } from './streamAttributes-c60bf910.js';
6
6
  import './entities-ce81dd7f.js';
7
7
  import { o as __rest, v as vector3 } from './bundle.esm-2d468648.js';
8
8
  import { c as classnames } from './index-e841d91b.js';
@@ -6,9 +6,9 @@ import { v as vector3, h as angle, p as point, l as line3 } from './bundle.esm-2
6
6
  import { M as MEASUREMENT_SNAP_DISTANCE, a as MEASUREMENT_LINE_CAP_LENGTH } from './constants-8582656b.js';
7
7
  import { m as measurementCursor } from './cursors-347fd452.js';
8
8
  import { a as cssTransformCenterAt, g as getMouseClientPosition } from './dom-974d2b58.js';
9
- import './mapper-5b18505e.js';
9
+ import './mapper-995300e7.js';
10
10
  import './grpc-web-client.umd-5409853c.js';
11
- import { j as fromPbVector3f, D as DistanceUnits } from './streamAttributes-dfe159d1.js';
11
+ import { j as fromPbVector3f, D as DistanceUnits } from './streamAttributes-c60bf910.js';
12
12
  import { M as MeasurementModel } from './model-c493072d.js';
13
13
  import { M as MeasurementOverlayManager } from './overlays-65844bc2.js';
14
14
  import { m as makeMinimumDistanceResult } from './results-ab028446.js';
@@ -3,9 +3,9 @@
3
3
  */
4
4
  import { r as registerInstance, h, F as Fragment, H as Host } from './index-10c1495a.js';
5
5
  import { p as point, h as angle } from './bundle.esm-2d468648.js';
6
- import './mapper-5b18505e.js';
6
+ import './mapper-995300e7.js';
7
7
  import './grpc-web-client.umd-5409853c.js';
8
- import './streamAttributes-dfe159d1.js';
8
+ import './streamAttributes-c60bf910.js';
9
9
  import { M as MeasurementOverlayManager } from './overlays-65844bc2.js';
10
10
  import { t as translateWorldLineToViewport } from './utils-001ba110.js';
11
11
  import './_commonjsHelpers-11ca3be1.js';
@@ -2,11 +2,11 @@
2
2
  * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
3
  */
4
4
  import { r as registerInstance, h, H as Host } from './index-10c1495a.js';
5
- import { s as scene_view_api_pb } from './mapper-5b18505e.js';
5
+ import { s as scene_view_api_pb } from './mapper-995300e7.js';
6
6
  import { g as grpcWebClient_umd } from './grpc-web-client.umd-5409853c.js';
7
- import { p as parseConfig } from './config-9bfe8c21.js';
8
- import { a as MeasurementEntity, M as MeasurementController } from './entities-0d912fa6.js';
9
- import './streamAttributes-dfe159d1.js';
7
+ import { p as parseConfig } from './config-453f918d.js';
8
+ import { a as MeasurementEntity, M as MeasurementController } from './entities-00e4d357.js';
9
+ import './streamAttributes-c60bf910.js';
10
10
  import { M as MeasurementModel } from './model-c493072d.js';
11
11
  import { M as MeasurementOverlayManager } from './overlays-65844bc2.js';
12
12
  import { p as point } from './bundle.esm-2d468648.js';
@@ -4,7 +4,7 @@
4
4
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-10c1495a.js';
5
5
  import { M as MEASUREMENT_SNAP_DISTANCE } from './constants-8582656b.js';
6
6
  import { s as stampTemplateWithId } from './templates-022199c1.js';
7
- import './streamAttributes-dfe159d1.js';
7
+ import './streamAttributes-c60bf910.js';
8
8
  import './entities-ce81dd7f.js';
9
9
  import { D as DistanceMeasurement } from './measurement-42090796.js';
10
10
  import { i as isVertexViewerDistanceMeasurement } from './utils-001ba110.js';
@@ -3,9 +3,9 @@
3
3
  */
4
4
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-10c1495a.js';
5
5
  import { M as MEASUREMENT_SNAP_DISTANCE } from './constants-8582656b.js';
6
- import './mapper-5b18505e.js';
6
+ import './mapper-995300e7.js';
7
7
  import './grpc-web-client.umd-5409853c.js';
8
- import './streamAttributes-dfe159d1.js';
8
+ import './streamAttributes-c60bf910.js';
9
9
  import { M as MeasurementModel } from './model-c493072d.js';
10
10
  import { m as makeMinimumDistanceResult } from './results-ab028446.js';
11
11
  import { s as stampTemplateWithId } from './templates-022199c1.js';
@@ -4,9 +4,9 @@
4
4
  import { h, F as Fragment, r as registerInstance } from './index-10c1495a.js';
5
5
  import { p as point, m as matrix4, v as vector3 } from './bundle.esm-2d468648.js';
6
6
  import './cursors-347fd452.js';
7
- import './mapper-5b18505e.js';
7
+ import './mapper-995300e7.js';
8
8
  import './grpc-web-client.umd-5409853c.js';
9
- import './streamAttributes-dfe159d1.js';
9
+ import './streamAttributes-c60bf910.js';
10
10
  import './entities-ce81dd7f.js';
11
11
  import { V as Viewport } from './viewport-7e612d0d.js';
12
12
  import { i as isDefaultPin, b as isTextPin, P as PinModel, a as PinController } from './model-7006f521.js';
@@ -7,7 +7,7 @@ import { c as classnames } from './index-e841d91b.js';
7
7
  import { r as readDOM } from './stencil-9bf7fb9e.js';
8
8
  import { c as color, E as EventDispatcher } from './browser.esm-143a5c89.js';
9
9
  import { c as createCommonjsModule, a as commonjsGlobal, g as getAugmentedNamespace, b as getDefaultExportFromCjs } from './_commonjsHelpers-11ca3be1.js';
10
- import './streamAttributes-dfe159d1.js';
10
+ import './streamAttributes-c60bf910.js';
11
11
  import './entities-ce81dd7f.js';
12
12
  import { V as Viewport } from './viewport-7e612d0d.js';
13
13
 
@@ -4,7 +4,7 @@
4
4
  import { h, F as Fragment, r as registerInstance, H as Host } from './index-10c1495a.js';
5
5
  import { v as vector3, q as quaternion, u as euler } from './bundle.esm-2d468648.js';
6
6
  import { r as readDOM } from './stencil-9bf7fb9e.js';
7
- import { O as Orientation, e as FramePerspectiveCamera, G as StandardView } from './streamAttributes-dfe159d1.js';
7
+ import { O as Orientation, e as FramePerspectiveCamera, G as StandardView } from './streamAttributes-c60bf910.js';
8
8
  import './entities-ce81dd7f.js';
9
9
  import { c as classnames } from './index-e841d91b.js';
10
10
  import './browser.esm-143a5c89.js';
@@ -3,13 +3,13 @@
3
3
  */
4
4
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-10c1495a.js';
5
5
  import { p as point, v as vector3, h as angle, j as plane, r as ray, b as boundingBox, s as matrix2, d as dimensions } from './bundle.esm-2d468648.js';
6
- import { l as fromPbStencilBufferOrThrow, m as decodePng, n as DepthBuffer, t as toProtoDuration, g as toProtobuf, p as protoToDate, o as toPbStreamAttributes, q as toPbRGBi, S as StreamApi, r as StreamRequestError, s as fromPbFrameOrThrow, u as fromPbStartStreamResponseOrThrow, x as fromPbReconnectResponseOrThrow, y as fromPbSyncTimeResponseOrThrow, z as currentDateAsProtoTimestamp, B as fromPbRefreshTokenResponseOrThrow, W as WebSocketClientImpl, C as toOrthographic, E as toPerspective } from './streamAttributes-dfe159d1.js';
6
+ import { l as fromPbStencilBufferOrThrow, m as decodePng, n as DepthBuffer, t as toProtoDuration, g as toProtobuf, p as protoToDate, o as toPbStreamAttributes, q as toPbRGBi, S as StreamApi, r as StreamRequestError, s as fromPbFrameOrThrow, u as fromPbStartStreamResponseOrThrow, x as fromPbReconnectResponseOrThrow, y as fromPbSyncTimeResponseOrThrow, z as currentDateAsProtoTimestamp, B as fromPbRefreshTokenResponseOrThrow, W as WebSocketClientImpl, C as toOrthographic, E as toPerspective } from './streamAttributes-c60bf910.js';
7
7
  import { E as EventDispatcher, m as mapper, c as color, o as objects, u as uri, a as async, b as uuid } from './browser.esm-143a5c89.js';
8
8
  import { c as classnames } from './index-e841d91b.js';
9
- import { p as parseConfig } from './config-9bfe8c21.js';
9
+ import { p as parseConfig } from './config-453f918d.js';
10
10
  import { C as CursorManager } from './cursors-347fd452.js';
11
11
  import { g as getMouseClientPosition, c as cssCursor } from './dom-974d2b58.js';
12
- import { I as ImageLoadError, f as fromUrn, C as CustomError, W as WebsocketConnectionError, a as SynchronizedClock, b as SceneRenderError, d as defaultSelectionMaterial, V as ViewerInitializationError, e as InteractionHandlerError, g as ComponentInitializationError, h as IllegalStateError, i as fromHex, S as Scene } from './scene-9b3e8284.js';
12
+ import { I as ImageLoadError, f as fromUrn, C as CustomError, W as WebsocketConnectionError, a as SynchronizedClock, b as SceneRenderError, d as defaultSelectionMaterial, V as ViewerInitializationError, e as InteractionHandlerError, g as ComponentInitializationError, h as IllegalStateError, i as fromHex, S as Scene } from './scene-261ba659.js';
13
13
  import { E as EntityType } from './entities-ce81dd7f.js';
14
14
  import { V as Viewport } from './viewport-7e612d0d.js';
15
15
  import './_commonjsHelpers-11ca3be1.js';
@@ -1,4 +1,4 @@
1
1
  /**!
2
2
  * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
3
  */
4
- export{c as ColorMaterial,l as LoadableResource,S as Scene,a as SynchronizedClock}from"./p-5bfcd20c.js";export{C as CursorManager,l as labelPinCursor,m as measurementCursor,a as measurementWithArrowCursor,p as pinCursor}from"./p-edb5de57.js";export{M as MeasurementController,a as MeasurementEntity}from"./p-3b4aa1cc.js";export{M as MeasurementModel}from"./p-adb81a50.js";export{M as MeasurementOverlayManager}from"./p-b4e69a32.js";export{m as makeMinimumDistanceResult}from"./p-ac1e557a.js";export{A as AngleUnits,f as AreaUnits,D as DistanceUnits,F as FrameCameraBase,a as ReceivedFrame,b as ReceivedFrameImage,c as ReceivedFrameScene,d as ReceivedOrthographicCamera,e as ReceivedPerspectiveCamera}from"./p-c01fd67b.js";export{E as EntityType}from"./p-df8fbe56.js";export{A as ArrowMarkup,C as CircleMarkup,F as FreeformMarkup}from"./p-7d792238.js";export{V as Viewport}from"./p-8cf1d174.js";import"./p-8652ee81.js";import"./p-30c03bca.js";import"./p-c2f6cf04.js";import"./p-dfe5a97d.js";import"./p-92fe4417.js";
4
+ export{c as ColorMaterial,l as LoadableResource,S as Scene,a as SynchronizedClock}from"./p-0d46c015.js";export{C as CursorManager,l as labelPinCursor,m as measurementCursor,a as measurementWithArrowCursor,p as pinCursor}from"./p-edb5de57.js";export{M as MeasurementController,a as MeasurementEntity}from"./p-059963ff.js";export{M as MeasurementModel}from"./p-adb81a50.js";export{M as MeasurementOverlayManager}from"./p-b4e69a32.js";export{m as makeMinimumDistanceResult}from"./p-ac1e557a.js";export{A as AngleUnits,f as AreaUnits,D as DistanceUnits,F as FrameCameraBase,a as ReceivedFrame,b as ReceivedFrameImage,c as ReceivedFrameScene,d as ReceivedOrthographicCamera,e as ReceivedPerspectiveCamera}from"./p-992ca092.js";export{E as EntityType}from"./p-df8fbe56.js";export{A as ArrowMarkup,C as CircleMarkup,F as FreeformMarkup}from"./p-7d792238.js";export{V as Viewport}from"./p-8cf1d174.js";import"./p-8652ee81.js";import"./p-30c03bca.js";import"./p-d5211029.js";import"./p-dfe5a97d.js";import"./p-92fe4417.js";
@@ -1,4 +1,4 @@
1
1
  /**!
2
2
  * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
3
  */
4
- import{m as t,s,a as i,g as n}from"./p-c2f6cf04.js";import{g as e,w as r}from"./p-92fe4417.js";import{j as a,v as o}from"./p-c01fd67b.js";import{m as h}from"./p-8652ee81.js";function c(t){return new Promise(((s,i)=>{t(((t,n)=>{null!=t?i(t):null!=n?s(n):i(new Error("Invalid gRPC response. Error and result are empty."))}))}))}async function m(t,s){const i=await t();return new e.grpc.Metadata({"jwt-context":JSON.stringify({jwt:i,metadata:{"x-device-id":s||""}})})}class u{constructor(t,s,i,n){this.model=t,this.client=s,this.jwtProvider=i,this.deviceId=n,this.outcome=Promise.resolve(void 0)}addEntity(t){return this.performMeasurement((()=>this.model.addEntity(t)))}clearEntities(){return this.performMeasurement((()=>(this.model.clearEntities(),this.model.clearOutcome(),!0)))}removeEntity(t){return this.performMeasurement((()=>this.model.removeEntity(t)))}setEntities(t){return this.performMeasurement((()=>this.model.setEntities(t)))}performMeasurement(t){const s=this.model.getEntities(),i=t(),n=this.model.getEntities();return i&&(this.measureAndUpdateModel(n),this.highlightEntities(s,n)),this.outcome}measureAndUpdateModel(t){this.outcome=t.length>0?this.measureEntities(t).then((t=>(this.model.setOutcome(t),this.model.getOutcome()))):Promise.resolve(void 0)}async measureEntities(i){if(i.length>0){const n=await c((async t=>{const n=await m(this.jwtProvider,this.deviceId),e=new s.MeasureRequest;e.setEntitiesList(i.map((t=>t.toProto()))),this.client.measure(e,n,t)}));return t(n.toObject())}}async highlightEntities(t,n){await c((async e=>{const a=await m(this.jwtProvider,this.deviceId),o=new Set(n),h=t.filter((t=>!o.has(t))).map((t=>{const n=new s.ModelEntityUpdate;return n.setModelEntity(i.ModelEntity.deserializeBinary(t.modelEntity)),n.setHighlight((new r.BoolValue).setValue(!1)),n})),c=n.map((t=>{const n=new s.ModelEntityUpdate;return n.setModelEntity(i.ModelEntity.deserializeBinary(t.modelEntity)),n.setHighlight((new r.BoolValue).setValue(!0)),n})),u=new s.UpdateModelEntitiesRequest;u.setUpdatesList([...h,...c]),this.client.updateModelEntities(u,a,e)}))}}class w{constructor(t,s){this.point=t,this.modelEntity=s}static fromHit(t){if(null!=t.hitPoint&&null!=t.modelEntity){const s=h.ifInvalidThrow(a)(t.hitPoint),i=o.protobuf.core.ModelEntity.encode(t.modelEntity).finish();return new w(s,i)}throw new Error("Cannot create MeasurementEntity from Hit. Hit is missing hit point and model entity")}toProto(){const t=new s.MeasureEntity,e=new n.Vector3f;e.setX(this.point.x),e.setY(this.point.y),e.setZ(this.point.z),t.setPoint(e);const r=i.ModelEntity.deserializeBinary(this.modelEntity);return t.setModelEntity(r),t}}export{u as M,w as a}
4
+ import{m as t,s,a as i,g as n}from"./p-d5211029.js";import{g as e,w as r}from"./p-92fe4417.js";import{j as a,v as o}from"./p-992ca092.js";import{m as h}from"./p-8652ee81.js";function c(t){return new Promise(((s,i)=>{t(((t,n)=>{null!=t?i(t):null!=n?s(n):i(new Error("Invalid gRPC response. Error and result are empty."))}))}))}async function m(t,s){const i=await t();return new e.grpc.Metadata({"jwt-context":JSON.stringify({jwt:i,metadata:{"x-device-id":s||""}})})}class u{constructor(t,s,i,n){this.model=t,this.client=s,this.jwtProvider=i,this.deviceId=n,this.outcome=Promise.resolve(void 0)}addEntity(t){return this.performMeasurement((()=>this.model.addEntity(t)))}clearEntities(){return this.performMeasurement((()=>(this.model.clearEntities(),this.model.clearOutcome(),!0)))}removeEntity(t){return this.performMeasurement((()=>this.model.removeEntity(t)))}setEntities(t){return this.performMeasurement((()=>this.model.setEntities(t)))}performMeasurement(t){const s=this.model.getEntities(),i=t(),n=this.model.getEntities();return i&&(this.measureAndUpdateModel(n),this.highlightEntities(s,n)),this.outcome}measureAndUpdateModel(t){this.outcome=t.length>0?this.measureEntities(t).then((t=>(this.model.setOutcome(t),this.model.getOutcome()))):Promise.resolve(void 0)}async measureEntities(i){if(i.length>0){const n=await c((async t=>{const n=await m(this.jwtProvider,this.deviceId),e=new s.MeasureRequest;e.setEntitiesList(i.map((t=>t.toProto()))),this.client.measure(e,n,t)}));return t(n.toObject())}}async highlightEntities(t,n){await c((async e=>{const a=await m(this.jwtProvider,this.deviceId),o=new Set(n),h=t.filter((t=>!o.has(t))).map((t=>{const n=new s.ModelEntityUpdate;return n.setModelEntity(i.ModelEntity.deserializeBinary(t.modelEntity)),n.setHighlight((new r.BoolValue).setValue(!1)),n})),c=n.map((t=>{const n=new s.ModelEntityUpdate;return n.setModelEntity(i.ModelEntity.deserializeBinary(t.modelEntity)),n.setHighlight((new r.BoolValue).setValue(!0)),n})),u=new s.UpdateModelEntitiesRequest;u.setUpdatesList([...h,...c]),this.client.updateModelEntities(u,a,e)}))}}class w{constructor(t,s){this.point=t,this.modelEntity=s}static fromHit(t){if(null!=t.hitPoint&&null!=t.modelEntity){const s=h.ifInvalidThrow(a)(t.hitPoint),i=o.protobuf.core.ModelEntity.encode(t.modelEntity).finish();return new w(s,i)}throw new Error("Cannot create MeasurementEntity from Hit. Hit is missing hit point and model entity")}toProto(){const t=new s.MeasureEntity,e=new n.Vector3f;e.setX(this.point.x),e.setY(this.point.y),e.setZ(this.point.z),t.setPoint(e);const r=i.ModelEntity.deserializeBinary(this.modelEntity);return t.setModelEntity(r),t}}export{u as M,w as a}