@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
|
@@ -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
|
|
|
@@ -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'] = "web"
|
|
7
7
|
})()
|
|
8
8
|
|
package/dist/jsx/jsx-runtime.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
|
|
|
@@ -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'] = "web"
|
|
7
7
|
})()
|
|
8
8
|
|
package/dist/web/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'] = "web"
|
|
7
7
|
})()
|
|
8
8
|
|
|
@@ -2045,8 +2045,12 @@ function renderRootCSSSpatialComponent(inProps, refIn) {
|
|
|
2045
2045
|
const { ref, spatialStyle, ready } = useSpatialStyle();
|
|
2046
2046
|
const divRefStyle = {
|
|
2047
2047
|
...style,
|
|
2048
|
-
width: 0,
|
|
2049
|
-
height: 0,
|
|
2048
|
+
// width: 0,
|
|
2049
|
+
// height: 0,
|
|
2050
|
+
left: -1e4,
|
|
2051
|
+
top: -1e4,
|
|
2052
|
+
opacity: 0,
|
|
2053
|
+
pointerEvents: "none",
|
|
2050
2054
|
padding: 0,
|
|
2051
2055
|
transition: "none",
|
|
2052
2056
|
position: "absolute"
|
|
@@ -2119,8 +2123,12 @@ function renderInPortalInstance(cssSpatialRootContextObject, cssSpatialID, inPro
|
|
|
2119
2123
|
const { ref, spatialStyle, ready } = useSpatialStyle();
|
|
2120
2124
|
const divRefStyle = {
|
|
2121
2125
|
...style,
|
|
2122
|
-
width: 0,
|
|
2123
|
-
height: 0,
|
|
2126
|
+
// width: 0,
|
|
2127
|
+
// height: 0,
|
|
2128
|
+
left: -1e4,
|
|
2129
|
+
top: -1e4,
|
|
2130
|
+
opacity: 0,
|
|
2131
|
+
pointerEvents: "none",
|
|
2124
2132
|
padding: 0,
|
|
2125
2133
|
transition: "none",
|
|
2126
2134
|
position: "absolute"
|
|
@@ -3273,8 +3281,12 @@ function renderCSSModel3DNotInSpatialDiv(inProps, refIn) {
|
|
|
3273
3281
|
const { className, style = {}, ...props } = inProps;
|
|
3274
3282
|
const cssParserDomStyle = {
|
|
3275
3283
|
...style,
|
|
3276
|
-
width: 0,
|
|
3277
|
-
height: 0,
|
|
3284
|
+
// width: 0,
|
|
3285
|
+
// height: 0,
|
|
3286
|
+
left: -1e4,
|
|
3287
|
+
top: -1e4,
|
|
3288
|
+
opacity: 0,
|
|
3289
|
+
pointerEvents: "none",
|
|
3278
3290
|
padding: 0,
|
|
3279
3291
|
position: "absolute"
|
|
3280
3292
|
};
|
|
@@ -3362,8 +3374,12 @@ function renderCSSModel3DPortalInstance(spatialId, inProps) {
|
|
|
3362
3374
|
}, [ref.current]);
|
|
3363
3375
|
const cssParserDomStyle = {
|
|
3364
3376
|
...style,
|
|
3365
|
-
width: 0,
|
|
3366
|
-
height: 0,
|
|
3377
|
+
// width: 0,
|
|
3378
|
+
// height: 0,
|
|
3379
|
+
left: -1e4,
|
|
3380
|
+
top: -1e4,
|
|
3381
|
+
opacity: 0,
|
|
3382
|
+
pointerEvents: "none",
|
|
3367
3383
|
padding: 0,
|
|
3368
3384
|
position: "absolute"
|
|
3369
3385
|
};
|
|
@@ -3826,7 +3842,7 @@ function spatialPolyfill() {
|
|
|
3826
3842
|
}
|
|
3827
3843
|
|
|
3828
3844
|
// src/index.ts
|
|
3829
|
-
var version = "1.0.
|
|
3845
|
+
var version = "1.0.3";
|
|
3830
3846
|
export {
|
|
3831
3847
|
CSSSpatialDiv,
|
|
3832
3848
|
CSSSpatialPrimitive,
|