@realsee/dnalogel 0.1.7-alpha.8 → 2.0.0-alpha.2

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 (564) hide show
  1. package/README.md +6 -89
  2. package/dist/dnalogel.cjs.js +2 -0
  3. package/dist/dnalogel.es.js +37145 -0
  4. package/dist/dnalogel.umd.js +2 -0
  5. package/dist/style.css +1 -0
  6. package/{plugins → libs}/CSS3DRenderPlugin/index.d.ts +1 -1
  7. package/libs/CSS3DRenderPlugin/index.js +181 -0
  8. package/{plugins → libs}/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -0
  9. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +18 -0
  10. package/{plugins → libs}/CameraMovementPlugin/index.d.ts +0 -0
  11. package/libs/CameraMovementPlugin/index.js +159 -0
  12. package/{plugins → libs}/CameraMovementPlugin/typing.d.ts +0 -0
  13. package/libs/CameraMovementPlugin/typing.js +17 -0
  14. package/{plugins → libs}/ModelChassisCompassPlugin/index.d.ts +0 -0
  15. package/libs/ModelChassisCompassPlugin/index.js +75 -0
  16. package/{plugins → libs}/ModelEntryDoorGuidePlugin/index.d.ts +2 -2
  17. package/libs/ModelEntryDoorGuidePlugin/index.js +136 -0
  18. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
  19. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -0
  20. package/{plugins → libs}/ModelRoomLabelPlugin/Controller.d.ts +3 -2
  21. package/libs/ModelRoomLabelPlugin/Controller.js +100 -0
  22. package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte +63 -0
  23. package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte.map +1 -0
  24. package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte +80 -0
  25. package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte.map +1 -0
  26. package/{plugins → libs}/ModelRoomLabelPlugin/index.d.ts +4 -4
  27. package/libs/ModelRoomLabelPlugin/index.js +9 -0
  28. package/{plugins → libs}/ModelRoomLabelPlugin/typings.d.ts +2 -2
  29. package/libs/ModelRoomLabelPlugin/typings.js +1 -0
  30. package/{plugins → libs}/ModelRoomLabelPlugin/utils/parseData.d.ts +0 -0
  31. package/libs/ModelRoomLabelPlugin/utils/parseData.js +14 -0
  32. package/{plugins → libs}/ModelViewPlugin/index.d.ts +0 -0
  33. package/libs/ModelViewPlugin/index.js +160 -0
  34. package/{plugins → libs}/PanoCursorRaycasterPlugin/index.d.ts +2 -3
  35. package/libs/PanoCursorRaycasterPlugin/index.js +74 -0
  36. package/libs/floorplan/Assets/camera.d.ts +1 -0
  37. package/libs/floorplan/Assets/camera.js +1 -0
  38. package/{plugins → libs}/floorplan/Assets/floorplanExtraObject.d.ts +0 -0
  39. package/libs/floorplan/Assets/floorplanExtraObject.js +1 -0
  40. package/libs/floorplan/Components/BaseImage.svelte +25 -0
  41. package/libs/floorplan/Components/BaseImage.svelte.map +1 -0
  42. package/libs/floorplan/Components/Normalmage.svelte +11 -0
  43. package/libs/floorplan/Components/Normalmage.svelte.map +1 -0
  44. package/libs/floorplan/Components/RoomHighlight/Room.svelte +21 -0
  45. package/libs/floorplan/Components/RoomHighlight/Room.svelte.map +1 -0
  46. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte +60 -0
  47. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte.map +1 -0
  48. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte +35 -0
  49. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte.map +1 -0
  50. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte +7 -0
  51. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte.map +1 -0
  52. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte +16 -0
  53. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte.map +1 -0
  54. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte +17 -0
  55. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte.map +1 -0
  56. package/libs/floorplan/Components/SvgImage.svelte +25 -0
  57. package/libs/floorplan/Components/SvgImage.svelte.map +1 -0
  58. package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.d.ts +1 -0
  59. package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.js +1 -0
  60. package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.svelte +46 -0
  61. package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.svelte.map +1 -0
  62. package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.svelte +48 -0
  63. package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.svelte.map +1 -0
  64. package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte +37 -0
  65. package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte.map +1 -0
  66. package/libs/floorplan/ModelFloorplanPlugin/Components/Main.svelte +50 -0
  67. package/libs/floorplan/ModelFloorplanPlugin/Components/Main.svelte.map +1 -0
  68. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte +41 -0
  69. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte.map +1 -0
  70. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte +25 -0
  71. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte.map +1 -0
  72. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte +148 -0
  73. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte.map +1 -0
  74. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte +15 -0
  75. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte.map +1 -0
  76. package/{plugins → libs}/floorplan/ModelFloorplanPlugin/Controller.d.ts +11 -12
  77. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +357 -0
  78. package/{plugins → libs}/floorplan/ModelFloorplanPlugin/index.d.ts +1 -1
  79. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -0
  80. package/{plugins → libs}/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +0 -0
  81. package/libs/floorplan/ModelFloorplanPlugin/typings/events.type.js +1 -0
  82. package/{plugins → libs}/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +0 -0
  83. package/libs/floorplan/ModelFloorplanPlugin/utils/constant.js +16 -0
  84. package/{plugins → libs}/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +0 -0
  85. package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +46 -0
  86. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte +84 -0
  87. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte.map +1 -0
  88. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte +18 -0
  89. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte.map +1 -0
  90. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte +40 -0
  91. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte.map +1 -0
  92. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte +61 -0
  93. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte.map +1 -0
  94. package/{plugins → libs}/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +5 -10
  95. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +88 -0
  96. package/{plugins → libs}/floorplan/PanoFloorplanRadarPlugin/index.d.ts +0 -0
  97. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -0
  98. package/{plugins → libs}/floorplan/TopviewFloorplanPlugin/Controller.d.ts +13 -12
  99. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +189 -0
  100. package/{plugins → libs}/floorplan/TopviewFloorplanPlugin/index.d.ts +0 -0
  101. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -0
  102. package/{plugins → libs}/floorplan/TopviewFloorplanPlugin/style.d.ts +0 -0
  103. package/libs/floorplan/TopviewFloorplanPlugin/style.js +8 -0
  104. package/{plugins → libs}/floorplan/typings/floorplanData.d.ts +6 -2
  105. package/libs/floorplan/typings/floorplanData.js +6 -0
  106. package/{plugins → libs}/floorplan/typings/floorplanServerData.d.ts +1 -1
  107. package/libs/floorplan/typings/floorplanServerData.js +101 -0
  108. package/{plugins/floorplan/ModelFloorplanPlugin → libs/floorplan}/typings/utility.d.ts +0 -0
  109. package/libs/floorplan/typings/utility.js +1 -0
  110. package/{plugins → libs}/floorplan/utils/formatData.d.ts +3 -3
  111. package/libs/floorplan/utils/formatData.js +94 -0
  112. package/{plugins → libs}/floorplan/utils/formatPosition.d.ts +3 -4
  113. package/libs/floorplan/utils/formatPosition.js +50 -0
  114. package/libs/index.d.ts +17 -0
  115. package/libs/index.js +10 -0
  116. package/{shared-utils → libs/shared-utils}/Preloader.d.ts +0 -0
  117. package/libs/shared-utils/Preloader.js +38 -0
  118. package/{shared-utils → libs/shared-utils}/Subscribe.d.ts +3 -3
  119. package/libs/shared-utils/Subscribe.js +101 -0
  120. package/{shared-utils → libs/shared-utils}/animationFrame/BetterTween.d.ts +0 -0
  121. package/libs/shared-utils/animationFrame/BetterTween.js +30 -0
  122. package/{shared-utils → libs/shared-utils}/animationFrame/calculateProgress.d.ts +0 -0
  123. package/libs/shared-utils/animationFrame/calculateProgress.js +23 -0
  124. package/{shared-utils → libs/shared-utils}/animationFrame/formatRad.d.ts +0 -0
  125. package/libs/shared-utils/animationFrame/formatRad.js +20 -0
  126. package/{shared-utils → libs/shared-utils}/animationFrame/index.d.ts +0 -0
  127. package/libs/shared-utils/animationFrame/index.js +48 -0
  128. package/{shared-utils → libs/shared-utils}/animationFrame/tween.d.ts +0 -0
  129. package/libs/shared-utils/animationFrame/tween.js +44 -0
  130. package/{shared-utils → libs/shared-utils}/changeModelCanvasOpacity.d.ts +0 -0
  131. package/libs/shared-utils/changeModelCanvasOpacity.js +15 -0
  132. package/{shared-utils → libs/shared-utils}/createCanvasTextTexture.d.ts +0 -0
  133. package/libs/shared-utils/createCanvasTextTexture.js +19 -0
  134. package/{shared-utils → libs/shared-utils}/createLine/index.d.ts +1 -1
  135. package/libs/shared-utils/createLine/index.js +8 -0
  136. package/{shared-utils → libs/shared-utils}/debounce.d.ts +1 -1
  137. package/libs/shared-utils/debounce.js +14 -0
  138. package/{shared-utils → libs/shared-utils}/equal.d.ts +0 -0
  139. package/libs/shared-utils/equal.js +84 -0
  140. package/{shared-utils → libs/shared-utils}/filter.d.ts +0 -0
  141. package/libs/shared-utils/filter.js +53 -0
  142. package/{shared-utils → libs/shared-utils}/five/changeMode.d.ts +0 -0
  143. package/libs/shared-utils/five/changeMode.js +15 -0
  144. package/{shared-utils → libs/shared-utils}/five/useFivePlugin.d.ts +0 -0
  145. package/libs/shared-utils/five/useFivePlugin.js +8 -0
  146. package/{shared-utils → libs/shared-utils}/formatRad.d.ts +0 -0
  147. package/libs/shared-utils/formatRad.js +10 -0
  148. package/{shared-utils → libs/shared-utils}/getPxmm.d.ts +0 -0
  149. package/libs/shared-utils/getPxmm.js +20 -0
  150. package/{shared-utils → libs/shared-utils}/getRandomColor.d.ts +0 -0
  151. package/libs/shared-utils/getRandomColor.js +10 -0
  152. package/{shared-utils → libs/shared-utils}/isNil.d.ts +0 -0
  153. package/libs/shared-utils/isNil.js +14 -0
  154. package/{shared-utils → libs/shared-utils}/isTruelyObject.d.ts +0 -0
  155. package/libs/shared-utils/isTruelyObject.js +20 -0
  156. package/{shared-utils → libs/shared-utils}/math/evenNumber.d.ts +0 -0
  157. package/libs/shared-utils/math/evenNumber.js +4 -0
  158. package/{shared-utils → libs/shared-utils}/math/planimetry.d.ts +4 -4
  159. package/libs/shared-utils/math/planimetry.js +288 -0
  160. package/{shared-utils → libs/shared-utils}/math/rad2Deg.d.ts +0 -0
  161. package/libs/shared-utils/math/rad2Deg.js +3 -0
  162. package/{shared-utils → libs/shared-utils}/nearlyEqual.d.ts +0 -0
  163. package/libs/shared-utils/nearlyEqual.js +9 -0
  164. package/{shared-utils → libs/shared-utils}/nextFrame.d.ts +0 -0
  165. package/libs/shared-utils/nextFrame.js +6 -0
  166. package/{shared-utils → libs/shared-utils}/noop.d.ts +0 -0
  167. package/libs/shared-utils/noop.js +7 -0
  168. package/{shared-utils → libs/shared-utils}/object3d2LocalMatrix.d.ts +0 -0
  169. package/libs/shared-utils/object3d2LocalMatrix.js +29 -0
  170. package/{shared-utils → libs/shared-utils}/px2rem.d.ts +0 -0
  171. package/libs/shared-utils/px2rem.js +4 -0
  172. package/{shared-utils → libs/shared-utils}/removeArrayItem.d.ts +1 -1
  173. package/libs/shared-utils/removeArrayItem.js +12 -0
  174. package/{shared-utils → libs/shared-utils}/tap.d.ts +0 -0
  175. package/{shared-utils → libs/shared-utils}/tap.js +4 -13
  176. package/{shared-utils → libs/shared-utils}/three/centerPoint.d.ts +0 -0
  177. package/libs/shared-utils/three/centerPoint.js +4 -0
  178. package/{shared-utils → libs/shared-utils}/three/getExtraModelLoader.d.ts +0 -0
  179. package/libs/shared-utils/three/getExtraModelLoader.js +18 -0
  180. package/{shared-utils → libs/shared-utils}/three/getNormal.d.ts +0 -0
  181. package/libs/shared-utils/three/getNormal.js +6 -0
  182. package/{shared-utils → libs/shared-utils}/three/getTextureLoader.d.ts +0 -0
  183. package/libs/shared-utils/three/getTextureLoader.js +17 -0
  184. package/{shared-utils → libs/shared-utils}/three/loadFbxObj.d.ts +0 -0
  185. package/libs/shared-utils/three/loadFbxObj.js +13 -0
  186. package/{shared-utils → libs/shared-utils}/three/loadTexture.d.ts +0 -0
  187. package/libs/shared-utils/three/loadTexture.js +10 -0
  188. package/{shared-utils → libs/shared-utils}/three/transformPositionToVector3.d.ts +0 -0
  189. package/libs/shared-utils/three/transformPositionToVector3.js +3 -0
  190. package/{shared-utils → libs/shared-utils}/three/transfromToMeshBasicMaterial.d.ts +0 -0
  191. package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +14 -0
  192. package/{shared-utils → libs/shared-utils}/throttle.d.ts +1 -1
  193. package/libs/shared-utils/throttle.js +18 -0
  194. package/{shared-utils → libs/shared-utils}/to.d.ts +0 -0
  195. package/libs/shared-utils/to.js +18 -0
  196. package/{shared-utils → libs/shared-utils}/useDebounce.d.ts +0 -0
  197. package/libs/shared-utils/useDebounce.js +22 -0
  198. package/{shared-utils → libs/shared-utils}/useThrottle.d.ts +0 -0
  199. package/libs/shared-utils/useThrottle.js +25 -0
  200. package/libs/{gltf-viewer → shared-utils}/uuid.d.ts +0 -0
  201. package/libs/shared-utils/uuid.js +11 -0
  202. package/{shared-utils → libs/shared-utils}/vectorTocoordinates.d.ts +0 -0
  203. package/libs/shared-utils/vectorTocoordinates.js +9 -0
  204. package/{typings → libs/typings}/math.type.d.ts +0 -0
  205. package/libs/typings/math.type.js +1 -0
  206. package/{typings → libs/typings}/utils.type.d.ts +0 -0
  207. package/libs/typings/utils.type.js +1 -0
  208. package/package.json +45 -17
  209. package/TERMS.txt +0 -56
  210. package/components/ARVideoFigure/ARVideoFigureMesh.d.ts +0 -44
  211. package/components/ARVideoFigure/ARVideoFigureMesh.js +0 -371
  212. package/components/ARVideoFigure/ARVideoFigureScene.d.ts +0 -11
  213. package/components/ARVideoFigure/ARVideoFigureScene.js +0 -85
  214. package/components/ARVideoFigure/ImgBgTransparent.d.ts +0 -16
  215. package/components/ARVideoFigure/ImgBgTransparent.js +0 -65
  216. package/components/ARVideoFigure/ImgBgTransparentMesh.d.ts +0 -30
  217. package/components/ARVideoFigure/ImgBgTransparentMesh.js +0 -183
  218. package/components/ARVideoFigure/fragmentShader.d.ts +0 -5
  219. package/components/ARVideoFigure/fragmentShader.js +0 -18
  220. package/components/ARVideoFigure/index.d.ts +0 -15
  221. package/components/ARVideoFigure/index.js +0 -80
  222. package/components/ARVideoFigure/vertexShader.d.ts +0 -1
  223. package/components/ARVideoFigure/vertexShader.js +0 -10
  224. package/components/GLTFView/index.d.ts +0 -110
  225. package/components/GLTFView/index.js +0 -187
  226. package/components/GlassFilters/index.d.ts +0 -32
  227. package/components/GlassFilters/index.js +0 -78
  228. package/components/ModelView/ModelViewController.d.ts +0 -18
  229. package/components/ModelView/ModelViewController.js +0 -157
  230. package/components/ModelView/index.d.ts +0 -10
  231. package/components/ModelView/index.js +0 -24
  232. package/components/PaintBrush/index.d.ts +0 -16
  233. package/components/PaintBrush/index.js +0 -47
  234. package/components/PanoTag/index.d.ts +0 -4
  235. package/components/PanoTag/index.js +0 -13
  236. package/custom.d.js +0 -3
  237. package/data/1aGKl9JmrlXMXx8d.d.ts +0 -104
  238. package/data/1aGKl9JmrlXMXx8d.js +0 -537
  239. package/data/54djM0oR6ky3Ey8e.d.ts +0 -55
  240. package/data/54djM0oR6ky3Ey8e.js +0 -350
  241. package/data/6gyq3v1verxD7JO1.d.ts +0 -104
  242. package/data/6gyq3v1verxD7JO1.js +0 -462
  243. package/data/8054djM0oR6ky3Ey8e.d.ts +0 -55
  244. package/data/8054djM0oR6ky3Ey8e.js +0 -350
  245. package/data/81zxMaeVKLQU93OZMG.d.ts +0 -49
  246. package/data/81zxMaeVKLQU93OZMG.js +0 -633
  247. package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.d.ts +0 -84
  248. package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.js +0 -600
  249. package/data/PrXel3aqGbp34JQn.d.ts +0 -389
  250. package/data/PrXel3aqGbp34JQn.js +0 -4787
  251. package/data/XJ6NMLWnkAY3Rdx8.d.ts +0 -843
  252. package/data/XJ6NMLWnkAY3Rdx8.js +0 -7989
  253. package/data/YdoNP9K4rwQDwjJr.d.ts +0 -83
  254. package/data/YdoNP9K4rwQDwjJr.js +0 -1453
  255. package/data/ZLvK29zj4L29Jowd.d.ts +0 -55
  256. package/data/ZLvK29zj4L29Jowd.js +0 -372
  257. package/data/_vLykj3NWrllMrG06.d.ts +0 -95
  258. package/data/_vLykj3NWrllMrG06.js +0 -1
  259. package/data/auto3d-njL5J99VwCmnjtQElOmXQr.d.ts +0 -86
  260. package/data/auto3d-njL5J99VwCmnjtQElOmXQr.js +0 -711
  261. package/data/extrude-walls/ZLvK29zj4L29Jowd.d.ts +0 -5
  262. package/data/extrude-walls/ZLvK29zj4L29Jowd.js +0 -14
  263. package/data/extrude-walls/lo024DEgzanMj5BE.d.ts +0 -5
  264. package/data/extrude-walls/lo024DEgzanMj5BE.js +0 -14
  265. package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.d.ts +0 -85
  266. package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.js +0 -511
  267. package/data/lo024DEgzanMj5BE.d.ts +0 -55
  268. package/data/lo024DEgzanMj5BE.js +0 -966
  269. package/data/oPzy3ApbjjpD8YdR.d.ts +0 -83
  270. package/data/oPzy3ApbjjpD8YdR.js +0 -283
  271. package/data/qjAxMG4XbPn96wKG.d.ts +0 -104
  272. package/data/qjAxMG4XbPn96wKG.js +0 -637
  273. package/data/rXel3aPQRRBD4JQn.d.ts +0 -86
  274. package/data/rXel3aPQRRBD4JQn.js +0 -622
  275. package/data/vLykj3NWrllMrG06.d.ts +0 -91
  276. package/data/vLykj3NWrllMrG06.js +0 -2993
  277. package/data/wz0QV9KA4ugyo9ME.d.ts +0 -39
  278. package/data/wz0QV9KA4ugyo9ME.js +0 -136
  279. package/data/zxMawr9raSg8LYjG.d.ts +0 -53
  280. package/data/zxMawr9raSg8LYjG.js +0 -590
  281. package/examples/FiveStateController/index.js +0 -134
  282. package/examples/VRHouse/Mobile.js +0 -36
  283. package/examples/VRHouse/PC.js +0 -36
  284. package/examples/VRHouse/index.js +0 -36
  285. package/index.d.ts +0 -15
  286. package/index.js +0 -45
  287. package/libs/gltf-viewer/Subscribe.d.ts +0 -76
  288. package/libs/gltf-viewer/Subscribe.js +0 -231
  289. package/libs/gltf-viewer/coordsMoveByOffset.d.ts +0 -13
  290. package/libs/gltf-viewer/coordsMoveByOffset.js +0 -22
  291. package/libs/gltf-viewer/coordsToDirection.d.ts +0 -5
  292. package/libs/gltf-viewer/coordsToDirection.js +0 -41
  293. package/libs/gltf-viewer/formatRad.d.ts +0 -1
  294. package/libs/gltf-viewer/formatRad.js +0 -13
  295. package/libs/gltf-viewer/getFrameTime.d.ts +0 -1
  296. package/libs/gltf-viewer/getFrameTime.js +0 -28
  297. package/libs/gltf-viewer/index.d.ts +0 -78
  298. package/libs/gltf-viewer/index.js +0 -763
  299. package/libs/gltf-viewer/mouseWheel.d.ts +0 -2
  300. package/libs/gltf-viewer/mouseWheel.js +0 -59
  301. package/libs/gltf-viewer/requestAnimationFrame.d.ts +0 -1
  302. package/libs/gltf-viewer/requestAnimationFrame.js +0 -18
  303. package/libs/gltf-viewer/requestAnimationFrameInterval.d.ts +0 -1
  304. package/libs/gltf-viewer/requestAnimationFrameInterval.js +0 -31
  305. package/libs/gltf-viewer/uuid.js +0 -28
  306. package/plugins/AutoPreloadPlugin/index.d.ts +0 -23
  307. package/plugins/AutoPreloadPlugin/index.js +0 -111
  308. package/plugins/CSS3DRenderPlugin/components/Marker/index.d.ts +0 -12
  309. package/plugins/CSS3DRenderPlugin/components/Marker/index.js +0 -121
  310. package/plugins/CSS3DRenderPlugin/index.js +0 -303
  311. package/plugins/CSS3DRenderPlugin/utils/createResizeObserver.js +0 -34
  312. package/plugins/CameraMovementPlugin/index.js +0 -362
  313. package/plugins/CameraMovementPlugin/typing.js +0 -37
  314. package/plugins/ModelChassisCompassPlugin/index.js +0 -158
  315. package/plugins/ModelEntryDoorGuidePlugin/index.js +0 -252
  316. package/plugins/ModelExtrudeWallsPlugin/index.d.ts +0 -16
  317. package/plugins/ModelExtrudeWallsPlugin/index.js +0 -252
  318. package/plugins/ModelRoomLabelPlugin/Controller.js +0 -154
  319. package/plugins/ModelRoomLabelPlugin/RoomLabelItem.d.ts +0 -8
  320. package/plugins/ModelRoomLabelPlugin/RoomLabelItem.js +0 -66
  321. package/plugins/ModelRoomLabelPlugin/RoomLabelItems.d.ts +0 -7
  322. package/plugins/ModelRoomLabelPlugin/RoomLabelItems.js +0 -159
  323. package/plugins/ModelRoomLabelPlugin/index.js +0 -23
  324. package/plugins/ModelRoomLabelPlugin/typings.js +0 -7
  325. package/plugins/ModelRoomLabelPlugin/utils/parseData.js +0 -35
  326. package/plugins/ModelTVVideoPlugin/index.d.ts +0 -21
  327. package/plugins/ModelTVVideoPlugin/index.js +0 -397
  328. package/plugins/ModelViewPlugin/index.js +0 -223
  329. package/plugins/PanoCursorRaycasterPlugin/PanoCursorRaycasterPluginUsage.d.ts +0 -48
  330. package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.d.ts +0 -9
  331. package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.js +0 -117
  332. package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.d.ts +0 -11
  333. package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.js +0 -39
  334. package/plugins/PanoCursorRaycasterPlugin/index.js +0 -126
  335. package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.d.ts +0 -5
  336. package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.js +0 -27
  337. package/plugins/PanoCursorRaycasterPlugin/utils/createLine.d.ts +0 -3
  338. package/plugins/PanoCursorRaycasterPlugin/utils/createLine.js +0 -48
  339. package/plugins/PanoDoorLabelPlugin/index.d.ts +0 -4
  340. package/plugins/PanoDoorLabelPlugin/index.js +0 -14
  341. package/plugins/PanoIRobotPlugin/index.d.ts +0 -10
  342. package/plugins/PanoIRobotPlugin/index.js +0 -18
  343. package/plugins/PanoMaskSelectorPlugin/compare.d.ts +0 -1
  344. package/plugins/PanoMaskSelectorPlugin/compare.js +0 -17
  345. package/plugins/PanoMaskSelectorPlugin/createBox.d.ts +0 -7
  346. package/plugins/PanoMaskSelectorPlugin/createBox.js +0 -82
  347. package/plugins/PanoMaskSelectorPlugin/createTextures.d.ts +0 -3
  348. package/plugins/PanoMaskSelectorPlugin/createTextures.js +0 -45
  349. package/plugins/PanoMaskSelectorPlugin/fragmentShader.d.ts +0 -1
  350. package/plugins/PanoMaskSelectorPlugin/fragmentShader.js +0 -10
  351. package/plugins/PanoMaskSelectorPlugin/index.d.ts +0 -49
  352. package/plugins/PanoMaskSelectorPlugin/index.js +0 -350
  353. package/plugins/PanoMaskSelectorPlugin/vertexShader.d.ts +0 -1
  354. package/plugins/PanoMaskSelectorPlugin/vertexShader.js +0 -10
  355. package/plugins/PanoMeasurePlugin/Controller/BaseController.d.ts +0 -36
  356. package/plugins/PanoMeasurePlugin/Controller/BaseController.js +0 -103
  357. package/plugins/PanoMeasurePlugin/Controller/EditController.d.ts +0 -52
  358. package/plugins/PanoMeasurePlugin/Controller/EditController.js +0 -341
  359. package/plugins/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +0 -12
  360. package/plugins/PanoMeasurePlugin/Controller/ShortcutKeyController.js +0 -69
  361. package/plugins/PanoMeasurePlugin/Controller/WatchController.d.ts +0 -25
  362. package/plugins/PanoMeasurePlugin/Controller/WatchController.js +0 -371
  363. package/plugins/PanoMeasurePlugin/Controller/index.d.ts +0 -61
  364. package/plugins/PanoMeasurePlugin/Controller/index.js +0 -230
  365. package/plugins/PanoMeasurePlugin/Model/index.d.ts +0 -38
  366. package/plugins/PanoMeasurePlugin/Model/index.js +0 -235
  367. package/plugins/PanoMeasurePlugin/Model/line.d.ts +0 -30
  368. package/plugins/PanoMeasurePlugin/Model/line.js +0 -121
  369. package/plugins/PanoMeasurePlugin/Model/point.d.ts +0 -16
  370. package/plugins/PanoMeasurePlugin/Model/point.js +0 -68
  371. package/plugins/PanoMeasurePlugin/Model/polyline.d.ts +0 -16
  372. package/plugins/PanoMeasurePlugin/Model/polyline.js +0 -109
  373. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +0 -2
  374. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +0 -11
  375. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +0 -2
  376. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +0 -11
  377. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +0 -2
  378. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +0 -11
  379. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +0 -22
  380. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/index.js +0 -182
  381. package/plugins/PanoMeasurePlugin/Modules/FiveHelper.d.ts +0 -11
  382. package/plugins/PanoMeasurePlugin/Modules/FiveHelper.js +0 -66
  383. package/plugins/PanoMeasurePlugin/Modules/GuideController.d.ts +0 -18
  384. package/plugins/PanoMeasurePlugin/Modules/GuideController.js +0 -107
  385. package/plugins/PanoMeasurePlugin/Modules/Magnifier.d.ts +0 -24
  386. package/plugins/PanoMeasurePlugin/Modules/Magnifier.js +0 -139
  387. package/plugins/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +0 -6
  388. package/plugins/PanoMeasurePlugin/Modules/UIController/HTML.js +0 -26
  389. package/plugins/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +0 -18
  390. package/plugins/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +0 -169
  391. package/plugins/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +0 -12
  392. package/plugins/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +0 -59
  393. package/plugins/PanoMeasurePlugin/Modules/UIController/index.d.ts +0 -16
  394. package/plugins/PanoMeasurePlugin/Modules/UIController/index.js +0 -123
  395. package/plugins/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -17
  396. package/plugins/PanoMeasurePlugin/Modules/UIController/style.js +0 -103
  397. package/plugins/PanoMeasurePlugin/index.d.ts +0 -7
  398. package/plugins/PanoMeasurePlugin/index.js +0 -20
  399. package/plugins/PanoMeasurePlugin/typings/data.d.ts +0 -28
  400. package/plugins/PanoMeasurePlugin/typings/data.js +0 -7
  401. package/plugins/PanoMeasurePlugin/typings/event.type.d.ts +0 -28
  402. package/plugins/PanoMeasurePlugin/typings/event.type.js +0 -7
  403. package/plugins/PanoMeasurePlugin/typings/utils.type.d.ts +0 -1
  404. package/plugins/PanoMeasurePlugin/typings/utils.type.js +0 -7
  405. package/plugins/PanoMeasurePlugin/utils/clearGroup.d.ts +0 -2
  406. package/plugins/PanoMeasurePlugin/utils/clearGroup.js +0 -16
  407. package/plugins/PanoMeasurePlugin/utils/constants.d.ts +0 -4
  408. package/plugins/PanoMeasurePlugin/utils/constants.js +0 -47
  409. package/plugins/PanoMeasurePlugin/utils/distanceDom.d.ts +0 -28
  410. package/plugins/PanoMeasurePlugin/utils/distanceDom.js +0 -147
  411. package/plugins/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +0 -2
  412. package/plugins/PanoMeasurePlugin/utils/findAssociatedLines.js +0 -37
  413. package/plugins/PanoMeasurePlugin/utils/findClosestPoint.d.ts +0 -10
  414. package/plugins/PanoMeasurePlugin/utils/findClosestPoint.js +0 -49
  415. package/plugins/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +0 -4
  416. package/plugins/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +0 -20
  417. package/plugins/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +0 -10
  418. package/plugins/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +0 -33
  419. package/plugins/PanoMeasurePlugin/utils/ironbox.d.ts +0 -1
  420. package/plugins/PanoMeasurePlugin/utils/ironbox.js +0 -14
  421. package/plugins/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +0 -2
  422. package/plugins/PanoMeasurePlugin/utils/isNDCPointInScreen.js +0 -16
  423. package/plugins/PanoMeasurePlugin/utils/line.d.ts +0 -17
  424. package/plugins/PanoMeasurePlugin/utils/line.js +0 -61
  425. package/plugins/PanoMeasurePlugin/utils/math.d.ts +0 -17
  426. package/plugins/PanoMeasurePlugin/utils/math.js +0 -57
  427. package/plugins/PanoMeasurePlugin/utils/mouseGroup.d.ts +0 -2
  428. package/plugins/PanoMeasurePlugin/utils/mouseGroup.js +0 -42
  429. package/plugins/PanoMeasurePlugin/utils/ndc2Screen.d.ts +0 -5
  430. package/plugins/PanoMeasurePlugin/utils/ndc2Screen.js +0 -16
  431. package/plugins/PanoRulerPlugin/data/roomInfo.d.ts +0 -3
  432. package/plugins/PanoRulerPlugin/data/roomInfo.js +0 -51
  433. package/plugins/PanoRulerPlugin/data/roomRules.d.ts +0 -3
  434. package/plugins/PanoRulerPlugin/data/roomRules.js +0 -235
  435. package/plugins/PanoRulerPlugin/index.d.ts +0 -31
  436. package/plugins/PanoRulerPlugin/index.js +0 -642
  437. package/plugins/PanoRulerPlugin/typings.d.ts +0 -21
  438. package/plugins/PanoRulerPlugin/typings.js +0 -7
  439. package/plugins/PanoTVVideoPlugin/index.d.ts +0 -26
  440. package/plugins/PanoTVVideoPlugin/index.js +0 -433
  441. package/plugins/TreasurePlugin/Controller.d.ts +0 -73
  442. package/plugins/TreasurePlugin/Controller.js +0 -250
  443. package/plugins/TreasurePlugin/TreasureFaceAnime.d.ts +0 -25
  444. package/plugins/TreasurePlugin/TreasureFaceAnime.js +0 -143
  445. package/plugins/TreasurePlugin/TreasureObject.d.ts +0 -53
  446. package/plugins/TreasurePlugin/TreasureObject.js +0 -406
  447. package/plugins/TreasurePlugin/TreasureOpenAnime.d.ts +0 -25
  448. package/plugins/TreasurePlugin/TreasureOpenAnime.js +0 -127
  449. package/plugins/TreasurePlugin/constants.d.ts +0 -33
  450. package/plugins/TreasurePlugin/constants.js +0 -67
  451. package/plugins/TreasurePlugin/index.d.ts +0 -11
  452. package/plugins/TreasurePlugin/index.js +0 -26
  453. package/plugins/TreasurePlugin/typings.d.ts +0 -2
  454. package/plugins/TreasurePlugin/typings.js +0 -7
  455. package/plugins/floorplan/Assets/floorplanExtraObject.js +0 -10
  456. package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +0 -637
  457. package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.d.ts +0 -13
  458. package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +0 -78
  459. package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.d.ts +0 -5
  460. package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +0 -84
  461. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.d.ts +0 -10
  462. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.js +0 -129
  463. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.d.ts +0 -13
  464. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +0 -118
  465. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomMaterial.d.ts +0 -11
  466. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomMaterial.js +0 -174
  467. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RuleLabels.d.ts +0 -8
  468. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RuleLabels.js +0 -178
  469. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.d.ts +0 -15
  470. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +0 -74
  471. package/plugins/floorplan/ModelFloorplanPlugin/components/index.d.ts +0 -23
  472. package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +0 -88
  473. package/plugins/floorplan/ModelFloorplanPlugin/controller.style.d.ts +0 -1
  474. package/plugins/floorplan/ModelFloorplanPlugin/controller.style.js +0 -16
  475. package/plugins/floorplan/ModelFloorplanPlugin/index.js +0 -20
  476. package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.js +0 -7
  477. package/plugins/floorplan/ModelFloorplanPlugin/typings/utility.js +0 -7
  478. package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.js +0 -33
  479. package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +0 -154
  480. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.d.ts +0 -13
  481. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.js +0 -114
  482. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.d.ts +0 -3
  483. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.js +0 -39
  484. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.d.ts +0 -5
  485. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.js +0 -66
  486. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.d.ts +0 -9
  487. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.js +0 -126
  488. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.d.ts +0 -11
  489. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.js +0 -58
  490. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.d.ts +0 -17
  491. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.js +0 -85
  492. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.d.ts +0 -2
  493. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.js +0 -15
  494. package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.js +0 -211
  495. package/plugins/floorplan/PanoFloorplanRadarPlugin/index.js +0 -20
  496. package/plugins/floorplan/TopviewFloorplanPlugin/Controller.js +0 -272
  497. package/plugins/floorplan/TopviewFloorplanPlugin/index.js +0 -18
  498. package/plugins/floorplan/TopviewFloorplanPlugin/style.js +0 -16
  499. package/plugins/floorplan/components/FloorplanImage.d.ts +0 -7
  500. package/plugins/floorplan/components/FloorplanImage.js +0 -90
  501. package/plugins/floorplan/index.d.ts +0 -4
  502. package/plugins/floorplan/index.js +0 -13
  503. package/plugins/floorplan/typings/floorplanData.js +0 -7
  504. package/plugins/floorplan/typings/floorplanServerData.js +0 -382
  505. package/plugins/floorplan/utils/formatData.js +0 -218
  506. package/plugins/floorplan/utils/formatPosition.js +0 -89
  507. package/shared-utils/Preloader.js +0 -57
  508. package/shared-utils/Subscribe.js +0 -230
  509. package/shared-utils/animationFrame/BetterTween.js +0 -103
  510. package/shared-utils/animationFrame/calculateProgress.js +0 -40
  511. package/shared-utils/animationFrame/formatRad.js +0 -36
  512. package/shared-utils/animationFrame/index.js +0 -81
  513. package/shared-utils/animationFrame/tween.js +0 -92
  514. package/shared-utils/changeModelCanvasOpacity.js +0 -38
  515. package/shared-utils/createCanvasTextTexture.js +0 -31
  516. package/shared-utils/createFiveContainer.d.ts +0 -10
  517. package/shared-utils/createFiveContainer.js +0 -171
  518. package/shared-utils/createLine/index.js +0 -43
  519. package/shared-utils/debounce.js +0 -30
  520. package/shared-utils/equal.js +0 -107
  521. package/shared-utils/filter.js +0 -127
  522. package/shared-utils/five/changeMode.js +0 -82
  523. package/shared-utils/five/useFivePlugin.js +0 -17
  524. package/shared-utils/formatRad.js +0 -18
  525. package/shared-utils/getPxmm.js +0 -51
  526. package/shared-utils/getRandomColor.js +0 -23
  527. package/shared-utils/isNil.js +0 -26
  528. package/shared-utils/isTruelyObject.js +0 -31
  529. package/shared-utils/math/evenNumber.js +0 -15
  530. package/shared-utils/math/planimetry.js +0 -352
  531. package/shared-utils/math/rad2Deg.js +0 -12
  532. package/shared-utils/nearlyEqual.js +0 -19
  533. package/shared-utils/nextFrame.js +0 -15
  534. package/shared-utils/noop.js +0 -19
  535. package/shared-utils/object3d2LocalMatrix.js +0 -79
  536. package/shared-utils/px2rem.js +0 -22
  537. package/shared-utils/removeArrayItem.js +0 -22
  538. package/shared-utils/three/centerPoint.js +0 -14
  539. package/shared-utils/three/getExtraModelLoader.js +0 -45
  540. package/shared-utils/three/getNormal.js +0 -17
  541. package/shared-utils/three/getTextureLoader.js +0 -50
  542. package/shared-utils/three/loadFbxObj.js +0 -54
  543. package/shared-utils/three/loadTexture.js +0 -65
  544. package/shared-utils/three/transformPositionToVector3.js +0 -20
  545. package/shared-utils/three/transfromToMeshBasicMaterial.js +0 -33
  546. package/shared-utils/throttle.js +0 -29
  547. package/shared-utils/to.js +0 -67
  548. package/shared-utils/useDebounce.js +0 -49
  549. package/shared-utils/useThrottle.js +0 -47
  550. package/shared-utils/uuid.d.ts +0 -4
  551. package/shared-utils/uuid.js +0 -28
  552. package/shared-utils/vectorTocoordinates.js +0 -18
  553. package/typedoc/components.d.ts +0 -6
  554. package/typedoc/components.js +0 -7
  555. package/typedoc/libs.d.ts +0 -1
  556. package/typedoc/libs.js +0 -7
  557. package/typedoc/plugins.d.ts +0 -19
  558. package/typedoc/plugins.js +0 -165
  559. package/typedoc/shared-utils.d.ts +0 -3
  560. package/typedoc/shared-utils.js +0 -7
  561. package/typedoc/typings.d.ts +0 -3
  562. package/typedoc/typings.js +0 -7
  563. package/typings/math.type.js +0 -7
  564. package/typings/utils.type.js +0 -7
@@ -1,51 +0,0 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.array.iterator.js");
4
-
5
- require("core-js/modules/es.object.to-string.js");
6
-
7
- require("core-js/modules/es.string.iterator.js");
8
-
9
- require("core-js/modules/es.weak-map.js");
10
-
11
- require("core-js/modules/web.dom-collections.iterator.js");
12
-
13
- require("core-js/modules/es.object.define-property.js");
14
-
15
- require("core-js/modules/es.object.get-own-property-descriptor.js");
16
-
17
- var _typeof = require("@babel/runtime/helpers/typeof");
18
-
19
- Object.defineProperty(exports, "__esModule", {
20
- value: true
21
- });
22
- exports["default"] = getPxmm;
23
-
24
- var THREE = _interopRequireWildcard(require("three"));
25
-
26
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
-
28
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
-
30
- /**
31
- * 获取「在俯视图」状态下,模型 mm 与屏幕像素 px 的对应关系,即每 mm 对应多少 px
32
- * @param five five
33
- */
34
- function getPxmm(five, container) {
35
- var boundingCenter = new THREE.Vector3(0, 0, 0);
36
- five.model.bounding.getCenter(boundingCenter);
37
- var boundingCenterY = boundingCenter.y;
38
-
39
- var _five$getCurrentState = five.getCurrentState(),
40
- longitude = _five$getCurrentState.longitude; // 因为模型可能经过旋转,所以屏幕水平方向上的 1m 对应 X 轴距离需要转换
41
-
42
-
43
- var X = 1 / Math.abs(Math.cos(longitude)); // 模型绕 (boundingCenterX, boundingCenterY, boundingCenterZ) 旋转
44
-
45
- var originPosition = new THREE.Vector3(0, boundingCenterY, 0);
46
- var originPositionXUnit = new THREE.Vector3(X, boundingCenterY, 0);
47
- var mouse = originPosition.project(five.camera);
48
- var xUnitMouse = originPositionXUnit.project(five.camera);
49
- var pxmm = Math.abs((xUnitMouse.x - mouse.x) / 1000) * (container.getBoundingClientRect().width / 2);
50
- return pxmm;
51
- }
@@ -1,23 +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["default"] = getRandomColor;
9
-
10
- require("core-js/modules/es.array.join.js");
11
-
12
- require("core-js/modules/es.array.map.js");
13
-
14
- require("core-js/modules/es.regexp.exec.js");
15
-
16
- require("core-js/modules/es.string.split.js");
17
-
18
- function getRandomColor() {
19
- var color = '#' + '0123456789abcdef'.split('').map(function (v, i, a) {
20
- return i > 5 ? null : a[Math.floor(Math.random() * 16)];
21
- }).join('');
22
- return color;
23
- }
@@ -1,26 +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.isNil = isNil;
9
- exports.notNil = notNil;
10
-
11
- /**
12
- * 判断对象是否为`null`或`undefined`。
13
- * @param
14
- * @return
15
- */
16
- function isNil(value) {
17
- return !notNil(value);
18
- }
19
- /**
20
- * 判断对象不为`null`或`undefined`。
21
- */
22
-
23
-
24
- function notNil(value) {
25
- return value !== null && value !== undefined;
26
- }
@@ -1,31 +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["default"] = isTruelyObject;
9
-
10
- require("core-js/modules/es.object.to-string.js");
11
-
12
- /**
13
- * 检查一个值是否是狭义上的对象
14
- * @param {any} value 要检查的值
15
- *
16
- * isTruelyObject({})
17
- * // => true
18
- *
19
- * isObjectLike([1, 2, 3])
20
- * // => false
21
- *
22
- * isObjectLike(Function)
23
- * // => false
24
- *
25
- * isObjectLike(null)
26
- * // => false
27
- *
28
- */
29
- function isTruelyObject(value) {
30
- return Object.prototype.toString.call(value) === '[object Object]';
31
- }
@@ -1,15 +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["default"] = evenNumber;
9
-
10
- require("core-js/modules/es.number.constructor.js");
11
-
12
- function evenNumber(num, config) {
13
- var roundNum = Math.round(num);
14
- return roundNum % 2 === 0 ? roundNum : roundNum + Number(config !== null && config !== void 0 && config.smaller ? -1 : 1);
15
- }
@@ -1,352 +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.closestPointOnLine = closestPointOnLine;
9
- exports.distance = distance;
10
- exports.getAreaSize = getAreaSize;
11
- exports.getAreaSizeWithoutLine = getAreaSizeWithoutLine;
12
- exports.getCenterPointOfPoints = getCenterPointOfPoints;
13
- exports.getK = getK;
14
- exports.intersectionOfLine = intersectionOfLine;
15
- exports.isIntersect = isIntersect;
16
- exports.linesWithDistanceOfLine = linesWithDistanceOfLine;
17
- exports.linesWithDistanceOfLineWithCurve = linesWithDistanceOfLineWithCurve;
18
- exports.pointDistanceFromLine = pointDistanceFromLine;
19
- exports.pointOnLine = pointOnLine;
20
- exports.pointRotateByCenterPoint = pointRotateByCenterPoint;
21
- exports.sameK = sameK;
22
- exports.samePointAt = samePointAt;
23
-
24
- require("core-js/modules/es.array.reverse.js");
25
-
26
- require("core-js/modules/es.array.for-each.js");
27
-
28
- require("core-js/modules/web.dom-collections.for-each.js");
29
-
30
- require("core-js/modules/es.array.reduce.js");
31
-
32
- /**
33
- * 平面几何相关数学函数
34
- */
35
-
36
- /**
37
- * 平面点坐标。
38
- */
39
-
40
- /**
41
- * 检查两个点是否位置相同
42
- * @param point1
43
- * @param point2
44
- * @return
45
- */
46
- function samePointAt(point1, point2) {
47
- return point1.x === point2.x && point1.y === point2.y;
48
- }
49
- /**
50
- * 计算两个点之间的位置
51
- * @param {point} point1
52
- * @param {point} point2
53
- * @return {number}
54
- */
55
-
56
-
57
- function distance(point1, point2) {
58
- return Math.sqrt(Math.pow(point2.x - point1.x, 2) + Math.pow(point2.y - point1.y, 2));
59
- }
60
- /**
61
- * 两个计算的斜率是否相同
62
- * @param {number} k1
63
- * @param {number} k2
64
- * @return
65
- */
66
-
67
-
68
- function sameK(k1, k2) {
69
- if (Math.abs(k1) === Infinity && Math.abs(k2) === Infinity) return true;
70
- return Math.abs(k1 - k2) < 0.001;
71
- }
72
- /**
73
- * 获取两点之间的斜率
74
- * @param {point} point1
75
- * @param {point} point2
76
- * @return {number}
77
- */
78
-
79
-
80
- function getK(point1, point2) {
81
- return (point2.y - point1.y) / (point2.x - point1.x);
82
- }
83
- /**
84
- * 获取一点对于线段上最近的一点,
85
- * 如果可以是过直线垂线的垂足,不行的话取线段的两端
86
- * @param {point} point1
87
- * @param {linePoints} linePoints
88
- * @return {point}
89
- */
90
-
91
-
92
- function closestPointOnLine(point, linePoints) {
93
- var tA = point.x - linePoints[0].x;
94
- var tB = point.y - linePoints[0].y;
95
- var tC = linePoints[1].x - linePoints[0].x;
96
- var tD = linePoints[1].y - linePoints[0].y;
97
- var tDot = tA * tC + tB * tD;
98
- var tLenSq = tC * tC + tD * tD;
99
- var tParam = tDot / tLenSq;
100
- var tXx, tYy;
101
-
102
- if (tParam < 0 || samePointAt(linePoints[0], linePoints[1])) {
103
- tXx = linePoints[0].x;
104
- tYy = linePoints[0].y;
105
- } else if (tParam > 1) {
106
- tXx = linePoints[1].x;
107
- tYy = linePoints[1].y;
108
- } else {
109
- tXx = linePoints[0].x + tParam * tC;
110
- tYy = linePoints[0].y + tParam * tD;
111
- }
112
-
113
- return {
114
- x: tXx,
115
- y: tYy
116
- };
117
- }
118
- /**
119
- * 点到线段的距离,
120
- * 如果可以是过直线垂线的垂足的距离,不行的话取线段的两端的距离
121
- * @param {point} point1
122
- * @param {linePoints} linePoints
123
- * @return {number}
124
- */
125
-
126
-
127
- function pointDistanceFromLine(point, linePoints) {
128
- var closestPoint = closestPointOnLine(point, linePoints);
129
- return distance(point, closestPoint);
130
- }
131
- /**
132
- * 做线段的距离一定值的平行线段
133
- * @param {number} distanceOfLine
134
- * @param {linePoints} linePoints
135
- * @return {[linePoints, linePoints]}
136
- */
137
-
138
-
139
- function linesWithDistanceOfLine(distanceOfLine, linePoints) {
140
- var k = getK(linePoints[1], linePoints[0]);
141
- var dx, dy;
142
-
143
- if (Math.abs(k) === Infinity) {
144
- dy = 0;
145
- dx = distanceOfLine;
146
- } else {
147
- dy = Math.sqrt(distanceOfLine * distanceOfLine / (k * k + 1));
148
- dx = dy / -(1 / k);
149
- }
150
-
151
- var result = [[{
152
- x: linePoints[0].x - dx,
153
- y: linePoints[0].y - dy
154
- }, {
155
- x: linePoints[1].x - dx,
156
- y: linePoints[1].y - dy
157
- }], [{
158
- x: linePoints[0].x + dx,
159
- y: linePoints[0].y + dy
160
- }, {
161
- x: linePoints[1].x + dx,
162
- y: linePoints[1].y + dy
163
- }]];
164
-
165
- if (linePoints[1].x - linePoints[0].x < 0) {
166
- return result;
167
- } else if (linePoints[1].x - linePoints[0].x > 0) {
168
- return result.reverse();
169
- } else {
170
- if (linePoints[1].y - linePoints[0].y < 0) {
171
- return result.reverse();
172
- } else {
173
- return result;
174
- }
175
- }
176
- }
177
- /**
178
- * 做线段的距离一定值的平行线段 (如果线段是弧形的)
179
- * @param {number} distanceOfLine
180
- * @param {linePoints} linePoints
181
- * @param {number} 弧形定点到线段的距离
182
- * @return {[linePoints, linePoints]}
183
- */
184
-
185
-
186
- function linesWithDistanceOfLineWithCurve(distanceOfLine, linePoints, curve) {
187
- var centerPoint = getCenterPointOfPoints(linePoints);
188
- var pHelfDistance = distance(linePoints[0], centerPoint);
189
- var cDistance = Math.sqrt(curve * curve - pHelfDistance * pHelfDistance);
190
- var cpoint = isNaN(cDistance) ? centerPoint : linesWithDistanceOfLine(cDistance, [centerPoint, linePoints[0]])[curve > 0 ? 0 : 1][0];
191
- var dx1 = (linePoints[0].x - cpoint.x) / curve * distanceOfLine;
192
- var dy1 = (linePoints[0].y - cpoint.y) / curve * distanceOfLine;
193
- var dx2 = (linePoints[1].x - cpoint.x) / curve * distanceOfLine;
194
- var dy2 = (linePoints[1].y - cpoint.y) / curve * distanceOfLine;
195
- return [[{
196
- x: linePoints[0].x - dx1,
197
- y: linePoints[0].y - dy1
198
- }, {
199
- x: linePoints[1].x - dx2,
200
- y: linePoints[1].y - dy2
201
- }], [{
202
- x: linePoints[0].x + dx1,
203
- y: linePoints[0].y + dy1
204
- }, {
205
- x: linePoints[1].x + dx2,
206
- y: linePoints[1].y + dy2
207
- }]];
208
- }
209
- /**
210
- * 两条线段(包括延长线)的交点点
211
- * @param {linePoints} linePoints1
212
- * @param {linePoints} linePoints2
213
- * @param needIntersectionInLine 是否是延长线的相交
214
- * @return {point || false}
215
- */
216
-
217
-
218
- function intersectionOfLine(linePoints1, linePoints2, needIntersectionInLine) {
219
- var k1 = getK(linePoints1[1], linePoints1[0]);
220
- var k2 = getK(linePoints2[1], linePoints2[0]);
221
- if (isNaN(k1) || isNaN(k2)) return false;
222
- if (sameK(k1, k2)) return false;
223
- if (pointOnLine(linePoints1[0], linePoints2)) return linePoints1[0];
224
- if (pointOnLine(linePoints1[1], linePoints2)) return linePoints1[1];
225
- if (pointOnLine(linePoints2[0], linePoints1)) return linePoints2[0];
226
- if (pointOnLine(linePoints2[1], linePoints1)) return linePoints2[1]; //needIntersectionInLine 是否焦点在线段内
227
-
228
- if (needIntersectionInLine && !isIntersect(linePoints1, linePoints2)) return false;
229
- var p1 = linePoints1[0];
230
- var p2 = linePoints2[0];
231
-
232
- if (Math.abs(k1) === Infinity) {
233
- return {
234
- x: p1.x,
235
- y: linePoints2[1].y - (linePoints2[1].x - p1.x) * k2
236
- };
237
- }
238
-
239
- if (Math.abs(k2) === Infinity) {
240
- return {
241
- x: p2.x,
242
- y: linePoints1[1].y - (linePoints1[1].x - p2.x) * k1
243
- };
244
- }
245
-
246
- var x = (p2.y - p1.y + k1 * p1.x - k2 * p2.x) / (k1 - k2);
247
- var y = k1 * x - k1 * p1.x + p1.y;
248
- return {
249
- x: x,
250
- y: y
251
- };
252
- }
253
- /**
254
- * 是否点在线段上
255
- * @param {point} point
256
- * @param {linePoints} linePoints
257
- * @return
258
- */
259
-
260
-
261
- function pointOnLine(point, linePoints) {
262
- if (samePointAt(point, linePoints[0])) return true;
263
- if (samePointAt(point, linePoints[1])) return true;
264
- return true && (linePoints[0].x - point.x) * (point.x - linePoints[1].x) >= 0 && (linePoints[0].y - point.y) * (point.y - linePoints[1].y) >= 0 && sameK(getK(linePoints[0], point), getK(point, linePoints[1]));
265
- }
266
- /**
267
- * 让点按照另一个点为圆心,一定弧度的情况下转动得到下一个点
268
- * @param {point} point
269
- * @param {point} centerPoint
270
- * @param {number} rad
271
- * @return {point}
272
- */
273
-
274
-
275
- function pointRotateByCenterPoint(point, centerPoint, rad) {
276
- var r = distance(point, centerPoint);
277
- var nextRad = Math.atan2(point.y - centerPoint.y, point.x - centerPoint.x);
278
- nextRad -= rad;
279
- return {
280
- x: centerPoint.x + Math.cos(nextRad) * r,
281
- y: centerPoint.y + Math.sin(nextRad) * r
282
- };
283
- }
284
- /**
285
- * 获取一些点的中心点
286
- * @param {points} point
287
- * @return {point}
288
- */
289
-
290
-
291
- function getCenterPointOfPoints(points) {
292
- var minX = Infinity,
293
- maxX = 0,
294
- minY = Infinity,
295
- maxY = 0;
296
- points.forEach(function (point) {
297
- minX = Math.min(minX, point.x);
298
- maxX = Math.max(maxX, point.x);
299
- minY = Math.min(minY, point.y);
300
- maxY = Math.max(maxY, point.y);
301
- });
302
- return {
303
- x: (minX + maxX) / 2,
304
- y: (minY + maxY) / 2
305
- };
306
- }
307
- /**
308
- * 判断两条线段是否相交
309
- */
310
-
311
-
312
- function multi(p1, p2, p0) {
313
- return (p1.x - p0.x) * (p2.y - p0.y) - (p2.x - p0.x) * (p1.y - p0.y);
314
- }
315
-
316
- function isIntersect(linePoints1, linePoints2) {
317
- if (Math.max(linePoints1[0].x, linePoints1[1].x) >= Math.min(linePoints2[0].x, linePoints2[1].x) && Math.max(linePoints2[0].x, linePoints2[1].x) >= Math.min(linePoints1[0].x, linePoints1[1].x) && Math.max(linePoints1[0].y, linePoints1[1].y) >= Math.min(linePoints2[0].y, linePoints2[1].y) && multi(linePoints2[0], linePoints1[1], linePoints1[0]) * multi(linePoints1[1], linePoints2[1], linePoints1[0]) > 0 && multi(linePoints1[0], linePoints2[1], linePoints2[0]) * multi(linePoints2[1], linePoints1[1], linePoints2[0]) > 0) return 1;
318
- return 0;
319
- }
320
- /**
321
- * 计算点按序围成区域的面就
322
- * @param {[point]} points
323
- * @return {number}
324
- */
325
-
326
-
327
- function cross(p1, p2) {
328
- // 向量叉积
329
- return p1.x * p2.y - p1.y * p2.x;
330
- }
331
-
332
- function getAreaSize(points) {
333
- var ret = 0;
334
- return (cross(points.reduce(function (pf, pn) {
335
- ret += cross(pf, pn);
336
- return pn;
337
- }), points[0]) + ret) / 2;
338
- }
339
-
340
- function getAreaSizeWithoutLine(points) {
341
- var ret = 0;
342
- var r = (cross(points.reduce(function (pf, pn) {
343
- ret += cross(pf, pn);
344
- return pn;
345
- }), points[0]) + ret) / 2;
346
- var wall = 0;
347
- var wr = (distance(points.reduce(function (pf, pn) {
348
- wall += distance(pf, pn) * 250;
349
- return pn;
350
- }), points[0]) * 250 + wall) / 2;
351
- return r - (wr - 250 * 1000) * (r > 0 ? 1 : -1);
352
- }
@@ -1,12 +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["default"] = rad2Deg;
9
-
10
- function rad2Deg(rad) {
11
- return rad * 180 / Math.PI;
12
- }
@@ -1,19 +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["default"] = nearlyEqual;
9
-
10
- /**
11
- * 比较两个数字近似相等
12
- * @param num1 数字1
13
- * @param num2 数字2
14
- * @param accuracy 精度:精确到小数点后几位,默认精确到 小数点后四位
15
- */
16
- function nearlyEqual(num1, num2) {
17
- var accuracy = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 4;
18
- return Math.floor(num1 * Math.pow(10, accuracy)) === Math.floor(num2 * Math.pow(10, accuracy));
19
- }
@@ -1,15 +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.nextFrame = nextFrame;
9
-
10
- function nextFrame(fn) {
11
- var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
12
- if (delay <= 0) requestAnimationFrame(fn);else requestAnimationFrame(function () {
13
- return nextFrame(fn, delay - 1);
14
- });
15
- }
@@ -1,19 +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["default"] = void 0;
9
-
10
- function noop() {
11
- return void 0;
12
- }
13
- /**
14
- * 空函数
15
- */
16
-
17
-
18
- var _default = noop;
19
- exports["default"] = _default;
@@ -1,79 +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.genRotationMatrix = exports["default"] = void 0;
25
-
26
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
27
-
28
- var THREE = _interopRequireWildcard(require("three"));
29
-
30
- 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); }
31
-
32
- 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; }
33
-
34
- var genRotationMatrix = function genRotationMatrix(x, y, z) {
35
- var matrix = new THREE.Matrix4();
36
- var euler = new THREE.Euler(x, y, z, 'YXZ');
37
- matrix.makeRotationFromEuler(euler);
38
- return matrix;
39
- };
40
-
41
- exports.genRotationMatrix = genRotationMatrix;
42
-
43
- var bject3d2LocalMatrix = function bject3d2LocalMatrix(mesh, _ref) {
44
- var scale = _ref.scale,
45
- rotation = _ref.rotation,
46
- position = _ref.position;
47
-
48
- if (scale) {
49
- mesh.scale.set(scale, scale, scale);
50
- }
51
-
52
- if (rotation) {
53
- var _rotation = (0, _slicedToArray2["default"])(rotation, 3),
54
- x = _rotation[0],
55
- y = _rotation[1],
56
- z = _rotation[2];
57
-
58
- if (x) {
59
- mesh.applyMatrix4(genRotationMatrix(x, 0, 0));
60
- }
61
-
62
- if (y) {
63
- mesh.applyMatrix4(genRotationMatrix(0, y, 0));
64
- }
65
-
66
- if (z) {
67
- mesh.applyMatrix4(genRotationMatrix(0, 0, z));
68
- }
69
- }
70
-
71
- if (position) {
72
- mesh.position.set(position.x, position.y, position.z);
73
- }
74
-
75
- return mesh;
76
- };
77
-
78
- var _default = bject3d2LocalMatrix;
79
- exports["default"] = _default;
@@ -1,22 +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["default"] = px2rem;
9
-
10
- require("core-js/modules/es.number.constructor.js");
11
-
12
- require("core-js/modules/es.regexp.exec.js");
13
-
14
- require("core-js/modules/es.string.replace.js");
15
-
16
- require("core-js/modules/es.number.to-fixed.js");
17
-
18
- function px2rem(_px) {
19
- var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 16;
20
- var px = Number(typeof _px === 'string' ? _px.replace(/px/g, '') : _px);
21
- return (px / precision).toFixed(5) + 'rem';
22
- }
@@ -1,22 +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["default"] = removeArrayItem;
9
-
10
- require("core-js/modules/es.array.splice.js");
11
-
12
- /**
13
- * 从数组中删除
14
- * @param item
15
- * @param array
16
- * @return 如果删除返回 item
17
- */
18
- function removeArrayItem(item, array) {
19
- for (var index = 0, len = array.length; index < len; index++) {
20
- if (item === array[index]) return array.splice(index, 1)[0];
21
- }
22
- }