@realsee/dnalogel 0.1.7 → 2.0.0-alpha.11

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 (731) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +24 -68
  3. package/{plugins → dist}/CSS3DRenderPlugin/index.d.ts +1 -1
  4. package/dist/CSS3DRenderPlugin/index.js +231 -0
  5. package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
  6. package/{plugins → dist}/CameraMovementPlugin/index.d.ts +0 -0
  7. package/dist/CameraMovementPlugin/index.js +302 -0
  8. package/{plugins → dist}/CameraMovementPlugin/typing.d.ts +0 -0
  9. package/{plugins → dist}/ModelChassisCompassPlugin/index.d.ts +1 -1
  10. package/dist/ModelChassisCompassPlugin/index.js +142 -0
  11. package/{plugins → dist}/ModelEntryDoorGuidePlugin/index.d.ts +6 -2
  12. package/dist/ModelEntryDoorGuidePlugin/index.js +196 -0
  13. package/dist/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
  14. package/{plugins → dist}/ModelRoomLabelPlugin/Controller.d.ts +3 -2
  15. package/dist/ModelRoomLabelPlugin/index.d.ts +12 -0
  16. package/dist/ModelRoomLabelPlugin/index.js +463 -0
  17. package/{plugins → dist}/ModelRoomLabelPlugin/typings.d.ts +2 -2
  18. package/{plugins → dist}/ModelRoomLabelPlugin/utils/parseData.d.ts +0 -0
  19. package/{plugins → dist}/ModelViewPlugin/index.d.ts +0 -0
  20. package/dist/ModelViewPlugin/index.js +187 -0
  21. package/dist/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
  22. package/dist/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
  23. package/dist/PanoCompassPlugin/index.d.ts +51 -0
  24. package/dist/PanoCompassPlugin/index.js +521 -0
  25. package/{plugins → dist}/PanoCursorRaycasterPlugin/index.d.ts +2 -3
  26. package/dist/PanoCursorRaycasterPlugin/index.js +88 -0
  27. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +36 -0
  28. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
  29. package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
  30. package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +25 -0
  31. package/dist/PanoMeasurePlugin/Controller/index.d.ts +61 -0
  32. package/dist/PanoMeasurePlugin/Model/index.d.ts +38 -0
  33. package/dist/PanoMeasurePlugin/Model/line.d.ts +30 -0
  34. package/dist/PanoMeasurePlugin/Model/point.d.ts +16 -0
  35. package/dist/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
  36. package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
  37. package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
  38. package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
  39. package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +22 -0
  40. package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
  41. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
  42. package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +24 -0
  43. package/dist/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +6 -0
  44. package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +18 -0
  45. package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +12 -0
  46. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +16 -0
  47. package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +17 -0
  48. package/dist/PanoMeasurePlugin/index.d.ts +7 -0
  49. package/dist/PanoMeasurePlugin/index.js +4789 -0
  50. package/dist/PanoMeasurePlugin/typings/data.d.ts +28 -0
  51. package/dist/PanoMeasurePlugin/typings/event.type.d.ts +28 -0
  52. package/dist/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
  53. package/dist/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
  54. package/dist/PanoMeasurePlugin/utils/constants.d.ts +4 -0
  55. package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
  56. package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
  57. package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
  58. package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
  59. package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
  60. package/dist/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
  61. package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
  62. package/dist/PanoMeasurePlugin/utils/line.d.ts +17 -0
  63. package/dist/PanoMeasurePlugin/utils/math.d.ts +17 -0
  64. package/dist/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -0
  65. package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
  66. package/{plugins → dist}/PanoRulerPlugin/index.d.ts +9 -5
  67. package/dist/PanoRulerPlugin/index.js +610 -0
  68. package/dist/PanoRulerPlugin/style.d.ts +2 -0
  69. package/{plugins → dist}/PanoRulerPlugin/typings.d.ts +0 -0
  70. package/dist/PanoSpatialTagPlugin/index.d.ts +33 -0
  71. package/dist/PanoSpatialTagPlugin/index.js +1259 -0
  72. package/dist/PanoSpatialTagPlugin/store.d.ts +1 -0
  73. package/{plugins/floorplan/TopviewFloorplanPlugin → dist/PanoSpatialTagPlugin}/style.d.ts +0 -0
  74. package/dist/PanoSpatialTagPlugin/typings.d.ts +40 -0
  75. package/dist/floorplan/Assets/camera.d.ts +1 -0
  76. package/dist/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
  77. package/dist/floorplan/ModelFloorplanPlugin/Assets/compass.d.ts +1 -0
  78. package/{plugins → dist}/floorplan/ModelFloorplanPlugin/Controller.d.ts +19 -14
  79. package/{plugins → dist}/floorplan/ModelFloorplanPlugin/index.d.ts +1 -1
  80. package/dist/floorplan/ModelFloorplanPlugin/index.js +3842 -0
  81. package/{plugins → dist}/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +0 -0
  82. package/{plugins → dist}/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +1 -1
  83. package/{plugins → dist}/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +0 -0
  84. package/{plugins → dist}/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +6 -11
  85. package/{plugins → dist}/floorplan/PanoFloorplanRadarPlugin/index.d.ts +0 -0
  86. package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +1673 -0
  87. package/{plugins → dist}/floorplan/TopviewFloorplanPlugin/Controller.d.ts +18 -11
  88. package/{plugins → dist}/floorplan/TopviewFloorplanPlugin/index.d.ts +0 -0
  89. package/dist/floorplan/TopviewFloorplanPlugin/index.js +3481 -0
  90. package/{plugins/floorplan/ModelFloorplanPlugin/controller.style.d.ts → dist/floorplan/TopviewFloorplanPlugin/style.d.ts} +0 -0
  91. package/dist/floorplan/constant.d.ts +5 -0
  92. package/{plugins → dist}/floorplan/typings/floorplanData.d.ts +6 -0
  93. package/{plugins → dist}/floorplan/typings/floorplanServerData.d.ts +8 -2
  94. package/dist/floorplan/typings/utility.d.ts +2 -0
  95. package/{plugins → dist}/floorplan/utils/formatData.d.ts +3 -3
  96. package/{plugins → dist}/floorplan/utils/formatPosition.d.ts +3 -4
  97. package/dist/index.d.ts +26 -0
  98. package/dist/index.es.js +12928 -0
  99. package/dist/index.js +12967 -0
  100. package/dist/index.umd.js +12961 -0
  101. package/{shared-utils → dist/shared-utils}/Preloader.d.ts +0 -0
  102. package/{shared-utils → dist/shared-utils}/Subscribe.d.ts +3 -3
  103. package/{shared-utils → dist/shared-utils}/animationFrame/BetterTween.d.ts +0 -0
  104. package/{shared-utils → dist/shared-utils}/animationFrame/calculateProgress.d.ts +0 -0
  105. package/{shared-utils → dist/shared-utils}/animationFrame/formatRad.d.ts +0 -0
  106. package/{shared-utils → dist/shared-utils}/animationFrame/index.d.ts +0 -0
  107. package/{shared-utils → dist/shared-utils}/animationFrame/tween.d.ts +0 -0
  108. package/dist/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
  109. package/{shared-utils → dist/shared-utils}/createCanvasTextTexture.d.ts +0 -0
  110. package/{shared-utils → dist/shared-utils}/createLine/index.d.ts +1 -1
  111. package/{shared-utils → dist/shared-utils}/debounce.d.ts +1 -1
  112. package/{shared-utils → dist/shared-utils}/equal.d.ts +0 -0
  113. package/{shared-utils → dist/shared-utils}/filter.d.ts +0 -0
  114. package/{shared-utils → dist/shared-utils}/five/changeMode.d.ts +0 -0
  115. package/{shared-utils → dist/shared-utils}/five/useFivePlugin.d.ts +0 -0
  116. package/{shared-utils → dist/shared-utils}/formatRad.d.ts +0 -0
  117. package/dist/shared-utils/getPxmm.d.ts +11 -0
  118. package/{shared-utils → dist/shared-utils}/getRandomColor.d.ts +0 -0
  119. package/{shared-utils → dist/shared-utils}/isNil.d.ts +0 -0
  120. package/{shared-utils → dist/shared-utils}/isTruelyObject.d.ts +0 -0
  121. package/dist/shared-utils/math/evenNumber.d.ts +3 -0
  122. package/{shared-utils → dist/shared-utils}/math/planimetry.d.ts +4 -4
  123. package/{shared-utils → dist/shared-utils}/math/rad2Deg.d.ts +0 -0
  124. package/{shared-utils → dist/shared-utils}/nearlyEqual.d.ts +0 -0
  125. package/{shared-utils → dist/shared-utils}/nextFrame.d.ts +0 -0
  126. package/{shared-utils → dist/shared-utils}/noop.d.ts +0 -0
  127. package/{shared-utils → dist/shared-utils}/object3d2LocalMatrix.d.ts +0 -0
  128. package/{shared-utils → dist/shared-utils}/px2rem.d.ts +0 -0
  129. package/dist/shared-utils/removeArrayItem.d.ts +7 -0
  130. package/{shared-utils → dist/shared-utils}/tap.d.ts +0 -0
  131. package/{shared-utils → dist/shared-utils}/three/centerPoint.d.ts +0 -0
  132. package/{shared-utils → dist/shared-utils}/three/getExtraModelLoader.d.ts +0 -0
  133. package/{shared-utils → dist/shared-utils}/three/getNormal.d.ts +0 -0
  134. package/{shared-utils → dist/shared-utils}/three/getTextureLoader.d.ts +0 -0
  135. package/{shared-utils → dist/shared-utils}/three/loadFbxObj.d.ts +0 -0
  136. package/dist/shared-utils/three/loadTexture.d.ts +2 -0
  137. package/{shared-utils → dist/shared-utils}/three/transformPositionToVector3.d.ts +0 -0
  138. package/{shared-utils → dist/shared-utils}/three/transfromToMeshBasicMaterial.d.ts +0 -0
  139. package/{shared-utils → dist/shared-utils}/throttle.d.ts +1 -1
  140. package/dist/shared-utils/tinyEJSrender.d.ts +5 -0
  141. package/{shared-utils → dist/shared-utils}/to.d.ts +0 -0
  142. package/{shared-utils → dist/shared-utils}/useDebounce.d.ts +0 -0
  143. package/{shared-utils → dist/shared-utils}/useThrottle.d.ts +0 -0
  144. package/{libs/gltf-viewer → dist/shared-utils}/uuid.d.ts +0 -0
  145. package/{shared-utils → dist/shared-utils}/vectorTocoordinates.d.ts +0 -0
  146. package/{typings → dist/typings}/math.type.d.ts +0 -0
  147. package/{typings → dist/typings}/utils.type.d.ts +0 -0
  148. package/docs/.nojekyll +1 -0
  149. package/docs/assets/highlight.css +78 -0
  150. package/docs/assets/icons.css +1043 -0
  151. package/docs/assets/icons.png +0 -0
  152. package/docs/assets/icons@2x.png +0 -0
  153. package/docs/assets/main.js +52 -0
  154. package/docs/assets/search.js +1 -0
  155. package/docs/assets/style.css +1413 -0
  156. package/docs/assets/widgets.png +0 -0
  157. package/docs/assets/widgets@2x.png +0 -0
  158. package/docs/classes/ModelRoomLabelController.html +20 -0
  159. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -0
  160. package/docs/enums/ModelFloorplanErrorType.html +1 -0
  161. package/docs/index.html +43 -0
  162. package/docs/interfaces/LineJson.html +1 -0
  163. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -0
  164. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -0
  165. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -0
  166. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -0
  167. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -0
  168. package/docs/interfaces/ModelFloorplanParameterType.html +1 -0
  169. package/docs/interfaces/ModelFloorplanViewEvent.html +5 -0
  170. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -0
  171. package/docs/interfaces/PanoCompassPluginData.html +1 -0
  172. package/docs/interfaces/PanoCompassPluginParameterType.html +1 -0
  173. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -0
  174. package/docs/interfaces/PanoRulerPluginExportType.html +1 -0
  175. package/docs/interfaces/PanoRulerPluginOptions.html +1 -0
  176. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -0
  177. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -0
  178. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -0
  179. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -0
  180. package/docs/interfaces/PointJson.html +1 -0
  181. package/docs/interfaces/RoomLabel.html +13 -0
  182. package/docs/interfaces/TopviewFloorplanPluginParameterType.html +1 -0
  183. package/docs/modules.html +28 -0
  184. package/libs/CSS3DRenderPlugin/index.d.ts +49 -0
  185. package/libs/CSS3DRenderPlugin/index.js +179 -0
  186. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
  187. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +18 -0
  188. package/libs/CameraMovementPlugin/index.d.ts +7 -0
  189. package/libs/CameraMovementPlugin/index.js +159 -0
  190. package/libs/CameraMovementPlugin/typing.d.ts +68 -0
  191. package/libs/CameraMovementPlugin/typing.js +17 -0
  192. package/libs/ModelChassisCompassPlugin/index.d.ts +19 -0
  193. package/libs/ModelChassisCompassPlugin/index.js +75 -0
  194. package/libs/ModelEntryDoorGuidePlugin/index.d.ts +26 -0
  195. package/libs/ModelEntryDoorGuidePlugin/index.js +137 -0
  196. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
  197. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -0
  198. package/libs/ModelRoomLabelPlugin/Controller.d.ts +36 -0
  199. package/libs/ModelRoomLabelPlugin/Controller.js +100 -0
  200. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +121 -0
  201. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +255 -0
  202. package/libs/ModelRoomLabelPlugin/index.d.ts +12 -0
  203. package/libs/ModelRoomLabelPlugin/index.js +9 -0
  204. package/libs/ModelRoomLabelPlugin/typings.d.ts +35 -0
  205. package/libs/ModelRoomLabelPlugin/typings.js +1 -0
  206. package/libs/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
  207. package/libs/ModelRoomLabelPlugin/utils/parseData.js +14 -0
  208. package/libs/ModelViewPlugin/index.d.ts +17 -0
  209. package/libs/ModelViewPlugin/index.js +160 -0
  210. package/libs/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
  211. package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +1 -0
  212. package/libs/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
  213. package/libs/PanoCompassPlugin/getRoomInfoInstance.js +48 -0
  214. package/libs/PanoCompassPlugin/index.d.ts +51 -0
  215. package/libs/PanoCompassPlugin/index.js +171 -0
  216. package/libs/PanoCursorRaycasterPlugin/index.d.ts +48 -0
  217. package/libs/PanoCursorRaycasterPlugin/index.js +74 -0
  218. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +36 -0
  219. package/libs/PanoMeasurePlugin/Controller/BaseController.js +69 -0
  220. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
  221. package/libs/PanoMeasurePlugin/Controller/EditController.js +216 -0
  222. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
  223. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +44 -0
  224. package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +25 -0
  225. package/libs/PanoMeasurePlugin/Controller/WatchController.js +223 -0
  226. package/libs/PanoMeasurePlugin/Controller/index.d.ts +61 -0
  227. package/libs/PanoMeasurePlugin/Controller/index.js +176 -0
  228. package/libs/PanoMeasurePlugin/Model/index.d.ts +38 -0
  229. package/libs/PanoMeasurePlugin/Model/index.js +114 -0
  230. package/libs/PanoMeasurePlugin/Model/line.d.ts +30 -0
  231. package/libs/PanoMeasurePlugin/Model/line.js +64 -0
  232. package/libs/PanoMeasurePlugin/Model/point.d.ts +16 -0
  233. package/libs/PanoMeasurePlugin/Model/point.js +28 -0
  234. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
  235. package/libs/PanoMeasurePlugin/Model/polyline.js +48 -0
  236. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
  237. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +15 -0
  238. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
  239. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +2 -0
  240. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
  241. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +2 -0
  242. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +22 -0
  243. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +108 -0
  244. package/libs/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
  245. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +33 -0
  246. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
  247. package/libs/PanoMeasurePlugin/Modules/GuideController.js +75 -0
  248. package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +24 -0
  249. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +103 -0
  250. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +6 -0
  251. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +117 -0
  252. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +18 -0
  253. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +102 -0
  254. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +12 -0
  255. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +35 -0
  256. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +16 -0
  257. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +69 -0
  258. package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +17 -0
  259. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +78 -0
  260. package/libs/PanoMeasurePlugin/index.d.ts +7 -0
  261. package/libs/PanoMeasurePlugin/index.js +5 -0
  262. package/libs/PanoMeasurePlugin/typings/data.d.ts +28 -0
  263. package/libs/PanoMeasurePlugin/typings/data.js +1 -0
  264. package/libs/PanoMeasurePlugin/typings/event.type.d.ts +28 -0
  265. package/libs/PanoMeasurePlugin/typings/event.type.js +1 -0
  266. package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
  267. package/libs/PanoMeasurePlugin/typings/utils.type.js +1 -0
  268. package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
  269. package/libs/PanoMeasurePlugin/utils/clearGroup.js +3 -0
  270. package/libs/PanoMeasurePlugin/utils/constants.d.ts +4 -0
  271. package/libs/PanoMeasurePlugin/utils/constants.js +31 -0
  272. package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
  273. package/libs/PanoMeasurePlugin/utils/distanceDom.js +114 -0
  274. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
  275. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +21 -0
  276. package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
  277. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +27 -0
  278. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
  279. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +9 -0
  280. package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
  281. package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +14 -0
  282. package/libs/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
  283. package/libs/PanoMeasurePlugin/utils/ironbox.js +1 -0
  284. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
  285. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +6 -0
  286. package/libs/PanoMeasurePlugin/utils/line.d.ts +17 -0
  287. package/libs/PanoMeasurePlugin/utils/line.js +32 -0
  288. package/libs/PanoMeasurePlugin/utils/math.d.ts +17 -0
  289. package/libs/PanoMeasurePlugin/utils/math.js +44 -0
  290. package/libs/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -0
  291. package/libs/PanoMeasurePlugin/utils/mouseGroup.js +21 -0
  292. package/libs/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
  293. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +6 -0
  294. package/libs/PanoRulerPlugin/index.d.ts +31 -0
  295. package/libs/PanoRulerPlugin/index.js +398 -0
  296. package/libs/PanoRulerPlugin/style.d.ts +2 -0
  297. package/libs/PanoRulerPlugin/style.js +88 -0
  298. package/libs/PanoRulerPlugin/typings.d.ts +21 -0
  299. package/libs/PanoRulerPlugin/typings.js +1 -0
  300. package/libs/PanoSpatialTagPlugin/Components/origins.js +168 -0
  301. package/libs/PanoSpatialTagPlugin/Components/tag.js +302 -0
  302. package/libs/PanoSpatialTagPlugin/index.d.ts +33 -0
  303. package/libs/PanoSpatialTagPlugin/index.js +411 -0
  304. package/libs/PanoSpatialTagPlugin/store.d.ts +1 -0
  305. package/libs/PanoSpatialTagPlugin/store.js +2 -0
  306. package/libs/PanoSpatialTagPlugin/style.d.ts +1 -0
  307. package/libs/PanoSpatialTagPlugin/style.js +8 -0
  308. package/libs/PanoSpatialTagPlugin/typings.d.ts +40 -0
  309. package/libs/PanoSpatialTagPlugin/typings.js +1 -0
  310. package/libs/floorplan/Assets/camera.d.ts +1 -0
  311. package/libs/floorplan/Assets/camera.js +1 -0
  312. package/libs/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
  313. package/libs/floorplan/Assets/floorplanExtraObject.js +1 -0
  314. package/libs/floorplan/Components/BaseImage.js +217 -0
  315. package/libs/floorplan/Components/Normalmage.js +63 -0
  316. package/libs/floorplan/Components/RoomHighlight/Room.js +70 -0
  317. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +289 -0
  318. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +328 -0
  319. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +64 -0
  320. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +103 -0
  321. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +140 -0
  322. package/libs/floorplan/Components/SvgImage.js +83 -0
  323. package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.d.ts +1 -0
  324. package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.js +1 -0
  325. package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.js +120 -0
  326. package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.js +114 -0
  327. package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.js +463 -0
  328. package/libs/floorplan/ModelFloorplanPlugin/Components/Main.js +383 -0
  329. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.js +171 -0
  330. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.js +265 -0
  331. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.js +301 -0
  332. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.js +219 -0
  333. package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +105 -0
  334. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +359 -0
  335. package/libs/floorplan/ModelFloorplanPlugin/index.d.ts +9 -0
  336. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -0
  337. package/libs/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +23 -0
  338. package/libs/floorplan/ModelFloorplanPlugin/typings/events.type.js +1 -0
  339. package/libs/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +15 -0
  340. package/libs/floorplan/ModelFloorplanPlugin/utils/constant.js +16 -0
  341. package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +14 -0
  342. package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +46 -0
  343. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +152 -0
  344. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +248 -0
  345. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +154 -0
  346. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +312 -0
  347. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +28 -0
  348. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +88 -0
  349. package/libs/floorplan/PanoFloorplanRadarPlugin/index.d.ts +8 -0
  350. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -0
  351. package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +62 -0
  352. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +191 -0
  353. package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -0
  354. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -0
  355. package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
  356. package/libs/floorplan/TopviewFloorplanPlugin/style.js +8 -0
  357. package/libs/floorplan/constant.d.ts +5 -0
  358. package/libs/floorplan/constant.js +6 -0
  359. package/libs/floorplan/typings/floorplanData.d.ts +137 -0
  360. package/libs/floorplan/typings/floorplanData.js +6 -0
  361. package/libs/floorplan/typings/floorplanServerData.d.ts +131 -0
  362. package/libs/floorplan/typings/floorplanServerData.js +101 -0
  363. package/libs/floorplan/typings/utility.d.ts +2 -0
  364. package/libs/floorplan/typings/utility.js +1 -0
  365. package/libs/floorplan/utils/formatData.d.ts +5 -0
  366. package/libs/floorplan/utils/formatData.js +94 -0
  367. package/libs/floorplan/utils/formatPosition.d.ts +36 -0
  368. package/libs/floorplan/utils/formatPosition.js +50 -0
  369. package/libs/index.d.ts +26 -0
  370. package/libs/index.js +16 -0
  371. package/libs/shared-utils/Preloader.d.ts +6 -0
  372. package/libs/shared-utils/Preloader.js +38 -0
  373. package/libs/shared-utils/Subscribe.d.ts +45 -0
  374. package/libs/shared-utils/Subscribe.js +101 -0
  375. package/libs/shared-utils/animationFrame/BetterTween.d.ts +11 -0
  376. package/libs/shared-utils/animationFrame/BetterTween.js +30 -0
  377. package/libs/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
  378. package/libs/shared-utils/animationFrame/calculateProgress.js +23 -0
  379. package/libs/shared-utils/animationFrame/formatRad.d.ts +15 -0
  380. package/libs/shared-utils/animationFrame/formatRad.js +20 -0
  381. package/libs/shared-utils/animationFrame/index.d.ts +15 -0
  382. package/libs/shared-utils/animationFrame/index.js +48 -0
  383. package/libs/shared-utils/animationFrame/tween.d.ts +75 -0
  384. package/libs/shared-utils/animationFrame/tween.js +44 -0
  385. package/libs/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
  386. package/libs/shared-utils/changeModelCanvasOpacity.js +15 -0
  387. package/libs/shared-utils/createCanvasTextTexture.d.ts +8 -0
  388. package/libs/shared-utils/createCanvasTextTexture.js +19 -0
  389. package/libs/shared-utils/createLine/index.d.ts +3 -0
  390. package/libs/shared-utils/createLine/index.js +8 -0
  391. package/libs/shared-utils/debounce.d.ts +6 -0
  392. package/libs/shared-utils/debounce.js +14 -0
  393. package/libs/shared-utils/equal.d.ts +11 -0
  394. package/libs/shared-utils/equal.js +84 -0
  395. package/libs/shared-utils/filter.d.ts +27 -0
  396. package/libs/shared-utils/filter.js +53 -0
  397. package/libs/shared-utils/five/changeMode.d.ts +2 -0
  398. package/libs/shared-utils/five/changeMode.js +15 -0
  399. package/libs/shared-utils/five/useFivePlugin.d.ts +1 -0
  400. package/libs/shared-utils/five/useFivePlugin.js +8 -0
  401. package/libs/shared-utils/formatRad.d.ts +7 -0
  402. package/libs/shared-utils/formatRad.js +10 -0
  403. package/libs/shared-utils/getPxmm.d.ts +11 -0
  404. package/libs/shared-utils/getPxmm.js +34 -0
  405. package/libs/shared-utils/getRandomColor.d.ts +1 -0
  406. package/libs/shared-utils/getRandomColor.js +10 -0
  407. package/libs/shared-utils/isNil.d.ts +10 -0
  408. package/libs/shared-utils/isNil.js +14 -0
  409. package/libs/shared-utils/isTruelyObject.d.ts +18 -0
  410. package/libs/shared-utils/isTruelyObject.js +20 -0
  411. package/libs/shared-utils/math/evenNumber.d.ts +3 -0
  412. package/libs/shared-utils/math/evenNumber.js +4 -0
  413. package/libs/shared-utils/math/planimetry.d.ts +116 -0
  414. package/libs/shared-utils/math/planimetry.js +288 -0
  415. package/libs/shared-utils/math/rad2Deg.d.ts +1 -0
  416. package/libs/shared-utils/math/rad2Deg.js +3 -0
  417. package/libs/shared-utils/nearlyEqual.d.ts +7 -0
  418. package/libs/shared-utils/nearlyEqual.js +9 -0
  419. package/libs/shared-utils/nextFrame.d.ts +1 -0
  420. package/libs/shared-utils/nextFrame.js +6 -0
  421. package/libs/shared-utils/noop.d.ts +5 -0
  422. package/libs/shared-utils/noop.js +7 -0
  423. package/libs/shared-utils/object3d2LocalMatrix.d.ts +12 -0
  424. package/libs/shared-utils/object3d2LocalMatrix.js +29 -0
  425. package/libs/shared-utils/px2rem.d.ts +1 -0
  426. package/libs/shared-utils/px2rem.js +4 -0
  427. package/libs/shared-utils/removeArrayItem.d.ts +7 -0
  428. package/libs/shared-utils/removeArrayItem.js +12 -0
  429. package/libs/shared-utils/tap.d.ts +8 -0
  430. package/{shared-utils → libs/shared-utils}/tap.js +4 -13
  431. package/libs/shared-utils/three/centerPoint.d.ts +2 -0
  432. package/libs/shared-utils/three/centerPoint.js +4 -0
  433. package/libs/shared-utils/three/getExtraModelLoader.d.ts +6 -0
  434. package/libs/shared-utils/three/getExtraModelLoader.js +18 -0
  435. package/libs/shared-utils/three/getNormal.d.ts +2 -0
  436. package/libs/shared-utils/three/getNormal.js +6 -0
  437. package/libs/shared-utils/three/getTextureLoader.d.ts +6 -0
  438. package/libs/shared-utils/three/getTextureLoader.js +17 -0
  439. package/libs/shared-utils/three/loadFbxObj.d.ts +2 -0
  440. package/libs/shared-utils/three/loadFbxObj.js +13 -0
  441. package/libs/shared-utils/three/loadTexture.d.ts +2 -0
  442. package/libs/shared-utils/three/loadTexture.js +10 -0
  443. package/libs/shared-utils/three/transformPositionToVector3.d.ts +7 -0
  444. package/libs/shared-utils/three/transformPositionToVector3.js +3 -0
  445. package/libs/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
  446. package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +14 -0
  447. package/libs/shared-utils/throttle.d.ts +7 -0
  448. package/libs/shared-utils/throttle.js +18 -0
  449. package/libs/shared-utils/tinyEJSrender.d.ts +5 -0
  450. package/libs/shared-utils/tinyEJSrender.js +180 -0
  451. package/libs/shared-utils/to.d.ts +8 -0
  452. package/libs/shared-utils/to.js +18 -0
  453. package/libs/shared-utils/useDebounce.d.ts +8 -0
  454. package/libs/shared-utils/useDebounce.js +22 -0
  455. package/libs/shared-utils/useThrottle.d.ts +8 -0
  456. package/libs/shared-utils/useThrottle.js +25 -0
  457. package/{shared-utils → libs/shared-utils}/uuid.d.ts +0 -0
  458. package/libs/shared-utils/uuid.js +11 -0
  459. package/libs/shared-utils/vectorTocoordinates.d.ts +7 -0
  460. package/libs/shared-utils/vectorTocoordinates.js +9 -0
  461. package/libs/typings/math.type.d.ts +44 -0
  462. package/libs/typings/math.type.js +1 -0
  463. package/libs/typings/utils.type.d.ts +2 -0
  464. package/libs/typings/utils.type.js +1 -0
  465. package/package.json +55 -17
  466. package/components/ARVideoFigure/ARVideoFigureMesh.d.ts +0 -44
  467. package/components/ARVideoFigure/ARVideoFigureMesh.js +0 -371
  468. package/components/ARVideoFigure/ARVideoFigureScene.d.ts +0 -11
  469. package/components/ARVideoFigure/ARVideoFigureScene.js +0 -85
  470. package/components/ARVideoFigure/ImgBgTransparent.d.ts +0 -16
  471. package/components/ARVideoFigure/ImgBgTransparent.js +0 -65
  472. package/components/ARVideoFigure/ImgBgTransparentMesh.d.ts +0 -30
  473. package/components/ARVideoFigure/ImgBgTransparentMesh.js +0 -183
  474. package/components/ARVideoFigure/fragmentShader.d.ts +0 -5
  475. package/components/ARVideoFigure/fragmentShader.js +0 -18
  476. package/components/ARVideoFigure/index.d.ts +0 -15
  477. package/components/ARVideoFigure/index.js +0 -80
  478. package/components/ARVideoFigure/vertexShader.d.ts +0 -1
  479. package/components/ARVideoFigure/vertexShader.js +0 -10
  480. package/components/GLTFView/index.d.ts +0 -72
  481. package/components/GLTFView/index.js +0 -149
  482. package/components/GlassFilters/index.d.ts +0 -32
  483. package/components/GlassFilters/index.js +0 -78
  484. package/components/ModelView/ModelViewController.d.ts +0 -18
  485. package/components/ModelView/ModelViewController.js +0 -157
  486. package/components/ModelView/index.d.ts +0 -10
  487. package/components/ModelView/index.js +0 -24
  488. package/components/PaintBrush/index.d.ts +0 -16
  489. package/components/PaintBrush/index.js +0 -47
  490. package/components/PanoTag/index.d.ts +0 -4
  491. package/components/PanoTag/index.js +0 -13
  492. package/custom.d.js +0 -3
  493. package/data/1aGKl9JmrlXMXx8d.d.ts +0 -104
  494. package/data/1aGKl9JmrlXMXx8d.js +0 -537
  495. package/data/54djM0oR6ky3Ey8e.d.ts +0 -55
  496. package/data/54djM0oR6ky3Ey8e.js +0 -350
  497. package/data/6gyq3v1verxD7JO1.d.ts +0 -104
  498. package/data/6gyq3v1verxD7JO1.js +0 -462
  499. package/data/8054djM0oR6ky3Ey8e.d.ts +0 -55
  500. package/data/8054djM0oR6ky3Ey8e.js +0 -350
  501. package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.d.ts +0 -84
  502. package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.js +0 -600
  503. package/data/PrXel3aqGbp34JQn.d.ts +0 -389
  504. package/data/PrXel3aqGbp34JQn.js +0 -4649
  505. package/data/XJ6NMLWnkAY3Rdx8.d.ts +0 -843
  506. package/data/XJ6NMLWnkAY3Rdx8.js +0 -7989
  507. package/data/YdoNP9K4rwQDwjJr.d.ts +0 -83
  508. package/data/YdoNP9K4rwQDwjJr.js +0 -1453
  509. package/data/ZLvK29zj4L29Jowd.d.ts +0 -55
  510. package/data/ZLvK29zj4L29Jowd.js +0 -372
  511. package/data/auto3d-njL5J99VwCmnjtQElOmXQr.d.ts +0 -86
  512. package/data/auto3d-njL5J99VwCmnjtQElOmXQr.js +0 -711
  513. package/data/extrude-walls/ZLvK29zj4L29Jowd.d.ts +0 -5
  514. package/data/extrude-walls/ZLvK29zj4L29Jowd.js +0 -14
  515. package/data/extrude-walls/lo024DEgzanMj5BE.d.ts +0 -5
  516. package/data/extrude-walls/lo024DEgzanMj5BE.js +0 -14
  517. package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.d.ts +0 -85
  518. package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.js +0 -511
  519. package/data/lo024DEgzanMj5BE.d.ts +0 -55
  520. package/data/lo024DEgzanMj5BE.js +0 -966
  521. package/data/oPzy3ApbjjpD8YdR.d.ts +0 -83
  522. package/data/oPzy3ApbjjpD8YdR.js +0 -283
  523. package/data/qjAxMG4XbPn96wKG.d.ts +0 -104
  524. package/data/qjAxMG4XbPn96wKG.js +0 -637
  525. package/data/rXel3aPQRRBD4JQn.d.ts +0 -86
  526. package/data/rXel3aPQRRBD4JQn.js +0 -622
  527. package/data/vLykj3NWrllMrG06.d.ts +0 -91
  528. package/data/vLykj3NWrllMrG06.js +0 -2729
  529. package/data/wz0QV9KA4ugyo9ME.d.ts +0 -39
  530. package/data/wz0QV9KA4ugyo9ME.js +0 -136
  531. package/data/zxMawr9raSg8LYjG.d.ts +0 -53
  532. package/data/zxMawr9raSg8LYjG.js +0 -590
  533. package/examples/FiveStateController/index.js +0 -134
  534. package/examples/VRHouse/Mobile.js +0 -36
  535. package/examples/VRHouse/PC.js +0 -36
  536. package/examples/VRHouse/index.js +0 -36
  537. package/index.d.ts +0 -15
  538. package/index.js +0 -45
  539. package/libs/gltf-viewer/Subscribe.d.ts +0 -76
  540. package/libs/gltf-viewer/Subscribe.js +0 -231
  541. package/libs/gltf-viewer/coordsMoveByOffset.d.ts +0 -13
  542. package/libs/gltf-viewer/coordsMoveByOffset.js +0 -22
  543. package/libs/gltf-viewer/coordsToDirection.d.ts +0 -5
  544. package/libs/gltf-viewer/coordsToDirection.js +0 -41
  545. package/libs/gltf-viewer/formatRad.d.ts +0 -1
  546. package/libs/gltf-viewer/formatRad.js +0 -13
  547. package/libs/gltf-viewer/getFrameTime.d.ts +0 -1
  548. package/libs/gltf-viewer/getFrameTime.js +0 -28
  549. package/libs/gltf-viewer/index.d.ts +0 -55
  550. package/libs/gltf-viewer/index.js +0 -650
  551. package/libs/gltf-viewer/mouseWheel.d.ts +0 -2
  552. package/libs/gltf-viewer/mouseWheel.js +0 -59
  553. package/libs/gltf-viewer/requestAnimationFrame.d.ts +0 -1
  554. package/libs/gltf-viewer/requestAnimationFrame.js +0 -18
  555. package/libs/gltf-viewer/requestAnimationFrameInterval.d.ts +0 -1
  556. package/libs/gltf-viewer/requestAnimationFrameInterval.js +0 -31
  557. package/libs/gltf-viewer/uuid.js +0 -28
  558. package/plugins/AutoPreloadPlugin/index.d.ts +0 -23
  559. package/plugins/AutoPreloadPlugin/index.js +0 -111
  560. package/plugins/CSS3DRenderPlugin/components/Marker/index.d.ts +0 -12
  561. package/plugins/CSS3DRenderPlugin/components/Marker/index.js +0 -121
  562. package/plugins/CSS3DRenderPlugin/index.js +0 -298
  563. package/plugins/CameraMovementPlugin/index.js +0 -362
  564. package/plugins/CameraMovementPlugin/typing.js +0 -37
  565. package/plugins/ModelChassisCompassPlugin/index.js +0 -157
  566. package/plugins/ModelEntryDoorGuidePlugin/index.js +0 -247
  567. package/plugins/ModelExtrudeWallsPlugin/index.d.ts +0 -16
  568. package/plugins/ModelExtrudeWallsPlugin/index.js +0 -252
  569. package/plugins/ModelRoomLabelPlugin/Controller.js +0 -153
  570. package/plugins/ModelRoomLabelPlugin/RoomLabelItem.d.ts +0 -8
  571. package/plugins/ModelRoomLabelPlugin/RoomLabelItem.js +0 -66
  572. package/plugins/ModelRoomLabelPlugin/RoomLabelItems.d.ts +0 -7
  573. package/plugins/ModelRoomLabelPlugin/RoomLabelItems.js +0 -159
  574. package/plugins/ModelRoomLabelPlugin/index.d.ts +0 -8
  575. package/plugins/ModelRoomLabelPlugin/index.js +0 -18
  576. package/plugins/ModelRoomLabelPlugin/typings.js +0 -7
  577. package/plugins/ModelRoomLabelPlugin/utils/parseData.js +0 -35
  578. package/plugins/ModelTVVideoPlugin/index.d.ts +0 -21
  579. package/plugins/ModelTVVideoPlugin/index.js +0 -397
  580. package/plugins/ModelViewPlugin/index.js +0 -223
  581. package/plugins/PanoCursorRaycasterPlugin/PanoCursorRaycasterPluginUsage.d.ts +0 -48
  582. package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.d.ts +0 -9
  583. package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.js +0 -117
  584. package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.d.ts +0 -11
  585. package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.js +0 -39
  586. package/plugins/PanoCursorRaycasterPlugin/index.js +0 -126
  587. package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.d.ts +0 -5
  588. package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.js +0 -27
  589. package/plugins/PanoCursorRaycasterPlugin/utils/createLine.d.ts +0 -3
  590. package/plugins/PanoCursorRaycasterPlugin/utils/createLine.js +0 -48
  591. package/plugins/PanoDoorLabelPlugin/index.d.ts +0 -4
  592. package/plugins/PanoDoorLabelPlugin/index.js +0 -14
  593. package/plugins/PanoIRobotPlugin/index.d.ts +0 -10
  594. package/plugins/PanoIRobotPlugin/index.js +0 -18
  595. package/plugins/PanoMaskSelectorPlugin/compare.d.ts +0 -1
  596. package/plugins/PanoMaskSelectorPlugin/compare.js +0 -17
  597. package/plugins/PanoMaskSelectorPlugin/createBox.d.ts +0 -7
  598. package/plugins/PanoMaskSelectorPlugin/createBox.js +0 -79
  599. package/plugins/PanoMaskSelectorPlugin/createTextures.d.ts +0 -3
  600. package/plugins/PanoMaskSelectorPlugin/createTextures.js +0 -45
  601. package/plugins/PanoMaskSelectorPlugin/fragmentShader.d.ts +0 -1
  602. package/plugins/PanoMaskSelectorPlugin/fragmentShader.js +0 -10
  603. package/plugins/PanoMaskSelectorPlugin/index.d.ts +0 -49
  604. package/plugins/PanoMaskSelectorPlugin/index.js +0 -348
  605. package/plugins/PanoMaskSelectorPlugin/vertexShader.d.ts +0 -1
  606. package/plugins/PanoMaskSelectorPlugin/vertexShader.js +0 -10
  607. package/plugins/PanoRulerPlugin/data/roomInfo.d.ts +0 -3
  608. package/plugins/PanoRulerPlugin/data/roomInfo.js +0 -51
  609. package/plugins/PanoRulerPlugin/data/roomRules.d.ts +0 -3
  610. package/plugins/PanoRulerPlugin/data/roomRules.js +0 -235
  611. package/plugins/PanoRulerPlugin/index.js +0 -637
  612. package/plugins/PanoRulerPlugin/typings.js +0 -7
  613. package/plugins/PanoTVVideoPlugin/index.d.ts +0 -26
  614. package/plugins/PanoTVVideoPlugin/index.js +0 -433
  615. package/plugins/TreasurePlugin/Controller.d.ts +0 -73
  616. package/plugins/TreasurePlugin/Controller.js +0 -250
  617. package/plugins/TreasurePlugin/TreasureFaceAnime.d.ts +0 -25
  618. package/plugins/TreasurePlugin/TreasureFaceAnime.js +0 -143
  619. package/plugins/TreasurePlugin/TreasureObject.d.ts +0 -53
  620. package/plugins/TreasurePlugin/TreasureObject.js +0 -406
  621. package/plugins/TreasurePlugin/TreasureOpenAnime.d.ts +0 -25
  622. package/plugins/TreasurePlugin/TreasureOpenAnime.js +0 -127
  623. package/plugins/TreasurePlugin/constants.d.ts +0 -33
  624. package/plugins/TreasurePlugin/constants.js +0 -67
  625. package/plugins/TreasurePlugin/index.d.ts +0 -11
  626. package/plugins/TreasurePlugin/index.js +0 -26
  627. package/plugins/TreasurePlugin/typings.d.ts +0 -2
  628. package/plugins/TreasurePlugin/typings.js +0 -7
  629. package/plugins/floorplan/Assets/floorplanExtraObject.d.ts +0 -1
  630. package/plugins/floorplan/Assets/floorplanExtraObject.js +0 -10
  631. package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +0 -626
  632. package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.d.ts +0 -13
  633. package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +0 -78
  634. package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.d.ts +0 -5
  635. package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +0 -84
  636. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.d.ts +0 -10
  637. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.js +0 -129
  638. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.d.ts +0 -13
  639. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +0 -118
  640. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.d.ts +0 -13
  641. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +0 -62
  642. package/plugins/floorplan/ModelFloorplanPlugin/components/index.d.ts +0 -20
  643. package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +0 -88
  644. package/plugins/floorplan/ModelFloorplanPlugin/controller.style.js +0 -16
  645. package/plugins/floorplan/ModelFloorplanPlugin/index.js +0 -20
  646. package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.js +0 -7
  647. package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.js +0 -33
  648. package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +0 -154
  649. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.d.ts +0 -13
  650. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.js +0 -113
  651. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.d.ts +0 -3
  652. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.js +0 -39
  653. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.d.ts +0 -5
  654. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.js +0 -66
  655. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.d.ts +0 -9
  656. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.js +0 -126
  657. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.d.ts +0 -11
  658. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.js +0 -58
  659. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.d.ts +0 -17
  660. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.js +0 -85
  661. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.d.ts +0 -2
  662. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.js +0 -15
  663. package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.js +0 -211
  664. package/plugins/floorplan/PanoFloorplanRadarPlugin/index.js +0 -20
  665. package/plugins/floorplan/TopviewFloorplanPlugin/Controller.js +0 -262
  666. package/plugins/floorplan/TopviewFloorplanPlugin/index.js +0 -18
  667. package/plugins/floorplan/TopviewFloorplanPlugin/style.js +0 -16
  668. package/plugins/floorplan/components/FloorplanImage.d.ts +0 -7
  669. package/plugins/floorplan/components/FloorplanImage.js +0 -90
  670. package/plugins/floorplan/typings/floorplanData.js +0 -7
  671. package/plugins/floorplan/typings/floorplanServerData.js +0 -382
  672. package/plugins/floorplan/utils/formatData.js +0 -217
  673. package/plugins/floorplan/utils/formatPosition.js +0 -89
  674. package/shared-utils/Preloader.js +0 -57
  675. package/shared-utils/Subscribe.js +0 -230
  676. package/shared-utils/animationFrame/BetterTween.js +0 -103
  677. package/shared-utils/animationFrame/calculateProgress.js +0 -40
  678. package/shared-utils/animationFrame/formatRad.js +0 -36
  679. package/shared-utils/animationFrame/index.js +0 -81
  680. package/shared-utils/animationFrame/tween.js +0 -92
  681. package/shared-utils/changeModelCanvansOpacity.d.ts +0 -2
  682. package/shared-utils/changeModelCanvansOpacity.js +0 -38
  683. package/shared-utils/createCanvasTextTexture.js +0 -31
  684. package/shared-utils/createFiveContainer.d.ts +0 -10
  685. package/shared-utils/createFiveContainer.js +0 -171
  686. package/shared-utils/createLine/index.js +0 -43
  687. package/shared-utils/debounce.js +0 -30
  688. package/shared-utils/equal.js +0 -107
  689. package/shared-utils/filter.js +0 -127
  690. package/shared-utils/five/changeMode.js +0 -82
  691. package/shared-utils/five/useFivePlugin.js +0 -17
  692. package/shared-utils/formatRad.js +0 -18
  693. package/shared-utils/getPxmm.d.ts +0 -6
  694. package/shared-utils/getPxmm.js +0 -51
  695. package/shared-utils/getRandomColor.js +0 -23
  696. package/shared-utils/isNil.js +0 -26
  697. package/shared-utils/isTruelyObject.js +0 -31
  698. package/shared-utils/math/evenNumber.d.ts +0 -1
  699. package/shared-utils/math/evenNumber.js +0 -13
  700. package/shared-utils/math/planimetry.js +0 -352
  701. package/shared-utils/math/rad2Deg.js +0 -12
  702. package/shared-utils/nearlyEqual.js +0 -19
  703. package/shared-utils/nextFrame.js +0 -15
  704. package/shared-utils/noop.js +0 -19
  705. package/shared-utils/object3d2LocalMatrix.js +0 -79
  706. package/shared-utils/px2rem.js +0 -22
  707. package/shared-utils/three/centerPoint.js +0 -14
  708. package/shared-utils/three/getExtraModelLoader.js +0 -45
  709. package/shared-utils/three/getNormal.js +0 -17
  710. package/shared-utils/three/getTextureLoader.js +0 -50
  711. package/shared-utils/three/loadFbxObj.js +0 -54
  712. package/shared-utils/three/loadTexture.d.ts +0 -2
  713. package/shared-utils/three/loadTexture.js +0 -46
  714. package/shared-utils/three/transformPositionToVector3.js +0 -20
  715. package/shared-utils/three/transfromToMeshBasicMaterial.js +0 -33
  716. package/shared-utils/throttle.js +0 -29
  717. package/shared-utils/to.js +0 -67
  718. package/shared-utils/useDebounce.js +0 -49
  719. package/shared-utils/useThrottle.js +0 -47
  720. package/shared-utils/uuid.js +0 -28
  721. package/shared-utils/vectorTocoordinates.js +0 -18
  722. package/typedoc/components.d.ts +0 -6
  723. package/typedoc/components.js +0 -7
  724. package/typedoc/plugins.d.ts +0 -19
  725. package/typedoc/plugins.js +0 -165
  726. package/typedoc/shared-utils.d.ts +0 -3
  727. package/typedoc/shared-utils.js +0 -7
  728. package/typedoc/typings.d.ts +0 -3
  729. package/typedoc/typings.js +0 -7
  730. package/typings/math.type.js +0 -7
  731. package/typings/utils.type.js +0 -7
@@ -1,65 +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.ImgBgTransparent = ImgBgTransparent;
25
-
26
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
27
-
28
- require("core-js/modules/es.object.assign.js");
29
-
30
- var React = _interopRequireWildcard(require("react"));
31
-
32
- var _classnames = _interopRequireDefault(require("classnames"));
33
-
34
- var _ImgBgTransparentMesh = require("./ImgBgTransparentMesh");
35
-
36
- 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); }
37
-
38
- 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; }
39
-
40
- /**
41
- * **透明背景** 与 **AR 视频形象** `ARVideoFigure` 实现原理一致,不过此组件仅针对图片。
42
- *
43
- * 生产环境中还是建议直接采用 `png` 这类支持透明背景的图片。在实际业务落地过程中,如果视频文件生成比较滞后,你可以先通过对应图片来预览效果,调试相关参数。
44
- *
45
- * @param props
46
- * @returns
47
- */
48
- function ImgBgTransparent(props) {
49
- var ref = React.useRef(null);
50
- React.useEffect(function () {
51
- if (!ref.current) return;
52
- var imgBgTransparentScene = new _ImgBgTransparentMesh.ImgBgTransparentScene(ref.current, props.imgUrl);
53
- Object.assign(window, {
54
- $imgBgTransparentScene: imgBgTransparentScene
55
- });
56
-
57
- if (props.imgBgTransparentSceneRef) {
58
- props.imgBgTransparentSceneRef(imgBgTransparentScene);
59
- }
60
- }, []);
61
- return /*#__PURE__*/React.createElement("div", {
62
- className: (0, _classnames["default"])('ImgBgTransparent', (0, _defineProperty2["default"])({}, props.className + '', !!props.className)),
63
- ref: ref
64
- });
65
- }
@@ -1,30 +0,0 @@
1
- import * as THREE from 'three';
2
- export declare class ImgBgTransparentMesh extends THREE.Mesh {
3
- imgUrl?: string;
4
- freeze: boolean;
5
- get imageTexture(): THREE.Texture;
6
- /**
7
- *
8
- * @param imgUrl
9
- * @param width
10
- * @param height
11
- * @param widthSegments
12
- * @param heightSegments
13
- */
14
- constructor(imgUrl: string, width: number, height: number, widthSegments: number, heightSegments: number, onLoad?: (texture: THREE.Texture) => void);
15
- private get uniforms();
16
- setHidden(hidden: boolean): void;
17
- updateUniforms({ range, edge0, edge1 }: {
18
- range: number;
19
- edge0: number;
20
- edge1: number;
21
- }): void;
22
- }
23
- export declare class ImgBgTransparentScene {
24
- scene: THREE.Scene;
25
- renderer: THREE.WebGLRenderer;
26
- camera: THREE.OrthographicCamera;
27
- mesh: ImgBgTransparentMesh;
28
- constructor(container: HTMLElement, imgUrl: string);
29
- render(): void;
30
- }
@@ -1,183 +0,0 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.reflect.construct.js");
4
-
5
- require("core-js/modules/es.array.iterator.js");
6
-
7
- require("core-js/modules/es.object.to-string.js");
8
-
9
- require("core-js/modules/es.string.iterator.js");
10
-
11
- require("core-js/modules/es.weak-map.js");
12
-
13
- require("core-js/modules/web.dom-collections.iterator.js");
14
-
15
- require("core-js/modules/es.object.define-property.js");
16
-
17
- require("core-js/modules/es.object.get-own-property-descriptor.js");
18
-
19
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
20
-
21
- var _typeof = require("@babel/runtime/helpers/typeof");
22
-
23
- Object.defineProperty(exports, "__esModule", {
24
- value: true
25
- });
26
- exports.ImgBgTransparentScene = exports.ImgBgTransparentMesh = void 0;
27
-
28
- require("core-js/modules/es.array.map.js");
29
-
30
- require("core-js/modules/es.array.concat.js");
31
-
32
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
33
-
34
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
35
-
36
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
37
-
38
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
39
-
40
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
41
-
42
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
43
-
44
- var THREE = _interopRequireWildcard(require("three"));
45
-
46
- var _vertexShader = require("./vertexShader");
47
-
48
- var _fragmentShader = require("./fragmentShader");
49
-
50
- 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); }
51
-
52
- 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; }
53
-
54
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
55
-
56
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
57
-
58
- var ImgBgTransparentMesh = /*#__PURE__*/function (_THREE$Mesh) {
59
- (0, _inherits2["default"])(ImgBgTransparentMesh, _THREE$Mesh);
60
-
61
- var _super = _createSuper(ImgBgTransparentMesh);
62
-
63
- /**
64
- *
65
- * @param imgUrl
66
- * @param width
67
- * @param height
68
- * @param widthSegments
69
- * @param heightSegments
70
- */
71
- function ImgBgTransparentMesh(imgUrl, width, height, widthSegments, heightSegments, onLoad) {
72
- var _this;
73
-
74
- (0, _classCallCheck2["default"])(this, ImgBgTransparentMesh);
75
- var geometry = new THREE.PlaneGeometry(width, height, widthSegments, heightSegments);
76
- var imageTexture = new THREE.TextureLoader().load(imgUrl || '//vrlab-static.ljcdn.com/release/web/trans.92281b56.jpg', function (texture) {
77
- if (onLoad) {
78
- onLoad(texture);
79
- }
80
- });
81
- var material = new THREE.ShaderMaterial({
82
- uniforms: {
83
- map: {
84
- value: imageTexture
85
- },
86
- enable: {
87
- value: 0
88
- },
89
- range: {
90
- value: 0.15
91
- },
92
- edge0: {
93
- value: 0.1
94
- },
95
- edge1: {
96
- value: 0.3
97
- }
98
- },
99
- vertexShader: _vertexShader.vertexShader,
100
- fragmentShader: (0, _fragmentShader.fragmentShaderTpl)(),
101
- transparent: true
102
- });
103
- _this = _super.call(this, geometry, material);
104
- _this.imgUrl = imgUrl;
105
- _this.freeze = false;
106
- return _this;
107
- }
108
-
109
- (0, _createClass2["default"])(ImgBgTransparentMesh, [{
110
- key: "imageTexture",
111
- get: function get() {
112
- return this.uniforms.map.value;
113
- }
114
- }, {
115
- key: "uniforms",
116
- get: function get() {
117
- var uniforms = this.material.uniforms;
118
- return uniforms;
119
- }
120
- }, {
121
- key: "setHidden",
122
- value: function setHidden(hidden) {
123
- this.uniforms.enable.value = hidden ? 0 : 1;
124
- }
125
- }, {
126
- key: "updateUniforms",
127
- value: function updateUniforms(_ref) {
128
- var range = _ref.range,
129
- edge0 = _ref.edge0,
130
- edge1 = _ref.edge1;
131
- this.uniforms.range.value = isNaN(range) ? 0.15 : range;
132
- this.uniforms.edge0.value = isNaN(edge0) ? 0.1 : edge0;
133
- this.uniforms.edge1.value = isNaN(edge1) ? 0.1 : edge1;
134
- console.log(this.uniforms);
135
- }
136
- }]);
137
- return ImgBgTransparentMesh;
138
- }(THREE.Mesh);
139
-
140
- exports.ImgBgTransparentMesh = ImgBgTransparentMesh;
141
-
142
- var ImgBgTransparentScene = /*#__PURE__*/function () {
143
- function ImgBgTransparentScene(container, imgUrl) {
144
- var _this2 = this;
145
-
146
- (0, _classCallCheck2["default"])(this, ImgBgTransparentScene);
147
- (0, _defineProperty2["default"])(this, "scene", new THREE.Scene());
148
- (0, _defineProperty2["default"])(this, "renderer", new THREE.WebGLRenderer({
149
- alpha: true
150
- }));
151
- var state = {
152
- width: container.offsetWidth,
153
- height: container.offsetHeight
154
- };
155
- this.camera = new THREE.OrthographicCamera(-state.width / 2, state.width / 2, state.height / 2, -state.height / 2);
156
- this.camera.position.set(0, 0, 10);
157
- this.camera.lookAt(0, 0, 0);
158
- var domElement = this.renderer.domElement;
159
- domElement.classList.add('ImgBgTransparent-canvas');
160
- this.renderer.setSize(state.width * window.devicePixelRatio, state.height * window.devicePixelRatio);
161
- domElement.setAttribute('style', "width: ".concat(state.width, "px;height: ").concat(state.height, "px;"));
162
- this.mesh = new ImgBgTransparentMesh(imgUrl, state.width, state.height, 1, 1, // 图片下载延迟,下载成功后重新渲染一次
163
- function () {
164
- _this2.mesh.setHidden(false);
165
-
166
- _this2.render();
167
- });
168
- container.append(domElement);
169
- this.scene.add(this.mesh);
170
- this.mesh.setHidden(false);
171
- this.render();
172
- }
173
-
174
- (0, _createClass2["default"])(ImgBgTransparentScene, [{
175
- key: "render",
176
- value: function render() {
177
- this.renderer.render(this.scene, this.camera);
178
- }
179
- }]);
180
- return ImgBgTransparentScene;
181
- }();
182
-
183
- exports.ImgBgTransparentScene = ImgBgTransparentScene;
@@ -1,5 +0,0 @@
1
- /**
2
- *
3
- * @returns fragmentShader [GLSL](https://www.khronos.org/opengl/wiki/Core_Language_(GLSL)).
4
- */
5
- export declare const fragmentShaderTpl: () => string;
@@ -1,18 +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.fragmentShaderTpl = void 0;
9
-
10
- /**
11
- *
12
- * @returns fragmentShader [GLSL](https://www.khronos.org/opengl/wiki/Core_Language_(GLSL)).
13
- */
14
- var fragmentShaderTpl = function fragmentShaderTpl() {
15
- return "\nuniform int enable;\nuniform float range;\nuniform float edge0;\nuniform float edge1;\n\nuniform sampler2D map;\nvarying vec2 vUv;\nvarying vec2 vColorUv;\nvarying vec2 vMaskUv;\n\nvec3 hsv2rgb(vec3 c) {\n const vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);\n vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);\n return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);\n}\n\nvec3 rgb2hsv(vec3 c) {\n const vec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);\n vec4 p = mix(vec4(c.bg, K.wz), vec4(c.gb, K.xy), step(c.b, c.g));\n vec4 q = mix(vec4(p.xyw, c.r), vec4(c.r, p.yzx), step(p.x, c.r));\n\n float d = q.x - min(q.w, q.y);\n return vec3(abs(q.z + (q.w - q.y) / (6.0 * d + 0.001)), d / (q.x + 0.001), q.x);\n}\n\nvoid main(void) {\n vec3 color = texture2D(map, vUv).xyz;\n float amask = 1.0;\n\n float ref = color.r;\n if (ref < color.b) ref = color.b;\n amask = color.g - ref + 0.1;\n amask = smoothstep(edge0, edge1, amask);\n amask = 1.0 - amask;\n\n vec3 target = rgb2hsv(vec3(0.0 / 255.0, 255.0 / 255.0, 0.0 / 255.0));\n vec3 hsv = rgb2hsv(color);\n float distance = abs(hsv.x - target.x);\n if (distance < range) {\n hsv.y = 0.0;\n }\n color = hsv2rgb(hsv);\n\n gl_FragColor = vec4(color.rgb, amask * float(enable));\n}\n";
16
- };
17
-
18
- exports.fragmentShaderTpl = fragmentShaderTpl;
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import { ARVideoFigureScene } from './ARVideoFigureScene';
3
- export interface ARVideoFigurePropTypes {
4
- className?: string;
5
- arVideoFigureSceneRef?: (arVideoFigureScene: ARVideoFigureScene) => void;
6
- __debug__?: boolean;
7
- onClick?: () => void;
8
- }
9
- /**
10
- * **AR 视频形象**:剔除视频的绿幕背景,以实时视频的形式在 Web 页面模拟视频人物形象的效果。
11
- * @param props
12
- * @returns
13
- */
14
- export declare function ARVideoFigure(props: ARVideoFigurePropTypes): JSX.Element;
15
- export default ARVideoFigure;
@@ -1,80 +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.ARVideoFigure = ARVideoFigure;
25
- exports["default"] = void 0;
26
-
27
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
28
-
29
- require("core-js/modules/es.object.assign.js");
30
-
31
- var React = _interopRequireWildcard(require("react"));
32
-
33
- var _classnames = _interopRequireDefault(require("classnames"));
34
-
35
- var _ARVideoFigureScene = require("./ARVideoFigureScene");
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
- /**
42
- * **AR 视频形象**:剔除视频的绿幕背景,以实时视频的形式在 Web 页面模拟视频人物形象的效果。
43
- * @param props
44
- * @returns
45
- */
46
- function ARVideoFigure(props) {
47
- var ref = React.useRef(null);
48
- var sceneRef = React.useRef();
49
- React.useEffect(function () {
50
- if (!ref.current) return;
51
- sceneRef.current = new _ARVideoFigureScene.ARVideoFigureScene(ref.current);
52
-
53
- if (props.arVideoFigureSceneRef) {
54
- props.arVideoFigureSceneRef(sceneRef.current);
55
- }
56
- }, []);
57
- React.useEffect(function () {
58
- if (!sceneRef.current) return;
59
- Object.assign(window, {
60
- $sceneRef: sceneRef.current
61
- });
62
- }, [props.__debug__]);
63
- return /*#__PURE__*/React.createElement("div", {
64
- className: (0, _classnames["default"])('ARVideoFigure', (0, _defineProperty2["default"])({}, props.className + '', !!props.className)),
65
- ref: ref // 渲染的宽度、高度由使用者控制:与父结点的宽高相同
66
- ,
67
- style: {
68
- width: '100%',
69
- height: '100%'
70
- },
71
- onClick: function onClick() {
72
- if (props.onClick) {
73
- props.onClick();
74
- }
75
- }
76
- });
77
- }
78
-
79
- var _default = ARVideoFigure;
80
- exports["default"] = _default;
@@ -1 +0,0 @@
1
- export declare const vertexShader = "\nvarying vec2 vUv;\nvarying vec2 vColorUv;\nvarying vec2 vMaskUv;\nvoid main(){\n vUv = uv;\n vColorUv = vec2(uv.x / 2.0, uv.y);\n vMaskUv = vec2(0.5 + uv.x / 2.0, uv.y);\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n}\n";
@@ -1,10 +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.vertexShader = void 0;
9
- var vertexShader = "\nvarying vec2 vUv;\nvarying vec2 vColorUv;\nvarying vec2 vMaskUv;\nvoid main(){\n vUv = uv;\n vColorUv = vec2(uv.x / 2.0, uv.y);\n vMaskUv = vec2(0.5 + uv.x / 2.0, uv.y);\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n}\n";
10
- exports.vertexShader = vertexShader;
@@ -1,72 +0,0 @@
1
- import * as React from 'react';
2
- import { GLTFViewer, GLTFViewerConfig } from '../../libs/gltf-viewer';
3
- export declare type GLTFViewPropTypes = {
4
- url: string;
5
- className?: string;
6
- ref?: (gltfViewer: GLTFViewer) => void;
7
- } & GLTFViewerConfig;
8
- /**
9
- * **GLTFViewer** 预览 `glTF` 模型文件(支持.gltf和.glb格式),附带光照等效果。
10
- *
11
- * ### Usage
12
- *
13
- * 基础用法:
14
- *
15
- * ```jsx
16
- * import { GLTFViewer } from '@realsee/dnalogel/libs/gltf-viewer'
17
- *
18
- * // 创建实例
19
- * const gltfViewer = new GLTFViewer({
20
- * pixelRatio: 1,
21
- * })
22
- *
23
- * // 挂载至 DOM 节点
24
- * gltfViewer.appendTo(ref.current)
25
- *
26
- * // 加载模型文件
27
- * await gltfViewer.load(glbCDNUrl)
28
- *
29
- * // 输出当前模型状态数据
30
- * console.log(gltfViewer.state)
31
- * // { longitude: 0, latitude: -0.3, fov: 35 }
32
- *
33
- * // 设置当前模型状态:直接给状态对象赋值(立即生效)
34
- * gltfViewer.state = { longitude: 0, latitude: -0.3, fov: 35 }
35
- *
36
- * // 设置当前模型状态:直接给状态对象单个属性赋值(立即生效)
37
- * gltfViewer.state.fov = 50
38
- *
39
- * ```
40
- *
41
- * 事件监听:
42
- *
43
- * ```jsx
44
- * gltfViewer.on('stateChange', (state: GLTFViewerState) => {
45
- * // 事件:模型状态变化
46
- * })
47
- * gltfViewer.on('willLoad', () => {
48
- * // 即将加载
49
- * })
50
- * gltfViewer.on('progressing', (progressing: number) => {
51
- * // 加载进度
52
- * })
53
- * gltfViewer.on('loaded', (gltf: GLTF) => {
54
- * // 加载完成
55
- * })
56
- * gltfViewer.on('loadError', (error) => {
57
- * // 加载异常
58
- * })
59
- * ```
60
- *
61
- * React 组件:
62
- *
63
- * ```jsx
64
- * import { GLTFView } from '@realsee/dnalogel/components/GLTFView'
65
- *
66
- * <GLTFView
67
- * url="//vrlab-static.ljcdn.com/release/web/demo.435f5fa2.glb"
68
- * ref={(gltfViewer) => gltfViewer.on('stateChange', (state) => console.log(state))} />
69
- * ```
70
- */
71
- export declare const GLTFView: React.FC<GLTFViewPropTypes>;
72
- export default GLTFView;
@@ -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;