@realsee/dnalogel 2.1.2-alpha.0 → 2.1.2-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 (521) hide show
  1. package/README.md +3 -12
  2. package/docs/classes/CruisePluginController.html +24 -24
  3. package/docs/classes/Magnifier.html +16 -16
  4. package/docs/classes/ModelRoomLabelController.html +11 -11
  5. package/docs/classes/Object3DHelperController.html +24 -24
  6. package/docs/classes/PaintBrush.html +15 -15
  7. package/docs/classes/PanoTagPluginController.html +39 -39
  8. package/docs/classes/Util.BetterTween.html +8 -8
  9. package/docs/classes/Util.FivePointSelector.html +12 -12
  10. package/docs/classes/Util.Interval.html +12 -12
  11. package/docs/classes/Util.Magnifier.html +17 -17
  12. package/docs/classes/Util.PointDomHelper.html +11 -11
  13. package/docs/classes/Util.PointHelper.html +11 -11
  14. package/docs/classes/Util.Rectangle.html +13 -13
  15. package/docs/enums/CameraMovementEffect.html +7 -7
  16. package/docs/enums/ContentType.html +12 -12
  17. package/docs/enums/DIRECTION.html +9 -9
  18. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  19. package/docs/enums/DimensionType.html +7 -7
  20. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  21. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  22. package/docs/enums/LinkType.html +7 -7
  23. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  24. package/docs/enums/PointType.html +7 -7
  25. package/docs/enums/Rotation.html +8 -8
  26. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  27. package/docs/functions/CameraMovementPlugin.html +4 -4
  28. package/docs/functions/CruisePlugin.html +4 -4
  29. package/docs/functions/GuideLinePlugin.html +5 -5
  30. package/docs/functions/ItemLabelPlugin.html +4 -4
  31. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  32. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  33. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  34. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  35. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  36. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  37. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  38. package/docs/functions/ModelViewPlugin.html +4 -4
  39. package/docs/functions/Object3DHelperPlugin.html +4 -4
  40. package/docs/functions/PanoCompassPlugin.html +4 -4
  41. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  42. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  43. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  44. package/docs/functions/PanoMeasurePlugin.html +4 -4
  45. package/docs/functions/PanoRulerPlugin.html +4 -4
  46. package/docs/functions/PanoRulerProPlugin.html +4 -4
  47. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  48. package/docs/functions/PanoTagPlugin.html +4 -4
  49. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  50. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  51. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  52. package/docs/functions/Util.getFrameTime.html +5 -5
  53. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  54. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  55. package/docs/functions/Util.isNil.html +5 -5
  56. package/docs/functions/Util.nextFrame.html +5 -5
  57. package/docs/functions/Util.notNil.html +5 -5
  58. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  59. package/docs/functions/Util.tweenProgress.html +5 -5
  60. package/docs/functions/pluginFlag.html +5 -5
  61. package/docs/index.html +6 -11
  62. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  63. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  64. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  65. package/docs/interfaces/ContentTypeMap.html +12 -12
  66. package/docs/interfaces/FloorplanBounding.html +8 -8
  67. package/docs/interfaces/FloorplanData.html +10 -10
  68. package/docs/interfaces/FloorplanEntrance.html +11 -11
  69. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  70. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  71. package/docs/interfaces/FloorplanFloorData.html +9 -9
  72. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  73. package/docs/interfaces/FloorplanObserver.html +9 -9
  74. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  75. package/docs/interfaces/FloorplanPosition.html +7 -7
  76. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  77. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  78. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  79. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  80. package/docs/interfaces/FloorplanServerData.html +7 -7
  81. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  82. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  83. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  84. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  85. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  86. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  87. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  88. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  89. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  90. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  91. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  92. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  93. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  94. package/docs/interfaces/LineJson.html +7 -7
  95. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  96. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  97. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  98. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  99. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  100. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  101. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  102. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  103. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  104. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  105. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  106. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  107. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  108. package/docs/interfaces/Object3DHelperState.html +8 -8
  109. package/docs/interfaces/OpenParameter.html +7 -7
  110. package/docs/interfaces/PaintBrushAction.html +12 -12
  111. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  112. package/docs/interfaces/PaintBrushState.html +10 -10
  113. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  114. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  115. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  116. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  117. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  118. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  119. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  120. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  121. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  122. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  123. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  124. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  125. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  126. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  127. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  128. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  129. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  130. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  131. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  132. package/docs/interfaces/Point.html +8 -8
  133. package/docs/interfaces/PointJson.html +8 -8
  134. package/docs/interfaces/Room.html +9 -9
  135. package/docs/interfaces/RoomInfo.html +7 -7
  136. package/docs/interfaces/RoomLabel.html +14 -14
  137. package/docs/interfaces/RoomRules.html +5 -5
  138. package/docs/interfaces/Rooms.html +5 -5
  139. package/docs/interfaces/Scissor.html +9 -9
  140. package/docs/interfaces/TagConfig.html +10 -10
  141. package/docs/interfaces/Tags.html +9 -9
  142. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  143. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  144. package/docs/modules/Util.html +5 -5
  145. package/docs/modules.html +4 -4
  146. package/docs/types/ArrayPosition.html +5 -5
  147. package/docs/types/CSS3DRenderExportType.html +5 -5
  148. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  149. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  150. package/docs/types/Color.html +5 -5
  151. package/docs/types/ContentTypeConfigKey.html +5 -5
  152. package/docs/types/ContentTypeConfigKeyArray.html +5 -5
  153. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  154. package/docs/types/Create3DElementReturnType.html +5 -5
  155. package/docs/types/CruisePluginExportType.html +5 -5
  156. package/docs/types/Direction-1.html +5 -5
  157. package/docs/types/Direction4.html +5 -5
  158. package/docs/types/FloorplanRuleLabels.html +5 -5
  159. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  160. package/docs/types/GuideLinePluginExportType.html +5 -5
  161. package/docs/types/HelperEventMap.html +5 -5
  162. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  163. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  164. package/docs/types/MediaData.html +5 -5
  165. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  166. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  167. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  168. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  169. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  170. package/docs/types/MoveArgs.html +5 -5
  171. package/docs/types/MoveOpts.html +5 -5
  172. package/docs/types/Object3DHelperEventMap.html +5 -5
  173. package/docs/types/ObjectFit.html +5 -5
  174. package/docs/types/PaintBrushEventMap.html +5 -5
  175. package/docs/types/PanoCompassPluginData.html +5 -5
  176. package/docs/types/PanoCompassPluginExportType.html +5 -5
  177. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  178. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  179. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  180. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  181. package/docs/types/PanoMeasureReturnType.html +5 -5
  182. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  183. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  184. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  185. package/docs/types/PlaneTag.html +5 -5
  186. package/docs/types/PointTag.html +5 -5
  187. package/docs/types/Position.html +5 -5
  188. package/docs/types/RotateArgs.html +5 -5
  189. package/docs/types/RotateOpts.html +5 -5
  190. package/docs/types/RuleLabelsKey.html +5 -5
  191. package/docs/types/RuleLabelsValue.html +5 -5
  192. package/docs/types/Tag.html +5 -5
  193. package/docs/types/Tag2D.html +5 -5
  194. package/docs/types/Tag3D.html +5 -5
  195. package/docs/types/TagId.html +5 -5
  196. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  197. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  198. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  199. package/docs/variables/PLUGIN.html +5 -5
  200. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  201. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  202. package/docs/variables/VERSION.html +5 -5
  203. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  204. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  205. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  206. package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -331
  207. package/libs/CSS3DRenderPlugin/Controller.js +1 -84
  208. package/libs/CSS3DRenderPlugin/index.js +1 -6
  209. package/libs/CSS3DRenderPlugin/typing.js +1 -0
  210. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +1 -67
  211. package/libs/CSS3DRenderPlugin/utils/centerPoint.js +1 -10
  212. package/libs/CSS3DRenderPlugin/utils/evenNumber.js +1 -7
  213. package/libs/CSS3DRenderPlugin/utils/index.js +1 -0
  214. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +1 -7
  215. package/libs/CSS3DRenderPlugin/utils/random.js +1 -0
  216. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +1 -88
  217. package/libs/CameraMovementPlugin/index.js +1 -0
  218. package/libs/CameraMovementPlugin/typing.js +1 -5
  219. package/libs/CruisePlugin/Controller.js +1 -484
  220. package/libs/CruisePlugin/index.js +1 -8
  221. package/libs/CruisePlugin/utils/coordinatesAngle.js +1 -8
  222. package/libs/CruisePlugin/utils/coordinatesToVector.js +1 -12
  223. package/libs/CruisePlugin/utils/formatRad.js +1 -7
  224. package/libs/CruisePlugin/utils/linerValue.js +1 -7
  225. package/libs/CruisePlugin/utils/safeCall.js +1 -28
  226. package/libs/CruisePlugin/utils/sleep.js +1 -10
  227. package/libs/CruisePlugin/utils/vectorToCoordinates.js +1 -10
  228. package/libs/GuideLinePlugin/Controller.js +1 -144
  229. package/libs/GuideLinePlugin/index.js +1 -6
  230. package/libs/GuideLinePlugin/utils/getArrowMaterial.js +1 -13
  231. package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -64
  232. package/libs/ItemLabelPlugin/ItemLabelComponent.js +1 -271
  233. package/libs/ItemLabelPlugin/ItemLabelItem.js +2 -133
  234. package/libs/ItemLabelPlugin/Plugin.js +2 -76
  235. package/libs/ItemLabelPlugin/index.js +1 -12
  236. package/libs/ItemLabelPlugin/typings.js +1 -4
  237. package/libs/ItemLabelPlugin/utils/getLabelTransform.js +1 -4
  238. package/libs/ItemLabelPlugin/utils/getStrokeLength.js +1 -16
  239. package/libs/ItemLabelPlugin/utils/isImpacted.js +1 -10
  240. package/libs/ItemLabelPlugin/utils/parseData.js +1 -21
  241. package/libs/ItemLabelPlugin/utils/transform2RenderData.js +1 -21
  242. package/libs/ModelChassisCompassPlugin/Plugin.js +1 -71
  243. package/libs/ModelChassisCompassPlugin/index.js +1 -0
  244. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +1 -78
  245. package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
  246. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +1 -212
  247. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +2 -42
  248. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +2 -74
  249. package/libs/ModelItemLabelPlugin/events.type.js +1 -0
  250. package/libs/ModelItemLabelPlugin/index.js +1 -12
  251. package/libs/ModelItemLabelPlugin/typings.js +1 -4
  252. package/libs/ModelItemLabelPlugin/utils/parseData.js +1 -19
  253. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -4
  254. package/libs/ModelRoomLabelPlugin/Controller.js +1 -60
  255. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +1 -45
  256. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +1 -162
  257. package/libs/ModelRoomLabelPlugin/index.js +1 -10
  258. package/libs/ModelRoomLabelPlugin/utils/parseData.js +1 -16
  259. package/libs/ModelTVVideoPlugin/Plugin.js +1 -164
  260. package/libs/ModelTVVideoPlugin/index.js +1 -0
  261. package/libs/ModelTVVideoPlugin/typings.js +1 -4
  262. package/libs/ModelTVVideoPlugin/utils/parseData.js +1 -20
  263. package/libs/ModelViewPlugin/Plugin.js +1 -107
  264. package/libs/ModelViewPlugin/index.js +1 -0
  265. package/libs/Object3DHelperPlugin/Controller.js +1 -145
  266. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +1 -32
  267. package/libs/Object3DHelperPlugin/index.js +1 -10
  268. package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +1 -4
  269. package/libs/PanoCompassPlugin/Controller.js +1 -224
  270. package/libs/PanoCompassPlugin/getRoomInfoInstance.js +1 -24
  271. package/libs/PanoCompassPlugin/index.js +1 -6
  272. package/libs/PanoCursorRaycasterPlugin/index.js +1 -59
  273. package/libs/PanoDoorLabelPlugin/BaseController.js +1 -59
  274. package/libs/PanoDoorLabelPlugin/Controller.js +1 -219
  275. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -65
  276. package/libs/PanoDoorLabelPlugin/index.js +1 -6
  277. package/libs/PanoDoorLabelPlugin/utils.js +1 -23
  278. package/libs/PanoMeasurePlugin/Controller/BaseController.js +1 -53
  279. package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -102
  280. package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -125
  281. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +1 -33
  282. package/libs/PanoMeasurePlugin/Controller/ViewController.js +1 -90
  283. package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -154
  284. package/libs/PanoMeasurePlugin/Controller/index.js +1 -140
  285. package/libs/PanoMeasurePlugin/Model/index.js +1 -92
  286. package/libs/PanoMeasurePlugin/Model/line.js +1 -56
  287. package/libs/PanoMeasurePlugin/Model/point.js +1 -30
  288. package/libs/PanoMeasurePlugin/Model/polyline.js +1 -47
  289. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +2 -5
  290. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -4
  291. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -4
  292. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +3 -67
  293. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +1 -28
  294. package/libs/PanoMeasurePlugin/Modules/GuideController.js +1 -41
  295. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -103
  296. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +8 -12
  297. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +1 -50
  298. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +1 -36
  299. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -48
  300. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +3 -8
  301. package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +1 -39
  302. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +1 -62
  303. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +2 -7
  304. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -130
  305. package/libs/PanoMeasurePlugin/index.js +1 -11
  306. package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -12
  307. package/libs/PanoMeasurePlugin/utils/constants.js +1 -36
  308. package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -62
  309. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +1 -13
  310. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +1 -15
  311. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +1 -9
  312. package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +1 -8
  313. package/libs/PanoMeasurePlugin/utils/ironbox.js +1 -4
  314. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +1 -7
  315. package/libs/PanoMeasurePlugin/utils/line.js +1 -18
  316. package/libs/PanoMeasurePlugin/utils/math.js +1 -13
  317. package/libs/PanoMeasurePlugin/utils/mouseGroup.js +3 -33
  318. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +1 -8
  319. package/libs/PanoRulerPlugin/Plugin.js +2 -263
  320. package/libs/PanoRulerPlugin/index.js +1 -0
  321. package/libs/PanoRulerPlugin/style.js +2 -5
  322. package/libs/PanoRulerProPlugin/Controller.js +1 -93
  323. package/libs/PanoRulerProPlugin/RulerItem.js +1 -128
  324. package/libs/PanoRulerProPlugin/RulerItems.js +1 -180
  325. package/libs/PanoRulerProPlugin/index.js +1 -6
  326. package/libs/PanoSpatialTagPlugin/Components/origins.js +1 -81
  327. package/libs/PanoSpatialTagPlugin/Components/tag.js +1 -124
  328. package/libs/PanoSpatialTagPlugin/Plugin.js +1 -247
  329. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  330. package/libs/PanoSpatialTagPlugin/store.js +1 -5
  331. package/libs/PanoSpatialTagPlugin/style.js +1 -11
  332. package/libs/PanoSpatialTagPlugin/typings.js +1 -0
  333. package/libs/PanoTagPlugin/Assets/Icon.js +1 -6
  334. package/libs/PanoTagPlugin/Components/Common/Arrow.js +1 -103
  335. package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -166
  336. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -93
  337. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -90
  338. package/libs/PanoTagPlugin/Components/Common/Media.js +1 -393
  339. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -139
  340. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +1 -170
  341. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +1 -51
  342. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +1 -51
  343. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +1 -166
  344. package/libs/PanoTagPlugin/Components/Common/Shadow.js +15 -124
  345. package/libs/PanoTagPlugin/Components/Common/Text.js +1 -131
  346. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +1 -134
  347. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +1 -73
  348. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -192
  349. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +1 -126
  350. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -258
  351. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +1 -87
  352. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +1 -122
  353. package/libs/PanoTagPlugin/Components/Tag/index.js +2 -289
  354. package/libs/PanoTagPlugin/Components/TagContainer.js +1 -156
  355. package/libs/PanoTagPlugin/Components/TagWrapper.js +1 -153
  356. package/libs/PanoTagPlugin/controller/TagCacheController.js +1 -31
  357. package/libs/PanoTagPlugin/controller/TagComputer.js +1 -264
  358. package/libs/PanoTagPlugin/controller/index.js +1 -377
  359. package/libs/PanoTagPlugin/index.js +1 -9
  360. package/libs/PanoTagPlugin/tag.config.js +1 -44
  361. package/libs/PanoTagPlugin/typings/controller.js +1 -0
  362. package/libs/PanoTagPlugin/typings/index.js +1 -0
  363. package/libs/PanoTagPlugin/typings/tag.js +1 -7
  364. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +1 -6
  365. package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -27
  366. package/libs/PanoTagPlugin/utils/checkRange.js +1 -10
  367. package/libs/PanoTagPlugin/utils/constants.js +1 -8
  368. package/libs/PanoTagPlugin/utils/debounce.js +1 -12
  369. package/libs/PanoTagPlugin/utils/doUtil.js +1 -12
  370. package/libs/PanoTagPlugin/utils/index.js +1 -0
  371. package/libs/PanoTagPlugin/utils/noTypecheck.js +1 -4
  372. package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +1 -13
  373. package/libs/PanoTagPlugin/utils/planeNormal.js +1 -11
  374. package/libs/PanoTagPlugin/utils/resizeObserver.js +1 -17
  375. package/libs/PanoTagPlugin/utils/search.js +1 -15
  376. package/libs/PanoTagPlugin/utils/tagPosition.js +1 -13
  377. package/libs/PanoTagPlugin/utils/throttle.js +1 -11
  378. package/libs/base/BasePlugin.js +1 -18
  379. package/libs/base/BasePluginWithData.js +1 -6
  380. package/libs/components/PaintBrush/Controller.js +1 -308
  381. package/libs/components/PaintBrush/Subscribe.js +1 -47
  382. package/libs/components/PaintBrush/index.js +1 -45
  383. package/libs/components/PaintBrush/style.js +2 -5
  384. package/libs/components/PaintBrush/tween.js +1 -11
  385. package/libs/components/PaintBrush/typings.js +1 -4
  386. package/libs/components/PaintBrush/utils.js +1 -45
  387. package/libs/components/index.js +1 -0
  388. package/libs/floorplan/Assets/camera.js +1 -4
  389. package/libs/floorplan/Assets/compass.js +1 -4
  390. package/libs/floorplan/Assets/floorplanExtraObject.js +1 -4
  391. package/libs/floorplan/Components/BaseImage.js +1 -103
  392. package/libs/floorplan/Components/Camera.js +1 -62
  393. package/libs/floorplan/Components/Compass.js +1 -60
  394. package/libs/floorplan/Components/CurrentFloor.js +1 -246
  395. package/libs/floorplan/Components/Main.js +1 -264
  396. package/libs/floorplan/Components/Normalmage.js +1 -37
  397. package/libs/floorplan/Components/RoomHighlight/Room.js +1 -61
  398. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +1 -121
  399. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -153
  400. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +1 -174
  401. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -196
  402. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -37
  403. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -39
  404. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -37
  405. package/libs/floorplan/Components/RuleLabels/RuleItem.js +1 -134
  406. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +1 -139
  407. package/libs/floorplan/Components/SvgImage.js +2 -39
  408. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -321
  409. package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -6
  410. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -316
  411. package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -6
  412. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -85
  413. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +1 -129
  414. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +1 -72
  415. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +1 -183
  416. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -164
  417. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -6
  418. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -273
  419. package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -6
  420. package/libs/floorplan/constant.js +1 -4
  421. package/libs/floorplan/index.js +1 -0
  422. package/libs/floorplan/typings/floorplanData.js +1 -0
  423. package/libs/floorplan/typings/floorplanServerData.js +1 -101
  424. package/libs/floorplan/utils/constant.js +1 -7
  425. package/libs/floorplan/utils/correctFiveState.js +1 -54
  426. package/libs/floorplan/utils/formatData.js +1 -104
  427. package/libs/floorplan/utils/formatPosition.js +1 -35
  428. package/libs/index.js +1 -92
  429. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -152
  430. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +1 -53
  431. package/libs/shared-utils/Object3DHelper/Constants/color.js +1 -21
  432. package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +1 -18
  433. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -66
  434. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +1 -109
  435. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +1 -134
  436. package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +1 -79
  437. package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +1 -41
  438. package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +1 -14
  439. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -30
  440. package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +1 -35
  441. package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +1 -2
  442. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +1 -137
  443. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +1 -136
  444. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
  445. package/libs/shared-utils/Object3DHelper/index.js +1 -169
  446. package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -0
  447. package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -0
  448. package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -0
  449. package/libs/shared-utils/Object3DHelper/typings/index.js +1 -0
  450. package/libs/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +1 -11
  451. package/libs/shared-utils/Object3DHelper/utils/direction.js +1 -22
  452. package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -0
  453. package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +1 -14
  454. package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -0
  455. package/libs/shared-utils/Object3DHelper/utils/index.js +1 -0
  456. package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -0
  457. package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -0
  458. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +1 -191
  459. package/libs/shared-utils/Object3DHelper/utils/vectorIsEqual.js +1 -6
  460. package/libs/shared-utils/Subscribe.js +1 -50
  461. package/libs/shared-utils/animationFrame/BetterTween.js +1 -26
  462. package/libs/shared-utils/animationFrame/calculateProgress.js +1 -6
  463. package/libs/shared-utils/animationFrame/formatRad.js +1 -11
  464. package/libs/shared-utils/animationFrame/index.js +1 -31
  465. package/libs/shared-utils/animationFrame/tween.js +1 -30
  466. package/libs/shared-utils/changeModelCanvasOpacity.js +1 -12
  467. package/libs/shared-utils/createCanvasTextTexture.js +1 -11
  468. package/libs/shared-utils/createLine/index.js +1 -9
  469. package/libs/shared-utils/debounce.js +1 -11
  470. package/libs/shared-utils/equal.js +1 -54
  471. package/libs/shared-utils/filter.js +1 -10
  472. package/libs/shared-utils/five/changeMode.js +1 -39
  473. package/libs/shared-utils/getPxmm.js +1 -21
  474. package/libs/shared-utils/index.js +1 -31
  475. package/libs/shared-utils/isNil.js +1 -10
  476. package/libs/shared-utils/isTruelyObject.js +1 -6
  477. package/libs/shared-utils/math/Interval.js +1 -23
  478. package/libs/shared-utils/math/Rectangle.js +1 -23
  479. package/libs/shared-utils/math/index.js +1 -0
  480. package/libs/shared-utils/math/planimetry.js +1 -48
  481. package/libs/shared-utils/math/rad2Deg.js +1 -6
  482. package/libs/shared-utils/nearlyEqual.js +1 -6
  483. package/libs/shared-utils/nextFrame.js +1 -6
  484. package/libs/shared-utils/noop.js +1 -5
  485. package/libs/shared-utils/object3d2LocalMatrix.js +1 -19
  486. package/libs/shared-utils/removeArrayItem.js +1 -8
  487. package/libs/shared-utils/tap.js +1 -6
  488. package/libs/shared-utils/three/Assets/index.js +1 -4
  489. package/libs/shared-utils/three/FivePointSelector.js +1 -49
  490. package/libs/shared-utils/three/Magnifier.js +1 -104
  491. package/libs/shared-utils/three/PointDomHelper.js +1 -60
  492. package/libs/shared-utils/three/PointHelper.js +3 -60
  493. package/libs/shared-utils/three/getCoords.js +1 -13
  494. package/libs/shared-utils/three/getIntersect.js +1 -8
  495. package/libs/shared-utils/three/getRaycaster.js +1 -12
  496. package/libs/shared-utils/three/index.js +1 -0
  497. package/libs/shared-utils/three/loadTexture.js +1 -28
  498. package/libs/shared-utils/three/transformPositionToVector3.js +1 -5
  499. package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +1 -24
  500. package/libs/shared-utils/throttle.js +1 -11
  501. package/libs/shared-utils/tinyEJSrender.js +14 -138
  502. package/libs/shared-utils/to.js +1 -29
  503. package/libs/shared-utils/uuid.js +1 -10
  504. package/libs/vendor/swiper/components-shared/get-changed-params.js +1 -0
  505. package/libs/vendor/swiper/components-shared/get-params.js +1 -0
  506. package/libs/vendor/swiper/components-shared/mount-swiper.js +1 -0
  507. package/libs/vendor/swiper/components-shared/params-list.js +1 -0
  508. package/libs/vendor/swiper/components-shared/update-swiper.js +1 -0
  509. package/libs/vendor/swiper/components-shared/utils.js +1 -0
  510. package/libs/vendor/swiper/svelte/swiper-slide.js +1 -0
  511. package/libs/vendor/swiper/svelte/swiper-svelte.js +1 -0
  512. package/libs/vendor/swiper/svelte/swiper.js +1 -0
  513. package/package.json +187 -17
  514. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/get-changed-params.js +0 -29
  515. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/get-params.js +0 -23
  516. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/mount-swiper.js +0 -14
  517. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/params-list.js +0 -120
  518. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/update-swiper.js +0 -36
  519. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/utils.js +0 -32
  520. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/svelte/swiper-slide.js +0 -182
  521. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/svelte/swiper.js +0 -254
@@ -1,169 +1 @@
1
- var u = Object.defineProperty;
2
- var v = Object.getOwnPropertySymbols;
3
- var S = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
4
- var c = (n, e, s) => e in n ? u(n, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[e] = s, p = (n, e) => {
5
- for (var s in e || (e = {}))
6
- S.call(e, s) && c(n, s, e[s]);
7
- if (v)
8
- for (var s of v(e))
9
- k.call(e, s) && c(n, s, e[s]);
10
- return n;
11
- };
12
- var d = (n, e, s) => (c(n, typeof e != "symbol" ? e + "" : e, s), s);
13
- var f = (n, e, s) => new Promise((t, o) => {
14
- var i = (r) => {
15
- try {
16
- h(s.next(r));
17
- } catch (a) {
18
- o(a);
19
- }
20
- }, l = (r) => {
21
- try {
22
- h(s.throw(r));
23
- } catch (a) {
24
- o(a);
25
- }
26
- }, h = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(i, l);
27
- h((s = s.apply(n, e)).next());
28
- });
29
- import { Subscribe as C } from "../Subscribe.js";
30
- const E = "v1.0.1", y = "Object3DHelper", b = `${y}@${E}`, m = () => {
31
- console.error(`${b} is disposed`);
32
- }, H = () => {
33
- console.warn(`${b} is disabled`);
34
- }, O = () => {
35
- console.error(`${b} is disabled`);
36
- };
37
- class x {
38
- constructor(e, s) {
39
- d(this, "controllers", {});
40
- d(this, "state", {
41
- visible: !0,
42
- enabled: !0,
43
- disposed: !1
44
- });
45
- d(this, "hooks", new C());
46
- d(this, "helpers");
47
- d(this, "eventListener", {});
48
- d(this, "handlePositionUpdate", (e, ...s) => {
49
- var i, l, h, r;
50
- const [t] = s, o = t == null ? void 0 : t.matrix4;
51
- o && (e !== this.controllers.moveController && ((i = this.controllers.moveController) == null || i.applyHelperMatrix4(o)), e !== this.controllers.rotateController && ((l = this.controllers.rotateController) == null || l.applyHelperMatrix4(o)), e !== this.controllers.scaleController && ((h = this.controllers.scaleController) == null || h.applyHelperMatrix4(o)), (r = this.helpers.outlineHelper) == null || r.applyMatrix4(o));
52
- });
53
- d(this, "handleScaleUpdate", (e, ...s) => {
54
- var i, l;
55
- const [t] = s, o = t == null ? void 0 : t.matrix4;
56
- o && ((i = this.controllers.scaleController) == null || i.applyHelperScaleMatrix4(o, t), (l = this.helpers.outlineHelper) == null || l.scale.applyMatrix4(o));
57
- });
58
- d(this, "handleRotateUpdate", (e, ...s) => {
59
- var o, i, l, h;
60
- const [t] = s;
61
- if (t) {
62
- const { quaternion: r, origin: a } = t;
63
- r && (e !== this.controllers.moveController && ((o = this.controllers.moveController) == null || o.applyHelperQuaternion(r, a)), e !== this.controllers.rotateController && ((i = this.controllers.rotateController) == null || i.applyHelperQuaternion(r, a)), e !== this.controllers.scaleController && ((l = this.controllers.scaleController) == null || l.applyHelperQuaternion(r, a)), (h = this.helpers.outlineHelper) == null || h.applyQuaternion(r));
64
- }
65
- });
66
- e && this.addControllers(e), this.helpers = s != null ? s : {}, this.setState(this.state);
67
- }
68
- show(e) {
69
- return f(this, null, function* () {
70
- this.setState({ visible: !0 }, e);
71
- });
72
- }
73
- hide(e) {
74
- return f(this, null, function* () {
75
- this.setState({ visible: !1 }, e);
76
- });
77
- }
78
- enable(e) {
79
- this.setState({ enabled: !0 }, e);
80
- }
81
- disable(e) {
82
- this.setState({ enabled: !1 }, e);
83
- }
84
- dispose() {
85
- this.setState({ disposed: !0 });
86
- }
87
- setState(e, s) {
88
- if (this.state.disposed)
89
- return m();
90
- if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
91
- return O();
92
- const t = p({}, this.state);
93
- this.state = p(p({}, this.state), e), e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && this.handleVisible(e.visible), e.enabled !== void 0 && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: t });
94
- }
95
- addControllers(e) {
96
- this.controllers = p(p({}, this.controllers), e), this.addEventListener(), this.setState(this.state);
97
- }
98
- addHelpers(e) {
99
- this.helpers = p(p({}, this.helpers), e);
100
- }
101
- getCurrentState() {
102
- return this.state;
103
- }
104
- addEventListener() {
105
- for (const e in this.controllers) {
106
- if (!e)
107
- continue;
108
- const s = e;
109
- this.eventListener[s] || (this.eventListener[s] = (() => {
110
- const t = this.controllers[s];
111
- if (!t)
112
- return;
113
- const o = () => this.handleStart(t), i = () => this.handleEnd(t), l = (...a) => this.handlePositionUpdate(t, ...a), h = (...a) => this.handleRotateUpdate(t, ...a), r = (...a) => this.handleScaleUpdate(t, ...a);
114
- return t.hooks.on("moveStart", o), t.hooks.on("rotateStart", o), t.hooks.on("scaleStart", o), t.hooks.on("positionUpdate", l), t.hooks.on("rotateUpdate", h), t.hooks.on("scaleUpdate", r), t.hooks.on("moveEnd", i), t.hooks.on("rotateEnd", i), t.hooks.on("scaleEnd", i), () => {
115
- t.hooks.off("moveStart", o), t.hooks.off("rotateStart", o), t.hooks.off("scaleStart", o), t.hooks.off("positionUpdate", l), t.hooks.off("rotateUpdate", h), t.hooks.off("scaleUpdate", r), t.hooks.off("moveEnd", i), t.hooks.off("rotateEnd", i), t.hooks.off("scaleEnd", i);
116
- };
117
- })());
118
- }
119
- }
120
- handleEnd(e) {
121
- e && this.setOtherHelpersVisible(!0, e);
122
- }
123
- handleStart(e) {
124
- e && this.setOtherHelpersVisible(!1, e);
125
- }
126
- setOtherHelpersVisible(e, s) {
127
- var t, o, i, l;
128
- e ? ((i = this.controllers.moveController) == null || i.helperObject3D.show(), (l = this.controllers.rotateController) == null || l.helperObject3D.show()) : (s !== this.controllers.moveController && ((t = this.controllers.moveController) == null || t.helperObject3D.hide()), s !== this.controllers.rotateController && ((o = this.controllers.rotateController) == null || o.helperObject3D.hide()));
129
- }
130
- handleEnable(e, s = !0) {
131
- e ? (this.everyControllerDo((t) => {
132
- t.enable();
133
- }), this.hooks.emit("enable", { userAction: s })) : (this.everyControllerDo((t) => {
134
- t.disable(), t.restoreOpacity();
135
- }), this.hooks.emit("disable", { userAction: s })), this.state.enabled = e;
136
- }
137
- handleVisible(e, s = !0) {
138
- e ? (this.everyControllerDo((t) => {
139
- t.show();
140
- }), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: s }))) : (this.everyControllerDo((t) => {
141
- t.hide(), t.restoreOpacity();
142
- }), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: s }))), this.state.visible = e;
143
- }
144
- everyControllerDo(e) {
145
- Object.values(this.controllers).forEach((s) => {
146
- s && e(s);
147
- });
148
- }
149
- handleDispose() {
150
- var e, s;
151
- Object.values(this.controllers).forEach((t) => {
152
- t == null || t.dispose(), t == null || t.restoreOpacity();
153
- });
154
- for (const t in this.controllers) {
155
- if (!t)
156
- continue;
157
- const o = t;
158
- (s = (e = this.eventListener)[o]) == null || s.call(e);
159
- }
160
- }
161
- actionIfStateIsEnabled(e, s) {
162
- if (this.state.enabled)
163
- return e();
164
- s != null && s.warnLog && H();
165
- }
166
- }
167
- export {
168
- x as Object3DHelper
169
- };
1
+ "use strict";var u=Object.defineProperty;var v=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var p=(n,e,s)=>e in n?u(n,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[e]=s,c=(n,e)=>{for(var s in e||(e={}))S.call(e,s)&&p(n,s,e[s]);if(v)for(var s of v(e))k.call(e,s)&&p(n,s,e[s]);return n};var d=(n,e,s)=>(p(n,typeof e!="symbol"?e+"":e,s),s);var f=(n,e,s)=>new Promise((t,o)=>{var i=r=>{try{h(s.next(r))}catch(a){o(a)}},l=r=>{try{h(s.throw(r))}catch(a){o(a)}},h=r=>r.done?t(r.value):Promise.resolve(r.value).then(i,l);h((s=s.apply(n,e)).next())});const C=require("../Subscribe.js"),E="v1.0.1",y="Object3DHelper",b=`${y}@${E}`,m=()=>{console.error(`${b} is disposed`)},H=()=>{console.warn(`${b} is disabled`)},O=()=>{console.error(`${b} is disabled`)};class U{constructor(e,s){d(this,"controllers",{});d(this,"state",{visible:!0,enabled:!0,disposed:!1});d(this,"hooks",new C.Subscribe);d(this,"helpers");d(this,"eventListener",{});d(this,"handlePositionUpdate",(e,...s)=>{var i,l,h,r;const[t]=s,o=t==null?void 0:t.matrix4;o&&(e!==this.controllers.moveController&&((i=this.controllers.moveController)==null||i.applyHelperMatrix4(o)),e!==this.controllers.rotateController&&((l=this.controllers.rotateController)==null||l.applyHelperMatrix4(o)),e!==this.controllers.scaleController&&((h=this.controllers.scaleController)==null||h.applyHelperMatrix4(o)),(r=this.helpers.outlineHelper)==null||r.applyMatrix4(o))});d(this,"handleScaleUpdate",(e,...s)=>{var i,l;const[t]=s,o=t==null?void 0:t.matrix4;o&&((i=this.controllers.scaleController)==null||i.applyHelperScaleMatrix4(o,t),(l=this.helpers.outlineHelper)==null||l.scale.applyMatrix4(o))});d(this,"handleRotateUpdate",(e,...s)=>{var o,i,l,h;const[t]=s;if(t){const{quaternion:r,origin:a}=t;r&&(e!==this.controllers.moveController&&((o=this.controllers.moveController)==null||o.applyHelperQuaternion(r,a)),e!==this.controllers.rotateController&&((i=this.controllers.rotateController)==null||i.applyHelperQuaternion(r,a)),e!==this.controllers.scaleController&&((l=this.controllers.scaleController)==null||l.applyHelperQuaternion(r,a)),(h=this.helpers.outlineHelper)==null||h.applyQuaternion(r))}});e&&this.addControllers(e),this.helpers=s!=null?s:{},this.setState(this.state)}show(e){return f(this,null,function*(){this.setState({visible:!0},e)})}hide(e){return f(this,null,function*(){this.setState({visible:!1},e)})}enable(e){this.setState({enabled:!0},e)}disable(e){this.setState({enabled:!1},e)}dispose(){this.setState({disposed:!0})}setState(e,s){if(this.state.disposed)return m();if(!this.state.enabled&&e.enabled!==!0&&e.disposed!==!0)return O();const t=c({},this.state);this.state=c(c({},this.state),e),e.disposed!==void 0&&e.disposed!==t.disposed&&e.disposed&&this.handleDispose(),e.visible!==void 0&&this.handleVisible(e.visible),e.enabled!==void 0&&this.handleEnable(e.enabled),this.hooks.emit("stateChange",{state:this.state,prevState:t})}addControllers(e){this.controllers=c(c({},this.controllers),e),this.addEventListener(),this.setState(this.state)}addHelpers(e){this.helpers=c(c({},this.helpers),e)}getCurrentState(){return this.state}addEventListener(){for(const e in this.controllers){if(!e)continue;const s=e;this.eventListener[s]||(this.eventListener[s]=(()=>{const t=this.controllers[s];if(!t)return;const o=()=>this.handleStart(t),i=()=>this.handleEnd(t),l=(...a)=>this.handlePositionUpdate(t,...a),h=(...a)=>this.handleRotateUpdate(t,...a),r=(...a)=>this.handleScaleUpdate(t,...a);return t.hooks.on("moveStart",o),t.hooks.on("rotateStart",o),t.hooks.on("scaleStart",o),t.hooks.on("positionUpdate",l),t.hooks.on("rotateUpdate",h),t.hooks.on("scaleUpdate",r),t.hooks.on("moveEnd",i),t.hooks.on("rotateEnd",i),t.hooks.on("scaleEnd",i),()=>{t.hooks.off("moveStart",o),t.hooks.off("rotateStart",o),t.hooks.off("scaleStart",o),t.hooks.off("positionUpdate",l),t.hooks.off("rotateUpdate",h),t.hooks.off("scaleUpdate",r),t.hooks.off("moveEnd",i),t.hooks.off("rotateEnd",i),t.hooks.off("scaleEnd",i)}})())}}handleEnd(e){e&&this.setOtherHelpersVisible(!0,e)}handleStart(e){e&&this.setOtherHelpersVisible(!1,e)}setOtherHelpersVisible(e,s){var t,o,i,l;e?((i=this.controllers.moveController)==null||i.helperObject3D.show(),(l=this.controllers.rotateController)==null||l.helperObject3D.show()):(s!==this.controllers.moveController&&((t=this.controllers.moveController)==null||t.helperObject3D.hide()),s!==this.controllers.rotateController&&((o=this.controllers.rotateController)==null||o.helperObject3D.hide()))}handleEnable(e,s=!0){e?(this.everyControllerDo(t=>{t.enable()}),this.hooks.emit("enable",{userAction:s})):(this.everyControllerDo(t=>{t.disable(),t.restoreOpacity()}),this.hooks.emit("disable",{userAction:s})),this.state.enabled=e}handleVisible(e,s=!0){e?(this.everyControllerDo(t=>{t.show()}),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:s}))):(this.everyControllerDo(t=>{t.hide(),t.restoreOpacity()}),this.actionIfStateIsEnabled(()=>this.hooks.emit("hide",{userAction:s}))),this.state.visible=e}everyControllerDo(e){Object.values(this.controllers).forEach(s=>{s&&e(s)})}handleDispose(){var e,s;Object.values(this.controllers).forEach(t=>{t==null||t.dispose(),t==null||t.restoreOpacity()});for(const t in this.controllers){if(!t)continue;const o=t;(s=(e=this.eventListener)[o])==null||s.call(e)}}actionIfStateIsEnabled(e,s){if(this.state.enabled)return e();s!=null&&s.warnLog&&H()}}exports.Object3DHelper=U;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1,11 +1 @@
1
- import * as i from "three";
2
- function s(t, e) {
3
- const { offsetWidth: o, offsetHeight: c } = e, { top: n, left: f } = e.getBoundingClientRect();
4
- return Object.assign(new i.Vector2(), {
5
- x: (t.x - f) / o * 2 - 1,
6
- y: -(t.y - n) / c * 2 + 1
7
- });
8
- }
9
- export {
10
- s as calculateThreeMouse
11
- };
1
+ "use strict";const u=require("three");function s(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=s(u);function a(e,t){const{offsetWidth:n,offsetHeight:c}=t,{top:r,left:o}=t.getBoundingClientRect();return Object.assign(new i.Vector2,{x:(e.x-o)/n*2-1,y:-(e.y-r)/c*2+1})}exports.calculateThreeMouse=a;
@@ -1,22 +1 @@
1
- var n = Object.defineProperty;
2
- var d = (e, r, t) => r in e ? n(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
3
- var i = (e, r, t) => (d(e, typeof r != "symbol" ? r + "" : r, t), t);
4
- import * as o from "three";
5
- class u extends o.Group {
6
- constructor(t) {
7
- super();
8
- i(this, "direction");
9
- this.direction = t || "x";
10
- }
11
- }
12
- class x extends o.Mesh {
13
- constructor(t, s, c) {
14
- super(t, s);
15
- i(this, "direction");
16
- this.direction = c || "x";
17
- }
18
- }
19
- export {
20
- u as DirectionGroup,
21
- x as DirectionMesh
22
- };
1
+ "use strict";var s=Object.defineProperty;var u=(e,r,t)=>r in e?s(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var o=(e,r,t)=>(u(e,typeof r!="symbol"?r+"":r,t),t);const a=require("three");function d(e){if(e&&e.__esModule)return e;const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const c=d(a);class l extends c.Group{constructor(t){super();o(this,"direction");this.direction=t||"x"}}class p extends c.Mesh{constructor(t,n,i){super(t,n);o(this,"direction");this.direction=i||"x"}}exports.DirectionGroup=l;exports.DirectionMesh=p;
@@ -0,0 +1 @@
1
+ "use strict";require("three");
@@ -1,14 +1 @@
1
- import * as s from "three";
2
- import { calculateThreeMouse as c } from "./calculateThreeMouse.js";
3
- function u(t, e, a) {
4
- if (!e || !a || !t)
5
- return;
6
- const r = c(e, a);
7
- if (Math.abs(r.x) === 1 || Math.abs(r.y) === 1)
8
- return;
9
- const o = new s.Raycaster();
10
- return o.setFromCamera(r, t), o;
11
- }
12
- export {
13
- u as getMouseRaycaster
14
- };
1
+ "use strict";const c=require("three"),u=require("./calculateThreeMouse.js");function n(e){if(e&&e.__esModule)return e;const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=n(c);function i(e,r,t){if(!r||!t||!e)return;const s=u.calculateThreeMouse(r,t);if(Math.abs(s.x)===1||Math.abs(s.y)===1)return;const a=new o.Raycaster;return a.setFromCamera(s,e),a}exports.getMouseRaycaster=i;
@@ -0,0 +1 @@
1
+ "use strict";require("three");
@@ -0,0 +1 @@
1
+ "use strict";require("three");
@@ -0,0 +1 @@
1
+ "use strict";require("three");
@@ -1,191 +1 @@
1
- import * as f from "three";
2
- function n(t, e) {
3
- this._camera = t || null, this._domElement = e || document, this._raycaster = new f.Raycaster(), this._selected = null, this._boundObjs = {};
4
- var o = this;
5
- this._$onClick = function() {
6
- o._onClick.apply(o, arguments);
7
- }, this._$onDblClick = function() {
8
- o._onDblClick.apply(o, arguments);
9
- }, this._$onMouseMove = function() {
10
- o._onMouseMove.apply(o, arguments);
11
- }, this._$onMouseDown = function() {
12
- o._onMouseDown.apply(o, arguments);
13
- }, this._$onMouseUp = function() {
14
- o._onMouseUp.apply(o, arguments);
15
- }, this._$onTouchMove = function() {
16
- o._onTouchMove.apply(o, arguments);
17
- }, this._$onTouchStart = function() {
18
- o._onTouchStart.apply(o, arguments);
19
- }, this._$onTouchEnd = function() {
20
- o._onTouchEnd.apply(o, arguments);
21
- }, this._$onContextmenu = function() {
22
- o._onContextmenu.apply(o, arguments);
23
- }, this._domElement.addEventListener("click", this._$onClick, !1), this._domElement.addEventListener("dblclick", this._$onDblClick, !1), this._domElement.addEventListener("mousemove", this._$onMouseMove, !1), this._domElement.addEventListener("mousedown", this._$onMouseDown, !1), this._domElement.addEventListener("mouseup", this._$onMouseUp, !1), this._domElement.addEventListener("touchmove", this._$onTouchMove, !1), this._domElement.addEventListener("touchstart", this._$onTouchStart, !1), this._domElement.addEventListener("touchend", this._$onTouchEnd, !1), this._domElement.addEventListener("contextmenu", this._$onContextmenu, !1);
24
- }
25
- n.prototype.destroy = function() {
26
- this._domElement.removeEventListener("click", this._$onClick, !1), this._domElement.removeEventListener("dblclick", this._$onDblClick, !1), this._domElement.removeEventListener("mousemove", this._$onMouseMove, !1), this._domElement.removeEventListener("mousedown", this._$onMouseDown, !1), this._domElement.removeEventListener("mouseup", this._$onMouseUp, !1), this._domElement.removeEventListener("touchmove", this._$onTouchMove, !1), this._domElement.removeEventListener("touchstart", this._$onTouchStart, !1), this._domElement.removeEventListener("touchend", this._$onTouchEnd, !1), this._domElement.removeEventListener("contextmenu", this._$onContextmenu, !1);
27
- };
28
- n.eventNames = [
29
- "click",
30
- "dblclick",
31
- "mouseover",
32
- "mouseout",
33
- "mousemove",
34
- "mousedown",
35
- "mouseup",
36
- "contextmenu",
37
- "touchstart",
38
- "touchend"
39
- ];
40
- n.prototype._getRelativeMouseXY = function(t) {
41
- var e = t.target || t.srcElement;
42
- e.nodeType === 3 && (e = e.parentNode);
43
- var o = { x: 0, y: 0 }, i = e, s = getComputedStyle(i, null);
44
- o.y += parseInt(s.getPropertyValue("padding-top"), 10), o.x += parseInt(s.getPropertyValue("padding-left"), 10);
45
- do
46
- o.x += i.offsetLeft, o.y += i.offsetTop, s = getComputedStyle(i, null), o.x += parseInt(s.getPropertyValue("border-left-width"), 10), o.y += parseInt(s.getPropertyValue("border-top-width"), 10);
47
- while (i = i.offsetParent);
48
- var r = {
49
- width: e === window ? window.innerWidth : e.offsetWidth,
50
- height: e === window ? window.innerHeight : e.offsetHeight
51
- };
52
- return {
53
- x: Number((t.pageX - o.x) / r.width) * 2 - 1,
54
- y: -((t.pageY - o.y) / r.height) * 2 + 1
55
- };
56
- };
57
- n.prototype._objectCtxInit = function(t) {
58
- t._3xDomEvent = {};
59
- };
60
- n.prototype._objectCtxDeinit = function(t) {
61
- delete t._3xDomEvent;
62
- };
63
- n.prototype._objectCtxIsInit = function(t) {
64
- return !!t._3xDomEvent;
65
- };
66
- n.prototype._objectCtxGet = function(t) {
67
- return t._3xDomEvent;
68
- };
69
- n.prototype.camera = function(t) {
70
- return t && (this._camera = t), this._camera;
71
- };
72
- n.prototype.bind = function(t, e, o, i) {
73
- console.assert(n.eventNames.indexOf(e) !== -1, "not available events:" + e), this._objectCtxIsInit(t) || this._objectCtxInit(t);
74
- var s = this._objectCtxGet(t);
75
- s[e + "Handlers"] || (s[e + "Handlers"] = []), s[e + "Handlers"].push({
76
- callback: o,
77
- useCapture: i
78
- }), this._boundObjs[e] === void 0 && (this._boundObjs[e] = []), this._boundObjs[e].push(t);
79
- };
80
- n.prototype.addEventListener = n.prototype.bind;
81
- n.prototype.unbind = function(t, e, o, i) {
82
- console.assert(n.eventNames.indexOf(e) !== -1, "not available events:" + e), this._objectCtxIsInit(t) || this._objectCtxInit(t);
83
- var s = this._objectCtxGet(t);
84
- s[e + "Handlers"] || (s[e + "Handlers"] = []);
85
- for (var r = s[e + "Handlers"], a = 0; a < r.length; a++) {
86
- var u = r[a];
87
- if (o == u.callback && i == u.useCapture) {
88
- r.splice(a, 1);
89
- break;
90
- }
91
- }
92
- var h = this._boundObjs[e].indexOf(t);
93
- console.assert(h !== -1), this._boundObjs[e].splice(h, 1);
94
- };
95
- n.prototype.removeEventListener = n.prototype.unbind;
96
- n.prototype._bound = function(t, e) {
97
- var o = this._objectCtxGet(e);
98
- return o ? !!o[t + "Handlers"] : !1;
99
- };
100
- n.prototype._onMove = function(t, e, o, i) {
101
- var s = this._boundObjs[t];
102
- if (!(s === void 0 || s.length === 0)) {
103
- var r = new f.Vector2();
104
- r.set(e, o), this._raycaster.setFromCamera(r, this._camera);
105
- var a = this._raycaster.intersectObjects(s), u = this._selected;
106
- if (a.length > 0) {
107
- var h, l, c, p = a[0], _ = p.object;
108
- this._selected = _, c = this._bound("mousemove", _), u != _ && (h = this._bound("mouseover", _), l = u && this._bound("mouseout", u));
109
- } else
110
- l = u && this._bound("mouseout", u), this._selected = null;
111
- c && this._notify("mousemove", _, i, p), h && this._notify("mouseover", _, i, p), l && this._notify("mouseout", u, i, p);
112
- }
113
- };
114
- n.prototype._onEvent = function(t, e, o, i) {
115
- var s = this._boundObjs[t];
116
- if (!(s === void 0 || s.length === 0)) {
117
- var r = new f.Vector2();
118
- r.set(e, o), this._raycaster.setFromCamera(r, this._camera);
119
- var a = this._raycaster.intersectObjects(s, !0);
120
- if (a.length !== 0) {
121
- for (var u = a[0], h = u.object, l = this._objectCtxGet(h), c = h.parent; typeof l == "undefined" && c; )
122
- l = this._objectCtxGet(c), c = c.parent;
123
- !l || this._notify(t, h, i, u);
124
- }
125
- }
126
- };
127
- n.prototype._notify = function(t, e, o, i) {
128
- var s = this._objectCtxGet(e), r = s ? s[t + "Handlers"] : null;
129
- if (console.assert(arguments.length === 4), !s || !r || r.length === 0) {
130
- e.parent && this._notify(t, e.parent, o, i);
131
- return;
132
- }
133
- for (var r = s[t + "Handlers"], a = 0; a < r.length; a++) {
134
- var u = r[a], h = !0;
135
- u.callback({
136
- type: t,
137
- target: e,
138
- origDomEvent: o,
139
- intersect: i,
140
- stopPropagation: function() {
141
- h = !1;
142
- }
143
- }), !!h && u.useCapture === !1 && e.parent && this._notify(t, e.parent, o, i);
144
- }
145
- };
146
- n.prototype._onMouseDown = function(t) {
147
- return this._onMouseEvent("mousedown", t);
148
- };
149
- n.prototype._onMouseUp = function(t) {
150
- return this._onMouseEvent("mouseup", t);
151
- };
152
- n.prototype._onMouseEvent = function(t, e) {
153
- var o = this._getRelativeMouseXY(e);
154
- this._onEvent(t, o.x, o.y, e);
155
- };
156
- n.prototype._onMouseMove = function(t) {
157
- var e = this._getRelativeMouseXY(t);
158
- this._onMove("mousemove", e.x, e.y, t), this._onMove("mouseover", e.x, e.y, t), this._onMove("mouseout", e.x, e.y, t);
159
- };
160
- n.prototype._onClick = function(t) {
161
- this._onMouseEvent("click", t);
162
- };
163
- n.prototype._onDblClick = function(t) {
164
- this._onMouseEvent("dblclick", t);
165
- };
166
- n.prototype._onContextmenu = function(t) {
167
- this._onMouseEvent("contextmenu", t);
168
- };
169
- n.prototype._onTouchStart = function(t) {
170
- return this._onTouchEvent("touchstart", t);
171
- };
172
- n.prototype._onTouchEnd = function(t) {
173
- return this._onTouchEvent("touchend", t);
174
- };
175
- n.prototype._onTouchMove = function(t) {
176
- if (t.touches.length == 1) {
177
- t.preventDefault();
178
- var e = Number(t.touches[0].pageX / window.innerWidth) * 2 - 1, o = -(t.touches[0].pageY / window.innerHeight) * 2 + 1;
179
- this._onMove("mousemove", e, o, t), this._onMove("mouseover", e, o, t), this._onMove("mouseout", e, o, t);
180
- }
181
- };
182
- n.prototype._onTouchEvent = function(t, e) {
183
- if (e.touches.length == 1) {
184
- e.preventDefault();
185
- var o = Number(e.touches[0].pageX / window.innerWidth) * 2 - 1, i = -(e.touches[0].pageY / window.innerHeight) * 2 + 1;
186
- this._onEvent(t, o, i, e);
187
- }
188
- };
189
- export {
190
- n as default
191
- };
1
+ "use strict";const d=require("three");function m(t){if(t&&t.__esModule)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const f=m(d);function n(t,e){this._camera=t||null,this._domElement=e||document,this._raycaster=new f.Raycaster,this._selected=null,this._boundObjs={};var o=this;this._$onClick=function(){o._onClick.apply(o,arguments)},this._$onDblClick=function(){o._onDblClick.apply(o,arguments)},this._$onMouseMove=function(){o._onMouseMove.apply(o,arguments)},this._$onMouseDown=function(){o._onMouseDown.apply(o,arguments)},this._$onMouseUp=function(){o._onMouseUp.apply(o,arguments)},this._$onTouchMove=function(){o._onTouchMove.apply(o,arguments)},this._$onTouchStart=function(){o._onTouchStart.apply(o,arguments)},this._$onTouchEnd=function(){o._onTouchEnd.apply(o,arguments)},this._$onContextmenu=function(){o._onContextmenu.apply(o,arguments)},this._domElement.addEventListener("click",this._$onClick,!1),this._domElement.addEventListener("dblclick",this._$onDblClick,!1),this._domElement.addEventListener("mousemove",this._$onMouseMove,!1),this._domElement.addEventListener("mousedown",this._$onMouseDown,!1),this._domElement.addEventListener("mouseup",this._$onMouseUp,!1),this._domElement.addEventListener("touchmove",this._$onTouchMove,!1),this._domElement.addEventListener("touchstart",this._$onTouchStart,!1),this._domElement.addEventListener("touchend",this._$onTouchEnd,!1),this._domElement.addEventListener("contextmenu",this._$onContextmenu,!1)}n.prototype.destroy=function(){this._domElement.removeEventListener("click",this._$onClick,!1),this._domElement.removeEventListener("dblclick",this._$onDblClick,!1),this._domElement.removeEventListener("mousemove",this._$onMouseMove,!1),this._domElement.removeEventListener("mousedown",this._$onMouseDown,!1),this._domElement.removeEventListener("mouseup",this._$onMouseUp,!1),this._domElement.removeEventListener("touchmove",this._$onTouchMove,!1),this._domElement.removeEventListener("touchstart",this._$onTouchStart,!1),this._domElement.removeEventListener("touchend",this._$onTouchEnd,!1),this._domElement.removeEventListener("contextmenu",this._$onContextmenu,!1)};n.eventNames=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","contextmenu","touchstart","touchend"];n.prototype._getRelativeMouseXY=function(t){var e=t.target||t.srcElement;e.nodeType===3&&(e=e.parentNode);var o={x:0,y:0},i=e,s=getComputedStyle(i,null);o.y+=parseInt(s.getPropertyValue("padding-top"),10),o.x+=parseInt(s.getPropertyValue("padding-left"),10);do o.x+=i.offsetLeft,o.y+=i.offsetTop,s=getComputedStyle(i,null),o.x+=parseInt(s.getPropertyValue("border-left-width"),10),o.y+=parseInt(s.getPropertyValue("border-top-width"),10);while(i=i.offsetParent);var r={width:e===window?window.innerWidth:e.offsetWidth,height:e===window?window.innerHeight:e.offsetHeight};return{x:Number((t.pageX-o.x)/r.width)*2-1,y:-((t.pageY-o.y)/r.height)*2+1}};n.prototype._objectCtxInit=function(t){t._3xDomEvent={}};n.prototype._objectCtxDeinit=function(t){delete t._3xDomEvent};n.prototype._objectCtxIsInit=function(t){return!!t._3xDomEvent};n.prototype._objectCtxGet=function(t){return t._3xDomEvent};n.prototype.camera=function(t){return t&&(this._camera=t),this._camera};n.prototype.bind=function(t,e,o,i){console.assert(n.eventNames.indexOf(e)!==-1,"not available events:"+e),this._objectCtxIsInit(t)||this._objectCtxInit(t);var s=this._objectCtxGet(t);s[e+"Handlers"]||(s[e+"Handlers"]=[]),s[e+"Handlers"].push({callback:o,useCapture:i}),this._boundObjs[e]===void 0&&(this._boundObjs[e]=[]),this._boundObjs[e].push(t)};n.prototype.addEventListener=n.prototype.bind;n.prototype.unbind=function(t,e,o,i){console.assert(n.eventNames.indexOf(e)!==-1,"not available events:"+e),this._objectCtxIsInit(t)||this._objectCtxInit(t);var s=this._objectCtxGet(t);s[e+"Handlers"]||(s[e+"Handlers"]=[]);for(var r=s[e+"Handlers"],a=0;a<r.length;a++){var u=r[a];if(o==u.callback&&i==u.useCapture){r.splice(a,1);break}}var h=this._boundObjs[e].indexOf(t);console.assert(h!==-1),this._boundObjs[e].splice(h,1)};n.prototype.removeEventListener=n.prototype.unbind;n.prototype._bound=function(t,e){var o=this._objectCtxGet(e);return o?!!o[t+"Handlers"]:!1};n.prototype._onMove=function(t,e,o,i){var s=this._boundObjs[t];if(!(s===void 0||s.length===0)){var r=new f.Vector2;r.set(e,o),this._raycaster.setFromCamera(r,this._camera);var a=this._raycaster.intersectObjects(s),u=this._selected;if(a.length>0){var h,c,l,p=a[0],_=p.object;this._selected=_,l=this._bound("mousemove",_),u!=_&&(h=this._bound("mouseover",_),c=u&&this._bound("mouseout",u))}else c=u&&this._bound("mouseout",u),this._selected=null;l&&this._notify("mousemove",_,i,p),h&&this._notify("mouseover",_,i,p),c&&this._notify("mouseout",u,i,p)}};n.prototype._onEvent=function(t,e,o,i){var s=this._boundObjs[t];if(!(s===void 0||s.length===0)){var r=new f.Vector2;r.set(e,o),this._raycaster.setFromCamera(r,this._camera);var a=this._raycaster.intersectObjects(s,!0);if(a.length!==0){for(var u=a[0],h=u.object,c=this._objectCtxGet(h),l=h.parent;typeof c=="undefined"&&l;)c=this._objectCtxGet(l),l=l.parent;!c||this._notify(t,h,i,u)}}};n.prototype._notify=function(t,e,o,i){var s=this._objectCtxGet(e),r=s?s[t+"Handlers"]:null;if(console.assert(arguments.length===4),!s||!r||r.length===0){e.parent&&this._notify(t,e.parent,o,i);return}for(var r=s[t+"Handlers"],a=0;a<r.length;a++){var u=r[a],h=!0;u.callback({type:t,target:e,origDomEvent:o,intersect:i,stopPropagation:function(){h=!1}}),!!h&&u.useCapture===!1&&e.parent&&this._notify(t,e.parent,o,i)}};n.prototype._onMouseDown=function(t){return this._onMouseEvent("mousedown",t)};n.prototype._onMouseUp=function(t){return this._onMouseEvent("mouseup",t)};n.prototype._onMouseEvent=function(t,e){var o=this._getRelativeMouseXY(e);this._onEvent(t,o.x,o.y,e)};n.prototype._onMouseMove=function(t){var e=this._getRelativeMouseXY(t);this._onMove("mousemove",e.x,e.y,t),this._onMove("mouseover",e.x,e.y,t),this._onMove("mouseout",e.x,e.y,t)};n.prototype._onClick=function(t){this._onMouseEvent("click",t)};n.prototype._onDblClick=function(t){this._onMouseEvent("dblclick",t)};n.prototype._onContextmenu=function(t){this._onMouseEvent("contextmenu",t)};n.prototype._onTouchStart=function(t){return this._onTouchEvent("touchstart",t)};n.prototype._onTouchEnd=function(t){return this._onTouchEvent("touchend",t)};n.prototype._onTouchMove=function(t){if(t.touches.length==1){t.preventDefault();var e=Number(t.touches[0].pageX/window.innerWidth)*2-1,o=-(t.touches[0].pageY/window.innerHeight)*2+1;this._onMove("mousemove",e,o,t),this._onMove("mouseover",e,o,t),this._onMove("mouseout",e,o,t)}};n.prototype._onTouchEvent=function(t,e){if(e.touches.length==1){e.preventDefault();var o=Number(e.touches[0].pageX/window.innerWidth)*2-1,i=-(e.touches[0].pageY/window.innerHeight)*2+1;this._onEvent(t,o,i,e)}};exports.DomEvents=n;
@@ -1,6 +1 @@
1
- function u(a, c) {
2
- return !(Math.abs(a.x - c.x) > 1e-5 || Math.abs(a.y - c.y) > 1e-5 || Math.abs(a.z - c.z) > 1e-5);
3
- }
4
- export {
5
- u as vectorIsEqual
6
- };
1
+ "use strict";function u(a,c){return!(Math.abs(a.x-c.x)>1e-5||Math.abs(a.y-c.y)>1e-5||Math.abs(a.z-c.z)>1e-5)}exports.vectorIsEqual=u;
@@ -1,50 +1 @@
1
- function v(f) {
2
- return typeof Symbol == "undefined" ? `$Symbol<${f}>$` : Symbol(f);
3
- }
4
- const i = v("$$EVENT$$");
5
- function r(f) {
6
- return f[i] || (f[i] = {}), f[i];
7
- }
8
- function d(f) {
9
- f[i] || delete f[i];
10
- }
11
- class E {
12
- hasListener(t) {
13
- const e = r(this);
14
- return Boolean((e == null ? void 0 : e[t]) && e[t].length > 0);
15
- }
16
- on(t, e, o) {
17
- const s = r(this);
18
- return s[t] || (s[t] = []), s[t].push([e, o || !1]), () => this.off(t, e);
19
- }
20
- once(t, e) {
21
- return this.on(t, e, !0);
22
- }
23
- off(t, e) {
24
- if (t === void 0) {
25
- d(this);
26
- return;
27
- }
28
- const o = r(this);
29
- if (o[t] || (o[t] = []), e === void 0) {
30
- o[t].length = 0;
31
- return;
32
- }
33
- let s = 0;
34
- for (; s < o[t].length && o[t][s][0] !== e; s++)
35
- ;
36
- s < o[t].length && o[t].splice(s, 1);
37
- }
38
- emit(t, ...e) {
39
- let o = !1;
40
- const l = r(this)[t] || [];
41
- for (let u of l.slice()) {
42
- const [n, c = !1] = u, h = n(...e);
43
- c && this.off(t, n), h === !1 && (o = !0);
44
- }
45
- return o;
46
- }
47
- }
48
- export {
49
- E as Subscribe
50
- };
1
+ "use strict";function v(s){return typeof Symbol=="undefined"?`$Symbol<${s}>$`:Symbol(s)}const i=v("$$EVENT$$");function r(s){return s[i]||(s[i]={}),s[i]}function b(s){s[i]||delete s[i]}class d{hasListener(t){const e=r(this);return Boolean((e==null?void 0:e[t])&&e[t].length>0)}on(t,e,o){const f=r(this);return f[t]||(f[t]=[]),f[t].push([e,o||!1]),()=>this.off(t,e)}once(t,e){return this.on(t,e,!0)}off(t,e){if(t===void 0){b(this);return}const o=r(this);if(o[t]||(o[t]=[]),e===void 0){o[t].length=0;return}let f=0;for(;f<o[t].length&&o[t][f][0]!==e;f++);f<o[t].length&&o[t].splice(f,1)}emit(t,...e){let o=!1;const l=r(this)[t]||[];for(let u of l.slice()){const[n,c=!1]=u,h=n(...e);c&&this.off(t,n),h===!1&&(o=!0)}return o}}exports.Subscribe=d;
@@ -1,26 +1 @@
1
- var n = Object.defineProperty;
2
- var a = (t, e, s) => e in t ? n(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
- var i = (t, e, s) => (a(t, typeof e != "symbol" ? e + "" : e, s), s);
4
- import o from "@tweenjs/tween.js";
5
- import { requestAnimationFrameInterval as p } from "./index.js";
6
- class h extends o.Tween {
7
- constructor() {
8
- super(...arguments);
9
- i(this, "disposeMethods", []);
10
- i(this, "animationFrameDisposer");
11
- i(this, "onDispose", (s) => (this.disposeMethods.push(s), this));
12
- i(this, "play", () => (this.start(0), this.animationFrameDisposer = p((s) => this.update(s)), this));
13
- i(this, "dispose", () => {
14
- var s;
15
- this.stop(), (s = this.animationFrameDisposer) == null || s.call(this), this.disposeMethods.forEach((r) => r()), this.disposeMethods = [], o.remove(this);
16
- });
17
- }
18
- }
19
- function f(t, e = o.Easing.Linear.None) {
20
- const s = new h({ progress: 0 }).to({ progress: 1 });
21
- return t !== void 0 && s.duration(t), e !== void 0 && s.easing(e), s;
22
- }
23
- export {
24
- h as BetterTween,
25
- f as tweenProgress
26
- };
1
+ "use strict";var a=Object.defineProperty;var d=(s,t,e)=>t in s?a(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var i=(s,t,e)=>(d(s,typeof t!="symbol"?t+"":t,e),e);const h=require("@tweenjs/tween.js"),p=require("./index.js"),u=s=>s&&typeof s=="object"&&"default"in s?s:{default:s},n=u(h);class o extends n.default.Tween{constructor(){super(...arguments);i(this,"disposeMethods",[]);i(this,"animationFrameDisposer");i(this,"onDispose",e=>(this.disposeMethods.push(e),this));i(this,"play",()=>(this.start(0),this.animationFrameDisposer=p.requestAnimationFrameInterval(e=>this.update(e)),this));i(this,"dispose",()=>{var e;this.stop(),(e=this.animationFrameDisposer)==null||e.call(this),this.disposeMethods.forEach(r=>r()),this.disposeMethods=[],n.default.remove(this)})}}function f(s,t=n.default.Easing.Linear.None){const e=new o({progress:0}).to({progress:1});return s!==void 0&&e.duration(s),t!==void 0&&e.easing(t),e}exports.BetterTween=o;exports.tweenProgress=f;
@@ -1,6 +1 @@
1
- function t(r, e, n) {
2
- return r + (e - r) * n;
3
- }
4
- export {
5
- t as progressNumber
6
- };
1
+ "use strict";function u(r,e,s){return r+(e-r)*s}exports.progressNumber=u;
@@ -1,11 +1 @@
1
- const t = Math.PI * 2;
2
- function o(n) {
3
- return (n % t + t) % t;
4
- }
5
- function r(n) {
6
- return n % t;
7
- }
8
- export {
9
- r as formatLatitude,
10
- o as formatLongitude
11
- };
1
+ "use strict";const t=Math.PI*2;function o(n){return(n%t+t)%t}function r(n){return n%t}exports.formatLatitude=r;exports.formatLongitude=o;
@@ -1,31 +1 @@
1
- import { BetterTween as d, tweenProgress as A } from "./BetterTween.js";
2
- const o = window.requestAnimationFrame || ((e) => setTimeout(e, 16)), u = window.cancelAnimationFrame || clearTimeout;
3
- function c(e, t = 0) {
4
- t <= 0 ? o(e) : o(() => c(e, t - 1));
5
- }
6
- function w(e, t = 60) {
7
- let i = -1, a = 0, r = -1;
8
- const s = 1e3 / t;
9
- function m(n) {
10
- r === -1 && (r = n), i = o(m), !(n - a < s) && (a = n, e && e(n - r));
11
- }
12
- return i = o(m), function() {
13
- u(i);
14
- };
15
- }
16
- function T() {
17
- const e = Date.now();
18
- return new Promise((t) => {
19
- o(() => {
20
- t(Date.now() - e);
21
- });
22
- });
23
- }
24
- export {
25
- d as BetterTween,
26
- o as default,
27
- T as getFrameTime,
28
- c as nextFrame,
29
- w as requestAnimationFrameInterval,
30
- A as tweenProgress
31
- };
1
+ "use strict";require("./BetterTween.js");const i=window.requestAnimationFrame||(e=>setTimeout(e,16)),c=window.cancelAnimationFrame||clearTimeout;function s(e,t=0){t<=0?i(e):i(()=>s(e,t-1))}function l(e,t=60){let r=-1,a=0,o=-1;const u=1e3/t;function m(n){o===-1&&(o=n),r=i(m),!(n-a<u)&&(a=n,e&&e(n-o))}return r=i(m),function(){c(r)}}function F(){const e=Date.now();return new Promise(t=>{i(()=>{t(Date.now()-e)})})}exports.getFrameTime=F;exports.nextFrame=s;exports.requestAnimationFrameInterval=l;
@@ -1,30 +1 @@
1
- import * as a from "@tweenjs/tween.js";
2
- import { nextFrame as c, requestAnimationFrameInterval as u } from "./index.js";
3
- const p = a.Easing;
4
- function m(n, o, l, i = p.Linear.None) {
5
- const e = new a.Tween(n).to(o, l).easing(i);
6
- c(() => e.start(0));
7
- const r = u((t) => {
8
- e.update(t) === !1 && r();
9
- }), s = [];
10
- return e.onDestroy = (t) => (s.push(t), e), e.destroy = function() {
11
- this.stop(), Object.assign(e, {
12
- _onStartCallback: null,
13
- _onUpdateCallback: null,
14
- _onCompleteCallback: null,
15
- _onStopCallbackL: null
16
- });
17
- let t;
18
- for (; t = s.shift(); )
19
- t();
20
- r();
21
- }, e;
22
- }
23
- function d(n, o) {
24
- return m({ progress: 0 }, { progress: 1 }, n, o);
25
- }
26
- export {
27
- p as Easing,
28
- m as default,
29
- d as tweenProgress
30
- };
1
+ "use strict";const u=require("@tweenjs/tween.js"),l=require("./index.js");function d(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const c=d(u),f=c.Easing;function p(e,t,r,s=f.Linear.None){const n=new c.Tween(e).to(t,r).easing(s);l.nextFrame(()=>n.start(0));const a=l.requestAnimationFrameInterval(o=>{n.update(o)===!1&&a()}),i=[];return n.onDestroy=o=>(i.push(o),n),n.destroy=function(){this.stop(),Object.assign(n,{_onStartCallback:null,_onUpdateCallback:null,_onCompleteCallback:null,_onStopCallbackL:null});let o;for(;o=i.shift();)o();a()},n}function g(e,t){return p({progress:0},{progress:1},e,t)}exports.tweenProgress=g;