@vertexvis/viewer 0.16.0 → 0.16.1-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.template.md +19 -0
- package/dist/cjs/controller-383147c5.js +111 -0
- package/dist/cjs/controller-917f9ebf.js +7508 -0
- package/dist/cjs/dom-d162f898.js +14 -0
- package/dist/cjs/{entities-053d1e65.js → entities-98b08d8a.js} +5 -5
- package/dist/cjs/index.cjs.js +10 -3
- package/dist/cjs/{mapper-767b5f6d.js → mapper-d3855fc8.js} +583 -583
- package/dist/cjs/{dom-92728e58.js → row-3a1861d4.js} +0 -9
- package/dist/cjs/vertex-scene-tree-search_3.cjs.entry.js +5 -4
- package/dist/cjs/vertex-scene-tree.cjs.entry.js +19 -7510
- package/dist/cjs/vertex-viewer-box-query-tool.cjs.entry.js +9 -110
- package/dist/cjs/vertex-viewer-measurement-distance.cjs.entry.js +2 -2
- package/dist/cjs/vertex-viewer-measurement-line_2.cjs.entry.js +2 -2
- package/dist/cjs/vertex-viewer-measurement-precise.cjs.entry.js +4 -4
- package/dist/cjs/vertex-viewer-pin-group.cjs.entry.js +6 -3
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/scene-tree/lib/index.js +3 -0
- package/dist/collection/components/scene-tree/scene-tree.js +30 -17
- package/dist/collection/components/scene-tree/types.js +2 -0
- package/dist/collection/components/scene-tree-table-layout/scene-tree-table-layout.js +1 -1
- package/dist/collection/components/viewer-box-query-tool/types.js +2 -0
- package/dist/collection/components/viewer-box-query-tool/viewer-box-query-tool.js +5 -3
- package/dist/collection/components/viewer-default-toolbar/viewer-default-toolbar.js +2 -2
- package/dist/collection/components/viewer-toolbar/types.js +2 -0
- package/dist/collection/components/viewer-toolbar/viewer-toolbar.js +5 -3
- package/dist/collection/components/viewer-toolbar-group/types.js +2 -0
- package/dist/collection/components/viewer-toolbar-group/viewer-toolbar-group.js +3 -2
- package/dist/collection/index.js +8 -1
- package/dist/collection/lib/pins/index.js +2 -0
- package/dist/collection/lib/volume-intersection/index.js +2 -0
- package/dist/custom-elements/index.js +71942 -71942
- package/dist/esm/{bundle.esm-b51ea7fc.js → bundle.esm-c0b261c8.js} +1 -1
- package/dist/esm/{config-def96227.js → config-5a3235d2.js} +1 -1
- package/dist/esm/controller-37e0b32a.js +109 -0
- package/dist/esm/controller-8e9e0b43.js +7503 -0
- package/dist/esm/dom-2111ed19.js +11 -0
- package/dist/esm/{entities-3ff1a7ee.js → entities-f0128903.js} +3 -3
- package/dist/esm/index.js +9 -6
- package/dist/esm/index.mjs +9 -6
- package/dist/esm/{mapper-b2f3424f.js → mapper-36404f5d.js} +2 -2
- package/dist/esm/{dom-e19ee80b.js → row-5ebb8f09.js} +1 -8
- package/dist/esm/{scene-ed248e56.js → scene-d23dff71.js} +2 -2
- package/dist/esm/{streamAttributes-90bcdb58.js → streamAttributes-7bd73748.js} +1 -1
- package/dist/esm/vertex-scene-tree-search_3.entry.js +2 -1
- package/dist/esm/vertex-scene-tree.entry.js +13 -7504
- package/dist/esm/vertex-viewer-box-query-tool.entry.js +3 -104
- package/dist/esm/vertex-viewer-dom-element_2.entry.js +2 -2
- package/dist/esm/vertex-viewer-measurement-details.entry.js +2 -2
- package/dist/esm/vertex-viewer-measurement-distance.entry.js +4 -4
- package/dist/esm/vertex-viewer-measurement-line_2.entry.js +4 -4
- package/dist/esm/vertex-viewer-measurement-precise.entry.js +6 -6
- package/dist/esm/vertex-viewer-pin-group.entry.js +8 -5
- package/dist/esm/vertex-viewer-transform-widget.entry.js +2 -2
- package/dist/esm/vertex-viewer-view-cube.entry.js +2 -2
- package/dist/esm/vertex-viewer.entry.js +4 -4
- package/dist/esm/{grpc-web-client.umd-5409853c.js → wrappers_pb-e7a5f842.js} +5 -5
- package/dist/types/components/scene-tree/lib/controller.d.ts +1 -1
- package/dist/types/components/scene-tree/lib/index.d.ts +2 -0
- package/dist/types/components/scene-tree/lib/row.d.ts +1 -1
- package/dist/types/components/scene-tree/scene-tree.d.ts +1 -31
- package/dist/types/components/scene-tree/types.d.ts +32 -0
- package/dist/types/components/scene-tree-table-layout/scene-tree-table-layout.d.ts +1 -1
- package/dist/types/components/viewer-box-query-tool/types.d.ts +2 -0
- package/dist/types/components/viewer-box-query-tool/viewer-box-query-tool.d.ts +1 -2
- package/dist/types/components/viewer-default-toolbar/viewer-default-toolbar.d.ts +2 -2
- package/dist/types/components/viewer-toolbar/types.d.ts +5 -0
- package/dist/types/components/viewer-toolbar/viewer-toolbar.d.ts +1 -5
- package/dist/types/components/viewer-toolbar-group/types.d.ts +1 -0
- package/dist/types/components/viewer-toolbar-group/viewer-toolbar-group.d.ts +1 -1
- package/dist/types/components.d.ts +6 -10
- package/dist/types/index.d.ts +7 -0
- package/dist/types/lib/pins/index.d.ts +2 -0
- package/dist/types/lib/volume-intersection/index.d.ts +1 -0
- package/dist/types/lib/volume-intersection/model.d.ts +1 -1
- package/dist/viewer/index.esm.js +1 -1
- package/dist/viewer/{p-9f805c70.js → p-2c07b773.js} +1 -1
- package/dist/viewer/p-39535bb0.entry.js +4 -0
- package/dist/viewer/p-3a6fa239.js +4 -0
- package/dist/viewer/{p-e24dbb45.entry.js → p-42acbbaf.entry.js} +1 -1
- package/dist/viewer/p-43f7a708.entry.js +4 -0
- package/dist/viewer/{p-bd314501.js → p-5632192b.js} +1 -1
- package/dist/viewer/{p-01012fee.entry.js → p-58b30f31.entry.js} +1 -1
- package/dist/viewer/{p-f6b6b3d5.entry.js → p-6a4d8fb9.entry.js} +1 -1
- package/dist/viewer/p-6f47fcb9.js +4 -0
- package/dist/viewer/p-76c414a4.js +4 -0
- package/dist/viewer/{p-b283a36b.js → p-787c2987.js} +1 -1
- package/dist/viewer/{p-46f40a43.js → p-817743a4.js} +1 -1
- package/dist/viewer/{p-13e6c657.entry.js → p-886fb3a9.entry.js} +2 -2
- package/dist/viewer/{p-b629cebb.entry.js → p-92a65d2c.entry.js} +1 -1
- package/dist/viewer/p-9cc361f6.entry.js +4 -0
- package/dist/viewer/{p-934cbb97.js → p-a7c29e95.js} +1 -1
- package/dist/viewer/{p-47c4b430.entry.js → p-b4321377.entry.js} +1 -1
- package/dist/viewer/p-bfae3945.js +4 -0
- package/dist/viewer/{p-86759ae2.entry.js → p-d8c578a9.entry.js} +1 -1
- package/dist/viewer/{p-ea183d6e.entry.js → p-db8948a9.entry.js} +1 -1
- package/dist/viewer/{p-a12791aa.js → p-dde5650a.js} +1 -1
- package/dist/viewer/{p-bf688622.entry.js → p-ecd99a3e.entry.js} +1 -1
- package/dist/viewer/p-f5aaf680.js +4 -0
- package/dist/viewer/viewer.esm.js +1 -1
- package/package.json +7 -7
- package/readme.md +19 -0
- package/dist/collection/components/scene-tree/interfaces.js +0 -2
- package/dist/types/components/scene-tree/interfaces.d.ts +0 -1
- package/dist/viewer/p-3296fdf1.entry.js +0 -4
- package/dist/viewer/p-569ed94a.entry.js +0 -4
- package/dist/viewer/p-7ef7d9ce.entry.js +0 -4
- package/dist/viewer/p-92fe4417.js +0 -4
- package/dist/viewer/p-c8c4343b.js +0 -4
- package/dist/cjs/{grpc-web-client.umd-2af20c1b.js → wrappers_pb-04573f90.js} +4 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**!
|
|
2
|
+
* Copyright (c) 2023 Vertex Software LLC. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import{S as t}from"./p-a7c29e95.js";import{E as i}from"./p-fc7d8c03.js";class s{constructor(t,s){this.model=t,this.viewer=s,this.additionalTransforms=[],this.operationInFlight=!1,this.operationAborted=!1,this.executeStarted=new i,this.executeComplete=new i,this.executeAborted=new i,this.additionalTransforms=[t=>t.where((t=>t.all())).deselect()],this.operationTransform=t=>t.select()}setStartPoint(t){this.previousViewerCameraControls=this.viewer.cameraControls,this.viewer.cameraControls=!1,this.model.setStartPoint(t)}setEndPoint(t){this.model.setEndPoint(t)}setOperationTransform(t){this.operationTransform=t}setAdditionalTransforms(t){this.additionalTransforms=t}onExecuteStarted(t){return this.executeStarted.on(t)}onExecuteComplete(t){return this.executeComplete.on(t)}onExecuteAborted(t){return this.executeAborted.on(t)}async execute(){var i,s,e;const h=this.model.getScreenBounds(),o=this.model.getType();if(null==h||this.operationInFlight){if(this.operationInFlight)throw this.model.cancel(),new Error("Unable to perform volume intersection query as there is already one in-flight.");this.model.cancel(),this.viewer.cameraControls=null===(e=this.previousViewerCameraControls)||void 0===e||e}else{this.model.complete();try{this.operationInFlight=!0,this.executeStarted.emit();const t=t=>this.additionalTransforms.map((i=>i(t))).flat(),i=t=>[this.operationTransform(t.where((t=>t.withVolumeIntersection(h,"exclusive"===o))))].flat(),e=await this.viewer.scene();await e.items((s=>[...t(s),...i(s)])).execute()}catch(s){if(!(s instanceof t&&(null===(i=s.summary)||void 0===i?void 0:i.toLocaleLowerCase().includes("operation aborted"))))throw console.error("Failed to perform volume intersection query",s),s;this.executeAborted.emit(s),this.operationAborted=!0}finally{this.viewer.cameraControls=null===(s=this.previousViewerCameraControls)||void 0===s||s,this.previousViewerCameraControls=void 0,this.operationInFlight=!1,this.executeComplete.emit({aborted:this.operationAborted}),this.operationAborted=!1}}}}export{s as V}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**!
|
|
2
2
|
* Copyright (c) 2023 Vertex Software LLC. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
-
import{d as e,N as t,w as r,p as a,b as o}from"./p-d6fce4c1.js";import{g as i}from"./p-98e6a50e.js";import"./p-dfe5a97d.js";(()=>{const o=Array.from(e.querySelectorAll("script")).find((e=>new RegExp(`/${t}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===t)),i={};return i.resourcesUrl=new URL(".",new URL(o.getAttribute("data-resources-url")||o.src,r.location.href)).href,((a,o)=>{const i=`__sc_import_${t.replace(/\s|-/g,"_")}`;try{r[i]=new Function("w",`return import(w);//${Math.random()}`)}catch(t){const n=new Map;r[i]=t=>{const s=new URL(t,a).href;let l=n.get(s);if(!l){const t=e.createElement("script");t.type="module",t.crossOrigin=o.crossOrigin,t.src=URL.createObjectURL(new Blob([`import * as m from '${s}'; window.${i}.m = m;`],{type:"application/javascript"})),l=new Promise((e=>{t.onload=()=>{e(r[i].m),t.remove()}})),n.set(s,l),e.head.appendChild(t)}return l}}})(i.resourcesUrl,o),r.customElements?a(i):__sc_import_viewer("./p-0fdad1a5.js").then((()=>i))})().then((e=>(i(),o([["p-27f715f8",[[1,"vertex-viewer-pin-tool",{pinController:[1040],pinModel:[16],viewer:[16],tool:[1025],mode:[1025],primaryColor:[1025,"primary-color"],accentColor:[1025,"accent-color"],pins:[32],selectedPinId:[32],elementBounds:[32],projectionViewMatrix:[32]}]]],["p-
|
|
4
|
+
import{d as e,N as t,w as r,p as a,b as o}from"./p-d6fce4c1.js";import{g as i}from"./p-98e6a50e.js";import"./p-dfe5a97d.js";(()=>{const o=Array.from(e.querySelectorAll("script")).find((e=>new RegExp(`/${t}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===t)),i={};return i.resourcesUrl=new URL(".",new URL(o.getAttribute("data-resources-url")||o.src,r.location.href)).href,((a,o)=>{const i=`__sc_import_${t.replace(/\s|-/g,"_")}`;try{r[i]=new Function("w",`return import(w);//${Math.random()}`)}catch(t){const n=new Map;r[i]=t=>{const s=new URL(t,a).href;let l=n.get(s);if(!l){const t=e.createElement("script");t.type="module",t.crossOrigin=o.crossOrigin,t.src=URL.createObjectURL(new Blob([`import * as m from '${s}'; window.${i}.m = m;`],{type:"application/javascript"})),l=new Promise((e=>{t.onload=()=>{e(r[i].m),t.remove()}})),n.set(s,l),e.head.appendChild(t)}return l}}})(i.resourcesUrl,o),r.customElements?a(i):__sc_import_viewer("./p-0fdad1a5.js").then((()=>i))})().then((e=>(i(),o([["p-27f715f8",[[1,"vertex-viewer-pin-tool",{pinController:[1040],pinModel:[16],viewer:[16],tool:[1025],mode:[1025],primaryColor:[1025,"primary-color"],accentColor:[1025,"accent-color"],pins:[32],selectedPinId:[32],elementBounds:[32],projectionViewMatrix:[32]}]]],["p-43f7a708",[[1,"vertex-scene-tree",{overScanCount:[2,"over-scan-count"],viewerSelector:[1,"viewer-selector"],viewer:[1040],rowData:[16],config:[1],configEnv:[1,"config-env"],controller:[1040],metadataSearchExactMatch:[1028,"metadata-search-exact-match"],metadataSearchKeys:[1040],metadataKeys:[16],rows:[32],totalRows:[32],showLoader:[32],stateMap:[32],errorDetails:[32],attemptingRetry:[32],invalidateRows:[64],scrollToIndex:[64],scrollToItem:[64],expandAll:[64],collapseAll:[64],expandItem:[64],collapseItem:[64],toggleExpandItem:[64],toggleItemVisibility:[64],hideItem:[64],showItem:[64],selectItem:[64],deselectItem:[64],getRowAtIndex:[64],getRowForEvent:[64],getRowAtClientY:[64],filterItems:[64],selectFilteredItems:[64],fetchMetadataKeys:[64]},[[0,"search","handleSearch"]]]]],["p-533b1c63",[[1,"vertex-viewer-default-toolbar",{viewer:[16],placement:[1],direction:[1],animationsDisabled:[4,"animations-disabled"],animationMs:[2,"animation-ms"]}]]],["p-4f25e367",[[1,"vertex-viewer-markup",{arrowTemplateId:[1,"arrow-template-id"],circleTemplateId:[1,"circle-template-id"],freeformTemplateId:[1,"freeform-template-id"],tool:[1],disabled:[4],viewer:[16],selectedMarkupId:[1025,"selected-markup-id"],selectNew:[4,"select-new"],toSelectMarkupId:[32],pointerDownPosition:[32],addMarkup:[64],removeMarkup:[64],getMarkupElements:[64],getMarkupElement:[64]},[[0,"markupEnd","handleMarkupEnd"],[1,"pointerdown","handleMarkupPointerDown"]]]]],["p-3aae4bf1",[[1,"vertex-viewer-markup-tool",{arrowTemplateId:[1,"arrow-template-id"],circleTemplateId:[1,"circle-template-id"],freeformTemplateId:[1,"freeform-template-id"],tool:[1],disabled:[4],viewer:[16],stateMap:[32],reset:[64]}]]],["p-42acbbaf",[[1,"vertex-viewer-view-cube",{xPositiveLabel:[1,"x-positive-label"],xNegativeLabel:[1,"x-negative-label"],yPositiveLabel:[1,"y-positive-label"],yNegativeLabel:[1,"y-negative-label"],zPositiveLabel:[1,"z-positive-label"],zNegativeLabel:[1,"z-negative-label"],standardViewsOff:[4,"standard-views-off"],animationDuration:[2,"animation-duration"],triadOff:[4,"triad-off"],worldOrientation:[1040],camera:[1040],viewer:[16],boxLength:[32],triadPosition:[32]}]]],["p-b4321377",[[1,"vertex-viewer-measurement-distance",{start:[1040],startJson:[1,"start-json"],end:[1040],endJson:[1,"end-json"],distance:[1026],showAxisReferenceLines:[4,"show-axis-reference-lines"],snapDistance:[2,"snap-distance"],units:[1],fractionalDigits:[2,"fractional-digits"],labelFormatter:[16],anchorLabelOffset:[2,"anchor-label-offset"],lineCapLength:[2,"line-cap-length"],mode:[513],interactingAnchor:[1537,"interacting-anchor"],invalid:[1540],camera:[16],hitProvider:[16],indicatorPt:[1040],viewer:[16],measurementModel:[16],viewport:[32],elementBounds:[32],interactionCount:[32],internalCamera:[32],invalidateStateCounter:[32],stateMap:[32],measurementUnits:[32],computeElementMetrics:[64]}]]],["p-d8c578a9",[[1,"vertex-viewer-measurement-precise",{measurementModel:[16],measurementOverlays:[16],measurementController:[1040],measurableEntityTypes:[16],viewer:[16],configEnv:[1,"config-env"],config:[1]}]]],["p-6a4d8fb9",[[1,"vertex-viewer-box-query-tool",{viewer:[16],controller:[1040],model:[1040],operationType:[1,"operation-type"],mode:[1],details:[32]}]]],["p-8afcbd99",[[1,"vertex-scene-tree-table-cell",{node:[16],tree:[16],value:[1],placeholder:[1],hovered:[1028],isScrolling:[4,"is-scrolling"],expandToggle:[4,"expand-toggle"],visibilityToggle:[4,"visibility-toggle"],selectionHandler:[16],visibilityHandler:[16],expansionHandler:[16],hoverController:[16]}]]],["p-029fba92",[[1,"vertex-scene-tree-table-column",{initialWidth:[2,"initial-width"],minWidth:[2,"min-width"],maxWidth:[2,"max-width"]}]]],["p-b3540dce",[[1,"vertex-scene-tree-table-header"]]],["p-6406a70a",[[1,"vertex-scene-tree-table-resize-divider",{dragging:[32]}]]],["p-9cb99ea8",[[1,"vertex-scene-tree-toolbar-group"]]],["p-58b30f31",[[1,"vertex-viewer",{src:[1],clientId:[1,"client-id"],deviceId:[1025,"device-id"],config:[1],configEnv:[1,"config-env"],resolvedConfig:[1040],cameraControls:[4,"camera-controls"],cameraType:[1537,"camera-type"],keyboardControls:[4,"keyboard-controls"],rotateAroundTapPoint:[4,"rotate-around-tap-point"],token:[1025],depthBuffers:[1,"depth-buffers"],experimentalGhostingOpacity:[2,"experimental-ghosting-opacity"],noDefaultLights:[4,"no-default-lights"],experimentalRenderingOptions:[1,"experimental-rendering-options"],featureLines:[16],selectionHighlighting:[16],featureHighlighting:[16],featureMaps:[1,"feature-maps"],resizeDebounce:[2,"resize-debounce"],frame:[1040],stream:[1040],stencilBuffer:[1040],viewport:[1040],dimensions:[32],hostDimensions:[32],errorMessage:[32],cursor:[32],stateMap:[32],dispatchFrameDrawn:[64],registerInteractionHandler:[64],registerTapKeyInteraction:[64],getInteractionTarget_DEPRECATED:[64],addCursor:[64],getInteractionHandlers:[64],getKeyInteractions:[64],getBaseInteractionHandler:[64],getJwt:[64],load:[64],unload:[64],scene:[64],isSceneReady:[64]},[[0,"tap","handleTapEvent"]]]]],["p-886fb3a9",[[1,"vertex-viewer-measurement-details",{measurementModel:[16],measurementOverlays:[16],measurementOutcome:[1040],distanceUnits:[1,"distance-units"],angleUnits:[1,"angle-units"],fractionalDigits:[2,"fractional-digits"],distanceFormatter:[16],angleFormatter:[16],areaFormatter:[16],resultTypes:[16],overlay:[32],distanceMeasurementUnits:[32],angleMeasurementUnits:[32],areaMeasurementUnits:[32]}]]],["p-ecd99a3e",[[1,"vertex-viewer-transform-widget",{viewer:[16],position:[1040],controller:[1040],hovered:[1040]}]]],["p-2fd123c8",[[1,"vertex-viewer-icon",{name:[1],size:[1]}]]],["p-39535bb0",[[0,"vertex-viewer-pin-group",{pin:[16],matrix:[1040],projectionViewMatrix:[16],elementBounds:[1040],pinModel:[16],pinController:[16],selected:[4],invalidateStateCounter:[32]}]]],["p-bd5a302c",[[1,"vertex-viewer-dom-group",{position:[1040],positionJson:[1,"position"],rotation:[1040],rotationJson:[1,"rotation"],quaternion:[1040],quaternionJson:[1,"quaternion"],scale:[1040],scaleJson:[1,"scale"],matrix:[1040]}]]],["p-952a217d",[[1,"vertex-viewer-spinner",{size:[1]}]]],["p-9cc361f6",[[1,"vertex-scene-tree-search",{debounce:[2],disabled:[4],placeholder:[1],controller:[16],value:[1025],focused:[32],isSearching:[32],setFocus:[64]}],[1,"vertex-scene-tree-table-layout",{tree:[16],controller:[16],rows:[16],totalRows:[2,"total-rows"],rowHeight:[1026,"row-height"],overScanCount:[2,"over-scan-count"],rowData:[16],layoutOffset:[1026,"layout-offset"],scrollOffset:[1026,"scroll-offset"],layoutHeight:[1026,"layout-height"],layoutWidth:[1026,"layout-width"],viewportStartIndex:[1026,"viewport-start-index"],viewportEndIndex:[1026,"viewport-end-index"],columnGridLayout:[32],columnGridFixedLayout:[32],isComputingCellHeight:[32],lastDividerPointerPosition:[32],resizingColumnIndex:[32],isScrolling:[32],scrollTimer:[32],stateMap:[32],scrollToPosition:[64]}],[1,"vertex-scene-tree-toolbar"]]],["p-8ac7290a",[[1,"vertex-viewer-layer",{stretchOff:[516,"stretch-off"]}]]],["p-191156ad",[[1,"vertex-viewer-toolbar",{placement:[1],direction:[1]}],[1,"vertex-viewer-button"],[1,"vertex-viewer-toolbar-group",{direction:[1]}]]],["p-d6d5d5de",[[0,"vertex-viewer-pin-label",{pin:[16],elementBounds:[16],value:[1025],pinController:[16],focused:[32],computedScreenPosition:[32],textareaRows:[32],contentElBounds:[32],setFocus:[64]}],[0,"vertex-viewer-pin-label-line",{pinPoint:[16],labelPoint:[16],pin:[16]}]]],["p-92a65d2c",[[1,"vertex-viewer-measurement-overlays",{measurementOverlays:[16],camera:[1040],viewer:[16],overlays:[32]}],[1,"vertex-viewer-measurement-line",{start:[16],end:[16],capLength:[2,"cap-length"],pointerEvents:[1,"pointer-events"]}]]],["p-db8948a9",[[1,"vertex-viewer-dom-renderer",{drawMode:[1,"draw-mode"],viewer:[16],camera:[1040],depthBuffer:[1040],viewport:[32],invalidateFrameCounter:[32]},[[0,"propertyChange","handlePropertyChange"]]],[1,"vertex-viewer-dom-element",{position:[1040],positionJson:[1,"position"],rotation:[1040],rotationJson:[1,"rotation"],quaternion:[1040],quaternionJson:[1,"quaternion"],scale:[1040],scaleJson:[1,"scale"],matrix:[1040],occlusionOff:[4,"occlusion-off"],occluded:[516],billboardOff:[4,"billboard-off"],interactionsOff:[516,"interactions-off"]}]]],["p-1998284a",[[1,"vertex-viewer-markup-arrow",{start:[1040],startJson:[1,"start"],end:[1040],endJson:[1,"end"],mode:[513],viewer:[16],elementBounds:[32],dispose:[64]}],[1,"vertex-viewer-markup-circle",{bounds:[1040],boundsJson:[1,"bounds"],mode:[513],viewer:[16],elementBounds:[32],dispose:[64]}],[1,"vertex-viewer-markup-freeform",{points:[1040],pointsJson:[1,"points"],bounds:[1040],boundsJson:[1,"bounds"],mode:[513],viewer:[16],elementBounds:[32],screenPoints:[32],dispose:[64]}]]]],e))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertexvis/viewer",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.1-canary.1",
|
|
4
4
|
"description": "The Vertex SDK for viewing models.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Vertex Developers <support@vertexvis.com> (https://developer.vertexvis.com)",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"@stencil/core": "^2.16.1",
|
|
51
51
|
"@types/classnames": "^2.3.1",
|
|
52
52
|
"@vertexvis/frame-streaming-protos": "^0.9.0",
|
|
53
|
-
"@vertexvis/geometry": "0.16.
|
|
54
|
-
"@vertexvis/html-templates": "0.16.
|
|
53
|
+
"@vertexvis/geometry": "0.16.1-canary.1",
|
|
54
|
+
"@vertexvis/html-templates": "0.16.1-canary.1",
|
|
55
55
|
"@vertexvis/scene-tree-protos": "^0.1.15",
|
|
56
56
|
"@vertexvis/scene-view-protos": "^0.1.8",
|
|
57
|
-
"@vertexvis/stream-api": "0.16.
|
|
58
|
-
"@vertexvis/utils": "0.16.
|
|
57
|
+
"@vertexvis/stream-api": "0.16.1-canary.1",
|
|
58
|
+
"@vertexvis/utils": "0.16.1-canary.1",
|
|
59
59
|
"@vertexvis/web-workers": "^0.1.0",
|
|
60
60
|
"camel-case": "^4.1.2",
|
|
61
61
|
"classnames": "^2.3.1",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@vertexvis/rollup-plugin-vertexvis-copyright": "^0.4.1",
|
|
83
83
|
"@vertexvis/rollup-plugin-web-workers": "^0.1.0",
|
|
84
84
|
"@vertexvis/typescript-config-vertexvis": "1.1.0",
|
|
85
|
-
"@vertexwebsdk/build": "0.16.
|
|
85
|
+
"@vertexwebsdk/build": "0.16.1-canary.1",
|
|
86
86
|
"abortcontroller-polyfill": "^1.7.3",
|
|
87
87
|
"chance": "^1.1.8",
|
|
88
88
|
"eslint": "^8.17.0",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"typedoc": "^0.22.17",
|
|
98
98
|
"typescript": "^4.5.4"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "f766b39c5a9c1a9b50130632ba9a05c5a4594437"
|
|
101
101
|
}
|
package/readme.md
CHANGED
|
@@ -145,6 +145,25 @@ import { defineCustomElements } from '@vertexvis/viewer';
|
|
|
145
145
|
defineCustomElements();
|
|
146
146
|
```
|
|
147
147
|
|
|
148
|
+
## Interacting With Component Properties
|
|
149
|
+
|
|
150
|
+
Some of our components provide default values for properties that can be used
|
|
151
|
+
once the component is ready. Before interacting with these properties, the
|
|
152
|
+
`componentOnReady` method must be awaited to ensure the property is defined.
|
|
153
|
+
|
|
154
|
+
```js
|
|
155
|
+
function main() {
|
|
156
|
+
await defineCustomElements();
|
|
157
|
+
|
|
158
|
+
const sceneTree = document.querySelector("scene-tree");
|
|
159
|
+
await sceneTree.componentOnReady();
|
|
160
|
+
|
|
161
|
+
sceneTree.controller.stateChanged(state => {
|
|
162
|
+
console.log(`Scene Tree Row Count: ${state.totalRows}`);
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
```
|
|
166
|
+
|
|
148
167
|
## Polyfills
|
|
149
168
|
|
|
150
169
|
If you plan on targeting IE11 or Edge <= 18, you'll also need to supply
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare type MetadataKey = string;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**!
|
|
2
|
-
* Copyright (c) 2023 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-d216a866.js";import"./p-1812c82d.js";import"./p-9f805c70.js";import"./p-92fe4417.js";import"./p-46f40a43.js";import"./p-df8fbe56.js";import{V as r}from"./p-0a017be7.js";import{g as a,i as l,b as p,P as h,a as d,c as v}from"./p-e23af70c.js";import{c}from"./p-07aeee89.js";import"./p-fc7d8c03.js";import"./p-dfe5a97d.js";import"./p-934cbb97.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(){var i;this.setLabelObserver(),null==this.pinController&&(this.pinController=new d(this.pinModel)),this.selected&&(null===(i=this.labelEl)||void 0===i||i.setFocus())}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) 2023 Vertex Software LLC. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,c as i,h as s,H as e,g as n}from"./p-d6fce4c1.js";import{c as r}from"./p-07aeee89.js";import{d as o,r as h}from"./p-b74242dc.js";import{j as l,p as a}from"./p-d216a866.js";import{i as c,a as d}from"./p-c8c4343b.js";import{E as u}from"./p-fc7d8c03.js";import"./p-dfe5a97d.js";const v=class{constructor(s){t(this,s),this.search=i(this,"search",7),this.debounce=350,this.disabled=!1,this.placeholder=void 0,this.value="",this.focused=!1,this.isSearching=!1,this.handleTextInput=t=>{this.value=t.target.value,this.search.emit(this.value)},this.handleTextFocus=()=>{this.focused=!0},this.handleTextBlur=()=>{this.focused=!1},this.handleClear=t=>{t.preventDefault(),this.value="",this.search.emit(this.value),this.setFocus()}}async setFocus(){var t,i;"function"==typeof(null===(t=this.inputEl)||void 0===t?void 0:t.focus)&&(null===(i=this.inputEl)||void 0===i||i.focus())}controllerChanged(t){this.setupController()}componentDidLoad(){this.handleDebounceChanged(),this.setupController()}disconnectedCallback(){var t;null===(t=this.onStateChangeDisposable)||void 0===t||t.dispose()}render(){return s(e,null,s("div",{class:"root"},s("div",{class:"overlay icon icon-search"},s("slot",{name:"search-icon"},this.isSearching?s("vertex-viewer-spinner",{slot:"search-icon",size:"xs"}):s("vertex-viewer-icon",{name:"search",size:"sm"}))),s("input",{class:r("input",{background:this.focused||this.value.length>0}),type:"text",ref:t=>this.inputEl=t,placeholder:this.placeholder,disabled:this.disabled,value:this.value,onInput:this.handleTextInput,onFocus:this.handleTextFocus,onBlur:this.handleTextBlur}),s("div",{class:r("overlay overlay-clear",{show:this.value.length>0})},s("button",{class:"clear-btn icon",tabIndex:-1,onMouseDown:this.handleClear,disabled:this.disabled},s("slot",{name:"clear-icon"},s("vertex-viewer-icon",{name:"close-circle",size:"sm"}))))))}handleDebounceChanged(){this.search=o(this.search,this.debounce)}setupController(){var t,i;null===(t=this.onStateChangeDisposable)||void 0===t||t.dispose(),this.onStateChangeDisposable=null===(i=this.controller)||void 0===i?void 0:i.onStateChange.on((t=>{this.isSearching=t.isSearching}))}static get watchers(){return{controller:["controllerChanged"]}}};function p(t){return t.toLowerCase()}v.style="button{border:none;background:transparent;cursor:pointer;margin:0;padding:0}:host{--scene-tree-search-search-icon-offset:8px;--scene-tree-search-clear-button-offset:8px;--scene-tree-search-input-padding:0.5rem 32px;--scene-tree-search-input-border:none;--scene-tree-search-input-border-radius:0.25rem;--scene-tree-search-input-background:none;--scene-tree-search-focused-input-background:var(--neutral-200);--scene-tree-search-focused-input-outline:none;display:block;width:100%;font-size:0.875rem}.root{width:100%;position:relative}.input{background:var(--scene-tree-search-input-background);border:var(--scene-tree-search-input-border);border-radius:var(--scene-tree-search-input-border-radius);box-sizing:border-box;font-size:inherit;padding:var(--scene-tree-search-input-padding);outline:none;width:100%}.input.background{background:var(--scene-tree-search-focused-input-background);outline:var(--scene-tree-search-focused-input-outline)}.overlay{position:absolute;top:0;bottom:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.overlay-clear{display:none;right:var(--scene-tree-search-clear-button-offset)}.overlay-clear.show{display:flex}.icon{color:var(--neutral-700)}.icon-search{position:absolute;left:var(--scene-tree-search-search-icon-offset);pointer-events:none}.clear-btn{display:flex;align-items:center;justify-content:center;pointer-events:initial;cursor:pointer}.clear-btn:hover{color:var(--neutral-800)}.clear-btn:disabled{pointer-events:none;opacity:0.5}";var m=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],f=/[^A-Z0-9]+/gi;function b(t,i,s){return i instanceof RegExp?t.replace(i,s):i.reduce((function(t,i){return t.replace(i,s)}),t)}function w(t,i){var s=t.charAt(0),e=t.substr(1).toLowerCase();return i>0&&s>="0"&&s<="9"?"_"+s+e:""+s.toUpperCase()+e}function g(t,i){return 0===i?t.toLowerCase():w(t,i)}function y(t,i){return void 0===i&&(i={}),function(t,i){return void 0===i&&(i={}),function(t,i){void 0===i&&(i={});for(var s=i.splitRegexp,e=i.stripRegexp,n=void 0===e?f:e,r=i.transform,o=void 0===r?p:r,h=i.delimiter,l=void 0===h?" ":h,a=b(b(t,void 0===s?m:s,"$1\0$2"),n,"\0"),c=0,d=a.length;"\0"===a.charAt(c);)c++;for(;"\0"===a.charAt(d-1);)d--;return a.slice(c,d).split("\0").map(o).join(l)}(t,l({delimiter:"",transform:w},i))}(t,l({transform:g},i))}const x=/{{(.+)}}/;class z{constructor(t){this.bindings=t}bind(t){this.bindings.forEach((i=>i.bind(t)))}}class C{constructor(t,i){this.node=t,this.expr=i}}class $ extends C{constructor(t,i){super(t,i)}bind(t){const i=L(t,this.expr);i!==this.node.textContent&&(this.node.textContent=i)}}class D extends C{constructor(t,i,s){super(t,i),this.attr=s}bind(t){const i=L(t,this.expr);this.node.getAttribute(this.attr)!==i&&this.node.setAttribute(this.attr,i)}}class j extends C{constructor(t,i,s){super(t,i),this.prop=s}bind(t){const i=function(t,i){const s=E(i);return null!=s?R(t,s,!0):i}(t,this.expr);this.node[this.prop]!==i&&(this.node[this.prop]=i)}}class k extends C{constructor(t,i,s){super(t,i),this.eventName=s}bind(t){var i;const s=E(this.expr);if(null!=s){null===(i=this.disposable)||void 0===i||i.dispose();const e=R(t,s,!0);this.node.addEventListener(this.eventName,e),this.disposable={dispose:()=>{this.node.removeEventListener(this.eventName,e)}}}}}function M(t){const i=[];if(t.nodeType===Node.ELEMENT_NODE){const s=t;Array.from(s.attributes).filter((t=>x.test(t.value))).forEach((t=>{if(t.name.startsWith("event:")){const e=y(t.name.replace("event:",""));i.push(new k(s,t.value,e))}else if(t.name.startsWith("attr:"))i.push(new D(s,t.value,t.name.replace("attr:","")));else if(t.name.startsWith("prop:")){const e=y(t.name.replace("prop:",""));i.push(new j(s,t.value,e))}}))}else t.nodeType===Node.TEXT_NODE&&null!=t.textContent&&x.test(t.textContent)&&i.push(new $(t,t.textContent));for(let s=0;s<t.childNodes.length;s++)i.push(...M(t.childNodes[s]));return i}function E(t){const i=x.exec(t);return null!=i?i[1]:void 0}function L(t,i){const s=E(i);if(null!=s){const e=R(t,s,!0);return i.replace(`{{${s}}}`,null==e?void 0:e.toString())}return i}function R(t,i,s=!1){const[e,...n]=i.split(".");if(s&&0===n.length)return t;if(s&&n.length>0)return R(t,n.join("."),!1);{const i=t[e];return n.length>0?R(i,n.join("."),!1):i}}class T{constructor(t,i){this.container=t,this.elementFactory=i,this.instanceMap=new Map,this.elements=[]}swapHeadToTail(t){const i=this.elements.splice(0,t);return this.elements.splice(this.elements.length,0,...i),this.elements.concat()}swapTailToHead(t){const i=this.elements.splice(-t,t);return this.elements.splice(0,0,...i),this.elements.concat()}updateElements(t){const i=t-this.elements.length;if(i>0)for(let t=0;t<i;t++)this.createElement();else for(let t=0;t<-i;t++)this.deleteElement();return this.elements.concat()}updateData(t){this.elements.forEach(((i,s)=>{const e=this.instanceMap.get(i),n=t(s);null==e||e.bindings.bind(n)}))}updateElementFactory(t){this.elementFactory=t,this.updateElements(0)}iterateElements(t){this.elements.forEach(((i,s)=>{const e=this.instanceMap.get(i);t(i,e.bindings,s)}))}createElement(){const t=this.elementFactory();return this.elements.push(t.element),this.instanceMap.set(t.element,t),this.container.append(t.element),t}deleteElement(){const t=this.elements.pop();null!=t&&(this.instanceMap.delete(t),t.remove())}}function _(t){const i=t.content.cloneNode(!0);return{element:i.firstElementChild,bindings:new z(M(i))}}class H{constructor(){this.onStateChange=new u}setHovered(t){this.onStateChange.emit(t)}stateChanged(t){return this.onStateChange.on(t)}}const A=class{constructor(s){t(this,s),this.layoutRendered=i(this,"layoutRendered",7),this.rows=[],this.totalRows=0,this.rowHeight=24,this.overScanCount=25,this.layoutOffset=0,this.scrollOffset=0,this.viewportStartIndex=0,this.viewportEndIndex=0,this.columnGridLayout="1fr",this.columnGridFixedLayout="",this.isComputingCellHeight=!0,this.isScrolling=!1,this.stateMap={viewportRows:[],columnWidths:[],columnWidthPercentages:[]},this.lastStartIndex=0,this.columnElements=[],this.cellHoverController=new H,this.layoutColumns=()=>{const t=this.viewportEndIndex-this.viewportStartIndex+1,i=this.viewportStartIndex-this.lastStartIndex;this.lastStartIndex=this.viewportStartIndex,this.iterateColumns(((s,e,n)=>{e.updateElements(t),i>0?e.swapHeadToTail(i):e.swapTailToHead(-i),s.style.minHeight=this.rowHeight*this.totalRows+"px";const r=0===n?t=>`calc(${t} * 0.5rem)`:()=>"0";e.iterateElements(((t,i,s)=>{const e=this.stateMap.viewportRows[s];c(e)&&this.updateCell(e,t,i,s,r)}))}))},this.updateCell=(t,i,s,e,n)=>{i.style.position="absolute",i.style.top=(this.viewportStartIndex+e)*this.rowHeight+"px",i.style.boxSizing="border-box",i.style.height=`${this.rowHeight}px`,i.style.width="100%",i.style.paddingLeft=n(t.node.depth),i.tree=this.tree,i.node=t.node,i.hoverController=this.cellHoverController,i.isScrolling=this.isScrolling,s.bind(t)},this.updateLayoutPosition=()=>{h((()=>{var t;null!=this.tableElement&&(this.layoutOffset=null!==(t=this.tableElement.getBoundingClientRect().top)&&void 0!==t?t:0)}))},this.recomputeColumnWidths=()=>{const t=this.getLayoutWidth();null!=t&&this.stateMap.columnWidths.length===this.stateMap.columnWidthPercentages.length&&(this.stateMap.columnWidths=this.stateMap.columnWidthPercentages.map((i=>i*t)))},this.recomputeColumnPercentages=()=>{const t=this.getLayoutWidth();null!=t&&this.stateMap.columnWidths.length===this.stateMap.columnWidthPercentages.length&&(this.stateMap.columnWidthPercentages=this.stateMap.columnWidths.map((i=>i/t)))},this.computeInitialColumnWidths=()=>{this.stateMap.columnWidths=this.columnElements.map((t=>{var i;return null!==(i=t.initialWidth)&&void 0!==i?i:100}));const t=this.getLayoutWidth();null!=t&&(this.stateMap.columnWidthPercentages=this.columnElements.map((i=>{var s;return(null!==(s=i.initialWidth)&&void 0!==s?s:100)/t})))},this.updateColumnElements=()=>{this.columnElements=Array.from(this.hostEl.querySelectorAll("vertex-scene-tree-table-column"))},this.computeCellHeight=async()=>{var t;if(this.isComputingCellHeight&&this.columnElements.length>0){const i={index:0,node:{id:{hex:""},name:"Dummy row",expanded:!1,selected:!1,visible:!1,partiallyVisible:!1,isLeaf:!1,depth:0,columnsList:[],filterHit:!1},metadata:{},data:{}},{bindings:s,element:e}=this.createColumnCellInstance(this.columnElements[0]);s.bind(i),e.style.visibility="hidden",null===(t=this.columnElements[0])||void 0===t||t.appendChild(e),"function"==typeof e.componentOnReady&&await e.componentOnReady();let n=e.clientHeight,r=0;for(;0===n&&r<10;)n=await new Promise((t=>{setTimeout((()=>t(e.getBoundingClientRect().height)),5)})),r+=1;this.rowHeight=null!=n?n:this.rowHeight,e.remove(),this.isComputingCellHeight=!1}},this.computeHeaderHeight=()=>{var t;null==this.stateMap.headerHeight&&(this.stateMap.headerHeight=null===(t=this.headerElement)||void 0===t?void 0:t.getBoundingClientRect().height,this.hostEl.style.setProperty("--header-height",`${this.stateMap.headerHeight}px`))},this.computeColumnGridLayout=()=>{0===this.stateMap.columnWidths.length&&(this.stateMap.columnWidths=this.columnElements.map((t=>{var i;return null!==(i=t.initialWidth)&&void 0!==i?i:100})));const t=this.getLayoutWidth();null!=t&&0===this.stateMap.columnWidthPercentages.length&&(this.stateMap.columnWidthPercentages=this.columnElements.map((i=>{var s;return(null!==(s=i.initialWidth)&&void 0!==s?s:100)/t}))),this.columnGridLayout=`${this.stateMap.columnWidths.slice(0,-1).reduce(((t,i)=>`${t} ${i}px`),"")} 1fr`,this.columnGridFixedLayout=`${this.stateMap.columnWidths.reduce(((t,i)=>`${t} ${i}px`),"")}`},this.bindHeaderData=()=>{null==this.stateMap.headerInstances&&(this.stateMap.headerInstances=this.columnElements.map(((t,i)=>{var s;const e=this.createHeaderInstance(t);return null!=e&&(e.element.style.paddingRight=i===this.columnElements.length-1?"0":"var(--scene-tree-table-column-gap)",e.element.slot="header",e.element.style.gridColumnStart=`${i+1}`,e.element.style.gridColumnEnd=`${i+2}`,null===(s=this.hostEl)||void 0===s||s.appendChild(e.element)),e})).filter((t=>null!=t))),null==this.stateMap.headerDividerInstances&&(this.stateMap.headerDividerInstances=this.columnElements.slice(0,-1).map(((t,i)=>{var s;const e=this.createDividerInstance();return e.element.slot="divider",e.element.style.position="absolute",e.element.style.right="0",e.element.style.pointerEvents="auto",e.element.style.gridColumnStart=`${i+1}`,e.element.style.gridColumnEnd=`${i+2}`,null===(s=this.hostEl)||void 0===s||s.appendChild(e.element),e})))},this.rebindHeaderData=()=>{var t,i;this.removeDividerDragListeners(),null===(t=this.stateMap.headerInstances)||void 0===t||t.forEach((t=>t.element.remove())),null===(i=this.stateMap.headerDividerInstances)||void 0===i||i.forEach((t=>t.element.remove())),this.stateMap.headerInstances=void 0,this.stateMap.headerDividerInstances=void 0,this.bindHeaderData(),this.addDividerDragListeners()},this.createDividerPointerDownHandler=t=>i=>{var s,e;i.preventDefault(),i.stopPropagation(),this.lastDividerPointerPosition=a.create(Math.floor(i.clientX),Math.floor(i.clientY)),this.resizingColumnIndex=t,null===(e=null===(s=this.stateMap.headerDividerInstances)||void 0===s?void 0:s[t])||void 0===e||e.element.classList.add("dragging"),window.addEventListener("pointermove",this.handleDividerPointerMove),window.addEventListener("pointerup",this.handleDividerPointerUp)},this.handleDividerPointerMove=t=>{const i=a.create(Math.floor(t.clientX),Math.floor(t.clientY));if(null!=this.lastDividerPointerPosition&&null!=this.resizingColumnIndex){const t=a.subtract(this.lastDividerPointerPosition,i);Math.abs(t.x)>=1&&this.isValidResize(t,this.resizingColumnIndex)&&(this.stateMap.columnWidths[this.resizingColumnIndex]-=t.x,this.resizingColumnIndex+1<this.stateMap.columnWidths.length&&(this.stateMap.columnWidths[this.resizingColumnIndex+1]+=t.x),this.lastDividerPointerPosition=i,this.computeColumnGridLayout())}},this.handleDividerPointerUp=()=>{var t,i;null!=this.resizingColumnIndex&&(null===(i=null===(t=this.stateMap.headerDividerInstances)||void 0===t?void 0:t[this.resizingColumnIndex])||void 0===i||i.element.classList.remove("dragging")),this.lastDividerPointerPosition=void 0,this.resizingColumnIndex=void 0,this.recomputeColumnPercentages(),window.removeEventListener("pointermove",this.handleDividerPointerMove),window.removeEventListener("pointerup",this.handleDividerPointerUp)},this.isValidResize=(t,i)=>{var s,e,n,r;const o=this.columnElements[i],h=this.columnElements[i+1],l=this.stateMap.columnWidths[i],a=this.stateMap.columnWidths[i+1],c=null!==(s=o.minWidth)&&void 0!==s?s:0,d=null!==(e=o.maxWidth)&&void 0!==e?e:Number.MAX_SAFE_INTEGER,u=null!==(n=h.minWidth)&&void 0!==n?n:0,v=null!==(r=h.maxWidth)&&void 0!==r?r:Number.MAX_SAFE_INTEGER;return l-t.x>c&&l-t.x<d&&(null==h||a+t.x>u&&a+t.x<v)},this.handleScrollChanged=t=>{this.isScrolling=!0,this.scrollTimer=function(t,i,s=200){return window.clearTimeout(i),window.setTimeout(t,s)}((()=>{this.isScrolling=!1}),this.scrollTimer),this.scrollOffset=t.target.scrollTop,this.computeAndUpdateViewportRows()}}componentWillLoad(){this.updateColumnElements(),this.createPools(),this.headerResizeObserver=new ResizeObserver((()=>{this.stateMap.headerHeight=void 0,this.computeHeaderHeight(),this.updateLayoutPosition()})),this.resizeObserver=new ResizeObserver((()=>{this.updateLayoutPosition(),this.clearLayoutHeight(),this.clearLayoutWidth(),this.recomputeColumnWidths(),this.computeColumnGridLayout()}))}componentDidLoad(){var t,i,s;this.computeColumnGridLayout(),this.ensureDividerTemplateDefined(),this.computeCellHeight(),this.computeHeaderHeight(),this.computeInitialColumnWidths(),this.rebindHeaderData(),null===(t=this.tableElement)||void 0===t||t.addEventListener("scroll",this.handleScrollChanged,{passive:!0}),null!=this.headerElement&&(null===(i=this.headerResizeObserver)||void 0===i||i.observe(this.headerElement)),null===(s=this.resizeObserver)||void 0===s||s.observe(this.hostEl)}async componentWillRender(){await this.computeAndUpdateViewportRows()}componentDidRender(){this.layoutColumns(),this.layoutRendered.emit()}disconnectedCallback(){var t,i,s;null===(t=this.tableElement)||void 0===t||t.removeEventListener("scroll",this.handleScrollChanged),this.removeDividerDragListeners(),null===(i=this.headerResizeObserver)||void 0===i||i.disconnect(),null===(s=this.resizeObserver)||void 0===s||s.disconnect(),this.stateMap.columnWidths=[],this.stateMap.columnWidthPercentages=[]}async scrollToPosition(t,i){null!=this.tableElement&&function(t,i,s){t.scrollTo(Object.assign({top:i},s))}(this.tableElement,t,i)}render(){return s(e,null,s("div",{class:"header",ref:t=>this.headerElement=t,style:{gridTemplateColumns:this.columnGridFixedLayout,display:this.columnElements.length<=1?"none":"grid"}},s("slot",{name:"header"})),s("div",{class:"table",ref:t=>this.tableElement=t,style:{gridTemplateColumns:this.columnGridLayout}},s("slot",{onSlotchange:()=>{this.ensureDividerTemplateDefined(),this.updateColumnElements(),this.recreateColumnPools(),this.computeInitialColumnWidths(),this.rebindHeaderData(),this.computeColumnGridLayout()}})),s("div",{class:"divider-overlay",style:{gridTemplateColumns:this.columnGridFixedLayout}},s("slot",{name:"divider"})),null!=this.resizingColumnIndex&&s("div",{class:"resize-overlay"}))}computeViewportRows(){const t=this.getLayoutHeight();if(null!=t){const i=Math.ceil(t/this.rowHeight),s=Math.floor(this.scrollOffset/this.rowHeight),e=s+i,n=Math.max(0,s-this.overScanCount),r=Math.min(this.totalRows-1,e+this.overScanCount),o=this.getViewportRows(n,r);this.viewportStartIndex=n,this.viewportEndIndex=r,this.stateMap.viewportRows=o}}async computeAndUpdateViewportRows(){var t;this.computeViewportRows(),(null===(t=this.controller)||void 0===t?void 0:t.isConnected)&&await this.controller.updateActiveRowRange(this.viewportStartIndex,this.viewportEndIndex)}createPools(){null==this.stateMap.columnElementPools&&(this.stateMap.columnElementPools=this.columnElements.reduce(((t,i)=>t.set(i,new T(i,(()=>this.createColumnCellInstance(i))))),new WeakMap))}recreateColumnPools(){this.columnElements.forEach((t=>{var i,s,e;null==(null===(i=this.stateMap.columnElementPools)||void 0===i?void 0:i.get(t))?null===(s=this.stateMap.columnElementPools)||void 0===s||s.set(t,new T(t,(()=>this.createColumnCellInstance(t)))):null===(e=this.stateMap.columnElementPools.get(t))||void 0===e||e.updateElementFactory((()=>this.createColumnCellInstance(t)))}))}iterateColumns(t){this.columnElements.forEach(((i,s)=>{var e;const n=null===(e=this.stateMap.columnElementPools)||void 0===e?void 0:e.get(i);if(null==n)throw new Error("Cannot find pool for column");t(i,n,s)}))}ensureDividerTemplateDefined(){if(null==this.hostEl.querySelector('template[slot="divider"]')){const t=document.createElement("template");t.slot="divider",t.innerHTML='\n <vertex-scene-tree-table-resize-divider slot="divider">\n </vertex-scene-tree-table-resize-divider>\n ',this.hostEl.appendChild(t)}}createHeaderInstance(t){const i=t.querySelector('template[slot="header"]');if(null!=i)return _(i)}createDividerInstance(){const t=this.hostEl.querySelector('template[slot="divider"]');if(null!=t)return _(t);throw new Error("Table is missing divider template element")}createColumnCellInstance(t){const i=t.querySelector('template:not([slot="header"])');if(null!=i)return _(i);throw new Error("Column is missing cell template element")}addDividerDragListeners(){var t;this.stateMap.headerDividerListeners=null===(t=this.stateMap.headerDividerInstances)||void 0===t?void 0:t.map(((t,i)=>{const s=this.createDividerPointerDownHandler(i);return t.element.addEventListener("pointerdown",s),s}))}removeDividerDragListeners(){var t;if(null!=this.stateMap.headerDividerListeners){const i=this.stateMap.headerDividerListeners;null===(t=this.stateMap.headerDividerInstances)||void 0===t||t.forEach(((t,s)=>{const e=i[s];null!=e&&t.element.removeEventListener("pointerdown",e)})),this.stateMap.headerDividerListeners=void 0}}getViewportRows(t,i){return this.rows.slice(t,i+1).map((t=>null!=t?this.populateRowData(t):t))}populateRowData(t){var i;if(null!=this.rowData&&null!=t){const s=(null===(i=this.rowData)||void 0===i?void 0:i.call(this,t))||{};return Object.assign(Object.assign({},t),{data:s})}return t}getLayoutHeight(){return null==this.layoutHeight&&null!=this.tableElement&&(this.layoutHeight=d(this.tableElement)),this.layoutHeight}getLayoutWidth(){if(null==this.layoutWidth){const t=this.hostEl.clientWidth;t>0&&(this.layoutWidth=t)}return this.layoutWidth}clearLayoutHeight(){this.layoutHeight=void 0}clearLayoutWidth(){this.layoutWidth=void 0}get hostEl(){return n(this)}};A.style=":host{position:relative;display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden;font-size:0.825rem;--scene-tree-table-row-padding:2px 0px;--scene-tree-table-column-gap:0.5rem;--scene-tree-table-column-resize-cursor:col-resize}.header{position:relative;display:grid;width:100%;border-bottom:var(--scene-tree-toolbar-separator)}.table{position:relative;display:grid;width:100%;height:100%;overflow:auto}.resize-overlay{position:absolute;top:0;cursor:var(--scene-tree-table-column-resize-cursor);z-index:1000;width:100%;height:100%}.divider-overlay{position:absolute;top:0;display:grid;pointer-events:none;z-index:2000;width:100%;height:100%}";const W=class{constructor(i){t(this,i)}render(){return s(e,null,s("div",{class:"content"},s("slot",{name:"before"})),s("div",{class:"content content-primary"},s("slot",null)),s("div",{class:"content"},s("slot",{name:"after"})))}};W.style=":host{--scene-tree-toolbar-content-gap:8px;display:flex;padding:0.5rem}.content{display:flex;align-items:center}.content-primary{width:100%}::slotted(:not(:first-child)){margin-left:var(--scene-tree-toolbar-content-gap)}";export{v as vertex_scene_tree_search,A as vertex_scene_tree_table_layout,W as vertex_scene_tree_toolbar}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**!
|
|
2
|
-
* Copyright (c) 2023 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-d216a866.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-a12791aa.js";import{E as f}from"./p-fc7d8c03.js";import{C as d}from"./p-440c8174.js";import{i as v,f as w,g as b}from"./p-c8c4343b.js";import"./p-46f40a43.js";import"./p-934cbb97.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 m=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)})),y=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())&&y.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 y.Uuid;o.readMessage(r,y.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,y.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,y.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)})),x=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())&&y.Uuid.toObject(t,r),pager:(r=o.getPager())&&m.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 y.Uuid;o.readMessage(r,y.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new m.OffsetPager,o.readMessage(r,m.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,y.Uuid.serializeBinaryToWriter),null!=(r=t.getPager())&&o.writeMessage(2,r,m.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,y.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,m.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())&&m.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 m.OffsetCursor,o.readMessage(r,m.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,m.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,m.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())&&y.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&y.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 y.Uuid;o.readMessage(r,y.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new y.Uuid,o.readMessage(r,y.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,y.Uuid.serializeBinaryToWriter),null!=(r=t.getNodeId())&&o.writeMessage(2,r,y.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,y.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,y.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())&&y.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&y.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 y.Uuid;o.readMessage(r,y.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new y.Uuid,o.readMessage(r,y.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,y.Uuid.serializeBinaryToWriter),null!=(r=t.getNodeId())&&o.writeMessage(2,r,y.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,y.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,y.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())&&y.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 y.Uuid;o.readMessage(r,y.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,y.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,y.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())&&y.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 y.Uuid;o.readMessage(r,y.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,y.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,y.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())&&y.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 y.Uuid;o.readMessage(r,y.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,y.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,y.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)})),E=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:x.GetTreeRequest,responseType:x.GetTreeResponse},C.ExpandNode={methodName:"ExpandNode",service:C,requestStream:!1,responseStream:!1,requestType:x.ExpandNodeRequest,responseType:x.ExpandNodeResponse},C.CollapseNode={methodName:"CollapseNode",service:C,requestStream:!1,responseStream:!1,requestType:x.CollapseNodeRequest,responseType:x.CollapseNodeResponse},C.Subscribe={methodName:"Subscribe",service:C,requestStream:!1,responseStream:!0,requestType:x.SubscribeRequest,responseType:x.SubscribeResponse},C.Filter={methodName:"Filter",service:C,requestStream:!1,responseStream:!1,requestType:x.FilterRequest,responseType:x.FilterResponse},C.LocateItem={methodName:"LocateItem",service:C,requestStream:!1,responseStream:!1,requestType:x.LocateItemRequest,responseType:x.LocateItemResponse},C.ExpandAll={methodName:"ExpandAll",service:C,requestStream:!1,responseStream:!1,requestType:x.ExpandAllRequest,responseType:x.ExpandAllResponse},C.CollapseAll={methodName:"CollapseAll",service:C,requestStream:!1,responseStream:!1,requestType:x.CollapseAllRequest,responseType:x.CollapseAllResponse},C.GetNodeAncestors={methodName:"GetNodeAncestors",service:C,requestStream:!1,responseStream:!1,requestType:x.GetNodeAncestorsRequest,responseType:x.GetNodeAncestorsResponse},C.GetAvailableColumns={methodName:"GetAvailableColumns",service:C,requestStream:!1,responseStream:!1,requestType:x.GetAvailableColumnsRequest,responseType:x.GetAvailableColumnsResponse};var I=C;function R(t,o){this.serviceHost=t,this.options=o||{}}R.prototype.getTree=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=E.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!==E.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()}}},R.prototype.expandNode=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=E.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!==E.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()}}},R.prototype.collapseNode=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=E.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!==E.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()}}},R.prototype.subscribe=function(t,o){var r={data:[],end:[],status:[]},e=E.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()}}},R.prototype.filter=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=E.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!==E.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()}}},R.prototype.locateItem=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=E.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!==E.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()}}},R.prototype.expandAll=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=E.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!==E.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()}}},R.prototype.collapseAll=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=E.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!==E.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()}}},R.prototype.getNodeAncestors=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=E.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!==E.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()}}},R.prototype.getAvailableColumns=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=E.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!==E.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 O=R;const S=({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",t[t.UNAUTHORIZED=5]="UNAUTHORIZED"}(L||(L={}));class k{constructor(t,o,r){this.name=t,this.code=o,this.link=r,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";case L.UNAUTHORIZED:return"The tree was unauthorized to connect to the server. The associated Viewer may not be connected."}}(o)}}class T extends d{constructor(t,o){super(t,o),Object.setPrototypeOf(this,T.prototype)}}class P extends T{constructor(t,o){super(t,o),Object.setPrototypeOf(this,P.prototype)}}class M extends T{constructor(t,o){super(t,o),Object.setPrototypeOf(this,M.prototype)}}class N extends T{constructor(t,o){super(t,o),Object.setPrototypeOf(this,N.prototype)}}function j(t){return t.methodDefinition.methodName===I.Subscribe.methodName?l.grpc.WebsocketTransport()(t):l.grpc.CrossBrowserHttpTransport({withCredentials:!1})(t)}function q(t){this.message=t}(q.prototype=new Error).name="InvalidCharacterError";var A="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var o=String(t).replace(/=+$/,"");if(o.length%4==1)throw new q("'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 D(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(A(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 A(o)}}function V(t){this.message=t}(V.prototype=new Error).name="InvalidTokenError";class F{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 handleSubscriptionHandshakeTimeout(t,o){var r;const e=this.getState().connection;if(this.isConnectedState(e)&&null!=(null===(r=e.subscriptionStatusState)||void 0===r?void 0:r.attempt)&&e.subscriptionStatusState.attempt<F.MAX_SUBSCRIPTION_RETRY_COUNT){const r=e.subscriptionStatusState.attempt+1;console.warn(`Failed to subscribe within the allotted timeout. Retry attempt={${r}}`),e.subscriptionStatusState.stream.cancel(),this.clearHandshakeTimer();const n=await this.subscribe();this.invalidatePage(0),this.updateState(Object.assign(Object.assign({},this.state),{connection:Object.assign(Object.assign({},e),{type:"connected",subscription:{dispose:()=>n.cancel()},subscriptionStatusState:{attempt:r,stream:n}})})),this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.handleSubscriptionHandshakeTimeout(t,o)}),this.connectOptions.subscriptionHandshakeGracePeriodInMs)}else this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:o,details:new k("SUBSCRIPTION_FAILURE",L.SUBSCRIPTION_FAILURE)}}))}async connect(t){const{connection:o}=this.state,r=t();if(null==r)throw new P("Cannot connect scene tree. JWT is undefined");const{view:e}=function(t){return function(t,o){if("string"!=typeof t)throw new V("Invalid token specified");var r=!0===(o=o||{}).header?0:1;try{return JSON.parse(D(t.split(".")[r]))}catch(t){throw new V("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.");const[,o]=await Promise.all([this.fetchPage(0),this.subscribe()]);this.updateState(Object.assign(Object.assign({},this.state),{connection:{jwtProvider:t,sceneViewId:e,type:"connected",subscription:{dispose:()=>o.cancel()},subscriptionStatusState:{attempt:0,stream:o}}})),this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.handleSubscriptionHandshakeTimeout(t,e)}),this.connectOptions.subscriptionHandshakeGracePeriodInMs)}catch(o){this.ifErrorIsFatal(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||F.IDLE_RECONNECT_IN_SECONDS)}startConnectionLostReconnectTimer(){this.startReconnectTimer(this.connectOptions.lostConnectionReconnectInSeconds||F.LOST_CONNECTION_RECONNECT_IN_SECONDS)}startReconnectTimer(t){this.clearReconnectTimer(),this.reconnectTimer=window.setTimeout((()=>{"connected"===this.state.connection.type&&this.connect(this.state.connection.jwtProvider)}),1e3*t)}connectToViewer(t){const o=async()=>{if(null!=t.token){this.log("Scene tree controller found viewer JWT. Attempting connection.");try{await this.connect((()=>t.token))}catch(t){this.ifErrorIsFatal(t,(()=>{console.error("Scene tree controller errored connecting.",t)}))}}},r=()=>{this.log("Scene tree controller received scene ready"),o()};return o(),t.addEventListener("sceneReady",r),{dispose:()=>{t.removeEventListener("sceneReady",r),this.disconnect()}}}disconnect(t=!1){this.log(`Scene tree controller disconnecting [reset=${t}]`),this.clearHandshakeTimer(),this.clearReconnectTimer(),t&&(this.pages.clear(),this.activeRowRange=[]);const{connection:o}=this.state;"connected"===o.type&&o.subscription.dispose(),this.updateState({connection:{type:"disconnected",jwtProvider:o.jwtProvider,sceneViewId:o.sceneViewId},isSearching:!1,totalRows:t?0:this.state.totalRows,rows:t?[]:this.state.rows})}cancel(){this.log("Scene tree controller cancelled"),this.clearHandshakeTimer(),this.clearReconnectTimer(),this.pages.clear(),this.activeRowRange=[];const{connection:t}=this.state;"connected"===t.type&&t.subscription.dispose(),this.updateState({connection:{type:"cancelled",jwtProvider:t.jwtProvider,sceneViewId:t.sceneViewId},isSearching:!1,totalRows:0,rows:[]})}async collapseNode(t){return this.ifConnectionHasJwt((async o=>{const r=new y.Uuid;r.setHex(t);const e=new x.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 y.Uuid;r.setHex(t);const e=new x.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 x.CollapseAllRequest,t,o)))}))}async expandAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.expandAll(new x.ExpandAllRequest,t,o)))}))}async expandParentNodes(t){return this.ifConnectionHasJwt((async o=>{const r=new y.Uuid;r.setHex(t);const e=new x.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 N("Cannot locate node. Location index is undefined.");return s.value}))}async fetchNodeAncestors(t){return this.ifConnectionHasJwt((async o=>{const r=new y.Uuid;r.setHex(t);const e=new x.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 x.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 x.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 x.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),this.startConnectionLostReconnectTimer()})),o}))}async fetchUnloadedPagesInActiveRows(){const[t,o]=this.getPageIndexesForRange(this.activeRowRange[0],this.activeRowRange[1]),r=this.getNonLoadedPageIndexes(t-1,o+1);await Promise.all(r.map((t=>this.fetchPage(t))))}patchNodesInRange(t,o,r){const 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=w(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 m.OffsetPager;n.setOffset(t),n.setLimit(o);const i=new x.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 T("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 P("SceneTreeController cannot perform request. Viewer JWT is undefined.")}throw"cancelled"===o.type?new M("Request attempted, but controller was cancelled"):new T("SceneTreeController is not in connected state")}ifErrorIsFatal(t,o){t instanceof M||o()}getConnectionError(t){return"number"==typeof(o=t).code&&o.hasOwnProperty("metadata")?t.code===l.grpc.Code.FailedPrecondition?new k("SCENE_TREE_DISABLED",L.SCENE_TREE_DISABLED):t.code===l.grpc.Code.Unauthenticated?new k("UNAUTHORIZED",L.UNAUTHORIZED):new k("UNKNOWN",L.UNKNOWN):t instanceof P?new k("UNAUTHORIZED",L.UNAUTHORIZED):new k("UNKNOWN",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)}isConnectedState(t){return"connected"===t.type}}async function U(t,o,{suppliedCorrelationId:r}={}){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).show())).execute({suppliedCorrelationId:r})}async function _(t,o,{suppliedCorrelationId:r}={}){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).hide())).execute({suppliedCorrelationId:r})}F.IDLE_RECONNECT_IN_SECONDS=240,F.LOST_CONNECTION_RECONNECT_IN_SECONDS=2,F.MAX_SUBSCRIPTION_RETRY_COUNT=2;const G=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 _(t,o):await U(t,o)}))}async hideItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible&&await _(t,o)}))}async showItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible||await U(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,{append:e=!0,suppliedCorrelationId:n}){return(await t.scene()).items((t=>[...e?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withSceneTreeRange({start:o,end:r}))).select()])).execute({suppliedCorrelationId:n})}(t,o,i,e)}}else await async function(t,o,{append:r=!1,suppliedCorrelationId:e}){return(await t.scene()).items((t=>[...r?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withItemId(o))).select()])).execute({suppliedCorrelationId:e})}(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&&b(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;0===r.length&&console.warn("No metadata keys were found to perform the selection. Defaulting to ['VERTEX_SCENE_ITEM_NAME']");const e=r.length>0?r:["VERTEX_SCENE_ITEM_NAME"];await async function(t,o,r,e,{append:n=!1,suppliedCorrelationId:i}){return(await t.scene()).items((t=>[...n?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withMetadata(o,r,e))).select()])).execute({suppliedCorrelationId:i})}(this.viewer,t,e,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,o;null===(t=this.stateMap.viewerDisposable)||void 0===t||t.dispose(),null===(o=this.controller)||void 0===o||o.cancel()}componentWillLoad(){if(null==this.controller){const{sceneTreeHost:t}=this.getConfig().network,o=new O(t,this.getConfig().flags.grpcUseStreamingWebSocketTransport?{transport:j}:void 0);this.controller=new F(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("MISSING_VIEWER",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(S,{details:o},t("button",{class:"button button-secondary",onClick:()=>this.retryConnectToViewer(),disabled:this.attemptingRetry},"Retry")):t(S,{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("DISCONNECTED",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"]}}};G.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{G as vertex_scene_tree}
|