@realsee/five 5.0.0-alpha.100
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 +362 -0
- package/TERMS.txt +56 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +134 -0
- package/docs/assets/icons.css +1043 -0
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/main.js +52 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1388 -0
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/classes/five.AnimationFrameLoop.html +15 -0
- package/docs/classes/five.BVH.html +10 -0
- package/docs/classes/five.BVHIntersect.html +1 -0
- package/docs/classes/five.BVHNode.html +7 -0
- package/docs/classes/five.BVHVector3.html +1 -0
- package/docs/classes/five.Camera.html +11 -0
- package/docs/classes/five.Five.html +303 -0
- package/docs/classes/five.InternalWebGLRenderer.html +1 -0
- package/docs/classes/five.IntersectMesh.html +1 -0
- package/docs/classes/five.LegacyPanoCircleMesh.html +5 -0
- package/docs/classes/five.Model.html +77 -0
- package/docs/classes/five.NetworkSubscribe.html +50 -0
- package/docs/classes/five.PBMContainer.html +17 -0
- package/docs/classes/five.PBMGroup.html +19 -0
- package/docs/classes/five.PBMMaterial.html +15 -0
- package/docs/classes/five.PBMMesh.html +7 -0
- package/docs/classes/five.PanoCircleMesh.html +7 -0
- package/docs/classes/five.Scene.html +3 -0
- package/docs/classes/five.Subscribe.html +56 -0
- package/docs/classes/five.Work.html +30 -0
- package/docs/classes/gltf_loader.GLTFLoader.html +17 -0
- package/docs/classes/gltf_loader.GLTFObject.html +7 -0
- package/docs/classes/line.Line.html +1 -0
- package/docs/classes/line.LineGeometry.html +1 -0
- package/docs/classes/line.LineMaterial.html +1 -0
- package/docs/classes/line.LineSegmentsGeometry.html +1 -0
- package/docs/classes/line.THREE_Line2.html +1 -0
- package/docs/classes/line.THREE_LineSegments2.html +1 -0
- package/docs/classes/react.Store.html +29 -0
- package/docs/classes/server.BVH.html +10 -0
- package/docs/classes/server.BVHIntersect.html +1 -0
- package/docs/classes/server.BVHNode.html +7 -0
- package/docs/classes/server.BVHVector3.html +1 -0
- package/docs/classes/server.Model.html +63 -0
- package/docs/classes/server.PBMGroup.html +9 -0
- package/docs/classes/server.PBMMesh.html +7 -0
- package/docs/classes/sticker.Sticker.html +32 -0
- package/docs/index.html +182 -0
- package/docs/interfaces/five.AddableObject.html +1 -0
- package/docs/interfaces/five.AnimationFrame.html +1 -0
- package/docs/interfaces/five.CameraPose.html +1 -0
- package/docs/interfaces/five.DepthPanoramaControllerCustomInitArgs.html +28 -0
- package/docs/interfaces/five.EventCallback.html +391 -0
- package/docs/interfaces/five.FiveInitArgs.html +96 -0
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +15 -0
- package/docs/interfaces/five.ImageOptions.html +16 -0
- package/docs/interfaces/five.ImageURLOptions.html +1 -0
- package/docs/interfaces/five.IntersectMeshInterface.html +3 -0
- package/docs/interfaces/five.Intersection.html +7 -0
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +20 -0
- package/docs/interfaces/five.ModelEventCallback.html +22 -0
- package/docs/interfaces/five.MovePanoOptions.html +39 -0
- package/docs/interfaces/five.PBMPanoPicture.html +7 -0
- package/docs/interfaces/five.PBMParameters.html +15 -0
- package/docs/interfaces/five.PanoCircleMeshInterface.html +19 -0
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +28 -0
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +20 -0
- package/docs/interfaces/five.Pose.html +35 -0
- package/docs/interfaces/five.Scissor.html +14 -0
- package/docs/interfaces/five.State.html +19 -0
- package/docs/interfaces/five.SubscribeMixinType.emit.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.hasListener.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.off.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.on.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.once.html +1 -0
- package/docs/interfaces/five.TextureOptions.html +18 -0
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +7 -0
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +24 -0
- package/docs/interfaces/five.WorkCubeImage.html +13 -0
- package/docs/interfaces/five.WorkImage.html +21 -0
- package/docs/interfaces/five.WorkInitial.html +13 -0
- package/docs/interfaces/five.WorkModel.html +11 -0
- package/docs/interfaces/five.WorkObserver.html +25 -0
- package/docs/interfaces/five.WorkTile.html +1 -0
- package/docs/interfaces/five.WorkVideo.html +9 -0
- package/docs/interfaces/gltf_loader.GLTF.html +7 -0
- package/docs/interfaces/react.FiveActionReactCallbacks.html +62 -0
- package/docs/interfaces/react.FiveInjectionTypes.html +191 -0
- package/docs/interfaces/react.PropTypeOfFiveFeatures.html +1 -0
- package/docs/interfaces/server.Intersection.html +7 -0
- package/docs/interfaces/server.ModelEventCallback.html +18 -0
- package/docs/interfaces/sticker.IntersectionLike.html +8 -0
- package/docs/media/coordinate.jpg +0 -0
- package/docs/media/topview.jpg +0 -0
- package/docs/media/typescript.jpg +0 -0
- package/docs/modules/five.SubscribeMixinType.html +1 -0
- package/docs/modules/five.html +481 -0
- package/docs/modules/gltf_loader.html +1 -0
- package/docs/modules/line.html +1 -0
- package/docs/modules/react.html +130 -0
- package/docs/modules/server.html +18 -0
- package/docs/modules/sticker.html +1 -0
- package/docs/modules.html +1 -0
- package/exporters/staticify.js +203 -0
- package/five/index.d.ts +2061 -0
- package/five/index.js +372 -0
- package/gltf-loader/index.d.ts +75 -0
- package/gltf-loader/index.js +260 -0
- package/line/index.d.ts +68 -0
- package/line/index.js +260 -0
- package/package.json +36 -0
- package/react/index.d.ts +812 -0
- package/react/index.js +260 -0
- package/resource/basis/basis_transcoder.js +22 -0
- package/resource/basis/basis_transcoder.wasm +0 -0
- package/resource/gltf/draco_decoder.js +31 -0
- package/resource/gltf/draco_decoder.wasm +0 -0
- package/resource/gltf/draco_wasm_wrapper.js +119 -0
- package/scripts/five-plugin-init.js +83 -0
- package/scripts/five-quick-start-init.js +80 -0
- package/scripts/five-react-component-init.js +83 -0
- package/scripts/five-staticify.js +21 -0
- package/server/index.d.ts +568 -0
- package/server/index.js +367 -0
- package/sticker/index.d.ts +70 -0
- package/sticker/index.js +260 -0
- package/templates/plugin/README.md +38 -0
- package/templates/plugin/devtools/external-five.js +5 -0
- package/templates/plugin/devtools/external-three.js +5 -0
- package/templates/plugin/devtools/tsconfig.build.json +18 -0
- package/templates/plugin/devtools/webpack.bundle.js +44 -0
- package/templates/plugin/devtools/webpack.example.js +39 -0
- package/templates/plugin/docs/.gitkeep +0 -0
- package/templates/plugin/examples/data.json +507 -0
- package/templates/plugin/examples/index.html +28 -0
- package/templates/plugin/examples/index.ts +12 -0
- package/templates/plugin/lib/index.ts +30 -0
- package/templates/plugin/package.json +32 -0
- package/templates/plugin/tsconfig.json +26 -0
- package/templates/quick-start/README.md +47 -0
- package/templates/quick-start/assets/work.json +507 -0
- package/templates/quick-start/index.html +54 -0
- package/templates/quick-start/index.tsx +123 -0
- package/templates/quick-start/package.json +25 -0
- package/templates/quick-start/tsconfig.json +27 -0
- package/templates/quick-start/webpack.config.js +45 -0
- package/templates/quick-start/webpack.production.js +42 -0
- package/templates/react-component/README.md +32 -0
- package/templates/react-component/devtools/external-five.js +5 -0
- package/templates/react-component/devtools/external-react.js +5 -0
- package/templates/react-component/devtools/external-three.js +5 -0
- package/templates/react-component/devtools/tsconfig.build.json +19 -0
- package/templates/react-component/devtools/webpack.bundle.js +44 -0
- package/templates/react-component/devtools/webpack.example.js +39 -0
- package/templates/react-component/docs/.gitkeep +0 -0
- package/templates/react-component/examples/data.json +507 -0
- package/templates/react-component/examples/index.html +17 -0
- package/templates/react-component/examples/index.tsx +62 -0
- package/templates/react-component/lib/index.tsx +157 -0
- package/templates/react-component/package.json +38 -0
- package/templates/react-component/tsconfig.json +27 -0
- package/umd/five-gltf-loader.js +2 -0
- package/umd/five-gltf-loader.js.LICENSE.txt +14 -0
- package/umd/five-line.js +2 -0
- package/umd/five-line.js.LICENSE.txt +14 -0
- package/umd/five-react.js +2 -0
- package/umd/five-react.js.LICENSE.txt +14 -0
- package/umd/five-sticker.js +2 -0
- package/umd/five-sticker.js.LICENSE.txt +14 -0
- package/umd/five.js +2 -0
- package/umd/five.js.LICENSE.txt +116 -0
package/README.md
ADDED
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
# Five.js
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@realsee/five)
|
|
4
|
+
|
|
5
|
+
贝壳如视三维渲染框架
|
|
6
|
+
|
|
7
|
+
## 什么是**Five**
|
|
8
|
+
|
|
9
|
+
**Five**是 [贝壳如视(realsee.com)](https://realsee.com) 提供的在浏览器中运行的三维空间渲染 Javascript SDK。您可以通过[如视开发者中心](https://developers.realsee.com)的数据服务,并结合**Five**,制作丰富多彩的三维空间应用。
|
|
10
|
+
|
|
11
|
+
并且**Five**提供了一系列的方法、事件、生命周期函数。您可以方便地基于**Five**进行二次开发,并结合到您自身的项目中,为您的项目添砖加瓦。
|
|
12
|
+
|
|
13
|
+
**Five**通过 [TypeScript](https://www.typescriptlang.org/) 编写,保证开发的质量以及编程体验,推荐通过 [Visual Studio Code](https://code.visualstudio.com)、[WebStorm](https://www.jetbrains.com/webstorm/) 等现代源代码编辑器,您将可以体验到友好的代码提示以及自动补全。
|
|
14
|
+
|
|
15
|
+
**Five**还提供了完善的 [React Hooks API](https://reactjs.org/docs/hooks-intro.html) ,可以方便的通过 [React](https://reactjs.org) 开发复杂的响应式数据应用。当然直接使用**Five**开发也是没有问题的。
|
|
16
|
+
|
|
17
|
+
## 安装**Five**
|
|
18
|
+
|
|
19
|
+
**Five**提供通过 [npm](https://www.npmjs.com) 的方式安装。**Five**基于 [Three.js](https://threejs.org), 所以同时您需要安装相关依赖。
|
|
20
|
+
|
|
21
|
+
目前依赖的**three**版本为 115 ~ 117 的版本
|
|
22
|
+
|
|
23
|
+
```shell
|
|
24
|
+
npm install @realsee/five three@0.117.1
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
如果您使用**React Hooks API**,那么也请同时安装**React**的相关依赖。
|
|
28
|
+
|
|
29
|
+
```shell
|
|
30
|
+
npm install @realsee/five three@0.117.1 react react-dom @types/react @types/react-dom
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
接下来便可以在您的项目使用**Five**了。
|
|
34
|
+
|
|
35
|
+
```typescript
|
|
36
|
+
import { Five } from "@realsee/five";
|
|
37
|
+
// 如果您使用 React Hoos API
|
|
38
|
+
import { useFiveState } from "@realsee/five/react";
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## 浏览器兼容性
|
|
43
|
+
|
|
44
|
+
| Safari | Safari on iOS | Chrome | Chrome for Android | Edge | Firefox |
|
|
45
|
+
|:------:|:-------------:|--------:|:------------------:|:----:|:-------:|
|
|
46
|
+
| >= 9 | >= 9 | >= 49 | >= 93 | >= 13| >= 45 |
|
|
47
|
+
|
|
48
|
+
## 快速上手
|
|
49
|
+
|
|
50
|
+
**Five**提供了快速上手体验的项目生成工具,您可以通过他熟悉**Five**的功能以及尝试基于**Five**开发功能。
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
1. 先创建一个文件夹`five-quick-start`, 作为项目根目录并且使用 `npm init` 命令初始化一个工程。
|
|
54
|
+
|
|
55
|
+
```shell
|
|
56
|
+
mkdir five-quick-start && cd five-quick-start && npm init -y
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
2. 安装**Five**
|
|
60
|
+
|
|
61
|
+
```shell
|
|
62
|
+
npm install @realsee/five
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
3. 通过**Five**的内置的`five-quick-start-init`脚本来快速补完当前项目
|
|
66
|
+
|
|
67
|
+
```shell
|
|
68
|
+
npx five-quick-start-init
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
项目的文件结构如下
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
.
|
|
75
|
+
├── README.md
|
|
76
|
+
├── assets 静态文件(测试数据)
|
|
77
|
+
│ ├── data0.json
|
|
78
|
+
│ └── data1.json
|
|
79
|
+
├── index.html 页面模版
|
|
80
|
+
├── index.tsx 逻辑代码
|
|
81
|
+
├── package.json npm 包管理描述
|
|
82
|
+
├── tsconfig.json typescript 配置
|
|
83
|
+
├── webpack.config.js webpack 开发环境配置
|
|
84
|
+
└── webpack.production.js webpack 生产配置
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
通**npm script**运行测试环境
|
|
88
|
+
|
|
89
|
+
```shell
|
|
90
|
+
npm run dev
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
默认将会在 `port: 3000` 开启 `webpack dev server`。您也可以在 `webpack.config.js` 中修改配置。
|
|
94
|
+
|
|
95
|
+
4. 现在可以打来浏览器 `http://0.0.0.0:3000` 来看看项目初始化的效果了。您可以修改代码来体验一下如何使用**Five**来二次开发。
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
## 如何使用**Five**
|
|
100
|
+
|
|
101
|
+
**Five**的简单使用样例:
|
|
102
|
+
|
|
103
|
+
```ts
|
|
104
|
+
import { Five } from "@realsee/five";
|
|
105
|
+
|
|
106
|
+
// 构造函数的具体参数见文档
|
|
107
|
+
const five = new Five();
|
|
108
|
+
|
|
109
|
+
// 将渲染视图的 canvas 添加到 DOM 中
|
|
110
|
+
five.appendTo(document.getElementById('app')!);
|
|
111
|
+
|
|
112
|
+
// 如果显示区域需要变动,在变动时请调用 refresh 重置显示参数
|
|
113
|
+
window.addEventListener('resize', () => five.refresh());
|
|
114
|
+
|
|
115
|
+
// 获取三维空间的 Work 数据,加载进来
|
|
116
|
+
// Work 数据可以通过如视开发者中心获取
|
|
117
|
+
fetch(`./work.json`)
|
|
118
|
+
.then(res => res.json())
|
|
119
|
+
.then(work => five.load(work));
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
其他的 Five API 待补充
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
## 在**React**框架中使用**Five**
|
|
126
|
+
|
|
127
|
+
在**React**框架中使用**Five**的简单使用样例:
|
|
128
|
+
|
|
129
|
+
```tsx
|
|
130
|
+
import * as React from "react";
|
|
131
|
+
import * as ReactDOM from "react-dom";
|
|
132
|
+
import {Five, Work, parseWork} from "@realsee/five";
|
|
133
|
+
import {createFiveProvider, FiveCanvas} from "@realsee/five/react";
|
|
134
|
+
|
|
135
|
+
// 创建 Provider, 参数与 new Five 参数类似
|
|
136
|
+
// 构造函数的具体参数见文档
|
|
137
|
+
const FiveProvider = createFiveProvider();
|
|
138
|
+
|
|
139
|
+
const App: React.FC = () => {
|
|
140
|
+
|
|
141
|
+
// 声明 State: Work
|
|
142
|
+
const [work, setWork] = React.useState<Work | null>(null);
|
|
143
|
+
|
|
144
|
+
// 声明 State: Size<{width, height}>
|
|
145
|
+
const [size, setSize] = React.useState({
|
|
146
|
+
width: window.innerWidth,
|
|
147
|
+
height: window.innerHeight
|
|
148
|
+
})
|
|
149
|
+
|
|
150
|
+
// 获取三维空间的 Work 数据,加载进来
|
|
151
|
+
const loadWork = React.useCallback((url: string) => {
|
|
152
|
+
fetch(url)
|
|
153
|
+
.then(res => res.json())
|
|
154
|
+
.then(data => setWork(parseWork(data)));
|
|
155
|
+
}, []);
|
|
156
|
+
|
|
157
|
+
React.useEffect(() => {
|
|
158
|
+
loadWork("./data0.json");
|
|
159
|
+
}, []);
|
|
160
|
+
|
|
161
|
+
// 如果显示区域需要变动,在变动时请调用 FiveCanvas 的 size
|
|
162
|
+
React.useEffect(() => {
|
|
163
|
+
const onResize = () => {
|
|
164
|
+
setSize({
|
|
165
|
+
width: window.innerWidth,
|
|
166
|
+
height: window.innerHeight
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
window.addEventListener("resize", onResize, false);
|
|
170
|
+
return () => window.removeEventListener("resize", onResize, false);
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
if (work) {
|
|
174
|
+
{/*
|
|
175
|
+
在 FiveProvider 内承载一个 Five 实例,
|
|
176
|
+
在他内部的组件可以使用 Five React Hook API 来获取/设置/操作 他
|
|
177
|
+
一个页面中也可以有多个 FiveProvider
|
|
178
|
+
*/}
|
|
179
|
+
return <FiveProvider initialWork={work}>
|
|
180
|
+
{/*
|
|
181
|
+
将渲染视图的 canvas 添加到 DOM 中
|
|
182
|
+
FiveCanvas 需要出现在 FiveProvider 内,他将渲染 FiveProvider 的视图
|
|
183
|
+
这样的设计可以实现不同的 DOM 层级结构
|
|
184
|
+
在 FiveProvider 内的其他组件也可以使用 Five React Hook API 来获取/设置/操作 他外部的 FiveProvider
|
|
185
|
+
*/}
|
|
186
|
+
<FiveCanvas width={size.width} height={size.height}/>
|
|
187
|
+
</FiveProvider>
|
|
188
|
+
}
|
|
189
|
+
return null;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
ReactDOM.render(<App></App>, document.getElementById("app"));
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
其他的**Five React Hook API**文档建设中...
|
|
196
|
+
|
|
197
|
+
## **Five API**文档
|
|
198
|
+
|
|
199
|
+
欢迎查看 [Five API 文档](https://unpkg.com/@realsee/five/docs/index.html) 。
|
|
200
|
+
|
|
201
|
+
该文档由 [TypeDoc](https://typedoc.org/) 生成,您可以详细查看 api 使用方式,调用参数,数据结构。
|
|
202
|
+
|
|
203
|
+
## 相关名词解释
|
|
204
|
+
|
|
205
|
+
### 什么是**Work**
|
|
206
|
+
|
|
207
|
+
**Work**是[如视开发者中心](https://developers.realsee.com) 提供的对于一个三维空间的描述。
|
|
208
|
+
是通过如视硬件设备([如视扫描仪](https://realsee.com/website/product/hardware) 、[如视**Lite**全景相机](https://realsee.com/website/product/lite) 、[如视VR App](https://realsee.com/website/mobile) )扫描并处理之后用于三维空间展示的数据。
|
|
209
|
+
|
|
210
|
+
**Work**以`JSON`作为数据格式**Five**框架可以解析**Work**数据并展示。一个**Five**实例每次可以载入并展示一个**Work**。并且也可以在不同的**Work**之间动态切换。
|
|
211
|
+
|
|
212
|
+
**Work**的数据样例如下
|
|
213
|
+
|
|
214
|
+
```json
|
|
215
|
+
{
|
|
216
|
+
"initial": {
|
|
217
|
+
"mode": "Panorama",
|
|
218
|
+
"pano_index": 6,
|
|
219
|
+
"longitude": 2.6869287662553916,
|
|
220
|
+
"latitude": 0,
|
|
221
|
+
"fov": 95
|
|
222
|
+
},
|
|
223
|
+
"model": {
|
|
224
|
+
"file_url": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/model\/auto3d-DJaa08PIzN4JYluXQ1j2VS.at3d",
|
|
225
|
+
"material_textures": [
|
|
226
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_0.jpg",
|
|
227
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_1.jpg",
|
|
228
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_2.jpg",
|
|
229
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_3.jpg",
|
|
230
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_4.jpg",
|
|
231
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_5.jpg",
|
|
232
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_6.jpg",
|
|
233
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_7.jpg",
|
|
234
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_8.jpg",
|
|
235
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_9.jpg"
|
|
236
|
+
]
|
|
237
|
+
},
|
|
238
|
+
"panorama": {
|
|
239
|
+
"list": [
|
|
240
|
+
{
|
|
241
|
+
"up": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/0\/2257f0f0b29d5b00ff01934ce51aaa35\/0_u.jpg",
|
|
242
|
+
"down": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/0\/2257f0f0b29d5b00ff01934ce51aaa35\/0_d.jpg",
|
|
243
|
+
"left": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/0\/2257f0f0b29d5b00ff01934ce51aaa35\/0_l.jpg",
|
|
244
|
+
"right": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/0\/2257f0f0b29d5b00ff01934ce51aaa35\/0_r.jpg",
|
|
245
|
+
"front": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/0\/2257f0f0b29d5b00ff01934ce51aaa35\/0_f.jpg",
|
|
246
|
+
"back": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/0\/2257f0f0b29d5b00ff01934ce51aaa35\/0_b.jpg"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"up": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/1\/ecb554bb1c122fa90186d176ccfecde4\/1_u.jpg",
|
|
250
|
+
"down": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/1\/ecb554bb1c122fa90186d176ccfecde4\/1_d.jpg",
|
|
251
|
+
"left": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/1\/ecb554bb1c122fa90186d176ccfecde4\/1_l.jpg",
|
|
252
|
+
"right": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/1\/ecb554bb1c122fa90186d176ccfecde4\/1_r.jpg",
|
|
253
|
+
"front": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/1\/ecb554bb1c122fa90186d176ccfecde4\/1_f.jpg",
|
|
254
|
+
"back": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/1\/ecb554bb1c122fa90186d176ccfecde4\/1_b.jpg"
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
},
|
|
258
|
+
"observers": [
|
|
259
|
+
{
|
|
260
|
+
"visible_nodes": [ 1 ],
|
|
261
|
+
"accessible_nodes": [ 1 ],
|
|
262
|
+
"quaternion": {
|
|
263
|
+
"w": 0.45076583925142194,
|
|
264
|
+
"x": 0.010070951976936936,
|
|
265
|
+
"y": -0.8925839597148215,
|
|
266
|
+
"z": -0.0016154299986102319
|
|
267
|
+
},
|
|
268
|
+
"standing_position": [
|
|
269
|
+
-6.956049919128418,
|
|
270
|
+
-1.3924440682333898,
|
|
271
|
+
1.6591600179672241
|
|
272
|
+
],
|
|
273
|
+
"position": [
|
|
274
|
+
-6.956049919128418,
|
|
275
|
+
-0.10312400013208389,
|
|
276
|
+
1.6591600179672241
|
|
277
|
+
],
|
|
278
|
+
"floor_index": 0
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"visible_nodes": [ 0 ],
|
|
282
|
+
"accessible_nodes": [ 0 ],
|
|
283
|
+
"index": 1,
|
|
284
|
+
"quaternion": {
|
|
285
|
+
"w": -0.9884643083591809,
|
|
286
|
+
"x": -0.0038900979633806664,
|
|
287
|
+
"y": 0.1512670435365699,
|
|
288
|
+
"z": -0.006439990839033269
|
|
289
|
+
},
|
|
290
|
+
"standing_position": [
|
|
291
|
+
-6.176340103149414,
|
|
292
|
+
-1.380554749576384,
|
|
293
|
+
2.179759979248047
|
|
294
|
+
],
|
|
295
|
+
"position": [
|
|
296
|
+
-6.176340103149414,
|
|
297
|
+
-0.10025200247764587,
|
|
298
|
+
2.179759979248047
|
|
299
|
+
],
|
|
300
|
+
"floor_index": 0,
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
}
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
Work 的数据说明
|
|
307
|
+
|
|
308
|
+
- `initial`: 初始化数据,是一个 `State` 数据。描述**Work**被加载初始状态的位姿,也叫做VR的初始视角
|
|
309
|
+
- mode: 模态
|
|
310
|
+
- pano_index: 初始化点位
|
|
311
|
+
- longitude: 相机的水平角
|
|
312
|
+
- latitude: 相机的偏航角
|
|
313
|
+
- fov: 相机垂直方向的可视角度
|
|
314
|
+
|
|
315
|
+
- `model`: 三维模型
|
|
316
|
+
- file_url: 三维模型的资源地址,文件为 `.at3d` 为如视定制的模型格式
|
|
317
|
+
- material_textures: 三维模型的贴图资源地址
|
|
318
|
+
|
|
319
|
+
- `panorama`: 全景彩色信息
|
|
320
|
+
- list:
|
|
321
|
+
- up / down / left / right / front / back: 全景彩色信息以 [cubemap](https://en.wikipedia.org/wiki/Cube_mapping) 方式存储和使用。
|
|
322
|
+
|
|
323
|
+
- `observers`: 采集点信息
|
|
324
|
+
- visible_nodes: 采集点之间的可见性列表
|
|
325
|
+
- accessible_nodes: 采集点之间的连通性列表
|
|
326
|
+
- quaternion: 采集点与模型坐标的旋转偏移量
|
|
327
|
+
- standing_position: 采集点地面坐标
|
|
328
|
+
- position: 采集点坐标
|
|
329
|
+
- floor_index: 采集点楼层
|
|
330
|
+
|
|
331
|
+
### 什么是 Five State
|
|
332
|
+
|
|
333
|
+
**State**是**Five**框架用于描述状态的数据结构。他包含了模态、位于的采集点位、相机的方向、相机可视角度的信息。
|
|
334
|
+
您可以使用**State**来操作**Five**或者获取**Five**当前的状态。
|
|
335
|
+
|
|
336
|
+
```ts
|
|
337
|
+
interface State {
|
|
338
|
+
"mode": Five.Mode,
|
|
339
|
+
"panoIndex": number,
|
|
340
|
+
"longitude": number,
|
|
341
|
+
"latitude": number,
|
|
342
|
+
"fov": number,
|
|
343
|
+
}
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
**State**的数据描述
|
|
347
|
+
|
|
348
|
+
- `mode`: 当前的模态
|
|
349
|
+
Five 常用有 5 种模态,可以使用 `Five.Mode` 获得
|
|
350
|
+
- Panorama: 全景游走模态,该模态下视图将在采集点间游走,手势操作可以旋转/放大视角/切换采集点,适合查看采集的全景信息。
|
|
351
|
+
- Floorplan: 空间总览模态, 该模态下视图以模型为中心,手势操作可以旋转/放大模型/切换楼层,适合查看模型的整体效果。
|
|
352
|
+
- Topview: 户型图模态,该模态下视图以模型为中心,垂直俯视模型,手势操作可以平移/放大模型/切换楼层,适合查看模型平面结构。
|
|
353
|
+
- Model: 模型游走模态,该模态下视图将在模型中自由游走,手势操作可以旋转/放大视角/位移,适合查看模型的细节,做一些定位操作。
|
|
354
|
+
- VRPanorama: VR 眼镜模态,该模态下可以使用 [Cardboard 眼镜](https://arvr.google.com/cardboard/) 或者他的第三方衍生产品,实现 VR 虚拟显示效果。
|
|
355
|
+
|
|
356
|
+
- `panoIndex`: 采集点位
|
|
357
|
+
|
|
358
|
+
- `longitude` / `latitude`: 相机的水平角 / 相机的偏航角(弧度),我们使用类似经纬度的方式描述相机位置。
|
|
359
|
+
|
|
360
|
+
- `fov`: 相机垂直方向的可视角度 (角度)
|
|
361
|
+
|
|
362
|
+
|
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.
|
package/docs/.nojekyll
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--light-hl-0: #000000;
|
|
3
|
+
--dark-hl-0: #D4D4D4;
|
|
4
|
+
--light-hl-1: #AF00DB;
|
|
5
|
+
--dark-hl-1: #C586C0;
|
|
6
|
+
--light-hl-2: #001080;
|
|
7
|
+
--dark-hl-2: #9CDCFE;
|
|
8
|
+
--light-hl-3: #A31515;
|
|
9
|
+
--dark-hl-3: #CE9178;
|
|
10
|
+
--light-hl-4: #008000;
|
|
11
|
+
--dark-hl-4: #6A9955;
|
|
12
|
+
--light-hl-5: #795E26;
|
|
13
|
+
--dark-hl-5: #DCDCAA;
|
|
14
|
+
--light-hl-6: #0070C1;
|
|
15
|
+
--dark-hl-6: #4FC1FF;
|
|
16
|
+
--light-hl-7: #0000FF;
|
|
17
|
+
--dark-hl-7: #569CD6;
|
|
18
|
+
--light-hl-8: #267F99;
|
|
19
|
+
--dark-hl-8: #4EC9B0;
|
|
20
|
+
--light-hl-9: #800000;
|
|
21
|
+
--dark-hl-9: #808080;
|
|
22
|
+
--light-hl-10: #FF0000;
|
|
23
|
+
--dark-hl-10: #9CDCFE;
|
|
24
|
+
--light-hl-11: #000000FF;
|
|
25
|
+
--dark-hl-11: #D4D4D4;
|
|
26
|
+
--light-hl-12: #0451A5;
|
|
27
|
+
--dark-hl-12: #9CDCFE;
|
|
28
|
+
--light-hl-13: #098658;
|
|
29
|
+
--dark-hl-13: #B5CEA8;
|
|
30
|
+
--light-hl-14: #EE0000;
|
|
31
|
+
--dark-hl-14: #D7BA7D;
|
|
32
|
+
--light-hl-15: #000000;
|
|
33
|
+
--dark-hl-15: #C8C8C8;
|
|
34
|
+
--light-code-background: #FFFFFF;
|
|
35
|
+
--dark-code-background: #1E1E1E;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@media (prefers-color-scheme: light) { :root {
|
|
39
|
+
--hl-0: var(--light-hl-0);
|
|
40
|
+
--hl-1: var(--light-hl-1);
|
|
41
|
+
--hl-2: var(--light-hl-2);
|
|
42
|
+
--hl-3: var(--light-hl-3);
|
|
43
|
+
--hl-4: var(--light-hl-4);
|
|
44
|
+
--hl-5: var(--light-hl-5);
|
|
45
|
+
--hl-6: var(--light-hl-6);
|
|
46
|
+
--hl-7: var(--light-hl-7);
|
|
47
|
+
--hl-8: var(--light-hl-8);
|
|
48
|
+
--hl-9: var(--light-hl-9);
|
|
49
|
+
--hl-10: var(--light-hl-10);
|
|
50
|
+
--hl-11: var(--light-hl-11);
|
|
51
|
+
--hl-12: var(--light-hl-12);
|
|
52
|
+
--hl-13: var(--light-hl-13);
|
|
53
|
+
--hl-14: var(--light-hl-14);
|
|
54
|
+
--hl-15: var(--light-hl-15);
|
|
55
|
+
--code-background: var(--light-code-background);
|
|
56
|
+
} }
|
|
57
|
+
|
|
58
|
+
@media (prefers-color-scheme: dark) { :root {
|
|
59
|
+
--hl-0: var(--dark-hl-0);
|
|
60
|
+
--hl-1: var(--dark-hl-1);
|
|
61
|
+
--hl-2: var(--dark-hl-2);
|
|
62
|
+
--hl-3: var(--dark-hl-3);
|
|
63
|
+
--hl-4: var(--dark-hl-4);
|
|
64
|
+
--hl-5: var(--dark-hl-5);
|
|
65
|
+
--hl-6: var(--dark-hl-6);
|
|
66
|
+
--hl-7: var(--dark-hl-7);
|
|
67
|
+
--hl-8: var(--dark-hl-8);
|
|
68
|
+
--hl-9: var(--dark-hl-9);
|
|
69
|
+
--hl-10: var(--dark-hl-10);
|
|
70
|
+
--hl-11: var(--dark-hl-11);
|
|
71
|
+
--hl-12: var(--dark-hl-12);
|
|
72
|
+
--hl-13: var(--dark-hl-13);
|
|
73
|
+
--hl-14: var(--dark-hl-14);
|
|
74
|
+
--hl-15: var(--dark-hl-15);
|
|
75
|
+
--code-background: var(--dark-code-background);
|
|
76
|
+
} }
|
|
77
|
+
|
|
78
|
+
body.light {
|
|
79
|
+
--hl-0: var(--light-hl-0);
|
|
80
|
+
--hl-1: var(--light-hl-1);
|
|
81
|
+
--hl-2: var(--light-hl-2);
|
|
82
|
+
--hl-3: var(--light-hl-3);
|
|
83
|
+
--hl-4: var(--light-hl-4);
|
|
84
|
+
--hl-5: var(--light-hl-5);
|
|
85
|
+
--hl-6: var(--light-hl-6);
|
|
86
|
+
--hl-7: var(--light-hl-7);
|
|
87
|
+
--hl-8: var(--light-hl-8);
|
|
88
|
+
--hl-9: var(--light-hl-9);
|
|
89
|
+
--hl-10: var(--light-hl-10);
|
|
90
|
+
--hl-11: var(--light-hl-11);
|
|
91
|
+
--hl-12: var(--light-hl-12);
|
|
92
|
+
--hl-13: var(--light-hl-13);
|
|
93
|
+
--hl-14: var(--light-hl-14);
|
|
94
|
+
--hl-15: var(--light-hl-15);
|
|
95
|
+
--code-background: var(--light-code-background);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
body.dark {
|
|
99
|
+
--hl-0: var(--dark-hl-0);
|
|
100
|
+
--hl-1: var(--dark-hl-1);
|
|
101
|
+
--hl-2: var(--dark-hl-2);
|
|
102
|
+
--hl-3: var(--dark-hl-3);
|
|
103
|
+
--hl-4: var(--dark-hl-4);
|
|
104
|
+
--hl-5: var(--dark-hl-5);
|
|
105
|
+
--hl-6: var(--dark-hl-6);
|
|
106
|
+
--hl-7: var(--dark-hl-7);
|
|
107
|
+
--hl-8: var(--dark-hl-8);
|
|
108
|
+
--hl-9: var(--dark-hl-9);
|
|
109
|
+
--hl-10: var(--dark-hl-10);
|
|
110
|
+
--hl-11: var(--dark-hl-11);
|
|
111
|
+
--hl-12: var(--dark-hl-12);
|
|
112
|
+
--hl-13: var(--dark-hl-13);
|
|
113
|
+
--hl-14: var(--dark-hl-14);
|
|
114
|
+
--hl-15: var(--dark-hl-15);
|
|
115
|
+
--code-background: var(--dark-code-background);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.hl-0 { color: var(--hl-0); }
|
|
119
|
+
.hl-1 { color: var(--hl-1); }
|
|
120
|
+
.hl-2 { color: var(--hl-2); }
|
|
121
|
+
.hl-3 { color: var(--hl-3); }
|
|
122
|
+
.hl-4 { color: var(--hl-4); }
|
|
123
|
+
.hl-5 { color: var(--hl-5); }
|
|
124
|
+
.hl-6 { color: var(--hl-6); }
|
|
125
|
+
.hl-7 { color: var(--hl-7); }
|
|
126
|
+
.hl-8 { color: var(--hl-8); }
|
|
127
|
+
.hl-9 { color: var(--hl-9); }
|
|
128
|
+
.hl-10 { color: var(--hl-10); }
|
|
129
|
+
.hl-11 { color: var(--hl-11); }
|
|
130
|
+
.hl-12 { color: var(--hl-12); }
|
|
131
|
+
.hl-13 { color: var(--hl-13); }
|
|
132
|
+
.hl-14 { color: var(--hl-14); }
|
|
133
|
+
.hl-15 { color: var(--hl-15); }
|
|
134
|
+
pre, code { background: var(--code-background); }
|