@realsee/vreo 1.0.0-alpha.12 → 1.0.0-alpha.13
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/docs/demo/assets/{AppReact.d611d90c.js → AppReact.342e3a94.js} +1 -1
- package/docs/demo/assets/default.e5719b61.js +3988 -0
- package/docs/demo/assets/{dynamic.2499f21d.js → dynamic.d3232f5a.js} +1 -1
- package/docs/demo/assets/{examples.37a1b117.js → examples.bb69d039.js} +1 -1
- package/docs/demo/assets/{index.6bdd876b.js → index.b4af9430.js} +1 -1
- package/docs/demo/assets/{main.3d99cb14.js → main.ab11c189.js} +1 -1
- package/docs/demo/assets/{react.627e3da3.js → react.14c39f5b.js} +1 -1
- package/docs/demo/examples.html +2 -2
- package/docs/demo/index-react-dynamic.html +4 -4
- package/docs/demo/index-react.html +4 -4
- package/docs/demo/index.html +3 -3
- package/package.json +2 -2
- package/docs/demo/assets/default.39d4c79b.js +0 -3988
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,R as l,j as e,r,a as o,p as d,e as i}from"./default.
|
|
1
|
+
import{c,R as l,j as e,r,a as o,p as d,e as i}from"./default.e5719b61.js";import{w as p}from"./znRoyv06SZQeqA7m.0057e8ae.js";import{R as u}from"./index.b4af9430.js";import{V as m,A as v}from"./AppReact.342e3a94.js";const f={imageOptions:{size:1024},textureOptions:{size:64},onlyRenderIfNeeds:!0,antialias:!1,model:{},plugins:[]},x=c(f);function g(){const[t,n]=r.exports.useState(!1),a=t?o(x,{initialWork:d(p),ref:s=>Object.assign(window,{$five:s==null?void 0:s.five}),children:[e(u,{}),e(m,{children:e(v,{})})]}):e(i,{});return o(i,{children:[e("button",{style:{position:"absolute",zIndex:1e6,top:"36px",left:"36px"},onClick:()=>n(!t),children:t?"\u9500\u6BC1":"\u521B\u5EFA"}),a]})}l.render(e(r.exports.StrictMode,{children:e(g,{})}),document.getElementById("root"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as o,j as r,F as m,u as p,P as _,V as f,a as c,c as b,p as y,f as h}from"./default.
|
|
1
|
+
import{r as o,j as r,F as m,u as p,P as _,V as f,a as c,c as b,p as y,f as h}from"./default.e5719b61.js";function x(){const[e,l]=o.exports.useState({width:0,height:0}),t=o.exports.useRef(null);return o.exports.useEffect(()=>{if(!t.current)return;l({width:window.innerWidth,height:window.innerHeight});const n=({width:d,height:a})=>l({width:d,height:a}),u=new ResizeObserver(d=>{const a=d[0],i=a.target.clientWidth,s=a.target.clientHeight;n({width:i,height:s})});return u.observe(t.current),()=>{t.current&&u.unobserve(t.current),u.disconnect()}},[]),r("div",{className:"ResponsiveFiveCanvas",ref:t,style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,opacity:e.width===0||e.height===0?0:1},children:r(m,{width:e.width,height:e.height})})}const g={_signature:"RxzX9G4X3qL+vRMST3YBSHkxz1pNHsPHF222xo6fTygjT7QZRjy8aaD/YuCaZ6B/0tHGjpOTXwp7Xj0ginPOb+xUI4D+2QTbL5vNtWuamnaW0Ko1KMFmF9MWNY+80AAubmR9+SXp6hhNsmrQGdF83ZJiRz0q+c44DgrGD9bm3h0=",allow_hosts:["*"],animation_file_url:"",animation_picture_url:"",basic_code:"EpGyBg4xy3b1q3nK",business_id:"0",certificate:`-----BEGIN CERTIFICATE-----
|
|
2
2
|
MIIEMzCCAhsCCQDYAS/7ATZRmTANBgkqhkiG9w0BAQsFADCBkzELMAkGA1UEBhMC
|
|
3
3
|
Q04xEDAOBgNVBAgMB0JlaWppbmcxEDAOBgNVBAcMB0JlaWppbmcxFDASBgNVBAoM
|
|
4
4
|
C2xpYW5qaWEuY29tMRAwDgYDVQQLDAdSZWFsc2VlMREwDwYDVQQDDAhIYXJkd2Fy
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,j as r,F as c}from"./default.
|
|
1
|
+
import{r as o,j as r,F as c}from"./default.e5719b61.js";const d=(t,i=1e3/60)=>{let e=null;const n=t;return(...s)=>{e&&clearTimeout(e),e=setTimeout(()=>{n==null||n(...s),e&&clearTimeout(e),e=null},i)}};function a(){const[t,i]=o.exports.useState({width:document.body.clientWidth,height:document.body.clientHeight});return o.exports.useEffect(()=>{const e=d(()=>i({width:document.body.clientWidth,height:document.body.clientHeight}));return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),r(c,{width:t.width,height:t.height})}export{a as R};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as d,u as i,P as p,j as a,c as f,R as l,a as E,p as y}from"./default.
|
|
1
|
+
import{r as d,u as i,P as p,j as a,c as f,R as l,a as E,p as y}from"./default.e5719b61.js";import{w as F}from"./znRoyv06SZQeqA7m.0057e8ae.js";import{R as b}from"./index.b4af9430.js";const C={categoryId:"a80d5051-122d-4618-1d19-d43f4196c97a",categoryText:"8952fa2b-1784-4031-63c8-a707e111f481",frontRequestId:"280b45bf-9cfe-4eaa-7658-d2bddf545e83",index:0,video:{duration:26245,start:0,end:106278,url:""},keyframes:[{uuid:"2fa9e43c-023d-44b7-2c47-28829b5b7115",type:"CameraMovement",start:0,end:1328,parsed:!1,data:{effect:"Move",panoIndex:9,fov:59,mode:"Panorama",latitude:-.03230120055325244,longitude:3.1429096757667008}},{uuid:"d6fbfa55-5d27-4fbf-4328-4d01c4a45520",type:"Prompter",start:0,end:4400,parsed:!1,data:{text:"\u5BB6\u4E2D\u5E73\u65F6\u4EBA\u5C11\uFF0C\u70E7\u4E00\u58F6\u6C34\u559D\u4E0D\u5B8C\u53C8\u51C9\u4E86"}},{uuid:"92a90980-6f5c-4c26-fed4-7fb908691044",type:"Prompter",start:5200,end:6700,parsed:!1,data:{text:"\u53CD\u590D\u70E7\u5F00\u7684\u5343\u6EDA\u6C34\u5371\u5BB3\u5BB6\u4EBA\u5065\u5EB7"}},{uuid:"bcd155a7-cf4f-4bb6-a0f2-739ab522a683",type:"Prompter",start:7400,end:1e4,parsed:!1,data:{text:"\u8FD9\u6B3E\u7F8E\u7684\u8336\u5427\u673A\u5E26\u6709\u4FDD\u6E29\u76D8\uFF0C55\u5EA6\u7684\u6C34\u53EF\u4FDD\u6E2912\u5C0F\u65F6"}},{uuid:"06388578-b39b-4ff3-4438-f16a0e9bb1e3",type:"Prompter",start:11e3,end:13e3,parsed:!1,data:{text:"\u8BA9\u4F60\u968F\u65F6\u6709\u6E29\u6C34\u5165\u8179"}},{uuid:"afcf6cbe-1031-4d99-c6cc-e39e6710c793",type:"Prompter",start:13700,end:16e3,parsed:!1,data:{text:"\u5168\u5BB6\u4EBA\u5BF9\u6C34\u6E29\u8981\u6C42\u4E0D\u540C\uFF0C\u8981\u7528\u6E29\u6C34\u7ED9\u5B69\u5B50\u51B2\u5976"}},{uuid:"4e4d486c-fb1a-40f0-62a4-bc87eb3874e5",type:"Prompter",start:16900,end:18700,parsed:!1,data:{text:"\u5988\u5988\u7231\u559D\u7684\u7EA2\u8336\u8981\u7528100\u5EA6\u6CB8\u6C34"}},{uuid:"c0dd2571-cb53-4461-d441-53d9876d910a",type:"Prompter",start:19300,end:21800,parsed:!1,data:{text:"\u8FD9\u6B3E\u8336\u5427\u673A\u53EF\u7CBE\u51C6\u63A7\u6E29\u6EE1\u8DB3\u5168\u5BB6\u9700\u6C42"}},{uuid:"90e43160-9217-480a-9c14-065cbace760e",type:"Prompter",start:22500,end:26200,parsed:!1,data:{text:"\u4E0A\u7F6E\u50A8\u7269\u67DC\u53EF\u6536\u7EB3\u8336\u5177\u8336\u53F6\uFF0C\u4E0B\u7F6E\u6C34\u6876\u6362\u6C34\u4E0D\u8D39\u529B"}},{uuid:"e8100e08-ec75-4716-4d3a-ba00999e19ec",type:"PanoTextLabel",start:22417,end:24245,parsed:!1,data:{text:"\u4E0A\u7F6E\u50A8\u7269\u67DC",vertex:{x:-1.2920994585621808,y:.6039590569616649,z:-3.591666936874389},fontSize:14}},{uuid:"a1f330ab-1b9c-4e7a-701c-c82cf7df2af7",type:"PanoTextLabel",start:25e3,end:26245,parsed:!1,data:{text:"\u4E0B\u7F6E\u6C34\u6876",vertex:{x:-1.2948739014345394,y:.3495986970932401,z:-3.5916669368743896},fontSize:14}},{type:"PanoTag",start:8e3,end:10500,parsed:!1,data:{imgUrl:"https://vrlab-public.ljcdn.com/release/seesay/tools/Screenshot_20220527220803031_com.jingdong.app.mall____d9f902ea827338a07f57788b831c3552.png",text:"12\u5C0F\u65F6\u4FDD\u6E29\u76D8",vertex:{x:-.8666686085208133,y:.8402865638657824,z:-3.817708370830488},type:"Text"}},{uuid:"c560e0e0-4f42-4100-cae1-8c871034a4e4",type:"PanoTag",start:2e4,end:22500,parsed:!1,data:{text:"\u516D\u6863\u7CBE\u51C6\u63A7\u6E29",vertex:{x:-.9753990782354569,y:.7787579222747523,z:-3.5962710380554204},type:"Text"}}]};function x(){const e=d.exports.useRef(),c=i(),[t,r]=d.exports.useState("notReady");return d.exports.useEffect(()=>{if(e.current)return;const u=new p(c);e.current=u,r("ready"),u.on("paused",()=>r("paused")),u.on("playing",()=>r("playing")),Object.assign(window,{$player:u})},[]),a("div",{className:"btns",children:a("button",{onClick:async()=>{var u,s,n,o;t==="ready"&&((u=e.current)==null||u.show(),await((s=e.current)==null?void 0:s.load(C))),t!=="playing"?(n=e.current)==null||n.play():(o=e.current)==null||o.pause()},disabled:t==="notReady",children:t!=="playing"?"\u64AD\u653E":"\u6682\u505C"})})}const B={imageOptions:{size:1024},textureOptions:{size:64},onlyRenderIfNeeds:!0,antialias:!1,model:{},plugins:[]},m=f(B);l.render(a(d.exports.StrictMode,{children:E(m,{initialWork:y(F),ref:e=>Object.assign(window,{$five:e==null?void 0:e.five}),children:[a(b,{}),a(x,{})]})}),document.getElementById("root"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as f,a as u,j as c,C as E,V as A,R as S,t as z,b as l,d as B,c as q,p as M}from"./default.
|
|
1
|
+
import{r as f,a as u,j as c,C as E,V as A,R as S,t as z,b as l,d as B,c as q,p as M}from"./default.e5719b61.js";import{R}from"./index.b4af9430.js";import{V as N,A as Q}from"./AppReact.342e3a94.js";const P={_signature:"FHtoUKA5slbYyf1sQkPtEhQEkWqu4eYAr/DQVCXi8WCP6U6MZ1LNaHFogorFDzsV7EXsFweVOzf7CL5AY/ckfyaBXdFzPWEpdG6/ycsZcdO8tOVHb+vtn90BZHtNRkoxxv/J2yjqZOdy0cb9Zyj0Ux54JeBNVennWFhf69cd6+w=",allow_hosts:["*"],base_url:"https://vrlab-public.ljcdn.com/release/auto3dhd/c6756c0c2ee42b76c8a958ef5ee7abc4/",certificate:`-----BEGIN CERTIFICATE-----
|
|
2
2
|
MIIEMzCCAhsCCQDYAS/7ATZRmTANBgkqhkiG9w0BAQsFADCBkzELMAkGA1UEBhMC
|
|
3
3
|
Q04xEDAOBgNVBAgMB0JlaWppbmcxEDAOBgNVBAcMB0JlaWppbmcxFDASBgNVBAoM
|
|
4
4
|
C2xpYW5qaWEuY29tMRAwDgYDVQQLDAdSZWFsc2VlMREwDwYDVQQDDAhIYXJkd2Fy
|
package/docs/demo/examples.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<link href="//realsee.com/favicon.ico" type="image/x-icon" rel="icon" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>@realsee/vreo - Player -- DEBUG --</title>
|
|
8
|
-
<script type="module" crossorigin src="./assets/examples.
|
|
9
|
-
<link rel="modulepreload" href="./assets/default.
|
|
8
|
+
<script type="module" crossorigin src="./assets/examples.bb69d039.js"></script>
|
|
9
|
+
<link rel="modulepreload" href="./assets/default.e5719b61.js">
|
|
10
10
|
<link rel="stylesheet" href="./assets/default.fc662b9f.css">
|
|
11
11
|
<link rel="stylesheet" href="./assets/examples.dac4a6fe.css">
|
|
12
12
|
</head>
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
<link href="//realsee.com/favicon.ico" type="image/x-icon" rel="icon" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>@realsee/vreo - Player -- DEBUG --</title>
|
|
8
|
-
<script type="module" crossorigin src="./assets/dynamic.
|
|
9
|
-
<link rel="modulepreload" href="./assets/default.
|
|
8
|
+
<script type="module" crossorigin src="./assets/dynamic.d3232f5a.js"></script>
|
|
9
|
+
<link rel="modulepreload" href="./assets/default.e5719b61.js">
|
|
10
10
|
<link rel="modulepreload" href="./assets/znRoyv06SZQeqA7m.0057e8ae.js">
|
|
11
|
-
<link rel="modulepreload" href="./assets/index.
|
|
12
|
-
<link rel="modulepreload" href="./assets/AppReact.
|
|
11
|
+
<link rel="modulepreload" href="./assets/index.b4af9430.js">
|
|
12
|
+
<link rel="modulepreload" href="./assets/AppReact.342e3a94.js">
|
|
13
13
|
<link rel="stylesheet" href="./assets/default.fc662b9f.css">
|
|
14
14
|
<link rel="stylesheet" href="./assets/index.9331038f.css">
|
|
15
15
|
</head>
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
<link href="//realsee.com/favicon.ico" type="image/x-icon" rel="icon" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>@realsee/vreo - Player -- DEBUG --</title>
|
|
8
|
-
<script type="module" crossorigin src="./assets/react.
|
|
9
|
-
<link rel="modulepreload" href="./assets/default.
|
|
10
|
-
<link rel="modulepreload" href="./assets/index.
|
|
11
|
-
<link rel="modulepreload" href="./assets/AppReact.
|
|
8
|
+
<script type="module" crossorigin src="./assets/react.14c39f5b.js"></script>
|
|
9
|
+
<link rel="modulepreload" href="./assets/default.e5719b61.js">
|
|
10
|
+
<link rel="modulepreload" href="./assets/index.b4af9430.js">
|
|
11
|
+
<link rel="modulepreload" href="./assets/AppReact.342e3a94.js">
|
|
12
12
|
<link rel="stylesheet" href="./assets/default.fc662b9f.css">
|
|
13
13
|
<link rel="stylesheet" href="./assets/index.9331038f.css">
|
|
14
14
|
<link rel="stylesheet" href="./assets/react.2ee8565f.css">
|
package/docs/demo/index.html
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
<link href="//realsee.com/favicon.ico" type="image/x-icon" rel="icon" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>@realsee/vreo - Player -- DEBUG --</title>
|
|
8
|
-
<script type="module" crossorigin src="./assets/main.
|
|
9
|
-
<link rel="modulepreload" href="./assets/default.
|
|
8
|
+
<script type="module" crossorigin src="./assets/main.ab11c189.js"></script>
|
|
9
|
+
<link rel="modulepreload" href="./assets/default.e5719b61.js">
|
|
10
10
|
<link rel="modulepreload" href="./assets/znRoyv06SZQeqA7m.0057e8ae.js">
|
|
11
|
-
<link rel="modulepreload" href="./assets/index.
|
|
11
|
+
<link rel="modulepreload" href="./assets/index.b4af9430.js">
|
|
12
12
|
<link rel="stylesheet" href="./assets/default.fc662b9f.css">
|
|
13
13
|
<link rel="stylesheet" href="./assets/index.9331038f.css">
|
|
14
14
|
</head>
|
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.13",
|
|
4
4
|
"description": "Vreo (VR Video 缩写) 是基于如视三维渲染引擎 Five 和 用户界面构建库 React 实现的如视 3D 空间剧本播放器。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"realsee",
|
|
@@ -36,7 +36,6 @@
|
|
|
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.18",
|
|
40
39
|
"@realsee/five": "5.0.0-alpha.149",
|
|
41
40
|
"@types/offscreencanvas": "^2019.6.4",
|
|
42
41
|
"@types/react": "^17.0.37",
|
|
@@ -52,6 +51,7 @@
|
|
|
52
51
|
"vite": "^2.6.14"
|
|
53
52
|
},
|
|
54
53
|
"dependencies": {
|
|
54
|
+
"@realsee/dnalogel": "^2.1.0-alpha.29",
|
|
55
55
|
"@tweenjs/tween.js": "18.6.4",
|
|
56
56
|
"classnames": "^2.3.1",
|
|
57
57
|
"mobx": "^6.3.7",
|