@realsee/vreo 2.6.0 → 2.6.1-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.
- package/lib/PlayController/createHTMLAudioElement.js +1 -1
- package/lib/PlayController/index.js +8 -11
- package/lib/Player/Controller.js +4 -4
- package/lib/Player/custom/SpatialScenePanel/index.js +5 -27
- package/lib/Player/index.d.ts +1 -0
- package/lib/Player/index.js +11 -8
- package/lib/Player/modules/Drawer/index.js +2 -1
- package/lib/Player/modules/VideoAgent/VideoAgentMesh.js +7 -9
- package/lib/Player/modules/keyframes/BgMusic/index.js +1 -1
- package/lib/Player/modules/keyframes/CameraMovement/index.js +1 -1
- package/lib/Player/modules/keyframes/InfoPanel/index.js +2 -2
- package/lib/Player/modules/keyframes/ModelVideo/index.js +1 -1
- package/lib/Player/modules/keyframes/PanoTextLabel/index.js +14 -11
- package/lib/Player/modules/keyframes/VideoEffect/index.js +1 -1
- package/lib/fivePlugins/CameraMovementPlugin/index.js +3 -3
- package/lib/fivePlugins/ModelTVVideoPlugin/index.js +1 -1
- package/lib/shared-utils/Audio.js +4 -4
- package/lib/shared-utils/AudioLike.js +2 -2
- package/lib/shared-utils/animationFrame/BetterTween.js +2 -2
- package/lib/shared-utils/getMediaInfo.js +1 -0
- package/lib/typings/VreoUnit.js +1 -47
- package/lib/typings/index.d.ts +1 -0
- package/lib/typings/index.js +1 -0
- package/package.json +4 -5
|
@@ -14,7 +14,7 @@ export function createHTMLAudioElement() {
|
|
|
14
14
|
audio.src = BLANK_AUDIO;
|
|
15
15
|
|
|
16
16
|
// 触发一次播放
|
|
17
|
-
Promise.resolve(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
17
|
+
Promise.resolve( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
18
18
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
19
19
|
while (1) {
|
|
20
20
|
switch (_context.prev = _context.next) {
|
|
@@ -7,8 +7,8 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConst
|
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
9
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
|
-
function _createSuper(
|
|
11
|
-
function _isNativeReflectConstruct() {
|
|
10
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12
12
|
import { Subscribe } from '@realsee/five';
|
|
13
13
|
import { requestAnimationFrameInterval } from "../shared-utils/animationFrame/index.js";
|
|
14
14
|
import { createHTMLAudioElement } from "./createHTMLAudioElement.js";
|
|
@@ -104,8 +104,8 @@ export var PlayController = /*#__PURE__*/function (_Subscribe) {
|
|
|
104
104
|
}
|
|
105
105
|
}, {
|
|
106
106
|
key: "load",
|
|
107
|
-
value:
|
|
108
|
-
var _load = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(vreoUnit) {
|
|
107
|
+
value: function () {
|
|
108
|
+
var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(vreoUnit) {
|
|
109
109
|
var _this3 = this;
|
|
110
110
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
111
111
|
while (1) {
|
|
@@ -149,11 +149,10 @@ export var PlayController = /*#__PURE__*/function (_Subscribe) {
|
|
|
149
149
|
/**
|
|
150
150
|
* 播放
|
|
151
151
|
*/
|
|
152
|
-
)
|
|
153
152
|
}, {
|
|
154
153
|
key: "play",
|
|
155
|
-
value:
|
|
156
|
-
var _play = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
154
|
+
value: function () {
|
|
155
|
+
var _play = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
157
156
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
158
157
|
while (1) {
|
|
159
158
|
switch (_context2.prev = _context2.next) {
|
|
@@ -174,11 +173,10 @@ export var PlayController = /*#__PURE__*/function (_Subscribe) {
|
|
|
174
173
|
/**
|
|
175
174
|
* 暂停
|
|
176
175
|
*/
|
|
177
|
-
)
|
|
178
176
|
}, {
|
|
179
177
|
key: "pause",
|
|
180
|
-
value:
|
|
181
|
-
var _pause = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
178
|
+
value: function () {
|
|
179
|
+
var _pause = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
182
180
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
183
181
|
while (1) {
|
|
184
182
|
switch (_context3.prev = _context3.next) {
|
|
@@ -209,7 +207,6 @@ export var PlayController = /*#__PURE__*/function (_Subscribe) {
|
|
|
209
207
|
*
|
|
210
208
|
* @deprecated **慎重执行**
|
|
211
209
|
*/
|
|
212
|
-
)
|
|
213
210
|
}, {
|
|
214
211
|
key: "dispose",
|
|
215
212
|
value: function dispose() {
|
package/lib/Player/Controller.js
CHANGED
|
@@ -6,10 +6,10 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
-
function ownKeys(
|
|
10
|
-
function _objectSpread(
|
|
11
|
-
function _createSuper(
|
|
12
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
13
|
import { Subscribe } from '@realsee/five';
|
|
14
14
|
import { action, makeObservable, observable, reaction } from 'mobx';
|
|
15
15
|
import * as React from 'react';
|
|
@@ -1,33 +1,10 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import { createRoot } from 'react-dom/client';
|
|
4
4
|
import { Raycaster, Vector3 } from 'three';
|
|
5
5
|
import { tweenProgress } from "../../../shared-utils/animationFrame/BetterTween.js";
|
|
6
6
|
import { CSS3DRenderPlugin } from "../../../fivePlugins/CSS3DRenderPlugin/index.js";
|
|
7
|
-
import { VreoKeyframeEnum } from "../../../typings/VreoUnit.js";
|
|
8
|
-
// const mockData: SpatialScenePanelData = {
|
|
9
|
-
// customType: 'SpatialScenePanel',
|
|
10
|
-
// "stateList": [
|
|
11
|
-
// {
|
|
12
|
-
// "icon": "http://vrlab-public.ljcdn.com/release/seesay/tools/___fc42f951076607a22fd5c54f005ba553.png",
|
|
13
|
-
// "text": "窗帘关闭"
|
|
14
|
-
// },
|
|
15
|
-
// {
|
|
16
|
-
// "icon": "http://vrlab-public.ljcdn.com/release/seesay/tools/___b331e7ad732debc07250a169a3393b13.png",
|
|
17
|
-
// "text": "摄像头休眠"
|
|
18
|
-
// },
|
|
19
|
-
// {
|
|
20
|
-
// "icon": "http://vrlab-public.ljcdn.com/release/seesay/tools/___2e425a81ac0ad88232d50d4e52a9abfa.png",
|
|
21
|
-
// "text": "氛围音乐"
|
|
22
|
-
// },
|
|
23
|
-
// {
|
|
24
|
-
// "icon": "http://vrlab-public.ljcdn.com/release/seesay/tools/___bff48bb81cde37aa6a319d6f5d56e3a4.png",
|
|
25
|
-
// "text": "空调打开"
|
|
26
|
-
// }
|
|
27
|
-
// ],
|
|
28
|
-
// "temperature": "27",
|
|
29
|
-
// "title": "沉浸式回家"
|
|
30
|
-
// }
|
|
7
|
+
import { VreoKeyframeEnum } from "../../../typings/VreoUnit.js";
|
|
31
8
|
// const getSphere = (position: Vector3, color = 0xffff00) => {
|
|
32
9
|
// const geometry = new SphereGeometry(0.05, 32, 16)
|
|
33
10
|
// const material = new MeshBasicMaterial({ color })
|
|
@@ -117,12 +94,13 @@ export function SpatialScenePanel(props) {
|
|
|
117
94
|
$css3DObject: css3DObject
|
|
118
95
|
});
|
|
119
96
|
if (!container) return;
|
|
120
|
-
|
|
97
|
+
var root = createRoot(container);
|
|
98
|
+
root.render( /*#__PURE__*/React.createElement(Panel, {
|
|
121
99
|
ref: function ref(_ref3) {
|
|
122
100
|
return panelRef.current = _ref3;
|
|
123
101
|
},
|
|
124
102
|
data: data
|
|
125
|
-
})
|
|
103
|
+
}));
|
|
126
104
|
var startRotateY = -(Math.PI * 2) / 9;
|
|
127
105
|
var lastRotateY = 0;
|
|
128
106
|
tweenProgress(1000).onUpdate(function (_ref4) {
|
package/lib/Player/index.d.ts
CHANGED
package/lib/Player/index.js
CHANGED
|
@@ -6,11 +6,12 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConst
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
7
7
|
var _location$search$matc, _location$search$matc2;
|
|
8
8
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
9
|
-
function _createSuper(
|
|
10
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
11
11
|
// 下面这一行不能删
|
|
12
12
|
import * as React from 'react';
|
|
13
13
|
import * as ReactDOM from 'react-dom';
|
|
14
|
+
import { createRoot } from 'react-dom/client';
|
|
14
15
|
import { Subscribe } from '@realsee/five';
|
|
15
16
|
import { App } from "./App.js";
|
|
16
17
|
import { Controller, ControllerContext } from "./Controller.js";
|
|
@@ -75,7 +76,6 @@ export var Player = /*#__PURE__*/function (_Subscribe) {
|
|
|
75
76
|
var _five$getElement;
|
|
76
77
|
var oldElement = document.getElementById(id);
|
|
77
78
|
if (oldElement) {
|
|
78
|
-
ReactDOM.unmountComponentAtNode(oldElement);
|
|
79
79
|
oldElement.remove();
|
|
80
80
|
}
|
|
81
81
|
var container = document.createElement('div');
|
|
@@ -97,7 +97,8 @@ export var Player = /*#__PURE__*/function (_Subscribe) {
|
|
|
97
97
|
container: configs.container,
|
|
98
98
|
configs: _this.configs
|
|
99
99
|
});
|
|
100
|
-
|
|
100
|
+
var root = createRoot(configs.container);
|
|
101
|
+
root.render( /*#__PURE__*/React.createElement(ControllerContext.Provider, {
|
|
101
102
|
value: _this.controller
|
|
102
103
|
}, /*#__PURE__*/React.createElement(App, null), /*#__PURE__*/React.createElement(Drawer, null), /*#__PURE__*/React.createElement(PopUp, null), _this.configs.customKeyframes && _this.configs.customKeyframes.map(function (CustomCmpt, key) {
|
|
103
104
|
return /*#__PURE__*/React.createElement(CustomCmpt, {
|
|
@@ -115,7 +116,7 @@ export var Player = /*#__PURE__*/function (_Subscribe) {
|
|
|
115
116
|
},
|
|
116
117
|
five: five
|
|
117
118
|
});
|
|
118
|
-
}))
|
|
119
|
+
})));
|
|
119
120
|
|
|
120
121
|
// 监听播放情况:抛出触发时机
|
|
121
122
|
reaction(function () {
|
|
@@ -160,8 +161,8 @@ export var Player = /*#__PURE__*/function (_Subscribe) {
|
|
|
160
161
|
*/
|
|
161
162
|
_createClass(Player, [{
|
|
162
163
|
key: "load",
|
|
163
|
-
value:
|
|
164
|
-
var _load = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(vreoUnit) {
|
|
164
|
+
value: function () {
|
|
165
|
+
var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(vreoUnit) {
|
|
165
166
|
var _this$controller$medi,
|
|
166
167
|
_this$configs$imageOp,
|
|
167
168
|
_this$controller$vide,
|
|
@@ -278,7 +279,6 @@ export var Player = /*#__PURE__*/function (_Subscribe) {
|
|
|
278
279
|
* 获取播放器是否处于暂停状态
|
|
279
280
|
* @returns 是否暂停中
|
|
280
281
|
*/
|
|
281
|
-
)
|
|
282
282
|
}, {
|
|
283
283
|
key: "paused",
|
|
284
284
|
get: function get() {
|
|
@@ -391,4 +391,7 @@ export var Player = /*#__PURE__*/function (_Subscribe) {
|
|
|
391
391
|
}]);
|
|
392
392
|
return Player;
|
|
393
393
|
}(Subscribe);
|
|
394
|
+
|
|
395
|
+
// 导出自定义组件
|
|
396
|
+
export { SpatialScenePanel } from "./custom/SpatialScenePanel/index.js";
|
|
394
397
|
console.log("\n \u250F\u2501\u2501\u2501\u2513\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u250F\u2513\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\n \u2503\u250F\u2501\u2513\u2503\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2503\u2503\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\n \u2503\u2517\u2501\u251B\u2503\u250F\u2501\u2501\u2513\u250F\u2501\u2501\u2513\u2501\u2503\u2503\u2501\u250F\u2501\u2501\u2513\u250F\u2501\u2501\u2513\u250F\u2501\u2501\u2513\n \u2503\u250F\u2513\u250F\u251B\u2503\u250F\u2513\u2503\u2517\u2501\u2513\u2503\u2501\u2503\u2503\u2501\u2503\u2501\u2501\u252B\u2503\u250F\u2513\u2503\u2503\u250F\u2513\u2503\n \u2503\u2503\u2503\u2517\u2513\u2503\u2503\u2501\u252B\u2503\u2517\u251B\u2517\u2513\u2503\u2517\u2513\u2523\u2501\u2501\u2503\u2503\u2503\u2501\u252B\u2503\u2503\u2501\u252B\n \u2517\u251B\u2517\u2501\u251B\u2517\u2501\u2501\u251B\u2517\u2501\u2501\u2501\u251B\u2517\u2501\u251B\u2517\u2501\u2501\u251B\u2517\u2501\u2501\u251B\u2517\u2501\u2501\u251B\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\n");
|
|
@@ -6,7 +6,8 @@ var DrawerView = observer(function (_ref) {
|
|
|
6
6
|
var _controller$drawerCon2;
|
|
7
7
|
var controller = _ref.controller;
|
|
8
8
|
var maxHeight = '400px';
|
|
9
|
-
var height = function (
|
|
9
|
+
var height = function () {
|
|
10
|
+
var _controller$drawerCon;
|
|
10
11
|
var height = (_controller$drawerCon = controller.drawerConfig) === null || _controller$drawerCon === void 0 ? void 0 : _controller$drawerCon.height;
|
|
11
12
|
if (!height) {
|
|
12
13
|
return 'max-content';
|
|
@@ -6,8 +6,8 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
8
8
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
9
|
-
function _createSuper(
|
|
10
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
11
11
|
import * as THREE from 'three';
|
|
12
12
|
import { Preloader } from "../../../shared-utils/Preloader.js";
|
|
13
13
|
import { makeObservable, observable, runInAction } from 'mobx';
|
|
@@ -209,8 +209,8 @@ export var VideoAgentMesh = /*#__PURE__*/function (_THREE$Mesh) {
|
|
|
209
209
|
}
|
|
210
210
|
}, {
|
|
211
211
|
key: "update",
|
|
212
|
-
value:
|
|
213
|
-
var _update = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(videoUrl) {
|
|
212
|
+
value: function () {
|
|
213
|
+
var _update = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(videoUrl) {
|
|
214
214
|
var _this2 = this;
|
|
215
215
|
var uniforms, onStart;
|
|
216
216
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -303,11 +303,10 @@ export var VideoAgentMesh = /*#__PURE__*/function (_THREE$Mesh) {
|
|
|
303
303
|
* await mesh.play()
|
|
304
304
|
* ```
|
|
305
305
|
*/
|
|
306
|
-
)
|
|
307
306
|
}, {
|
|
308
307
|
key: "play",
|
|
309
|
-
value:
|
|
310
|
-
var _play = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
308
|
+
value: function () {
|
|
309
|
+
var _play = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
311
310
|
var _this3 = this;
|
|
312
311
|
var videoUrl,
|
|
313
312
|
currentTime,
|
|
@@ -367,7 +366,7 @@ export var VideoAgentMesh = /*#__PURE__*/function (_THREE$Mesh) {
|
|
|
367
366
|
this.mediaInstance.pause();
|
|
368
367
|
_context3.next = 28;
|
|
369
368
|
return new Promise(function (resolve) {
|
|
370
|
-
return setTimeout(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
369
|
+
return setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
371
370
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
372
371
|
while (1) {
|
|
373
372
|
switch (_context2.prev = _context2.next) {
|
|
@@ -405,7 +404,6 @@ export var VideoAgentMesh = /*#__PURE__*/function (_THREE$Mesh) {
|
|
|
405
404
|
* 将媒体实例的秒级时间转换为毫秒,提供更高精度的时间控制
|
|
406
405
|
* @returns 当前播放时间戳(毫秒)
|
|
407
406
|
*/
|
|
408
|
-
)
|
|
409
407
|
}, {
|
|
410
408
|
key: "currentTime",
|
|
411
409
|
get: function get() {
|
|
@@ -8,7 +8,7 @@ export function BgMusic() {
|
|
|
8
8
|
var controller = useController();
|
|
9
9
|
React.useEffect(function () {
|
|
10
10
|
var callback = /*#__PURE__*/function () {
|
|
11
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(keyframe, currentTime) {
|
|
11
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(keyframe, currentTime) {
|
|
12
12
|
var start, end, _currentTime, audio, cleanAudio, play;
|
|
13
13
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
14
14
|
while (1) {
|
|
@@ -11,7 +11,7 @@ export function CameraMovement() {
|
|
|
11
11
|
var ref = React.useRef();
|
|
12
12
|
React.useEffect(function () {
|
|
13
13
|
var callback = /*#__PURE__*/function () {
|
|
14
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(keyframe) {
|
|
14
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(keyframe) {
|
|
15
15
|
var start, end, data, cameraMovementData, effect;
|
|
16
16
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
17
17
|
while (1) {
|
|
@@ -99,14 +99,14 @@ export function InfoPanel() {
|
|
|
99
99
|
do {
|
|
100
100
|
if (style === InfoPanelStyleEnum.PopUp) {
|
|
101
101
|
if (infoPanelData.type === InfoPanelTypeEnum.Image) {
|
|
102
|
-
controller.openPopUp(/*#__PURE__*/React.createElement(InfoPanelImg, {
|
|
102
|
+
controller.openPopUp( /*#__PURE__*/React.createElement(InfoPanelImg, {
|
|
103
103
|
url: infoPanelData.url
|
|
104
104
|
}, /*#__PURE__*/React.createElement(Title, {
|
|
105
105
|
title: title,
|
|
106
106
|
subTitle: subTitle
|
|
107
107
|
})));
|
|
108
108
|
} else if (infoPanelData.type === InfoPanelTypeEnum.Video) {
|
|
109
|
-
controller.openPopUp(/*#__PURE__*/React.createElement(InfoPanelVideo, {
|
|
109
|
+
controller.openPopUp( /*#__PURE__*/React.createElement(InfoPanelVideo, {
|
|
110
110
|
url: infoPanelData.url
|
|
111
111
|
}, /*#__PURE__*/React.createElement(Title, {
|
|
112
112
|
title: title,
|
|
@@ -13,7 +13,7 @@ export function ModelVideo() {
|
|
|
13
13
|
var timeoutRef = React.useRef();
|
|
14
14
|
React.useEffect(function () {
|
|
15
15
|
var callback = /*#__PURE__*/function () {
|
|
16
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(keyframe) {
|
|
16
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(keyframe) {
|
|
17
17
|
var _controller$configs, _controller$configs$v;
|
|
18
18
|
var start, end, _ref2, videoSrc, videoPosterSrc, vertexs, matrixWorld, position, points;
|
|
19
19
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as THREE from 'three';
|
|
4
|
-
import
|
|
4
|
+
import { createRoot } from 'react-dom/client';
|
|
5
5
|
import { Vector3, Quaternion } from 'three';
|
|
6
6
|
import { useController, useFiveInstance } from "../../../hooks.js";
|
|
7
7
|
import { CSS3DRenderPlugin } from "../../../../fivePlugins/CSS3DRenderPlugin/index.js";
|
|
@@ -92,16 +92,19 @@ export function PanoTextLabel() {
|
|
|
92
92
|
var quaternion = new Quaternion(data.quaternion.x, data.quaternion.y, data.quaternion.z, data.quaternion.w);
|
|
93
93
|
css3DObject === null || css3DObject === void 0 ? void 0 : css3DObject.quaternion.copy(quaternion);
|
|
94
94
|
}
|
|
95
|
-
if (container !== null && container !== void 0 && container.container)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
95
|
+
if (container !== null && container !== void 0 && container.container) {
|
|
96
|
+
var root = createRoot(container.container);
|
|
97
|
+
root.render( /*#__PURE__*/React.createElement("div", {
|
|
98
|
+
className: "PanoTextLabel PanoTextLabel--notHidden"
|
|
99
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
100
|
+
className: "PanoTextLabel-wrapper"
|
|
101
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
102
|
+
style: {
|
|
103
|
+
fontSize: "".concat(data.fontSize || 16, "px")
|
|
104
|
+
},
|
|
105
|
+
className: "PanoText-innerText"
|
|
106
|
+
}, data.text || ''))));
|
|
107
|
+
}
|
|
105
108
|
timeoutRef.current = setTimeout(function () {
|
|
106
109
|
var _ref$current;
|
|
107
110
|
(_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.disposeAll();
|
|
@@ -37,7 +37,7 @@ export function VideoEffect() {
|
|
|
37
37
|
};
|
|
38
38
|
React.useEffect(function () {
|
|
39
39
|
var callback = /*#__PURE__*/function () {
|
|
40
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(keyframe) {
|
|
40
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(keyframe) {
|
|
41
41
|
var start, end, _ref2, videoSrc, fov, direction, panoIndex, vector, _ref3, _ref4, longitude, latitude;
|
|
42
42
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
43
43
|
while (1) {
|
|
@@ -28,8 +28,8 @@ export var CameraMovementPlugin = function CameraMovementPlugin(five) {
|
|
|
28
28
|
var opts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
|
|
29
29
|
preload: true
|
|
30
30
|
};
|
|
31
|
-
return new Promise(/*#__PURE__*/function () {
|
|
32
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(resolve, reject) {
|
|
31
|
+
return new Promise( /*#__PURE__*/function () {
|
|
32
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(resolve, reject) {
|
|
33
33
|
var _opts$asyncEndCallbac;
|
|
34
34
|
var panoIndex, start, movePanoOptions;
|
|
35
35
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -117,7 +117,7 @@ export var CameraMovementPlugin = function CameraMovementPlugin(five) {
|
|
|
117
117
|
}());
|
|
118
118
|
};
|
|
119
119
|
var rotate = /*#__PURE__*/function () {
|
|
120
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(args, duration) {
|
|
120
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(args, duration) {
|
|
121
121
|
var _opts$asyncStartCallb, _opts$asyncEndCallbac2;
|
|
122
122
|
var opts,
|
|
123
123
|
from,
|
|
@@ -149,7 +149,7 @@ export var ModelTVVideoPlugin = function ModelTVVideoPlugin(five, _ref) {
|
|
|
149
149
|
});
|
|
150
150
|
};
|
|
151
151
|
var load = /*#__PURE__*/function () {
|
|
152
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(data, videoElement) {
|
|
152
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(data, videoElement) {
|
|
153
153
|
var video_src, video_poster_src, points;
|
|
154
154
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
155
155
|
while (1) {
|
|
@@ -9,8 +9,8 @@ import _wrapNativeSuper from "@babel/runtime/helpers/esm/wrapNativeSuper";
|
|
|
9
9
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
10
10
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
11
11
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
12
|
-
function _createSuper(
|
|
13
|
-
function _isNativeReflectConstruct() {
|
|
12
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
13
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
14
14
|
var blankAudioSrc = 'data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAADAAAGhgBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr///////////////////////////////////////////8AAAA5TEFNRTMuOThyAc0AAAAAAAAAABSAJAiqQgAAgAAABobxtI73AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//uQxAACFEII9ACZ/sJZwWEoEb8w/////N//////JcxjHjf+7/v/H2PzCCFAiDtGeyBCIx7bJJ1mmEEMy6g8mm2c8nrGABB4h2Mkmn//4z/73u773R5qHHu/j/w7Kxkzh5lWRWdsifCkNAnY9Zc1HvDAhjhSHdFkHFzLmabt/AQxSg2wwzLhHIJOBnAWwVY4zrhIYhhc2kvhYDfQ4hDi2Gmh5KyFn8EcGIrHAngNgIwVIEMf5bzbAiTRoAD///8z/KVhkkWEle6IX+d/z4fvH3BShK1e5kmjkCMoxVmXhd4ROlTKo3iipasvTilY21q19ta30/v/0/idPX1v8PNxJL6ramnOVsdvMv2akO0iSYIzdJFirtzWXCZicS9vHqvSKyqm5XJBdqBwPxyfJdykhWTZ0G0ZyTZGpLKxsNwwoRhsx3tZfhwmeOBVISm3impAC/IT/8hP/EKEM1KMdVdVKM2rHV4x7HVXZvbVVKN/qq8CiV9VL9jjH/6l6qf7MBCjZmOqsAibjcP+qqqv0oxqpa/NVW286hPo1nz2L/h8+jXt//uSxCmDU2IK/ECN98KKtE5IYzNoCfbw+u9i5r8PoadUMFPKqWL4LK3T/LCraMSHGkW4bpLXR/E6LlHOVQxmslKVJ8IULktMN06N0FKCpHCoYsjC4F+Z0NVqdNFoGSTjSiyjzLdnZ2fNqTi2eHKONONKLMPMKLONKLMPQRJGlFxZRoKcJFAYEeIFiRQkUWUeYfef//Ko04soswso40UJAgMw8wosososy0EalnZyjQUGBRQGIFggOWUacWUeYmuadrZziQKKEgQsQLAhQkUJAgMQDghltLO1onp0cpkNInSFMqlYeSEJ5AHsqFdOwy1DA2sRmRJKxdKRfLhfLw5BzUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/7ksRRA8AAAaQAAAAgAAA0gAAABFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU=';
|
|
15
15
|
// 下面这段空音频居然在11pro和xr上播不出来
|
|
16
16
|
// const blankAudioSrc = 'data:audio/mpeg;base64,//AAAAHGZ0eXBNNEEgAAAAAE00QSBpc29tbXA0MgAAAAFtZGF0AAAAAAAAABwA0AAHANAABwDQAAcAAAM+bW9vdgAAAGxtdmhkAAAAAN+jti7fo7YuAACsRAAADAAAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAdB0cmFrAAAAXHRraGQAAAAB36O2Lt+jti4AAAABAAAAAAAADAAAAAAAAAAAAAAAAAABAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAFsbWRpYQAAACBtZGhkAAAAAN+jti7fo7YuAACsRAAADABVxAAAAAAAMWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABDb3JlIE1lZGlhIEF1ZGlvAAAAARNtaW5mAAAAEHNtaGQAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAANdzdGJsAAAAZ3N0c2QAAAAAAAAAAQAAAFdtcDRhAAAAAAAAAAEAAAAAAAAAAAACABAAAAAArEQAAAAAADNlc2RzAAAAAAOAgIAiAAAABICAgBRAFAAYAAAA+gAAAPoABYCAgAISCAaAgIABAgAAABhzdHRzAAAAAAAAAAEAAAADAAAEAAAAABxzdHNjAAAAAAAAAAEAAAABAAAAAwAAAAEAAAAgc3RzegAAAAAAAAAAAAAAAwAAAAQAAAAEAAAABAAAABRzdGNvAAAAAAAAAAEAAAAsAAAA+nVkdGEAAADybWV0YQAAAAAAAAAiaGRscgAAAAAAAAAAbWRpcgAAAAAAAAAAAAAAAAAAAAAAxGlsc3QAAAC8LS0tLQAAABxtZWFuAAAAAGNvbS5hcHBsZS5pVHVuZXMAAAAUbmFtZQAAAABpVHVuU01QQgAAAIRkYXRhAAAAAQAAAAAgMDAwMDAwMDAgMDAwMDA4NDAgMDAwMDAzQzAgMDAwMDAwMDAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMCAwMDAwMDAwMA=='
|
|
@@ -34,7 +34,7 @@ export function waitForBlankAudioGenerated() {
|
|
|
34
34
|
return _waitForBlankAudioGenerated.apply(this, arguments);
|
|
35
35
|
}
|
|
36
36
|
function _waitForBlankAudioGenerated() {
|
|
37
|
-
_waitForBlankAudioGenerated = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
37
|
+
_waitForBlankAudioGenerated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
38
38
|
var checkInterval,
|
|
39
39
|
timeout,
|
|
40
40
|
startTime,
|
|
@@ -146,4 +146,4 @@ var IAudio = /*#__PURE__*/function (_Audio) {
|
|
|
146
146
|
}
|
|
147
147
|
}]);
|
|
148
148
|
return IAudio;
|
|
149
|
-
}(/*#__PURE__*/_wrapNativeSuper(Audio));
|
|
149
|
+
}( /*#__PURE__*/_wrapNativeSuper(Audio));
|
|
@@ -5,8 +5,8 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
function _createSuper(
|
|
9
|
-
function _isNativeReflectConstruct() {
|
|
8
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
10
10
|
import { Subscribe } from '@realsee/five';
|
|
11
11
|
import { requestAnimationFrameInterval } from "./animationFrame/index.js";
|
|
12
12
|
/**
|
|
@@ -5,8 +5,8 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
function _createSuper(
|
|
9
|
-
function _isNativeReflectConstruct() {
|
|
8
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
10
10
|
import * as TWEEN from '@tweenjs/tween.js';
|
|
11
11
|
import { requestAnimationFrameInterval } from "./index.js";
|
|
12
12
|
export var BetterTween = /*#__PURE__*/function (_TWEEN$Tween) {
|
package/lib/typings/VreoUnit.js
CHANGED
|
@@ -17,45 +17,6 @@ export var VreoKeyframeEnum;
|
|
|
17
17
|
VreoKeyframeEnum["Exit"] = "Exit";
|
|
18
18
|
VreoKeyframeEnum["Custom"] = "Custom";
|
|
19
19
|
})(VreoKeyframeEnum || (VreoKeyframeEnum = {}));
|
|
20
|
-
/**
|
|
21
|
-
* 剧本关键帧
|
|
22
|
-
*/
|
|
23
|
-
/**
|
|
24
|
-
* 虚拟视频角色
|
|
25
|
-
*/
|
|
26
|
-
/**
|
|
27
|
-
* 剧本结构
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* 剧本事件
|
|
31
|
-
*/
|
|
32
|
-
/**
|
|
33
|
-
* 相机运动
|
|
34
|
-
*/
|
|
35
|
-
/**
|
|
36
|
-
* 提词器
|
|
37
|
-
*/
|
|
38
|
-
/**
|
|
39
|
-
* VR 全景切换
|
|
40
|
-
*/
|
|
41
|
-
/**
|
|
42
|
-
* 顶点
|
|
43
|
-
*/
|
|
44
|
-
/**
|
|
45
|
-
* 矩形顶点
|
|
46
|
-
*/
|
|
47
|
-
/**
|
|
48
|
-
* 顶点数组
|
|
49
|
-
*/
|
|
50
|
-
/**
|
|
51
|
-
* 视频广告
|
|
52
|
-
*/
|
|
53
|
-
/**
|
|
54
|
-
* 四元数
|
|
55
|
-
*/
|
|
56
|
-
/**
|
|
57
|
-
* 全景文本标签
|
|
58
|
-
*/
|
|
59
20
|
/**
|
|
60
21
|
* 全景标签枚举
|
|
61
22
|
*/
|
|
@@ -100,11 +61,4 @@ export var InfoPanelStyleEnum;
|
|
|
100
61
|
(function (InfoPanelStyleEnum) {
|
|
101
62
|
InfoPanelStyleEnum["Drawer"] = "Drawer";
|
|
102
63
|
InfoPanelStyleEnum["PopUp"] = "PopUp";
|
|
103
|
-
})(InfoPanelStyleEnum || (InfoPanelStyleEnum = {}));
|
|
104
|
-
/**
|
|
105
|
-
* 视频特效
|
|
106
|
-
*/
|
|
107
|
-
/**
|
|
108
|
-
* 背景音乐
|
|
109
|
-
*/
|
|
110
|
-
/** 自定义序列帧 */
|
|
64
|
+
})(InfoPanelStyleEnum || (InfoPanelStyleEnum = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './VreoUnit';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./VreoUnit.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@realsee/vreo",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.1-alpha.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vreo (VR Video 缩写) 是基于如视三维渲染引擎 Five 和 用户界面构建库 React 实现的如视 3D 空间剧本播放器。",
|
|
6
6
|
"keywords": [
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
],
|
|
72
72
|
"scripts": {
|
|
73
73
|
"dev": "vite --port=3088 --host 0.0.0.0",
|
|
74
|
-
"build": "
|
|
74
|
+
"build": "pnpm packages",
|
|
75
75
|
"preview": "vite preview",
|
|
76
|
-
"docs": "npx typedoc
|
|
76
|
+
"docs": "npx typedoc",
|
|
77
77
|
"packages": "node ./dev-tools/build-packages.js",
|
|
78
78
|
"postpublish": "cnpm sync @realsee/vreo"
|
|
79
79
|
},
|
|
@@ -114,6 +114,5 @@
|
|
|
114
114
|
"classnames": "^2.3.1",
|
|
115
115
|
"mobx": "^6.3.7",
|
|
116
116
|
"mobx-react": "^7.2.1"
|
|
117
|
-
}
|
|
118
|
-
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
117
|
+
}
|
|
119
118
|
}
|