@liveroom-tech/react-immersive 1.1.1 → 1.1.3
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.md +2 -13
- package/dist/index.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +146 -144
- package/dist/index.mjs +151 -146
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ It also exports types for `ObjectBinding`, `ObjectBindingMaterial`, `ObjectActio
|
|
|
40
40
|
- optional custom left object data panel through `customObjectBindingDataPanel`
|
|
41
41
|
- optional custom right scene objects panel through `customSceneObjectsPanel`
|
|
42
42
|
- optional hiding of either built-in panel through `showObjectBindingDataPanel` and `showSceneObjectsPanel`
|
|
43
|
-
- optional model export button through `showDownloadButton` and `downloadFilename`, plus independent `showResetButton`
|
|
43
|
+
- optional model export button through `showDownloadButton` and `downloadFilename`, plus an independent `showResetButton` toggle for the rest of that action bar
|
|
44
44
|
- click-to-measure distance tool and a bounding-box dimensions overlay through `showMeasureTools` and `measurementUnit`
|
|
45
45
|
- an exploded-view slider that slides each bound part outward from the model center to reveal interior/assembly structure through `showExplodeControls`
|
|
46
46
|
- a cinematic auto-camera that glides the camera along authored waypoints (or a zero-config showcase orbit), like a film, through `cinematic` — with a play/pause control that yields the moment you touch the camera
|
|
@@ -671,7 +671,6 @@ type Props = {
|
|
|
671
671
|
showDownloadButton?: boolean;
|
|
672
672
|
downloadFilename?: string;
|
|
673
673
|
showResetButton?: boolean;
|
|
674
|
-
showDownloadButtons?: boolean;
|
|
675
674
|
showLoadingOverlay?: boolean;
|
|
676
675
|
showMouseController?: boolean;
|
|
677
676
|
mouseControllerPosition?:
|
|
@@ -1140,7 +1139,7 @@ Default:
|
|
|
1140
1139
|
true;
|
|
1141
1140
|
```
|
|
1142
1141
|
|
|
1143
|
-
The bottom-right action bar
|
|
1142
|
+
The bottom-right action bar renders when at least one of `showResetButton`, `showDownloadButton`, or (`showAnnotationNavigation` with annotations present) is `true`.
|
|
1144
1143
|
|
|
1145
1144
|
### `downloadFilename`
|
|
1146
1145
|
|
|
@@ -1162,16 +1161,6 @@ Default:
|
|
|
1162
1161
|
true;
|
|
1163
1162
|
```
|
|
1164
1163
|
|
|
1165
|
-
### `showDownloadButtons`
|
|
1166
|
-
|
|
1167
|
-
Optional boolean — master toggle for the download split-button area in the bottom-right action bar. Set to `false` to hide it regardless of `showDownloadButton`.
|
|
1168
|
-
|
|
1169
|
-
Default:
|
|
1170
|
-
|
|
1171
|
-
```ts
|
|
1172
|
-
true;
|
|
1173
|
-
```
|
|
1174
|
-
|
|
1175
1164
|
### `showLoadingOverlay`
|
|
1176
1165
|
|
|
1177
1166
|
Optional boolean controlling whether the built-in loading overlay is shown while the model is loading and the initial camera fit is settling.
|
package/dist/index.d.mts
CHANGED
|
@@ -580,7 +580,6 @@ type ModelViewerProps = {
|
|
|
580
580
|
showDownloadButton?: boolean;
|
|
581
581
|
downloadFilename?: string;
|
|
582
582
|
showResetButton?: boolean;
|
|
583
|
-
showDownloadButtons?: boolean;
|
|
584
583
|
showLoadingOverlay?: boolean;
|
|
585
584
|
showMouseController?: boolean;
|
|
586
585
|
mouseControllerPosition?: MouseControllerPosition;
|
|
@@ -607,7 +606,7 @@ type ModelViewerProps = {
|
|
|
607
606
|
usdzUrl?: string;
|
|
608
607
|
showAnnotationNavigation?: boolean;
|
|
609
608
|
};
|
|
610
|
-
declare function ModelViewer({ modelUrl, licenseKey, objectBindings, selectedObject, panelHoveredObject, onObjectBindingsChange, onObjectSelect, onObjectHover, onModelLoaded, onLoadError, onAction, onHiddenObjectsChange, onCameraChange, onViewerReady, onTextureUpload, onAnimationsReady, onAnnotationsChange, activeAnnotation: controlledActiveAnnotation, onActiveAnnotationChange, lights, camera, backgroundColor, shadows, showObjectBindingDataPanel, customObjectBindingDataPanel, customSceneObjectsPanel, showSceneObjectsPanel, showDownloadButton, downloadFilename, showResetButton,
|
|
609
|
+
declare function ModelViewer({ modelUrl, licenseKey, objectBindings, selectedObject, panelHoveredObject, onObjectBindingsChange, onObjectSelect, onObjectHover, onModelLoaded, onLoadError, onAction, onHiddenObjectsChange, onCameraChange, onViewerReady, onTextureUpload, onAnimationsReady, onAnnotationsChange, activeAnnotation: controlledActiveAnnotation, onActiveAnnotationChange, lights, camera, backgroundColor, shadows, showObjectBindingDataPanel, customObjectBindingDataPanel, customSceneObjectsPanel, showSceneObjectsPanel, showDownloadButton, downloadFilename, showResetButton, showLoadingOverlay, showMouseController, mouseControllerPosition, mouseControllerOpacity, moveSensitivity, zoomSensitivity, sceneConfig, disableZoom, zoomOnSelected, highlightOnHover, onAutoFit, refitOnResize, renderMode, maxDpr, performanceProfile, dracoDecoderPath, ktx2TranscoderPath, meshopt, showMeasureTools, showExplodeControls, cinematic, measurementUnit, enableXR, usdzUrl, showAnnotationNavigation, }: ModelViewerProps): react_jsx_runtime.JSX.Element;
|
|
611
610
|
|
|
612
611
|
declare function BindingBuilder({ licenseKey }: {
|
|
613
612
|
licenseKey: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -580,7 +580,6 @@ type ModelViewerProps = {
|
|
|
580
580
|
showDownloadButton?: boolean;
|
|
581
581
|
downloadFilename?: string;
|
|
582
582
|
showResetButton?: boolean;
|
|
583
|
-
showDownloadButtons?: boolean;
|
|
584
583
|
showLoadingOverlay?: boolean;
|
|
585
584
|
showMouseController?: boolean;
|
|
586
585
|
mouseControllerPosition?: MouseControllerPosition;
|
|
@@ -607,7 +606,7 @@ type ModelViewerProps = {
|
|
|
607
606
|
usdzUrl?: string;
|
|
608
607
|
showAnnotationNavigation?: boolean;
|
|
609
608
|
};
|
|
610
|
-
declare function ModelViewer({ modelUrl, licenseKey, objectBindings, selectedObject, panelHoveredObject, onObjectBindingsChange, onObjectSelect, onObjectHover, onModelLoaded, onLoadError, onAction, onHiddenObjectsChange, onCameraChange, onViewerReady, onTextureUpload, onAnimationsReady, onAnnotationsChange, activeAnnotation: controlledActiveAnnotation, onActiveAnnotationChange, lights, camera, backgroundColor, shadows, showObjectBindingDataPanel, customObjectBindingDataPanel, customSceneObjectsPanel, showSceneObjectsPanel, showDownloadButton, downloadFilename, showResetButton,
|
|
609
|
+
declare function ModelViewer({ modelUrl, licenseKey, objectBindings, selectedObject, panelHoveredObject, onObjectBindingsChange, onObjectSelect, onObjectHover, onModelLoaded, onLoadError, onAction, onHiddenObjectsChange, onCameraChange, onViewerReady, onTextureUpload, onAnimationsReady, onAnnotationsChange, activeAnnotation: controlledActiveAnnotation, onActiveAnnotationChange, lights, camera, backgroundColor, shadows, showObjectBindingDataPanel, customObjectBindingDataPanel, customSceneObjectsPanel, showSceneObjectsPanel, showDownloadButton, downloadFilename, showResetButton, showLoadingOverlay, showMouseController, mouseControllerPosition, mouseControllerOpacity, moveSensitivity, zoomSensitivity, sceneConfig, disableZoom, zoomOnSelected, highlightOnHover, onAutoFit, refitOnResize, renderMode, maxDpr, performanceProfile, dracoDecoderPath, ktx2TranscoderPath, meshopt, showMeasureTools, showExplodeControls, cinematic, measurementUnit, enableXR, usdzUrl, showAnnotationNavigation, }: ModelViewerProps): react_jsx_runtime.JSX.Element;
|
|
611
610
|
|
|
612
611
|
declare function BindingBuilder({ licenseKey }: {
|
|
613
612
|
licenseKey: string;
|