@vertexvis/viewer 0.13.1 → 0.13.2-canary.2

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 (167) hide show
  1. package/dist/cjs/{browser.esm-31b03292.js → browser.esm-c51162f8.js} +1 -1
  2. package/dist/cjs/{bundle.esm-dc0a8361.js → bundle.esm-1b8b1f36.js} +34 -0
  3. package/dist/cjs/{config-90ee43d5.js → config-91efd353.js} +2 -2
  4. package/dist/cjs/{cursors-ad2fd395.js → cursors-14827f58.js} +1 -1
  5. package/dist/cjs/{dom-dd265f48.js → dom-c697cf99.js} +1 -1
  6. package/dist/cjs/{entities-aa59890e.js → entities-0829b4a4.js} +3 -3
  7. package/dist/cjs/index.cjs.js +13 -12
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{mapper-f6e6cafe.js → mapper-67af470b.js} +2 -2
  10. package/dist/cjs/{markup-fb1553b1.js → markup-835f2e83.js} +2 -2
  11. package/dist/cjs/{measurement-aba1e0e8.js → measurement-8e0ce89a.js} +2 -2
  12. package/dist/cjs/{model-4ec0c36e.js → model-78241d4f.js} +1 -1
  13. package/dist/cjs/{overlays-40c6cbc7.js → overlays-06786e52.js} +2 -2
  14. package/dist/cjs/{png-decoder-27d25eed.js → png-decoder-01b76242.js} +1 -1
  15. package/dist/cjs/{results-bc325974.js → results-7a694238.js} +1 -1
  16. package/dist/cjs/{scene-d420fd26.js → scene-23535fc0.js} +176 -85
  17. package/dist/cjs/{streamAttributes-d6236448.js → streamAttributes-f13c1a96.js} +1431 -41
  18. package/dist/cjs/{utils-f80be307.js → utils-4a02e54b.js} +1 -1
  19. package/dist/cjs/{utils-545b1865.js → utils-5cc32a26.js} +1 -1
  20. package/dist/cjs/vertex-scene-tree-search_3.cjs.entry.js +1 -1
  21. package/dist/cjs/vertex-scene-tree.cjs.entry.js +4 -4
  22. package/dist/cjs/vertex-viewer-dom-element_3.cjs.entry.js +4 -4
  23. package/dist/cjs/vertex-viewer-markup-arrow_3.cjs.entry.js +3 -3
  24. package/dist/cjs/vertex-viewer-markup-tool.cjs.entry.js +4 -4
  25. package/dist/cjs/vertex-viewer-markup.cjs.entry.js +4 -4
  26. package/dist/cjs/vertex-viewer-measurement-details.cjs.entry.js +3 -3
  27. package/dist/cjs/vertex-viewer-measurement-distance.cjs.entry.js +11 -11
  28. package/dist/cjs/vertex-viewer-measurement-line_2.cjs.entry.js +6 -6
  29. package/dist/cjs/vertex-viewer-measurement-precise.cjs.entry.js +10 -10
  30. package/dist/cjs/vertex-viewer-measurement-tool.cjs.entry.js +5 -5
  31. package/dist/cjs/vertex-viewer-measurements.cjs.entry.js +8 -8
  32. package/dist/cjs/vertex-viewer-view-cube.cjs.entry.js +3 -3
  33. package/dist/cjs/vertex-viewer.cjs.entry.js +198 -79
  34. package/dist/cjs/viewer.cjs.js +1 -1
  35. package/dist/cjs/{viewport-8c39089f.js → viewport-052809c7.js} +1 -1
  36. package/dist/collection/components/viewer/viewer.js +68 -4
  37. package/dist/collection/components/viewer-dom-renderer/renderer2d.js +1 -1
  38. package/dist/collection/components/viewer-dom-renderer/renderer3d.js +1 -1
  39. package/dist/collection/components/viewer-dom-renderer/viewer-dom-renderer.js +3 -3
  40. package/dist/collection/components/viewer-measurement-distance/viewer-measurement-distance.js +3 -3
  41. package/dist/collection/components/viewer-measurement-overlays/viewer-measurement-overlays.js +3 -3
  42. package/dist/collection/index.js +2 -2
  43. package/dist/collection/lib/errors.js +8 -1
  44. package/dist/collection/lib/interactions/index.js +3 -1
  45. package/dist/collection/lib/interactions/interactionApi.js +4 -25
  46. package/dist/collection/lib/interactions/interactionApiOrthographic.js +50 -0
  47. package/dist/collection/lib/interactions/interactionApiPerspective.js +50 -0
  48. package/dist/collection/lib/mappers/frameStreaming.js +27 -5
  49. package/dist/collection/lib/rendering/matrices.js +13 -4
  50. package/dist/collection/lib/scenes/__mocks__/mocks.js +2 -2
  51. package/dist/collection/lib/scenes/camera.js +149 -77
  52. package/dist/collection/lib/scenes/mapper.js +3 -2
  53. package/dist/collection/lib/scenes/scene.js +23 -9
  54. package/dist/collection/lib/types/clippingPlanes.js +54 -17
  55. package/dist/collection/lib/types/depthBuffer.js +1 -1
  56. package/dist/collection/lib/types/frame.js +88 -23
  57. package/dist/collection/lib/types/frameCamera.js +81 -6
  58. package/dist/collection/lib/types/viewport.js +1 -1
  59. package/dist/collection/testing/fixtures.js +23 -10
  60. package/dist/collection/testing/viewer.js +5 -3
  61. package/dist/custom-elements/index.js +1821 -194
  62. package/dist/esm/{browser.esm-59e914f6.js → browser.esm-48f051a3.js} +1 -1
  63. package/dist/esm/{bundle.esm-d899b2d5.js → bundle.esm-df3a8a42.js} +35 -1
  64. package/dist/esm/{config-604c644e.js → config-3a5d3ea3.js} +2 -2
  65. package/dist/esm/{cursors-a7ec4adb.js → cursors-45f23dfe.js} +1 -1
  66. package/dist/esm/{dom-780d25be.js → dom-18d9ac79.js} +1 -1
  67. package/dist/esm/{entities-759d97cd.js → entities-60dfd79d.js} +3 -3
  68. package/dist/esm/index.js +12 -12
  69. package/dist/esm/index.mjs +12 -12
  70. package/dist/esm/loader.js +1 -1
  71. package/dist/esm/loader.mjs +1 -1
  72. package/dist/esm/{mapper-4b815e31.js → mapper-adf23dc4.js} +2 -2
  73. package/dist/esm/{markup-1d177b4a.js → markup-accb6b5c.js} +2 -2
  74. package/dist/esm/{measurement-12cdbf5c.js → measurement-6cd457a6.js} +2 -2
  75. package/dist/esm/{model-e5a4f00f.js → model-4982c15d.js} +1 -1
  76. package/dist/esm/{overlays-1919b192.js → overlays-1783a61a.js} +2 -2
  77. package/dist/esm/{png-decoder-3f1fa486.js → png-decoder-f35def4c.js} +1 -1
  78. package/dist/esm/{results-994bdb50.js → results-93d45acc.js} +1 -1
  79. package/dist/esm/{scene-2c2460d5.js → scene-2d8bdccc.js} +176 -85
  80. package/dist/esm/{streamAttributes-d623bb60.js → streamAttributes-87a3605c.js} +1426 -43
  81. package/dist/esm/{utils-5e57bf24.js → utils-9f4b25ec.js} +1 -1
  82. package/dist/esm/{utils-83a19677.js → utils-ed2346c0.js} +1 -1
  83. package/dist/esm/vertex-scene-tree-search_3.entry.js +1 -1
  84. package/dist/esm/vertex-scene-tree.entry.js +4 -4
  85. package/dist/esm/vertex-viewer-dom-element_3.entry.js +4 -4
  86. package/dist/esm/vertex-viewer-markup-arrow_3.entry.js +3 -3
  87. package/dist/esm/vertex-viewer-markup-tool.entry.js +4 -4
  88. package/dist/esm/vertex-viewer-markup.entry.js +4 -4
  89. package/dist/esm/vertex-viewer-measurement-details.entry.js +3 -3
  90. package/dist/esm/vertex-viewer-measurement-distance.entry.js +11 -11
  91. package/dist/esm/vertex-viewer-measurement-line_2.entry.js +6 -6
  92. package/dist/esm/vertex-viewer-measurement-precise.entry.js +10 -10
  93. package/dist/esm/vertex-viewer-measurement-tool.entry.js +5 -5
  94. package/dist/esm/vertex-viewer-measurements.entry.js +8 -8
  95. package/dist/esm/vertex-viewer-view-cube.entry.js +3 -3
  96. package/dist/esm/vertex-viewer.entry.js +198 -79
  97. package/dist/esm/viewer.js +1 -1
  98. package/dist/esm/{viewport-01c886ea.js → viewport-6d4c0af0.js} +1 -1
  99. package/dist/types/components/viewer/viewer.d.ts +8 -0
  100. package/dist/types/components/viewer-dom-renderer/renderer2d.d.ts +2 -2
  101. package/dist/types/components/viewer-dom-renderer/renderer3d.d.ts +3 -3
  102. package/dist/types/components/viewer-dom-renderer/viewer-dom-renderer.d.ts +2 -2
  103. package/dist/types/components/viewer-measurement-distance/utils.d.ts +2 -2
  104. package/dist/types/components/viewer-measurement-distance/viewer-measurement-distance.d.ts +2 -2
  105. package/dist/types/components/viewer-measurement-overlays/viewer-measurement-overlays-components.d.ts +2 -2
  106. package/dist/types/components/viewer-measurement-overlays/viewer-measurement-overlays.d.ts +2 -2
  107. package/dist/types/components.d.ts +15 -7
  108. package/dist/types/index.d.ts +1 -1
  109. package/dist/types/lib/errors.d.ts +3 -0
  110. package/dist/types/lib/interactions/index.d.ts +2 -0
  111. package/dist/types/lib/interactions/interactionApi.d.ts +20 -21
  112. package/dist/types/lib/interactions/interactionApiOrthographic.d.ts +21 -0
  113. package/dist/types/lib/interactions/interactionApiPerspective.d.ts +21 -0
  114. package/dist/types/lib/mappers/frameStreaming.d.ts +2 -0
  115. package/dist/types/lib/scenes/__mocks__/mocks.d.ts +2 -2
  116. package/dist/types/lib/scenes/camera.d.ts +100 -37
  117. package/dist/types/lib/scenes/scene.d.ts +1 -1
  118. package/dist/types/lib/types/clippingPlanes.d.ts +3 -1
  119. package/dist/types/lib/types/depthBuffer.d.ts +4 -4
  120. package/dist/types/lib/types/frame.d.ts +54 -11
  121. package/dist/types/lib/types/frameCamera.d.ts +21 -2
  122. package/dist/types/lib/types/viewport.d.ts +2 -3
  123. package/dist/types/testing/fixtures.d.ts +4 -2
  124. package/dist/viewer/index.esm.js +1 -1
  125. package/dist/viewer/{p-3f6ac74f.js → p-014561cd.js} +1 -1
  126. package/dist/viewer/p-121f2b40.js +18 -0
  127. package/dist/viewer/p-18ec4fed.js +4 -0
  128. package/dist/viewer/{p-e2297df2.entry.js → p-1acd0e56.entry.js} +1 -1
  129. package/dist/viewer/{p-da2f4a56.js → p-25dfee48.js} +1 -1
  130. package/dist/viewer/p-2e75198d.js +4 -0
  131. package/dist/viewer/p-38c06c25.js +4 -0
  132. package/dist/viewer/{p-67446e35.js → p-463151e0.js} +1 -1
  133. package/dist/viewer/{p-301660cf.js → p-546ae240.js} +1 -1
  134. package/dist/viewer/{p-d00e9203.js → p-6120a219.js} +1 -1
  135. package/dist/viewer/p-61db972b.js +4 -0
  136. package/dist/viewer/{p-a0df0e0c.js → p-6d9d3553.js} +1 -1
  137. package/dist/viewer/{p-f8d01b8a.entry.js → p-7c5bee8e.entry.js} +1 -1
  138. package/dist/viewer/{p-8decee06.entry.js → p-8de749a5.entry.js} +1 -1
  139. package/dist/viewer/{p-081e6873.js → p-8df35eee.js} +1 -1
  140. package/dist/viewer/{p-671c113c.entry.js → p-923b616f.entry.js} +1 -1
  141. package/dist/viewer/p-9b1ecc71.js +4 -0
  142. package/dist/viewer/{p-3810c24d.js → p-9fd5fc8e.js} +1 -1
  143. package/dist/viewer/p-b2d4c0cf.entry.js +4 -0
  144. package/dist/viewer/{p-364ce21c.js → p-b8bc15ec.js} +1 -1
  145. package/dist/viewer/{p-439220c6.js → p-b8f027eb.js} +1 -1
  146. package/dist/viewer/p-bc7f0ad6.entry.js +4 -0
  147. package/dist/viewer/{p-2cefb1b0.js → p-ce0fe8be.js} +1 -1
  148. package/dist/viewer/p-d939ecd3.entry.js +4 -0
  149. package/dist/viewer/{p-25eaab00.entry.js → p-de7eecce.entry.js} +1 -1
  150. package/dist/viewer/{p-4985fad5.js → p-e3fff448.js} +1 -1
  151. package/dist/viewer/{p-6e80f8b0.entry.js → p-e4934f47.entry.js} +1 -1
  152. package/dist/viewer/{p-df292b56.entry.js → p-e8f6cba6.entry.js} +1 -1
  153. package/dist/viewer/{p-353cfc7a.entry.js → p-ee86bed2.entry.js} +1 -1
  154. package/dist/viewer/{p-c62cb926.entry.js → p-f359a9ac.entry.js} +1 -1
  155. package/dist/viewer/{p-e07377fa.entry.js → p-fa7f2d0c.entry.js} +1 -1
  156. package/dist/viewer/{p-915d95ad.entry.js → p-ffde162f.entry.js} +1 -1
  157. package/dist/viewer/viewer.esm.js +1 -1
  158. package/package.json +8 -8
  159. package/dist/viewer/p-085e908a.js +0 -4
  160. package/dist/viewer/p-0aba71fd.js +0 -18
  161. package/dist/viewer/p-423410be.js +0 -4
  162. package/dist/viewer/p-432267bc.entry.js +0 -4
  163. package/dist/viewer/p-7cad9bf4.js +0 -4
  164. package/dist/viewer/p-d90f2f6d.entry.js +0 -4
  165. package/dist/viewer/p-f755af5a.entry.js +0 -4
  166. package/dist/viewer/p-f7cb7e59.js +0 -4
  167. package/dist/viewer/p-fe11d694.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /**!
2
2
  * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
3
  */
4
- import{h as t,r as e,c as i,H as n,g as s}from"./p-cafa57a6.js";import{v as r,i as a,p as o,l as h}from"./p-0aba71fd.js";import{M as l,a as d}from"./p-849bd025.js";import{m as c}from"./p-d00e9203.js";import{a as u,g as m}from"./p-439220c6.js";import"./p-f7cb7e59.js";import"./p-3a20a038.js";import{e as v,D as p}from"./p-fe11d694.js";import{M as w}from"./p-da2f4a56.js";import{M as f}from"./p-3810c24d.js";import{m as b}from"./p-67446e35.js";import{V as g}from"./p-4985fad5.js";import{E as y,m as P}from"./p-301660cf.js";import{g as E}from"./p-2cefb1b0.js";import{c as C}from"./p-f482325b.js";import"./p-112455b1.js";class M{constructor(t,e,i){this.stencil=t,this.depthBuffer=e,this.viewport=i}hitTest(t){const e=this.viewport.transformPointToFrame(t,this.depthBuffer);if(null!=this.stencil){const i=this.viewport.transformPointToFrame(t,this.stencil);return this.stencil.hitTest(i)||this.depthBuffer.hitTest(e)}return this.depthBuffer.hitTest(e)}snapToNearestPixel(t,e){if(null!=this.stencil){const i=this.viewport.transformPointToFrame(t,this.stencil),n=this.stencil.snapToNearestPixel(i,e);return this.viewport.transformPointToViewport(n,this.stencil)}return t}transformPointToWorld(t,{ignoreHitTest:e=!1}={}){const i=this.pickDepthBuffer(t);return null!=i?this.viewport.transformPointToWorldSpace(t,i):e?this.viewport.transformPointToWorldSpace(t,this.depthBuffer):void 0}pickDepthBuffer(t){if(null!=this.stencil){const e=this.viewport.transformPointToFrame(t,this.stencil);if(this.stencil.hitTest(e))return this.stencil.depthBuffer}const e=this.viewport.transformPointToFrame(t,this.depthBuffer);return this.depthBuffer.hitTest(e)?this.depthBuffer:void 0}}class x{constructor(t){this.model=t}newMeasurement(t,e){const i=e.hitTester().transformPointToWorld(t);return null!=i?new I(t,i,this.model):void 0}editMeasurement(t){const e=this.model.getMeasurement();if(null==e)throw new Error("Cannot edit measurement. Measurement is empty.");return"start"===t?new D(e,this.model):new k(e,this.model)}clearIndicator(){this.model.setIndicator(void 0)}moveIndicator(t,e){const i=e.hitTester().transformPointToWorld(t);return this.model.setIndicator(i),null!=i}}class j{constructor(){this.measurementChanged=new y,this.indicatorChanged=new y}static empty(){return new j}getMeasurement(){return this.measurement}setMeasurement(t){this.measurement!==t&&(this.measurement=t,this.measurementChanged.emit(t))}setMeasurementFromValues(t,e,i){if(null!=t&&null!=e){const n=i?L(t,e):T(t,e);this.setMeasurement(n)}else this.setMeasurement(void 0)}onMeasurementChanged(t){return this.measurementChanged.on(t)}getIndicator(){return this.indicator}setIndicator(t){this.indicator!==t&&(this.indicator=t,this.indicatorChanged.emit(t))}onIndicatorChanged(t){return this.indicatorChanged.on(t)}}class I{constructor(t,e,i){this.pt=t,this.world=e,this.model=i,this.hitWorldValid=!0,this.preventUpdate=!1}fetchStartIfMissing(t){null==this.pendingStart&&(this.pendingStart=this.fetchStart(t))}async fetchStart(t){const e=await t.raycaster(),i=await S(e,this.pt);if(null==i){const e=t.hitTester().transformPointToWorld(this.pt);this.hitWorld=e,this.hitWorldValid=!1}else this.hitWorld=i,this.hitWorldValid=!0}update(t,e){var i;if(!this.preventUpdate){this.fetchStartIfMissing(e);const n=e.hitTester().transformPointToWorld(t,{ignoreHitTest:!0}),s=e.hitTester().hitTest(t),r=null!==(i=this.hitWorld)&&void 0!==i?i:this.world;if(null==n)throw new Error("Cannot update new measurement interaction. End point is empty.");this.hitWorldValid&&s?(this.model.setIndicator(n),this.setMeasurement(L(r,n))):(this.model.setIndicator(n),this.setMeasurement(T(r,n)))}}async finish(t,e){var i;this.preventUpdate=!0,this.fetchStartIfMissing(e),await this.pendingStart,this.model.setIndicator(void 0);const n=await e.raycaster(),s=await S(n,t),r=null!==(i=this.hitWorld)&&void 0!==i?i:this.world;if(this.preventUpdate=!1,null==s){const i=e.hitTester().transformPointToWorld(t,{ignoreHitTest:!0});if(null==i)throw new Error("Cannot complete new measurement interaction. End point is empty.");return this.setMeasurement(T(r,i))}return this.setMeasurement(this.hitWorldValid?L(r,s):T(r,s))}setMeasurement(t){return this.model.setMeasurement(t),t}}class A{constructor(t,e){this.measurement=t,this.model=e}update(t,e){const i=e.hitTester().transformPointToWorld(t,{ignoreHitTest:!0}),n=e.hitTester().hitTest(t);if(null==i)throw new Error("Cannot update new measurement interaction. End point is empty.");n?(this.model.setIndicator(i),this.setMeasurement(this.getValidMeasurement(i))):(this.model.setIndicator(i),this.setMeasurement(this.getInvalidMeasurement(i)))}async finish(t,e){const i=await e.raycaster(),n=await S(i,t);if(this.model.setIndicator(void 0),null==n){const i=e.hitTester().transformPointToWorld(t,{ignoreHitTest:!0});if(null==i)throw new Error("Cannot complete edit measurement interaction. End point is empty.");return this.setMeasurement(this.getInvalidMeasurement(i))}return this.setMeasurement(this.getValidMeasurement(n))}setMeasurement(t){return this.model.setMeasurement(t),t}}class D extends A{constructor(t,e){super(t,e)}getInvalidMeasurement(t){return T(t,this.measurement.end)}getValidMeasurement(t){return L(t,this.measurement.end)}}class k extends A{constructor(t,e){super(t,e)}getInvalidMeasurement(t){return T(this.measurement.start,t)}getValidMeasurement(t){return L(this.measurement.start,t)}}async function S(t,e){var i;const n=await t.hitItems(e),[s]=null!==(i=null==n?void 0:n.hits)&&void 0!==i?i:[];if(null!=(null==s?void 0:s.hitPoint)){const t=v(s.hitPoint);if(P.isInvalid(t))throw new Error(`Invalid hit response [${t.errors.join(",")}]`);return t}}function L(t,e){return{start:t,end:e,distance:r.distance(t,e),valid:!0}}function T(t,e){return{start:t,end:e,valid:!1}}const H=({startPt:e,endPt:i,centerPt:n,indicatorPt:s,distance:r,anchorLabelOffset:h,lineCapLength:l,linePointerEvents:d,hideStartAnchor:c,hideEndAnchor:m,onStartAnchorPointerDown:v,onEndAnchorPointerDown:p})=>{const w=null!=e&&null!=i?a.fromPoints(e,i):void 0,f=null!=w&&null!=e&&null!=h?o.add(e,o.polar(-h,w)):void 0,b=null!=w&&null!=i&&null!=h?o.add(i,o.polar(h,w)):void 0;return t("div",null,null!=e&&null!=i&&t("vertex-viewer-measurement-line",{class:C("line",{"hide-start-line-cap":c,"hide-end-line-cap":m}),start:e,end:i,capLength:l,pointerEvents:d}),!c&&null!=e&&t("div",{id:"start-anchor",class:"anchor anchor-start",style:{transform:u(e)},onPointerDown:v},t("slot",{name:"start-anchor"},t("div",{class:"anchor-placeholder"}))),!c&&f&&t("div",{class:"anchor-label anchor-label-start",style:{transform:u(f)}},t("slot",{name:"start-label"})),!m&&null!=i&&t("div",{id:"end-anchor",class:"anchor anchor-end",style:{transform:u(i)},onPointerDown:p},t("slot",{name:"end-anchor"},t("div",{class:"anchor-placeholder"}))),!m&&b&&t("div",{class:"anchor-label anchor-label-end",style:{transform:u(b)}},t("slot",{name:"end-label"})),null!=n&&t("div",{id:"label",class:"distance-label",style:{transform:u(n)}},r),null!=s&&t("div",{class:"indicator",style:{transform:u(s)}},t("slot",{name:"indicator"},t("div",{class:"indicator-placeholder"}))))};let O=class{constructor(t){e(this,t),this.editBegin=i(this,"editBegin",7),this.editEnd=i(this,"editEnd",7),this.showAxisReferenceLines=!1,this.snapDistance=l,this.units="millimeters",this.fractionalDigits=2,this.anchorLabelOffset=20,this.lineCapLength=d,this.mode="",this.interactingAnchor="none",this.invalid=!1,this.measurementModel=new w,this.viewport=new g(0,0),this.interactionCount=0,this.invalidateStateCounter=0,this.stateMap={},this.measurementUnits=new p(this.units),this.model=j.empty(),this.controller=new x(this.model),this.overlays=new f,this.isUserInteractingWithModel=!1,this.handleFrameDrawn=()=>{this.invalidateState()},this.clearIndicator=()=>{this.controller.clearIndicator()},this.updateStartAnchor=async t=>{if(this.getStencilBuffer(),0===this.interactionCount){const e=m(t,this.elementBounds),i=this.snapPoint(e,t);this.updateIndicator(i)}},this.newMeasurement=t=>{if(0===this.interactionCount&&0===t.button){const e=t=>{const e=()=>{window.removeEventListener("pointerup",i),window.removeEventListener("pointermove",n)},i=async()=>{e(),t()},n=t=>{t.buttons>0&&e()};window.addEventListener("pointermove",n),window.addEventListener("pointerup",i)},i=t=>{let e=o.create(0,0);const i=i=>{o.distance(e,m(i))>=3&&t()},n=()=>(window.removeEventListener("pointermove",i),void window.removeEventListener("pointerup",n)),s=t=>{e=m(t),window.addEventListener("pointermove",i),window.addEventListener("pointerup",n)};return window.addEventListener("pointerdown",s),{dispose:()=>window.removeEventListener("pointerdown",s)}},n=()=>{const t=i((()=>{var t;this.isUserInteractingWithModel=!0,null===(t=this.stateMap.hoverCursor)||void 0===t||t.dispose()})),e=this.createInteractionMoveHandler(),n=async i=>{var s;if(0===i.button)if(this.isUserInteractingWithModel)this.isUserInteractingWithModel=!1;else{const r=this.getHitProvider();if(null!=r){const a=m(i,this.elementBounds),o=this.snapPoint(a,i);await(null===(s=this.interaction)||void 0===s?void 0:s.finish(o,r)),window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",n),t.dispose(),this.updateMeasurementPropsFromModel(),this.endEditing()}}};this.beginEditing("replace","end"),window.addEventListener("pointermove",e),window.addEventListener("pointerup",n)},s=this.getHitProvider();if(null!=s){const i=m(t,this.elementBounds),r=this.snapPoint(i,t);this.interaction=this.controller.newMeasurement(r,s),null!=this.interaction&&e(n)}}}}async computeElementMetrics(){var t,e,i;const n=null===(t=this.hostEl.shadowRoot)||void 0===t?void 0:t.getElementById("start-anchor"),s=null===(e=this.hostEl.shadowRoot)||void 0===e?void 0:e.getElementById("end-anchor"),r=null===(i=this.hostEl.shadowRoot)||void 0===i?void 0:i.getElementById("label");return null!=n&&null!=s&&null!=r?{startAnchor:n.getBoundingClientRect(),endAnchor:s.getBoundingClientRect(),label:r.getBoundingClientRect()}:void 0}disconnectedCallback(){var t;null===(t=this.stateMap.hoverCursor)||void 0===t||t.dispose()}componentWillLoad(){this.updatePropsFromJson(),this.model.setMeasurementFromValues(this.start,this.end,!this.invalid),this.getStencilBuffer(),this.updateViewport(),this.handleViewerChanged(this.viewer),this.handleModeChanged(),this.computePropsAndState(),this.model.onIndicatorChanged((t=>{this.indicatorPt=t}))}componentDidLoad(){new ResizeObserver((()=>this.updateViewport())).observe(this.hostEl)}componentWillUpdate(){this.computePropsAndState()}render(){return t(n,null,this.showAxisReferenceLines&&t("vertex-viewer-measurement-overlays",{measurementOverlays:this.overlays,viewer:this.viewer}),this.renderMeasurement())}renderMeasurement(){const e=this.computeElementPositions(),{startPt:i,endPt:n,labelPt:s,indicatorPt:r,hideStart:a,hideEnd:o}=e,h=this.formatDistance(this.distance);return t(H,"edit"===this.mode||"replace"===this.mode?{startPt:i,endPt:n,centerPt:s,indicatorPt:r,distance:h,anchorLabelOffset:this.anchorLabelOffset,lineCapLength:this.lineCapLength,hideStartAnchor:a,hideEndAnchor:o,onStartAnchorPointerDown:this.handleEditAnchor("start"),onEndAnchorPointerDown:this.handleEditAnchor("end")}:{startPt:i,endPt:n,centerPt:s,indicatorPt:this.indicatorPt,distance:h,hideStartAnchor:a,hideEndAnchor:o,anchorLabelOffset:this.anchorLabelOffset,lineCapLength:this.lineCapLength,linePointerEvents:"painted"})}handleViewerChanged(t,e){null!=e&&(e.removeEventListener("frameDrawn",this.handleFrameDrawn),this.removeInteractionListeners(e)),null!=t&&(t.addEventListener("frameDrawn",this.handleFrameDrawn),this.addInteractionListeners(t))}handleUnitsChanged(){this.measurementUnits=new p(this.units)}handleCameraChanged(){this.updateCamera()}handleModeChanged(){this.warnIfDepthBuffersDisabled(),null!=this.viewer&&(this.removeInteractionListeners(this.viewer),this.addInteractionListeners(this.viewer))}handleStartChanged(){this.updateInteractionModel()}handleEndChanged(){this.updateInteractionModel()}handleInvalidChanged(){this.updateInteractionModel()}computePropsAndState(){this.updateCamera(),this.updateDepthBuffer(),this.updateMeasurementPropsFromModel(),this.updateOverlays()}updateOverlays(){var t;null===(t=this.overlay)||void 0===t||t.dispose(),this.showAxisReferenceLines&&0===this.interactionCount&&!this.invalid&&null!=this.start&&null!=this.end&&(this.overlay=this.overlays.addDistanceVector(this.start,this.end))}async setCursor(t){var e,i;null===(e=this.stateMap.hoverCursor)||void 0===e||e.dispose(),this.isUserInteractingWithModel||(this.stateMap.hoverCursor=await(null===(i=this.viewer)||void 0===i?void 0:i.addCursor(t)))}computeElementPositions(){return"replace"===this.mode?this.computeReplaceElementPositions():this.computeEditOrViewElementPositions()}computeEditOrViewElementPositions(){const t=this.model.getMeasurement();return null!=this.internalCamera&&null!=t?this.computeLineElementPositions(h.create(t)):{}}computeReplaceElementPositions(){if(null!=this.internalCamera){const t=this.model.getMeasurement(),e=null!=t?this.computeLineElementPositions(h.create(t)):{},i=null!=this.indicatorPt?{indicatorPt:this.viewport.transformWorldToViewport(this.indicatorPt,this.internalCamera.projectionViewMatrix)}:{};return Object.assign(Object.assign({},e),i)}return{}}computeLineElementPositions(t){return null!=this.internalCamera?E(t,this.interactingAnchor,{viewport:this.viewport,camera:this.internalCamera}):{}}updateCamera(){var t,e;this.internalCamera=this.camera||(null===(e=null===(t=this.viewer)||void 0===t?void 0:t.frame)||void 0===e?void 0:e.scene.camera)}async updateDepthBuffer(){var t,e;this.stateMap.depthBuffer=await(null===(e=null===(t=this.viewer)||void 0===t?void 0:t.frame)||void 0===e?void 0:e.depthBuffer())}updateViewport(){const t=this.hostEl.getBoundingClientRect();this.viewport=new g(t.width,t.height),this.elementBounds=t}updatePropsFromJson(){var t,e;this.start=V(null!==(t=this.startJson)&&void 0!==t?t:this.start),this.end=V(null!==(e=this.endJson)&&void 0!==e?e:this.end)}updateInteractionModel(){this.model.setMeasurementFromValues(this.start,this.end,!this.invalid)}invalidateState(){this.invalidateStateCounter=this.invalidateStateCounter+1}async addInteractionListeners(t){const e=await t.getInteractionTarget();"replace"===this.mode&&(e.addEventListener("pointermove",this.updateStartAnchor),e.addEventListener("pointerdown",this.newMeasurement),e.addEventListener("pointerleave",this.clearIndicator))}async removeInteractionListeners(t){const e=await t.getInteractionTarget();e.removeEventListener("pointermove",this.updateStartAnchor),e.removeEventListener("pointerdown",this.newMeasurement),e.removeEventListener("pointerleave",this.clearIndicator)}handleEditAnchor(t){if("edit"===this.mode||"replace"===this.mode){const e=this.createInteractionMoveHandler(),i=async t=>{var n;const s=this.getHitProvider();if(null!=s){window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",i);const r=m(t,this.elementBounds),a=this.snapPoint(r,t);await(null===(n=this.interaction)||void 0===n?void 0:n.finish(a,s)),this.updateMeasurementPropsFromModel(),this.endEditing()}};return n=>{this.getStencilBuffer(),0===n.button&&(this.beginEditing("edit",t),this.interaction=this.controller.editMeasurement(t),window.addEventListener("pointermove",e),window.addEventListener("pointerup",i))}}}createInteractionMoveHandler(){return t=>{var e;const i=this.getHitProvider();if(null!=this.elementBounds&&null!=i){t.preventDefault(),this.getStencilBuffer();const n=m(t,this.elementBounds),s=this.snapPoint(n,t);null===(e=this.interaction)||void 0===e||e.update(s,i),this.updateMeasurementPropsFromModel()}}}async getStencilBuffer(){var t;const e=await(null===(t=this.viewer)||void 0===t?void 0:t.stencilBuffer.latestAfterInteraction());this.stateMap.stencil=e}snapPoint(t,e){const i=this.getHitProvider();if(null!=i&&!e.shiftKey){const e=Math.max(0,this.snapDistance);return i.hitTester().snapToNearestPixel(t,e)}return t}formatDistance(t){const e=null!=t?this.measurementUnits.convertWorldValueToReal(t):void 0;if(null!=this.labelFormatter)return this.labelFormatter(e);{const t=this.measurementUnits.unit.abbreviatedName;return null==e?"---":`~${e.toFixed(this.fractionalDigits)} ${t}`}}beginEditing(t,e){0===this.interactionCount&&(this.interactingAnchor=e,this.editBegin.emit({type:t,anchor:e})),this.interactionCount=this.interactionCount+1}endEditing(){if(1===this.interactionCount){const t=this.model.getMeasurement();this.interactingAnchor="none",this.updateMeasurementModel(),null!=t&&this.editEnd.emit(t)}this.interactionCount=this.interactionCount-1}updateMeasurementModel(){this.measurementModel.clearOutcome(),this.invalid||null==this.start||null==this.end||this.measurementModel.setOutcome({isApproximate:!0,results:[b(this.start,this.end)]})}getHitProvider(){if(null!=this.hitProvider)return this.hitProvider;{const t=this.getHitTester(),e=this.viewer;if(null!=e&&null!=t)return{hitTester:()=>t,raycaster:async()=>(await e.scene()).raycaster()}}}getHitTester(){const{stencil:t,depthBuffer:e}=this.stateMap;if(null!=e)return new M(t,e,this.viewport)}updateMeasurementPropsFromModel(){const t=this.model.getMeasurement();this.start=null==t?void 0:t.start,this.end=null==t?void 0:t.end,this.distance=null==t?void 0:t.distance,this.invalid=null!=t&&!t.valid}updateIndicator(t){var e;const i=this.getHitProvider();null!=i&&this.controller.moveIndicator(t,i)?this.setCursor(c):null===(e=this.stateMap.hoverCursor)||void 0===e||e.dispose()}warnIfDepthBuffersDisabled(){null!=this.viewer&&null==this.viewer.depthBuffers&&console.warn("Measurement editing is disabled. <vertex-viewer> must have its `depth-buffers` attribute set.")}get hostEl(){return s(this)}static get watchers(){return{viewer:["handleViewerChanged"],units:["handleUnitsChanged"],camera:["handleCameraChanged"],mode:["handleModeChanged"],start:["handleStartChanged"],end:["handleEndChanged"],invalid:["handleInvalidChanged"]}}};function V(t){return"string"==typeof t?r.fromJson(t):t}O.style=":host{--viewer-measurement-distance-accent-color:var(--neutral-900);--viewer-measurement-distance-contrast-color:var(--white);--viewer-measurement-distance-invalid-accent-color:var(--red-600);--viewer-measurement-distance-invalid-contrast-color:var(--white);--viewer-measurement-distance-line-stroke-width:1.25px;--viewer-measurement-distance-line-fill-width:2px;--viewer-measurement-distance-distance-border:1px solid\n var(--viewer-measurement-distance-accent-color);--viewer-measurement-distance-distance-border-radius:0.25rem;--viewer-measurement-distance-distance-padding:0.375rem 0.5rem;color:var(--viewer-measurement-distance-accent-color);font-size:0.75rem;position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden;pointer-events:none}:host([invalid]:not([invalid='false'])){--viewer-measurement-distance-accent-color:var(\n --viewer-measurement-distance-invalid-accent-color\n ) !important;--viewer-measurement-distance-contrast-color:var(\n --viewer-measurement-distance-invalid-contrast-color\n ) !important}.line{--viewer-measurement-line-stroke:var(\n --viewer-measurement-distance-contrast-color\n );--viewer-measurement-line-stroke-opacity:0.75;--viewer-measurement-line-stroke-width:var(\n --viewer-measurement-distance-line-stroke-width\n );--viewer-measurement-line-fill:var(\n --viewer-measurement-distance-accent-color\n );--viewer-measurement-line-fill-width:var(\n --viewer-measurement-distance-line-fill-width\n );position:absolute;width:100%;height:100%}.anchor{position:absolute;border-radius:50%;transform:translate(-50%, -50%);display:block;pointer-events:auto}:host([interacting-anchor='start']) .anchor-start,:host([interacting-anchor='start']) .anchor-label-start{visibility:hidden}.hide-start-line-cap,:host([interacting-anchor='start']) .line{--viewer-measurement-line-start-cap-visibility:hidden}:host([interacting-anchor='end']) .anchor-end,:host([interacting-anchor='end']) .anchor-label-end{visibility:hidden}.hide-end-line-cap,:host([interacting-anchor='end']) .line{--viewer-measurement-line-end-cap-visibility:hidden}.anchor-label{position:absolute;border-radius:50%;transform:translate(-50%, -50%);display:block;pointer-events:auto}:host(:not([mode=''])){cursor:inherit}:host(:not([mode=''])) .anchor{cursor:move}:host([mode='']) .anchor{visibility:hidden}.anchor-placeholder{background:var(--viewer-measurement-distance-contrast-color);width:12px;height:12px;border-radius:50%;box-sizing:border-box}:host(:not([mode=''])) .anchor-placeholder{border:2px solid var(--viewer-measurement-distance-accent-color);background:var(--viewer-measurement-distance-contrast-color)}:host([mode='']) .distance-label{color:var(--viewer-measurement-distance-contrast-color);background:var(--viewer-measurement-distance-accent-color)}.distance-label{position:absolute;background:var(--viewer-measurement-distance-contrast-color);border:var(--viewer-measurement-distance-distance-border);border-radius:var(--viewer-measurement-distance-distance-border-radius);padding:var(--viewer-measurement-distance-distance-padding);pointer-events:auto}.indicator{position:absolute}.indicator-placeholder{background:var(--viewer-measurement-distance-accent-color);border:1px solid var(--viewer-measurement-distance-contrast-color);width:6px;height:6px;border-radius:50%;box-sizing:border-box}";export{O as vertex_viewer_measurement_distance}
4
+ import{h as t,r as e,c as i,H as n,g as s}from"./p-cafa57a6.js";import{v as r,g as a,p as o,l as h}from"./p-121f2b40.js";import{M as l,a as d}from"./p-849bd025.js";import{m as c}from"./p-6120a219.js";import{a as u,g as m}from"./p-b8f027eb.js";import"./p-61db972b.js";import"./p-3a20a038.js";import{h as v,D as p}from"./p-18ec4fed.js";import{M as w}from"./p-25dfee48.js";import{M as f}from"./p-9fd5fc8e.js";import{m as b}from"./p-463151e0.js";import{V as g}from"./p-e3fff448.js";import{E as y,m as P}from"./p-546ae240.js";import{g as E}from"./p-ce0fe8be.js";import{c as C}from"./p-f482325b.js";import"./p-112455b1.js";class M{constructor(t,e,i){this.stencil=t,this.depthBuffer=e,this.viewport=i}hitTest(t){const e=this.viewport.transformPointToFrame(t,this.depthBuffer);if(null!=this.stencil){const i=this.viewport.transformPointToFrame(t,this.stencil);return this.stencil.hitTest(i)||this.depthBuffer.hitTest(e)}return this.depthBuffer.hitTest(e)}snapToNearestPixel(t,e){if(null!=this.stencil){const i=this.viewport.transformPointToFrame(t,this.stencil),n=this.stencil.snapToNearestPixel(i,e);return this.viewport.transformPointToViewport(n,this.stencil)}return t}transformPointToWorld(t,{ignoreHitTest:e=!1}={}){const i=this.pickDepthBuffer(t);return null!=i?this.viewport.transformPointToWorldSpace(t,i):e?this.viewport.transformPointToWorldSpace(t,this.depthBuffer):void 0}pickDepthBuffer(t){if(null!=this.stencil){const e=this.viewport.transformPointToFrame(t,this.stencil);if(this.stencil.hitTest(e))return this.stencil.depthBuffer}const e=this.viewport.transformPointToFrame(t,this.depthBuffer);return this.depthBuffer.hitTest(e)?this.depthBuffer:void 0}}class x{constructor(t){this.model=t}newMeasurement(t,e){const i=e.hitTester().transformPointToWorld(t);return null!=i?new I(t,i,this.model):void 0}editMeasurement(t){const e=this.model.getMeasurement();if(null==e)throw new Error("Cannot edit measurement. Measurement is empty.");return"start"===t?new D(e,this.model):new k(e,this.model)}clearIndicator(){this.model.setIndicator(void 0)}moveIndicator(t,e){const i=e.hitTester().transformPointToWorld(t);return this.model.setIndicator(i),null!=i}}class j{constructor(){this.measurementChanged=new y,this.indicatorChanged=new y}static empty(){return new j}getMeasurement(){return this.measurement}setMeasurement(t){this.measurement!==t&&(this.measurement=t,this.measurementChanged.emit(t))}setMeasurementFromValues(t,e,i){if(null!=t&&null!=e){const n=i?L(t,e):T(t,e);this.setMeasurement(n)}else this.setMeasurement(void 0)}onMeasurementChanged(t){return this.measurementChanged.on(t)}getIndicator(){return this.indicator}setIndicator(t){this.indicator!==t&&(this.indicator=t,this.indicatorChanged.emit(t))}onIndicatorChanged(t){return this.indicatorChanged.on(t)}}class I{constructor(t,e,i){this.pt=t,this.world=e,this.model=i,this.hitWorldValid=!0,this.preventUpdate=!1}fetchStartIfMissing(t){null==this.pendingStart&&(this.pendingStart=this.fetchStart(t))}async fetchStart(t){const e=await t.raycaster(),i=await S(e,this.pt);if(null==i){const e=t.hitTester().transformPointToWorld(this.pt);this.hitWorld=e,this.hitWorldValid=!1}else this.hitWorld=i,this.hitWorldValid=!0}update(t,e){var i;if(!this.preventUpdate){this.fetchStartIfMissing(e);const n=e.hitTester().transformPointToWorld(t,{ignoreHitTest:!0}),s=e.hitTester().hitTest(t),r=null!==(i=this.hitWorld)&&void 0!==i?i:this.world;if(null==n)throw new Error("Cannot update new measurement interaction. End point is empty.");this.hitWorldValid&&s?(this.model.setIndicator(n),this.setMeasurement(L(r,n))):(this.model.setIndicator(n),this.setMeasurement(T(r,n)))}}async finish(t,e){var i;this.preventUpdate=!0,this.fetchStartIfMissing(e),await this.pendingStart,this.model.setIndicator(void 0);const n=await e.raycaster(),s=await S(n,t),r=null!==(i=this.hitWorld)&&void 0!==i?i:this.world;if(this.preventUpdate=!1,null==s){const i=e.hitTester().transformPointToWorld(t,{ignoreHitTest:!0});if(null==i)throw new Error("Cannot complete new measurement interaction. End point is empty.");return this.setMeasurement(T(r,i))}return this.setMeasurement(this.hitWorldValid?L(r,s):T(r,s))}setMeasurement(t){return this.model.setMeasurement(t),t}}class A{constructor(t,e){this.measurement=t,this.model=e}update(t,e){const i=e.hitTester().transformPointToWorld(t,{ignoreHitTest:!0}),n=e.hitTester().hitTest(t);if(null==i)throw new Error("Cannot update new measurement interaction. End point is empty.");n?(this.model.setIndicator(i),this.setMeasurement(this.getValidMeasurement(i))):(this.model.setIndicator(i),this.setMeasurement(this.getInvalidMeasurement(i)))}async finish(t,e){const i=await e.raycaster(),n=await S(i,t);if(this.model.setIndicator(void 0),null==n){const i=e.hitTester().transformPointToWorld(t,{ignoreHitTest:!0});if(null==i)throw new Error("Cannot complete edit measurement interaction. End point is empty.");return this.setMeasurement(this.getInvalidMeasurement(i))}return this.setMeasurement(this.getValidMeasurement(n))}setMeasurement(t){return this.model.setMeasurement(t),t}}class D extends A{constructor(t,e){super(t,e)}getInvalidMeasurement(t){return T(t,this.measurement.end)}getValidMeasurement(t){return L(t,this.measurement.end)}}class k extends A{constructor(t,e){super(t,e)}getInvalidMeasurement(t){return T(this.measurement.start,t)}getValidMeasurement(t){return L(this.measurement.start,t)}}async function S(t,e){var i;const n=await t.hitItems(e),[s]=null!==(i=null==n?void 0:n.hits)&&void 0!==i?i:[];if(null!=(null==s?void 0:s.hitPoint)){const t=v(s.hitPoint);if(P.isInvalid(t))throw new Error(`Invalid hit response [${t.errors.join(",")}]`);return t}}function L(t,e){return{start:t,end:e,distance:r.distance(t,e),valid:!0}}function T(t,e){return{start:t,end:e,valid:!1}}const H=({startPt:e,endPt:i,centerPt:n,indicatorPt:s,distance:r,anchorLabelOffset:h,lineCapLength:l,linePointerEvents:d,hideStartAnchor:c,hideEndAnchor:m,onStartAnchorPointerDown:v,onEndAnchorPointerDown:p})=>{const w=null!=e&&null!=i?a.fromPoints(e,i):void 0,f=null!=w&&null!=e&&null!=h?o.add(e,o.polar(-h,w)):void 0,b=null!=w&&null!=i&&null!=h?o.add(i,o.polar(h,w)):void 0;return t("div",null,null!=e&&null!=i&&t("vertex-viewer-measurement-line",{class:C("line",{"hide-start-line-cap":c,"hide-end-line-cap":m}),start:e,end:i,capLength:l,pointerEvents:d}),!c&&null!=e&&t("div",{id:"start-anchor",class:"anchor anchor-start",style:{transform:u(e)},onPointerDown:v},t("slot",{name:"start-anchor"},t("div",{class:"anchor-placeholder"}))),!c&&f&&t("div",{class:"anchor-label anchor-label-start",style:{transform:u(f)}},t("slot",{name:"start-label"})),!m&&null!=i&&t("div",{id:"end-anchor",class:"anchor anchor-end",style:{transform:u(i)},onPointerDown:p},t("slot",{name:"end-anchor"},t("div",{class:"anchor-placeholder"}))),!m&&b&&t("div",{class:"anchor-label anchor-label-end",style:{transform:u(b)}},t("slot",{name:"end-label"})),null!=n&&t("div",{id:"label",class:"distance-label",style:{transform:u(n)}},r),null!=s&&t("div",{class:"indicator",style:{transform:u(s)}},t("slot",{name:"indicator"},t("div",{class:"indicator-placeholder"}))))};let O=class{constructor(t){e(this,t),this.editBegin=i(this,"editBegin",7),this.editEnd=i(this,"editEnd",7),this.showAxisReferenceLines=!1,this.snapDistance=l,this.units="millimeters",this.fractionalDigits=2,this.anchorLabelOffset=20,this.lineCapLength=d,this.mode="",this.interactingAnchor="none",this.invalid=!1,this.measurementModel=new w,this.viewport=new g(0,0),this.interactionCount=0,this.invalidateStateCounter=0,this.stateMap={},this.measurementUnits=new p(this.units),this.model=j.empty(),this.controller=new x(this.model),this.overlays=new f,this.isUserInteractingWithModel=!1,this.handleFrameDrawn=()=>{this.invalidateState()},this.clearIndicator=()=>{this.controller.clearIndicator()},this.updateStartAnchor=async t=>{if(this.getStencilBuffer(),0===this.interactionCount){const e=m(t,this.elementBounds),i=this.snapPoint(e,t);this.updateIndicator(i)}},this.newMeasurement=t=>{if(0===this.interactionCount&&0===t.button){const e=t=>{const e=()=>{window.removeEventListener("pointerup",i),window.removeEventListener("pointermove",n)},i=async()=>{e(),t()},n=t=>{t.buttons>0&&e()};window.addEventListener("pointermove",n),window.addEventListener("pointerup",i)},i=t=>{let e=o.create(0,0);const i=i=>{o.distance(e,m(i))>=3&&t()},n=()=>(window.removeEventListener("pointermove",i),void window.removeEventListener("pointerup",n)),s=t=>{e=m(t),window.addEventListener("pointermove",i),window.addEventListener("pointerup",n)};return window.addEventListener("pointerdown",s),{dispose:()=>window.removeEventListener("pointerdown",s)}},n=()=>{const t=i((()=>{var t;this.isUserInteractingWithModel=!0,null===(t=this.stateMap.hoverCursor)||void 0===t||t.dispose()})),e=this.createInteractionMoveHandler(),n=async i=>{var s;if(0===i.button)if(this.isUserInteractingWithModel)this.isUserInteractingWithModel=!1;else{const r=this.getHitProvider();if(null!=r){const a=m(i,this.elementBounds),o=this.snapPoint(a,i);await(null===(s=this.interaction)||void 0===s?void 0:s.finish(o,r)),window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",n),t.dispose(),this.updateMeasurementPropsFromModel(),this.endEditing()}}};this.beginEditing("replace","end"),window.addEventListener("pointermove",e),window.addEventListener("pointerup",n)},s=this.getHitProvider();if(null!=s){const i=m(t,this.elementBounds),r=this.snapPoint(i,t);this.interaction=this.controller.newMeasurement(r,s),null!=this.interaction&&e(n)}}}}async computeElementMetrics(){var t,e,i;const n=null===(t=this.hostEl.shadowRoot)||void 0===t?void 0:t.getElementById("start-anchor"),s=null===(e=this.hostEl.shadowRoot)||void 0===e?void 0:e.getElementById("end-anchor"),r=null===(i=this.hostEl.shadowRoot)||void 0===i?void 0:i.getElementById("label");return null!=n&&null!=s&&null!=r?{startAnchor:n.getBoundingClientRect(),endAnchor:s.getBoundingClientRect(),label:r.getBoundingClientRect()}:void 0}disconnectedCallback(){var t;null===(t=this.stateMap.hoverCursor)||void 0===t||t.dispose()}componentWillLoad(){this.updatePropsFromJson(),this.model.setMeasurementFromValues(this.start,this.end,!this.invalid),this.getStencilBuffer(),this.updateViewport(),this.handleViewerChanged(this.viewer),this.handleModeChanged(),this.computePropsAndState(),this.model.onIndicatorChanged((t=>{this.indicatorPt=t}))}componentDidLoad(){new ResizeObserver((()=>this.updateViewport())).observe(this.hostEl)}componentWillUpdate(){this.computePropsAndState()}render(){return t(n,null,this.showAxisReferenceLines&&t("vertex-viewer-measurement-overlays",{measurementOverlays:this.overlays,viewer:this.viewer}),this.renderMeasurement())}renderMeasurement(){const e=this.computeElementPositions(),{startPt:i,endPt:n,labelPt:s,indicatorPt:r,hideStart:a,hideEnd:o}=e,h=this.formatDistance(this.distance);return t(H,"edit"===this.mode||"replace"===this.mode?{startPt:i,endPt:n,centerPt:s,indicatorPt:r,distance:h,anchorLabelOffset:this.anchorLabelOffset,lineCapLength:this.lineCapLength,hideStartAnchor:a,hideEndAnchor:o,onStartAnchorPointerDown:this.handleEditAnchor("start"),onEndAnchorPointerDown:this.handleEditAnchor("end")}:{startPt:i,endPt:n,centerPt:s,indicatorPt:this.indicatorPt,distance:h,hideStartAnchor:a,hideEndAnchor:o,anchorLabelOffset:this.anchorLabelOffset,lineCapLength:this.lineCapLength,linePointerEvents:"painted"})}handleViewerChanged(t,e){null!=e&&(e.removeEventListener("frameDrawn",this.handleFrameDrawn),this.removeInteractionListeners(e)),null!=t&&(t.addEventListener("frameDrawn",this.handleFrameDrawn),this.addInteractionListeners(t))}handleUnitsChanged(){this.measurementUnits=new p(this.units)}handleCameraChanged(){this.updateCamera()}handleModeChanged(){this.warnIfDepthBuffersDisabled(),null!=this.viewer&&(this.removeInteractionListeners(this.viewer),this.addInteractionListeners(this.viewer))}handleStartChanged(){this.updateInteractionModel()}handleEndChanged(){this.updateInteractionModel()}handleInvalidChanged(){this.updateInteractionModel()}computePropsAndState(){this.updateCamera(),this.updateDepthBuffer(),this.updateMeasurementPropsFromModel(),this.updateOverlays()}updateOverlays(){var t;null===(t=this.overlay)||void 0===t||t.dispose(),this.showAxisReferenceLines&&0===this.interactionCount&&!this.invalid&&null!=this.start&&null!=this.end&&(this.overlay=this.overlays.addDistanceVector(this.start,this.end))}async setCursor(t){var e,i;null===(e=this.stateMap.hoverCursor)||void 0===e||e.dispose(),this.isUserInteractingWithModel||(this.stateMap.hoverCursor=await(null===(i=this.viewer)||void 0===i?void 0:i.addCursor(t)))}computeElementPositions(){return"replace"===this.mode?this.computeReplaceElementPositions():this.computeEditOrViewElementPositions()}computeEditOrViewElementPositions(){const t=this.model.getMeasurement();return null!=this.internalCamera&&null!=t?this.computeLineElementPositions(h.create(t)):{}}computeReplaceElementPositions(){if(null!=this.internalCamera){const t=this.model.getMeasurement(),e=null!=t?this.computeLineElementPositions(h.create(t)):{},i=null!=this.indicatorPt?{indicatorPt:this.viewport.transformWorldToViewport(this.indicatorPt,this.internalCamera.projectionViewMatrix)}:{};return Object.assign(Object.assign({},e),i)}return{}}computeLineElementPositions(t){return null!=this.internalCamera?E(t,this.interactingAnchor,{viewport:this.viewport,camera:this.internalCamera}):{}}updateCamera(){var t,e;this.internalCamera=this.camera||(null===(e=null===(t=this.viewer)||void 0===t?void 0:t.frame)||void 0===e?void 0:e.scene.camera)}async updateDepthBuffer(){var t,e;this.stateMap.depthBuffer=await(null===(e=null===(t=this.viewer)||void 0===t?void 0:t.frame)||void 0===e?void 0:e.depthBuffer())}updateViewport(){const t=this.hostEl.getBoundingClientRect();this.viewport=new g(t.width,t.height),this.elementBounds=t}updatePropsFromJson(){var t,e;this.start=V(null!==(t=this.startJson)&&void 0!==t?t:this.start),this.end=V(null!==(e=this.endJson)&&void 0!==e?e:this.end)}updateInteractionModel(){this.model.setMeasurementFromValues(this.start,this.end,!this.invalid)}invalidateState(){this.invalidateStateCounter=this.invalidateStateCounter+1}async addInteractionListeners(t){const e=await t.getInteractionTarget();"replace"===this.mode&&(e.addEventListener("pointermove",this.updateStartAnchor),e.addEventListener("pointerdown",this.newMeasurement),e.addEventListener("pointerleave",this.clearIndicator))}async removeInteractionListeners(t){const e=await t.getInteractionTarget();e.removeEventListener("pointermove",this.updateStartAnchor),e.removeEventListener("pointerdown",this.newMeasurement),e.removeEventListener("pointerleave",this.clearIndicator)}handleEditAnchor(t){if("edit"===this.mode||"replace"===this.mode){const e=this.createInteractionMoveHandler(),i=async t=>{var n;const s=this.getHitProvider();if(null!=s){window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",i);const r=m(t,this.elementBounds),a=this.snapPoint(r,t);await(null===(n=this.interaction)||void 0===n?void 0:n.finish(a,s)),this.updateMeasurementPropsFromModel(),this.endEditing()}};return n=>{this.getStencilBuffer(),0===n.button&&(this.beginEditing("edit",t),this.interaction=this.controller.editMeasurement(t),window.addEventListener("pointermove",e),window.addEventListener("pointerup",i))}}}createInteractionMoveHandler(){return t=>{var e;const i=this.getHitProvider();if(null!=this.elementBounds&&null!=i){t.preventDefault(),this.getStencilBuffer();const n=m(t,this.elementBounds),s=this.snapPoint(n,t);null===(e=this.interaction)||void 0===e||e.update(s,i),this.updateMeasurementPropsFromModel()}}}async getStencilBuffer(){var t;const e=await(null===(t=this.viewer)||void 0===t?void 0:t.stencilBuffer.latestAfterInteraction());this.stateMap.stencil=e}snapPoint(t,e){const i=this.getHitProvider();if(null!=i&&!e.shiftKey){const e=Math.max(0,this.snapDistance);return i.hitTester().snapToNearestPixel(t,e)}return t}formatDistance(t){const e=null!=t?this.measurementUnits.convertWorldValueToReal(t):void 0;if(null!=this.labelFormatter)return this.labelFormatter(e);{const t=this.measurementUnits.unit.abbreviatedName;return null==e?"---":`~${e.toFixed(this.fractionalDigits)} ${t}`}}beginEditing(t,e){0===this.interactionCount&&(this.interactingAnchor=e,this.editBegin.emit({type:t,anchor:e})),this.interactionCount=this.interactionCount+1}endEditing(){if(1===this.interactionCount){const t=this.model.getMeasurement();this.interactingAnchor="none",this.updateMeasurementModel(),null!=t&&this.editEnd.emit(t)}this.interactionCount=this.interactionCount-1}updateMeasurementModel(){this.measurementModel.clearOutcome(),this.invalid||null==this.start||null==this.end||this.measurementModel.setOutcome({isApproximate:!0,results:[b(this.start,this.end)]})}getHitProvider(){if(null!=this.hitProvider)return this.hitProvider;{const t=this.getHitTester(),e=this.viewer;if(null!=e&&null!=t)return{hitTester:()=>t,raycaster:async()=>(await e.scene()).raycaster()}}}getHitTester(){const{stencil:t,depthBuffer:e}=this.stateMap;if(null!=e)return new M(t,e,this.viewport)}updateMeasurementPropsFromModel(){const t=this.model.getMeasurement();this.start=null==t?void 0:t.start,this.end=null==t?void 0:t.end,this.distance=null==t?void 0:t.distance,this.invalid=null!=t&&!t.valid}updateIndicator(t){var e;const i=this.getHitProvider();null!=i&&this.controller.moveIndicator(t,i)?this.setCursor(c):null===(e=this.stateMap.hoverCursor)||void 0===e||e.dispose()}warnIfDepthBuffersDisabled(){null!=this.viewer&&null==this.viewer.depthBuffers&&console.warn("Measurement editing is disabled. <vertex-viewer> must have its `depth-buffers` attribute set.")}get hostEl(){return s(this)}static get watchers(){return{viewer:["handleViewerChanged"],units:["handleUnitsChanged"],camera:["handleCameraChanged"],mode:["handleModeChanged"],start:["handleStartChanged"],end:["handleEndChanged"],invalid:["handleInvalidChanged"]}}};function V(t){return"string"==typeof t?r.fromJson(t):t}O.style=":host{--viewer-measurement-distance-accent-color:var(--neutral-900);--viewer-measurement-distance-contrast-color:var(--white);--viewer-measurement-distance-invalid-accent-color:var(--red-600);--viewer-measurement-distance-invalid-contrast-color:var(--white);--viewer-measurement-distance-line-stroke-width:1.25px;--viewer-measurement-distance-line-fill-width:2px;--viewer-measurement-distance-distance-border:1px solid\n var(--viewer-measurement-distance-accent-color);--viewer-measurement-distance-distance-border-radius:0.25rem;--viewer-measurement-distance-distance-padding:0.375rem 0.5rem;color:var(--viewer-measurement-distance-accent-color);font-size:0.75rem;position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden;pointer-events:none}:host([invalid]:not([invalid='false'])){--viewer-measurement-distance-accent-color:var(\n --viewer-measurement-distance-invalid-accent-color\n ) !important;--viewer-measurement-distance-contrast-color:var(\n --viewer-measurement-distance-invalid-contrast-color\n ) !important}.line{--viewer-measurement-line-stroke:var(\n --viewer-measurement-distance-contrast-color\n );--viewer-measurement-line-stroke-opacity:0.75;--viewer-measurement-line-stroke-width:var(\n --viewer-measurement-distance-line-stroke-width\n );--viewer-measurement-line-fill:var(\n --viewer-measurement-distance-accent-color\n );--viewer-measurement-line-fill-width:var(\n --viewer-measurement-distance-line-fill-width\n );position:absolute;width:100%;height:100%}.anchor{position:absolute;border-radius:50%;transform:translate(-50%, -50%);display:block;pointer-events:auto}:host([interacting-anchor='start']) .anchor-start,:host([interacting-anchor='start']) .anchor-label-start{visibility:hidden}.hide-start-line-cap,:host([interacting-anchor='start']) .line{--viewer-measurement-line-start-cap-visibility:hidden}:host([interacting-anchor='end']) .anchor-end,:host([interacting-anchor='end']) .anchor-label-end{visibility:hidden}.hide-end-line-cap,:host([interacting-anchor='end']) .line{--viewer-measurement-line-end-cap-visibility:hidden}.anchor-label{position:absolute;border-radius:50%;transform:translate(-50%, -50%);display:block;pointer-events:auto}:host(:not([mode=''])){cursor:inherit}:host(:not([mode=''])) .anchor{cursor:move}:host([mode='']) .anchor{visibility:hidden}.anchor-placeholder{background:var(--viewer-measurement-distance-contrast-color);width:12px;height:12px;border-radius:50%;box-sizing:border-box}:host(:not([mode=''])) .anchor-placeholder{border:2px solid var(--viewer-measurement-distance-accent-color);background:var(--viewer-measurement-distance-contrast-color)}:host([mode='']) .distance-label{color:var(--viewer-measurement-distance-contrast-color);background:var(--viewer-measurement-distance-accent-color)}.distance-label{position:absolute;background:var(--viewer-measurement-distance-contrast-color);border:var(--viewer-measurement-distance-distance-border);border-radius:var(--viewer-measurement-distance-distance-border-radius);padding:var(--viewer-measurement-distance-distance-padding);pointer-events:auto}.indicator{position:absolute}.indicator-placeholder{background:var(--viewer-measurement-distance-accent-color);border:1px solid var(--viewer-measurement-distance-contrast-color);width:6px;height:6px;border-radius:50%;box-sizing:border-box}";export{O as vertex_viewer_measurement_distance}
@@ -1,4 +1,4 @@
1
1
  /**!
2
2
  * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
3
  */
4
- import{E as t,o as s}from"./p-301660cf.js";class i{constructor(){this.entities=new Set,this.results=new Set,this.entitiesChanged=new t,this.outcomeChanged=new t}addEntity(t){return!this.entities.has(t)&&(this.entities.add(t),this.entitiesChanged.emit(this.getEntities()),!0)}clearEntities(){this.entities.forEach((t=>this.removeEntity(t)))}clearOutcome(){this.setOutcome(void 0)}setOutcome(t){s.isEqual(this.outcome,t)||(this.outcome=t,this.outcomeChanged.emit(t))}getEntities(){return Array.from(this.entities)}getOutcome(){return this.outcome}getResults(){return Array.from(this.results)}removeEntity(t){return!!this.entities.has(t)&&(this.entities.delete(t),this.entitiesChanged.emit(this.getEntities()),!0)}setEntities(t){return this.entities.clear(),t.forEach((t=>this.entities.add(t))),this.entitiesChanged.emit(this.getEntities()),!0}onOutcomeChanged(t){return this.outcomeChanged.on(t)}onEntitiesChanged(t){return this.entitiesChanged.on(t)}}export{i as M}
4
+ import{E as t,o as s}from"./p-546ae240.js";class i{constructor(){this.entities=new Set,this.results=new Set,this.entitiesChanged=new t,this.outcomeChanged=new t}addEntity(t){return!this.entities.has(t)&&(this.entities.add(t),this.entitiesChanged.emit(this.getEntities()),!0)}clearEntities(){this.entities.forEach((t=>this.removeEntity(t)))}clearOutcome(){this.setOutcome(void 0)}setOutcome(t){s.isEqual(this.outcome,t)||(this.outcome=t,this.outcomeChanged.emit(t))}getEntities(){return Array.from(this.entities)}getOutcome(){return this.outcome}getResults(){return Array.from(this.results)}removeEntity(t){return!!this.entities.has(t)&&(this.entities.delete(t),this.entitiesChanged.emit(this.getEntities()),!0)}setEntities(t){return this.entities.clear(),t.forEach((t=>this.entities.add(t))),this.entitiesChanged.emit(this.getEntities()),!0}onOutcomeChanged(t){return this.outcomeChanged.on(t)}onEntitiesChanged(t){return this.entitiesChanged.on(t)}}export{i as M}
@@ -0,0 +1,4 @@
1
+ /**!
2
+ * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
+ */
4
+ import{c as t,u as e,a as s,b as i}from"./p-546ae240.js";import{v as r,b as n,p as o,d as a}from"./p-121f2b40.js";import{v as h,t as u,f as c,d as l,c as d,w as p,g as w}from"./p-18ec4fed.js";const v={opacity:100,glossiness:10,diffuse:{r:0,g:0,b:0,a:0},ambient:{r:0,g:0,b:0,a:0},specular:{r:0,g:0,b:0,a:0},emissive:{r:0,g:0,b:0,a:0}},m=(e,s)=>{const i=t.fromHexString(e);return Object.assign(Object.assign({},v),{opacity:s||100,glossiness:s||10,diffuse:Object.assign({},null!=i?i:v.diffuse)})},y={opacity:100,glossiness:4,diffuse:{r:255,g:255,b:0,a:0},ambient:{r:0,g:0,b:0,a:0},specular:{r:255,g:255,b:255,a:0},emissive:{r:0,g:0,b:0,a:0}},f=Object.freeze({__proto__:null,create:(t,e,s,i)=>Object.assign(Object.assign({},v),{opacity:i||100,glossiness:i||10,diffuse:{r:t,g:e,b:s,a:0}}),fromHex:m,defaultSelectionMaterial:y});class b extends Error{constructor(t,e){super(),this.message=t,this.stack=null==e?void 0:e.stack,this.name=this.constructor.name,Object.setPrototypeOf(this,b.prototype)}}class g extends b{constructor(t,e){super(t,e),Object.setPrototypeOf(this,g.prototype)}}class x extends b{constructor(t,e){super(t,e),Object.setPrototypeOf(this,x.prototype)}}class O extends b{constructor(t,e){super(t,e),Object.setPrototypeOf(this,O.prototype)}}class j extends b{constructor(t,e){super(t,e),Object.setPrototypeOf(this,j.prototype)}}class I extends b{constructor(t,e){super(t,e),Object.setPrototypeOf(this,I.prototype)}}class T extends b{constructor(t,e){super(t,e),Object.setPrototypeOf(this,T.prototype)}}class k extends b{constructor(t,e){super(t,e),Object.setPrototypeOf(this,k.prototype)}}class A extends b{constructor(t,e){super(t,e),Object.setPrototypeOf(this,A.prototype)}}class S extends b{constructor(t,e){super(t,e),Object.setPrototypeOf(this,S.prototype)}}class B extends b{constructor(t,e){super(t,e),Object.setPrototypeOf(this,B.prototype)}}function C(t){const s=e.parse(t);if("urn"!==s.scheme||null==s.path)throw new Error("Invalid URN. Expected URN scheme.");const[i,r,n]=s.path.split(":");if("vertexvis"!==i)throw new Error("Invalid URN. Expected URN to be vertexvis namespace");switch(r){case"stream-key":return{resource:{type:"stream-key",id:n},queries:(o=s.query,null!=o?o.split("&").map((t=>{const[e,s]=t.split("=");switch(e){case"scene-view-state":return{type:"scene-view-state",id:s};default:throw new Error("Invalid URN. Unknown query resource type")}})):[])};default:throw new g(`Invalid URN. Unknown resource type ${r}`)}var o}const V=Object.freeze({__proto__:null,fromUrn:C});class M{constructor(t,e=new Date){this.knownRemoteTime=t,this.knownLocalTime=e}localOffset(){return this.duration(this.knownLocalTime,this.localNow())}localTime(t){const e="number"==typeof t?new Date(this.knownLocalTime.getTime()+t):t,s=this.duration(this.knownRemoteTime,e);return this.addDuration(this.knownLocalTime,s)}remoteOffset(t=new Date){return this.duration(this.remoteTime(this.knownLocalTime),this.remoteTime(t))}remoteNow(){return this.remoteTime(this.localNow())}remoteTime(t){const e="number"==typeof t?new Date(this.knownLocalTime.getTime()+t):t,s=this.duration(this.knownLocalTime,e);return this.addDuration(this.knownRemoteTime,s)}addDuration(t,e){return new Date(t.getTime()+e)}duration(t,e){return e.getTime()-t.getTime()}localNow(){return new Date(Date.now())}}class R{constructor(t,e,s,i=1e4){this.stream=t,this.predicate=e,this.transform=s,this.timeout=i,this.listeners=[],this.handleMessage=this.handleMessage.bind(this)}on(t){this.listeners=[...this.listeners,t],null!=this.eventDisposable&&null!=this.requestDisposable||this.addListeners()}off(t){this.listeners=this.listeners.filter((e=>e!==t)),0===this.listeners.length&&this.removeListeners()}once(){let t;return s.timeout(this.timeout,new Promise((e=>{t=s=>{e(s),this.off(t)},this.on(t)}))).finally((()=>{this.off(t)}))}handleMessage(t){if(this.predicate(t)){const e=this.transform(t);null!=e&&this.listeners.forEach((t=>t(e)))}}addListeners(){this.eventDisposable=this.stream.onEvent(this.handleMessage),this.requestDisposable=this.stream.onRequest(this.handleMessage)}removeListeners(){var t,e;null===(t=this.eventDisposable)||void 0===t||t.dispose(),null===(e=this.requestDisposable)||void 0===e||e.dispose()}}class D{constructor(t,e,{animationId:s,correlationId:i},r){this.data=void 0,this.onAnimationCompleted=new R(t,(t=>{var e,i,r;return(null===(r=null===(i=null===(e=t.event)||void 0===e?void 0:e.animationCompleted)||void 0===i?void 0:i.animationId)||void 0===r?void 0:r.hex)===s}),(t=>{var e,s,i;return(null===(i=null===(s=null===(e=t.event)||void 0===e?void 0:e.animationCompleted)||void 0===s?void 0:s.animationId)||void 0===i?void 0:i.hex)||void 0}),r),this.onFrameReceived=new R(t,(t=>{var e,s,r;return!!(null===(r=null===(s=null===(e=t.request)||void 0===e?void 0:e.drawFrame)||void 0===s?void 0:s.frameCorrelationIds)||void 0===r?void 0:r.some((t=>t===i)))}),(t=>{var s;return null!=(null===(s=t.request)||void 0===s?void 0:s.drawFrame)?e(t.request.drawFrame):void 0}),r)}}function U(t){switch(t.type){case"item-id":return{id:new h.protobuf.core.Uuid({hex:t.value})};case"supplied-id":return{suppliedId:t.value};default:return{}}}class E{constructor(t){this.flyToOptions=t}build(){return this.flyToOptions}}class N{withItemId(t){return new E({flyTo:{type:"internal",data:t}})}withSuppliedId(t){return new E({flyTo:{type:"supplied",data:t}})}withCamera(t){return new E({flyTo:{type:"camera",data:t}})}withBoundingBox(t){return new E({flyTo:{type:"bounding-box",data:t}})}build(){return this.flyToOptions}}class _{constructor(t,e,s,i,r,n){this.stream=t,this.aspect=e,this.data=s,this.boundingBox=i,this.decodeFrame=r,this.flyToOptions=n}fitCameraToBoundingBox(t,e,s){const i=1.1*r.magnitude(r.subtract(t.max,n.center(t)));let o=Math.tan(.008726646259972*e);this.aspect<1&&(o*=this.aspect);const a=Math.abs(i/o),h=r.scale(a,r.normalize(s)),u=n.center(t),c=r.subtract(u,h);return this.update({lookAt:u,position:c,viewVector:h})}signedDistanceToBoundingBoxCenter(t){const{position:e,viewVector:s}=p(this.data),i=n.center(null!=t?t:this.boundingBox),o=r.subtract(i,e);return r.dot(s,o)/r.magnitude(s)}flyTo(t){return this.updateFlyToOptions("function"!=typeof t?{flyTo:this.buildFlyToType(t)}:t(new N).build())}viewAll(){return this.fitToBoundingBox(this.boundingBox)}async render(t){var e,s,r;null==this.flyToOptions&&null!=t&&(this.flyToOptions={flyTo:{type:"camera",data:this.data}});try{const n=i.create();if(null!=this.flyToOptions){const i=function(t,e,s){const i={frameCorrelationId:{value:t},animation:s?{duration:u(s.milliseconds)}:void 0};switch(e.flyTo.type){case"supplied":return Object.assign(Object.assign({},i),{itemSuppliedId:e.flyTo.data});case"internal":return Object.assign(Object.assign({},i),{itemId:new h.protobuf.core.Uuid({hex:e.flyTo.data})});case"camera":return Object.assign(Object.assign({},i),{camera:c(e.flyTo.data)});case"bounding-box":return Object.assign(Object.assign({},i),{boundingBox:{xmin:e.flyTo.data.min.x,xmax:e.flyTo.data.max.x,ymin:e.flyTo.data.min.y,ymax:e.flyTo.data.max.y,zmin:e.flyTo.data.min.z,zmax:e.flyTo.data.max.z}});default:return{}}}(n,this.flyToOptions,null==t?void 0:t.animation),o=await this.stream.flyTo(i,!0);return new D(this.stream,this.decodeFrame,{correlationId:n,animationId:(null===(s=null===(e=o.flyTo)||void 0===e?void 0:e.animationId)||void 0===s?void 0:s.hex)||void 0},null!=(null===(r=null==t?void 0:t.animation)||void 0===r?void 0:r.milliseconds)?t.animation.milliseconds+1e4:void 0)}return this.stream.replaceCamera({camera:c(this.data),frameCorrelationId:{value:n}}),new D(this.stream,this.decodeFrame,{correlationId:n})}catch(t){throw console.warn("Error when performing render: ",t),t}}rotateAroundAxis(t,e){return this.rotateAroundAxisAtPoint(t,this.data.lookAt,e)}standardView(t){return this.update({position:t.position,lookAt:r.origin(),up:t.up})}buildFlyToType(t){if(null!=t.boundingBox)return{type:"bounding-box",data:t.boundingBox};if(null!=t.camera)return{type:"camera",data:t.camera};if(null!=t.itemId)return{type:"internal",data:t.itemId};if(null!=t.itemSuppliedId)return{type:"supplied",data:t.itemSuppliedId};throw new Error("Fly to must specify at least one option.")}computeClippingPlanes(t){return w(this.boundingBox,t)}}class F extends _{constructor(t,e,s,i,r,n){super(t,e,s,i,r,n),this.perspectiveData=s}moveBy(t){return this.update({position:r.add(this.position,t),lookAt:r.add(this.lookAt,t)})}rotateAroundAxisAtPoint(t,e,s){return this.update({position:r.rotateAboutAxis(t,this.position,s,e),lookAt:r.rotateAboutAxis(t,this.lookAt,s,e),up:r.rotateAboutAxis(t,this.up,s,r.origin())})}fitToBoundingBox(t){return super.fitCameraToBoundingBox(t,this.fovY,this.viewVector)}update(t){return new F(this.stream,this.aspect,Object.assign(Object.assign({},this.perspectiveData),t),this.boundingBox,this.decodeFrame,this.flyToOptions)}toFrameCamera(){return new l(this.position,this.lookAt,this.up,this.near,this.far,this.aspectRatio,this.fovY)}get viewVector(){return r.subtract(this.lookAt,this.position)}get position(){return Object.assign({},this.perspectiveData.position)}get up(){return Object.assign({},this.perspectiveData.up)}get lookAt(){return Object.assign({},this.perspectiveData.lookAt)}get fovY(){return this.perspectiveData.fovY}get aspectRatio(){return this.aspect}get near(){const{near:t}=this.computeClippingPlanes(this.perspectiveData);return t}get far(){const{far:t}=this.computeClippingPlanes(this.perspectiveData);return t}updateFlyToOptions(t){return new F(this.stream,this.aspect,this.perspectiveData,this.boundingBox,this.decodeFrame,t)}}class z extends _{constructor(t,e,s,i,r,n){super(t,e,s,i,r,n),this.orthographicData=s}moveBy(t){const e=r.add(this.lookAt,t);return this.update({viewVector:r.subtract(e,r.add(this.position,t)),lookAt:e})}rotateAroundAxisAtPoint(t,e,s){const i=r.rotateAboutAxis(t,this.lookAt,s,e),n=r.rotateAboutAxis(t,this.up,s,r.origin()),o=r.subtract(r.rotateAboutAxis(t,this.position,s,e),i);return this.update({viewVector:o,lookAt:i,up:n})}fitToBoundingBox(t){return super.fitCameraToBoundingBox(t,this.fovHeight,this.viewVector)}update(t){return new z(this.stream,this.aspect,Object.assign(Object.assign({},this.orthographicData),t),this.boundingBox,this.decodeFrame,this.flyToOptions)}toFrameCamera(){return new d(this.viewVector,this.lookAt,this.up,this.near,this.far,this.aspectRatio,this.fovHeight)}get viewVector(){return Object.assign({},this.orthographicData.viewVector)}get position(){return r.add(this.lookAt,r.negate(this.viewVector))}get up(){return Object.assign({},this.orthographicData.up)}get lookAt(){return Object.assign({},this.orthographicData.lookAt)}get fovHeight(){return this.orthographicData.fovHeight}get aspectRatio(){return this.aspect}get near(){const{near:t}=this.computeClippingPlanes(this.orthographicData);return t}get far(){const{far:t}=this.computeClippingPlanes(this.orthographicData);return t}updateFlyToOptions(t){return new z(this.stream,this.aspect,this.orthographicData,this.boundingBox,this.decodeFrame,t)}}class P{constructor(t,e){this.stream=t,this.imageScaleProvider=e}async hitItems(t,e){const s=this.imageScaleProvider();return(await this.stream.hitItems({point:o.scale(t,(null==s?void 0:s.x)||1,(null==s?void 0:s.y)||1),includeMetadata:null==e?void 0:e.includeMetadata},!0)).hitItems||void 0}}class q{constructor(t,e){this.stream=t,this.data=e}async update(t){return(await this.stream.updateCrossSectioning({crossSectioning:t},!0)).updateCrossSectioning||void 0}current(){return this.data}}class H{constructor(t=[]){this.operations=t}build(){return this.operations.concat()}materialOverride(t){return new H(this.operations.concat([{type:"change-material",material:t}]))}show(){return new H(this.operations.concat([{type:"show"}]))}hide(){return new H(this.operations.concat([{type:"hide"}]))}select(t){return new H(this.operations.concat([{type:"select",material:t}]))}deselect(){return new H(this.operations.concat([{type:"deselect"}]))}clearMaterialOverrides(){return new H(this.operations.concat([{type:"clear-override"}]))}transform(t){return new H(this.operations.concat([{type:"change-transform",transform:t}]))}}class L{all(){return new Q}withItemIds(t){return new J(t,"item-id")}withSuppliedIds(t){return new J(t,"supplied-id")}withItemId(t){return new K({type:"item-id",value:t})}withSuppliedId(t){return new K({type:"supplied-id",value:t})}withSceneTreeRange(t){return new Y(t)}withMetadata(t,e){return new W(t,e)}withSelected(){return new $}withPoint(t){return new G(t)}}class Q{build(){return{type:"all"}}}class Y{constructor(t){this.range=t}build(){return{type:"scene-tree-range",range:this.range}}}class W{constructor(t,e){this.filter=t,this.keys=e}build(){return{type:"metadata",filter:this.filter,keys:this.keys}}}class ${build(){return{type:"all-selected"}}}class G{constructor(t){this.point=t}build(){return{type:"point",point:this.point}}}class J{constructor(t,e){this.ids=t,this.type=e}build(){return{type:"or",expressions:this.ids.map((t=>({type:this.type,value:t})))}}}class K{constructor(t){this.query=t}build(){return Object.assign({},this.query)}and(){return new Z([this.query])}or(){return new X([this.query])}}class X{constructor(t){this.expressions=t}build(){return{type:"or",expressions:[...this.expressions]}}withItemId(t){return new X([...this.expressions,{type:"item-id",value:t}])}withSuppliedId(t){return new X([...this.expressions,{type:"supplied-id",value:t}])}or(){return this}}class Z{constructor(t){this.expressions=t}build(){return{type:"and",expressions:[...this.expressions]}}withItemId(t){return new Z([...this.expressions,{type:"item-id",value:t}])}withSuppliedId(t){return new Z([...this.expressions,{type:"supplied-id",value:t}])}and(){return this}}class tt{constructor(t){this.defaultSelectionMaterial=t}where(t){const e=t(new L).build();return new et(e,this.defaultSelectionMaterial)}}class et{constructor(t,e,s){this.query=t,this.defaultSelectionMaterial=e,this.builder=null!=s?s:new H}materialOverride(t){return new et(this.query,this.defaultSelectionMaterial,this.builder.materialOverride("string"==typeof t?m(t):t))}hide(){return new et(this.query,this.defaultSelectionMaterial,this.builder.hide())}show(){return new et(this.query,this.defaultSelectionMaterial,this.builder.show())}select(t){return new et(this.query,this.defaultSelectionMaterial,this.builder.select("string"==typeof t?m(t):t||this.defaultSelectionMaterial))}deselect(){return new et(this.query,this.defaultSelectionMaterial,this.builder.deselect())}clearMaterialOverrides(){return new et(this.query,this.defaultSelectionMaterial,this.builder.clearMaterialOverrides())}transform(t){if(Array.isArray(t)){if(16!==t.length)throw new S("Matrix provided must contain exactly 16 values (4x4).");return new et(this.query,this.defaultSelectionMaterial,this.builder.transform({r0:{x:t[0],y:t[1],z:t[2],w:t[3]},r1:{x:t[4],y:t[5],z:t[6],w:t[7]},r2:{x:t[8],y:t[9],z:t[10],w:t[11]},r3:{x:t[12],y:t[13],z:t[14],w:t[15]}}))}return new et(this.query,this.defaultSelectionMaterial,this.builder.transform(t))}build(){return{query:this.query,operations:this.builder.build()}}}class st{constructor(t,e,s,i){this.sceneViewId=t,this.stream=e,this.dimensions=s,this.queryOperations=i}async execute(t){const e=this.queryOperations.map((t=>function(t,e,s){const i=function(t){return t.map((t=>{switch(t.type){case"change-material":return{changeMaterial:{material:{d:t.material.opacity,ns:t.material.glossiness,ka:t.material.ambient,kd:t.material.diffuse,ks:t.material.specular,ke:t.material.emissive}}};case"clear-override":return{changeMaterial:{}};case"change-transform":return{changeTransform:{transform:Object.assign({},t.transform)}};case"hide":return{changeVisibility:{visible:!1}};case"show":return{changeVisibility:{visible:!0}};case"select":return{changeSelection:{material:{d:t.material.opacity,ns:t.material.glossiness,ka:t.material.ambient,kd:t.material.diffuse,ks:t.material.specular,ke:t.material.emissive}}};case"deselect":return{changeSelection:{}};default:return{}}}))}(e);switch(t.type){case"and":case"or":return{[t.type]:{queries:t.expressions.map((t=>({sceneItemQuery:U(t)})))},operationTypes:i};case"item-id":case"supplied-id":return{item:{sceneItemQuery:U(t)},operationTypes:i};case"all":return{all:{},operationTypes:i};case"scene-tree-range":return{sceneTreeRange:{start:t.range.start,end:t.range.end},operationTypes:i};case"metadata":return{metadata:{valueFilter:t.filter,keys:t.keys},operationTypes:i};case"all-selected":return{override:{selection:{}},operationTypes:i};case"point":return{point:{point:t.point,viewport:s.dimensions},operationTypes:i};default:return{}}}(t.query,t.operations,{dimensions:this.dimensions}))),s={sceneViewId:{hex:this.sceneViewId},operations:e,suppliedCorrelationId:null!=(null==t?void 0:t.suppliedCorrelationId)?{value:null==t?void 0:t.suppliedCorrelationId}:void 0};await this.stream.createSceneAlteration(s)}}class it{constructor(t,e,s,i,r,n,o){this.stream=t,this.frame=e,this.decodeFrame=s,this.imageScaleProvider=i,this.dimensions=r,this.sceneViewId=n,this.defaultSelectionMaterial=o}async applySceneViewState(t,e={}){return await this.stream.loadSceneViewState({sceneViewStateId:{hex:t},frameCorrelationId:e.suppliedCorrelationId?{value:e.suppliedCorrelationId}:void 0},!0)}async reset(t={}){return await this.stream.resetSceneView({includeCamera:t.includeCamera,frameCorrelationId:t.suppliedCorrelationId?{value:t.suppliedCorrelationId}:void 0},!0)}items(t){const e=t(new tt(this.defaultSelectionMaterial)),s=(Array.isArray(e)?e:[e]).reduce(((t,e)=>t.concat(e.build())),[]);return new st(this.sceneViewId,this.stream,this.dimensions,s)}camera(){const{scene:t}=this.frame;if(t.camera instanceof d)return new z(this.stream,a.aspectRatio(this.viewport()),{viewVector:t.camera.viewVector,lookAt:t.camera.lookAt,up:t.camera.up,fovHeight:t.camera.fovHeight},this.frame.scene.boundingBox,this.decodeFrame);if(t.camera instanceof l)return new F(this.stream,a.aspectRatio(this.viewport()),{position:t.camera.position,lookAt:t.camera.lookAt,up:t.camera.up,fovY:t.camera.fovY},this.frame.scene.boundingBox,this.decodeFrame);throw new B("Cannot retrieve camera. Scene has an unknown or invalid camera type.")}boundingBox(){return this.frame.scene.boundingBox}crossSectioning(){return new q(this.stream,this.frame.scene.crossSection)}raycaster(){return new P(this.stream,this.imageScaleProvider)}viewport(){return this.frame.dimensions}scale(){return this.imageScaleProvider()||o.create(1,1)}}export{b as C,k as I,it as S,x as V,I as W,M as a,j as b,f as c,y as d,T as e,C as f,O as g,A as h,m as i,V as l}
@@ -0,0 +1,4 @@
1
+ /**!
2
+ * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
+ */
4
+ import{p as n,q as t,g as e,h as r}from"./p-121f2b40.js";function s(r,s,a=60){const f=n.distance(r,s),i=e.normalize(e.toDegrees(e.fromPoints(r,s))-270),o=Math.max(4,Math.min(16,.25*f)),E=o/Math.cos(e.toRadians(90-a)),u=t.rotation(i),R=n.polar(E,e.toRadians(2*a)),c=n.polar(E,e.toRadians(a)),M=n.polar(o,e.toRadians(90));return{tip:s,left:n.add(s,t.transformPoint(u,R)),right:n.add(s,t.transformPoint(u,c)),base:n.add(s,t.transformPoint(u,M))}}function a(n){return[n.tip,n.right,n.base,n.left].map((n=>`${n.x},${n.y}`)).join(" ")}function f(n){return n instanceof HTMLElement&&"VERTEX-VIEWER-MARKUP-ARROW"===n.nodeName}function i(t){return"string"==typeof t?n.fromJson(t):t}function o(n){return n instanceof HTMLElement&&"VERTEX-VIEWER-MARKUP-CIRCLE"===n.nodeName}function E(n){return"string"==typeof n?r.fromJson(n):n}function u(t){return"string"==typeof t?JSON.parse(t).map((t=>n.fromJson(JSON.stringify(t)))):t}function R(n){return n instanceof HTMLElement&&"VERTEX-VIEWER-MARKUP-FREEFORM"===n.nodeName}export{o as a,R as b,s as c,a as d,E as e,u as f,f as i,i as p}
@@ -1,4 +1,4 @@
1
1
  /**!
2
2
  * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
3
  */
4
- import{v as t}from"./p-0aba71fd.js";function i(i,n){return{type:"minimum-distance",point1:i,point2:n,distance:t.distance(i,n)}}export{i as m}
4
+ import{v as t}from"./p-121f2b40.js";function i(i,n){return{type:"minimum-distance",point1:i,point2:n,distance:t.distance(i,n)}}export{i as m}
@@ -1,7 +1,7 @@
1
1
  /**!
2
2
  * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
3
  */
4
- import{_ as r,k as n,f as t,e,a as u,c as i}from"./p-0aba71fd.js";function o(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return u(this,void 0,void 0,(function(){var n,t,e;return i(this,(function(u){switch(u.label){case 0:return"number"!=typeof(n=r[0])?[3,4]:(t=r[1],e=new Promise((function(r){return setTimeout(r,n)})),null==t?[3,2]:[4,e]);case 1:return u.sent(),[2,t];case 2:return[2,e];case 3:return[3,5];case 4:return[2,Promise.reject(new TypeError("First argument to `delay` must be a number"))];case 5:return[2]}}))}))}var c=Object.freeze({__proto__:null,delay:o,timeout:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return u(this,void 0,void 0,(function(){var n,t,e,u,o;return i(this,(function(i){switch(i.label){case 0:return"number"!=typeof(n=r[0])?[3,4]:(t=r[1],u=new Promise((function(r,t){e=setTimeout((function(){return t(new Error("Promise timed out after ".concat(n,"ms")))}),n)})),null==t?[3,2]:[4,Promise.race([t,u])]);case 1:return o=i.sent(),clearTimeout(e),[2,o];case 2:return[2,u];case 3:return[3,5];case 4:return[2,Promise.reject("First argument to `timeout` must be a number")];case 5:return[2]}}))}))},retry:function(r,n){return void 0===n&&(n={}),u(this,void 0,void 0,(function(){function t(r,n,e){return u(this,void 0,void 0,(function(){var u,c,f,a,s;return i(this,(function(i){switch(i.label){case 0:c=void 0===(u=e.delaysInMs)?[]:u,a=void 0===(f=e.maxRetries)?1:f,i.label=1;case 1:return i.trys.push([1,4,,8]),[4,o(0===r||0===c.length?0:c[Math.min(r-1,c.length-1)])];case 2:return i.sent(),[4,n()];case 3:return[2,i.sent()];case 4:return s=i.sent(),r<a?[4,t(r+1,n,e)]:[3,6];case 5:return[2,i.sent()];case 6:throw s;case 7:return[3,8];case 8:return[2]}}))}))}return i(this,(function(){return[2,t(0,r,n)]}))}))},abort:function(r,n){return u(this,void 0,void 0,(function(){var t,e,o;return i(this,(function(c){switch(c.label){case 0:return t=new AbortController,e=function(r,n,t){return u(this,void 0,void 0,(function(){return i(this,(function(){return[2,new Promise((function(e){r.addEventListener(n,(function t(u){r.removeEventListener(n,t),e(u)}),t)}))]}))}))}(r,"abort",{signal:t.signal}),[4,Promise.race([n,e])];case 1:return(f=o=c.sent())instanceof Event&&"abort"===f.type?[2,{aborted:!0}]:(t.abort(),[2,{aborted:!1,result:o}])}var f}))}))}}),f=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,a=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(.+)\s*\)/,s=/^(#|0x)?([A-Fa-f0-9]{6})$/,v=function(r,n,t,e){return void 0===e&&(e=255),{r,g:n,b:t,a:e}},l=function(r){var n=16777215&r;return v(n>>16&255,n>>8&255,255&n)},d=function(r){var n=s.exec(r);if(null!=n)return l(parseInt(n[2],16))},h=function(r){var n=r.toString(16);return 1===n.length?"0"+n:n},p=Object.freeze({__proto__:null,create:v,fromNumber:l,fromHexString:d,fromCss:function(r){var n=f.exec(r);if(null!=n)return v(parseInt(n[1]),parseInt(n[2]),parseInt(n[3]));var t=a.exec(r);return null!=t?v(parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),Math.floor(255*parseFloat(t[4]))):s.test(r)?d(r):void 0},fromArray:function(r){return v(r[0],r[1],r[2],r[3])},isInvisible:function(r){return 0===r.a},isOpaque:function(r){return 255===r.a},toHexString:function(r){return"#".concat(h(r.r)).concat(h(r.g)).concat(h(r.b))}}),b=function(n){function t(r){var e=n.call(this,"Validation error mapping object.")||this;return e.errors=r,Object.setPrototypeOf(e,t.prototype),e}return r(t,n),t}(Error);function y(r){return function(n){return null!=n?n:{errors:["".concat(r," is required.")]}}}function m(r,n){return function(t){return n(t[r])}}function j(r){return null!=r&&r.hasOwnProperty("errors")}function w(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return function(n){return r.reduce((function(r,n){return j(r)?r:n(r)}),n)}}var _=Object.freeze({__proto__:null,MapperValidationError:b,required:y,requiredProp:function(r){return function(n){var t=n[r];return null!=t?t:{errors:["".concat(r," is required")]}}},ifDefined:function(r){return function(n){return null!=n?r(n):n}},getProp:function(r){return function(n){return n[r]}},mapProp:m,mapRequiredProp:function(r,n){return m(r,w(y(r.toString()),n))},mapArray:function(r){return function(e){if(e.length>0){var u=n(e),i=u[0],o=u.slice(1),c=r(i);return o.reduce((function(e,u){var i=r(u);return j(i)?j(e)?{errors:t(t([],n(e.errors),!1),n(i.errors),!1)}:i:j(e)?e:t(t([],n(e),!1),[i],!1)}),j(c)?c:[c])}return[]}},isInvalid:j,ifInvalidThrow:function(r){return function(n){var t=r(n);if(j(t))throw new b(t.errors);return t}},read:function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return function(e){return r.reduce((function(r,u){var i=u(e);return j(i)?j(r)?{errors:t(t([],n(r.errors),!1),n(i.errors),!1)}:i:j(r)?r:t(t([],n(r),!1),[i],!1)}),[])}},defineMapper:function(r,n){return function(t){var e,u,i=r(t);return u=n,j(e=i)?e:u(e)}},compose:w,pickFirst:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return function(n){return r.reduce((function(r,t){return void 0===r?t(n):r}),void 0)}}});
4
+ import{_ as r,k as n,f as t,e,a as u,c as i}from"./p-121f2b40.js";function o(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return u(this,void 0,void 0,(function(){var n,t,e;return i(this,(function(u){switch(u.label){case 0:return"number"!=typeof(n=r[0])?[3,4]:(t=r[1],e=new Promise((function(r){return setTimeout(r,n)})),null==t?[3,2]:[4,e]);case 1:return u.sent(),[2,t];case 2:return[2,e];case 3:return[3,5];case 4:return[2,Promise.reject(new TypeError("First argument to `delay` must be a number"))];case 5:return[2]}}))}))}var c=Object.freeze({__proto__:null,delay:o,timeout:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return u(this,void 0,void 0,(function(){var n,t,e,u,o;return i(this,(function(i){switch(i.label){case 0:return"number"!=typeof(n=r[0])?[3,4]:(t=r[1],u=new Promise((function(r,t){e=setTimeout((function(){return t(new Error("Promise timed out after ".concat(n,"ms")))}),n)})),null==t?[3,2]:[4,Promise.race([t,u])]);case 1:return o=i.sent(),clearTimeout(e),[2,o];case 2:return[2,u];case 3:return[3,5];case 4:return[2,Promise.reject("First argument to `timeout` must be a number")];case 5:return[2]}}))}))},retry:function(r,n){return void 0===n&&(n={}),u(this,void 0,void 0,(function(){function t(r,n,e){return u(this,void 0,void 0,(function(){var u,c,f,a,s;return i(this,(function(i){switch(i.label){case 0:c=void 0===(u=e.delaysInMs)?[]:u,a=void 0===(f=e.maxRetries)?1:f,i.label=1;case 1:return i.trys.push([1,4,,8]),[4,o(0===r||0===c.length?0:c[Math.min(r-1,c.length-1)])];case 2:return i.sent(),[4,n()];case 3:return[2,i.sent()];case 4:return s=i.sent(),r<a?[4,t(r+1,n,e)]:[3,6];case 5:return[2,i.sent()];case 6:throw s;case 7:return[3,8];case 8:return[2]}}))}))}return i(this,(function(){return[2,t(0,r,n)]}))}))},abort:function(r,n){return u(this,void 0,void 0,(function(){var t,e,o;return i(this,(function(c){switch(c.label){case 0:return t=new AbortController,e=function(r,n,t){return u(this,void 0,void 0,(function(){return i(this,(function(){return[2,new Promise((function(e){r.addEventListener(n,(function t(u){r.removeEventListener(n,t),e(u)}),t)}))]}))}))}(r,"abort",{signal:t.signal}),[4,Promise.race([n,e])];case 1:return(f=o=c.sent())instanceof Event&&"abort"===f.type?[2,{aborted:!0}]:(t.abort(),[2,{aborted:!1,result:o}])}var f}))}))}}),f=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,a=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(.+)\s*\)/,s=/^(#|0x)?([A-Fa-f0-9]{6})$/,v=function(r,n,t,e){return void 0===e&&(e=255),{r,g:n,b:t,a:e}},l=function(r){var n=16777215&r;return v(n>>16&255,n>>8&255,255&n)},d=function(r){var n=s.exec(r);if(null!=n)return l(parseInt(n[2],16))},h=function(r){var n=r.toString(16);return 1===n.length?"0"+n:n},p=Object.freeze({__proto__:null,create:v,fromNumber:l,fromHexString:d,fromCss:function(r){var n=f.exec(r);if(null!=n)return v(parseInt(n[1]),parseInt(n[2]),parseInt(n[3]));var t=a.exec(r);return null!=t?v(parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),Math.floor(255*parseFloat(t[4]))):s.test(r)?d(r):void 0},fromArray:function(r){return v(r[0],r[1],r[2],r[3])},isInvisible:function(r){return 0===r.a},isOpaque:function(r){return 255===r.a},toHexString:function(r){return"#".concat(h(r.r)).concat(h(r.g)).concat(h(r.b))}}),b=function(n){function t(r){var e=n.call(this,"Validation error mapping object.")||this;return e.errors=r,Object.setPrototypeOf(e,t.prototype),e}return r(t,n),t}(Error);function y(r){return function(n){return null!=n?n:{errors:["".concat(r," is required.")]}}}function m(r,n){return function(t){return n(t[r])}}function j(r){return null!=r&&r.hasOwnProperty("errors")}function w(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return function(n){return r.reduce((function(r,n){return j(r)?r:n(r)}),n)}}var _=Object.freeze({__proto__:null,MapperValidationError:b,required:y,requiredProp:function(r){return function(n){var t=n[r];return null!=t?t:{errors:["".concat(r," is required")]}}},ifDefined:function(r){return function(n){return null!=n?r(n):n}},getProp:function(r){return function(n){return n[r]}},mapProp:m,mapRequiredProp:function(r,n){return m(r,w(y(r.toString()),n))},mapArray:function(r){return function(e){if(e.length>0){var u=n(e),i=u[0],o=u.slice(1),c=r(i);return o.reduce((function(e,u){var i=r(u);return j(i)?j(e)?{errors:t(t([],n(e.errors),!1),n(i.errors),!1)}:i:j(e)?e:t(t([],n(e),!1),[i],!1)}),j(c)?c:[c])}return[]}},isInvalid:j,ifInvalidThrow:function(r){return function(n){var t=r(n);if(j(t))throw new b(t.errors);return t}},read:function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return function(e){return r.reduce((function(r,u){var i=u(e);return j(i)?j(r)?{errors:t(t([],n(r.errors),!1),n(i.errors),!1)}:i:j(r)?r:t(t([],n(r),!1),[i],!1)}),[])}},defineMapper:function(r,n){return function(t){var e,u,i=r(t);return u=n,j(e=i)?e:u(e)}},compose:w,pickFirst:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return function(n){return r.reduce((function(r,t){return void 0===r?t(n):r}),void 0)}}});
5
5
  /*!
6
6
  * isobject <https://github.com/jonschlinkert/isobject>
7
7
  *
@@ -1,4 +1,4 @@
1
1
  /**!
2
2
  * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
3
  */
4
- import{E as s}from"./p-301660cf.js";class a{constructor(){this.onChanged=new s,this.cursors=[],this.nextId=0}add(s,h=a.NORMAL_PRIORITY){const t=++this.nextId,i={id:t,cursor:s,priority:h,dispose:()=>this.remove(t)};return this.cursors.push(i),this.onChanged.emit(),i}remove(s){const a=this.cursors.findIndex((({id:a})=>a===s));a>=0&&(this.cursors.splice(a,1),this.onChanged.emit())}getActiveCursor(){var s;return null===(s=this.cursors.concat().reverse().sort(((s,a)=>a.priority-s.priority))[0])||void 0===s?void 0:s.cursor}}a.LOW_PRIORITY=0,a.NORMAL_PRIORITY=10,a.HIGH_PRIORITY=20;const h={url:"data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M21.5 8h-19a.5.5 0 00-.5.5v6a.5.5 0 00.5.5h19a.5.5 0 00.5-.5v-6a.5.5 0 00-.5-.5zm-.5 6H3V9h3v2.5a.5.5 0 001 0V9h2v2.5a.5.5 0 001 0V9h2v2.5a.5.5 0 001 0V9h2v2.5a.5.5 0 001 0V9h2v2.5a.5.5 0 001 0V9h2z' stroke='%23fff' stroke-width='1.25' stroke-opacity='0.5' stroke-miterlimit='10' shape-rendering='crispEdges'/%3E%3Cpath d='M21.5 8h-19a.5.5 0 00-.5.5v6a.5.5 0 00.5.5h19a.5.5 0 00.5-.5v-6a.5.5 0 00-.5-.5zm-.5 6H3V9h3v2.5a.5.5 0 001 0V9h2v2.5a.5.5 0 001 0V9h2v2.5a.5.5 0 001 0V9h2v2.5a.5.5 0 001 0V9h2v2.5a.5.5 0 001 0V9h2z' shape-rendering='crispEdges'/%3E%3C/svg%3E",offsetX:-24,offsetY:-24},t={url:"data:image/svg+xml;utf8,%3Csvg id='icons' xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bstroke:%23fff;stroke-miterlimit:10;stroke-width:2px;%7D.cls-2%7Bfill:%23fff;%7D.cls-2,.cls-3%7Bfill-rule:evenodd;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M27.46,21h-19a.5.5,0,0,0-.5.5v6a.5.5,0,0,0,.5.5h19a.5.5,0,0,0,.5-.5v-6A.5.5,0,0,0,27.46,21ZM27,27H9V22h3v2.5a.5.5,0,0,0,1,0V22h2v2.5a.5.5,0,0,0,1,0V22h2v2.5a.5.5,0,0,0,1,0V22h2v2.5a.5.5,0,0,0,1,0V22h2v2.5a.5.5,0,0,0,1,0V22h2Z'/%3E%3Cpath d='M27.46,21h-19a.5.5,0,0,0-.5.5v6a.5.5,0,0,0,.5.5h19a.5.5,0,0,0,.5-.5v-6A.5.5,0,0,0,27.46,21ZM27,27H9V22h3v2.5a.5.5,0,0,0,1,0V22h2v2.5a.5.5,0,0,0,1,0V22h2v2.5a.5.5,0,0,0,1,0V22h2v2.5a.5.5,0,0,0,1,0V22h2v2.5a.5.5,0,0,0,1,0V22h2Z'/%3E%3Cpath class='cls-2' d='M1,17V1L12.59,12.62H5.81l-.41.12Z'/%3E%3Cpath class='cls-2' d='M10.08,17.69l-3.6,1.53L1.8,8.14,5.48,6.58Z'/%3E%3Cpath class='cls-3' d='M8.75,17l-1.84.77-3.1-7.37,1.84-.78Z'/%3E%3Cpath class='cls-3' d='M2,3.41V14.6l3-2.87.43-.14h4.76Z'/%3E%3C/svg%3E",offsetX:-30,offsetY:-30};export{a as C,t as a,h as m}
4
+ import{E as s}from"./p-546ae240.js";class a{constructor(){this.onChanged=new s,this.cursors=[],this.nextId=0}add(s,h=a.NORMAL_PRIORITY){const t=++this.nextId,i={id:t,cursor:s,priority:h,dispose:()=>this.remove(t)};return this.cursors.push(i),this.onChanged.emit(),i}remove(s){const a=this.cursors.findIndex((({id:a})=>a===s));a>=0&&(this.cursors.splice(a,1),this.onChanged.emit())}getActiveCursor(){var s;return null===(s=this.cursors.concat().reverse().sort(((s,a)=>a.priority-s.priority))[0])||void 0===s?void 0:s.cursor}}a.LOW_PRIORITY=0,a.NORMAL_PRIORITY=10,a.HIGH_PRIORITY=20;const h={url:"data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M21.5 8h-19a.5.5 0 00-.5.5v6a.5.5 0 00.5.5h19a.5.5 0 00.5-.5v-6a.5.5 0 00-.5-.5zm-.5 6H3V9h3v2.5a.5.5 0 001 0V9h2v2.5a.5.5 0 001 0V9h2v2.5a.5.5 0 001 0V9h2v2.5a.5.5 0 001 0V9h2v2.5a.5.5 0 001 0V9h2z' stroke='%23fff' stroke-width='1.25' stroke-opacity='0.5' stroke-miterlimit='10' shape-rendering='crispEdges'/%3E%3Cpath d='M21.5 8h-19a.5.5 0 00-.5.5v6a.5.5 0 00.5.5h19a.5.5 0 00.5-.5v-6a.5.5 0 00-.5-.5zm-.5 6H3V9h3v2.5a.5.5 0 001 0V9h2v2.5a.5.5 0 001 0V9h2v2.5a.5.5 0 001 0V9h2v2.5a.5.5 0 001 0V9h2v2.5a.5.5 0 001 0V9h2z' shape-rendering='crispEdges'/%3E%3C/svg%3E",offsetX:-24,offsetY:-24},t={url:"data:image/svg+xml;utf8,%3Csvg id='icons' xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bstroke:%23fff;stroke-miterlimit:10;stroke-width:2px;%7D.cls-2%7Bfill:%23fff;%7D.cls-2,.cls-3%7Bfill-rule:evenodd;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M27.46,21h-19a.5.5,0,0,0-.5.5v6a.5.5,0,0,0,.5.5h19a.5.5,0,0,0,.5-.5v-6A.5.5,0,0,0,27.46,21ZM27,27H9V22h3v2.5a.5.5,0,0,0,1,0V22h2v2.5a.5.5,0,0,0,1,0V22h2v2.5a.5.5,0,0,0,1,0V22h2v2.5a.5.5,0,0,0,1,0V22h2v2.5a.5.5,0,0,0,1,0V22h2Z'/%3E%3Cpath d='M27.46,21h-19a.5.5,0,0,0-.5.5v6a.5.5,0,0,0,.5.5h19a.5.5,0,0,0,.5-.5v-6A.5.5,0,0,0,27.46,21ZM27,27H9V22h3v2.5a.5.5,0,0,0,1,0V22h2v2.5a.5.5,0,0,0,1,0V22h2v2.5a.5.5,0,0,0,1,0V22h2v2.5a.5.5,0,0,0,1,0V22h2v2.5a.5.5,0,0,0,1,0V22h2Z'/%3E%3Cpath class='cls-2' d='M1,17V1L12.59,12.62H5.81l-.41.12Z'/%3E%3Cpath class='cls-2' d='M10.08,17.69l-3.6,1.53L1.8,8.14,5.48,6.58Z'/%3E%3Cpath class='cls-3' d='M8.75,17l-1.84.77-3.1-7.37,1.84-.78Z'/%3E%3Cpath class='cls-3' d='M2,3.41V14.6l3-2.87.43-.14h4.76Z'/%3E%3C/svg%3E",offsetX:-30,offsetY:-30};export{a as C,t as a,h as m}
@@ -0,0 +1,4 @@
1
+ /**!
2
+ * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
+ */
4
+ import{c as o}from"./p-112455b1.js";import{a as t,w as r}from"./p-3a20a038.js";import{m as n}from"./p-546ae240.js";import{i,h as u}from"./p-18ec4fed.js";var p=o((function(o,r){var n=t,i=Function("return this")();n.exportSymbol("proto.vertexvis.protobuf.core.Uuid",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.Uuid2l",null,i),proto.vertexvis.protobuf.core.Uuid=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.Uuid,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Uuid.displayName="proto.vertexvis.protobuf.core.Uuid"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Uuid.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.Uuid.toObject(o,this)},proto.vertexvis.protobuf.core.Uuid.toObject=function(o,r){var n={hex:t.Message.getFieldWithDefault(r,1,"")};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.Uuid.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.Uuid;return proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();o.setHex(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.Uuid.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter=function(o,t){var r;(r=o.getHex()).length>0&&t.writeString(1,r)},proto.vertexvis.protobuf.core.Uuid.prototype.getHex=function(){return t.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.core.Uuid.prototype.setHex=function(o){t.Message.setProto3StringField(this,1,o)},proto.vertexvis.protobuf.core.Uuid2l=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.Uuid2l,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Uuid2l.displayName="proto.vertexvis.protobuf.core.Uuid2l"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Uuid2l.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.Uuid2l.toObject(o,this)},proto.vertexvis.protobuf.core.Uuid2l.toObject=function(o,r){var n={msb:t.Message.getFieldWithDefault(r,1,"0"),lsb:t.Message.getFieldWithDefault(r,2,"0")};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.Uuid2l.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.Uuid2l;return proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readSfixed64String();o.setMsb(r);break;case 2:r=t.readSfixed64String(),o.setLsb(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.Uuid2l.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter=function(o,t){var r=void 0;r=o.getMsb(),0!==parseInt(r,10)&&t.writeSfixed64String(1,r),r=o.getLsb(),0!==parseInt(r,10)&&t.writeSfixed64String(2,r)},proto.vertexvis.protobuf.core.Uuid2l.prototype.getMsb=function(){return t.Message.getFieldWithDefault(this,1,"0")},proto.vertexvis.protobuf.core.Uuid2l.prototype.setMsb=function(o){t.Message.setProto3StringIntField(this,1,o)},proto.vertexvis.protobuf.core.Uuid2l.prototype.getLsb=function(){return t.Message.getFieldWithDefault(this,2,"0")},proto.vertexvis.protobuf.core.Uuid2l.prototype.setLsb=function(o){t.Message.setProto3StringIntField(this,2,o)},n.object.extend(r,proto.vertexvis.protobuf.core)})),e=o((function(o,r){var n=t,i=function(){return this?this:"undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:Function("return this")()}.call(null);n.exportSymbol("proto.google.protobuf.Any",null,i),proto.google.protobuf.Any=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.google.protobuf.Any,t.Message),n.DEBUG&&!COMPILED&&(proto.google.protobuf.Any.displayName="proto.google.protobuf.Any"),t.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Any.prototype.toObject=function(o){return proto.google.protobuf.Any.toObject(o,this)},proto.google.protobuf.Any.toObject=function(o,r){var n={typeUrl:t.Message.getFieldWithDefault(r,1,""),value:r.getValue_asB64()};return o&&(n.$jspbMessageInstance=r),n}),proto.google.protobuf.Any.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.google.protobuf.Any;return proto.google.protobuf.Any.deserializeBinaryFromReader(n,r)},proto.google.protobuf.Any.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();o.setTypeUrl(r);break;case 2:r=t.readBytes(),o.setValue(r);break;default:t.skipField()}return o},proto.google.protobuf.Any.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.google.protobuf.Any.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.google.protobuf.Any.serializeBinaryToWriter=function(o,t){var r=void 0;(r=o.getTypeUrl()).length>0&&t.writeString(1,r),(r=o.getValue_asU8()).length>0&&t.writeBytes(2,r)},proto.google.protobuf.Any.prototype.getTypeUrl=function(){return t.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.Any.prototype.setTypeUrl=function(o){return t.Message.setProto3StringField(this,1,o)},proto.google.protobuf.Any.prototype.getValue=function(){return t.Message.getFieldWithDefault(this,2,"")},proto.google.protobuf.Any.prototype.getValue_asB64=function(){return t.Message.bytesAsB64(this.getValue())},proto.google.protobuf.Any.prototype.getValue_asU8=function(){return t.Message.bytesAsU8(this.getValue())},proto.google.protobuf.Any.prototype.setValue=function(o){return t.Message.setProto3BytesField(this,2,o)},n.object.extend(r,proto.google.protobuf),proto.google.protobuf.Any.prototype.getTypeName=function(){return this.getTypeUrl().split("/").pop()},proto.google.protobuf.Any.prototype.pack=function(o,t,r){r||(r="type.googleapis.com/"),"/"!=r.substr(-1)?this.setTypeUrl(r+"/"+t):this.setTypeUrl(r+t),this.setValue(o)},proto.google.protobuf.Any.prototype.unpack=function(o,t){return this.getTypeName()==t?o(this.getValue_asU8()):null}})),c=o((function(o,r){var n=t,i=Function("return this")();n.exportSymbol("proto.vertexvis.protobuf.core.ModelEntity",null,i),proto.vertexvis.protobuf.core.ModelEntity=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.core.ModelEntity.repeatedFields_,null)},n.inherits(proto.vertexvis.protobuf.core.ModelEntity,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.ModelEntity.displayName="proto.vertexvis.protobuf.core.ModelEntity"),proto.vertexvis.protobuf.core.ModelEntity.repeatedFields_=[3],t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.ModelEntity.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.ModelEntity.toObject(o,this)},proto.vertexvis.protobuf.core.ModelEntity.toObject=function(o,r){var n,i={entityId:t.Message.getFieldWithDefault(r,1,0),sceneItemId:(n=r.getSceneItemId())&&p.Uuid.toObject(o,n),detailsList:t.Message.toObjectList(r.getDetailsList(),e.Any.toObject,o)};return o&&(i.$jspbMessageInstance=r),i}),proto.vertexvis.protobuf.core.ModelEntity.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.ModelEntity;return proto.vertexvis.protobuf.core.ModelEntity.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.ModelEntity.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readInt64();o.setEntityId(r);break;case 2:r=new p.Uuid,t.readMessage(r,p.Uuid.deserializeBinaryFromReader),o.setSceneItemId(r);break;case 3:r=new e.Any,t.readMessage(r,e.Any.deserializeBinaryFromReader),o.addDetails(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.ModelEntity.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.ModelEntity.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.ModelEntity.serializeBinaryToWriter=function(o,t){var r=void 0;0!==(r=o.getEntityId())&&t.writeInt64(1,r),null!=(r=o.getSceneItemId())&&t.writeMessage(2,r,p.Uuid.serializeBinaryToWriter),(r=o.getDetailsList()).length>0&&t.writeRepeatedMessage(3,r,e.Any.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.ModelEntity.prototype.getEntityId=function(){return t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.ModelEntity.prototype.setEntityId=function(o){t.Message.setProto3IntField(this,1,o)},proto.vertexvis.protobuf.core.ModelEntity.prototype.getSceneItemId=function(){return t.Message.getWrapperField(this,p.Uuid,2)},proto.vertexvis.protobuf.core.ModelEntity.prototype.setSceneItemId=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.ModelEntity.prototype.clearSceneItemId=function(){this.setSceneItemId(void 0)},proto.vertexvis.protobuf.core.ModelEntity.prototype.hasSceneItemId=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.ModelEntity.prototype.getDetailsList=function(){return t.Message.getRepeatedWrapperField(this,e.Any,3)},proto.vertexvis.protobuf.core.ModelEntity.prototype.setDetailsList=function(o){t.Message.setRepeatedWrapperField(this,3,o)},proto.vertexvis.protobuf.core.ModelEntity.prototype.addDetails=function(o,r){return t.Message.addToRepeatedWrapperField(this,3,o,proto.google.protobuf.Any,r)},proto.vertexvis.protobuf.core.ModelEntity.prototype.clearDetailsList=function(){this.setDetailsList([])},n.object.extend(r,proto.vertexvis.protobuf.core)})),f=o((function(o,r){var n=t,i=Function("return this")();n.exportSymbol("proto.vertexvis.protobuf.core.AffineMatrix4d",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.AffineMatrix4f",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.AffineTransform2d",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.AffineTransform2f",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.AffineTransform3d",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.AffineTransform3f",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.BBox2d",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.BBox2f",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.BBox3d",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.BBox3f",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.BoundingBox3f",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.Dimension2i",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.Indexed3DTriangleSet",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.IndexedVector3fArray",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.LinearTransform2d",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.LinearTransform2f",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.LinearTransform3d",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.LinearTransform3f",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.Matrix4x4d",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.Matrix4x4f",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.Plane",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.Point2i",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.Vector2d",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.Vector2f",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.Vector3d",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.Vector3f",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.Vector4d",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.Vector4f",null,i),proto.vertexvis.protobuf.core.Vector2f=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.Vector2f,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Vector2f.displayName="proto.vertexvis.protobuf.core.Vector2f"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Vector2f.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.Vector2f.toObject(o,this)},proto.vertexvis.protobuf.core.Vector2f.toObject=function(o,r){var n={x:+t.Message.getFieldWithDefault(r,1,0),y:+t.Message.getFieldWithDefault(r,2,0)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.Vector2f.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.Vector2f;return proto.vertexvis.protobuf.core.Vector2f.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.Vector2f.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readFloat();o.setX(r);break;case 2:r=t.readFloat(),o.setY(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.Vector2f.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.Vector2f.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.Vector2f.serializeBinaryToWriter=function(o,t){var r=void 0;0!==(r=o.getX())&&t.writeFloat(1,r),0!==(r=o.getY())&&t.writeFloat(2,r)},proto.vertexvis.protobuf.core.Vector2f.prototype.getX=function(){return+t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.Vector2f.prototype.setX=function(o){t.Message.setProto3FloatField(this,1,o)},proto.vertexvis.protobuf.core.Vector2f.prototype.getY=function(){return+t.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.core.Vector2f.prototype.setY=function(o){t.Message.setProto3FloatField(this,2,o)},proto.vertexvis.protobuf.core.Vector2d=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.Vector2d,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Vector2d.displayName="proto.vertexvis.protobuf.core.Vector2d"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Vector2d.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.Vector2d.toObject(o,this)},proto.vertexvis.protobuf.core.Vector2d.toObject=function(o,r){var n={x:+t.Message.getFieldWithDefault(r,1,0),y:+t.Message.getFieldWithDefault(r,2,0)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.Vector2d.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.Vector2d;return proto.vertexvis.protobuf.core.Vector2d.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.Vector2d.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readDouble();o.setX(r);break;case 2:r=t.readDouble(),o.setY(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.Vector2d.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.Vector2d.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.Vector2d.serializeBinaryToWriter=function(o,t){var r=void 0;0!==(r=o.getX())&&t.writeDouble(1,r),0!==(r=o.getY())&&t.writeDouble(2,r)},proto.vertexvis.protobuf.core.Vector2d.prototype.getX=function(){return+t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.Vector2d.prototype.setX=function(o){t.Message.setProto3FloatField(this,1,o)},proto.vertexvis.protobuf.core.Vector2d.prototype.getY=function(){return+t.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.core.Vector2d.prototype.setY=function(o){t.Message.setProto3FloatField(this,2,o)},proto.vertexvis.protobuf.core.Vector3f=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.Vector3f,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Vector3f.displayName="proto.vertexvis.protobuf.core.Vector3f"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Vector3f.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.Vector3f.toObject(o,this)},proto.vertexvis.protobuf.core.Vector3f.toObject=function(o,r){var n={x:+t.Message.getFieldWithDefault(r,1,0),y:+t.Message.getFieldWithDefault(r,2,0),z:+t.Message.getFieldWithDefault(r,3,0)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.Vector3f.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.Vector3f;return proto.vertexvis.protobuf.core.Vector3f.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.Vector3f.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readFloat();o.setX(r);break;case 2:r=t.readFloat(),o.setY(r);break;case 3:r=t.readFloat(),o.setZ(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.Vector3f.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.Vector3f.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.Vector3f.serializeBinaryToWriter=function(o,t){var r=void 0;0!==(r=o.getX())&&t.writeFloat(1,r),0!==(r=o.getY())&&t.writeFloat(2,r),0!==(r=o.getZ())&&t.writeFloat(3,r)},proto.vertexvis.protobuf.core.Vector3f.prototype.getX=function(){return+t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.Vector3f.prototype.setX=function(o){t.Message.setProto3FloatField(this,1,o)},proto.vertexvis.protobuf.core.Vector3f.prototype.getY=function(){return+t.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.core.Vector3f.prototype.setY=function(o){t.Message.setProto3FloatField(this,2,o)},proto.vertexvis.protobuf.core.Vector3f.prototype.getZ=function(){return+t.Message.getFieldWithDefault(this,3,0)},proto.vertexvis.protobuf.core.Vector3f.prototype.setZ=function(o){t.Message.setProto3FloatField(this,3,o)},proto.vertexvis.protobuf.core.Vector3d=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.Vector3d,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Vector3d.displayName="proto.vertexvis.protobuf.core.Vector3d"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Vector3d.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.Vector3d.toObject(o,this)},proto.vertexvis.protobuf.core.Vector3d.toObject=function(o,r){var n={x:+t.Message.getFieldWithDefault(r,1,0),y:+t.Message.getFieldWithDefault(r,2,0),z:+t.Message.getFieldWithDefault(r,3,0)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.Vector3d.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.Vector3d;return proto.vertexvis.protobuf.core.Vector3d.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.Vector3d.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readDouble();o.setX(r);break;case 2:r=t.readDouble(),o.setY(r);break;case 3:r=t.readDouble(),o.setZ(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.Vector3d.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.Vector3d.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.Vector3d.serializeBinaryToWriter=function(o,t){var r=void 0;0!==(r=o.getX())&&t.writeDouble(1,r),0!==(r=o.getY())&&t.writeDouble(2,r),0!==(r=o.getZ())&&t.writeDouble(3,r)},proto.vertexvis.protobuf.core.Vector3d.prototype.getX=function(){return+t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.Vector3d.prototype.setX=function(o){t.Message.setProto3FloatField(this,1,o)},proto.vertexvis.protobuf.core.Vector3d.prototype.getY=function(){return+t.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.core.Vector3d.prototype.setY=function(o){t.Message.setProto3FloatField(this,2,o)},proto.vertexvis.protobuf.core.Vector3d.prototype.getZ=function(){return+t.Message.getFieldWithDefault(this,3,0)},proto.vertexvis.protobuf.core.Vector3d.prototype.setZ=function(o){t.Message.setProto3FloatField(this,3,o)},proto.vertexvis.protobuf.core.Vector4f=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.Vector4f,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Vector4f.displayName="proto.vertexvis.protobuf.core.Vector4f"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Vector4f.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.Vector4f.toObject(o,this)},proto.vertexvis.protobuf.core.Vector4f.toObject=function(o,r){var n={x:+t.Message.getFieldWithDefault(r,1,0),y:+t.Message.getFieldWithDefault(r,2,0),z:+t.Message.getFieldWithDefault(r,3,0),w:+t.Message.getFieldWithDefault(r,4,0)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.Vector4f.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.Vector4f;return proto.vertexvis.protobuf.core.Vector4f.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.Vector4f.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readFloat();o.setX(r);break;case 2:r=t.readFloat(),o.setY(r);break;case 3:r=t.readFloat(),o.setZ(r);break;case 4:r=t.readFloat(),o.setW(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.Vector4f.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.Vector4f.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.Vector4f.serializeBinaryToWriter=function(o,t){var r=void 0;0!==(r=o.getX())&&t.writeFloat(1,r),0!==(r=o.getY())&&t.writeFloat(2,r),0!==(r=o.getZ())&&t.writeFloat(3,r),0!==(r=o.getW())&&t.writeFloat(4,r)},proto.vertexvis.protobuf.core.Vector4f.prototype.getX=function(){return+t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.Vector4f.prototype.setX=function(o){t.Message.setProto3FloatField(this,1,o)},proto.vertexvis.protobuf.core.Vector4f.prototype.getY=function(){return+t.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.core.Vector4f.prototype.setY=function(o){t.Message.setProto3FloatField(this,2,o)},proto.vertexvis.protobuf.core.Vector4f.prototype.getZ=function(){return+t.Message.getFieldWithDefault(this,3,0)},proto.vertexvis.protobuf.core.Vector4f.prototype.setZ=function(o){t.Message.setProto3FloatField(this,3,o)},proto.vertexvis.protobuf.core.Vector4f.prototype.getW=function(){return+t.Message.getFieldWithDefault(this,4,0)},proto.vertexvis.protobuf.core.Vector4f.prototype.setW=function(o){t.Message.setProto3FloatField(this,4,o)},proto.vertexvis.protobuf.core.Vector4d=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.Vector4d,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Vector4d.displayName="proto.vertexvis.protobuf.core.Vector4d"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Vector4d.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.Vector4d.toObject(o,this)},proto.vertexvis.protobuf.core.Vector4d.toObject=function(o,r){var n={x:+t.Message.getFieldWithDefault(r,1,0),y:+t.Message.getFieldWithDefault(r,2,0),z:+t.Message.getFieldWithDefault(r,3,0),w:+t.Message.getFieldWithDefault(r,4,0)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.Vector4d.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.Vector4d;return proto.vertexvis.protobuf.core.Vector4d.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.Vector4d.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readDouble();o.setX(r);break;case 2:r=t.readDouble(),o.setY(r);break;case 3:r=t.readDouble(),o.setZ(r);break;case 4:r=t.readDouble(),o.setW(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.Vector4d.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.Vector4d.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.Vector4d.serializeBinaryToWriter=function(o,t){var r=void 0;0!==(r=o.getX())&&t.writeDouble(1,r),0!==(r=o.getY())&&t.writeDouble(2,r),0!==(r=o.getZ())&&t.writeDouble(3,r),0!==(r=o.getW())&&t.writeDouble(4,r)},proto.vertexvis.protobuf.core.Vector4d.prototype.getX=function(){return+t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.Vector4d.prototype.setX=function(o){t.Message.setProto3FloatField(this,1,o)},proto.vertexvis.protobuf.core.Vector4d.prototype.getY=function(){return+t.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.core.Vector4d.prototype.setY=function(o){t.Message.setProto3FloatField(this,2,o)},proto.vertexvis.protobuf.core.Vector4d.prototype.getZ=function(){return+t.Message.getFieldWithDefault(this,3,0)},proto.vertexvis.protobuf.core.Vector4d.prototype.setZ=function(o){t.Message.setProto3FloatField(this,3,o)},proto.vertexvis.protobuf.core.Vector4d.prototype.getW=function(){return+t.Message.getFieldWithDefault(this,4,0)},proto.vertexvis.protobuf.core.Vector4d.prototype.setW=function(o){t.Message.setProto3FloatField(this,4,o)},proto.vertexvis.protobuf.core.BoundingBox3f=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.BoundingBox3f,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.BoundingBox3f.displayName="proto.vertexvis.protobuf.core.BoundingBox3f"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.BoundingBox3f.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.BoundingBox3f.toObject(o,this)},proto.vertexvis.protobuf.core.BoundingBox3f.toObject=function(o,r){var n={xmin:+t.Message.getFieldWithDefault(r,1,0),xmax:+t.Message.getFieldWithDefault(r,2,0),ymin:+t.Message.getFieldWithDefault(r,3,0),ymax:+t.Message.getFieldWithDefault(r,4,0),zmin:+t.Message.getFieldWithDefault(r,5,0),zmax:+t.Message.getFieldWithDefault(r,6,0)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.BoundingBox3f.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.BoundingBox3f;return proto.vertexvis.protobuf.core.BoundingBox3f.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.BoundingBox3f.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readFloat();o.setXmin(r);break;case 2:r=t.readFloat(),o.setXmax(r);break;case 3:r=t.readFloat(),o.setYmin(r);break;case 4:r=t.readFloat(),o.setYmax(r);break;case 5:r=t.readFloat(),o.setZmin(r);break;case 6:r=t.readFloat(),o.setZmax(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.BoundingBox3f.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.BoundingBox3f.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.BoundingBox3f.serializeBinaryToWriter=function(o,t){var r=void 0;0!==(r=o.getXmin())&&t.writeFloat(1,r),0!==(r=o.getXmax())&&t.writeFloat(2,r),0!==(r=o.getYmin())&&t.writeFloat(3,r),0!==(r=o.getYmax())&&t.writeFloat(4,r),0!==(r=o.getZmin())&&t.writeFloat(5,r),0!==(r=o.getZmax())&&t.writeFloat(6,r)},proto.vertexvis.protobuf.core.BoundingBox3f.prototype.getXmin=function(){return+t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.BoundingBox3f.prototype.setXmin=function(o){t.Message.setProto3FloatField(this,1,o)},proto.vertexvis.protobuf.core.BoundingBox3f.prototype.getXmax=function(){return+t.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.core.BoundingBox3f.prototype.setXmax=function(o){t.Message.setProto3FloatField(this,2,o)},proto.vertexvis.protobuf.core.BoundingBox3f.prototype.getYmin=function(){return+t.Message.getFieldWithDefault(this,3,0)},proto.vertexvis.protobuf.core.BoundingBox3f.prototype.setYmin=function(o){t.Message.setProto3FloatField(this,3,o)},proto.vertexvis.protobuf.core.BoundingBox3f.prototype.getYmax=function(){return+t.Message.getFieldWithDefault(this,4,0)},proto.vertexvis.protobuf.core.BoundingBox3f.prototype.setYmax=function(o){t.Message.setProto3FloatField(this,4,o)},proto.vertexvis.protobuf.core.BoundingBox3f.prototype.getZmin=function(){return+t.Message.getFieldWithDefault(this,5,0)},proto.vertexvis.protobuf.core.BoundingBox3f.prototype.setZmin=function(o){t.Message.setProto3FloatField(this,5,o)},proto.vertexvis.protobuf.core.BoundingBox3f.prototype.getZmax=function(){return+t.Message.getFieldWithDefault(this,6,0)},proto.vertexvis.protobuf.core.BoundingBox3f.prototype.setZmax=function(o){t.Message.setProto3FloatField(this,6,o)},proto.vertexvis.protobuf.core.AffineMatrix4f=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.AffineMatrix4f,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.AffineMatrix4f.displayName="proto.vertexvis.protobuf.core.AffineMatrix4f"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.AffineMatrix4f.toObject(o,this)},proto.vertexvis.protobuf.core.AffineMatrix4f.toObject=function(o,r){var n,i={basisX:(n=r.getBasisX())&&proto.vertexvis.protobuf.core.Vector3f.toObject(o,n),basisY:(n=r.getBasisY())&&proto.vertexvis.protobuf.core.Vector3f.toObject(o,n),xlate:(n=r.getXlate())&&proto.vertexvis.protobuf.core.Vector3f.toObject(o,n),scale:+t.Message.getFieldWithDefault(r,4,0),basisZ:(n=r.getBasisZ())&&proto.vertexvis.protobuf.core.Vector3f.toObject(o,n)};return o&&(i.$jspbMessageInstance=r),i}),proto.vertexvis.protobuf.core.AffineMatrix4f.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.AffineMatrix4f;return proto.vertexvis.protobuf.core.AffineMatrix4f.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.AffineMatrix4f.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.Vector3f;t.readMessage(r,proto.vertexvis.protobuf.core.Vector3f.deserializeBinaryFromReader),o.setBasisX(r);break;case 2:r=new proto.vertexvis.protobuf.core.Vector3f,t.readMessage(r,proto.vertexvis.protobuf.core.Vector3f.deserializeBinaryFromReader),o.setBasisY(r);break;case 3:r=new proto.vertexvis.protobuf.core.Vector3f,t.readMessage(r,proto.vertexvis.protobuf.core.Vector3f.deserializeBinaryFromReader),o.setXlate(r);break;case 4:r=t.readFloat(),o.setScale(r);break;case 5:r=new proto.vertexvis.protobuf.core.Vector3f,t.readMessage(r,proto.vertexvis.protobuf.core.Vector3f.deserializeBinaryFromReader),o.setBasisZ(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.AffineMatrix4f.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.AffineMatrix4f.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getBasisX())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.Vector3f.serializeBinaryToWriter),null!=(r=o.getBasisY())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.Vector3f.serializeBinaryToWriter),null!=(r=o.getXlate())&&t.writeMessage(3,r,proto.vertexvis.protobuf.core.Vector3f.serializeBinaryToWriter),0!==(r=o.getScale())&&t.writeFloat(4,r),null!=(r=o.getBasisZ())&&t.writeMessage(5,r,proto.vertexvis.protobuf.core.Vector3f.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.getBasisX=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3f,1)},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.setBasisX=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.clearBasisX=function(){this.setBasisX(void 0)},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.hasBasisX=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.getBasisY=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3f,2)},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.setBasisY=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.clearBasisY=function(){this.setBasisY(void 0)},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.hasBasisY=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.getXlate=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3f,3)},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.setXlate=function(o){t.Message.setWrapperField(this,3,o)},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.clearXlate=function(){this.setXlate(void 0)},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.hasXlate=function(){return null!=t.Message.getField(this,3)},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.getScale=function(){return+t.Message.getFieldWithDefault(this,4,0)},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.setScale=function(o){t.Message.setProto3FloatField(this,4,o)},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.getBasisZ=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3f,5)},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.setBasisZ=function(o){t.Message.setWrapperField(this,5,o)},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.clearBasisZ=function(){this.setBasisZ(void 0)},proto.vertexvis.protobuf.core.AffineMatrix4f.prototype.hasBasisZ=function(){return null!=t.Message.getField(this,5)},proto.vertexvis.protobuf.core.AffineMatrix4d=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.AffineMatrix4d,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.AffineMatrix4d.displayName="proto.vertexvis.protobuf.core.AffineMatrix4d"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.AffineMatrix4d.toObject(o,this)},proto.vertexvis.protobuf.core.AffineMatrix4d.toObject=function(o,r){var n,i={basisX:(n=r.getBasisX())&&proto.vertexvis.protobuf.core.Vector3d.toObject(o,n),basisY:(n=r.getBasisY())&&proto.vertexvis.protobuf.core.Vector3d.toObject(o,n),xlate:(n=r.getXlate())&&proto.vertexvis.protobuf.core.Vector3d.toObject(o,n),scale:+t.Message.getFieldWithDefault(r,4,0),basisZ:(n=r.getBasisZ())&&proto.vertexvis.protobuf.core.Vector3d.toObject(o,n)};return o&&(i.$jspbMessageInstance=r),i}),proto.vertexvis.protobuf.core.AffineMatrix4d.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.AffineMatrix4d;return proto.vertexvis.protobuf.core.AffineMatrix4d.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.AffineMatrix4d.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.Vector3d;t.readMessage(r,proto.vertexvis.protobuf.core.Vector3d.deserializeBinaryFromReader),o.setBasisX(r);break;case 2:r=new proto.vertexvis.protobuf.core.Vector3d,t.readMessage(r,proto.vertexvis.protobuf.core.Vector3d.deserializeBinaryFromReader),o.setBasisY(r);break;case 3:r=new proto.vertexvis.protobuf.core.Vector3d,t.readMessage(r,proto.vertexvis.protobuf.core.Vector3d.deserializeBinaryFromReader),o.setXlate(r);break;case 4:r=t.readDouble(),o.setScale(r);break;case 5:r=new proto.vertexvis.protobuf.core.Vector3d,t.readMessage(r,proto.vertexvis.protobuf.core.Vector3d.deserializeBinaryFromReader),o.setBasisZ(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.AffineMatrix4d.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.AffineMatrix4d.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getBasisX())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.Vector3d.serializeBinaryToWriter),null!=(r=o.getBasisY())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.Vector3d.serializeBinaryToWriter),null!=(r=o.getXlate())&&t.writeMessage(3,r,proto.vertexvis.protobuf.core.Vector3d.serializeBinaryToWriter),0!==(r=o.getScale())&&t.writeDouble(4,r),null!=(r=o.getBasisZ())&&t.writeMessage(5,r,proto.vertexvis.protobuf.core.Vector3d.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.getBasisX=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3d,1)},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.setBasisX=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.clearBasisX=function(){this.setBasisX(void 0)},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.hasBasisX=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.getBasisY=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3d,2)},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.setBasisY=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.clearBasisY=function(){this.setBasisY(void 0)},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.hasBasisY=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.getXlate=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3d,3)},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.setXlate=function(o){t.Message.setWrapperField(this,3,o)},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.clearXlate=function(){this.setXlate(void 0)},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.hasXlate=function(){return null!=t.Message.getField(this,3)},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.getScale=function(){return+t.Message.getFieldWithDefault(this,4,0)},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.setScale=function(o){t.Message.setProto3FloatField(this,4,o)},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.getBasisZ=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3d,5)},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.setBasisZ=function(o){t.Message.setWrapperField(this,5,o)},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.clearBasisZ=function(){this.setBasisZ(void 0)},proto.vertexvis.protobuf.core.AffineMatrix4d.prototype.hasBasisZ=function(){return null!=t.Message.getField(this,5)},proto.vertexvis.protobuf.core.IndexedVector3fArray=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.core.IndexedVector3fArray.repeatedFields_,null)},n.inherits(proto.vertexvis.protobuf.core.IndexedVector3fArray,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.IndexedVector3fArray.displayName="proto.vertexvis.protobuf.core.IndexedVector3fArray"),proto.vertexvis.protobuf.core.IndexedVector3fArray.repeatedFields_=[1,2],t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.IndexedVector3fArray.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.IndexedVector3fArray.toObject(o,this)},proto.vertexvis.protobuf.core.IndexedVector3fArray.toObject=function(o,r){var n={valuesList:t.Message.toObjectList(r.getValuesList(),proto.vertexvis.protobuf.core.Vector3f.toObject,o),indicesList:t.Message.getRepeatedField(r,2)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.IndexedVector3fArray.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.IndexedVector3fArray;return proto.vertexvis.protobuf.core.IndexedVector3fArray.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.IndexedVector3fArray.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.Vector3f;t.readMessage(r,proto.vertexvis.protobuf.core.Vector3f.deserializeBinaryFromReader),o.addValues(r);break;case 2:r=t.readPackedUint32(),o.setIndicesList(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.IndexedVector3fArray.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.IndexedVector3fArray.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.IndexedVector3fArray.serializeBinaryToWriter=function(o,t){var r=void 0;(r=o.getValuesList()).length>0&&t.writeRepeatedMessage(1,r,proto.vertexvis.protobuf.core.Vector3f.serializeBinaryToWriter),(r=o.getIndicesList()).length>0&&t.writePackedUint32(2,r)},proto.vertexvis.protobuf.core.IndexedVector3fArray.prototype.getValuesList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.core.Vector3f,1)},proto.vertexvis.protobuf.core.IndexedVector3fArray.prototype.setValuesList=function(o){t.Message.setRepeatedWrapperField(this,1,o)},proto.vertexvis.protobuf.core.IndexedVector3fArray.prototype.addValues=function(o,r){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.core.Vector3f,r)},proto.vertexvis.protobuf.core.IndexedVector3fArray.prototype.clearValuesList=function(){this.setValuesList([])},proto.vertexvis.protobuf.core.IndexedVector3fArray.prototype.getIndicesList=function(){return t.Message.getRepeatedField(this,2)},proto.vertexvis.protobuf.core.IndexedVector3fArray.prototype.setIndicesList=function(o){t.Message.setField(this,2,o||[])},proto.vertexvis.protobuf.core.IndexedVector3fArray.prototype.addIndices=function(o,r){t.Message.addToRepeatedField(this,2,o,r)},proto.vertexvis.protobuf.core.IndexedVector3fArray.prototype.clearIndicesList=function(){this.setIndicesList([])},proto.vertexvis.protobuf.core.Indexed3DTriangleSet=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.Indexed3DTriangleSet,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Indexed3DTriangleSet.displayName="proto.vertexvis.protobuf.core.Indexed3DTriangleSet"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Indexed3DTriangleSet.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.Indexed3DTriangleSet.toObject(o,this)},proto.vertexvis.protobuf.core.Indexed3DTriangleSet.toObject=function(o,t){var r,n={vertices:(r=t.getVertices())&&proto.vertexvis.protobuf.core.IndexedVector3fArray.toObject(o,r),normals:(r=t.getNormals())&&proto.vertexvis.protobuf.core.IndexedVector3fArray.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.core.Indexed3DTriangleSet.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.Indexed3DTriangleSet;return proto.vertexvis.protobuf.core.Indexed3DTriangleSet.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.Indexed3DTriangleSet.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.IndexedVector3fArray;t.readMessage(r,proto.vertexvis.protobuf.core.IndexedVector3fArray.deserializeBinaryFromReader),o.setVertices(r);break;case 2:r=new proto.vertexvis.protobuf.core.IndexedVector3fArray,t.readMessage(r,proto.vertexvis.protobuf.core.IndexedVector3fArray.deserializeBinaryFromReader),o.setNormals(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.Indexed3DTriangleSet.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.Indexed3DTriangleSet.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.Indexed3DTriangleSet.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getVertices())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.IndexedVector3fArray.serializeBinaryToWriter),null!=(r=o.getNormals())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.IndexedVector3fArray.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.Indexed3DTriangleSet.prototype.getVertices=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.IndexedVector3fArray,1)},proto.vertexvis.protobuf.core.Indexed3DTriangleSet.prototype.setVertices=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.Indexed3DTriangleSet.prototype.clearVertices=function(){this.setVertices(void 0)},proto.vertexvis.protobuf.core.Indexed3DTriangleSet.prototype.hasVertices=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.Indexed3DTriangleSet.prototype.getNormals=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.IndexedVector3fArray,2)},proto.vertexvis.protobuf.core.Indexed3DTriangleSet.prototype.setNormals=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.Indexed3DTriangleSet.prototype.clearNormals=function(){this.setNormals(void 0)},proto.vertexvis.protobuf.core.Indexed3DTriangleSet.prototype.hasNormals=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.Matrix4x4f=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.Matrix4x4f,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Matrix4x4f.displayName="proto.vertexvis.protobuf.core.Matrix4x4f"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Matrix4x4f.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.Matrix4x4f.toObject(o,this)},proto.vertexvis.protobuf.core.Matrix4x4f.toObject=function(o,t){var r,n={r0:(r=t.getR0())&&proto.vertexvis.protobuf.core.Vector4f.toObject(o,r),r1:(r=t.getR1())&&proto.vertexvis.protobuf.core.Vector4f.toObject(o,r),r2:(r=t.getR2())&&proto.vertexvis.protobuf.core.Vector4f.toObject(o,r),r3:(r=t.getR3())&&proto.vertexvis.protobuf.core.Vector4f.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.core.Matrix4x4f.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.Matrix4x4f;return proto.vertexvis.protobuf.core.Matrix4x4f.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.Matrix4x4f.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.Vector4f;t.readMessage(r,proto.vertexvis.protobuf.core.Vector4f.deserializeBinaryFromReader),o.setR0(r);break;case 2:r=new proto.vertexvis.protobuf.core.Vector4f,t.readMessage(r,proto.vertexvis.protobuf.core.Vector4f.deserializeBinaryFromReader),o.setR1(r);break;case 3:r=new proto.vertexvis.protobuf.core.Vector4f,t.readMessage(r,proto.vertexvis.protobuf.core.Vector4f.deserializeBinaryFromReader),o.setR2(r);break;case 4:r=new proto.vertexvis.protobuf.core.Vector4f,t.readMessage(r,proto.vertexvis.protobuf.core.Vector4f.deserializeBinaryFromReader),o.setR3(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.Matrix4x4f.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.Matrix4x4f.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.Matrix4x4f.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getR0())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.Vector4f.serializeBinaryToWriter),null!=(r=o.getR1())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.Vector4f.serializeBinaryToWriter),null!=(r=o.getR2())&&t.writeMessage(3,r,proto.vertexvis.protobuf.core.Vector4f.serializeBinaryToWriter),null!=(r=o.getR3())&&t.writeMessage(4,r,proto.vertexvis.protobuf.core.Vector4f.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.Matrix4x4f.prototype.getR0=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector4f,1)},proto.vertexvis.protobuf.core.Matrix4x4f.prototype.setR0=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.Matrix4x4f.prototype.clearR0=function(){this.setR0(void 0)},proto.vertexvis.protobuf.core.Matrix4x4f.prototype.hasR0=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.Matrix4x4f.prototype.getR1=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector4f,2)},proto.vertexvis.protobuf.core.Matrix4x4f.prototype.setR1=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.Matrix4x4f.prototype.clearR1=function(){this.setR1(void 0)},proto.vertexvis.protobuf.core.Matrix4x4f.prototype.hasR1=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.Matrix4x4f.prototype.getR2=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector4f,3)},proto.vertexvis.protobuf.core.Matrix4x4f.prototype.setR2=function(o){t.Message.setWrapperField(this,3,o)},proto.vertexvis.protobuf.core.Matrix4x4f.prototype.clearR2=function(){this.setR2(void 0)},proto.vertexvis.protobuf.core.Matrix4x4f.prototype.hasR2=function(){return null!=t.Message.getField(this,3)},proto.vertexvis.protobuf.core.Matrix4x4f.prototype.getR3=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector4f,4)},proto.vertexvis.protobuf.core.Matrix4x4f.prototype.setR3=function(o){t.Message.setWrapperField(this,4,o)},proto.vertexvis.protobuf.core.Matrix4x4f.prototype.clearR3=function(){this.setR3(void 0)},proto.vertexvis.protobuf.core.Matrix4x4f.prototype.hasR3=function(){return null!=t.Message.getField(this,4)},proto.vertexvis.protobuf.core.Matrix4x4d=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.Matrix4x4d,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Matrix4x4d.displayName="proto.vertexvis.protobuf.core.Matrix4x4d"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Matrix4x4d.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.Matrix4x4d.toObject(o,this)},proto.vertexvis.protobuf.core.Matrix4x4d.toObject=function(o,t){var r,n={r0:(r=t.getR0())&&proto.vertexvis.protobuf.core.Vector4d.toObject(o,r),r1:(r=t.getR1())&&proto.vertexvis.protobuf.core.Vector4d.toObject(o,r),r2:(r=t.getR2())&&proto.vertexvis.protobuf.core.Vector4d.toObject(o,r),r3:(r=t.getR3())&&proto.vertexvis.protobuf.core.Vector4d.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.core.Matrix4x4d.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.Matrix4x4d;return proto.vertexvis.protobuf.core.Matrix4x4d.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.Matrix4x4d.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.Vector4d;t.readMessage(r,proto.vertexvis.protobuf.core.Vector4d.deserializeBinaryFromReader),o.setR0(r);break;case 2:r=new proto.vertexvis.protobuf.core.Vector4d,t.readMessage(r,proto.vertexvis.protobuf.core.Vector4d.deserializeBinaryFromReader),o.setR1(r);break;case 3:r=new proto.vertexvis.protobuf.core.Vector4d,t.readMessage(r,proto.vertexvis.protobuf.core.Vector4d.deserializeBinaryFromReader),o.setR2(r);break;case 4:r=new proto.vertexvis.protobuf.core.Vector4d,t.readMessage(r,proto.vertexvis.protobuf.core.Vector4d.deserializeBinaryFromReader),o.setR3(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.Matrix4x4d.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.Matrix4x4d.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.Matrix4x4d.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getR0())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.Vector4d.serializeBinaryToWriter),null!=(r=o.getR1())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.Vector4d.serializeBinaryToWriter),null!=(r=o.getR2())&&t.writeMessage(3,r,proto.vertexvis.protobuf.core.Vector4d.serializeBinaryToWriter),null!=(r=o.getR3())&&t.writeMessage(4,r,proto.vertexvis.protobuf.core.Vector4d.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.Matrix4x4d.prototype.getR0=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector4d,1)},proto.vertexvis.protobuf.core.Matrix4x4d.prototype.setR0=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.Matrix4x4d.prototype.clearR0=function(){this.setR0(void 0)},proto.vertexvis.protobuf.core.Matrix4x4d.prototype.hasR0=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.Matrix4x4d.prototype.getR1=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector4d,2)},proto.vertexvis.protobuf.core.Matrix4x4d.prototype.setR1=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.Matrix4x4d.prototype.clearR1=function(){this.setR1(void 0)},proto.vertexvis.protobuf.core.Matrix4x4d.prototype.hasR1=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.Matrix4x4d.prototype.getR2=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector4d,3)},proto.vertexvis.protobuf.core.Matrix4x4d.prototype.setR2=function(o){t.Message.setWrapperField(this,3,o)},proto.vertexvis.protobuf.core.Matrix4x4d.prototype.clearR2=function(){this.setR2(void 0)},proto.vertexvis.protobuf.core.Matrix4x4d.prototype.hasR2=function(){return null!=t.Message.getField(this,3)},proto.vertexvis.protobuf.core.Matrix4x4d.prototype.getR3=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector4d,4)},proto.vertexvis.protobuf.core.Matrix4x4d.prototype.setR3=function(o){t.Message.setWrapperField(this,4,o)},proto.vertexvis.protobuf.core.Matrix4x4d.prototype.clearR3=function(){this.setR3(void 0)},proto.vertexvis.protobuf.core.Matrix4x4d.prototype.hasR3=function(){return null!=t.Message.getField(this,4)},proto.vertexvis.protobuf.core.Dimension2i=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.Dimension2i,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Dimension2i.displayName="proto.vertexvis.protobuf.core.Dimension2i"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Dimension2i.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.Dimension2i.toObject(o,this)},proto.vertexvis.protobuf.core.Dimension2i.toObject=function(o,r){var n={width:t.Message.getFieldWithDefault(r,1,0),height:t.Message.getFieldWithDefault(r,2,0)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.Dimension2i.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.Dimension2i;return proto.vertexvis.protobuf.core.Dimension2i.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.Dimension2i.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readInt32();o.setWidth(r);break;case 2:r=t.readInt32(),o.setHeight(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.Dimension2i.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.Dimension2i.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.Dimension2i.serializeBinaryToWriter=function(o,t){var r=void 0;0!==(r=o.getWidth())&&t.writeInt32(1,r),0!==(r=o.getHeight())&&t.writeInt32(2,r)},proto.vertexvis.protobuf.core.Dimension2i.prototype.getWidth=function(){return t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.Dimension2i.prototype.setWidth=function(o){t.Message.setProto3IntField(this,1,o)},proto.vertexvis.protobuf.core.Dimension2i.prototype.getHeight=function(){return t.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.core.Dimension2i.prototype.setHeight=function(o){t.Message.setProto3IntField(this,2,o)},proto.vertexvis.protobuf.core.Point2i=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.Point2i,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Point2i.displayName="proto.vertexvis.protobuf.core.Point2i"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Point2i.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.Point2i.toObject(o,this)},proto.vertexvis.protobuf.core.Point2i.toObject=function(o,r){var n={dx:t.Message.getFieldWithDefault(r,1,0),dy:t.Message.getFieldWithDefault(r,2,0)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.Point2i.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.Point2i;return proto.vertexvis.protobuf.core.Point2i.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.Point2i.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readInt32();o.setDx(r);break;case 2:r=t.readInt32(),o.setDy(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.Point2i.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.Point2i.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.Point2i.serializeBinaryToWriter=function(o,t){var r=void 0;0!==(r=o.getDx())&&t.writeInt32(1,r),0!==(r=o.getDy())&&t.writeInt32(2,r)},proto.vertexvis.protobuf.core.Point2i.prototype.getDx=function(){return t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.Point2i.prototype.setDx=function(o){t.Message.setProto3IntField(this,1,o)},proto.vertexvis.protobuf.core.Point2i.prototype.getDy=function(){return t.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.core.Point2i.prototype.setDy=function(o){t.Message.setProto3IntField(this,2,o)},proto.vertexvis.protobuf.core.BBox2f=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.BBox2f,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.BBox2f.displayName="proto.vertexvis.protobuf.core.BBox2f"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.BBox2f.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.BBox2f.toObject(o,this)},proto.vertexvis.protobuf.core.BBox2f.toObject=function(o,t){var r,n={min:(r=t.getMin())&&proto.vertexvis.protobuf.core.Vector2f.toObject(o,r),max:(r=t.getMax())&&proto.vertexvis.protobuf.core.Vector2f.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.core.BBox2f.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.BBox2f;return proto.vertexvis.protobuf.core.BBox2f.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.BBox2f.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.Vector2f;t.readMessage(r,proto.vertexvis.protobuf.core.Vector2f.deserializeBinaryFromReader),o.setMin(r);break;case 2:r=new proto.vertexvis.protobuf.core.Vector2f,t.readMessage(r,proto.vertexvis.protobuf.core.Vector2f.deserializeBinaryFromReader),o.setMax(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.BBox2f.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.BBox2f.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.BBox2f.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getMin())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.Vector2f.serializeBinaryToWriter),null!=(r=o.getMax())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.Vector2f.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.BBox2f.prototype.getMin=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector2f,1)},proto.vertexvis.protobuf.core.BBox2f.prototype.setMin=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.BBox2f.prototype.clearMin=function(){this.setMin(void 0)},proto.vertexvis.protobuf.core.BBox2f.prototype.hasMin=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.BBox2f.prototype.getMax=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector2f,2)},proto.vertexvis.protobuf.core.BBox2f.prototype.setMax=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.BBox2f.prototype.clearMax=function(){this.setMax(void 0)},proto.vertexvis.protobuf.core.BBox2f.prototype.hasMax=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.BBox2d=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.BBox2d,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.BBox2d.displayName="proto.vertexvis.protobuf.core.BBox2d"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.BBox2d.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.BBox2d.toObject(o,this)},proto.vertexvis.protobuf.core.BBox2d.toObject=function(o,t){var r,n={min:(r=t.getMin())&&proto.vertexvis.protobuf.core.Vector2d.toObject(o,r),max:(r=t.getMax())&&proto.vertexvis.protobuf.core.Vector2d.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.core.BBox2d.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.BBox2d;return proto.vertexvis.protobuf.core.BBox2d.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.BBox2d.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.Vector2d;t.readMessage(r,proto.vertexvis.protobuf.core.Vector2d.deserializeBinaryFromReader),o.setMin(r);break;case 2:r=new proto.vertexvis.protobuf.core.Vector2d,t.readMessage(r,proto.vertexvis.protobuf.core.Vector2d.deserializeBinaryFromReader),o.setMax(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.BBox2d.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.BBox2d.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.BBox2d.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getMin())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.Vector2d.serializeBinaryToWriter),null!=(r=o.getMax())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.Vector2d.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.BBox2d.prototype.getMin=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector2d,1)},proto.vertexvis.protobuf.core.BBox2d.prototype.setMin=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.BBox2d.prototype.clearMin=function(){this.setMin(void 0)},proto.vertexvis.protobuf.core.BBox2d.prototype.hasMin=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.BBox2d.prototype.getMax=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector2d,2)},proto.vertexvis.protobuf.core.BBox2d.prototype.setMax=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.BBox2d.prototype.clearMax=function(){this.setMax(void 0)},proto.vertexvis.protobuf.core.BBox2d.prototype.hasMax=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.BBox3f=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.BBox3f,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.BBox3f.displayName="proto.vertexvis.protobuf.core.BBox3f"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.BBox3f.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.BBox3f.toObject(o,this)},proto.vertexvis.protobuf.core.BBox3f.toObject=function(o,t){var r,n={min:(r=t.getMin())&&proto.vertexvis.protobuf.core.Vector3f.toObject(o,r),max:(r=t.getMax())&&proto.vertexvis.protobuf.core.Vector3f.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.core.BBox3f.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.BBox3f;return proto.vertexvis.protobuf.core.BBox3f.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.BBox3f.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.Vector3f;t.readMessage(r,proto.vertexvis.protobuf.core.Vector3f.deserializeBinaryFromReader),o.setMin(r);break;case 2:r=new proto.vertexvis.protobuf.core.Vector3f,t.readMessage(r,proto.vertexvis.protobuf.core.Vector3f.deserializeBinaryFromReader),o.setMax(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.BBox3f.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.BBox3f.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.BBox3f.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getMin())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.Vector3f.serializeBinaryToWriter),null!=(r=o.getMax())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.Vector3f.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.BBox3f.prototype.getMin=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3f,1)},proto.vertexvis.protobuf.core.BBox3f.prototype.setMin=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.BBox3f.prototype.clearMin=function(){this.setMin(void 0)},proto.vertexvis.protobuf.core.BBox3f.prototype.hasMin=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.BBox3f.prototype.getMax=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3f,2)},proto.vertexvis.protobuf.core.BBox3f.prototype.setMax=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.BBox3f.prototype.clearMax=function(){this.setMax(void 0)},proto.vertexvis.protobuf.core.BBox3f.prototype.hasMax=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.BBox3d=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.BBox3d,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.BBox3d.displayName="proto.vertexvis.protobuf.core.BBox3d"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.BBox3d.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.BBox3d.toObject(o,this)},proto.vertexvis.protobuf.core.BBox3d.toObject=function(o,t){var r,n={min:(r=t.getMin())&&proto.vertexvis.protobuf.core.Vector3d.toObject(o,r),max:(r=t.getMax())&&proto.vertexvis.protobuf.core.Vector3d.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.core.BBox3d.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.BBox3d;return proto.vertexvis.protobuf.core.BBox3d.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.BBox3d.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.Vector3d;t.readMessage(r,proto.vertexvis.protobuf.core.Vector3d.deserializeBinaryFromReader),o.setMin(r);break;case 2:r=new proto.vertexvis.protobuf.core.Vector3d,t.readMessage(r,proto.vertexvis.protobuf.core.Vector3d.deserializeBinaryFromReader),o.setMax(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.BBox3d.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.BBox3d.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.BBox3d.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getMin())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.Vector3d.serializeBinaryToWriter),null!=(r=o.getMax())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.Vector3d.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.BBox3d.prototype.getMin=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3d,1)},proto.vertexvis.protobuf.core.BBox3d.prototype.setMin=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.BBox3d.prototype.clearMin=function(){this.setMin(void 0)},proto.vertexvis.protobuf.core.BBox3d.prototype.hasMin=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.BBox3d.prototype.getMax=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3d,2)},proto.vertexvis.protobuf.core.BBox3d.prototype.setMax=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.BBox3d.prototype.clearMax=function(){this.setMax(void 0)},proto.vertexvis.protobuf.core.BBox3d.prototype.hasMax=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.LinearTransform2f=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.LinearTransform2f,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.LinearTransform2f.displayName="proto.vertexvis.protobuf.core.LinearTransform2f"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.LinearTransform2f.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.LinearTransform2f.toObject(o,this)},proto.vertexvis.protobuf.core.LinearTransform2f.toObject=function(o,t){var r,n={basisX:(r=t.getBasisX())&&proto.vertexvis.protobuf.core.Vector2f.toObject(o,r),basisY:(r=t.getBasisY())&&proto.vertexvis.protobuf.core.Vector2f.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.core.LinearTransform2f.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.LinearTransform2f;return proto.vertexvis.protobuf.core.LinearTransform2f.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.LinearTransform2f.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.Vector2f;t.readMessage(r,proto.vertexvis.protobuf.core.Vector2f.deserializeBinaryFromReader),o.setBasisX(r);break;case 2:r=new proto.vertexvis.protobuf.core.Vector2f,t.readMessage(r,proto.vertexvis.protobuf.core.Vector2f.deserializeBinaryFromReader),o.setBasisY(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.LinearTransform2f.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.LinearTransform2f.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.LinearTransform2f.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getBasisX())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.Vector2f.serializeBinaryToWriter),null!=(r=o.getBasisY())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.Vector2f.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.LinearTransform2f.prototype.getBasisX=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector2f,1)},proto.vertexvis.protobuf.core.LinearTransform2f.prototype.setBasisX=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.LinearTransform2f.prototype.clearBasisX=function(){this.setBasisX(void 0)},proto.vertexvis.protobuf.core.LinearTransform2f.prototype.hasBasisX=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.LinearTransform2f.prototype.getBasisY=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector2f,2)},proto.vertexvis.protobuf.core.LinearTransform2f.prototype.setBasisY=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.LinearTransform2f.prototype.clearBasisY=function(){this.setBasisY(void 0)},proto.vertexvis.protobuf.core.LinearTransform2f.prototype.hasBasisY=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.LinearTransform2d=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.LinearTransform2d,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.LinearTransform2d.displayName="proto.vertexvis.protobuf.core.LinearTransform2d"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.LinearTransform2d.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.LinearTransform2d.toObject(o,this)},proto.vertexvis.protobuf.core.LinearTransform2d.toObject=function(o,t){var r,n={basisX:(r=t.getBasisX())&&proto.vertexvis.protobuf.core.Vector2d.toObject(o,r),basisY:(r=t.getBasisY())&&proto.vertexvis.protobuf.core.Vector2d.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.core.LinearTransform2d.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.LinearTransform2d;return proto.vertexvis.protobuf.core.LinearTransform2d.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.LinearTransform2d.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.Vector2d;t.readMessage(r,proto.vertexvis.protobuf.core.Vector2d.deserializeBinaryFromReader),o.setBasisX(r);break;case 2:r=new proto.vertexvis.protobuf.core.Vector2d,t.readMessage(r,proto.vertexvis.protobuf.core.Vector2d.deserializeBinaryFromReader),o.setBasisY(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.LinearTransform2d.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.LinearTransform2d.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.LinearTransform2d.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getBasisX())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.Vector2d.serializeBinaryToWriter),null!=(r=o.getBasisY())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.Vector2d.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.LinearTransform2d.prototype.getBasisX=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector2d,1)},proto.vertexvis.protobuf.core.LinearTransform2d.prototype.setBasisX=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.LinearTransform2d.prototype.clearBasisX=function(){this.setBasisX(void 0)},proto.vertexvis.protobuf.core.LinearTransform2d.prototype.hasBasisX=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.LinearTransform2d.prototype.getBasisY=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector2d,2)},proto.vertexvis.protobuf.core.LinearTransform2d.prototype.setBasisY=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.LinearTransform2d.prototype.clearBasisY=function(){this.setBasisY(void 0)},proto.vertexvis.protobuf.core.LinearTransform2d.prototype.hasBasisY=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.LinearTransform3f=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.LinearTransform3f,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.LinearTransform3f.displayName="proto.vertexvis.protobuf.core.LinearTransform3f"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.LinearTransform3f.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.LinearTransform3f.toObject(o,this)},proto.vertexvis.protobuf.core.LinearTransform3f.toObject=function(o,t){var r,n={basisX:(r=t.getBasisX())&&proto.vertexvis.protobuf.core.Vector3f.toObject(o,r),basisY:(r=t.getBasisY())&&proto.vertexvis.protobuf.core.Vector3f.toObject(o,r),basisZ:(r=t.getBasisZ())&&proto.vertexvis.protobuf.core.Vector3f.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.core.LinearTransform3f.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.LinearTransform3f;return proto.vertexvis.protobuf.core.LinearTransform3f.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.LinearTransform3f.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.Vector3f;t.readMessage(r,proto.vertexvis.protobuf.core.Vector3f.deserializeBinaryFromReader),o.setBasisX(r);break;case 2:r=new proto.vertexvis.protobuf.core.Vector3f,t.readMessage(r,proto.vertexvis.protobuf.core.Vector3f.deserializeBinaryFromReader),o.setBasisY(r);break;case 3:r=new proto.vertexvis.protobuf.core.Vector3f,t.readMessage(r,proto.vertexvis.protobuf.core.Vector3f.deserializeBinaryFromReader),o.setBasisZ(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.LinearTransform3f.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.LinearTransform3f.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.LinearTransform3f.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getBasisX())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.Vector3f.serializeBinaryToWriter),null!=(r=o.getBasisY())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.Vector3f.serializeBinaryToWriter),null!=(r=o.getBasisZ())&&t.writeMessage(3,r,proto.vertexvis.protobuf.core.Vector3f.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.LinearTransform3f.prototype.getBasisX=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3f,1)},proto.vertexvis.protobuf.core.LinearTransform3f.prototype.setBasisX=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.LinearTransform3f.prototype.clearBasisX=function(){this.setBasisX(void 0)},proto.vertexvis.protobuf.core.LinearTransform3f.prototype.hasBasisX=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.LinearTransform3f.prototype.getBasisY=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3f,2)},proto.vertexvis.protobuf.core.LinearTransform3f.prototype.setBasisY=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.LinearTransform3f.prototype.clearBasisY=function(){this.setBasisY(void 0)},proto.vertexvis.protobuf.core.LinearTransform3f.prototype.hasBasisY=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.LinearTransform3f.prototype.getBasisZ=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3f,3)},proto.vertexvis.protobuf.core.LinearTransform3f.prototype.setBasisZ=function(o){t.Message.setWrapperField(this,3,o)},proto.vertexvis.protobuf.core.LinearTransform3f.prototype.clearBasisZ=function(){this.setBasisZ(void 0)},proto.vertexvis.protobuf.core.LinearTransform3f.prototype.hasBasisZ=function(){return null!=t.Message.getField(this,3)},proto.vertexvis.protobuf.core.LinearTransform3d=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.LinearTransform3d,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.LinearTransform3d.displayName="proto.vertexvis.protobuf.core.LinearTransform3d"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.LinearTransform3d.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.LinearTransform3d.toObject(o,this)},proto.vertexvis.protobuf.core.LinearTransform3d.toObject=function(o,t){var r,n={basisX:(r=t.getBasisX())&&proto.vertexvis.protobuf.core.Vector3d.toObject(o,r),basisY:(r=t.getBasisY())&&proto.vertexvis.protobuf.core.Vector3d.toObject(o,r),basisZ:(r=t.getBasisZ())&&proto.vertexvis.protobuf.core.Vector3d.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.core.LinearTransform3d.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.LinearTransform3d;return proto.vertexvis.protobuf.core.LinearTransform3d.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.LinearTransform3d.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.Vector3d;t.readMessage(r,proto.vertexvis.protobuf.core.Vector3d.deserializeBinaryFromReader),o.setBasisX(r);break;case 2:r=new proto.vertexvis.protobuf.core.Vector3d,t.readMessage(r,proto.vertexvis.protobuf.core.Vector3d.deserializeBinaryFromReader),o.setBasisY(r);break;case 3:r=new proto.vertexvis.protobuf.core.Vector3d,t.readMessage(r,proto.vertexvis.protobuf.core.Vector3d.deserializeBinaryFromReader),o.setBasisZ(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.LinearTransform3d.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.LinearTransform3d.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.LinearTransform3d.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getBasisX())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.Vector3d.serializeBinaryToWriter),null!=(r=o.getBasisY())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.Vector3d.serializeBinaryToWriter),null!=(r=o.getBasisZ())&&t.writeMessage(3,r,proto.vertexvis.protobuf.core.Vector3d.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.LinearTransform3d.prototype.getBasisX=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3d,1)},proto.vertexvis.protobuf.core.LinearTransform3d.prototype.setBasisX=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.LinearTransform3d.prototype.clearBasisX=function(){this.setBasisX(void 0)},proto.vertexvis.protobuf.core.LinearTransform3d.prototype.hasBasisX=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.LinearTransform3d.prototype.getBasisY=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3d,2)},proto.vertexvis.protobuf.core.LinearTransform3d.prototype.setBasisY=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.LinearTransform3d.prototype.clearBasisY=function(){this.setBasisY(void 0)},proto.vertexvis.protobuf.core.LinearTransform3d.prototype.hasBasisY=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.LinearTransform3d.prototype.getBasisZ=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3d,3)},proto.vertexvis.protobuf.core.LinearTransform3d.prototype.setBasisZ=function(o){t.Message.setWrapperField(this,3,o)},proto.vertexvis.protobuf.core.LinearTransform3d.prototype.clearBasisZ=function(){this.setBasisZ(void 0)},proto.vertexvis.protobuf.core.LinearTransform3d.prototype.hasBasisZ=function(){return null!=t.Message.getField(this,3)},proto.vertexvis.protobuf.core.AffineTransform2f=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.AffineTransform2f,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.AffineTransform2f.displayName="proto.vertexvis.protobuf.core.AffineTransform2f"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.AffineTransform2f.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.AffineTransform2f.toObject(o,this)},proto.vertexvis.protobuf.core.AffineTransform2f.toObject=function(o,t){var r,n={transform:(r=t.getTransform())&&proto.vertexvis.protobuf.core.LinearTransform2f.toObject(o,r),pos:(r=t.getPos())&&proto.vertexvis.protobuf.core.Vector2f.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.core.AffineTransform2f.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.AffineTransform2f;return proto.vertexvis.protobuf.core.AffineTransform2f.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.AffineTransform2f.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.LinearTransform2f;t.readMessage(r,proto.vertexvis.protobuf.core.LinearTransform2f.deserializeBinaryFromReader),o.setTransform(r);break;case 2:r=new proto.vertexvis.protobuf.core.Vector2f,t.readMessage(r,proto.vertexvis.protobuf.core.Vector2f.deserializeBinaryFromReader),o.setPos(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.AffineTransform2f.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.AffineTransform2f.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.AffineTransform2f.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getTransform())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.LinearTransform2f.serializeBinaryToWriter),null!=(r=o.getPos())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.Vector2f.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.AffineTransform2f.prototype.getTransform=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.LinearTransform2f,1)},proto.vertexvis.protobuf.core.AffineTransform2f.prototype.setTransform=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.AffineTransform2f.prototype.clearTransform=function(){this.setTransform(void 0)},proto.vertexvis.protobuf.core.AffineTransform2f.prototype.hasTransform=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.AffineTransform2f.prototype.getPos=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector2f,2)},proto.vertexvis.protobuf.core.AffineTransform2f.prototype.setPos=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.AffineTransform2f.prototype.clearPos=function(){this.setPos(void 0)},proto.vertexvis.protobuf.core.AffineTransform2f.prototype.hasPos=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.AffineTransform2d=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.AffineTransform2d,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.AffineTransform2d.displayName="proto.vertexvis.protobuf.core.AffineTransform2d"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.AffineTransform2d.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.AffineTransform2d.toObject(o,this)},proto.vertexvis.protobuf.core.AffineTransform2d.toObject=function(o,t){var r,n={transform:(r=t.getTransform())&&proto.vertexvis.protobuf.core.LinearTransform2d.toObject(o,r),pos:(r=t.getPos())&&proto.vertexvis.protobuf.core.Vector2d.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.core.AffineTransform2d.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.AffineTransform2d;return proto.vertexvis.protobuf.core.AffineTransform2d.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.AffineTransform2d.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.LinearTransform2d;t.readMessage(r,proto.vertexvis.protobuf.core.LinearTransform2d.deserializeBinaryFromReader),o.setTransform(r);break;case 2:r=new proto.vertexvis.protobuf.core.Vector2d,t.readMessage(r,proto.vertexvis.protobuf.core.Vector2d.deserializeBinaryFromReader),o.setPos(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.AffineTransform2d.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.AffineTransform2d.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.AffineTransform2d.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getTransform())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.LinearTransform2d.serializeBinaryToWriter),null!=(r=o.getPos())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.Vector2d.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.AffineTransform2d.prototype.getTransform=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.LinearTransform2d,1)},proto.vertexvis.protobuf.core.AffineTransform2d.prototype.setTransform=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.AffineTransform2d.prototype.clearTransform=function(){this.setTransform(void 0)},proto.vertexvis.protobuf.core.AffineTransform2d.prototype.hasTransform=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.AffineTransform2d.prototype.getPos=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector2d,2)},proto.vertexvis.protobuf.core.AffineTransform2d.prototype.setPos=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.AffineTransform2d.prototype.clearPos=function(){this.setPos(void 0)},proto.vertexvis.protobuf.core.AffineTransform2d.prototype.hasPos=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.AffineTransform3f=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.AffineTransform3f,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.AffineTransform3f.displayName="proto.vertexvis.protobuf.core.AffineTransform3f"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.AffineTransform3f.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.AffineTransform3f.toObject(o,this)},proto.vertexvis.protobuf.core.AffineTransform3f.toObject=function(o,t){var r,n={transform:(r=t.getTransform())&&proto.vertexvis.protobuf.core.LinearTransform3f.toObject(o,r),pos:(r=t.getPos())&&proto.vertexvis.protobuf.core.Vector3f.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.core.AffineTransform3f.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.AffineTransform3f;return proto.vertexvis.protobuf.core.AffineTransform3f.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.AffineTransform3f.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.LinearTransform3f;t.readMessage(r,proto.vertexvis.protobuf.core.LinearTransform3f.deserializeBinaryFromReader),o.setTransform(r);break;case 2:r=new proto.vertexvis.protobuf.core.Vector3f,t.readMessage(r,proto.vertexvis.protobuf.core.Vector3f.deserializeBinaryFromReader),o.setPos(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.AffineTransform3f.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.AffineTransform3f.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.AffineTransform3f.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getTransform())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.LinearTransform3f.serializeBinaryToWriter),null!=(r=o.getPos())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.Vector3f.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.AffineTransform3f.prototype.getTransform=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.LinearTransform3f,1)},proto.vertexvis.protobuf.core.AffineTransform3f.prototype.setTransform=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.AffineTransform3f.prototype.clearTransform=function(){this.setTransform(void 0)},proto.vertexvis.protobuf.core.AffineTransform3f.prototype.hasTransform=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.AffineTransform3f.prototype.getPos=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3f,2)},proto.vertexvis.protobuf.core.AffineTransform3f.prototype.setPos=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.AffineTransform3f.prototype.clearPos=function(){this.setPos(void 0)},proto.vertexvis.protobuf.core.AffineTransform3f.prototype.hasPos=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.AffineTransform3d=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.AffineTransform3d,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.AffineTransform3d.displayName="proto.vertexvis.protobuf.core.AffineTransform3d"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.AffineTransform3d.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.AffineTransform3d.toObject(o,this)},proto.vertexvis.protobuf.core.AffineTransform3d.toObject=function(o,t){var r,n={transform:(r=t.getTransform())&&proto.vertexvis.protobuf.core.LinearTransform3d.toObject(o,r),pos:(r=t.getPos())&&proto.vertexvis.protobuf.core.Vector3d.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.core.AffineTransform3d.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.AffineTransform3d;return proto.vertexvis.protobuf.core.AffineTransform3d.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.AffineTransform3d.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.LinearTransform3d;t.readMessage(r,proto.vertexvis.protobuf.core.LinearTransform3d.deserializeBinaryFromReader),o.setTransform(r);break;case 2:r=new proto.vertexvis.protobuf.core.Vector3d,t.readMessage(r,proto.vertexvis.protobuf.core.Vector3d.deserializeBinaryFromReader),o.setPos(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.AffineTransform3d.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.AffineTransform3d.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.AffineTransform3d.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getTransform())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.LinearTransform3d.serializeBinaryToWriter),null!=(r=o.getPos())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.Vector3d.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.AffineTransform3d.prototype.getTransform=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.LinearTransform3d,1)},proto.vertexvis.protobuf.core.AffineTransform3d.prototype.setTransform=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.AffineTransform3d.prototype.clearTransform=function(){this.setTransform(void 0)},proto.vertexvis.protobuf.core.AffineTransform3d.prototype.hasTransform=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.AffineTransform3d.prototype.getPos=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3d,2)},proto.vertexvis.protobuf.core.AffineTransform3d.prototype.setPos=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.AffineTransform3d.prototype.clearPos=function(){this.setPos(void 0)},proto.vertexvis.protobuf.core.AffineTransform3d.prototype.hasPos=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.Plane=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.Plane,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Plane.displayName="proto.vertexvis.protobuf.core.Plane"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Plane.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.Plane.toObject(o,this)},proto.vertexvis.protobuf.core.Plane.toObject=function(o,r){var n,i={normal:(n=r.getNormal())&&proto.vertexvis.protobuf.core.Vector3d.toObject(o,n),d:+t.Message.getFieldWithDefault(r,2,0)};return o&&(i.$jspbMessageInstance=r),i}),proto.vertexvis.protobuf.core.Plane.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.Plane;return proto.vertexvis.protobuf.core.Plane.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.Plane.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.Vector3d;t.readMessage(r,proto.vertexvis.protobuf.core.Vector3d.deserializeBinaryFromReader),o.setNormal(r);break;case 2:r=t.readDouble(),o.setD(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.Plane.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.Plane.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.Plane.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getNormal())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.Vector3d.serializeBinaryToWriter),0!==(r=o.getD())&&t.writeDouble(2,r)},proto.vertexvis.protobuf.core.Plane.prototype.getNormal=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.Vector3d,1)},proto.vertexvis.protobuf.core.Plane.prototype.setNormal=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.Plane.prototype.clearNormal=function(){this.setNormal(void 0)},proto.vertexvis.protobuf.core.Plane.prototype.hasNormal=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.Plane.prototype.getD=function(){return+t.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.core.Plane.prototype.setD=function(o){t.Message.setProto3FloatField(this,2,o)},n.object.extend(r,proto.vertexvis.protobuf.core)}));o((function(o,r){var n=t,i=Function("return this")();n.exportSymbol("proto.vertexvis.protobuf.core.S3FileLocation",null,i),proto.vertexvis.protobuf.core.S3FileLocation=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.S3FileLocation,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.S3FileLocation.displayName="proto.vertexvis.protobuf.core.S3FileLocation"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.S3FileLocation.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.S3FileLocation.toObject(o,this)},proto.vertexvis.protobuf.core.S3FileLocation.toObject=function(o,r){var n={bucket:t.Message.getFieldWithDefault(r,1,""),key:t.Message.getFieldWithDefault(r,2,"")};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.S3FileLocation.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.S3FileLocation;return proto.vertexvis.protobuf.core.S3FileLocation.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.S3FileLocation.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();o.setBucket(r);break;case 2:r=t.readString(),o.setKey(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.S3FileLocation.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.S3FileLocation.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.S3FileLocation.serializeBinaryToWriter=function(o,t){var r=void 0;(r=o.getBucket()).length>0&&t.writeString(1,r),(r=o.getKey()).length>0&&t.writeString(2,r)},proto.vertexvis.protobuf.core.S3FileLocation.prototype.getBucket=function(){return t.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.core.S3FileLocation.prototype.setBucket=function(o){t.Message.setProto3StringField(this,1,o)},proto.vertexvis.protobuf.core.S3FileLocation.prototype.getKey=function(){return t.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.S3FileLocation.prototype.setKey=function(o){t.Message.setProto3StringField(this,2,o)},n.object.extend(r,proto.vertexvis.protobuf.core)}));var s=o((function(o,r){var n=t,i=Function("return this")();n.exportSymbol("proto.vertexvis.protobuf.core.MeasurementOutcome",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.MeasurementResult",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.MinimumDistanceResult",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.PlanarAngleResult",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.PlanarDistanceResult",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.PlanePair",null,i),n.exportSymbol("proto.vertexvis.protobuf.core.SurfaceAreaResult",null,i),proto.vertexvis.protobuf.core.PlanePair=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.PlanePair,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.PlanePair.displayName="proto.vertexvis.protobuf.core.PlanePair"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.PlanePair.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.PlanePair.toObject(o,this)},proto.vertexvis.protobuf.core.PlanePair.toObject=function(o,t){var r,n={start:(r=t.getStart())&&f.Plane.toObject(o,r),end:(r=t.getEnd())&&f.Plane.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.core.PlanePair.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.PlanePair;return proto.vertexvis.protobuf.core.PlanePair.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.PlanePair.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new f.Plane;t.readMessage(r,f.Plane.deserializeBinaryFromReader),o.setStart(r);break;case 2:r=new f.Plane,t.readMessage(r,f.Plane.deserializeBinaryFromReader),o.setEnd(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.PlanePair.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.PlanePair.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.PlanePair.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getStart())&&t.writeMessage(1,r,f.Plane.serializeBinaryToWriter),null!=(r=o.getEnd())&&t.writeMessage(2,r,f.Plane.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.PlanePair.prototype.getStart=function(){return t.Message.getWrapperField(this,f.Plane,1)},proto.vertexvis.protobuf.core.PlanePair.prototype.setStart=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.core.PlanePair.prototype.clearStart=function(){this.setStart(void 0)},proto.vertexvis.protobuf.core.PlanePair.prototype.hasStart=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.PlanePair.prototype.getEnd=function(){return t.Message.getWrapperField(this,f.Plane,2)},proto.vertexvis.protobuf.core.PlanePair.prototype.setEnd=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.PlanePair.prototype.clearEnd=function(){this.setEnd(void 0)},proto.vertexvis.protobuf.core.PlanePair.prototype.hasEnd=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.PlanarDistanceResult=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.PlanarDistanceResult,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.PlanarDistanceResult.displayName="proto.vertexvis.protobuf.core.PlanarDistanceResult"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.PlanarDistanceResult.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.PlanarDistanceResult.toObject(o,this)},proto.vertexvis.protobuf.core.PlanarDistanceResult.toObject=function(o,r){var n,i={distance:+t.Message.getFieldWithDefault(r,1,0),planes:(n=r.getPlanes())&&proto.vertexvis.protobuf.core.PlanePair.toObject(o,n)};return o&&(i.$jspbMessageInstance=r),i}),proto.vertexvis.protobuf.core.PlanarDistanceResult.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.PlanarDistanceResult;return proto.vertexvis.protobuf.core.PlanarDistanceResult.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.PlanarDistanceResult.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readDouble();o.setDistance(r);break;case 2:r=new proto.vertexvis.protobuf.core.PlanePair,t.readMessage(r,proto.vertexvis.protobuf.core.PlanePair.deserializeBinaryFromReader),o.setPlanes(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.PlanarDistanceResult.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.PlanarDistanceResult.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.PlanarDistanceResult.serializeBinaryToWriter=function(o,t){var r=void 0;0!==(r=o.getDistance())&&t.writeDouble(1,r),null!=(r=o.getPlanes())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.PlanePair.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.PlanarDistanceResult.prototype.getDistance=function(){return+t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.PlanarDistanceResult.prototype.setDistance=function(o){t.Message.setProto3FloatField(this,1,o)},proto.vertexvis.protobuf.core.PlanarDistanceResult.prototype.getPlanes=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.PlanePair,2)},proto.vertexvis.protobuf.core.PlanarDistanceResult.prototype.setPlanes=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.PlanarDistanceResult.prototype.clearPlanes=function(){this.setPlanes(void 0)},proto.vertexvis.protobuf.core.PlanarDistanceResult.prototype.hasPlanes=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.MinimumDistanceResult=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.MinimumDistanceResult,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.MinimumDistanceResult.displayName="proto.vertexvis.protobuf.core.MinimumDistanceResult"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.MinimumDistanceResult.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.MinimumDistanceResult.toObject(o,this)},proto.vertexvis.protobuf.core.MinimumDistanceResult.toObject=function(o,r){var n,i={distance:+t.Message.getFieldWithDefault(r,1,0),closestPoint1:(n=r.getClosestPoint1())&&f.Vector3d.toObject(o,n),closestPoint2:(n=r.getClosestPoint2())&&f.Vector3d.toObject(o,n)};return o&&(i.$jspbMessageInstance=r),i}),proto.vertexvis.protobuf.core.MinimumDistanceResult.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.MinimumDistanceResult;return proto.vertexvis.protobuf.core.MinimumDistanceResult.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.MinimumDistanceResult.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readDouble();o.setDistance(r);break;case 2:r=new f.Vector3d,t.readMessage(r,f.Vector3d.deserializeBinaryFromReader),o.setClosestPoint1(r);break;case 3:r=new f.Vector3d,t.readMessage(r,f.Vector3d.deserializeBinaryFromReader),o.setClosestPoint2(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.MinimumDistanceResult.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.MinimumDistanceResult.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.MinimumDistanceResult.serializeBinaryToWriter=function(o,t){var r=void 0;0!==(r=o.getDistance())&&t.writeDouble(1,r),null!=(r=o.getClosestPoint1())&&t.writeMessage(2,r,f.Vector3d.serializeBinaryToWriter),null!=(r=o.getClosestPoint2())&&t.writeMessage(3,r,f.Vector3d.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.MinimumDistanceResult.prototype.getDistance=function(){return+t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.MinimumDistanceResult.prototype.setDistance=function(o){t.Message.setProto3FloatField(this,1,o)},proto.vertexvis.protobuf.core.MinimumDistanceResult.prototype.getClosestPoint1=function(){return t.Message.getWrapperField(this,f.Vector3d,2)},proto.vertexvis.protobuf.core.MinimumDistanceResult.prototype.setClosestPoint1=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.core.MinimumDistanceResult.prototype.clearClosestPoint1=function(){this.setClosestPoint1(void 0)},proto.vertexvis.protobuf.core.MinimumDistanceResult.prototype.hasClosestPoint1=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.MinimumDistanceResult.prototype.getClosestPoint2=function(){return t.Message.getWrapperField(this,f.Vector3d,3)},proto.vertexvis.protobuf.core.MinimumDistanceResult.prototype.setClosestPoint2=function(o){t.Message.setWrapperField(this,3,o)},proto.vertexvis.protobuf.core.MinimumDistanceResult.prototype.clearClosestPoint2=function(){this.setClosestPoint2(void 0)},proto.vertexvis.protobuf.core.MinimumDistanceResult.prototype.hasClosestPoint2=function(){return null!=t.Message.getField(this,3)},proto.vertexvis.protobuf.core.PlanarAngleResult=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.PlanarAngleResult,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.PlanarAngleResult.displayName="proto.vertexvis.protobuf.core.PlanarAngleResult"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.PlanarAngleResult.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.PlanarAngleResult.toObject(o,this)},proto.vertexvis.protobuf.core.PlanarAngleResult.toObject=function(o,r){var n,i={angleInRadians:+t.Message.getFieldWithDefault(r,1,0),planes:(n=r.getPlanes())&&proto.vertexvis.protobuf.core.PlanePair.toObject(o,n)};return o&&(i.$jspbMessageInstance=r),i}),proto.vertexvis.protobuf.core.PlanarAngleResult.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.PlanarAngleResult;return proto.vertexvis.protobuf.core.PlanarAngleResult.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.PlanarAngleResult.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readDouble();o.setAngleInRadians(r);break;case 5:r=new proto.vertexvis.protobuf.core.PlanePair,t.readMessage(r,proto.vertexvis.protobuf.core.PlanePair.deserializeBinaryFromReader),o.setPlanes(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.PlanarAngleResult.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.PlanarAngleResult.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.PlanarAngleResult.serializeBinaryToWriter=function(o,t){var r=void 0;0!==(r=o.getAngleInRadians())&&t.writeDouble(1,r),null!=(r=o.getPlanes())&&t.writeMessage(5,r,proto.vertexvis.protobuf.core.PlanePair.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.PlanarAngleResult.prototype.getAngleInRadians=function(){return+t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.PlanarAngleResult.prototype.setAngleInRadians=function(o){t.Message.setProto3FloatField(this,1,o)},proto.vertexvis.protobuf.core.PlanarAngleResult.prototype.getPlanes=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.PlanePair,5)},proto.vertexvis.protobuf.core.PlanarAngleResult.prototype.setPlanes=function(o){t.Message.setWrapperField(this,5,o)},proto.vertexvis.protobuf.core.PlanarAngleResult.prototype.clearPlanes=function(){this.setPlanes(void 0)},proto.vertexvis.protobuf.core.PlanarAngleResult.prototype.hasPlanes=function(){return null!=t.Message.getField(this,5)},proto.vertexvis.protobuf.core.SurfaceAreaResult=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.SurfaceAreaResult,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.SurfaceAreaResult.displayName="proto.vertexvis.protobuf.core.SurfaceAreaResult"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.SurfaceAreaResult.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.SurfaceAreaResult.toObject(o,this)},proto.vertexvis.protobuf.core.SurfaceAreaResult.toObject=function(o,r){var n={area:+t.Message.getFieldWithDefault(r,1,0)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.SurfaceAreaResult.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.SurfaceAreaResult;return proto.vertexvis.protobuf.core.SurfaceAreaResult.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.SurfaceAreaResult.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readDouble();o.setArea(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.SurfaceAreaResult.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.SurfaceAreaResult.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.SurfaceAreaResult.serializeBinaryToWriter=function(o,t){var r;0!==(r=o.getArea())&&t.writeDouble(1,r)},proto.vertexvis.protobuf.core.SurfaceAreaResult.prototype.getArea=function(){return+t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.SurfaceAreaResult.prototype.setArea=function(o){t.Message.setProto3FloatField(this,1,o)},proto.vertexvis.protobuf.core.MeasurementResult=function(o){t.Message.initialize(this,o,0,-1,null,proto.vertexvis.protobuf.core.MeasurementResult.oneofGroups_)},n.inherits(proto.vertexvis.protobuf.core.MeasurementResult,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.MeasurementResult.displayName="proto.vertexvis.protobuf.core.MeasurementResult"),proto.vertexvis.protobuf.core.MeasurementResult.oneofGroups_=[[1,2,3,4]],proto.vertexvis.protobuf.core.MeasurementResult.DetailsCase={DETAILS_NOT_SET:0,PLANAR_DISTANCE:1,PLANAR_ANGLE:2,MINIMUM_DISTANCE:3,TOTAL_SURFACE_AREA:4},proto.vertexvis.protobuf.core.MeasurementResult.prototype.getDetailsCase=function(){return t.Message.computeOneofCase(this,proto.vertexvis.protobuf.core.MeasurementResult.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.MeasurementResult.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.MeasurementResult.toObject(o,this)},proto.vertexvis.protobuf.core.MeasurementResult.toObject=function(o,t){var r,n={planarDistance:(r=t.getPlanarDistance())&&proto.vertexvis.protobuf.core.PlanarDistanceResult.toObject(o,r),planarAngle:(r=t.getPlanarAngle())&&proto.vertexvis.protobuf.core.PlanarAngleResult.toObject(o,r),minimumDistance:(r=t.getMinimumDistance())&&proto.vertexvis.protobuf.core.MinimumDistanceResult.toObject(o,r),totalSurfaceArea:(r=t.getTotalSurfaceArea())&&proto.vertexvis.protobuf.core.SurfaceAreaResult.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.core.MeasurementResult.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.MeasurementResult;return proto.vertexvis.protobuf.core.MeasurementResult.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.MeasurementResult.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.PlanarDistanceResult;t.readMessage(r,proto.vertexvis.protobuf.core.PlanarDistanceResult.deserializeBinaryFromReader),o.setPlanarDistance(r);break;case 2:r=new proto.vertexvis.protobuf.core.PlanarAngleResult,t.readMessage(r,proto.vertexvis.protobuf.core.PlanarAngleResult.deserializeBinaryFromReader),o.setPlanarAngle(r);break;case 3:r=new proto.vertexvis.protobuf.core.MinimumDistanceResult,t.readMessage(r,proto.vertexvis.protobuf.core.MinimumDistanceResult.deserializeBinaryFromReader),o.setMinimumDistance(r);break;case 4:r=new proto.vertexvis.protobuf.core.SurfaceAreaResult,t.readMessage(r,proto.vertexvis.protobuf.core.SurfaceAreaResult.deserializeBinaryFromReader),o.setTotalSurfaceArea(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.MeasurementResult.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.MeasurementResult.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.MeasurementResult.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getPlanarDistance())&&t.writeMessage(1,r,proto.vertexvis.protobuf.core.PlanarDistanceResult.serializeBinaryToWriter),null!=(r=o.getPlanarAngle())&&t.writeMessage(2,r,proto.vertexvis.protobuf.core.PlanarAngleResult.serializeBinaryToWriter),null!=(r=o.getMinimumDistance())&&t.writeMessage(3,r,proto.vertexvis.protobuf.core.MinimumDistanceResult.serializeBinaryToWriter),null!=(r=o.getTotalSurfaceArea())&&t.writeMessage(4,r,proto.vertexvis.protobuf.core.SurfaceAreaResult.serializeBinaryToWriter)},proto.vertexvis.protobuf.core.MeasurementResult.prototype.getPlanarDistance=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.PlanarDistanceResult,1)},proto.vertexvis.protobuf.core.MeasurementResult.prototype.setPlanarDistance=function(o){t.Message.setOneofWrapperField(this,1,proto.vertexvis.protobuf.core.MeasurementResult.oneofGroups_[0],o)},proto.vertexvis.protobuf.core.MeasurementResult.prototype.clearPlanarDistance=function(){this.setPlanarDistance(void 0)},proto.vertexvis.protobuf.core.MeasurementResult.prototype.hasPlanarDistance=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.core.MeasurementResult.prototype.getPlanarAngle=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.PlanarAngleResult,2)},proto.vertexvis.protobuf.core.MeasurementResult.prototype.setPlanarAngle=function(o){t.Message.setOneofWrapperField(this,2,proto.vertexvis.protobuf.core.MeasurementResult.oneofGroups_[0],o)},proto.vertexvis.protobuf.core.MeasurementResult.prototype.clearPlanarAngle=function(){this.setPlanarAngle(void 0)},proto.vertexvis.protobuf.core.MeasurementResult.prototype.hasPlanarAngle=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.MeasurementResult.prototype.getMinimumDistance=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.MinimumDistanceResult,3)},proto.vertexvis.protobuf.core.MeasurementResult.prototype.setMinimumDistance=function(o){t.Message.setOneofWrapperField(this,3,proto.vertexvis.protobuf.core.MeasurementResult.oneofGroups_[0],o)},proto.vertexvis.protobuf.core.MeasurementResult.prototype.clearMinimumDistance=function(){this.setMinimumDistance(void 0)},proto.vertexvis.protobuf.core.MeasurementResult.prototype.hasMinimumDistance=function(){return null!=t.Message.getField(this,3)},proto.vertexvis.protobuf.core.MeasurementResult.prototype.getTotalSurfaceArea=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.core.SurfaceAreaResult,4)},proto.vertexvis.protobuf.core.MeasurementResult.prototype.setTotalSurfaceArea=function(o){t.Message.setOneofWrapperField(this,4,proto.vertexvis.protobuf.core.MeasurementResult.oneofGroups_[0],o)},proto.vertexvis.protobuf.core.MeasurementResult.prototype.clearTotalSurfaceArea=function(){this.setTotalSurfaceArea(void 0)},proto.vertexvis.protobuf.core.MeasurementResult.prototype.hasTotalSurfaceArea=function(){return null!=t.Message.getField(this,4)},proto.vertexvis.protobuf.core.MeasurementOutcome=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.core.MeasurementOutcome.repeatedFields_,null)},n.inherits(proto.vertexvis.protobuf.core.MeasurementOutcome,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.MeasurementOutcome.displayName="proto.vertexvis.protobuf.core.MeasurementOutcome"),proto.vertexvis.protobuf.core.MeasurementOutcome.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.MeasurementOutcome.prototype.toObject=function(o){return proto.vertexvis.protobuf.core.MeasurementOutcome.toObject(o,this)},proto.vertexvis.protobuf.core.MeasurementOutcome.toObject=function(o,r){var n={resultsList:t.Message.toObjectList(r.getResultsList(),proto.vertexvis.protobuf.core.MeasurementResult.toObject,o),isApproximate:t.Message.getFieldWithDefault(r,2,!1)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.MeasurementOutcome.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.MeasurementOutcome;return proto.vertexvis.protobuf.core.MeasurementOutcome.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.MeasurementOutcome.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.core.MeasurementResult;t.readMessage(r,proto.vertexvis.protobuf.core.MeasurementResult.deserializeBinaryFromReader),o.addResults(r);break;case 2:r=t.readBool(),o.setIsApproximate(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.core.MeasurementOutcome.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.MeasurementOutcome.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.MeasurementOutcome.serializeBinaryToWriter=function(o,t){var r=void 0;(r=o.getResultsList()).length>0&&t.writeRepeatedMessage(1,r,proto.vertexvis.protobuf.core.MeasurementResult.serializeBinaryToWriter),(r=o.getIsApproximate())&&t.writeBool(2,r)},proto.vertexvis.protobuf.core.MeasurementOutcome.prototype.getResultsList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.core.MeasurementResult,1)},proto.vertexvis.protobuf.core.MeasurementOutcome.prototype.setResultsList=function(o){t.Message.setRepeatedWrapperField(this,1,o)},proto.vertexvis.protobuf.core.MeasurementOutcome.prototype.addResults=function(o,r){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.core.MeasurementResult,r)},proto.vertexvis.protobuf.core.MeasurementOutcome.prototype.clearResultsList=function(){this.setResultsList([])},proto.vertexvis.protobuf.core.MeasurementOutcome.prototype.getIsApproximate=function(){return t.Message.getFieldWithDefault(this,2,!1)},proto.vertexvis.protobuf.core.MeasurementOutcome.prototype.setIsApproximate=function(o){t.Message.setProto3BooleanField(this,2,o)},n.object.extend(r,proto.vertexvis.protobuf.core)})),a=o((function(o,n){var i=t,u=Function("return this")();i.exportSymbol("proto.vertexvis.protobuf.sceneview.v1.MeasureEntity",null,u),i.exportSymbol("proto.vertexvis.protobuf.sceneview.v1.MeasureRequest",null,u),i.exportSymbol("proto.vertexvis.protobuf.sceneview.v1.MeasureResponse",null,u),i.exportSymbol("proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate",null,u),i.exportSymbol("proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest",null,u),i.exportSymbol("proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesResponse",null,u),proto.vertexvis.protobuf.sceneview.v1.MeasureRequest=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.sceneview.v1.MeasureRequest.repeatedFields_,null)},i.inherits(proto.vertexvis.protobuf.sceneview.v1.MeasureRequest,t.Message),i.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.sceneview.v1.MeasureRequest.displayName="proto.vertexvis.protobuf.sceneview.v1.MeasureRequest"),proto.vertexvis.protobuf.sceneview.v1.MeasureRequest.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.sceneview.v1.MeasureRequest.prototype.toObject=function(o){return proto.vertexvis.protobuf.sceneview.v1.MeasureRequest.toObject(o,this)},proto.vertexvis.protobuf.sceneview.v1.MeasureRequest.toObject=function(o,r){var n={entitiesList:t.Message.toObjectList(r.getEntitiesList(),proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.toObject,o)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.sceneview.v1.MeasureRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.sceneview.v1.MeasureRequest;return proto.vertexvis.protobuf.sceneview.v1.MeasureRequest.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.sceneview.v1.MeasureRequest.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.sceneview.v1.MeasureEntity;t.readMessage(r,proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.deserializeBinaryFromReader),o.addEntities(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.sceneview.v1.MeasureRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.sceneview.v1.MeasureRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.sceneview.v1.MeasureRequest.serializeBinaryToWriter=function(o,t){var r;(r=o.getEntitiesList()).length>0&&t.writeRepeatedMessage(1,r,proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.serializeBinaryToWriter)},proto.vertexvis.protobuf.sceneview.v1.MeasureRequest.prototype.getEntitiesList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.sceneview.v1.MeasureEntity,1)},proto.vertexvis.protobuf.sceneview.v1.MeasureRequest.prototype.setEntitiesList=function(o){t.Message.setRepeatedWrapperField(this,1,o)},proto.vertexvis.protobuf.sceneview.v1.MeasureRequest.prototype.addEntities=function(o,r){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.sceneview.v1.MeasureEntity,r)},proto.vertexvis.protobuf.sceneview.v1.MeasureRequest.prototype.clearEntitiesList=function(){this.setEntitiesList([])},proto.vertexvis.protobuf.sceneview.v1.MeasureEntity=function(o){t.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.vertexvis.protobuf.sceneview.v1.MeasureEntity,t.Message),i.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.displayName="proto.vertexvis.protobuf.sceneview.v1.MeasureEntity"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.prototype.toObject=function(o){return proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.toObject(o,this)},proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.toObject=function(o,t){var r,n={modelEntity:(r=t.getModelEntity())&&c.ModelEntity.toObject(o,r),point:(r=t.getPoint())&&f.Vector3f.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.sceneview.v1.MeasureEntity;return proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new c.ModelEntity;t.readMessage(r,c.ModelEntity.deserializeBinaryFromReader),o.setModelEntity(r);break;case 2:r=new f.Vector3f,t.readMessage(r,f.Vector3f.deserializeBinaryFromReader),o.setPoint(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.serializeBinaryToWriter=function(o,t){var r=void 0;null!=(r=o.getModelEntity())&&t.writeMessage(1,r,c.ModelEntity.serializeBinaryToWriter),null!=(r=o.getPoint())&&t.writeMessage(2,r,f.Vector3f.serializeBinaryToWriter)},proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.prototype.getModelEntity=function(){return t.Message.getWrapperField(this,c.ModelEntity,1)},proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.prototype.setModelEntity=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.prototype.clearModelEntity=function(){this.setModelEntity(void 0)},proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.prototype.hasModelEntity=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.prototype.getPoint=function(){return t.Message.getWrapperField(this,f.Vector3f,2)},proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.prototype.setPoint=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.prototype.clearPoint=function(){this.setPoint(void 0)},proto.vertexvis.protobuf.sceneview.v1.MeasureEntity.prototype.hasPoint=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.sceneview.v1.MeasureResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.vertexvis.protobuf.sceneview.v1.MeasureResponse,t.Message),i.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.sceneview.v1.MeasureResponse.displayName="proto.vertexvis.protobuf.sceneview.v1.MeasureResponse"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.sceneview.v1.MeasureResponse.prototype.toObject=function(o){return proto.vertexvis.protobuf.sceneview.v1.MeasureResponse.toObject(o,this)},proto.vertexvis.protobuf.sceneview.v1.MeasureResponse.toObject=function(o,t){var r,n={outcome:(r=t.getOutcome())&&s.MeasurementOutcome.toObject(o,r)};return o&&(n.$jspbMessageInstance=t),n}),proto.vertexvis.protobuf.sceneview.v1.MeasureResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.sceneview.v1.MeasureResponse;return proto.vertexvis.protobuf.sceneview.v1.MeasureResponse.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.sceneview.v1.MeasureResponse.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new s.MeasurementOutcome;t.readMessage(r,s.MeasurementOutcome.deserializeBinaryFromReader),o.setOutcome(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.sceneview.v1.MeasureResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.sceneview.v1.MeasureResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.sceneview.v1.MeasureResponse.serializeBinaryToWriter=function(o,t){var r;null!=(r=o.getOutcome())&&t.writeMessage(1,r,s.MeasurementOutcome.serializeBinaryToWriter)},proto.vertexvis.protobuf.sceneview.v1.MeasureResponse.prototype.getOutcome=function(){return t.Message.getWrapperField(this,s.MeasurementOutcome,1)},proto.vertexvis.protobuf.sceneview.v1.MeasureResponse.prototype.setOutcome=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.sceneview.v1.MeasureResponse.prototype.clearOutcome=function(){this.setOutcome(void 0)},proto.vertexvis.protobuf.sceneview.v1.MeasureResponse.prototype.hasOutcome=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest.repeatedFields_,null)},i.inherits(proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest,t.Message),i.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest.displayName="proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest"),proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest.prototype.toObject=function(o){return proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest.toObject(o,this)},proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest.toObject=function(o,r){var n={updatesList:t.Message.toObjectList(r.getUpdatesList(),proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.toObject,o)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest;return proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate;t.readMessage(r,proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.deserializeBinaryFromReader),o.addUpdates(r);break;default:t.skipField()}return o},proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest.serializeBinaryToWriter=function(o,t){var r;(r=o.getUpdatesList()).length>0&&t.writeRepeatedMessage(1,r,proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.serializeBinaryToWriter)},proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest.prototype.getUpdatesList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate,1)},proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest.prototype.setUpdatesList=function(o){t.Message.setRepeatedWrapperField(this,1,o)},proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest.prototype.addUpdates=function(o,r){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate,r)},proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesRequest.prototype.clearUpdatesList=function(){this.setUpdatesList([])},proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate=function(o){t.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate,t.Message),i.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.displayName="proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.prototype.toObject=function(o){return proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.toObject(o,this)},proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.toObject=function(o,t){var n,i={modelEntity:(n=t.getModelEntity())&&c.ModelEntity.toObject(o,n),highlight:(n=t.getHighlight())&&r.BoolValue.toObject(o,n)};return o&&(i.$jspbMessageInstance=t),i}),proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate;return proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var n=new c.ModelEntity;t.readMessage(n,c.ModelEntity.deserializeBinaryFromReader),o.setModelEntity(n);break;case 2:n=new r.BoolValue,t.readMessage(n,r.BoolValue.deserializeBinaryFromReader),o.setHighlight(n);break;default:t.skipField()}return o},proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.serializeBinaryToWriter=function(o,t){var n=void 0;null!=(n=o.getModelEntity())&&t.writeMessage(1,n,c.ModelEntity.serializeBinaryToWriter),null!=(n=o.getHighlight())&&t.writeMessage(2,n,r.BoolValue.serializeBinaryToWriter)},proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.prototype.getModelEntity=function(){return t.Message.getWrapperField(this,c.ModelEntity,1)},proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.prototype.setModelEntity=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.prototype.clearModelEntity=function(){this.setModelEntity(void 0)},proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.prototype.hasModelEntity=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.prototype.getHighlight=function(){return t.Message.getWrapperField(this,r.BoolValue,2)},proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.prototype.setHighlight=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.prototype.clearHighlight=function(){this.setHighlight(void 0)},proto.vertexvis.protobuf.sceneview.v1.ModelEntityUpdate.prototype.hasHighlight=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)},i.inherits(proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesResponse,t.Message),i.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesResponse.displayName="proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesResponse"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesResponse.prototype.toObject=function(o){return proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesResponse.toObject(o,this)},proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesResponse.toObject=function(o,t){var r={};return o&&(r.$jspbMessageInstance=t),r}),proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesResponse;return proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesResponse.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesResponse.deserializeBinaryFromReader=function(o,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return o},proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.sceneview.v1.UpdateModelEntitiesResponse.serializeBinaryToWriter=function(){},i.object.extend(n,proto.vertexvis.protobuf.sceneview.v1)}));const l=n.defineMapper(n.read(n.mapRequiredProp("start",i),n.mapRequiredProp("end",i)),(([o,t])=>({start:o,end:t}))),h=n.defineMapper(n.read(n.getProp("distance"),n.mapRequiredProp("planes",n.compose(l,n.requiredProp("start"))),n.mapRequiredProp("planes",n.compose(l,n.requiredProp("end")))),(([o,t,r])=>({type:"planar-distance",distance:o,plane1:t,plane2:r}))),v=n.defineMapper(n.read(n.getProp("angleInRadians"),n.mapRequiredProp("planes",n.compose(l,n.requiredProp("start"))),n.mapRequiredProp("planes",n.compose(l,n.requiredProp("end")))),(([o,t,r])=>({type:"planar-angle",angle:o,plane1:t,plane2:r}))),w=n.defineMapper(n.read(n.getProp("distance"),n.mapRequiredProp("closestPoint1",u),n.mapRequiredProp("closestPoint2",u)),(([o,t,r])=>({type:"minimum-distance",distance:o,point1:t,point2:r}))),d=n.defineMapper(n.read(n.getProp("area")),(([o])=>({type:"surface-area",area:o}))),b=n.mapProp("planarDistance",n.ifDefined(h)),x=n.mapProp("planarAngle",n.ifDefined(v)),k=n.mapProp("minimumDistance",n.ifDefined(w)),m=n.mapProp("totalSurfaceArea",n.ifDefined(d)),M=n.compose(n.pickFirst(b,x,k,m),n.required("Result field")),L=n.defineMapper(n.read(n.mapRequiredProp("outcome",n.mapRequiredProp("resultsList",n.mapArray(M))),n.mapRequiredProp("outcome",n.getProp("isApproximate"))),(([o,t])=>({results:o,isApproximate:t}))),E=n.ifInvalidThrow(L);export{c as a,f as g,E as m,a as s}
@@ -1,4 +1,4 @@
1
1
  /**!
2
2
  * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
3
  */
4
- import{o as e}from"./p-301660cf.js";import"./p-fe11d694.js";const t={network:{apiHost:"https://platform.platprod.vertexvis.io",renderingHost:"wss://stream.platprod.vertexvis.io",sceneTreeHost:"https://scene-trees.platprod.vertexvis.io",sceneViewHost:"https://scenes.platprod.vertexvis.io"},flags:{throttleFrameDelivery:!0,adaptiveRendering:!0,logWsMessages:!1,logFrameRate:!1,letterboxFrames:!1},events:{doubleTapThreshold:500,longPressThreshold:500},animation:{durationMs:500},interactions:{finePointerThreshold:1,coarsePointerThreshold:3,interactionDelay:75},EXPERIMENTAL_frameDelivery:{},EXPERIMENTAL_adaptiveRendering:{},EXPERIMENTAL_qualityOfService:{}},s=Object.assign(Object.assign({},t),{network:{apiHost:"https://platform.platdev.vertexvis.io",renderingHost:"wss://stream.platdev.vertexvis.io",sceneTreeHost:"https://scene-trees.platdev.vertexvis.io",sceneViewHost:"https://scenes.platdev.vertexvis.io"}}),r=Object.assign(Object.assign({},t),{network:{apiHost:"https://platform.platstaging.vertexvis.io",renderingHost:"wss://stream.platstaging.vertexvis.io",sceneTreeHost:"https://scene-trees.platstaging.vertexvis.io",sceneViewHost:"https://scenes.platstaging.vertexvis.io"}});function i(e){switch(e){case"platdev":return s;case"platstaging":return r;default:return t}}function o(t="platprod",s){"string"==typeof s&&(s=JSON.parse(s));const r=i(t);return null==s?r:e.defaults(Object.assign({},s),r)}export{o as p}
4
+ import{o as e}from"./p-546ae240.js";import"./p-18ec4fed.js";const t={network:{apiHost:"https://platform.platprod.vertexvis.io",renderingHost:"wss://stream.platprod.vertexvis.io",sceneTreeHost:"https://scene-trees.platprod.vertexvis.io",sceneViewHost:"https://scenes.platprod.vertexvis.io"},flags:{throttleFrameDelivery:!0,adaptiveRendering:!0,logWsMessages:!1,logFrameRate:!1,letterboxFrames:!1},events:{doubleTapThreshold:500,longPressThreshold:500},animation:{durationMs:500},interactions:{finePointerThreshold:1,coarsePointerThreshold:3,interactionDelay:75},EXPERIMENTAL_frameDelivery:{},EXPERIMENTAL_adaptiveRendering:{},EXPERIMENTAL_qualityOfService:{}},s=Object.assign(Object.assign({},t),{network:{apiHost:"https://platform.platdev.vertexvis.io",renderingHost:"wss://stream.platdev.vertexvis.io",sceneTreeHost:"https://scene-trees.platdev.vertexvis.io",sceneViewHost:"https://scenes.platdev.vertexvis.io"}}),r=Object.assign(Object.assign({},t),{network:{apiHost:"https://platform.platstaging.vertexvis.io",renderingHost:"wss://stream.platstaging.vertexvis.io",sceneTreeHost:"https://scene-trees.platstaging.vertexvis.io",sceneViewHost:"https://scenes.platstaging.vertexvis.io"}});function i(e){switch(e){case"platdev":return s;case"platstaging":return r;default:return t}}function o(t="platprod",s){"string"==typeof s&&(s=JSON.parse(s));const r=i(t);return null==s?r:e.defaults(Object.assign({},s),r)}export{o as p}