@webspatial/react-sdk 0.0.4 → 0.0.6
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.d.mts +164 -0
- package/dist/default/index.d.ts +164 -0
- package/dist/{cjs/default → default}/index.js +47 -119
- package/dist/default/index.js.map +1 -0
- package/dist/default/index.mjs +3346 -0
- package/dist/default/index.mjs.map +1 -0
- package/dist/jsx/jsx-dev-runtime.d.mts +4 -0
- package/dist/jsx/jsx-dev-runtime.d.ts +3 -2
- package/dist/jsx/jsx-dev-runtime.js +3083 -6755
- package/dist/jsx/jsx-dev-runtime.js.map +1 -7
- package/dist/jsx/jsx-dev-runtime.mjs +3445 -0
- package/dist/jsx/jsx-dev-runtime.mjs.map +1 -0
- package/dist/jsx/jsx-runtime-C06ExmCC.d.mts +9 -0
- package/dist/jsx/jsx-runtime-C06ExmCC.d.ts +9 -0
- package/dist/jsx/jsx-runtime.d.mts +4 -0
- package/dist/jsx/jsx-runtime.d.ts +3 -2
- package/dist/jsx/jsx-runtime.js +3085 -6757
- package/dist/jsx/jsx-runtime.js.map +1 -7
- package/dist/jsx/jsx-runtime.mjs +3445 -0
- package/dist/jsx/jsx-runtime.mjs.map +1 -0
- package/dist/web/index.d.mts +164 -0
- package/dist/web/index.d.ts +164 -0
- package/dist/{cjs/web → web}/index.js +51 -125
- package/dist/web/index.js.map +1 -0
- package/dist/web/index.mjs +3346 -0
- package/dist/web/index.mjs.map +1 -0
- package/npm/plugin/vite.js +23 -22
- package/package.json +26 -11
- package/dist/cjs/default/XRApp.d.ts +0 -21
- package/dist/cjs/default/XRApp.d.ts.map +0 -1
- package/dist/cjs/default/index.d.ts +0 -5
- package/dist/cjs/default/index.d.ts.map +0 -1
- package/dist/cjs/default/index.js.map +0 -7
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialComponent.d.ts +0 -3
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialComponent.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialDebugNameContext.d.ts +0 -2
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialDebugNameContext.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialDiv.d.ts +0 -6
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialDiv.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialLayerContext.d.ts +0 -2
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialLayerContext.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialRootContext.d.ts +0 -14
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/CSSSpatialRootContext.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/const.d.ts +0 -6
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/const.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/index.d.ts +0 -2
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/index.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/injectClassStyle.d.ts +0 -2
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/injectClassStyle.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/math/index.d.ts +0 -4
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/math/index.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/useHijackSpatialDivRef.d.ts +0 -4
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/useHijackSpatialDivRef.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/useSpatialStyle.d.ts +0 -29
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/useSpatialStyle.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/utils.d.ts +0 -7
- package/dist/cjs/default/spatial-react-components/CSSSpatialDiv/utils.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/Model/index.d.ts +0 -42
- package/dist/cjs/default/spatial-react-components/Model/index.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3D.d.ts +0 -4
- package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3D.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3DNotInSpatialDiv.d.ts +0 -3
- package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3DNotInSpatialDiv.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3DPortalInstance.d.ts +0 -3
- package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3DPortalInstance.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3DStandardInstance.d.ts +0 -3
- package/dist/cjs/default/spatial-react-components/Model3D/CSSModel3DStandardInstance.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/Model3D/Model3D.d.ts +0 -3
- package/dist/cjs/default/spatial-react-components/Model3D/Model3D.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/Model3D/Model3DNative.d.ts +0 -48
- package/dist/cjs/default/spatial-react-components/Model3D/Model3DNative.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/Model3D/Model3DNotInSpatialDiv.d.ts +0 -3
- package/dist/cjs/default/spatial-react-components/Model3D/Model3DNotInSpatialDiv.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/Model3D/Model3DPortalInstance.d.ts +0 -3
- package/dist/cjs/default/spatial-react-components/Model3D/Model3DPortalInstance.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/Model3D/Model3DStandardInstance.d.ts +0 -3
- package/dist/cjs/default/spatial-react-components/Model3D/Model3DStandardInstance.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/Model3D/index.d.ts +0 -4
- package/dist/cjs/default/spatial-react-components/Model3D/index.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/Model3D/types.d.ts +0 -46
- package/dist/cjs/default/spatial-react-components/Model3D/types.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/Model3D/useDetectLayoutDomUpdated.d.ts +0 -2
- package/dist/cjs/default/spatial-react-components/Model3D/useDetectLayoutDomUpdated.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/Model3D/useModel3DNative.d.ts +0 -15
- package/dist/cjs/default/spatial-react-components/Model3D/useModel3DNative.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/Model3D/useSyncDomInfoFromStandardInstance.d.ts +0 -19
- package/dist/cjs/default/spatial-react-components/Model3D/useSyncDomInfoFromStandardInstance.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/Model3D/utils.d.ts +0 -4
- package/dist/cjs/default/spatial-react-components/Model3D/utils.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/SpatialMonitor.d.ts +0 -6
- package/dist/cjs/default/spatial-react-components/SpatialMonitor.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/SpatialPrimitive.d.ts +0 -6
- package/dist/cjs/default/spatial-react-components/SpatialPrimitive.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/PortalInstance.d.ts +0 -20
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/PortalInstance.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialDebugNameContext.d.ts +0 -2
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialDebugNameContext.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialIsStandardInstanceContext.d.ts +0 -2
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialIsStandardInstanceContext.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialLayerContext.d.ts +0 -2
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialLayerContext.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialReactComponent.d.ts +0 -3
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialReactComponent.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialReactContext.d.ts +0 -24
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialReactContext.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialWindowManager.d.ts +0 -17
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialWindowManager.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialWindowManagerContext.d.ts +0 -3
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/SpatialWindowManagerContext.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/StandardInstance.d.ts +0 -10
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/StandardInstance.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/const.d.ts +0 -2
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/const.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/index.d.ts +0 -3
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/index.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/types.d.ts +0 -31
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/types.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/usePortalContainer.d.ts +0 -8
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/usePortalContainer.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/utils.d.ts +0 -15
- package/dist/cjs/default/spatial-react-components/SpatialReactComponent/utils.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/SpatialView.d.ts +0 -15
- package/dist/cjs/default/spatial-react-components/SpatialView.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/hooks/useForceUpdate.d.ts +0 -2
- package/dist/cjs/default/spatial-react-components/hooks/useForceUpdate.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/hooks/useMonitorDocumentHeaderChange.d.ts +0 -2
- package/dist/cjs/default/spatial-react-components/hooks/useMonitorDocumentHeaderChange.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/hooks/useMonitorDomChange.d.ts +0 -2
- package/dist/cjs/default/spatial-react-components/hooks/useMonitorDomChange.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/index.d.ts +0 -11
- package/dist/cjs/default/spatial-react-components/index.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/notifyUpdateStandInstanceLayout.d.ts +0 -13
- package/dist/cjs/default/spatial-react-components/notifyUpdateStandInstanceLayout.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/primitives.d.ts +0 -3
- package/dist/cjs/default/spatial-react-components/primitives.d.ts.map +0 -1
- package/dist/cjs/default/spatial-react-components/types.d.ts +0 -18
- package/dist/cjs/default/spatial-react-components/types.d.ts.map +0 -1
- package/dist/cjs/default/types.d.ts +0 -2
- package/dist/cjs/default/types.d.ts.map +0 -1
- package/dist/cjs/default/utils/debugTool.d.ts +0 -2
- package/dist/cjs/default/utils/debugTool.d.ts.map +0 -1
- package/dist/cjs/default/utils/getSession.d.ts +0 -6
- package/dist/cjs/default/utils/getSession.d.ts.map +0 -1
- package/dist/cjs/default/utils/index.d.ts +0 -3
- package/dist/cjs/default/utils/index.d.ts.map +0 -1
- package/dist/cjs/web/XRApp.d.ts +0 -21
- package/dist/cjs/web/XRApp.d.ts.map +0 -1
- package/dist/cjs/web/index.d.ts +0 -5
- package/dist/cjs/web/index.d.ts.map +0 -1
- package/dist/cjs/web/index.js.map +0 -7
- package/dist/cjs/web/noRuntime.d.ts +0 -5
- package/dist/cjs/web/noRuntime.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialComponent.d.ts +0 -3
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialComponent.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialDebugNameContext.d.ts +0 -2
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialDebugNameContext.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialDiv.d.ts +0 -6
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialDiv.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialLayerContext.d.ts +0 -2
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialLayerContext.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialRootContext.d.ts +0 -14
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/CSSSpatialRootContext.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/const.d.ts +0 -6
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/const.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/index.d.ts +0 -2
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/index.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/injectClassStyle.d.ts +0 -2
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/injectClassStyle.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/math/index.d.ts +0 -4
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/math/index.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/useHijackSpatialDivRef.d.ts +0 -4
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/useHijackSpatialDivRef.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/useSpatialStyle.d.ts +0 -29
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/useSpatialStyle.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/utils.d.ts +0 -7
- package/dist/cjs/web/spatial-react-components/CSSSpatialDiv/utils.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/Model/index.d.ts +0 -42
- package/dist/cjs/web/spatial-react-components/Model/index.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3D.d.ts +0 -4
- package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3D.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3DNotInSpatialDiv.d.ts +0 -3
- package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3DNotInSpatialDiv.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3DPortalInstance.d.ts +0 -3
- package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3DPortalInstance.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3DStandardInstance.d.ts +0 -3
- package/dist/cjs/web/spatial-react-components/Model3D/CSSModel3DStandardInstance.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/Model3D/Model3D.d.ts +0 -3
- package/dist/cjs/web/spatial-react-components/Model3D/Model3D.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/Model3D/Model3DNative.d.ts +0 -48
- package/dist/cjs/web/spatial-react-components/Model3D/Model3DNative.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/Model3D/Model3DNotInSpatialDiv.d.ts +0 -3
- package/dist/cjs/web/spatial-react-components/Model3D/Model3DNotInSpatialDiv.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/Model3D/Model3DPortalInstance.d.ts +0 -3
- package/dist/cjs/web/spatial-react-components/Model3D/Model3DPortalInstance.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/Model3D/Model3DStandardInstance.d.ts +0 -3
- package/dist/cjs/web/spatial-react-components/Model3D/Model3DStandardInstance.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/Model3D/index.d.ts +0 -4
- package/dist/cjs/web/spatial-react-components/Model3D/index.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/Model3D/types.d.ts +0 -46
- package/dist/cjs/web/spatial-react-components/Model3D/types.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/Model3D/useDetectLayoutDomUpdated.d.ts +0 -2
- package/dist/cjs/web/spatial-react-components/Model3D/useDetectLayoutDomUpdated.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/Model3D/useModel3DNative.d.ts +0 -15
- package/dist/cjs/web/spatial-react-components/Model3D/useModel3DNative.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/Model3D/useSyncDomInfoFromStandardInstance.d.ts +0 -19
- package/dist/cjs/web/spatial-react-components/Model3D/useSyncDomInfoFromStandardInstance.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/Model3D/utils.d.ts +0 -4
- package/dist/cjs/web/spatial-react-components/Model3D/utils.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/SpatialMonitor.d.ts +0 -6
- package/dist/cjs/web/spatial-react-components/SpatialMonitor.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/SpatialPrimitive.d.ts +0 -6
- package/dist/cjs/web/spatial-react-components/SpatialPrimitive.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/PortalInstance.d.ts +0 -20
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/PortalInstance.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialDebugNameContext.d.ts +0 -2
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialDebugNameContext.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialIsStandardInstanceContext.d.ts +0 -2
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialIsStandardInstanceContext.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialLayerContext.d.ts +0 -2
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialLayerContext.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialReactComponent.d.ts +0 -3
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialReactComponent.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialReactContext.d.ts +0 -24
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialReactContext.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialWindowManager.d.ts +0 -17
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialWindowManager.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialWindowManagerContext.d.ts +0 -3
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialWindowManagerContext.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/StandardInstance.d.ts +0 -10
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/StandardInstance.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/const.d.ts +0 -2
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/const.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/index.d.ts +0 -3
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/index.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/types.d.ts +0 -31
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/types.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/usePortalContainer.d.ts +0 -8
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/usePortalContainer.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/utils.d.ts +0 -15
- package/dist/cjs/web/spatial-react-components/SpatialReactComponent/utils.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/SpatialView.d.ts +0 -15
- package/dist/cjs/web/spatial-react-components/SpatialView.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/hooks/useForceUpdate.d.ts +0 -2
- package/dist/cjs/web/spatial-react-components/hooks/useForceUpdate.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/hooks/useMonitorDocumentHeaderChange.d.ts +0 -2
- package/dist/cjs/web/spatial-react-components/hooks/useMonitorDocumentHeaderChange.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/hooks/useMonitorDomChange.d.ts +0 -2
- package/dist/cjs/web/spatial-react-components/hooks/useMonitorDomChange.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/index.d.ts +0 -11
- package/dist/cjs/web/spatial-react-components/index.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/notifyUpdateStandInstanceLayout.d.ts +0 -13
- package/dist/cjs/web/spatial-react-components/notifyUpdateStandInstanceLayout.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/primitives.d.ts +0 -3
- package/dist/cjs/web/spatial-react-components/primitives.d.ts.map +0 -1
- package/dist/cjs/web/spatial-react-components/types.d.ts +0 -18
- package/dist/cjs/web/spatial-react-components/types.d.ts.map +0 -1
- package/dist/cjs/web/types.d.ts +0 -2
- package/dist/cjs/web/types.d.ts.map +0 -1
- package/dist/cjs/web/utils/debugTool.d.ts +0 -2
- package/dist/cjs/web/utils/debugTool.d.ts.map +0 -1
- package/dist/cjs/web/utils/getSession.d.ts +0 -6
- package/dist/cjs/web/utils/getSession.d.ts.map +0 -1
- package/dist/cjs/web/utils/index.d.ts +0 -3
- package/dist/cjs/web/utils/index.d.ts.map +0 -1
- package/dist/jsx/injectSceneHook.d.ts +0 -2
- package/dist/jsx/injectSceneHook.d.ts.map +0 -1
- package/dist/jsx/jsx-dev-runtime.d.ts.map +0 -1
- package/dist/jsx/jsx-runtime.d.ts.map +0 -1
- package/dist/jsx/jsx-shared.d.ts +0 -6
- package/dist/jsx/jsx-shared.d.ts.map +0 -1
- package/dist/jsx/spatialPolyfill.d.ts +0 -2
- package/dist/jsx/spatialPolyfill.d.ts.map +0 -1
- package/npm/index.d.ts +0 -1
- package/npm/index.js +0 -7
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type BackgroundMaterialType } from '@webspatial/core-sdk';
|
|
2
|
-
export declare function useSpatialStyle(): {
|
|
3
|
-
ref: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
4
|
-
ready: boolean;
|
|
5
|
-
spatialStyle: {
|
|
6
|
-
position: {
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
z: number;
|
|
10
|
-
};
|
|
11
|
-
rotation: {
|
|
12
|
-
x: number;
|
|
13
|
-
y: number;
|
|
14
|
-
z: number;
|
|
15
|
-
w: number;
|
|
16
|
-
};
|
|
17
|
-
scale: {
|
|
18
|
-
x: number;
|
|
19
|
-
y: number;
|
|
20
|
-
z: number;
|
|
21
|
-
};
|
|
22
|
-
zIndex: number;
|
|
23
|
-
material: {
|
|
24
|
-
type: BackgroundMaterialType;
|
|
25
|
-
};
|
|
26
|
-
visible: boolean;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=useSpatialStyle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSpatialStyle.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/CSSSpatialDiv/useSpatialStyle.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAuHlE,wBAAgB,eAAe;;;;;;;;;;;;;;;;;;;;;;kBAST,sBAAsB;;;;EAoG3C"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare function extractAndRemoveCustomProperties(cssText: string, properties: string[]): {
|
|
2
|
-
extractedValues: Record<string, string>;
|
|
3
|
-
filteredCssText: string;
|
|
4
|
-
};
|
|
5
|
-
export declare function splitCSSText(cssText: string): string[];
|
|
6
|
-
export declare function joinToCSSText(cssKV: Record<string, string>): string;
|
|
7
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/CSSSpatialDiv/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAAE;;;EAoBrB;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,YAI3C;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAG1D"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { ModelEvent, ModelDragEvent, ModelElement } from '../Model3D';
|
|
3
|
-
import '@google/model-viewer';
|
|
4
|
-
import { ModelViewerElement } from '@google/model-viewer';
|
|
5
|
-
declare global {
|
|
6
|
-
namespace JSX {
|
|
7
|
-
interface IntrinsicElements {
|
|
8
|
-
'model-viewer': ModelViewerElement | {
|
|
9
|
-
ref: any;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
type ModelChildren = React.ReactElement<{
|
|
15
|
-
type: string;
|
|
16
|
-
src: string;
|
|
17
|
-
}> | [React.ReactElement<{
|
|
18
|
-
type: string;
|
|
19
|
-
src: string;
|
|
20
|
-
}>, React.ReactElement] | React.ReactElement<{
|
|
21
|
-
type: string;
|
|
22
|
-
src: string;
|
|
23
|
-
}>[];
|
|
24
|
-
export interface ModelProps {
|
|
25
|
-
className?: string;
|
|
26
|
-
style?: CSSProperties | undefined;
|
|
27
|
-
children: ModelChildren;
|
|
28
|
-
onLoad?: (event: ModelEvent) => void;
|
|
29
|
-
contentMode?: 'fill' | 'fit';
|
|
30
|
-
resizable?: boolean;
|
|
31
|
-
aspectRatio?: number;
|
|
32
|
-
onDragStart?: (dragEvent: ModelDragEvent) => void;
|
|
33
|
-
onDrag?: (dragEvent: ModelDragEvent) => void;
|
|
34
|
-
onDragEnd?: (dragEvent: ModelDragEvent) => void;
|
|
35
|
-
onTap?: (event: ModelEvent) => void;
|
|
36
|
-
onDoubleTap?: (event: ModelEvent) => void;
|
|
37
|
-
onLongPress?: (event: ModelEvent) => void;
|
|
38
|
-
poster?: string;
|
|
39
|
-
}
|
|
40
|
-
export declare const Model: React.ForwardRefExoticComponent<ModelProps & React.RefAttributes<ModelElement>>;
|
|
41
|
-
export {};
|
|
42
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,aAAa,EAQd,MAAM,OAAO,CAAA;AAGd,OAAO,EAGL,UAAU,EACV,cAAc,EACd,YAAY,EACb,MAAM,YAAY,CAAA;AAGnB,OAAO,sBAAsB,CAAA;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,cAAc,EAAE,kBAAkB,GAAG;gBAAE,GAAG,EAAE,GAAG,CAAA;aAAE,CAAA;SAClD;KACF;CACF;AAED,KAAK,aAAa,GACd,KAAK,CAAC,YAAY,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,GACjD,CAAC,KAAK,CAAC,YAAY,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,GACvE,KAAK,CAAC,YAAY,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,EAAE,CAAA;AAEvD,MAAM,WAAW,UAAU;IAEzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IACjC,QAAQ,EAAE,aAAa,CAAA;IACvB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IAGpC,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAA;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAA;IACjD,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAA;IAC5C,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAA;IAE/C,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IACnC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IACzC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IAGzC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAsJD,eAAO,MAAM,KAAK,iFAAwB,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { CSSModel3DProps, ModelElementRef } from './types';
|
|
2
|
-
export declare function CSSModel3DBase(props: CSSModel3DProps, refIn: ModelElementRef): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare const CSSModel3D: import("react").ForwardRefExoticComponent<CSSModel3DProps & import("react").RefAttributes<import("./types").ModelElement>>;
|
|
4
|
-
//# sourceMappingURL=CSSModel3D.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CSSModel3D.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/CSSModel3D.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAQ1D,wBAAgB,cAAc,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,2CAsB5E;AAED,eAAO,MAAM,UAAU,4HAA6B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CSSModel3DNotInSpatialDiv.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/CSSModel3DNotInSpatialDiv.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE1D,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,eAAe,2CAiDvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CSSModel3DPortalInstance.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/CSSModel3DPortalInstance.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAMzC,wBAAgB,8BAA8B,CAC5C,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,eAAe,2CA6CzB"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { CSSModel3DProps, ModelElementRef } from './types';
|
|
2
|
-
export declare function renderCSSModel3DStandardInstance(spatialId: string, inProps: CSSModel3DProps, refIn: ModelElementRef): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
//# sourceMappingURL=CSSModel3DStandardInstance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CSSModel3DStandardInstance.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/CSSModel3DStandardInstance.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM1D,wBAAgB,gCAAgC,CAC9C,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,eAAe,2CA8BvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Model3D.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/Model3D.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAmB,MAAM,SAAS,CAAA;AAgCvD,eAAO,MAAM,OAAO,yHAA0B,CAAA"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ModelDragEvent, SpatialEntity } from '@webspatial/core-sdk';
|
|
2
|
-
import { SpatialTransformType } from './types';
|
|
3
|
-
import { RectType } from '../types';
|
|
4
|
-
export declare class Model3DNative {
|
|
5
|
-
constructor(parentEntity?: SpatialEntity);
|
|
6
|
-
private parentEntity?;
|
|
7
|
-
private initPromise?;
|
|
8
|
-
private entity?;
|
|
9
|
-
private spatialModel3DComponent?;
|
|
10
|
-
private isDestroyed;
|
|
11
|
-
private _onDragStart?;
|
|
12
|
-
private _onDrag?;
|
|
13
|
-
private _onDragEnd?;
|
|
14
|
-
private _onTap?;
|
|
15
|
-
private _onDoubleTap?;
|
|
16
|
-
private _onLongPress?;
|
|
17
|
-
init(modelUrl: string, onSuccess: () => void, onFailure: (error: string) => void): Promise<any>;
|
|
18
|
-
private initInternal;
|
|
19
|
-
setVisible(visible: boolean): Promise<void>;
|
|
20
|
-
setContentMode(contentMode: 'fill' | 'fit'): Promise<void>;
|
|
21
|
-
setResizable(resizable: boolean): Promise<void>;
|
|
22
|
-
setAspectRatio(aspectRatio: number): Promise<void>;
|
|
23
|
-
updateByDom(dom: HTMLDivElement, options: {
|
|
24
|
-
spatialTransform: SpatialTransformType;
|
|
25
|
-
}): Promise<void>;
|
|
26
|
-
updateRectAndTransform(rect: RectType, spatialTransform: SpatialTransformType): Promise<void>;
|
|
27
|
-
setRotationAnchor(anchor: {
|
|
28
|
-
x: number;
|
|
29
|
-
y: number;
|
|
30
|
-
z: number;
|
|
31
|
-
}): Promise<void>;
|
|
32
|
-
setOpacity(opacity: number): Promise<void>;
|
|
33
|
-
set onDragStart(callback: ((dragEvent: ModelDragEvent) => void) | undefined);
|
|
34
|
-
set onDrag(callback: ((dragEvent: ModelDragEvent) => void) | undefined);
|
|
35
|
-
set onDragEnd(callback: ((dragEvent: ModelDragEvent) => void) | undefined);
|
|
36
|
-
set onTap(callback: (() => void) | undefined);
|
|
37
|
-
set onDoubleTap(callback: (() => void) | undefined);
|
|
38
|
-
set onLongPress(callback: (() => void) | undefined);
|
|
39
|
-
/**
|
|
40
|
-
* Destroys the current 3D model instance
|
|
41
|
-
* 1. Marks the instance as destroyed
|
|
42
|
-
* 2. Waits for initialization to complete (if in progress)
|
|
43
|
-
* 3. Destroys the spatial entity
|
|
44
|
-
* 4. Cleans up all related references
|
|
45
|
-
*/
|
|
46
|
-
destroy(): Promise<void>;
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=Model3DNative.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Model3DNative.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/Model3DNative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,aAAa,EAEd,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAG9C,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,qBAAa,aAAa;gBACZ,YAAY,CAAC,EAAE,aAAa;IAIxC,OAAO,CAAC,YAAY,CAAC,CAAe;IACpC,OAAO,CAAC,WAAW,CAAC,CAAc;IAClC,OAAO,CAAC,MAAM,CAAC,CAAe;IAC9B,OAAO,CAAC,uBAAuB,CAAC,CAAyB;IAIzD,OAAO,CAAC,WAAW,CAAQ;IAE3B,OAAO,CAAC,YAAY,CAAC,CAAqC;IAC1D,OAAO,CAAC,OAAO,CAAC,CAAqC;IACrD,OAAO,CAAC,UAAU,CAAC,CAAqC;IAExD,OAAO,CAAC,MAAM,CAAC,CAAY;IAC3B,OAAO,CAAC,YAAY,CAAC,CAAY;IACjC,OAAO,CAAC,YAAY,CAAC,CAAY;IAE3B,IAAI,CACR,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,IAAI,EACrB,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;YAWtB,YAAY;IA8CpB,UAAU,CAAC,OAAO,EAAE,OAAO;IAM3B,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,KAAK;IAM1C,YAAY,CAAC,SAAS,EAAE,OAAO;IAM/B,cAAc,CAAC,WAAW,EAAE,MAAM;IAMlC,WAAW,CACf,GAAG,EAAE,cAAc,EACnB,OAAO,EAAE;QAAE,gBAAgB,EAAE,oBAAoB,CAAA;KAAE;IAwC/C,sBAAsB,CAC1B,IAAI,EAAE,QAAQ,EACd,gBAAgB,EAAE,oBAAoB;IAwBlC,iBAAiB,CAAC,MAAM,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;IAM7D,UAAU,CAAC,OAAO,EAAE,MAAM;IAMhC,IAAW,WAAW,CACpB,QAAQ,EAAE,CAAC,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAC,GAAG,SAAS,EAM5D;IAED,IAAW,MAAM,CACf,QAAQ,EAAE,CAAC,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAC,GAAG,SAAS,EAM5D;IAED,IAAW,SAAS,CAClB,QAAQ,EAAE,CAAC,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAC,GAAG,SAAS,EAM5D;IAED,IAAW,KAAK,CAAC,QAAQ,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,EAKlD;IAED,IAAW,WAAW,CAAC,QAAQ,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,EAKxD;IACD,IAAW,WAAW,CAAC,QAAQ,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,EAKxD;IAED;;;;;;OAMG;IACG,OAAO;CAUd"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Model3DNotInSpatialDiv.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/Model3DNotInSpatialDiv.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,YAAY,EAEZ,eAAe,EAEhB,MAAM,SAAS,CAAA;AAMhB,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,YAAY,EACnB,KAAK,EAAE,eAAe,2CA+QvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Model3DPortalInstance.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/Model3DPortalInstance.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAA4C,MAAM,SAAS,CAAA;AAiGhF,wBAAgB,2BAA2B,CACzC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,YAAY,2CA0KpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Model3DStandardInstance.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/Model3DStandardInstance.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEvD,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,YAAY,EACnB,KAAK,EAAE,eAAe,2CAgBvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,cAAc,GACpB,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ForwardedRef } from 'react';
|
|
2
|
-
import { vecType, quatType } from '../types';
|
|
3
|
-
import { Vec3 } from '@webspatial/core-sdk';
|
|
4
|
-
export type SpatialTransformType = {
|
|
5
|
-
position: vecType;
|
|
6
|
-
rotation: quatType;
|
|
7
|
-
scale: vecType;
|
|
8
|
-
};
|
|
9
|
-
export type PartialSpatialTransformType = {
|
|
10
|
-
position?: Partial<vecType>;
|
|
11
|
-
rotation?: Partial<quatType>;
|
|
12
|
-
scale?: Partial<vecType>;
|
|
13
|
-
};
|
|
14
|
-
export interface ModelEvent {
|
|
15
|
-
target: ModelElement;
|
|
16
|
-
}
|
|
17
|
-
export interface ModelDragEvent extends ModelEvent {
|
|
18
|
-
eventType: 'dragstart' | 'dragend' | 'drag';
|
|
19
|
-
translation3D: Vec3;
|
|
20
|
-
startLocation3D: Vec3;
|
|
21
|
-
}
|
|
22
|
-
export interface Model3DProps {
|
|
23
|
-
spatialTransform?: PartialSpatialTransformType;
|
|
24
|
-
modelUrl: string;
|
|
25
|
-
visible: boolean;
|
|
26
|
-
contentMode?: 'fill' | 'fit';
|
|
27
|
-
resizable?: boolean;
|
|
28
|
-
aspectRatio?: number;
|
|
29
|
-
className?: string;
|
|
30
|
-
style?: CSSProperties | undefined;
|
|
31
|
-
children?: React.ReactNode;
|
|
32
|
-
onLoad?: (event: ModelEvent) => void;
|
|
33
|
-
onDragStart?: (dragEvent: ModelDragEvent) => void;
|
|
34
|
-
onDrag?: (dragEvent: ModelDragEvent) => void;
|
|
35
|
-
onDragEnd?: (dragEvent: ModelDragEvent) => void;
|
|
36
|
-
onTap?: (event: ModelEvent) => void;
|
|
37
|
-
onDoubleTap?: (event: ModelEvent) => void;
|
|
38
|
-
onLongPress?: (event: ModelEvent) => void;
|
|
39
|
-
}
|
|
40
|
-
export interface ModelElement extends HTMLDivElement {
|
|
41
|
-
ready: boolean;
|
|
42
|
-
currentSrc: string;
|
|
43
|
-
}
|
|
44
|
-
export type ModelElementRef = ForwardedRef<ModelElement>;
|
|
45
|
-
export type CSSModel3DProps = Omit<Model3DProps, 'spatialTransform' | 'visible'>;
|
|
46
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAEL,IAAI,EACL,MAAM,sBAAsB,CAAA;AAE7B,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,QAAQ,CAAA;IAClB,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;CACzB,CAAA;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,YAAY,CAAA;CACrB;AAED,MAAM,WAAW,cAAe,SAAQ,UAAU;IAChD,SAAS,EAAE,WAAW,GAAG,SAAS,GAAG,MAAM,CAAA;IAC3C,aAAa,EAAE,IAAI,CAAA;IACnB,eAAe,EAAE,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,gBAAgB,CAAC,EAAE,2BAA2B,CAAA;IAC9C,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAA;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IAGjC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAE1B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IAEpC,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAA;IACjD,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAA;IAC5C,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAA;IAE/C,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IACnC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IACzC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;CAC1C;AAED,MAAM,WAAW,YAAa,SAAQ,cAAc;IAClD,KAAK,EAAE,OAAO,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,YAAY,CAAC,CAAA;AAExD,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,YAAY,EAAE,kBAAkB,GAAG,SAAS,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDetectLayoutDomUpdated.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/useDetectLayoutDomUpdated.ts"],"names":[],"mappings":"AAEA,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,MAAM,IAAI,6CA0CjE"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Model3DNative } from './Model3DNative';
|
|
2
|
-
import { ModelDragEvent, SpatialEntity } from '@webspatial/core-sdk';
|
|
3
|
-
export declare function useModel3DNative(modelUrl: string, parentEntity: SpatialEntity | undefined, eventHandlers?: {
|
|
4
|
-
onDragStart?: (dragEvent: ModelDragEvent) => void;
|
|
5
|
-
onDrag?: (dragEvent: ModelDragEvent) => void;
|
|
6
|
-
onDragEnd?: (dragEvent: ModelDragEvent) => void;
|
|
7
|
-
onTap?: () => void;
|
|
8
|
-
onDoubleTap?: () => void;
|
|
9
|
-
onLongPress?: () => void;
|
|
10
|
-
}, onModel3DNativeReadyCb?: (model3DNative: Model3DNative) => void): {
|
|
11
|
-
model3DNativeRef: import("react").MutableRefObject<Model3DNative | null>;
|
|
12
|
-
phase: "loading" | "success" | "failure";
|
|
13
|
-
failureReason: string;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=useModel3DNative.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useModel3DNative.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/useModel3DNative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpE,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,aAAa,GAAG,SAAS,EACvC,aAAa,GAAE;IACb,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAA;IACjD,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAA;IAC5C,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAA;IAC/C,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB,EACN,sBAAsB,CAAC,EAAE,CAAC,aAAa,EAAE,aAAa,KAAK,IAAI;;;;EA8EhE"}
|
package/dist/cjs/web/spatial-react-components/Model3D/useSyncDomInfoFromStandardInstance.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
export declare function useSyncDomInfoFromStandardInstance(spatialId: string): {
|
|
3
|
-
modelRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
4
|
-
domRect: {
|
|
5
|
-
x: number;
|
|
6
|
-
y: number;
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
};
|
|
10
|
-
inheritedPortalStyle: CSSProperties;
|
|
11
|
-
anchor: {
|
|
12
|
-
x: number;
|
|
13
|
-
y: number;
|
|
14
|
-
z: number;
|
|
15
|
-
};
|
|
16
|
-
opacity: number;
|
|
17
|
-
className: string;
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=useSyncDomInfoFromStandardInstance.d.ts.map
|
package/dist/cjs/web/spatial-react-components/Model3D/useSyncDomInfoFromStandardInstance.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSyncDomInfoFromStandardInstance.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/useSyncDomInfoFromStandardInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2C,aAAa,EAAE,MAAM,OAAO,CAAA;AAQ9E,wBAAgB,kCAAkC,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;EAyEnE"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { PartialSpatialTransformType, SpatialTransformType } from './types';
|
|
2
|
-
export declare function PopulatePartialSpatialTransformType(spatialTransform?: PartialSpatialTransformType): SpatialTransformType;
|
|
3
|
-
export declare function getAbsoluteURL(url: string): string;
|
|
4
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/Model3D/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAE3E,wBAAgB,mCAAmC,CACjD,gBAAgB,GAAE,2BAAgC,GACjD,oBAAoB,CAetB;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,UAQzC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Component that add MutationObserver to monitor all dom changes including its children.
|
|
3
|
-
* If any dom changes, it will notify all SpatialDiv to render again for the purpose of sync standInstance layout to portalInstance.
|
|
4
|
-
*/
|
|
5
|
-
export declare function SpatialMonitor(props: any): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
//# sourceMappingURL=SpatialMonitor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpatialMonitor.d.ts","sourceRoot":"","sources":["../../../../src/spatial-react-components/SpatialMonitor.tsx"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,GAAG,2CAWxC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SpatialReactComponent } from './SpatialReactComponent';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export declare function withSpatial(Component: React.ElementType): any;
|
|
4
|
-
export declare const SpatialPrimitive: Record<string, typeof SpatialReactComponent>;
|
|
5
|
-
export declare const SpatialDiv: React.ForwardRefExoticComponent<import("./SpatialReactComponent").SpatialReactComponentProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
//# sourceMappingURL=SpatialPrimitive.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpatialPrimitive.d.ts","sourceRoot":"","sources":["../../../../src/spatial-react-components/SpatialPrimitive.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,wBAAgB,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC,WAAW,OAsBvD;AAED,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,qBAAqB,CAAM,CAC/E;AAMD,eAAO,MAAM,UAAU,qIAAuB,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { SpatialID } from './const';
|
|
3
|
-
import { spatialStyleDef } from './types';
|
|
4
|
-
interface PortalInstanceProps {
|
|
5
|
-
allowScroll?: boolean;
|
|
6
|
-
scrollWithParent?: boolean;
|
|
7
|
-
spatialStyle?: Partial<spatialStyleDef>;
|
|
8
|
-
El: React.ElementType;
|
|
9
|
-
children?: ReactNode;
|
|
10
|
-
style?: CSSProperties | undefined;
|
|
11
|
-
className?: string;
|
|
12
|
-
isSubPortal?: boolean;
|
|
13
|
-
[SpatialID]: string;
|
|
14
|
-
}
|
|
15
|
-
export declare function PortalInstance(inProps: PortalInstanceProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare namespace PortalInstance {
|
|
17
|
-
var displayName: string;
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=PortalInstance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PortalInstance.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/PortalInstance.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,aAAa,EAEb,SAAS,EAMV,MAAM,OAAO,CAAA;AAad,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAInC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEzC,UAAU,mBAAmB;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAA;IAEvC,EAAE,EAAE,KAAK,CAAC,WAAW,CAAA;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CACpB;AAqYD,wBAAgB,cAAc,CAAC,OAAO,EAAE,mBAAmB,2CAkG1D;yBAlGe,cAAc"}
|
package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialDebugNameContext.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpatialDebugNameContext.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/SpatialDebugNameContext.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,iCAA4B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpatialIsStandardInstanceContext.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/SpatialIsStandardInstanceContext.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gCAAgC,yCAE5C,CAAA"}
|
package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialLayerContext.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpatialLayerContext.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/SpatialLayerContext.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,iCAAmB,CAAA"}
|
package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialReactComponent.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpatialReactComponent.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/SpatialReactComponent.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAG3B,MAAM,SAAS,CAAA;AAsIhB,eAAO,MAAM,qBAAqB,uHAA4C,CAAA"}
|
package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialReactContext.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare class SpatialReactContextObject {
|
|
2
|
-
debugName: string;
|
|
3
|
-
constructor(debugName: string);
|
|
4
|
-
dom: HTMLElement | null;
|
|
5
|
-
domSpatialId: string | null;
|
|
6
|
-
private fns;
|
|
7
|
-
private spatialId2dom;
|
|
8
|
-
private spatialId2parentSpatialDom;
|
|
9
|
-
private layerSequences;
|
|
10
|
-
getSpatialID(layer: number, isInStandardInstance: boolean, debugName?: string): string;
|
|
11
|
-
onDomChange(spatialId: string, fn: () => void): void;
|
|
12
|
-
offDomChange(spatialId: string): void;
|
|
13
|
-
notifyDomChange(dom: HTMLElement): void;
|
|
14
|
-
querySpatialDom(spatialId: string): HTMLElement | null;
|
|
15
|
-
queryParentSpatialDom(spatialId: string): HTMLElement | null;
|
|
16
|
-
private subDivLayerSequences;
|
|
17
|
-
private subDivEventHandlers;
|
|
18
|
-
getSubDivSpatialID(layer: number, isInStandardInstance: boolean, prefix?: string): string;
|
|
19
|
-
onSubDivEvent(subSpatialId: string, eventHandler: (args: any) => void): void;
|
|
20
|
-
offSubDivEvent(subSpatialId: string): void;
|
|
21
|
-
notifySubDivEvent(subSpatialId: string, args: any): void;
|
|
22
|
-
}
|
|
23
|
-
export declare const SpatialReactContext: import("react").Context<SpatialReactContextObject | null>;
|
|
24
|
-
//# sourceMappingURL=SpatialReactContext.d.ts.map
|
package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialReactContext.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpatialReactContext.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/SpatialReactContext.ts"],"names":[],"mappings":"AAGA,qBAAa,yBAAyB;IACpC,SAAS,EAAE,MAAM,CAAA;gBAEL,SAAS,EAAE,MAAM;IAI7B,GAAG,EAAE,WAAW,GAAG,IAAI,CAAO;IAC9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAO;IAElC,OAAO,CAAC,GAAG,CAAiC;IAE5C,OAAO,CAAC,aAAa,CAAkC;IACvD,OAAO,CAAC,0BAA0B,CAAkC;IAGpE,OAAO,CAAC,cAAc,CAAuC;IAEtD,YAAY,CACjB,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,OAAO,EAC7B,SAAS,GAAE,MAAW,GACrB,MAAM;IAYF,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,IAAI;IAO7C,YAAY,CAAC,SAAS,EAAE,MAAM;IAM9B,eAAe,CAAC,GAAG,EAAE,WAAW;IAMhC,eAAe,CAAC,SAAS,EAAE,MAAM;IAiBjC,qBAAqB,CAAC,SAAS,EAAE,MAAM;IA8B9C,OAAO,CAAC,oBAAoB,CAAuC;IACnE,OAAO,CAAC,mBAAmB,CAA0C;IAE9D,kBAAkB,CACvB,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,OAAO,EAC7B,MAAM,GAAE,MAAW,GAClB,MAAM;IAYF,aAAa,CAClB,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI;IAK5B,cAAc,CAAC,YAAY,EAAE,MAAM;IAGnC,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG;CAMzD;AAED,eAAO,MAAM,mBAAmB,2DACuB,CAAA"}
|
package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialWindowManager.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SpatialEntity, SpatialWindowComponent } from '@webspatial/core-sdk';
|
|
2
|
-
import { vecType, quatType, RectType } from '../types';
|
|
3
|
-
export declare class SpatialWindowManager {
|
|
4
|
-
initPromise?: Promise<any>;
|
|
5
|
-
entity?: SpatialEntity;
|
|
6
|
-
webview?: SpatialWindowComponent;
|
|
7
|
-
window: WindowProxy | null;
|
|
8
|
-
setDebugName(debugName: string): void;
|
|
9
|
-
private initInternal;
|
|
10
|
-
private initInternalFromWindow;
|
|
11
|
-
init(url: string): Promise<void>;
|
|
12
|
-
initFromWidow(parentSpatialWindowManager?: SpatialWindowManager | null): Promise<void>;
|
|
13
|
-
resize(rect: RectType, offset: vecType, rotation?: quatType, scale?: vecType, rotationOrigin?: vecType): Promise<void>;
|
|
14
|
-
setZIndex(zIndex: number): Promise<void>;
|
|
15
|
-
destroy(): Promise<void>;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=SpatialWindowManager.d.ts.map
|
package/dist/cjs/web/spatial-react-components/SpatialReactComponent/SpatialWindowManager.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpatialWindowManager.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/SpatialWindowManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAE5E,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAGtD,qBAAa,oBAAoB;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAA;IAC1B,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,OAAO,CAAC,EAAE,sBAAsB,CAAA;IAChC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAO;IAEjC,YAAY,CAAC,SAAS,EAAE,MAAM;YAIhB,YAAY;YAeZ,sBAAsB;IA4B9B,IAAI,CAAC,GAAG,EAAE,MAAM;IAIhB,aAAa,CACjB,0BAA0B,CAAC,EAAE,oBAAoB,GAAG,IAAI;IAKpD,MAAM,CACV,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,OAAO,EACf,QAAQ,GAAE,QAAqC,EAC/C,KAAK,GAAE,OAA8B,EACrC,cAAc,GAAE,OAA8B;IAgC1C,SAAS,CAAC,MAAM,EAAE,MAAM;IAKxB,OAAO;CAQd"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpatialWindowManagerContext.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/SpatialWindowManagerContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,eAAO,MAAM,2BAA2B,kEAEjC,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
interface StandardInstanceProps {
|
|
3
|
-
El: React.ElementType;
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
style?: CSSProperties | undefined;
|
|
6
|
-
debugShowStandardInstance?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const StandardInstance: React.ForwardRefExoticComponent<StandardInstanceProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=StandardInstance.d.ts.map
|
package/dist/cjs/web/spatial-react-components/SpatialReactComponent/StandardInstance.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StandardInstance.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/StandardInstance.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,aAAa,EAEb,SAAS,EAKV,MAAM,OAAO,CAAA;AA+Ed,UAAU,qBAAqB;IAC7B,EAAE,EAAE,KAAK,CAAC,WAAW,CAAA;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IAGjC,yBAAyB,CAAC,EAAE,OAAO,CAAA;CACpC;AACD,eAAO,MAAM,gBAAgB,8FAqC3B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,oBAAoB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/index.tsx"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B,MAAM,SAAS,CAAA"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { BackgroundMaterialType, CornerRadius } from '@webspatial/core-sdk';
|
|
2
|
-
import { SpatialID } from './const';
|
|
3
|
-
import { ReactNode, CSSProperties, ElementType, ForwardedRef } from 'react';
|
|
4
|
-
import { quatType, vecType } from '../types';
|
|
5
|
-
export type spatialStyleDef = {
|
|
6
|
-
position: Partial<vecType>;
|
|
7
|
-
rotation: quatType;
|
|
8
|
-
scale: Partial<vecType>;
|
|
9
|
-
zIndex?: number;
|
|
10
|
-
material?: {
|
|
11
|
-
type: BackgroundMaterialType;
|
|
12
|
-
};
|
|
13
|
-
cornerRadius: number | CornerRadius;
|
|
14
|
-
visible?: boolean;
|
|
15
|
-
};
|
|
16
|
-
export interface SpatialReactComponentProps {
|
|
17
|
-
allowScroll?: boolean;
|
|
18
|
-
scrollWithParent?: boolean;
|
|
19
|
-
spatialStyle?: Partial<spatialStyleDef>;
|
|
20
|
-
children?: ReactNode;
|
|
21
|
-
className?: string;
|
|
22
|
-
style?: CSSProperties | undefined;
|
|
23
|
-
component?: ElementType;
|
|
24
|
-
debugName?: string;
|
|
25
|
-
debugShowStandardInstance?: boolean;
|
|
26
|
-
}
|
|
27
|
-
export type SpatialReactComponentRef = ForwardedRef<HTMLDivElement>;
|
|
28
|
-
export interface SpatialReactComponentWithUniqueIDProps extends SpatialReactComponentProps {
|
|
29
|
-
[SpatialID]: string;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAC3E,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAE5C,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;IAC1B,QAAQ,EAAE,QAAQ,CAAA;IAClB,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE;QAAE,IAAI,EAAE,sBAAsB,CAAA;KAAE,CAAA;IAC3C,YAAY,EAAE,MAAM,GAAG,YAAY,CAAA;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,WAAW,0BAA0B;IACzC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAA;IACvC,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IAEjC,SAAS,CAAC,EAAE,WAAW,CAAA;IAEvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yBAAyB,CAAC,EAAE,OAAO,CAAA;CACpC;AAED,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC,cAAc,CAAC,CAAA;AAEnE,MAAM,WAAW,sCACf,SAAQ,0BAA0B;IAClC,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CACpB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SpatialWindowManager } from './SpatialWindowManager';
|
|
2
|
-
type PortalContainerOption = {
|
|
3
|
-
onContainerSpawned: (spatialWindowManager: SpatialWindowManager) => Promise<any>;
|
|
4
|
-
onContainerDestroyed: (spatialWindowManager: SpatialWindowManager, spawnedResult: any) => void;
|
|
5
|
-
};
|
|
6
|
-
export declare function usePortalContainer(options: PortalContainerOption): (SpatialWindowManager | undefined)[];
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=usePortalContainer.d.ts.map
|
package/dist/cjs/web/spatial-react-components/SpatialReactComponent/usePortalContainer.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePortalContainer.d.ts","sourceRoot":"","sources":["../../../../../src/spatial-react-components/SpatialReactComponent/usePortalContainer.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAI7D,KAAK,qBAAqB,GAAG;IAC3B,kBAAkB,EAAE,CAClB,oBAAoB,EAAE,oBAAoB,KACvC,OAAO,CAAC,GAAG,CAAC,CAAA;IACjB,oBAAoB,EAAE,CACpB,oBAAoB,EAAE,oBAAoB,EAC1C,aAAa,EAAE,GAAG,KACf,IAAI,CAAA;CACV,CAAA;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,qBAAqB,wCAoDhE"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { RectType } from '../types';
|
|
2
|
-
export declare function getInheritedStyleProps(computedStyle: CSSStyleDeclaration): any;
|
|
3
|
-
export declare function domRect2rectType(from: DOMRect): RectType;
|
|
4
|
-
export declare function parseTransformOrigin(computedStyle: CSSStyleDeclaration): {
|
|
5
|
-
x: number;
|
|
6
|
-
y: number;
|
|
7
|
-
z: number;
|
|
8
|
-
};
|
|
9
|
-
export declare function parseCornerRadius(computedStyle: CSSStyleDeclaration): {
|
|
10
|
-
topLeading: number;
|
|
11
|
-
bottomLeading: number;
|
|
12
|
-
topTrailing: number;
|
|
13
|
-
bottomTrailing: number;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=utils.d.ts.map
|