@vertexvis/viewer-react 0.24.5-canary.4 → 1.0.0-testing.0

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.
@@ -1,253 +1,464 @@
1
- import React, { createElement } from 'react';
2
- import 'react-dom';
1
+ 'use client';
2
+ import React from 'react';
3
+ import { VertexSceneTreeNotificationBanner as VertexSceneTreeNotificationBanner$1, defineCustomElement as defineCustomElement$1 } from '@vertexvis/viewer/dist/components/vertex-scene-tree-notification-banner.js';
4
+ import { VertexSceneTreeSearch as VertexSceneTreeSearch$1, defineCustomElement as defineCustomElement$2 } from '@vertexvis/viewer/dist/components/vertex-scene-tree-search.js';
5
+ import { VertexSceneTreeTableCell as VertexSceneTreeTableCell$1, defineCustomElement as defineCustomElement$3 } from '@vertexvis/viewer/dist/components/vertex-scene-tree-table-cell.js';
6
+ import { VertexSceneTreeTableColumn as VertexSceneTreeTableColumn$1, defineCustomElement as defineCustomElement$4 } from '@vertexvis/viewer/dist/components/vertex-scene-tree-table-column.js';
7
+ import { VertexSceneTreeTableHeader as VertexSceneTreeTableHeader$1, defineCustomElement as defineCustomElement$5 } from '@vertexvis/viewer/dist/components/vertex-scene-tree-table-header.js';
8
+ import { VertexSceneTreeTableLayout as VertexSceneTreeTableLayout$1, defineCustomElement as defineCustomElement$6 } from '@vertexvis/viewer/dist/components/vertex-scene-tree-table-layout.js';
9
+ import { VertexSceneTreeTableResizeDivider as VertexSceneTreeTableResizeDivider$1, defineCustomElement as defineCustomElement$7 } from '@vertexvis/viewer/dist/components/vertex-scene-tree-table-resize-divider.js';
10
+ import { VertexSceneTreeToolbarGroup as VertexSceneTreeToolbarGroup$1, defineCustomElement as defineCustomElement$9 } from '@vertexvis/viewer/dist/components/vertex-scene-tree-toolbar-group.js';
11
+ import { VertexSceneTreeToolbar as VertexSceneTreeToolbar$1, defineCustomElement as defineCustomElement$8 } from '@vertexvis/viewer/dist/components/vertex-scene-tree-toolbar.js';
12
+ import { VertexSceneTree as VertexSceneTree$1, defineCustomElement } from '@vertexvis/viewer/dist/components/vertex-scene-tree.js';
13
+ import { VertexViewerAnnotationCallout as VertexViewerAnnotationCallout$1, defineCustomElement as defineCustomElement$b } from '@vertexvis/viewer/dist/components/vertex-viewer-annotation-callout.js';
14
+ import { VertexViewerBoxQueryTool as VertexViewerBoxQueryTool$1, defineCustomElement as defineCustomElement$c } from '@vertexvis/viewer/dist/components/vertex-viewer-box-query-tool.js';
15
+ import { VertexViewerButton as VertexViewerButton$1, defineCustomElement as defineCustomElement$d } from '@vertexvis/viewer/dist/components/vertex-viewer-button.js';
16
+ import { VertexViewerDefaultToolbar as VertexViewerDefaultToolbar$1, defineCustomElement as defineCustomElement$e } from '@vertexvis/viewer/dist/components/vertex-viewer-default-toolbar.js';
17
+ import { VertexViewerDomElement as VertexViewerDomElement$1, defineCustomElement as defineCustomElement$f } from '@vertexvis/viewer/dist/components/vertex-viewer-dom-element.js';
18
+ import { VertexViewerDomGroup as VertexViewerDomGroup$1, defineCustomElement as defineCustomElement$g } from '@vertexvis/viewer/dist/components/vertex-viewer-dom-group.js';
19
+ import { VertexViewerDomRenderer as VertexViewerDomRenderer$1, defineCustomElement as defineCustomElement$h } from '@vertexvis/viewer/dist/components/vertex-viewer-dom-renderer.js';
20
+ import { VertexViewerHitResultIndicator as VertexViewerHitResultIndicator$1, defineCustomElement as defineCustomElement$i } from '@vertexvis/viewer/dist/components/vertex-viewer-hit-result-indicator.js';
21
+ import { VertexViewerIcon as VertexViewerIcon$1, defineCustomElement as defineCustomElement$j } from '@vertexvis/viewer/dist/components/vertex-viewer-icon.js';
22
+ import { VertexViewerLayer as VertexViewerLayer$1, defineCustomElement as defineCustomElement$k } from '@vertexvis/viewer/dist/components/vertex-viewer-layer.js';
23
+ import { VertexViewerMarkupArrow as VertexViewerMarkupArrow$1, defineCustomElement as defineCustomElement$m } from '@vertexvis/viewer/dist/components/vertex-viewer-markup-arrow.js';
24
+ import { VertexViewerMarkupCircle as VertexViewerMarkupCircle$1, defineCustomElement as defineCustomElement$n } from '@vertexvis/viewer/dist/components/vertex-viewer-markup-circle.js';
25
+ import { VertexViewerMarkupFreeform as VertexViewerMarkupFreeform$1, defineCustomElement as defineCustomElement$o } from '@vertexvis/viewer/dist/components/vertex-viewer-markup-freeform.js';
26
+ import { VertexViewerMarkupTool as VertexViewerMarkupTool$1, defineCustomElement as defineCustomElement$p } from '@vertexvis/viewer/dist/components/vertex-viewer-markup-tool.js';
27
+ import { VertexViewerMarkup as VertexViewerMarkup$1, defineCustomElement as defineCustomElement$l } from '@vertexvis/viewer/dist/components/vertex-viewer-markup.js';
28
+ import { VertexViewerMeasurementDetails as VertexViewerMeasurementDetails$1, defineCustomElement as defineCustomElement$q } from '@vertexvis/viewer/dist/components/vertex-viewer-measurement-details.js';
29
+ import { VertexViewerMeasurementDistance as VertexViewerMeasurementDistance$1, defineCustomElement as defineCustomElement$r } from '@vertexvis/viewer/dist/components/vertex-viewer-measurement-distance.js';
30
+ import { VertexViewerMeasurementLine as VertexViewerMeasurementLine$1, defineCustomElement as defineCustomElement$s } from '@vertexvis/viewer/dist/components/vertex-viewer-measurement-line.js';
31
+ import { VertexViewerMeasurementOverlays as VertexViewerMeasurementOverlays$1, defineCustomElement as defineCustomElement$t } from '@vertexvis/viewer/dist/components/vertex-viewer-measurement-overlays.js';
32
+ import { VertexViewerMeasurementPrecise as VertexViewerMeasurementPrecise$1, defineCustomElement as defineCustomElement$u } from '@vertexvis/viewer/dist/components/vertex-viewer-measurement-precise.js';
33
+ import { VertexViewerPinGroup as VertexViewerPinGroup$1, defineCustomElement as defineCustomElement$v } from '@vertexvis/viewer/dist/components/vertex-viewer-pin-group.js';
34
+ import { VertexViewerPinLabelLine as VertexViewerPinLabelLine$1, defineCustomElement as defineCustomElement$x } from '@vertexvis/viewer/dist/components/vertex-viewer-pin-label-line.js';
35
+ import { VertexViewerPinLabel as VertexViewerPinLabel$1, defineCustomElement as defineCustomElement$w } from '@vertexvis/viewer/dist/components/vertex-viewer-pin-label.js';
36
+ import { VertexViewerPinTool as VertexViewerPinTool$1, defineCustomElement as defineCustomElement$y } from '@vertexvis/viewer/dist/components/vertex-viewer-pin-tool.js';
37
+ import { VertexViewerSpinner as VertexViewerSpinner$1, defineCustomElement as defineCustomElement$z } from '@vertexvis/viewer/dist/components/vertex-viewer-spinner.js';
38
+ import { VertexViewerTeleportTool as VertexViewerTeleportTool$1, defineCustomElement as defineCustomElement$A } from '@vertexvis/viewer/dist/components/vertex-viewer-teleport-tool.js';
39
+ import { VertexViewerToolbarGroup as VertexViewerToolbarGroup$1, defineCustomElement as defineCustomElement$C } from '@vertexvis/viewer/dist/components/vertex-viewer-toolbar-group.js';
40
+ import { VertexViewerToolbar as VertexViewerToolbar$1, defineCustomElement as defineCustomElement$B } from '@vertexvis/viewer/dist/components/vertex-viewer-toolbar.js';
41
+ import { VertexViewerTransformWidget as VertexViewerTransformWidget$1, defineCustomElement as defineCustomElement$D } from '@vertexvis/viewer/dist/components/vertex-viewer-transform-widget.js';
42
+ import { VertexViewerViewCube as VertexViewerViewCube$1, defineCustomElement as defineCustomElement$E } from '@vertexvis/viewer/dist/components/vertex-viewer-view-cube.js';
43
+ import { VertexViewerWalkModeTool as VertexViewerWalkModeTool$1, defineCustomElement as defineCustomElement$F } from '@vertexvis/viewer/dist/components/vertex-viewer-walk-mode-tool.js';
44
+ import { VertexViewer as VertexViewer$1, defineCustomElement as defineCustomElement$a } from '@vertexvis/viewer/dist/components/vertex-viewer.js';
3
45
 
4
- const dashToPascalCase = (str) => str
5
- .toLowerCase()
6
- .split('-')
7
- .map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1))
8
- .join('');
9
- const camelToDashCase = (str) => str.replace(/([A-Z])/g, (m) => `-${m[0].toLowerCase()}`);
46
+ /**
47
+ * @license
48
+ * Copyright 2018 Google LLC
49
+ * SPDX-License-Identifier: BSD-3-Clause
50
+ */
51
+ const e=new Set(["children","localName","ref","style","className"]),n=new WeakMap,t=(e,t,o,l,a)=>{const s=a?.[t];void 0===s?(e[t]=o,null==o&&t in HTMLElement.prototype&&e.removeAttribute(t)):o!==l&&((e,t,o)=>{let l=n.get(e);void 0===l&&n.set(e,l=new Map);let a=l.get(t);void 0!==o?void 0===a?(l.set(t,a={handleEvent:o}),e.addEventListener(t,a)):a.handleEvent=o:void 0!==a&&(l.delete(t),e.removeEventListener(t,a));})(e,s,o);},o=({react:n,tagName:o,elementClass:l,events:a,displayName:s})=>{const c=new Set(Object.keys(a??{})),r=n.forwardRef(((s,r)=>{const i=n.useRef(new Map),d=n.useRef(null),f={},u={};for(const[n,t]of Object.entries(s))e.has(n)?f["className"===n?"class":n]=t:c.has(n)||n in l.prototype?u[n]=t:f[n]=t;return n.useLayoutEffect((()=>{if(null===d.current)return;const e=new Map;for(const n in u)t(d.current,n,s[n],i.current.get(n),a),i.current.delete(n),e.set(n,s[n]);for(const[e,n]of i.current)t(d.current,e,void 0,n,a);i.current=e;})),n.useLayoutEffect((()=>{d.current?.removeAttribute("defer-hydration");}),[]),f.suppressHydrationWarning=!0,n.createElement(o,{...f,ref:n.useCallback((e=>{d.current=e,"function"==typeof r?r(e):null!==r&&(r.current=e);}),[r])})}));return r.displayName=s??l.name,r};
10
52
 
11
- const attachProps = (node, newProps, oldProps = {}) => {
12
- // some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first
13
- if (node instanceof Element) {
14
- // add any classes in className to the class list
15
- const className = getClassName(node.classList, newProps, oldProps);
16
- if (className !== '') {
17
- node.className = className;
18
- }
19
- Object.keys(newProps).forEach((name) => {
20
- if (name === 'children' ||
21
- name === 'style' ||
22
- name === 'ref' ||
23
- name === 'class' ||
24
- name === 'className' ||
25
- name === 'forwardedRef') {
26
- return;
27
- }
28
- if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
29
- const eventName = name.substring(2);
30
- const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);
31
- if (!isCoveredByReact(eventNameLc)) {
32
- syncEvent(node, eventNameLc, newProps[name]);
33
- }
34
- }
35
- else {
36
- node[name] = newProps[name];
37
- const propType = typeof newProps[name];
38
- if (propType === 'string') {
39
- node.setAttribute(camelToDashCase(name), newProps[name]);
40
- }
41
- }
42
- });
43
- }
44
- };
45
- const getClassName = (classList, newProps, oldProps) => {
46
- const newClassProp = newProps.className || newProps.class;
47
- const oldClassProp = oldProps.className || oldProps.class;
48
- // map the classes to Maps for performance
49
- const currentClasses = arrayToMap(classList);
50
- const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);
51
- const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);
52
- const finalClassNames = [];
53
- // loop through each of the current classes on the component
54
- // to see if it should be a part of the classNames added
55
- currentClasses.forEach((currentClass) => {
56
- if (incomingPropClasses.has(currentClass)) {
57
- // add it as its already included in classnames coming in from newProps
58
- finalClassNames.push(currentClass);
59
- incomingPropClasses.delete(currentClass);
60
- }
61
- else if (!oldPropClasses.has(currentClass)) {
62
- // add it as it has NOT been removed by user
63
- finalClassNames.push(currentClass);
64
- }
65
- });
66
- incomingPropClasses.forEach((s) => finalClassNames.push(s));
67
- return finalClassNames.join(' ');
68
- };
69
- /**
70
- * Transforms a React event name to a browser event name.
71
- */
72
- const transformReactEventName = (eventNameSuffix) => {
73
- switch (eventNameSuffix) {
74
- case 'doubleclick':
75
- return 'dblclick';
76
- }
77
- return eventNameSuffix;
78
- };
79
- /**
80
- * Checks if an event is supported in the current execution environment.
81
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
82
- */
83
- const isCoveredByReact = (eventNameSuffix) => {
84
- if (typeof document === 'undefined') {
85
- return true;
86
- }
87
- else {
88
- const eventName = 'on' + transformReactEventName(eventNameSuffix);
89
- let isSupported = eventName in document;
90
- if (!isSupported) {
91
- const element = document.createElement('div');
92
- element.setAttribute(eventName, 'return;');
93
- isSupported = typeof element[eventName] === 'function';
94
- }
95
- return isSupported;
96
- }
97
- };
98
- const syncEvent = (node, eventName, newEventHandler) => {
99
- const eventStore = node.__events || (node.__events = {});
100
- const oldEventHandler = eventStore[eventName];
101
- // Remove old listener so they don't double up.
102
- if (oldEventHandler) {
103
- node.removeEventListener(eventName, oldEventHandler);
104
- }
105
- // Bind new listener.
106
- node.addEventListener(eventName, (eventStore[eventName] = function handler(e) {
107
- if (newEventHandler) {
108
- newEventHandler.call(this, e);
109
- }
110
- }));
111
- };
112
- const arrayToMap = (arr) => {
113
- const map = new Map();
114
- arr.forEach((s) => map.set(s, s));
115
- return map;
53
+ const r = ({
54
+ defineCustomElement: e,
55
+ tagName: o$1,
56
+ transformTag: n,
57
+ ...t
58
+ }) => {
59
+ typeof e < "u" && e();
60
+ const a = n ? n(o$1) : o$1;
61
+ return o({ ...t, tagName: a });
116
62
  };
117
63
 
118
- const setRef = (ref, value) => {
119
- if (typeof ref === 'function') {
120
- ref(value);
121
- }
122
- else if (ref != null) {
123
- // Cast as a MutableRef so we can assign current
124
- ref.current = value;
125
- }
126
- };
127
- const mergeRefs = (...refs) => {
128
- return (value) => {
129
- refs.forEach((ref) => {
130
- setRef(ref, value);
131
- });
132
- };
133
- };
134
- const createForwardRef = (ReactComponent, displayName) => {
135
- const forwardRef = (props, ref) => {
136
- return React.createElement(ReactComponent, { ...props, forwardedRef: ref });
137
- };
138
- forwardRef.displayName = displayName;
139
- return React.forwardRef(forwardRef);
140
- };
141
-
142
- const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
143
- if (defineCustomElement !== undefined) {
144
- defineCustomElement();
145
- }
146
- const displayName = dashToPascalCase(tagName);
147
- const ReactComponent = class extends React.Component {
148
- constructor(props) {
149
- super(props);
150
- this.setComponentElRef = (element) => {
151
- this.componentEl = element;
152
- };
153
- }
154
- componentDidMount() {
155
- this.componentDidUpdate(this.props);
156
- }
157
- componentDidUpdate(prevProps) {
158
- attachProps(this.componentEl, this.props, prevProps);
159
- }
160
- render() {
161
- const { children, forwardedRef, style, className, ref, ...cProps } = this.props;
162
- let propsToPass = Object.keys(cProps).reduce((acc, name) => {
163
- const value = cProps[name];
164
- if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
165
- const eventName = name.substring(2).toLowerCase();
166
- if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {
167
- acc[name] = value;
168
- }
169
- }
170
- else {
171
- // we should only render strings, booleans, and numbers as attrs in html.
172
- // objects, functions, arrays etc get synced via properties on mount.
173
- const type = typeof value;
174
- if (type === 'string' || type === 'boolean' || type === 'number') {
175
- acc[camelToDashCase(name)] = value;
176
- }
177
- }
178
- return acc;
179
- }, {});
180
- if (manipulatePropsFunction) {
181
- propsToPass = manipulatePropsFunction(this.props, propsToPass);
182
- }
183
- const newProps = {
184
- ...propsToPass,
185
- ref: mergeRefs(forwardedRef, this.setComponentElRef),
186
- style,
187
- };
188
- /**
189
- * We use createElement here instead of
190
- * React.createElement to work around a
191
- * bug in Vite (https://github.com/vitejs/vite/issues/6104).
192
- * React.createElement causes all elements to be rendered
193
- * as <tagname> instead of the actual Web Component.
194
- */
195
- return createElement(tagName, newProps, children);
196
- }
197
- static get displayName() {
198
- return displayName;
199
- }
200
- };
201
- // If context was passed to createReactComponent then conditionally add it to the Component Class
202
- if (ReactComponentContext) {
203
- ReactComponent.contextType = ReactComponentContext;
204
- }
205
- return createForwardRef(ReactComponent, displayName);
206
- };
207
-
208
- /* eslint-disable */
209
- const VertexSceneTree = /*@__PURE__*/ createReactComponent('vertex-scene-tree');
210
- const VertexSceneTreeNotificationBanner = /*@__PURE__*/ createReactComponent('vertex-scene-tree-notification-banner');
211
- const VertexSceneTreeSearch = /*@__PURE__*/ createReactComponent('vertex-scene-tree-search');
212
- const VertexSceneTreeTableCell = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-cell');
213
- const VertexSceneTreeTableColumn = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-column');
214
- const VertexSceneTreeTableHeader = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-header');
215
- const VertexSceneTreeTableLayout = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-layout');
216
- const VertexSceneTreeTableResizeDivider = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-resize-divider');
217
- const VertexSceneTreeToolbar = /*@__PURE__*/ createReactComponent('vertex-scene-tree-toolbar');
218
- const VertexSceneTreeToolbarGroup = /*@__PURE__*/ createReactComponent('vertex-scene-tree-toolbar-group');
219
- const VertexViewer = /*@__PURE__*/ createReactComponent('vertex-viewer');
220
- const VertexViewerAnnotationCallout = /*@__PURE__*/ createReactComponent('vertex-viewer-annotation-callout');
221
- const VertexViewerBoxQueryTool = /*@__PURE__*/ createReactComponent('vertex-viewer-box-query-tool');
222
- const VertexViewerButton = /*@__PURE__*/ createReactComponent('vertex-viewer-button');
223
- const VertexViewerDefaultToolbar = /*@__PURE__*/ createReactComponent('vertex-viewer-default-toolbar');
224
- const VertexViewerDomElement = /*@__PURE__*/ createReactComponent('vertex-viewer-dom-element');
225
- const VertexViewerDomGroup = /*@__PURE__*/ createReactComponent('vertex-viewer-dom-group');
226
- const VertexViewerDomRenderer = /*@__PURE__*/ createReactComponent('vertex-viewer-dom-renderer');
227
- const VertexViewerHitResultIndicator = /*@__PURE__*/ createReactComponent('vertex-viewer-hit-result-indicator');
228
- const VertexViewerIcon = /*@__PURE__*/ createReactComponent('vertex-viewer-icon');
229
- const VertexViewerLayer = /*@__PURE__*/ createReactComponent('vertex-viewer-layer');
230
- const VertexViewerMarkup = /*@__PURE__*/ createReactComponent('vertex-viewer-markup');
231
- const VertexViewerMarkupArrow = /*@__PURE__*/ createReactComponent('vertex-viewer-markup-arrow');
232
- const VertexViewerMarkupCircle = /*@__PURE__*/ createReactComponent('vertex-viewer-markup-circle');
233
- const VertexViewerMarkupFreeform = /*@__PURE__*/ createReactComponent('vertex-viewer-markup-freeform');
234
- const VertexViewerMarkupTool = /*@__PURE__*/ createReactComponent('vertex-viewer-markup-tool');
235
- const VertexViewerMeasurementDetails = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-details');
236
- const VertexViewerMeasurementDistance = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-distance');
237
- const VertexViewerMeasurementLine = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-line');
238
- const VertexViewerMeasurementOverlays = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-overlays');
239
- const VertexViewerMeasurementPrecise = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-precise');
240
- const VertexViewerPinGroup = /*@__PURE__*/ createReactComponent('vertex-viewer-pin-group');
241
- const VertexViewerPinLabel = /*@__PURE__*/ createReactComponent('vertex-viewer-pin-label');
242
- const VertexViewerPinLabelLine = /*@__PURE__*/ createReactComponent('vertex-viewer-pin-label-line');
243
- const VertexViewerPinTool = /*@__PURE__*/ createReactComponent('vertex-viewer-pin-tool');
244
- const VertexViewerSpinner = /*@__PURE__*/ createReactComponent('vertex-viewer-spinner');
245
- const VertexViewerTeleportTool = /*@__PURE__*/ createReactComponent('vertex-viewer-teleport-tool');
246
- const VertexViewerToolbar = /*@__PURE__*/ createReactComponent('vertex-viewer-toolbar');
247
- const VertexViewerToolbarGroup = /*@__PURE__*/ createReactComponent('vertex-viewer-toolbar-group');
248
- const VertexViewerTransformWidget = /*@__PURE__*/ createReactComponent('vertex-viewer-transform-widget');
249
- const VertexViewerViewCube = /*@__PURE__*/ createReactComponent('vertex-viewer-view-cube');
250
- const VertexViewerWalkModeTool = /*@__PURE__*/ createReactComponent('vertex-viewer-walk-mode-tool');
64
+ const VertexSceneTree = /*@__PURE__*/ r({
65
+ tagName: 'vertex-scene-tree',
66
+ elementClass: VertexSceneTree$1,
67
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
68
+ react: React,
69
+ events: {
70
+ onConnectionError: 'connectionError',
71
+ onFirstRowRendered: 'firstRowRendered'
72
+ },
73
+ defineCustomElement: defineCustomElement
74
+ });
75
+ const VertexSceneTreeNotificationBanner = /*@__PURE__*/ r({
76
+ tagName: 'vertex-scene-tree-notification-banner',
77
+ elementClass: VertexSceneTreeNotificationBanner$1,
78
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
79
+ react: React,
80
+ events: { onAction: 'action' },
81
+ defineCustomElement: defineCustomElement$1
82
+ });
83
+ const VertexSceneTreeSearch = /*@__PURE__*/ r({
84
+ tagName: 'vertex-scene-tree-search',
85
+ elementClass: VertexSceneTreeSearch$1,
86
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
87
+ react: React,
88
+ events: {
89
+ onSearch: 'search',
90
+ onSearchCompleted: 'searchCompleted'
91
+ },
92
+ defineCustomElement: defineCustomElement$2
93
+ });
94
+ const VertexSceneTreeTableCell = /*@__PURE__*/ r({
95
+ tagName: 'vertex-scene-tree-table-cell',
96
+ elementClass: VertexSceneTreeTableCell$1,
97
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
98
+ react: React,
99
+ events: {
100
+ onExpandToggled: 'expandToggled',
101
+ onVisibilityToggled: 'visibilityToggled',
102
+ onSelectionToggled: 'selectionToggled',
103
+ onIsolatePressed: 'isolatePressed',
104
+ onCellLoaded: 'cellLoaded'
105
+ },
106
+ defineCustomElement: defineCustomElement$3
107
+ });
108
+ const VertexSceneTreeTableColumn = /*@__PURE__*/ r({
109
+ tagName: 'vertex-scene-tree-table-column',
110
+ elementClass: VertexSceneTreeTableColumn$1,
111
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
112
+ react: React,
113
+ events: {},
114
+ defineCustomElement: defineCustomElement$4
115
+ });
116
+ const VertexSceneTreeTableHeader = /*@__PURE__*/ r({
117
+ tagName: 'vertex-scene-tree-table-header',
118
+ elementClass: VertexSceneTreeTableHeader$1,
119
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
120
+ react: React,
121
+ events: {},
122
+ defineCustomElement: defineCustomElement$5
123
+ });
124
+ const VertexSceneTreeTableLayout = /*@__PURE__*/ r({
125
+ tagName: 'vertex-scene-tree-table-layout',
126
+ elementClass: VertexSceneTreeTableLayout$1,
127
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
128
+ react: React,
129
+ events: { onColumnsResized: 'columnsResized' },
130
+ defineCustomElement: defineCustomElement$6
131
+ });
132
+ const VertexSceneTreeTableResizeDivider = /*@__PURE__*/ r({
133
+ tagName: 'vertex-scene-tree-table-resize-divider',
134
+ elementClass: VertexSceneTreeTableResizeDivider$1,
135
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
136
+ react: React,
137
+ events: {},
138
+ defineCustomElement: defineCustomElement$7
139
+ });
140
+ const VertexSceneTreeToolbar = /*@__PURE__*/ r({
141
+ tagName: 'vertex-scene-tree-toolbar',
142
+ elementClass: VertexSceneTreeToolbar$1,
143
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
144
+ react: React,
145
+ events: {},
146
+ defineCustomElement: defineCustomElement$8
147
+ });
148
+ const VertexSceneTreeToolbarGroup = /*@__PURE__*/ r({
149
+ tagName: 'vertex-scene-tree-toolbar-group',
150
+ elementClass: VertexSceneTreeToolbarGroup$1,
151
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
152
+ react: React,
153
+ events: {},
154
+ defineCustomElement: defineCustomElement$9
155
+ });
156
+ const VertexViewer = /*@__PURE__*/ r({
157
+ tagName: 'vertex-viewer',
158
+ elementClass: VertexViewer$1,
159
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
160
+ react: React,
161
+ events: {
162
+ onTap: 'tap',
163
+ onDoubletap: 'doubletap',
164
+ onLongpress: 'longpress',
165
+ onFrameReceived: 'frameReceived',
166
+ onFrameDrawn: 'frameDrawn',
167
+ onTokenExpired: 'tokenExpired',
168
+ onConnectionChange: 'connectionChange',
169
+ onSceneReady: 'sceneReady',
170
+ onSceneChanged: 'sceneChanged',
171
+ onInteractionStarted: 'interactionStarted',
172
+ onInteractionFinished: 'interactionFinished',
173
+ onCameraTypeChanged: 'cameraTypeChanged',
174
+ onAnnotationStateChanged: 'annotationStateChanged',
175
+ onDimensionschange: 'dimensionschange'
176
+ },
177
+ defineCustomElement: defineCustomElement$a
178
+ });
179
+ const VertexViewerAnnotationCallout = /*@__PURE__*/ r({
180
+ tagName: 'vertex-viewer-annotation-callout',
181
+ elementClass: VertexViewerAnnotationCallout$1,
182
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
183
+ react: React,
184
+ events: {},
185
+ defineCustomElement: defineCustomElement$b
186
+ });
187
+ const VertexViewerBoxQueryTool = /*@__PURE__*/ r({
188
+ tagName: 'vertex-viewer-box-query-tool',
189
+ elementClass: VertexViewerBoxQueryTool$1,
190
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
191
+ react: React,
192
+ events: { onControllerChanged: 'controllerChanged' },
193
+ defineCustomElement: defineCustomElement$c
194
+ });
195
+ const VertexViewerButton = /*@__PURE__*/ r({
196
+ tagName: 'vertex-viewer-button',
197
+ elementClass: VertexViewerButton$1,
198
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
199
+ react: React,
200
+ events: {},
201
+ defineCustomElement: defineCustomElement$d
202
+ });
203
+ const VertexViewerDefaultToolbar = /*@__PURE__*/ r({
204
+ tagName: 'vertex-viewer-default-toolbar',
205
+ elementClass: VertexViewerDefaultToolbar$1,
206
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
207
+ react: React,
208
+ events: {},
209
+ defineCustomElement: defineCustomElement$e
210
+ });
211
+ const VertexViewerDomElement = /*@__PURE__*/ r({
212
+ tagName: 'vertex-viewer-dom-element',
213
+ elementClass: VertexViewerDomElement$1,
214
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
215
+ react: React,
216
+ events: {
217
+ onOcclusionStateChanged: 'occlusionStateChanged',
218
+ onDetachedStateChanged: 'detachedStateChanged',
219
+ onPropertyChange: 'propertyChange'
220
+ },
221
+ defineCustomElement: defineCustomElement$f
222
+ });
223
+ const VertexViewerDomGroup = /*@__PURE__*/ r({
224
+ tagName: 'vertex-viewer-dom-group',
225
+ elementClass: VertexViewerDomGroup$1,
226
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
227
+ react: React,
228
+ events: { onPropertyChange: 'propertyChange' },
229
+ defineCustomElement: defineCustomElement$g
230
+ });
231
+ const VertexViewerDomRenderer = /*@__PURE__*/ r({
232
+ tagName: 'vertex-viewer-dom-renderer',
233
+ elementClass: VertexViewerDomRenderer$1,
234
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
235
+ react: React,
236
+ events: {},
237
+ defineCustomElement: defineCustomElement$h
238
+ });
239
+ const VertexViewerHitResultIndicator = /*@__PURE__*/ r({
240
+ tagName: 'vertex-viewer-hit-result-indicator',
241
+ elementClass: VertexViewerHitResultIndicator$1,
242
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
243
+ react: React,
244
+ events: {},
245
+ defineCustomElement: defineCustomElement$i
246
+ });
247
+ const VertexViewerIcon = /*@__PURE__*/ r({
248
+ tagName: 'vertex-viewer-icon',
249
+ elementClass: VertexViewerIcon$1,
250
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
251
+ react: React,
252
+ events: {},
253
+ defineCustomElement: defineCustomElement$j
254
+ });
255
+ const VertexViewerLayer = /*@__PURE__*/ r({
256
+ tagName: 'vertex-viewer-layer',
257
+ elementClass: VertexViewerLayer$1,
258
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
259
+ react: React,
260
+ events: {},
261
+ defineCustomElement: defineCustomElement$k
262
+ });
263
+ const VertexViewerMarkup = /*@__PURE__*/ r({
264
+ tagName: 'vertex-viewer-markup',
265
+ elementClass: VertexViewerMarkup$1,
266
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
267
+ react: React,
268
+ events: {
269
+ onMarkupAdded: 'markupAdded',
270
+ onMarkupChanged: 'markupChanged',
271
+ onMarkupRemoved: 'markupRemoved',
272
+ onMarkupSelectionChanged: 'markupSelectionChanged'
273
+ },
274
+ defineCustomElement: defineCustomElement$l
275
+ });
276
+ const VertexViewerMarkupArrow = /*@__PURE__*/ r({
277
+ tagName: 'vertex-viewer-markup-arrow',
278
+ elementClass: VertexViewerMarkupArrow$1,
279
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
280
+ react: React,
281
+ events: {
282
+ onInteractionBegin: 'interactionBegin',
283
+ onInteractionEnd: 'interactionEnd',
284
+ onViewRendered: 'viewRendered'
285
+ },
286
+ defineCustomElement: defineCustomElement$m
287
+ });
288
+ const VertexViewerMarkupCircle = /*@__PURE__*/ r({
289
+ tagName: 'vertex-viewer-markup-circle',
290
+ elementClass: VertexViewerMarkupCircle$1,
291
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
292
+ react: React,
293
+ events: {
294
+ onInteractionBegin: 'interactionBegin',
295
+ onInteractionEnd: 'interactionEnd',
296
+ onViewRendered: 'viewRendered'
297
+ },
298
+ defineCustomElement: defineCustomElement$n
299
+ });
300
+ const VertexViewerMarkupFreeform = /*@__PURE__*/ r({
301
+ tagName: 'vertex-viewer-markup-freeform',
302
+ elementClass: VertexViewerMarkupFreeform$1,
303
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
304
+ react: React,
305
+ events: {
306
+ onInteractionBegin: 'interactionBegin',
307
+ onInteractionEnd: 'interactionEnd',
308
+ onViewRendered: 'viewRendered'
309
+ },
310
+ defineCustomElement: defineCustomElement$o
311
+ });
312
+ const VertexViewerMarkupTool = /*@__PURE__*/ r({
313
+ tagName: 'vertex-viewer-markup-tool',
314
+ elementClass: VertexViewerMarkupTool$1,
315
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
316
+ react: React,
317
+ events: {
318
+ onMarkupBegin: 'markupBegin',
319
+ onMarkupEnd: 'markupEnd'
320
+ },
321
+ defineCustomElement: defineCustomElement$p
322
+ });
323
+ const VertexViewerMeasurementDetails = /*@__PURE__*/ r({
324
+ tagName: 'vertex-viewer-measurement-details',
325
+ elementClass: VertexViewerMeasurementDetails$1,
326
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
327
+ react: React,
328
+ events: {},
329
+ defineCustomElement: defineCustomElement$q
330
+ });
331
+ const VertexViewerMeasurementDistance = /*@__PURE__*/ r({
332
+ tagName: 'vertex-viewer-measurement-distance',
333
+ elementClass: VertexViewerMeasurementDistance$1,
334
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
335
+ react: React,
336
+ events: {
337
+ onEditBegin: 'editBegin',
338
+ onEditEnd: 'editEnd'
339
+ },
340
+ defineCustomElement: defineCustomElement$r
341
+ });
342
+ const VertexViewerMeasurementLine = /*@__PURE__*/ r({
343
+ tagName: 'vertex-viewer-measurement-line',
344
+ elementClass: VertexViewerMeasurementLine$1,
345
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
346
+ react: React,
347
+ events: {},
348
+ defineCustomElement: defineCustomElement$s
349
+ });
350
+ const VertexViewerMeasurementOverlays = /*@__PURE__*/ r({
351
+ tagName: 'vertex-viewer-measurement-overlays',
352
+ elementClass: VertexViewerMeasurementOverlays$1,
353
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
354
+ react: React,
355
+ events: {},
356
+ defineCustomElement: defineCustomElement$t
357
+ });
358
+ const VertexViewerMeasurementPrecise = /*@__PURE__*/ r({
359
+ tagName: 'vertex-viewer-measurement-precise',
360
+ elementClass: VertexViewerMeasurementPrecise$1,
361
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
362
+ react: React,
363
+ events: {},
364
+ defineCustomElement: defineCustomElement$u
365
+ });
366
+ const VertexViewerPinGroup = /*@__PURE__*/ r({
367
+ tagName: 'vertex-viewer-pin-group',
368
+ elementClass: VertexViewerPinGroup$1,
369
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
370
+ react: React,
371
+ events: {},
372
+ defineCustomElement: defineCustomElement$v
373
+ });
374
+ const VertexViewerPinLabel = /*@__PURE__*/ r({
375
+ tagName: 'vertex-viewer-pin-label',
376
+ elementClass: VertexViewerPinLabel$1,
377
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
378
+ react: React,
379
+ events: {
380
+ onLabelFocused: 'labelFocused',
381
+ onLabelBlurred: 'labelBlurred'
382
+ },
383
+ defineCustomElement: defineCustomElement$w
384
+ });
385
+ const VertexViewerPinLabelLine = /*@__PURE__*/ r({
386
+ tagName: 'vertex-viewer-pin-label-line',
387
+ elementClass: VertexViewerPinLabelLine$1,
388
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
389
+ react: React,
390
+ events: {},
391
+ defineCustomElement: defineCustomElement$x
392
+ });
393
+ const VertexViewerPinTool = /*@__PURE__*/ r({
394
+ tagName: 'vertex-viewer-pin-tool',
395
+ elementClass: VertexViewerPinTool$1,
396
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
397
+ react: React,
398
+ events: {},
399
+ defineCustomElement: defineCustomElement$y
400
+ });
401
+ const VertexViewerSpinner = /*@__PURE__*/ r({
402
+ tagName: 'vertex-viewer-spinner',
403
+ elementClass: VertexViewerSpinner$1,
404
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
405
+ react: React,
406
+ events: {},
407
+ defineCustomElement: defineCustomElement$z
408
+ });
409
+ const VertexViewerTeleportTool = /*@__PURE__*/ r({
410
+ tagName: 'vertex-viewer-teleport-tool',
411
+ elementClass: VertexViewerTeleportTool$1,
412
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
413
+ react: React,
414
+ events: { onControllerChanged: 'controllerChanged' },
415
+ defineCustomElement: defineCustomElement$A
416
+ });
417
+ const VertexViewerToolbar = /*@__PURE__*/ r({
418
+ tagName: 'vertex-viewer-toolbar',
419
+ elementClass: VertexViewerToolbar$1,
420
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
421
+ react: React,
422
+ events: {},
423
+ defineCustomElement: defineCustomElement$B
424
+ });
425
+ const VertexViewerToolbarGroup = /*@__PURE__*/ r({
426
+ tagName: 'vertex-viewer-toolbar-group',
427
+ elementClass: VertexViewerToolbarGroup$1,
428
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
429
+ react: React,
430
+ events: {},
431
+ defineCustomElement: defineCustomElement$C
432
+ });
433
+ const VertexViewerTransformWidget = /*@__PURE__*/ r({
434
+ tagName: 'vertex-viewer-transform-widget',
435
+ elementClass: VertexViewerTransformWidget$1,
436
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
437
+ react: React,
438
+ events: {
439
+ onPositionChanged: 'positionChanged',
440
+ onRotationChanged: 'rotationChanged',
441
+ onInteractionEnded: 'interactionEnded',
442
+ onInteractionStarted: 'interactionStarted'
443
+ },
444
+ defineCustomElement: defineCustomElement$D
445
+ });
446
+ const VertexViewerViewCube = /*@__PURE__*/ r({
447
+ tagName: 'vertex-viewer-view-cube',
448
+ elementClass: VertexViewerViewCube$1,
449
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
450
+ react: React,
451
+ events: {},
452
+ defineCustomElement: defineCustomElement$E
453
+ });
454
+ const VertexViewerWalkModeTool = /*@__PURE__*/ r({
455
+ tagName: 'vertex-viewer-walk-mode-tool',
456
+ elementClass: VertexViewerWalkModeTool$1,
457
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
458
+ react: React,
459
+ events: { onControllerChanged: 'controllerChanged' },
460
+ defineCustomElement: defineCustomElement$F
461
+ });
251
462
 
252
463
  export { VertexSceneTree, VertexSceneTreeNotificationBanner, VertexSceneTreeSearch, VertexSceneTreeTableCell, VertexSceneTreeTableColumn, VertexSceneTreeTableHeader, VertexSceneTreeTableLayout, VertexSceneTreeTableResizeDivider, VertexSceneTreeToolbar, VertexSceneTreeToolbarGroup, VertexViewer, VertexViewerAnnotationCallout, VertexViewerBoxQueryTool, VertexViewerButton, VertexViewerDefaultToolbar, VertexViewerDomElement, VertexViewerDomGroup, VertexViewerDomRenderer, VertexViewerHitResultIndicator, VertexViewerIcon, VertexViewerLayer, VertexViewerMarkup, VertexViewerMarkupArrow, VertexViewerMarkupCircle, VertexViewerMarkupFreeform, VertexViewerMarkupTool, VertexViewerMeasurementDetails, VertexViewerMeasurementDistance, VertexViewerMeasurementLine, VertexViewerMeasurementOverlays, VertexViewerMeasurementPrecise, VertexViewerPinGroup, VertexViewerPinLabel, VertexViewerPinLabelLine, VertexViewerPinTool, VertexViewerSpinner, VertexViewerTeleportTool, VertexViewerToolbar, VertexViewerToolbarGroup, VertexViewerTransformWidget, VertexViewerViewCube, VertexViewerWalkModeTool };
253
464
  //# sourceMappingURL=bundle.esm.js.map