@liveroom-tech/react-immersive 1.1.3 → 1.1.5
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/index.js +25 -2
- package/dist/index.mjs +25 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15904,7 +15904,30 @@ function SimpleModelViewer({
|
|
|
15904
15904
|
setUploadedModelUrl(null);
|
|
15905
15905
|
setUploadedModelName(null);
|
|
15906
15906
|
resetModelState();
|
|
15907
|
-
|
|
15907
|
+
setEnvSettings({
|
|
15908
|
+
backgroundEnabled,
|
|
15909
|
+
backgroundColor,
|
|
15910
|
+
autoRotate,
|
|
15911
|
+
envPreset,
|
|
15912
|
+
exposure,
|
|
15913
|
+
ambientIntensity,
|
|
15914
|
+
ambientColor,
|
|
15915
|
+
directionalIntensity,
|
|
15916
|
+
directionalColor
|
|
15917
|
+
});
|
|
15918
|
+
}, [
|
|
15919
|
+
ambientColor,
|
|
15920
|
+
ambientIntensity,
|
|
15921
|
+
autoRotate,
|
|
15922
|
+
backgroundColor,
|
|
15923
|
+
backgroundEnabled,
|
|
15924
|
+
directionalColor,
|
|
15925
|
+
directionalIntensity,
|
|
15926
|
+
envPreset,
|
|
15927
|
+
exposure,
|
|
15928
|
+
resetModelState,
|
|
15929
|
+
revokeUploadedModelUrl
|
|
15930
|
+
]);
|
|
15908
15931
|
const handleUploadedModel = (0, import_react39.useCallback)(
|
|
15909
15932
|
async (file) => {
|
|
15910
15933
|
setIsResolvingUpload(true);
|
|
@@ -16056,7 +16079,7 @@ function SimpleModelViewer({
|
|
|
16056
16079
|
onDragLeave: handleDragLeave,
|
|
16057
16080
|
onDrop: handleDrop,
|
|
16058
16081
|
children: [
|
|
16059
|
-
showSceneSettingsPanel &&
|
|
16082
|
+
showSceneSettingsPanel && activeModelUrl && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
16060
16083
|
EnvironmentPanel,
|
|
16061
16084
|
{
|
|
16062
16085
|
isOpen: isEnvPanelOpen,
|
package/dist/index.mjs
CHANGED
|
@@ -16012,7 +16012,30 @@ function SimpleModelViewer({
|
|
|
16012
16012
|
setUploadedModelUrl(null);
|
|
16013
16013
|
setUploadedModelName(null);
|
|
16014
16014
|
resetModelState();
|
|
16015
|
-
|
|
16015
|
+
setEnvSettings({
|
|
16016
|
+
backgroundEnabled,
|
|
16017
|
+
backgroundColor,
|
|
16018
|
+
autoRotate,
|
|
16019
|
+
envPreset,
|
|
16020
|
+
exposure,
|
|
16021
|
+
ambientIntensity,
|
|
16022
|
+
ambientColor,
|
|
16023
|
+
directionalIntensity,
|
|
16024
|
+
directionalColor
|
|
16025
|
+
});
|
|
16026
|
+
}, [
|
|
16027
|
+
ambientColor,
|
|
16028
|
+
ambientIntensity,
|
|
16029
|
+
autoRotate,
|
|
16030
|
+
backgroundColor,
|
|
16031
|
+
backgroundEnabled,
|
|
16032
|
+
directionalColor,
|
|
16033
|
+
directionalIntensity,
|
|
16034
|
+
envPreset,
|
|
16035
|
+
exposure,
|
|
16036
|
+
resetModelState,
|
|
16037
|
+
revokeUploadedModelUrl
|
|
16038
|
+
]);
|
|
16016
16039
|
const handleUploadedModel = useCallback9(
|
|
16017
16040
|
async (file) => {
|
|
16018
16041
|
setIsResolvingUpload(true);
|
|
@@ -16164,7 +16187,7 @@ function SimpleModelViewer({
|
|
|
16164
16187
|
onDragLeave: handleDragLeave,
|
|
16165
16188
|
onDrop: handleDrop,
|
|
16166
16189
|
children: [
|
|
16167
|
-
showSceneSettingsPanel &&
|
|
16190
|
+
showSceneSettingsPanel && activeModelUrl && /* @__PURE__ */ jsx46(
|
|
16168
16191
|
EnvironmentPanel,
|
|
16169
16192
|
{
|
|
16170
16193
|
isOpen: isEnvPanelOpen,
|