@realsee/dnalogel 0.1.0
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 +94 -0
- package/TERMS.txt +56 -0
- package/components/ARVideoFigure/ARVideoFigureMesh.d.ts +44 -0
- package/components/ARVideoFigure/ARVideoFigureMesh.js +347 -0
- package/components/ARVideoFigure/ARVideoFigureScene.d.ts +11 -0
- package/components/ARVideoFigure/ARVideoFigureScene.js +74 -0
- package/components/ARVideoFigure/ImgBgTransparent.d.ts +16 -0
- package/components/ARVideoFigure/ImgBgTransparent.js +49 -0
- package/components/ARVideoFigure/ImgBgTransparentMesh.d.ts +30 -0
- package/components/ARVideoFigure/ImgBgTransparentMesh.js +173 -0
- package/components/ARVideoFigure/fragmentShader.d.ts +5 -0
- package/components/ARVideoFigure/fragmentShader.js +16 -0
- package/components/ARVideoFigure/index.d.ts +15 -0
- package/components/ARVideoFigure/index.js +64 -0
- package/components/ARVideoFigure/vertexShader.d.ts +1 -0
- package/components/ARVideoFigure/vertexShader.js +8 -0
- package/components/GlassFilters/index.d.ts +32 -0
- package/components/GlassFilters/index.js +54 -0
- package/components/ModelView/ModelViewController.d.ts +18 -0
- package/components/ModelView/ModelViewController.js +147 -0
- package/components/ModelView/index.d.ts +10 -0
- package/components/ModelView/index.js +22 -0
- package/components/PBRView/index.d.ts +14 -0
- package/components/PBRView/index.js +31 -0
- package/components/PaintBrush/index.d.ts +16 -0
- package/components/PaintBrush/index.js +33 -0
- package/components/PanoTag/index.d.ts +4 -0
- package/components/PanoTag/index.js +11 -0
- package/custom.d.js +3 -0
- package/data/1aGKl9JmrlXMXx8d.d.ts +104 -0
- package/data/1aGKl9JmrlXMXx8d.js +535 -0
- package/data/6gyq3v1verxD7JO1.d.ts +104 -0
- package/data/6gyq3v1verxD7JO1.js +460 -0
- package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.d.ts +84 -0
- package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.js +598 -0
- package/data/PrXel3aqGbp34JQn.d.ts +389 -0
- package/data/PrXel3aqGbp34JQn.js +4639 -0
- package/data/YdoNP9K4rwQDwjJr.d.ts +83 -0
- package/data/YdoNP9K4rwQDwjJr.js +1451 -0
- package/data/auto3d-njL5J99VwCmnjtQElOmXQr.d.ts +86 -0
- package/data/auto3d-njL5J99VwCmnjtQElOmXQr.js +709 -0
- package/data/oPzy3ApbjjpD8YdR.d.ts +83 -0
- package/data/oPzy3ApbjjpD8YdR.js +281 -0
- package/data/qjAxMG4XbPn96wKG.d.ts +104 -0
- package/data/qjAxMG4XbPn96wKG.js +635 -0
- package/data/rXel3aPQRRBD4JQn.d.ts +86 -0
- package/data/rXel3aPQRRBD4JQn.js +620 -0
- package/data/vLykj3NWrllMrG06.d.ts +89 -0
- package/data/vLykj3NWrllMrG06.js +2532 -0
- package/data/wYnRjQ4KZoV1yPoG.d.ts +114 -0
- package/data/wYnRjQ4KZoV1yPoG.js +512 -0
- package/data/wz0QV9KA4ugyo9ME.d.ts +39 -0
- package/data/wz0QV9KA4ugyo9ME.js +134 -0
- package/examples/FiveStateController/index.js +140 -0
- package/examples/VRHouse/Mobile.js +22 -0
- package/examples/VRHouse/PC.js +22 -0
- package/examples/VRHouse/index.js +22 -0
- package/index.d.ts +15 -0
- package/index.js +43 -0
- package/package.json +19 -0
- package/plugins/CSS3DRenderPlugin/components/Marker/index.d.ts +12 -0
- package/plugins/CSS3DRenderPlugin/components/Marker/index.js +113 -0
- package/plugins/CSS3DRenderPlugin/index.d.ts +49 -0
- package/plugins/CSS3DRenderPlugin/index.js +220 -0
- package/plugins/CameraMovementPlugin/index.d.ts +7 -0
- package/plugins/CameraMovementPlugin/index.js +338 -0
- package/plugins/CameraMovementPlugin/typing.d.ts +68 -0
- package/plugins/CameraMovementPlugin/typing.js +35 -0
- package/plugins/ModelChassisCompassPlugin/index.d.ts +15 -0
- package/plugins/ModelChassisCompassPlugin/index.js +156 -0
- package/plugins/ModelEntryDoorGuidePlugin/index.d.ts +10 -0
- package/plugins/ModelEntryDoorGuidePlugin/index.js +16 -0
- package/plugins/ModelTVVideoPlugin/index.d.ts +21 -0
- package/plugins/ModelTVVideoPlugin/index.js +313 -0
- package/plugins/ModelViewPlugin/index.d.ts +17 -0
- package/plugins/ModelViewPlugin/index.js +199 -0
- package/plugins/PanoCursorRaycasterPlugin/PanoCursorRaycasterPluginUsage.d.ts +48 -0
- package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.d.ts +9 -0
- package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.js +113 -0
- package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.d.ts +11 -0
- package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.js +25 -0
- package/plugins/PanoCursorRaycasterPlugin/index.d.ts +49 -0
- package/plugins/PanoCursorRaycasterPlugin/index.js +119 -0
- package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.d.ts +5 -0
- package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.js +25 -0
- package/plugins/PanoCursorRaycasterPlugin/utils/createLine.d.ts +3 -0
- package/plugins/PanoCursorRaycasterPlugin/utils/createLine.js +34 -0
- package/plugins/PanoCursorRaycasterPlugin/utils/vecror3.d.ts +7 -0
- package/plugins/PanoCursorRaycasterPlugin/utils/vecror3.js +18 -0
- package/plugins/PanoDoorLabelPlugin/index.d.ts +4 -0
- package/plugins/PanoDoorLabelPlugin/index.js +12 -0
- package/plugins/PanoIRobotPlugin/index.d.ts +10 -0
- package/plugins/PanoIRobotPlugin/index.js +16 -0
- package/plugins/PanoRulerPlugin/data/roomInfo.d.ts +3 -0
- package/plugins/PanoRulerPlugin/data/roomInfo.js +49 -0
- package/plugins/PanoRulerPlugin/data/roomRules.d.ts +3 -0
- package/plugins/PanoRulerPlugin/data/roomRules.js +233 -0
- package/plugins/PanoRulerPlugin/index.d.ts +27 -0
- package/plugins/PanoRulerPlugin/index.js +589 -0
- package/plugins/PanoRulerPlugin/typings.d.ts +21 -0
- package/plugins/PanoRulerPlugin/typings.js +5 -0
- package/plugins/PanoTVVideoPlugin/index.d.ts +24 -0
- package/plugins/PanoTVVideoPlugin/index.js +351 -0
- package/plugins/TreasurePlugin/Controller.d.ts +32 -0
- package/plugins/TreasurePlugin/Controller.js +175 -0
- package/plugins/TreasurePlugin/TreasureFaceAnime.d.ts +23 -0
- package/plugins/TreasurePlugin/TreasureFaceAnime.js +128 -0
- package/plugins/TreasurePlugin/TreasureObject.d.ts +35 -0
- package/plugins/TreasurePlugin/TreasureObject.js +186 -0
- package/plugins/TreasurePlugin/TreasureOpenAnime.d.ts +23 -0
- package/plugins/TreasurePlugin/TreasureOpenAnime.js +103 -0
- package/plugins/TreasurePlugin/constants.d.ts +12 -0
- package/plugins/TreasurePlugin/constants.js +30 -0
- package/plugins/TreasurePlugin/index.d.ts +11 -0
- package/plugins/TreasurePlugin/index.js +16 -0
- package/plugins/TreasurePlugin/treasureDataMap.d.ts +7 -0
- package/plugins/TreasurePlugin/treasureDataMap.js +20 -0
- package/plugins/TreasurePlugin/typings.d.ts +2 -0
- package/plugins/TreasurePlugin/typings.js +5 -0
- package/plugins/TreasurePlugin/utils/loadTreasureTextures.d.ts +7 -0
- package/plugins/TreasurePlugin/utils/loadTreasureTextures.js +115 -0
- package/plugins/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
- package/plugins/floorplan/Assets/floorplanExtraObject.js +8 -0
- package/plugins/floorplan/ModelFloorplanPlugin/Controller.d.ts +100 -0
- package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +643 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.d.ts +13 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +58 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.d.ts +5 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +69 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.d.ts +10 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.js +105 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.d.ts +13 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +95 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.d.ts +13 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +48 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.d.ts +20 -0
- package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +66 -0
- package/plugins/floorplan/ModelFloorplanPlugin/controller.style.d.ts +1 -0
- package/plugins/floorplan/ModelFloorplanPlugin/controller.style.js +14 -0
- package/plugins/floorplan/ModelFloorplanPlugin/index.d.ts +9 -0
- package/plugins/floorplan/ModelFloorplanPlugin/index.js +18 -0
- package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +23 -0
- package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.js +5 -0
- package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +15 -0
- package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.js +31 -0
- package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +14 -0
- package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +162 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.d.ts +13 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.js +91 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.d.ts +3 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.js +35 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.d.ts +5 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.js +50 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.d.ts +9 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.js +102 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.d.ts +11 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.js +42 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.d.ts +17 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.js +75 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.d.ts +2 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.js +13 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +33 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.js +214 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/index.d.ts +8 -0
- package/plugins/floorplan/PanoFloorplanRadarPlugin/index.js +18 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/Controller.d.ts +55 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/Controller.js +267 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/index.js +16 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/plugins/floorplan/TopviewFloorplanPlugin/style.js +14 -0
- package/plugins/floorplan/components/FloorplanImage.d.ts +7 -0
- package/plugins/floorplan/components/FloorplanImage.js +76 -0
- package/plugins/floorplan/typings/floorplanData.d.ts +127 -0
- package/plugins/floorplan/typings/floorplanData.js +5 -0
- package/plugins/floorplan/typings/floorplanServerData.d.ts +125 -0
- package/plugins/floorplan/typings/floorplanServerData.js +380 -0
- package/plugins/floorplan/utils/formatData.d.ts +5 -0
- package/plugins/floorplan/utils/formatData.js +220 -0
- package/plugins/floorplan/utils/formatPosition.d.ts +37 -0
- package/plugins/floorplan/utils/formatPosition.js +87 -0
- package/shared-utils/Preloader.d.ts +6 -0
- package/shared-utils/Preloader.js +51 -0
- package/shared-utils/Subscribe.d.ts +45 -0
- package/shared-utils/Subscribe.js +210 -0
- package/shared-utils/animationFrame/BetterTween.d.ts +11 -0
- package/shared-utils/animationFrame/BetterTween.js +102 -0
- package/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
- package/shared-utils/animationFrame/calculateProgress.js +38 -0
- package/shared-utils/animationFrame/formatRad.d.ts +15 -0
- package/shared-utils/animationFrame/formatRad.js +34 -0
- package/shared-utils/animationFrame/index.d.ts +15 -0
- package/shared-utils/animationFrame/index.js +69 -0
- package/shared-utils/animationFrame/tween.d.ts +75 -0
- package/shared-utils/animationFrame/tween.js +76 -0
- package/shared-utils/changeModelCanvansOpacity.d.ts +2 -0
- package/shared-utils/changeModelCanvansOpacity.js +24 -0
- package/shared-utils/createFiveContainer.d.ts +10 -0
- package/shared-utils/createFiveContainer.js +165 -0
- package/shared-utils/createLine/index.d.ts +3 -0
- package/shared-utils/createLine/index.js +29 -0
- package/shared-utils/debounce.d.ts +6 -0
- package/shared-utils/debounce.js +26 -0
- package/shared-utils/equal.d.ts +11 -0
- package/shared-utils/equal.js +96 -0
- package/shared-utils/filter.d.ts +27 -0
- package/shared-utils/filter.js +93 -0
- package/shared-utils/five/changeMode.d.ts +2 -0
- package/shared-utils/five/changeMode.js +86 -0
- package/shared-utils/five/useFivePlugin.d.ts +1 -0
- package/shared-utils/five/useFivePlugin.js +15 -0
- package/shared-utils/formatRad.d.ts +7 -0
- package/shared-utils/formatRad.js +16 -0
- package/shared-utils/getPxmm.d.ts +6 -0
- package/shared-utils/getPxmm.js +37 -0
- package/shared-utils/getRandomColor.d.ts +1 -0
- package/shared-utils/getRandomColor.js +13 -0
- package/shared-utils/isTruelyObject.d.ts +18 -0
- package/shared-utils/isTruelyObject.js +27 -0
- package/shared-utils/math/evenNumber.d.ts +1 -0
- package/shared-utils/math/evenNumber.js +11 -0
- package/shared-utils/math/planimetry.d.ts +116 -0
- package/shared-utils/math/planimetry.js +342 -0
- package/shared-utils/math/rad2Deg.d.ts +1 -0
- package/shared-utils/math/rad2Deg.js +10 -0
- package/shared-utils/nearlyEqual.d.ts +7 -0
- package/shared-utils/nearlyEqual.js +17 -0
- package/shared-utils/nextFrame.d.ts +1 -0
- package/shared-utils/nextFrame.js +13 -0
- package/shared-utils/noop.d.ts +5 -0
- package/shared-utils/noop.js +17 -0
- package/shared-utils/object3d2LocalMatrix.d.ts +12 -0
- package/shared-utils/object3d2LocalMatrix.js +73 -0
- package/shared-utils/px2rem.d.ts +1 -0
- package/shared-utils/px2rem.js +12 -0
- package/shared-utils/tap.d.ts +8 -0
- package/shared-utils/tap.js +19 -0
- package/shared-utils/three/centerPoint.d.ts +2 -0
- package/shared-utils/three/centerPoint.js +12 -0
- package/shared-utils/three/getNormal.d.ts +2 -0
- package/shared-utils/three/getNormal.js +13 -0
- package/shared-utils/three/loadFbxObj.d.ts +3 -0
- package/shared-utils/three/loadFbxObj.js +42 -0
- package/shared-utils/three/loadTexture.d.ts +2 -0
- package/shared-utils/three/loadTexture.js +38 -0
- package/shared-utils/three/vecror3.d.ts +7 -0
- package/shared-utils/three/vecror3.js +18 -0
- package/shared-utils/throttle.d.ts +7 -0
- package/shared-utils/throttle.js +25 -0
- package/shared-utils/to.d.ts +9 -0
- package/shared-utils/to.js +25 -0
- package/shared-utils/useDebounce.d.ts +8 -0
- package/shared-utils/useDebounce.js +43 -0
- package/shared-utils/useThrottle.d.ts +8 -0
- package/shared-utils/useThrottle.js +41 -0
- package/shared-utils/uuid.d.ts +4 -0
- package/shared-utils/uuid.js +20 -0
- package/shared-utils/vectorTocoordinates.d.ts +7 -0
- package/shared-utils/vectorTocoordinates.js +16 -0
- package/typedoc/components.d.ts +6 -0
- package/typedoc/components.js +5 -0
- package/typedoc/plugins.d.ts +17 -0
- package/typedoc/plugins.js +113 -0
- package/typedoc/shared-utils.d.ts +3 -0
- package/typedoc/shared-utils.js +5 -0
- package/typedoc/typings.d.ts +3 -0
- package/typedoc/typings.js +5 -0
- package/typings/math.type.d.ts +44 -0
- package/typings/math.type.js +5 -0
- package/typings/utils.type.d.ts +2 -0
- package/typings/utils.type.js +5 -0
package/README.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# 如视 -- "Dnalogel"
|
|
2
|
+
|
|
3
|
+
[如视(realsee.com)](https://realsee.com) 提供了在浏览器环境中的渲染三维空间 [VR 看房 SDK Five](https://developers.realsee.com/docs/#/docs/five/web/quickstart)。
|
|
4
|
+
通过 [如视 3D 空间 API](https://developers.realsee.com/docs/#/docs/five/server/README) 并结合 Five 的渲染能力可以制作丰富多彩的三维空间应用。
|
|
5
|
+
|
|
6
|
+
除了 Five 强大的三维空间渲染能力之外,我们也积累了大量的 **VR 看房** 常用功能,并以 `React Components` 和 `Five Plugins` 的形式进行抽象。
|
|
7
|
+
|
|
8
|
+
无论是经过线上环境千锤百炼的刚需功能,还是灵感一现的炫酷尝试,凡是最终落地的功能我们均毫无保留的开源并以 [Storybook](https://storybook.js.org/) 的形式演示。
|
|
9
|
+
|
|
10
|
+
如果组件满足您的需求,`npm install @realsee/dnalogel`一键安装使用。
|
|
11
|
+
|
|
12
|
+
如果不满足需求,没关系,把我们当作代码示例,我们抛砖引玉。
|
|
13
|
+
|
|
14
|
+
我们也很期待您基于 [Three.js](https://threejs.org/)、[Five.js](https://www.npmjs.com/package/@realsee/five) 等这类渲染库做出有意思的功能。
|
|
15
|
+
|
|
16
|
+
## Components
|
|
17
|
+
|
|
18
|
+
我们目前的组件都是基于 [React](https://reactjs.org/) 界面库实现的,直接按照 [React](https://reactjs.org/) 方式引用使用即可。
|
|
19
|
+
|
|
20
|
+
### 组件列表
|
|
21
|
+
|
|
22
|
+
- `ARVideoFigure` AR 视频形象
|
|
23
|
+
- `FloorplanRadar` 户型雷达图
|
|
24
|
+
- `GlassFilters` 滤镜
|
|
25
|
+
- `ModelView` 模型视图 @todo
|
|
26
|
+
- `PBRView` PBR 视图 @todo
|
|
27
|
+
- `PaintBrush` 画笔 @todo
|
|
28
|
+
- `PanoTag` 全景标签 @todo
|
|
29
|
+
- ... 待补充
|
|
30
|
+
|
|
31
|
+
### 使用方式
|
|
32
|
+
|
|
33
|
+
```jsx
|
|
34
|
+
import { FiveProvider, FiveCanvas } from '@realsee/five/react'
|
|
35
|
+
import Component from '@realsee/dnalogel/components/Component'
|
|
36
|
+
|
|
37
|
+
ReactDOM.render(
|
|
38
|
+
<FiveProvider>
|
|
39
|
+
<FiveCanvas />
|
|
40
|
+
<Component config onCallback />
|
|
41
|
+
</FiveProvider>,
|
|
42
|
+
containter,
|
|
43
|
+
)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Five Plugins
|
|
47
|
+
|
|
48
|
+
**Five Plugins** 是使用了 `@realsee/five` 提供的工厂模式插件机制开发的插件。适合面向过程的可复用逻辑、命令式调用的对象抽象、无 DOM 或轻量 DOM 的组件、复杂动画等。
|
|
49
|
+
|
|
50
|
+
如果您项目的技术栈不是[React](https://reactjs.org/) ,**Five Plugins** 可能更适合你。
|
|
51
|
+
|
|
52
|
+
当然,部分插件我们也以 [React Component](https://reactjs.org/) 的形式提供了支持,但这些组件非**纯**组件(会有影响 `five` 实例状态的副作用),您可以按照实际情况酌情引用。
|
|
53
|
+
|
|
54
|
+
### 插件列表
|
|
55
|
+
|
|
56
|
+
- `ModelChassisCompassPlugin` 模型底盘雷达图插件
|
|
57
|
+
- `ModelTVVideoPlugin` 模型电视视频插件
|
|
58
|
+
- `ModelViewPlugin` 模型视图插件
|
|
59
|
+
- `PanoRulerPlugin` 全景标尺插件
|
|
60
|
+
- `PanoTVVideoPlugin` 全景电视视频插件
|
|
61
|
+
- `PanoFloorplanRadarPlugin` 全景户型雷达图插件
|
|
62
|
+
- `PanoDoorLabelPlugin` 全景房间标签引导插件 @todo
|
|
63
|
+
- `PanoIRobotPlugin` 全景扫地机器人插件 @todo
|
|
64
|
+
- `PanoMeasurePlguin` 全景测量插件 @todo
|
|
65
|
+
- `ModelEntryDoorGuidePlugin` 模型入户门引导插件 @todo
|
|
66
|
+
- ... 待补充
|
|
67
|
+
|
|
68
|
+
### 使用方式
|
|
69
|
+
|
|
70
|
+
```js
|
|
71
|
+
import { Five } from '@realsee/five'
|
|
72
|
+
import Plugin from '@realsee/dnalogel/plugins/Plugin'
|
|
73
|
+
const five = new Five({
|
|
74
|
+
plugins: [[Plugin, 'PluginName', initOptions]],
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
// 不同插件提供的方法可能存在差异
|
|
78
|
+
five.plugins.PluginName.load(data)
|
|
79
|
+
five.plugins.PluginName.enable()
|
|
80
|
+
five.plugins.PluginName.disable()
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Examples
|
|
84
|
+
|
|
85
|
+
> **Examples** 是应用级别的复杂示例。例子永远不嫌多!
|
|
86
|
+
|
|
87
|
+
### 最佳示例
|
|
88
|
+
|
|
89
|
+
- Five 状态控制器:[Demo]()。
|
|
90
|
+
- VR 看房:[移动端 Demo]() | [PC 端 Demo]()。
|
|
91
|
+
|
|
92
|
+
## Tools
|
|
93
|
+
|
|
94
|
+
> 为方便您更合理使用、理解 "Dnalogel" 组件、插件,我们提供了一些简单的数据生产编辑工具。
|
package/TERMS.txt
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
Realsee SDK License Agreement
|
|
2
|
+
|
|
3
|
+
Update: July 28, 2021
|
|
4
|
+
|
|
5
|
+
THIS LICENSE AGREEMENT BETWEEN YOU AND 【BEIKE REALSEE TECHNOLOGY (HK) LIMITED】(“Realsee”) FORMS A LEGALLY BINDING CONTRACT BETWEEN YOU AND REALSEE IN RELATION TO YOUR USE OF THE SDK. This License Agreement accompanies the Realsee Software Development Kit(s) for the software and related explanatory materials (the "SDK") and includes any upgrades, modified versions, updates, additions, and copies of the SDK licensed to You by Realsee.
|
|
6
|
+
BY DOWNLOADING, INSTALLING, OR OTHERWISE ACCESSING OR USING THE SDK, YOU AGREE THAT YOU HAVE READ, UNDERSTOOD, AND AGREE TO BE BOUND BY THIS AGREEMENT. YOU ARE AGREEING ON YOUR OWN BEHALF AND/OR ON BEHALF OF YOUR COMPANY OR ORGANIZATION TO THE TERMS AND CONDITIONS STATED BELOW.
|
|
7
|
+
This Agreement applies to Your use of the SDK in the country in which You legally install it (“Territory”) and is subject to the laws of such Territory and further subject to Section 12 below. Different terms, conditions, and limitations may apply to the use of the SDK in any additional countries.
|
|
8
|
+
1. DEFINITIONS.
|
|
9
|
+
“Agreement” means this Realsee SDK License Agreement.
|
|
10
|
+
“Developer”, “You” and “Your” means the person(s) or entity acquiring or using the SDK or otherwise exercising rights under the terms of this Agreement.
|
|
11
|
+
“Documentation” means the technical or other specifications or documentation that Realsee may provide to You for use in connection with the SDK.
|
|
12
|
+
“Integrated Product” means any software, website, or on-line service developed by You based on or using the SDK (collectively, the “Integrated Product”).
|
|
13
|
+
“Intellectual Property” means any patents, patent rights, trademarks, service marks, registered and unregistered designs, applications for any of the foregoing, copyright, and any other similar protected rights in any country and to the extent recognised by any relevant jurisdiction as intellectual property, trade secrets, know-how and confidential information. Realsee reserves all rights not expressly granted to You.
|
|
14
|
+
“Realsee” means [Beike Realsee Technology (HK) Limited, a company incorporated and validly existing under the laws of Hong Kong].
|
|
15
|
+
“SDK” means the Realsee-proprietary Software Development Kits (SDK) provided hereunder, includes all development tools (including any compiler and debugger), application programming interfaces (“APIs”), libraries, binary utilities, header files, Documentation, content, data, code samples, and other materials provided to You in connection with this Agreement, whether delivered through a download, or any other media or form, and is licensed, not sold, to You by Realsee for use only under the terms of this Agreement. The terms of this Agreement will govern any updates provided by Realsee that replace and/or supplement the original SDK delivered to You, unless such update is accompanied by a separate license, in which case the terms of such license will govern.
|
|
16
|
+
2. LICENSED USES AND RESTRICTIONS.
|
|
17
|
+
2.1 Subject to the restrictions contained in this Section 2, Realsee grants to You during the term, a limited, non-exclusive, revocable, non-sublicensable, non-transferable license to install and use the SDK within the Territory only for the purpose of internal development.
|
|
18
|
+
2.2 Restrictions. You acknowledge and agree that, You shall not, and shall ensure that Your affiliates, employees, agents, representatives, officers, representatives, and subcontractors do not (directly or indirectly):
|
|
19
|
+
2.2.1 decompile, reverse engineer, disassemble or attempt to derive the source code of, those components of the SDK provided in object code form, or any part thereof;
|
|
20
|
+
2.2.2 remove, alter, or obscure any copyright notice or other proprietary rights notice on any part of the SDK;
|
|
21
|
+
2.2.3 sell, assign, pledge, rent, lease, lend, upload to or host on any website or server for use by any third party except You, redistribute, or sublicense the SDK (or any part thereof), or operate the SDK (or any part thereof) in the capacity of a service bureau or other hosted services provider, in whole or in part, nor may You enable others to do so;
|
|
22
|
+
2.2.4 or alter, modify, customize or improve the SDK, or any part thereof;
|
|
23
|
+
2.2.5 use the SDK (or any part thereof) for any illegal purpose, in any manner that is inconsistent with the terms of this Agreement, or to engage in any illegal activity;
|
|
24
|
+
2.2.6 use the SDK (or any part thereof) in any manner that may damage the operation of Realsee’s products or services; or
|
|
25
|
+
2.2.7 use the SDK or any information contained therein or otherwise provided by Realsee for the purpose of developing, or having developed, any product competitive with any Realsee product or service, as determined by Realsee in its sole discretion;
|
|
26
|
+
2.2.8 include any portion of the SDK in Your Developer products.
|
|
27
|
+
2.3 Realsee has the right to impose reasonable conditions such as a reasonable fee for use of the SDK in Integrated Product in the future.
|
|
28
|
+
2.4 You may make a limited number of copies of the SDK to be used by Your employees or consultants as provided herein, and not for general business purposes, and such employees or consultants shall be subject to the obligations and restrictions in this Agreement.
|
|
29
|
+
2.5 All licenses not expressly granted in this Agreement are reserved and no other licenses, immunity, or rights, express or implied, are granted by Realsee, by implication, estoppel, or otherwise.
|
|
30
|
+
3. CONFIDENTIALITY.
|
|
31
|
+
The SDK and all source code, Documentation, specifications, engineering details, and related information pertaining to the SDK, whether in oral, written, graphic, or electronic form, are and shall remain the confidential and proprietary information of Realsee or its licensors (collectively, the “Confidential Information”). You shall (i) disclose Confidential Information to only those directors and employees (collectively, “Affiliates”) whose duties justify their need to know such information and who have been clearly informed of their obligation to maintain the confidential, proprietary, and/or trade secret status of such Confidential Information; and (ii) use Confidential Information solely in accordance with the license granted hereunder. In any event, You and Your Affiliates shall treat Confidential Information as strictly confidential and shall use the same care to prevent disclosure of such information as You use with respect to Your own similar confidential and/or proprietary information, which shall not be less than the care a reasonable person would use under similar circumstances. All Confidential Information, and any copies thereof, shall be returned promptly to Realsee upon request. You shall ensure that Your Affiliates comply with the provisions of this Section 3, and You shall be liable for any breach of this Section 3 resulting from the act or omission of any of Your Affiliates. You shall not disclose Confidential Information to any third party, including, without limitation, any of Your subcontractors.
|
|
32
|
+
4. PROPRIETARY RIGHTS.
|
|
33
|
+
4.1 As between You and Realsee, Realsee and/or its licensors retain ownership of all right, title, and interest in, to, and under the SDK, including, without limitation, all patents, copyrights, trade secrets, trademarks and other intellectual property and other proprietary rights therein, and reserve all rights not expressly granted to You.
|
|
34
|
+
4.2 The items contained in the SDK are the intellectual property of Realsee and its licensors and are protected by PRC copyright and patent law, international treaty provisions and applicable laws of the country in which it is being used. You agree to protect all copyright and other ownership interests of Realsee and/or its licensors in all items in the SDK supplied under this License Agreement. You agree that all copies of the items in the SDK, reproduced for any reason by You, contain the same copyright notices, and other proprietary notices as appropriate, as appear on or in the original items delivered by Realsee in the SDK. Realsee and/or its licensors retain title and ownership of the items in the SDK, the media on which it is loaded, and all subsequent copies, regardless of the form or media in or on which the original and other copies may exist. Except as stated above, this Agreement does not grant You any rights to patents, copyrights, trade secrets, trademarks or any other rights in respect to the items in the SDK.
|
|
35
|
+
5. TERM AND TERMINATION.
|
|
36
|
+
5.1 This Agreement is effective until terminated. Realsee has the right to terminate this Agreement immediately, without judicial intervention, if You fail to comply with any term herein. Upon any such termination You must remove all full and partial copies of the items in the SDK from Your computer and discontinue the use of the items in the SDK.
|
|
37
|
+
5.2 Realsee may at any time, terminate the Agreement with You if: (A) You have breached any provision of the Agreement; or (B) Realsee is required to do so by law; or (C) Realsee decides to no longer provide the SDK or certain parts of the SDK to users in the country in which You are resident or from which You use the service, or the provision of the SDK or certain SDK services to You by Realsee is, in Realsee's sole discretion, no longer legally or commercially viable.
|
|
38
|
+
5.3 When the Agreement comes to an end, all of the legal rights, obligations and liabilities that You and Realsee have benefited from, been subject to (or which have accrued over time whilst the Agreement has been in force) or which are expressed to continue indefinitely, shall be unaffected by this cessation, and the provisions of Section 3, 4, 6, 7 and 8 shall continue to apply to such rights, obligations and liabilities indefinitely.
|
|
39
|
+
6. DISCLAIMER OF WARRANTY.
|
|
40
|
+
YOU EXPRESSLY ACKNOWLEDGE AND AGREE THAT, TO THE EXTENT PERMITTED BY APPLICABLE LAW, USE OF THE SDK (OR ANY PART THEREOF) IS AT YOUR SOLE RISK AND THAT THE ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY, AND EFFORT IS WITH YOU. REALSEE LICENSES THE SDK TO YOU ONLY ON AN "AS-IS" BASIS. REALSEE MAKES NO REPRESENTATION WITH RESPECT TO THE ADEQUACY OF ANY ITEMS IN THE SDK, WHETHER OR NOT USED BY YOU IN THE DEVELOPMENT OF INTEGRATED PRODUCT, FOR ANY PARTICULAR PURPOSE OR WITH RESPECT TO THEIR ADEQUACY TO PRODUCE ANY PARTICULAR RESULT. REALSEE AND ITS LICENSORS SHALL NOT BE LIABLE FOR LOSS OR DAMAGE ARISING OUT OF THIS AGREEMENT OR FROM THE DISTRIBUTION OR USE OF INTEGRATED PRODUCT CONTAINING PORTIONS OF THE SDK. REALSEE AND ITS LICENSORS DISCLAIM ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED CONDITIONS OR WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT OF ANY THIRD PARTY RIGHT IN RESPECT OF THE ITEMS IN THE SDK OR ANY SERVICES RELATED TO THE SDK.
|
|
41
|
+
REALSEE IS UNDER NO OBLIGATION TO PROVIDE ANY SUPPORT UNDER THIS LICENSE AGREEMENT, INCLUDING UPGRADES OR FUTURE VERSIONS OF THE SDK OR ANY PORTIONS THEREOF, TO YOU, END USER OR TO ANY OTHER PARTY.
|
|
42
|
+
7. LIMITATION OF LIABILITY.
|
|
43
|
+
TO THE EXTENT NOT PROHIBITED BY APPLICABLE LAW, IN NO EVENT WILL REALSEE OR ITS LICENSORS BE LIABLE FOR ANY DIRECT, INCIDENTAL, SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES, INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, LOSS OF BUSINESS, REVENUE, OR PROFITS, LOSS OF OPPORTUNITY (WHETHER DIRECT OR INDIRECT), CORRUPTION OR LOSS OF DATA, LOSS OF REPUTATION OR SAVINGS, DOWNTIME, OR DAMAGE TO, LOSS OF OR REPLACEMENT OF DATA OR TRANSACTIONS, COST OF PROCUREMENT OF SUBSTITUTE SERVICES, BUSINESS INTERRUPTION, OR ANY OTHER COMMERCIAL DAMAGES OR LOSSES, ARISING OUT OF OR RELATED TO YOUR USE OR INABILITY TO USE THE SDK (OR ANY PART THEREOF), ANY INTEGRATED PRODUCT, OR ANY THIRD PARTY SOFTWARE, APPLICATIONS, OR SERVICES IN CONJUNCTION WITH THE SDK (OR ANY PART THEREOF), HOWEVER CAUSED, REGARDLESS OF THE THEORY OF LIABILITY (CONTRACT, TORT, OR OTHERWISE) AND EVEN IF REALSEE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. IN NO EVENT WILL REALSEE’S TOTAL LIABILITY TO YOU FOR ALL DAMAGES EXCEED ONE HUNDRED DOLLARS ($100.00). THE FOREGOING LIMITATIONS WILL APPLY EVEN IF THE ABOVE STATED REMEDY FAILS OF ITS ESSENTIAL PURPOSE. THE LIMITATIONS CONTAINED IN SECTIONS 6 AND THIS SECTION 7 ARE A FUNDAMENTAL PART OF THE BASIS OF REALSEE’S BARGAIN HEREUNDER, AND REALSEE WOULD NOT ENTER INTO THIS AGREEMENT OR PROVIDE YOU WITH ACCESS TO THE SDK ABSENT SUCH LIMITATIONS.
|
|
44
|
+
8. INDEMNIFICATION.
|
|
45
|
+
To the extent permitted by applicable law, You agree to indemnify, defend and hold harmless Realsee, its affiliates and each of their directors, officers, employees, independent contractors, and agents (each a “Realsee Indemnified Party”) from any and all claims, losses, liabilities, damages, expenses, and costs (including without limitation attorneys’ fees and court costs) incurred by a Realsee Indemnified Party as a result of: (i) Your non-compliance with any terms of this Agreement; (ii) Your use of the SDK (or any part thereof); or (iii) Your use of any Integrated Product, including any claim that Integrated Product infringes the copyright, trademark, trade secret or other intellectual property right of a third party.
|
|
46
|
+
9. ACKNOWLEDGEMENTS.
|
|
47
|
+
Portions of the SDK may utilize or include third party software and other copyrighted material. Acknowledgments, licensing terms, and disclaimers for such material are contained in Documentation for the SDK or may otherwise accompany such material, and Your use of such materials governed by their respective terms. In the event of conflict between the terms of this Agreement and an applicable open source or third party agreement, the open source or third party agreement will control solely with respect to the open source software or third party software. Moreover, You shall not subject any items (including not limited to source code, object code, and any software) included in the SDK to any open source license.
|
|
48
|
+
10. NON-BLOCKING OF REALSEE DEVELOPMENT.
|
|
49
|
+
You acknowledge that Realsee is currently developing or may develop technologies and products in the future that have or may have design and/or functionality similar to Integrated Product that You may develop based on Your license herein. Nothing in this Agreement shall impair, limit or curtail Realsee's right to continue with its development, maintenance and/or distribution of Realsee's technology or products.
|
|
50
|
+
11. GENERAL.
|
|
51
|
+
11.1 Export Control. You may not use or otherwise export or re-export the SDK (or any part thereof) except as authorized by United States law and the laws of the jurisdiction(s) in which the SDK (or any part thereof) was obtained. In particular, but without limitation, the SDK may not be exported or re-exported (i) into any U.S. embargoed countries or (ii) to anyone on the U.S. Treasury Department's list of Specially Designated Nationals or the U.S. Department of Commerce Denied Person's List or Entity List. By using the SDK (or any part thereof), You represent and warrant that You are not located in any such country or on any such list.
|
|
52
|
+
11.2 Governing Law. This Agreement and the rights of the parties hereunder shall be governed by and construed in accordance with the laws of People’s Republic of China (for purpose of this Agreement, excluding Hong Kong, Taiwan, and Macau), without reference to its conflict of laws principles. Any dispute, controversy or claim arising from or in connection with this Agreement, or the breach, termination or invalidity thereof, shall be submitted to China International Economic and Trade Arbitration Commission (“CIETAC”) for arbitration in Beijing which shall be conducted in accordance with the CIETAC's arbitration rules in effect at the time of applying for arbitration. The arbitral award is final and binding upon both parties.
|
|
53
|
+
11.3 Severability. If any provision of this Agreement is held by a court of competent jurisdiction to be unenforceable for any reason, the remaining provisions hereof will be unaffected and remain in full force and effect.
|
|
54
|
+
11.4. Modifications. Realsee reserves the right, from time to time, with or without notice to You, to make revisions to this Agreement in our sole and absolute discretion. The most current version of this Agreement will supersede all previous versions and shall be made available on the website where the SDK is made available, or by such other means as Realsee may determine in its discretion. Any modified versions of this Agreement hereto shall take effect from the time that it is made available. You shall be responsible for regularly checking for notice of any such modifications. You agree that Your continued use of the SDK constitutes Your agreement to the modified Agreement.
|
|
55
|
+
11.5 Relationship of the Parties. This Agreement will not be construed as creating an agency, partnership, joint venture, fiduciary duty, or any other form of legal association between You and Realsee, and You will not represent to the contrary, whether expressly, by implication, appearance, or otherwise.
|
|
56
|
+
11.6 Entire Agreement; Governing Language. This Agreement constitutes the entire agreement between You and Realsee with respect to the use of the SDK licensed hereunder and supersedes all prior understandings regarding such subject matter. No amendment to or modification of this Agreement will be binding unless in writing and signed by Realsee. You and Realsee hereto confirm that this Agreement and all related documents shall be drafted in English.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
export interface ARVideoFigureMeshOptions {
|
|
3
|
+
videoInstance?: HTMLVideoElement;
|
|
4
|
+
}
|
|
5
|
+
export declare class ARVideoFigureMesh extends THREE.Mesh {
|
|
6
|
+
options: ARVideoFigureMeshOptions;
|
|
7
|
+
videoUrl?: string;
|
|
8
|
+
freeze: boolean;
|
|
9
|
+
get paused(): boolean;
|
|
10
|
+
get videoInstance(): HTMLVideoElement;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @param width
|
|
14
|
+
* @param height
|
|
15
|
+
* @param widthSegments
|
|
16
|
+
* @param heightSegments
|
|
17
|
+
* @param options
|
|
18
|
+
*/
|
|
19
|
+
constructor(width: number, height: number, widthSegments: number, heightSegments: number, options?: ARVideoFigureMeshOptions);
|
|
20
|
+
private get uniforms();
|
|
21
|
+
update(videoUrl: string): Promise<void>;
|
|
22
|
+
updateUniforms({ range, edge0, edge1 }: {
|
|
23
|
+
range: number;
|
|
24
|
+
edge0: number;
|
|
25
|
+
edge1: number;
|
|
26
|
+
}): void;
|
|
27
|
+
/**
|
|
28
|
+
* 暂停视频播放
|
|
29
|
+
* @returns
|
|
30
|
+
*/
|
|
31
|
+
pause(): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* 播放视频:
|
|
34
|
+
* - 如果没有提供 `videoUrl`,则播放上一个视频
|
|
35
|
+
* - 如果提供 `videoUrl`,则重头开始播放
|
|
36
|
+
* @param videoUrl 视频地址
|
|
37
|
+
* @returns
|
|
38
|
+
*/
|
|
39
|
+
play(videoUrl?: string): Promise<unknown>;
|
|
40
|
+
/**
|
|
41
|
+
* 转成毫秒,保障精准度
|
|
42
|
+
*/
|
|
43
|
+
get currentTime(): number;
|
|
44
|
+
}
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.ARVideoFigureMesh = void 0;
|
|
9
|
+
|
|
10
|
+
var THREE = _interopRequireWildcard(require("three"));
|
|
11
|
+
|
|
12
|
+
var _Preloader = require("../../shared-utils/Preloader");
|
|
13
|
+
|
|
14
|
+
var _fragmentShader = require("./fragmentShader");
|
|
15
|
+
|
|
16
|
+
var _vertexShader = require("./vertexShader");
|
|
17
|
+
|
|
18
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
+
|
|
20
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
+
|
|
22
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
23
|
+
|
|
24
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
25
|
+
|
|
26
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27
|
+
|
|
28
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
29
|
+
|
|
30
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
31
|
+
|
|
32
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
33
|
+
|
|
34
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
|
+
|
|
36
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
37
|
+
|
|
38
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
39
|
+
|
|
40
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
41
|
+
|
|
42
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
43
|
+
|
|
44
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
45
|
+
|
|
46
|
+
var ARVideoFigureMesh = /*#__PURE__*/function (_THREE$Mesh) {
|
|
47
|
+
_inherits(ARVideoFigureMesh, _THREE$Mesh);
|
|
48
|
+
|
|
49
|
+
var _super = _createSuper(ARVideoFigureMesh);
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @param width
|
|
54
|
+
* @param height
|
|
55
|
+
* @param widthSegments
|
|
56
|
+
* @param heightSegments
|
|
57
|
+
* @param options
|
|
58
|
+
*/
|
|
59
|
+
function ARVideoFigureMesh(width, height, widthSegments, heightSegments) {
|
|
60
|
+
var _this;
|
|
61
|
+
|
|
62
|
+
var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
63
|
+
|
|
64
|
+
_classCallCheck(this, ARVideoFigureMesh);
|
|
65
|
+
|
|
66
|
+
if (!options.videoInstance) {
|
|
67
|
+
var videoInstance = document.createElement('video');
|
|
68
|
+
videoInstance.style.opacity = '0';
|
|
69
|
+
videoInstance.style.display = 'none';
|
|
70
|
+
videoInstance.playsInline = true;
|
|
71
|
+
document.body.append(videoInstance);
|
|
72
|
+
options.videoInstance = videoInstance;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
var geometry = new THREE.PlaneGeometry(width, height, widthSegments, heightSegments);
|
|
76
|
+
var videoTexture = new THREE.VideoTexture(options.videoInstance);
|
|
77
|
+
var material = new THREE.ShaderMaterial({
|
|
78
|
+
uniforms: {
|
|
79
|
+
map: {
|
|
80
|
+
value: videoTexture
|
|
81
|
+
},
|
|
82
|
+
enable: {
|
|
83
|
+
value: 0
|
|
84
|
+
},
|
|
85
|
+
range: {
|
|
86
|
+
value: 0.15
|
|
87
|
+
},
|
|
88
|
+
edge0: {
|
|
89
|
+
value: 0.1
|
|
90
|
+
},
|
|
91
|
+
edge1: {
|
|
92
|
+
value: 0.3
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
vertexShader: _vertexShader.vertexShader,
|
|
96
|
+
fragmentShader: (0, _fragmentShader.fragmentShaderTpl)(),
|
|
97
|
+
transparent: true
|
|
98
|
+
});
|
|
99
|
+
_this = _super.call(this, geometry, material);
|
|
100
|
+
_this.options = options;
|
|
101
|
+
_this.freeze = false;
|
|
102
|
+
return _this;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
_createClass(ARVideoFigureMesh, [{
|
|
106
|
+
key: "paused",
|
|
107
|
+
get: function get() {
|
|
108
|
+
return !!this.videoInstance.paused;
|
|
109
|
+
}
|
|
110
|
+
}, {
|
|
111
|
+
key: "videoInstance",
|
|
112
|
+
get: function get() {
|
|
113
|
+
var uniforms = this.material.uniforms;
|
|
114
|
+
var videoInstance = uniforms.map.value.image;
|
|
115
|
+
return videoInstance;
|
|
116
|
+
}
|
|
117
|
+
}, {
|
|
118
|
+
key: "uniforms",
|
|
119
|
+
get: function get() {
|
|
120
|
+
var uniforms = this.material.uniforms;
|
|
121
|
+
return uniforms;
|
|
122
|
+
}
|
|
123
|
+
}, {
|
|
124
|
+
key: "update",
|
|
125
|
+
value: function () {
|
|
126
|
+
var _update = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(videoUrl) {
|
|
127
|
+
var _this2 = this;
|
|
128
|
+
|
|
129
|
+
var onStart;
|
|
130
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
131
|
+
while (1) {
|
|
132
|
+
switch (_context.prev = _context.next) {
|
|
133
|
+
case 0:
|
|
134
|
+
if (!(this.videoUrl === videoUrl)) {
|
|
135
|
+
_context.next = 2;
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return _context.abrupt("return");
|
|
140
|
+
|
|
141
|
+
case 2:
|
|
142
|
+
this.videoUrl = videoUrl;
|
|
143
|
+
this.freeze = true;
|
|
144
|
+
_context.next = 6;
|
|
145
|
+
return this.videoInstance.pause();
|
|
146
|
+
|
|
147
|
+
case 6:
|
|
148
|
+
_context.t0 = URL;
|
|
149
|
+
_context.next = 9;
|
|
150
|
+
return _Preloader.Preloader.blob(this.videoUrl);
|
|
151
|
+
|
|
152
|
+
case 9:
|
|
153
|
+
_context.t1 = _context.sent;
|
|
154
|
+
_context.next = 12;
|
|
155
|
+
return _context.t0.createObjectURL.call(_context.t0, _context.t1);
|
|
156
|
+
|
|
157
|
+
case 12:
|
|
158
|
+
this.videoInstance.src = _context.sent;
|
|
159
|
+
this.videoInstance.setAttribute('data-src', this.videoUrl);
|
|
160
|
+
|
|
161
|
+
onStart = function onStart() {
|
|
162
|
+
if (_this2.videoInstance.currentTime === 0) return;
|
|
163
|
+
_this2.uniforms.enable.value = 1;
|
|
164
|
+
_this2.freeze = false;
|
|
165
|
+
|
|
166
|
+
_this2.videoInstance.removeEventListener('timeupdate', onStart, false);
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
this.videoInstance.addEventListener('timeupdate', onStart, false);
|
|
170
|
+
|
|
171
|
+
case 16:
|
|
172
|
+
case "end":
|
|
173
|
+
return _context.stop();
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}, _callee, this);
|
|
177
|
+
}));
|
|
178
|
+
|
|
179
|
+
function update(_x) {
|
|
180
|
+
return _update.apply(this, arguments);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return update;
|
|
184
|
+
}()
|
|
185
|
+
}, {
|
|
186
|
+
key: "updateUniforms",
|
|
187
|
+
value: function updateUniforms(_ref) {
|
|
188
|
+
var range = _ref.range,
|
|
189
|
+
edge0 = _ref.edge0,
|
|
190
|
+
edge1 = _ref.edge1;
|
|
191
|
+
this.uniforms.range.value = isNaN(range) ? 0.15 : range;
|
|
192
|
+
this.uniforms.edge0.value = isNaN(edge0) ? 0.1 : edge0;
|
|
193
|
+
this.uniforms.edge1.value = isNaN(edge1) ? 0.1 : edge1;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* 暂停视频播放
|
|
197
|
+
* @returns
|
|
198
|
+
*/
|
|
199
|
+
|
|
200
|
+
}, {
|
|
201
|
+
key: "pause",
|
|
202
|
+
value: function () {
|
|
203
|
+
var _pause = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
204
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
205
|
+
while (1) {
|
|
206
|
+
switch (_context2.prev = _context2.next) {
|
|
207
|
+
case 0:
|
|
208
|
+
_context2.next = 2;
|
|
209
|
+
return this.videoInstance.pause();
|
|
210
|
+
|
|
211
|
+
case 2:
|
|
212
|
+
return _context2.abrupt("return", _context2.sent);
|
|
213
|
+
|
|
214
|
+
case 3:
|
|
215
|
+
case "end":
|
|
216
|
+
return _context2.stop();
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}, _callee2, this);
|
|
220
|
+
}));
|
|
221
|
+
|
|
222
|
+
function pause() {
|
|
223
|
+
return _pause.apply(this, arguments);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
return pause;
|
|
227
|
+
}()
|
|
228
|
+
/**
|
|
229
|
+
* 播放视频:
|
|
230
|
+
* - 如果没有提供 `videoUrl`,则播放上一个视频
|
|
231
|
+
* - 如果提供 `videoUrl`,则重头开始播放
|
|
232
|
+
* @param videoUrl 视频地址
|
|
233
|
+
* @returns
|
|
234
|
+
*/
|
|
235
|
+
|
|
236
|
+
}, {
|
|
237
|
+
key: "play",
|
|
238
|
+
value: function () {
|
|
239
|
+
var _play = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
240
|
+
var _this3 = this;
|
|
241
|
+
|
|
242
|
+
var videoUrl,
|
|
243
|
+
_args4 = arguments;
|
|
244
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
245
|
+
while (1) {
|
|
246
|
+
switch (_context4.prev = _context4.next) {
|
|
247
|
+
case 0:
|
|
248
|
+
videoUrl = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : '';
|
|
249
|
+
videoUrl = (videoUrl || '').replace(/https*:/, '');
|
|
250
|
+
|
|
251
|
+
if (videoUrl) {
|
|
252
|
+
_context4.next = 10;
|
|
253
|
+
break;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
if (!this.videoUrl) {
|
|
257
|
+
_context4.next = 8;
|
|
258
|
+
break;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
_context4.next = 6;
|
|
262
|
+
return this.videoInstance.play();
|
|
263
|
+
|
|
264
|
+
case 6:
|
|
265
|
+
_context4.next = 9;
|
|
266
|
+
break;
|
|
267
|
+
|
|
268
|
+
case 8:
|
|
269
|
+
console.warn('警告:视频资源未初始化。');
|
|
270
|
+
|
|
271
|
+
case 9:
|
|
272
|
+
return _context4.abrupt("return", true);
|
|
273
|
+
|
|
274
|
+
case 10:
|
|
275
|
+
if (!(videoUrl === this.videoUrl)) {
|
|
276
|
+
_context4.next = 15;
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
this.videoInstance.currentTime = 0;
|
|
281
|
+
_context4.next = 14;
|
|
282
|
+
return this.videoInstance.play();
|
|
283
|
+
|
|
284
|
+
case 14:
|
|
285
|
+
return _context4.abrupt("return", true);
|
|
286
|
+
|
|
287
|
+
case 15:
|
|
288
|
+
_context4.next = 17;
|
|
289
|
+
return this.update(videoUrl);
|
|
290
|
+
|
|
291
|
+
case 17:
|
|
292
|
+
this.videoInstance.pause();
|
|
293
|
+
_context4.next = 20;
|
|
294
|
+
return new Promise(function (resolve) {
|
|
295
|
+
return setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
296
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
297
|
+
while (1) {
|
|
298
|
+
switch (_context3.prev = _context3.next) {
|
|
299
|
+
case 0:
|
|
300
|
+
_this3.videoInstance.currentTime = 0;
|
|
301
|
+
_context3.next = 3;
|
|
302
|
+
return _this3.videoInstance.play();
|
|
303
|
+
|
|
304
|
+
case 3:
|
|
305
|
+
resolve(true);
|
|
306
|
+
|
|
307
|
+
case 4:
|
|
308
|
+
case "end":
|
|
309
|
+
return _context3.stop();
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}, _callee3);
|
|
313
|
+
})), 20);
|
|
314
|
+
});
|
|
315
|
+
|
|
316
|
+
case 20:
|
|
317
|
+
return _context4.abrupt("return", _context4.sent);
|
|
318
|
+
|
|
319
|
+
case 21:
|
|
320
|
+
case "end":
|
|
321
|
+
return _context4.stop();
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}, _callee4, this);
|
|
325
|
+
}));
|
|
326
|
+
|
|
327
|
+
function play() {
|
|
328
|
+
return _play.apply(this, arguments);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
return play;
|
|
332
|
+
}()
|
|
333
|
+
/**
|
|
334
|
+
* 转成毫秒,保障精准度
|
|
335
|
+
*/
|
|
336
|
+
|
|
337
|
+
}, {
|
|
338
|
+
key: "currentTime",
|
|
339
|
+
get: function get() {
|
|
340
|
+
return this.videoInstance.currentTime * 1000;
|
|
341
|
+
}
|
|
342
|
+
}]);
|
|
343
|
+
|
|
344
|
+
return ARVideoFigureMesh;
|
|
345
|
+
}(THREE.Mesh);
|
|
346
|
+
|
|
347
|
+
exports.ARVideoFigureMesh = ARVideoFigureMesh;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { ARVideoFigureMesh } from './ARVideoFigureMesh';
|
|
3
|
+
export declare class ARVideoFigureScene {
|
|
4
|
+
scene: THREE.Scene;
|
|
5
|
+
renderer: THREE.WebGLRenderer;
|
|
6
|
+
camera: THREE.OrthographicCamera;
|
|
7
|
+
mesh: ARVideoFigureMesh;
|
|
8
|
+
get videoInstance(): HTMLVideoElement;
|
|
9
|
+
constructor(container: HTMLElement);
|
|
10
|
+
run: () => void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.ARVideoFigureScene = void 0;
|
|
9
|
+
|
|
10
|
+
var THREE = _interopRequireWildcard(require("three"));
|
|
11
|
+
|
|
12
|
+
var _ARVideoFigureMesh = require("./ARVideoFigureMesh");
|
|
13
|
+
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
+
|
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
+
|
|
18
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
|
+
|
|
20
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
21
|
+
|
|
22
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
23
|
+
|
|
24
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
+
|
|
26
|
+
var ARVideoFigureScene = /*#__PURE__*/function () {
|
|
27
|
+
function ARVideoFigureScene(container) {
|
|
28
|
+
var _this = this;
|
|
29
|
+
|
|
30
|
+
_classCallCheck(this, ARVideoFigureScene);
|
|
31
|
+
|
|
32
|
+
_defineProperty(this, "scene", new THREE.Scene());
|
|
33
|
+
|
|
34
|
+
_defineProperty(this, "renderer", new THREE.WebGLRenderer({
|
|
35
|
+
alpha: true
|
|
36
|
+
}));
|
|
37
|
+
|
|
38
|
+
_defineProperty(this, "run", function () {
|
|
39
|
+
if (!_this.mesh.freeze) {
|
|
40
|
+
_this.renderer.render(_this.scene, _this.camera);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
requestAnimationFrame(_this.run);
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
var state = {
|
|
47
|
+
width: container.offsetWidth,
|
|
48
|
+
height: container.offsetHeight
|
|
49
|
+
};
|
|
50
|
+
this.camera = new THREE.OrthographicCamera(-state.width / 2, state.width / 2, state.height / 2, -state.height / 2);
|
|
51
|
+
this.camera.position.set(0, 0, 10);
|
|
52
|
+
this.camera.lookAt(0, 0, 0);
|
|
53
|
+
var domElement = this.renderer.domElement;
|
|
54
|
+
domElement.classList.add('ARVideoFigureScene-canvas');
|
|
55
|
+
this.renderer.setSize(state.width * window.devicePixelRatio, state.height * window.devicePixelRatio);
|
|
56
|
+
domElement.setAttribute('style', "width: ".concat(state.width, "px;height: ").concat(state.height, "px;"));
|
|
57
|
+
this.mesh = new _ARVideoFigureMesh.ARVideoFigureMesh(state.width, state.height, 1, 1);
|
|
58
|
+
container.append(domElement);
|
|
59
|
+
this.scene.add(this.mesh);
|
|
60
|
+
this.renderer.render(this.scene, this.camera);
|
|
61
|
+
this.run();
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
_createClass(ARVideoFigureScene, [{
|
|
65
|
+
key: "videoInstance",
|
|
66
|
+
get: function get() {
|
|
67
|
+
return this.mesh.videoInstance;
|
|
68
|
+
}
|
|
69
|
+
}]);
|
|
70
|
+
|
|
71
|
+
return ARVideoFigureScene;
|
|
72
|
+
}();
|
|
73
|
+
|
|
74
|
+
exports.ARVideoFigureScene = ARVideoFigureScene;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ImgBgTransparentScene } from './ImgBgTransparentMesh';
|
|
3
|
+
export interface ImgBgTransparentProps {
|
|
4
|
+
imgUrl: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
imgBgTransparentSceneRef?: (imgBgTransparentScene: ImgBgTransparentScene) => void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* **透明背景** 与 **AR 视频形象** `ARVideoFigure` 实现原理一致,不过此组件仅针对图片。
|
|
10
|
+
*
|
|
11
|
+
* 生产环境中还是建议直接采用 `png` 这类支持透明背景的图片。在实际业务落地过程中,如果视频文件生成比较滞后,你可以先通过对应图片来预览效果,调试相关参数。
|
|
12
|
+
*
|
|
13
|
+
* @param props
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export declare function ImgBgTransparent(props: ImgBgTransparentProps): JSX.Element;
|