@realsee/dnalogel 0.1.3 → 0.1.7-alpha.10

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 (301) hide show
  1. package/components/ARVideoFigure/ARVideoFigureMesh.js +56 -32
  2. package/components/ARVideoFigure/ARVideoFigureScene.js +30 -19
  3. package/components/ARVideoFigure/ImgBgTransparent.js +22 -6
  4. package/components/ARVideoFigure/ImgBgTransparentMesh.js +40 -30
  5. package/components/ARVideoFigure/fragmentShader.js +2 -0
  6. package/components/ARVideoFigure/index.js +22 -6
  7. package/components/ARVideoFigure/vertexShader.js +2 -0
  8. package/components/GLTFView/index.d.ts +123 -0
  9. package/components/GLTFView/index.js +204 -0
  10. package/components/GlassFilters/index.js +25 -1
  11. package/components/ModelView/ModelViewController.js +39 -29
  12. package/components/ModelView/index.js +4 -2
  13. package/components/PaintBrush/index.js +15 -1
  14. package/components/PanoTag/index.js +2 -0
  15. package/data/1aGKl9JmrlXMXx8d.js +2 -0
  16. package/data/54djM0oR6ky3Ey8e.d.ts +55 -0
  17. package/data/54djM0oR6ky3Ey8e.js +350 -0
  18. package/data/6gyq3v1verxD7JO1.js +2 -0
  19. package/data/8054djM0oR6ky3Ey8e.d.ts +55 -0
  20. package/data/8054djM0oR6ky3Ey8e.js +350 -0
  21. package/data/81zxMaeVKLQU93OZMG.d.ts +49 -0
  22. package/data/81zxMaeVKLQU93OZMG.js +633 -0
  23. package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.js +2 -0
  24. package/data/PrXel3aqGbp34JQn.js +141 -1
  25. package/data/XJ6NMLWnkAY3Rdx8.js +2 -0
  26. package/data/YdoNP9K4rwQDwjJr.js +2 -0
  27. package/data/ZLvK29zj4L29Jowd.d.ts +55 -0
  28. package/data/ZLvK29zj4L29Jowd.js +372 -0
  29. package/data/_vLykj3NWrllMrG06.d.ts +95 -0
  30. package/data/_vLykj3NWrllMrG06.js +1 -0
  31. package/data/auto3d-njL5J99VwCmnjtQElOmXQr.js +2 -0
  32. package/data/extrude-walls/ZLvK29zj4L29Jowd.d.ts +5 -0
  33. package/data/extrude-walls/ZLvK29zj4L29Jowd.js +14 -0
  34. package/data/extrude-walls/lo024DEgzanMj5BE.d.ts +5 -0
  35. package/data/extrude-walls/lo024DEgzanMj5BE.js +14 -0
  36. package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.js +2 -0
  37. package/data/lo024DEgzanMj5BE.d.ts +55 -0
  38. package/data/lo024DEgzanMj5BE.js +966 -0
  39. package/data/oPzy3ApbjjpD8YdR.js +2 -0
  40. package/data/qjAxMG4XbPn96wKG.js +2 -0
  41. package/data/rXel3aPQRRBD4JQn.js +2 -0
  42. package/data/vLykj3NWrllMrG06.js +337 -71
  43. package/data/wz0QV9KA4ugyo9ME.js +2 -0
  44. package/data/zxMawr9raSg8LYjG.js +2 -0
  45. package/examples/FiveStateController/index.js +9 -15
  46. package/examples/VRHouse/Mobile.js +15 -1
  47. package/examples/VRHouse/PC.js +15 -1
  48. package/examples/VRHouse/index.js +15 -1
  49. package/index.js +4 -2
  50. package/libs/gltf-viewer/Subscribe.d.ts +76 -0
  51. package/libs/gltf-viewer/Subscribe.js +231 -0
  52. package/libs/gltf-viewer/coordsMoveByOffset.d.ts +13 -0
  53. package/libs/gltf-viewer/coordsMoveByOffset.js +22 -0
  54. package/libs/gltf-viewer/coordsToDirection.d.ts +5 -0
  55. package/{components/PBRView/index.js → libs/gltf-viewer/coordsToDirection.js} +29 -19
  56. package/libs/gltf-viewer/formatRad.d.ts +1 -0
  57. package/libs/gltf-viewer/formatRad.js +13 -0
  58. package/libs/gltf-viewer/getFrameTime.d.ts +1 -0
  59. package/libs/gltf-viewer/getFrameTime.js +28 -0
  60. package/libs/gltf-viewer/index.d.ts +79 -0
  61. package/libs/gltf-viewer/index.js +765 -0
  62. package/libs/gltf-viewer/mouseWheel.d.ts +2 -0
  63. package/libs/gltf-viewer/mouseWheel.js +59 -0
  64. package/libs/gltf-viewer/requestAnimationFrame.d.ts +1 -0
  65. package/libs/gltf-viewer/requestAnimationFrame.js +18 -0
  66. package/libs/gltf-viewer/requestAnimationFrameInterval.d.ts +1 -0
  67. package/libs/gltf-viewer/requestAnimationFrameInterval.js +31 -0
  68. package/libs/gltf-viewer/uuid.d.ts +4 -0
  69. package/libs/gltf-viewer/uuid.js +28 -0
  70. package/package.json +8 -4
  71. package/plugins/AutoPreloadPlugin/index.js +26 -0
  72. package/plugins/CSS3DRenderPlugin/components/Marker/index.js +24 -16
  73. package/plugins/CSS3DRenderPlugin/index.js +45 -12
  74. package/plugins/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
  75. package/plugins/CSS3DRenderPlugin/utils/createResizeObserver.js +34 -0
  76. package/plugins/CameraMovementPlugin/index.js +33 -9
  77. package/plugins/CameraMovementPlugin/typing.js +2 -0
  78. package/plugins/ModelChassisCompassPlugin/index.d.ts +1 -1
  79. package/plugins/ModelChassisCompassPlugin/index.js +25 -10
  80. package/plugins/ModelEntryDoorGuidePlugin/index.d.ts +6 -2
  81. package/plugins/ModelEntryDoorGuidePlugin/index.js +55 -28
  82. package/plugins/ModelExtrudeWallsPlugin/index.d.ts +16 -0
  83. package/plugins/ModelExtrudeWallsPlugin/index.js +252 -0
  84. package/plugins/ModelRoomLabelPlugin/Controller.js +30 -23
  85. package/plugins/ModelRoomLabelPlugin/RoomLabelItem.js +26 -8
  86. package/plugins/ModelRoomLabelPlugin/RoomLabelItems.js +35 -25
  87. package/plugins/ModelRoomLabelPlugin/index.d.ts +4 -0
  88. package/plugins/ModelRoomLabelPlugin/index.js +9 -2
  89. package/plugins/ModelRoomLabelPlugin/typings.js +2 -0
  90. package/plugins/ModelRoomLabelPlugin/utils/parseData.js +6 -0
  91. package/plugins/ModelTVVideoPlugin/index.js +100 -16
  92. package/plugins/ModelViewPlugin/index.js +25 -1
  93. package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.js +29 -25
  94. package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.js +15 -1
  95. package/plugins/PanoCursorRaycasterPlugin/index.js +13 -6
  96. package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.js +4 -2
  97. package/plugins/PanoCursorRaycasterPlugin/utils/createLine.js +15 -1
  98. package/plugins/PanoDoorLabelPlugin/index.js +2 -0
  99. package/plugins/PanoIRobotPlugin/index.js +2 -0
  100. package/plugins/PanoMaskSelectorPlugin/compare.js +2 -0
  101. package/plugins/PanoMaskSelectorPlugin/createBox.js +22 -1
  102. package/plugins/PanoMaskSelectorPlugin/createTextures.js +17 -1
  103. package/plugins/PanoMaskSelectorPlugin/fragmentShader.js +2 -0
  104. package/plugins/PanoMaskSelectorPlugin/index.js +106 -18
  105. package/plugins/PanoMaskSelectorPlugin/vertexShader.js +2 -0
  106. package/plugins/PanoMeasurePlugin/Controller/BaseController.d.ts +36 -0
  107. package/plugins/PanoMeasurePlugin/Controller/BaseController.js +103 -0
  108. package/plugins/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
  109. package/plugins/PanoMeasurePlugin/Controller/EditController.js +341 -0
  110. package/plugins/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
  111. package/plugins/PanoMeasurePlugin/Controller/ShortcutKeyController.js +69 -0
  112. package/plugins/PanoMeasurePlugin/Controller/WatchController.d.ts +25 -0
  113. package/plugins/PanoMeasurePlugin/Controller/WatchController.js +371 -0
  114. package/plugins/PanoMeasurePlugin/Controller/index.d.ts +61 -0
  115. package/plugins/PanoMeasurePlugin/Controller/index.js +230 -0
  116. package/plugins/PanoMeasurePlugin/Model/index.d.ts +38 -0
  117. package/plugins/PanoMeasurePlugin/Model/index.js +235 -0
  118. package/plugins/PanoMeasurePlugin/Model/line.d.ts +30 -0
  119. package/plugins/PanoMeasurePlugin/Model/line.js +121 -0
  120. package/plugins/PanoMeasurePlugin/Model/point.d.ts +16 -0
  121. package/plugins/PanoMeasurePlugin/Model/point.js +68 -0
  122. package/plugins/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
  123. package/plugins/PanoMeasurePlugin/Model/polyline.js +109 -0
  124. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
  125. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +11 -0
  126. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
  127. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +11 -0
  128. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
  129. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +11 -0
  130. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +22 -0
  131. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/index.js +182 -0
  132. package/plugins/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
  133. package/plugins/PanoMeasurePlugin/Modules/FiveHelper.js +66 -0
  134. package/plugins/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
  135. package/plugins/PanoMeasurePlugin/Modules/GuideController.js +107 -0
  136. package/plugins/PanoMeasurePlugin/Modules/Magnifier.d.ts +24 -0
  137. package/plugins/PanoMeasurePlugin/Modules/Magnifier.js +139 -0
  138. package/plugins/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +6 -0
  139. package/plugins/PanoMeasurePlugin/Modules/UIController/HTML.js +26 -0
  140. package/plugins/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +18 -0
  141. package/plugins/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +169 -0
  142. package/plugins/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +12 -0
  143. package/plugins/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +59 -0
  144. package/plugins/PanoMeasurePlugin/Modules/UIController/index.d.ts +16 -0
  145. package/plugins/PanoMeasurePlugin/Modules/UIController/index.js +123 -0
  146. package/plugins/PanoMeasurePlugin/Modules/UIController/style.d.ts +17 -0
  147. package/plugins/PanoMeasurePlugin/Modules/UIController/style.js +103 -0
  148. package/plugins/PanoMeasurePlugin/index.d.ts +7 -0
  149. package/plugins/PanoMeasurePlugin/index.js +20 -0
  150. package/plugins/PanoMeasurePlugin/typings/data.d.ts +28 -0
  151. package/plugins/PanoMeasurePlugin/typings/data.js +7 -0
  152. package/plugins/PanoMeasurePlugin/typings/event.type.d.ts +28 -0
  153. package/plugins/PanoMeasurePlugin/typings/event.type.js +7 -0
  154. package/plugins/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
  155. package/plugins/PanoMeasurePlugin/typings/utils.type.js +7 -0
  156. package/plugins/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
  157. package/plugins/PanoMeasurePlugin/utils/clearGroup.js +16 -0
  158. package/plugins/PanoMeasurePlugin/utils/constants.d.ts +4 -0
  159. package/plugins/PanoMeasurePlugin/utils/constants.js +47 -0
  160. package/plugins/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
  161. package/plugins/PanoMeasurePlugin/utils/distanceDom.js +147 -0
  162. package/plugins/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
  163. package/plugins/PanoMeasurePlugin/utils/findAssociatedLines.js +37 -0
  164. package/plugins/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
  165. package/plugins/PanoMeasurePlugin/utils/findClosestPoint.js +49 -0
  166. package/plugins/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
  167. package/plugins/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +20 -0
  168. package/plugins/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
  169. package/plugins/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +33 -0
  170. package/plugins/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
  171. package/plugins/PanoMeasurePlugin/utils/ironbox.js +14 -0
  172. package/plugins/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
  173. package/plugins/PanoMeasurePlugin/utils/isNDCPointInScreen.js +16 -0
  174. package/plugins/PanoMeasurePlugin/utils/line.d.ts +17 -0
  175. package/plugins/PanoMeasurePlugin/utils/line.js +61 -0
  176. package/plugins/PanoMeasurePlugin/utils/math.d.ts +17 -0
  177. package/plugins/PanoMeasurePlugin/utils/math.js +57 -0
  178. package/plugins/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -0
  179. package/plugins/PanoMeasurePlugin/utils/mouseGroup.js +42 -0
  180. package/plugins/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
  181. package/plugins/PanoMeasurePlugin/utils/ndc2Screen.js +16 -0
  182. package/plugins/PanoRulerPlugin/data/roomInfo.js +2 -0
  183. package/plugins/PanoRulerPlugin/data/roomRules.js +2 -0
  184. package/plugins/PanoRulerPlugin/index.d.ts +4 -0
  185. package/plugins/PanoRulerPlugin/index.js +74 -21
  186. package/plugins/PanoRulerPlugin/typings.js +2 -0
  187. package/plugins/PanoTVVideoPlugin/index.d.ts +2 -0
  188. package/plugins/PanoTVVideoPlugin/index.js +108 -26
  189. package/plugins/TreasurePlugin/Controller.js +58 -52
  190. package/plugins/TreasurePlugin/TreasureFaceAnime.js +36 -21
  191. package/plugins/TreasurePlugin/TreasureObject.js +60 -56
  192. package/plugins/TreasurePlugin/TreasureOpenAnime.js +38 -19
  193. package/plugins/TreasurePlugin/constants.js +2 -0
  194. package/plugins/TreasurePlugin/index.js +2 -0
  195. package/plugins/TreasurePlugin/typings.js +2 -0
  196. package/plugins/floorplan/Assets/floorplanExtraObject.d.ts +1 -1
  197. package/plugins/floorplan/Assets/floorplanExtraObject.js +5 -3
  198. package/plugins/floorplan/ModelFloorplanPlugin/Controller.d.ts +5 -2
  199. package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +93 -99
  200. package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +25 -7
  201. package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +22 -8
  202. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.js +28 -4
  203. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +25 -5
  204. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomMaterial.d.ts +11 -0
  205. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomMaterial.js +174 -0
  206. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RuleLabels.d.ts +8 -0
  207. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RuleLabels.js +178 -0
  208. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.d.ts +2 -0
  209. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +32 -6
  210. package/plugins/floorplan/ModelFloorplanPlugin/components/index.d.ts +3 -0
  211. package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +30 -8
  212. package/plugins/floorplan/ModelFloorplanPlugin/controller.style.js +2 -0
  213. package/plugins/floorplan/ModelFloorplanPlugin/index.js +4 -2
  214. package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.js +2 -0
  215. package/plugins/floorplan/ModelFloorplanPlugin/typings/utility.d.ts +2 -0
  216. package/plugins/floorplan/ModelFloorplanPlugin/typings/utility.js +7 -0
  217. package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +1 -1
  218. package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.js +3 -1
  219. package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +14 -22
  220. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.js +26 -3
  221. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.js +10 -6
  222. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.js +21 -5
  223. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.js +28 -4
  224. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.js +22 -6
  225. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.js +29 -19
  226. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.js +2 -0
  227. package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +1 -1
  228. package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.js +47 -50
  229. package/plugins/floorplan/PanoFloorplanRadarPlugin/index.js +4 -2
  230. package/plugins/floorplan/TopviewFloorplanPlugin/Controller.d.ts +3 -0
  231. package/plugins/floorplan/TopviewFloorplanPlugin/Controller.js +66 -61
  232. package/plugins/floorplan/TopviewFloorplanPlugin/index.js +2 -0
  233. package/plugins/floorplan/TopviewFloorplanPlugin/style.js +2 -0
  234. package/plugins/floorplan/components/FloorplanImage.js +15 -1
  235. package/plugins/floorplan/index.d.ts +4 -0
  236. package/plugins/floorplan/index.js +13 -0
  237. package/plugins/floorplan/typings/floorplanData.d.ts +2 -0
  238. package/plugins/floorplan/typings/floorplanData.js +2 -0
  239. package/plugins/floorplan/typings/floorplanServerData.d.ts +3 -1
  240. package/plugins/floorplan/typings/floorplanServerData.js +5 -3
  241. package/plugins/floorplan/utils/formatData.js +31 -12
  242. package/plugins/floorplan/utils/formatPosition.js +10 -8
  243. package/shared-utils/Preloader.js +6 -0
  244. package/shared-utils/Subscribe.js +36 -16
  245. package/shared-utils/animationFrame/BetterTween.js +28 -27
  246. package/shared-utils/animationFrame/calculateProgress.js +2 -0
  247. package/shared-utils/animationFrame/formatRad.js +2 -0
  248. package/shared-utils/animationFrame/index.js +12 -0
  249. package/shared-utils/animationFrame/tween.js +17 -1
  250. package/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
  251. package/shared-utils/{changeModelCanvansOpacity.js → changeModelCanvasOpacity.js} +16 -2
  252. package/shared-utils/createCanvasTextTexture.js +2 -0
  253. package/shared-utils/createFiveContainer.js +23 -17
  254. package/shared-utils/createLine/index.js +15 -1
  255. package/shared-utils/debounce.js +4 -0
  256. package/shared-utils/equal.js +15 -4
  257. package/shared-utils/filter.js +36 -2
  258. package/shared-utils/five/changeMode.js +13 -17
  259. package/shared-utils/five/useFivePlugin.js +2 -0
  260. package/shared-utils/formatRad.js +2 -0
  261. package/shared-utils/getPxmm.js +15 -1
  262. package/shared-utils/getRandomColor.js +10 -0
  263. package/shared-utils/isNil.js +2 -0
  264. package/shared-utils/isTruelyObject.js +4 -0
  265. package/shared-utils/math/evenNumber.d.ts +3 -1
  266. package/shared-utils/math/evenNumber.js +6 -2
  267. package/shared-utils/math/planimetry.js +10 -0
  268. package/shared-utils/math/rad2Deg.js +2 -0
  269. package/shared-utils/nearlyEqual.js +2 -0
  270. package/shared-utils/nextFrame.js +2 -0
  271. package/shared-utils/noop.js +2 -0
  272. package/shared-utils/object3d2LocalMatrix.js +20 -14
  273. package/shared-utils/px2rem.js +10 -0
  274. package/shared-utils/removeArrayItem.d.ts +7 -0
  275. package/shared-utils/removeArrayItem.js +22 -0
  276. package/shared-utils/tap.js +2 -0
  277. package/shared-utils/three/centerPoint.js +2 -0
  278. package/shared-utils/three/getExtraModelLoader.js +14 -0
  279. package/shared-utils/three/getNormal.js +4 -0
  280. package/shared-utils/three/getTextureLoader.js +16 -0
  281. package/shared-utils/three/loadFbxObj.js +13 -5
  282. package/shared-utils/three/loadTexture.d.ts +2 -2
  283. package/shared-utils/three/loadTexture.js +33 -6
  284. package/shared-utils/three/transformPositionToVector3.js +2 -0
  285. package/shared-utils/three/transfromToMeshBasicMaterial.js +6 -0
  286. package/shared-utils/throttle.js +4 -0
  287. package/shared-utils/to.js +8 -4
  288. package/shared-utils/useDebounce.js +6 -0
  289. package/shared-utils/useThrottle.js +6 -0
  290. package/shared-utils/uuid.js +8 -0
  291. package/shared-utils/vectorTocoordinates.js +2 -0
  292. package/typedoc/components.js +2 -0
  293. package/typedoc/libs.d.ts +1 -0
  294. package/typedoc/libs.js +7 -0
  295. package/typedoc/plugins.js +2 -0
  296. package/typedoc/shared-utils.js +2 -0
  297. package/typedoc/typings.js +2 -0
  298. package/typings/math.type.js +2 -0
  299. package/typings/utils.type.js +2 -0
  300. package/components/PBRView/index.d.ts +0 -14
  301. package/shared-utils/changeModelCanvansOpacity.d.ts +0 -2
@@ -1,12 +1,32 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
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");
4
18
 
5
19
  Object.defineProperty(exports, "__esModule", {
6
20
  value: true
7
21
  });
8
22
  exports.createBox = createBox;
9
23
 
24
+ require("core-js/modules/es.object.assign.js");
25
+
26
+ require("core-js/modules/es.array.map.js");
27
+
28
+ require("core-js/modules/es.function.name.js");
29
+
10
30
  var THREE = _interopRequireWildcard(require("three"));
11
31
 
12
32
  var _vertexShader = require("./vertexShader");
@@ -57,5 +77,6 @@ function createBox(textures, observer, _config) {
57
77
  box.geometry.scale(-1, 1, 1);
58
78
  box.position.set(observer.position.x, observer.position.y, observer.position.z);
59
79
  box.quaternion.multiply(observer.quaternion);
80
+ box.name = 'PanoMaskSelectorPlugin';
60
81
  return box;
61
82
  }
@@ -1,12 +1,28 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
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");
4
18
 
5
19
  Object.defineProperty(exports, "__esModule", {
6
20
  value: true
7
21
  });
8
22
  exports.createTextures = createTextures;
9
23
 
24
+ require("core-js/modules/es.array.map.js");
25
+
10
26
  var THREE = _interopRequireWildcard(require("three"));
11
27
 
12
28
  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); }
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ require("core-js/modules/es.object.define-property.js");
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
@@ -1,12 +1,92 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ require("core-js/modules/es.string.iterator.js");
4
+
5
+ require("core-js/modules/es.weak-map.js");
6
+
7
+ require("core-js/modules/web.dom-collections.iterator.js");
8
+
9
+ require("core-js/modules/es.object.define-property.js");
10
+
11
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
12
+
13
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
14
+
15
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
16
 
5
17
  Object.defineProperty(exports, "__esModule", {
6
18
  value: true
7
19
  });
8
20
  exports.PanoMaskSelectorPlugin = void 0;
9
21
 
22
+ require("core-js/modules/es.array.iterator.js");
23
+
24
+ require("core-js/modules/es.array-buffer.slice.js");
25
+
26
+ require("core-js/modules/es.object.to-string.js");
27
+
28
+ require("core-js/modules/es.typed-array.uint8-array.js");
29
+
30
+ require("core-js/modules/es.typed-array.copy-within.js");
31
+
32
+ require("core-js/modules/es.typed-array.every.js");
33
+
34
+ require("core-js/modules/es.typed-array.fill.js");
35
+
36
+ require("core-js/modules/es.typed-array.filter.js");
37
+
38
+ require("core-js/modules/es.typed-array.find.js");
39
+
40
+ require("core-js/modules/es.typed-array.find-index.js");
41
+
42
+ require("core-js/modules/es.typed-array.for-each.js");
43
+
44
+ require("core-js/modules/es.typed-array.includes.js");
45
+
46
+ require("core-js/modules/es.typed-array.index-of.js");
47
+
48
+ require("core-js/modules/es.typed-array.iterator.js");
49
+
50
+ require("core-js/modules/es.typed-array.join.js");
51
+
52
+ require("core-js/modules/es.typed-array.last-index-of.js");
53
+
54
+ require("core-js/modules/es.typed-array.map.js");
55
+
56
+ require("core-js/modules/es.typed-array.reduce.js");
57
+
58
+ require("core-js/modules/es.typed-array.reduce-right.js");
59
+
60
+ require("core-js/modules/es.typed-array.reverse.js");
61
+
62
+ require("core-js/modules/es.typed-array.set.js");
63
+
64
+ require("core-js/modules/es.typed-array.slice.js");
65
+
66
+ require("core-js/modules/es.typed-array.some.js");
67
+
68
+ require("core-js/modules/es.typed-array.sort.js");
69
+
70
+ require("core-js/modules/es.typed-array.subarray.js");
71
+
72
+ require("core-js/modules/es.typed-array.to-locale-string.js");
73
+
74
+ require("core-js/modules/es.typed-array.to-string.js");
75
+
76
+ require("core-js/modules/es.array.fill.js");
77
+
78
+ require("core-js/modules/es.array.slice.js");
79
+
80
+ require("core-js/modules/es.array.find.js");
81
+
82
+ require("core-js/modules/es.array.for-each.js");
83
+
84
+ require("core-js/modules/web.dom-collections.for-each.js");
85
+
86
+ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
87
+
88
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
89
+
10
90
  var THREE = _interopRequireWildcard(require("three"));
11
91
 
12
92
  var _five = require("@realsee/five");
@@ -21,10 +101,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
21
101
 
22
102
  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; }
23
103
 
24
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
25
-
26
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
27
-
28
104
  var PanoMaskSelectorPlugin = function PanoMaskSelectorPlugin(five) {
29
105
  var parameters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
30
106
  var state = {
@@ -57,9 +133,11 @@ var PanoMaskSelectorPlugin = function PanoMaskSelectorPlugin(five) {
57
133
 
58
134
  if (state.box) {
59
135
  five.scene.remove(state.box);
136
+ state.box = undefined;
60
137
  }
61
138
 
62
139
  var panoramaImgs = state.data.panoramaImgs[five.panoIndex];
140
+ state.currentLoadedIndex = five.panoIndex;
63
141
 
64
142
  if (!panoramaImgs) {
65
143
  state.textures = undefined;
@@ -73,13 +151,13 @@ var PanoMaskSelectorPlugin = function PanoMaskSelectorPlugin(five) {
73
151
  thickness: ((_state$data$config2 = state.data.config) === null || _state$data$config2 === void 0 ? void 0 : _state$data$config2.thickness) || 0.005
74
152
  });
75
153
  five.scene.add(state.box);
76
- state.currentLoadedIndex = five.panoIndex;
154
+ five.needsRender = true;
77
155
  return true;
78
156
  };
79
157
 
80
158
  var load = /*#__PURE__*/function () {
81
- var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(data) {
82
- return regeneratorRuntime.wrap(function _callee$(_context) {
159
+ var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(data) {
160
+ return _regenerator["default"].wrap(function _callee$(_context) {
83
161
  while (1) {
84
162
  switch (_context.prev = _context.next) {
85
163
  case 0:
@@ -95,17 +173,17 @@ var PanoMaskSelectorPlugin = function PanoMaskSelectorPlugin(five) {
95
173
  }, _callee);
96
174
  }));
97
175
 
98
- return function load(_x) {
176
+ return function load(_x2) {
99
177
  return _ref.apply(this, arguments);
100
178
  };
101
179
  }();
102
180
 
103
181
  var select = /*#__PURE__*/function () {
104
- var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(x, y) {
182
+ var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(_x, _y) {
105
183
  var _state$data;
106
184
 
107
- var element, pixel, renderTarget, pickingBuffer, camera, renderer, newScence, observer, newBox, unit8ArrayGroup, i, selectedColor, colorMaps, object;
108
- return regeneratorRuntime.wrap(function _callee2$(_context2) {
185
+ var element, pixel, x, y, renderTarget, pickingBuffer, camera, renderer, newScence, observer, newBox, unit8ArrayGroup, i, selectedColor, colorMaps, object;
186
+ return _regenerator["default"].wrap(function _callee2$(_context2) {
109
187
  while (1) {
110
188
  switch (_context2.prev = _context2.next) {
111
189
  case 0:
@@ -141,17 +219,27 @@ var PanoMaskSelectorPlugin = function PanoMaskSelectorPlugin(five) {
141
219
  return _context2.abrupt("return", false);
142
220
 
143
221
  case 8:
222
+ if (five.renderer) {
223
+ _context2.next = 10;
224
+ break;
225
+ }
226
+
227
+ return _context2.abrupt("return", false);
228
+
229
+ case 10:
144
230
  element = five.getElement();
145
231
 
146
232
  if (element) {
147
- _context2.next = 11;
233
+ _context2.next = 13;
148
234
  break;
149
235
  }
150
236
 
151
237
  return _context2.abrupt("return", false);
152
238
 
153
- case 11:
239
+ case 13:
154
240
  pixel = 1;
241
+ x = _x * five.renderer.getPixelRatio();
242
+ y = _y * five.renderer.getPixelRatio();
155
243
  renderTarget = new THREE.WebGLRenderTarget(pixel, pixel);
156
244
  pickingBuffer = new Uint8Array(4 * pixel * pixel);
157
245
  camera = five.camera.clone();
@@ -183,20 +271,20 @@ var PanoMaskSelectorPlugin = function PanoMaskSelectorPlugin(five) {
183
271
  });
184
272
 
185
273
  if (object) {
186
- _context2.next = 34;
274
+ _context2.next = 38;
187
275
  break;
188
276
  }
189
277
 
190
278
  return _context2.abrupt("return", false);
191
279
 
192
- case 34:
280
+ case 38:
193
281
  state.box.material.forEach(function (m) {
194
282
  return m.uniforms.selectedColor.value = selectedColor;
195
283
  });
196
284
  five.needsRender = true;
197
285
  return _context2.abrupt("return", object);
198
286
 
199
- case 37:
287
+ case 41:
200
288
  case "end":
201
289
  return _context2.stop();
202
290
  }
@@ -204,7 +292,7 @@ var PanoMaskSelectorPlugin = function PanoMaskSelectorPlugin(five) {
204
292
  }, _callee2);
205
293
  }));
206
294
 
207
- return function select(_x2, _x3) {
295
+ return function select(_x3, _x4) {
208
296
  return _ref2.apply(this, arguments);
209
297
  };
210
298
  }();
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ require("core-js/modules/es.object.define-property.js");
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
@@ -0,0 +1,36 @@
1
+ import Line from '../Model/line';
2
+ import Magnifier from '../Modules/Magnifier';
3
+ import FiveHelper from '../Modules/FiveHelper';
4
+ import { Group } from 'three';
5
+ import { Model } from '../Model';
6
+ import { PluginEvent } from '../typings/event.type';
7
+ import { Five, Intersection, IntersectMeshInterface, Subscribe } from '@realsee/five';
8
+ import { UserDistanceItem } from '../utils/distanceDom';
9
+ export interface IControllerParams {
10
+ five: Five;
11
+ group: Group;
12
+ model: Model;
13
+ mouseGroup: Group;
14
+ container: Element;
15
+ magnifier: Magnifier;
16
+ fiveHelper: FiveHelper;
17
+ hook: Subscribe<PluginEvent>;
18
+ userDistanceItemCreator?: () => UserDistanceItem;
19
+ }
20
+ export default abstract class BaseController {
21
+ protected five: Five;
22
+ protected group: Group;
23
+ protected model: Model;
24
+ protected disposed: boolean;
25
+ protected mouseGroup: Group;
26
+ protected container: Element;
27
+ protected fiveHelper: FiveHelper;
28
+ protected hook: IControllerParams['hook'];
29
+ protected magnifier: IControllerParams['magnifier'];
30
+ protected userDistanceItemCreator: IControllerParams['userDistanceItemCreator'];
31
+ constructor(params: IControllerParams);
32
+ protected removeLine(line: Line): void;
33
+ protected updateDistanceUI: () => void;
34
+ protected updateMouseGroup(intersection: Intersection, mesh?: IntersectMeshInterface): Group;
35
+ protected dispose(): void;
36
+ }
@@ -0,0 +1,103 @@
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"] = void 0;
11
+
12
+ require("core-js/modules/es.array.for-each.js");
13
+
14
+ require("core-js/modules/web.dom-collections.for-each.js");
15
+
16
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
17
+
18
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
19
+
20
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
21
+
22
+ var _ironbox = require("../utils/ironbox");
23
+
24
+ var BaseController = /*#__PURE__*/function () {
25
+ function BaseController(params) {
26
+ var _this = this;
27
+
28
+ (0, _classCallCheck2["default"])(this, BaseController);
29
+ (0, _defineProperty2["default"])(this, "disposed", false);
30
+ (0, _defineProperty2["default"])(this, "updateDistanceUI", function () {
31
+ _this.model.lines.forEach(function (line) {
32
+ return line.distanceItem.update(_this.five);
33
+ });
34
+ });
35
+ // ==================== Params ====================
36
+ this.five = params.five;
37
+ this.hook = params.hook;
38
+ this.model = params.model;
39
+ this.magnifier = params.magnifier;
40
+ this.container = params.container;
41
+ this.fiveHelper = params.fiveHelper;
42
+ this.userDistanceItemCreator = params.userDistanceItemCreator; // ==================== Groups ====================
43
+
44
+ this.group = params.group;
45
+ this.mouseGroup = params.mouseGroup;
46
+ var fiveElement = this.five.getElement();
47
+
48
+ if (fiveElement) {
49
+ fiveElement.addEventListener('touchstart', _ironbox.preventDefault);
50
+ fiveElement.addEventListener('contextmenu', _ironbox.preventDefault);
51
+ }
52
+ }
53
+
54
+ (0, _createClass2["default"])(BaseController, [{
55
+ key: "removeLine",
56
+ value: function removeLine(line) {
57
+ this.group.remove(line.mesh, line.lightMesh);
58
+ line.distanceItem.remove();
59
+ this.five.needsRender = true;
60
+ }
61
+ }, {
62
+ key: "updateMouseGroup",
63
+ value: function updateMouseGroup(intersection, mesh) {
64
+ if (!intersection) return this.mouseGroup; // ============ update mouseGroup position ============
65
+
66
+ var adsorbentPoint = this.fiveHelper.getAdsorbentPoint(intersection);
67
+ var viewPosition = adsorbentPoint ? adsorbentPoint : intersection.point;
68
+ this.mouseGroup.position.copy(viewPosition); // ============ update mouseGroup quaternion ============
69
+
70
+ if (mesh) {
71
+ this.mouseGroup.quaternion.copy(mesh.quaternion);
72
+ } else if (intersection.face) {
73
+ var normal = intersection.face.normal;
74
+ var positionVector = normal.clone().multiplyScalar(0.05);
75
+ var position = intersection.point.clone().add(positionVector);
76
+ var lookAtVector = position.clone().add(positionVector);
77
+ this.mouseGroup.lookAt(lookAtVector);
78
+ }
79
+
80
+ return this.mouseGroup;
81
+ }
82
+ }, {
83
+ key: "dispose",
84
+ value: function dispose() {
85
+ var _this2 = this;
86
+
87
+ this.disposed = true;
88
+ this.magnifier.dispose();
89
+ this.model.lines.forEach(function (line) {
90
+ return _this2.removeLine(line);
91
+ });
92
+ var fiveElement = this.five.getElement();
93
+
94
+ if (fiveElement) {
95
+ fiveElement.removeEventListener('touchstart', _ironbox.preventDefault);
96
+ fiveElement.removeEventListener('contextmenu', _ironbox.preventDefault);
97
+ }
98
+ }
99
+ }]);
100
+ return BaseController;
101
+ }();
102
+
103
+ exports["default"] = BaseController;
@@ -0,0 +1,52 @@
1
+ import { Model } from '../Model';
2
+ import Line from '../Model/line';
3
+ import { LineJson } from '../typings/data';
4
+ import BaseController, { IControllerParams } from './BaseController';
5
+ export interface EditEvent {
6
+ editedLineChange: (lines: LineJson[]) => void;
7
+ }
8
+ export default class EditController extends BaseController {
9
+ type: string;
10
+ model: Model;
11
+ private pressPoint?;
12
+ private hasAppendDashed;
13
+ private hasAppendMouseGroup;
14
+ private fiveElement?;
15
+ /** 上一个端点位置 */
16
+ private lastPoint;
17
+ /** 鼠标点到上一个端点连接的虚线 */
18
+ private dashed;
19
+ private hammer?;
20
+ /** 根据 intersection 更新放大镜和吸附点 */
21
+ private onIntersectionUpdate;
22
+ constructor(params: IControllerParams);
23
+ dispose(): void;
24
+ getEditingLines(): Line[];
25
+ /** 撤销编辑 */
26
+ revoke: () => void;
27
+ private onMouseLeave;
28
+ /** 编辑线条发生改变时通知外部 */
29
+ private onLineChanged;
30
+ private onPress;
31
+ /**
32
+ * 1. 如果之前没有长按行为「即没有长按点时」-> 滑动全景
33
+ * 2. 如果有长按点,把长按点位置更新为当前位置
34
+ */
35
+ private onPan;
36
+ private onPanEnd;
37
+ /**
38
+ * 1. 如果存在上一个点,需要绘制当前点到上一个点的连线
39
+ * 2. 把上一个点的位置更新为当前点的位置
40
+ * 3. 清除 mouseGroup 和 magnifier
41
+ */
42
+ private onTap;
43
+ private onWantsTapGesture;
44
+ /** 编辑时取消走点 */
45
+ private onWantsToMoveToPano;
46
+ /** 存在长按点时不能移动全景 */
47
+ private onWantsPanGesture;
48
+ /** 移动全景时更新 distanceItem 在屏幕上的位置 */
49
+ private onCameraUpdate;
50
+ /** 更新虚线 */
51
+ private updateDashed;
52
+ }