@vertexvis/viewer 0.16.0 → 0.16.1-canary.1

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 (109) hide show
  1. package/README.template.md +19 -0
  2. package/dist/cjs/controller-383147c5.js +111 -0
  3. package/dist/cjs/controller-917f9ebf.js +7508 -0
  4. package/dist/cjs/dom-d162f898.js +14 -0
  5. package/dist/cjs/{entities-053d1e65.js → entities-98b08d8a.js} +5 -5
  6. package/dist/cjs/index.cjs.js +10 -3
  7. package/dist/cjs/{mapper-767b5f6d.js → mapper-d3855fc8.js} +583 -583
  8. package/dist/cjs/{dom-92728e58.js → row-3a1861d4.js} +0 -9
  9. package/dist/cjs/vertex-scene-tree-search_3.cjs.entry.js +5 -4
  10. package/dist/cjs/vertex-scene-tree.cjs.entry.js +19 -7510
  11. package/dist/cjs/vertex-viewer-box-query-tool.cjs.entry.js +9 -110
  12. package/dist/cjs/vertex-viewer-measurement-distance.cjs.entry.js +2 -2
  13. package/dist/cjs/vertex-viewer-measurement-line_2.cjs.entry.js +2 -2
  14. package/dist/cjs/vertex-viewer-measurement-precise.cjs.entry.js +4 -4
  15. package/dist/cjs/vertex-viewer-pin-group.cjs.entry.js +6 -3
  16. package/dist/collection/collection-manifest.json +4 -4
  17. package/dist/collection/components/scene-tree/lib/index.js +3 -0
  18. package/dist/collection/components/scene-tree/scene-tree.js +30 -17
  19. package/dist/collection/components/scene-tree/types.js +2 -0
  20. package/dist/collection/components/scene-tree-table-layout/scene-tree-table-layout.js +1 -1
  21. package/dist/collection/components/viewer-box-query-tool/types.js +2 -0
  22. package/dist/collection/components/viewer-box-query-tool/viewer-box-query-tool.js +5 -3
  23. package/dist/collection/components/viewer-default-toolbar/viewer-default-toolbar.js +2 -2
  24. package/dist/collection/components/viewer-toolbar/types.js +2 -0
  25. package/dist/collection/components/viewer-toolbar/viewer-toolbar.js +5 -3
  26. package/dist/collection/components/viewer-toolbar-group/types.js +2 -0
  27. package/dist/collection/components/viewer-toolbar-group/viewer-toolbar-group.js +3 -2
  28. package/dist/collection/index.js +8 -1
  29. package/dist/collection/lib/pins/index.js +2 -0
  30. package/dist/collection/lib/volume-intersection/index.js +2 -0
  31. package/dist/custom-elements/index.js +71942 -71942
  32. package/dist/esm/{bundle.esm-b51ea7fc.js → bundle.esm-c0b261c8.js} +1 -1
  33. package/dist/esm/{config-def96227.js → config-5a3235d2.js} +1 -1
  34. package/dist/esm/controller-37e0b32a.js +109 -0
  35. package/dist/esm/controller-8e9e0b43.js +7503 -0
  36. package/dist/esm/dom-2111ed19.js +11 -0
  37. package/dist/esm/{entities-3ff1a7ee.js → entities-f0128903.js} +3 -3
  38. package/dist/esm/index.js +9 -6
  39. package/dist/esm/index.mjs +9 -6
  40. package/dist/esm/{mapper-b2f3424f.js → mapper-36404f5d.js} +2 -2
  41. package/dist/esm/{dom-e19ee80b.js → row-5ebb8f09.js} +1 -8
  42. package/dist/esm/{scene-ed248e56.js → scene-d23dff71.js} +2 -2
  43. package/dist/esm/{streamAttributes-90bcdb58.js → streamAttributes-7bd73748.js} +1 -1
  44. package/dist/esm/vertex-scene-tree-search_3.entry.js +2 -1
  45. package/dist/esm/vertex-scene-tree.entry.js +13 -7504
  46. package/dist/esm/vertex-viewer-box-query-tool.entry.js +3 -104
  47. package/dist/esm/vertex-viewer-dom-element_2.entry.js +2 -2
  48. package/dist/esm/vertex-viewer-measurement-details.entry.js +2 -2
  49. package/dist/esm/vertex-viewer-measurement-distance.entry.js +4 -4
  50. package/dist/esm/vertex-viewer-measurement-line_2.entry.js +4 -4
  51. package/dist/esm/vertex-viewer-measurement-precise.entry.js +6 -6
  52. package/dist/esm/vertex-viewer-pin-group.entry.js +8 -5
  53. package/dist/esm/vertex-viewer-transform-widget.entry.js +2 -2
  54. package/dist/esm/vertex-viewer-view-cube.entry.js +2 -2
  55. package/dist/esm/vertex-viewer.entry.js +4 -4
  56. package/dist/esm/{grpc-web-client.umd-5409853c.js → wrappers_pb-e7a5f842.js} +5 -5
  57. package/dist/types/components/scene-tree/lib/controller.d.ts +1 -1
  58. package/dist/types/components/scene-tree/lib/index.d.ts +2 -0
  59. package/dist/types/components/scene-tree/lib/row.d.ts +1 -1
  60. package/dist/types/components/scene-tree/scene-tree.d.ts +1 -31
  61. package/dist/types/components/scene-tree/types.d.ts +32 -0
  62. package/dist/types/components/scene-tree-table-layout/scene-tree-table-layout.d.ts +1 -1
  63. package/dist/types/components/viewer-box-query-tool/types.d.ts +2 -0
  64. package/dist/types/components/viewer-box-query-tool/viewer-box-query-tool.d.ts +1 -2
  65. package/dist/types/components/viewer-default-toolbar/viewer-default-toolbar.d.ts +2 -2
  66. package/dist/types/components/viewer-toolbar/types.d.ts +5 -0
  67. package/dist/types/components/viewer-toolbar/viewer-toolbar.d.ts +1 -5
  68. package/dist/types/components/viewer-toolbar-group/types.d.ts +1 -0
  69. package/dist/types/components/viewer-toolbar-group/viewer-toolbar-group.d.ts +1 -1
  70. package/dist/types/components.d.ts +6 -10
  71. package/dist/types/index.d.ts +7 -0
  72. package/dist/types/lib/pins/index.d.ts +2 -0
  73. package/dist/types/lib/volume-intersection/index.d.ts +1 -0
  74. package/dist/types/lib/volume-intersection/model.d.ts +1 -1
  75. package/dist/viewer/index.esm.js +1 -1
  76. package/dist/viewer/{p-9f805c70.js → p-2c07b773.js} +1 -1
  77. package/dist/viewer/p-39535bb0.entry.js +4 -0
  78. package/dist/viewer/p-3a6fa239.js +4 -0
  79. package/dist/viewer/{p-e24dbb45.entry.js → p-42acbbaf.entry.js} +1 -1
  80. package/dist/viewer/p-43f7a708.entry.js +4 -0
  81. package/dist/viewer/{p-bd314501.js → p-5632192b.js} +1 -1
  82. package/dist/viewer/{p-01012fee.entry.js → p-58b30f31.entry.js} +1 -1
  83. package/dist/viewer/{p-f6b6b3d5.entry.js → p-6a4d8fb9.entry.js} +1 -1
  84. package/dist/viewer/p-6f47fcb9.js +4 -0
  85. package/dist/viewer/p-76c414a4.js +4 -0
  86. package/dist/viewer/{p-b283a36b.js → p-787c2987.js} +1 -1
  87. package/dist/viewer/{p-46f40a43.js → p-817743a4.js} +1 -1
  88. package/dist/viewer/{p-13e6c657.entry.js → p-886fb3a9.entry.js} +2 -2
  89. package/dist/viewer/{p-b629cebb.entry.js → p-92a65d2c.entry.js} +1 -1
  90. package/dist/viewer/p-9cc361f6.entry.js +4 -0
  91. package/dist/viewer/{p-934cbb97.js → p-a7c29e95.js} +1 -1
  92. package/dist/viewer/{p-47c4b430.entry.js → p-b4321377.entry.js} +1 -1
  93. package/dist/viewer/p-bfae3945.js +4 -0
  94. package/dist/viewer/{p-86759ae2.entry.js → p-d8c578a9.entry.js} +1 -1
  95. package/dist/viewer/{p-ea183d6e.entry.js → p-db8948a9.entry.js} +1 -1
  96. package/dist/viewer/{p-a12791aa.js → p-dde5650a.js} +1 -1
  97. package/dist/viewer/{p-bf688622.entry.js → p-ecd99a3e.entry.js} +1 -1
  98. package/dist/viewer/p-f5aaf680.js +4 -0
  99. package/dist/viewer/viewer.esm.js +1 -1
  100. package/package.json +7 -7
  101. package/readme.md +19 -0
  102. package/dist/collection/components/scene-tree/interfaces.js +0 -2
  103. package/dist/types/components/scene-tree/interfaces.d.ts +0 -1
  104. package/dist/viewer/p-3296fdf1.entry.js +0 -4
  105. package/dist/viewer/p-569ed94a.entry.js +0 -4
  106. package/dist/viewer/p-7ef7d9ce.entry.js +0 -4
  107. package/dist/viewer/p-92fe4417.js +0 -4
  108. package/dist/viewer/p-c8c4343b.js +0 -4
  109. package/dist/cjs/{grpc-web-client.umd-2af20c1b.js → wrappers_pb-04573f90.js} +4 -4
@@ -1,4 +1,4 @@
1
1
  /**!
2
2
  * Copyright (c) 2023 Vertex Software LLC. All rights reserved.
3
3
  */
4
- import{r as i,h as t,H as e,g as s}from"./p-d6fce4c1.js";import{a as h}from"./p-934cbb97.js";import{E as o}from"./p-fc7d8c03.js";import{b as r}from"./p-1812c82d.js";import{g as l}from"./p-42760392.js";import{p as n,e as u}from"./p-d216a866.js";class a{constructor(i,t){this.model=i,this.viewer=t,this.additionalTransforms=[],this.operationInFlight=!1,this.operationAborted=!1,this.executeStarted=new o,this.executeComplete=new o,this.executeAborted=new o,this.additionalTransforms=[i=>i.where((i=>i.all())).deselect()],this.operationTransform=i=>i.select()}setStartPoint(i){this.previousViewerCameraControls=this.viewer.cameraControls,this.viewer.cameraControls=!1,this.model.setStartPoint(i)}setEndPoint(i){this.model.setEndPoint(i)}setOperationTransform(i){this.operationTransform=i}setAdditionalTransforms(i){this.additionalTransforms=i}onExecuteStarted(i){return this.executeStarted.on(i)}onExecuteComplete(i){return this.executeComplete.on(i)}onExecuteAborted(i){return this.executeAborted.on(i)}async execute(){var i,t,e;const s=this.model.getScreenBounds(),o=this.model.getType();if(null==s||this.operationInFlight){if(this.operationInFlight)throw this.model.cancel(),new Error("Unable to perform volume intersection query as there is already one in-flight.");this.model.cancel(),this.viewer.cameraControls=null===(e=this.previousViewerCameraControls)||void 0===e||e}else{this.model.complete();try{this.operationInFlight=!0,this.executeStarted.emit();const i=i=>this.additionalTransforms.map((t=>t(i))).flat(),e=i=>[this.operationTransform(i.where((i=>i.withVolumeIntersection(s,"exclusive"===o))))].flat(),h=await this.viewer.scene();await h.items((t=>[...i(t),...e(t)])).execute()}catch(t){if(!(t instanceof h&&(null===(i=t.summary)||void 0===i?void 0:i.toLocaleLowerCase().includes("operation aborted"))))throw console.error("Failed to perform volume intersection query",t),t;this.executeAborted.emit(t),this.operationAborted=!0}finally{this.viewer.cameraControls=null===(t=this.previousViewerCameraControls)||void 0===t||t,this.previousViewerCameraControls=void 0,this.operationInFlight=!1,this.executeComplete.emit({aborted:this.operationAborted}),this.operationAborted=!1}}}}class d{constructor(i){this.controller=i,this.handleDragBegin=this.handleDragBegin.bind(this),this.handleDrag=this.handleDrag.bind(this),this.handleDragEnd=this.handleDragEnd.bind(this),this.enabled=!0}initialize(i,t){this.element=i,this.api=t,this.element.addEventListener("pointerdown",this.handleDragBegin),this.addCrosshairCursor()}dispose(){var i,t,e;null===(i=this.element)||void 0===i||i.removeEventListener("pointerdown",this.handleDragBegin),window.removeEventListener("pointermove",this.handleDrag),window.removeEventListener("pointerup",this.handleDragEnd),null===(t=this.crosshairCursorDisposable)||void 0===t||t.dispose(),null===(e=this.waitCursorDisposable)||void 0===e||e.dispose(),this.element=void 0,this.api=void 0,this.enabled=!0}disable(){this.enabled=!1}enable(){this.enabled=!0}handleDragBegin(i){var t;this.enabled&&this.isPrimaryMouseButtonClick(i)&&!this.isInteracting&&(this.elementBounds=null===(t=this.element)||void 0===t?void 0:t.getBoundingClientRect(),this.isInteracting=!0,this.controller.setStartPoint(l(i,this.elementBounds)),window.addEventListener("pointermove",this.handleDrag),window.addEventListener("pointerup",this.handleDragEnd))}handleDrag(i){this.enabled&&this.controller.setEndPoint(l(i,this.elementBounds))}async handleDragEnd(){var i,t;if(this.isInteracting=!1,window.removeEventListener("pointermove",this.handleDrag),window.removeEventListener("pointerup",this.handleDragEnd),null===(i=this.crosshairCursorDisposable)||void 0===i||i.dispose(),this.enabled){this.addWaitCursor();try{await this.controller.execute()}finally{null===(t=this.waitCursorDisposable)||void 0===t||t.dispose(),this.addCrosshairCursor()}}}isPrimaryMouseButtonClick(i){return 1===i.buttons}addCrosshairCursor(){var i,t;null===(i=this.crosshairCursorDisposable)||void 0===i||i.dispose(),this.crosshairCursorDisposable=null===(t=this.api)||void 0===t?void 0:t.addCursor(r)}addWaitCursor(){var i,t;null===(i=this.waitCursorDisposable)||void 0===i||i.dispose(),this.waitCursorDisposable=null===(t=this.api)||void 0===t?void 0:t.addCursor("wait")}}class v{constructor(i){this.mode=i,this.dragStarted=new o,this.dragComplete=new o,this.dragCancelled=new o,this.screenBoundsChanged=new o}setStartPoint(i){this.startPoint=i,this.dragStarted.emit()}setEndPoint(i){null!=this.startPoint&&n.distance(this.startPoint,i)>=2&&(this.endPoint=i,this.updateQueryType(),this.screenBoundsChanged.emit(this.getQueryDetails()))}setMode(i){this.mode=i}complete(){null!=this.startPoint&&null!=this.endPoint&&(this.screenBoundsChanged.emit(void 0),this.dragComplete.emit(this.getQueryDetails()),this.reset())}cancel(){this.screenBoundsChanged.emit(void 0),this.dragCancelled.emit(),this.reset()}reset(){this.startPoint=void 0,this.endPoint=void 0,this.type=void 0}getScreenBounds(){return null!=this.startPoint&&null!=this.endPoint?u.fromPoints(this.startPoint,this.endPoint):void 0}getType(){return this.type}onScreenBoundsChanged(i){return this.screenBoundsChanged.on(i)}onDragStarted(i){return this.dragStarted.on(i)}onDragComplete(i){return this.dragComplete.on(i)}onDragCancelled(i){return this.dragCancelled.on(i)}getQueryDetails(){if(null!=this.startPoint&&null!=this.endPoint&&null!=this.type)return{screenBounds:u.fromPoints(this.startPoint,this.endPoint),type:this.type};throw new Error("Failed to create query details, the start and end points must be set.")}updateQueryType(){var i;if(null!=this.startPoint&&null!=this.endPoint){const t=n.subtract(this.endPoint,this.startPoint).x>0?"exclusive":"inclusive";this.type=null!==(i=this.mode)&&void 0!==i?i:t}}}const c=class{constructor(t){i(this,t),this.operationType="clearAndSelect",this.handleScreenBoundsChanged=this.handleScreenBoundsChanged.bind(this),this.handleExecuteStarted=this.handleExecuteStarted.bind(this),this.handleExecuteComplete=this.handleExecuteComplete.bind(this)}componentWillLoad(){var i;this.model=null!==(i=this.model)&&void 0!==i?i:new v(this.mode),this.screenBoundsChangedDisposable=this.model.onScreenBoundsChanged(this.handleScreenBoundsChanged),this.handleViewerChanged(this.viewer),this.handleControllerChange(this.controller),this.handleDefaultOperationChange(this.operationType)}disconnectedCallback(){var i,t,e,s;null===(i=this.model)||void 0===i||i.reset(),null===(t=this.screenBoundsChangedDisposable)||void 0===t||t.dispose(),null===(e=this.operationStartedDisposable)||void 0===e||e.dispose(),null===(s=this.operationCompleteDisposable)||void 0===s||s.dispose(),this.deregisterInteractionHandler()}handleViewerChanged(i){this.deregisterInteractionHandler(),null!=this.model&&null!=i&&(this.controller=new a(this.model,i),this.handleDefaultOperationChange(this.operationType),this.registerInteractionHandler(this.controller,i))}handleDefaultOperationChange(i){switch(i){case"clearAndSelect":this.setDefaultClearAndSelectOperation();break;case"select":this.setDefaultSelectOperation();break;case"deselect":this.setDefaultDeselectOperation()}}handleModeChange(i){var t;null===(t=this.model)||void 0===t||t.setMode(i)}handleControllerChange(i){var t,e;null===(t=this.operationStartedDisposable)||void 0===t||t.dispose(),null===(e=this.operationCompleteDisposable)||void 0===e||e.dispose(),this.operationStartedDisposable=null==i?void 0:i.onExecuteStarted(this.handleExecuteStarted),this.operationStartedDisposable=null==i?void 0:i.onExecuteComplete(this.handleExecuteComplete)}render(){return t(e,null,t("vertex-viewer-layer",null,null!=this.details&&t("div",{class:"bounds",style:{left:`${this.details.screenBounds.x}px`,top:`${this.details.screenBounds.y}px`,width:`${this.details.screenBounds.width}px`,height:`${this.details.screenBounds.height}px`}},t("slot",{name:"bounds"},t("div",{class:"outline"}),t("div",{class:"fill"})))))}handleScreenBoundsChanged(i){this.details=i,this.updateTypeAttribute(null==i?void 0:i.type)}handleExecuteStarted(){var i;null===(i=this.interactionHandler)||void 0===i||i.disable()}handleExecuteComplete(){var i;null===(i=this.interactionHandler)||void 0===i||i.enable()}async registerInteractionHandler(i,t){this.interactionHandler=new d(i),this.interactionHandlerDisposable=await t.registerInteractionHandler(this.interactionHandler)}deregisterInteractionHandler(){var i,t;null===(i=this.interactionHandlerDisposable)||void 0===i||i.dispose(),null===(t=this.interactionHandler)||void 0===t||t.dispose(),this.interactionHandler=void 0}updateTypeAttribute(i){this.hostEl.setAttribute("inclusive",`${"inclusive"===i}`),this.hostEl.setAttribute("exclusive",`${"exclusive"===i}`)}setDefaultClearAndSelectOperation(){var i,t;null===(i=this.controller)||void 0===i||i.setOperationTransform((i=>i.select())),null===(t=this.controller)||void 0===t||t.setAdditionalTransforms([i=>i.where((i=>i.withSelected())).deselect()])}setDefaultSelectOperation(){var i,t;null===(i=this.controller)||void 0===i||i.setOperationTransform((i=>i.select())),null===(t=this.controller)||void 0===t||t.setAdditionalTransforms([])}setDefaultDeselectOperation(){var i,t;null===(i=this.controller)||void 0===i||i.setOperationTransform((i=>i.deselect())),null===(t=this.controller)||void 0===t||t.setAdditionalTransforms([])}get hostEl(){return s(this)}static get watchers(){return{viewer:["handleViewerChanged"],operationType:["handleDefaultOperationChange"],mode:["handleModeChange"],controller:["handleControllerChange"]}}};c.style=':host{--viewer-box-query-outline-exclusive-color:#0099cc;--viewer-box-query-outline-exclusive-border-style:solid;--viewer-box-query-outline-inclusive-color:#00cc00;--viewer-box-query-outline-inclusive-border-style:dashed;--viewer-box-query-outline-border-radius:0.25rem;--viewer-box-query-outline-fill-opacity:0.25}.bounds{position:absolute}.outline{position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;border-radius:var(--viewer-box-query-outline-border-radius)}:host([exclusive="true"]) .outline{border:3px var(--viewer-box-query-outline-exclusive-border-style) var(--viewer-box-query-outline-exclusive-color)}:host([inclusive="true"]) .outline{border:3px var(--viewer-box-query-outline-inclusive-border-style) var(--viewer-box-query-outline-inclusive-color)}.fill{position:absolute;top:0;left:0;width:100%;height:100%;opacity:var(--viewer-box-query-outline-fill-opacity);border-radius:var(--viewer-box-query-outline-border-radius)}:host([exclusive="true"]) .fill{background-color:var(--viewer-box-query-outline-exclusive-color)}:host([inclusive="true"]) .fill{background-color:var(--viewer-box-query-outline-inclusive-color)}';export{c as vertex_viewer_box_query_tool}
4
+ import{r as i,h as t,H as e,g as s}from"./p-d6fce4c1.js";import{V as l}from"./p-f5aaf680.js";import{b as o}from"./p-1812c82d.js";import{g as r}from"./p-42760392.js";import{p as h,e as n}from"./p-d216a866.js";import{E as u}from"./p-fc7d8c03.js";import"./p-a7c29e95.js";class a{constructor(i){this.controller=i,this.handleDragBegin=this.handleDragBegin.bind(this),this.handleDrag=this.handleDrag.bind(this),this.handleDragEnd=this.handleDragEnd.bind(this),this.enabled=!0}initialize(i,t){this.element=i,this.api=t,this.element.addEventListener("pointerdown",this.handleDragBegin),this.addCrosshairCursor()}dispose(){var i,t,e;null===(i=this.element)||void 0===i||i.removeEventListener("pointerdown",this.handleDragBegin),window.removeEventListener("pointermove",this.handleDrag),window.removeEventListener("pointerup",this.handleDragEnd),null===(t=this.crosshairCursorDisposable)||void 0===t||t.dispose(),null===(e=this.waitCursorDisposable)||void 0===e||e.dispose(),this.element=void 0,this.api=void 0,this.enabled=!0}disable(){this.enabled=!1}enable(){this.enabled=!0}handleDragBegin(i){var t;this.enabled&&this.isPrimaryMouseButtonClick(i)&&!this.isInteracting&&(this.elementBounds=null===(t=this.element)||void 0===t?void 0:t.getBoundingClientRect(),this.isInteracting=!0,this.controller.setStartPoint(r(i,this.elementBounds)),window.addEventListener("pointermove",this.handleDrag),window.addEventListener("pointerup",this.handleDragEnd))}handleDrag(i){this.enabled&&this.controller.setEndPoint(r(i,this.elementBounds))}async handleDragEnd(){var i,t;if(this.isInteracting=!1,window.removeEventListener("pointermove",this.handleDrag),window.removeEventListener("pointerup",this.handleDragEnd),null===(i=this.crosshairCursorDisposable)||void 0===i||i.dispose(),this.enabled){this.addWaitCursor();try{await this.controller.execute()}finally{null===(t=this.waitCursorDisposable)||void 0===t||t.dispose(),this.addCrosshairCursor()}}}isPrimaryMouseButtonClick(i){return 1===i.buttons}addCrosshairCursor(){var i,t;null===(i=this.crosshairCursorDisposable)||void 0===i||i.dispose(),this.crosshairCursorDisposable=null===(t=this.api)||void 0===t?void 0:t.addCursor(o)}addWaitCursor(){var i,t;null===(i=this.waitCursorDisposable)||void 0===i||i.dispose(),this.waitCursorDisposable=null===(t=this.api)||void 0===t?void 0:t.addCursor("wait")}}class d{constructor(i){this.mode=i,this.dragStarted=new u,this.dragComplete=new u,this.dragCancelled=new u,this.screenBoundsChanged=new u}setStartPoint(i){this.startPoint=i,this.dragStarted.emit()}setEndPoint(i){null!=this.startPoint&&h.distance(this.startPoint,i)>=2&&(this.endPoint=i,this.updateQueryType(),this.screenBoundsChanged.emit(this.getQueryDetails()))}setMode(i){this.mode=i}complete(){null!=this.startPoint&&null!=this.endPoint&&(this.screenBoundsChanged.emit(void 0),this.dragComplete.emit(this.getQueryDetails()),this.reset())}cancel(){this.screenBoundsChanged.emit(void 0),this.dragCancelled.emit(),this.reset()}reset(){this.startPoint=void 0,this.endPoint=void 0,this.type=void 0}getScreenBounds(){return null!=this.startPoint&&null!=this.endPoint?n.fromPoints(this.startPoint,this.endPoint):void 0}getType(){return this.type}onScreenBoundsChanged(i){return this.screenBoundsChanged.on(i)}onDragStarted(i){return this.dragStarted.on(i)}onDragComplete(i){return this.dragComplete.on(i)}onDragCancelled(i){return this.dragCancelled.on(i)}getQueryDetails(){if(null!=this.startPoint&&null!=this.endPoint&&null!=this.type)return{screenBounds:n.fromPoints(this.startPoint,this.endPoint),type:this.type};throw new Error("Failed to create query details, the start and end points must be set.")}updateQueryType(){var i;if(null!=this.startPoint&&null!=this.endPoint){const t=h.subtract(this.endPoint,this.startPoint).x>0?"exclusive":"inclusive";this.type=null!==(i=this.mode)&&void 0!==i?i:t}}}const v=class{constructor(t){i(this,t),this.operationType="clearAndSelect",this.handleScreenBoundsChanged=this.handleScreenBoundsChanged.bind(this),this.handleExecuteStarted=this.handleExecuteStarted.bind(this),this.handleExecuteComplete=this.handleExecuteComplete.bind(this)}componentWillLoad(){var i;this.model=null!==(i=this.model)&&void 0!==i?i:new d(this.mode),this.screenBoundsChangedDisposable=this.model.onScreenBoundsChanged(this.handleScreenBoundsChanged),this.handleViewerChanged(this.viewer),this.handleControllerChange(this.controller),this.handleDefaultOperationChange(this.operationType)}disconnectedCallback(){var i,t,e,s;null===(i=this.model)||void 0===i||i.reset(),null===(t=this.screenBoundsChangedDisposable)||void 0===t||t.dispose(),null===(e=this.operationStartedDisposable)||void 0===e||e.dispose(),null===(s=this.operationCompleteDisposable)||void 0===s||s.dispose(),this.deregisterInteractionHandler()}handleViewerChanged(i){this.deregisterInteractionHandler(),null!=this.model&&null!=i&&(this.controller=new l(this.model,i),this.handleDefaultOperationChange(this.operationType),this.registerInteractionHandler(this.controller,i))}handleDefaultOperationChange(i){switch(i){case"clearAndSelect":this.setDefaultClearAndSelectOperation();break;case"select":this.setDefaultSelectOperation();break;case"deselect":this.setDefaultDeselectOperation()}}handleModeChange(i){var t;null===(t=this.model)||void 0===t||t.setMode(i)}handleControllerChange(i){var t,e;null===(t=this.operationStartedDisposable)||void 0===t||t.dispose(),null===(e=this.operationCompleteDisposable)||void 0===e||e.dispose(),this.operationStartedDisposable=null==i?void 0:i.onExecuteStarted(this.handleExecuteStarted),this.operationStartedDisposable=null==i?void 0:i.onExecuteComplete(this.handleExecuteComplete)}render(){return t(e,null,t("vertex-viewer-layer",null,null!=this.details&&t("div",{class:"bounds",style:{left:`${this.details.screenBounds.x}px`,top:`${this.details.screenBounds.y}px`,width:`${this.details.screenBounds.width}px`,height:`${this.details.screenBounds.height}px`}},t("slot",{name:"bounds"},t("div",{class:"outline"}),t("div",{class:"fill"})))))}handleScreenBoundsChanged(i){this.details=i,this.updateTypeAttribute(null==i?void 0:i.type)}handleExecuteStarted(){var i;null===(i=this.interactionHandler)||void 0===i||i.disable()}handleExecuteComplete(){var i;null===(i=this.interactionHandler)||void 0===i||i.enable()}async registerInteractionHandler(i,t){this.interactionHandler=new a(i),this.interactionHandlerDisposable=await t.registerInteractionHandler(this.interactionHandler)}deregisterInteractionHandler(){var i,t;null===(i=this.interactionHandlerDisposable)||void 0===i||i.dispose(),null===(t=this.interactionHandler)||void 0===t||t.dispose(),this.interactionHandler=void 0}updateTypeAttribute(i){this.hostEl.setAttribute("inclusive",`${"inclusive"===i}`),this.hostEl.setAttribute("exclusive",`${"exclusive"===i}`)}setDefaultClearAndSelectOperation(){var i,t;null===(i=this.controller)||void 0===i||i.setOperationTransform((i=>i.select())),null===(t=this.controller)||void 0===t||t.setAdditionalTransforms([i=>i.where((i=>i.withSelected())).deselect()])}setDefaultSelectOperation(){var i,t;null===(i=this.controller)||void 0===i||i.setOperationTransform((i=>i.select())),null===(t=this.controller)||void 0===t||t.setAdditionalTransforms([])}setDefaultDeselectOperation(){var i,t;null===(i=this.controller)||void 0===i||i.setOperationTransform((i=>i.deselect())),null===(t=this.controller)||void 0===t||t.setAdditionalTransforms([])}get hostEl(){return s(this)}static get watchers(){return{viewer:["handleViewerChanged"],operationType:["handleDefaultOperationChange"],mode:["handleModeChange"],controller:["handleControllerChange"]}}};v.style=':host{--viewer-box-query-outline-exclusive-color:#0099cc;--viewer-box-query-outline-exclusive-border-style:solid;--viewer-box-query-outline-inclusive-color:#00cc00;--viewer-box-query-outline-inclusive-border-style:dashed;--viewer-box-query-outline-border-radius:0.25rem;--viewer-box-query-outline-fill-opacity:0.25}.bounds{position:absolute}.outline{position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;border-radius:var(--viewer-box-query-outline-border-radius)}:host([exclusive="true"]) .outline{border:3px var(--viewer-box-query-outline-exclusive-border-style) var(--viewer-box-query-outline-exclusive-color)}:host([inclusive="true"]) .outline{border:3px var(--viewer-box-query-outline-inclusive-border-style) var(--viewer-box-query-outline-inclusive-color)}.fill{position:absolute;top:0;left:0;width:100%;height:100%;opacity:var(--viewer-box-query-outline-fill-opacity);border-radius:var(--viewer-box-query-outline-border-radius)}:host([exclusive="true"]) .fill{background-color:var(--viewer-box-query-outline-exclusive-color)}:host([inclusive="true"]) .fill{background-color:var(--viewer-box-query-outline-inclusive-color)}';export{v as vertex_viewer_box_query_tool}
@@ -0,0 +1,4 @@
1
+ /**!
2
+ * Copyright (c) 2023 Vertex Software LLC. All rights reserved.
3
+ */
4
+ import{g as t,w as o,a as r}from"./p-3a6fa239.js";import{c as n}from"./p-dfe5a97d.js";import{E as e}from"./p-fc7d8c03.js";import{C as i}from"./p-440c8174.js";import{i as s,f as u}from"./p-bfae3945.js";var p,c=n((function(o,r){var n=t,e=Function("return this")();n.exportSymbol("proto.vertexvis.protobuf.core.Cursor",null,e),n.exportSymbol("proto.vertexvis.protobuf.core.OffsetCursor",null,e),n.exportSymbol("proto.vertexvis.protobuf.core.OffsetPager",null,e),n.exportSymbol("proto.vertexvis.protobuf.core.Pager",null,e),proto.vertexvis.protobuf.core.Pager=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.Pager,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Pager.displayName="proto.vertexvis.protobuf.core.Pager"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Pager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Pager.toObject(t,this)},proto.vertexvis.protobuf.core.Pager.toObject=function(o,r){var n={limit:t.Message.getFieldWithDefault(r,1,0),cursor:t.Message.getFieldWithDefault(r,2,"")};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.Pager.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.Pager;return proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setLimit(r);break;case 2:r=o.readString(),t.setCursor(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Pager.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getLimit())&&o.writeUint32(1,r),(r=t.getCursor()).length>0&&o.writeString(2,r)},proto.vertexvis.protobuf.core.Pager.prototype.getLimit=function(){return t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.Pager.prototype.setLimit=function(o){t.Message.setProto3IntField(this,1,o)},proto.vertexvis.protobuf.core.Pager.prototype.getCursor=function(){return t.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.Pager.prototype.setCursor=function(o){t.Message.setProto3StringField(this,2,o)},proto.vertexvis.protobuf.core.OffsetPager=function(o){t.Message.initialize(this,o,0,-1,null,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_)},n.inherits(proto.vertexvis.protobuf.core.OffsetPager,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.OffsetPager.displayName="proto.vertexvis.protobuf.core.OffsetPager"),proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_=[[2,3]],proto.vertexvis.protobuf.core.OffsetPager.PagerCase={PAGER_NOT_SET:0,CURSOR:2,OFFSET:3},proto.vertexvis.protobuf.core.OffsetPager.prototype.getPagerCase=function(){return t.Message.computeOneofCase(this,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.OffsetPager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetPager.toObject(t,this)},proto.vertexvis.protobuf.core.OffsetPager.toObject=function(o,r){var n={limit:t.Message.getFieldWithDefault(r,1,0),cursor:t.Message.getFieldWithDefault(r,2,""),offset:t.Message.getFieldWithDefault(r,3,0)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.OffsetPager.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.OffsetPager;return proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setLimit(r);break;case 2:r=o.readString(),t.setCursor(r);break;case 3:r=o.readUint32(),t.setOffset(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.OffsetPager.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter=function(o,r){var n=void 0;0!==(n=o.getLimit())&&r.writeUint32(1,n),null!=(n=t.Message.getField(o,2))&&r.writeString(2,n),null!=(n=t.Message.getField(o,3))&&r.writeUint32(3,n)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getLimit=function(){return t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.setLimit=function(o){t.Message.setProto3IntField(this,1,o)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getCursor=function(){return t.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.OffsetPager.prototype.setCursor=function(o){t.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],o)},proto.vertexvis.protobuf.core.OffsetPager.prototype.clearCursor=function(){t.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],void 0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.hasCursor=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getOffset=function(){return t.Message.getFieldWithDefault(this,3,0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.setOffset=function(o){t.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],o)},proto.vertexvis.protobuf.core.OffsetPager.prototype.clearOffset=function(){t.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],void 0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.hasOffset=function(){return null!=t.Message.getField(this,3)},proto.vertexvis.protobuf.core.Cursor=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.Cursor,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Cursor.displayName="proto.vertexvis.protobuf.core.Cursor"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Cursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Cursor.toObject(t,this)},proto.vertexvis.protobuf.core.Cursor.toObject=function(o,r){var n={next:t.Message.getFieldWithDefault(r,1,"")};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.Cursor.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.Cursor;return proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setNext(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Cursor.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter=function(t,o){var r;(r=t.getNext()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.core.Cursor.prototype.getNext=function(){return t.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.core.Cursor.prototype.setNext=function(o){t.Message.setProto3StringField(this,1,o)},proto.vertexvis.protobuf.core.OffsetCursor=function(o){t.Message.initialize(this,o,0,-1,null,null)},n.inherits(proto.vertexvis.protobuf.core.OffsetCursor,t.Message),n.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.OffsetCursor.displayName="proto.vertexvis.protobuf.core.OffsetCursor"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.OffsetCursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetCursor.toObject(t,this)},proto.vertexvis.protobuf.core.OffsetCursor.toObject=function(o,r){var n={total:t.Message.getFieldWithDefault(r,1,0),next:t.Message.getFieldWithDefault(r,2,"")};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.core.OffsetCursor;return proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setTotal(r);break;case 2:r=o.readString(),t.setNext(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.OffsetCursor.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getTotal())&&o.writeUint32(1,r),(r=t.getNext()).length>0&&o.writeString(2,r)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.getTotal=function(){return t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.setTotal=function(o){t.Message.setProto3IntField(this,1,o)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.getNext=function(){return t.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.OffsetCursor.prototype.setNext=function(o){t.Message.setProto3StringField(this,2,o)},n.object.extend(r,proto.vertexvis.protobuf.core)})),a=n((function(o,r){var n=t,e=Function("return this")();n.exportSymbol("proto.vertexvis.protobuf.core.Uuid",null,e),n.exportSymbol("proto.vertexvis.protobuf.core.Uuid2l",null,e),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(t){return proto.vertexvis.protobuf.core.Uuid.toObject(t,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(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setHex(r);break;default:o.skipField()}return t},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(t,o){var r;(r=t.getHex()).length>0&&o.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(t){return proto.vertexvis.protobuf.core.Uuid2l.toObject(t,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(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readSfixed64String();t.setMsb(r);break;case 2:r=o.readSfixed64String(),t.setLsb(r);break;default:o.skipField()}return t},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(t,o){var r=void 0;r=t.getMsb(),0!==parseInt(r,10)&&o.writeSfixed64String(1,r),r=t.getLsb(),0!==parseInt(r,10)&&o.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)})),h=n((function(r,n){var e=t,i=Function("return this")();e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Node",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Range",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType",null,i),proto.vertexvis.protobuf.scenetree.v1alpha1.Node=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Node,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Node.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Node"),proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_=[10],t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.toObject=function(r,n){var e,i={id:(e=n.getId())&&a.Uuid.toObject(r,e),depth:t.Message.getFieldWithDefault(n,2,0),name:t.Message.getFieldWithDefault(n,3,""),visible:t.Message.getFieldWithDefault(n,4,!1),selected:t.Message.getFieldWithDefault(n,5,!1),expanded:t.Message.getFieldWithDefault(n,6,!1),isLeaf:t.Message.getFieldWithDefault(n,7,!1),suppliedId:(e=n.getSuppliedId())&&o.StringValue.toObject(r,e),partiallyVisible:t.Message.getFieldWithDefault(n,9,!1),columnsList:t.Message.getRepeatedField(n,10),filterHit:t.Message.getFieldWithDefault(n,11,!1)};return r&&(i.$jspbMessageInstance=n),i}),proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.Node;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var n=new a.Uuid;r.readMessage(n,a.Uuid.deserializeBinaryFromReader),t.setId(n);break;case 2:n=r.readUint32(),t.setDepth(n);break;case 3:n=r.readString(),t.setName(n);break;case 4:n=r.readBool(),t.setVisible(n);break;case 5:n=r.readBool(),t.setSelected(n);break;case 6:n=r.readBool(),t.setExpanded(n);break;case 7:n=r.readBool(),t.setIsLeaf(n);break;case 8:n=new o.StringValue,r.readMessage(n,o.StringValue.deserializeBinaryFromReader),t.setSuppliedId(n);break;case 9:n=r.readBool(),t.setPartiallyVisible(n);break;case 10:n=r.readString(),t.addColumns(n);break;case 11:n=r.readBool(),t.setFilterHit(n);break;default:r.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter=function(t,r){var n=void 0;null!=(n=t.getId())&&r.writeMessage(1,n,a.Uuid.serializeBinaryToWriter),0!==(n=t.getDepth())&&r.writeUint32(2,n),(n=t.getName()).length>0&&r.writeString(3,n),(n=t.getVisible())&&r.writeBool(4,n),(n=t.getSelected())&&r.writeBool(5,n),(n=t.getExpanded())&&r.writeBool(6,n),(n=t.getIsLeaf())&&r.writeBool(7,n),null!=(n=t.getSuppliedId())&&r.writeMessage(8,n,o.StringValue.serializeBinaryToWriter),(n=t.getPartiallyVisible())&&r.writeBool(9,n),(n=t.getColumnsList()).length>0&&r.writeRepeatedString(10,n),(n=t.getFilterHit())&&r.writeBool(11,n)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getId=function(){return t.Message.getWrapperField(this,a.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setId=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearId=function(){this.setId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasId=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getDepth=function(){return t.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setDepth=function(o){t.Message.setProto3IntField(this,2,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getName=function(){return t.Message.getFieldWithDefault(this,3,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setName=function(o){t.Message.setProto3StringField(this,3,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getVisible=function(){return t.Message.getFieldWithDefault(this,4,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setVisible=function(o){t.Message.setProto3BooleanField(this,4,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSelected=function(){return t.Message.getFieldWithDefault(this,5,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSelected=function(o){t.Message.setProto3BooleanField(this,5,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getExpanded=function(){return t.Message.getFieldWithDefault(this,6,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setExpanded=function(o){t.Message.setProto3BooleanField(this,6,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getIsLeaf=function(){return t.Message.getFieldWithDefault(this,7,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setIsLeaf=function(o){t.Message.setProto3BooleanField(this,7,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSuppliedId=function(){return t.Message.getWrapperField(this,o.StringValue,8)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSuppliedId=function(o){t.Message.setWrapperField(this,8,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearSuppliedId=function(){this.setSuppliedId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasSuppliedId=function(){return null!=t.Message.getField(this,8)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getPartiallyVisible=function(){return t.Message.getFieldWithDefault(this,9,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setPartiallyVisible=function(o){t.Message.setProto3BooleanField(this,9,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getColumnsList=function(){return t.Message.getRepeatedField(this,10)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setColumnsList=function(o){t.Message.setField(this,10,o||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.addColumns=function(o,r){t.Message.addToRepeatedField(this,10,o,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearColumnsList=function(){this.setColumnsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getFilterHit=function(){return t.Message.getFieldWithDefault(this,11,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setFilterHit=function(o){t.Message.setProto3BooleanField(this,11,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject=function(o,r){var n={start:t.Message.getFieldWithDefault(r,1,0)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readInt32();t.setStart(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter=function(t,o){var r;0!==(r=t.getStart())&&o.writeInt32(1,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.getStart=function(){return t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.setStart=function(o){t.Message.setProto3IntField(this,1,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Range,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Range.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Range"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject=function(o,r){var n={start:t.Message.getFieldWithDefault(r,1,0),end:t.Message.getFieldWithDefault(r,2,0)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readInt32();t.setStart(r);break;case 2:r=o.readInt32(),t.setEnd(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getStart())&&o.writeInt32(1,r),0!==(r=t.getEnd())&&o.writeInt32(2,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getStart=function(){return t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setStart=function(o){t.Message.setProto3IntField(this,1,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getEnd=function(){return t.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setEnd=function(o){t.Message.setProto3IntField(this,2,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange"),proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_=[1,2,3,4,5],t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject=function(o,r){var n={hiddenList:t.Message.toObjectList(r.getHiddenList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),shownList:t.Message.toObjectList(r.getShownList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),selectedList:t.Message.toObjectList(r.getSelectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),deselectedList:t.Message.toObjectList(r.getDeselectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o),partiallyVisibleList:t.Message.toObjectList(r.getPartiallyVisibleList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,o)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addHidden(r);break;case 2:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addShown(r);break;case 3:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addSelected(r);break;case 4:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addDeselected(r);break;case 5:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addPartiallyVisible(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getHiddenList()).length>0&&o.writeRepeatedMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getShownList()).length>0&&o.writeRepeatedMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getSelectedList()).length>0&&o.writeRepeatedMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getDeselectedList()).length>0&&o.writeRepeatedMessage(4,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getPartiallyVisibleList()).length>0&&o.writeRepeatedMessage(5,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getHiddenList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setHiddenList=function(o){t.Message.setRepeatedWrapperField(this,1,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addHidden=function(o,r){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearHiddenList=function(){this.setHiddenList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getShownList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setShownList=function(o){t.Message.setRepeatedWrapperField(this,2,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addShown=function(o,r){return t.Message.addToRepeatedWrapperField(this,2,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearShownList=function(){this.setShownList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getSelectedList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setSelectedList=function(o){t.Message.setRepeatedWrapperField(this,3,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addSelected=function(o,r){return t.Message.addToRepeatedWrapperField(this,3,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearSelectedList=function(){this.setSelectedList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getDeselectedList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,4)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setDeselectedList=function(o){t.Message.setRepeatedWrapperField(this,4,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addDeselected=function(o,r){return t.Message.addToRepeatedWrapperField(this,4,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearDeselectedList=function(){this.setDeselectedList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getPartiallyVisibleList=function(){return t.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,5)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setPartiallyVisibleList=function(o){t.Message.setRepeatedWrapperField(this,5,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addPartiallyVisible=function(o,r){return t.Message.addToRepeatedWrapperField(this,5,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearPartiallyVisibleList=function(){this.setPartiallyVisibleList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType=function(o){t.Message.initialize(this,o,0,-1,null,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType"),proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_=[[1,2,3]],proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.SealedValueCase={SEALED_VALUE_NOT_SET:0,LIST_CHANGE:1,RANGES:2,KEEP_ALIVE:3},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getSealedValueCase=function(){return t.Message.computeOneofCase(this,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0])},t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.toObject=function(t,o){var r,n={listChange:(r=o.getListChange())&&proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,r),ranges:(r=o.getRanges())&&proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,r),keepAlive:(r=o.getKeepAlive())&&proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader),t.setListChange(r);break;case 2:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader),t.setRanges(r);break;case 3:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader),t.setKeepAlive(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getListChange())&&o.writeMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter),null!=(r=t.getRanges())&&o.writeMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter),null!=(r=t.getKeepAlive())&&o.writeMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getListChange=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setListChange=function(o){t.Message.setOneofWrapperField(this,1,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],o)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearListChange=function(){this.setListChange(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasListChange=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getRanges=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setRanges=function(o){t.Message.setOneofWrapperField(this,2,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],o)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearRanges=function(){this.setRanges(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasRanges=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getKeepAlive=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setKeepAlive=function(o){t.Message.setOneofWrapperField(this,3,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],o)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearKeepAlive=function(){this.setKeepAlive(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasKeepAlive=function(){return null!=t.Message.getField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.toObject=function(o,r){var n={value:t.Message.getFieldWithDefault(r,1,"")};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setValue(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter=function(t,o){var r;(r=t.getValue()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.getValue=function(){return t.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.setValue=function(o){t.Message.setProto3StringField(this,1,o)},e.object.extend(n,proto.vertexvis.protobuf.scenetree.v1alpha1)})),f=n((function(r,n){var e=t,i=Function("return this")();e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest",null,i),e.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse",null,i),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_=[3],t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.toObject=function(o,r){var n,e={viewId:(n=r.getViewId())&&a.Uuid.toObject(o,n),pager:(n=r.getPager())&&c.OffsetPager.toObject(o,n),additionalColumnKeysList:t.Message.getRepeatedField(r,3)};return o&&(e.$jspbMessageInstance=r),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new a.Uuid;o.readMessage(r,a.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new c.OffsetPager,o.readMessage(r,c.OffsetPager.deserializeBinaryFromReader),t.setPager(r);break;case 3:r=o.readString(),t.addAdditionalColumnKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,a.Uuid.serializeBinaryToWriter),null!=(r=t.getPager())&&o.writeMessage(2,r,c.OffsetPager.serializeBinaryToWriter),(r=t.getAdditionalColumnKeysList()).length>0&&o.writeRepeatedString(3,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,a.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setViewId=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasViewId=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getPager=function(){return t.Message.getWrapperField(this,c.OffsetPager,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setPager=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearPager=function(){this.setPager(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasPager=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getAdditionalColumnKeysList=function(){return t.Message.getRepeatedField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setAdditionalColumnKeysList=function(o){t.Message.setField(this,3,o||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.addAdditionalColumnKeys=function(o,r){t.Message.addToRepeatedField(this,3,o,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearAdditionalColumnKeysList=function(){this.setAdditionalColumnKeysList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.toObject=function(o,r){var n,e={itemsList:t.Message.toObjectList(r.getItemsList(),h.Node.toObject,o),totalVisible:t.Message.getFieldWithDefault(r,2,0),cursor:(n=r.getCursor())&&c.OffsetCursor.toObject(o,n)};return o&&(e.$jspbMessageInstance=r),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new h.Node;o.readMessage(r,h.Node.deserializeBinaryFromReader),t.addItems(r);break;case 2:r=o.readUint32(),t.setTotalVisible(r);break;case 3:r=new c.OffsetCursor,o.readMessage(r,c.OffsetCursor.deserializeBinaryFromReader),t.setCursor(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getItemsList()).length>0&&o.writeRepeatedMessage(1,r,h.Node.serializeBinaryToWriter),0!==(r=t.getTotalVisible())&&o.writeUint32(2,r),null!=(r=t.getCursor())&&o.writeMessage(3,r,c.OffsetCursor.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getItemsList=function(){return t.Message.getRepeatedWrapperField(this,h.Node,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setItemsList=function(o){t.Message.setRepeatedWrapperField(this,1,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.addItems=function(o,r){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearItemsList=function(){this.setItemsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getTotalVisible=function(){return t.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setTotalVisible=function(o){t.Message.setProto3IntField(this,2,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getCursor=function(){return t.Message.getWrapperField(this,c.OffsetCursor,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setCursor=function(o){t.Message.setWrapperField(this,3,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearCursor=function(){this.setCursor(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.hasCursor=function(){return null!=t.Message.getField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&a.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&a.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new a.Uuid;o.readMessage(r,a.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new a.Uuid,o.readMessage(r,a.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,a.Uuid.serializeBinaryToWriter),null!=(r=t.getNodeId())&&o.writeMessage(2,r,a.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,a.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setViewId=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasViewId=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getNodeId=function(){return t.Message.getWrapperField(this,a.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setNodeId=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasNodeId=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&a.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&a.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new a.Uuid;o.readMessage(r,a.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new a.Uuid,o.readMessage(r,a.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,a.Uuid.serializeBinaryToWriter),null!=(r=t.getNodeId())&&o.writeMessage(2,r,a.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,a.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setViewId=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasViewId=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getNodeId=function(){return t.Message.getWrapperField(this,a.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setNodeId=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasNodeId=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&a.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new a.Uuid;o.readMessage(r,a.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getViewId())&&o.writeMessage(1,r,a.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.getViewId=function(){return t.Message.getWrapperField(this,a.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.setViewId=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.hasViewId=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.toObject=function(t,o){var r,n={change:(r=o.getChange())&&h.TreeChangeType.toObject(t,r),handshake:(r=o.getHandshake())&&proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new h.TreeChangeType;o.readMessage(r,h.TreeChangeType.deserializeBinaryFromReader),t.setChange(r);break;case 2:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader),t.setHandshake(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getChange())&&o.writeMessage(1,r,h.TreeChangeType.serializeBinaryToWriter),null!=(r=t.getHandshake())&&o.writeMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getChange=function(){return t.Message.getWrapperField(this,h.TreeChangeType,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setChange=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearChange=function(){this.setChange(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasChange=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getHandshake=function(){return t.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setHandshake=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearHandshake=function(){this.setHandshake(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasHandshake=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake;return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest"),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_=[3],t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.toObject=function(o,r){var n={filter:t.Message.getFieldWithDefault(r,1,""),fullTree:t.Message.getFieldWithDefault(r,2,!1),columnsKeysList:t.Message.getRepeatedField(r,3),exactMatch:t.Message.getFieldWithDefault(r,4,!1)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setFilter(r);break;case 2:r=o.readBool(),t.setFullTree(r);break;case 3:r=o.readString(),t.addColumnsKeys(r);break;case 4:r=o.readBool(),t.setExactMatch(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getFilter()).length>0&&o.writeString(1,r),(r=t.getFullTree())&&o.writeBool(2,r),(r=t.getColumnsKeysList()).length>0&&o.writeRepeatedString(3,r),(r=t.getExactMatch())&&o.writeBool(4,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFilter=function(){return t.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFilter=function(o){t.Message.setProto3StringField(this,1,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFullTree=function(){return t.Message.getFieldWithDefault(this,2,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFullTree=function(o){t.Message.setProto3BooleanField(this,2,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getColumnsKeysList=function(){return t.Message.getRepeatedField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setColumnsKeysList=function(o){t.Message.setField(this,3,o||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.addColumnsKeys=function(o,r){t.Message.addToRepeatedField(this,3,o,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.clearColumnsKeysList=function(){this.setColumnsKeysList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getExactMatch=function(){return t.Message.getFieldWithDefault(this,4,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setExactMatch=function(o){t.Message.setProto3BooleanField(this,4,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.toObject=function(o,r){var n={numberOfResults:t.Message.getFieldWithDefault(r,1,0)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setNumberOfResults(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter=function(t,o){var r;0!==(r=t.getNumberOfResults())&&o.writeUint32(1,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.getNumberOfResults=function(){return t.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.setNumberOfResults=function(o){t.Message.setProto3IntField(this,1,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.toObject=function(t,o){var r,n={nodeId:(r=o.getNodeId())&&a.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 2:var r=new a.Uuid;o.readMessage(r,a.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getNodeId())&&o.writeMessage(2,r,a.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.getNodeId=function(){return t.Message.getWrapperField(this,a.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.setNodeId=function(o){t.Message.setWrapperField(this,2,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.hasNodeId=function(){return null!=t.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.toObject=function(r,n){var e,i={locatedIndex:(e=n.getLocatedIndex())&&o.UInt64Value.toObject(r,e),requiresReload:t.Message.getFieldWithDefault(n,2,!1)};return r&&(i.$jspbMessageInstance=n),i}),proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader=function(t,r){for(;r.nextField()&&!r.isEndGroup();)switch(r.getFieldNumber()){case 1:var n=new o.UInt64Value;r.readMessage(n,o.UInt64Value.deserializeBinaryFromReader),t.setLocatedIndex(n);break;case 2:n=r.readBool(),t.setRequiresReload(n);break;default:r.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter=function(t,r){var n=void 0;null!=(n=t.getLocatedIndex())&&r.writeMessage(1,n,o.UInt64Value.serializeBinaryToWriter),(n=t.getRequiresReload())&&r.writeBool(2,n)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getLocatedIndex=function(){return t.Message.getWrapperField(this,o.UInt64Value,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setLocatedIndex=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.clearLocatedIndex=function(){this.setLocatedIndex(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.hasLocatedIndex=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getRequiresReload=function(){return t.Message.getFieldWithDefault(this,2,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setRequiresReload=function(o){t.Message.setProto3BooleanField(this,2,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.toObject=function(t,o){var r,n={nodeId:(r=o.getNodeId())&&a.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new a.Uuid;o.readMessage(r,a.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getNodeId())&&o.writeMessage(1,r,a.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.getNodeId=function(){return t.Message.getWrapperField(this,a.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.setNodeId=function(o){t.Message.setWrapperField(this,1,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.hasNodeId=function(){return null!=t.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.toObject=function(o,r){var n={itemsList:t.Message.toObjectList(r.getItemsList(),h.Node.toObject,o)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new h.Node;o.readMessage(r,h.Node.deserializeBinaryFromReader),t.addItems(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter=function(t,o){var r;(r=t.getItemsList()).length>0&&o.writeRepeatedMessage(1,r,h.Node.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.getItemsList=function(){return t.Message.getRepeatedWrapperField(this,h.Node,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.setItemsList=function(o){t.Message.setRepeatedWrapperField(this,1,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.addItems=function(o,r){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.clearItemsList=function(){this.setItemsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest=function(o){t.Message.initialize(this,o,0,-1,null,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest"),t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse=function(o){t.Message.initialize(this,o,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_,null)},e.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse,t.Message),e.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_=[1],t.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.toObject=function(o,r){var n={keysList:t.Message.toObjectList(r.getKeysList(),h.ColumnKey.toObject,o)};return o&&(n.$jspbMessageInstance=r),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinary=function(o){var r=new t.BinaryReader(o),n=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader(n,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new h.ColumnKey;o.readMessage(r,h.ColumnKey.deserializeBinaryFromReader),t.addKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.serializeBinary=function(){var o=new t.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter(this,o),o.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter=function(t,o){var r;(r=t.getKeysList()).length>0&&o.writeRepeatedMessage(1,r,h.ColumnKey.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getKeysList=function(){return t.Message.getRepeatedWrapperField(this,h.ColumnKey,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.setKeysList=function(o){t.Message.setRepeatedWrapperField(this,1,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.addKeys=function(o,r){return t.Message.addToRepeatedWrapperField(this,1,o,proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.clearKeysList=function(){this.setKeysList([])},e.object.extend(n,proto.vertexvis.protobuf.scenetree.v1alpha1)}));!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.SCENE_TREE_DISABLED=1]="SCENE_TREE_DISABLED",t[t.MISSING_VIEWER=2]="MISSING_VIEWER",t[t.DISCONNECTED=3]="DISCONNECTED",t[t.SUBSCRIPTION_FAILURE=4]="SUBSCRIPTION_FAILURE",t[t.UNAUTHORIZED=5]="UNAUTHORIZED"}(p||(p={}));class l{constructor(t,o,r){this.name=t,this.code=o,this.link=r,this.message=function(t){switch(t){case p.UNKNOWN:return"An unknown error occurred.";case p.SCENE_TREE_DISABLED:return"The tree for this scene is not enabled. Enable the tree for this scene to interact with the tree.";case p.MISSING_VIEWER:return"Could not find reference to the viewer";case p.DISCONNECTED:return"Disconnected from server.";case p.SUBSCRIPTION_FAILURE:return"The tree was not able to receive subscription events";case p.UNAUTHORIZED:return"The tree was unauthorized to connect to the server. The associated Viewer may not be connected."}}(o)}}class v extends i{constructor(t,o){super(t,o),Object.setPrototypeOf(this,v.prototype)}}class d extends v{constructor(t,o){super(t,o),Object.setPrototypeOf(this,d.prototype)}}class w extends v{constructor(t,o){super(t,o),Object.setPrototypeOf(this,w.prototype)}}class b extends v{constructor(t,o){super(t,o),Object.setPrototypeOf(this,b.prototype)}}var m=r.grpc,x=function(){function t(){}return t.serviceName="vertexvis.protobuf.scenetree.v1alpha1.SceneTreeAPI",t}();x.GetTree={methodName:"GetTree",service:x,requestStream:!1,responseStream:!1,requestType:f.GetTreeRequest,responseType:f.GetTreeResponse},x.ExpandNode={methodName:"ExpandNode",service:x,requestStream:!1,responseStream:!1,requestType:f.ExpandNodeRequest,responseType:f.ExpandNodeResponse},x.CollapseNode={methodName:"CollapseNode",service:x,requestStream:!1,responseStream:!1,requestType:f.CollapseNodeRequest,responseType:f.CollapseNodeResponse},x.Subscribe={methodName:"Subscribe",service:x,requestStream:!1,responseStream:!0,requestType:f.SubscribeRequest,responseType:f.SubscribeResponse},x.Filter={methodName:"Filter",service:x,requestStream:!1,responseStream:!1,requestType:f.FilterRequest,responseType:f.FilterResponse},x.LocateItem={methodName:"LocateItem",service:x,requestStream:!1,responseStream:!1,requestType:f.LocateItemRequest,responseType:f.LocateItemResponse},x.ExpandAll={methodName:"ExpandAll",service:x,requestStream:!1,responseStream:!1,requestType:f.ExpandAllRequest,responseType:f.ExpandAllResponse},x.CollapseAll={methodName:"CollapseAll",service:x,requestStream:!1,responseStream:!1,requestType:f.CollapseAllRequest,responseType:f.CollapseAllResponse},x.GetNodeAncestors={methodName:"GetNodeAncestors",service:x,requestStream:!1,responseStream:!1,requestType:f.GetNodeAncestorsRequest,responseType:f.GetNodeAncestorsResponse},x.GetAvailableColumns={methodName:"GetAvailableColumns",service:x,requestStream:!1,responseStream:!1,requestType:f.GetAvailableColumnsRequest,responseType:f.GetAvailableColumnsResponse};var E=x;function g(t,o){this.serviceHost=t,this.options=o||{}}g.prototype.getTree=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=m.unary(x.GetTree,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},g.prototype.expandNode=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=m.unary(x.ExpandNode,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},g.prototype.collapseNode=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=m.unary(x.CollapseNode,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},g.prototype.subscribe=function(t,o){var r={data:[],end:[],status:[]},n=m.invoke(x.Subscribe,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onMessage:function(t){r.data.forEach((function(o){o(t)}))},onEnd:function(t,o,n){r.status.forEach((function(r){r({code:t,details:o,metadata:n})})),r.end.forEach((function(r){r({code:t,details:o,metadata:n})})),r=null}});return{on:function(t,o){return r[t].push(o),this},cancel:function(){r=null,n.close()}}},g.prototype.filter=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=m.unary(x.Filter,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},g.prototype.locateItem=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=m.unary(x.LocateItem,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},g.prototype.expandAll=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=m.unary(x.ExpandAll,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},g.prototype.collapseAll=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=m.unary(x.CollapseAll,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},g.prototype.getNodeAncestors=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=m.unary(x.GetNodeAncestors,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},g.prototype.getAvailableColumns=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=m.unary(x.GetAvailableColumns,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==m.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}};var O=g;function y(t){return t.methodDefinition.methodName===E.Subscribe.methodName?r.grpc.WebsocketTransport()(t):r.grpc.CrossBrowserHttpTransport({withCredentials:!1})(t)}function R(t){this.message=t}(R.prototype=new Error).name="InvalidCharacterError";var I="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var o=String(t).replace(/=+$/,"");if(o.length%4==1)throw new R("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,e=0,i=0,s="";n=o.charAt(i++);~n&&(r=e%4?64*r+n:n,e++%4)?s+=String.fromCharCode(255&r>>(-2*e&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return s};function C(t){var o=t.replace(/-/g,"+").replace(/_/g,"/");switch(o.length%4){case 0:break;case 2:o+="==";break;case 3:o+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(I(t).replace(/(.)/g,(function(t,o){var r=o.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(o)}catch(t){return I(o)}}function S(t){this.message=t}(S.prototype=new Error).name="InvalidTokenError";class k{constructor(t,o,r={spinnerDelay:2e3,subscriptionHandshakeGracePeriodInMs:5e3}){this.client=t,this.rowLimit=o,this.connectOptions=r,this.nextPageId=0,this.pages=new Map,this.activeRowRange=[0,0],this.metadataKeys=[],this.debugLogs=!1,this.onStateChange=new e,this.state={totalRows:0,isSearching:!1,rows:[],connection:{type:"disconnected"}}}get fetchedPageCount(){return this.pages.size}get isConnected(){return"connected"===this.state.connection.type}stateChanged(t){return this.onStateChange.on(t)}setDebugLogs(t){this.debugLogs=t}async handleSubscriptionHandshakeTimeout(t,o){var r;const n=this.getState().connection;if(this.isConnectedState(n)&&null!=(null===(r=n.subscriptionStatusState)||void 0===r?void 0:r.attempt)&&n.subscriptionStatusState.attempt<k.MAX_SUBSCRIPTION_RETRY_COUNT){const r=n.subscriptionStatusState.attempt+1;console.warn(`Failed to subscribe within the allotted timeout. Retry attempt={${r}}`),n.subscriptionStatusState.stream.cancel(),this.clearHandshakeTimer();const e=await this.subscribe();this.invalidatePage(0),this.updateState(Object.assign(Object.assign({},this.state),{connection:Object.assign(Object.assign({},n),{type:"connected",subscription:{dispose:()=>e.cancel()},subscriptionStatusState:{attempt:r,stream:e}})})),this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.handleSubscriptionHandshakeTimeout(t,o)}),this.connectOptions.subscriptionHandshakeGracePeriodInMs)}else this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:o,details:new l("SUBSCRIPTION_FAILURE",p.SUBSCRIPTION_FAILURE)}}))}async connect(t){const{connection:o}=this.state,r=t();if(null==r)throw new d("Cannot connect scene tree. JWT is undefined");const{view:n}=function(t){return function(t,o){if("string"!=typeof t)throw new S("Invalid token specified");var r=!0===(o=o||{}).header?0:1;try{return JSON.parse(C(t.split(".")[r]))}catch(t){throw new S("Invalid token specified: "+t.message)}}(t)}(r);this.disconnect(o.sceneViewId!==n);const e={type:"connecting",jwtProvider:t,sceneViewId:n};this.updateState(Object.assign(Object.assign({},this.state),{connection:e}));try{this.log("Scene tree controller connecting.");const[,o]=await Promise.all([this.fetchPage(0),this.subscribe()]);this.updateState(Object.assign(Object.assign({},this.state),{connection:{jwtProvider:t,sceneViewId:n,type:"connected",subscription:{dispose:()=>o.cancel()},subscriptionStatusState:{attempt:0,stream:o}}})),this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.handleSubscriptionHandshakeTimeout(t,n)}),this.connectOptions.subscriptionHandshakeGracePeriodInMs)}catch(o){this.ifErrorIsFatal(o,(()=>{throw this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:n,details:this.getConnectionError(o)}})),this.clearHandshakeTimer(),o}))}this.startIdleReconnectTimer(),this.metadataKeys.length>0&&this.setMetadataKeys(this.metadataKeys)}clearReconnectTimer(){null!=this.reconnectTimer&&window.clearTimeout(this.reconnectTimer)}clearHandshakeTimer(){null!=this.subscriptionHandshakeTimer&&window.clearTimeout(this.subscriptionHandshakeTimer)}startIdleReconnectTimer(){this.startReconnectTimer(this.connectOptions.idleReconnectInSeconds||k.IDLE_RECONNECT_IN_SECONDS)}startConnectionLostReconnectTimer(){this.startReconnectTimer(this.connectOptions.lostConnectionReconnectInSeconds||k.LOST_CONNECTION_RECONNECT_IN_SECONDS)}startReconnectTimer(t){this.clearReconnectTimer(),this.reconnectTimer=window.setTimeout((()=>{"connected"===this.state.connection.type&&this.connect(this.state.connection.jwtProvider)}),1e3*t)}connectToViewer(t){const o=async()=>{if(null!=t.token){this.log("Scene tree controller found viewer JWT. Attempting connection.");try{await this.connect((()=>t.token))}catch(t){this.ifErrorIsFatal(t,(()=>{console.error("Scene tree controller errored connecting.",t)}))}}},r=()=>{this.log("Scene tree controller received scene ready"),o()};return o(),t.addEventListener("sceneReady",r),{dispose:()=>{t.removeEventListener("sceneReady",r),this.disconnect()}}}disconnect(t=!1){this.log(`Scene tree controller disconnecting [reset=${t}]`),this.clearHandshakeTimer(),this.clearReconnectTimer(),t&&(this.pages.clear(),this.activeRowRange=[]);const{connection:o}=this.state;"connected"===o.type&&o.subscription.dispose(),this.updateState({connection:{type:"disconnected",jwtProvider:o.jwtProvider,sceneViewId:o.sceneViewId},isSearching:!1,totalRows:t?0:this.state.totalRows,rows:t?[]:this.state.rows})}cancel(){this.log("Scene tree controller cancelled"),this.clearHandshakeTimer(),this.clearReconnectTimer(),this.pages.clear(),this.activeRowRange=[];const{connection:t}=this.state;"connected"===t.type&&t.subscription.dispose(),this.updateState({connection:{type:"cancelled",jwtProvider:t.jwtProvider,sceneViewId:t.sceneViewId},isSearching:!1,totalRows:0,rows:[]})}async collapseNode(t){return this.ifConnectionHasJwt((async o=>{const r=new a.Uuid;r.setHex(t);const n=new f.CollapseNodeRequest;n.setNodeId(r),await this.requestUnary(o,((t,o)=>this.client.collapseNode(n,t,o)))}))}async expandNode(t){return this.ifConnectionHasJwt((async o=>{const r=new a.Uuid;r.setHex(t);const n=new f.ExpandNodeRequest;n.setNodeId(r),await this.requestUnary(o,((t,o)=>this.client.expandNode(n,t,o)))}))}async collapseAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.collapseAll(new f.CollapseAllRequest,t,o)))}))}async expandAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.expandAll(new f.ExpandAllRequest,t,o)))}))}async expandParentNodes(t){return this.ifConnectionHasJwt((async o=>{const r=new a.Uuid;r.setHex(t);const n=new f.LocateItemRequest;n.setNodeId(r);const e=await this.requestUnary(o,((t,o)=>this.client.locateItem(n,t,o))),{requiresReload:i,locatedIndex:s}=e.toObject();if(i&&(this.invalidateAfterOffset(0),await this.fetchUnloadedPagesInActiveRows()),null==s)throw new b("Cannot locate node. Location index is undefined.");return s.value}))}async fetchNodeAncestors(t){return this.ifConnectionHasJwt((async o=>{const r=new a.Uuid;r.setHex(t);const n=new f.GetNodeAncestorsRequest;return n.setNodeId(r),(await this.requestUnary(o,((t,o)=>this.client.getNodeAncestors(n,t,o)))).toObject().itemsList}))}async fetchPage(t){return this.ifConnectionHasJwt((async o=>{var r;if(!(t<0||t>this.maxPages-1)){if(!this.pages.has(t)){const r=t*this.rowLimit;this.log("Scene tree fetching page",t,r);const n=this.fetchTree(r,this.rowLimit,o),e={id:this.nextPageId++,res:n,index:t,metadataKeys:this.metadataKeys};this.pages.set(t,e),this.handlePageResult(e)}await(null===(r=this.pages.get(t))||void 0===r?void 0:r.res)}}))}fetchPageAtOffset(t){const o=Math.floor(t/this.rowLimit);return this.fetchPage(o)}async fetchRange(t,o){const r=Math.floor(t/this.rowLimit),n=Math.floor(o/this.rowLimit),[e,i]=this.constrainPageRange(r,n),s=i-e+1;await Promise.all(Array.from({length:s}).map(((t,o)=>this.fetchPage(o))))}async fetchMetadataKeys(){return this.ifConnectionHasJwt((async t=>(await this.requestUnary(t,((t,o)=>{const r=new f.GetAvailableColumnsRequest;this.client.getAvailableColumns(r,t,o)}))).getKeysList().map((t=>t.getValue()))))}async filter(t,o={}){return this.ifConnectionHasJwt((async r=>{this.updateState(Object.assign(Object.assign({},this.state),{isSearching:!0}));try{const n=await this.requestUnary(r,((r,n)=>{var e;const i=new f.FilterRequest;i.setFilter(t),i.setFullTree(null===(e=o.includeCollapsed)||void 0===e||e),i.setExactMatch(!!o.exactMatch),o.columns&&i.setColumnsKeysList(o.columns),this.client.filter(i,r,n)})),{numberOfResults:e}=n.toObject();this.updateState(Object.assign(Object.assign({},this.state),{totalFilteredRows:e,isSearching:!1}))}catch(t){console.error("Failed to filter search ",t),this.updateState(Object.assign(Object.assign({},this.state),{isSearching:!1}))}}))}isPageLoaded(t){return this.pages.has(t)}getNonLoadedPageIndexes(t,o){const[r,n]=this.constrainPageRange(t,o);return Array.from({length:n-r+1}).map(((t,o)=>r+o)).filter((t=>!this.isPageLoaded(t)))}getPage(t){return this.pages.get(t)}invalidatePagesOutsideRange(t,o,r=0){const[n,e]=this.constrainPageRange(t,o),i=Math.max(e-n,r);if(this.fetchedPageCount>i){const t=Array.from(this.pages.keys()).map((t=>({index:t,distance:t<n?n-t:t-e})));t.sort(((t,o)=>o.distance-t.distance)).slice(0,t.length-r).forEach((({index:t})=>this.invalidatePage(t))),this.log(`Scene tree dropped ${t.length-this.fetchedPageCount} pages`,this.pages)}}setMetadataKeys(t){if(this.metadataKeys=t,"connected"===this.state.connection.type){const[t,o]=this.activeRowRange;return this.invalidateAfterOffset(0),this.updateActiveRowRange(t,o)}return Promise.resolve()}async updateActiveRowRange(t,o){this.activeRowRange=this.constrainRowOffsets(t,o),await this.fetchUnloadedPagesInActiveRows()}subscribe(){return this.ifConnectionHasJwt((t=>{const o=this.requestServerStream(t,(t=>this.client.subscribe(new f.SubscribeRequest,t)));return o.on("data",(t=>{t.hasHandshake()&&this.clearHandshakeTimer(),this.startIdleReconnectTimer();const{change:o}=t.toObject();null!=(null==o?void 0:o.listChange)&&(this.log("Received list change",o.listChange.start),this.invalidateAfterOffset(o.listChange.start),this.fetchUnloadedPagesInActiveRows());const{hiddenList:r=[],shownList:n=[],partiallyVisibleList:e=[],deselectedList:i=[],selectedList:s=[]}=(null==o?void 0:o.ranges)||{};e.length>0&&(this.log("Received partial visibility list change",e),e.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({partiallyVisible:!0})))))),r.length>0&&(this.log("Received hidden list change",r),r.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:!1,partiallyVisible:!1})))))),n.length>0&&(this.log("Received shown list change",n),n.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:!0,partiallyVisible:!1})))))),i.length>0&&(this.log("Received deselected list change",i),i.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:!1})))))),s.length>0&&(this.log("Received selected list change",s),s.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:!0}))))))})),o.on("status",(t=>{0!==t.code&&(console.error(`Failed to subscribe to scene tree with code=${t.code}, details=${t.details}`),this.invalidateAfterOffset(0))})),o.on("end",(()=>{this.invalidateAfterOffset(0),this.startConnectionLostReconnectTimer()})),o}))}async fetchUnloadedPagesInActiveRows(){const[t,o]=this.getPageIndexesForRange(this.activeRowRange[0],this.activeRowRange[1]),r=this.getNonLoadedPageIndexes(t-1,o+1);await Promise.all(r.map((t=>this.fetchPage(t))))}patchNodesInRange(t,o,r){const n=this.state.rows.slice(t,o+1).map((t=>s(t)?Object.assign(Object.assign({},t),{node:Object.assign(Object.assign({},t.node),r(t.node))}):t)),e=[...this.state.rows.slice(0,t),...n,...this.state.rows.slice(o+1)];this.updateState(Object.assign(Object.assign({},this.state),{rows:e}))}async handlePageResult(t){var o;try{const r=await t.res,n=this.getPage(t.index);if((null==n?void 0:n.id)===t.id){const e=r.getCursor(),i=r.getItemsList(),s=null!==(o=null==e?void 0:e.getTotal())&&void 0!==o?o:0,p=t.index*this.rowLimit,c=u(p,i,n.metadataKeys),a=this.state.rows.slice(0,p),h=this.state.rows.slice(a.length+c.length,s),f=new Array(Math.max(0,s-a.length-c.length-h.length)),l=[...a,...c,...h,...f];this.isViewLoading(l)&&null==this.loadingTimer?(this.loadingTimer=window.setTimeout((()=>{this.updateState(Object.assign(Object.assign({},this.getState()),{shouldShowLoading:!0}))}),this.connectOptions.spinnerDelay),this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:l}))):this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:l}))}}catch(o){const r=o instanceof Error?o.toString():"Unknown";console.error(`Request error fetching page at index ${t.index} (${r})`);const n=this.getPage(t.index);(null==n?void 0:n.id)===t.id&&this.invalidatePage(t.index)}}invalidatePage(t){this.isPageLoaded(t)&&this.pages.delete(t)}invalidateAfterOffset(t){const o=Math.floor(t/this.rowLimit);for(const t of this.pages.keys())t>=o&&this.invalidatePage(t)}getState(){return this.state}isViewLoading(t){return null==t[this.activeRowRange[0]]&&null==t[this.activeRowRange[1]]}updateState(t){this.loadingTimer&&!this.isViewLoading(t.rows)?(clearTimeout(this.loadingTimer),this.loadingTimer=void 0,this.state=Object.assign(Object.assign({},t),{shouldShowLoading:!1})):this.state=Object.assign({},t),this.onStateChange.emit(this.state)}getPageForOffset(t){const o=Math.floor(t/this.rowLimit);return this.constrainPageIndex(o)}getPageIndexesForRange(t,o){return[this.getPageForOffset(t),this.getPageForOffset(o)]}async fetchTree(t,o,r){return this.requestUnary(r,((r,n)=>{const e=new c.OffsetPager;e.setOffset(t),e.setLimit(o);const i=new f.GetTreeRequest;i.setPager(e),i.setAdditionalColumnKeysList(this.metadataKeys),this.client.getTree(i,r,n)}))}requestUnary(t,o){return new Promise(((r,n)=>{const e=this.createJwtMetadata(t);o(e,((t,o)=>{null!=t?n(t):null!=o?r(o):n(new v("Invalid response. Both error and result are null"))}))}))}requestServerStream(t,o){return o(this.createJwtMetadata(t))}createJwtMetadata(t){return new r.grpc.Metadata({"jwt-context":JSON.stringify({jwt:t})})}async ifConnectionHasJwt(t){const{connection:o}=this.state;if("connecting"===o.type||"connected"===o.type){const r=await o.jwtProvider();if(null!=r)return t(r);throw new d("SceneTreeController cannot perform request. Viewer JWT is undefined.")}throw"cancelled"===o.type?new w("Request attempted, but controller was cancelled"):new v("SceneTreeController is not in connected state")}ifErrorIsFatal(t,o){t instanceof w||o()}getConnectionError(t){return"number"==typeof(o=t).code&&o.hasOwnProperty("metadata")?t.code===r.grpc.Code.FailedPrecondition?new l("SCENE_TREE_DISABLED",p.SCENE_TREE_DISABLED):t.code===r.grpc.Code.Unauthenticated?new l("UNAUTHORIZED",p.UNAUTHORIZED):new l("UNKNOWN",p.UNKNOWN):t instanceof d?new l("UNAUTHORIZED",p.UNAUTHORIZED):new l("UNKNOWN",p.UNKNOWN);var o}constrainPageRange(t,o){return[Math.max(0,t),Math.min(this.maxPages-1,o)]}constrainPageIndex(t){return Math.max(0,Math.min(t,this.maxPages-1))}constrainRowOffsets(t,o){return[Math.max(0,t),Math.min(this.state.totalRows-1,o)]}get maxPages(){return Math.max(1,Math.ceil(this.state.totalRows/this.rowLimit))}log(t,...o){this.debugLogs&&console.debug(t,o)}isConnectedState(t){return"connected"===t.type}}k.IDLE_RECONNECT_IN_SECONDS=240,k.LOST_CONNECTION_RECONNECT_IN_SECONDS=2,k.MAX_SUBSCRIPTION_RETRY_COUNT=2;export{k as S,O as a,l as b,p as c,y as w}
@@ -0,0 +1,4 @@
1
+ /**!
2
+ * Copyright (c) 2023 Vertex Software LLC. All rights reserved.
3
+ */
4
+ function n(n){return n.clientHeight}function r(n,r){return n.contains(r)}export{n as a,r as g}
@@ -1,4 +1,4 @@
1
1
  /**!
2
2
  * Copyright (c) 2023 Vertex Software LLC. All rights reserved.
3
3
  */
4
- import{m as t,s,a as i,g as n}from"./p-9f805c70.js";import{g as e,w as r}from"./p-92fe4417.js";import{i as a,v as o}from"./p-46f40a43.js";import{m as h}from"./p-fc7d8c03.js";function c(t){return new Promise(((s,i)=>{t(((t,n)=>{null!=t?i(t):null!=n?s(n):i(new Error("Invalid gRPC response. Error and result are empty."))}))}))}async function m(t,s){const i=await t();return new e.grpc.Metadata({"jwt-context":JSON.stringify({jwt:i,metadata:{"x-device-id":s||""}})})}class u{constructor(t,s,i,n){this.model=t,this.client=s,this.jwtProvider=i,this.deviceId=n,this.outcome=Promise.resolve(void 0)}addEntity(t){return this.performMeasurement((()=>this.model.addEntity(t)))}clearEntities(){return this.performMeasurement((()=>(this.model.clearEntities(),this.model.clearOutcome(),!0)))}removeEntity(t){return this.performMeasurement((()=>this.model.removeEntity(t)))}setEntities(t){return this.performMeasurement((()=>this.model.setEntities(t)))}performMeasurement(t){const s=this.model.getEntities(),i=t(),n=this.model.getEntities();return i&&(this.measureAndUpdateModel(n),this.highlightEntities(s,n)),this.outcome}measureAndUpdateModel(t){this.outcome=t.length>0?this.measureEntities(t).then((t=>(this.model.setOutcome(t),this.model.getOutcome()))):Promise.resolve(void 0)}async measureEntities(i){if(i.length>0){const n=await c((async t=>{const n=await m(this.jwtProvider,this.deviceId),e=new s.MeasureRequest;e.setEntitiesList(i.map((t=>t.toProto()))),this.client.measure(e,n,t)}));return t(n.toObject())}}async highlightEntities(t,n){await c((async e=>{const a=await m(this.jwtProvider,this.deviceId),o=new Set(n),h=t.filter((t=>!o.has(t))).map((t=>{const n=new s.ModelEntityUpdate;return n.setModelEntity(i.ModelEntity.deserializeBinary(t.modelEntity)),n.setHighlight((new r.BoolValue).setValue(!1)),n})),c=n.map((t=>{const n=new s.ModelEntityUpdate;return n.setModelEntity(i.ModelEntity.deserializeBinary(t.modelEntity)),n.setHighlight((new r.BoolValue).setValue(!0)),n})),u=new s.UpdateModelEntitiesRequest;u.setUpdatesList([...h,...c]),this.client.updateModelEntities(u,a,e)}))}}class w{constructor(t,s){this.point=t,this.modelEntity=s}static fromHit(t){if(null!=t.hitPoint&&null!=t.modelEntity){const s=h.ifInvalidThrow(a)(t.hitPoint),i=o.protobuf.core.ModelEntity.encode(t.modelEntity).finish();return new w(s,i)}throw new Error("Cannot create MeasurementEntity from Hit. Hit is missing hit point and model entity")}toProto(){const t=new s.MeasureEntity,e=new n.Vector3f;e.setX(this.point.x),e.setY(this.point.y),e.setZ(this.point.z),t.setPoint(e);const r=i.ModelEntity.deserializeBinary(this.modelEntity);return t.setModelEntity(r),t}}export{u as M,w as a}
4
+ import{m as t,s,a as i,g as n}from"./p-2c07b773.js";import{a as e,w as r}from"./p-3a6fa239.js";import{i as a,v as o}from"./p-817743a4.js";import{m as h}from"./p-fc7d8c03.js";function c(t){return new Promise(((s,i)=>{t(((t,n)=>{null!=t?i(t):null!=n?s(n):i(new Error("Invalid gRPC response. Error and result are empty."))}))}))}async function m(t,s){const i=await t();return new e.grpc.Metadata({"jwt-context":JSON.stringify({jwt:i,metadata:{"x-device-id":s||""}})})}class u{constructor(t,s,i,n){this.model=t,this.client=s,this.jwtProvider=i,this.deviceId=n,this.outcome=Promise.resolve(void 0)}addEntity(t){return this.performMeasurement((()=>this.model.addEntity(t)))}clearEntities(){return this.performMeasurement((()=>(this.model.clearEntities(),this.model.clearOutcome(),!0)))}removeEntity(t){return this.performMeasurement((()=>this.model.removeEntity(t)))}setEntities(t){return this.performMeasurement((()=>this.model.setEntities(t)))}performMeasurement(t){const s=this.model.getEntities(),i=t(),n=this.model.getEntities();return i&&(this.measureAndUpdateModel(n),this.highlightEntities(s,n)),this.outcome}measureAndUpdateModel(t){this.outcome=t.length>0?this.measureEntities(t).then((t=>(this.model.setOutcome(t),this.model.getOutcome()))):Promise.resolve(void 0)}async measureEntities(i){if(i.length>0){const n=await c((async t=>{const n=await m(this.jwtProvider,this.deviceId),e=new s.MeasureRequest;e.setEntitiesList(i.map((t=>t.toProto()))),this.client.measure(e,n,t)}));return t(n.toObject())}}async highlightEntities(t,n){await c((async e=>{const a=await m(this.jwtProvider,this.deviceId),o=new Set(n),h=t.filter((t=>!o.has(t))).map((t=>{const n=new s.ModelEntityUpdate;return n.setModelEntity(i.ModelEntity.deserializeBinary(t.modelEntity)),n.setHighlight((new r.BoolValue).setValue(!1)),n})),c=n.map((t=>{const n=new s.ModelEntityUpdate;return n.setModelEntity(i.ModelEntity.deserializeBinary(t.modelEntity)),n.setHighlight((new r.BoolValue).setValue(!0)),n})),u=new s.UpdateModelEntitiesRequest;u.setUpdatesList([...h,...c]),this.client.updateModelEntities(u,a,e)}))}}class w{constructor(t,s){this.point=t,this.modelEntity=s}static fromHit(t){if(null!=t.hitPoint&&null!=t.modelEntity){const s=h.ifInvalidThrow(a)(t.hitPoint),i=o.protobuf.core.ModelEntity.encode(t.modelEntity).finish();return new w(s,i)}throw new Error("Cannot create MeasurementEntity from Hit. Hit is missing hit point and model entity")}toProto(){const t=new s.MeasureEntity,e=new n.Vector3f;e.setX(this.point.x),e.setY(this.point.y),e.setZ(this.point.z),t.setPoint(e);const r=i.ModelEntity.deserializeBinary(this.modelEntity);return t.setModelEntity(r),t}}export{u as M,w as a}