@realsee/dnalogel 2.1.2-alpha.1 → 2.1.2-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (620) hide show
  1. package/dist/CSS3DRenderPlugin/index..js +88 -0
  2. package/dist/CSS3DRenderPlugin/index.cjs.js +1 -0
  3. package/dist/CameraMovementPlugin/index..js +11 -0
  4. package/dist/CameraMovementPlugin/index.cjs.js +1 -0
  5. package/dist/CruisePlugin/index..js +527 -0
  6. package/dist/CruisePlugin/index.cjs.js +1 -0
  7. package/dist/GuideLinePlugin/index..js +214 -0
  8. package/dist/GuideLinePlugin/index.cjs.js +1 -0
  9. package/dist/ItemLabelPlugin/index..js +508 -0
  10. package/dist/ItemLabelPlugin/index.cjs.js +10 -0
  11. package/dist/ModelChassisCompassPlugin/index..js +9 -0
  12. package/dist/ModelChassisCompassPlugin/index.cjs.js +1 -0
  13. package/dist/ModelEntryDoorGuidePlugin/index..js +9 -0
  14. package/dist/ModelEntryDoorGuidePlugin/index.cjs.js +1 -0
  15. package/dist/ModelItemLabelPlugin/index..js +334 -0
  16. package/dist/ModelItemLabelPlugin/index.cjs.js +10 -0
  17. package/dist/ModelRoomLabelPlugin/index..js +274 -0
  18. package/dist/ModelRoomLabelPlugin/index.cjs.js +1 -0
  19. package/dist/ModelTVVideoPlugin/index..js +12 -0
  20. package/dist/ModelTVVideoPlugin/index.cjs.js +1 -0
  21. package/dist/ModelViewPlugin/index..js +8 -0
  22. package/dist/ModelViewPlugin/index.cjs.js +1 -0
  23. package/dist/Object3DHelperPlugin/index..js +1414 -0
  24. package/dist/Object3DHelperPlugin/index.cjs.js +1 -0
  25. package/dist/PanoCompassPlugin/index..js +258 -0
  26. package/dist/PanoCompassPlugin/index.cjs.js +1 -0
  27. package/dist/PanoCursorRaycasterPlugin/index..js +63 -0
  28. package/dist/PanoCursorRaycasterPlugin/index.cjs.js +1 -0
  29. package/dist/PanoDoorLabelPlugin/index..js +340 -0
  30. package/dist/PanoDoorLabelPlugin/index.cjs.js +1 -0
  31. package/dist/PanoMeasurePlugin/index..js +15 -0
  32. package/dist/PanoMeasurePlugin/index.cjs.js +1 -0
  33. package/dist/PanoRulerPlugin/index..js +9 -0
  34. package/dist/PanoRulerPlugin/index.cjs.js +1 -0
  35. package/dist/PanoRulerProPlugin/index..js +395 -0
  36. package/dist/PanoRulerProPlugin/index.cjs.js +1 -0
  37. package/dist/PanoSpatialTagPlugin/index..js +15 -0
  38. package/dist/PanoSpatialTagPlugin/index.cjs.js +1 -0
  39. package/dist/PanoTagPlugin/index..js +4522 -0
  40. package/dist/PanoTagPlugin/index.cjs.js +17 -0
  41. package/dist/chunks/cjs/BasePlugin.57e5204f.cjs.js +1 -0
  42. package/dist/chunks/cjs/BasePluginWithData.0a28882d.cjs.js +1 -0
  43. package/dist/chunks/cjs/CSS3DRender.15349564.cjs.js +1 -0
  44. package/dist/chunks/cjs/CameraMovementPlugin.2b342576.cjs.js +1 -0
  45. package/dist/chunks/cjs/Plugin.5f616fb3.cjs.js +1 -0
  46. package/dist/chunks/cjs/Plugin.609da4aa.cjs.js +94 -0
  47. package/dist/chunks/cjs/Plugin.67936d0e.cjs.js +16 -0
  48. package/dist/chunks/cjs/Plugin.8a110c53.cjs.js +1 -0
  49. package/dist/chunks/cjs/Plugin.9971108a.cjs.js +1 -0
  50. package/dist/chunks/cjs/Plugin.fd42bf8a.cjs.js +1 -0
  51. package/dist/chunks/cjs/Subscribe.5398d5c6.cjs.js +1 -0
  52. package/dist/chunks/cjs/changeModelCanvasOpacity.8d84f111.cjs.js +1 -0
  53. package/dist/chunks/cjs/correctFiveState.4c8472bd.cjs.js +1 -0
  54. package/dist/chunks/cjs/debounce.93dfb637.cjs.js +1 -0
  55. package/dist/chunks/cjs/equal.e9fcbd4e.cjs.js +1 -0
  56. package/dist/chunks/cjs/filter.cf9ebbb3.cjs.js +1 -0
  57. package/dist/chunks/cjs/formatData.81e95011.cjs.js +10 -0
  58. package/dist/chunks/cjs/index.30b7baeb.cjs.js +101 -0
  59. package/dist/chunks/cjs/index.686e84d1.cjs.js +290 -0
  60. package/dist/chunks/cjs/index.7d2010ce.cjs.js +1 -0
  61. package/dist/chunks/cjs/isNil.b3a58990.cjs.js +1 -0
  62. package/dist/chunks/cjs/planimetry.7fce816a.cjs.js +1 -0
  63. package/dist/chunks/cjs/throttle.86c209eb.cjs.js +1 -0
  64. package/dist/chunks/cjs/transfromToMeshBasicMaterial.9db6d46a.cjs.js +1 -0
  65. package/dist/chunks/cjs/uuid.29ed9c88.cjs.js +1 -0
  66. package/dist/chunks/es/BasePlugin.813e25f7.es.js +18 -0
  67. package/dist/chunks/es/BasePluginWithData.4bf4e649.es.js +6 -0
  68. package/dist/chunks/es/CSS3DRender.5652510e.es.js +393 -0
  69. package/dist/chunks/es/CameraMovementPlugin.4a7c3e46.es.js +120 -0
  70. package/dist/chunks/es/Plugin.26c2df05.es.js +106 -0
  71. package/dist/chunks/es/Plugin.435485ed.es.js +584 -0
  72. package/dist/chunks/es/Plugin.a98418f0.es.js +82 -0
  73. package/dist/chunks/es/Plugin.ae4ee6f8.es.js +82 -0
  74. package/dist/chunks/es/Plugin.dd11e0ad.es.js +180 -0
  75. package/dist/chunks/es/Plugin.f4cf895f.es.js +355 -0
  76. package/dist/chunks/es/Subscribe.c73e0f91.es.js +50 -0
  77. package/dist/chunks/es/changeModelCanvasOpacity.45ef9fd6.es.js +1551 -0
  78. package/dist/chunks/es/correctFiveState.e7feab9f.es.js +66 -0
  79. package/dist/chunks/es/debounce.ef83f417.es.js +11 -0
  80. package/dist/chunks/es/equal.7db4a6f7.es.js +56 -0
  81. package/dist/chunks/es/filter.97ec06c4.es.js +12 -0
  82. package/dist/chunks/es/formatData.a2b39ef9.es.js +483 -0
  83. package/dist/chunks/es/index.a273f06e.es.js +532 -0
  84. package/dist/chunks/es/index.b8fdb59b.es.js +50 -0
  85. package/dist/chunks/es/index.f74f4851.es.js +1787 -0
  86. package/dist/chunks/es/isNil.212842d9.es.js +10 -0
  87. package/dist/chunks/es/planimetry.b0b4a28d.es.js +43 -0
  88. package/dist/chunks/es/throttle.db66bac3.es.js +11 -0
  89. package/dist/chunks/es/transfromToMeshBasicMaterial.849ee069.es.js +24 -0
  90. package/dist/chunks/es/uuid.676cb2c8.es.js +9 -0
  91. package/dist/components/PaintBrush/index..js +6 -0
  92. package/dist/components/PaintBrush/index.cjs.js +1 -0
  93. package/dist/components/index..js +7 -0
  94. package/dist/components/index.cjs.js +1 -0
  95. package/dist/floorplan/MapviewFloorplanPlugin/index..js +324 -0
  96. package/dist/floorplan/MapviewFloorplanPlugin/index.cjs.js +1 -0
  97. package/dist/floorplan/ModelFloorplanPlugin/index..js +320 -0
  98. package/dist/floorplan/ModelFloorplanPlugin/index.cjs.js +1 -0
  99. package/dist/floorplan/PanoFloorplanRadarPlugin/index..js +613 -0
  100. package/dist/floorplan/PanoFloorplanRadarPlugin/index.cjs.js +1 -0
  101. package/dist/floorplan/TopviewFloorplanPlugin/index..js +277 -0
  102. package/dist/floorplan/TopviewFloorplanPlugin/index.cjs.js +1 -0
  103. package/dist/index..js +530 -0
  104. package/dist/index.cjs.js +3 -543
  105. package/docs/classes/CruisePluginController.html +24 -24
  106. package/docs/classes/Magnifier.html +16 -16
  107. package/docs/classes/ModelRoomLabelController.html +11 -11
  108. package/docs/classes/Object3DHelperController.html +24 -24
  109. package/docs/classes/PaintBrush.html +15 -15
  110. package/docs/classes/PanoTagPluginController.html +39 -39
  111. package/docs/classes/Util.BetterTween.html +8 -8
  112. package/docs/classes/Util.FivePointSelector.html +12 -12
  113. package/docs/classes/Util.Interval.html +12 -12
  114. package/docs/classes/Util.Magnifier.html +17 -17
  115. package/docs/classes/Util.PointDomHelper.html +11 -11
  116. package/docs/classes/Util.PointHelper.html +11 -11
  117. package/docs/classes/Util.Rectangle.html +13 -13
  118. package/docs/enums/CameraMovementEffect.html +7 -7
  119. package/docs/enums/ContentType.html +12 -12
  120. package/docs/enums/DIRECTION.html +9 -9
  121. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  122. package/docs/enums/DimensionType.html +7 -7
  123. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  124. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  125. package/docs/enums/LinkType.html +7 -7
  126. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  127. package/docs/enums/PointType.html +7 -7
  128. package/docs/enums/Rotation.html +8 -8
  129. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  130. package/docs/functions/CameraMovementPlugin.html +4 -4
  131. package/docs/functions/CruisePlugin.html +4 -4
  132. package/docs/functions/GuideLinePlugin.html +5 -5
  133. package/docs/functions/ItemLabelPlugin.html +4 -4
  134. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  135. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  136. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  137. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  138. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  139. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  140. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  141. package/docs/functions/ModelViewPlugin.html +4 -4
  142. package/docs/functions/Object3DHelperPlugin.html +4 -4
  143. package/docs/functions/PanoCompassPlugin.html +4 -4
  144. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  145. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  146. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  147. package/docs/functions/PanoMeasurePlugin.html +4 -4
  148. package/docs/functions/PanoRulerPlugin.html +4 -4
  149. package/docs/functions/PanoRulerProPlugin.html +4 -4
  150. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  151. package/docs/functions/PanoTagPlugin.html +4 -4
  152. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  153. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  154. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  155. package/docs/functions/Util.getFrameTime.html +5 -5
  156. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  157. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  158. package/docs/functions/Util.isNil.html +5 -5
  159. package/docs/functions/Util.nextFrame.html +5 -5
  160. package/docs/functions/Util.notNil.html +5 -5
  161. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  162. package/docs/functions/Util.tweenProgress.html +5 -5
  163. package/docs/functions/pluginFlag.html +5 -5
  164. package/docs/index.html +4 -4
  165. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  166. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  167. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  168. package/docs/interfaces/ContentTypeMap.html +12 -12
  169. package/docs/interfaces/FloorplanBounding.html +8 -8
  170. package/docs/interfaces/FloorplanData.html +10 -10
  171. package/docs/interfaces/FloorplanEntrance.html +11 -11
  172. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  173. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  174. package/docs/interfaces/FloorplanFloorData.html +9 -9
  175. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  176. package/docs/interfaces/FloorplanObserver.html +9 -9
  177. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  178. package/docs/interfaces/FloorplanPosition.html +7 -7
  179. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  180. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  181. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  182. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  183. package/docs/interfaces/FloorplanServerData.html +7 -7
  184. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  185. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  186. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  187. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  188. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  189. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  190. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  191. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  192. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  193. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  194. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  195. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  196. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  197. package/docs/interfaces/LineJson.html +7 -7
  198. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  199. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  200. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  201. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  202. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  203. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  204. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  205. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  206. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  207. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  208. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  209. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  210. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  211. package/docs/interfaces/Object3DHelperState.html +8 -8
  212. package/docs/interfaces/OpenParameter.html +7 -7
  213. package/docs/interfaces/PaintBrushAction.html +12 -12
  214. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  215. package/docs/interfaces/PaintBrushState.html +10 -10
  216. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  217. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  218. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  219. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  220. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  221. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  222. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  223. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  224. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  225. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  226. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  227. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  228. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  229. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  230. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  231. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  232. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  233. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  234. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  235. package/docs/interfaces/Point.html +8 -8
  236. package/docs/interfaces/PointJson.html +8 -8
  237. package/docs/interfaces/Room.html +9 -9
  238. package/docs/interfaces/RoomInfo.html +7 -7
  239. package/docs/interfaces/RoomLabel.html +14 -14
  240. package/docs/interfaces/RoomRules.html +5 -5
  241. package/docs/interfaces/Rooms.html +5 -5
  242. package/docs/interfaces/Scissor.html +9 -9
  243. package/docs/interfaces/TagConfig.html +10 -10
  244. package/docs/interfaces/Tags.html +9 -9
  245. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  246. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  247. package/docs/modules/Util.html +5 -5
  248. package/docs/modules.html +4 -4
  249. package/docs/types/ArrayPosition.html +5 -5
  250. package/docs/types/CSS3DRenderExportType.html +5 -5
  251. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  252. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  253. package/docs/types/Color.html +5 -5
  254. package/docs/types/ContentTypeConfigKey.html +5 -5
  255. package/docs/types/ContentTypeConfigKeyArray.html +5 -5
  256. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  257. package/docs/types/Create3DElementReturnType.html +5 -5
  258. package/docs/types/CruisePluginExportType.html +5 -5
  259. package/docs/types/Direction-1.html +5 -5
  260. package/docs/types/Direction4.html +5 -5
  261. package/docs/types/FloorplanRuleLabels.html +5 -5
  262. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  263. package/docs/types/GuideLinePluginExportType.html +5 -5
  264. package/docs/types/HelperEventMap.html +5 -5
  265. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  266. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  267. package/docs/types/MediaData.html +5 -5
  268. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  269. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  270. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  271. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  272. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  273. package/docs/types/MoveArgs.html +5 -5
  274. package/docs/types/MoveOpts.html +5 -5
  275. package/docs/types/Object3DHelperEventMap.html +5 -5
  276. package/docs/types/ObjectFit.html +5 -5
  277. package/docs/types/PaintBrushEventMap.html +5 -5
  278. package/docs/types/PanoCompassPluginData.html +5 -5
  279. package/docs/types/PanoCompassPluginExportType.html +5 -5
  280. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  281. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  282. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  283. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  284. package/docs/types/PanoMeasureReturnType.html +5 -5
  285. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  286. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  287. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  288. package/docs/types/PlaneTag.html +5 -5
  289. package/docs/types/PointTag.html +5 -5
  290. package/docs/types/Position.html +5 -5
  291. package/docs/types/RotateArgs.html +5 -5
  292. package/docs/types/RotateOpts.html +5 -5
  293. package/docs/types/RuleLabelsKey.html +5 -5
  294. package/docs/types/RuleLabelsValue.html +5 -5
  295. package/docs/types/Tag.html +5 -5
  296. package/docs/types/Tag2D.html +5 -5
  297. package/docs/types/Tag3D.html +5 -5
  298. package/docs/types/TagId.html +5 -5
  299. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  300. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  301. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  302. package/docs/variables/PLUGIN.html +5 -5
  303. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  304. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  305. package/docs/variables/VERSION.html +5 -5
  306. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  307. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  308. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  309. package/libs/CSS3DRenderPlugin/CSS3DRender.js +327 -1
  310. package/libs/CSS3DRenderPlugin/Controller.js +83 -1
  311. package/libs/CSS3DRenderPlugin/index.js +5 -1
  312. package/libs/CSS3DRenderPlugin/typing.js +1 -1
  313. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +65 -1
  314. package/libs/CSS3DRenderPlugin/utils/centerPoint.js +10 -1
  315. package/libs/CSS3DRenderPlugin/utils/evenNumber.js +7 -1
  316. package/libs/CSS3DRenderPlugin/utils/index.js +1 -1
  317. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +6 -1
  318. package/libs/CSS3DRenderPlugin/utils/random.js +1 -1
  319. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +87 -1
  320. package/libs/CameraMovementPlugin/index.js +3 -1
  321. package/libs/CameraMovementPlugin/typing.js +5 -1
  322. package/libs/CruisePlugin/Controller.js +484 -1
  323. package/libs/CruisePlugin/index.js +5 -1
  324. package/libs/CruisePlugin/utils/coordinatesAngle.js +8 -1
  325. package/libs/CruisePlugin/utils/coordinatesToVector.js +12 -1
  326. package/libs/CruisePlugin/utils/formatRad.js +7 -1
  327. package/libs/CruisePlugin/utils/linerValue.js +7 -1
  328. package/libs/CruisePlugin/utils/safeCall.js +28 -1
  329. package/libs/CruisePlugin/utils/sleep.js +10 -1
  330. package/libs/CruisePlugin/utils/vectorToCoordinates.js +10 -1
  331. package/libs/GuideLinePlugin/Controller.js +143 -1
  332. package/libs/GuideLinePlugin/index.js +5 -1
  333. package/libs/GuideLinePlugin/utils/getArrowMaterial.js +13 -1
  334. package/libs/GuideLinePlugin/utils/getLineGeometries.js +64 -1
  335. package/libs/ItemLabelPlugin/ItemLabelComponent.js +273 -1
  336. package/libs/ItemLabelPlugin/ItemLabelItem.js +133 -2
  337. package/libs/ItemLabelPlugin/Plugin.js +75 -2
  338. package/libs/ItemLabelPlugin/index.js +12 -1
  339. package/libs/ItemLabelPlugin/typings.js +4 -1
  340. package/libs/ItemLabelPlugin/utils/getLabelTransform.js +4 -1
  341. package/libs/ItemLabelPlugin/utils/getStrokeLength.js +16 -1
  342. package/libs/ItemLabelPlugin/utils/isImpacted.js +10 -1
  343. package/libs/ItemLabelPlugin/utils/parseData.js +21 -1
  344. package/libs/ItemLabelPlugin/utils/transform2RenderData.js +21 -1
  345. package/libs/ModelChassisCompassPlugin/Plugin.js +70 -1
  346. package/libs/ModelChassisCompassPlugin/index.js +2 -1
  347. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +77 -1
  348. package/libs/ModelEntryDoorGuidePlugin/index.js +2 -1
  349. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +213 -1
  350. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +42 -2
  351. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +73 -2
  352. package/libs/ModelItemLabelPlugin/events.type.js +1 -1
  353. package/libs/ModelItemLabelPlugin/index.js +12 -1
  354. package/libs/ModelItemLabelPlugin/typings.js +4 -1
  355. package/libs/ModelItemLabelPlugin/utils/parseData.js +19 -1
  356. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +4 -1
  357. package/libs/ModelRoomLabelPlugin/Controller.js +60 -1
  358. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +45 -1
  359. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +163 -1
  360. package/libs/ModelRoomLabelPlugin/index.js +9 -1
  361. package/libs/ModelRoomLabelPlugin/utils/parseData.js +16 -1
  362. package/libs/ModelTVVideoPlugin/Plugin.js +163 -1
  363. package/libs/ModelTVVideoPlugin/index.js +2 -1
  364. package/libs/ModelTVVideoPlugin/typings.js +4 -1
  365. package/libs/ModelTVVideoPlugin/utils/parseData.js +20 -1
  366. package/libs/ModelViewPlugin/Plugin.js +106 -1
  367. package/libs/ModelViewPlugin/index.js +2 -1
  368. package/libs/Object3DHelperPlugin/Controller.js +145 -1
  369. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +31 -1
  370. package/libs/Object3DHelperPlugin/index.js +5 -1
  371. package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +4 -1
  372. package/libs/PanoCompassPlugin/Controller.js +224 -1
  373. package/libs/PanoCompassPlugin/getRoomInfoInstance.js +24 -1
  374. package/libs/PanoCompassPlugin/index.js +5 -1
  375. package/libs/PanoCursorRaycasterPlugin/index.js +58 -1
  376. package/libs/PanoDoorLabelPlugin/BaseController.js +59 -1
  377. package/libs/PanoDoorLabelPlugin/Controller.js +219 -1
  378. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +65 -1
  379. package/libs/PanoDoorLabelPlugin/index.js +5 -1
  380. package/libs/PanoDoorLabelPlugin/utils.js +23 -1
  381. package/libs/PanoMeasurePlugin/Controller/BaseController.js +53 -1
  382. package/libs/PanoMeasurePlugin/Controller/EditController.js +102 -1
  383. package/libs/PanoMeasurePlugin/Controller/MixedController.js +125 -1
  384. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +33 -1
  385. package/libs/PanoMeasurePlugin/Controller/ViewController.js +90 -1
  386. package/libs/PanoMeasurePlugin/Controller/WatchController.js +154 -1
  387. package/libs/PanoMeasurePlugin/Controller/index.js +140 -1
  388. package/libs/PanoMeasurePlugin/Model/index.js +92 -1
  389. package/libs/PanoMeasurePlugin/Model/line.js +56 -1
  390. package/libs/PanoMeasurePlugin/Model/point.js +30 -1
  391. package/libs/PanoMeasurePlugin/Model/polyline.js +47 -1
  392. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +5 -2
  393. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +4 -1
  394. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +4 -1
  395. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +67 -3
  396. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +28 -1
  397. package/libs/PanoMeasurePlugin/Modules/GuideController.js +41 -1
  398. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +103 -1
  399. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +12 -8
  400. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +50 -1
  401. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +36 -1
  402. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +48 -1
  403. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +8 -3
  404. package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +39 -1
  405. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +62 -1
  406. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +6 -2
  407. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +130 -1
  408. package/libs/PanoMeasurePlugin/index.js +10 -1
  409. package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +12 -1
  410. package/libs/PanoMeasurePlugin/utils/constants.js +36 -1
  411. package/libs/PanoMeasurePlugin/utils/distanceDom.js +62 -1
  412. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +13 -1
  413. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +15 -1
  414. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +9 -1
  415. package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +8 -1
  416. package/libs/PanoMeasurePlugin/utils/ironbox.js +4 -1
  417. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +7 -1
  418. package/libs/PanoMeasurePlugin/utils/line.js +17 -1
  419. package/libs/PanoMeasurePlugin/utils/math.js +12 -1
  420. package/libs/PanoMeasurePlugin/utils/mouseGroup.js +33 -3
  421. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +8 -1
  422. package/libs/PanoRulerPlugin/Plugin.js +262 -2
  423. package/libs/PanoRulerPlugin/index.js +2 -1
  424. package/libs/PanoRulerPlugin/style.js +5 -2
  425. package/libs/PanoRulerProPlugin/Controller.js +93 -1
  426. package/libs/PanoRulerProPlugin/RulerItem.js +128 -1
  427. package/libs/PanoRulerProPlugin/RulerItems.js +183 -1
  428. package/libs/PanoRulerProPlugin/index.js +5 -1
  429. package/libs/PanoSpatialTagPlugin/Components/origins.js +82 -1
  430. package/libs/PanoSpatialTagPlugin/Components/tag.js +125 -1
  431. package/libs/PanoSpatialTagPlugin/Plugin.js +246 -1
  432. package/libs/PanoSpatialTagPlugin/index.js +6 -1
  433. package/libs/PanoSpatialTagPlugin/store.js +5 -1
  434. package/libs/PanoSpatialTagPlugin/style.js +11 -1
  435. package/libs/PanoSpatialTagPlugin/typings.js +1 -1
  436. package/libs/PanoTagPlugin/Assets/Icon.js +6 -1
  437. package/libs/PanoTagPlugin/Components/Common/Arrow.js +103 -1
  438. package/libs/PanoTagPlugin/Components/Common/Audio.js +166 -1
  439. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +93 -1
  440. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +90 -1
  441. package/libs/PanoTagPlugin/Components/Common/Media.js +400 -1
  442. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +139 -1
  443. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +180 -1
  444. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +52 -1
  445. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +52 -1
  446. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +169 -1
  447. package/libs/PanoTagPlugin/Components/Common/Shadow.js +124 -15
  448. package/libs/PanoTagPlugin/Components/Common/Text.js +131 -1
  449. package/libs/PanoTagPlugin/Components/Common/TextItem.js +106 -0
  450. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +140 -1
  451. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +73 -1
  452. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +214 -1
  453. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +127 -1
  454. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +259 -1
  455. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +106 -1
  456. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +134 -1
  457. package/libs/PanoTagPlugin/Components/Tag/index.js +318 -2
  458. package/libs/PanoTagPlugin/Components/TagContainer.js +200 -1
  459. package/libs/PanoTagPlugin/Components/TagWrapper.js +191 -1
  460. package/libs/PanoTagPlugin/controller/TagCacheController.js +31 -1
  461. package/libs/PanoTagPlugin/controller/TagComputer.js +264 -1
  462. package/libs/PanoTagPlugin/controller/index.js +376 -1
  463. package/libs/PanoTagPlugin/index.js +5 -1
  464. package/libs/PanoTagPlugin/tag.config.js +43 -1
  465. package/libs/PanoTagPlugin/typings/controller.js +1 -1
  466. package/libs/PanoTagPlugin/typings/index.js +1 -1
  467. package/libs/PanoTagPlugin/typings/tag.js +7 -1
  468. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +6 -1
  469. package/libs/PanoTagPlugin/utils/addDebugPoints.js +27 -1
  470. package/libs/PanoTagPlugin/utils/checkRange.js +10 -1
  471. package/libs/PanoTagPlugin/utils/constants.js +7 -1
  472. package/libs/PanoTagPlugin/utils/debounce.js +12 -1
  473. package/libs/PanoTagPlugin/utils/doUtil.js +12 -1
  474. package/libs/PanoTagPlugin/utils/index.js +1 -1
  475. package/libs/PanoTagPlugin/utils/noTypecheck.js +4 -1
  476. package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +13 -1
  477. package/libs/PanoTagPlugin/utils/planeNormal.js +11 -1
  478. package/libs/PanoTagPlugin/utils/resizeObserver.js +17 -1
  479. package/libs/PanoTagPlugin/utils/search.js +15 -1
  480. package/libs/PanoTagPlugin/utils/tagPosition.js +13 -1
  481. package/libs/PanoTagPlugin/utils/throttle.js +11 -1
  482. package/libs/base/BasePlugin.js +18 -1
  483. package/libs/base/BasePluginWithData.js +6 -1
  484. package/libs/components/PaintBrush/Controller.js +308 -1
  485. package/libs/components/PaintBrush/Subscribe.js +47 -1
  486. package/libs/components/PaintBrush/index.js +45 -1
  487. package/libs/components/PaintBrush/style.js +5 -2
  488. package/libs/components/PaintBrush/tween.js +11 -1
  489. package/libs/components/PaintBrush/typings.js +4 -1
  490. package/libs/components/PaintBrush/utils.js +45 -1
  491. package/libs/components/index.js +2 -1
  492. package/libs/floorplan/Assets/camera.js +4 -1
  493. package/libs/floorplan/Assets/compass.js +4 -1
  494. package/libs/floorplan/Assets/floorplanExtraObject.js +4 -1
  495. package/libs/floorplan/Components/BaseImage.js +103 -1
  496. package/libs/floorplan/Components/Camera.js +62 -1
  497. package/libs/floorplan/Components/Compass.js +60 -1
  498. package/libs/floorplan/Components/CurrentFloor.js +256 -1
  499. package/libs/floorplan/Components/Main.js +283 -1
  500. package/libs/floorplan/Components/Normalmage.js +37 -1
  501. package/libs/floorplan/Components/RoomHighlight/Room.js +61 -1
  502. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +122 -1
  503. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +153 -1
  504. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +175 -1
  505. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +196 -1
  506. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +37 -1
  507. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +39 -1
  508. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +37 -1
  509. package/libs/floorplan/Components/RuleLabels/RuleItem.js +134 -1
  510. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +139 -1
  511. package/libs/floorplan/Components/SvgImage.js +39 -2
  512. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +321 -1
  513. package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -1
  514. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +316 -1
  515. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -1
  516. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +85 -1
  517. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +133 -1
  518. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +72 -1
  519. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +192 -1
  520. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +164 -1
  521. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -1
  522. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +273 -1
  523. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -1
  524. package/libs/floorplan/constant.js +4 -1
  525. package/libs/floorplan/index.js +6 -1
  526. package/libs/floorplan/typings/floorplanData.js +1 -1
  527. package/libs/floorplan/typings/floorplanServerData.js +101 -1
  528. package/libs/floorplan/utils/constant.js +7 -1
  529. package/libs/floorplan/utils/correctFiveState.js +54 -1
  530. package/libs/floorplan/utils/formatData.js +104 -1
  531. package/libs/floorplan/utils/formatPosition.js +35 -1
  532. package/libs/index.js +346 -1
  533. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +151 -1
  534. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +51 -1
  535. package/libs/shared-utils/Object3DHelper/Constants/color.js +20 -1
  536. package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +18 -1
  537. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +66 -1
  538. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +109 -1
  539. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +134 -1
  540. package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +79 -1
  541. package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +41 -1
  542. package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +13 -1
  543. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +30 -1
  544. package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +35 -1
  545. package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +2 -1
  546. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +137 -1
  547. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +136 -1
  548. package/libs/shared-utils/Object3DHelper/Helper/index.js +3 -1
  549. package/libs/shared-utils/Object3DHelper/index.js +169 -1
  550. package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -1
  551. package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -1
  552. package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -1
  553. package/libs/shared-utils/Object3DHelper/typings/index.js +1 -1
  554. package/libs/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +11 -1
  555. package/libs/shared-utils/Object3DHelper/utils/direction.js +22 -1
  556. package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -1
  557. package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +14 -1
  558. package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -1
  559. package/libs/shared-utils/Object3DHelper/utils/index.js +1 -1
  560. package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -1
  561. package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -1
  562. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +191 -1
  563. package/libs/shared-utils/Object3DHelper/utils/vectorIsEqual.js +6 -1
  564. package/libs/shared-utils/Subscribe.js +50 -1
  565. package/libs/shared-utils/animationFrame/BetterTween.js +26 -1
  566. package/libs/shared-utils/animationFrame/calculateProgress.js +6 -1
  567. package/libs/shared-utils/animationFrame/formatRad.js +11 -1
  568. package/libs/shared-utils/animationFrame/index.js +28 -1
  569. package/libs/shared-utils/animationFrame/tween.js +28 -1
  570. package/libs/shared-utils/changeModelCanvasOpacity.js +12 -1
  571. package/libs/shared-utils/createCanvasTextTexture.js +11 -1
  572. package/libs/shared-utils/createLine/index.js +9 -1
  573. package/libs/shared-utils/debounce.js +11 -1
  574. package/libs/shared-utils/equal.js +54 -1
  575. package/libs/shared-utils/filter.js +10 -1
  576. package/libs/shared-utils/five/changeMode.js +39 -1
  577. package/libs/shared-utils/getPxmm.js +20 -1
  578. package/libs/shared-utils/index.js +35 -1
  579. package/libs/shared-utils/isNil.js +10 -1
  580. package/libs/shared-utils/isTruelyObject.js +6 -1
  581. package/libs/shared-utils/math/Interval.js +23 -1
  582. package/libs/shared-utils/math/Rectangle.js +23 -1
  583. package/libs/shared-utils/math/index.js +1 -1
  584. package/libs/shared-utils/math/planimetry.js +43 -1
  585. package/libs/shared-utils/math/rad2Deg.js +6 -1
  586. package/libs/shared-utils/nearlyEqual.js +6 -1
  587. package/libs/shared-utils/nextFrame.js +6 -1
  588. package/libs/shared-utils/noop.js +5 -1
  589. package/libs/shared-utils/object3d2LocalMatrix.js +18 -1
  590. package/libs/shared-utils/removeArrayItem.js +8 -1
  591. package/libs/shared-utils/tap.js +6 -1
  592. package/libs/shared-utils/three/Assets/index.js +4 -1
  593. package/libs/shared-utils/three/FivePointSelector.js +49 -1
  594. package/libs/shared-utils/three/Magnifier.js +104 -1
  595. package/libs/shared-utils/three/PointDomHelper.js +60 -1
  596. package/libs/shared-utils/three/PointHelper.js +60 -3
  597. package/libs/shared-utils/three/getCoords.js +13 -1
  598. package/libs/shared-utils/three/getIntersect.js +8 -1
  599. package/libs/shared-utils/three/getRaycaster.js +12 -1
  600. package/libs/shared-utils/three/index.js +6 -1
  601. package/libs/shared-utils/three/loadTexture.js +28 -1
  602. package/libs/shared-utils/three/transformPositionToVector3.js +5 -1
  603. package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +24 -1
  604. package/libs/shared-utils/throttle.js +11 -1
  605. package/libs/shared-utils/tinyEJSrender.js +138 -14
  606. package/libs/shared-utils/to.js +28 -1
  607. package/libs/shared-utils/uuid.js +9 -1
  608. package/libs/vendor/swiper/components-shared/get-changed-params.js +29 -1
  609. package/libs/vendor/swiper/components-shared/get-params.js +23 -1
  610. package/libs/vendor/swiper/components-shared/mount-swiper.js +14 -1
  611. package/libs/vendor/swiper/components-shared/params-list.js +120 -1
  612. package/libs/vendor/swiper/components-shared/update-swiper.js +36 -1
  613. package/libs/vendor/swiper/components-shared/utils.js +32 -1
  614. package/libs/vendor/swiper/svelte/swiper-slide.js +182 -1
  615. package/libs/vendor/swiper/svelte/swiper-svelte.js +3 -1
  616. package/libs/vendor/swiper/svelte/swiper.js +254 -1
  617. package/package.json +13 -181
  618. package/dist/index.es.js +0 -16650
  619. package/dist/index.js +0 -16650
  620. package/dist/index.umd.js +0 -556
@@ -1 +1,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
+ 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 DomEvents
191
+ };
@@ -1 +1,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
+ 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 +1,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
+ 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 +1,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
+ 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 +1,6 @@
1
- "use strict";function u(r,e,s){return r+(e-r)*s}exports.progressNumber=u;
1
+ function t(r, e, n) {
2
+ return r + (e - r) * n;
3
+ }
4
+ export {
5
+ t as progressNumber
6
+ };
@@ -1 +1,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
+ 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 +1,28 @@
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
+ import "./BetterTween.js";
2
+ const i = window.requestAnimationFrame || ((e) => setTimeout(e, 16)), c = window.cancelAnimationFrame || clearTimeout;
3
+ function u(e, t = 0) {
4
+ t <= 0 ? i(e) : i(() => u(e, t - 1));
5
+ }
6
+ function w(e, t = 60) {
7
+ let o = -1, a = 0, r = -1;
8
+ const s = 1e3 / t;
9
+ function m(n) {
10
+ r === -1 && (r = n), o = i(m), !(n - a < s) && (a = n, e && e(n - r));
11
+ }
12
+ return o = i(m), function() {
13
+ c(o);
14
+ };
15
+ }
16
+ function F() {
17
+ const e = Date.now();
18
+ return new Promise((t) => {
19
+ i(() => {
20
+ t(Date.now() - e);
21
+ });
22
+ });
23
+ }
24
+ export {
25
+ F as getFrameTime,
26
+ u as nextFrame,
27
+ w as requestAnimationFrameInterval
28
+ };
@@ -1 +1,28 @@
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;
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
+ d as tweenProgress
28
+ };
@@ -1 +1,12 @@
1
- "use strict";function a(i,s,n=300){const e=i.getElement();!e||(e.style.opacity=s+"",e.style.transition=n===0?"none":`opacity ${n}ms linear`,n!==0&&Promise.race([new Promise(t=>e.addEventListener("transitionend",t,{once:!0})),new Promise(t=>setTimeout(t,n))]).then(()=>{e.style.transition="none"}))}exports.changeModelCanvasOpacity=a;
1
+ function o(i, s, n = 300) {
2
+ const e = i.getElement();
3
+ !e || (e.style.opacity = s + "", e.style.transition = n === 0 ? "none" : `opacity ${n}ms linear`, n !== 0 && Promise.race([
4
+ new Promise((t) => e.addEventListener("transitionend", t, { once: !0 })),
5
+ new Promise((t) => setTimeout(t, n))
6
+ ]).then(() => {
7
+ e.style.transition = "none";
8
+ }));
9
+ }
10
+ export {
11
+ o as changeModelCanvasOpacity
12
+ };
@@ -1 +1,11 @@
1
- "use strict";const v=require("three");function E(n,t){var l,a,u,x,C;const e=(l=t==null?void 0:t.size)!=null?l:512,T=(a=t==null?void 0:t.fontSize)!=null?a:e*(35/256)*1.2,A=(u=t==null?void 0:t.backgroundColor)!=null?u:"rgba(0,0,0,0)",b=(x=t==null?void 0:t.fontColor)!=null?x:"#fff",d=(C=t==null?void 0:t.textAlign)!=null?C:"center",s=document.createElement("canvas");s.setAttribute("width",e+""),s.setAttribute("height",e+"");const r=s.getContext("2d");return r.fillStyle=A,r.fillRect(0,0,e,e),r.font=`${T}px "\u5FAE\u8F6F\u96C5\u9ED1"`,r.textAlign=d,r.fillStyle=b,r.fillText(n,e/2,e*.7),new v.CanvasTexture(s)}exports.createCanvasTextTexture=E;
1
+ import { CanvasTexture as m } from "three";
2
+ function z(n, t) {
3
+ var s, a, u, x, C;
4
+ const e = (s = t == null ? void 0 : t.size) != null ? s : 512, A = (a = t == null ? void 0 : t.fontSize) != null ? a : e * (35 / 256) * 1.2, b = (u = t == null ? void 0 : t.backgroundColor) != null ? u : "rgba(0,0,0,0)", d = (x = t == null ? void 0 : t.fontColor) != null ? x : "#fff", o = (C = t == null ? void 0 : t.textAlign) != null ? C : "center", l = document.createElement("canvas");
5
+ l.setAttribute("width", e + ""), l.setAttribute("height", e + "");
6
+ const r = l.getContext("2d");
7
+ return r.fillStyle = b, r.fillRect(0, 0, e, e), r.font = `${A}px "\u5FAE\u8F6F\u96C5\u9ED1"`, r.textAlign = o, r.fillStyle = d, r.fillText(n, e / 2, e * 0.7), new m(l);
8
+ }
9
+ export {
10
+ z as createCanvasTextTexture
11
+ };
@@ -1 +1,9 @@
1
- "use strict";const s=require("@realsee/five/line"),c=require("three");function l(n,i,t=new c.Vector3(1,1,1),r=!1){const e=new s.Line(n,i);return e.setMaterial({dashed:r,color:t,linewidth:1}),e.remove(e.points),e}exports.createLine=l;
1
+ import { Line as o } from "@realsee/five/line";
2
+ import { Vector3 as m } from "three";
3
+ function f(t, n, r = new m(1, 1, 1), i = !1) {
4
+ const e = new o(t, n);
5
+ return e.setMaterial({ dashed: i, color: r, linewidth: 1 }), e.remove(e.points), e;
6
+ }
7
+ export {
8
+ f as createLine
9
+ };
@@ -1 +1,11 @@
1
- "use strict";function c(t,u=200){let e;return function(...n){clearTimeout(e),e=setTimeout(()=>{t(...n)},u)}}exports.debounce=c;
1
+ function u(t, n = 200) {
2
+ let e;
3
+ return function(...o) {
4
+ clearTimeout(e), e = setTimeout(() => {
5
+ t(...o);
6
+ }, n);
7
+ };
8
+ }
9
+ export {
10
+ u as debounce
11
+ };
@@ -1 +1,54 @@
1
- "use strict";const u=require("./isTruelyObject.js");function f(r,e){return r===e?!0:typeof r!=typeof e?!1:!!(Number.isNaN(r)&&Number.isNaN(e))}function c(r,e){const t=Object.getOwnPropertyNames(r),n=Object.getOwnPropertyNames(e);if(t.length!==n.length)return!1;for(let s=0,l=t.length;s<l;s++){const i=t[s];if(!f(r[i],e[i]))return!1}return!0}function o(r,e){if(r.length!==e.length)return!1;for(let t=0,n=r.length;t<n;t++)if(!f(r[t],e[t]))return!1;return!0}function y(r,e){return f(r,e)?!0:u.isTruelyObject(r)&&u.isTruelyObject(e)?c(r,e):Array.isArray(r)&&Array.isArray(e)?o(r,e):!1}function a(r,e){return f(r,e)?!0:u.isTruelyObject(r)&&u.isTruelyObject(e)?g(r,e):Array.isArray(r)&&Array.isArray(e)?p(r,e):!1}function p(r,e){if(r.length!==e.length)return!1;for(let t=0,n=r.length;t<n;t++)if(!a(r[t],e[t]))return!1;return!0}function g(r,e){const t=Object.getOwnPropertyNames(r),n=Object.getOwnPropertyNames(e);if(t.length!==n.length)return!1;for(let s=0,l=t.length;s<l;s++){const i=t[s];if(!a(r[i],e[i]))return!1}return!0}function b(r,e,t={deep:!1}){return t.deep?a(r,e):y(r,e)}exports.equal=b;
1
+ import { isTruelyObject as s } from "./isTruelyObject.js";
2
+ function u(r, e) {
3
+ return r === e ? !0 : typeof r != typeof e ? !1 : !!(Number.isNaN(r) && Number.isNaN(e));
4
+ }
5
+ function o(r, e) {
6
+ const n = Object.getOwnPropertyNames(r), t = Object.getOwnPropertyNames(e);
7
+ if (n.length !== t.length)
8
+ return !1;
9
+ for (let f = 0, l = n.length; f < l; f++) {
10
+ const i = n[f];
11
+ if (!u(r[i], e[i]))
12
+ return !1;
13
+ }
14
+ return !0;
15
+ }
16
+ function p(r, e) {
17
+ if (r.length !== e.length)
18
+ return !1;
19
+ for (let n = 0, t = r.length; n < t; n++)
20
+ if (!u(r[n], e[n]))
21
+ return !1;
22
+ return !0;
23
+ }
24
+ function c(r, e) {
25
+ return u(r, e) ? !0 : s(r) && s(e) ? o(r, e) : Array.isArray(r) && Array.isArray(e) ? p(r, e) : !1;
26
+ }
27
+ function a(r, e) {
28
+ return u(r, e) ? !0 : s(r) && s(e) ? g(r, e) : Array.isArray(r) && Array.isArray(e) ? y(r, e) : !1;
29
+ }
30
+ function y(r, e) {
31
+ if (r.length !== e.length)
32
+ return !1;
33
+ for (let n = 0, t = r.length; n < t; n++)
34
+ if (!a(r[n], e[n]))
35
+ return !1;
36
+ return !0;
37
+ }
38
+ function g(r, e) {
39
+ const n = Object.getOwnPropertyNames(r), t = Object.getOwnPropertyNames(e);
40
+ if (n.length !== t.length)
41
+ return !1;
42
+ for (let f = 0, l = n.length; f < l; f++) {
43
+ const i = n[f];
44
+ if (!a(r[i], e[i]))
45
+ return !1;
46
+ }
47
+ return !0;
48
+ }
49
+ function b(r, e, n = { deep: !1 }) {
50
+ return n.deep ? a(r, e) : c(r, e);
51
+ }
52
+ export {
53
+ b as equal
54
+ };
@@ -1 +1,10 @@
1
- "use strict";const r=require("./tap.js");function s(i,n){return r.tap({},e=>{for(const t in i)n.indexOf(t)===-1&&(e[t]=i[t])})}exports.omit=s;
1
+ import { tap as r } from "./tap.js";
2
+ function e(i, o) {
3
+ return r({}, (t) => {
4
+ for (const n in i)
5
+ o.indexOf(n) === -1 && (t[n] = i[n]);
6
+ });
7
+ }
8
+ export {
9
+ e as omit
10
+ };
@@ -1 +1,39 @@
1
- "use strict";var l=(o,u,r)=>new Promise((c,t)=>{var E=e=>{try{s(r.next(e))}catch(n){t(n)}},f=e=>{try{s(r.throw(e))}catch(n){t(n)}},s=e=>e.done?c(e.value):Promise.resolve(e.value).then(E,f);s((r=r.apply(o,u)).next())});const d=require("../nearlyEqual.js");function h(o,u){return l(this,null,function*(){yield new Promise((r,c)=>{o.changeMode(...u).catch(t=>c(t)),o.once("initAnimationEnded",()=>{const t=o.getCurrentState(),E=u[0];t.mode!==E&&c(new Error("mode \u4E0E\u9884\u671F\u4E0D\u7B26")),(()=>{const e=u[1];return e?Object.keys(e).every(n=>{const i=t[n];if(i===void 0)return!0;const a=e[n];return typeof i=="number"&&typeof a=="number"?d.nearlyEqual(i,a,2):i===a}):!0})()||c(new Error("five pose \u4E0E\u9884\u671F\u4E0D\u7B26")),r()})})})}exports.changeMode=h;
1
+ var d = (n, c, o) => new Promise((u, t) => {
2
+ var f = (e) => {
3
+ try {
4
+ s(o.next(e));
5
+ } catch (r) {
6
+ t(r);
7
+ }
8
+ }, m = (e) => {
9
+ try {
10
+ s(o.throw(e));
11
+ } catch (r) {
12
+ t(r);
13
+ }
14
+ }, s = (e) => e.done ? u(e.value) : Promise.resolve(e.value).then(f, m);
15
+ s((o = o.apply(n, c)).next());
16
+ });
17
+ import { nearlyEqual as P } from "../nearlyEqual.js";
18
+ function p(n, c) {
19
+ return d(this, null, function* () {
20
+ yield new Promise((o, u) => {
21
+ n.changeMode(...c).catch((t) => u(t)), n.once("initAnimationEnded", () => {
22
+ const t = n.getCurrentState(), f = c[0];
23
+ t.mode !== f && u(new Error("mode \u4E0E\u9884\u671F\u4E0D\u7B26")), (() => {
24
+ const e = c[1];
25
+ return e ? Object.keys(e).every((r) => {
26
+ const i = t[r];
27
+ if (i === void 0)
28
+ return !0;
29
+ const E = e[r];
30
+ return typeof i == "number" && typeof E == "number" ? P(i, E, 2) : i === E;
31
+ }) : !0;
32
+ })() || u(new Error("five pose \u4E0E\u9884\u671F\u4E0D\u7B26")), o();
33
+ });
34
+ });
35
+ });
36
+ }
37
+ export {
38
+ p as changeMode
39
+ };
@@ -1 +1,20 @@
1
- "use strict";const c=require("../floorplan/constant.js"),g=require("three");function _(t){if(t&&t.__esModule)return t;const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const e=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,e.get?e:{enumerable:!0,get:()=>t[o]})}}return n.default=t,Object.freeze(n)}const s=_(g);function a(t,n){const o=Math.max(...t.work.observers.map(e=>e.floorIndex));return n>o?t.model.bounding.max.y:Math.max(...t.work.observers.filter(e=>e.floorIndex===n).map(e=>e.standingPosition.y))}function u(t,n,o=c.FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER){const e=a(t,n),r=a(t,n+1);return o===c.FLOOR_PLAN_ATTACHED_TO.BOUNDING_CENTER?(t.model.bounding.max.y+t.model.bounding.min.y)/2:o===c.FLOOR_PLAN_ATTACHED_TO.CEILING?r:e}function O(t,n,o,e){const r=u(t,o,e==null?void 0:e.attachedTo),i=new s.Vector3(0,r,0),l=new s.Vector3(1,r,0),m=i.clone().project(t.camera),d=l.clone().project(t.camera);return Math.abs((d.x-m.x)/1e3)*(n.getBoundingClientRect().width/2)}exports.getAttachedY=u;exports.getPxmm=O;
1
+ import { FLOOR_PLAN_ATTACHED_TO as m } from "../floorplan/constant.js";
2
+ import * as c from "three";
3
+ function s(o, t) {
4
+ const r = Math.max(...o.work.observers.map((n) => n.floorIndex));
5
+ return t > r ? o.model.bounding.max.y : Math.max(
6
+ ...o.work.observers.filter((n) => n.floorIndex === t).map((n) => n.standingPosition.y)
7
+ );
8
+ }
9
+ function l(o, t, r = m.BOUNDING_CENTER) {
10
+ const n = s(o, t), e = s(o, t + 1);
11
+ return r === m.BOUNDING_CENTER ? (o.model.bounding.max.y + o.model.bounding.min.y) / 2 : r === m.CEILING ? e : n;
12
+ }
13
+ function E(o, t, r, n) {
14
+ const e = l(o, r, n == null ? void 0 : n.attachedTo), a = new c.Vector3(0, e, 0), i = new c.Vector3(1, e, 0), u = a.clone().project(o.camera), x = i.clone().project(o.camera);
15
+ return Math.abs((x.x - u.x) / 1e3) * (t.getBoundingClientRect().width / 2);
16
+ }
17
+ export {
18
+ l as getAttachedY,
19
+ E as getPxmm
20
+ };
@@ -1 +1,35 @@
1
- "use strict";const n=require("./math/Interval.js"),s=require("./math/Rectangle.js"),o=require("./three/Magnifier.js"),t=require("./three/getCoords.js"),a=require("./three/getRaycaster.js"),l=require("./three/getIntersect.js"),m=require("./three/PointHelper.js"),c=require("./three/PointDomHelper.js"),h=require("./three/FivePointSelector.js"),r=require("./isNil.js"),e=require("./animationFrame/index.js"),i=require("./animationFrame/BetterTween.js"),g=Object.freeze(Object.defineProperty({__proto__:null,Interval:n.Interval,Rectangle:s.Rectangle,Magnifier:o.Magnifier,getCoordsFromClient:t.getCoordsFromClient,getCoordsFromElement:t.getCoordsFromElement,getRaycasterFromFivePointer:a.getRaycasterFromFivePointer,getIntersectFromRelativePosition:l.getIntersectFromRelativePosition,PointHelper:m.PointHelper,PointDomHelper:c.PointDomHelper,FivePointSelector:h.FivePointSelector,isNil:r.isNil,notNil:r.notNil,BetterTween:i.BetterTween,tweenProgress:i.tweenProgress,nextFrame:e.nextFrame,requestAnimationFrameInterval:e.requestAnimationFrameInterval,getFrameTime:e.getFrameTime},Symbol.toStringTag,{value:"Module"}));exports.index=g;
1
+ import { Interval as e } from "./math/Interval.js";
2
+ import { Rectangle as r } from "./math/Rectangle.js";
3
+ import { Magnifier as o } from "./three/Magnifier.js";
4
+ import { getCoordsFromClient as t, getCoordsFromElement as m } from "./three/getCoords.js";
5
+ import { getRaycasterFromFivePointer as i } from "./three/getRaycaster.js";
6
+ import { getIntersectFromRelativePosition as n } from "./three/getIntersect.js";
7
+ import { PointHelper as p } from "./three/PointHelper.js";
8
+ import { PointDomHelper as l } from "./three/PointDomHelper.js";
9
+ import { FivePointSelector as f } from "./three/FivePointSelector.js";
10
+ import { isNil as a, notNil as g } from "./isNil.js";
11
+ import { nextFrame as s, requestAnimationFrameInterval as F, getFrameTime as c } from "./animationFrame/index.js";
12
+ import { BetterTween as P, tweenProgress as v } from "./animationFrame/BetterTween.js";
13
+ const w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14
+ __proto__: null,
15
+ Interval: e,
16
+ Rectangle: r,
17
+ Magnifier: o,
18
+ getCoordsFromClient: t,
19
+ getCoordsFromElement: m,
20
+ getRaycasterFromFivePointer: i,
21
+ getIntersectFromRelativePosition: n,
22
+ PointHelper: p,
23
+ PointDomHelper: l,
24
+ FivePointSelector: f,
25
+ isNil: a,
26
+ notNil: g,
27
+ BetterTween: P,
28
+ tweenProgress: v,
29
+ nextFrame: s,
30
+ requestAnimationFrameInterval: F,
31
+ getFrameTime: c
32
+ }, Symbol.toStringTag, { value: "Module" }));
33
+ export {
34
+ w as index
35
+ };
@@ -1 +1,10 @@
1
- "use strict";function t(i){return!n(i)}function n(i){return i!=null}exports.isNil=t;exports.notNil=n;
1
+ function t(n) {
2
+ return !i(n);
3
+ }
4
+ function i(n) {
5
+ return n != null;
6
+ }
7
+ export {
8
+ t as isNil,
9
+ i as notNil
10
+ };
@@ -1 +1,6 @@
1
- "use strict";function e(t){return Object.prototype.toString.call(t)==="[object Object]"}exports.isTruelyObject=e;
1
+ function e(t) {
2
+ return Object.prototype.toString.call(t) === "[object Object]";
3
+ }
4
+ export {
5
+ e as isTruelyObject
6
+ };