@realsee/dnalogel 0.1.7 → 2.0.0-alpha.1

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 (477) hide show
  1. package/README.md +6 -90
  2. package/dist/dnalogel.es.js +37145 -0
  3. package/dist/dnalogel.umd.js +2 -0
  4. package/dist/style.css +1 -0
  5. package/{plugins → libs}/CSS3DRenderPlugin/index.d.ts +1 -1
  6. package/libs/CSS3DRenderPlugin/index.js +181 -0
  7. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
  8. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +18 -0
  9. package/{plugins → libs}/CameraMovementPlugin/index.d.ts +0 -0
  10. package/libs/CameraMovementPlugin/index.js +159 -0
  11. package/{plugins → libs}/CameraMovementPlugin/typing.d.ts +0 -0
  12. package/libs/CameraMovementPlugin/typing.js +17 -0
  13. package/{plugins → libs}/ModelChassisCompassPlugin/index.d.ts +1 -1
  14. package/libs/ModelChassisCompassPlugin/index.js +75 -0
  15. package/{plugins → libs}/ModelEntryDoorGuidePlugin/index.d.ts +6 -2
  16. package/libs/ModelEntryDoorGuidePlugin/index.js +136 -0
  17. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
  18. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -0
  19. package/{plugins → libs}/ModelRoomLabelPlugin/Controller.d.ts +3 -2
  20. package/libs/ModelRoomLabelPlugin/Controller.js +100 -0
  21. package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte +63 -0
  22. package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte.map +1 -0
  23. package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte +80 -0
  24. package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte.map +1 -0
  25. package/libs/ModelRoomLabelPlugin/index.d.ts +12 -0
  26. package/libs/ModelRoomLabelPlugin/index.js +9 -0
  27. package/{plugins → libs}/ModelRoomLabelPlugin/typings.d.ts +2 -2
  28. package/libs/ModelRoomLabelPlugin/typings.js +1 -0
  29. package/{plugins → libs}/ModelRoomLabelPlugin/utils/parseData.d.ts +0 -0
  30. package/libs/ModelRoomLabelPlugin/utils/parseData.js +14 -0
  31. package/{plugins → libs}/ModelViewPlugin/index.d.ts +0 -0
  32. package/libs/ModelViewPlugin/index.js +160 -0
  33. package/{plugins → libs}/PanoCursorRaycasterPlugin/index.d.ts +2 -3
  34. package/libs/PanoCursorRaycasterPlugin/index.js +74 -0
  35. package/libs/floorplan/Assets/camera.d.ts +1 -0
  36. package/libs/floorplan/Assets/camera.js +1 -0
  37. package/libs/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
  38. package/libs/floorplan/Assets/floorplanExtraObject.js +1 -0
  39. package/libs/floorplan/Components/BaseImage.svelte +25 -0
  40. package/libs/floorplan/Components/BaseImage.svelte.map +1 -0
  41. package/libs/floorplan/Components/Normalmage.svelte +11 -0
  42. package/libs/floorplan/Components/Normalmage.svelte.map +1 -0
  43. package/libs/floorplan/Components/RoomHighlight/Room.svelte +21 -0
  44. package/libs/floorplan/Components/RoomHighlight/Room.svelte.map +1 -0
  45. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte +60 -0
  46. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte.map +1 -0
  47. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte +35 -0
  48. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte.map +1 -0
  49. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte +7 -0
  50. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte.map +1 -0
  51. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte +16 -0
  52. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte.map +1 -0
  53. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte +17 -0
  54. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte.map +1 -0
  55. package/libs/floorplan/Components/SvgImage.svelte +25 -0
  56. package/libs/floorplan/Components/SvgImage.svelte.map +1 -0
  57. package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.d.ts +1 -0
  58. package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.js +1 -0
  59. package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.svelte +46 -0
  60. package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.svelte.map +1 -0
  61. package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.svelte +48 -0
  62. package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.svelte.map +1 -0
  63. package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte +37 -0
  64. package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte.map +1 -0
  65. package/libs/floorplan/ModelFloorplanPlugin/Components/Main.svelte +50 -0
  66. package/libs/floorplan/ModelFloorplanPlugin/Components/Main.svelte.map +1 -0
  67. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte +41 -0
  68. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte.map +1 -0
  69. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte +25 -0
  70. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte.map +1 -0
  71. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte +148 -0
  72. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte.map +1 -0
  73. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte +15 -0
  74. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte.map +1 -0
  75. package/{plugins → libs}/floorplan/ModelFloorplanPlugin/Controller.d.ts +16 -14
  76. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +357 -0
  77. package/{plugins → libs}/floorplan/ModelFloorplanPlugin/index.d.ts +1 -1
  78. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -0
  79. package/{plugins → libs}/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +0 -0
  80. package/libs/floorplan/ModelFloorplanPlugin/typings/events.type.js +1 -0
  81. package/{plugins → libs}/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +1 -1
  82. package/libs/floorplan/ModelFloorplanPlugin/utils/constant.js +16 -0
  83. package/{plugins → libs}/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +0 -0
  84. package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +46 -0
  85. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte +84 -0
  86. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte.map +1 -0
  87. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte +18 -0
  88. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte.map +1 -0
  89. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte +40 -0
  90. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte.map +1 -0
  91. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte +61 -0
  92. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte.map +1 -0
  93. package/{plugins → libs}/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +6 -11
  94. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +88 -0
  95. package/{plugins → libs}/floorplan/PanoFloorplanRadarPlugin/index.d.ts +0 -0
  96. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -0
  97. package/{plugins → libs}/floorplan/TopviewFloorplanPlugin/Controller.d.ts +15 -11
  98. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +189 -0
  99. package/{plugins → libs}/floorplan/TopviewFloorplanPlugin/index.d.ts +0 -0
  100. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -0
  101. package/{plugins → libs}/floorplan/TopviewFloorplanPlugin/style.d.ts +0 -0
  102. package/libs/floorplan/TopviewFloorplanPlugin/style.js +8 -0
  103. package/{plugins → libs}/floorplan/typings/floorplanData.d.ts +6 -0
  104. package/libs/floorplan/typings/floorplanData.js +6 -0
  105. package/{plugins → libs}/floorplan/typings/floorplanServerData.d.ts +4 -2
  106. package/libs/floorplan/typings/floorplanServerData.js +101 -0
  107. package/libs/floorplan/typings/utility.d.ts +2 -0
  108. package/libs/floorplan/typings/utility.js +1 -0
  109. package/{plugins → libs}/floorplan/utils/formatData.d.ts +3 -3
  110. package/libs/floorplan/utils/formatData.js +94 -0
  111. package/{plugins → libs}/floorplan/utils/formatPosition.d.ts +3 -4
  112. package/libs/floorplan/utils/formatPosition.js +50 -0
  113. package/libs/index.d.ts +17 -0
  114. package/libs/index.js +10 -0
  115. package/{shared-utils → libs/shared-utils}/Preloader.d.ts +0 -0
  116. package/libs/shared-utils/Preloader.js +38 -0
  117. package/{shared-utils → libs/shared-utils}/Subscribe.d.ts +3 -3
  118. package/libs/shared-utils/Subscribe.js +101 -0
  119. package/{shared-utils → libs/shared-utils}/animationFrame/BetterTween.d.ts +0 -0
  120. package/libs/shared-utils/animationFrame/BetterTween.js +30 -0
  121. package/{shared-utils → libs/shared-utils}/animationFrame/calculateProgress.d.ts +0 -0
  122. package/libs/shared-utils/animationFrame/calculateProgress.js +23 -0
  123. package/{shared-utils → libs/shared-utils}/animationFrame/formatRad.d.ts +0 -0
  124. package/libs/shared-utils/animationFrame/formatRad.js +20 -0
  125. package/{shared-utils → libs/shared-utils}/animationFrame/index.d.ts +0 -0
  126. package/libs/shared-utils/animationFrame/index.js +48 -0
  127. package/{shared-utils → libs/shared-utils}/animationFrame/tween.d.ts +0 -0
  128. package/libs/shared-utils/animationFrame/tween.js +44 -0
  129. package/libs/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
  130. package/libs/shared-utils/changeModelCanvasOpacity.js +15 -0
  131. package/{shared-utils → libs/shared-utils}/createCanvasTextTexture.d.ts +0 -0
  132. package/libs/shared-utils/createCanvasTextTexture.js +19 -0
  133. package/{shared-utils → libs/shared-utils}/createLine/index.d.ts +1 -1
  134. package/libs/shared-utils/createLine/index.js +8 -0
  135. package/{shared-utils → libs/shared-utils}/debounce.d.ts +1 -1
  136. package/libs/shared-utils/debounce.js +14 -0
  137. package/{shared-utils → libs/shared-utils}/equal.d.ts +0 -0
  138. package/libs/shared-utils/equal.js +84 -0
  139. package/{shared-utils → libs/shared-utils}/filter.d.ts +0 -0
  140. package/libs/shared-utils/filter.js +53 -0
  141. package/{shared-utils → libs/shared-utils}/five/changeMode.d.ts +0 -0
  142. package/libs/shared-utils/five/changeMode.js +15 -0
  143. package/{shared-utils → libs/shared-utils}/five/useFivePlugin.d.ts +0 -0
  144. package/libs/shared-utils/five/useFivePlugin.js +8 -0
  145. package/{shared-utils → libs/shared-utils}/formatRad.d.ts +0 -0
  146. package/libs/shared-utils/formatRad.js +10 -0
  147. package/{shared-utils → libs/shared-utils}/getPxmm.d.ts +0 -0
  148. package/libs/shared-utils/getPxmm.js +20 -0
  149. package/{shared-utils → libs/shared-utils}/getRandomColor.d.ts +0 -0
  150. package/libs/shared-utils/getRandomColor.js +10 -0
  151. package/{shared-utils → libs/shared-utils}/isNil.d.ts +0 -0
  152. package/libs/shared-utils/isNil.js +14 -0
  153. package/{shared-utils → libs/shared-utils}/isTruelyObject.d.ts +0 -0
  154. package/libs/shared-utils/isTruelyObject.js +20 -0
  155. package/libs/shared-utils/math/evenNumber.d.ts +3 -0
  156. package/libs/shared-utils/math/evenNumber.js +4 -0
  157. package/{shared-utils → libs/shared-utils}/math/planimetry.d.ts +4 -4
  158. package/libs/shared-utils/math/planimetry.js +288 -0
  159. package/{shared-utils → libs/shared-utils}/math/rad2Deg.d.ts +0 -0
  160. package/libs/shared-utils/math/rad2Deg.js +3 -0
  161. package/{shared-utils → libs/shared-utils}/nearlyEqual.d.ts +0 -0
  162. package/libs/shared-utils/nearlyEqual.js +9 -0
  163. package/{shared-utils → libs/shared-utils}/nextFrame.d.ts +0 -0
  164. package/libs/shared-utils/nextFrame.js +6 -0
  165. package/{shared-utils → libs/shared-utils}/noop.d.ts +0 -0
  166. package/libs/shared-utils/noop.js +7 -0
  167. package/{shared-utils → libs/shared-utils}/object3d2LocalMatrix.d.ts +0 -0
  168. package/libs/shared-utils/object3d2LocalMatrix.js +29 -0
  169. package/{shared-utils → libs/shared-utils}/px2rem.d.ts +0 -0
  170. package/libs/shared-utils/px2rem.js +4 -0
  171. package/libs/shared-utils/removeArrayItem.d.ts +7 -0
  172. package/libs/shared-utils/removeArrayItem.js +12 -0
  173. package/{shared-utils → libs/shared-utils}/tap.d.ts +0 -0
  174. package/{shared-utils → libs/shared-utils}/tap.js +4 -13
  175. package/{shared-utils → libs/shared-utils}/three/centerPoint.d.ts +0 -0
  176. package/libs/shared-utils/three/centerPoint.js +4 -0
  177. package/{shared-utils → libs/shared-utils}/three/getExtraModelLoader.d.ts +0 -0
  178. package/libs/shared-utils/three/getExtraModelLoader.js +18 -0
  179. package/{shared-utils → libs/shared-utils}/three/getNormal.d.ts +0 -0
  180. package/libs/shared-utils/three/getNormal.js +6 -0
  181. package/{shared-utils → libs/shared-utils}/three/getTextureLoader.d.ts +0 -0
  182. package/libs/shared-utils/three/getTextureLoader.js +17 -0
  183. package/{shared-utils → libs/shared-utils}/three/loadFbxObj.d.ts +0 -0
  184. package/libs/shared-utils/three/loadFbxObj.js +13 -0
  185. package/libs/shared-utils/three/loadTexture.d.ts +2 -0
  186. package/libs/shared-utils/three/loadTexture.js +10 -0
  187. package/{shared-utils → libs/shared-utils}/three/transformPositionToVector3.d.ts +0 -0
  188. package/libs/shared-utils/three/transformPositionToVector3.js +3 -0
  189. package/{shared-utils → libs/shared-utils}/three/transfromToMeshBasicMaterial.d.ts +0 -0
  190. package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +14 -0
  191. package/{shared-utils → libs/shared-utils}/throttle.d.ts +1 -1
  192. package/libs/shared-utils/throttle.js +18 -0
  193. package/{shared-utils → libs/shared-utils}/to.d.ts +0 -0
  194. package/libs/shared-utils/to.js +18 -0
  195. package/{shared-utils → libs/shared-utils}/useDebounce.d.ts +0 -0
  196. package/libs/shared-utils/useDebounce.js +22 -0
  197. package/{shared-utils → libs/shared-utils}/useThrottle.d.ts +0 -0
  198. package/libs/shared-utils/useThrottle.js +25 -0
  199. package/libs/{gltf-viewer → shared-utils}/uuid.d.ts +0 -0
  200. package/libs/shared-utils/uuid.js +11 -0
  201. package/{shared-utils → libs/shared-utils}/vectorTocoordinates.d.ts +0 -0
  202. package/libs/shared-utils/vectorTocoordinates.js +9 -0
  203. package/{typings → libs/typings}/math.type.d.ts +0 -0
  204. package/libs/typings/math.type.js +1 -0
  205. package/{typings → libs/typings}/utils.type.d.ts +0 -0
  206. package/libs/typings/utils.type.js +1 -0
  207. package/package.json +45 -17
  208. package/TERMS.txt +0 -56
  209. package/components/ARVideoFigure/ARVideoFigureMesh.d.ts +0 -44
  210. package/components/ARVideoFigure/ARVideoFigureMesh.js +0 -371
  211. package/components/ARVideoFigure/ARVideoFigureScene.d.ts +0 -11
  212. package/components/ARVideoFigure/ARVideoFigureScene.js +0 -85
  213. package/components/ARVideoFigure/ImgBgTransparent.d.ts +0 -16
  214. package/components/ARVideoFigure/ImgBgTransparent.js +0 -65
  215. package/components/ARVideoFigure/ImgBgTransparentMesh.d.ts +0 -30
  216. package/components/ARVideoFigure/ImgBgTransparentMesh.js +0 -183
  217. package/components/ARVideoFigure/fragmentShader.d.ts +0 -5
  218. package/components/ARVideoFigure/fragmentShader.js +0 -18
  219. package/components/ARVideoFigure/index.d.ts +0 -15
  220. package/components/ARVideoFigure/index.js +0 -80
  221. package/components/ARVideoFigure/vertexShader.d.ts +0 -1
  222. package/components/ARVideoFigure/vertexShader.js +0 -10
  223. package/components/GLTFView/index.d.ts +0 -72
  224. package/components/GLTFView/index.js +0 -149
  225. package/components/GlassFilters/index.d.ts +0 -32
  226. package/components/GlassFilters/index.js +0 -78
  227. package/components/ModelView/ModelViewController.d.ts +0 -18
  228. package/components/ModelView/ModelViewController.js +0 -157
  229. package/components/ModelView/index.d.ts +0 -10
  230. package/components/ModelView/index.js +0 -24
  231. package/components/PaintBrush/index.d.ts +0 -16
  232. package/components/PaintBrush/index.js +0 -47
  233. package/components/PanoTag/index.d.ts +0 -4
  234. package/components/PanoTag/index.js +0 -13
  235. package/custom.d.js +0 -3
  236. package/data/1aGKl9JmrlXMXx8d.d.ts +0 -104
  237. package/data/1aGKl9JmrlXMXx8d.js +0 -537
  238. package/data/54djM0oR6ky3Ey8e.d.ts +0 -55
  239. package/data/54djM0oR6ky3Ey8e.js +0 -350
  240. package/data/6gyq3v1verxD7JO1.d.ts +0 -104
  241. package/data/6gyq3v1verxD7JO1.js +0 -462
  242. package/data/8054djM0oR6ky3Ey8e.d.ts +0 -55
  243. package/data/8054djM0oR6ky3Ey8e.js +0 -350
  244. package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.d.ts +0 -84
  245. package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.js +0 -600
  246. package/data/PrXel3aqGbp34JQn.d.ts +0 -389
  247. package/data/PrXel3aqGbp34JQn.js +0 -4649
  248. package/data/XJ6NMLWnkAY3Rdx8.d.ts +0 -843
  249. package/data/XJ6NMLWnkAY3Rdx8.js +0 -7989
  250. package/data/YdoNP9K4rwQDwjJr.d.ts +0 -83
  251. package/data/YdoNP9K4rwQDwjJr.js +0 -1453
  252. package/data/ZLvK29zj4L29Jowd.d.ts +0 -55
  253. package/data/ZLvK29zj4L29Jowd.js +0 -372
  254. package/data/auto3d-njL5J99VwCmnjtQElOmXQr.d.ts +0 -86
  255. package/data/auto3d-njL5J99VwCmnjtQElOmXQr.js +0 -711
  256. package/data/extrude-walls/ZLvK29zj4L29Jowd.d.ts +0 -5
  257. package/data/extrude-walls/ZLvK29zj4L29Jowd.js +0 -14
  258. package/data/extrude-walls/lo024DEgzanMj5BE.d.ts +0 -5
  259. package/data/extrude-walls/lo024DEgzanMj5BE.js +0 -14
  260. package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.d.ts +0 -85
  261. package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.js +0 -511
  262. package/data/lo024DEgzanMj5BE.d.ts +0 -55
  263. package/data/lo024DEgzanMj5BE.js +0 -966
  264. package/data/oPzy3ApbjjpD8YdR.d.ts +0 -83
  265. package/data/oPzy3ApbjjpD8YdR.js +0 -283
  266. package/data/qjAxMG4XbPn96wKG.d.ts +0 -104
  267. package/data/qjAxMG4XbPn96wKG.js +0 -637
  268. package/data/rXel3aPQRRBD4JQn.d.ts +0 -86
  269. package/data/rXel3aPQRRBD4JQn.js +0 -622
  270. package/data/vLykj3NWrllMrG06.d.ts +0 -91
  271. package/data/vLykj3NWrllMrG06.js +0 -2729
  272. package/data/wz0QV9KA4ugyo9ME.d.ts +0 -39
  273. package/data/wz0QV9KA4ugyo9ME.js +0 -136
  274. package/data/zxMawr9raSg8LYjG.d.ts +0 -53
  275. package/data/zxMawr9raSg8LYjG.js +0 -590
  276. package/examples/FiveStateController/index.js +0 -134
  277. package/examples/VRHouse/Mobile.js +0 -36
  278. package/examples/VRHouse/PC.js +0 -36
  279. package/examples/VRHouse/index.js +0 -36
  280. package/index.d.ts +0 -15
  281. package/index.js +0 -45
  282. package/libs/gltf-viewer/Subscribe.d.ts +0 -76
  283. package/libs/gltf-viewer/Subscribe.js +0 -231
  284. package/libs/gltf-viewer/coordsMoveByOffset.d.ts +0 -13
  285. package/libs/gltf-viewer/coordsMoveByOffset.js +0 -22
  286. package/libs/gltf-viewer/coordsToDirection.d.ts +0 -5
  287. package/libs/gltf-viewer/coordsToDirection.js +0 -41
  288. package/libs/gltf-viewer/formatRad.d.ts +0 -1
  289. package/libs/gltf-viewer/formatRad.js +0 -13
  290. package/libs/gltf-viewer/getFrameTime.d.ts +0 -1
  291. package/libs/gltf-viewer/getFrameTime.js +0 -28
  292. package/libs/gltf-viewer/index.d.ts +0 -55
  293. package/libs/gltf-viewer/index.js +0 -650
  294. package/libs/gltf-viewer/mouseWheel.d.ts +0 -2
  295. package/libs/gltf-viewer/mouseWheel.js +0 -59
  296. package/libs/gltf-viewer/requestAnimationFrame.d.ts +0 -1
  297. package/libs/gltf-viewer/requestAnimationFrame.js +0 -18
  298. package/libs/gltf-viewer/requestAnimationFrameInterval.d.ts +0 -1
  299. package/libs/gltf-viewer/requestAnimationFrameInterval.js +0 -31
  300. package/libs/gltf-viewer/uuid.js +0 -28
  301. package/plugins/AutoPreloadPlugin/index.d.ts +0 -23
  302. package/plugins/AutoPreloadPlugin/index.js +0 -111
  303. package/plugins/CSS3DRenderPlugin/components/Marker/index.d.ts +0 -12
  304. package/plugins/CSS3DRenderPlugin/components/Marker/index.js +0 -121
  305. package/plugins/CSS3DRenderPlugin/index.js +0 -298
  306. package/plugins/CameraMovementPlugin/index.js +0 -362
  307. package/plugins/CameraMovementPlugin/typing.js +0 -37
  308. package/plugins/ModelChassisCompassPlugin/index.js +0 -157
  309. package/plugins/ModelEntryDoorGuidePlugin/index.js +0 -247
  310. package/plugins/ModelExtrudeWallsPlugin/index.d.ts +0 -16
  311. package/plugins/ModelExtrudeWallsPlugin/index.js +0 -252
  312. package/plugins/ModelRoomLabelPlugin/Controller.js +0 -153
  313. package/plugins/ModelRoomLabelPlugin/RoomLabelItem.d.ts +0 -8
  314. package/plugins/ModelRoomLabelPlugin/RoomLabelItem.js +0 -66
  315. package/plugins/ModelRoomLabelPlugin/RoomLabelItems.d.ts +0 -7
  316. package/plugins/ModelRoomLabelPlugin/RoomLabelItems.js +0 -159
  317. package/plugins/ModelRoomLabelPlugin/index.d.ts +0 -8
  318. package/plugins/ModelRoomLabelPlugin/index.js +0 -18
  319. package/plugins/ModelRoomLabelPlugin/typings.js +0 -7
  320. package/plugins/ModelRoomLabelPlugin/utils/parseData.js +0 -35
  321. package/plugins/ModelTVVideoPlugin/index.d.ts +0 -21
  322. package/plugins/ModelTVVideoPlugin/index.js +0 -397
  323. package/plugins/ModelViewPlugin/index.js +0 -223
  324. package/plugins/PanoCursorRaycasterPlugin/PanoCursorRaycasterPluginUsage.d.ts +0 -48
  325. package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.d.ts +0 -9
  326. package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.js +0 -117
  327. package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.d.ts +0 -11
  328. package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.js +0 -39
  329. package/plugins/PanoCursorRaycasterPlugin/index.js +0 -126
  330. package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.d.ts +0 -5
  331. package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.js +0 -27
  332. package/plugins/PanoCursorRaycasterPlugin/utils/createLine.d.ts +0 -3
  333. package/plugins/PanoCursorRaycasterPlugin/utils/createLine.js +0 -48
  334. package/plugins/PanoDoorLabelPlugin/index.d.ts +0 -4
  335. package/plugins/PanoDoorLabelPlugin/index.js +0 -14
  336. package/plugins/PanoIRobotPlugin/index.d.ts +0 -10
  337. package/plugins/PanoIRobotPlugin/index.js +0 -18
  338. package/plugins/PanoMaskSelectorPlugin/compare.d.ts +0 -1
  339. package/plugins/PanoMaskSelectorPlugin/compare.js +0 -17
  340. package/plugins/PanoMaskSelectorPlugin/createBox.d.ts +0 -7
  341. package/plugins/PanoMaskSelectorPlugin/createBox.js +0 -79
  342. package/plugins/PanoMaskSelectorPlugin/createTextures.d.ts +0 -3
  343. package/plugins/PanoMaskSelectorPlugin/createTextures.js +0 -45
  344. package/plugins/PanoMaskSelectorPlugin/fragmentShader.d.ts +0 -1
  345. package/plugins/PanoMaskSelectorPlugin/fragmentShader.js +0 -10
  346. package/plugins/PanoMaskSelectorPlugin/index.d.ts +0 -49
  347. package/plugins/PanoMaskSelectorPlugin/index.js +0 -348
  348. package/plugins/PanoMaskSelectorPlugin/vertexShader.d.ts +0 -1
  349. package/plugins/PanoMaskSelectorPlugin/vertexShader.js +0 -10
  350. package/plugins/PanoRulerPlugin/data/roomInfo.d.ts +0 -3
  351. package/plugins/PanoRulerPlugin/data/roomInfo.js +0 -51
  352. package/plugins/PanoRulerPlugin/data/roomRules.d.ts +0 -3
  353. package/plugins/PanoRulerPlugin/data/roomRules.js +0 -235
  354. package/plugins/PanoRulerPlugin/index.d.ts +0 -27
  355. package/plugins/PanoRulerPlugin/index.js +0 -637
  356. package/plugins/PanoRulerPlugin/typings.d.ts +0 -21
  357. package/plugins/PanoRulerPlugin/typings.js +0 -7
  358. package/plugins/PanoTVVideoPlugin/index.d.ts +0 -26
  359. package/plugins/PanoTVVideoPlugin/index.js +0 -433
  360. package/plugins/TreasurePlugin/Controller.d.ts +0 -73
  361. package/plugins/TreasurePlugin/Controller.js +0 -250
  362. package/plugins/TreasurePlugin/TreasureFaceAnime.d.ts +0 -25
  363. package/plugins/TreasurePlugin/TreasureFaceAnime.js +0 -143
  364. package/plugins/TreasurePlugin/TreasureObject.d.ts +0 -53
  365. package/plugins/TreasurePlugin/TreasureObject.js +0 -406
  366. package/plugins/TreasurePlugin/TreasureOpenAnime.d.ts +0 -25
  367. package/plugins/TreasurePlugin/TreasureOpenAnime.js +0 -127
  368. package/plugins/TreasurePlugin/constants.d.ts +0 -33
  369. package/plugins/TreasurePlugin/constants.js +0 -67
  370. package/plugins/TreasurePlugin/index.d.ts +0 -11
  371. package/plugins/TreasurePlugin/index.js +0 -26
  372. package/plugins/TreasurePlugin/typings.d.ts +0 -2
  373. package/plugins/TreasurePlugin/typings.js +0 -7
  374. package/plugins/floorplan/Assets/floorplanExtraObject.d.ts +0 -1
  375. package/plugins/floorplan/Assets/floorplanExtraObject.js +0 -10
  376. package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +0 -626
  377. package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.d.ts +0 -13
  378. package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +0 -78
  379. package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.d.ts +0 -5
  380. package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +0 -84
  381. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.d.ts +0 -10
  382. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.js +0 -129
  383. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.d.ts +0 -13
  384. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +0 -118
  385. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.d.ts +0 -13
  386. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +0 -62
  387. package/plugins/floorplan/ModelFloorplanPlugin/components/index.d.ts +0 -20
  388. package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +0 -88
  389. package/plugins/floorplan/ModelFloorplanPlugin/controller.style.d.ts +0 -1
  390. package/plugins/floorplan/ModelFloorplanPlugin/controller.style.js +0 -16
  391. package/plugins/floorplan/ModelFloorplanPlugin/index.js +0 -20
  392. package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.js +0 -7
  393. package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.js +0 -33
  394. package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +0 -154
  395. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.d.ts +0 -13
  396. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.js +0 -113
  397. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.d.ts +0 -3
  398. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.js +0 -39
  399. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.d.ts +0 -5
  400. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.js +0 -66
  401. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.d.ts +0 -9
  402. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.js +0 -126
  403. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.d.ts +0 -11
  404. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.js +0 -58
  405. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.d.ts +0 -17
  406. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.js +0 -85
  407. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.d.ts +0 -2
  408. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.js +0 -15
  409. package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.js +0 -211
  410. package/plugins/floorplan/PanoFloorplanRadarPlugin/index.js +0 -20
  411. package/plugins/floorplan/TopviewFloorplanPlugin/Controller.js +0 -262
  412. package/plugins/floorplan/TopviewFloorplanPlugin/index.js +0 -18
  413. package/plugins/floorplan/TopviewFloorplanPlugin/style.js +0 -16
  414. package/plugins/floorplan/components/FloorplanImage.d.ts +0 -7
  415. package/plugins/floorplan/components/FloorplanImage.js +0 -90
  416. package/plugins/floorplan/typings/floorplanData.js +0 -7
  417. package/plugins/floorplan/typings/floorplanServerData.js +0 -382
  418. package/plugins/floorplan/utils/formatData.js +0 -217
  419. package/plugins/floorplan/utils/formatPosition.js +0 -89
  420. package/shared-utils/Preloader.js +0 -57
  421. package/shared-utils/Subscribe.js +0 -230
  422. package/shared-utils/animationFrame/BetterTween.js +0 -103
  423. package/shared-utils/animationFrame/calculateProgress.js +0 -40
  424. package/shared-utils/animationFrame/formatRad.js +0 -36
  425. package/shared-utils/animationFrame/index.js +0 -81
  426. package/shared-utils/animationFrame/tween.js +0 -92
  427. package/shared-utils/changeModelCanvansOpacity.d.ts +0 -2
  428. package/shared-utils/changeModelCanvansOpacity.js +0 -38
  429. package/shared-utils/createCanvasTextTexture.js +0 -31
  430. package/shared-utils/createFiveContainer.d.ts +0 -10
  431. package/shared-utils/createFiveContainer.js +0 -171
  432. package/shared-utils/createLine/index.js +0 -43
  433. package/shared-utils/debounce.js +0 -30
  434. package/shared-utils/equal.js +0 -107
  435. package/shared-utils/filter.js +0 -127
  436. package/shared-utils/five/changeMode.js +0 -82
  437. package/shared-utils/five/useFivePlugin.js +0 -17
  438. package/shared-utils/formatRad.js +0 -18
  439. package/shared-utils/getPxmm.js +0 -51
  440. package/shared-utils/getRandomColor.js +0 -23
  441. package/shared-utils/isNil.js +0 -26
  442. package/shared-utils/isTruelyObject.js +0 -31
  443. package/shared-utils/math/evenNumber.d.ts +0 -1
  444. package/shared-utils/math/evenNumber.js +0 -13
  445. package/shared-utils/math/planimetry.js +0 -352
  446. package/shared-utils/math/rad2Deg.js +0 -12
  447. package/shared-utils/nearlyEqual.js +0 -19
  448. package/shared-utils/nextFrame.js +0 -15
  449. package/shared-utils/noop.js +0 -19
  450. package/shared-utils/object3d2LocalMatrix.js +0 -79
  451. package/shared-utils/px2rem.js +0 -22
  452. package/shared-utils/three/centerPoint.js +0 -14
  453. package/shared-utils/three/getExtraModelLoader.js +0 -45
  454. package/shared-utils/three/getNormal.js +0 -17
  455. package/shared-utils/three/getTextureLoader.js +0 -50
  456. package/shared-utils/three/loadFbxObj.js +0 -54
  457. package/shared-utils/three/loadTexture.d.ts +0 -2
  458. package/shared-utils/three/loadTexture.js +0 -46
  459. package/shared-utils/three/transformPositionToVector3.js +0 -20
  460. package/shared-utils/three/transfromToMeshBasicMaterial.js +0 -33
  461. package/shared-utils/throttle.js +0 -29
  462. package/shared-utils/to.js +0 -67
  463. package/shared-utils/useDebounce.js +0 -49
  464. package/shared-utils/useThrottle.js +0 -47
  465. package/shared-utils/uuid.d.ts +0 -4
  466. package/shared-utils/uuid.js +0 -28
  467. package/shared-utils/vectorTocoordinates.js +0 -18
  468. package/typedoc/components.d.ts +0 -6
  469. package/typedoc/components.js +0 -7
  470. package/typedoc/plugins.d.ts +0 -19
  471. package/typedoc/plugins.js +0 -165
  472. package/typedoc/shared-utils.d.ts +0 -3
  473. package/typedoc/shared-utils.js +0 -7
  474. package/typedoc/typings.d.ts +0 -3
  475. package/typedoc/typings.js +0 -7
  476. package/typings/math.type.js +0 -7
  477. package/typings/utils.type.js +0 -7
@@ -1,149 +0,0 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.array.iterator.js");
4
-
5
- require("core-js/modules/es.object.to-string.js");
6
-
7
- require("core-js/modules/es.string.iterator.js");
8
-
9
- require("core-js/modules/es.weak-map.js");
10
-
11
- require("core-js/modules/web.dom-collections.iterator.js");
12
-
13
- require("core-js/modules/es.object.define-property.js");
14
-
15
- require("core-js/modules/es.object.get-own-property-descriptor.js");
16
-
17
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
18
-
19
- var _typeof = require("@babel/runtime/helpers/typeof");
20
-
21
- Object.defineProperty(exports, "__esModule", {
22
- value: true
23
- });
24
- exports["default"] = exports.GLTFView = void 0;
25
-
26
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
27
-
28
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
29
-
30
- var React = _interopRequireWildcard(require("react"));
31
-
32
- var _gltfViewer = require("../../libs/gltf-viewer");
33
-
34
- 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); }
35
-
36
- 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; }
37
-
38
- /**
39
- * **GLTFViewer** 预览 `glTF` 模型文件(支持.gltf和.glb格式),附带光照等效果。
40
- *
41
- * ### Usage
42
- *
43
- * 基础用法:
44
- *
45
- * ```jsx
46
- * import { GLTFViewer } from '@realsee/dnalogel/libs/gltf-viewer'
47
- *
48
- * // 创建实例
49
- * const gltfViewer = new GLTFViewer({
50
- * pixelRatio: 1,
51
- * })
52
- *
53
- * // 挂载至 DOM 节点
54
- * gltfViewer.appendTo(ref.current)
55
- *
56
- * // 加载模型文件
57
- * await gltfViewer.load(glbCDNUrl)
58
- *
59
- * // 输出当前模型状态数据
60
- * console.log(gltfViewer.state)
61
- * // { longitude: 0, latitude: -0.3, fov: 35 }
62
- *
63
- * // 设置当前模型状态:直接给状态对象赋值(立即生效)
64
- * gltfViewer.state = { longitude: 0, latitude: -0.3, fov: 35 }
65
- *
66
- * // 设置当前模型状态:直接给状态对象单个属性赋值(立即生效)
67
- * gltfViewer.state.fov = 50
68
- *
69
- * ```
70
- *
71
- * 事件监听:
72
- *
73
- * ```jsx
74
- * gltfViewer.on('stateChange', (state: GLTFViewerState) => {
75
- * // 事件:模型状态变化
76
- * })
77
- * gltfViewer.on('willLoad', () => {
78
- * // 即将加载
79
- * })
80
- * gltfViewer.on('progressing', (progressing: number) => {
81
- * // 加载进度
82
- * })
83
- * gltfViewer.on('loaded', (gltf: GLTF) => {
84
- * // 加载完成
85
- * })
86
- * gltfViewer.on('loadError', (error) => {
87
- * // 加载异常
88
- * })
89
- * ```
90
- *
91
- * React 组件:
92
- *
93
- * ```jsx
94
- * import { GLTFView } from '@realsee/dnalogel/components/GLTFView'
95
- *
96
- * <GLTFView
97
- * url="//vrlab-static.ljcdn.com/release/web/demo.435f5fa2.glb"
98
- * ref={(gltfViewer) => gltfViewer.on('stateChange', (state) => console.log(state))} />
99
- * ```
100
- */
101
- var GLTFView = function GLTFView(props) {
102
- var ref = React.useRef(null);
103
- React.useEffect(function () {
104
- if (!ref.current) return;
105
- var gltfViewer = new _gltfViewer.GLTFViewer(props);
106
- gltfViewer.appendTo(ref.current);
107
-
108
- var callback = /*#__PURE__*/function () {
109
- var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
110
- return _regenerator["default"].wrap(function _callee$(_context) {
111
- while (1) {
112
- switch (_context.prev = _context.next) {
113
- case 0:
114
- _context.next = 2;
115
- return gltfViewer.load(props.url);
116
-
117
- case 2:
118
- case "end":
119
- return _context.stop();
120
- }
121
- }
122
- }, _callee);
123
- }));
124
-
125
- return function callback() {
126
- return _ref.apply(this, arguments);
127
- };
128
- }();
129
-
130
- callback(); // 实例
131
-
132
- if (props.ref) {
133
- props.ref(ref.current);
134
- }
135
-
136
- return function () {
137
- gltfViewer.dispose();
138
- };
139
- }, []);
140
- return /*#__PURE__*/React.createElement("div", {
141
- className: 'GLTFView ' + (props.className || ''),
142
- ref: ref
143
- });
144
- };
145
-
146
- exports.GLTFView = GLTFView;
147
- GLTFView.defaultProps = {};
148
- var _default = GLTFView;
149
- exports["default"] = _default;
@@ -1,32 +0,0 @@
1
- /// <reference types="react" />
2
- export interface GlassFiltersPropTypes {
3
- hidden?: boolean;
4
- className?: string;
5
- url?: string;
6
- /**
7
- * 高斯模糊
8
- */
9
- blur?: string | number;
10
- brightness?: string | number;
11
- contrast?: string | number;
12
- ['drop-shadow']?: string | number;
13
- grayscale?: string | number;
14
- ['hue-rotate']?: string | number;
15
- invert?: string | number;
16
- opacity?: string | number;
17
- sepia?: string | number;
18
- saturate?: string | number;
19
- children?: string | JSX.Element;
20
- }
21
- /**
22
- * 滤镜组件
23
- *
24
- * > 某些 VR 房源可能受限于拍摄条件,比如拍摄当天光线不佳造成观感整体偏暗,可通过此组件设置提升亮度等相关滤镜参数进行优化。
25
- *
26
- * 滤镜的可配置参数请参考 [backdrop-filter](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter)。
27
- *
28
- * @param props
29
- * @returns
30
- */
31
- export declare function GlassFilters(props: GlassFiltersPropTypes): JSX.Element;
32
- export default GlassFilters;
@@ -1,78 +0,0 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.array.iterator.js");
4
-
5
- require("core-js/modules/es.object.to-string.js");
6
-
7
- require("core-js/modules/es.string.iterator.js");
8
-
9
- require("core-js/modules/es.weak-map.js");
10
-
11
- require("core-js/modules/web.dom-collections.iterator.js");
12
-
13
- require("core-js/modules/es.object.define-property.js");
14
-
15
- require("core-js/modules/es.object.get-own-property-descriptor.js");
16
-
17
- var _typeof = require("@babel/runtime/helpers/typeof");
18
-
19
- Object.defineProperty(exports, "__esModule", {
20
- value: true
21
- });
22
- exports.GlassFilters = GlassFilters;
23
- exports["default"] = void 0;
24
-
25
- require("core-js/modules/es.array.reduce.js");
26
-
27
- require("core-js/modules/es.array.filter.js");
28
-
29
- require("core-js/modules/es.object.keys.js");
30
-
31
- require("core-js/modules/es.array.includes.js");
32
-
33
- require("core-js/modules/es.array.concat.js");
34
-
35
- var React = _interopRequireWildcard(require("react"));
36
-
37
- 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); }
38
-
39
- 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; }
40
-
41
- var filters = ['url', 'blur', 'brightness', 'contrast', 'drop-shadow', 'grayscale', 'hue-rotate', 'invert', 'opacity', 'sepia', 'saturate'];
42
- /**
43
- * 滤镜组件
44
- *
45
- * > 某些 VR 房源可能受限于拍摄条件,比如拍摄当天光线不佳造成观感整体偏暗,可通过此组件设置提升亮度等相关滤镜参数进行优化。
46
- *
47
- * 滤镜的可配置参数请参考 [backdrop-filter](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter)。
48
- *
49
- * @param props
50
- * @returns
51
- */
52
-
53
- function GlassFilters(props) {
54
- var backdropFilter = Object.keys(props).filter(function (key) {
55
- return filters.includes(key) && props[key] !== undefined;
56
- }).reduce(function (accu, curr) {
57
- return accu + "".concat(curr, "(").concat(props[curr], ") ");
58
- }, '');
59
- console.log('GlassFilters', props, backdropFilter);
60
- return /*#__PURE__*/React.createElement("div", {
61
- style: {
62
- position: 'absolute',
63
- left: '0',
64
- top: '0',
65
- width: '100%',
66
- height: '100%',
67
- pointerEvents: 'none',
68
- transition: 'backdrop-filter opacity .75s',
69
- opacity: props.hidden ? '0' : '1',
70
- backdropFilter: backdropFilter,
71
- WebkitBackdropFilter: backdropFilter
72
- },
73
- className: 'five-GlassFilters' + (props.className ? ' ' + props.className : '')
74
- }, props.children);
75
- }
76
-
77
- var _default = GlassFilters;
78
- exports["default"] = _default;
@@ -1,18 +0,0 @@
1
- import * as THREE from 'three';
2
- export default class ModelViewController {
3
- needsRender: boolean;
4
- scene: THREE.Scene;
5
- camera: THREE.PerspectiveCamera;
6
- model: THREE.Object3D;
7
- renderer: THREE.WebGLRenderer | null;
8
- constructor();
9
- initRendererIfNeeds: () => THREE.WebGLRenderer;
10
- modelWillLoad: () => void;
11
- refresh: (size?: {
12
- width?: number;
13
- height?: number;
14
- }) => void;
15
- cameraDistance: () => void;
16
- update: () => void;
17
- render: () => void;
18
- }
@@ -1,157 +0,0 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.array.iterator.js");
4
-
5
- require("core-js/modules/es.object.to-string.js");
6
-
7
- require("core-js/modules/es.string.iterator.js");
8
-
9
- require("core-js/modules/es.weak-map.js");
10
-
11
- require("core-js/modules/web.dom-collections.iterator.js");
12
-
13
- require("core-js/modules/es.object.define-property.js");
14
-
15
- require("core-js/modules/es.object.get-own-property-descriptor.js");
16
-
17
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
18
-
19
- var _typeof = require("@babel/runtime/helpers/typeof");
20
-
21
- Object.defineProperty(exports, "__esModule", {
22
- value: true
23
- });
24
- exports["default"] = void 0;
25
-
26
- require("core-js/modules/es.array.concat.js");
27
-
28
- require("core-js/modules/es.array.for-each.js");
29
-
30
- require("core-js/modules/web.dom-collections.for-each.js");
31
-
32
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
33
-
34
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
35
-
36
- var THREE = _interopRequireWildcard(require("three"));
37
-
38
- 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); }
39
-
40
- 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; }
41
-
42
- var ModelViewController = function ModelViewController() {
43
- var _this = this;
44
-
45
- (0, _classCallCheck2["default"])(this, ModelViewController);
46
- (0, _defineProperty2["default"])(this, "needsRender", true);
47
- (0, _defineProperty2["default"])(this, "scene", new THREE.Scene());
48
- (0, _defineProperty2["default"])(this, "camera", new THREE.PerspectiveCamera(60, 1, 0.1, 1000));
49
- (0, _defineProperty2["default"])(this, "model", new THREE.Object3D());
50
- (0, _defineProperty2["default"])(this, "renderer", null);
51
- (0, _defineProperty2["default"])(this, "initRendererIfNeeds", function () {
52
- if (!_this.renderer) {
53
- _this.renderer = new THREE.WebGLRenderer({
54
- antialias: false,
55
- alpha: true
56
- }); // this.renderer.setPixelRatio(five.renderer.getPixelRatio())
57
-
58
- _this.renderer.setClearColor(0x181a1c, 0);
59
-
60
- _this.renderer.autoClear = true;
61
- }
62
-
63
- return _this.renderer;
64
- });
65
- (0, _defineProperty2["default"])(this, "modelWillLoad", function () {
66
- _this.model.traverse(function (object) {
67
- if (object instanceof THREE.Mesh) {
68
- var materials = [].concat(object.material);
69
- materials.forEach(function (material) {
70
- return material.dispose();
71
- });
72
- }
73
- });
74
-
75
- _this.scene.remove(_this.model);
76
-
77
- _this.model = new THREE.Object3D();
78
-
79
- _this.scene.add(_this.model);
80
-
81
- _this.update();
82
- });
83
- (0, _defineProperty2["default"])(this, "refresh", function () {
84
- var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
85
- if (!_this.renderer) return;
86
- var element = _this.renderer.domElement;
87
- var container = element.parentNode;
88
-
89
- if (container && container.nodeName) {
90
- var _size$width = size.width,
91
- width = _size$width === void 0 ? container.offsetWidth : _size$width,
92
- _size$height = size.height,
93
- height = _size$height === void 0 ? container.offsetHeight : _size$height;
94
-
95
- _this.renderer.setSize(width, height); // 修改摄像机 aspect 比值
96
-
97
-
98
- _this.camera.aspect = width / height;
99
-
100
- _this.camera.updateProjectionMatrix();
101
- }
102
-
103
- _this.needsRender = true;
104
- });
105
- (0, _defineProperty2["default"])(this, "cameraDistance", function () {// const bounding = five.model.bounding
106
- // const { fov, aspect } = this.camera
107
- // const radius = Math.pow(
108
- // Math.pow(bounding.max.x - bounding.min.x + 2, 2) +
109
- // Math.pow(bounding.max.y - bounding.min.y + 2, 2) +
110
- // Math.pow(bounding.max.z - bounding.min.z + 2, 2),
111
- // 1 / 2,
112
- // )
113
- // // fit screen
114
- // let distance = radius / 2 / Math.tan((Math.PI * fov) / 360)
115
- // if (aspect < 1) distance = distance / aspect
116
- // return isNaN(distance) ? radius : distance
117
- });
118
- (0, _defineProperty2["default"])(this, "update", function () {// const { longitude } = five.getLongitudeAndLatitude()
119
- // const latitude = Math.PI / 4
120
- // const distance = cameraDistance()
121
- // const lookAt = five.model.bounding.getCenter(new THREE.Vector3())
122
- // const longitudeDistance = distance * Math.cos(latitude)
123
- // const cameraPosition = new THREE.Vector3()
124
- // cameraPosition.x = Math.sin(longitude) * longitudeDistance + lookAt.x
125
- // cameraPosition.z = Math.cos(longitude) * longitudeDistance + lookAt.z
126
- // cameraPosition.y = Math.sin(latitude) * distance + lookAt.y
127
- // camera.position.copy(cameraPosition)
128
- // camera.lookAt(lookAt)
129
- // needsRender = true
130
- });
131
- (0, _defineProperty2["default"])(this, "render", function () {// if (needsRender !== true) return
132
- // if (!renderer) return
133
- // if (!renderer.domElement.parentNode) return
134
- // const parentNode = renderer.domElement.parentNode as HTMLElement
135
- // if (parentNode.offsetWidth === 0) return
136
- // renderer.render(scene, camera)
137
- // needsRender = false
138
- });
139
- {
140
- var light = new THREE.DirectionalLight(0xffffff, 0.1);
141
- light.position.copy(new THREE.Vector3(1, 1, 1));
142
- this.scene.add(light);
143
- }
144
- {
145
- var _light = new THREE.DirectionalLight(0xffffff, 0.1);
146
-
147
- this.scene.add(_light);
148
- }
149
- {
150
- var _light2 = new THREE.AmbientLight(0xffffff, 1);
151
-
152
- this.scene.add(_light2);
153
- }
154
- this.scene.add(this.model);
155
- };
156
-
157
- exports["default"] = ModelViewController;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * 户型雷达图
4
- *
5
- *
6
- * 非 `React` 组件版本详见 [ModelViewPlugin](?path=/docs/plugins-modelviewplugin--model-view-tpl)。
7
- * @returns
8
- * @todo
9
- */
10
- export default function ModelView(): JSX.Element;
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.object.define-property.js");
4
-
5
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- exports["default"] = ModelView;
11
-
12
- var _react = _interopRequireDefault(require("react"));
13
-
14
- /**
15
- * 户型雷达图
16
- *
17
- *
18
- * 非 `React` 组件版本详见 [ModelViewPlugin](?path=/docs/plugins-modelviewplugin--model-view-tpl)。
19
- * @returns
20
- * @todo
21
- */
22
- function ModelView() {
23
- return /*#__PURE__*/_react["default"].createElement("div", null);
24
- }
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- export interface PaintBrushPropTypes {
3
- colors: {
4
- role: string;
5
- color: string;
6
- }[];
7
- hidden?: boolean;
8
- className?: string;
9
- }
10
- /**
11
- * 画笔标注:提供一个画笔标注模式,用户不能操作其他模块仅能用画笔屏幕标注。
12
- *
13
- * @TODO 待排期
14
- */
15
- declare const PaintBrush: React.FC<PaintBrushPropTypes>;
16
- export default PaintBrush;
@@ -1,47 +0,0 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.array.iterator.js");
4
-
5
- require("core-js/modules/es.object.to-string.js");
6
-
7
- require("core-js/modules/es.string.iterator.js");
8
-
9
- require("core-js/modules/es.weak-map.js");
10
-
11
- require("core-js/modules/web.dom-collections.iterator.js");
12
-
13
- require("core-js/modules/es.object.define-property.js");
14
-
15
- require("core-js/modules/es.object.get-own-property-descriptor.js");
16
-
17
- var _typeof = require("@babel/runtime/helpers/typeof");
18
-
19
- Object.defineProperty(exports, "__esModule", {
20
- value: true
21
- });
22
- exports["default"] = void 0;
23
-
24
- var React = _interopRequireWildcard(require("react"));
25
-
26
- 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); }
27
-
28
- 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; }
29
-
30
- /**
31
- * 画笔标注:提供一个画笔标注模式,用户不能操作其他模块仅能用画笔屏幕标注。
32
- *
33
- * @TODO 待排期
34
- */
35
- var PaintBrush = function PaintBrush() {
36
- var ref = React.useRef(null);
37
- return /*#__PURE__*/React.createElement("div", {
38
- className: "PaintBrush"
39
- }, /*#__PURE__*/React.createElement("canvas", {
40
- className: "PaintBrush-canvas",
41
- ref: ref
42
- }));
43
- };
44
-
45
- PaintBrush.defaultProps = {};
46
- var _default = PaintBrush;
47
- exports["default"] = _default;
@@ -1,4 +0,0 @@
1
- /**
2
- * @todo
3
- */
4
- export declare function PanoTag(): void;
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.object.define-property.js");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.PanoTag = PanoTag;
9
-
10
- /**
11
- * @todo
12
- */
13
- function PanoTag() {}
package/custom.d.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
-
3
- require("react");
@@ -1,104 +0,0 @@
1
- declare const _default: {
2
- user_id: number;
3
- project_id: string;
4
- name: string;
5
- is_active: boolean;
6
- title: string;
7
- description: string;
8
- picture_url: string;
9
- picture_checksum: string;
10
- initial: {
11
- pano_index: number;
12
- heading: number;
13
- longitude: number;
14
- latitude: number;
15
- fov: number;
16
- flag_position: number[];
17
- pano: number;
18
- };
19
- machine_id: string;
20
- machine_version: string;
21
- title_picture_url: string;
22
- title_picture_checksum: string;
23
- house_layout: {
24
- bedroom_amount: number;
25
- parlor_amount: number;
26
- cookroom_amount: number;
27
- toilet_amount: number;
28
- };
29
- standard_floor_plan_url: string;
30
- standard_floor_plan_checksum: string;
31
- hierarchy_floor_plan: {
32
- url: string;
33
- index: number;
34
- checksum: string;
35
- }[];
36
- outline_floor_plan: {
37
- url: string;
38
- index: number;
39
- checksum: string;
40
- }[];
41
- auto_floor_plan_url: string;
42
- auto_floor_plan_checksum: string;
43
- status: number;
44
- floor_plan_type: number;
45
- editor_type: number;
46
- panorama_url: string;
47
- create_time: string;
48
- work_code: string;
49
- house_info: {
50
- relation_id: number;
51
- city_id: number;
52
- source: string;
53
- house_id: string;
54
- house_code: string;
55
- };
56
- model: {
57
- file_url: string;
58
- material_base_url: string;
59
- material_textures: string[];
60
- score: number;
61
- type: number;
62
- work_code: string;
63
- };
64
- panorama: {
65
- count: number;
66
- base_url: string;
67
- type: number;
68
- list: {
69
- index: number;
70
- up: string;
71
- down: string;
72
- left: string;
73
- right: string;
74
- front: string;
75
- back: string;
76
- }[];
77
- work_code: string;
78
- };
79
- observers: {
80
- visible_nodes: number[];
81
- accessible_nodes: number[];
82
- index: number;
83
- status: string;
84
- quaternion: {
85
- w: number;
86
- x: number;
87
- y: number;
88
- z: number;
89
- };
90
- standing_position: number[];
91
- position: number[];
92
- floor_index: number;
93
- offset_point_count: number;
94
- device_info: null;
95
- work_code: string;
96
- }[];
97
- machine: {
98
- name: string;
99
- principle: string;
100
- create_time: string;
101
- create_user: string;
102
- };
103
- };
104
- export default _default;