@vertexvis/viewer 0.15.2-testing.4 → 0.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_commonjsHelpers-dcc4cf71.js +1 -1
- package/dist/cjs/app-globals-2035678d.js +1 -1
- package/dist/cjs/browser.esm-5d246754.js +1 -1
- package/dist/cjs/bundle.esm-22b6f2d6.js +1 -1
- package/dist/cjs/bundle.esm-b43c197a.js +38280 -0
- package/dist/cjs/{config-4a86ae0b.js → config-3fc1c093.js} +2 -2
- package/dist/cjs/{cursors-85d403e9.js → cursors-02a06ec9.js} +7 -1
- package/dist/cjs/dom-8d90bfaf.js +1 -1
- package/dist/cjs/dom-92728e58.js +1 -1
- package/dist/cjs/dom-d1bbd67c.js +1 -1
- package/dist/cjs/dom-d57d3c3b.js +1 -1
- package/dist/cjs/elementRectObserver-9b28f182.js +1 -1
- package/dist/cjs/entities-9eb7e608.js +1 -1
- package/dist/cjs/{entities-496b61cd.js → entities-c1c3c6a3.js} +3 -3
- package/dist/cjs/errors-1b37642b.js +97 -0
- package/dist/cjs/grpc-web-client.umd-2af20c1b.js +1 -1
- package/dist/cjs/index-70db349e.js +1 -1
- package/dist/cjs/index-b9d13137.js +1 -1
- package/dist/cjs/index.cjs.js +9 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{mapper-216603b0.js → mapper-d4145b72.js} +2 -2
- package/dist/cjs/markup-4a2fc281.js +1 -1
- package/dist/cjs/{model-b61f4d20.js → model-19fb560a.js} +27 -6
- package/dist/cjs/model-20a70d27.js +1 -1
- package/dist/cjs/overlays-b03ec80b.js +1 -1
- package/dist/cjs/png-decoder-ef097f37.js +1 -1
- package/dist/cjs/results-178e89a3.js +1 -1
- package/dist/cjs/{scene-0ce59b26.js → scene-a94e6fa5.js} +276 -225
- package/dist/cjs/shadow-css-6b9daa41.js +1 -1
- package/dist/cjs/stencil-fc92b387.js +1 -1
- package/dist/cjs/{streamAttributes-7725f5c4.js → streamAttributes-cf0c513d.js} +5408 -39951
- package/dist/cjs/templates-e57b3741.js +1 -1
- package/dist/cjs/utils-2c8e2aa3.js +1 -1
- package/dist/cjs/utils-ea359796.js +1 -1
- package/dist/cjs/vertex-scene-tree-search_3.cjs.entry.js +1 -1
- package/dist/cjs/vertex-scene-tree-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/vertex-scene-tree-table-column.cjs.entry.js +1 -1
- package/dist/cjs/vertex-scene-tree-table-header.cjs.entry.js +1 -1
- package/dist/cjs/vertex-scene-tree-table-resize-divider.cjs.entry.js +1 -1
- package/dist/cjs/vertex-scene-tree-toolbar-group.cjs.entry.js +1 -1
- package/dist/cjs/vertex-scene-tree.cjs.entry.js +158 -37
- package/dist/cjs/vertex-viewer-box-query-tool.cjs.entry.js +229 -49
- package/dist/cjs/vertex-viewer-button_3.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-default-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-dom-element_2.cjs.entry.js +3 -2
- package/dist/cjs/vertex-viewer-dom-group.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-icon.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-layer.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-markup-arrow_3.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-markup-tool.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-markup.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-measurement-details.cjs.entry.js +3 -2
- package/dist/cjs/vertex-viewer-measurement-distance.cjs.entry.js +5 -4
- package/dist/cjs/vertex-viewer-measurement-line_2.cjs.entry.js +4 -3
- package/dist/cjs/vertex-viewer-measurement-precise.cjs.entry.js +7 -6
- package/dist/cjs/vertex-viewer-pin-group.cjs.entry.js +10 -5
- package/dist/cjs/vertex-viewer-pin-label_2.cjs.entry.js +15 -13
- package/dist/cjs/vertex-viewer-pin-tool.cjs.entry.js +20 -9
- package/dist/cjs/vertex-viewer-spinner.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-transform-widget.cjs.entry.js +6 -4
- package/dist/cjs/vertex-viewer-view-cube.cjs.entry.js +5 -4
- package/dist/cjs/vertex-viewer.cjs.entry.js +80 -53
- package/dist/cjs/viewer.cjs.js +2 -2
- package/dist/cjs/viewport-5ca619f7.js +1 -1
- package/dist/collection/components/scene-tree/lib/controller.js +108 -28
- package/dist/collection/components/scene-tree/lib/errors.js +35 -2
- package/dist/collection/components/scene-tree/scene-tree.js +12 -5
- package/dist/collection/components/viewer/viewer.js +17 -15
- package/dist/collection/components/viewer-box-query-tool/viewer-box-query-tool.css +7 -2
- package/dist/collection/components/viewer-box-query-tool/viewer-box-query-tool.js +105 -18
- package/dist/collection/components/viewer-pin-group/viewer-pin-group.js +5 -1
- package/dist/collection/components/viewer-pin-label/viewer-pin-label.css +1 -1
- package/dist/collection/components/viewer-pin-label/viewer-pin-label.js +14 -12
- package/dist/collection/components/viewer-pin-tool/utils.js +25 -4
- package/dist/collection/components/viewer-pin-tool/viewer-pin-tool.css +12 -0
- package/dist/collection/components/viewer-pin-tool/viewer-pin-tool.js +9 -2
- package/dist/collection/components/viewer-transform-widget/viewer-transform-widget.js +3 -2
- package/dist/collection/components/viewer-view-cube/viewer-view-cube.js +5 -5
- package/dist/collection/lib/cursors.js +6 -1
- package/dist/collection/lib/interactions/baseInteractionHandler.js +12 -2
- package/dist/collection/lib/interactions/mouseInteractions.js +5 -4
- package/dist/collection/lib/mappers/frameStreaming.js +11 -11
- package/dist/collection/lib/pins/interactions.js +9 -5
- package/dist/collection/lib/pins/model.js +2 -2
- package/dist/collection/lib/rendering/matrices.js +2 -4
- package/dist/collection/lib/scenes/camera.js +4 -2
- package/dist/collection/lib/scenes/mapper.js +98 -36
- package/dist/collection/lib/scenes/queries.js +89 -50
- package/dist/collection/lib/scenes/scene.js +15 -7
- package/dist/collection/lib/stream/stream.js +24 -12
- package/dist/collection/lib/transforms/drawable.js +2 -2
- package/dist/collection/lib/types/frame.js +4 -3
- package/dist/collection/lib/types/frameCamera.js +6 -1
- package/dist/collection/lib/types/index.js +3 -2
- package/dist/collection/lib/types/loadableResource.js +24 -4
- package/dist/collection/lib/types/sceneViewStateIdentifier.js +7 -0
- package/dist/collection/lib/volume-intersection/controller.js +71 -15
- package/dist/collection/lib/volume-intersection/interactions.js +54 -9
- package/dist/collection/lib/volume-intersection/model.js +27 -10
- package/dist/custom-elements/index.js +20207 -15976
- package/dist/custom-elements/png-decoder.js +1 -1
- package/dist/esm/_commonjsHelpers-11ca3be1.js +1 -1
- package/dist/esm/app-globals-40df99a0.js +1 -1
- package/dist/esm/{browser.esm-ae4ca1f1.js → browser.esm-07e7db8f.js} +2 -2
- package/dist/esm/bundle.esm-91404853.js +38273 -0
- package/dist/esm/{bundle.esm-ce2c7ad3.js → bundle.esm-92e615bf.js} +2 -2
- package/dist/esm/{config-6cdeb6ca.js → config-25384fe6.js} +3 -3
- package/dist/esm/{cursors-a8d4b3f4.js → cursors-127a3bb7.js} +8 -3
- package/dist/esm/dom-0440435d.js +1 -1
- package/dist/esm/dom-be140992.js +1 -1
- package/dist/esm/dom-e19ee80b.js +1 -1
- package/dist/esm/{dom-5b164305.js → dom-e436f0c0.js} +2 -2
- package/dist/esm/elementRectObserver-39cf7b95.js +1 -1
- package/dist/esm/{entities-6f3c5437.js → entities-0e325765.js} +4 -4
- package/dist/esm/entities-ce81dd7f.js +1 -1
- package/dist/esm/errors-a4cc9caa.js +85 -0
- package/dist/esm/grpc-web-client.umd-5409853c.js +1 -1
- package/dist/esm/index-26dfb2d0.js +1 -1
- package/dist/esm/index-e841d91b.js +1 -1
- package/dist/esm/index.js +15 -13
- package/dist/esm/index.mjs +15 -13
- package/dist/esm/loader.js +2 -2
- package/dist/esm/loader.mjs +2 -2
- package/dist/esm/{mapper-941ff03c.js → mapper-dd937684.js} +3 -3
- package/dist/esm/{markup-3c2900f3.js → markup-2dde1f10.js} +3 -3
- package/dist/esm/{model-fa9af61a.js → model-3cd8cd47.js} +2 -2
- package/dist/esm/{model-40bd1711.js → model-bfe1c4d8.js} +29 -8
- package/dist/esm/{overlays-cc3efc30.js → overlays-8f195eb3.js} +3 -3
- package/dist/esm/{png-decoder-d4b65417.js → png-decoder-45f38ea3.js} +2 -2
- package/dist/esm/{results-3b4df2cf.js → results-38baef59.js} +2 -2
- package/dist/esm/{scene-970f5000.js → scene-2543b3bd.js} +237 -178
- package/dist/esm/shadow-css-51dd7708.js +1 -1
- package/dist/esm/stencil-bfbf099f.js +1 -1
- package/dist/esm/{streamAttributes-24bd7b3a.js → streamAttributes-23270e27.js} +5419 -39956
- package/dist/esm/templates-022199c1.js +1 -1
- package/dist/esm/{utils-81347571.js → utils-2306c744.js} +2 -2
- package/dist/esm/{utils-559e1632.js → utils-f03802ef.js} +2 -2
- package/dist/esm/vertex-scene-tree-search_3.entry.js +3 -3
- package/dist/esm/vertex-scene-tree-table-cell.entry.js +1 -1
- package/dist/esm/vertex-scene-tree-table-column.entry.js +1 -1
- package/dist/esm/vertex-scene-tree-table-header.entry.js +1 -1
- package/dist/esm/vertex-scene-tree-table-resize-divider.entry.js +1 -1
- package/dist/esm/vertex-scene-tree-toolbar-group.entry.js +1 -1
- package/dist/esm/vertex-scene-tree.entry.js +160 -39
- package/dist/esm/vertex-viewer-box-query-tool.entry.js +229 -49
- package/dist/esm/vertex-viewer-button_3.entry.js +1 -1
- package/dist/esm/vertex-viewer-default-toolbar.entry.js +1 -1
- package/dist/esm/vertex-viewer-dom-element_2.entry.js +6 -5
- package/dist/esm/vertex-viewer-dom-group.entry.js +3 -3
- package/dist/esm/vertex-viewer-icon.entry.js +1 -1
- package/dist/esm/vertex-viewer-layer.entry.js +1 -1
- package/dist/esm/vertex-viewer-markup-arrow_3.entry.js +4 -4
- package/dist/esm/vertex-viewer-markup-tool.entry.js +5 -5
- package/dist/esm/vertex-viewer-markup.entry.js +5 -5
- package/dist/esm/vertex-viewer-measurement-details.entry.js +5 -4
- package/dist/esm/vertex-viewer-measurement-distance.entry.js +13 -12
- package/dist/esm/vertex-viewer-measurement-line_2.entry.js +8 -7
- package/dist/esm/vertex-viewer-measurement-precise.entry.js +12 -11
- package/dist/esm/vertex-viewer-pin-group.entry.js +13 -8
- package/dist/esm/vertex-viewer-pin-label_2.entry.js +18 -16
- package/dist/esm/vertex-viewer-pin-tool.entry.js +23 -12
- package/dist/esm/vertex-viewer-spinner.entry.js +1 -1
- package/dist/esm/vertex-viewer-transform-widget.entry.js +9 -7
- package/dist/esm/vertex-viewer-view-cube.entry.js +7 -6
- package/dist/esm/vertex-viewer.entry.js +65 -38
- package/dist/esm/viewer.js +2 -2
- package/dist/esm/{viewport-e39e2eba.js → viewport-f19fc583.js} +2 -2
- package/dist/types/components/scene-tree/lib/controller.d.ts +18 -3
- package/dist/types/components/scene-tree/lib/errors.d.ts +17 -2
- package/dist/types/components/viewer/viewer.d.ts +2 -0
- package/dist/types/components/viewer-box-query-tool/viewer-box-query-tool.d.ts +36 -2
- package/dist/types/components/viewer-pin-tool/utils.d.ts +1 -1
- package/dist/types/components.d.ts +11 -3
- package/dist/types/lib/cursors.d.ts +5 -0
- package/dist/types/lib/interactions/baseInteractionHandler.d.ts +1 -0
- package/dist/types/lib/interactions/mouseInteractions.d.ts +2 -1
- package/dist/types/lib/pins/interactions.d.ts +4 -2
- package/dist/types/lib/pins/model.d.ts +1 -1
- package/dist/types/lib/scenes/camera.d.ts +1 -1
- package/dist/types/lib/scenes/mapper.d.ts +5 -1
- package/dist/types/lib/scenes/queries.d.ts +45 -30
- package/dist/types/lib/scenes/scene.d.ts +10 -1
- package/dist/types/lib/types/frame.d.ts +1 -1
- package/dist/types/lib/types/index.d.ts +2 -1
- package/dist/types/lib/types/loadableResource.d.ts +8 -2
- package/dist/types/lib/types/sceneViewStateIdentifier.d.ts +15 -0
- package/dist/types/lib/volume-intersection/controller.d.ts +33 -5
- package/dist/types/lib/volume-intersection/interactions.d.ts +12 -1
- package/dist/types/lib/volume-intersection/model.d.ts +7 -0
- package/dist/viewer/index.esm.js +2 -2
- package/dist/viewer/{p-ad09c92e.entry.js → p-029fba92.entry.js} +1 -1
- package/dist/viewer/p-07aeee89.js +1 -1
- package/dist/viewer/{p-29986489.js → p-0a017be7.js} +2 -2
- package/dist/viewer/p-0c583cad.entry.js +4 -0
- package/dist/viewer/p-0d494d01.js +4 -0
- package/dist/viewer/p-0fdad1a5.js +1 -1
- package/dist/viewer/{p-3ca4a7c1.js → p-1812c82d.js} +2 -2
- package/dist/viewer/{p-7663a603.entry.js → p-191156ad.entry.js} +1 -1
- package/dist/viewer/{p-a57dc6e4.entry.js → p-1998284a.entry.js} +2 -2
- package/dist/viewer/p-27f715f8.entry.js +4 -0
- package/dist/viewer/{p-7f6251da.js → p-283aeac4.js} +2 -2
- package/dist/viewer/p-298b63c2.entry.js +4 -0
- package/dist/viewer/p-2ace066b.entry.js +4 -0
- package/dist/viewer/{p-597cc9b5.js → p-2b60a8b0.js} +2 -2
- package/dist/viewer/{p-050f912b.entry.js → p-2fd123c8.entry.js} +1 -1
- package/dist/viewer/p-305a8be6.entry.js +4 -0
- package/dist/viewer/p-31724d24.js +4 -0
- package/dist/viewer/p-32cc2209.js +4 -0
- package/dist/viewer/p-3829dd99.entry.js +4 -0
- package/dist/viewer/{p-6da8a28f.entry.js → p-3aae4bf1.entry.js} +2 -2
- package/dist/viewer/{p-99352cf0.js → p-42760392.js} +2 -2
- package/dist/viewer/p-440c8174.js +4 -0
- package/dist/viewer/{p-e422deaf.entry.js → p-4f25e367.entry.js} +2 -2
- package/dist/viewer/{p-a107b65e.entry.js → p-507b5aeb.entry.js} +2 -2
- package/dist/viewer/{p-52ab9ec0.js → p-51401063.js} +2 -2
- package/dist/viewer/{p-426970b3.entry.js → p-533b1c63.entry.js} +1 -1
- package/dist/viewer/{p-dcb9804c.entry.js → p-569ed94a.entry.js} +2 -2
- package/dist/viewer/p-5809b400.js +1 -1
- package/dist/viewer/p-6072cf84.js +4 -0
- package/dist/viewer/{p-e4a26a32.entry.js → p-6406a70a.entry.js} +1 -1
- package/dist/viewer/p-6bf0594b.entry.js +4 -0
- package/dist/viewer/p-72c59115.entry.js +4 -0
- package/dist/viewer/{p-d71652b0.entry.js → p-8ac7290a.entry.js} +1 -1
- package/dist/viewer/{p-f184bcab.entry.js → p-8afcbd99.entry.js} +1 -1
- package/dist/viewer/p-92fe4417.js +1 -1
- package/dist/viewer/{p-5746931d.entry.js → p-952a217d.entry.js} +1 -1
- package/dist/viewer/p-98e6a50e.js +1 -1
- package/dist/viewer/{p-99fd27e0.entry.js → p-9cb99ea8.entry.js} +1 -1
- package/dist/viewer/p-a2e9e8a5.js +4 -0
- package/dist/viewer/p-a380f0c2.js +1 -1
- package/dist/viewer/{p-661b5234.js → p-acfc5c50.js} +2 -2
- package/dist/viewer/{p-82bd25e8.entry.js → p-b3540dce.entry.js} +1 -1
- package/dist/viewer/p-b5ca30cd.js +4 -0
- package/dist/viewer/p-b74242dc.js +1 -1
- package/dist/viewer/p-bc1160cf.entry.js +4 -0
- package/dist/viewer/{p-c5e67a1e.entry.js → p-bd5a302c.entry.js} +2 -2
- package/dist/viewer/p-c738296e.js +1 -1
- package/dist/viewer/p-c8c4343b.js +1 -1
- package/dist/viewer/p-cd9ccb9e.entry.js +4 -0
- package/dist/viewer/{p-9e1384c9.js → p-cf689bbd.js} +2 -2
- package/dist/viewer/{p-70e5e8a8.js → p-d216a866.js} +2 -2
- package/dist/viewer/p-d4ed7b8d.js +4 -0
- package/dist/viewer/p-d6d5d5de.entry.js +4 -0
- package/dist/viewer/p-d6fce4c1.js +1 -1
- package/dist/viewer/p-df8fbe56.js +1 -1
- package/dist/viewer/p-dfe5a97d.js +1 -1
- package/dist/viewer/{p-00ce31a0.js → p-e1896ce4.js} +2 -2
- package/dist/viewer/p-e23af70c.js +4 -0
- package/dist/viewer/p-e4aa9cdb.js +1 -1
- package/dist/viewer/p-e929dd63.entry.js +4 -0
- package/dist/viewer/{p-65af7a89.js → p-fc7d8c03.js} +3 -3
- package/dist/viewer/viewer.esm.js +2 -2
- package/package.json +9 -9
- package/readme.md +4 -4
- package/dist/viewer/p-096e60bd.js +0 -4
- package/dist/viewer/p-0cf4f05d.entry.js +0 -4
- package/dist/viewer/p-0fcafbf9.js +0 -4
- package/dist/viewer/p-10145045.js +0 -4
- package/dist/viewer/p-1abfe4bf.js +0 -4
- package/dist/viewer/p-1bba9ade.entry.js +0 -4
- package/dist/viewer/p-24cda14a.entry.js +0 -4
- package/dist/viewer/p-27dbc865.js +0 -4
- package/dist/viewer/p-2b58afc3.entry.js +0 -4
- package/dist/viewer/p-51966cef.entry.js +0 -4
- package/dist/viewer/p-608925c5.entry.js +0 -4
- package/dist/viewer/p-68e192b9.js +0 -4
- package/dist/viewer/p-69a3fce8.entry.js +0 -4
- package/dist/viewer/p-74c772bb.entry.js +0 -4
- package/dist/viewer/p-990f98c2.js +0 -4
- package/dist/viewer/p-9dfe0b43.entry.js +0 -4
- package/dist/viewer/p-bb425931.entry.js +0 -4
- package/dist/viewer/p-bfacbaa8.entry.js +0 -4
- package/dist/viewer/p-c72da0fb.entry.js +0 -4
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**!
|
|
2
|
-
* Copyright (c) 2022 Vertex Software LLC. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import{r as i,c as t,h as n,H as e,g as o}from"./p-d6fce4c1.js";import{p as a}from"./p-70e5e8a8.js";import{c as s}from"./p-07aeee89.js";import{g as r}from"./p-99352cf0.js";import{t as l,c as h,a as d,P as v,g as p,b}from"./p-27dbc865.js";import{r as c}from"./p-b74242dc.js";import"./p-dfe5a97d.js";import"./p-65af7a89.js";const u=class{constructor(n){i(this,n),this.labelChanged=t(this,"labelChanged",7),this.labelFocused=t(this,"labelFocused",7),this.labelBlurred=t(this,"labelBlurred",7),this.focused=!1,this.textareaRows=1,this.computeContentSize=()=>{c((()=>{if(null!=this.contentEl){this.contentElBounds=this.contentEl.getBoundingClientRect();const i=window.getComputedStyle(this.contentEl);this.textareaRows=Math.max(1,Math.ceil((parseFloat(i.height)-2*parseFloat(i.borderWidth))/parseFloat(i.lineHeight)))}}))},this.handleInputKeyDown=i=>{"Enter"===i.key&&(i.ctrlKey||i.metaKey)?(i.preventDefault(),this.submit()):"Enter"===i.key&&(this.textareaRows+=1)},this.handlePointerDown=i=>{var t;this.focused||null!=this.elementBounds&&(this.relativePointerDownPosition=l(r(i,this.elementBounds),this.elementBounds),this.pinPointerDownPosition=null===(t=this.pin)||void 0===t?void 0:t.label.point,window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp))},this.handlePointerMove=i=>{var t;if(null!=this.elementBounds&&this.relativePointerDownPosition&&null!=this.pinPointerDownPosition){const n=r(i,this.elementBounds),e=l(n,this.elementBounds),o=a.subtract(e,this.relativePointerDownPosition),s=null!=this.pin?Object.assign(Object.assign({},this.pin),{label:Object.assign(Object.assign({},this.pin.label),{point:a.add(this.pinPointerDownPosition,o)})}):void 0;s&&(null===(t=this.pinController)||void 0===t||t.updatePin(s),this.computeScreenPosition())}},this.handlePointerUp=i=>{var t,n;if("edit"===(null===(t=this.pinController)||void 0===t?void 0:t.getToolMode())&&null!=this.relativePointerDownPosition&&null!=this.elementBounds){const t=h(this.relativePointerDownPosition,this.elementBounds);a.distance(t,r(i,this.elementBounds))<=2&&(this.focused=!0,this.labelFocused.emit(null===(n=this.pin)||void 0===n?void 0:n.id))}this.relativePointerDownPosition=void 0,this.pinPointerDownPosition=void 0,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp)},this.handleTextBlur=()=>{this.submit()},this.handleTextInput=i=>{this.value=i.target.value},this.value=this.getPinText()}async setFocus(){var i,t,n;"function"==typeof(null===(i=this.inputEl)||void 0===i?void 0:i.focus)&&(this.focused?null===(t=this.inputEl)||void 0===t||t.focus():null===(n=this.inputEl)||void 0===n||n.blur())}watchFocusChange(){var i,t;this.labelChanged.emit(),this.focused&&(null===(i=this.pinController)||void 0===i||i.setSelectedPinId(null===(t=this.pin)||void 0===t?void 0:t.id))}watchPinChange(){this.value=this.getPinText(),this.computeScreenPosition()}watchElementBoundsChange(){this.computeScreenPosition()}componentWillLoad(){this.computeScreenPosition()}componentDidLoad(){this.resizeObserver=new ResizeObserver((()=>{this.labelChanged.emit()})),this.contentResizeObserver=new ResizeObserver(this.computeContentSize),null!=this.hostEl&&this.resizeObserver.observe(this.hostEl),null!=this.contentEl&&this.contentResizeObserver.observe(this.contentEl),null==this.pinController&&(this.pinController=new d(new v))}disconnectedCallback(){var i,t;null===(i=this.resizeObserver)||void 0===i||i.disconnect(),null===(t=this.contentResizeObserver)||void 0===t||t.disconnect()}componentDidRender(){this.focused&&null!=this.inputEl&&this.setFocus()}render(){var i,t,o;const{primaryColor:a,accentColor:r}=p(this.pin);return n(e,null,n("div",{class:s("pin-label-input-wrapper",{focused:this.focused}),onPointerDown:this.handlePointerDown,style:{top:`${(null===(i=this.computedScreenPosition)||void 0===i?void 0:i.y.toString())||0}px`,left:`${(null===(t=this.computedScreenPosition)||void 0===t?void 0:t.x.toString())||0}px`,minWidth:this.computeMinWidth(),maxWidth:this.computeMaxWidth(),maxHeight:this.computeMaxHeight(),borderColor:a,background:r}},n("textarea",{id:`pin-label-input-${null===(o=this.pin)||void 0===o?void 0:o.id}`,class:s("pin-label-input","pin-label-text",{readonly:!this.focused}),disabled:!this.focused,ref:i=>this.inputEl=i,value:this.value,rows:this.textareaRows,onKeyDown:this.handleInputKeyDown,onInput:this.handleTextInput,onBlur:this.handleTextBlur}),!this.focused&&n("div",{class:"pin-input-drag-target",onPointerDown:this.handlePointerDown})),n("div",{ref:i=>this.contentEl=i,class:s("pin-label-text","pin-label-hidden"),style:{maxWidth:this.computeMaxWidth(),maxHeight:this.computeMaxHeight()}},this.hiddenContent()))}hiddenContent(){return this.value.includes("\n")?this.value.split("\n").reduce(((i,t)=>[...i,t,n("br",null)]),[]):[this.value]}computeMinWidth(){return null!=this.contentElBounds?`min(${this.contentElBounds.width+16}px, ${this.computeMaxWidth()})`:"var(--viewer-annotations-pin-label-min-width)"}computeMaxWidth(){return`min(var(--viewer-annotations-pin-label-max-width), ${this.computeRemainingWidth()})`}computeMaxHeight(){return`min(var(--viewer-annotations-pin-label-max-height), ${this.computeRemainingHeight()})`}computeRemainingWidth(){var i,t;return`calc(${(null===(i=this.elementBounds)||void 0===i?void 0:i.width.toString())||0}px - ${(null===(t=this.computedScreenPosition)||void 0===t?void 0:t.x.toString())||0}px)`}computeRemainingHeight(){var i,t;return`calc(${(null===(i=this.elementBounds)||void 0===i?void 0:i.height.toString())||0}px - ${(null===(t=this.computedScreenPosition)||void 0===t?void 0:t.y.toString())||0}px)`}getPinText(){var i;return this.value=null!=(null===(i=this.pin)||void 0===i?void 0:i.label.text)?this.pin.label.text:"",this.value}computeScreenPosition(){this.computedScreenPosition=b(this.pin)&&null!=this.elementBounds&&null!=this.pin.label.point?h(this.pin.label.point,this.elementBounds):void 0}submit(){var i,t;this.focused=!1,this.labelBlurred.emit(null===(i=this.pin)||void 0===i?void 0:i.id),null!=this.pin&&(null===(t=this.pinController)||void 0===t||t.updatePin(Object.assign(Object.assign({},this.pin),{label:{point:this.pin.label.point,text:this.value}})))}get hostEl(){return o(this)}static get watchers(){return{focused:["watchFocusChange"],pin:["watchPinChange"],elementBounds:["watchElementBoundsChange"]}}};u.style=":host{--viewer-annotations-pin-label-background-color:var(--viewer-annotations-pin-accent-color);--viewer-annotations-pin-label-border-color:var(--viewer-annotations-pin-primary-color);--viewer-annotations-pin-label-focused-border-color:var(--viewer-annotations-pin-primary-color);--viewer-annotations-pin-label-color:var(--white);--viewer-annotations-pin-label-padding-y:0.375em;--viewer-annotations-pin-label-padding-x:0.5em;--viewer-annotations-pin-label-border-width:2px;--viewer-annotations-pin-label-border-style:solid;--viewer-annotations-pin-label-border-radius:0.25em;--viewer-annotations-pin-label-min-width:2rem;--viewer-annotations-pin-label-max-width:25rem;--viewer-annotations-pin-label-max-height:50rem;overflow:hidden;pointer-events:none}:host([mode='']) .pin-label{color:var(--viewer-annotations-pin-label-color);background:var(--viewer-annotations-pin-label-background-color)}.pin-label-text{font-family:Arial, Helvetica, sans-serif;font-size:0.875rem;line-height:1rem;word-break:break-word;white-space:pre-wrap}.pin-label-input-wrapper{display:flex;position:absolute;pointer-events:auto;box-sizing:border-box;min-width:var(--viewer-annotations-pin-label-min-width);max-width:var(--viewer-annotations-pin-label-max-width);max-height:var(--viewer-annotations-pin-label-max-height);background:var(--viewer-annotations-pin-label-background-color);border-width:var(--viewer-annotations-pin-label-border-width);border-style:var(--viewer-annotations-pin-label-border-style);border-color:var(--viewer-annotations-pin-label-border-color);border-radius:var(--viewer-annotations-pin-label-border-radius)}.pin-label-input-wrapper.focused{min-width:var(--viewer-annotations-pin-label-max-width);border-color:var(--viewer-annotations-pin-label-focused-border-color)}.pin-input-drag-target{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer}.pin-label-input{resize:none;position:relative;outline:none;border:none;word-break:break-word;padding:0 0 0 0;background-color:transparent;margin:var(--viewer-annotations-pin-label-padding-y) var(--viewer-annotations-pin-label-padding-x);width:var(--viewer-annotations-pin-label-min-width);flex-grow:1;overflow:hidden;max-width:calc(var(--viewer-annotations-pin-label-max-width) - calc(2 * var(--viewer-annotations-pin-label-padding-x)))}.pin-label-input.readonly{pointer-events:auto;color:black;cursor:pointer}.pin-label-hidden{position:absolute;visibility:hidden;pointer-events:none;width:auto;height:auto;box-sizing:border-box;border-width:var(--viewer-annotations-pin-label-border-width);border-style:var(--viewer-annotations-pin-label-border-style);border-color:var(--viewer-annotations-pin-label-border-color);margin:var(--viewer-annotations-pin-label-padding-y) 0;padding:0 var(--viewer-annotations-pin-label-padding-x);max-width:calc(var(--viewer-annotations-pin-label-max-width) - calc(2 * var(--viewer-annotations-pin-label-padding-x)))}";const w=class{constructor(t){i(this,t)}render(){var i,t,o,a;const{primaryColor:s}=p(this.pin);return n(e,null,n("svg",{class:"svg"},n("line",{class:"label-line",style:{stroke:s},x1:null===(i=this.labelPoint)||void 0===i?void 0:i.x,y1:null===(t=this.labelPoint)||void 0===t?void 0:t.y,x2:null===(o=this.pinPoint)||void 0===o?void 0:o.x,y2:null===(a=this.pinPoint)||void 0===a?void 0:a.y})))}};w.style=":host{--viewer-annotations-pin-label-line-color:var(--viewer-annotations-pin-primary-color);--viewer-annotations-pin-label-line-width:1\n\n overflow: hidden;pointer-events:none}.label-line{pointer-events:auto;stroke:var(--viewer-annotations-pin-label-line-color);stroke-width:var( --viewer-annotations-pin-label-line-width);cursor:default}.svg{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden;pointer-events:none;height:100%;width:100%}";export{u as vertex_viewer_pin_label,w as vertex_viewer_pin_label_line}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**!
|
|
2
|
-
* Copyright (c) 2022 Vertex Software LLC. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import{p as s,i as r}from"./p-70e5e8a8.js";import{b as o}from"./p-65af7a89.js";class i{constructor(r){var i,l,a;this.start=null!==(i=r.start)&&void 0!==i?i:s.create(),this.end=null!==(l=r.end)&&void 0!==l?l:s.create(),this.id=null!==(a=r.id)&&void 0!==a?a:`arrow-markup--${o.create()}`}}class l{constructor(s){var i,l;this.bounds=null!==(i=s.bounds)&&void 0!==i?i:r.create(0,0,0,0),this.id=null!==(l=s.id)&&void 0!==l?l:`circle-markup--${o.create()}`}}class a{constructor(s){var i,l,a;this.bounds=null!==(i=s.bounds)&&void 0!==i?i:r.create(0,0,0,0),this.points=null!==(l=s.points)&&void 0!==l?l:[],this.id=null!==(a=s.id)&&void 0!==a?a:`freeform-markup--${o.create()}`}}export{i as A,l as C,a as F}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**!
|
|
2
|
-
* Copyright (c) 2022 Vertex Software LLC. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import{c as t,u as e,a as s,b as i}from"./p-65af7a89.js";import{v as r,b as n,a,m as o,q as h,r as u,p as c,d as l}from"./p-70e5e8a8.js";import{v as d,t as p,g as w,e as v,h as m,d as y,w as f,i as b}from"./p-68e192b9.js";import"./p-df8fbe56.js";const g={opacity:255,glossiness:4,diffuse:{r:0,g:0,b:0,a:0},ambient:{r:0,g:0,b:0,a:0},specular:{r:0,g:0,b:0,a:0},emissive:{r:0,g:0,b:0,a:0}},x=(e,s)=>{const i=t.fromHexString(e);return Object.assign(Object.assign({},g),{opacity:null!=s?s:g.opacity,diffuse:Object.assign({},null!=i?i:g.diffuse)})},O={opacity:g.opacity,glossiness:g.glossiness,diffuse:{r:255,g:255,b:0,a:0},ambient:{r:0,g:0,b:0,a:0},specular:{r:255,g:255,b:255,a:0},emissive:{r:0,g:0,b:0,a:0}},j=Object.freeze({__proto__:null,defaultColor:g,create:(t,e,s,i)=>Object.assign(Object.assign({},g),{opacity:null!=i?i:g.opacity,diffuse:{r:t,g:e,b:s,a:0}}),fromHex:x,defaultSelectionMaterial:O});class I extends Error{constructor(t,e){super(),this.message=t,this.stack=null==e?void 0:e.stack,this.name=this.constructor.name,Object.setPrototypeOf(this,I.prototype)}}class T extends I{constructor(t,e){super(t,e),Object.setPrototypeOf(this,T.prototype)}}class k extends I{constructor(t,e){super(t,e),Object.setPrototypeOf(this,k.prototype)}}class A extends I{constructor(t,e){super(t,e),Object.setPrototypeOf(this,A.prototype)}}class S extends I{constructor(t,e){super(t,e),Object.setPrototypeOf(this,S.prototype)}}class V extends I{constructor(t,e){super(t,e),Object.setPrototypeOf(this,V.prototype)}}class B extends I{constructor(t,e){super(t,e),Object.setPrototypeOf(this,B.prototype)}}class C extends I{constructor(t,e){super(t,e),Object.setPrototypeOf(this,C.prototype)}}class M extends I{constructor(t,e){super(t,e),Object.setPrototypeOf(this,M.prototype)}}class R extends I{constructor(t,e){super(t,e),Object.setPrototypeOf(this,R.prototype)}}class D extends I{constructor(t,e){super(t,e),Object.setPrototypeOf(this,D.prototype)}}function U(t){const s=e.parse(t);if("urn"!==s.scheme||null==s.path)throw new Error("Invalid URN. Expected URN scheme.");const[i,r,n]=s.path.split(":");if("vertexvis"!==i)throw new Error("Invalid URN. Expected URN to be vertexvis namespace");switch(r){case"stream-key":return{resource:{type:"stream-key",id:n},queries:(a=s.query,null!=a?a.split("&").map((t=>{const[e,s]=t.split("=");switch(e){case"scene-view-state":return{type:"scene-view-state",id:s};default:throw new Error("Invalid URN. Unknown query resource type")}})):[])};default:throw new T(`Invalid URN. Unknown resource type ${r}`)}var a}const E=Object.freeze({__proto__:null,fromUrn:U});class N{constructor(t,e=new Date){this.knownRemoteTime=t,this.knownLocalTime=e}localOffset(){return this.duration(this.knownLocalTime,this.localNow())}localTime(t){const e="number"==typeof t?new Date(this.knownLocalTime.getTime()+t):t,s=this.duration(this.knownRemoteTime,e);return this.addDuration(this.knownLocalTime,s)}remoteOffset(t=new Date){return this.duration(this.remoteTime(this.knownLocalTime),this.remoteTime(t))}remoteNow(){return this.remoteTime(this.localNow())}remoteTime(t){const e="number"==typeof t?new Date(this.knownLocalTime.getTime()+t):t,s=this.duration(this.knownLocalTime,e);return this.addDuration(this.knownRemoteTime,s)}addDuration(t,e){return new Date(t.getTime()+e)}duration(t,e){return e.getTime()-t.getTime()}localNow(){return new Date(Date.now())}}class _{constructor(t,e,s,i=1e4){this.stream=t,this.predicate=e,this.transform=s,this.timeout=i,this.listeners=[],this.handleMessage=this.handleMessage.bind(this)}on(t){this.listeners=[...this.listeners,t],null!=this.eventDisposable&&null!=this.requestDisposable||this.addListeners()}off(t){this.listeners=this.listeners.filter((e=>e!==t)),0===this.listeners.length&&this.removeListeners()}once(){let t;return s.timeout(this.timeout,new Promise((e=>{t=s=>{e(s),this.off(t)},this.on(t)}))).finally((()=>{this.off(t)}))}handleMessage(t){if(this.predicate(t)){const e=this.transform(t);null!=e&&this.listeners.forEach((t=>t(e)))}}addListeners(){this.eventDisposable=this.stream.onEvent(this.handleMessage),this.requestDisposable=this.stream.onRequest(this.handleMessage)}removeListeners(){var t,e;null===(t=this.eventDisposable)||void 0===t||t.dispose(),null===(e=this.requestDisposable)||void 0===e||e.dispose()}}class F{constructor(t,e,{animationId:s,correlationId:i},r){this.data=void 0,this.onAnimationCompleted=new _(t,(t=>{var e,i,r;return(null===(r=null===(i=null===(e=t.event)||void 0===e?void 0:e.animationCompleted)||void 0===i?void 0:i.animationId)||void 0===r?void 0:r.hex)===s}),(t=>{var e,s,i;return(null===(i=null===(s=null===(e=t.event)||void 0===e?void 0:e.animationCompleted)||void 0===s?void 0:s.animationId)||void 0===i?void 0:i.hex)||void 0}),r),this.onFrameReceived=new _(t,(t=>{var e,s,r;return!!(null===(r=null===(s=null===(e=t.request)||void 0===e?void 0:e.drawFrame)||void 0===s?void 0:s.frameCorrelationIds)||void 0===r?void 0:r.some((t=>t===i)))}),(t=>{var s;return null!=(null===(s=t.request)||void 0===s?void 0:s.drawFrame)?e(t.request.drawFrame):void 0}),r)}}function z(t){switch(t.type){case"item-id":return{id:new d.protobuf.core.Uuid({hex:t.value})};case"supplied-id":return{suppliedId:t.value};default:return{}}}class q{constructor(t){this.flyToOptions=t}build(){return this.flyToOptions}}class P{withItemId(t){return new q({flyTo:{type:"internal",data:t}})}withSuppliedId(t){return new q({flyTo:{type:"supplied",data:t}})}withCamera(t){return new q({flyTo:{type:"camera",data:t}})}withBoundingBox(t){return new q({flyTo:{type:"bounding-box",data:t}})}build(){return this.flyToOptions}}class H{constructor(t,e,s,i,r,n){this.stream=t,this.aspect=e,this.data=s,this.boundingBox=i,this.decodeFrame=r,this.flyToOptions=n}fitCameraToBoundingBox(t,e,s){const i=r.scale(e,r.normalize(s)),a=n.center(t),o=r.subtract(a,i);return this.update({lookAt:a,position:o,viewVector:i})}signedDistanceToBoundingBoxCenter(t){const{position:e,viewVector:s}=f(this.data),i=n.center(null!=t?t:this.boundingBox),a=r.subtract(i,e);return r.dot(s,a)/r.magnitude(s)}flyTo(t){return this.updateFlyToOptions("function"!=typeof t?{flyTo:this.buildFlyToType(t)}:t(new P).build())}viewAll(){return this.fitToBoundingBox(this.boundingBox)}async render(t){var e,s,r;null==this.flyToOptions&&null!=t&&(this.flyToOptions={flyTo:{type:"camera",data:this.data}});try{const n=i.create();if(null!=this.flyToOptions){const i=function(t,e,s){const i={frameCorrelationId:{value:t},animation:s?{duration:p(s.milliseconds)}:void 0};switch(e.flyTo.type){case"supplied":return Object.assign(Object.assign({},i),{itemSuppliedId:e.flyTo.data});case"internal":return Object.assign(Object.assign({},i),{itemId:new d.protobuf.core.Uuid({hex:e.flyTo.data})});case"camera":return Object.assign(Object.assign({},i),{camera:w(e.flyTo.data)});case"bounding-box":return Object.assign(Object.assign({},i),{boundingBox:{xmin:e.flyTo.data.min.x,xmax:e.flyTo.data.max.x,ymin:e.flyTo.data.min.y,ymax:e.flyTo.data.max.y,zmin:e.flyTo.data.min.z,zmax:e.flyTo.data.max.z}});default:return{}}}(n,this.flyToOptions,null==t?void 0:t.animation),a=await this.stream.flyTo(i,!0);return new F(this.stream,this.decodeFrame,{correlationId:n,animationId:(null===(s=null===(e=a.flyTo)||void 0===e?void 0:e.animationId)||void 0===s?void 0:s.hex)||void 0},null!=(null===(r=null==t?void 0:t.animation)||void 0===r?void 0:r.milliseconds)?t.animation.milliseconds+1e4:void 0)}return this.stream.replaceCamera({camera:w(this.data),frameCorrelationId:{value:n}}),new F(this.stream,this.decodeFrame,{correlationId:n})}catch(t){throw console.warn("Error when performing render: ",t),t}}rotateAroundAxis(t,e){return this.rotateAroundAxisAtPoint(t,this.data.lookAt,e)}alignTo(t,e){const s=r.normalize(r.cross(this.up,r.normalize(this.viewVector))),i=r.normalize(r.cross(r.normalize(this.viewVector),s)),n=r.angleTo(e,i)>Math.PI/2?r.negate(i):i,a=r.isEqual(n,e)?s:r.normalize(r.cross(n,e)),c=r.transformMatrix(this.viewVector,o.makeRotation(h.fromAxisAngle(a,r.angleTo(e,n)))),l=u.create({origin:t,direction:r.normalize(c)}),d=u.at(l,r.magnitude(this.viewVector));return this.update({position:t,lookAt:d,up:e})}standardView(t){return this.update({position:t.position,viewVector:r.subtract(r.origin(),t.position),lookAt:r.origin(),up:t.up})}buildFlyToType(t){if(null!=t.boundingBox)return{type:"bounding-box",data:t.boundingBox};if(null!=t.camera)return{type:"camera",data:t.camera};if(null!=t.itemId)return{type:"internal",data:t.itemId};if(null!=t.itemSuppliedId)return{type:"supplied",data:t.itemSuppliedId};throw new Error("Fly to must specify at least one option.")}computeClippingPlanes(t){return b(this.boundingBox,t)}}class L extends H{constructor(t,e,s,i,r,n){super(t,e,s,i,r,n),this.perspectiveData=s}moveBy(t){return this.update({position:r.add(this.position,t),lookAt:r.add(this.lookAt,t)})}rotateAroundAxisAtPoint(t,e,s){return this.update({position:r.rotateAboutAxis(t,this.position,s,e),lookAt:r.rotateAboutAxis(t,this.lookAt,s,e),up:r.rotateAboutAxis(t,this.up,s,r.origin())})}fitToBoundingBox(t){var e;const s=1.1*r.magnitude(r.subtract(t.max,n.center(t)));let i=Math.tan(.008726646259972*(null!==(e=this.fovY)&&void 0!==e?e:45));this.aspect<1&&(i*=this.aspect);const a=Math.abs(s/i);return super.fitCameraToBoundingBox(t,a,this.viewVector)}update(t){return new L(this.stream,this.aspect,Object.assign(Object.assign({},this.perspectiveData),t),this.boundingBox,this.decodeFrame,this.flyToOptions)}toFrameCamera(){var t;return new v(this.position,this.lookAt,this.up,this.near,this.far,this.aspectRatio,null!==(t=this.fovY)&&void 0!==t?t:45)}get viewVector(){return r.subtract(this.lookAt,this.position)}get position(){return Object.assign({},this.perspectiveData.position)}get up(){return Object.assign({},this.perspectiveData.up)}get lookAt(){return Object.assign({},this.perspectiveData.lookAt)}get fovY(){return this.perspectiveData.fovY}get aspectRatio(){return this.aspect}get near(){const{near:t}=this.computeClippingPlanes(this.perspectiveData);return t}get far(){const{far:t}=this.computeClippingPlanes(this.perspectiveData);return t}updateFlyToOptions(t){return new L(this.stream,this.aspect,this.perspectiveData,this.boundingBox,this.decodeFrame,t)}}class Q extends H{constructor(t,e,s,i,r,n){super(t,e,s,i,r,n),this.orthographicData=s}moveBy(t){return this.update({lookAt:r.add(this.lookAt,t)})}rotateAroundAxisAtPoint(t,e,s){const i=r.rotateAboutAxis(t,this.lookAt,s,e),n=r.rotateAboutAxis(t,this.position,s,e),o=m(r.subtract(i,n),a.create(this.boundingBox));return this.update({viewVector:o,lookAt:i,up:r.rotateAboutAxis(t,this.up,s,r.origin())})}fitToBoundingBox(t){const e=a.create(t),s=super.fitCameraToBoundingBox(t,e.radius,this.viewVector);return this.update({lookAt:s.lookAt,viewVector:s.viewVector,fovHeight:2*e.radius})}update(t){return new Q(this.stream,this.aspect,Object.assign(Object.assign({},this.orthographicData),t),this.boundingBox,this.decodeFrame,this.flyToOptions)}toFrameCamera(){return new y(m(this.viewVector,a.create(this.boundingBox)),this.lookAt,this.up,this.near,this.far,this.aspectRatio,this.fovHeight)}get viewVector(){return Object.assign({},this.orthographicData.viewVector)}get position(){return r.add(this.lookAt,r.negate(this.viewVector))}get up(){return Object.assign({},this.orthographicData.up)}get lookAt(){return Object.assign({},this.orthographicData.lookAt)}get fovHeight(){return this.orthographicData.fovHeight}get aspectRatio(){return this.aspect}get near(){const{near:t}=this.computeClippingPlanes(this.orthographicData);return t}get far(){const{far:t}=this.computeClippingPlanes(this.orthographicData);return t}updateFlyToOptions(t){return new Q(this.stream,this.aspect,this.orthographicData,this.boundingBox,this.decodeFrame,t)}}class Y{constructor(t,e){this.stream=t,this.imageScaleProvider=e}async hitItems(t,e){const s=this.imageScaleProvider();return(await this.stream.hitItems({point:c.scale(t,(null==s?void 0:s.x)||1,(null==s?void 0:s.y)||1),includeMetadata:null==e?void 0:e.includeMetadata},!0)).hitItems||void 0}}class W{constructor(t,e){this.stream=t,this.data=e}async update(t){return(await this.stream.updateCrossSectioning({crossSectioning:t},!0)).updateCrossSectioning||void 0}current(){return this.data}}class ${constructor(t=[]){this.operations=t}build(){return this.operations.concat()}materialOverride(t){return new $(this.operations.concat([{type:"change-material",material:t}]))}show(){return new $(this.operations.concat([{type:"show"}]))}hide(){return new $(this.operations.concat([{type:"hide"}]))}select(t){return new $(this.operations.concat([{type:"select",material:t}]))}deselect(){return new $(this.operations.concat([{type:"deselect"}]))}clearMaterialOverrides(){return new $(this.operations.concat([{type:"clear-override"}]))}transform(t){return new $(this.operations.concat([{type:"change-transform",transform:t}]))}clearTransforms(t=!0){return new $(this.operations.concat([{type:"clear-transform",cascade:t}]))}}class G{all(){return new J}withItemIds(t){return new st(t,"item-id")}withSuppliedIds(t){return new st(t,"supplied-id")}withItemId(t){return new it({type:"item-id",value:t})}withSuppliedId(t){return new it({type:"supplied-id",value:t})}withSceneTreeRange(t){return new K(t)}withMetadata(t,e,s){return new X(t,e,s)}withSelected(){return new Z}withPoint(t){return new tt(t)}withVolumeIntersection(t,e){return new et(t,e)}}class J{build(){return{type:"all"}}}class K{constructor(t){this.range=t}build(){return{type:"scene-tree-range",range:this.range}}}class X{constructor(t,e,s){this.filter=t,this.keys=e,this.exactMatch=s}build(){return{type:"metadata",filter:this.filter,keys:this.keys,exactMatch:this.exactMatch}}}class Z{build(){return{type:"all-selected"}}}class tt{constructor(t){this.point=t}build(){return{type:"point",point:this.point}}}class et{constructor(t,e){this.rectangle=t,this.exclusive=e}build(){return{type:"volume-intersection",rectangle:this.rectangle,exclusive:!!this.exclusive}}}class st{constructor(t,e){this.ids=t,this.type=e}build(){return{type:"or",expressions:this.ids.map((t=>({type:this.type,value:t})))}}}class it{constructor(t){this.query=t}build(){return Object.assign({},this.query)}and(){return new nt([this.query])}or(){return new rt([this.query])}}class rt{constructor(t){this.expressions=t}build(){return{type:"or",expressions:[...this.expressions]}}withItemId(t){return new rt([...this.expressions,{type:"item-id",value:t}])}withSuppliedId(t){return new rt([...this.expressions,{type:"supplied-id",value:t}])}or(){return this}}class nt{constructor(t){this.expressions=t}build(){return{type:"and",expressions:[...this.expressions]}}withItemId(t){return new nt([...this.expressions,{type:"item-id",value:t}])}withSuppliedId(t){return new nt([...this.expressions,{type:"supplied-id",value:t}])}and(){return this}}class at{constructor(t){this.defaultSelectionMaterial=t}where(t){const e=t(new G).build();return new ot(e,this.defaultSelectionMaterial)}}class ot{constructor(t,e,s){this.query=t,this.defaultSelectionMaterial=e,this.builder=null!=s?s:new $}materialOverride(t){return new ot(this.query,this.defaultSelectionMaterial,this.builder.materialOverride("string"==typeof t?x(t):t))}hide(){return new ot(this.query,this.defaultSelectionMaterial,this.builder.hide())}show(){return new ot(this.query,this.defaultSelectionMaterial,this.builder.show())}select(t){return new ot(this.query,this.defaultSelectionMaterial,this.builder.select("string"==typeof t?x(t):t||this.defaultSelectionMaterial))}deselect(){return new ot(this.query,this.defaultSelectionMaterial,this.builder.deselect())}clearMaterialOverrides(){return new ot(this.query,this.defaultSelectionMaterial,this.builder.clearMaterialOverrides())}transform(t){if(Array.isArray(t)){if(16!==t.length)throw new R("Matrix provided must contain exactly 16 values (4x4).");return new ot(this.query,this.defaultSelectionMaterial,this.builder.transform({r0:{x:t[0],y:t[1],z:t[2],w:t[3]},r1:{x:t[4],y:t[5],z:t[6],w:t[7]},r2:{x:t[8],y:t[9],z:t[10],w:t[11]},r3:{x:t[12],y:t[13],z:t[14],w:t[15]}}))}return new ot(this.query,this.defaultSelectionMaterial,this.builder.transform(t))}clearTransforms(t=!0){return new ot(this.query,this.defaultSelectionMaterial,this.builder.clearTransforms(t))}build(){return{query:this.query,operations:this.builder.build()}}}class ht{constructor(t,e,s,i){this.sceneViewId=t,this.stream=e,this.dimensions=s,this.queryOperations=i}async execute(t){const e=this.queryOperations.map((t=>function(t,e,s){const i=function(t){return t.map((t=>{switch(t.type){case"change-material":return{changeMaterial:{material:{d:t.material.opacity,ns:t.material.glossiness,ka:t.material.ambient,kd:t.material.diffuse,ks:t.material.specular,ke:t.material.emissive}}};case"clear-override":return{changeMaterial:{}};case"change-transform":return{changeTransform:{transform:Object.assign({},t.transform)}};case"clear-transform":return{clearTransform:{cascade:t.cascade}};case"hide":return{changeVisibility:{visible:!1}};case"show":return{changeVisibility:{visible:!0}};case"select":return{changeSelection:{material:{d:t.material.opacity,ns:t.material.glossiness,ka:t.material.ambient,kd:t.material.diffuse,ks:t.material.specular,ke:t.material.emissive}}};case"deselect":return{changeSelection:{}};default:return{}}}))}(e);switch(t.type){case"and":case"or":return{[t.type]:{queries:t.expressions.map((t=>({sceneItemQuery:z(t)})))},operationTypes:i};case"item-id":case"supplied-id":return{item:{sceneItemQuery:z(t)},operationTypes:i};case"all":return{all:{},operationTypes:i};case"scene-tree-range":return{sceneTreeRange:{start:t.range.start,end:t.range.end},operationTypes:i};case"metadata":return{metadata:{valueFilter:t.filter,keys:t.keys,exactMatch:t.exactMatch},operationTypes:i};case"all-selected":return{override:{selection:{}},operationTypes:i};case"point":return{point:{point:t.point,viewport:s.dimensions},operationTypes:i};case"volume-intersection":return{volume:{frustumByRectangle:{rectangle:t.rectangle},exclusive:t.exclusive,viewport:s.dimensions},operationTypes:i};default:return{}}}(t.query,t.operations,{dimensions:this.dimensions}))),s={sceneViewId:{hex:this.sceneViewId},operations:e,suppliedCorrelationId:null!=(null==t?void 0:t.suppliedCorrelationId)?{value:null==t?void 0:t.suppliedCorrelationId}:void 0};await this.stream.createSceneAlteration(s)}}class ut{constructor(t,e,s,i,r,n,a,o){this.stream=t,this.frame=e,this.decodeFrame=s,this.imageScaleProvider=i,this.dimensions=r,this.sceneId=n,this.sceneViewId=a,this.defaultSelectionMaterial=o}async applySceneViewState(t,e={}){return await this.stream.loadSceneViewState({sceneViewStateId:{hex:t},frameCorrelationId:e.suppliedCorrelationId?{value:e.suppliedCorrelationId}:void 0},!0)}async reset(t={}){return await this.stream.resetSceneView({includeCamera:t.includeCamera,frameCorrelationId:t.suppliedCorrelationId?{value:t.suppliedCorrelationId}:void 0},!0)}items(t){const e=t(new at(this.defaultSelectionMaterial)),s=(Array.isArray(e)?e:[e]).reduce(((t,e)=>t.concat(e.build())),[]);return new ht(this.sceneViewId,this.stream,this.dimensions,s)}camera(){const{scene:t}=this.frame;if(t.camera.isOrthographic())return new Q(this.stream,l.aspectRatio(this.viewport()),{viewVector:t.camera.viewVector,lookAt:t.camera.lookAt,up:t.camera.up,fovHeight:t.camera.fovHeight},this.frame.scene.boundingBox,this.decodeFrame);if(t.camera.isPerspective())return new L(this.stream,l.aspectRatio(this.viewport()),{position:t.camera.position,lookAt:t.camera.lookAt,up:t.camera.up,fovY:t.camera.fovY},this.frame.scene.boundingBox,this.decodeFrame);throw new D("Cannot retrieve camera. Scene has an unknown or invalid camera type.")}boundingBox(){return this.frame.scene.boundingBox}crossSectioning(){return new W(this.stream,this.frame.scene.crossSection)}raycaster(){return new Y(this.stream,this.imageScaleProvider)}viewport(){return this.frame.dimensions}scale(){return this.imageScaleProvider()||c.create(1,1)}}export{I as C,C as I,ut as S,k as V,V as W,N as a,S as b,j as c,O as d,B as e,U as f,A as g,M as h,x as i,E as l}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**!
|
|
2
|
-
* Copyright (c) 2022 Vertex Software LLC. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import{p as t,l as n}from"./p-70e5e8a8.js";function e(t,e){const{camera:r,viewport:a}=e,d=r.isPointBehindNear(t.start),i=r.isPointBehindNear(t.end);if(d||i){const e=r.intersectLineWithNear(t),s=n.create({start:d&&null!=e?e:t.start,end:i&&null!=e?e:t.end}),o=n.transformMatrix(s,r.projectionViewMatrix);return{start:a.transformVectorToViewport(o.start),end:a.transformVectorToViewport(o.end),hideStart:d,hideEnd:i}}{const e=n.transformMatrix(t,r.projectionViewMatrix);return{start:a.transformVectorToViewport(e.start),end:a.transformVectorToViewport(e.end),hideStart:!1,hideEnd:!1}}}function r(n,r,a){const{start:d,end:i,hideStart:s,hideEnd:o}=e(n,a);return{startPt:d,endPt:i,labelPt:t.lerp(d,i,.5),indicatorPt:"none"!==r?function(t,n,e){return e.viewport.transformWorldToViewport("start"===n?t.start:t.end,e.camera.projectionViewMatrix)}(n,r,a):void 0,hideStart:s,hideEnd:o}}export{r as g,e as t}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**!
|
|
2
|
-
* Copyright (c) 2022 Vertex Software LLC. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import{h as t,F as o,r,c as e,f as n,H as i,g as s}from"./p-d6fce4c1.js";import{o as u}from"./p-70e5e8a8.js";import{c as a}from"./p-dfe5a97d.js";import{a as c,w as p,g as l}from"./p-92fe4417.js";import{p as h}from"./p-597cc9b5.js";import{E as f}from"./p-65af7a89.js";import{i as v,f as d,g as w}from"./p-c8c4343b.js";import"./p-68e192b9.js";import"./p-df8fbe56.js";window.requestIdleCallback=window.requestIdleCallback||function(t){var o=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-o))}})}),1)},window.cancelIdleCallback=window.cancelIdleCallback||function(t){clearTimeout(t)};var b=a((function(t,o){var r=c,e=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.core.Cursor",null,e),r.exportSymbol("proto.vertexvis.protobuf.core.OffsetCursor",null,e),r.exportSymbol("proto.vertexvis.protobuf.core.OffsetPager",null,e),r.exportSymbol("proto.vertexvis.protobuf.core.Pager",null,e),proto.vertexvis.protobuf.core.Pager=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Pager,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Pager.displayName="proto.vertexvis.protobuf.core.Pager"),c.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(t,o){var r={limit:c.Message.getFieldWithDefault(o,1,0),cursor:c.Message.getFieldWithDefault(o,2,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Pager.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Pager;return proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter(this,t),t.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 c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.Pager.prototype.setLimit=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.Pager.prototype.getCursor=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.Pager.prototype.setCursor=function(t){c.Message.setProto3StringField(this,2,t)},proto.vertexvis.protobuf.core.OffsetPager=function(t){c.Message.initialize(this,t,0,-1,null,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_)},r.inherits(proto.vertexvis.protobuf.core.OffsetPager,c.Message),r.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 c.Message.computeOneofCase(this,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0])},c.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(t,o){var r={limit:c.Message.getFieldWithDefault(o,1,0),cursor:c.Message.getFieldWithDefault(o,2,""),offset:c.Message.getFieldWithDefault(o,3,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.OffsetPager.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.OffsetPager;return proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getLimit())&&o.writeUint32(1,r),null!=(r=c.Message.getField(t,2))&&o.writeString(2,r),null!=(r=c.Message.getField(t,3))&&o.writeUint32(3,r)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getLimit=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.setLimit=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getCursor=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.OffsetPager.prototype.setCursor=function(t){c.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.clearCursor=function(){c.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],void 0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.hasCursor=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getOffset=function(){return c.Message.getFieldWithDefault(this,3,0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.setOffset=function(t){c.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.clearOffset=function(){c.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],void 0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.hasOffset=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.core.Cursor=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Cursor,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Cursor.displayName="proto.vertexvis.protobuf.core.Cursor"),c.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(t,o){var r={next:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Cursor.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Cursor;return proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter(this,t),t.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 c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.core.Cursor.prototype.setNext=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.core.OffsetCursor=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.OffsetCursor,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.OffsetCursor.displayName="proto.vertexvis.protobuf.core.OffsetCursor"),c.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(t,o){var r={total:c.Message.getFieldWithDefault(o,1,0),next:c.Message.getFieldWithDefault(o,2,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.OffsetCursor;return proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter(this,t),t.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 c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.setTotal=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.getNext=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.OffsetCursor.prototype.setNext=function(t){c.Message.setProto3StringField(this,2,t)},r.object.extend(o,proto.vertexvis.protobuf.core)})),m=a((function(t,o){var r=c,e=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.core.Uuid",null,e),r.exportSymbol("proto.vertexvis.protobuf.core.Uuid2l",null,e),proto.vertexvis.protobuf.core.Uuid=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Uuid,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Uuid.displayName="proto.vertexvis.protobuf.core.Uuid"),c.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(t,o){var r={hex:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Uuid.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Uuid;return proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter(this,t),t.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 c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.core.Uuid.prototype.setHex=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.core.Uuid2l=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Uuid2l,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Uuid2l.displayName="proto.vertexvis.protobuf.core.Uuid2l"),c.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(t,o){var r={msb:c.Message.getFieldWithDefault(o,1,"0"),lsb:c.Message.getFieldWithDefault(o,2,"0")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Uuid2l.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Uuid2l;return proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter(this,t),t.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 c.Message.getFieldWithDefault(this,1,"0")},proto.vertexvis.protobuf.core.Uuid2l.prototype.setMsb=function(t){c.Message.setProto3StringIntField(this,1,t)},proto.vertexvis.protobuf.core.Uuid2l.prototype.getLsb=function(){return c.Message.getFieldWithDefault(this,2,"0")},proto.vertexvis.protobuf.core.Uuid2l.prototype.setLsb=function(t){c.Message.setProto3StringIntField(this,2,t)},r.object.extend(o,proto.vertexvis.protobuf.core)})),g=a((function(t,o){var r=c,e=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Node",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Range",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType",null,e),proto.vertexvis.protobuf.scenetree.v1alpha1.Node=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Node,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Node.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Node"),proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_=[10],c.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(t,o){var r,e={id:(r=o.getId())&&m.Uuid.toObject(t,r),depth:c.Message.getFieldWithDefault(o,2,0),name:c.Message.getFieldWithDefault(o,3,""),visible:c.Message.getFieldWithDefault(o,4,!1),selected:c.Message.getFieldWithDefault(o,5,!1),expanded:c.Message.getFieldWithDefault(o,6,!1),isLeaf:c.Message.getFieldWithDefault(o,7,!1),suppliedId:(r=o.getSuppliedId())&&p.StringValue.toObject(t,r),partiallyVisible:c.Message.getFieldWithDefault(o,9,!1),columnsList:c.Message.getRepeatedField(o,10),filterHit:c.Message.getFieldWithDefault(o,11,!1)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Node;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setId(r);break;case 2:r=o.readUint32(),t.setDepth(r);break;case 3:r=o.readString(),t.setName(r);break;case 4:r=o.readBool(),t.setVisible(r);break;case 5:r=o.readBool(),t.setSelected(r);break;case 6:r=o.readBool(),t.setExpanded(r);break;case 7:r=o.readBool(),t.setIsLeaf(r);break;case 8:r=new p.StringValue,o.readMessage(r,p.StringValue.deserializeBinaryFromReader),t.setSuppliedId(r);break;case 9:r=o.readBool(),t.setPartiallyVisible(r);break;case 10:r=o.readString(),t.addColumns(r);break;case 11:r=o.readBool(),t.setFilterHit(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getId())&&o.writeMessage(1,r,m.Uuid.serializeBinaryToWriter),0!==(r=t.getDepth())&&o.writeUint32(2,r),(r=t.getName()).length>0&&o.writeString(3,r),(r=t.getVisible())&&o.writeBool(4,r),(r=t.getSelected())&&o.writeBool(5,r),(r=t.getExpanded())&&o.writeBool(6,r),(r=t.getIsLeaf())&&o.writeBool(7,r),null!=(r=t.getSuppliedId())&&o.writeMessage(8,r,p.StringValue.serializeBinaryToWriter),(r=t.getPartiallyVisible())&&o.writeBool(9,r),(r=t.getColumnsList()).length>0&&o.writeRepeatedString(10,r),(r=t.getFilterHit())&&o.writeBool(11,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getId=function(){return c.Message.getWrapperField(this,m.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearId=function(){this.setId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getDepth=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setDepth=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getName=function(){return c.Message.getFieldWithDefault(this,3,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setName=function(t){c.Message.setProto3StringField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getVisible=function(){return c.Message.getFieldWithDefault(this,4,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setVisible=function(t){c.Message.setProto3BooleanField(this,4,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSelected=function(){return c.Message.getFieldWithDefault(this,5,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSelected=function(t){c.Message.setProto3BooleanField(this,5,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getExpanded=function(){return c.Message.getFieldWithDefault(this,6,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setExpanded=function(t){c.Message.setProto3BooleanField(this,6,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getIsLeaf=function(){return c.Message.getFieldWithDefault(this,7,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setIsLeaf=function(t){c.Message.setProto3BooleanField(this,7,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSuppliedId=function(){return c.Message.getWrapperField(this,p.StringValue,8)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSuppliedId=function(t){c.Message.setWrapperField(this,8,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearSuppliedId=function(){this.setSuppliedId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasSuppliedId=function(){return null!=c.Message.getField(this,8)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getPartiallyVisible=function(){return c.Message.getFieldWithDefault(this,9,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setPartiallyVisible=function(t){c.Message.setProto3BooleanField(this,9,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getColumnsList=function(){return c.Message.getRepeatedField(this,10)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setColumnsList=function(t){c.Message.setField(this,10,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.addColumns=function(t,o){c.Message.addToRepeatedField(this,10,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearColumnsList=function(){this.setColumnsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getFilterHit=function(){return c.Message.getFieldWithDefault(this,11,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setFilterHit=function(t){c.Message.setProto3BooleanField(this,11,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange"),c.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(t,o){var r={start:c.Message.getFieldWithDefault(o,1,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter(this,t),t.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 c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.setStart=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Range,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Range.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Range"),c.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(t,o){var r={start:c.Message.getFieldWithDefault(o,1,0),end:c.Message.getFieldWithDefault(o,2,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter(this,t),t.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 c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setStart=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getEnd=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setEnd=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,c.Message),r.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],c.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(t,o){var r={hiddenList:c.Message.toObjectList(o.getHiddenList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),shownList:c.Message.toObjectList(o.getShownList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),selectedList:c.Message.toObjectList(o.getSelectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),deselectedList:c.Message.toObjectList(o.getDeselectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),partiallyVisibleList:c.Message.toObjectList(o.getPartiallyVisibleList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter(this,t),t.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 c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setHiddenList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addHidden=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearHiddenList=function(){this.setHiddenList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getShownList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setShownList=function(t){c.Message.setRepeatedWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addShown=function(t,o){return c.Message.addToRepeatedWrapperField(this,2,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearShownList=function(){this.setShownList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getSelectedList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setSelectedList=function(t){c.Message.setRepeatedWrapperField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addSelected=function(t,o){return c.Message.addToRepeatedWrapperField(this,3,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearSelectedList=function(){this.setSelectedList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getDeselectedList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,4)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setDeselectedList=function(t){c.Message.setRepeatedWrapperField(this,4,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addDeselected=function(t,o){return c.Message.addToRepeatedWrapperField(this,4,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearDeselectedList=function(){this.setDeselectedList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getPartiallyVisibleList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,5)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setPartiallyVisibleList=function(t){c.Message.setRepeatedWrapperField(this,5,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addPartiallyVisible=function(t,o){return c.Message.addToRepeatedWrapperField(this,5,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearPartiallyVisibleList=function(){this.setPartiallyVisibleList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive"),c.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(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType=function(t){c.Message.initialize(this,t,0,-1,null,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType,c.Message),r.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 c.Message.computeOneofCase(this,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0])},c.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,e={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&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter(this,t),t.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 c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setListChange=function(t){c.Message.setOneofWrapperField(this,1,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearListChange=function(){this.setListChange(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasListChange=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getRanges=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setRanges=function(t){c.Message.setOneofWrapperField(this,2,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearRanges=function(){this.setRanges(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasRanges=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getKeepAlive=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setKeepAlive=function(t){c.Message.setOneofWrapperField(this,3,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearKeepAlive=function(){this.setKeepAlive(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasKeepAlive=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey"),c.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(t,o){var r={value:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter(this,t),t.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 c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.setValue=function(t){c.Message.setProto3StringField(this,1,t)},r.object.extend(o,proto.vertexvis.protobuf.scenetree.v1alpha1)})),y=a((function(t,o){var r=c,e=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse",null,e),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_=[3],c.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(t,o){var r,e={viewId:(r=o.getViewId())&&m.Uuid.toObject(t,r),pager:(r=o.getPager())&&b.OffsetPager.toObject(t,r),additionalColumnKeysList:c.Message.getRepeatedField(o,3)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new b.OffsetPager,o.readMessage(r,b.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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,m.Uuid.serializeBinaryToWriter),null!=(r=t.getPager())&&o.writeMessage(2,r,b.OffsetPager.serializeBinaryToWriter),(r=t.getAdditionalColumnKeysList()).length>0&&o.writeRepeatedString(3,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,m.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getPager=function(){return c.Message.getWrapperField(this,b.OffsetPager,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setPager=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearPager=function(){this.setPager(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasPager=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getAdditionalColumnKeysList=function(){return c.Message.getRepeatedField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setAdditionalColumnKeysList=function(t){c.Message.setField(this,3,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.addAdditionalColumnKeys=function(t,o){c.Message.addToRepeatedField(this,3,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearAdditionalColumnKeysList=function(){this.setAdditionalColumnKeysList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_=[1],c.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(t,o){var r,e={itemsList:c.Message.toObjectList(o.getItemsList(),g.Node.toObject,t),totalVisible:c.Message.getFieldWithDefault(o,2,0),cursor:(r=o.getCursor())&&b.OffsetCursor.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new g.Node;o.readMessage(r,g.Node.deserializeBinaryFromReader),t.addItems(r);break;case 2:r=o.readUint32(),t.setTotalVisible(r);break;case 3:r=new b.OffsetCursor,o.readMessage(r,b.OffsetCursor.deserializeBinaryFromReader),t.setCursor(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getItemsList()).length>0&&o.writeRepeatedMessage(1,r,g.Node.serializeBinaryToWriter),0!==(r=t.getTotalVisible())&&o.writeUint32(2,r),null!=(r=t.getCursor())&&o.writeMessage(3,r,b.OffsetCursor.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getItemsList=function(){return c.Message.getRepeatedWrapperField(this,g.Node,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setItemsList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.addItems=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearItemsList=function(){this.setItemsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getTotalVisible=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setTotalVisible=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getCursor=function(){return c.Message.getWrapperField(this,b.OffsetCursor,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setCursor=function(t){c.Message.setWrapperField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearCursor=function(){this.setCursor(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.hasCursor=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest"),c.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,e={viewId:(r=o.getViewId())&&m.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&m.Uuid.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new m.Uuid,o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,m.Uuid.serializeBinaryToWriter),null!=(r=t.getNodeId())&&o.writeMessage(2,r,m.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,m.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,m.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse"),c.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(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest"),c.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,e={viewId:(r=o.getViewId())&&m.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&m.Uuid.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new m.Uuid,o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,m.Uuid.serializeBinaryToWriter),null!=(r=t.getNodeId())&&o.writeMessage(2,r,m.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,m.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,m.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse"),c.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(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest"),c.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,e={viewId:(r=o.getViewId())&&m.Uuid.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getViewId())&&o.writeMessage(1,r,m.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,m.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse"),c.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,e={change:(r=o.getChange())&&g.TreeChangeType.toObject(t,r),handshake:(r=o.getHandshake())&&proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new g.TreeChangeType;o.readMessage(r,g.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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getChange())&&o.writeMessage(1,r,g.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 c.Message.getWrapperField(this,g.TreeChangeType,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setChange=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearChange=function(){this.setChange(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasChange=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getHandshake=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setHandshake=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearHandshake=function(){this.setHandshake(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasHandshake=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake"),c.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(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake;return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest"),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_=[3],c.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(t,o){var r={filter:c.Message.getFieldWithDefault(o,1,""),fullTree:c.Message.getFieldWithDefault(o,2,!1),columnsKeysList:c.Message.getRepeatedField(o,3),exactMatch:c.Message.getFieldWithDefault(o,4,!1)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter(this,t),t.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 c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFilter=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFullTree=function(){return c.Message.getFieldWithDefault(this,2,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFullTree=function(t){c.Message.setProto3BooleanField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getColumnsKeysList=function(){return c.Message.getRepeatedField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setColumnsKeysList=function(t){c.Message.setField(this,3,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.addColumnsKeys=function(t,o){c.Message.addToRepeatedField(this,3,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.clearColumnsKeysList=function(){this.setColumnsKeysList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getExactMatch=function(){return c.Message.getFieldWithDefault(this,4,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setExactMatch=function(t){c.Message.setProto3BooleanField(this,4,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse"),c.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(t,o){var r={numberOfResults:c.Message.getFieldWithDefault(o,1,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter(this,t),t.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 c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.setNumberOfResults=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest"),c.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,e={nodeId:(r=o.getNodeId())&&m.Uuid.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 2:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getNodeId())&&o.writeMessage(2,r,m.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,m.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse"),c.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(t,o){var r,e={locatedIndex:(r=o.getLocatedIndex())&&p.UInt64Value.toObject(t,r),requiresReload:c.Message.getFieldWithDefault(o,2,!1)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new p.UInt64Value;o.readMessage(r,p.UInt64Value.deserializeBinaryFromReader),t.setLocatedIndex(r);break;case 2:r=o.readBool(),t.setRequiresReload(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getLocatedIndex())&&o.writeMessage(1,r,p.UInt64Value.serializeBinaryToWriter),(r=t.getRequiresReload())&&o.writeBool(2,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getLocatedIndex=function(){return c.Message.getWrapperField(this,p.UInt64Value,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setLocatedIndex=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.clearLocatedIndex=function(){this.setLocatedIndex(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.hasLocatedIndex=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getRequiresReload=function(){return c.Message.getFieldWithDefault(this,2,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setRequiresReload=function(t){c.Message.setProto3BooleanField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest"),c.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(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse"),c.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(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest"),c.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(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse"),c.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(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest"),c.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,e={nodeId:(r=o.getNodeId())&&m.Uuid.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getNodeId())&&o.writeMessage(1,r,m.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,m.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_=[1],c.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(t,o){var r={itemsList:c.Message.toObjectList(o.getItemsList(),g.Node.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new g.Node;o.readMessage(r,g.Node.deserializeBinaryFromReader),t.addItems(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter=function(t,o){var r;(r=t.getItemsList()).length>0&&o.writeRepeatedMessage(1,r,g.Node.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.getItemsList=function(){return c.Message.getRepeatedWrapperField(this,g.Node,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.setItemsList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.addItems=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.clearItemsList=function(){this.setItemsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest"),c.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(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader(r,o)},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 t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_=[1],c.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(t,o){var r={keysList:c.Message.toObjectList(o.getKeysList(),g.ColumnKey.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new g.ColumnKey;o.readMessage(r,g.ColumnKey.deserializeBinaryFromReader),t.addKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter=function(t,o){var r;(r=t.getKeysList()).length>0&&o.writeRepeatedMessage(1,r,g.ColumnKey.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getKeysList=function(){return c.Message.getRepeatedWrapperField(this,g.ColumnKey,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.setKeysList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.addKeys=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.clearKeysList=function(){this.setKeysList([])},r.object.extend(o,proto.vertexvis.protobuf.scenetree.v1alpha1)})),x=l.grpc,C=function(){function t(){}return t.serviceName="vertexvis.protobuf.scenetree.v1alpha1.SceneTreeAPI",t}();C.GetTree={methodName:"GetTree",service:C,requestStream:!1,responseStream:!1,requestType:y.GetTreeRequest,responseType:y.GetTreeResponse},C.ExpandNode={methodName:"ExpandNode",service:C,requestStream:!1,responseStream:!1,requestType:y.ExpandNodeRequest,responseType:y.ExpandNodeResponse},C.CollapseNode={methodName:"CollapseNode",service:C,requestStream:!1,responseStream:!1,requestType:y.CollapseNodeRequest,responseType:y.CollapseNodeResponse},C.Subscribe={methodName:"Subscribe",service:C,requestStream:!1,responseStream:!0,requestType:y.SubscribeRequest,responseType:y.SubscribeResponse},C.Filter={methodName:"Filter",service:C,requestStream:!1,responseStream:!1,requestType:y.FilterRequest,responseType:y.FilterResponse},C.LocateItem={methodName:"LocateItem",service:C,requestStream:!1,responseStream:!1,requestType:y.LocateItemRequest,responseType:y.LocateItemResponse},C.ExpandAll={methodName:"ExpandAll",service:C,requestStream:!1,responseStream:!1,requestType:y.ExpandAllRequest,responseType:y.ExpandAllResponse},C.CollapseAll={methodName:"CollapseAll",service:C,requestStream:!1,responseStream:!1,requestType:y.CollapseAllRequest,responseType:y.CollapseAllResponse},C.GetNodeAncestors={methodName:"GetNodeAncestors",service:C,requestStream:!1,responseStream:!1,requestType:y.GetNodeAncestorsRequest,responseType:y.GetNodeAncestorsResponse},C.GetAvailableColumns={methodName:"GetAvailableColumns",service:C,requestStream:!1,responseStream:!1,requestType:y.GetAvailableColumnsRequest,responseType:y.GetAvailableColumnsResponse};var E=C;function I(t,o){this.serviceHost=t,this.options=o||{}}I.prototype.getTree=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.GetTree,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.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,e.close()}}},I.prototype.expandNode=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.ExpandNode,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.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,e.close()}}},I.prototype.collapseNode=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.CollapseNode,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.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,e.close()}}},I.prototype.subscribe=function(t,o){var r={data:[],end:[],status:[]},e=x.invoke(C.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,e){r.status.forEach((function(r){r({code:t,details:o,metadata:e})})),r.end.forEach((function(r){r({code:t,details:o,metadata:e})})),r=null}});return{on:function(t,o){return r[t].push(o),this},cancel:function(){r=null,e.close()}}},I.prototype.filter=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.Filter,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.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,e.close()}}},I.prototype.locateItem=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.LocateItem,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.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,e.close()}}},I.prototype.expandAll=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.ExpandAll,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.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,e.close()}}},I.prototype.collapseAll=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.CollapseAll,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.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,e.close()}}},I.prototype.getNodeAncestors=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.GetNodeAncestors,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.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,e.close()}}},I.prototype.getAvailableColumns=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.GetAvailableColumns,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.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,e.close()}}};var R=I;const O=({details:r},e)=>t("div",{class:"error"},t("div",{class:"error-section error-message"},t("span",null,r.message),r.link&&t(o,null,t("span",null," See our "),t("a",{href:r.link,target:"_blank"},"documentation")," ",t("span",null," for more information."))),t("div",{class:"error-section"},e));var L;!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"}(L||(L={}));class k{constructor(t,o){this.code=t,this.link=o,this.message=function(t){switch(t){case L.UNKNOWN:return"An unknown error occurred.";case L.SCENE_TREE_DISABLED:return"The tree for this scene is not enabled. Enable the tree for this scene to interact with the tree.";case L.MISSING_VIEWER:return"Could not find reference to the viewer";case L.DISCONNECTED:return"Disconnected from server.";case L.SUBSCRIPTION_FAILURE:return"The tree was not able to receive subscription events"}}(t)}}function S(t){return t.methodDefinition.methodName===E.Subscribe.methodName?l.grpc.WebsocketTransport()(t):l.grpc.CrossBrowserHttpTransport({withCredentials:!1})(t)}function P(t){this.message=t}(P.prototype=new Error).name="InvalidCharacterError";var M="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var o=String(t).replace(/=+$/,"");if(o.length%4==1)throw new P("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,e,n=0,i=0,s="";e=o.charAt(i++);~e&&(r=n%4?64*r+e:e,n++%4)?s+=String.fromCharCode(255&r>>(-2*n&6)):0)e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e);return s};function T(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(M(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 M(o)}}function q(t){this.message=t}(q.prototype=new Error).name="InvalidTokenError";class A{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 f,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 connect(t){const{connection:o}=this.state,r=t();if(null==r)throw new Error("Cannot connect scene tree. JWT is undefined");const{view:e}=function(t){return function(t,o){if("string"!=typeof t)throw new q("Invalid token specified");var r=!0===(o=o||{}).header?0:1;try{return JSON.parse(T(t.split(".")[r]))}catch(t){throw new q("Invalid token specified: "+t.message)}}(t)}(r);this.disconnect(o.sceneViewId!==e);const n={type:"connecting",jwtProvider:t,sceneViewId:e};this.updateState(Object.assign(Object.assign({},this.state),{connection:n}));try{this.log("Scene tree controller connecting."),await this.fetchPage(0),this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:e,details:new k(L.SUBSCRIPTION_FAILURE)}}))}),this.connectOptions.subscriptionHandshakeGracePeriodInMs);const o=await this.subscribe();o.on("end",(()=>this.startConnectionLostReconnectTimer())),this.updateState(Object.assign(Object.assign({},this.state),{connection:Object.assign(Object.assign({},n),{type:"connected",subscription:{dispose:()=>o.cancel()}})}))}catch(o){throw this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:e,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||A.IDLE_RECONNECT_IN_SECONDS)}startConnectionLostReconnectTimer(){this.startReconnectTimer(this.connectOptions.lostConnectionReconnectInSeconds||A.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){console.error("Scene tree controller erred 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})}async collapseNode(t){return this.ifConnectionHasJwt((async o=>{const r=new m.Uuid;r.setHex(t);const e=new y.CollapseNodeRequest;e.setNodeId(r),await this.requestUnary(o,((t,o)=>this.client.collapseNode(e,t,o)))}))}async expandNode(t){return this.ifConnectionHasJwt((async o=>{const r=new m.Uuid;r.setHex(t);const e=new y.ExpandNodeRequest;e.setNodeId(r),await this.requestUnary(o,((t,o)=>this.client.expandNode(e,t,o)))}))}async collapseAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.collapseAll(new y.CollapseAllRequest,t,o)))}))}async expandAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.expandAll(new y.ExpandAllRequest,t,o)))}))}async expandParentNodes(t){return this.ifConnectionHasJwt((async o=>{const r=new m.Uuid;r.setHex(t);const e=new y.LocateItemRequest;e.setNodeId(r);const n=await this.requestUnary(o,((t,o)=>this.client.locateItem(e,t,o))),{requiresReload:i,locatedIndex:s}=n.toObject();if(i&&(this.invalidateAfterOffset(0),await this.fetchUnloadedPagesInActiveRows()),null==s)throw new Error("Cannot locate node. Location index is undefined.");return s.value}))}async fetchNodeAncestors(t){return this.ifConnectionHasJwt((async o=>{const r=new m.Uuid;r.setHex(t);const e=new y.GetNodeAncestorsRequest;return e.setNodeId(r),(await this.requestUnary(o,((t,o)=>this.client.getNodeAncestors(e,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 e=this.fetchTree(r,this.rowLimit,o),n={id:this.nextPageId++,res:e,index:t,metadataKeys:this.metadataKeys};this.pages.set(t,n),this.handlePageResult(n)}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),e=Math.floor(o/this.rowLimit),[n,i]=this.constrainPageRange(r,e),s=i-n+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 y.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 e=await this.requestUnary(r,((r,e)=>{var n;const i=new y.FilterRequest;i.setFilter(t),i.setFullTree(null===(n=o.includeCollapsed)||void 0===n||n),i.setExactMatch(!!o.exactMatch),o.columns&&i.setColumnsKeysList(o.columns),this.client.filter(i,r,e)})),{numberOfResults:n}=e.toObject();this.updateState(Object.assign(Object.assign({},this.state),{totalFilteredRows:n,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,e]=this.constrainPageRange(t,o);return Array.from({length:e-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[e,n]=this.constrainPageRange(t,o),i=Math.max(n-e,r);if(this.fetchedPageCount>i){const t=Array.from(this.pages.keys()).map((t=>({index:t,distance:t<e?e-t:t-n})));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 y.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:e=[],partiallyVisibleList:n=[],deselectedList:i=[],selectedList:s=[]}=(null==o?void 0:o.ranges)||{};n.length>0&&(this.log("Received partial visibility list change",n),n.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})))))),e.length>0&&(this.log("Received shown list change",e),e.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)})),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 e=this.state.rows.slice(t,o+1).map((t=>v(t)?Object.assign(Object.assign({},t),{node:Object.assign(Object.assign({},t.node),r(t.node))}):t)),n=[...this.state.rows.slice(0,t),...e,...this.state.rows.slice(o+1)];this.updateState(Object.assign(Object.assign({},this.state),{rows:n}))}async handlePageResult(t){var o;try{const r=await t.res,e=this.getPage(t.index);if((null==e?void 0:e.id)===t.id){const n=r.getCursor(),i=r.getItemsList(),s=null!==(o=null==n?void 0:n.getTotal())&&void 0!==o?o:0,u=t.index*this.rowLimit,a=d(u,i,e.metadataKeys),c=this.state.rows.slice(0,u),p=this.state.rows.slice(c.length+a.length,s),l=new Array(Math.max(0,s-c.length-a.length-p.length)),h=[...c,...a,...p,...l];this.isViewLoading(h)&&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:h}))):this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:h}))}}catch(o){const r=o instanceof Error?o.toString():"Unknown";console.error(`Request error fetching page at index ${t.index} (${r})`);const e=this.getPage(t.index);(null==e?void 0:e.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,e)=>{const n=new b.OffsetPager;n.setOffset(t),n.setLimit(o);const i=new y.GetTreeRequest;i.setPager(n),i.setAdditionalColumnKeysList(this.metadataKeys),this.client.getTree(i,r,e)}))}requestUnary(t,o){return new Promise(((r,e)=>{const n=this.createJwtMetadata(t);o(n,((t,o)=>{null!=t?e(t):null!=o?r(o):e(new Error("Invalid response. Both error and result are null"))}))}))}requestServerStream(t,o){return o(this.createJwtMetadata(t))}createJwtMetadata(t){return new l.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 Error("SceneTreeController cannot perform request. Viewer JWT is undefined.")}throw new Error("SceneTreeController is not in connected state")}getConnectionError(t){return"number"==typeof(o=t).code&&o.hasOwnProperty("metadata")?new k(t.code===l.grpc.Code.FailedPrecondition?L.SCENE_TREE_DISABLED:L.UNKNOWN):new k(L.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)}}async function j(t,o,{suppliedCorrelationId:r}={}){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).show())).execute({suppliedCorrelationId:r})}async function D(t,o,{suppliedCorrelationId:r}={}){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).hide())).execute({suppliedCorrelationId:r})}A.IDLE_RECONNECT_IN_SECONDS=240,A.LOST_CONNECTION_RECONNECT_IN_SECONDS=2;const N=class{constructor(t){r(this,t),this.connectionError=e(this,"connectionError",7),this.overScanCount=25,this.configEnv="platprod",this.metadataSearchExactMatch=!1,this.metadataSearchKeys=[],this.metadataKeys=[],this.rows=[],this.totalRows=0,this.showLoader=!1,this.stateMap={componentLoaded:!1},this.attemptingRetry=!1}async invalidateRows(){n(this.getLayoutElement())}async scrollToIndex(t,o={}){const{animate:r,position:e="middle"}=o,n=Math.max(0,Math.min(t,this.totalRows)),i=this.getScrollToPosition(n,e);this.getLayoutElement().scrollToPosition(i,{behavior:r?"smooth":void 0})}async scrollToItem(t,o={}){var r;const e=this.totalRows,n=await(null===(r=this.controller)||void 0===r?void 0:r.expandParentNodes(t));if(null!=n&&e!==this.totalRows)return new Promise((t=>{const r=this.getLayoutElement(),e=async()=>{r.removeEventListener("layoutRendered",e),await this.scrollToIndex(n,o),t()};r.addEventListener("layoutRendered",e)}));null!=n&&await this.scrollToIndex(n,o)}async expandAll(){var t;await(null===(t=this.controller)||void 0===t?void 0:t.expandAll())}async collapseAll(){var t;await(null===(t=this.controller)||void 0===t?void 0:t.collapseAll())}async expandItem(t){await this.performRowOperation(t,(async({id:t,node:o})=>{var r;o.expanded||await(null===(r=this.controller)||void 0===r?void 0:r.expandNode(t))}))}async collapseItem(t){await this.performRowOperation(t,(async({id:t,node:o})=>{var r;o.expanded&&await(null===(r=this.controller)||void 0===r?void 0:r.collapseNode(t))}))}async toggleExpandItem(t){await this.performRowOperation(t,(async({node:t})=>{t.expanded?await this.collapseItem(t):await this.expandItem(t)}))}async toggleItemVisibility(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible||r.partiallyVisible?await D(t,o):await j(t,o)}))}async hideItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible&&await D(t,o)}))}async showItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible||await j(t,o)}))}async selectItem(t,o={}){var{recurseParent:r}=o,e=u(o,["recurseParent"]);await this.performRowOperation(t,(async({viewer:t,id:o})=>{var n,i,s,u;const a=await(null===(n=this.controller)||void 0===n?void 0:n.fetchNodeAncestors(o))||[],c=null===(i=this.stateMap.selectionPath)||void 0===i?void 0:i.includes(o);if(r&&c){const t=a.find((({selected:t})=>!t));null!=t&&(await this.selectItem(t,e),this.lastSelectedItemId=o)}else if(e.range&&null!=this.lastSelectedItemId){const r=await(null===(s=this.controller)||void 0===s?void 0:s.expandParentNodes(o)),n=await(null===(u=this.controller)||void 0===u?void 0:u.expandParentNodes(this.lastSelectedItemId));if(n&&r){const o=Math.min(n,r),i=Math.max(n,r);await async function(t,o,r,{material:e,append:n=!0,suppliedCorrelationId:i}){return(await t.scene()).items((t=>[...n?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withSceneTreeRange({start:o,end:r}))).select(e)])).execute({suppliedCorrelationId:i})}(t,o,i,e)}}else await async function(t,o,{material:r,append:e=!1,suppliedCorrelationId:n}){return(await t.scene()).items((t=>[...e?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withItemId(o))).select(r)])).execute({suppliedCorrelationId:n})}(t,o,e),this.lastSelectedItemId=o;this.stateMap.selectionPath=[...a.map((({id:t})=>(null==t?void 0:t.hex)||"")),o]}))}async deselectItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.selected&&(this.lastSelectedItemId=void 0,await async function(t,o,{suppliedCorrelationId:r}={}){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).deselect())).execute({suppliedCorrelationId:r})}(t,o))}))}async getRowAtIndex(t){return this.rows[t]}async getRowForEvent(t){const{clientY:o,target:r}=t;return null!=r&&null==this.errorDetails&&w(this.el,r)&&null!=(e=r)&&"VERTEX-SCENE-TREE-TABLE-CELL"===e.nodeName?this.getRowAtClientY(o):void 0;var e}getRowAtClientY(t){const o=this.getLayoutElement(),r=Math.floor((t-o.layoutOffset+o.scrollOffset)/o.rowHeight);return this.getRowAtIndex(r)}async filterItems(t,o={}){var r;return null===(r=this.controller)||void 0===r?void 0:r.filter(t,o)}async selectFilteredItems(t,o){if(null!=this.viewer){const r=this.metadataSearchKeys.length>0?this.metadataSearchKeys:this.metadataKeys;await async function(t,o,r,e,{material:n,append:i=!1,suppliedCorrelationId:s}){return(await t.scene()).items((t=>[...i?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withMetadata(o,r,e))).select(n)])).execute({suppliedCorrelationId:s})}(this.viewer,t,r,this.metadataSearchExactMatch,Object.assign({append:!1},o))}}async fetchMetadataKeys(){var t,o;return null!==(o=null===(t=this.controller)||void 0===t?void 0:t.fetchMetadataKeys())&&void 0!==o?o:[]}disconnectedCallback(){var t;null===(t=this.stateMap.viewerDisposable)||void 0===t||t.dispose()}componentWillLoad(){if(null==this.controller){const{sceneTreeHost:t}=this.getConfig().network,o=new R(t,this.getConfig().flags.grpcUseStreamingWebSocketTransport?{transport:S}:void 0);this.controller=new A(o,100)}this.stateMap.onStateChangeDisposable=this.controller.onStateChange.on((t=>this.handleControllerStateChange(t))),this.connectToViewer()}async componentDidLoad(){var t;this.ensureLayoutDefined(),this.updateLayoutElement();const o=this.getLayoutElement(),r=new ResizeObserver((()=>{this.invalidateRows()}));r.observe(o),this.stateMap.resizeObserver=r,this.stateMap.componentLoaded=!0,null===(t=this.controller)||void 0===t||t.setMetadataKeys(this.metadataKeys),null==this.viewer&&(this.errorDetails=new k(L.MISSING_VIEWER))}componentWillRender(){this.updateLayoutElement()}render(){return t(i,null,t("div",{class:"header"},t("slot",{name:"header"},t("vertex-scene-tree-toolbar",{class:"search-toolbar"},t("vertex-scene-tree-search",{controller:this.controller})))),null!=this.errorDetails&&this.renderError(this.errorDetails),null==this.errorDetails&&t("div",{class:"rows-scroll"},this.showLoader&&t("slot",{name:"loading"},t("vertex-viewer-spinner",{class:"loading",size:"md"})),t("slot",null)),t("div",{class:"footer"},t("slot",{name:"footer"})))}renderError(o){return o.code!==L.SCENE_TREE_DISABLED?t(O,{details:o},t("button",{class:"button button-secondary",onClick:()=>this.retryConnectToViewer(),disabled:this.attemptingRetry},"Retry")):t(O,{details:o})}handleViewerChanged(t,o){this.stateMap.componentLoaded&&this.connectToViewer()}handleControllerChanged(t){var o;this.stateMap.componentLoaded&&(null===(o=this.stateMap.onStateChangeDisposable)||void 0===o||o.dispose(),this.stateMap.onStateChangeDisposable=t.onStateChange.on((t=>this.handleControllerStateChange(t))),t.setMetadataKeys(this.metadataKeys))}handleMetadataKeysChanged(){var t;null===(t=this.controller)||void 0===t||t.setMetadataKeys(this.metadataKeys)}retryConnectToViewer(){this.attemptingRetry=!0,this.errorDetails=void 0,this.connectToViewer()}connectToViewer(){var t,o;null===(t=this.stateMap.viewerDisposable)||void 0===t||t.dispose(),null==this.viewer&&null!=this.viewerSelector&&(this.viewer=document.querySelector(this.viewerSelector)),null!=this.viewer?this.stateMap.viewerDisposable=null===(o=this.controller)||void 0===o?void 0:o.connectToViewer(this.viewer):this.attemptingRetry=!1}scheduleClearUnusedData(){null!=this.stateMap.idleCallbackId&&window.cancelIdleCallback(this.stateMap.idleCallbackId),this.stateMap.idleCallbackId=window.requestIdleCallback((t=>{var o,r,e;const n=null===(o=t.timeRemaining)||void 0===o?void 0:o.call(t);if(null==n||n>=25){const t=this.getLayoutElement(),o=t.viewportStartIndex,n=t.viewportEndIndex,[i,s]=(null===(r=this.controller)||void 0===r?void 0:r.getPageIndexesForRange(o,n))||[];null!=i&&null!=s&&(null===(e=this.controller)||void 0===e||e.invalidatePagesOutsideRange(i,s,50))}else this.scheduleClearUnusedData()}))}handleControllerStateChange(t){this.showLoader=!!t.shouldShowLoading,this.rows=t.rows,this.totalRows=t.totalRows,"failure"===t.connection.type?(this.errorDetails=t.connection.details,this.connectionError.emit(t.connection.details)):this.errorDetails="disconnected"===t.connection.type?new k(L.DISCONNECTED):void 0,"connected"!==t.connection.type&&"failure"!==t.connection.type||(this.attemptingRetry=!1)}async performRowOperation(t,o){const r="number"==typeof t?this.rows[t]:t;if(null==r)throw new Error("Cannot perform scene tree operation. Row not found.");const e=v(r)?r.node:r;if(null==e.id)throw new Error("Cannot perform scene tree operation. ID is undefined.");if(null==this.viewer)throw new Error("Cannot perform scene tree operation. Cannot get reference to viewer.");await o({viewer:this.viewer,id:e.id.hex,node:e})}async handleSearch(t){const o=this.metadataSearchKeys.length>0?this.metadataSearchKeys:this.metadataKeys;try{await this.filterItems(t.detail,{columns:o,exactMatch:this.metadataSearchExactMatch})}catch(t){console.error("Failed to filter tree with exception: ",t)}}getScrollToPosition(t,o){var r;const e=this.getLayoutElement(),n=Math.max(0,Math.min(t,this.totalRows-1)),i=null!==(r=e.layoutHeight)&&void 0!==r?r:0,s=e.rowHeight;return"start"===o?n*s:"middle"===o?n*s+s/2-i/2:n*s+s-i}getConfig(){return h(this.configEnv,this.config)}ensureLayoutDefined(){let t=this.el.querySelector("vertex-scene-tree-table-layout");null==t&&(t=document.createElement("vertex-scene-tree-table-layout"),t.innerHTML='\n <vertex-scene-tree-table-column>\n <template>\n <vertex-scene-tree-table-cell prop:value="{{row.node.name}}" expand-toggle visibility-toggle></vertex-scene-tree-table-cell>\n </template>\n </vertex-scene-tree-table-column>\n ',this.el.appendChild(t)),this.stateMap.layoutEl=t}updateLayoutElement(){const t=this.stateMap.layoutEl;null!=t?(t.rows=this.rows,t.tree=this.el,t.totalRows=this.totalRows,t.controller=this.controller,t.rowData=this.rowData):!this.stateMap.componentLoaded&&this.totalRows>0&&console.debug("Scene tree has rows, but the component has not yet rendered")}getLayoutElement(){if(null!=this.stateMap.layoutEl)return this.stateMap.layoutEl;throw new Error("Layout element is undefined")}get el(){return s(this)}static get watchers(){return{viewer:["handleViewerChanged"],controller:["handleControllerChanged"],metadataKeys:["handleMetadataKeysChanged"]}}};N.style="button{border:none;background:transparent;cursor:pointer;margin:0;padding:0}.button{padding:0.5rem;border-radius:0.25rem}.button-secondary{color:var(--neutral-800);background-color:var(--neutral-300)}.button-secondary:hover{color:var(--neutral-900)}.button-secondary:hover:enabled{box-shadow:0 2px 2px rgb(0 0 0 / 20%)}.button-secondary:disabled{opacity:0.8}.button-secondary:hover:disabled{cursor:not-allowed}:host{--scene-tree-toolbar-separator:1px solid var(--neutral-300);width:300px;height:100%;user-select:none;-webkit-user-select:none;cursor:default;display:flex;flex-direction:column}.rows-scroll{position:relative;height:var(--scene-tree-row-height, 0);flex-grow:1}.rows{position:relative}.row{position:absolute;display:flex;align-items:center;width:100%;height:var(--scene-tree-row-height);padding:var(--scene-tree-row-padding);box-sizing:border-box}.row:hover{background-color:var(--scene-tree-row-hover-color)}.row.is-selected{background-color:var(--scene-tree-row-selected-color)}.expand-toggle{cursor:pointer;width:16px}.row-text{margin-left:0.25rem;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.visibility-btn{display:flex;align-items:center;visibility:hidden;padding:4px}.visibility-btn.is-hidden{visibility:visible}.row:hover .visibility-btn{visibility:visible}.error{display:flex;flex-direction:column;align-items:center;font-size:0.875rem;width:100%;height:100%;padding:1rem;box-sizing:border-box;justify-content:center}.error-section{margin-top:1rem}.error-message{text-align:center}.search-toolbar,slot[name='header']::slotted(*){border-bottom:var(--scene-tree-toolbar-separator)}slot[name='footer']::slotted(:not(:last-child)){border-top:var(--scene-tree-toolbar-separator)}.header{display:flex;flex-direction:column}.footer{display:flex;flex-direction:column}.loading{position:absolute;top:150px;left:50%;transform:translate(-50%, -50%);text-align:center}";export{N as vertex_scene_tree}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**!
|
|
2
|
-
* Copyright (c) 2022 Vertex Software LLC. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import{h as i,F as t,r as n}from"./p-d6fce4c1.js";import{p as e,m as o,v as s}from"./p-70e5e8a8.js";import"./p-3ca4a7c1.js";import"./p-52ab9ec0.js";import"./p-92fe4417.js";import"./p-68e192b9.js";import"./p-df8fbe56.js";import{V as r}from"./p-29986489.js";import{g as a,i as l,b as p,P as h,a as d,c as v}from"./p-27dbc865.js";import{c}from"./p-07aeee89.js";import"./p-65af7a89.js";import"./p-dfe5a97d.js";const u=({pin:n,selected:e})=>{const{primaryColor:o}=a(n);return i(t,null,p(n)&&i("div",{id:"pin-anchor",class:c("pin-anchor",{selected:e}),style:{background:o}}),l(n)&&i("vertex-viewer-icon",{name:"pin-fill",size:"lg",class:c("pin",{"pin-selected":e}),style:{color:o}}))};function w(i,t,n){const o=[{x:i.x+n.width/2,y:i.y},{x:i.x+n.width/2,y:i.y+n.height},{x:i.x,y:i.y+n.height/2},{x:i.x+n.width,y:i.y+n.height/2}],s=o.map((i=>e.distance(i,t)));return o[s.indexOf(Math.min(...s))]}const b=class{constructor(i){n(this,i),this.matrix=o.makeIdentity(),this.projectionViewMatrix=o.makeIdentity(),this.pinModel=new h,this.selected=!1,this.invalidateStateCounter=0,this.invalidateState=()=>{this.invalidateStateCounter=this.invalidateStateCounter+1}}componentDidLoad(){this.setLabelObserver(),null==this.pinController&&(this.pinController=new d(this.pinModel))}disconnectedCallback(){var i,t;null===(i=this.labelEl)||void 0===i||i.removeEventListener("labelChanged",this.invalidateState),null===(t=this.resizeObserver)||void 0===t||t.disconnect()}render(){var n;if(null==this.pin)throw new Error("Unable to draw pin");const{pinPoint:e,labelPoint:o}=this.computePinPoints(this.pin);return i(t,null,i("vertex-viewer-dom-element",{"data-testid":`drawn-pin-${this.pin.id}`,position:this.pin.worldPosition,onPointerDown:i=>{2!==i.buttons&&i.stopPropagation(),this.selectPin(),this.handleAnchorPointerDown()}},i(u,{pin:this.pin,selected:this.selected})),p(this.pin)&&i(t,null,i("vertex-viewer-pin-label-line",{id:`pin-label-line-${null===(n=this.pin)||void 0===n?void 0:n.id}`,pinPoint:e,pin:this.pin,labelPoint:o,onPointerDown:()=>this.selectPin()}),i("vertex-viewer-pin-label",{pin:this.pin,ref:i=>this.labelEl=i,elementBounds:this.elementBounds,pinController:this.pinController,onPointerDown:()=>this.selectPin()})))}setLabelObserver(){null!=this.labelEl&&(this.labelEl.addEventListener("labelChanged",this.invalidateState),this.resizeObserver=new ResizeObserver((()=>this.invalidateState())),this.resizeObserver.observe(this.labelEl))}computePinPoints(i){return null!=this.elementBounds&&null!=this.pin?p(this.pin)&&null!=this.pin.label.point?this.computeTextPinPoints(this.pin,this.elementBounds):this.computeDefaultPinPoints(this.pin,this.elementBounds):{pinPoint:i.worldPosition}}computeDefaultPinPoints(i,t){return{pinPoint:this.getFromWorldPosition(i.worldPosition,this.projectionViewMatrix,t)}}computeTextPinPoints(i,t){var n,e,o,s;const{pinPoint:r}=this.computeDefaultPinPoints(i,t);return{pinPoint:r,labelPoint:w(v(i.label.point,t),r,{width:(null===(e=null===(n=this.labelEl)||void 0===n?void 0:n.firstElementChild)||void 0===e?void 0:e.clientWidth)||0,height:(null===(s=null===(o=this.labelEl)||void 0===o?void 0:o.firstElementChild)||void 0===s?void 0:s.clientHeight)||0})}}handleAnchorPointerDown(){var i,t;null!=this.elementBounds&&"edit"===(null===(i=this.pinController)||void 0===i?void 0:i.getToolMode())&&null!=this.pin&&(null===(t=this.pinController)||void 0===t||t.setDraggable({id:this.pin.id}))}selectPin(){var i,t;null===(i=this.pinController)||void 0===i||i.setSelectedPinId(null===(t=this.pin)||void 0===t?void 0:t.id)}getFromWorldPosition(i,t,n){const e=s.transformMatrix(i,t);return r.fromDimensions(n).transformVectorToViewport(e)}};b.style=":host{--viewer-annotations-pin-primary-color:var(--blue-700);--viewer-annotations-pin-accent-color:var(--blue-200);--viewer-annotations-pin-dot-color:var(--viewer-annotations-pin-primary-color);--viewer-annotations-pin-color:var(--viewer-annotations-pin-primary-color);--viewer-annotations-pin-font-size:0.75rem;--viewer-annotations-pin-selected-stroke:var(--white);--viewer-annotations-pin-selected-border:2px solid var(--white);--viewer-annotations-pin-label-border:2px solid var(--black);--viewer-annotations-pin-selected-stroke:var(--white);font-size:var(--viewer-annotations-pin-font-size);position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden;pointer-events:none}.pin-anchor{position:absolute;border-radius:50%;transform:translate(-50%, -50%);display:block;width:9px;height:9px;box-sizing:border-box;border:var(--viewer-annotations-pin-label-border);background:var(--viewer-annotations-pin-dot-color);pointer-events:auto;cursor:pointer}.selected{width:13px;height:13px;border:var(--viewer-annotations-pin-selected-border)}.pin{color:var(--viewer-annotations-pin-color);cursor:pointer}.pin-selected{stroke-width:1;stroke:var(--viewer-annotations-pin-selected-stroke)}";export{b as vertex_viewer_pin_group}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**!
|
|
2
|
-
* Copyright (c) 2022 Vertex Software LLC. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import{p as t,d as i}from"./p-70e5e8a8.js";import{r as s,c as e,E as n}from"./p-65af7a89.js";class r{constructor(t,i="view",s="pin-icon",e){this.model=t,this.mode=i,this.type=s,this.styleAttributes=e}addPin(t){this.model.addPin(t)}clearPins(){this.model.clearPins()}removePin(t){this.model.removePin(t)}setPins(t){this.model.setPins(t)}setPin(t){this.model.setPin(t)}updatePin(t){this.model.updatePin(t)}setSelectedPinId(t){this.model.setSelectedPin(t)}getToolMode(){return this.mode}getToolType(){return this.type}setToolMode(t){this.mode=t}setToolType(t){this.type=t}getDraggable(){return this.draggable}setDraggable(t){this.draggable=t}setPrimaryColor(t){this.styleAttributes=Object.assign(Object.assign({},this.styleAttributes),{primaryColor:t})}setAccentColor(t){this.styleAttributes=Object.assign(Object.assign({},this.styleAttributes),{accentColor:t})}getStyleAttributes(){return this.styleAttributes}updateDraggable(t,i,s){null!=this.draggable&&(this.draggable=t);const e=this.model.getPinById(t.id);null!=e&&this.updatePin(Object.assign(Object.assign({},e),{worldPosition:i,partId:s}))}}function o(s,e){return t.add(t.scale(s,e.width,e.height),i.center(e))}function h(e,n){return function(i,s){const e=Math.max(s.start,Math.min(s.end,i.x)),n=Math.max(s.start,Math.min(s.end,i.y));return t.create(e,n)}(t.scale(t.subtract(e,i.center(n)),1/n.width,1/n.height),s.create(-.5,.5))}function l(t){return"text"===(null==t?void 0:t.type)}function u(t){return"icon"===(null==t?void 0:t.type)}function a(t){return"string"==typeof t?t:e.toHexString(t)}function c(t){var i,s,e,n,r,o,h,l;return{primaryColor:null==(null===(s=null===(i=null==t?void 0:t.attributes)||void 0===i?void 0:i.style)||void 0===s?void 0:s.primaryColor)?void 0:a(null===(n=null===(e=null==t?void 0:t.attributes)||void 0===e?void 0:e.style)||void 0===n?void 0:n.primaryColor),accentColor:null==(null===(o=null===(r=null==t?void 0:t.attributes)||void 0===r?void 0:r.style)||void 0===o?void 0:o.accentColor)?void 0:a(null===(l=null===(h=null==t?void 0:t.attributes)||void 0===h?void 0:h.style)||void 0===l?void 0:l.accentColor)}}class d{constructor(){this.entities={},this.entitiesChanged=new n,this.selectionChanged=new n}addPin(t,i=!1){return null==this.entities[t.id]&&(this.entities=Object.assign(Object.assign({},this.entities),{[t.id]:t}),i||this.entitiesChanged.emit(this.getPins()),!0)}clearPins(){this.getPins().forEach((t=>this.removePin(t)))}getPins(){return Object.keys(this.entities).map((t=>this.entities[t]))}getPinById(t){return this.entities[t]}getSelectedPinId(){return this.selectedPinId}removePin(t){return null!=this.entities[t.id]&&(delete this.entities[t.id],this.entitiesChanged.emit(this.getPins()),!0)}setPins(t){return this.clearPins(),t.forEach((t=>this.addPin(t,!0))),this.entitiesChanged.emit(this.getPins()),!0}setPin(t){return this.entities=Object.assign(Object.assign({},this.entities),{[t.id]:t}),this.entitiesChanged.emit(this.getPins()),!0}updatePin(t){return null!=this.getPinById(t.id)&&(this.entities=Object.assign(Object.assign({},this.entities),{[t.id]:t}),this.entitiesChanged.emit(this.getPins()),!0)}onEntitiesChanged(t){return this.entitiesChanged.on(t)}onSelectionChange(t){return this.selectionChanged.on(t)}setSelectedPin(t){this.selectedPinId=t,this.selectionChanged.emit(this.selectedPinId)}}export{d as P,r as a,l as b,o as c,c as g,u as i,h as t}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**!
|
|
2
|
-
* Copyright (c) 2022 Vertex Software LLC. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,h as i,F as t,H as s}from"./p-d6fce4c1.js";import{p as r,h as a}from"./p-70e5e8a8.js";import"./p-52ab9ec0.js";import"./p-92fe4417.js";import"./p-68e192b9.js";import{M as n}from"./p-7f6251da.js";import{t as l}from"./p-1abfe4bf.js";import"./p-dfe5a97d.js";import"./p-65af7a89.js";import"./p-df8fbe56.js";const o=class{constructor(i){e(this,i),this.start=r.create(),this.end=r.create(),this.capLength=0,this.pointerEvents="none"}render(){const e=a.fromPoints(this.start,this.end),t=m(this.start,this.end,e,this.capLength),s=m(this.start,this.end,e,this.capLength+1);return i("svg",null,i("g",{class:"line-stroke","pointer-events":this.pointerEvents},i("line",{class:"line",x1:this.start.x,y1:this.start.y,x2:this.end.x,y2:this.end.y}),i("line",{class:"start-cap",x1:s.startEndCap.start.x,y1:s.startEndCap.start.y,x2:s.startEndCap.end.x,y2:s.startEndCap.end.y}),i("line",{class:"end-cap",x1:s.endEndCap.start.x,y1:s.endEndCap.start.y,x2:s.endEndCap.end.x,y2:s.endEndCap.end.y})),i("g",{class:"line-fill","pointer-events":this.pointerEvents},i("line",{class:"line",x1:this.start.x,y1:this.start.y,x2:this.end.x,y2:this.end.y}),i("line",{class:"start-cap",x1:t.startEndCap.start.x,y1:t.startEndCap.start.y,x2:t.startEndCap.end.x,y2:t.startEndCap.end.y}),i("line",{class:"end-cap",x1:t.endEndCap.start.x,y1:t.endEndCap.start.y,x2:t.endEndCap.end.x,y2:t.endEndCap.end.y})))}};function m(e,i,t,s){return{startEndCap:v(e,t,s),endEndCap:v(i,t,s)}}function v(e,i,t){const s=i+Math.PI/2;return{start:r.add(e,r.polar(t/2,s)),end:r.add(e,r.polar(t/2,s+Math.PI))}}o.style=":host{display:block;--viewer-measurement-line-stroke:var(--white);--viewer-measurement-line-stroke-opacity:0.75;--viewer-measurement-line-stroke-width:1.25px;--viewer-measurement-line-fill:var(--neutral-900);--viewer-measurement-line-fill-width:2px;--viewer-measurement-line-start-cap-visibility:initial;--viewer-measurement-line-end-cap-visibility:initial}svg{width:100%;height:100%}.line-stroke{stroke-width:calc(\n var(--viewer-measurement-line-fill-width) +\n var(--viewer-measurement-line-stroke-width)\n );stroke:var(--viewer-measurement-line-stroke);opacity:var(--viewer-measurement-line-stroke-opacity)}.line-fill{stroke-width:var(--viewer-measurement-line-fill-width);stroke:var(--viewer-measurement-line-fill)}.start-cap{visibility:var(--viewer-measurement-line-start-cap-visibility)}.end-cap{visibility:var(--viewer-measurement-line-end-cap-visibility)}";const h=({overlay:e,viewport:t,camera:s})=>i("line"===e.type?c:u,{overlay:e,viewport:t,camera:s}),c=({overlay:e,camera:t,viewport:s})=>{const{start:r,end:a}=l(e,{camera:t,viewport:s});return i("vertex-viewer-measurement-line",{class:"measurement-line",start:r,end:a})},u=({overlay:{x:e,y:s,z:r},camera:a,viewport:n})=>{const o={camera:a,viewport:n},{start:m,end:v}=l(e,o),{start:h,end:c}=l(s,o),{start:u,end:d}=l(r,o);return i(t,null,i("vertex-viewer-measurement-line",{class:"measurement-line distance-vector-x",start:m,end:v}),i("vertex-viewer-measurement-line",{class:"measurement-line distance-vector-y",start:h,end:c}),i("vertex-viewer-measurement-line",{class:"measurement-line distance-vector-z",start:u,end:d}))},d=class{constructor(i){e(this,i),this.measurementOverlays=new n,this.overlays=[],this.updateCamera=()=>{var e,i;this.camera=null===(i=null===(e=this.viewer)||void 0===e?void 0:e.frame)||void 0===i?void 0:i.scene.camera}}handleMeasurementOverlaysChanged(){this.removeModelListeners(),this.addModelListeners(),this.updateOverlays()}handleViewerChanged(e,i){this.removeViewerListeners(i),this.addViewerListeners(),this.updateCamera()}componentWillLoad(){this.addModelListeners(),this.addViewerListeners(),this.updateOverlays(),this.updateCamera()}addModelListeners(){this.onOverlaysChangedListener=this.measurementOverlays.onOverlaysChanged((()=>this.updateOverlays()))}removeModelListeners(){var e;null===(e=this.onOverlaysChangedListener)||void 0===e||e.dispose(),this.onOverlaysChangedListener=void 0}addViewerListeners(){var e;null===(e=this.viewer)||void 0===e||e.addEventListener("frameReceived",this.updateCamera)}removeViewerListeners(e){null==e||e.removeEventListener("frameReceived",this.updateCamera)}updateOverlays(){this.overlays=this.measurementOverlays.getOverlays()}render(){return i(s,null,this.overlays.map((e=>{if(null!=this.camera&&null!=this.viewer)return i(h,{overlay:e,viewport:this.viewer.viewport,camera:this.camera})})))}static get watchers(){return{measurementOverlays:["handleMeasurementOverlaysChanged"],viewer:["handleViewerChanged"]}}};d.style=":host{display:block;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;--viewer-measurement-overlays-x-axis-color:var(--x-axis-color);--viewer-measurement-overlays-y-axis-color:var(--y-axis-color);--viewer-measurement-overlays-z-axis-color:var(--z-axis-color)}.measurement-line{position:absolute;width:100%;height:100%}.measurement-line.distance-vector-x{--viewer-measurement-line-fill:var(\n --viewer-measurement-overlays-x-axis-color\n )}.measurement-line.distance-vector-y{--viewer-measurement-line-fill:var(\n --viewer-measurement-overlays-y-axis-color\n )}.measurement-line.distance-vector-z{--viewer-measurement-line-fill:var(\n --viewer-measurement-overlays-z-axis-color\n )}";export{o as vertex_viewer_measurement_line,d as vertex_viewer_measurement_overlays}
|