@realsee/dnalogel 0.1.7-alpha.7 → 2.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (563) hide show
  1. package/README.md +6 -90
  2. package/dist/dnalogel.es.js +37145 -0
  3. package/dist/dnalogel.umd.js +2 -0
  4. package/dist/style.css +1 -0
  5. package/{plugins → libs}/CSS3DRenderPlugin/index.d.ts +1 -1
  6. package/libs/CSS3DRenderPlugin/index.js +181 -0
  7. package/{plugins → libs}/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -0
  8. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +18 -0
  9. package/{plugins → libs}/CameraMovementPlugin/index.d.ts +0 -0
  10. package/libs/CameraMovementPlugin/index.js +159 -0
  11. package/{plugins → libs}/CameraMovementPlugin/typing.d.ts +0 -0
  12. package/libs/CameraMovementPlugin/typing.js +17 -0
  13. package/{plugins → libs}/ModelChassisCompassPlugin/index.d.ts +0 -0
  14. package/libs/ModelChassisCompassPlugin/index.js +75 -0
  15. package/{plugins → libs}/ModelEntryDoorGuidePlugin/index.d.ts +2 -2
  16. package/libs/ModelEntryDoorGuidePlugin/index.js +136 -0
  17. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
  18. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -0
  19. package/{plugins → libs}/ModelRoomLabelPlugin/Controller.d.ts +3 -2
  20. package/libs/ModelRoomLabelPlugin/Controller.js +100 -0
  21. package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte +63 -0
  22. package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte.map +1 -0
  23. package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte +80 -0
  24. package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte.map +1 -0
  25. package/{plugins → libs}/ModelRoomLabelPlugin/index.d.ts +4 -4
  26. package/libs/ModelRoomLabelPlugin/index.js +9 -0
  27. package/{plugins → libs}/ModelRoomLabelPlugin/typings.d.ts +2 -2
  28. package/libs/ModelRoomLabelPlugin/typings.js +1 -0
  29. package/{plugins → libs}/ModelRoomLabelPlugin/utils/parseData.d.ts +0 -0
  30. package/libs/ModelRoomLabelPlugin/utils/parseData.js +14 -0
  31. package/{plugins → libs}/ModelViewPlugin/index.d.ts +0 -0
  32. package/libs/ModelViewPlugin/index.js +160 -0
  33. package/{plugins → libs}/PanoCursorRaycasterPlugin/index.d.ts +2 -3
  34. package/libs/PanoCursorRaycasterPlugin/index.js +74 -0
  35. package/libs/floorplan/Assets/camera.d.ts +1 -0
  36. package/libs/floorplan/Assets/camera.js +1 -0
  37. package/{plugins → libs}/floorplan/Assets/floorplanExtraObject.d.ts +0 -0
  38. package/libs/floorplan/Assets/floorplanExtraObject.js +1 -0
  39. package/libs/floorplan/Components/BaseImage.svelte +25 -0
  40. package/libs/floorplan/Components/BaseImage.svelte.map +1 -0
  41. package/libs/floorplan/Components/Normalmage.svelte +11 -0
  42. package/libs/floorplan/Components/Normalmage.svelte.map +1 -0
  43. package/libs/floorplan/Components/RoomHighlight/Room.svelte +21 -0
  44. package/libs/floorplan/Components/RoomHighlight/Room.svelte.map +1 -0
  45. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte +60 -0
  46. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte.map +1 -0
  47. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte +35 -0
  48. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte.map +1 -0
  49. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte +7 -0
  50. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte.map +1 -0
  51. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte +16 -0
  52. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte.map +1 -0
  53. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte +17 -0
  54. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte.map +1 -0
  55. package/libs/floorplan/Components/SvgImage.svelte +25 -0
  56. package/libs/floorplan/Components/SvgImage.svelte.map +1 -0
  57. package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.d.ts +1 -0
  58. package/libs/floorplan/ModelFloorplanPlugin/Assets/compass.js +1 -0
  59. package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.svelte +46 -0
  60. package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.svelte.map +1 -0
  61. package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.svelte +48 -0
  62. package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.svelte.map +1 -0
  63. package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte +37 -0
  64. package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte.map +1 -0
  65. package/libs/floorplan/ModelFloorplanPlugin/Components/Main.svelte +50 -0
  66. package/libs/floorplan/ModelFloorplanPlugin/Components/Main.svelte.map +1 -0
  67. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte +41 -0
  68. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte.map +1 -0
  69. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte +25 -0
  70. package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte.map +1 -0
  71. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte +148 -0
  72. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte.map +1 -0
  73. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte +15 -0
  74. package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte.map +1 -0
  75. package/{plugins → libs}/floorplan/ModelFloorplanPlugin/Controller.d.ts +11 -12
  76. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +357 -0
  77. package/{plugins → libs}/floorplan/ModelFloorplanPlugin/index.d.ts +1 -1
  78. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -0
  79. package/{plugins → libs}/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +0 -0
  80. package/libs/floorplan/ModelFloorplanPlugin/typings/events.type.js +1 -0
  81. package/{plugins → libs}/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +0 -0
  82. package/libs/floorplan/ModelFloorplanPlugin/utils/constant.js +16 -0
  83. package/{plugins → libs}/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +0 -0
  84. package/libs/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +46 -0
  85. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte +84 -0
  86. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte.map +1 -0
  87. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte +18 -0
  88. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte.map +1 -0
  89. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte +40 -0
  90. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte.map +1 -0
  91. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte +61 -0
  92. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte.map +1 -0
  93. package/{plugins → libs}/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +6 -11
  94. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +88 -0
  95. package/{plugins → libs}/floorplan/PanoFloorplanRadarPlugin/index.d.ts +0 -0
  96. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -0
  97. package/{plugins → libs}/floorplan/TopviewFloorplanPlugin/Controller.d.ts +13 -12
  98. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +189 -0
  99. package/{plugins → libs}/floorplan/TopviewFloorplanPlugin/index.d.ts +0 -0
  100. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -0
  101. package/{plugins → libs}/floorplan/TopviewFloorplanPlugin/style.d.ts +0 -0
  102. package/libs/floorplan/TopviewFloorplanPlugin/style.js +8 -0
  103. package/{plugins → libs}/floorplan/typings/floorplanData.d.ts +6 -2
  104. package/libs/floorplan/typings/floorplanData.js +6 -0
  105. package/{plugins → libs}/floorplan/typings/floorplanServerData.d.ts +1 -1
  106. package/libs/floorplan/typings/floorplanServerData.js +101 -0
  107. package/{plugins/floorplan/ModelFloorplanPlugin → libs/floorplan}/typings/utility.d.ts +0 -0
  108. package/libs/floorplan/typings/utility.js +1 -0
  109. package/{plugins → libs}/floorplan/utils/formatData.d.ts +3 -3
  110. package/libs/floorplan/utils/formatData.js +94 -0
  111. package/{plugins → libs}/floorplan/utils/formatPosition.d.ts +3 -4
  112. package/libs/floorplan/utils/formatPosition.js +50 -0
  113. package/libs/index.d.ts +17 -0
  114. package/libs/index.js +10 -0
  115. package/{shared-utils → libs/shared-utils}/Preloader.d.ts +0 -0
  116. package/libs/shared-utils/Preloader.js +38 -0
  117. package/{shared-utils → libs/shared-utils}/Subscribe.d.ts +3 -3
  118. package/libs/shared-utils/Subscribe.js +101 -0
  119. package/{shared-utils → libs/shared-utils}/animationFrame/BetterTween.d.ts +0 -0
  120. package/libs/shared-utils/animationFrame/BetterTween.js +30 -0
  121. package/{shared-utils → libs/shared-utils}/animationFrame/calculateProgress.d.ts +0 -0
  122. package/libs/shared-utils/animationFrame/calculateProgress.js +23 -0
  123. package/{shared-utils → libs/shared-utils}/animationFrame/formatRad.d.ts +0 -0
  124. package/libs/shared-utils/animationFrame/formatRad.js +20 -0
  125. package/{shared-utils → libs/shared-utils}/animationFrame/index.d.ts +0 -0
  126. package/libs/shared-utils/animationFrame/index.js +48 -0
  127. package/{shared-utils → libs/shared-utils}/animationFrame/tween.d.ts +0 -0
  128. package/libs/shared-utils/animationFrame/tween.js +44 -0
  129. package/{shared-utils → libs/shared-utils}/changeModelCanvasOpacity.d.ts +0 -0
  130. package/libs/shared-utils/changeModelCanvasOpacity.js +15 -0
  131. package/{shared-utils → libs/shared-utils}/createCanvasTextTexture.d.ts +0 -0
  132. package/libs/shared-utils/createCanvasTextTexture.js +19 -0
  133. package/{shared-utils → libs/shared-utils}/createLine/index.d.ts +1 -1
  134. package/libs/shared-utils/createLine/index.js +8 -0
  135. package/{shared-utils → libs/shared-utils}/debounce.d.ts +1 -1
  136. package/libs/shared-utils/debounce.js +14 -0
  137. package/{shared-utils → libs/shared-utils}/equal.d.ts +0 -0
  138. package/libs/shared-utils/equal.js +84 -0
  139. package/{shared-utils → libs/shared-utils}/filter.d.ts +0 -0
  140. package/libs/shared-utils/filter.js +53 -0
  141. package/{shared-utils → libs/shared-utils}/five/changeMode.d.ts +0 -0
  142. package/libs/shared-utils/five/changeMode.js +15 -0
  143. package/{shared-utils → libs/shared-utils}/five/useFivePlugin.d.ts +0 -0
  144. package/libs/shared-utils/five/useFivePlugin.js +8 -0
  145. package/{shared-utils → libs/shared-utils}/formatRad.d.ts +0 -0
  146. package/libs/shared-utils/formatRad.js +10 -0
  147. package/{shared-utils → libs/shared-utils}/getPxmm.d.ts +0 -0
  148. package/libs/shared-utils/getPxmm.js +20 -0
  149. package/{shared-utils → libs/shared-utils}/getRandomColor.d.ts +0 -0
  150. package/libs/shared-utils/getRandomColor.js +10 -0
  151. package/{shared-utils → libs/shared-utils}/isNil.d.ts +0 -0
  152. package/libs/shared-utils/isNil.js +14 -0
  153. package/{shared-utils → libs/shared-utils}/isTruelyObject.d.ts +0 -0
  154. package/libs/shared-utils/isTruelyObject.js +20 -0
  155. package/{shared-utils → libs/shared-utils}/math/evenNumber.d.ts +0 -0
  156. package/libs/shared-utils/math/evenNumber.js +4 -0
  157. package/{shared-utils → libs/shared-utils}/math/planimetry.d.ts +4 -4
  158. package/libs/shared-utils/math/planimetry.js +288 -0
  159. package/{shared-utils → libs/shared-utils}/math/rad2Deg.d.ts +0 -0
  160. package/libs/shared-utils/math/rad2Deg.js +3 -0
  161. package/{shared-utils → libs/shared-utils}/nearlyEqual.d.ts +0 -0
  162. package/libs/shared-utils/nearlyEqual.js +9 -0
  163. package/{shared-utils → libs/shared-utils}/nextFrame.d.ts +0 -0
  164. package/libs/shared-utils/nextFrame.js +6 -0
  165. package/{shared-utils → libs/shared-utils}/noop.d.ts +0 -0
  166. package/libs/shared-utils/noop.js +7 -0
  167. package/{shared-utils → libs/shared-utils}/object3d2LocalMatrix.d.ts +0 -0
  168. package/libs/shared-utils/object3d2LocalMatrix.js +29 -0
  169. package/{shared-utils → libs/shared-utils}/px2rem.d.ts +0 -0
  170. package/libs/shared-utils/px2rem.js +4 -0
  171. package/{shared-utils → libs/shared-utils}/removeArrayItem.d.ts +1 -1
  172. package/libs/shared-utils/removeArrayItem.js +12 -0
  173. package/{shared-utils → libs/shared-utils}/tap.d.ts +0 -0
  174. package/{shared-utils → libs/shared-utils}/tap.js +4 -13
  175. package/{shared-utils → libs/shared-utils}/three/centerPoint.d.ts +0 -0
  176. package/libs/shared-utils/three/centerPoint.js +4 -0
  177. package/{shared-utils → libs/shared-utils}/three/getExtraModelLoader.d.ts +0 -0
  178. package/libs/shared-utils/three/getExtraModelLoader.js +18 -0
  179. package/{shared-utils → libs/shared-utils}/three/getNormal.d.ts +0 -0
  180. package/libs/shared-utils/three/getNormal.js +6 -0
  181. package/{shared-utils → libs/shared-utils}/three/getTextureLoader.d.ts +0 -0
  182. package/libs/shared-utils/three/getTextureLoader.js +17 -0
  183. package/{shared-utils → libs/shared-utils}/three/loadFbxObj.d.ts +0 -0
  184. package/libs/shared-utils/three/loadFbxObj.js +13 -0
  185. package/{shared-utils → libs/shared-utils}/three/loadTexture.d.ts +0 -0
  186. package/libs/shared-utils/three/loadTexture.js +10 -0
  187. package/{shared-utils → libs/shared-utils}/three/transformPositionToVector3.d.ts +0 -0
  188. package/libs/shared-utils/three/transformPositionToVector3.js +3 -0
  189. package/{shared-utils → libs/shared-utils}/three/transfromToMeshBasicMaterial.d.ts +0 -0
  190. package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +14 -0
  191. package/{shared-utils → libs/shared-utils}/throttle.d.ts +1 -1
  192. package/libs/shared-utils/throttle.js +18 -0
  193. package/{shared-utils → libs/shared-utils}/to.d.ts +0 -0
  194. package/libs/shared-utils/to.js +18 -0
  195. package/{shared-utils → libs/shared-utils}/useDebounce.d.ts +0 -0
  196. package/libs/shared-utils/useDebounce.js +22 -0
  197. package/{shared-utils → libs/shared-utils}/useThrottle.d.ts +0 -0
  198. package/libs/shared-utils/useThrottle.js +25 -0
  199. package/libs/{gltf-viewer → shared-utils}/uuid.d.ts +0 -0
  200. package/libs/shared-utils/uuid.js +11 -0
  201. package/{shared-utils → libs/shared-utils}/vectorTocoordinates.d.ts +0 -0
  202. package/libs/shared-utils/vectorTocoordinates.js +9 -0
  203. package/{typings → libs/typings}/math.type.d.ts +0 -0
  204. package/libs/typings/math.type.js +1 -0
  205. package/{typings → libs/typings}/utils.type.d.ts +0 -0
  206. package/libs/typings/utils.type.js +1 -0
  207. package/package.json +45 -17
  208. package/TERMS.txt +0 -56
  209. package/components/ARVideoFigure/ARVideoFigureMesh.d.ts +0 -44
  210. package/components/ARVideoFigure/ARVideoFigureMesh.js +0 -371
  211. package/components/ARVideoFigure/ARVideoFigureScene.d.ts +0 -11
  212. package/components/ARVideoFigure/ARVideoFigureScene.js +0 -85
  213. package/components/ARVideoFigure/ImgBgTransparent.d.ts +0 -16
  214. package/components/ARVideoFigure/ImgBgTransparent.js +0 -65
  215. package/components/ARVideoFigure/ImgBgTransparentMesh.d.ts +0 -30
  216. package/components/ARVideoFigure/ImgBgTransparentMesh.js +0 -183
  217. package/components/ARVideoFigure/fragmentShader.d.ts +0 -5
  218. package/components/ARVideoFigure/fragmentShader.js +0 -18
  219. package/components/ARVideoFigure/index.d.ts +0 -15
  220. package/components/ARVideoFigure/index.js +0 -80
  221. package/components/ARVideoFigure/vertexShader.d.ts +0 -1
  222. package/components/ARVideoFigure/vertexShader.js +0 -10
  223. package/components/GLTFView/index.d.ts +0 -110
  224. package/components/GLTFView/index.js +0 -187
  225. package/components/GlassFilters/index.d.ts +0 -32
  226. package/components/GlassFilters/index.js +0 -78
  227. package/components/ModelView/ModelViewController.d.ts +0 -18
  228. package/components/ModelView/ModelViewController.js +0 -158
  229. package/components/ModelView/index.d.ts +0 -10
  230. package/components/ModelView/index.js +0 -24
  231. package/components/PaintBrush/index.d.ts +0 -16
  232. package/components/PaintBrush/index.js +0 -47
  233. package/components/PanoTag/index.d.ts +0 -4
  234. package/components/PanoTag/index.js +0 -13
  235. package/custom.d.js +0 -3
  236. package/data/1aGKl9JmrlXMXx8d.d.ts +0 -104
  237. package/data/1aGKl9JmrlXMXx8d.js +0 -537
  238. package/data/54djM0oR6ky3Ey8e.d.ts +0 -55
  239. package/data/54djM0oR6ky3Ey8e.js +0 -350
  240. package/data/6gyq3v1verxD7JO1.d.ts +0 -104
  241. package/data/6gyq3v1verxD7JO1.js +0 -462
  242. package/data/8054djM0oR6ky3Ey8e.d.ts +0 -55
  243. package/data/8054djM0oR6ky3Ey8e.js +0 -350
  244. package/data/81zxMaeVKLQU93OZMG.d.ts +0 -49
  245. package/data/81zxMaeVKLQU93OZMG.js +0 -633
  246. package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.d.ts +0 -84
  247. package/data/KpokNd82rwjhackhQTBEoYKHg8zGbPXe.js +0 -600
  248. package/data/PrXel3aqGbp34JQn.d.ts +0 -389
  249. package/data/PrXel3aqGbp34JQn.js +0 -4787
  250. package/data/XJ6NMLWnkAY3Rdx8.d.ts +0 -843
  251. package/data/XJ6NMLWnkAY3Rdx8.js +0 -7989
  252. package/data/YdoNP9K4rwQDwjJr.d.ts +0 -83
  253. package/data/YdoNP9K4rwQDwjJr.js +0 -1453
  254. package/data/ZLvK29zj4L29Jowd.d.ts +0 -55
  255. package/data/ZLvK29zj4L29Jowd.js +0 -372
  256. package/data/_vLykj3NWrllMrG06.d.ts +0 -95
  257. package/data/_vLykj3NWrllMrG06.js +0 -1
  258. package/data/auto3d-njL5J99VwCmnjtQElOmXQr.d.ts +0 -86
  259. package/data/auto3d-njL5J99VwCmnjtQElOmXQr.js +0 -711
  260. package/data/extrude-walls/ZLvK29zj4L29Jowd.d.ts +0 -5
  261. package/data/extrude-walls/ZLvK29zj4L29Jowd.js +0 -14
  262. package/data/extrude-walls/lo024DEgzanMj5BE.d.ts +0 -5
  263. package/data/extrude-walls/lo024DEgzanMj5BE.js +0 -14
  264. package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.d.ts +0 -85
  265. package/data/jd6oMOzPxnQ3BvxY_B7yw51J9rXlhYhjhGTOgRVqu6WeEqjNX.js +0 -511
  266. package/data/lo024DEgzanMj5BE.d.ts +0 -55
  267. package/data/lo024DEgzanMj5BE.js +0 -966
  268. package/data/oPzy3ApbjjpD8YdR.d.ts +0 -83
  269. package/data/oPzy3ApbjjpD8YdR.js +0 -283
  270. package/data/qjAxMG4XbPn96wKG.d.ts +0 -104
  271. package/data/qjAxMG4XbPn96wKG.js +0 -637
  272. package/data/rXel3aPQRRBD4JQn.d.ts +0 -86
  273. package/data/rXel3aPQRRBD4JQn.js +0 -622
  274. package/data/vLykj3NWrllMrG06.d.ts +0 -91
  275. package/data/vLykj3NWrllMrG06.js +0 -2993
  276. package/data/wz0QV9KA4ugyo9ME.d.ts +0 -39
  277. package/data/wz0QV9KA4ugyo9ME.js +0 -136
  278. package/data/zxMawr9raSg8LYjG.d.ts +0 -53
  279. package/data/zxMawr9raSg8LYjG.js +0 -590
  280. package/examples/FiveStateController/index.js +0 -134
  281. package/examples/VRHouse/Mobile.js +0 -36
  282. package/examples/VRHouse/PC.js +0 -36
  283. package/examples/VRHouse/index.js +0 -36
  284. package/index.d.ts +0 -15
  285. package/index.js +0 -45
  286. package/libs/gltf-viewer/Subscribe.d.ts +0 -76
  287. package/libs/gltf-viewer/Subscribe.js +0 -233
  288. package/libs/gltf-viewer/coordsMoveByOffset.d.ts +0 -13
  289. package/libs/gltf-viewer/coordsMoveByOffset.js +0 -22
  290. package/libs/gltf-viewer/coordsToDirection.d.ts +0 -5
  291. package/libs/gltf-viewer/coordsToDirection.js +0 -41
  292. package/libs/gltf-viewer/formatRad.d.ts +0 -1
  293. package/libs/gltf-viewer/formatRad.js +0 -13
  294. package/libs/gltf-viewer/getFrameTime.d.ts +0 -1
  295. package/libs/gltf-viewer/getFrameTime.js +0 -28
  296. package/libs/gltf-viewer/index.d.ts +0 -78
  297. package/libs/gltf-viewer/index.js +0 -760
  298. package/libs/gltf-viewer/mouseWheel.d.ts +0 -2
  299. package/libs/gltf-viewer/mouseWheel.js +0 -59
  300. package/libs/gltf-viewer/requestAnimationFrame.d.ts +0 -1
  301. package/libs/gltf-viewer/requestAnimationFrame.js +0 -18
  302. package/libs/gltf-viewer/requestAnimationFrameInterval.d.ts +0 -1
  303. package/libs/gltf-viewer/requestAnimationFrameInterval.js +0 -31
  304. package/libs/gltf-viewer/uuid.js +0 -28
  305. package/plugins/AutoPreloadPlugin/index.d.ts +0 -23
  306. package/plugins/AutoPreloadPlugin/index.js +0 -111
  307. package/plugins/CSS3DRenderPlugin/components/Marker/index.d.ts +0 -12
  308. package/plugins/CSS3DRenderPlugin/components/Marker/index.js +0 -123
  309. package/plugins/CSS3DRenderPlugin/index.js +0 -303
  310. package/plugins/CSS3DRenderPlugin/utils/createResizeObserver.js +0 -34
  311. package/plugins/CameraMovementPlugin/index.js +0 -362
  312. package/plugins/CameraMovementPlugin/typing.js +0 -37
  313. package/plugins/ModelChassisCompassPlugin/index.js +0 -158
  314. package/plugins/ModelEntryDoorGuidePlugin/index.js +0 -252
  315. package/plugins/ModelExtrudeWallsPlugin/index.d.ts +0 -16
  316. package/plugins/ModelExtrudeWallsPlugin/index.js +0 -252
  317. package/plugins/ModelRoomLabelPlugin/Controller.js +0 -154
  318. package/plugins/ModelRoomLabelPlugin/RoomLabelItem.d.ts +0 -8
  319. package/plugins/ModelRoomLabelPlugin/RoomLabelItem.js +0 -66
  320. package/plugins/ModelRoomLabelPlugin/RoomLabelItems.d.ts +0 -7
  321. package/plugins/ModelRoomLabelPlugin/RoomLabelItems.js +0 -159
  322. package/plugins/ModelRoomLabelPlugin/index.js +0 -23
  323. package/plugins/ModelRoomLabelPlugin/typings.js +0 -7
  324. package/plugins/ModelRoomLabelPlugin/utils/parseData.js +0 -35
  325. package/plugins/ModelTVVideoPlugin/index.d.ts +0 -21
  326. package/plugins/ModelTVVideoPlugin/index.js +0 -399
  327. package/plugins/ModelViewPlugin/index.js +0 -223
  328. package/plugins/PanoCursorRaycasterPlugin/PanoCursorRaycasterPluginUsage.d.ts +0 -48
  329. package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.d.ts +0 -9
  330. package/plugins/PanoCursorRaycasterPlugin/components/MovePointTowardsCamera.js +0 -117
  331. package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.d.ts +0 -11
  332. package/plugins/PanoCursorRaycasterPlugin/components/PointAxesHelper.js +0 -39
  333. package/plugins/PanoCursorRaycasterPlugin/index.js +0 -128
  334. package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.d.ts +0 -5
  335. package/plugins/PanoCursorRaycasterPlugin/utils/addLineToFive.js +0 -27
  336. package/plugins/PanoCursorRaycasterPlugin/utils/createLine.d.ts +0 -3
  337. package/plugins/PanoCursorRaycasterPlugin/utils/createLine.js +0 -48
  338. package/plugins/PanoDoorLabelPlugin/index.d.ts +0 -4
  339. package/plugins/PanoDoorLabelPlugin/index.js +0 -14
  340. package/plugins/PanoIRobotPlugin/index.d.ts +0 -10
  341. package/plugins/PanoIRobotPlugin/index.js +0 -18
  342. package/plugins/PanoMaskSelectorPlugin/compare.d.ts +0 -1
  343. package/plugins/PanoMaskSelectorPlugin/compare.js +0 -17
  344. package/plugins/PanoMaskSelectorPlugin/createBox.d.ts +0 -7
  345. package/plugins/PanoMaskSelectorPlugin/createBox.js +0 -82
  346. package/plugins/PanoMaskSelectorPlugin/createTextures.d.ts +0 -3
  347. package/plugins/PanoMaskSelectorPlugin/createTextures.js +0 -45
  348. package/plugins/PanoMaskSelectorPlugin/fragmentShader.d.ts +0 -1
  349. package/plugins/PanoMaskSelectorPlugin/fragmentShader.js +0 -10
  350. package/plugins/PanoMaskSelectorPlugin/index.d.ts +0 -49
  351. package/plugins/PanoMaskSelectorPlugin/index.js +0 -350
  352. package/plugins/PanoMaskSelectorPlugin/vertexShader.d.ts +0 -1
  353. package/plugins/PanoMaskSelectorPlugin/vertexShader.js +0 -10
  354. package/plugins/PanoMeasurePlugin/Controller/BaseController.d.ts +0 -36
  355. package/plugins/PanoMeasurePlugin/Controller/BaseController.js +0 -105
  356. package/plugins/PanoMeasurePlugin/Controller/EditController.d.ts +0 -52
  357. package/plugins/PanoMeasurePlugin/Controller/EditController.js +0 -343
  358. package/plugins/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +0 -12
  359. package/plugins/PanoMeasurePlugin/Controller/ShortcutKeyController.js +0 -69
  360. package/plugins/PanoMeasurePlugin/Controller/WatchController.d.ts +0 -25
  361. package/plugins/PanoMeasurePlugin/Controller/WatchController.js +0 -373
  362. package/plugins/PanoMeasurePlugin/Controller/index.d.ts +0 -61
  363. package/plugins/PanoMeasurePlugin/Controller/index.js +0 -230
  364. package/plugins/PanoMeasurePlugin/Model/index.d.ts +0 -38
  365. package/plugins/PanoMeasurePlugin/Model/index.js +0 -237
  366. package/plugins/PanoMeasurePlugin/Model/line.d.ts +0 -30
  367. package/plugins/PanoMeasurePlugin/Model/line.js +0 -123
  368. package/plugins/PanoMeasurePlugin/Model/point.d.ts +0 -16
  369. package/plugins/PanoMeasurePlugin/Model/point.js +0 -72
  370. package/plugins/PanoMeasurePlugin/Model/polyline.d.ts +0 -16
  371. package/plugins/PanoMeasurePlugin/Model/polyline.js +0 -111
  372. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +0 -2
  373. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +0 -11
  374. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +0 -2
  375. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +0 -11
  376. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +0 -2
  377. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +0 -11
  378. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +0 -22
  379. package/plugins/PanoMeasurePlugin/Modules/DeleteDom/index.js +0 -184
  380. package/plugins/PanoMeasurePlugin/Modules/FiveHelper.d.ts +0 -11
  381. package/plugins/PanoMeasurePlugin/Modules/FiveHelper.js +0 -68
  382. package/plugins/PanoMeasurePlugin/Modules/GuideController.d.ts +0 -18
  383. package/plugins/PanoMeasurePlugin/Modules/GuideController.js +0 -107
  384. package/plugins/PanoMeasurePlugin/Modules/Magnifier.d.ts +0 -24
  385. package/plugins/PanoMeasurePlugin/Modules/Magnifier.js +0 -139
  386. package/plugins/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +0 -6
  387. package/plugins/PanoMeasurePlugin/Modules/UIController/HTML.js +0 -26
  388. package/plugins/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +0 -18
  389. package/plugins/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +0 -169
  390. package/plugins/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +0 -12
  391. package/plugins/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +0 -59
  392. package/plugins/PanoMeasurePlugin/Modules/UIController/index.d.ts +0 -16
  393. package/plugins/PanoMeasurePlugin/Modules/UIController/index.js +0 -125
  394. package/plugins/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -17
  395. package/plugins/PanoMeasurePlugin/Modules/UIController/style.js +0 -103
  396. package/plugins/PanoMeasurePlugin/index.d.ts +0 -7
  397. package/plugins/PanoMeasurePlugin/index.js +0 -20
  398. package/plugins/PanoMeasurePlugin/typings/data.d.ts +0 -28
  399. package/plugins/PanoMeasurePlugin/typings/data.js +0 -7
  400. package/plugins/PanoMeasurePlugin/typings/event.type.d.ts +0 -28
  401. package/plugins/PanoMeasurePlugin/typings/event.type.js +0 -7
  402. package/plugins/PanoMeasurePlugin/typings/utils.type.d.ts +0 -1
  403. package/plugins/PanoMeasurePlugin/typings/utils.type.js +0 -7
  404. package/plugins/PanoMeasurePlugin/utils/clearGroup.d.ts +0 -2
  405. package/plugins/PanoMeasurePlugin/utils/clearGroup.js +0 -16
  406. package/plugins/PanoMeasurePlugin/utils/constants.d.ts +0 -4
  407. package/plugins/PanoMeasurePlugin/utils/constants.js +0 -47
  408. package/plugins/PanoMeasurePlugin/utils/distanceDom.d.ts +0 -28
  409. package/plugins/PanoMeasurePlugin/utils/distanceDom.js +0 -147
  410. package/plugins/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +0 -2
  411. package/plugins/PanoMeasurePlugin/utils/findAssociatedLines.js +0 -39
  412. package/plugins/PanoMeasurePlugin/utils/findClosestPoint.d.ts +0 -10
  413. package/plugins/PanoMeasurePlugin/utils/findClosestPoint.js +0 -49
  414. package/plugins/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +0 -4
  415. package/plugins/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +0 -20
  416. package/plugins/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +0 -10
  417. package/plugins/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +0 -33
  418. package/plugins/PanoMeasurePlugin/utils/ironbox.d.ts +0 -1
  419. package/plugins/PanoMeasurePlugin/utils/ironbox.js +0 -14
  420. package/plugins/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +0 -2
  421. package/plugins/PanoMeasurePlugin/utils/isNDCPointInScreen.js +0 -16
  422. package/plugins/PanoMeasurePlugin/utils/line.d.ts +0 -17
  423. package/plugins/PanoMeasurePlugin/utils/line.js +0 -61
  424. package/plugins/PanoMeasurePlugin/utils/math.d.ts +0 -17
  425. package/plugins/PanoMeasurePlugin/utils/math.js +0 -57
  426. package/plugins/PanoMeasurePlugin/utils/mouseGroup.d.ts +0 -2
  427. package/plugins/PanoMeasurePlugin/utils/mouseGroup.js +0 -42
  428. package/plugins/PanoMeasurePlugin/utils/ndc2Screen.d.ts +0 -5
  429. package/plugins/PanoMeasurePlugin/utils/ndc2Screen.js +0 -16
  430. package/plugins/PanoRulerPlugin/data/roomInfo.d.ts +0 -3
  431. package/plugins/PanoRulerPlugin/data/roomInfo.js +0 -51
  432. package/plugins/PanoRulerPlugin/data/roomRules.d.ts +0 -3
  433. package/plugins/PanoRulerPlugin/data/roomRules.js +0 -235
  434. package/plugins/PanoRulerPlugin/index.d.ts +0 -31
  435. package/plugins/PanoRulerPlugin/index.js +0 -642
  436. package/plugins/PanoRulerPlugin/typings.d.ts +0 -21
  437. package/plugins/PanoRulerPlugin/typings.js +0 -7
  438. package/plugins/PanoTVVideoPlugin/index.d.ts +0 -26
  439. package/plugins/PanoTVVideoPlugin/index.js +0 -433
  440. package/plugins/TreasurePlugin/Controller.d.ts +0 -73
  441. package/plugins/TreasurePlugin/Controller.js +0 -250
  442. package/plugins/TreasurePlugin/TreasureFaceAnime.d.ts +0 -25
  443. package/plugins/TreasurePlugin/TreasureFaceAnime.js +0 -143
  444. package/plugins/TreasurePlugin/TreasureObject.d.ts +0 -53
  445. package/plugins/TreasurePlugin/TreasureObject.js +0 -406
  446. package/plugins/TreasurePlugin/TreasureOpenAnime.d.ts +0 -25
  447. package/plugins/TreasurePlugin/TreasureOpenAnime.js +0 -127
  448. package/plugins/TreasurePlugin/constants.d.ts +0 -33
  449. package/plugins/TreasurePlugin/constants.js +0 -67
  450. package/plugins/TreasurePlugin/index.d.ts +0 -11
  451. package/plugins/TreasurePlugin/index.js +0 -26
  452. package/plugins/TreasurePlugin/typings.d.ts +0 -2
  453. package/plugins/TreasurePlugin/typings.js +0 -7
  454. package/plugins/floorplan/Assets/floorplanExtraObject.js +0 -10
  455. package/plugins/floorplan/ModelFloorplanPlugin/Controller.js +0 -637
  456. package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.d.ts +0 -13
  457. package/plugins/floorplan/ModelFloorplanPlugin/components/Camera.js +0 -78
  458. package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.d.ts +0 -5
  459. package/plugins/floorplan/ModelFloorplanPlugin/components/Compass.js +0 -84
  460. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.d.ts +0 -10
  461. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomHighlight.js +0 -129
  462. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.d.ts +0 -13
  463. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomLabels.js +0 -118
  464. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomMaterial.d.ts +0 -11
  465. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RoomMaterial.js +0 -174
  466. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RuleLabels.d.ts +0 -8
  467. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/RuleLabels.js +0 -182
  468. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.d.ts +0 -15
  469. package/plugins/floorplan/ModelFloorplanPlugin/components/NowFloor/index.js +0 -74
  470. package/plugins/floorplan/ModelFloorplanPlugin/components/index.d.ts +0 -23
  471. package/plugins/floorplan/ModelFloorplanPlugin/components/index.js +0 -88
  472. package/plugins/floorplan/ModelFloorplanPlugin/controller.style.d.ts +0 -1
  473. package/plugins/floorplan/ModelFloorplanPlugin/controller.style.js +0 -16
  474. package/plugins/floorplan/ModelFloorplanPlugin/index.js +0 -20
  475. package/plugins/floorplan/ModelFloorplanPlugin/typings/events.type.js +0 -7
  476. package/plugins/floorplan/ModelFloorplanPlugin/typings/utility.js +0 -7
  477. package/plugins/floorplan/ModelFloorplanPlugin/utils/constant.js +0 -33
  478. package/plugins/floorplan/ModelFloorplanPlugin/utils/correctFiveState.js +0 -154
  479. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.d.ts +0 -13
  480. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.js +0 -114
  481. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.d.ts +0 -3
  482. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/Camera.style.js +0 -39
  483. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.d.ts +0 -5
  484. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/ExtraObjects.js +0 -66
  485. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.d.ts +0 -9
  486. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/RoomHighlight.js +0 -126
  487. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.d.ts +0 -11
  488. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/NowFloor/index.js +0 -58
  489. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.d.ts +0 -17
  490. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.js +0 -85
  491. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.d.ts +0 -2
  492. package/plugins/floorplan/PanoFloorplanRadarPlugin/Content/index.style.js +0 -15
  493. package/plugins/floorplan/PanoFloorplanRadarPlugin/Controller.js +0 -211
  494. package/plugins/floorplan/PanoFloorplanRadarPlugin/index.js +0 -20
  495. package/plugins/floorplan/TopviewFloorplanPlugin/Controller.js +0 -272
  496. package/plugins/floorplan/TopviewFloorplanPlugin/index.js +0 -18
  497. package/plugins/floorplan/TopviewFloorplanPlugin/style.js +0 -16
  498. package/plugins/floorplan/components/FloorplanImage.d.ts +0 -7
  499. package/plugins/floorplan/components/FloorplanImage.js +0 -90
  500. package/plugins/floorplan/index.d.ts +0 -4
  501. package/plugins/floorplan/index.js +0 -13
  502. package/plugins/floorplan/typings/floorplanData.js +0 -7
  503. package/plugins/floorplan/typings/floorplanServerData.js +0 -382
  504. package/plugins/floorplan/utils/formatData.js +0 -218
  505. package/plugins/floorplan/utils/formatPosition.js +0 -91
  506. package/shared-utils/Preloader.js +0 -57
  507. package/shared-utils/Subscribe.js +0 -232
  508. package/shared-utils/animationFrame/BetterTween.js +0 -107
  509. package/shared-utils/animationFrame/calculateProgress.js +0 -40
  510. package/shared-utils/animationFrame/formatRad.js +0 -36
  511. package/shared-utils/animationFrame/index.js +0 -81
  512. package/shared-utils/animationFrame/tween.js +0 -92
  513. package/shared-utils/changeModelCanvasOpacity.js +0 -38
  514. package/shared-utils/createCanvasTextTexture.js +0 -31
  515. package/shared-utils/createFiveContainer.d.ts +0 -10
  516. package/shared-utils/createFiveContainer.js +0 -171
  517. package/shared-utils/createLine/index.js +0 -43
  518. package/shared-utils/debounce.js +0 -30
  519. package/shared-utils/equal.js +0 -107
  520. package/shared-utils/filter.js +0 -129
  521. package/shared-utils/five/changeMode.js +0 -82
  522. package/shared-utils/five/useFivePlugin.js +0 -17
  523. package/shared-utils/formatRad.js +0 -18
  524. package/shared-utils/getPxmm.js +0 -51
  525. package/shared-utils/getRandomColor.js +0 -23
  526. package/shared-utils/isNil.js +0 -26
  527. package/shared-utils/isTruelyObject.js +0 -31
  528. package/shared-utils/math/evenNumber.js +0 -15
  529. package/shared-utils/math/planimetry.js +0 -354
  530. package/shared-utils/math/rad2Deg.js +0 -12
  531. package/shared-utils/nearlyEqual.js +0 -19
  532. package/shared-utils/nextFrame.js +0 -15
  533. package/shared-utils/noop.js +0 -19
  534. package/shared-utils/object3d2LocalMatrix.js +0 -79
  535. package/shared-utils/px2rem.js +0 -22
  536. package/shared-utils/removeArrayItem.js +0 -22
  537. package/shared-utils/three/centerPoint.js +0 -14
  538. package/shared-utils/three/getExtraModelLoader.js +0 -45
  539. package/shared-utils/three/getNormal.js +0 -17
  540. package/shared-utils/three/getTextureLoader.js +0 -50
  541. package/shared-utils/three/loadFbxObj.js +0 -54
  542. package/shared-utils/three/loadTexture.js +0 -65
  543. package/shared-utils/three/transformPositionToVector3.js +0 -20
  544. package/shared-utils/three/transfromToMeshBasicMaterial.js +0 -33
  545. package/shared-utils/throttle.js +0 -29
  546. package/shared-utils/to.js +0 -67
  547. package/shared-utils/useDebounce.js +0 -49
  548. package/shared-utils/useThrottle.js +0 -47
  549. package/shared-utils/uuid.d.ts +0 -4
  550. package/shared-utils/uuid.js +0 -28
  551. package/shared-utils/vectorTocoordinates.js +0 -18
  552. package/typedoc/components.d.ts +0 -6
  553. package/typedoc/components.js +0 -7
  554. package/typedoc/libs.d.ts +0 -1
  555. package/typedoc/libs.js +0 -7
  556. package/typedoc/plugins.d.ts +0 -19
  557. package/typedoc/plugins.js +0 -165
  558. package/typedoc/shared-utils.d.ts +0 -3
  559. package/typedoc/shared-utils.js +0 -7
  560. package/typedoc/typings.d.ts +0 -3
  561. package/typedoc/typings.js +0 -7
  562. package/typings/math.type.js +0 -7
  563. package/typings/utils.type.js +0 -7
@@ -1,760 +0,0 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.reflect.construct.js");
4
-
5
- require("core-js/modules/es.array.iterator.js");
6
-
7
- require("core-js/modules/es.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.GLTFViewer = void 0;
25
-
26
- require("core-js/modules/es.object.assign.js");
27
-
28
- require("core-js/modules/es.function.bind.js");
29
-
30
- require("core-js/modules/web.timers.js");
31
-
32
- require("core-js/modules/es.object.to-string.js");
33
-
34
- require("core-js/modules/es.promise.js");
35
-
36
- require("core-js/modules/es.date.to-string.js");
37
-
38
- require("core-js/modules/es.regexp.to-string.js");
39
-
40
- require("core-js/modules/es.number.constructor.js");
41
-
42
- require("core-js/modules/es.array.concat.js");
43
-
44
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
45
-
46
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
47
-
48
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
49
-
50
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
51
-
52
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
53
-
54
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
55
-
56
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
57
-
58
- var THREE = _interopRequireWildcard(require("three"));
59
-
60
- var _hammerjs = _interopRequireDefault(require("hammerjs"));
61
-
62
- var _GLTFLoader = require("three/examples/jsm/loaders/GLTFLoader");
63
-
64
- var _RGBELoader = require("three/examples/jsm/loaders/RGBELoader");
65
-
66
- var _coordsMoveByOffset = require("./coordsMoveByOffset");
67
-
68
- var _getFrameTime = require("./getFrameTime");
69
-
70
- var _coordsToDirection = require("./coordsToDirection");
71
-
72
- var _mouseWheel = require("./mouseWheel");
73
-
74
- var _requestAnimationFrameInterval = require("./requestAnimationFrameInterval");
75
-
76
- var _uuid = _interopRequireDefault(require("./uuid"));
77
-
78
- var _Subscribe2 = require("./Subscribe");
79
-
80
- 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); }
81
-
82
- 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; }
83
-
84
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
85
-
86
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
87
-
88
- var defaultPos = {
89
- longitude: 0,
90
- latitude: 0,
91
- fov: 0
92
- };
93
- var ERROR_NO_CONTROLLER = 'GLTFViewer 实例丢失';
94
- var loader = new _GLTFLoader.GLTFLoader();
95
-
96
- var Controller = /*#__PURE__*/function () {
97
- function Controller(config, callbacks) {
98
- var _this = this;
99
-
100
- (0, _classCallCheck2["default"])(this, Controller);
101
- (0, _defineProperty2["default"])(this, "fov", 0);
102
- (0, _defineProperty2["default"])(this, "longitude", 0);
103
- (0, _defineProperty2["default"])(this, "latitude", 0);
104
- (0, _defineProperty2["default"])(this, "needsRender", false);
105
- this.config = Object.assign({
106
- maxFov: 120,
107
- minFov: 1
108
- }, config); // 异步事件回调
109
-
110
- this.callbacks = callbacks; // 默认状态参数
111
-
112
- var initial = config.initial || {};
113
-
114
- if (initial.fov !== undefined) {
115
- this.fov = initial.fov;
116
- }
117
-
118
- if (initial.latitude !== undefined) {
119
- this.latitude = initial.latitude;
120
- }
121
-
122
- if (initial.longitude !== undefined) {
123
- this.longitude = initial.longitude;
124
- } // 场景
125
-
126
-
127
- this.scene = new THREE.Scene(); // 背景色值
128
-
129
- if (config.backgroundColor) {
130
- this.scene.background = config.backgroundColor;
131
- } // 渲染器
132
-
133
-
134
- this.renderer = new THREE.WebGLRenderer({
135
- antialias: config.antialias,
136
- alpha: true
137
- });
138
- this.renderer.outputEncoding = THREE.sRGBEncoding;
139
-
140
- if (config.toneMapping) {
141
- var _config$toneMapping = config.toneMapping,
142
- toneMapping = _config$toneMapping.toneMapping,
143
- toneMappingExposure = _config$toneMapping.toneMappingExposure;
144
- if (toneMapping) this.renderer.toneMapping = toneMapping;
145
- if (toneMappingExposure !== undefined) this.renderer.toneMappingExposure = toneMappingExposure;
146
- }
147
-
148
- if (config.backgroundColor) {
149
- this.renderer.setClearColor(config.backgroundColor, 0);
150
- } // 像素比
151
-
152
-
153
- if (config.pixelRatio) {
154
- this.renderer.setPixelRatio(config.pixelRatio);
155
- } // 相机
156
-
157
-
158
- this.camera = new THREE.PerspectiveCamera(this.fov, 1, 0.1, 1500); // 光照
159
-
160
- if (config.pointLight !== false) {
161
- this.pointLight = config.pointLight || new THREE.PointLight(0xfffffff, 1, 1500);
162
- this.scene.add(this.pointLight);
163
- }
164
-
165
- if (config.directionalLight !== false) {
166
- this.directionLight = config.directionalLight || new THREE.DirectionalLight(0xfffffff, 0.1);
167
- this.directionLight.position.setY(-1);
168
- this.scene.add(this.directionLight);
169
- }
170
-
171
- if (config.ambientLight !== false) {
172
- this.ambientLight = config.ambientLight || new THREE.AmbientLight(0xfffffff);
173
- this.scene.add(this.ambientLight);
174
- } // 背景 HDR
175
-
176
-
177
- if (config.backgroundHDR) {
178
- var pmremGenerator = new THREE.PMREMGenerator(this.renderer);
179
- var rgbLoader = new _RGBELoader.RGBELoader();
180
- rgbLoader.setDataType(THREE.UnsignedByteType);
181
- rgbLoader.load(config.backgroundHDR, function (hdrEquirect) {
182
- var hdrCubeRenderTarget = pmremGenerator.fromEquirectangular(hdrEquirect);
183
- _this.scene.environment = hdrCubeRenderTarget.texture;
184
-
185
- if (config.backgroundColor) {
186
- _this.scene.background = hdrCubeRenderTarget.texture;
187
- }
188
-
189
- hdrEquirect.dispose();
190
- pmremGenerator.dispose();
191
- _this.needsRender = true;
192
- });
193
- pmremGenerator.compileEquirectangularShader();
194
- }
195
-
196
- this.__interiaMovement = false;
197
- var hammerManager = new _hammerjs["default"].Manager(this.element);
198
- hammerManager.add(new _hammerjs["default"].Pan({
199
- threshold: 0,
200
- pointers: 0
201
- }));
202
- hammerManager.add(new _hammerjs["default"].Pinch({
203
- threshold: 0,
204
- pointers: 2
205
- }).recognizeWith(hammerManager.get('pan')));
206
- hammerManager.on('panstart pan', this.__onPanGesture.bind(this));
207
- hammerManager.on('pinchstart pinch pinchend', this.__onPinchGesture.bind(this));
208
-
209
- var __onMouseWheel = this.__onMouseWheel.bind(this);
210
-
211
- (0, _mouseWheel.addMouseWheel)(this.element, __onMouseWheel);
212
-
213
- this.dispose = function () {
214
- hammerManager.destroy();
215
- (0, _mouseWheel.removeMouseWheel)(_this.element, __onMouseWheel);
216
-
217
- _this.clear();
218
-
219
- _this.renderer.dispose();
220
- };
221
-
222
- this.needsRender = true;
223
- this.play();
224
- }
225
-
226
- (0, _createClass2["default"])(Controller, [{
227
- key: "minFov",
228
- get: function get() {
229
- return this.config.minFov || 1;
230
- }
231
- }, {
232
- key: "maxFov",
233
- get: function get() {
234
- return this.config.maxFov || 120;
235
- }
236
- }, {
237
- key: "pause",
238
- value: function pause() {// nothing todo
239
- }
240
- }, {
241
- key: "clear",
242
- value: function clear() {
243
- if (this.target) {
244
- this.scene.remove(this.target.scene);
245
- this.update(defaultPos);
246
- this.target = undefined;
247
- }
248
- }
249
- }, {
250
- key: "play",
251
- value: function play() {
252
- var _this2 = this;
253
-
254
- this.pause();
255
-
256
- var _render = function _render() {
257
- if (_this2.needsRender !== false) _this2.render();
258
- _this2.needsRender = false;
259
- };
260
-
261
- this.pause = (0, _requestAnimationFrameInterval.requestAnimationFrameInterval)(_render);
262
-
263
- _render();
264
- }
265
- }, {
266
- key: "setTarget",
267
- value: function setTarget(object) {
268
- var _this3 = this;
269
-
270
- if (this.target) {
271
- this.scene.remove(this.target.scene);
272
- }
273
-
274
- this.target = object;
275
- this.target.scene.visible = false;
276
- this.scene.add(this.target.scene);
277
- setTimeout(function () {
278
- if (object === _this3.target) {
279
- _this3.target.scene.visible = true;
280
-
281
- _this3.update({});
282
-
283
- _this3.callbacks.loaded(object);
284
- }
285
- }, 50);
286
- }
287
- }, {
288
- key: "element",
289
- get: function get() {
290
- return this.renderer.domElement;
291
- }
292
- }, {
293
- key: "appendTo",
294
- value: function appendTo(container, size) {
295
- container.appendChild(this.element);
296
- this.refresh(size);
297
- var positionType = window.getComputedStyle(container).position;
298
-
299
- if (positionType !== 'relative' && positionType !== 'absolute' && positionType !== 'fixed' && positionType !== 'sticky') {
300
- container.style.position = 'relative';
301
- }
302
- }
303
- }, {
304
- key: "refresh",
305
- value: function refresh() {
306
- var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
307
- var element = this.element;
308
- var container = element.parentElement;
309
- if (!container) return;
310
-
311
- if (container && container.tagName && container.nodeName) {
312
- var _size$width = size.width,
313
- width = _size$width === void 0 ? container.offsetWidth : _size$width,
314
- _size$height = size.height,
315
- height = _size$height === void 0 ? container.offsetHeight : _size$height;
316
- this.renderer.setSize(width, height); // 修改摄像机 aspect 比值
317
-
318
- this.camera.aspect = width / height;
319
- this.camera.updateProjectionMatrix();
320
- }
321
-
322
- this.needsRender = true;
323
- }
324
- }, {
325
- key: "update",
326
- value: function update(state) {
327
- var fov = this.fov;
328
- var longitude = this.longitude;
329
- var latitude = this.latitude;
330
-
331
- if (state.fov !== undefined) {
332
- fov = state.fov;
333
- }
334
-
335
- if (state.longitude !== undefined) {
336
- longitude = state.longitude;
337
- }
338
-
339
- if (state.latitude !== undefined) {
340
- latitude = state.latitude;
341
- }
342
-
343
- if (!this.target || !this.target.scene) return;
344
- var boxHelper = new THREE.BoxHelper(this.target.scene, 0x2bb8aa);
345
-
346
- var _ref = boxHelper.geometry.boundingSphere || {},
347
- center = _ref.center,
348
- radius = _ref.radius;
349
-
350
- if (!center || !radius) return;
351
- var box = new THREE.Box3();
352
- box.expandByObject(this.target.scene);
353
- box.getCenter(center); // 距离
354
-
355
- var distance = radius / Math.sin(Math.PI / 4) * 3;
356
- {// debug
357
- // const geometry = new THREE.SphereGeometry(radius, 32, 16)
358
- // const material = new THREE.MeshBasicMaterial({ color: 0x0000aa, wireframe: true })
359
- // const sphere = new THREE.Mesh(geometry, material)
360
- // sphere.position.copy(center.clone())
361
- // this.scene.add(sphere)
362
- } // 朝向
363
-
364
- var direction = (0, _coordsToDirection.coordsToDirection)({
365
- longitude: longitude,
366
- latitude: latitude
367
- });
368
- direction.setLength(distance);
369
- this.camera.position.copy(center.clone().add(direction));
370
- this.camera.lookAt(center);
371
-
372
- if (this.pointLight) {
373
- var lightDirection = (0, _coordsToDirection.coordsToDirection)({
374
- longitude: longitude,
375
- latitude: -Math.PI / 6
376
- });
377
- lightDirection.setLength(distance * 3);
378
- this.pointLight.position.copy(center.clone().add(lightDirection));
379
- }
380
-
381
- var calcFov = function calcFov(distance, width, r) {
382
- var vertical = r < 1 ? width / r : width;
383
- var fov = Math.atan(vertical / distance / 2) * 2 * (180 / Math.PI);
384
- return fov;
385
- };
386
-
387
- var d = this.camera.position.distanceTo(center);
388
-
389
- if (fov === 0) {
390
- fov = calcFov(d, radius * 2, this.renderer.domElement.offsetWidth / this.renderer.domElement.offsetHeight);
391
- }
392
-
393
- fov = Math.max(this.minFov, Math.min(this.maxFov, fov));
394
-
395
- if (fov !== this.fov) {
396
- this.camera.fov = fov;
397
- this.camera.updateProjectionMatrix();
398
- }
399
-
400
- var needsRender = this.fov !== fov || this.longitude !== longitude || this.latitude !== latitude;
401
- Object.assign(this, {
402
- longitude: longitude,
403
- latitude: latitude,
404
- fov: fov
405
- });
406
- this.needsRender = true;
407
-
408
- if (needsRender) {
409
- this.callbacks.stateChange({
410
- longitude: longitude,
411
- latitude: latitude,
412
- fov: fov
413
- });
414
- }
415
- }
416
- }, {
417
- key: "__onPanGesture",
418
- value: function __onPanGesture(event) {
419
- var _this4 = this;
420
-
421
- this.__interiaMovement = false;
422
- var longitude = this.longitude,
423
- latitude = this.latitude;
424
- var center = event.center,
425
- isFinal = event.isFinal,
426
- velocityX = event.velocityX,
427
- velocityY = event.velocityY,
428
- pointers = event.pointers;
429
-
430
- var offset = function () {
431
- if (!(_this4.__lastPanPoint && _this4.__lastPanPoint.pointerLength === pointers.length)) {
432
- return {
433
- x: 0,
434
- y: 0
435
- };
436
- }
437
-
438
- return {
439
- x: center.x - _this4.__lastPanPoint.x,
440
- y: center.y - _this4.__lastPanPoint.y
441
- };
442
- }();
443
-
444
- if (!isFinal) {
445
- var layout = {
446
- width: this.element.offsetWidth,
447
- height: this.element.offsetHeight
448
- };
449
- this.update((0, _coordsMoveByOffset.coordsMoveByOffset)({
450
- longitude: longitude,
451
- latitude: latitude
452
- }, offset, layout));
453
- this.__lastPanPoint = {
454
- pointerLength: pointers.length,
455
- x: center.x,
456
- y: center.y
457
- };
458
- } else {
459
- delete this.__lastPanPoint;
460
- (0, _getFrameTime.getFrameTime)(function (frameTime) {
461
- _this4.__interiaMovement = true;
462
- var x = velocityX * frameTime;
463
- var y = velocityY * frameTime;
464
- var distance = Math.sqrt(x * x + y * y);
465
-
466
- if (distance > 100) {
467
- x = x / distance * 100;
468
- y = y / distance * 100;
469
- } // 滑动小于上下15度, 忽略 y 值
470
-
471
-
472
- if (Math.abs(y / x) < Math.tan(20 / 180 * Math.PI)) y = 0;
473
-
474
- _this4.__requestInteriaMovement({
475
- x: x,
476
- y: y
477
- });
478
- });
479
- }
480
- }
481
- }, {
482
- key: "__onPinchGesture",
483
- value: function __onPinchGesture(event) {
484
- this.__interiaMovement = false;
485
- var scale = event.scale,
486
- type = event.type;
487
-
488
- if (type === 'pinchstart') {
489
- this.__pinchCurrentFov = this.fov;
490
- return;
491
- }
492
-
493
- if (type === 'pinchend') {
494
- this.__pinchCurrentFov = undefined;
495
- return;
496
- }
497
-
498
- var fov = this.__pinchCurrentFov ? this.__pinchCurrentFov / scale : 1;
499
- this.update({
500
- fov: fov
501
- });
502
- }
503
- }, {
504
- key: "__requestInteriaMovement",
505
- value: function __requestInteriaMovement(offset) {
506
- var _this5 = this;
507
-
508
- if (this.__interiaMovement === false) return;
509
- var x = offset.x,
510
- y = offset.y;
511
- var longitude = this.longitude,
512
- latitude = this.latitude;
513
- var friction = 0.9;
514
- var layout = {
515
- width: this.element.offsetWidth,
516
- height: this.element.offsetHeight
517
- };
518
- this.update((0, _coordsMoveByOffset.coordsMoveByOffset)({
519
- longitude: longitude,
520
- latitude: latitude
521
- }, {
522
- x: x,
523
- y: y
524
- }, layout));
525
- var notFinal = Math.abs(x) > 1 || Math.abs(y) > 1;
526
-
527
- if (notFinal) {
528
- requestAnimationFrame(function () {
529
- return _this5.__requestInteriaMovement({
530
- x: x * friction,
531
- y: y * friction * 0.7
532
- });
533
- });
534
- } else {
535
- this.__interiaMovement = false;
536
- }
537
- }
538
- }, {
539
- key: "__onMouseWheel",
540
- value: function __onMouseWheel(event) {
541
- this.__interiaMovement = false;
542
- var fov = this.fov - event.delta;
543
- this.update({
544
- fov: fov <= 1 ? 1 : fov
545
- });
546
- }
547
- }, {
548
- key: "load",
549
- value: function load(url) {
550
- var _this6 = this;
551
-
552
- return new Promise(function (resolve, reject) {
553
- _this6.callbacks.willLoad();
554
-
555
- loader.load(url, function (gltf) {
556
- _this6.setTarget(gltf);
557
-
558
- resolve(true);
559
- }, function (xhr) {
560
- _this6.callbacks.progressing(xhr.loaded / xhr.total * 100);
561
- }, function (error) {
562
- _this6.callbacks.loadError(error);
563
-
564
- reject(error);
565
- });
566
- });
567
- }
568
- }, {
569
- key: "render",
570
- value: function render() {
571
- this.renderer.render(this.scene, this.camera);
572
- }
573
- }]);
574
- return Controller;
575
- }();
576
-
577
- var caches = {};
578
-
579
- var GLTFViewer = /*#__PURE__*/function (_Subscribe) {
580
- (0, _inherits2["default"])(GLTFViewer, _Subscribe);
581
-
582
- var _super = _createSuper(GLTFViewer);
583
-
584
- function GLTFViewer(config) {
585
- var _this7;
586
-
587
- (0, _classCallCheck2["default"])(this, GLTFViewer);
588
- _this7 = _super.call(this);
589
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this7), "uuid", (0, _uuid["default"])());
590
- var controller = new Controller(config, {
591
- stateChange: function stateChange(state) {
592
- return _this7.emit('stateChange', state);
593
- },
594
- progressing: function (_progressing) {
595
- function progressing(_x) {
596
- return _progressing.apply(this, arguments);
597
- }
598
-
599
- progressing.toString = function () {
600
- return _progressing.toString();
601
- };
602
-
603
- return progressing;
604
- }(function (progressing) {
605
- return _this7.emit('progressing', progressing);
606
- }),
607
- willLoad: function willLoad() {
608
- return _this7.emit('willLoad');
609
- },
610
- loaded: function loaded(gltf) {
611
- return _this7.emit('loaded', gltf);
612
- },
613
- loadError: function loadError(error) {
614
- return _this7.emit('loadError', error);
615
- }
616
- });
617
- Object.assign(window, {
618
- $controller: controller
619
- });
620
- caches[_this7.uuid] = controller;
621
- return _this7;
622
- }
623
-
624
- (0, _createClass2["default"])(GLTFViewer, [{
625
- key: "state",
626
- get: function get() {
627
- var controller = caches[this.uuid];
628
- if (!controller) throw new Error(ERROR_NO_CONTROLLER);
629
- var proxy = new Proxy({
630
- fov: controller.fov,
631
- latitude: controller.latitude,
632
- longitude: controller.longitude
633
- }, {
634
- set: function set(obj, prop, value) {
635
- if (prop === 'fov') {
636
- if (Number(value) === NaN) {
637
- throw new TypeError('The fov is not an number');
638
- }
639
-
640
- if (value > controller.maxFov || value < controller.minFov) {
641
- throw new RangeError("The fov seems invalid~ fov: [".concat(controller.minFov, ", ").concat(controller.maxFov, "]"));
642
- }
643
- }
644
-
645
- controller.update((0, _defineProperty2["default"])({}, prop, value));
646
- return true;
647
- },
648
- get: function get(obj, prop) {
649
- return controller[prop];
650
- }
651
- });
652
- return proxy;
653
- },
654
- set: function set(_ref2) {
655
- var fov = _ref2.fov,
656
- latitude = _ref2.latitude,
657
- longitude = _ref2.longitude;
658
- var controller = caches[this.uuid];
659
- if (!controller) throw new Error(ERROR_NO_CONTROLLER);
660
- controller.update({
661
- fov: fov === undefined ? controller.fov : fov,
662
- latitude: latitude === undefined ? controller.latitude : latitude,
663
- longitude: longitude === undefined ? controller.longitude : longitude
664
- });
665
- }
666
- }, {
667
- key: "minFov",
668
- get: function get() {
669
- var controller = caches[this.uuid];
670
- if (!controller) throw new Error(ERROR_NO_CONTROLLER);
671
- return controller.minFov;
672
- },
673
- set: function set(fov) {
674
- var controller = caches[this.uuid];
675
- if (!controller) throw new Error(ERROR_NO_CONTROLLER);
676
- controller.config.minFov = fov;
677
- controller.update({});
678
- }
679
- }, {
680
- key: "maxFov",
681
- get: function get() {
682
- var controller = caches[this.uuid];
683
- if (!controller) throw new Error(ERROR_NO_CONTROLLER);
684
- return controller.maxFov;
685
- }
686
- /**
687
- *
688
- * @param url glTF 模型CDN地址
689
- * @param options adaptive 是否开启自适应fov
690
- */
691
- ,
692
- set: function set(fov) {
693
- var controller = caches[this.uuid];
694
- if (!controller) throw new Error(ERROR_NO_CONTROLLER);
695
- console.log('maxFov', controller.config);
696
- controller.config.maxFov = fov;
697
- controller.update({});
698
- }
699
- }, {
700
- key: "load",
701
- value: function load(url) {
702
- var controller = caches[this.uuid];
703
- if (!controller) throw new Error(ERROR_NO_CONTROLLER);
704
- controller.load(url);
705
- }
706
- /**
707
- * 挂载
708
- * @param container
709
- * @param size
710
- */
711
-
712
- }, {
713
- key: "appendTo",
714
- value: function appendTo(container, size) {
715
- var controller = caches[this.uuid];
716
- if (!controller) throw new Error(ERROR_NO_CONTROLLER);
717
- controller.appendTo(container, size);
718
- }
719
- /**
720
- * 刷新:如果传递宽高则以该宽高重新绘制;否则,以父容器的宽高重新绘制。
721
- * @param size
722
- */
723
-
724
- }, {
725
- key: "refresh",
726
- value: function refresh(size) {
727
- var controller = caches[this.uuid];
728
- if (!controller) throw new Error(ERROR_NO_CONTROLLER);
729
- controller.refresh(size);
730
- }
731
- /**
732
- * 销毁
733
- */
734
-
735
- }, {
736
- key: "dispose",
737
- value: function dispose() {
738
- var controller = caches[this.uuid];
739
- if (!controller) throw new Error(ERROR_NO_CONTROLLER);
740
- if (controller.dispose) controller.dispose();
741
- delete caches[this.uuid];
742
- }
743
- /**
744
- * 响应式fov
745
- */
746
-
747
- }, {
748
- key: "fitFov",
749
- value: function fitFov() {
750
- var controller = caches[this.uuid];
751
- if (!controller) throw new Error(ERROR_NO_CONTROLLER);
752
- controller.update({
753
- fov: 0
754
- });
755
- }
756
- }]);
757
- return GLTFViewer;
758
- }(_Subscribe2.Subscribe);
759
-
760
- exports.GLTFViewer = GLTFViewer;