@realsee/vreo 0.1.6-alpha.1 → 0.1.6-alpha.2
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.
|
@@ -28,7 +28,15 @@ function UpdateVRPanorama() {
|
|
|
28
28
|
|
|
29
29
|
var _ref = keyframe.data,
|
|
30
30
|
panoIndex = _ref.panoIndex,
|
|
31
|
-
images = _ref.images
|
|
31
|
+
images = _ref.images,
|
|
32
|
+
work = _ref.work;
|
|
33
|
+
|
|
34
|
+
if (work) {
|
|
35
|
+
five.load(work);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
console.warn('not support.');
|
|
32
40
|
Object.keys(images).forEach(function (_key) {
|
|
33
41
|
var key = _key;
|
|
34
42
|
images[key] = images[key].replace(/https*:\/\//, '//');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mode, Pose, WorkCubeImage } from '@realsee/five';
|
|
1
|
+
import { Mode, Pose, WorkCubeImage, Work } from '@realsee/five';
|
|
2
2
|
import { CameraMovementEffect, Rotation } from '../fivePlugins/CameraMovementPlugin/typings';
|
|
3
3
|
export declare enum VreoKeyframeEnum {
|
|
4
4
|
/** 运镜 */
|
|
@@ -115,6 +115,7 @@ export declare type PrompterData = {
|
|
|
115
115
|
export declare type UpdateVRPanoramaData = {
|
|
116
116
|
panoIndex: number;
|
|
117
117
|
images: WorkCubeImage;
|
|
118
|
+
work?: Work;
|
|
118
119
|
};
|
|
119
120
|
/**
|
|
120
121
|
* 顶点
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@realsee/vreo",
|
|
3
|
-
"version": "0.1.6-alpha.
|
|
3
|
+
"version": "0.1.6-alpha.2",
|
|
4
4
|
"description": "Vreo (VR Video 缩写) 是基于如视三维渲染引擎 Five 和 用户界面构建库 React 实现的如视 3D 空间剧本播放器。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"realsee",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@babel/preset-env": "^7.16.4",
|
|
36
36
|
"@babel/preset-react": "^7.16.0",
|
|
37
37
|
"@babel/preset-typescript": "^7.16.0",
|
|
38
|
-
"@realsee/five": "^5.0.0-alpha.
|
|
38
|
+
"@realsee/five": "^5.0.0-alpha.91",
|
|
39
39
|
"@types/offscreencanvas": "^2019.6.4",
|
|
40
40
|
"@types/react": "^17.0.37",
|
|
41
41
|
"@types/react-dom": "^17.0.11",
|
|
@@ -9,8 +9,14 @@ export function UpdateVRPanorama() {
|
|
|
9
9
|
|
|
10
10
|
React.useEffect(() => {
|
|
11
11
|
const callback = (keyframe: VreoKeyframe) => {
|
|
12
|
-
const { panoIndex, images } = keyframe.data as UpdateVRPanoramaData
|
|
12
|
+
const { panoIndex, images, work } = keyframe.data as UpdateVRPanoramaData
|
|
13
13
|
|
|
14
|
+
if (work) {
|
|
15
|
+
five.load(work)
|
|
16
|
+
return
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
console.warn('not support.')
|
|
14
20
|
Object.keys(images).forEach((_key) => {
|
|
15
21
|
const key = _key as keyof WorkCubeImage
|
|
16
22
|
images[key] = images[key].replace(/https*:\/\//, '//')
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mode, Pose, WorkCubeImage } from '@realsee/five'
|
|
1
|
+
import { Mode, Pose, WorkCubeImage, Work } from '@realsee/five'
|
|
2
2
|
import { CameraMovementEffect, Rotation } from '../fivePlugins/CameraMovementPlugin/typings'
|
|
3
3
|
|
|
4
4
|
export enum VreoKeyframeEnum {
|
|
@@ -125,6 +125,7 @@ export type PrompterData = {
|
|
|
125
125
|
export type UpdateVRPanoramaData = {
|
|
126
126
|
panoIndex: number
|
|
127
127
|
images: WorkCubeImage
|
|
128
|
+
work?: Work
|
|
128
129
|
}
|
|
129
130
|
|
|
130
131
|
/**
|