@realsee/vreo 1.0.0-alpha.19 → 1.0.0-alpha.20
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/Player/modules/keyframes/BgMusic/index.js +2 -4
- package/package.json +1 -3
- package/docs/.nojekyll +0 -1
- package/docs/assets/custom.css +0 -78
- package/docs/assets/highlight.css +0 -127
- package/docs/assets/icons.css +0 -1043
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/main.js +0 -52
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1414
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/classes/Player.AudioLike.html +0 -52
- package/docs/classes/Player.Controller.html +0 -54
- package/docs/classes/Player.Player-1.html +0 -50
- package/docs/classes/Player.VideoAgentMesh.html +0 -142
- package/docs/classes/Player.VideoAgentScene.html +0 -1
- package/docs/demo/assets/AppReact.20163f9a.js +0 -1
- package/docs/demo/assets/default.17872c62.css +0 -1
- package/docs/demo/assets/default.5069891b.js +0 -3988
- package/docs/demo/assets/dynamic.c8118cc9.js +0 -1
- package/docs/demo/assets/examples.5391fc1f.js +0 -25
- package/docs/demo/assets/examples.dac4a6fe.css +0 -1
- package/docs/demo/assets/index.2272a9ef.js +0 -1
- package/docs/demo/assets/index.9331038f.css +0 -1
- package/docs/demo/assets/main.b335b989.js +0 -1
- package/docs/demo/assets/react.2ee8565f.css +0 -1
- package/docs/demo/assets/react.efea3f3f.js +0 -25
- package/docs/demo/assets/znRoyv06SZQeqA7m.0057e8ae.js +0 -1
- package/docs/demo/examples.html +0 -17
- package/docs/demo/index-react-dynamic.html +0 -20
- package/docs/demo/index-react.html +0 -20
- package/docs/demo/index.html +0 -19
- package/docs/enums/Player.InfoPanelStyleEnum.html +0 -1
- package/docs/enums/Player.InfoPanelTypeEnum.html +0 -3
- package/docs/enums/Player.PanoEffectEnum.html +0 -5
- package/docs/enums/Player.PanoTagEnum.html +0 -3
- package/docs/enums/Player.PanoTagStyleEnum.html +0 -7
- package/docs/enums/Player.VreoKeyframeEnum.html +0 -25
- package/docs/enums/fivePlugins.CameraMovementEffect.html +0 -1
- package/docs/enums/fivePlugins.Rotation.html +0 -1
- package/docs/index.html +0 -248
- package/docs/interfaces/Player.CustomVreoKeyframeProps.html +0 -1
- package/docs/interfaces/Player.PlayerConfigs.html +0 -7
- package/docs/interfaces/Player.Vertex.html +0 -3
- package/docs/interfaces/Player.VideoAgentMeshOptions.html +0 -8
- package/docs/interfaces/Player.VreoKeyframe.html +0 -3
- package/docs/interfaces/Player.VreoUnit.html +0 -3
- package/docs/interfaces/Player.VreoVideo.html +0 -3
- package/docs/interfaces/fivePlugins.CSS3DRenderPluginExportType.html +0 -4
- package/docs/interfaces/fivePlugins.CameraMovementOptsCallback.html +0 -1
- package/docs/interfaces/fivePlugins.CameraMovementPluginExportType.html +0 -7
- package/docs/interfaces/fivePlugins.CameraMovementPluginParameterType.html +0 -1
- package/docs/interfaces/fivePlugins.ModelTVVideoPluginData.html +0 -1
- package/docs/interfaces/fivePlugins.ModelTVVideoPluginExportType.html +0 -1
- package/docs/interfaces/fivePlugins.ModelTVVideoPluginParameterType.html +0 -1
- package/docs/interfaces/fivePlugins.Vector3Position.html +0 -3
- package/docs/interfaces/react.VreoActionCallbacks.html +0 -23
- package/docs/interfaces/react.VreoProviderProps.html +0 -1
- package/docs/modules/Player.html +0 -37
- package/docs/modules/custom.html +0 -3
- package/docs/modules/fivePlugins.html +0 -6
- package/docs/modules/react.html +0 -1
- package/docs/modules.html +0 -1
- package/resources/PlayController/createHTMLAudioElement.ts +0 -53
- package/resources/PlayController/index.ts +0 -154
- package/resources/Player/App.tsx +0 -66
- package/resources/Player/Controller.ts +0 -295
- package/resources/Player/custom/SpatialScenePanel/index.tsx +0 -264
- package/resources/Player/hooks.ts +0 -26
- package/resources/Player/index.tsx +0 -227
- package/resources/Player/modules/Drawer/index.tsx +0 -40
- package/resources/Player/modules/PopUp/index.tsx +0 -26
- package/resources/Player/modules/ResizeObserver/index.tsx +0 -23
- package/resources/Player/modules/VideoAgent/VideoAgentMesh.ts +0 -302
- package/resources/Player/modules/VideoAgent/VideoAgentScene.ts +0 -56
- package/resources/Player/modules/VideoAgent/index.tsx +0 -53
- package/resources/Player/modules/Wave/index.tsx +0 -150
- package/resources/Player/modules/keyframes/BgMusic/index.tsx +0 -75
- package/resources/Player/modules/keyframes/CameraMovement/index.tsx +0 -37
- package/resources/Player/modules/keyframes/InfoPanel/index.tsx +0 -165
- package/resources/Player/modules/keyframes/ModelVideo/index.tsx +0 -77
- package/resources/Player/modules/keyframes/PanoEffect/index.tsx +0 -99
- package/resources/Player/modules/keyframes/PanoEffect/lineAnime.ts +0 -31
- package/resources/Player/modules/keyframes/PanoTag/index.tsx +0 -83
- package/resources/Player/modules/keyframes/PanoTextLabel/index.tsx +0 -117
- package/resources/Player/modules/keyframes/Prompter/index.tsx +0 -56
- package/resources/Player/modules/keyframes/UpdateVRPanorama/index.tsx +0 -99
- package/resources/Player/modules/keyframes/VideoEffect/index.tsx +0 -115
- package/resources/Player/typings.ts +0 -49
- package/resources/fivePlugins/CSS3DRenderPlugin/centerPoint.ts +0 -5
- package/resources/fivePlugins/CSS3DRenderPlugin/createResizeObserver.ts +0 -17
- package/resources/fivePlugins/CSS3DRenderPlugin/evenNumber.ts +0 -4
- package/resources/fivePlugins/CSS3DRenderPlugin/index.ts +0 -254
- package/resources/fivePlugins/CSS3DRenderPlugin/transformPositionToVector3.ts +0 -5
- package/resources/fivePlugins/CameraMovementPlugin/index.ts +0 -226
- package/resources/fivePlugins/CameraMovementPlugin/typings.ts +0 -59
- package/resources/fivePlugins/ModelTVVideoPlugin/index.ts +0 -278
- package/resources/index.ts +0 -1
- package/resources/react/index.tsx +0 -121
- package/resources/shared-utils/AudioLike.ts +0 -107
- package/resources/shared-utils/Preloader.ts +0 -35
- package/resources/shared-utils/addResizeListener.ts +0 -46
- package/resources/shared-utils/animationFrame/BetterTween.ts +0 -33
- package/resources/shared-utils/animationFrame/index.ts +0 -48
- package/resources/shared-utils/animationFrame/tween.ts +0 -51
- package/resources/shared-utils/createTransMatrix.ts +0 -12
- package/resources/shared-utils/getFileExpandedName.ts +0 -6
- package/resources/shared-utils/getMediaInfo.ts +0 -52
- package/resources/shared-utils/setElementDataset.ts +0 -18
- package/resources/typings/VreoUnit.ts +0 -314
|
@@ -25,7 +25,7 @@ function getAudio() {
|
|
|
25
25
|
|
|
26
26
|
var audio = function () {
|
|
27
27
|
var audio = audioList.find(function (audio) {
|
|
28
|
-
return audio.src === src;
|
|
28
|
+
return audio.src === src && audio.paused;
|
|
29
29
|
});
|
|
30
30
|
if (audio) return audio;else {
|
|
31
31
|
var newAudio = new Audio(src);
|
|
@@ -36,7 +36,6 @@ function getAudio() {
|
|
|
36
36
|
|
|
37
37
|
audio.currentTime = currentTime;
|
|
38
38
|
audio.setAttribute('playsinline', 'true');
|
|
39
|
-
audio.loop = true;
|
|
40
39
|
return audio;
|
|
41
40
|
}
|
|
42
41
|
|
|
@@ -67,10 +66,9 @@ function BgMusic() {
|
|
|
67
66
|
|
|
68
67
|
var cleanAudio = function cleanAudio() {
|
|
69
68
|
console.log('cleanAudio', keyframe.start);
|
|
69
|
+
audio.removeEventListener('canplaythrough', playCallback);
|
|
70
70
|
audio.pause();
|
|
71
|
-
audio.src = '';
|
|
72
71
|
cleanTimeout();
|
|
73
|
-
audio.removeEventListener('canplaythrough', playCallback);
|
|
74
72
|
};
|
|
75
73
|
|
|
76
74
|
var duration = end - start;
|
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.20",
|
|
4
4
|
"description": "Vreo (VR Video 缩写) 是基于如视三维渲染引擎 Five 和 用户界面构建库 React 实现的如视 3D 空间剧本播放器。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"realsee",
|
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
"private": false,
|
|
13
13
|
"files": [
|
|
14
14
|
"lib",
|
|
15
|
-
"resources",
|
|
16
|
-
"docs",
|
|
17
15
|
"stylesheets",
|
|
18
16
|
"LICENSE",
|
|
19
17
|
"CHANGELOG.md"
|
package/docs/.nojekyll
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
package/docs/assets/custom.css
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
|
|
3
|
-
font-size: 16px;
|
|
4
|
-
color: #2e2e2e;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
blockquote {
|
|
8
|
-
color: #7f8fa4;
|
|
9
|
-
padding: 8px 12px;
|
|
10
|
-
margin: 16px 0;
|
|
11
|
-
border-left: 3px solid #eaeaea;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
blockquote p {
|
|
15
|
-
color: #7f8fa4 !important;
|
|
16
|
-
font-size: inherit;
|
|
17
|
-
line-height: 1.5;
|
|
18
|
-
margin: 0 !important;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.tsd-typography {
|
|
22
|
-
font-size: 16px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.tsd-typography h4 {
|
|
26
|
-
line-height: 2;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.hljs {
|
|
30
|
-
background-color: transparent;
|
|
31
|
-
font-family: monospace;
|
|
32
|
-
font-size: 0.85rem;
|
|
33
|
-
}
|
|
34
|
-
code {
|
|
35
|
-
font-size: 14px;
|
|
36
|
-
background-color: rgb(96 125 139 / 10%);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
pre {
|
|
40
|
-
background-color: rgb(205 220 57 / 8%);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
p {
|
|
44
|
-
line-height: 1.5;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
a {
|
|
48
|
-
color: #3832cf;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
a:hover {
|
|
52
|
-
color: darkred;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
body.dark {
|
|
56
|
-
color: #e9e9e9;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.dark a {
|
|
60
|
-
color: var(--color-link);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.dark a:hover {
|
|
64
|
-
color: #ed8e9f;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
@media (prefers-color-scheme: dark) {
|
|
68
|
-
body {
|
|
69
|
-
color: #e9e9e9;
|
|
70
|
-
}
|
|
71
|
-
a {
|
|
72
|
-
color: var(--color-link);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
a:hover {
|
|
76
|
-
color: #ed8e9f;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--light-hl-0: #008000;
|
|
3
|
-
--dark-hl-0: #6A9955;
|
|
4
|
-
--light-hl-1: #000000;
|
|
5
|
-
--dark-hl-1: #D4D4D4;
|
|
6
|
-
--light-hl-2: #AF00DB;
|
|
7
|
-
--dark-hl-2: #C586C0;
|
|
8
|
-
--light-hl-3: #A31515;
|
|
9
|
-
--dark-hl-3: #CE9178;
|
|
10
|
-
--light-hl-4: #0000FF;
|
|
11
|
-
--dark-hl-4: #569CD6;
|
|
12
|
-
--light-hl-5: #001080;
|
|
13
|
-
--dark-hl-5: #9CDCFE;
|
|
14
|
-
--light-hl-6: #0070C1;
|
|
15
|
-
--dark-hl-6: #4FC1FF;
|
|
16
|
-
--light-hl-7: #795E26;
|
|
17
|
-
--dark-hl-7: #DCDCAA;
|
|
18
|
-
--light-hl-8: #267F99;
|
|
19
|
-
--dark-hl-8: #4EC9B0;
|
|
20
|
-
--light-hl-9: #800000;
|
|
21
|
-
--dark-hl-9: #808080;
|
|
22
|
-
--light-hl-10: #800000;
|
|
23
|
-
--dark-hl-10: #569CD6;
|
|
24
|
-
--light-hl-11: #FF0000;
|
|
25
|
-
--dark-hl-11: #9CDCFE;
|
|
26
|
-
--light-hl-12: #000000FF;
|
|
27
|
-
--dark-hl-12: #D4D4D4;
|
|
28
|
-
--light-hl-13: #0451A5;
|
|
29
|
-
--dark-hl-13: #9CDCFE;
|
|
30
|
-
--light-hl-14: #098658;
|
|
31
|
-
--dark-hl-14: #B5CEA8;
|
|
32
|
-
--light-code-background: #F5F5F5;
|
|
33
|
-
--dark-code-background: #1E1E1E;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@media (prefers-color-scheme: light) { :root {
|
|
37
|
-
--hl-0: var(--light-hl-0);
|
|
38
|
-
--hl-1: var(--light-hl-1);
|
|
39
|
-
--hl-2: var(--light-hl-2);
|
|
40
|
-
--hl-3: var(--light-hl-3);
|
|
41
|
-
--hl-4: var(--light-hl-4);
|
|
42
|
-
--hl-5: var(--light-hl-5);
|
|
43
|
-
--hl-6: var(--light-hl-6);
|
|
44
|
-
--hl-7: var(--light-hl-7);
|
|
45
|
-
--hl-8: var(--light-hl-8);
|
|
46
|
-
--hl-9: var(--light-hl-9);
|
|
47
|
-
--hl-10: var(--light-hl-10);
|
|
48
|
-
--hl-11: var(--light-hl-11);
|
|
49
|
-
--hl-12: var(--light-hl-12);
|
|
50
|
-
--hl-13: var(--light-hl-13);
|
|
51
|
-
--hl-14: var(--light-hl-14);
|
|
52
|
-
--code-background: var(--light-code-background);
|
|
53
|
-
} }
|
|
54
|
-
|
|
55
|
-
@media (prefers-color-scheme: dark) { :root {
|
|
56
|
-
--hl-0: var(--dark-hl-0);
|
|
57
|
-
--hl-1: var(--dark-hl-1);
|
|
58
|
-
--hl-2: var(--dark-hl-2);
|
|
59
|
-
--hl-3: var(--dark-hl-3);
|
|
60
|
-
--hl-4: var(--dark-hl-4);
|
|
61
|
-
--hl-5: var(--dark-hl-5);
|
|
62
|
-
--hl-6: var(--dark-hl-6);
|
|
63
|
-
--hl-7: var(--dark-hl-7);
|
|
64
|
-
--hl-8: var(--dark-hl-8);
|
|
65
|
-
--hl-9: var(--dark-hl-9);
|
|
66
|
-
--hl-10: var(--dark-hl-10);
|
|
67
|
-
--hl-11: var(--dark-hl-11);
|
|
68
|
-
--hl-12: var(--dark-hl-12);
|
|
69
|
-
--hl-13: var(--dark-hl-13);
|
|
70
|
-
--hl-14: var(--dark-hl-14);
|
|
71
|
-
--code-background: var(--dark-code-background);
|
|
72
|
-
} }
|
|
73
|
-
|
|
74
|
-
body.light {
|
|
75
|
-
--hl-0: var(--light-hl-0);
|
|
76
|
-
--hl-1: var(--light-hl-1);
|
|
77
|
-
--hl-2: var(--light-hl-2);
|
|
78
|
-
--hl-3: var(--light-hl-3);
|
|
79
|
-
--hl-4: var(--light-hl-4);
|
|
80
|
-
--hl-5: var(--light-hl-5);
|
|
81
|
-
--hl-6: var(--light-hl-6);
|
|
82
|
-
--hl-7: var(--light-hl-7);
|
|
83
|
-
--hl-8: var(--light-hl-8);
|
|
84
|
-
--hl-9: var(--light-hl-9);
|
|
85
|
-
--hl-10: var(--light-hl-10);
|
|
86
|
-
--hl-11: var(--light-hl-11);
|
|
87
|
-
--hl-12: var(--light-hl-12);
|
|
88
|
-
--hl-13: var(--light-hl-13);
|
|
89
|
-
--hl-14: var(--light-hl-14);
|
|
90
|
-
--code-background: var(--light-code-background);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
body.dark {
|
|
94
|
-
--hl-0: var(--dark-hl-0);
|
|
95
|
-
--hl-1: var(--dark-hl-1);
|
|
96
|
-
--hl-2: var(--dark-hl-2);
|
|
97
|
-
--hl-3: var(--dark-hl-3);
|
|
98
|
-
--hl-4: var(--dark-hl-4);
|
|
99
|
-
--hl-5: var(--dark-hl-5);
|
|
100
|
-
--hl-6: var(--dark-hl-6);
|
|
101
|
-
--hl-7: var(--dark-hl-7);
|
|
102
|
-
--hl-8: var(--dark-hl-8);
|
|
103
|
-
--hl-9: var(--dark-hl-9);
|
|
104
|
-
--hl-10: var(--dark-hl-10);
|
|
105
|
-
--hl-11: var(--dark-hl-11);
|
|
106
|
-
--hl-12: var(--dark-hl-12);
|
|
107
|
-
--hl-13: var(--dark-hl-13);
|
|
108
|
-
--hl-14: var(--dark-hl-14);
|
|
109
|
-
--code-background: var(--dark-code-background);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.hl-0 { color: var(--hl-0); }
|
|
113
|
-
.hl-1 { color: var(--hl-1); }
|
|
114
|
-
.hl-2 { color: var(--hl-2); }
|
|
115
|
-
.hl-3 { color: var(--hl-3); }
|
|
116
|
-
.hl-4 { color: var(--hl-4); }
|
|
117
|
-
.hl-5 { color: var(--hl-5); }
|
|
118
|
-
.hl-6 { color: var(--hl-6); }
|
|
119
|
-
.hl-7 { color: var(--hl-7); }
|
|
120
|
-
.hl-8 { color: var(--hl-8); }
|
|
121
|
-
.hl-9 { color: var(--hl-9); }
|
|
122
|
-
.hl-10 { color: var(--hl-10); }
|
|
123
|
-
.hl-11 { color: var(--hl-11); }
|
|
124
|
-
.hl-12 { color: var(--hl-12); }
|
|
125
|
-
.hl-13 { color: var(--hl-13); }
|
|
126
|
-
.hl-14 { color: var(--hl-14); }
|
|
127
|
-
pre, code { background: var(--code-background); }
|