@realsee/five 5.0.0-alpha.100
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/README.md +362 -0
- package/TERMS.txt +56 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +134 -0
- package/docs/assets/icons.css +1043 -0
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/main.js +52 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1388 -0
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/classes/five.AnimationFrameLoop.html +15 -0
- package/docs/classes/five.BVH.html +10 -0
- package/docs/classes/five.BVHIntersect.html +1 -0
- package/docs/classes/five.BVHNode.html +7 -0
- package/docs/classes/five.BVHVector3.html +1 -0
- package/docs/classes/five.Camera.html +11 -0
- package/docs/classes/five.Five.html +303 -0
- package/docs/classes/five.InternalWebGLRenderer.html +1 -0
- package/docs/classes/five.IntersectMesh.html +1 -0
- package/docs/classes/five.LegacyPanoCircleMesh.html +5 -0
- package/docs/classes/five.Model.html +77 -0
- package/docs/classes/five.NetworkSubscribe.html +50 -0
- package/docs/classes/five.PBMContainer.html +17 -0
- package/docs/classes/five.PBMGroup.html +19 -0
- package/docs/classes/five.PBMMaterial.html +15 -0
- package/docs/classes/five.PBMMesh.html +7 -0
- package/docs/classes/five.PanoCircleMesh.html +7 -0
- package/docs/classes/five.Scene.html +3 -0
- package/docs/classes/five.Subscribe.html +56 -0
- package/docs/classes/five.Work.html +30 -0
- package/docs/classes/gltf_loader.GLTFLoader.html +17 -0
- package/docs/classes/gltf_loader.GLTFObject.html +7 -0
- package/docs/classes/line.Line.html +1 -0
- package/docs/classes/line.LineGeometry.html +1 -0
- package/docs/classes/line.LineMaterial.html +1 -0
- package/docs/classes/line.LineSegmentsGeometry.html +1 -0
- package/docs/classes/line.THREE_Line2.html +1 -0
- package/docs/classes/line.THREE_LineSegments2.html +1 -0
- package/docs/classes/react.Store.html +29 -0
- package/docs/classes/server.BVH.html +10 -0
- package/docs/classes/server.BVHIntersect.html +1 -0
- package/docs/classes/server.BVHNode.html +7 -0
- package/docs/classes/server.BVHVector3.html +1 -0
- package/docs/classes/server.Model.html +63 -0
- package/docs/classes/server.PBMGroup.html +9 -0
- package/docs/classes/server.PBMMesh.html +7 -0
- package/docs/classes/sticker.Sticker.html +32 -0
- package/docs/index.html +182 -0
- package/docs/interfaces/five.AddableObject.html +1 -0
- package/docs/interfaces/five.AnimationFrame.html +1 -0
- package/docs/interfaces/five.CameraPose.html +1 -0
- package/docs/interfaces/five.DepthPanoramaControllerCustomInitArgs.html +28 -0
- package/docs/interfaces/five.EventCallback.html +391 -0
- package/docs/interfaces/five.FiveInitArgs.html +96 -0
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +15 -0
- package/docs/interfaces/five.ImageOptions.html +16 -0
- package/docs/interfaces/five.ImageURLOptions.html +1 -0
- package/docs/interfaces/five.IntersectMeshInterface.html +3 -0
- package/docs/interfaces/five.Intersection.html +7 -0
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +20 -0
- package/docs/interfaces/five.ModelEventCallback.html +22 -0
- package/docs/interfaces/five.MovePanoOptions.html +39 -0
- package/docs/interfaces/five.PBMPanoPicture.html +7 -0
- package/docs/interfaces/five.PBMParameters.html +15 -0
- package/docs/interfaces/five.PanoCircleMeshInterface.html +19 -0
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +28 -0
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +20 -0
- package/docs/interfaces/five.Pose.html +35 -0
- package/docs/interfaces/five.Scissor.html +14 -0
- package/docs/interfaces/five.State.html +19 -0
- package/docs/interfaces/five.SubscribeMixinType.emit.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.hasListener.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.off.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.on.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.once.html +1 -0
- package/docs/interfaces/five.TextureOptions.html +18 -0
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +7 -0
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +24 -0
- package/docs/interfaces/five.WorkCubeImage.html +13 -0
- package/docs/interfaces/five.WorkImage.html +21 -0
- package/docs/interfaces/five.WorkInitial.html +13 -0
- package/docs/interfaces/five.WorkModel.html +11 -0
- package/docs/interfaces/five.WorkObserver.html +25 -0
- package/docs/interfaces/five.WorkTile.html +1 -0
- package/docs/interfaces/five.WorkVideo.html +9 -0
- package/docs/interfaces/gltf_loader.GLTF.html +7 -0
- package/docs/interfaces/react.FiveActionReactCallbacks.html +62 -0
- package/docs/interfaces/react.FiveInjectionTypes.html +191 -0
- package/docs/interfaces/react.PropTypeOfFiveFeatures.html +1 -0
- package/docs/interfaces/server.Intersection.html +7 -0
- package/docs/interfaces/server.ModelEventCallback.html +18 -0
- package/docs/interfaces/sticker.IntersectionLike.html +8 -0
- package/docs/media/coordinate.jpg +0 -0
- package/docs/media/topview.jpg +0 -0
- package/docs/media/typescript.jpg +0 -0
- package/docs/modules/five.SubscribeMixinType.html +1 -0
- package/docs/modules/five.html +481 -0
- package/docs/modules/gltf_loader.html +1 -0
- package/docs/modules/line.html +1 -0
- package/docs/modules/react.html +130 -0
- package/docs/modules/server.html +18 -0
- package/docs/modules/sticker.html +1 -0
- package/docs/modules.html +1 -0
- package/exporters/staticify.js +203 -0
- package/five/index.d.ts +2061 -0
- package/five/index.js +372 -0
- package/gltf-loader/index.d.ts +75 -0
- package/gltf-loader/index.js +260 -0
- package/line/index.d.ts +68 -0
- package/line/index.js +260 -0
- package/package.json +36 -0
- package/react/index.d.ts +812 -0
- package/react/index.js +260 -0
- package/resource/basis/basis_transcoder.js +22 -0
- package/resource/basis/basis_transcoder.wasm +0 -0
- package/resource/gltf/draco_decoder.js +31 -0
- package/resource/gltf/draco_decoder.wasm +0 -0
- package/resource/gltf/draco_wasm_wrapper.js +119 -0
- package/scripts/five-plugin-init.js +83 -0
- package/scripts/five-quick-start-init.js +80 -0
- package/scripts/five-react-component-init.js +83 -0
- package/scripts/five-staticify.js +21 -0
- package/server/index.d.ts +568 -0
- package/server/index.js +367 -0
- package/sticker/index.d.ts +70 -0
- package/sticker/index.js +260 -0
- package/templates/plugin/README.md +38 -0
- package/templates/plugin/devtools/external-five.js +5 -0
- package/templates/plugin/devtools/external-three.js +5 -0
- package/templates/plugin/devtools/tsconfig.build.json +18 -0
- package/templates/plugin/devtools/webpack.bundle.js +44 -0
- package/templates/plugin/devtools/webpack.example.js +39 -0
- package/templates/plugin/docs/.gitkeep +0 -0
- package/templates/plugin/examples/data.json +507 -0
- package/templates/plugin/examples/index.html +28 -0
- package/templates/plugin/examples/index.ts +12 -0
- package/templates/plugin/lib/index.ts +30 -0
- package/templates/plugin/package.json +32 -0
- package/templates/plugin/tsconfig.json +26 -0
- package/templates/quick-start/README.md +47 -0
- package/templates/quick-start/assets/work.json +507 -0
- package/templates/quick-start/index.html +54 -0
- package/templates/quick-start/index.tsx +123 -0
- package/templates/quick-start/package.json +25 -0
- package/templates/quick-start/tsconfig.json +27 -0
- package/templates/quick-start/webpack.config.js +45 -0
- package/templates/quick-start/webpack.production.js +42 -0
- package/templates/react-component/README.md +32 -0
- package/templates/react-component/devtools/external-five.js +5 -0
- package/templates/react-component/devtools/external-react.js +5 -0
- package/templates/react-component/devtools/external-three.js +5 -0
- package/templates/react-component/devtools/tsconfig.build.json +19 -0
- package/templates/react-component/devtools/webpack.bundle.js +44 -0
- package/templates/react-component/devtools/webpack.example.js +39 -0
- package/templates/react-component/docs/.gitkeep +0 -0
- package/templates/react-component/examples/data.json +507 -0
- package/templates/react-component/examples/index.html +17 -0
- package/templates/react-component/examples/index.tsx +62 -0
- package/templates/react-component/lib/index.tsx +157 -0
- package/templates/react-component/package.json +38 -0
- package/templates/react-component/tsconfig.json +27 -0
- package/umd/five-gltf-loader.js +2 -0
- package/umd/five-gltf-loader.js.LICENSE.txt +14 -0
- package/umd/five-line.js +2 -0
- package/umd/five-line.js.LICENSE.txt +14 -0
- package/umd/five-react.js +2 -0
- package/umd/five-react.js.LICENSE.txt +14 -0
- package/umd/five-sticker.js +2 -0
- package/umd/five-sticker.js.LICENSE.txt +14 -0
- package/umd/five.js +2 -0
- package/umd/five.js.LICENSE.txt +116 -0
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
{
|
|
2
|
+
"user_id": 1000000020355831,
|
|
3
|
+
"project_id": "auto3d-DJaa08PIzN4JYluXQ1j2VS",
|
|
4
|
+
"name": "贝壳·如视 | 真实,如你所视",
|
|
5
|
+
"is_active": true,
|
|
6
|
+
"title": "a62e1ebf7d013f7df117551a14af79fc",
|
|
7
|
+
"description": "",
|
|
8
|
+
"picture_url": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/screenshot\/1617181538_6\/pc0_Ta021gL8o.jpg",
|
|
9
|
+
"picture_checksum": "be869ab9ddad58a1037c9ba556d36baa",
|
|
10
|
+
"initial": {
|
|
11
|
+
"pano_index": 6,
|
|
12
|
+
"heading": 0,
|
|
13
|
+
"longitude": 2.6869287662553916,
|
|
14
|
+
"latitude": 0,
|
|
15
|
+
"fov": 95,
|
|
16
|
+
"flag_position": [
|
|
17
|
+
-6.218280029296875,
|
|
18
|
+
-1.368765398621047,
|
|
19
|
+
7.642519855499268
|
|
20
|
+
],
|
|
21
|
+
"pano": 6
|
|
22
|
+
},
|
|
23
|
+
"machine_id": "PHBBC00293",
|
|
24
|
+
"machine_version": "3",
|
|
25
|
+
"title_picture_url": "http:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/screenshot\/1617181538_6\/pc1_dNN1OSNiN_1.jpg",
|
|
26
|
+
"title_picture_checksum": "62a4d5b155dfd7ee5765b1aafb72991a",
|
|
27
|
+
"house_layout": {
|
|
28
|
+
"bedroom_amount": 2,
|
|
29
|
+
"parlor_amount": 1,
|
|
30
|
+
"cookroom_amount": 1,
|
|
31
|
+
"toilet_amount": 1
|
|
32
|
+
},
|
|
33
|
+
"status": 1,
|
|
34
|
+
"floor_plan_type": 0,
|
|
35
|
+
"editor_type": 2,
|
|
36
|
+
"panorama_url": "",
|
|
37
|
+
"create_time": "2021-03-31 21:02:51",
|
|
38
|
+
"work_code": "2kbe37PwJOwMYqG8",
|
|
39
|
+
"house_info": {
|
|
40
|
+
"relation_id": 15245832,
|
|
41
|
+
"city_id": 330100,
|
|
42
|
+
"source": "ALLIANCE",
|
|
43
|
+
"house_id": "1815046123278",
|
|
44
|
+
"house_code": "103114128650"
|
|
45
|
+
},
|
|
46
|
+
"model": {
|
|
47
|
+
"file_url": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/model\/auto3d-DJaa08PIzN4JYluXQ1j2VS.at3d",
|
|
48
|
+
"material_base_url": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/",
|
|
49
|
+
"material_textures": [
|
|
50
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_0.jpg",
|
|
51
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_1.jpg",
|
|
52
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_2.jpg",
|
|
53
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_3.jpg",
|
|
54
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_4.jpg",
|
|
55
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_5.jpg",
|
|
56
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_6.jpg",
|
|
57
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_7.jpg",
|
|
58
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_8.jpg",
|
|
59
|
+
"https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/materials\/texture_9.jpg"
|
|
60
|
+
],
|
|
61
|
+
"score": 106.48,
|
|
62
|
+
"type": 0,
|
|
63
|
+
"work_code": "2kbe37PwJOwMYqG8"
|
|
64
|
+
},
|
|
65
|
+
"panorama": {
|
|
66
|
+
"count": 10,
|
|
67
|
+
"base_url": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/",
|
|
68
|
+
"type": 0,
|
|
69
|
+
"list": [
|
|
70
|
+
{
|
|
71
|
+
"index": 0,
|
|
72
|
+
"up": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/0\/2257f0f0b29d5b00ff01934ce51aaa35\/0_u.jpg",
|
|
73
|
+
"down": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/0\/2257f0f0b29d5b00ff01934ce51aaa35\/0_d.jpg",
|
|
74
|
+
"left": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/0\/2257f0f0b29d5b00ff01934ce51aaa35\/0_l.jpg",
|
|
75
|
+
"right": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/0\/2257f0f0b29d5b00ff01934ce51aaa35\/0_r.jpg",
|
|
76
|
+
"front": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/0\/2257f0f0b29d5b00ff01934ce51aaa35\/0_f.jpg",
|
|
77
|
+
"back": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/0\/2257f0f0b29d5b00ff01934ce51aaa35\/0_b.jpg"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"index": 1,
|
|
81
|
+
"up": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/1\/ecb554bb1c122fa90186d176ccfecde4\/1_u.jpg",
|
|
82
|
+
"down": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/1\/ecb554bb1c122fa90186d176ccfecde4\/1_d.jpg",
|
|
83
|
+
"left": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/1\/ecb554bb1c122fa90186d176ccfecde4\/1_l.jpg",
|
|
84
|
+
"right": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/1\/ecb554bb1c122fa90186d176ccfecde4\/1_r.jpg",
|
|
85
|
+
"front": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/1\/ecb554bb1c122fa90186d176ccfecde4\/1_f.jpg",
|
|
86
|
+
"back": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/1\/ecb554bb1c122fa90186d176ccfecde4\/1_b.jpg"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"index": 2,
|
|
90
|
+
"up": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/2\/9bd853b960ff837ab3dda99d80c60a3d\/2_u.jpg",
|
|
91
|
+
"down": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/2\/9bd853b960ff837ab3dda99d80c60a3d\/2_d.jpg",
|
|
92
|
+
"left": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/2\/9bd853b960ff837ab3dda99d80c60a3d\/2_l.jpg",
|
|
93
|
+
"right": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/2\/9bd853b960ff837ab3dda99d80c60a3d\/2_r.jpg",
|
|
94
|
+
"front": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/2\/9bd853b960ff837ab3dda99d80c60a3d\/2_f.jpg",
|
|
95
|
+
"back": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/2\/9bd853b960ff837ab3dda99d80c60a3d\/2_b.jpg"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"index": 3,
|
|
99
|
+
"up": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/3\/2ff55fa5be112fe1314cbcaf97ac27df\/3_u.jpg",
|
|
100
|
+
"down": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/3\/2ff55fa5be112fe1314cbcaf97ac27df\/3_d.jpg",
|
|
101
|
+
"left": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/3\/2ff55fa5be112fe1314cbcaf97ac27df\/3_l.jpg",
|
|
102
|
+
"right": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/3\/2ff55fa5be112fe1314cbcaf97ac27df\/3_r.jpg",
|
|
103
|
+
"front": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/3\/2ff55fa5be112fe1314cbcaf97ac27df\/3_f.jpg",
|
|
104
|
+
"back": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/3\/2ff55fa5be112fe1314cbcaf97ac27df\/3_b.jpg"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"index": 4,
|
|
108
|
+
"up": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/4\/bda2a018e6d4ba63cdb86aaf6bd8d295\/4_u.jpg",
|
|
109
|
+
"down": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/4\/bda2a018e6d4ba63cdb86aaf6bd8d295\/4_d.jpg",
|
|
110
|
+
"left": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/4\/bda2a018e6d4ba63cdb86aaf6bd8d295\/4_l.jpg",
|
|
111
|
+
"right": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/4\/bda2a018e6d4ba63cdb86aaf6bd8d295\/4_r.jpg",
|
|
112
|
+
"front": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/4\/bda2a018e6d4ba63cdb86aaf6bd8d295\/4_f.jpg",
|
|
113
|
+
"back": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/4\/bda2a018e6d4ba63cdb86aaf6bd8d295\/4_b.jpg"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"index": 5,
|
|
117
|
+
"up": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/5\/f6f2b65ecdf3618ebe79e470ed978d9f\/5_u.jpg",
|
|
118
|
+
"down": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/5\/f6f2b65ecdf3618ebe79e470ed978d9f\/5_d.jpg",
|
|
119
|
+
"left": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/5\/f6f2b65ecdf3618ebe79e470ed978d9f\/5_l.jpg",
|
|
120
|
+
"right": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/5\/f6f2b65ecdf3618ebe79e470ed978d9f\/5_r.jpg",
|
|
121
|
+
"front": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/5\/f6f2b65ecdf3618ebe79e470ed978d9f\/5_f.jpg",
|
|
122
|
+
"back": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/5\/f6f2b65ecdf3618ebe79e470ed978d9f\/5_b.jpg"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"index": 6,
|
|
126
|
+
"up": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/6\/f5c80eedf90fab92c3e28025e5cf1701\/6_u.jpg",
|
|
127
|
+
"down": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/6\/f5c80eedf90fab92c3e28025e5cf1701\/6_d.jpg",
|
|
128
|
+
"left": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/6\/f5c80eedf90fab92c3e28025e5cf1701\/6_l.jpg",
|
|
129
|
+
"right": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/6\/f5c80eedf90fab92c3e28025e5cf1701\/6_r.jpg",
|
|
130
|
+
"front": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/6\/f5c80eedf90fab92c3e28025e5cf1701\/6_f.jpg",
|
|
131
|
+
"back": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/6\/f5c80eedf90fab92c3e28025e5cf1701\/6_b.jpg"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"index": 7,
|
|
135
|
+
"up": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/7\/e7609b5109d6dce4cd3ef2c7243b32f4\/7_u.jpg",
|
|
136
|
+
"down": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/7\/e7609b5109d6dce4cd3ef2c7243b32f4\/7_d.jpg",
|
|
137
|
+
"left": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/7\/e7609b5109d6dce4cd3ef2c7243b32f4\/7_l.jpg",
|
|
138
|
+
"right": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/7\/e7609b5109d6dce4cd3ef2c7243b32f4\/7_r.jpg",
|
|
139
|
+
"front": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/7\/e7609b5109d6dce4cd3ef2c7243b32f4\/7_f.jpg",
|
|
140
|
+
"back": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/7\/e7609b5109d6dce4cd3ef2c7243b32f4\/7_b.jpg"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"index": 8,
|
|
144
|
+
"up": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/8\/ab3505c91eca2a2ae84ccf00b61c2d24\/8_u.jpg",
|
|
145
|
+
"down": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/8\/ab3505c91eca2a2ae84ccf00b61c2d24\/8_d.jpg",
|
|
146
|
+
"left": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/8\/ab3505c91eca2a2ae84ccf00b61c2d24\/8_l.jpg",
|
|
147
|
+
"right": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/8\/ab3505c91eca2a2ae84ccf00b61c2d24\/8_r.jpg",
|
|
148
|
+
"front": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/8\/ab3505c91eca2a2ae84ccf00b61c2d24\/8_f.jpg",
|
|
149
|
+
"back": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/8\/ab3505c91eca2a2ae84ccf00b61c2d24\/8_b.jpg"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"index": 9,
|
|
153
|
+
"up": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/9\/abb9cda32ccb7b2caf42020893ab0aab\/9_u.jpg",
|
|
154
|
+
"down": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/9\/abb9cda32ccb7b2caf42020893ab0aab\/9_d.jpg",
|
|
155
|
+
"left": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/9\/abb9cda32ccb7b2caf42020893ab0aab\/9_l.jpg",
|
|
156
|
+
"right": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/9\/abb9cda32ccb7b2caf42020893ab0aab\/9_r.jpg",
|
|
157
|
+
"front": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/9\/abb9cda32ccb7b2caf42020893ab0aab\/9_f.jpg",
|
|
158
|
+
"back": "https:\/\/vrlab-public.ljcdn.com\/release\/auto3dhd\/a62e1ebf7d013f7df117551a14af79fc\/images\/cube_2048\/9\/abb9cda32ccb7b2caf42020893ab0aab\/9_b.jpg"
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"work_code": "2kbe37PwJOwMYqG8"
|
|
162
|
+
},
|
|
163
|
+
"observers": [
|
|
164
|
+
{
|
|
165
|
+
"visible_nodes": [
|
|
166
|
+
1,
|
|
167
|
+
2
|
|
168
|
+
],
|
|
169
|
+
"accessible_nodes": [
|
|
170
|
+
1,
|
|
171
|
+
2
|
|
172
|
+
],
|
|
173
|
+
"index": 0,
|
|
174
|
+
"quaternion": {
|
|
175
|
+
"w": 0.45076583925142194,
|
|
176
|
+
"x": 0.010070951976936936,
|
|
177
|
+
"y": -0.8925839597148215,
|
|
178
|
+
"z": -0.0016154299986102319
|
|
179
|
+
},
|
|
180
|
+
"standing_position": [
|
|
181
|
+
-6.956049919128418,
|
|
182
|
+
-1.3924440682333898,
|
|
183
|
+
1.6591600179672241
|
|
184
|
+
],
|
|
185
|
+
"position": [
|
|
186
|
+
-6.956049919128418,
|
|
187
|
+
-0.10312400013208389,
|
|
188
|
+
1.6591600179672241
|
|
189
|
+
],
|
|
190
|
+
"floor_index": 0,
|
|
191
|
+
"offset_point_count": 0,
|
|
192
|
+
"device_info": null,
|
|
193
|
+
"work_code": "2kbe37PwJOwMYqG8"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"visible_nodes": [
|
|
197
|
+
0,
|
|
198
|
+
2,
|
|
199
|
+
4,
|
|
200
|
+
9
|
|
201
|
+
],
|
|
202
|
+
"accessible_nodes": [
|
|
203
|
+
0,
|
|
204
|
+
2,
|
|
205
|
+
4,
|
|
206
|
+
9
|
|
207
|
+
],
|
|
208
|
+
"index": 1,
|
|
209
|
+
"quaternion": {
|
|
210
|
+
"w": -0.9884643083591809,
|
|
211
|
+
"x": -0.0038900979633806664,
|
|
212
|
+
"y": 0.1512670435365699,
|
|
213
|
+
"z": -0.006439990839033269
|
|
214
|
+
},
|
|
215
|
+
"standing_position": [
|
|
216
|
+
-6.176340103149414,
|
|
217
|
+
-1.380554749576384,
|
|
218
|
+
2.179759979248047
|
|
219
|
+
],
|
|
220
|
+
"position": [
|
|
221
|
+
-6.176340103149414,
|
|
222
|
+
-0.10025200247764587,
|
|
223
|
+
2.179759979248047
|
|
224
|
+
],
|
|
225
|
+
"floor_index": 0,
|
|
226
|
+
"offset_point_count": 0,
|
|
227
|
+
"device_info": null,
|
|
228
|
+
"work_code": "2kbe37PwJOwMYqG8"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"visible_nodes": [
|
|
232
|
+
0,
|
|
233
|
+
1,
|
|
234
|
+
3,
|
|
235
|
+
5,
|
|
236
|
+
6,
|
|
237
|
+
7
|
|
238
|
+
],
|
|
239
|
+
"accessible_nodes": [
|
|
240
|
+
0,
|
|
241
|
+
1,
|
|
242
|
+
3,
|
|
243
|
+
5,
|
|
244
|
+
6,
|
|
245
|
+
7
|
|
246
|
+
],
|
|
247
|
+
"index": 2,
|
|
248
|
+
"quaternion": {
|
|
249
|
+
"w": -0.9759043268507697,
|
|
250
|
+
"x": -0.0019721373978620915,
|
|
251
|
+
"y": -0.21808668862894345,
|
|
252
|
+
"z": 0.006711333945888228
|
|
253
|
+
},
|
|
254
|
+
"standing_position": [
|
|
255
|
+
-5.437339782714844,
|
|
256
|
+
-1.383095554575539,
|
|
257
|
+
2.598710060119629
|
|
258
|
+
],
|
|
259
|
+
"position": [
|
|
260
|
+
-5.437339782714844,
|
|
261
|
+
-0.09842800348997116,
|
|
262
|
+
2.598710060119629
|
|
263
|
+
],
|
|
264
|
+
"floor_index": 0,
|
|
265
|
+
"offset_point_count": 0,
|
|
266
|
+
"device_info": null,
|
|
267
|
+
"work_code": "2kbe37PwJOwMYqG8"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"visible_nodes": [
|
|
271
|
+
2,
|
|
272
|
+
4,
|
|
273
|
+
5,
|
|
274
|
+
6,
|
|
275
|
+
7
|
|
276
|
+
],
|
|
277
|
+
"accessible_nodes": [
|
|
278
|
+
2,
|
|
279
|
+
4,
|
|
280
|
+
5,
|
|
281
|
+
6,
|
|
282
|
+
7
|
|
283
|
+
],
|
|
284
|
+
"index": 3,
|
|
285
|
+
"quaternion": {
|
|
286
|
+
"w": -0.029965333012015812,
|
|
287
|
+
"x": 0.004792436102214012,
|
|
288
|
+
"y": -0.9995382032440286,
|
|
289
|
+
"z": -0.0015766008368684518
|
|
290
|
+
},
|
|
291
|
+
"standing_position": [
|
|
292
|
+
-5.576590061187744,
|
|
293
|
+
-1.3838616484886683,
|
|
294
|
+
-0.6104490160942078
|
|
295
|
+
],
|
|
296
|
+
"position": [
|
|
297
|
+
-5.576590061187744,
|
|
298
|
+
-0.09492909908294678,
|
|
299
|
+
-0.6104490160942078
|
|
300
|
+
],
|
|
301
|
+
"floor_index": 0,
|
|
302
|
+
"offset_point_count": 0,
|
|
303
|
+
"device_info": null,
|
|
304
|
+
"work_code": "2kbe37PwJOwMYqG8"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"visible_nodes": [
|
|
308
|
+
1,
|
|
309
|
+
3
|
|
310
|
+
],
|
|
311
|
+
"accessible_nodes": [
|
|
312
|
+
1,
|
|
313
|
+
3
|
|
314
|
+
],
|
|
315
|
+
"index": 4,
|
|
316
|
+
"quaternion": {
|
|
317
|
+
"w": -0.7784191742286066,
|
|
318
|
+
"x": 0.0061470501387415315,
|
|
319
|
+
"y": -0.6276976570495352,
|
|
320
|
+
"z": 0.004634062159598484
|
|
321
|
+
},
|
|
322
|
+
"standing_position": [
|
|
323
|
+
-4.817440032958984,
|
|
324
|
+
-1.4112677188270255,
|
|
325
|
+
-0.9183740019798279
|
|
326
|
+
],
|
|
327
|
+
"position": [
|
|
328
|
+
-4.817440032958984,
|
|
329
|
+
-0.11868900060653687,
|
|
330
|
+
-0.9183740019798279
|
|
331
|
+
],
|
|
332
|
+
"floor_index": 0,
|
|
333
|
+
"offset_point_count": 0,
|
|
334
|
+
"device_info": null,
|
|
335
|
+
"work_code": "2kbe37PwJOwMYqG8"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"visible_nodes": [
|
|
339
|
+
2,
|
|
340
|
+
3,
|
|
341
|
+
6,
|
|
342
|
+
7
|
|
343
|
+
],
|
|
344
|
+
"accessible_nodes": [
|
|
345
|
+
2,
|
|
346
|
+
3,
|
|
347
|
+
6,
|
|
348
|
+
7
|
|
349
|
+
],
|
|
350
|
+
"index": 5,
|
|
351
|
+
"quaternion": {
|
|
352
|
+
"w": -0.008301990565287179,
|
|
353
|
+
"x": 0.0010872283475401893,
|
|
354
|
+
"y": -0.9999649444038442,
|
|
355
|
+
"z": 2.064128384382794e-5
|
|
356
|
+
},
|
|
357
|
+
"standing_position": [
|
|
358
|
+
-5.5607099533081055,
|
|
359
|
+
-1.3013700964729957,
|
|
360
|
+
-2.5796799659729004
|
|
361
|
+
],
|
|
362
|
+
"position": [
|
|
363
|
+
-5.5607099533081055,
|
|
364
|
+
-0.013925399631261826,
|
|
365
|
+
-2.5796799659729004
|
|
366
|
+
],
|
|
367
|
+
"floor_index": 0,
|
|
368
|
+
"offset_point_count": 0,
|
|
369
|
+
"device_info": null,
|
|
370
|
+
"work_code": "2kbe37PwJOwMYqG8"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"visible_nodes": [
|
|
374
|
+
2,
|
|
375
|
+
3,
|
|
376
|
+
5,
|
|
377
|
+
7,
|
|
378
|
+
8
|
|
379
|
+
],
|
|
380
|
+
"accessible_nodes": [
|
|
381
|
+
2,
|
|
382
|
+
3,
|
|
383
|
+
5,
|
|
384
|
+
7,
|
|
385
|
+
8
|
|
386
|
+
],
|
|
387
|
+
"index": 6,
|
|
388
|
+
"quaternion": {
|
|
389
|
+
"w": -0.9524056894064341,
|
|
390
|
+
"x": 0.003977047065914255,
|
|
391
|
+
"y": -0.30475313278605054,
|
|
392
|
+
"z": 0.005755277061564329
|
|
393
|
+
},
|
|
394
|
+
"standing_position": [
|
|
395
|
+
-5.829790115356445,
|
|
396
|
+
-1.3787892565785258,
|
|
397
|
+
4.545259952545166
|
|
398
|
+
],
|
|
399
|
+
"position": [
|
|
400
|
+
-5.829790115356445,
|
|
401
|
+
-0.08911240100860596,
|
|
402
|
+
4.545259952545166
|
|
403
|
+
],
|
|
404
|
+
"floor_index": 0,
|
|
405
|
+
"offset_point_count": 0,
|
|
406
|
+
"device_info": null,
|
|
407
|
+
"work_code": "2kbe37PwJOwMYqG8"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"visible_nodes": [
|
|
411
|
+
2,
|
|
412
|
+
3,
|
|
413
|
+
5,
|
|
414
|
+
6
|
|
415
|
+
],
|
|
416
|
+
"accessible_nodes": [
|
|
417
|
+
2,
|
|
418
|
+
3,
|
|
419
|
+
5,
|
|
420
|
+
6
|
|
421
|
+
],
|
|
422
|
+
"index": 7,
|
|
423
|
+
"quaternion": {
|
|
424
|
+
"w": -0.9793688239077526,
|
|
425
|
+
"x": 0.000149504411328741,
|
|
426
|
+
"y": -0.20206542477861278,
|
|
427
|
+
"z": -0.0024980745397071816
|
|
428
|
+
},
|
|
429
|
+
"standing_position": [
|
|
430
|
+
-6.018280029296875,
|
|
431
|
+
-1.368765398621047,
|
|
432
|
+
7.492519855499268
|
|
433
|
+
],
|
|
434
|
+
"position": [
|
|
435
|
+
-6.018280029296875,
|
|
436
|
+
-0.09965620189905167,
|
|
437
|
+
7.492519855499268
|
|
438
|
+
],
|
|
439
|
+
"floor_index": 0,
|
|
440
|
+
"offset_point_count": 0,
|
|
441
|
+
"device_info": null,
|
|
442
|
+
"work_code": "2kbe37PwJOwMYqG8"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"visible_nodes": [
|
|
446
|
+
6,
|
|
447
|
+
9
|
|
448
|
+
],
|
|
449
|
+
"accessible_nodes": [
|
|
450
|
+
6,
|
|
451
|
+
9
|
|
452
|
+
],
|
|
453
|
+
"index": 8,
|
|
454
|
+
"quaternion": {
|
|
455
|
+
"w": -0.7800473501085893,
|
|
456
|
+
"x": -0.001135920118785392,
|
|
457
|
+
"y": -0.6257123047165654,
|
|
458
|
+
"z": -0.002988083746027829
|
|
459
|
+
},
|
|
460
|
+
"standing_position": [
|
|
461
|
+
-4.782979965209961,
|
|
462
|
+
-1.3791146295179708,
|
|
463
|
+
4.005970001220703
|
|
464
|
+
],
|
|
465
|
+
"position": [
|
|
466
|
+
-4.782979965209961,
|
|
467
|
+
-0.09461440145969391,
|
|
468
|
+
4.005970001220703
|
|
469
|
+
],
|
|
470
|
+
"floor_index": 0,
|
|
471
|
+
"offset_point_count": 0,
|
|
472
|
+
"device_info": null,
|
|
473
|
+
"work_code": "2kbe37PwJOwMYqG8"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"visible_nodes": [
|
|
477
|
+
1,
|
|
478
|
+
8
|
|
479
|
+
],
|
|
480
|
+
"accessible_nodes": [
|
|
481
|
+
1,
|
|
482
|
+
8
|
|
483
|
+
],
|
|
484
|
+
"index": 9,
|
|
485
|
+
"quaternion": {
|
|
486
|
+
"w": -0.9990515085044664,
|
|
487
|
+
"x": 0.0014573951598469209,
|
|
488
|
+
"y": -0.04350557140644017,
|
|
489
|
+
"z": -0.001106412146558715
|
|
490
|
+
},
|
|
491
|
+
"standing_position": [
|
|
492
|
+
-4.202330112457275,
|
|
493
|
+
-1.3785217045092475,
|
|
494
|
+
5.68356990814209
|
|
495
|
+
],
|
|
496
|
+
"position": [
|
|
497
|
+
-4.202330112457275,
|
|
498
|
+
-0.09259240329265594,
|
|
499
|
+
5.68356990814209
|
|
500
|
+
],
|
|
501
|
+
"floor_index": 0,
|
|
502
|
+
"offset_point_count": 0,
|
|
503
|
+
"device_info": null,
|
|
504
|
+
"work_code": "2kbe37PwJOwMYqG8"
|
|
505
|
+
}
|
|
506
|
+
]
|
|
507
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<title>SAMPLE</title>
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
7
|
+
<style>
|
|
8
|
+
* { margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
|
|
9
|
+
</style>
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="app"></div>
|
|
13
|
+
<script>
|
|
14
|
+
document.write('<script src="./index.bundle.js"><\/script>')
|
|
15
|
+
</script>
|
|
16
|
+
</body>
|
|
17
|
+
</html>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
|
|
3
|
+
import * as THREE from "three";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import * as ReactDOM from "react-dom";
|
|
6
|
+
import { Work, parseWork } from "@realsee/five";
|
|
7
|
+
import { createFiveProvider, FiveCanvas } from "@realsee/five/react";
|
|
8
|
+
import { FiveTagComponent, Tag } from "../lib/index";
|
|
9
|
+
|
|
10
|
+
const FiveProvider = createFiveProvider({
|
|
11
|
+
imageOptions: { size: 1024 },
|
|
12
|
+
onlyRenderIfNeeds: true,
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const Viewport: React.FC = () => {
|
|
16
|
+
return <div style={{ position: "absolute", left: 0, top: 0 }}>
|
|
17
|
+
<FiveCanvas width={512} height={512}/>
|
|
18
|
+
</div>
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const initialTags = [{
|
|
22
|
+
position: new THREE.Vector3(-5.442246918806951, -0.24883595764420757, 6.638120417581523),
|
|
23
|
+
label: "我是一个标签",
|
|
24
|
+
}];
|
|
25
|
+
|
|
26
|
+
const Addon: React.FC = () => {
|
|
27
|
+
|
|
28
|
+
const [tags, setTags] = React.useState(initialTags);
|
|
29
|
+
|
|
30
|
+
return <div style={{ position: "absolute", left: 0, top: 0, pointerEvents: "none" }}>
|
|
31
|
+
<FiveTagComponent width={512} height={512} initialTags={tags} onChange={tags => setTags(tags)}/>
|
|
32
|
+
<pre style={{padding: 10}}>
|
|
33
|
+
Tag Data <br/>{ JSON.stringify(tags, null, " ") }
|
|
34
|
+
</pre>
|
|
35
|
+
</div>
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const App: React.FC = () => {
|
|
39
|
+
|
|
40
|
+
const [work, setWork] = React.useState<Work>();
|
|
41
|
+
|
|
42
|
+
const loadWork = React.useCallback((url: string) => {
|
|
43
|
+
fetch(url)
|
|
44
|
+
.then(res => res.json())
|
|
45
|
+
.then(data => setWork(parseWork(data)));
|
|
46
|
+
}, []);
|
|
47
|
+
|
|
48
|
+
React.useEffect(() => {
|
|
49
|
+
loadWork("./data.json");
|
|
50
|
+
}, []);
|
|
51
|
+
|
|
52
|
+
if (work) {
|
|
53
|
+
return <FiveProvider initialWork={work}>
|
|
54
|
+
<Viewport/>
|
|
55
|
+
<Addon/>
|
|
56
|
+
</FiveProvider>;
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
ReactDOM.render(<App/>, document.getElementById("app"));
|