@realsee/vreo 0.1.6 → 0.2.0-alpha.11

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 (99) hide show
  1. package/README.md +103 -16
  2. package/docs/assets/custom.css +4 -4
  3. package/docs/assets/search.js +1 -1
  4. package/docs/classes/Player.Controller.html +54 -0
  5. package/docs/classes/Player.Player-1.html +11 -11
  6. package/docs/classes/Player.VideoAgentMesh.html +142 -0
  7. package/docs/classes/Player.VideoAgentScene.html +1 -0
  8. package/docs/enums/Player.InfoPanelStyleEnum.html +1 -0
  9. package/docs/enums/Player.InfoPanelTypeEnum.html +1 -1
  10. package/docs/enums/Player.PanoEffectEnum.html +2 -2
  11. package/docs/enums/Player.PanoTagEnum.html +1 -1
  12. package/docs/enums/Player.VreoKeyframeEnum.html +14 -12
  13. package/docs/enums/fivePlugins.CameraMovementEffect.html +1 -1
  14. package/docs/enums/fivePlugins.Rotation.html +1 -1
  15. package/docs/index.html +52 -19
  16. package/docs/interfaces/Player.CustomVreoKeyframeProps.html +1 -0
  17. package/docs/interfaces/Player.PlayerConfigs.html +4 -2
  18. package/docs/interfaces/Player.Vertex.html +1 -1
  19. package/docs/interfaces/Player.VideoAgentMeshOptions.html +1 -0
  20. package/docs/interfaces/Player.VreoKeyframe.html +1 -1
  21. package/docs/interfaces/Player.VreoUnit.html +1 -1
  22. package/docs/interfaces/Player.VreoVideo.html +1 -1
  23. package/docs/interfaces/fivePlugins.CameraMovementOptsCallback.html +1 -1
  24. package/docs/interfaces/fivePlugins.CameraMovementPluginExportType.html +3 -3
  25. package/docs/interfaces/fivePlugins.CameraMovementPluginParameterType.html +1 -1
  26. package/docs/interfaces/fivePlugins.ModelTVVideoPluginData.html +1 -1
  27. package/docs/interfaces/fivePlugins.ModelTVVideoPluginExportType.html +1 -1
  28. package/docs/interfaces/fivePlugins.ModelTVVideoPluginParameterType.html +1 -1
  29. package/docs/interfaces/react.VreoActionCallbacks.html +15 -7
  30. package/docs/interfaces/react.VreoProviderProps.html +1 -0
  31. package/docs/modules/Player.html +17 -15
  32. package/docs/modules/custom.html +3 -0
  33. package/docs/modules/fivePlugins.html +2 -2
  34. package/docs/modules/react.html +1 -1
  35. package/docs/modules.html +1 -1
  36. package/lib/PlayController/createHTMLAudioElement.d.ts +1 -0
  37. package/lib/PlayController/createHTMLAudioElement.js +47 -0
  38. package/lib/PlayController/index.d.ts +38 -0
  39. package/lib/PlayController/index.js +300 -0
  40. package/lib/Player/App.js +8 -3
  41. package/lib/Player/Controller.d.ts +2 -0
  42. package/lib/Player/Controller.js +14 -0
  43. package/lib/Player/custom/SpatialScenePanel/index.d.ts +22 -0
  44. package/lib/Player/custom/SpatialScenePanel/index.js +279 -0
  45. package/lib/Player/index.d.ts +1 -1
  46. package/lib/Player/index.js +98 -11
  47. package/lib/Player/modules/Drawer/index.js +1 -1
  48. package/lib/Player/modules/PopUp/index.d.ts +2 -0
  49. package/lib/Player/modules/PopUp/index.js +43 -0
  50. package/lib/Player/modules/VideoAgent/VideoAgentMesh.d.ts +1 -0
  51. package/lib/Player/modules/VideoAgent/VideoAgentMesh.js +6 -2
  52. package/lib/Player/modules/VideoAgent/VideoAgentScene.d.ts +4 -1
  53. package/lib/Player/modules/VideoAgent/VideoAgentScene.js +21 -6
  54. package/lib/Player/modules/VideoAgent/index.d.ts +2 -0
  55. package/lib/Player/modules/VideoAgent/index.js +1 -1
  56. package/lib/Player/modules/keyframes/BgMusic/index.d.ts +2 -0
  57. package/lib/Player/modules/keyframes/BgMusic/index.js +76 -0
  58. package/lib/Player/modules/keyframes/CameraMovement/index.js +41 -5
  59. package/lib/Player/modules/keyframes/InfoPanel/index.js +105 -23
  60. package/lib/Player/modules/keyframes/ModelVideo/index.js +47 -10
  61. package/lib/Player/modules/keyframes/PanoTextLabel/index.js +4 -12
  62. package/lib/Player/modules/keyframes/Prompter/index.js +4 -18
  63. package/lib/Player/modules/keyframes/UpdateVRPanorama/index.js +71 -12
  64. package/lib/Player/typings.d.ts +19 -1
  65. package/lib/fivePlugins/CameraMovementPlugin/index.js +104 -90
  66. package/lib/fivePlugins/CameraMovementPlugin/typings.d.ts +1 -0
  67. package/lib/react/index.d.ts +10 -2
  68. package/lib/react/index.js +1 -1
  69. package/lib/shared-utils/createTransMatrix.d.ts +1 -0
  70. package/lib/shared-utils/createTransMatrix.js +43 -0
  71. package/lib/typings/VreoUnit.d.ts +47 -7
  72. package/lib/typings/VreoUnit.js +15 -6
  73. package/package.json +6 -6
  74. package/resources/PlayController/createHTMLAudioElement.ts +53 -0
  75. package/resources/PlayController/index.ts +167 -0
  76. package/resources/Player/App.tsx +6 -1
  77. package/resources/Player/Controller.ts +12 -0
  78. package/resources/Player/custom/SpatialScenePanel/index.tsx +264 -0
  79. package/resources/Player/index.tsx +56 -2
  80. package/resources/Player/modules/Drawer/index.tsx +1 -1
  81. package/resources/Player/modules/PopUp/index.tsx +26 -0
  82. package/resources/Player/modules/VideoAgent/VideoAgentMesh.ts +5 -4
  83. package/resources/Player/modules/VideoAgent/VideoAgentScene.ts +11 -2
  84. package/resources/Player/modules/VideoAgent/index.tsx +3 -2
  85. package/resources/Player/modules/keyframes/BgMusic/index.tsx +66 -0
  86. package/resources/Player/modules/keyframes/CameraMovement/index.tsx +7 -3
  87. package/resources/Player/modules/keyframes/InfoPanel/index.tsx +109 -11
  88. package/resources/Player/modules/keyframes/ModelVideo/index.tsx +38 -5
  89. package/resources/Player/modules/keyframes/PanoTextLabel/index.tsx +2 -2
  90. package/resources/Player/modules/keyframes/Prompter/index.tsx +5 -15
  91. package/resources/Player/modules/keyframes/UpdateVRPanorama/index.tsx +75 -12
  92. package/resources/Player/typings.ts +21 -1
  93. package/resources/fivePlugins/CameraMovementPlugin/index.ts +59 -48
  94. package/resources/fivePlugins/CameraMovementPlugin/typings.ts +2 -1
  95. package/resources/react/index.tsx +12 -3
  96. package/resources/shared-utils/createTransMatrix.ts +12 -0
  97. package/resources/typings/VreoUnit.ts +56 -7
  98. package/stylesheets/custom/SpatialScenePanel.css +309 -0
  99. package/stylesheets/default.css +127 -9
@@ -131,36 +131,44 @@
131
131
  width: 250px;
132
132
  font-size: 14px;
133
133
  opacity: 1;
134
- transition: opacity 0.5s;
134
+ transition: opacity 0.1s;
135
135
  }
136
+
136
137
  .vreo-prompter--audio {
137
138
  top: 72px;
138
139
  left: 64px;
139
140
  }
141
+
140
142
  .vreo-prompter-innerText {
141
143
  position: absolute;
142
144
  left: 0;
143
145
  top: 0;
144
146
  padding-right: 10px;
145
147
  }
148
+
149
+ .vreo-prompter--audio .vreo-prompter-innerText {
150
+ padding-right: 0;
151
+ text-align: center;
152
+ width: 100%;
153
+ }
146
154
  .vreo-prompter--hidden {
147
155
  opacity: 0;
148
156
  }
149
157
 
150
- .vreo-prompter-text-transition-enter-active {
158
+ /* .vreo-prompter-text-transition-enter-active {
151
159
  opacity: 0;
152
- }
160
+ } */
153
161
 
154
- .vreo-prompter-text-transition-enter-done {
162
+ /* .vreo-prompter-text-transition-enter-done {
155
163
  opacity: 1;
156
164
  transition: opacity 1000ms;
157
- }
158
-
165
+ } */
166
+ /*
159
167
  .vreo-prompter-text-transition-exit-active,
160
168
  .vreo-prompter-text-transition-exit-done {
161
169
  opacity: 0;
162
170
  transition: opacity 500ms;
163
- }
171
+ } */
164
172
 
165
173
  .VideoEffect {
166
174
  position: absolute;
@@ -485,21 +493,131 @@
485
493
  display: block;
486
494
  }
487
495
 
496
+ .vreo-infoPanelWrapper {
497
+ flex: 1;
498
+ display: flex;
499
+ justify-content: center;
500
+ align-items: center;
501
+ }
502
+
488
503
  .vreo-infoPanel {
489
504
  width: 100%;
490
505
  height: 100%;
491
506
  display: flex;
492
- justify-content: center;
507
+ align-items: center;
508
+ background-color: rgba(0, 0, 0, 0.75);
509
+ flex-direction: column;
510
+ }
511
+
512
+ .vreo-infoPanel::after {
513
+ content: '';
514
+ display: block;
515
+ width: 100%;
516
+ height: 20px;
517
+ }
518
+
519
+ .vreo-infoPanel-title {
520
+ height: 64px;
521
+ width: 100%;
522
+ color: white;
523
+ display: flex;
493
524
  align-items: center;
494
525
  }
495
526
 
527
+ .vreo-infoPanel-t1 {
528
+ font-size: 17px;
529
+ font-weight: 600;
530
+ padding-left: 26px;
531
+ }
532
+
533
+ .vreo-infoPanel-t2 {
534
+ font-size: 12px;
535
+ opacity: 0.6;
536
+ padding-right: 26px;
537
+ padding-left: 8px;
538
+ padding-top: 6px;
539
+ }
540
+
496
541
  .vreo-infoPanelImg,
497
542
  .vreo-infoPanelVideo {
543
+ flex: 1;
544
+ background-size: contain;
498
545
  width: 100%;
499
- max-width: 375px;
546
+ background-repeat: no-repeat;
547
+ background-position: center center;
500
548
  }
501
549
 
550
+ .vreo-infoPanelVideo {
551
+ max-width: 412px;
552
+ }
553
+
502
554
  .vreo-panel--hidden .vreo-panel-inner {
503
555
  opacity: 0;
504
556
  transition: opacity 0.45s;
505
557
  }
558
+
559
+ .vreo-PopUp {
560
+ position: absolute;
561
+ left: 0;
562
+ top: 0;
563
+ width: 100%;
564
+ height: 100%;
565
+ pointer-events: none;
566
+ background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7) 65%);
567
+ opacity: 0;
568
+ transition: opacity .45s;
569
+ display: flex;
570
+ justify-content: center;
571
+ align-items: center;
572
+ }
573
+
574
+ .vreo-PopUp.vreo-PopUp-visible {
575
+ opacity: 1;
576
+ pointer-events: all;
577
+ }
578
+
579
+ .vreo-PopUp-inner {
580
+ width: 339px;
581
+ height: 425px;
582
+ position: relative;
583
+ }
584
+
585
+ @media only screen and (min-width: 960px) {
586
+ .vreo-PopUp-inner {
587
+ width: 678px;
588
+ height: 620px;
589
+ position: relative;
590
+ }
591
+ .vreo-infoPanelVideo {
592
+ max-width: 100%;
593
+ }
594
+ }
595
+
596
+ .vreo-PopUp-inner .vreo-infoPanel {
597
+ background-color: initial;
598
+ justify-content: center;
599
+ }
600
+
601
+ .vreo-PopUp-inner .vreo-infoPanel-title {
602
+ position: absolute;
603
+ bottom: 32px;
604
+ left: 0;
605
+ z-index: 1;
606
+ flex-direction: column;
607
+ justify-content: end;
608
+ height: 200px;
609
+ background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
610
+ }
611
+
612
+ .vreo-PopUp-inner .vreo-infoPanel-title .vreo-infoPanel-t1 {
613
+ padding-left: 0;
614
+ font-size: 20px;
615
+ font-weight: 600;
616
+ padding-bottom: 14px;
617
+ }
618
+
619
+ .vreo-PopUp-inner .vreo-infoPanel-title .vreo-infoPanel-t2 {
620
+ padding: 0 0 24px 0;
621
+ font-size: 14px;
622
+ opacity: 0.85;
623
+ }