@realsee/vreo 1.0.0-alpha.5 → 1.0.0-alpha.6
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/lib/PlayController/createHTMLAudioElement.js +6 -11
- package/lib/PlayController/index.js +15 -80
- package/lib/Player/App.js +0 -24
- package/lib/Player/Controller.js +17 -93
- package/lib/Player/custom/SpatialScenePanel/index.js +42 -68
- package/lib/Player/hooks.js +0 -10
- package/lib/Player/index.js +24 -84
- package/lib/Player/modules/Drawer/index.js +0 -17
- package/lib/Player/modules/PopUp/index.js +0 -10
- package/lib/Player/modules/ResizeObserver/index.js +0 -8
- package/lib/Player/modules/VideoAgent/VideoAgentMesh.js +17 -111
- package/lib/Player/modules/VideoAgent/VideoAgentScene.js +2 -24
- package/lib/Player/modules/VideoAgent/index.js +0 -17
- package/lib/Player/modules/Wave/index.js +0 -11
- package/lib/Player/modules/keyframes/BgMusic/index.js +2 -15
- package/lib/Player/modules/keyframes/CameraMovement/index.js +3 -27
- package/lib/Player/modules/keyframes/InfoPanel/index.js +8 -25
- package/lib/Player/modules/keyframes/ModelVideo/index.js +3 -29
- package/lib/Player/modules/keyframes/PanoEffect/index.js +15 -43
- package/lib/Player/modules/keyframes/PanoEffect/lineAnime.js +0 -7
- package/lib/Player/modules/keyframes/PanoTag/index.js +6 -22
- package/lib/Player/modules/keyframes/PanoTextLabel/index.js +22 -47
- package/lib/Player/modules/keyframes/Prompter/index.js +10 -32
- package/lib/Player/modules/keyframes/UpdateVRPanorama/index.js +18 -25
- package/lib/Player/modules/keyframes/VideoEffect/index.js +12 -47
- package/lib/fivePlugins/CSS3DRenderPlugin/centerPoint.js +0 -2
- package/lib/fivePlugins/CSS3DRenderPlugin/createResizeObserver.js +0 -1
- package/lib/fivePlugins/CSS3DRenderPlugin/evenNumber.js +0 -1
- package/lib/fivePlugins/CSS3DRenderPlugin/index.js +19 -60
- package/lib/fivePlugins/CSS3DRenderPlugin/transformPositionToVector3.js +2 -5
- package/lib/fivePlugins/CameraMovementPlugin/index.js +28 -75
- package/lib/fivePlugins/CameraMovementPlugin/typings.js +0 -4
- package/lib/fivePlugins/ModelTVVideoPlugin/index.js +11 -60
- package/lib/index.js +0 -1
- package/lib/react/index.js +7 -34
- package/lib/shared-utils/AduioLike.js +5 -39
- package/lib/shared-utils/Preloader.js +0 -7
- package/lib/shared-utils/addResizeListener.js +0 -5
- package/lib/shared-utils/animationFrame/BetterTween.js +2 -38
- package/lib/shared-utils/animationFrame/index.js +2 -10
- package/lib/shared-utils/animationFrame/tween.js +2 -15
- package/lib/shared-utils/createTransMatrix.js +2 -17
- package/lib/shared-utils/getFileExpandedName.js +0 -1
- package/lib/shared-utils/getMediaInfo.js +0 -9
- package/lib/shared-utils/setElementDataset.js +0 -2
- package/lib/typings/VreoUnit.js +0 -15
- package/package.json +2 -2
|
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = setElementDataset;
|
|
7
|
-
|
|
8
7
|
function setElementDataset(element, dataset) {
|
|
9
8
|
if (element) {
|
|
10
9
|
Object.keys(dataset).forEach(function (key) {
|
|
11
10
|
var value = dataset[key].toString();
|
|
12
|
-
|
|
13
11
|
if (element instanceof Element) {
|
|
14
12
|
element.setAttribute("data-".concat(key), value);
|
|
15
13
|
} else if (element instanceof Document) {
|
package/lib/typings/VreoUnit.js
CHANGED
|
@@ -8,9 +8,7 @@ var VreoKeyframeEnum;
|
|
|
8
8
|
/**
|
|
9
9
|
* 支持自定义剧本关键帧配置项
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
11
|
exports.VreoKeyframeEnum = VreoKeyframeEnum;
|
|
13
|
-
|
|
14
12
|
(function (VreoKeyframeEnum) {
|
|
15
13
|
VreoKeyframeEnum["CameraMovement"] = "CameraMovement";
|
|
16
14
|
VreoKeyframeEnum["PanoTag"] = "PanoTag";
|
|
@@ -25,7 +23,6 @@ exports.VreoKeyframeEnum = VreoKeyframeEnum;
|
|
|
25
23
|
VreoKeyframeEnum["Exit"] = "Exit";
|
|
26
24
|
VreoKeyframeEnum["Custom"] = "Custom";
|
|
27
25
|
})(VreoKeyframeEnum || (exports.VreoKeyframeEnum = VreoKeyframeEnum = {}));
|
|
28
|
-
|
|
29
26
|
/**
|
|
30
27
|
* 全景标签枚举
|
|
31
28
|
*/
|
|
@@ -33,22 +30,17 @@ var PanoTagEnum;
|
|
|
33
30
|
/**
|
|
34
31
|
* 标签样式种类
|
|
35
32
|
*/
|
|
36
|
-
|
|
37
33
|
exports.PanoTagEnum = PanoTagEnum;
|
|
38
|
-
|
|
39
34
|
(function (PanoTagEnum) {
|
|
40
35
|
PanoTagEnum["Text"] = "Text";
|
|
41
36
|
PanoTagEnum["Image"] = "Image";
|
|
42
37
|
})(PanoTagEnum || (exports.PanoTagEnum = PanoTagEnum = {}));
|
|
43
|
-
|
|
44
38
|
var PanoTagStyleEnum;
|
|
45
39
|
exports.PanoTagStyleEnum = PanoTagStyleEnum;
|
|
46
|
-
|
|
47
40
|
(function (PanoTagStyleEnum) {
|
|
48
41
|
PanoTagStyleEnum["Growth"] = "Growth";
|
|
49
42
|
PanoTagStyleEnum["Expand"] = "Expand";
|
|
50
43
|
})(PanoTagStyleEnum || (exports.PanoTagStyleEnum = PanoTagStyleEnum = {}));
|
|
51
|
-
|
|
52
44
|
/**
|
|
53
45
|
* 全景特效枚举
|
|
54
46
|
*/
|
|
@@ -56,31 +48,24 @@ var PanoEffectEnum;
|
|
|
56
48
|
/**
|
|
57
49
|
* 全景特效
|
|
58
50
|
*/
|
|
59
|
-
|
|
60
51
|
exports.PanoEffectEnum = PanoEffectEnum;
|
|
61
|
-
|
|
62
52
|
(function (PanoEffectEnum) {
|
|
63
53
|
PanoEffectEnum["Distance"] = "Distance";
|
|
64
54
|
})(PanoEffectEnum || (exports.PanoEffectEnum = PanoEffectEnum = {}));
|
|
65
|
-
|
|
66
55
|
/**
|
|
67
56
|
* 信息面板类型枚举
|
|
68
57
|
*/
|
|
69
58
|
var InfoPanelTypeEnum;
|
|
70
59
|
exports.InfoPanelTypeEnum = InfoPanelTypeEnum;
|
|
71
|
-
|
|
72
60
|
(function (InfoPanelTypeEnum) {
|
|
73
61
|
InfoPanelTypeEnum["Image"] = "Image";
|
|
74
62
|
InfoPanelTypeEnum["Video"] = "Video";
|
|
75
63
|
})(InfoPanelTypeEnum || (exports.InfoPanelTypeEnum = InfoPanelTypeEnum = {}));
|
|
76
|
-
|
|
77
64
|
var InfoPanelStyleEnum;
|
|
78
65
|
/**
|
|
79
66
|
* 信息面板
|
|
80
67
|
*/
|
|
81
|
-
|
|
82
68
|
exports.InfoPanelStyleEnum = InfoPanelStyleEnum;
|
|
83
|
-
|
|
84
69
|
(function (InfoPanelStyleEnum) {
|
|
85
70
|
InfoPanelStyleEnum["Drawer"] = "Drawer";
|
|
86
71
|
InfoPanelStyleEnum["PopUp"] = "PopUp";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@realsee/vreo",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.6",
|
|
4
4
|
"description": "Vreo (VR Video 缩写) 是基于如视三维渲染引擎 Five 和 用户界面构建库 React 实现的如视 3D 空间剧本播放器。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"realsee",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@babel/preset-env": "^7.16.4",
|
|
37
37
|
"@babel/preset-react": "^7.16.0",
|
|
38
38
|
"@babel/preset-typescript": "^7.16.0",
|
|
39
|
-
"@realsee/dnalogel": "^2.1.0-alpha.
|
|
39
|
+
"@realsee/dnalogel": "^2.1.0-alpha.18",
|
|
40
40
|
"@realsee/five": "5.0.0-alpha.149",
|
|
41
41
|
"@types/offscreencanvas": "^2019.6.4",
|
|
42
42
|
"@types/react": "^17.0.37",
|