@realsee/dnalogel 0.1.0

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.
Files changed (271) hide show
  1. package/README.md +94 -0
  2. package/TERMS.txt +56 -0
  3. package/components/ARVideoFigure/ARVideoFigureMesh.d.ts +44 -0
  4. package/components/ARVideoFigure/ARVideoFigureMesh.js +347 -0
  5. package/components/ARVideoFigure/ARVideoFigureScene.d.ts +11 -0
  6. package/components/ARVideoFigure/ARVideoFigureScene.js +74 -0
  7. package/components/ARVideoFigure/ImgBgTransparent.d.ts +16 -0
  8. package/components/ARVideoFigure/ImgBgTransparent.js +49 -0
  9. package/components/ARVideoFigure/ImgBgTransparentMesh.d.ts +30 -0
  10. package/components/ARVideoFigure/ImgBgTransparentMesh.js +173 -0
  11. package/components/ARVideoFigure/fragmentShader.d.ts +5 -0
  12. package/components/ARVideoFigure/fragmentShader.js +16 -0
  13. package/components/ARVideoFigure/index.d.ts +15 -0
  14. package/components/ARVideoFigure/index.js +64 -0
  15. package/components/ARVideoFigure/vertexShader.d.ts +1 -0
  16. package/components/ARVideoFigure/vertexShader.js +8 -0
  17. package/components/GlassFilters/index.d.ts +32 -0
  18. package/components/GlassFilters/index.js +54 -0
  19. package/components/ModelView/ModelViewController.d.ts +18 -0
  20. package/components/ModelView/ModelViewController.js +147 -0
  21. package/components/ModelView/index.d.ts +10 -0
  22. package/components/ModelView/index.js +22 -0
  23. package/components/PBRView/index.d.ts +14 -0
  24. package/components/PBRView/index.js +31 -0
  25. package/components/PaintBrush/index.d.ts +16 -0
  26. package/components/PaintBrush/index.js +33 -0
  27. package/components/PanoTag/index.d.ts +4 -0
  28. package/components/PanoTag/index.js +11 -0
  29. package/custom.d.js +3 -0
  30. package/data/1aGKl9JmrlXMXx8d.d.ts +104 -0
  31. package/data/1aGKl9JmrlXMXx8d.js +535 -0
  32. package/data/6gyq3v1verxD7JO1.d.ts +104 -0
  33. package/data/6gyq3v1verxD7JO1.js +460 -0
  34. package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.d.ts +84 -0
  35. package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.js +598 -0
  36. package/data/PrXel3aqGbp34JQn.d.ts +389 -0
  37. package/data/PrXel3aqGbp34JQn.js +4639 -0
  38. package/data/YdoNP9K4rwQDwjJr.d.ts +83 -0
  39. package/data/YdoNP9K4rwQDwjJr.js +1451 -0
  40. package/data/auto3d-njL5J99VwCmnjtQElOmXQr.d.ts +86 -0
  41. package/data/auto3d-njL5J99VwCmnjtQElOmXQr.js +709 -0
  42. package/data/oPzy3ApbjjpD8YdR.d.ts +83 -0
  43. package/data/oPzy3ApbjjpD8YdR.js +281 -0
  44. package/data/qjAxMG4XbPn96wKG.d.ts +104 -0
  45. package/data/qjAxMG4XbPn96wKG.js +635 -0
  46. package/data/rXel3aPQRRBD4JQn.d.ts +86 -0
  47. package/data/rXel3aPQRRBD4JQn.js +620 -0
  48. package/data/vLykj3NWrllMrG06.d.ts +89 -0
  49. package/data/vLykj3NWrllMrG06.js +2532 -0
  50. package/data/wYnRjQ4KZoV1yPoG.d.ts +114 -0
  51. package/data/wYnRjQ4KZoV1yPoG.js +512 -0
  52. package/data/wz0QV9KA4ugyo9ME.d.ts +39 -0
  53. package/data/wz0QV9KA4ugyo9ME.js +134 -0
  54. package/examples/FiveStateController/index.js +140 -0
  55. package/examples/VRHouse/Mobile.js +22 -0
  56. package/examples/VRHouse/PC.js +22 -0
  57. package/examples/VRHouse/index.js +22 -0
  58. package/index.d.ts +15 -0
  59. package/index.js +43 -0
  60. package/package.json +19 -0
  61. package/plugins/CSS3DRenderPlugin/components/Marker/index.d.ts +12 -0
  62. package/plugins/CSS3DRenderPlugin/components/Marker/index.js +113 -0
  63. package/plugins/CSS3DRenderPlugin/index.d.ts +49 -0
  64. package/plugins/CSS3DRenderPlugin/index.js +220 -0
  65. package/plugins/CameraMovementPlugin/index.d.ts +7 -0
  66. package/plugins/CameraMovementPlugin/index.js +338 -0
  67. package/plugins/CameraMovementPlugin/typing.d.ts +68 -0
  68. package/plugins/CameraMovementPlugin/typing.js +35 -0
  69. package/plugins/ModelChassisCompassPlugin/index.d.ts +15 -0
  70. package/plugins/ModelChassisCompassPlugin/index.js +156 -0
  71. package/plugins/ModelEntryDoorGuidePlugin/index.d.ts +10 -0
  72. package/plugins/ModelEntryDoorGuidePlugin/index.js +16 -0
  73. package/plugins/ModelTVVideoPlugin/index.d.ts +21 -0
  74. package/plugins/ModelTVVideoPlugin/index.js +313 -0
  75. package/plugins/ModelViewPlugin/index.d.ts +17 -0
  76. package/plugins/ModelViewPlugin/index.js +199 -0
  77. package/plugins/PanoCursorRaycasterPlugin/PanoCursorRaycasterPluginUsage.d.ts +48 -0
  78. package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.d.ts +9 -0
  79. package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.js +113 -0
  80. package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.d.ts +11 -0
  81. package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.js +25 -0
  82. package/plugins/PanoCursorRaycasterPlugin/index.d.ts +49 -0
  83. package/plugins/PanoCursorRaycasterPlugin/index.js +119 -0
  84. package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.d.ts +5 -0
  85. package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.js +25 -0
  86. package/plugins/PanoCursorRaycasterPlugin/utils/createLine.d.ts +3 -0
  87. package/plugins/PanoCursorRaycasterPlugin/utils/createLine.js +34 -0
  88. package/plugins/PanoCursorRaycasterPlugin/utils/vecror3.d.ts +7 -0
  89. package/plugins/PanoCursorRaycasterPlugin/utils/vecror3.js +18 -0
  90. package/plugins/PanoDoorLabelPlugin/index.d.ts +4 -0
  91. package/plugins/PanoDoorLabelPlugin/index.js +12 -0
  92. package/plugins/PanoIRobotPlugin/index.d.ts +10 -0
  93. package/plugins/PanoIRobotPlugin/index.js +16 -0
  94. package/plugins/PanoRulerPlugin/data/roomInfo.d.ts +3 -0
  95. package/plugins/PanoRulerPlugin/data/roomInfo.js +49 -0
  96. package/plugins/PanoRulerPlugin/data/roomRules.d.ts +3 -0
  97. package/plugins/PanoRulerPlugin/data/roomRules.js +233 -0
  98. package/plugins/PanoRulerPlugin/index.d.ts +27 -0
  99. package/plugins/PanoRulerPlugin/index.js +589 -0
  100. package/plugins/PanoRulerPlugin/typings.d.ts +21 -0
  101. package/plugins/PanoRulerPlugin/typings.js +5 -0
  102. package/plugins/PanoTVVideoPlugin/index.d.ts +24 -0
  103. package/plugins/PanoTVVideoPlugin/index.js +351 -0
  104. package/plugins/TreasurePlugin/Controller.d.ts +32 -0
  105. package/plugins/TreasurePlugin/Controller.js +175 -0
  106. package/plugins/TreasurePlugin/TreasureFaceAnime.d.ts +23 -0
  107. package/plugins/TreasurePlugin/TreasureFaceAnime.js +128 -0
  108. package/plugins/TreasurePlugin/TreasureObject.d.ts +35 -0
  109. package/plugins/TreasurePlugin/TreasureObject.js +186 -0
  110. package/plugins/TreasurePlugin/TreasureOpenAnime.d.ts +23 -0
  111. package/plugins/TreasurePlugin/TreasureOpenAnime.js +103 -0
  112. package/plugins/TreasurePlugin/constants.d.ts +12 -0
  113. package/plugins/TreasurePlugin/constants.js +30 -0
  114. package/plugins/TreasurePlugin/index.d.ts +11 -0
  115. package/plugins/TreasurePlugin/index.js +16 -0
  116. package/plugins/TreasurePlugin/treasureDataMap.d.ts +7 -0
  117. package/plugins/TreasurePlugin/treasureDataMap.js +20 -0
  118. package/plugins/TreasurePlugin/typings.d.ts +2 -0
  119. package/plugins/TreasurePlugin/typings.js +5 -0
  120. package/plugins/TreasurePlugin/utils/loadTreasureTextures.d.ts +7 -0
  121. package/plugins/TreasurePlugin/utils/loadTreasureTextures.js +115 -0
  122. package/plugins/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
  123. package/plugins/floorplan/Assets/floorplanExtraObject.js +8 -0
  124. package/plugins/floorplan/ModelFloorplanPlugin/Controller.d.ts +100 -0
  125. package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +643 -0
  126. package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.d.ts +13 -0
  127. package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +58 -0
  128. package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.d.ts +5 -0
  129. package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +69 -0
  130. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.d.ts +10 -0
  131. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.js +105 -0
  132. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.d.ts +13 -0
  133. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +95 -0
  134. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.d.ts +13 -0
  135. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +48 -0
  136. package/plugins/floorplan/ModelFloorplanPlugin/components/index.d.ts +20 -0
  137. package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +66 -0
  138. package/plugins/floorplan/ModelFloorplanPlugin/controller.style.d.ts +1 -0
  139. package/plugins/floorplan/ModelFloorplanPlugin/controller.style.js +14 -0
  140. package/plugins/floorplan/ModelFloorplanPlugin/index.d.ts +9 -0
  141. package/plugins/floorplan/ModelFloorplanPlugin/index.js +18 -0
  142. package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +23 -0
  143. package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.js +5 -0
  144. package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +15 -0
  145. package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.js +31 -0
  146. package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +14 -0
  147. package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +162 -0
  148. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.d.ts +13 -0
  149. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.js +91 -0
  150. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.d.ts +3 -0
  151. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.js +35 -0
  152. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.d.ts +5 -0
  153. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.js +50 -0
  154. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.d.ts +9 -0
  155. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.js +102 -0
  156. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.d.ts +11 -0
  157. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.js +42 -0
  158. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.d.ts +17 -0
  159. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.js +75 -0
  160. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.d.ts +2 -0
  161. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.js +13 -0
  162. package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +33 -0
  163. package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.js +214 -0
  164. package/plugins/floorplan/PanoFloorplanRadarPlugin/index.d.ts +8 -0
  165. package/plugins/floorplan/PanoFloorplanRadarPlugin/index.js +18 -0
  166. package/plugins/floorplan/TopviewFloorplanPlugin/Controller.d.ts +55 -0
  167. package/plugins/floorplan/TopviewFloorplanPlugin/Controller.js +267 -0
  168. package/plugins/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -0
  169. package/plugins/floorplan/TopviewFloorplanPlugin/index.js +16 -0
  170. package/plugins/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
  171. package/plugins/floorplan/TopviewFloorplanPlugin/style.js +14 -0
  172. package/plugins/floorplan/components/FloorplanImage.d.ts +7 -0
  173. package/plugins/floorplan/components/FloorplanImage.js +76 -0
  174. package/plugins/floorplan/typings/floorplanData.d.ts +127 -0
  175. package/plugins/floorplan/typings/floorplanData.js +5 -0
  176. package/plugins/floorplan/typings/floorplanServerData.d.ts +125 -0
  177. package/plugins/floorplan/typings/floorplanServerData.js +380 -0
  178. package/plugins/floorplan/utils/formatData.d.ts +5 -0
  179. package/plugins/floorplan/utils/formatData.js +220 -0
  180. package/plugins/floorplan/utils/formatPosition.d.ts +37 -0
  181. package/plugins/floorplan/utils/formatPosition.js +87 -0
  182. package/shared-utils/Preloader.d.ts +6 -0
  183. package/shared-utils/Preloader.js +51 -0
  184. package/shared-utils/Subscribe.d.ts +45 -0
  185. package/shared-utils/Subscribe.js +210 -0
  186. package/shared-utils/animationFrame/BetterTween.d.ts +11 -0
  187. package/shared-utils/animationFrame/BetterTween.js +102 -0
  188. package/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
  189. package/shared-utils/animationFrame/calculateProgress.js +38 -0
  190. package/shared-utils/animationFrame/formatRad.d.ts +15 -0
  191. package/shared-utils/animationFrame/formatRad.js +34 -0
  192. package/shared-utils/animationFrame/index.d.ts +15 -0
  193. package/shared-utils/animationFrame/index.js +69 -0
  194. package/shared-utils/animationFrame/tween.d.ts +75 -0
  195. package/shared-utils/animationFrame/tween.js +76 -0
  196. package/shared-utils/changeModelCanvansOpacity.d.ts +2 -0
  197. package/shared-utils/changeModelCanvansOpacity.js +24 -0
  198. package/shared-utils/createFiveContainer.d.ts +10 -0
  199. package/shared-utils/createFiveContainer.js +165 -0
  200. package/shared-utils/createLine/index.d.ts +3 -0
  201. package/shared-utils/createLine/index.js +29 -0
  202. package/shared-utils/debounce.d.ts +6 -0
  203. package/shared-utils/debounce.js +26 -0
  204. package/shared-utils/equal.d.ts +11 -0
  205. package/shared-utils/equal.js +96 -0
  206. package/shared-utils/filter.d.ts +27 -0
  207. package/shared-utils/filter.js +93 -0
  208. package/shared-utils/five/changeMode.d.ts +2 -0
  209. package/shared-utils/five/changeMode.js +86 -0
  210. package/shared-utils/five/useFivePlugin.d.ts +1 -0
  211. package/shared-utils/five/useFivePlugin.js +15 -0
  212. package/shared-utils/formatRad.d.ts +7 -0
  213. package/shared-utils/formatRad.js +16 -0
  214. package/shared-utils/getPxmm.d.ts +6 -0
  215. package/shared-utils/getPxmm.js +37 -0
  216. package/shared-utils/getRandomColor.d.ts +1 -0
  217. package/shared-utils/getRandomColor.js +13 -0
  218. package/shared-utils/isTruelyObject.d.ts +18 -0
  219. package/shared-utils/isTruelyObject.js +27 -0
  220. package/shared-utils/math/evenNumber.d.ts +1 -0
  221. package/shared-utils/math/evenNumber.js +11 -0
  222. package/shared-utils/math/planimetry.d.ts +116 -0
  223. package/shared-utils/math/planimetry.js +342 -0
  224. package/shared-utils/math/rad2Deg.d.ts +1 -0
  225. package/shared-utils/math/rad2Deg.js +10 -0
  226. package/shared-utils/nearlyEqual.d.ts +7 -0
  227. package/shared-utils/nearlyEqual.js +17 -0
  228. package/shared-utils/nextFrame.d.ts +1 -0
  229. package/shared-utils/nextFrame.js +13 -0
  230. package/shared-utils/noop.d.ts +5 -0
  231. package/shared-utils/noop.js +17 -0
  232. package/shared-utils/object3d2LocalMatrix.d.ts +12 -0
  233. package/shared-utils/object3d2LocalMatrix.js +73 -0
  234. package/shared-utils/px2rem.d.ts +1 -0
  235. package/shared-utils/px2rem.js +12 -0
  236. package/shared-utils/tap.d.ts +8 -0
  237. package/shared-utils/tap.js +19 -0
  238. package/shared-utils/three/centerPoint.d.ts +2 -0
  239. package/shared-utils/three/centerPoint.js +12 -0
  240. package/shared-utils/three/getNormal.d.ts +2 -0
  241. package/shared-utils/three/getNormal.js +13 -0
  242. package/shared-utils/three/loadFbxObj.d.ts +3 -0
  243. package/shared-utils/three/loadFbxObj.js +42 -0
  244. package/shared-utils/three/loadTexture.d.ts +2 -0
  245. package/shared-utils/three/loadTexture.js +38 -0
  246. package/shared-utils/three/vecror3.d.ts +7 -0
  247. package/shared-utils/three/vecror3.js +18 -0
  248. package/shared-utils/throttle.d.ts +7 -0
  249. package/shared-utils/throttle.js +25 -0
  250. package/shared-utils/to.d.ts +9 -0
  251. package/shared-utils/to.js +25 -0
  252. package/shared-utils/useDebounce.d.ts +8 -0
  253. package/shared-utils/useDebounce.js +43 -0
  254. package/shared-utils/useThrottle.d.ts +8 -0
  255. package/shared-utils/useThrottle.js +41 -0
  256. package/shared-utils/uuid.d.ts +4 -0
  257. package/shared-utils/uuid.js +20 -0
  258. package/shared-utils/vectorTocoordinates.d.ts +7 -0
  259. package/shared-utils/vectorTocoordinates.js +16 -0
  260. package/typedoc/components.d.ts +6 -0
  261. package/typedoc/components.js +5 -0
  262. package/typedoc/plugins.d.ts +17 -0
  263. package/typedoc/plugins.js +113 -0
  264. package/typedoc/shared-utils.d.ts +3 -0
  265. package/typedoc/shared-utils.js +5 -0
  266. package/typedoc/typings.d.ts +3 -0
  267. package/typedoc/typings.js +5 -0
  268. package/typings/math.type.d.ts +44 -0
  269. package/typings/math.type.js +5 -0
  270. package/typings/utils.type.d.ts +2 -0
  271. package/typings/utils.type.js +5 -0
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var workJson = {
8
+ screenshot: !1,
9
+ canFloorpan: !0,
10
+ size: 1024,
11
+ model: {
12
+ file_url: 'https://vrlab-image4.ljcdn.com/vrframework/release/ue4_decoration_plan/wz0QV9KA4ugyo9ME/vrproc-ue4/render/model.domez'
13
+ },
14
+ panoIndex: 3,
15
+ longitude: 6.138322219083363,
16
+ latitude: 0,
17
+ fov: 60,
18
+ observers: [{
19
+ index: 0,
20
+ floor_index: 0,
21
+ position: [-5.2, 1.21, -2.633334],
22
+ standing_position: [-5.2, 0.01, -2.633334],
23
+ quaternion: {
24
+ w: 0.7071067811865475,
25
+ x: 0,
26
+ y: 0.7071067811865475,
27
+ z: 0
28
+ },
29
+ visible_nodes: [1, 2, 3, 4],
30
+ accessible_nodes: [1, 2, 3, 4]
31
+ }, {
32
+ index: 1,
33
+ floor_index: 0,
34
+ position: [-5.366667, 1.21, -0.833334],
35
+ standing_position: [-5.366667, 0.01, -0.833334],
36
+ quaternion: {
37
+ w: 0.7071067811865475,
38
+ x: 0,
39
+ y: 0.7071067811865475,
40
+ z: 0
41
+ },
42
+ visible_nodes: [0, 2, 3, 4],
43
+ accessible_nodes: [0, 2, 3, 4]
44
+ }, {
45
+ index: 2,
46
+ floor_index: 0,
47
+ position: [-3.883334, 1.21, 0.916666],
48
+ standing_position: [-3.883334, 0.01, 0.916666],
49
+ quaternion: {
50
+ w: 0.7071067811865475,
51
+ x: 0,
52
+ y: 0.7071067811865475,
53
+ z: 0
54
+ },
55
+ visible_nodes: [0, 1, 3, 4],
56
+ accessible_nodes: [0, 1, 3, 4]
57
+ }, {
58
+ index: 3,
59
+ floor_index: 0,
60
+ position: [-5.383334, 1.21, 0.75],
61
+ standing_position: [-5.383334, 0.01, 0.75],
62
+ quaternion: {
63
+ w: 0.7071067811865475,
64
+ x: 0,
65
+ y: 0.7071067811865475,
66
+ z: 0
67
+ },
68
+ visible_nodes: [0, 1, 2, 4],
69
+ accessible_nodes: [0, 1, 2, 4]
70
+ }, {
71
+ index: 4,
72
+ floor_index: 0,
73
+ position: [-2.916667, 1.21, -1.816667],
74
+ standing_position: [-2.916667, 0.01, -1.816667],
75
+ quaternion: {
76
+ w: 0.7071067811865475,
77
+ x: 0,
78
+ y: 0.7071067811865475,
79
+ z: 0
80
+ },
81
+ visible_nodes: [0, 1, 2, 3],
82
+ accessible_nodes: [0, 1, 2, 3]
83
+ }],
84
+ panorama: {
85
+ list: [{
86
+ floor_index: 1,
87
+ index: 0,
88
+ right: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/0/0_r.jpg',
89
+ left: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/0/0_l.jpg',
90
+ up: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/0/0_u.jpg',
91
+ down: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/0/0_d.jpg',
92
+ front: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/0/0_f.jpg',
93
+ back: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/0/0_b.jpg'
94
+ }, {
95
+ floor_index: 1,
96
+ index: 1,
97
+ right: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/1/1_r.jpg',
98
+ left: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/1/1_l.jpg',
99
+ up: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/1/1_u.jpg',
100
+ down: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/1/1_d.jpg',
101
+ front: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/1/1_f.jpg',
102
+ back: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/1/1_b.jpg'
103
+ }, {
104
+ floor_index: 1,
105
+ index: 2,
106
+ right: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/2/2_r.jpg',
107
+ left: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/2/2_l.jpg',
108
+ up: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/2/2_u.jpg',
109
+ down: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/2/2_d.jpg',
110
+ front: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/2/2_f.jpg',
111
+ back: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/2/2_b.jpg'
112
+ }, {
113
+ floor_index: 1,
114
+ index: 3,
115
+ right: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/3/3_r.jpg',
116
+ left: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/3/3_l.jpg',
117
+ up: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/3/3_u.jpg',
118
+ down: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/3/3_d.jpg',
119
+ front: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/3/3_f.jpg',
120
+ back: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/3/3_b.jpg'
121
+ }, {
122
+ floor_index: 1,
123
+ index: 4,
124
+ right: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/4/4_r.jpg',
125
+ left: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/4/4_l.jpg',
126
+ up: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/4/4_u.jpg',
127
+ down: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/4/4_d.jpg',
128
+ front: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/4/4_f.jpg',
129
+ back: 'https://vrlab-public.ljcdn.com/release/ue4/d10a81b593102dafc66c73e74b702f2d/ue4_result/4/4_b.jpg'
130
+ }]
131
+ }
132
+ };
133
+ var _default = workJson;
134
+ exports["default"] = _default;
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _style = _interopRequireDefault(require("styled-jsx/style"));
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _react2 = require("@realsee/five/react");
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+
16
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
17
+
18
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
19
+
20
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
21
+
22
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
23
+
24
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
25
+
26
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
+
28
+ var styles = [".controller.jsx-2630336174{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none;padding:2px;line-height:1.5;}", ".panel.jsx-2630336174{margin:5px 0 0 5px;max-width:230px;}", ".panel.jsx-2630336174+.panel.jsx-2630336174{margin-top:10px;}", ".panel.jsx-2630336174 .label.jsx-2630336174{font-weight:bold;margin-bottom:5px;text-shadow:0 0 2px rgba(255,255,255,0.5);}", ".panel.jsx-2630336174 .content.jsx-2630336174{font-size:12px;background-color:#0078e7;color:white;padding:1rem;}", ".state.jsx-2630336174{font-family:monospace;color:yellowgreen;}", ".state_s.jsx-2630336174{color:white;}", ".btns.jsx-2630336174{position:absolute;right:0;left:0;bottom:36px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}", ".btns.jsx-2630336174 button.jsx-2630336174{margin:0 6px;}"];
29
+ /**
30
+ * <br />
31
+ * ### Five 状态控制器
32
+ * > 这是一个简单的 `Five` 状态控制器,用于演示如何控制 `Five` VR 实例的状态。
33
+ *
34
+ * `Five` 实例的核心状态有五个:
35
+ *
36
+ * - `longitude` 视野水平方向位移(左右)。
37
+ * - `latitude` 视野垂直方向位移(上下)。
38
+ * - `fov` 视野大小(远近)。
39
+ * - `panoIndex` 全景模式下所在点位。
40
+ * - `mode` 当前实例所处模式:"Panorama" 全景模式; "Floorplan" 模型模式。
41
+ *
42
+ * @param param `{ showState }` 是否展示状态信息
43
+ */
44
+
45
+ styles.__hash = "2630336174";
46
+
47
+ var FiveStateController = function FiveStateController(_ref) {
48
+ var showState = _ref.showState;
49
+
50
+ var _useFiveCurrentState = (0, _react2.useFiveCurrentState)(),
51
+ _useFiveCurrentState2 = _slicedToArray(_useFiveCurrentState, 2),
52
+ state = _useFiveCurrentState2[0],
53
+ setState = _useFiveCurrentState2[1];
54
+
55
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_style["default"], {
56
+ id: styles.__hash
57
+ }, styles), /*#__PURE__*/_react["default"].createElement("div", {
58
+ className: "jsx-".concat(styles.__hash) + " " + "controller"
59
+ }, /*#__PURE__*/_react["default"].createElement("div", {
60
+ className: "jsx-".concat(styles.__hash) + " " + "panel"
61
+ }, /*#__PURE__*/_react["default"].createElement("div", {
62
+ style: {
63
+ opacity: showState ? '1' : '0'
64
+ },
65
+ className: "jsx-".concat(styles.__hash) + " " + "content"
66
+ }, /*#__PURE__*/_react["default"].createElement("div", {
67
+ className: "jsx-".concat(styles.__hash) + " " + "label"
68
+ }, "\u5F53\u524D\u72B6\u6001"), /*#__PURE__*/_react["default"].createElement("div", {
69
+ className: "jsx-".concat(styles.__hash) + " " + "state"
70
+ }, /*#__PURE__*/_react["default"].createElement("div", {
71
+ className: "jsx-".concat(styles.__hash)
72
+ }, "longitude: ", /*#__PURE__*/_react["default"].createElement("span", {
73
+ className: "jsx-".concat(styles.__hash) + " " + "state_s"
74
+ }, state.longitude.toFixed(10))), /*#__PURE__*/_react["default"].createElement("div", {
75
+ className: "jsx-".concat(styles.__hash)
76
+ }, "latitude: ", /*#__PURE__*/_react["default"].createElement("span", {
77
+ className: "jsx-".concat(styles.__hash) + " " + "state_s"
78
+ }, state.latitude.toFixed(10))), /*#__PURE__*/_react["default"].createElement("div", {
79
+ className: "jsx-".concat(styles.__hash)
80
+ }, "fov: ", /*#__PURE__*/_react["default"].createElement("span", {
81
+ className: "jsx-".concat(styles.__hash) + " " + "state_s"
82
+ }, state.fov.toFixed(0))), /*#__PURE__*/_react["default"].createElement("div", {
83
+ className: "jsx-".concat(styles.__hash)
84
+ }, "panoIndex: ", /*#__PURE__*/_react["default"].createElement("span", {
85
+ className: "jsx-".concat(styles.__hash) + " " + "state_s"
86
+ }, state.panoIndex.toFixed(0))), /*#__PURE__*/_react["default"].createElement("div", {
87
+ className: "jsx-".concat(styles.__hash)
88
+ }, "mode: ", /*#__PURE__*/_react["default"].createElement("span", {
89
+ className: "jsx-".concat(styles.__hash) + " " + "state_s"
90
+ }, state.mode)))), /*#__PURE__*/_react["default"].createElement("div", {
91
+ className: "jsx-".concat(styles.__hash) + " " + "btns"
92
+ }, /*#__PURE__*/_react["default"].createElement("button", {
93
+ onMouseDown: function onMouseDown() {
94
+ return setState({
95
+ longitude: state.longitude - Math.PI / 4
96
+ });
97
+ },
98
+ className: "jsx-".concat(styles.__hash) + " " + "pure-button pure-button-primary"
99
+ }, "\u5411\u5DE6"), /*#__PURE__*/_react["default"].createElement("button", {
100
+ onMouseDown: function onMouseDown() {
101
+ return setState({
102
+ latitude: state.latitude - Math.PI / 4
103
+ });
104
+ },
105
+ className: "jsx-".concat(styles.__hash) + " " + "pure-button pure-button-primary"
106
+ }, "\u5411\u4E0A"), /*#__PURE__*/_react["default"].createElement("button", {
107
+ onMouseDown: function onMouseDown() {
108
+ return setState({
109
+ latitude: state.latitude + Math.PI / 4
110
+ });
111
+ },
112
+ className: "jsx-".concat(styles.__hash) + " " + "pure-button pure-button-primary"
113
+ }, "\u5411\u4E0B"), /*#__PURE__*/_react["default"].createElement("button", {
114
+ onMouseDown: function onMouseDown() {
115
+ return setState({
116
+ longitude: state.longitude + Math.PI / 4
117
+ });
118
+ },
119
+ className: "jsx-".concat(styles.__hash) + " " + "pure-button pure-button-primary"
120
+ }, "\u5411\u53F3"), /*#__PURE__*/_react["default"].createElement("button", {
121
+ onMouseDown: function onMouseDown() {
122
+ return setState({
123
+ fov: state.fov + 20
124
+ });
125
+ },
126
+ className: "jsx-".concat(styles.__hash) + " " + "pure-button pure-button-primary"
127
+ }, "\u89C6\u89D2+"), /*#__PURE__*/_react["default"].createElement("button", {
128
+ onMouseDown: function onMouseDown() {
129
+ return setState({
130
+ fov: state.fov - 20
131
+ });
132
+ },
133
+ className: "jsx-".concat(styles.__hash) + " " + "pure-button pure-button-primary"
134
+ }, "\u89C6\u89D2-")))));
135
+ };
136
+
137
+ exports["default"] = FiveStateController;
138
+ FiveStateController.defaultProps = {
139
+ showState: true
140
+ };
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = ExampleMobile;
9
+
10
+ var React = _interopRequireWildcard(require("react"));
11
+
12
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
+
14
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+
16
+ /**
17
+ * 移动端 VR 看房
18
+ * @returns
19
+ */
20
+ function ExampleMobile() {
21
+ return /*#__PURE__*/React.createElement("div", null, "\u79FB\u52A8\u7AEF VR \u770B\u623F");
22
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = ExamplePC;
9
+
10
+ var React = _interopRequireWildcard(require("react"));
11
+
12
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
+
14
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+
16
+ /**
17
+ * PC端 VR 看房
18
+ * @returns
19
+ */
20
+ function ExamplePC() {
21
+ return /*#__PURE__*/React.createElement("div", null, "PC\u7AEF VR \u770B\u623F");
22
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = VRHouse;
9
+
10
+ var React = _interopRequireWildcard(require("react"));
11
+
12
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
+
14
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+
16
+ /**
17
+ * VR 看房
18
+ * @returns
19
+ */
20
+ function VRHouse() {
21
+ return /*#__PURE__*/React.createElement("div", null, "VR \u770B\u623F");
22
+ }
package/index.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ import GlassFilters from './components/GlassFilters';
2
+ declare const _default: {
3
+ /** React Components */
4
+ GlassFilters: typeof GlassFilters;
5
+ /** Five Plugins */
6
+ ModelChassisCompassPlugin: (five: import("@realsee/five").Five, parameters: import("./plugins/ModelChassisCompassPlugin").ModelChassisCompassPluginParameterType) => import("./plugins/ModelChassisCompassPlugin").ModelChassisCompassPluginExportType;
7
+ ModelTVVideoPlugin: (five: import("@realsee/five").Five, parameters: import("./plugins/ModelTVVideoPlugin").ModelTVVideoPluginParameterType) => import("./plugins/ModelTVVideoPlugin").ModelTVVideoPluginExportType;
8
+ ModelViewPlugin: (five: import("@realsee/five").Five) => import("./plugins/ModelViewPlugin").ModelViewPluginExportType;
9
+ PanoRulerPlugin: (five: import("@realsee/five").Five, parameters: import("./plugins/PanoRulerPlugin").PanoRulerPluginParameterType) => import("./plugins/PanoRulerPlugin").PanoRulerPluginExportType;
10
+ PanoTVVideoPlugin: (five: import("@realsee/five").Five, parameters: import("./plugins/PanoTVVideoPlugin").PanoTVVideoPluginParameterType) => import("./plugins/PanoTVVideoPlugin").PanoTVVideoPluginExportType;
11
+ ModelFloorplanPlugin: (five: import("@realsee/five").Five, parameters: import("./plugins/floorplan/ModelFloorplanPlugin").ModelFloorplanParameterType) => import("./typedoc/plugins").ModelFloorplanPluginController;
12
+ TopviewFloorplanPlugin: (five: import("@realsee/five").Five, parameters: import("./plugins/floorplan/TopviewFloorplanPlugin").TopviewFloorplanPluginParameterType) => import("./typedoc/plugins").TopviewFloorplanPluginController;
13
+ PanoFloorplanRadarPlugin: ((five: import("@realsee/five").Five) => import("./plugins/floorplan/PanoFloorplanRadarPlugin").PanoFloorplanRadarPluginController) | ((five: import("@realsee/five").Five, parameters: import("./plugins/floorplan/PanoFloorplanRadarPlugin").PanoFloorplanRadarPluginControllerParameter) => import("./plugins/floorplan/PanoFloorplanRadarPlugin").PanoFloorplanRadarPluginController);
14
+ };
15
+ export default _default;
package/index.js ADDED
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _GlassFilters = _interopRequireDefault(require("./components/GlassFilters"));
9
+
10
+ var _ModelChassisCompassPlugin = _interopRequireDefault(require("./plugins/ModelChassisCompassPlugin"));
11
+
12
+ var _ModelTVVideoPlugin = _interopRequireDefault(require("./plugins/ModelTVVideoPlugin"));
13
+
14
+ var _ModelViewPlugin = _interopRequireDefault(require("./plugins/ModelViewPlugin"));
15
+
16
+ var _PanoRulerPlugin = _interopRequireDefault(require("./plugins/PanoRulerPlugin"));
17
+
18
+ var _PanoTVVideoPlugin = _interopRequireDefault(require("./plugins/PanoTVVideoPlugin"));
19
+
20
+ var _ModelFloorplanPlugin = _interopRequireDefault(require("./plugins/floorplan/ModelFloorplanPlugin"));
21
+
22
+ var _TopviewFloorplanPlugin = _interopRequireDefault(require("./plugins/floorplan/TopviewFloorplanPlugin"));
23
+
24
+ var _PanoFloorplanRadarPlugin = _interopRequireDefault(require("./plugins/floorplan/PanoFloorplanRadarPlugin"));
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+
28
+ var _default = {
29
+ /** React Components */
30
+ GlassFilters: _GlassFilters["default"],
31
+
32
+ /** Five Plugins */
33
+ ModelChassisCompassPlugin: _ModelChassisCompassPlugin["default"],
34
+ ModelTVVideoPlugin: _ModelTVVideoPlugin["default"],
35
+ ModelViewPlugin: _ModelViewPlugin["default"],
36
+ PanoRulerPlugin: _PanoRulerPlugin["default"],
37
+ PanoTVVideoPlugin: _PanoTVVideoPlugin["default"],
38
+ // floorplan
39
+ ModelFloorplanPlugin: _ModelFloorplanPlugin["default"],
40
+ TopviewFloorplanPlugin: _TopviewFloorplanPlugin["default"],
41
+ PanoFloorplanRadarPlugin: _PanoFloorplanRadarPlugin["default"]
42
+ };
43
+ exports["default"] = _default;
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "@realsee/dnalogel",
3
+ "version": "0.1.0",
4
+ "description": "Realsee Components(React) & Plugins(Five).",
5
+ "author": "BEIKE REALSEE TECHNOLOGY (HK) LIMITED",
6
+ "peerDependencies": {
7
+ "@realsee/five": "^5.0.0-alpha.47",
8
+ "@tweenjs/tween.js": "^18.6.4",
9
+ "@types/styled-jsx": "^2.2.9",
10
+ "react": "^16.14.0",
11
+ "styled-jsx": "^3.4.6",
12
+ "three": "0.117.1",
13
+ "tslib": "^2.3.0",
14
+ "typescript": "^4.3.5"
15
+ },
16
+ "main": "index.js",
17
+ "repository": "git@git.lianjia.com:vrlab_frontend/dnalogel.git",
18
+ "license": "SEE LICENSE IN TERMS.txt"
19
+ }
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import './index.css';
3
+ import { Vector3 } from 'three';
4
+ declare type MarkerProps = {
5
+ color?: string;
6
+ point: Vector3;
7
+ face?: {
8
+ normal: Vector3;
9
+ } | null;
10
+ };
11
+ export default function Marker(props: MarkerProps): JSX.Element;
12
+ export {};
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = Marker;
9
+
10
+ var _react = require("@realsee/five/react");
11
+
12
+ var React = _interopRequireWildcard(require("react"));
13
+
14
+ var THREE = _interopRequireWildcard(require("three"));
15
+
16
+ require("./index.css");
17
+
18
+ var _getRandomColor = _interopRequireDefault(require("../../../../shared-utils/getRandomColor"));
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
+
22
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
+
24
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
+
26
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
27
+
28
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
29
+
30
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
31
+
32
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
33
+
34
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
35
+
36
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
37
+
38
+ function Marker(props) {
39
+ var color = React.useRef(props.color || (0, _getRandomColor["default"])());
40
+ var intersectMeshRef = React.useRef(new THREE.Mesh(new THREE.RingGeometry(0.04, 0.08, 32), new THREE.MeshBasicMaterial({
41
+ color: 0x12fffb,
42
+ opacity: 0,
43
+ side: THREE.DoubleSide,
44
+ transparent: true
45
+ })));
46
+ (0, _react.useFiveSceneEffect)(function (scene) {
47
+ scene.add(intersectMeshRef.current);
48
+ return function () {
49
+ return scene.remove(intersectMeshRef.current);
50
+ };
51
+ }, []);
52
+ var preject2d = (0, _react.useFiveProject2d)();
53
+
54
+ var _React$useState = React.useState({
55
+ left: 0,
56
+ top: 0,
57
+ matrix: '[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]'
58
+ }),
59
+ _React$useState2 = _slicedToArray(_React$useState, 2),
60
+ state = _React$useState2[0],
61
+ setState = _React$useState2[1];
62
+
63
+ var fresh = React.useCallback(function () {
64
+ var _props$point = props.point,
65
+ x = _props$point.x,
66
+ y = _props$point.y,
67
+ z = _props$point.z;
68
+ var vector2 = preject2d(new THREE.Vector3(x, y, z), false);
69
+ if (!vector2) return;
70
+ var left = vector2.x,
71
+ top = vector2.y;
72
+ var matrix;
73
+
74
+ if (props.face) {
75
+ var normal = props.face.normal.clone();
76
+ var positionVector = normal.clone().multiplyScalar(0.05);
77
+ var position = props.point.clone().add(positionVector);
78
+ intersectMeshRef.current.position.copy(position);
79
+ var lookAtVector = position.clone().add(positionVector);
80
+ intersectMeshRef.current.lookAt(lookAtVector);
81
+ matrix = intersectMeshRef.current.modelViewMatrix.clone().toArray().toString();
82
+ }
83
+
84
+ setState({
85
+ left: left,
86
+ top: top,
87
+ matrix: matrix
88
+ });
89
+ }, [props.point]);
90
+ React.useEffect(function () {
91
+ return fresh();
92
+ }, [props]);
93
+ (0, _react.useFiveEventCallback)('stateChange', function () {
94
+ return fresh();
95
+ });
96
+ (0, _react.useFiveEventCallback)('initAnimationEnded', function () {
97
+ return fresh();
98
+ });
99
+ return /*#__PURE__*/React.createElement("div", {
100
+ className: "Marker",
101
+ style: {
102
+ position: 'absolute',
103
+ left: state.left + 'px',
104
+ top: state.top + 'px',
105
+ borderColor: color.current
106
+ }
107
+ }, /*#__PURE__*/React.createElement("div", {
108
+ className: "Marker-inner",
109
+ style: {
110
+ backgroundColor: color.current
111
+ }
112
+ }));
113
+ }
@@ -0,0 +1,49 @@
1
+ import { FivePlugin } from '@realsee/five';
2
+ import { Vector3 } from 'three';
3
+ import { CSS3DObject } from 'three/examples/jsm/renderers/CSS3DRenderer';
4
+ export interface CSS3DRenderPluginParameterType {
5
+ }
6
+ export interface CSS3DRenderPluginExportType {
7
+ /**
8
+ * @description: 根据传入的四个点位创建一个3d dom容器,可以通过ReactDom.render()的方式将react组件放到容器中
9
+ * @param {Five} five
10
+ * @param {Vector3[]} points: 矩形四个点坐标
11
+ * @param {HTMLElement} container: HTMLElement
12
+ * @param {number} config.ratio: 1px对应多少米,默认为 0.002,即1px对应2mm
13
+ * @param {number} config.dpr: dpr, 默认为1
14
+ * @param {number} config.autoRender: 默认为true,如果需要手动render则传false
15
+ * @param {'front' | 'behind'} config.mode: 两种模式
16
+ * @param {HTMLElement} config.behindFiveContainer: 如果config.mode为'behind',需要传入容器,并确保此容器的层级小于five层级
17
+ * @return {{ container: HTMLElement; dispose: () => void }}: container: dom容器, dispose: 清理函数
18
+ */
19
+ create3DDomContainer: (points: [Vector3, Vector3, Vector3, Vector3], container?: HTMLElement, config?: {
20
+ ratio?: number;
21
+ dpr?: number;
22
+ autoRender?: boolean;
23
+ mode?: 'front';
24
+ } | {
25
+ ratio?: number;
26
+ dpr?: number;
27
+ autoRender?: boolean;
28
+ mode: 'behind';
29
+ behindFiveContainer: HTMLElement;
30
+ }) => {
31
+ container: HTMLElement;
32
+ dispose: () => void;
33
+ object: CSS3DObject;
34
+ render?: () => void;
35
+ } | void;
36
+ /**
37
+ * @description: 销毁所有的渲染内容
38
+ * @return {void}
39
+ */
40
+ disposeAll: () => void;
41
+ }
42
+ /**
43
+ * **CSS3DRenderPlugin** 提供矩形区域(三维空间四个坐标点),你可以在此矩形区域中渲染 DOM 内容。
44
+ * 实现原理参考[CSS3DRenderer](https://threejs.org/docs/index.html?q=CSS3D#examples/en/renderers/CSS3DRenderer)。
45
+ *
46
+ * @returns
47
+ */
48
+ export declare const CSS3DRenderPlugin: FivePlugin<CSS3DRenderPluginParameterType, CSS3DRenderPluginExportType>;
49
+ export default CSS3DRenderPlugin;