@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.
Files changed (94) hide show
  1. package/README.md +2 -2
  2. package/docs/assets/search.js +1 -1
  3. package/docs/classes/Player.AudioLike.html +52 -0
  4. package/docs/classes/Player.Controller.html +3 -3
  5. package/docs/classes/Player.Player-1.html +3 -3
  6. package/docs/classes/Player.VideoAgentMesh.html +12 -12
  7. package/docs/classes/Player.VideoAgentScene.html +1 -1
  8. package/docs/demo/assets/AppReact.5d77c4d8.js +1 -0
  9. package/docs/demo/assets/default.3cf9974e.js +64 -0
  10. package/docs/demo/assets/default.70243c83.css +1 -0
  11. package/docs/demo/assets/dynamic.ee28990e.js +1 -0
  12. package/docs/demo/assets/examples.294e0a10.js +25 -0
  13. package/docs/demo/assets/examples.dac4a6fe.css +1 -0
  14. package/docs/demo/assets/index.a7bafdff.css +1 -0
  15. package/docs/demo/assets/index.c55a0972.js +1 -0
  16. package/docs/demo/assets/main.8fadf245.js +1 -0
  17. package/docs/demo/assets/react.aa3cf7f7.css +1 -0
  18. package/docs/demo/assets/react.ed4b53f9.js +25 -0
  19. package/docs/demo/assets/vendor.5714cf27.js +3903 -0
  20. package/docs/demo/assets/znRoyv06SZQeqA7m.0057e8ae.js +1 -0
  21. package/docs/demo/examples.html +18 -0
  22. package/docs/demo/index-react-dynamic.html +21 -0
  23. package/docs/demo/index-react.html +21 -0
  24. package/docs/demo/index.html +20 -0
  25. package/docs/enums/Player.InfoPanelStyleEnum.html +1 -1
  26. package/docs/enums/Player.InfoPanelTypeEnum.html +1 -1
  27. package/docs/enums/Player.PanoEffectEnum.html +1 -1
  28. package/docs/enums/Player.PanoTagEnum.html +1 -1
  29. package/docs/enums/Player.PanoTagStyleEnum.html +7 -0
  30. package/docs/enums/Player.VreoKeyframeEnum.html +12 -12
  31. package/docs/enums/fivePlugins.CameraMovementEffect.html +1 -1
  32. package/docs/enums/fivePlugins.Rotation.html +1 -1
  33. package/docs/index.html +2 -2
  34. package/docs/interfaces/Player.CustomVreoKeyframeProps.html +1 -1
  35. package/docs/interfaces/Player.PlayerConfigs.html +2 -2
  36. package/docs/interfaces/Player.Vertex.html +1 -1
  37. package/docs/interfaces/Player.VideoAgentMeshOptions.html +1 -1
  38. package/docs/interfaces/Player.VreoKeyframe.html +1 -1
  39. package/docs/interfaces/Player.VreoUnit.html +1 -1
  40. package/docs/interfaces/Player.VreoVideo.html +1 -1
  41. package/docs/interfaces/fivePlugins.CSS3DRenderPluginExportType.html +4 -0
  42. package/docs/interfaces/fivePlugins.CameraMovementOptsCallback.html +1 -1
  43. package/docs/interfaces/fivePlugins.CameraMovementPluginExportType.html +2 -2
  44. package/docs/interfaces/fivePlugins.ModelTVVideoPluginData.html +1 -1
  45. package/docs/interfaces/fivePlugins.ModelTVVideoPluginExportType.html +1 -1
  46. package/docs/interfaces/fivePlugins.ModelTVVideoPluginParameterType.html +1 -1
  47. package/docs/interfaces/fivePlugins.Vector3Position.html +3 -0
  48. package/docs/interfaces/react.VreoActionCallbacks.html +6 -6
  49. package/docs/interfaces/react.VreoProviderProps.html +1 -1
  50. package/docs/modules/Player.html +18 -14
  51. package/docs/modules/custom.html +1 -1
  52. package/docs/modules/fivePlugins.html +5 -2
  53. package/docs/modules/react.html +1 -1
  54. package/lib/Player/Controller.d.ts +1 -1
  55. package/lib/Player/index.d.ts +1 -1
  56. package/lib/Player/index.js +15 -15
  57. package/lib/Player/modules/VideoAgent/VideoAgentMesh.d.ts +4 -2
  58. package/lib/Player/modules/VideoAgent/VideoAgentMesh.js +71 -23
  59. package/lib/Player/modules/VideoAgent/VideoAgentScene.js +2 -1
  60. package/lib/Player/modules/keyframes/PanoTag/index.js +19 -6
  61. package/lib/Player/modules/keyframes/PanoTextLabel/index.d.ts +3 -0
  62. package/lib/Player/modules/keyframes/PanoTextLabel/index.js +96 -43
  63. package/lib/fivePlugins/CSS3DRenderPlugin/centerPoint.d.ts +2 -0
  64. package/lib/fivePlugins/CSS3DRenderPlugin/centerPoint.js +12 -0
  65. package/lib/fivePlugins/CSS3DRenderPlugin/createResizeObserver.d.ts +7 -0
  66. package/lib/fivePlugins/CSS3DRenderPlugin/createResizeObserver.js +32 -0
  67. package/lib/fivePlugins/CSS3DRenderPlugin/evenNumber.d.ts +3 -0
  68. package/lib/fivePlugins/CSS3DRenderPlugin/evenNumber.js +11 -0
  69. package/lib/fivePlugins/CSS3DRenderPlugin/index.d.ts +56 -0
  70. package/lib/fivePlugins/CSS3DRenderPlugin/index.js +275 -0
  71. package/lib/fivePlugins/CSS3DRenderPlugin/transformPositionToVector3.d.ts +7 -0
  72. package/lib/fivePlugins/CSS3DRenderPlugin/transformPositionToVector3.js +18 -0
  73. package/lib/react/index.d.ts +2 -2
  74. package/lib/react/index.js +2 -2
  75. package/lib/shared-utils/AduioLike.d.ts +37 -0
  76. package/lib/shared-utils/AduioLike.js +165 -0
  77. package/lib/typings/VreoUnit.d.ts +25 -0
  78. package/lib/typings/VreoUnit.js +13 -1
  79. package/package.json +4 -4
  80. package/resources/Player/Controller.ts +2 -0
  81. package/resources/Player/index.tsx +42 -28
  82. package/resources/Player/modules/VideoAgent/VideoAgentMesh.ts +39 -9
  83. package/resources/Player/modules/VideoAgent/VideoAgentScene.ts +2 -0
  84. package/resources/Player/modules/keyframes/PanoTag/index.tsx +31 -12
  85. package/resources/Player/modules/keyframes/PanoTextLabel/index.tsx +87 -34
  86. package/resources/fivePlugins/CSS3DRenderPlugin/centerPoint.ts +5 -0
  87. package/resources/fivePlugins/CSS3DRenderPlugin/createResizeObserver.ts +17 -0
  88. package/resources/fivePlugins/CSS3DRenderPlugin/evenNumber.ts +4 -0
  89. package/resources/fivePlugins/CSS3DRenderPlugin/index.ts +254 -0
  90. package/resources/fivePlugins/CSS3DRenderPlugin/transformPositionToVector3.ts +5 -0
  91. package/resources/react/index.tsx +2 -2
  92. package/resources/shared-utils/AduioLike.ts +108 -0
  93. package/resources/typings/VreoUnit.ts +28 -1
  94. package/stylesheets/default.css +30 -5
@@ -1,4 +1,4 @@
1
- import { Mode, MovePanoOptions, Pose } from '@realsee/five'
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
@@ -2,8 +2,8 @@
2
2
  position: fixed;
3
3
  top: 0;
4
4
  left: 0;
5
- width: 100vw;
6
- height: 100vh;
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: 100vw;
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
- transform: translate(-50%, -50%);
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: 960px) {
610
+ @media only screen and (min-width: 1080px) {
586
611
  .vreo-PopUp-inner {
587
612
  width: 678px;
588
613
  height: 620px;