@realsee/vreo 2.4.2 → 2.4.5

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 (40) hide show
  1. package/lib/PlayController/createHTMLAudioElement.js +11 -9
  2. package/lib/PlayController/index.js +61 -52
  3. package/lib/Player/App.js +1 -1
  4. package/lib/Player/Controller.js +28 -23
  5. package/lib/Player/custom/SpatialScenePanel/index.js +10 -10
  6. package/lib/Player/index.js +94 -90
  7. package/lib/Player/modules/Drawer/index.js +1 -1
  8. package/lib/Player/modules/PopUp/index.js +1 -1
  9. package/lib/Player/modules/VideoAgent/VideoAgentMesh.js +143 -134
  10. package/lib/Player/modules/VideoAgent/VideoAgentScene.js +2 -2
  11. package/lib/Player/modules/VideoAgent/index.js +2 -2
  12. package/lib/Player/modules/Wave/index.js +1 -1
  13. package/lib/Player/modules/keyframes/BgMusic/index.js +41 -39
  14. package/lib/Player/modules/keyframes/CameraMovement/index.js +43 -41
  15. package/lib/Player/modules/keyframes/InfoPanel/index.js +6 -6
  16. package/lib/Player/modules/keyframes/ModelVideo/index.js +53 -51
  17. package/lib/Player/modules/keyframes/PanoEffect/index.js +1 -1
  18. package/lib/Player/modules/keyframes/PanoEffect/lineAnime.js +1 -1
  19. package/lib/Player/modules/keyframes/PanoTag/index.js +2 -2
  20. package/lib/Player/modules/keyframes/PanoTextLabel/index.js +3 -3
  21. package/lib/Player/modules/keyframes/Prompter/index.js +1 -1
  22. package/lib/Player/modules/keyframes/UpdateVRPanorama/index.js +5 -5
  23. package/lib/Player/modules/keyframes/VideoEffect/index.js +44 -42
  24. package/lib/Player/typings.d.ts +1 -4
  25. package/lib/fivePlugins/CSS3DRenderPlugin/index.js +7 -7
  26. package/lib/fivePlugins/CameraMovementPlugin/index.js +171 -167
  27. package/lib/fivePlugins/CameraMovementPlugin/typings.js +6 -6
  28. package/lib/fivePlugins/ModelTVVideoPlugin/index.js +30 -28
  29. package/lib/react/index.d.ts +1 -1
  30. package/lib/react/index.js +2 -2
  31. package/lib/shared-utils/Audio.d.ts +8 -0
  32. package/lib/shared-utils/Audio.js +62 -46
  33. package/lib/shared-utils/AudioLike.js +13 -10
  34. package/lib/shared-utils/animationFrame/BetterTween.d.ts +4 -2
  35. package/lib/shared-utils/animationFrame/BetterTween.js +19 -15
  36. package/lib/shared-utils/animationFrame/tween.d.ts +4 -2
  37. package/lib/shared-utils/animationFrame/tween.js +12 -1
  38. package/lib/shared-utils/createTransMatrix.js +1 -1
  39. package/lib/typings/VreoUnit.js +26 -69
  40. package/package.json +20 -24
@@ -4,58 +4,24 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.VreoKeyframeEnum = exports.PanoTagStyleEnum = exports.PanoTagEnum = exports.PanoEffectEnum = exports.InfoPanelTypeEnum = exports.InfoPanelStyleEnum = void 0;
7
- var VreoKeyframeEnum = exports.VreoKeyframeEnum = /*#__PURE__*/function (VreoKeyframeEnum) {
8
- /** 运镜 */
7
+ var VreoKeyframeEnum;
8
+ /**
9
+ * 支持自定义剧本关键帧配置项
10
+ */
11
+ (function (VreoKeyframeEnum) {
9
12
  VreoKeyframeEnum["CameraMovement"] = "CameraMovement";
10
- /**
11
- * 全景标签
12
- */
13
13
  VreoKeyframeEnum["PanoTag"] = "PanoTag";
14
- /**
15
- * 全景文本标签
16
- */
17
14
  VreoKeyframeEnum["PanoTextLabel"] = "PanoTextLabel";
18
- /**
19
- * 提词器
20
- */
21
15
  VreoKeyframeEnum["Prompter"] = "Prompter";
22
- /**
23
- * 更新 VR 全景
24
- */
25
16
  VreoKeyframeEnum["UpdateVRPanorama"] = "UpdateVRPanorama";
26
- /**
27
- * 视频广告
28
- */
29
17
  VreoKeyframeEnum["ModelVideo"] = "ModelVideo";
30
- /**
31
- * 全景特效
32
- */
33
18
  VreoKeyframeEnum["PanoEffect"] = "PanoEffect";
34
- /**
35
- * 信息面板
36
- */
37
19
  VreoKeyframeEnum["InfoPanel"] = "InfoPanel";
38
- /**
39
- * 视频特效
40
- */
41
20
  VreoKeyframeEnum["VideoEffect"] = "VideoEffect";
42
- /**
43
- * 背景音乐
44
- */
45
21
  VreoKeyframeEnum["BgMusic"] = "BgMusic";
46
- /**
47
- * 结束
48
- */
49
22
  VreoKeyframeEnum["Exit"] = "Exit";
50
- /**
51
- * 自定义剧本帧
52
- */
53
23
  VreoKeyframeEnum["Custom"] = "Custom";
54
- return VreoKeyframeEnum;
55
- }({});
56
- /**
57
- * 支持自定义剧本关键帧配置项
58
- */
24
+ })(VreoKeyframeEnum || (exports.VreoKeyframeEnum = VreoKeyframeEnum = {}));
59
25
  /**
60
26
  * 剧本关键帧
61
27
  */
@@ -98,54 +64,45 @@ var VreoKeyframeEnum = exports.VreoKeyframeEnum = /*#__PURE__*/function (VreoKey
98
64
  /**
99
65
  * 全景标签枚举
100
66
  */
101
- var PanoTagEnum = exports.PanoTagEnum = /*#__PURE__*/function (PanoTagEnum) {
102
- PanoTagEnum["Text"] = "Text";
103
- PanoTagEnum["Image"] = "Image";
104
- return PanoTagEnum;
105
- }({});
67
+ var PanoTagEnum;
106
68
  /**
107
69
  * 标签样式种类
108
70
  */
109
- var PanoTagStyleEnum = exports.PanoTagStyleEnum = /*#__PURE__*/function (PanoTagStyleEnum) {
110
- /**
111
- * 生长动画:默认值
112
- */
71
+ (function (PanoTagEnum) {
72
+ PanoTagEnum["Text"] = "Text";
73
+ PanoTagEnum["Image"] = "Image";
74
+ })(PanoTagEnum || (exports.PanoTagEnum = PanoTagEnum = {}));
75
+ var PanoTagStyleEnum;
76
+ (function (PanoTagStyleEnum) {
113
77
  PanoTagStyleEnum["Growth"] = "Growth";
114
- /**
115
- * 展开动画
116
- */
117
78
  PanoTagStyleEnum["Expand"] = "Expand";
118
- return PanoTagStyleEnum;
119
- }({});
79
+ })(PanoTagStyleEnum || (exports.PanoTagStyleEnum = PanoTagStyleEnum = {}));
120
80
  /**
121
81
  * 全景特效枚举
122
82
  */
123
- var PanoEffectEnum = exports.PanoEffectEnum = /*#__PURE__*/function (PanoEffectEnum) {
124
- /**
125
- * 两点距离
126
- */
127
- PanoEffectEnum["Distance"] = "Distance";
128
- return PanoEffectEnum;
129
- }({});
83
+ var PanoEffectEnum;
130
84
  /**
131
85
  * 全景特效
132
86
  */
87
+ (function (PanoEffectEnum) {
88
+ PanoEffectEnum["Distance"] = "Distance";
89
+ })(PanoEffectEnum || (exports.PanoEffectEnum = PanoEffectEnum = {}));
133
90
  /**
134
91
  * 信息面板类型枚举
135
92
  */
136
- var InfoPanelTypeEnum = exports.InfoPanelTypeEnum = /*#__PURE__*/function (InfoPanelTypeEnum) {
93
+ var InfoPanelTypeEnum;
94
+ (function (InfoPanelTypeEnum) {
137
95
  InfoPanelTypeEnum["Image"] = "Image";
138
96
  InfoPanelTypeEnum["Video"] = "Video";
139
- return InfoPanelTypeEnum;
140
- }({});
141
- var InfoPanelStyleEnum = exports.InfoPanelStyleEnum = /*#__PURE__*/function (InfoPanelStyleEnum) {
142
- InfoPanelStyleEnum["Drawer"] = "Drawer";
143
- InfoPanelStyleEnum["PopUp"] = "PopUp";
144
- return InfoPanelStyleEnum;
145
- }({});
97
+ })(InfoPanelTypeEnum || (exports.InfoPanelTypeEnum = InfoPanelTypeEnum = {}));
98
+ var InfoPanelStyleEnum;
146
99
  /**
147
100
  * 信息面板
148
101
  */
102
+ (function (InfoPanelStyleEnum) {
103
+ InfoPanelStyleEnum["Drawer"] = "Drawer";
104
+ InfoPanelStyleEnum["PopUp"] = "PopUp";
105
+ })(InfoPanelStyleEnum || (exports.InfoPanelStyleEnum = InfoPanelStyleEnum = {}));
149
106
  /**
150
107
  * 视频特效
151
108
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/vreo",
3
- "version": "2.4.2",
3
+ "version": "2.4.5",
4
4
  "description": "Vreo (VR Video 缩写) 是基于如视三维渲染引擎 Five 和 用户界面构建库 React 实现的如视 3D 空间剧本播放器。",
5
5
  "keywords": [
6
6
  "realsee",
@@ -10,10 +10,6 @@
10
10
  "author": "BEIKE REALSEE TECHNOLOGY (HK) LIMITED",
11
11
  "license": "MIT",
12
12
  "private": false,
13
- "engines": {
14
- "node": ">=22.0.0",
15
- "npm": ">=10.0.0"
16
- },
17
13
  "files": [
18
14
  "lib",
19
15
  "stylesheets",
@@ -29,41 +25,41 @@
29
25
  "postpublish": "cnpm sync @realsee/vreo"
30
26
  },
31
27
  "peerDependencies": {
32
- "@realsee/dnalogel": "^3.67.0",
33
- "@realsee/five": "^6.4.0-alpha.36",
34
- "react": "^18",
35
- "react-dom": "^18",
36
- "three": "0.117.1"
28
+ "@realsee/five": "^5.0.0",
29
+ "@realsee/dnalogel": "^2.3.3",
30
+ "three": ">=0.115.0 <=0.117.1",
31
+ "react": "^17.0.0",
32
+ "react-dom": "^17.0.0"
37
33
  },
38
34
  "devDependencies": {
39
35
  "@babel/cli": "^7.16.0",
40
36
  "@babel/core": "^7.16.0",
41
- "@babel/plugin-transform-runtime": "7.24.3",
42
37
  "@babel/preset-env": "^7.16.4",
43
38
  "@babel/preset-react": "^7.16.0",
44
39
  "@babel/preset-typescript": "^7.16.0",
45
- "@realsee/dnalogel": "^3.67.1",
46
- "@realsee/five": "^6.4.0-alpha.36",
47
- "@types/node": "^22.0.0",
40
+ "@babel/plugin-transform-runtime": "7.24.3",
41
+ "@realsee/dnalogel": "^2.19.3",
42
+ "@realsee/five": "5.0.0-alpha.149",
43
+ "@tweenjs/tween.js": "18.6.4",
44
+ "@types/node": "^18.11.17",
48
45
  "@types/offscreencanvas": "^2019.6.4",
49
- "@types/react": "^18",
50
- "@types/react-dom": "^18",
46
+ "@types/react": "^17.0.37",
47
+ "@types/react-dom": "^17.0.11",
51
48
  "@types/react-transition-group": "^4.4.4",
52
49
  "@vitejs/plugin-react": "^1.1.0",
53
50
  "cnpm": "^9.2.0",
54
51
  "del": "^6.0.0",
55
- "react": "^18",
56
- "react-dom": "^18",
57
- "three": "0.117.1",
58
- "typedoc": "^0.25.0",
59
- "typescript": "^5.3.0",
52
+ "react": "^16.0.0",
53
+ "react-dom": "^16.0.0",
54
+ "three": "^0.117.1",
55
+ "typedoc": "^0.22.10",
56
+ "typescript": "4.7.4",
60
57
  "vite": "^2.6.14"
61
58
  },
62
59
  "dependencies": {
63
- "@babel/runtime": "^7.16.0",
64
- "@tweenjs/tween.js": "18.6.4",
65
60
  "classnames": "^2.3.1",
66
61
  "mobx": "^6.3.7",
67
62
  "mobx-react": "^7.2.1"
68
- }
63
+ },
64
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
69
65
  }