@realsee/vreo 0.2.0-alpha.11 → 0.2.0-alpha.14
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 +2 -2
- package/docs/assets/search.js +1 -1
- package/docs/classes/Player.AudioLike.html +52 -0
- package/docs/classes/Player.Controller.html +3 -3
- package/docs/classes/Player.Player-1.html +3 -3
- package/docs/classes/Player.VideoAgentMesh.html +12 -12
- package/docs/classes/Player.VideoAgentScene.html +1 -1
- package/docs/demo/assets/AppReact.5d77c4d8.js +1 -0
- package/docs/demo/assets/default.3cf9974e.js +64 -0
- package/docs/demo/assets/default.70243c83.css +1 -0
- package/docs/demo/assets/dynamic.ee28990e.js +1 -0
- package/docs/demo/assets/examples.294e0a10.js +25 -0
- package/docs/demo/assets/examples.dac4a6fe.css +1 -0
- package/docs/demo/assets/index.a7bafdff.css +1 -0
- package/docs/demo/assets/index.c55a0972.js +1 -0
- package/docs/demo/assets/main.8fadf245.js +1 -0
- package/docs/demo/assets/react.aa3cf7f7.css +1 -0
- package/docs/demo/assets/react.ed4b53f9.js +25 -0
- package/docs/demo/assets/vendor.5714cf27.js +3903 -0
- package/docs/demo/assets/znRoyv06SZQeqA7m.0057e8ae.js +1 -0
- package/docs/demo/examples.html +18 -0
- package/docs/demo/index-react-dynamic.html +21 -0
- package/docs/demo/index-react.html +21 -0
- package/docs/demo/index.html +20 -0
- package/docs/enums/Player.InfoPanelStyleEnum.html +1 -1
- package/docs/enums/Player.InfoPanelTypeEnum.html +1 -1
- package/docs/enums/Player.PanoEffectEnum.html +1 -1
- package/docs/enums/Player.PanoTagEnum.html +1 -1
- package/docs/enums/Player.PanoTagStyleEnum.html +7 -0
- package/docs/enums/Player.VreoKeyframeEnum.html +12 -12
- package/docs/enums/fivePlugins.CameraMovementEffect.html +1 -1
- package/docs/enums/fivePlugins.Rotation.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/Player.CustomVreoKeyframeProps.html +1 -1
- package/docs/interfaces/Player.PlayerConfigs.html +2 -2
- package/docs/interfaces/Player.Vertex.html +1 -1
- package/docs/interfaces/Player.VideoAgentMeshOptions.html +1 -1
- package/docs/interfaces/Player.VreoKeyframe.html +1 -1
- package/docs/interfaces/Player.VreoUnit.html +1 -1
- package/docs/interfaces/Player.VreoVideo.html +1 -1
- package/docs/interfaces/fivePlugins.CSS3DRenderPluginExportType.html +4 -0
- package/docs/interfaces/fivePlugins.CameraMovementOptsCallback.html +1 -1
- package/docs/interfaces/fivePlugins.CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/fivePlugins.ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/fivePlugins.ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/fivePlugins.ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/fivePlugins.Vector3Position.html +3 -0
- package/docs/interfaces/react.VreoActionCallbacks.html +6 -6
- package/docs/interfaces/react.VreoProviderProps.html +1 -1
- package/docs/modules/Player.html +18 -14
- package/docs/modules/custom.html +1 -1
- package/docs/modules/fivePlugins.html +5 -2
- package/docs/modules/react.html +1 -1
- package/lib/Player/Controller.d.ts +1 -1
- package/lib/Player/index.d.ts +1 -1
- package/lib/Player/index.js +15 -15
- package/lib/Player/modules/VideoAgent/VideoAgentMesh.d.ts +4 -2
- package/lib/Player/modules/VideoAgent/VideoAgentMesh.js +71 -23
- package/lib/Player/modules/VideoAgent/VideoAgentScene.js +2 -1
- package/lib/Player/modules/keyframes/PanoTag/index.js +19 -6
- package/lib/Player/modules/keyframes/PanoTextLabel/index.d.ts +3 -0
- package/lib/Player/modules/keyframes/PanoTextLabel/index.js +96 -43
- package/lib/fivePlugins/CSS3DRenderPlugin/centerPoint.d.ts +2 -0
- package/lib/fivePlugins/CSS3DRenderPlugin/centerPoint.js +12 -0
- package/lib/fivePlugins/CSS3DRenderPlugin/createResizeObserver.d.ts +7 -0
- package/lib/fivePlugins/CSS3DRenderPlugin/createResizeObserver.js +32 -0
- package/lib/fivePlugins/CSS3DRenderPlugin/evenNumber.d.ts +3 -0
- package/lib/fivePlugins/CSS3DRenderPlugin/evenNumber.js +11 -0
- package/lib/fivePlugins/CSS3DRenderPlugin/index.d.ts +56 -0
- package/lib/fivePlugins/CSS3DRenderPlugin/index.js +275 -0
- package/lib/fivePlugins/CSS3DRenderPlugin/transformPositionToVector3.d.ts +7 -0
- package/lib/fivePlugins/CSS3DRenderPlugin/transformPositionToVector3.js +18 -0
- package/lib/react/index.d.ts +2 -2
- package/lib/react/index.js +2 -2
- package/lib/shared-utils/AduioLike.d.ts +37 -0
- package/lib/shared-utils/AduioLike.js +165 -0
- package/lib/typings/VreoUnit.d.ts +25 -0
- package/lib/typings/VreoUnit.js +13 -1
- package/package.json +4 -4
- package/resources/Player/Controller.ts +2 -0
- package/resources/Player/index.tsx +42 -28
- package/resources/Player/modules/VideoAgent/VideoAgentMesh.ts +39 -9
- package/resources/Player/modules/VideoAgent/VideoAgentScene.ts +2 -0
- package/resources/Player/modules/keyframes/PanoTag/index.tsx +31 -12
- package/resources/Player/modules/keyframes/PanoTextLabel/index.tsx +87 -34
- package/resources/fivePlugins/CSS3DRenderPlugin/centerPoint.ts +5 -0
- package/resources/fivePlugins/CSS3DRenderPlugin/createResizeObserver.ts +17 -0
- package/resources/fivePlugins/CSS3DRenderPlugin/evenNumber.ts +4 -0
- package/resources/fivePlugins/CSS3DRenderPlugin/index.ts +254 -0
- package/resources/fivePlugins/CSS3DRenderPlugin/transformPositionToVector3.ts +5 -0
- package/resources/react/index.tsx +2 -2
- package/resources/shared-utils/AduioLike.ts +108 -0
- package/resources/typings/VreoUnit.ts +28 -1
- package/stylesheets/default.css +30 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mode,
|
|
1
|
+
import { Mode, Pose } from '@realsee/five'
|
|
2
2
|
import { CameraMovementEffect, Rotation } from '../fivePlugins/CameraMovementPlugin/typings'
|
|
3
3
|
|
|
4
4
|
export enum VreoKeyframeEnum {
|
|
@@ -191,12 +191,24 @@ export type ModelVideoData = {
|
|
|
191
191
|
matrixWorld?: number[]
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
/**
|
|
195
|
+
* 四元数
|
|
196
|
+
*/
|
|
197
|
+
export type Quaternion = {
|
|
198
|
+
x: number,
|
|
199
|
+
y: number,
|
|
200
|
+
z: number,
|
|
201
|
+
w: number
|
|
202
|
+
}
|
|
203
|
+
|
|
194
204
|
/**
|
|
195
205
|
* 全景文本标签
|
|
196
206
|
*/
|
|
197
207
|
export type PanoTextLabelData = {
|
|
198
208
|
text: string
|
|
199
209
|
vertex: Vertex
|
|
210
|
+
normal?: Vertex
|
|
211
|
+
quaternion?: Quaternion
|
|
200
212
|
fontSize?: number
|
|
201
213
|
}
|
|
202
214
|
|
|
@@ -208,8 +220,23 @@ export enum PanoTagEnum {
|
|
|
208
220
|
Image = 'Image',
|
|
209
221
|
}
|
|
210
222
|
|
|
223
|
+
/**
|
|
224
|
+
* 标签样式种类
|
|
225
|
+
*/
|
|
226
|
+
export enum PanoTagStyleEnum {
|
|
227
|
+
/**
|
|
228
|
+
* 生长动画:默认值
|
|
229
|
+
*/
|
|
230
|
+
Growth = 'Growth',
|
|
231
|
+
/**
|
|
232
|
+
* 展开动画
|
|
233
|
+
*/
|
|
234
|
+
Expand = 'Expand',
|
|
235
|
+
}
|
|
236
|
+
|
|
211
237
|
export type PanoTagData = {
|
|
212
238
|
type: PanoTagEnum
|
|
239
|
+
style: PanoTagStyleEnum
|
|
213
240
|
text: string
|
|
214
241
|
vertex: Vertex
|
|
215
242
|
imgUrl?: string
|
package/stylesheets/default.css
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
position: fixed;
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|
|
5
|
-
width:
|
|
6
|
-
height:
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
7
|
pointer-events: none;
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
position: fixed;
|
|
32
32
|
bottom: 0;
|
|
33
33
|
left: 0;
|
|
34
|
-
width:
|
|
34
|
+
width: 100%;
|
|
35
35
|
height: 150px;
|
|
36
36
|
color: white;
|
|
37
37
|
transition: transform 0.5s;
|
|
@@ -195,6 +195,27 @@
|
|
|
195
195
|
opacity: 0;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
.PanoTag--expand {
|
|
199
|
+
transform: translate(-50%, -50%);
|
|
200
|
+
color: white;
|
|
201
|
+
min-width: 150px;
|
|
202
|
+
max-width: 200px;
|
|
203
|
+
margin-top: 4px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.PanoTag--expand .PanoTag-box.PanoTag-box--Text {
|
|
207
|
+
display: flex;
|
|
208
|
+
justify-content: center;
|
|
209
|
+
align-items: center;
|
|
210
|
+
padding-bottom: 4px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.PanoTag-guideline {
|
|
214
|
+
width: 100%;
|
|
215
|
+
background: linear-gradient(45deg, transparent 20% ,white, transparent 80%);
|
|
216
|
+
height: 3px;
|
|
217
|
+
}
|
|
218
|
+
|
|
198
219
|
.PanoTag--notHidden {
|
|
199
220
|
opacity: 1;
|
|
200
221
|
}
|
|
@@ -409,7 +430,11 @@
|
|
|
409
430
|
transform-style: preserve-3d;
|
|
410
431
|
pointer-events: none;
|
|
411
432
|
z-index: 999999;
|
|
412
|
-
|
|
433
|
+
}
|
|
434
|
+
.__Dnalogel-plugin--CSS3DRenderPlugin {
|
|
435
|
+
display: flex;
|
|
436
|
+
align-items: center;
|
|
437
|
+
justify-content: center;
|
|
413
438
|
}
|
|
414
439
|
|
|
415
440
|
@keyframes straightPopPTL {
|
|
@@ -582,7 +607,7 @@
|
|
|
582
607
|
position: relative;
|
|
583
608
|
}
|
|
584
609
|
|
|
585
|
-
@media only screen and (min-width:
|
|
610
|
+
@media only screen and (min-width: 1080px) {
|
|
586
611
|
.vreo-PopUp-inner {
|
|
587
612
|
width: 678px;
|
|
588
613
|
height: 620px;
|