@liveroom-tech/react-immersive 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -0
- package/dist/{bvhWorkerCode-YSVLRTCI.mjs → bvhWorkerCode-6366A3UC.mjs} +1 -1
- package/dist/chunk-JR557W27.mjs +1 -0
- package/dist/index.d.mts +75 -4
- package/dist/index.d.ts +75 -4
- package/dist/index.js +7 -7
- package/dist/index.mjs +6 -6
- package/dist/utils.mjs +1 -1
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -171,15 +171,31 @@ type CustomSceneObjectsPanelProps = {
|
|
|
171
171
|
};
|
|
172
172
|
type ModelViewerProps = {
|
|
173
173
|
modelUrl: string;
|
|
174
|
+
/** Optional 3D Tiles manifest used instead of loading `modelUrl` monolithically. */
|
|
175
|
+
tilesetUrl?: string | null;
|
|
176
|
+
/** Screen-space error target for streamed 3D Tiles. Lower is sharper. */
|
|
177
|
+
tilesErrorTarget?: number;
|
|
178
|
+
/** Maximum number of parsed tiles retained by the client cache. */
|
|
179
|
+
tilesCacheSize?: number;
|
|
174
180
|
/** Explicit format for extensionless or signed model URLs. */
|
|
175
181
|
modelFormat?: ModelFormat;
|
|
176
182
|
licenseKey: string;
|
|
183
|
+
/**
|
|
184
|
+
* Alternate licence validation endpoint, for first-party/self-hosted consoles
|
|
185
|
+
* that proxy validation through their own origin. The response must carry a
|
|
186
|
+
* signed grant issued by the React Immersive licence service; the entitlement
|
|
187
|
+
* is read from that grant, so this cannot be pointed at an arbitrary server
|
|
188
|
+
* to approve a licence.
|
|
189
|
+
*/
|
|
190
|
+
licenseValidationUrl?: string;
|
|
177
191
|
objectBindings: Record<string, ObjectBinding>;
|
|
178
192
|
selectedObject?: ObjectBinding | null;
|
|
179
193
|
panelHoveredObject?: ObjectBinding | null;
|
|
180
194
|
onObjectBindingsChange?: (next: Record<string, ObjectBinding>) => void;
|
|
181
195
|
onObjectSelect?: (binding: ObjectBinding | null) => void;
|
|
182
196
|
onObjectHover?: (binding: ObjectBinding | null) => void;
|
|
197
|
+
/** Reports transform-gizmo edit leases for collaborative hosts. */
|
|
198
|
+
onObjectEditLeaseChange?: (binding: ObjectBinding, editing: boolean) => void;
|
|
183
199
|
onModelLoaded?: (scene: Object3D) => void;
|
|
184
200
|
onLoadError?: (error: unknown) => void;
|
|
185
201
|
onAction?: (event: ObjectActionEvent) => void;
|
|
@@ -241,18 +257,73 @@ type ModelViewerProps = {
|
|
|
241
257
|
onSceneConfigChange?: (config: SceneConfig) => void;
|
|
242
258
|
showViewGizmo?: boolean;
|
|
243
259
|
};
|
|
244
|
-
declare function ModelViewer({ modelUrl, modelFormat, 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, onSceneConfigChange, disableZoom, zoomOnSelected, highlightOnHover, enableCameraControls, onAutoFit, refitOnResize, renderMode, maxDpr, preserveDrawingBuffer, performanceProfile, dracoDecoderPath, ktx2TranscoderPath, meshopt, showMeasureTools, showUvCheckerButton, showExplodeControls, cinematic, measurementUnit, enableXR, usdzUrl, arScaleMode, mobileHandoffUrl, showAnnotationNavigation, showAnnotationOnHover, moveModeEnabled, objectTransformSpace, enableKeyboardNavigation, showViewGizmo, }: ModelViewerProps): react_jsx_runtime.JSX.Element;
|
|
260
|
+
declare function ModelViewer({ modelUrl, tilesetUrl, tilesErrorTarget, tilesCacheSize, modelFormat, licenseKey, licenseValidationUrl, objectBindings, selectedObject, panelHoveredObject, onObjectBindingsChange, onObjectSelect, onObjectHover, onObjectEditLeaseChange, 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, onSceneConfigChange, disableZoom, zoomOnSelected, highlightOnHover, enableCameraControls, onAutoFit, refitOnResize, renderMode, maxDpr, preserveDrawingBuffer, performanceProfile, dracoDecoderPath, ktx2TranscoderPath, meshopt, showMeasureTools, showUvCheckerButton, showExplodeControls, cinematic, measurementUnit, enableXR, usdzUrl, arScaleMode, mobileHandoffUrl, showAnnotationNavigation, showAnnotationOnHover, moveModeEnabled, objectTransformSpace, enableKeyboardNavigation, showViewGizmo, }: ModelViewerProps): react_jsx_runtime.JSX.Element;
|
|
261
|
+
|
|
262
|
+
type BindingBuilderProjectModel = {
|
|
263
|
+
url: string;
|
|
264
|
+
name?: string;
|
|
265
|
+
assetId?: string | null;
|
|
266
|
+
/**
|
|
267
|
+
* Optional streamable model manifest. The current viewer uses `url`; large
|
|
268
|
+
* model renderers can use this value without changing the saved project
|
|
269
|
+
* shape.
|
|
270
|
+
*/
|
|
271
|
+
tilesetUrl?: string | null;
|
|
272
|
+
assetVersion?: string | null;
|
|
273
|
+
};
|
|
274
|
+
type BindingBuilderProject = {
|
|
275
|
+
id: string;
|
|
276
|
+
revision: number;
|
|
277
|
+
model: BindingBuilderProjectModel;
|
|
278
|
+
objectBindings: Record<string, ObjectBinding>;
|
|
279
|
+
sceneConfig: SceneConfig;
|
|
280
|
+
};
|
|
281
|
+
type BindingBuilderProjectSnapshot = {
|
|
282
|
+
projectId: string;
|
|
283
|
+
baseRevision: number;
|
|
284
|
+
model: BindingBuilderProjectModel;
|
|
285
|
+
objectBindings: Record<string, ObjectBinding>;
|
|
286
|
+
sceneConfig: SceneConfig;
|
|
287
|
+
};
|
|
288
|
+
type BindingBuilderProjectChangeOrigin = "local" | "remote";
|
|
245
289
|
|
|
246
290
|
type BindingBuilderProps = {
|
|
247
291
|
licenseKey: string;
|
|
292
|
+
/**
|
|
293
|
+
* Alternate licence validation endpoint, for first-party/self-hosted consoles
|
|
294
|
+
* that proxy validation through their own origin. The response must carry a
|
|
295
|
+
* signed grant issued by the React Immersive licence service; the entitlement
|
|
296
|
+
* is read from that grant, so this cannot be pointed at an arbitrary server
|
|
297
|
+
* to approve a licence.
|
|
298
|
+
*/
|
|
299
|
+
licenseValidationUrl?: string;
|
|
248
300
|
/** Directory containing the DRACO decoder files, or false. */
|
|
249
301
|
dracoDecoderPath?: string | false;
|
|
250
302
|
/** Directory containing the Basis/KTX2 transcoder files, or false. */
|
|
251
303
|
ktx2TranscoderPath?: string | false;
|
|
252
304
|
/** Enable the bundled Meshopt decoder. Defaults to true. */
|
|
253
305
|
meshopt?: boolean;
|
|
254
|
-
|
|
255
|
-
|
|
306
|
+
/**
|
|
307
|
+
* Optional server-backed project. When supplied, the editor hydrates from
|
|
308
|
+
* this snapshot and applies newer revisions without remounting.
|
|
309
|
+
*/
|
|
310
|
+
project?: BindingBuilderProject | null;
|
|
311
|
+
/**
|
|
312
|
+
* Reports debounced, serializable editor snapshots. Persistence and
|
|
313
|
+
* collaboration transports remain owned by the host application.
|
|
314
|
+
*/
|
|
315
|
+
onProjectChange?: (snapshot: BindingBuilderProjectSnapshot, origin: BindingBuilderProjectChangeOrigin) => void;
|
|
316
|
+
/** Delay before reporting local project changes. Defaults to 350ms. */
|
|
317
|
+
projectChangeDebounceMs?: number;
|
|
318
|
+
/**
|
|
319
|
+
* Lets a hosted editor upload a selected model before it is loaded. Return
|
|
320
|
+
* the durable model URL/version that should be saved with the project.
|
|
321
|
+
*/
|
|
322
|
+
onModelUpload?: (file: File) => Promise<BindingBuilderProject["model"]>;
|
|
323
|
+
/** Requests/releases a short collaborative lease around gizmo edits. */
|
|
324
|
+
onEditLeaseChange?: (featureId: string, editing: boolean) => void;
|
|
325
|
+
};
|
|
326
|
+
declare function BindingBuilder({ licenseKey, licenseValidationUrl, dracoDecoderPath, ktx2TranscoderPath, meshopt, project, onProjectChange, projectChangeDebounceMs, onModelUpload, onEditLeaseChange, }: BindingBuilderProps): react_jsx_runtime.JSX.Element;
|
|
256
327
|
|
|
257
328
|
type SimpleModelViewerProps = {
|
|
258
329
|
modelUrl: string;
|
|
@@ -571,4 +642,4 @@ type ShareableViewerStateProps = {
|
|
|
571
642
|
};
|
|
572
643
|
declare function useShareableViewerState({ cameraState, setCameraState, objectBindings, onObjectBindingsChange, selectedObjectBinding, setSelectedObjectBinding, paramKey, debounceMs, autoSync, }: UseShareableViewerStateOptions): ShareableViewerStateProps;
|
|
573
644
|
|
|
574
|
-
export { type AnimationClipInfo, type AnimationControls, type AnimationPlaybackState, BindingBuilder, type BindingBuilderProps, BindingEdit, type CaptureImageOptions, type CinematicConfig, type CinematicWaypoint, type CustomObjectBindingDataPanelProps, type CustomSceneObjectsPanelProps, type HiddenObjectsState, type HomeCameraState, type ModelFormat, ModelViewer, type ModelViewerProps, ObjectActionEvent, ObjectBinding, ObjectBindingAction, ObjectBindingMaterial, ObjectBindingPatch, ObjectBindingTarget, ObjectBindingTextureChannel, ObjectBindingTextureSlot, ObjectBindingTransform, type ObjectBindingsController, type ObjectTransformSpace, type RuntimeMaterialPatch, type RuntimeMaterialRanges, type RuntimePointLightOptions, type RuntimePointLightPatch, type RuntimeTransformPatch, type RuntimeTransformRanges, SceneConfig, type SceneConfigController, SceneConfigPatch, type SceneConfigUpdate, SceneLight, SceneLightAttachment, type SceneLightInput, type SceneLightPatch, type SceneLightsController, SimpleModelViewer, type SimpleModelViewerProps, type UseViewerCameraOptions, type UseViewerEffectsOptions, type ViewerActionAnimationController, type ViewerActionBindingsController, type ViewerActionCameraController, type ViewerActionSceneController, type ViewerActionsOptions, type ViewerActionsProps, type ViewerAnimationsProps, type ViewerCameraPreset, type ViewerCameraProps, ViewerCameraState, type ViewerConnectionController, type ViewerEffectChannels, type ViewerEffectEasing, type ViewerEffectRange, type ViewerEffectTarget, type ViewerEffectsController, type ViewerFlickerOptions, type ViewerLightEffectChannel, type ViewerMaterialEffectChannel, type ViewerModelBounds, type ViewerModelProps, type ViewerPulseOptions, type ViewerReadyConsumer, type ViewerReadyHandler, type ViewerReadyState, type ViewerSelectionProps, type ViewerTimelineOptions, type ViewerTimelineStep, type ViewerTransformEffectChannel, type ViewerTransitionOptions, type ViewerVector3, type XRScaleMode, useObjectBinding, useObjectBindingIds, useObjectBindings, useSceneConfig, useShareableViewerState, useViewerActions, useViewerAnimations, useViewerCamera, useViewerConnection, useViewerEffects, useViewerHover, useViewerModel, useViewerSelection };
|
|
645
|
+
export { type AnimationClipInfo, type AnimationControls, type AnimationPlaybackState, BindingBuilder, type BindingBuilderProject, type BindingBuilderProjectChangeOrigin, type BindingBuilderProjectModel, type BindingBuilderProjectSnapshot, type BindingBuilderProps, BindingEdit, type CaptureImageOptions, type CinematicConfig, type CinematicWaypoint, type CustomObjectBindingDataPanelProps, type CustomSceneObjectsPanelProps, type HiddenObjectsState, type HomeCameraState, type ModelFormat, ModelViewer, type ModelViewerProps, ObjectActionEvent, ObjectBinding, ObjectBindingAction, ObjectBindingMaterial, ObjectBindingPatch, ObjectBindingTarget, ObjectBindingTextureChannel, ObjectBindingTextureSlot, ObjectBindingTransform, type ObjectBindingsController, type ObjectTransformSpace, type RuntimeMaterialPatch, type RuntimeMaterialRanges, type RuntimePointLightOptions, type RuntimePointLightPatch, type RuntimeTransformPatch, type RuntimeTransformRanges, SceneConfig, type SceneConfigController, SceneConfigPatch, type SceneConfigUpdate, SceneLight, SceneLightAttachment, type SceneLightInput, type SceneLightPatch, type SceneLightsController, SimpleModelViewer, type SimpleModelViewerProps, type UseViewerCameraOptions, type UseViewerEffectsOptions, type ViewerActionAnimationController, type ViewerActionBindingsController, type ViewerActionCameraController, type ViewerActionSceneController, type ViewerActionsOptions, type ViewerActionsProps, type ViewerAnimationsProps, type ViewerCameraPreset, type ViewerCameraProps, ViewerCameraState, type ViewerConnectionController, type ViewerEffectChannels, type ViewerEffectEasing, type ViewerEffectRange, type ViewerEffectTarget, type ViewerEffectsController, type ViewerFlickerOptions, type ViewerLightEffectChannel, type ViewerMaterialEffectChannel, type ViewerModelBounds, type ViewerModelProps, type ViewerPulseOptions, type ViewerReadyConsumer, type ViewerReadyHandler, type ViewerReadyState, type ViewerSelectionProps, type ViewerTimelineOptions, type ViewerTimelineStep, type ViewerTransformEffectChannel, type ViewerTransitionOptions, type ViewerVector3, type XRScaleMode, useObjectBinding, useObjectBindingIds, useObjectBindings, useSceneConfig, useShareableViewerState, useViewerActions, useViewerAnimations, useViewerCamera, useViewerConnection, useViewerEffects, useViewerHover, useViewerModel, useViewerSelection };
|
package/dist/index.d.ts
CHANGED
|
@@ -171,15 +171,31 @@ type CustomSceneObjectsPanelProps = {
|
|
|
171
171
|
};
|
|
172
172
|
type ModelViewerProps = {
|
|
173
173
|
modelUrl: string;
|
|
174
|
+
/** Optional 3D Tiles manifest used instead of loading `modelUrl` monolithically. */
|
|
175
|
+
tilesetUrl?: string | null;
|
|
176
|
+
/** Screen-space error target for streamed 3D Tiles. Lower is sharper. */
|
|
177
|
+
tilesErrorTarget?: number;
|
|
178
|
+
/** Maximum number of parsed tiles retained by the client cache. */
|
|
179
|
+
tilesCacheSize?: number;
|
|
174
180
|
/** Explicit format for extensionless or signed model URLs. */
|
|
175
181
|
modelFormat?: ModelFormat;
|
|
176
182
|
licenseKey: string;
|
|
183
|
+
/**
|
|
184
|
+
* Alternate licence validation endpoint, for first-party/self-hosted consoles
|
|
185
|
+
* that proxy validation through their own origin. The response must carry a
|
|
186
|
+
* signed grant issued by the React Immersive licence service; the entitlement
|
|
187
|
+
* is read from that grant, so this cannot be pointed at an arbitrary server
|
|
188
|
+
* to approve a licence.
|
|
189
|
+
*/
|
|
190
|
+
licenseValidationUrl?: string;
|
|
177
191
|
objectBindings: Record<string, ObjectBinding>;
|
|
178
192
|
selectedObject?: ObjectBinding | null;
|
|
179
193
|
panelHoveredObject?: ObjectBinding | null;
|
|
180
194
|
onObjectBindingsChange?: (next: Record<string, ObjectBinding>) => void;
|
|
181
195
|
onObjectSelect?: (binding: ObjectBinding | null) => void;
|
|
182
196
|
onObjectHover?: (binding: ObjectBinding | null) => void;
|
|
197
|
+
/** Reports transform-gizmo edit leases for collaborative hosts. */
|
|
198
|
+
onObjectEditLeaseChange?: (binding: ObjectBinding, editing: boolean) => void;
|
|
183
199
|
onModelLoaded?: (scene: Object3D) => void;
|
|
184
200
|
onLoadError?: (error: unknown) => void;
|
|
185
201
|
onAction?: (event: ObjectActionEvent) => void;
|
|
@@ -241,18 +257,73 @@ type ModelViewerProps = {
|
|
|
241
257
|
onSceneConfigChange?: (config: SceneConfig) => void;
|
|
242
258
|
showViewGizmo?: boolean;
|
|
243
259
|
};
|
|
244
|
-
declare function ModelViewer({ modelUrl, modelFormat, 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, onSceneConfigChange, disableZoom, zoomOnSelected, highlightOnHover, enableCameraControls, onAutoFit, refitOnResize, renderMode, maxDpr, preserveDrawingBuffer, performanceProfile, dracoDecoderPath, ktx2TranscoderPath, meshopt, showMeasureTools, showUvCheckerButton, showExplodeControls, cinematic, measurementUnit, enableXR, usdzUrl, arScaleMode, mobileHandoffUrl, showAnnotationNavigation, showAnnotationOnHover, moveModeEnabled, objectTransformSpace, enableKeyboardNavigation, showViewGizmo, }: ModelViewerProps): react_jsx_runtime.JSX.Element;
|
|
260
|
+
declare function ModelViewer({ modelUrl, tilesetUrl, tilesErrorTarget, tilesCacheSize, modelFormat, licenseKey, licenseValidationUrl, objectBindings, selectedObject, panelHoveredObject, onObjectBindingsChange, onObjectSelect, onObjectHover, onObjectEditLeaseChange, 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, onSceneConfigChange, disableZoom, zoomOnSelected, highlightOnHover, enableCameraControls, onAutoFit, refitOnResize, renderMode, maxDpr, preserveDrawingBuffer, performanceProfile, dracoDecoderPath, ktx2TranscoderPath, meshopt, showMeasureTools, showUvCheckerButton, showExplodeControls, cinematic, measurementUnit, enableXR, usdzUrl, arScaleMode, mobileHandoffUrl, showAnnotationNavigation, showAnnotationOnHover, moveModeEnabled, objectTransformSpace, enableKeyboardNavigation, showViewGizmo, }: ModelViewerProps): react_jsx_runtime.JSX.Element;
|
|
261
|
+
|
|
262
|
+
type BindingBuilderProjectModel = {
|
|
263
|
+
url: string;
|
|
264
|
+
name?: string;
|
|
265
|
+
assetId?: string | null;
|
|
266
|
+
/**
|
|
267
|
+
* Optional streamable model manifest. The current viewer uses `url`; large
|
|
268
|
+
* model renderers can use this value without changing the saved project
|
|
269
|
+
* shape.
|
|
270
|
+
*/
|
|
271
|
+
tilesetUrl?: string | null;
|
|
272
|
+
assetVersion?: string | null;
|
|
273
|
+
};
|
|
274
|
+
type BindingBuilderProject = {
|
|
275
|
+
id: string;
|
|
276
|
+
revision: number;
|
|
277
|
+
model: BindingBuilderProjectModel;
|
|
278
|
+
objectBindings: Record<string, ObjectBinding>;
|
|
279
|
+
sceneConfig: SceneConfig;
|
|
280
|
+
};
|
|
281
|
+
type BindingBuilderProjectSnapshot = {
|
|
282
|
+
projectId: string;
|
|
283
|
+
baseRevision: number;
|
|
284
|
+
model: BindingBuilderProjectModel;
|
|
285
|
+
objectBindings: Record<string, ObjectBinding>;
|
|
286
|
+
sceneConfig: SceneConfig;
|
|
287
|
+
};
|
|
288
|
+
type BindingBuilderProjectChangeOrigin = "local" | "remote";
|
|
245
289
|
|
|
246
290
|
type BindingBuilderProps = {
|
|
247
291
|
licenseKey: string;
|
|
292
|
+
/**
|
|
293
|
+
* Alternate licence validation endpoint, for first-party/self-hosted consoles
|
|
294
|
+
* that proxy validation through their own origin. The response must carry a
|
|
295
|
+
* signed grant issued by the React Immersive licence service; the entitlement
|
|
296
|
+
* is read from that grant, so this cannot be pointed at an arbitrary server
|
|
297
|
+
* to approve a licence.
|
|
298
|
+
*/
|
|
299
|
+
licenseValidationUrl?: string;
|
|
248
300
|
/** Directory containing the DRACO decoder files, or false. */
|
|
249
301
|
dracoDecoderPath?: string | false;
|
|
250
302
|
/** Directory containing the Basis/KTX2 transcoder files, or false. */
|
|
251
303
|
ktx2TranscoderPath?: string | false;
|
|
252
304
|
/** Enable the bundled Meshopt decoder. Defaults to true. */
|
|
253
305
|
meshopt?: boolean;
|
|
254
|
-
|
|
255
|
-
|
|
306
|
+
/**
|
|
307
|
+
* Optional server-backed project. When supplied, the editor hydrates from
|
|
308
|
+
* this snapshot and applies newer revisions without remounting.
|
|
309
|
+
*/
|
|
310
|
+
project?: BindingBuilderProject | null;
|
|
311
|
+
/**
|
|
312
|
+
* Reports debounced, serializable editor snapshots. Persistence and
|
|
313
|
+
* collaboration transports remain owned by the host application.
|
|
314
|
+
*/
|
|
315
|
+
onProjectChange?: (snapshot: BindingBuilderProjectSnapshot, origin: BindingBuilderProjectChangeOrigin) => void;
|
|
316
|
+
/** Delay before reporting local project changes. Defaults to 350ms. */
|
|
317
|
+
projectChangeDebounceMs?: number;
|
|
318
|
+
/**
|
|
319
|
+
* Lets a hosted editor upload a selected model before it is loaded. Return
|
|
320
|
+
* the durable model URL/version that should be saved with the project.
|
|
321
|
+
*/
|
|
322
|
+
onModelUpload?: (file: File) => Promise<BindingBuilderProject["model"]>;
|
|
323
|
+
/** Requests/releases a short collaborative lease around gizmo edits. */
|
|
324
|
+
onEditLeaseChange?: (featureId: string, editing: boolean) => void;
|
|
325
|
+
};
|
|
326
|
+
declare function BindingBuilder({ licenseKey, licenseValidationUrl, dracoDecoderPath, ktx2TranscoderPath, meshopt, project, onProjectChange, projectChangeDebounceMs, onModelUpload, onEditLeaseChange, }: BindingBuilderProps): react_jsx_runtime.JSX.Element;
|
|
256
327
|
|
|
257
328
|
type SimpleModelViewerProps = {
|
|
258
329
|
modelUrl: string;
|
|
@@ -571,4 +642,4 @@ type ShareableViewerStateProps = {
|
|
|
571
642
|
};
|
|
572
643
|
declare function useShareableViewerState({ cameraState, setCameraState, objectBindings, onObjectBindingsChange, selectedObjectBinding, setSelectedObjectBinding, paramKey, debounceMs, autoSync, }: UseShareableViewerStateOptions): ShareableViewerStateProps;
|
|
573
644
|
|
|
574
|
-
export { type AnimationClipInfo, type AnimationControls, type AnimationPlaybackState, BindingBuilder, type BindingBuilderProps, BindingEdit, type CaptureImageOptions, type CinematicConfig, type CinematicWaypoint, type CustomObjectBindingDataPanelProps, type CustomSceneObjectsPanelProps, type HiddenObjectsState, type HomeCameraState, type ModelFormat, ModelViewer, type ModelViewerProps, ObjectActionEvent, ObjectBinding, ObjectBindingAction, ObjectBindingMaterial, ObjectBindingPatch, ObjectBindingTarget, ObjectBindingTextureChannel, ObjectBindingTextureSlot, ObjectBindingTransform, type ObjectBindingsController, type ObjectTransformSpace, type RuntimeMaterialPatch, type RuntimeMaterialRanges, type RuntimePointLightOptions, type RuntimePointLightPatch, type RuntimeTransformPatch, type RuntimeTransformRanges, SceneConfig, type SceneConfigController, SceneConfigPatch, type SceneConfigUpdate, SceneLight, SceneLightAttachment, type SceneLightInput, type SceneLightPatch, type SceneLightsController, SimpleModelViewer, type SimpleModelViewerProps, type UseViewerCameraOptions, type UseViewerEffectsOptions, type ViewerActionAnimationController, type ViewerActionBindingsController, type ViewerActionCameraController, type ViewerActionSceneController, type ViewerActionsOptions, type ViewerActionsProps, type ViewerAnimationsProps, type ViewerCameraPreset, type ViewerCameraProps, ViewerCameraState, type ViewerConnectionController, type ViewerEffectChannels, type ViewerEffectEasing, type ViewerEffectRange, type ViewerEffectTarget, type ViewerEffectsController, type ViewerFlickerOptions, type ViewerLightEffectChannel, type ViewerMaterialEffectChannel, type ViewerModelBounds, type ViewerModelProps, type ViewerPulseOptions, type ViewerReadyConsumer, type ViewerReadyHandler, type ViewerReadyState, type ViewerSelectionProps, type ViewerTimelineOptions, type ViewerTimelineStep, type ViewerTransformEffectChannel, type ViewerTransitionOptions, type ViewerVector3, type XRScaleMode, useObjectBinding, useObjectBindingIds, useObjectBindings, useSceneConfig, useShareableViewerState, useViewerActions, useViewerAnimations, useViewerCamera, useViewerConnection, useViewerEffects, useViewerHover, useViewerModel, useViewerSelection };
|
|
645
|
+
export { type AnimationClipInfo, type AnimationControls, type AnimationPlaybackState, BindingBuilder, type BindingBuilderProject, type BindingBuilderProjectChangeOrigin, type BindingBuilderProjectModel, type BindingBuilderProjectSnapshot, type BindingBuilderProps, BindingEdit, type CaptureImageOptions, type CinematicConfig, type CinematicWaypoint, type CustomObjectBindingDataPanelProps, type CustomSceneObjectsPanelProps, type HiddenObjectsState, type HomeCameraState, type ModelFormat, ModelViewer, type ModelViewerProps, ObjectActionEvent, ObjectBinding, ObjectBindingAction, ObjectBindingMaterial, ObjectBindingPatch, ObjectBindingTarget, ObjectBindingTextureChannel, ObjectBindingTextureSlot, ObjectBindingTransform, type ObjectBindingsController, type ObjectTransformSpace, type RuntimeMaterialPatch, type RuntimeMaterialRanges, type RuntimePointLightOptions, type RuntimePointLightPatch, type RuntimeTransformPatch, type RuntimeTransformRanges, SceneConfig, type SceneConfigController, SceneConfigPatch, type SceneConfigUpdate, SceneLight, SceneLightAttachment, type SceneLightInput, type SceneLightPatch, type SceneLightsController, SimpleModelViewer, type SimpleModelViewerProps, type UseViewerCameraOptions, type UseViewerEffectsOptions, type ViewerActionAnimationController, type ViewerActionBindingsController, type ViewerActionCameraController, type ViewerActionSceneController, type ViewerActionsOptions, type ViewerActionsProps, type ViewerAnimationsProps, type ViewerCameraPreset, type ViewerCameraProps, ViewerCameraState, type ViewerConnectionController, type ViewerEffectChannels, type ViewerEffectEasing, type ViewerEffectRange, type ViewerEffectTarget, type ViewerEffectsController, type ViewerFlickerOptions, type ViewerLightEffectChannel, type ViewerMaterialEffectChannel, type ViewerModelBounds, type ViewerModelProps, type ViewerPulseOptions, type ViewerReadyConsumer, type ViewerReadyHandler, type ViewerReadyState, type ViewerSelectionProps, type ViewerTimelineOptions, type ViewerTimelineStep, type ViewerTransformEffectChannel, type ViewerTransitionOptions, type ViewerVector3, type XRScaleMode, useObjectBinding, useObjectBindingIds, useObjectBindings, useSceneConfig, useShareableViewerState, useViewerActions, useViewerAnimations, useViewerCamera, useViewerConnection, useViewerEffects, useViewerHover, useViewerModel, useViewerSelection };
|