@realsee/dnalogel 3.0.0-dev.1 → 3.0.0

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 (431) hide show
  1. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
  2. package/dist/index.cjs.js +48 -48
  3. package/dist/index.d.ts +0 -1
  4. package/dist/index.js +4403 -4376
  5. package/dist/index.umd.js +45 -45
  6. package/dist/shared-utils/five/FiveDomEvents.d.ts +24 -10
  7. package/dist/shared-utils/five/calculateThreeMouse.d.ts +11 -0
  8. package/dist/shared-utils/index.d.ts +1 -1
  9. package/dist/shared-utils/nearlyEqual.d.ts +7 -0
  10. package/dist/shared-utils/three/PointSelectorHelper.d.ts +6 -5
  11. package/dist/shared-utils/three/getNormal.d.ts +2 -0
  12. package/dist/shared-utils/url/getUrl.d.ts +4 -0
  13. package/libs/AreaMakerPlugin/Controller.js +1 -1
  14. package/libs/AreaMakerPlugin/index.js +1 -1
  15. package/libs/CSS3DRenderPlugin/Controller.js +1 -1
  16. package/libs/CSS3DRenderPlugin/index.js +1 -1
  17. package/libs/CruisePlugin/Controller.js +107 -102
  18. package/libs/CruisePlugin/index.js +9 -6
  19. package/libs/CurrentPanoImagePlugin/Controller.js +22 -24
  20. package/libs/CurrentPanoImagePlugin/index.js +4 -5
  21. package/libs/GuideLinePlugin/Controller.js +25 -22
  22. package/libs/GuideLinePlugin/GuideLineItem.js +6 -3
  23. package/libs/GuideLinePlugin/GuideLineModeItem.js +6 -3
  24. package/libs/GuideLinePlugin/index.js +11 -8
  25. package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
  26. package/libs/ModelTVVideoPlugin/index.js +1 -1
  27. package/libs/Object3DHelperPlugin/Controller.js +1 -1
  28. package/libs/Object3DHelperPlugin/index.js +1 -1
  29. package/libs/PanoCompassPlugin/Controller.js +1 -1
  30. package/libs/PanoCompassPlugin/index.js +1 -1
  31. package/libs/PanoDoorLabelPlugin/BaseController.js +1 -1
  32. package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
  33. package/libs/PanoDoorLabelPlugin/index.js +1 -1
  34. package/libs/PanoMeasurePlugin/Components/Controller0.js +1 -1
  35. package/libs/PanoMeasurePlugin/Components/Controller1.js +1 -1
  36. package/libs/PanoMeasurePlugin/Controller/EditController.js +2 -2
  37. package/libs/PanoMeasurePlugin/Controller/index.js +1 -1
  38. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -1
  39. package/libs/PanoMeasurePlugin/index.js +1 -1
  40. package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
  41. package/libs/PanoSpatialTagPlugin/index.js +1 -1
  42. package/libs/PanoTagPlugin/Components/TagItem.js +192 -205
  43. package/libs/PanoTagPlugin/controller/TagCache.js +1 -1
  44. package/libs/PanoTagPlugin/controller/TagComputer.js +66 -62
  45. package/libs/PanoTagPlugin/controller/TagRender.js +55 -52
  46. package/libs/PanoTagPlugin/controller/TagUtil.js +99 -97
  47. package/libs/PanoTagPlugin/controller/index.js +45 -43
  48. package/libs/PanoTagPlugin/index.js +15 -12
  49. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
  50. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +97 -99
  51. package/libs/PanoVideoPlugin/Controller.js +1 -1
  52. package/libs/PanoVideoPlugin/index.js +1 -1
  53. package/libs/PipelinePlugin/Controller.js +1 -1
  54. package/libs/PipelinePlugin/index.js +1 -1
  55. package/libs/base/BasePlugin.js +2 -2
  56. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
  57. package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
  58. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
  59. package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
  60. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  61. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
  62. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
  63. package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
  64. package/libs/floorplan/index.js +1 -0
  65. package/libs/index.d.ts +0 -1
  66. package/libs/index.js +120 -118
  67. package/libs/shared-utils/five/FiveDomEvents.d.ts +24 -10
  68. package/libs/shared-utils/five/FiveDomEvents.js +104 -66
  69. package/libs/shared-utils/five/calculateThreeMouse.d.ts +11 -0
  70. package/libs/shared-utils/five/calculateThreeMouse.js +8 -0
  71. package/libs/shared-utils/five/changeMode.js +11 -11
  72. package/libs/shared-utils/index.d.ts +1 -1
  73. package/libs/shared-utils/index.js +1 -1
  74. package/libs/shared-utils/logger.js +1 -1
  75. package/libs/shared-utils/nearlyEqual.d.ts +7 -0
  76. package/libs/shared-utils/nearlyEqual.js +9 -3
  77. package/libs/shared-utils/three/PointSelector.js +39 -39
  78. package/libs/shared-utils/three/PointSelectorHelper.d.ts +6 -5
  79. package/libs/shared-utils/three/PointSelectorHelper.js +4 -4
  80. package/libs/shared-utils/three/getNormal.d.ts +2 -0
  81. package/libs/shared-utils/three/getNormal.js +10 -0
  82. package/libs/shared-utils/url/getUrl.d.ts +4 -0
  83. package/libs/shared-utils/url/getUrl.js +7 -0
  84. package/package.json +2 -2
  85. package/dist/shared-utils/five/adapt.d.ts +0 -9
  86. package/docs/.nojekyll +0 -1
  87. package/docs/assets/highlight.css +0 -120
  88. package/docs/assets/main.js +0 -58
  89. package/docs/assets/search.js +0 -1
  90. package/docs/assets/style.css +0 -1367
  91. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -725
  92. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -678
  93. package/docs/classes/CSS3DRender.html +0 -773
  94. package/docs/classes/CruisePluginController.html +0 -672
  95. package/docs/classes/GuideLineItem.GuideLineItem.html +0 -491
  96. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -792
  97. package/docs/classes/Magnifier.html +0 -480
  98. package/docs/classes/ModelRoomLabelController.html +0 -398
  99. package/docs/classes/Object3DHelperController.html +0 -640
  100. package/docs/classes/PaintBrush.html +0 -502
  101. package/docs/classes/PanoMeasurePluginLine.html +0 -522
  102. package/docs/classes/PanoMeasurePluginModel.html +0 -571
  103. package/docs/classes/PanoMeasurePluginPoint.html +0 -362
  104. package/docs/classes/PanoMeasurePluginPolyline.html +0 -567
  105. package/docs/classes/PanoTagPluginController.html +0 -1050
  106. package/docs/classes/Util.BetterTween.html +0 -416
  107. package/docs/classes/Util.Interval.html +0 -432
  108. package/docs/classes/Util.LineSegments.html +0 -384
  109. package/docs/classes/Util.Magnifier.html +0 -503
  110. package/docs/classes/Util.Object3D.html +0 -406
  111. package/docs/classes/Util.PointDomHelper.html +0 -407
  112. package/docs/classes/Util.PointHelper.html +0 -398
  113. package/docs/classes/Util.PointSelectorHelper.html +0 -454
  114. package/docs/classes/Util.Rectangle.html +0 -455
  115. package/docs/enums/CameraMovementEffect.html +0 -310
  116. package/docs/enums/ContentType.html +0 -446
  117. package/docs/enums/DIRECTION.html +0 -320
  118. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -320
  119. package/docs/enums/DimensionType.html +0 -310
  120. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -313
  121. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -320
  122. package/docs/enums/PaintBrushTypeEnum.html +0 -313
  123. package/docs/enums/PointType.html +0 -310
  124. package/docs/enums/Rotation.html +0 -317
  125. package/docs/functions/AreaMakerPlugin.html +0 -290
  126. package/docs/functions/CSS3DRenderPlugin.html +0 -288
  127. package/docs/functions/CameraMovementPlugin.html +0 -293
  128. package/docs/functions/CruisePlugin.html +0 -290
  129. package/docs/functions/CurrentPanoImagePlugin.html +0 -290
  130. package/docs/functions/GuideLinePlugin.html +0 -290
  131. package/docs/functions/ItemLabelPlugin.html +0 -290
  132. package/docs/functions/MapviewFloorplanPlugin.html +0 -290
  133. package/docs/functions/ModelChassisCompassPlugin.html +0 -293
  134. package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -293
  135. package/docs/functions/ModelFloorplanPlugin.html +0 -290
  136. package/docs/functions/ModelItemLabelPlugin.html +0 -290
  137. package/docs/functions/ModelRoomLabelPlugin.html +0 -288
  138. package/docs/functions/ModelTVVideoPlugin.html +0 -290
  139. package/docs/functions/ModelViewPlugin.html +0 -293
  140. package/docs/functions/Object3DHelperPlugin.html +0 -288
  141. package/docs/functions/PanoCompassPlugin.html +0 -290
  142. package/docs/functions/PanoCursorRaycasterPlugin.html +0 -294
  143. package/docs/functions/PanoDoorLabelPlugin.html +0 -290
  144. package/docs/functions/PanoFloorplanRadarPlugin.html +0 -290
  145. package/docs/functions/PanoMeasurePlugin.html +0 -290
  146. package/docs/functions/PanoRulerPlugin.html +0 -293
  147. package/docs/functions/PanoRulerProPlugin.html +0 -293
  148. package/docs/functions/PanoSpatialTagPlugin.html +0 -293
  149. package/docs/functions/PanoTagPlugin.html +0 -295
  150. package/docs/functions/PanoVideoPlugin.html +0 -299
  151. package/docs/functions/PipelinePlugin.html +0 -288
  152. package/docs/functions/TopviewFloorplanPlugin.html +0 -290
  153. package/docs/functions/Util.absoluteUrl.html +0 -326
  154. package/docs/functions/Util.checkFiveModelLoaded.html +0 -329
  155. package/docs/functions/Util.equal.html +0 -338
  156. package/docs/functions/Util.getCoordsFromClient.html +0 -328
  157. package/docs/functions/Util.getCoordsFromElement.html +0 -328
  158. package/docs/functions/Util.getFrameTime.html +0 -320
  159. package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -328
  160. package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -328
  161. package/docs/functions/Util.isAbsoluteURL.html +0 -321
  162. package/docs/functions/Util.isModelLike.html +0 -321
  163. package/docs/functions/Util.isNil.html +0 -329
  164. package/docs/functions/Util.isPanoramaLike.html +0 -321
  165. package/docs/functions/Util.nextFrame.html +0 -334
  166. package/docs/functions/Util.notNil.html +0 -329
  167. package/docs/functions/Util.requestAnimationFrameInterval.html +0 -350
  168. package/docs/functions/Util.tweenProgress.html +0 -323
  169. package/docs/functions/Util.uuid.html +0 -319
  170. package/docs/functions/pluginFlag.html +0 -288
  171. package/docs/index.html +0 -354
  172. package/docs/interfaces/AddTagConfig.html +0 -303
  173. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -329
  174. package/docs/interfaces/AreaMakerPluginType.Config.html +0 -334
  175. package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -620
  176. package/docs/interfaces/AreaMakerPluginType.Params.html +0 -333
  177. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -383
  178. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -368
  179. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -333
  180. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -326
  181. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -325
  182. package/docs/interfaces/AreaMakerPluginType.State.html +0 -354
  183. package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -449
  184. package/docs/interfaces/CSS3DRenderPluginState.html +0 -325
  185. package/docs/interfaces/CameraMovementPluginExportType.html +0 -358
  186. package/docs/interfaces/CruisePluginTypes.Config.html +0 -359
  187. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -361
  188. package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -696
  189. package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -385
  190. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -421
  191. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -411
  192. package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -351
  193. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -319
  194. package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -408
  195. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -382
  196. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -521
  197. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -323
  198. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -315
  199. package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -337
  200. package/docs/interfaces/EventMap.html +0 -542
  201. package/docs/interfaces/FloorplanBounding.html +0 -332
  202. package/docs/interfaces/FloorplanData.html +0 -335
  203. package/docs/interfaces/FloorplanEntrance.html +0 -360
  204. package/docs/interfaces/FloorplanExtraObject.html +0 -350
  205. package/docs/interfaces/FloorplanExtraObject3D.html +0 -339
  206. package/docs/interfaces/FloorplanFloorData.html +0 -328
  207. package/docs/interfaces/FloorplanImagePosition.html +0 -314
  208. package/docs/interfaces/FloorplanObserver.html +0 -332
  209. package/docs/interfaces/FloorplanOutlineItem.html +0 -328
  210. package/docs/interfaces/FloorplanPosition.html +0 -314
  211. package/docs/interfaces/FloorplanRoomItem.html +0 -379
  212. package/docs/interfaces/FloorplanRoomLabelItem.html +0 -320
  213. package/docs/interfaces/FloorplanServerBounding.html +0 -332
  214. package/docs/interfaces/FloorplanServerComputedData.html +0 -331
  215. package/docs/interfaces/FloorplanServerData.html +0 -314
  216. package/docs/interfaces/FloorplanServerDoorItem.html +0 -331
  217. package/docs/interfaces/FloorplanServerDoorPosition.html +0 -317
  218. package/docs/interfaces/FloorplanServerEntrance.html +0 -360
  219. package/docs/interfaces/FloorplanServerFloorData.html +0 -328
  220. package/docs/interfaces/FloorplanServerImagePosition.html +0 -314
  221. package/docs/interfaces/FloorplanServerObserver.html +0 -332
  222. package/docs/interfaces/FloorplanServerOutlineItem.html +0 -328
  223. package/docs/interfaces/FloorplanServerPosition.html +0 -314
  224. package/docs/interfaces/FloorplanServerRoomItem.html +0 -391
  225. package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -320
  226. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -323
  227. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -361
  228. package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -525
  229. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -356
  230. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -347
  231. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -414
  232. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -346
  233. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -471
  234. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -343
  235. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -471
  236. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -308
  237. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -329
  238. package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -354
  239. package/docs/interfaces/GuideLinePluginType.Route.html +0 -370
  240. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -352
  241. package/docs/interfaces/HelperOffset.html +0 -332
  242. package/docs/interfaces/ImagePlaneGroup.html +0 -306
  243. package/docs/interfaces/ItemLabelPluginData.html +0 -303
  244. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -388
  245. package/docs/interfaces/ItemLabelPluginParametersType.html +0 -324
  246. package/docs/interfaces/MinMax.html +0 -310
  247. package/docs/interfaces/ModelChassisCompassPluginData.html +0 -310
  248. package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -346
  249. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -310
  250. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -317
  251. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -354
  252. package/docs/interfaces/ModelItemLabelPluginData.html +0 -303
  253. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -388
  254. package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -310
  255. package/docs/interfaces/ModelRoomLabelPluginData.html +0 -303
  256. package/docs/interfaces/ModelTVVideoPluginData.html +0 -324
  257. package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -348
  258. package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -303
  259. package/docs/interfaces/ModelViewPluginExportType.html +0 -416
  260. package/docs/interfaces/Object3DHelperState.html +0 -317
  261. package/docs/interfaces/ObjectHelperControllers.html +0 -324
  262. package/docs/interfaces/PaintBrushAction.html +0 -363
  263. package/docs/interfaces/PaintBrushConfigs.html +0 -361
  264. package/docs/interfaces/PaintBrushState.html +0 -345
  265. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -425
  266. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -282
  267. package/docs/interfaces/PanoMeasureParameterType.html +0 -449
  268. package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -317
  269. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -314
  270. package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -310
  271. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -320
  272. package/docs/interfaces/PanoRulerPluginExportType.html +0 -377
  273. package/docs/interfaces/PanoRulerPluginOptions.html +0 -326
  274. package/docs/interfaces/PanoRulerPluginParameterType.html +0 -317
  275. package/docs/interfaces/PanoRulerProPluginExportType.html +0 -353
  276. package/docs/interfaces/PanoRulerProPluginOptions.html +0 -323
  277. package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -310
  278. package/docs/interfaces/PanoRulerProPluginState.html +0 -317
  279. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -296
  280. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -285
  281. package/docs/interfaces/PanoSpatialTagPluginData.html +0 -353
  282. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -335
  283. package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -431
  284. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -331
  285. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -352
  286. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -338
  287. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -331
  288. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -323
  289. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -341
  290. package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -314
  291. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -420
  292. package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -314
  293. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -349
  294. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -368
  295. package/docs/interfaces/Point.html +0 -317
  296. package/docs/interfaces/Room.html +0 -324
  297. package/docs/interfaces/RoomInfo.html +0 -310
  298. package/docs/interfaces/RoomLabel.html +0 -386
  299. package/docs/interfaces/RoomRules.html +0 -285
  300. package/docs/interfaces/Rooms.html +0 -285
  301. package/docs/interfaces/Scissor.html +0 -344
  302. package/docs/interfaces/State.html +0 -331
  303. package/docs/interfaces/TagCacheInterface.html +0 -362
  304. package/docs/interfaces/TagConfig.html +0 -565
  305. package/docs/interfaces/TagGLTFObjectGroup.html +0 -306
  306. package/docs/interfaces/TagIconUrl.html +0 -363
  307. package/docs/interfaces/TagObjectGroup.html +0 -306
  308. package/docs/interfaces/TagStyle.html +0 -316
  309. package/docs/interfaces/Tags.html +0 -2688
  310. package/docs/interfaces/TemporaryState.html +0 -303
  311. package/docs/interfaces/Util.MagnifierParameter.html +0 -391
  312. package/docs/interfaces/Util.MouseGroupParameter.html +0 -350
  313. package/docs/interfaces/Util.PointIntersection.html +0 -365
  314. package/docs/modules/AreaMakerPluginType.html +0 -323
  315. package/docs/modules/CruisePluginTypes.html +0 -328
  316. package/docs/modules/CurrentPanoImagePluginType.html +0 -297
  317. package/docs/modules/GuideLineItem.html +0 -289
  318. package/docs/modules/GuideLineModeItem.html +0 -294
  319. package/docs/modules/GuideLinePluginType.html +0 -348
  320. package/docs/modules/PanoVideoPluginType.html +0 -301
  321. package/docs/modules/Util.html +0 -351
  322. package/docs/modules.html +0 -540
  323. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -331
  324. package/docs/types/AreaMakerPluginType.PluginData.html +0 -301
  325. package/docs/types/AreaMakerPluginType.ServerData.html +0 -301
  326. package/docs/types/ArrayPosition.html +0 -279
  327. package/docs/types/AudioAppearance.html +0 -279
  328. package/docs/types/AudioTagTypeConfigKey.html +0 -279
  329. package/docs/types/CSS3DRenderExportType.html +0 -279
  330. package/docs/types/CSS3DRenderPluginExportType.html +0 -279
  331. package/docs/types/CSS3DRenderPluginParameterType.html +0 -279
  332. package/docs/types/ClassFunctionParameters.html +0 -286
  333. package/docs/types/Color.html +0 -279
  334. package/docs/types/ContentTypeConfigKey.html +0 -279
  335. package/docs/types/ContentTypeConfigKeySplit.html +0 -279
  336. package/docs/types/ContentTypeMap.html +0 -279
  337. package/docs/types/Create3DDomContainerReturnType.html +0 -279
  338. package/docs/types/Create3DElementReturnType.html +0 -279
  339. package/docs/types/CruisePluginExportType.html +0 -279
  340. package/docs/types/CruisePluginTypes.CruiseData.html +0 -318
  341. package/docs/types/CruisePluginTypes.MoveEffect.html +0 -295
  342. package/docs/types/CurrentPanoImagePluginExportType.html +0 -279
  343. package/docs/types/DeprecatedMediaPlaneProperty.html +0 -291
  344. package/docs/types/DeprecatedTagProperty.html +0 -294
  345. package/docs/types/Direction-1.html +0 -279
  346. package/docs/types/Direction4.html +0 -279
  347. package/docs/types/ElementRenderer.html +0 -303
  348. package/docs/types/FloorplanRuleLabels.html +0 -282
  349. package/docs/types/FloorplanServerRuleLabels.html +0 -279
  350. package/docs/types/GuideLinePluginExportType.html +0 -279
  351. package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -351
  352. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -372
  353. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -305
  354. package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -308
  355. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -308
  356. package/docs/types/GuideLinePluginType.PathItem.html +0 -308
  357. package/docs/types/GuideLinePluginType.PluginData.html +0 -317
  358. package/docs/types/HelperEventMap.html +0 -517
  359. package/docs/types/LoadTagConfig.html +0 -279
  360. package/docs/types/MapviewFloorplanPluginParameterType.html +0 -279
  361. package/docs/types/MapviewFloorplanPluginReturnType.html +0 -279
  362. package/docs/types/MediaData.html +0 -295
  363. package/docs/types/MediaStore.html +0 -284
  364. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -286
  365. package/docs/types/ModelFloorplanPluginParameterType.html +0 -279
  366. package/docs/types/ModelFloorplanPluginReturnType.html +0 -279
  367. package/docs/types/ModelId.html +0 -279
  368. package/docs/types/ModelRoomLabelPluginParameters.html +0 -279
  369. package/docs/types/ModelRoomLabelPluginReturnType.html +0 -279
  370. package/docs/types/MoveArgs.html +0 -289
  371. package/docs/types/MoveOpts.html +0 -287
  372. package/docs/types/Object3DHelperEventMap.html +0 -372
  373. package/docs/types/ObjectFit.html +0 -279
  374. package/docs/types/PaintBrushEventMap.html +0 -310
  375. package/docs/types/PanoCompassPluginData.html +0 -279
  376. package/docs/types/PanoCompassPluginExportType.html +0 -279
  377. package/docs/types/PanoCompassPluginParameterType.html +0 -279
  378. package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -279
  379. package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -279
  380. package/docs/types/PanoIndex.html +0 -279
  381. package/docs/types/PanoMeasurePluginEvent.html +0 -279
  382. package/docs/types/PanoMeasureReturnType.html +0 -279
  383. package/docs/types/PanoSpatialTagPluginId.html +0 -279
  384. package/docs/types/PanoTagPluginExportInterface.html +0 -279
  385. package/docs/types/PanoTagPluginParamsInterface.html +0 -279
  386. package/docs/types/PanoVideoPluginParameterType.html +0 -279
  387. package/docs/types/PanoVideoPluginReturnType.html +0 -279
  388. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -287
  389. package/docs/types/PipelinePluginParameterType.html +0 -279
  390. package/docs/types/PipelinePluginReturnType.html +0 -279
  391. package/docs/types/PlaneTag.html +0 -287
  392. package/docs/types/Point2DTag.html +0 -287
  393. package/docs/types/Point3DTag.html +0 -287
  394. package/docs/types/PointTag.html +0 -284
  395. package/docs/types/PointTagInstance.html +0 -284
  396. package/docs/types/Position.html +0 -279
  397. package/docs/types/RotateArgs.html +0 -291
  398. package/docs/types/RotateOpts.html +0 -287
  399. package/docs/types/RuleLabelsKey.html +0 -279
  400. package/docs/types/RuleLabelsValue.html +0 -279
  401. package/docs/types/StickType.html +0 -279
  402. package/docs/types/Tag.html +0 -345
  403. package/docs/types/Tag2D.html +0 -287
  404. package/docs/types/Tag3D.html +0 -287
  405. package/docs/types/TagConfigByKey.html +0 -284
  406. package/docs/types/TagContentType.html +0 -279
  407. package/docs/types/TagDimensionType.html +0 -281
  408. package/docs/types/TagElement.html +0 -289
  409. package/docs/types/TagEvents.html +0 -332
  410. package/docs/types/TagGLTFObject.html +0 -302
  411. package/docs/types/TagHooks.html +0 -279
  412. package/docs/types/TagId.html +0 -279
  413. package/docs/types/TagInstance.html +0 -353
  414. package/docs/types/TagPointType.html +0 -282
  415. package/docs/types/TagRendererMap.html +0 -284
  416. package/docs/types/TopviewFloorplanPluginParameterType.html +0 -279
  417. package/docs/types/TopviewFloorplanPluginReturnType.html +0 -279
  418. package/docs/types/WorkCode.html +0 -279
  419. package/docs/variables/FLOOR_TYPE_MAP.html +0 -289
  420. package/docs/variables/PLUGIN.html +0 -279
  421. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -282
  422. package/docs/variables/ROOM_TYPE_MAP.html +0 -289
  423. package/docs/variables/defaultGlobalConfig.html +0 -279
  424. package/docs/variables/itemLabelPluginServerParams.html +0 -286
  425. package/docs/variables/modelItemLabelPluginServerParams.html +0 -286
  426. package/docs/variables/modelRoomLabelPluginServerParams.html +0 -286
  427. package/libs/shared-utils/five/adapt.d.ts +0 -9
  428. package/libs/shared-utils/five/adapt.js +0 -16
  429. /package/dist/shared-utils/{absoluteUrl.d.ts → url/absoluteUrl.d.ts} +0 -0
  430. /package/libs/shared-utils/{absoluteUrl.d.ts → url/absoluteUrl.d.ts} +0 -0
  431. /package/libs/shared-utils/{absoluteUrl.js → url/absoluteUrl.js} +0 -0
package/libs/index.js CHANGED
@@ -1,59 +1,59 @@
1
1
  import { consoleVersion as o } from "./shared-utils/logger.js";
2
2
  import { autoFixOffscreenCanvas as r } from "./shared-utils/offscreenCanvas.js";
3
- import { PaintBrush as Hp } from "./components/PaintBrush/index.js";
4
- import { PaintBrushTypeEnum as jp } from "./components/PaintBrush/typings.js";
5
- import { ModelViewPlugin as kp } from "./ModelViewPlugin/Plugin.js";
6
- import { CSS3DRenderPlugin as zp } from "./CSS3DRenderPlugin/index.js";
7
- import { PanoCursorRaycasterPlugin as Kp } from "./PanoCursorRaycasterPlugin/index.js";
8
- import { ModelRoomLabelPlugin as Wp, modelRoomLabelPluginServerParams as Xp } from "./ModelRoomLabelPlugin/index.js";
9
- import { FLOOR_PLAN_ATTACHED_TO as oe } from "./floorplan/constant.js";
10
- import { ModelFloorplanPlugin as te } from "./floorplan/ModelFloorplanPlugin/index.js";
11
- import { MapviewFloorplanPlugin as me } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
- import { TopviewFloorplanPlugin as ee } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
- import { PanoFloorplanRadarPlugin as le } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
- import { FLOOR_TYPE_MAP as Pe, ROOM_FETILE_TYPE_MAP as ue, ROOM_TYPE_MAP as fe } from "./floorplan/typings/floorplanServerData.js";
15
- import { ModelChassisCompassPlugin as ge } from "./ModelChassisCompassPlugin/Plugin.js";
16
- import { ModelEntryDoorGuidePlugin as de } from "./ModelEntryDoorGuidePlugin/Plugin.js";
17
- import { CameraMovementPlugin as Te } from "./CameraMovementPlugin/CameraMovementPlugin.js";
18
- import { CameraMovementEffect as Ce, Rotation as _e } from "./CameraMovementPlugin/typing.js";
19
- import { PanoRulerPlugin as Ie } from "./PanoRulerPlugin/Plugin.js";
20
- import { PanoRulerProPlugin as Oe } from "./PanoRulerProPlugin/index.js";
21
- import { PanoCompassPlugin as Ae } from "./PanoCompassPlugin/index.js";
22
- import { PanoMeasurePlugin as De } from "./PanoMeasurePlugin/index.js";
23
- import { PanoSpatialTagPlugin as be } from "./PanoSpatialTagPlugin/Plugin.js";
24
- import { modelItemLabelPluginServerParams as Ye } from "./ModelItemLabelPlugin/index.js";
25
- import { ModelTVVideoPlugin as ce } from "./ModelTVVideoPlugin/Plugin.js";
26
- import { DIRECTION as Ne } from "./ModelTVVideoPlugin/typings.js";
27
- import { itemLabelPluginServerParams as we } from "./ItemLabelPlugin/index.js";
28
- import { PanoDoorLabelPlugin as He } from "./PanoDoorLabelPlugin/index.js";
29
- import { GuideLinePlugin as je } from "./GuideLinePlugin/index.js";
30
- import { CruisePlugin as ke } from "./CruisePlugin/index.js";
31
- import { PanoTagPlugin as ze } from "./PanoTagPlugin/index.js";
32
- import { Object3DHelperPlugin as Ke } from "./Object3DHelperPlugin/index.js";
33
- import { PanoVideoPlugin as We } from "./PanoVideoPlugin/index.js";
34
- import { PipelinePlugin as Ze } from "./PipelinePlugin/index.js";
35
- import { AreaMakerPlugin as rn } from "./AreaMakerPlugin/index.js";
36
- import { CurrentPanoImagePlugin as mn } from "./CurrentPanoImagePlugin/index.js";
37
- import { index as en } from "./shared-utils/index.js";
38
- import { CSS3DRender as ln } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
39
- import { Model as Pn } from "./PanoMeasurePlugin/Model/index.js";
40
- import { default as fn } from "./PanoMeasurePlugin/Model/point.js";
41
- import { default as gn } from "./PanoMeasurePlugin/Model/line.js";
42
- import { Polyline as dn } from "./PanoMeasurePlugin/Model/polyline.js";
43
- import { default as Tn } from "./PanoMeasurePlugin/Modules/Magnifier.js";
44
- import { DISPLAY_STRATEGY_TYPE as Cn } from "./ModelItemLabelPlugin/typings.js";
45
- import { ModelItemLabelPlugin as En } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
46
- import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as Rn } from "./ItemLabelPlugin/typings.js";
47
- import { Plugin as yn } from "./ItemLabelPlugin/Plugin.js";
48
- import { GuideLineItem$1 as Sn } from "./GuideLinePlugin/GuideLineItem/index.js";
49
- import { GuideLineModeItem$1 as Gn } from "./GuideLinePlugin/GuideLineModeItem/index.js";
50
- import { default as Fn } from "./CruisePlugin/Controller.js";
51
- import { typing as vn } from "./CruisePlugin/typing/index.js";
52
- import { default as Vn, pluginFlag as Nn } from "./PanoTagPlugin/controller/index.js";
53
- import { defaultGlobalConfig as wn } from "./PanoTagPlugin/typings/tag/TagConfig.js";
54
- import { ContentType as Hn, DimensionType as Un, PointType as jn } from "./PanoTagPlugin/Archive/deprecated.js";
55
- import { Object3DHelperController as kn, PLUGIN as qn } from "./Object3DHelperPlugin/Controller.js";
56
- import { typings as Jn } from "./PanoVideoPlugin/typings/index.js";
3
+ import { PaintBrush as jp } from "./components/PaintBrush/index.js";
4
+ import { PaintBrushTypeEnum as kp } from "./components/PaintBrush/typings.js";
5
+ import { ModelViewPlugin as zp } from "./ModelViewPlugin/Plugin.js";
6
+ import { CSS3DRenderPlugin as Kp } from "./CSS3DRenderPlugin/index.js";
7
+ import { PanoCursorRaycasterPlugin as Wp } from "./PanoCursorRaycasterPlugin/index.js";
8
+ import { ModelRoomLabelPlugin as Zp, modelRoomLabelPluginServerParams as oe } from "./ModelRoomLabelPlugin/index.js";
9
+ import { FLOOR_PLAN_ATTACHED_TO as te } from "./floorplan/constant.js";
10
+ import { ModelFloorplanPlugin as me } from "./floorplan/ModelFloorplanPlugin/index.js";
11
+ import { MapviewFloorplanPlugin as ee } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
+ import { TopviewFloorplanPlugin as le } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
+ import { PanoFloorplanRadarPlugin as Pe } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
+ import { FLOOR_TYPE_MAP as fe, ROOM_FETILE_TYPE_MAP as xe, ROOM_TYPE_MAP as ge } from "./floorplan/typings/floorplanServerData.js";
15
+ import { ModelChassisCompassPlugin as de } from "./ModelChassisCompassPlugin/Plugin.js";
16
+ import { ModelEntryDoorGuidePlugin as Te } from "./ModelEntryDoorGuidePlugin/Plugin.js";
17
+ import { CameraMovementPlugin as Ce } from "./CameraMovementPlugin/CameraMovementPlugin.js";
18
+ import { CameraMovementEffect as Ee, Rotation as Ie } from "./CameraMovementPlugin/typing.js";
19
+ import { PanoRulerPlugin as Oe } from "./PanoRulerPlugin/Plugin.js";
20
+ import { PanoRulerProPlugin as Ae } from "./PanoRulerProPlugin/index.js";
21
+ import { PanoCompassPlugin as De } from "./PanoCompassPlugin/index.js";
22
+ import { PanoMeasurePlugin as be } from "./PanoMeasurePlugin/index.js";
23
+ import { PanoSpatialTagPlugin as Ye } from "./PanoSpatialTagPlugin/Plugin.js";
24
+ import { modelItemLabelPluginServerParams as ce } from "./ModelItemLabelPlugin/index.js";
25
+ import { ModelTVVideoPlugin as Ne } from "./ModelTVVideoPlugin/Plugin.js";
26
+ import { DIRECTION as we } from "./ModelTVVideoPlugin/typings.js";
27
+ import { itemLabelPluginServerParams as He } from "./ItemLabelPlugin/index.js";
28
+ import { PanoDoorLabelPlugin as je } from "./PanoDoorLabelPlugin/index.js";
29
+ import { GuideLinePlugin as ke } from "./GuideLinePlugin/index.js";
30
+ import { CruisePlugin as ze } from "./CruisePlugin/index.js";
31
+ import { PanoTagPlugin as Ke } from "./PanoTagPlugin/index.js";
32
+ import { Object3DHelperPlugin as We } from "./Object3DHelperPlugin/index.js";
33
+ import { PanoVideoPlugin as Ze } from "./PanoVideoPlugin/index.js";
34
+ import { PipelinePlugin as rn } from "./PipelinePlugin/index.js";
35
+ import { AreaMakerPlugin as mn } from "./AreaMakerPlugin/index.js";
36
+ import { CurrentPanoImagePlugin as en } from "./CurrentPanoImagePlugin/index.js";
37
+ import { index as ln } from "./shared-utils/index.js";
38
+ import { CSS3DRender as Pn } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
39
+ import { Model as fn } from "./PanoMeasurePlugin/Model/index.js";
40
+ import { default as gn } from "./PanoMeasurePlugin/Model/point.js";
41
+ import { default as dn } from "./PanoMeasurePlugin/Model/line.js";
42
+ import { Polyline as Tn } from "./PanoMeasurePlugin/Model/polyline.js";
43
+ import { default as Cn } from "./PanoMeasurePlugin/Modules/Magnifier.js";
44
+ import { DISPLAY_STRATEGY_TYPE as En } from "./ModelItemLabelPlugin/typings.js";
45
+ import { ModelItemLabelPlugin as Rn } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
46
+ import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as yn } from "./ItemLabelPlugin/typings.js";
47
+ import { Plugin as Sn } from "./ItemLabelPlugin/Plugin.js";
48
+ import { GuideLineItem$1 as Gn } from "./GuideLinePlugin/GuideLineItem/index.js";
49
+ import { GuideLineModeItem$1 as Fn } from "./GuideLinePlugin/GuideLineModeItem/index.js";
50
+ import { default as vn } from "./CruisePlugin/Controller.js";
51
+ import { typing as Vn } from "./CruisePlugin/typing/index.js";
52
+ import { default as hn, pluginFlag as wn } from "./PanoTagPlugin/controller/index.js";
53
+ import { defaultGlobalConfig as Hn } from "./PanoTagPlugin/typings/tag/TagConfig.js";
54
+ import { ContentType as jn, DimensionType as $n, PointType as kn } from "./PanoTagPlugin/Archive/deprecated.js";
55
+ import { Object3DHelperController as zn, PLUGIN as Jn } from "./Object3DHelperPlugin/Controller.js";
56
+ import { typings as Qn } from "./PanoVideoPlugin/typings/index.js";
57
57
  import "./components/PaintBrush/Controller.js";
58
58
  import "./components/PaintBrush/utils.js";
59
59
  import "./components/PaintBrush/tween.js";
@@ -67,7 +67,7 @@ import "./CSS3DRenderPlugin/Controller.js";
67
67
  import "./CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
68
68
  import "./CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
69
69
  import "hammerjs";
70
- import "./shared-utils/absoluteUrl.js";
70
+ import "./shared-utils/url/absoluteUrl.js";
71
71
  import "./shared-utils/positionToVector3.js";
72
72
  import "./CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
73
73
  import "three/examples/jsm/renderers/CSS3DRenderer";
@@ -279,9 +279,12 @@ import "./shared-utils/math/pointIsRectangle.js";
279
279
  import "./shared-utils/three/loadVideoTexture.js";
280
280
  import "./shared-utils/three/getPositionsByObjectFit.js";
281
281
  import "./shared-utils/three/FragmentTransparencyMaterial.js";
282
+ import "./shared-utils/three/getNormal.js";
282
283
  import "./shared-utils/five/FiveDomEvents.js";
284
+ import "./shared-utils/five/calculateThreeMouse.js";
283
285
  import "./PanoTagPlugin/utils/tag/adaptConfig.js";
284
286
  import "./shared-utils/typescript/entries.js";
287
+ import "./shared-utils/url/getUrl.js";
285
288
  import "./shared-utils/five/getFloorIndex.js";
286
289
  import "./PanoTagPlugin/Components/TagContainer.js";
287
290
  import "./PanoTagPlugin/Components/TagItem.js";
@@ -406,7 +409,6 @@ import "./shared-utils/three/objects/LineSegments.js";
406
409
  import "./components/AreaLabel/LabelItem.js";
407
410
  import "./components/AreaLabel/Assets/roomLabelBg.js";
408
411
  import "./CurrentPanoImagePlugin/Controller.js";
409
- import "./shared-utils/five/adapt.js";
410
412
  import "./shared-utils/math/Interval.js";
411
413
  import "./shared-utils/math/Rectangle.js";
412
414
  import "./shared-utils/five/index.js";
@@ -415,66 +417,66 @@ import "./shared-utils/three/getRaycaster.js";
415
417
  r();
416
418
  o();
417
419
  export {
418
- rn as AreaMakerPlugin,
419
- ln as CSS3DRender,
420
- zp as CSS3DRenderPlugin,
421
- Ce as CameraMovementEffect,
422
- Te as CameraMovementPlugin,
423
- Hn as ContentType,
424
- ke as CruisePlugin,
425
- Fn as CruisePluginController,
426
- vn as CruisePluginTypes,
427
- mn as CurrentPanoImagePlugin,
428
- Ne as DIRECTION,
429
- Cn as DISPLAY_STRATEGY_TYPE,
430
- Un as DimensionType,
431
- oe as FLOOR_PLAN_ATTACHED_TO,
432
- Pe as FLOOR_TYPE_MAP,
433
- Sn as GuideLineItem,
434
- Gn as GuideLineModeItem,
435
- je as GuideLinePlugin,
436
- Rn as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
437
- yn as ItemLabelPlugin,
438
- Tn as Magnifier,
439
- me as MapviewFloorplanPlugin,
440
- ge as ModelChassisCompassPlugin,
441
- de as ModelEntryDoorGuidePlugin,
442
- te as ModelFloorplanPlugin,
443
- En as ModelItemLabelPlugin,
444
- Wp as ModelRoomLabelPlugin,
445
- ce as ModelTVVideoPlugin,
446
- kp as ModelViewPlugin,
447
- kn as Object3DHelperController,
448
- Ke as Object3DHelperPlugin,
449
- qn as PLUGIN,
450
- Hp as PaintBrush,
451
- jp as PaintBrushTypeEnum,
452
- Ae as PanoCompassPlugin,
453
- Kp as PanoCursorRaycasterPlugin,
454
- He as PanoDoorLabelPlugin,
455
- le as PanoFloorplanRadarPlugin,
456
- De as PanoMeasurePlugin,
457
- gn as PanoMeasurePluginLine,
458
- Pn as PanoMeasurePluginModel,
459
- fn as PanoMeasurePluginPoint,
460
- dn as PanoMeasurePluginPolyline,
461
- Ie as PanoRulerPlugin,
462
- Oe as PanoRulerProPlugin,
463
- be as PanoSpatialTagPlugin,
464
- ze as PanoTagPlugin,
465
- Vn as PanoTagPluginController,
466
- We as PanoVideoPlugin,
467
- Jn as PanoVideoPluginType,
468
- Ze as PipelinePlugin,
469
- jn as PointType,
470
- ue as ROOM_FETILE_TYPE_MAP,
471
- fe as ROOM_TYPE_MAP,
472
- _e as Rotation,
473
- ee as TopviewFloorplanPlugin,
474
- en as Util,
475
- wn as defaultGlobalConfig,
476
- we as itemLabelPluginServerParams,
477
- Ye as modelItemLabelPluginServerParams,
478
- Xp as modelRoomLabelPluginServerParams,
479
- Nn as pluginFlag
420
+ mn as AreaMakerPlugin,
421
+ Pn as CSS3DRender,
422
+ Kp as CSS3DRenderPlugin,
423
+ Ee as CameraMovementEffect,
424
+ Ce as CameraMovementPlugin,
425
+ jn as ContentType,
426
+ ze as CruisePlugin,
427
+ vn as CruisePluginController,
428
+ Vn as CruisePluginTypes,
429
+ en as CurrentPanoImagePlugin,
430
+ we as DIRECTION,
431
+ En as DISPLAY_STRATEGY_TYPE,
432
+ $n as DimensionType,
433
+ te as FLOOR_PLAN_ATTACHED_TO,
434
+ fe as FLOOR_TYPE_MAP,
435
+ Gn as GuideLineItem,
436
+ Fn as GuideLineModeItem,
437
+ ke as GuideLinePlugin,
438
+ yn as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
439
+ Sn as ItemLabelPlugin,
440
+ Cn as Magnifier,
441
+ ee as MapviewFloorplanPlugin,
442
+ de as ModelChassisCompassPlugin,
443
+ Te as ModelEntryDoorGuidePlugin,
444
+ me as ModelFloorplanPlugin,
445
+ Rn as ModelItemLabelPlugin,
446
+ Zp as ModelRoomLabelPlugin,
447
+ Ne as ModelTVVideoPlugin,
448
+ zp as ModelViewPlugin,
449
+ zn as Object3DHelperController,
450
+ We as Object3DHelperPlugin,
451
+ Jn as PLUGIN,
452
+ jp as PaintBrush,
453
+ kp as PaintBrushTypeEnum,
454
+ De as PanoCompassPlugin,
455
+ Wp as PanoCursorRaycasterPlugin,
456
+ je as PanoDoorLabelPlugin,
457
+ Pe as PanoFloorplanRadarPlugin,
458
+ be as PanoMeasurePlugin,
459
+ dn as PanoMeasurePluginLine,
460
+ fn as PanoMeasurePluginModel,
461
+ gn as PanoMeasurePluginPoint,
462
+ Tn as PanoMeasurePluginPolyline,
463
+ Oe as PanoRulerPlugin,
464
+ Ae as PanoRulerProPlugin,
465
+ Ye as PanoSpatialTagPlugin,
466
+ Ke as PanoTagPlugin,
467
+ hn as PanoTagPluginController,
468
+ Ze as PanoVideoPlugin,
469
+ Qn as PanoVideoPluginType,
470
+ rn as PipelinePlugin,
471
+ kn as PointType,
472
+ xe as ROOM_FETILE_TYPE_MAP,
473
+ ge as ROOM_TYPE_MAP,
474
+ Ie as Rotation,
475
+ le as TopviewFloorplanPlugin,
476
+ ln as Util,
477
+ Hn as defaultGlobalConfig,
478
+ He as itemLabelPluginServerParams,
479
+ ce as modelItemLabelPluginServerParams,
480
+ oe as modelRoomLabelPluginServerParams,
481
+ wn as pluginFlag
480
482
  };
@@ -7,13 +7,24 @@
7
7
  * 4. 重构之后只会在 wantsTapGesture 事件触发的时候做射线检测
8
8
  */
9
9
  import type { Five } from '@realsee/five';
10
- import type * as THREE from 'three';
11
- type EventName = 'click';
10
+ import * as THREE from 'three';
11
+ interface EventMap {
12
+ /**
13
+ * @description 点击事件
14
+ * @return {PreventFiveEvent} 返回 false 可以不阻止 five 的 tap 事件; default: true
15
+ */
16
+ click: (event: CallbackEvent) => PreventFiveEvent | void;
17
+ /**
18
+ * @description 鼠标移入事件
19
+ */
20
+ hover: (event: CallbackEvent) => void;
21
+ /**
22
+ * @description 鼠标移出事件
23
+ */
24
+ unHover: (event: CallbackEvent) => void;
25
+ }
26
+ type EventName = keyof EventMap;
12
27
  type PreventFiveEvent = boolean;
13
- /**
14
- * @return {PreventFiveEvent} 返回 false 可以不阻止 five 的 tap 事件; default: true
15
- */
16
- type Callback = (event: CallbackEvent) => PreventFiveEvent | void;
17
28
  interface EventHandlerConfig {
18
29
  /**
19
30
  * @default true
@@ -29,8 +40,9 @@ interface CallbackEvent {
29
40
  }
30
41
  type Object3DWithEvent = THREE.Object3D & {
31
42
  _domEvent?: {
32
- [key in `${EventName}Handler`]?: Array<[Function, EventHandlerConfig]>;
43
+ [key in `${EventName}Handler`]?: Array<[EventMap[EventName], EventHandlerConfig]>;
33
44
  };
45
+ _hovered?: boolean;
34
46
  };
35
47
  export declare class FiveDomEvents {
36
48
  private five;
@@ -41,7 +53,7 @@ export declare class FiveDomEvents {
41
53
  * @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
42
54
  * @todo: added 和 removed 还是不太智能
43
55
  */
44
- addAutoBindEventListener(...params: Parameters<InstanceType<typeof FiveDomEvents>['addEventListener']>): void;
56
+ addAutoBindEventListener<T extends EventName>(object: Object3DWithEvent, event: T, callback: EventMap[T], config?: EventHandlerConfig): () => void;
45
57
  /**
46
58
  * @description: add event listener
47
59
  * @param params.object: object
@@ -49,10 +61,12 @@ export declare class FiveDomEvents {
49
61
  * @param params.callback: 返回 false 可以不阻止 five 的 tap 事件; default: true
50
62
  * @return {void}
51
63
  */
52
- addEventListener(object: Object3DWithEvent, event: EventName, callback: Callback, config?: EventHandlerConfig): void;
64
+ addEventListener<T extends EventName>(object: Object3DWithEvent, event: T, callback: EventMap[T], config?: EventHandlerConfig): void;
53
65
  removeEventListener(object: Object3DWithEvent, event: EventName, callback: (e: CallbackEvent) => any, ...args: any[]): void;
54
66
  dispose(): void;
55
- private handleWantsTapGesture;
67
+ private getRaycaster;
68
+ private handleWantsGesture;
69
+ private onDomEvent;
56
70
  private objectIsBound;
57
71
  private notify;
58
72
  }
@@ -1,89 +1,119 @@
1
- var O = Object.defineProperty, g = Object.defineProperties;
2
- var H = Object.getOwnPropertyDescriptors;
3
- var m = Object.getOwnPropertySymbols;
4
- var L = Object.prototype.hasOwnProperty, $ = Object.prototype.propertyIsEnumerable;
5
- var f = (i, e, t) => e in i ? O(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, p = (i, e) => {
1
+ var g = Object.defineProperty;
2
+ var _ = Object.getOwnPropertySymbols;
3
+ var y = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
4
+ var E = (u, e, t) => e in u ? g(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t, b = (u, e) => {
6
5
  for (var t in e || (e = {}))
7
- L.call(e, t) && f(i, t, e[t]);
8
- if (m)
9
- for (var t of m(e))
10
- $.call(e, t) && f(i, t, e[t]);
11
- return i;
12
- }, _ = (i, e) => g(i, H(e));
13
- var u = (i, e, t) => (f(i, typeof e != "symbol" ? e + "" : e, t), t);
14
- import { getObjectVisible as x } from "../three/getObjectVisible.js";
15
- class G {
6
+ y.call(e, t) && E(u, t, e[t]);
7
+ if (_)
8
+ for (var t of _(e))
9
+ H.call(e, t) && E(u, t, e[t]);
10
+ return u;
11
+ };
12
+ var v = (u, e, t) => (E(u, typeof e != "symbol" ? e + "" : e, t), t);
13
+ import * as L from "three";
14
+ import { getObjectVisible as $ } from "../three/getObjectVisible.js";
15
+ import { calculateThreeMouse as x } from "./calculateThreeMouse.js";
16
+ class D {
16
17
  constructor(e) {
17
- u(this, "five");
18
- u(this, "boundObject", {});
19
- u(this, "handleWantsTapGesture", (e) => {
20
- var d;
21
- const t = "click", n = this.boundObject[t];
22
- if (!n || (n == null ? void 0 : n.length) === 0)
18
+ v(this, "five");
19
+ v(this, "boundObject", {});
20
+ v(this, "handleWantsGesture", (e, t) => {
21
+ if (t.length !== 1)
23
22
  return;
24
- const o = this.five.model.intersectRaycaster(e), s = e.intersectObjects(n, !0);
25
- if (o.length > 0 && s.length > 0 && o[0].distance < s[0].distance)
23
+ const n = t[0];
24
+ if (n) {
25
+ if (e === "mouseMove")
26
+ return this.onDomEvent("hover", n);
27
+ if (e === "tap")
28
+ return this.onDomEvent("click", n);
29
+ }
30
+ });
31
+ v(this, "onDomEvent", (e, t) => {
32
+ var f, i;
33
+ const n = this.boundObject[e];
34
+ if (!n || (n == null ? void 0 : n.length) === 0 || !t)
26
35
  return;
27
- const r = (d = s[0]) == null ? void 0 : d.object;
28
- if (!r || !this.objectIsBound(r))
36
+ const s = (f = t.raycaster) != null ? f : this.getRaycaster(t), r = (() => {
37
+ var h;
38
+ const d = s.intersectObjects(n, !0);
39
+ if (d.length === 0)
40
+ return;
41
+ const o = this.five.model.intersectRaycaster(s);
42
+ if (!(o.length > 0 && d.length > 0 && o[0].distance < d[0].distance))
43
+ return (h = d[0]) == null ? void 0 : h.object;
44
+ })();
45
+ if (!r || !this.objectIsBound(r)) {
46
+ for (const d of (i = this.boundObject.hover) != null ? i : [])
47
+ d._hovered && this.notify("unHover", d);
29
48
  return;
30
- if (this.notify(t, r))
49
+ }
50
+ if (this.notify(e, r))
31
51
  return !1;
32
52
  });
33
- u(this, "objectIsBound", (e) => {
53
+ v(this, "objectIsBound", (e) => {
34
54
  let t = e._domEvent, n = e.parent;
35
55
  for (; typeof t == "undefined" && n; )
36
56
  t = n._domEvent, n = n.parent;
37
57
  return !!t;
38
58
  });
39
59
  // eslint-disable-next-line max-params
40
- u(this, "notify", (e, t, n, o) => {
41
- let s = !1, r = [];
42
- const l = [t];
43
- let d = t;
44
- for (; d.parent; )
45
- d = d.parent, l.push(d);
46
- for (const a of l) {
47
- if (s)
60
+ v(this, "notify", (e, t, n, s) => {
61
+ var d;
62
+ let r = !1, a = [];
63
+ const f = [];
64
+ let i = t;
65
+ for (f.push(i); i.parent; )
66
+ i = i.parent, f.push(i);
67
+ for (const o of f) {
68
+ if (r)
48
69
  break;
49
- const h = a._domEvent;
70
+ const h = o._domEvent;
50
71
  if (!h)
51
72
  continue;
52
- const E = h[`${e}Handler`];
53
- if (E)
54
- for (const [b, v] of E) {
55
- if (v != null && v.checkVisible && !x(a))
73
+ const p = h[`${e}Handler`];
74
+ if (p)
75
+ for (const [O, l] of p) {
76
+ if (l != null && l.checkVisible && !$(o))
56
77
  continue;
57
- const c = b({
78
+ if (e === "hover") {
79
+ if (o._hovered)
80
+ continue;
81
+ o._hovered = !0;
82
+ for (const c of (d = this.boundObject.hover) != null ? d : [])
83
+ c !== o && c._hovered && this.notify("unHover", c);
84
+ }
85
+ if (e === "unHover") {
86
+ if (!o._hovered)
87
+ continue;
88
+ o._hovered = !1;
89
+ }
90
+ const m = O({
58
91
  type: e,
59
- target: a,
92
+ target: o,
60
93
  origDomEvent: n,
61
- intersect: o,
94
+ intersect: s,
62
95
  stopPropagation: () => {
63
- s = !0;
96
+ r = !0;
64
97
  }
65
98
  });
66
- r.push(c != null ? c : !0);
99
+ a.push(m != null ? m : !0);
67
100
  }
68
101
  }
69
- return r.some((a) => a === !0);
102
+ if (e === "click")
103
+ return a.some((o) => o === !0);
70
104
  });
71
- this.five = e, e.on("wantsTapGesture", this.handleWantsTapGesture);
105
+ this.five = e, e.on("wantsGesture", this.handleWantsGesture);
72
106
  }
73
107
  /**
74
108
  * @description: added 时自动绑定事件,removed时自动解绑事件,也就是说只有物体在场景中的时候才会触发事件
75
109
  * @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
76
110
  * @todo: added 和 removed 还是不太智能
77
111
  */
78
- addAutoBindEventListener(...e) {
79
- const t = e[0];
80
- t.addEventListener("added", () => {
81
- this.addEventListener(...e);
82
- }), t.addEventListener("removed", () => {
83
- this.removeEventListener(...e);
84
- }), t.addEventListener("dispose", () => {
85
- this.removeEventListener(...e);
86
- });
112
+ addAutoBindEventListener(e, t, n, s) {
113
+ const r = () => this.addEventListener(e, t, n, s), a = () => this.removeEventListener(e, t, n, s);
114
+ return e.addEventListener("added", r), e.addEventListener("removed", a), e.addEventListener("dispose", a), () => {
115
+ e.removeEventListener("added", r), e.removeEventListener("removed", a), e.removeEventListener("dispose", a);
116
+ };
87
117
  }
88
118
  /**
89
119
  * @description: add event listener
@@ -92,24 +122,32 @@ class G {
92
122
  * @param params.callback: 返回 false 可以不阻止 five 的 tap 事件; default: true
93
123
  * @return {void}
94
124
  */
95
- addEventListener(e, t, n, o) {
96
- var s;
97
- e._domEvent || (e._domEvent = {}), e._domEvent[`${t}Handler`] || (e._domEvent[`${t}Handler`] = []), this.boundObject[t] || (this.boundObject[t] = []), e._domEvent[`${t}Handler`].push([n, _(p({}, o), { checkVisible: !0 })]), (s = this.boundObject[t]) == null || s.push(e);
125
+ addEventListener(e, t, n, s) {
126
+ var r;
127
+ e._domEvent || (e._domEvent = {}), e._domEvent[`${t}Handler`] || (e._domEvent[`${t}Handler`] = []), this.boundObject[t] || (this.boundObject[t] = []), e._domEvent[`${t}Handler`].push([n, b({ checkVisible: !0 }, s)]), (r = this.boundObject[t]) == null || r.push(e);
98
128
  }
99
- removeEventListener(e, t, n, ...o) {
100
- var r, l;
129
+ removeEventListener(e, t, n, ...s) {
130
+ var a, f;
101
131
  if (!e._domEvent || !e._domEvent[`${t}Handler`])
102
132
  return;
103
- const s = e._domEvent[`${t}Handler`].findIndex((d) => d[0] === n);
104
- if (s !== -1 && (e._domEvent[`${t}Handler`].splice(s, 1), e._domEvent[`${t}Handler`].length === 0 && delete e._domEvent[`${t}Handler`], e._domEvent && Object.keys(e._domEvent).length === 0 && delete e._domEvent, !e._domEvent)) {
105
- const d = (r = this.boundObject[t]) == null ? void 0 : r.findIndex((a) => a === e);
106
- d !== -1 && ((l = this.boundObject[t]) == null || l.splice(d, 1));
133
+ const r = e._domEvent[`${t}Handler`].findIndex((i) => i[0] === n);
134
+ if (r !== -1 && (e._domEvent[`${t}Handler`].splice(r, 1), e._domEvent[`${t}Handler`].length === 0 && delete e._domEvent[`${t}Handler`], e._domEvent && Object.keys(e._domEvent).length === 0 && delete e._domEvent, !e._domEvent)) {
135
+ const i = (a = this.boundObject[t]) == null ? void 0 : a.findIndex((d) => d === e);
136
+ i !== -1 && ((f = this.boundObject[t]) == null || f.splice(i, 1));
107
137
  }
108
138
  }
109
139
  dispose() {
110
- this.five.off("wantsTapGesture", this.handleWantsTapGesture), this.boundObject = {};
140
+ var e;
141
+ (e = this.five) == null || e.off("wantsGesture", this.handleWantsGesture), this.boundObject = {};
142
+ }
143
+ getRaycaster(e) {
144
+ const t = this.five.getElement();
145
+ if (!t)
146
+ return;
147
+ const n = x(e, t), s = new L.Raycaster();
148
+ return s.setFromCamera(n, this.five.camera), s;
111
149
  }
112
150
  }
113
151
  export {
114
- G as FiveDomEvents
152
+ D as FiveDomEvents
115
153
  };
@@ -0,0 +1,11 @@
1
+ import * as THREE from 'three';
2
+ /**
3
+ * 计算 three 中的 mouse 的值
4
+ * @param mouseXY - 鼠标相对屏幕位置
5
+ * @param element - canvas元素(three的展示元素)
6
+ */
7
+ declare function calculateThreeMouse(mouseXY: {
8
+ x: number;
9
+ y: number;
10
+ }, element: HTMLElement): THREE.Vector2;
11
+ export { calculateThreeMouse };
@@ -0,0 +1,8 @@
1
+ import * as i from "three";
2
+ function h(t, e) {
3
+ const { top: n, left: o, width: r, height: c } = e.getBoundingClientRect();
4
+ return new i.Vector2((t.x - o) / r * 2 - 1, -(t.y - n) / c * 2 + 1);
5
+ }
6
+ export {
7
+ h as calculateThreeMouse
8
+ };
@@ -14,17 +14,17 @@ var f = (t, c, n) => new Promise((e, r) => {
14
14
  }, u = (o) => o.done ? e(o.value) : Promise.resolve(o.value).then(a, i);
15
15
  u((n = n.apply(t, c)).next());
16
16
  });
17
- import { nearlyEqual as d } from "../nearlyEqual.js";
18
- import { to as l } from "../to.js";
19
- function h(t) {
17
+ import { nearlyEqualRad as d, nearlyEqual as m } from "../nearlyEqual.js";
18
+ import { to as h } from "../to.js";
19
+ function w(t) {
20
20
  return Object.prototype.toString.call(t) === "[object Object]";
21
21
  }
22
- function m(t) {
23
- return h(t) && !!t.isVector3;
22
+ function l(t) {
23
+ return w(t) && !!t.isVector3;
24
24
  }
25
- function g(t, c) {
25
+ function j(t, c) {
26
26
  return f(this, null, function* () {
27
- const [n] = yield l(t.changeMode(...c));
27
+ const [n] = yield h(t.changeMode(...c));
28
28
  if (n)
29
29
  throw new Error("change mode canceled");
30
30
  yield new Promise((i) => {
@@ -36,16 +36,16 @@ function g(t, c) {
36
36
  if (!e)
37
37
  return !0;
38
38
  const r = t.getCurrentState();
39
- if (!w(e, r))
39
+ if (!b(e, r))
40
40
  throw new Error("pose 与预期不符");
41
41
  });
42
42
  }
43
- function w(t, c) {
43
+ function b(t, c) {
44
44
  return Object.keys(t).every((n) => {
45
45
  const e = c[n], r = t[n];
46
- return e === void 0 || r === void 0 ? !0 : typeof e == "number" && typeof r == "number" ? d(e, r, 2) : m(r) && m(e) ? r.distanceTo(e) < 0.01 : e === r;
46
+ return e === void 0 || r === void 0 ? !0 : n === "longitude" || n === "latitude" ? d(e, r, 2) : typeof e == "number" && typeof r == "number" ? m(e, r, 2) : l(r) && l(e) ? r.distanceTo(e) < 0.01 : e === r;
47
47
  });
48
48
  }
49
49
  export {
50
- g as changeMode
50
+ j as changeMode
51
51
  };
@@ -3,6 +3,6 @@ export * from './five';
3
3
  export * from './three';
4
4
  export * from './isNil';
5
5
  export * from './uuid';
6
- export * from './absoluteUrl';
6
+ export * from './url/absoluteUrl';
7
7
  export * from './animationFrame';
8
8
  export { default as equal } from './equal';