@vertexvis/viewer-react 0.24.5 → 1.0.0-canary.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.
- package/dist/bundle.cjs +496 -0
- package/dist/bundle.cjs.map +1 -0
- package/dist/bundle.js +447 -0
- package/dist/bundle.js.map +1 -0
- package/dist/generated/components.d.ts +207 -44
- package/dist/index.d.ts +1 -1
- package/package.json +24 -14
- package/dist/bundle.cjs.js +0 -302
- package/dist/bundle.cjs.js.map +0 -1
- package/dist/bundle.esm.js +0 -253
- package/dist/bundle.esm.js.map +0 -1
- package/dist/generated/react-component-lib/createComponent.d.ts +0 -10
- package/dist/generated/react-component-lib/createOverlayComponent.d.ts +0 -21
- package/dist/generated/react-component-lib/index.d.ts +0 -2
- package/dist/generated/react-component-lib/interfaces.d.ts +0 -29
- package/dist/generated/react-component-lib/utils/attachProps.d.ts +0 -16
- package/dist/generated/react-component-lib/utils/case.d.ts +0 -2
- package/dist/generated/react-component-lib/utils/dev.d.ts +0 -2
- package/dist/generated/react-component-lib/utils/index.d.ts +0 -10
package/dist/bundle.cjs.js
DELETED
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React = require('react');
|
|
6
|
-
require('react-dom');
|
|
7
|
-
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
-
|
|
10
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
|
-
|
|
12
|
-
const dashToPascalCase = (str) => str
|
|
13
|
-
.toLowerCase()
|
|
14
|
-
.split('-')
|
|
15
|
-
.map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1))
|
|
16
|
-
.join('');
|
|
17
|
-
const camelToDashCase = (str) => str.replace(/([A-Z])/g, (m) => `-${m[0].toLowerCase()}`);
|
|
18
|
-
|
|
19
|
-
const attachProps = (node, newProps, oldProps = {}) => {
|
|
20
|
-
// some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first
|
|
21
|
-
if (node instanceof Element) {
|
|
22
|
-
// add any classes in className to the class list
|
|
23
|
-
const className = getClassName(node.classList, newProps, oldProps);
|
|
24
|
-
if (className !== '') {
|
|
25
|
-
node.className = className;
|
|
26
|
-
}
|
|
27
|
-
Object.keys(newProps).forEach((name) => {
|
|
28
|
-
if (name === 'children' ||
|
|
29
|
-
name === 'style' ||
|
|
30
|
-
name === 'ref' ||
|
|
31
|
-
name === 'class' ||
|
|
32
|
-
name === 'className' ||
|
|
33
|
-
name === 'forwardedRef') {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
|
|
37
|
-
const eventName = name.substring(2);
|
|
38
|
-
const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);
|
|
39
|
-
if (!isCoveredByReact(eventNameLc)) {
|
|
40
|
-
syncEvent(node, eventNameLc, newProps[name]);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
node[name] = newProps[name];
|
|
45
|
-
const propType = typeof newProps[name];
|
|
46
|
-
if (propType === 'string') {
|
|
47
|
-
node.setAttribute(camelToDashCase(name), newProps[name]);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
const getClassName = (classList, newProps, oldProps) => {
|
|
54
|
-
const newClassProp = newProps.className || newProps.class;
|
|
55
|
-
const oldClassProp = oldProps.className || oldProps.class;
|
|
56
|
-
// map the classes to Maps for performance
|
|
57
|
-
const currentClasses = arrayToMap(classList);
|
|
58
|
-
const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);
|
|
59
|
-
const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);
|
|
60
|
-
const finalClassNames = [];
|
|
61
|
-
// loop through each of the current classes on the component
|
|
62
|
-
// to see if it should be a part of the classNames added
|
|
63
|
-
currentClasses.forEach((currentClass) => {
|
|
64
|
-
if (incomingPropClasses.has(currentClass)) {
|
|
65
|
-
// add it as its already included in classnames coming in from newProps
|
|
66
|
-
finalClassNames.push(currentClass);
|
|
67
|
-
incomingPropClasses.delete(currentClass);
|
|
68
|
-
}
|
|
69
|
-
else if (!oldPropClasses.has(currentClass)) {
|
|
70
|
-
// add it as it has NOT been removed by user
|
|
71
|
-
finalClassNames.push(currentClass);
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
incomingPropClasses.forEach((s) => finalClassNames.push(s));
|
|
75
|
-
return finalClassNames.join(' ');
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* Transforms a React event name to a browser event name.
|
|
79
|
-
*/
|
|
80
|
-
const transformReactEventName = (eventNameSuffix) => {
|
|
81
|
-
switch (eventNameSuffix) {
|
|
82
|
-
case 'doubleclick':
|
|
83
|
-
return 'dblclick';
|
|
84
|
-
}
|
|
85
|
-
return eventNameSuffix;
|
|
86
|
-
};
|
|
87
|
-
/**
|
|
88
|
-
* Checks if an event is supported in the current execution environment.
|
|
89
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
90
|
-
*/
|
|
91
|
-
const isCoveredByReact = (eventNameSuffix) => {
|
|
92
|
-
if (typeof document === 'undefined') {
|
|
93
|
-
return true;
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
const eventName = 'on' + transformReactEventName(eventNameSuffix);
|
|
97
|
-
let isSupported = eventName in document;
|
|
98
|
-
if (!isSupported) {
|
|
99
|
-
const element = document.createElement('div');
|
|
100
|
-
element.setAttribute(eventName, 'return;');
|
|
101
|
-
isSupported = typeof element[eventName] === 'function';
|
|
102
|
-
}
|
|
103
|
-
return isSupported;
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
const syncEvent = (node, eventName, newEventHandler) => {
|
|
107
|
-
const eventStore = node.__events || (node.__events = {});
|
|
108
|
-
const oldEventHandler = eventStore[eventName];
|
|
109
|
-
// Remove old listener so they don't double up.
|
|
110
|
-
if (oldEventHandler) {
|
|
111
|
-
node.removeEventListener(eventName, oldEventHandler);
|
|
112
|
-
}
|
|
113
|
-
// Bind new listener.
|
|
114
|
-
node.addEventListener(eventName, (eventStore[eventName] = function handler(e) {
|
|
115
|
-
if (newEventHandler) {
|
|
116
|
-
newEventHandler.call(this, e);
|
|
117
|
-
}
|
|
118
|
-
}));
|
|
119
|
-
};
|
|
120
|
-
const arrayToMap = (arr) => {
|
|
121
|
-
const map = new Map();
|
|
122
|
-
arr.forEach((s) => map.set(s, s));
|
|
123
|
-
return map;
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
const setRef = (ref, value) => {
|
|
127
|
-
if (typeof ref === 'function') {
|
|
128
|
-
ref(value);
|
|
129
|
-
}
|
|
130
|
-
else if (ref != null) {
|
|
131
|
-
// Cast as a MutableRef so we can assign current
|
|
132
|
-
ref.current = value;
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
const mergeRefs = (...refs) => {
|
|
136
|
-
return (value) => {
|
|
137
|
-
refs.forEach((ref) => {
|
|
138
|
-
setRef(ref, value);
|
|
139
|
-
});
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
const createForwardRef = (ReactComponent, displayName) => {
|
|
143
|
-
const forwardRef = (props, ref) => {
|
|
144
|
-
return React__default["default"].createElement(ReactComponent, { ...props, forwardedRef: ref });
|
|
145
|
-
};
|
|
146
|
-
forwardRef.displayName = displayName;
|
|
147
|
-
return React__default["default"].forwardRef(forwardRef);
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
|
|
151
|
-
if (defineCustomElement !== undefined) {
|
|
152
|
-
defineCustomElement();
|
|
153
|
-
}
|
|
154
|
-
const displayName = dashToPascalCase(tagName);
|
|
155
|
-
const ReactComponent = class extends React__default["default"].Component {
|
|
156
|
-
constructor(props) {
|
|
157
|
-
super(props);
|
|
158
|
-
this.setComponentElRef = (element) => {
|
|
159
|
-
this.componentEl = element;
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
componentDidMount() {
|
|
163
|
-
this.componentDidUpdate(this.props);
|
|
164
|
-
}
|
|
165
|
-
componentDidUpdate(prevProps) {
|
|
166
|
-
attachProps(this.componentEl, this.props, prevProps);
|
|
167
|
-
}
|
|
168
|
-
render() {
|
|
169
|
-
const { children, forwardedRef, style, className, ref, ...cProps } = this.props;
|
|
170
|
-
let propsToPass = Object.keys(cProps).reduce((acc, name) => {
|
|
171
|
-
const value = cProps[name];
|
|
172
|
-
if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
|
|
173
|
-
const eventName = name.substring(2).toLowerCase();
|
|
174
|
-
if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {
|
|
175
|
-
acc[name] = value;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
else {
|
|
179
|
-
// we should only render strings, booleans, and numbers as attrs in html.
|
|
180
|
-
// objects, functions, arrays etc get synced via properties on mount.
|
|
181
|
-
const type = typeof value;
|
|
182
|
-
if (type === 'string' || type === 'boolean' || type === 'number') {
|
|
183
|
-
acc[camelToDashCase(name)] = value;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
return acc;
|
|
187
|
-
}, {});
|
|
188
|
-
if (manipulatePropsFunction) {
|
|
189
|
-
propsToPass = manipulatePropsFunction(this.props, propsToPass);
|
|
190
|
-
}
|
|
191
|
-
const newProps = {
|
|
192
|
-
...propsToPass,
|
|
193
|
-
ref: mergeRefs(forwardedRef, this.setComponentElRef),
|
|
194
|
-
style,
|
|
195
|
-
};
|
|
196
|
-
/**
|
|
197
|
-
* We use createElement here instead of
|
|
198
|
-
* React.createElement to work around a
|
|
199
|
-
* bug in Vite (https://github.com/vitejs/vite/issues/6104).
|
|
200
|
-
* React.createElement causes all elements to be rendered
|
|
201
|
-
* as <tagname> instead of the actual Web Component.
|
|
202
|
-
*/
|
|
203
|
-
return React.createElement(tagName, newProps, children);
|
|
204
|
-
}
|
|
205
|
-
static get displayName() {
|
|
206
|
-
return displayName;
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
// If context was passed to createReactComponent then conditionally add it to the Component Class
|
|
210
|
-
if (ReactComponentContext) {
|
|
211
|
-
ReactComponent.contextType = ReactComponentContext;
|
|
212
|
-
}
|
|
213
|
-
return createForwardRef(ReactComponent, displayName);
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
/* eslint-disable */
|
|
217
|
-
const VertexSceneTree = /*@__PURE__*/ createReactComponent('vertex-scene-tree');
|
|
218
|
-
const VertexSceneTreeNotificationBanner = /*@__PURE__*/ createReactComponent('vertex-scene-tree-notification-banner');
|
|
219
|
-
const VertexSceneTreeSearch = /*@__PURE__*/ createReactComponent('vertex-scene-tree-search');
|
|
220
|
-
const VertexSceneTreeTableCell = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-cell');
|
|
221
|
-
const VertexSceneTreeTableColumn = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-column');
|
|
222
|
-
const VertexSceneTreeTableHeader = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-header');
|
|
223
|
-
const VertexSceneTreeTableLayout = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-layout');
|
|
224
|
-
const VertexSceneTreeTableResizeDivider = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-resize-divider');
|
|
225
|
-
const VertexSceneTreeToolbar = /*@__PURE__*/ createReactComponent('vertex-scene-tree-toolbar');
|
|
226
|
-
const VertexSceneTreeToolbarGroup = /*@__PURE__*/ createReactComponent('vertex-scene-tree-toolbar-group');
|
|
227
|
-
const VertexViewer = /*@__PURE__*/ createReactComponent('vertex-viewer');
|
|
228
|
-
const VertexViewerAnnotationCallout = /*@__PURE__*/ createReactComponent('vertex-viewer-annotation-callout');
|
|
229
|
-
const VertexViewerBoxQueryTool = /*@__PURE__*/ createReactComponent('vertex-viewer-box-query-tool');
|
|
230
|
-
const VertexViewerButton = /*@__PURE__*/ createReactComponent('vertex-viewer-button');
|
|
231
|
-
const VertexViewerDefaultToolbar = /*@__PURE__*/ createReactComponent('vertex-viewer-default-toolbar');
|
|
232
|
-
const VertexViewerDomElement = /*@__PURE__*/ createReactComponent('vertex-viewer-dom-element');
|
|
233
|
-
const VertexViewerDomGroup = /*@__PURE__*/ createReactComponent('vertex-viewer-dom-group');
|
|
234
|
-
const VertexViewerDomRenderer = /*@__PURE__*/ createReactComponent('vertex-viewer-dom-renderer');
|
|
235
|
-
const VertexViewerHitResultIndicator = /*@__PURE__*/ createReactComponent('vertex-viewer-hit-result-indicator');
|
|
236
|
-
const VertexViewerIcon = /*@__PURE__*/ createReactComponent('vertex-viewer-icon');
|
|
237
|
-
const VertexViewerLayer = /*@__PURE__*/ createReactComponent('vertex-viewer-layer');
|
|
238
|
-
const VertexViewerMarkup = /*@__PURE__*/ createReactComponent('vertex-viewer-markup');
|
|
239
|
-
const VertexViewerMarkupArrow = /*@__PURE__*/ createReactComponent('vertex-viewer-markup-arrow');
|
|
240
|
-
const VertexViewerMarkupCircle = /*@__PURE__*/ createReactComponent('vertex-viewer-markup-circle');
|
|
241
|
-
const VertexViewerMarkupFreeform = /*@__PURE__*/ createReactComponent('vertex-viewer-markup-freeform');
|
|
242
|
-
const VertexViewerMarkupTool = /*@__PURE__*/ createReactComponent('vertex-viewer-markup-tool');
|
|
243
|
-
const VertexViewerMeasurementDetails = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-details');
|
|
244
|
-
const VertexViewerMeasurementDistance = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-distance');
|
|
245
|
-
const VertexViewerMeasurementLine = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-line');
|
|
246
|
-
const VertexViewerMeasurementOverlays = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-overlays');
|
|
247
|
-
const VertexViewerMeasurementPrecise = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-precise');
|
|
248
|
-
const VertexViewerPinGroup = /*@__PURE__*/ createReactComponent('vertex-viewer-pin-group');
|
|
249
|
-
const VertexViewerPinLabel = /*@__PURE__*/ createReactComponent('vertex-viewer-pin-label');
|
|
250
|
-
const VertexViewerPinLabelLine = /*@__PURE__*/ createReactComponent('vertex-viewer-pin-label-line');
|
|
251
|
-
const VertexViewerPinTool = /*@__PURE__*/ createReactComponent('vertex-viewer-pin-tool');
|
|
252
|
-
const VertexViewerSpinner = /*@__PURE__*/ createReactComponent('vertex-viewer-spinner');
|
|
253
|
-
const VertexViewerTeleportTool = /*@__PURE__*/ createReactComponent('vertex-viewer-teleport-tool');
|
|
254
|
-
const VertexViewerToolbar = /*@__PURE__*/ createReactComponent('vertex-viewer-toolbar');
|
|
255
|
-
const VertexViewerToolbarGroup = /*@__PURE__*/ createReactComponent('vertex-viewer-toolbar-group');
|
|
256
|
-
const VertexViewerTransformWidget = /*@__PURE__*/ createReactComponent('vertex-viewer-transform-widget');
|
|
257
|
-
const VertexViewerViewCube = /*@__PURE__*/ createReactComponent('vertex-viewer-view-cube');
|
|
258
|
-
const VertexViewerWalkModeTool = /*@__PURE__*/ createReactComponent('vertex-viewer-walk-mode-tool');
|
|
259
|
-
|
|
260
|
-
exports.VertexSceneTree = VertexSceneTree;
|
|
261
|
-
exports.VertexSceneTreeNotificationBanner = VertexSceneTreeNotificationBanner;
|
|
262
|
-
exports.VertexSceneTreeSearch = VertexSceneTreeSearch;
|
|
263
|
-
exports.VertexSceneTreeTableCell = VertexSceneTreeTableCell;
|
|
264
|
-
exports.VertexSceneTreeTableColumn = VertexSceneTreeTableColumn;
|
|
265
|
-
exports.VertexSceneTreeTableHeader = VertexSceneTreeTableHeader;
|
|
266
|
-
exports.VertexSceneTreeTableLayout = VertexSceneTreeTableLayout;
|
|
267
|
-
exports.VertexSceneTreeTableResizeDivider = VertexSceneTreeTableResizeDivider;
|
|
268
|
-
exports.VertexSceneTreeToolbar = VertexSceneTreeToolbar;
|
|
269
|
-
exports.VertexSceneTreeToolbarGroup = VertexSceneTreeToolbarGroup;
|
|
270
|
-
exports.VertexViewer = VertexViewer;
|
|
271
|
-
exports.VertexViewerAnnotationCallout = VertexViewerAnnotationCallout;
|
|
272
|
-
exports.VertexViewerBoxQueryTool = VertexViewerBoxQueryTool;
|
|
273
|
-
exports.VertexViewerButton = VertexViewerButton;
|
|
274
|
-
exports.VertexViewerDefaultToolbar = VertexViewerDefaultToolbar;
|
|
275
|
-
exports.VertexViewerDomElement = VertexViewerDomElement;
|
|
276
|
-
exports.VertexViewerDomGroup = VertexViewerDomGroup;
|
|
277
|
-
exports.VertexViewerDomRenderer = VertexViewerDomRenderer;
|
|
278
|
-
exports.VertexViewerHitResultIndicator = VertexViewerHitResultIndicator;
|
|
279
|
-
exports.VertexViewerIcon = VertexViewerIcon;
|
|
280
|
-
exports.VertexViewerLayer = VertexViewerLayer;
|
|
281
|
-
exports.VertexViewerMarkup = VertexViewerMarkup;
|
|
282
|
-
exports.VertexViewerMarkupArrow = VertexViewerMarkupArrow;
|
|
283
|
-
exports.VertexViewerMarkupCircle = VertexViewerMarkupCircle;
|
|
284
|
-
exports.VertexViewerMarkupFreeform = VertexViewerMarkupFreeform;
|
|
285
|
-
exports.VertexViewerMarkupTool = VertexViewerMarkupTool;
|
|
286
|
-
exports.VertexViewerMeasurementDetails = VertexViewerMeasurementDetails;
|
|
287
|
-
exports.VertexViewerMeasurementDistance = VertexViewerMeasurementDistance;
|
|
288
|
-
exports.VertexViewerMeasurementLine = VertexViewerMeasurementLine;
|
|
289
|
-
exports.VertexViewerMeasurementOverlays = VertexViewerMeasurementOverlays;
|
|
290
|
-
exports.VertexViewerMeasurementPrecise = VertexViewerMeasurementPrecise;
|
|
291
|
-
exports.VertexViewerPinGroup = VertexViewerPinGroup;
|
|
292
|
-
exports.VertexViewerPinLabel = VertexViewerPinLabel;
|
|
293
|
-
exports.VertexViewerPinLabelLine = VertexViewerPinLabelLine;
|
|
294
|
-
exports.VertexViewerPinTool = VertexViewerPinTool;
|
|
295
|
-
exports.VertexViewerSpinner = VertexViewerSpinner;
|
|
296
|
-
exports.VertexViewerTeleportTool = VertexViewerTeleportTool;
|
|
297
|
-
exports.VertexViewerToolbar = VertexViewerToolbar;
|
|
298
|
-
exports.VertexViewerToolbarGroup = VertexViewerToolbarGroup;
|
|
299
|
-
exports.VertexViewerTransformWidget = VertexViewerTransformWidget;
|
|
300
|
-
exports.VertexViewerViewCube = VertexViewerViewCube;
|
|
301
|
-
exports.VertexViewerWalkModeTool = VertexViewerWalkModeTool;
|
|
302
|
-
//# sourceMappingURL=bundle.cjs.js.map
|
package/dist/bundle.cjs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.cjs.js","sources":["../src/generated/react-component-lib/utils/case.ts","../src/generated/react-component-lib/utils/attachProps.ts","../src/generated/react-component-lib/utils/index.tsx","../src/generated/react-component-lib/createComponent.tsx","../src/generated/components.ts"],"sourcesContent":["export const dashToPascalCase = (str: string) =>\n str\n .toLowerCase()\n .split('-')\n .map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1))\n .join('');\nexport const camelToDashCase = (str: string) => str.replace(/([A-Z])/g, (m: string) => `-${m[0].toLowerCase()}`);\n","import { camelToDashCase } from './case';\n\nexport const attachProps = (node: HTMLElement, newProps: any, oldProps: any = {}) => {\n // some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first\n if (node instanceof Element) {\n // add any classes in className to the class list\n const className = getClassName(node.classList, newProps, oldProps);\n if (className !== '') {\n node.className = className;\n }\n\n Object.keys(newProps).forEach((name) => {\n if (\n name === 'children' ||\n name === 'style' ||\n name === 'ref' ||\n name === 'class' ||\n name === 'className' ||\n name === 'forwardedRef'\n ) {\n return;\n }\n if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {\n const eventName = name.substring(2);\n const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);\n\n if (!isCoveredByReact(eventNameLc)) {\n syncEvent(node, eventNameLc, newProps[name]);\n }\n } else {\n (node as any)[name] = newProps[name];\n const propType = typeof newProps[name];\n if (propType === 'string') {\n node.setAttribute(camelToDashCase(name), newProps[name]);\n }\n }\n });\n }\n};\n\nexport const getClassName = (classList: DOMTokenList, newProps: any, oldProps: any) => {\n const newClassProp: string = newProps.className || newProps.class;\n const oldClassProp: string = oldProps.className || oldProps.class;\n // map the classes to Maps for performance\n const currentClasses = arrayToMap(classList);\n const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);\n const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);\n const finalClassNames: string[] = [];\n // loop through each of the current classes on the component\n // to see if it should be a part of the classNames added\n currentClasses.forEach((currentClass) => {\n if (incomingPropClasses.has(currentClass)) {\n // add it as its already included in classnames coming in from newProps\n finalClassNames.push(currentClass);\n incomingPropClasses.delete(currentClass);\n } else if (!oldPropClasses.has(currentClass)) {\n // add it as it has NOT been removed by user\n finalClassNames.push(currentClass);\n }\n });\n incomingPropClasses.forEach((s) => finalClassNames.push(s));\n return finalClassNames.join(' ');\n};\n\n/**\n * Transforms a React event name to a browser event name.\n */\nexport const transformReactEventName = (eventNameSuffix: string) => {\n switch (eventNameSuffix) {\n case 'doubleclick':\n return 'dblclick';\n }\n return eventNameSuffix;\n};\n\n/**\n * Checks if an event is supported in the current execution environment.\n * @license Modernizr 3.0.0pre (Custom Build) | MIT\n */\nexport const isCoveredByReact = (eventNameSuffix: string) => {\n if (typeof document === 'undefined') {\n return true;\n } else {\n const eventName = 'on' + transformReactEventName(eventNameSuffix);\n let isSupported = eventName in document;\n\n if (!isSupported) {\n const element = document.createElement('div');\n element.setAttribute(eventName, 'return;');\n isSupported = typeof (element as any)[eventName] === 'function';\n }\n\n return isSupported;\n }\n};\n\nexport const syncEvent = (\n node: Element & { __events?: { [key: string]: ((e: Event) => any) | undefined } },\n eventName: string,\n newEventHandler?: (e: Event) => any\n) => {\n const eventStore = node.__events || (node.__events = {});\n const oldEventHandler = eventStore[eventName];\n\n // Remove old listener so they don't double up.\n if (oldEventHandler) {\n node.removeEventListener(eventName, oldEventHandler);\n }\n\n // Bind new listener.\n node.addEventListener(\n eventName,\n (eventStore[eventName] = function handler(e: Event) {\n if (newEventHandler) {\n newEventHandler.call(this, e);\n }\n })\n );\n};\n\nconst arrayToMap = (arr: string[] | DOMTokenList) => {\n const map = new Map<string, string>();\n (arr as string[]).forEach((s: string) => map.set(s, s));\n return map;\n};\n","import React from 'react';\n\nimport type { StyleReactProps } from '../interfaces';\n\nexport type StencilReactExternalProps<PropType, ElementType> = PropType &\n Omit<React.HTMLAttributes<ElementType>, 'style'> &\n StyleReactProps;\n\n// This will be replaced with React.ForwardedRef when react-output-target is upgraded to React v17\nexport type StencilReactForwardedRef<T> = ((instance: T | null) => void) | React.MutableRefObject<T | null> | null;\n\nexport const setRef = (ref: StencilReactForwardedRef<any> | React.Ref<any> | undefined, value: any) => {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref != null) {\n // Cast as a MutableRef so we can assign current\n (ref as React.MutableRefObject<any>).current = value;\n }\n};\n\nexport const mergeRefs = (\n ...refs: (StencilReactForwardedRef<any> | React.Ref<any> | undefined)[]\n): React.RefCallback<any> => {\n return (value: any) => {\n refs.forEach((ref) => {\n setRef(ref, value);\n });\n };\n};\n\nexport const createForwardRef = <PropType, ElementType>(ReactComponent: any, displayName: string) => {\n const forwardRef = (\n props: StencilReactExternalProps<PropType, ElementType>,\n ref: StencilReactForwardedRef<ElementType>\n ) => {\n return <ReactComponent {...props} forwardedRef={ref} />;\n };\n forwardRef.displayName = displayName;\n\n return React.forwardRef(forwardRef);\n};\n\nexport const defineCustomElement = (tagName: string, customElement: any) => {\n if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {\n customElements.define(tagName, customElement);\n }\n};\n\nexport * from './attachProps';\nexport * from './case';\n","import React, { createElement } from 'react';\n\nimport { attachProps, camelToDashCase, createForwardRef, dashToPascalCase, isCoveredByReact, mergeRefs } from './utils';\n\nexport interface HTMLStencilElement extends HTMLElement {\n componentOnReady(): Promise<this>;\n}\n\ninterface StencilReactInternalProps<ElementType> extends React.HTMLAttributes<ElementType> {\n forwardedRef: React.RefObject<ElementType>;\n ref?: React.Ref<any>;\n}\n\nexport const createReactComponent = <\n PropType,\n ElementType extends HTMLStencilElement,\n ContextStateType = {},\n ExpandedPropsTypes = {}\n>(\n tagName: string,\n ReactComponentContext?: React.Context<ContextStateType>,\n manipulatePropsFunction?: (\n originalProps: StencilReactInternalProps<ElementType>,\n propsToPass: any\n ) => ExpandedPropsTypes,\n defineCustomElement?: () => void\n) => {\n if (defineCustomElement !== undefined) {\n defineCustomElement();\n }\n\n const displayName = dashToPascalCase(tagName);\n const ReactComponent = class extends React.Component<StencilReactInternalProps<ElementType>> {\n componentEl!: ElementType;\n\n setComponentElRef = (element: ElementType) => {\n this.componentEl = element;\n };\n\n constructor(props: StencilReactInternalProps<ElementType>) {\n super(props);\n }\n\n componentDidMount() {\n this.componentDidUpdate(this.props);\n }\n\n componentDidUpdate(prevProps: StencilReactInternalProps<ElementType>) {\n attachProps(this.componentEl, this.props, prevProps);\n }\n\n render() {\n const { children, forwardedRef, style, className, ref, ...cProps } = this.props;\n\n let propsToPass = Object.keys(cProps).reduce((acc: any, name) => {\n const value = (cProps as any)[name];\n\n if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {\n const eventName = name.substring(2).toLowerCase();\n if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {\n acc[name] = value;\n }\n } else {\n // we should only render strings, booleans, and numbers as attrs in html.\n // objects, functions, arrays etc get synced via properties on mount.\n const type = typeof value;\n\n if (type === 'string' || type === 'boolean' || type === 'number') {\n acc[camelToDashCase(name)] = value;\n }\n }\n return acc;\n }, {} as ExpandedPropsTypes);\n\n if (manipulatePropsFunction) {\n propsToPass = manipulatePropsFunction(this.props, propsToPass);\n }\n\n const newProps: Omit<StencilReactInternalProps<ElementType>, 'forwardedRef'> = {\n ...propsToPass,\n ref: mergeRefs(forwardedRef, this.setComponentElRef),\n style,\n };\n\n /**\n * We use createElement here instead of\n * React.createElement to work around a\n * bug in Vite (https://github.com/vitejs/vite/issues/6104).\n * React.createElement causes all elements to be rendered\n * as <tagname> instead of the actual Web Component.\n */\n return createElement(tagName, newProps, children);\n }\n\n static get displayName() {\n return displayName;\n }\n };\n\n // If context was passed to createReactComponent then conditionally add it to the Component Class\n if (ReactComponentContext) {\n ReactComponent.contextType = ReactComponentContext;\n }\n\n return createForwardRef<PropType, ElementType>(ReactComponent, displayName);\n};\n","/* eslint-disable */\n/* tslint:disable */\n/* auto-generated react proxies */\nimport { createReactComponent } from './react-component-lib';\n\nimport type { JSX } from '@vertexvis/viewer';\n\n\n\nexport const VertexSceneTree = /*@__PURE__*/createReactComponent<JSX.VertexSceneTree, HTMLVertexSceneTreeElement>('vertex-scene-tree');\nexport const VertexSceneTreeNotificationBanner = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeNotificationBanner, HTMLVertexSceneTreeNotificationBannerElement>('vertex-scene-tree-notification-banner');\nexport const VertexSceneTreeSearch = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeSearch, HTMLVertexSceneTreeSearchElement>('vertex-scene-tree-search');\nexport const VertexSceneTreeTableCell = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableCell, HTMLVertexSceneTreeTableCellElement>('vertex-scene-tree-table-cell');\nexport const VertexSceneTreeTableColumn = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableColumn, HTMLVertexSceneTreeTableColumnElement>('vertex-scene-tree-table-column');\nexport const VertexSceneTreeTableHeader = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableHeader, HTMLVertexSceneTreeTableHeaderElement>('vertex-scene-tree-table-header');\nexport const VertexSceneTreeTableLayout = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableLayout, HTMLVertexSceneTreeTableLayoutElement>('vertex-scene-tree-table-layout');\nexport const VertexSceneTreeTableResizeDivider = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableResizeDivider, HTMLVertexSceneTreeTableResizeDividerElement>('vertex-scene-tree-table-resize-divider');\nexport const VertexSceneTreeToolbar = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeToolbar, HTMLVertexSceneTreeToolbarElement>('vertex-scene-tree-toolbar');\nexport const VertexSceneTreeToolbarGroup = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeToolbarGroup, HTMLVertexSceneTreeToolbarGroupElement>('vertex-scene-tree-toolbar-group');\nexport const VertexViewer = /*@__PURE__*/createReactComponent<JSX.VertexViewer, HTMLVertexViewerElement>('vertex-viewer');\nexport const VertexViewerAnnotationCallout = /*@__PURE__*/createReactComponent<JSX.VertexViewerAnnotationCallout, HTMLVertexViewerAnnotationCalloutElement>('vertex-viewer-annotation-callout');\nexport const VertexViewerBoxQueryTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerBoxQueryTool, HTMLVertexViewerBoxQueryToolElement>('vertex-viewer-box-query-tool');\nexport const VertexViewerButton = /*@__PURE__*/createReactComponent<JSX.VertexViewerButton, HTMLVertexViewerButtonElement>('vertex-viewer-button');\nexport const VertexViewerDefaultToolbar = /*@__PURE__*/createReactComponent<JSX.VertexViewerDefaultToolbar, HTMLVertexViewerDefaultToolbarElement>('vertex-viewer-default-toolbar');\nexport const VertexViewerDomElement = /*@__PURE__*/createReactComponent<JSX.VertexViewerDomElement, HTMLVertexViewerDomElementElement>('vertex-viewer-dom-element');\nexport const VertexViewerDomGroup = /*@__PURE__*/createReactComponent<JSX.VertexViewerDomGroup, HTMLVertexViewerDomGroupElement>('vertex-viewer-dom-group');\nexport const VertexViewerDomRenderer = /*@__PURE__*/createReactComponent<JSX.VertexViewerDomRenderer, HTMLVertexViewerDomRendererElement>('vertex-viewer-dom-renderer');\nexport const VertexViewerHitResultIndicator = /*@__PURE__*/createReactComponent<JSX.VertexViewerHitResultIndicator, HTMLVertexViewerHitResultIndicatorElement>('vertex-viewer-hit-result-indicator');\nexport const VertexViewerIcon = /*@__PURE__*/createReactComponent<JSX.VertexViewerIcon, HTMLVertexViewerIconElement>('vertex-viewer-icon');\nexport const VertexViewerLayer = /*@__PURE__*/createReactComponent<JSX.VertexViewerLayer, HTMLVertexViewerLayerElement>('vertex-viewer-layer');\nexport const VertexViewerMarkup = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkup, HTMLVertexViewerMarkupElement>('vertex-viewer-markup');\nexport const VertexViewerMarkupArrow = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupArrow, HTMLVertexViewerMarkupArrowElement>('vertex-viewer-markup-arrow');\nexport const VertexViewerMarkupCircle = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupCircle, HTMLVertexViewerMarkupCircleElement>('vertex-viewer-markup-circle');\nexport const VertexViewerMarkupFreeform = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupFreeform, HTMLVertexViewerMarkupFreeformElement>('vertex-viewer-markup-freeform');\nexport const VertexViewerMarkupTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupTool, HTMLVertexViewerMarkupToolElement>('vertex-viewer-markup-tool');\nexport const VertexViewerMeasurementDetails = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementDetails, HTMLVertexViewerMeasurementDetailsElement>('vertex-viewer-measurement-details');\nexport const VertexViewerMeasurementDistance = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementDistance, HTMLVertexViewerMeasurementDistanceElement>('vertex-viewer-measurement-distance');\nexport const VertexViewerMeasurementLine = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementLine, HTMLVertexViewerMeasurementLineElement>('vertex-viewer-measurement-line');\nexport const VertexViewerMeasurementOverlays = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementOverlays, HTMLVertexViewerMeasurementOverlaysElement>('vertex-viewer-measurement-overlays');\nexport const VertexViewerMeasurementPrecise = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementPrecise, HTMLVertexViewerMeasurementPreciseElement>('vertex-viewer-measurement-precise');\nexport const VertexViewerPinGroup = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinGroup, HTMLVertexViewerPinGroupElement>('vertex-viewer-pin-group');\nexport const VertexViewerPinLabel = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinLabel, HTMLVertexViewerPinLabelElement>('vertex-viewer-pin-label');\nexport const VertexViewerPinLabelLine = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinLabelLine, HTMLVertexViewerPinLabelLineElement>('vertex-viewer-pin-label-line');\nexport const VertexViewerPinTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinTool, HTMLVertexViewerPinToolElement>('vertex-viewer-pin-tool');\nexport const VertexViewerSpinner = /*@__PURE__*/createReactComponent<JSX.VertexViewerSpinner, HTMLVertexViewerSpinnerElement>('vertex-viewer-spinner');\nexport const VertexViewerTeleportTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerTeleportTool, HTMLVertexViewerTeleportToolElement>('vertex-viewer-teleport-tool');\nexport const VertexViewerToolbar = /*@__PURE__*/createReactComponent<JSX.VertexViewerToolbar, HTMLVertexViewerToolbarElement>('vertex-viewer-toolbar');\nexport const VertexViewerToolbarGroup = /*@__PURE__*/createReactComponent<JSX.VertexViewerToolbarGroup, HTMLVertexViewerToolbarGroupElement>('vertex-viewer-toolbar-group');\nexport const VertexViewerTransformWidget = /*@__PURE__*/createReactComponent<JSX.VertexViewerTransformWidget, HTMLVertexViewerTransformWidgetElement>('vertex-viewer-transform-widget');\nexport const VertexViewerViewCube = /*@__PURE__*/createReactComponent<JSX.VertexViewerViewCube, HTMLVertexViewerViewCubeElement>('vertex-viewer-view-cube');\nexport const VertexViewerWalkModeTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerWalkModeTool, HTMLVertexViewerWalkModeToolElement>('vertex-viewer-walk-m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BAAoB,iBAAgB,oBAAoB,CAA4D,yBAAyB,EAAE;AAC/I,MAAA,oBAAoB,iBAAgB,oBAAoB,CAA4D,yBAAyB,EAAE;AAC/I,MAAA,wBAAwB,iBAAgB,oBAAoB,CAAoE,8BAA8B,EAAE;AAChK,MAAA,mBAAmB,iBAAgB,oBAAoB,CAA0D,wBAAwB,EAAE;AAC3I,MAAA,mBAAmB,iBAAgB,oBAAoB,CAA0D,uBAAuB,EAAE;AAC1I,MAAA,wBAAwB,iBAAgB,oBAAoB,CAAoE,6BAA6B,EAAE;AAC/J,MAAA,mBAAmB,iBAAgB,oBAAoB,CAA0D,uBAAuB,EAAE;AAC1I,MAAA,wBAAwB,iBAAgB,oBAAoB,CAAoE,6BAA6B,EAAE;AAC/J,MAAA,2BAA2B,iBAAgB,oBAAoB,CAA0E,gCAAgC,EAAE;AAC3K,MAAA,oBAAoB,iBAAgB,oBAAoB,CAA4D,yBAAyB,EAAE;AAC/I,MAAA,wBAAwB,iBAAgB,oBAAoB,CAAoE,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/bundle.esm.js
DELETED
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import React, { createElement } from 'react';
|
|
2
|
-
import 'react-dom';
|
|
3
|
-
|
|
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()}`);
|
|
10
|
-
|
|
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;
|
|
116
|
-
};
|
|
117
|
-
|
|
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');
|
|
251
|
-
|
|
252
|
-
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
|
-
//# sourceMappingURL=bundle.esm.js.map
|