@webspatial/react-sdk 1.0.2 → 1.0.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/dist/default/index.js +26 -10
- package/dist/default/index.js.map +1 -1
- package/dist/jsx/jsx-dev-runtime.js +1 -1
- package/dist/jsx/jsx-dev-runtime.web.js +1 -1
- package/dist/jsx/jsx-runtime.js +1 -1
- package/dist/jsx/jsx-runtime.web.js +1 -1
- package/dist/web/index.js +26 -10
- package/dist/web/index.js.map +1 -1
- package/package.json +2 -2
package/dist/default/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
(function(){
|
|
3
3
|
if(typeof window === 'undefined') return;
|
|
4
4
|
if(!window.__webspatialsdk__) window.__webspatialsdk__ = {}
|
|
5
|
-
window.__webspatialsdk__['react-sdk-version'] = "1.0.
|
|
5
|
+
window.__webspatialsdk__['react-sdk-version'] = "1.0.3"
|
|
6
6
|
window.__webspatialsdk__['XR_ENV'] = "avp"
|
|
7
7
|
})()
|
|
8
8
|
|
|
@@ -2013,8 +2013,12 @@ function renderRootCSSSpatialComponent(inProps, refIn) {
|
|
|
2013
2013
|
const { ref, spatialStyle, ready } = useSpatialStyle();
|
|
2014
2014
|
const divRefStyle = {
|
|
2015
2015
|
...style,
|
|
2016
|
-
width: 0,
|
|
2017
|
-
height: 0,
|
|
2016
|
+
// width: 0,
|
|
2017
|
+
// height: 0,
|
|
2018
|
+
left: -1e4,
|
|
2019
|
+
top: -1e4,
|
|
2020
|
+
opacity: 0,
|
|
2021
|
+
pointerEvents: "none",
|
|
2018
2022
|
padding: 0,
|
|
2019
2023
|
transition: "none",
|
|
2020
2024
|
position: "absolute"
|
|
@@ -2087,8 +2091,12 @@ function renderInPortalInstance(cssSpatialRootContextObject, cssSpatialID, inPro
|
|
|
2087
2091
|
const { ref, spatialStyle, ready } = useSpatialStyle();
|
|
2088
2092
|
const divRefStyle = {
|
|
2089
2093
|
...style,
|
|
2090
|
-
width: 0,
|
|
2091
|
-
height: 0,
|
|
2094
|
+
// width: 0,
|
|
2095
|
+
// height: 0,
|
|
2096
|
+
left: -1e4,
|
|
2097
|
+
top: -1e4,
|
|
2098
|
+
opacity: 0,
|
|
2099
|
+
pointerEvents: "none",
|
|
2092
2100
|
padding: 0,
|
|
2093
2101
|
transition: "none",
|
|
2094
2102
|
position: "absolute"
|
|
@@ -3242,8 +3250,12 @@ function renderCSSModel3DNotInSpatialDiv(inProps, refIn) {
|
|
|
3242
3250
|
const { className, style = {}, ...props } = inProps;
|
|
3243
3251
|
const cssParserDomStyle = {
|
|
3244
3252
|
...style,
|
|
3245
|
-
width: 0,
|
|
3246
|
-
height: 0,
|
|
3253
|
+
// width: 0,
|
|
3254
|
+
// height: 0,
|
|
3255
|
+
left: -1e4,
|
|
3256
|
+
top: -1e4,
|
|
3257
|
+
opacity: 0,
|
|
3258
|
+
pointerEvents: "none",
|
|
3247
3259
|
padding: 0,
|
|
3248
3260
|
position: "absolute"
|
|
3249
3261
|
};
|
|
@@ -3331,8 +3343,12 @@ function renderCSSModel3DPortalInstance(spatialId, inProps) {
|
|
|
3331
3343
|
}, [ref.current]);
|
|
3332
3344
|
const cssParserDomStyle = {
|
|
3333
3345
|
...style,
|
|
3334
|
-
width: 0,
|
|
3335
|
-
height: 0,
|
|
3346
|
+
// width: 0,
|
|
3347
|
+
// height: 0,
|
|
3348
|
+
left: -1e4,
|
|
3349
|
+
top: -1e4,
|
|
3350
|
+
opacity: 0,
|
|
3351
|
+
pointerEvents: "none",
|
|
3336
3352
|
padding: 0,
|
|
3337
3353
|
position: "absolute"
|
|
3338
3354
|
};
|
|
@@ -3795,7 +3811,7 @@ function spatialPolyfill() {
|
|
|
3795
3811
|
}
|
|
3796
3812
|
|
|
3797
3813
|
// src/index.ts
|
|
3798
|
-
var version = "1.0.
|
|
3814
|
+
var version = "1.0.3";
|
|
3799
3815
|
export {
|
|
3800
3816
|
CSSSpatialDiv,
|
|
3801
3817
|
CSSSpatialPrimitive,
|