@realsee/dnalogel 3.0.0-dev.2 → 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 (386) hide show
  1. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
  2. package/dist/index.cjs.js +37 -37
  3. package/dist/index.d.ts +0 -1
  4. package/dist/index.js +3449 -3433
  5. package/dist/index.umd.js +39 -39
  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/nearlyEqual.d.ts +7 -0
  9. package/dist/shared-utils/three/PointSelectorHelper.d.ts +6 -5
  10. package/libs/CruisePlugin/Controller.js +132 -129
  11. package/libs/CruisePlugin/index.js +6 -5
  12. package/libs/CurrentPanoImagePlugin/Controller.js +21 -23
  13. package/libs/CurrentPanoImagePlugin/index.js +3 -4
  14. package/libs/GuideLinePlugin/Controller.js +5 -4
  15. package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
  16. package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
  17. package/libs/GuideLinePlugin/index.js +8 -7
  18. package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
  19. package/libs/PanoTagPlugin/Components/TagItem.js +192 -205
  20. package/libs/PanoTagPlugin/controller/TagComputer.js +63 -61
  21. package/libs/PanoTagPlugin/controller/TagRender.js +52 -51
  22. package/libs/PanoTagPlugin/controller/TagUtil.js +94 -98
  23. package/libs/PanoTagPlugin/controller/index.js +42 -42
  24. package/libs/PanoTagPlugin/index.js +12 -11
  25. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
  26. package/libs/base/BasePlugin.js +1 -1
  27. package/libs/floorplan/index.js +1 -0
  28. package/libs/index.d.ts +0 -1
  29. package/libs/index.js +1 -1
  30. package/libs/shared-utils/five/FiveDomEvents.d.ts +24 -10
  31. package/libs/shared-utils/five/FiveDomEvents.js +104 -66
  32. package/libs/shared-utils/five/calculateThreeMouse.d.ts +11 -0
  33. package/libs/shared-utils/five/calculateThreeMouse.js +8 -0
  34. package/libs/shared-utils/five/changeMode.js +11 -11
  35. package/libs/shared-utils/logger.js +1 -1
  36. package/libs/shared-utils/nearlyEqual.d.ts +7 -0
  37. package/libs/shared-utils/nearlyEqual.js +9 -3
  38. package/libs/shared-utils/three/PointSelector.js +39 -39
  39. package/libs/shared-utils/three/PointSelectorHelper.d.ts +6 -5
  40. package/libs/shared-utils/three/PointSelectorHelper.js +4 -4
  41. package/libs/shared-utils/three/getNormal.js +5 -5
  42. package/package.json +2 -2
  43. package/dist/shared-utils/five/adapt.d.ts +0 -9
  44. package/docs/.nojekyll +0 -1
  45. package/docs/assets/highlight.css +0 -120
  46. package/docs/assets/main.js +0 -58
  47. package/docs/assets/search.js +0 -1
  48. package/docs/assets/style.css +0 -1367
  49. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -725
  50. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -678
  51. package/docs/classes/CSS3DRender.html +0 -773
  52. package/docs/classes/CruisePluginController.html +0 -672
  53. package/docs/classes/GuideLineItem.GuideLineItem.html +0 -491
  54. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -792
  55. package/docs/classes/Magnifier.html +0 -480
  56. package/docs/classes/ModelRoomLabelController.html +0 -398
  57. package/docs/classes/Object3DHelperController.html +0 -640
  58. package/docs/classes/PaintBrush.html +0 -502
  59. package/docs/classes/PanoMeasurePluginLine.html +0 -522
  60. package/docs/classes/PanoMeasurePluginModel.html +0 -571
  61. package/docs/classes/PanoMeasurePluginPoint.html +0 -362
  62. package/docs/classes/PanoMeasurePluginPolyline.html +0 -567
  63. package/docs/classes/PanoTagPluginController.html +0 -1050
  64. package/docs/classes/Util.BetterTween.html +0 -416
  65. package/docs/classes/Util.Interval.html +0 -432
  66. package/docs/classes/Util.LineSegments.html +0 -384
  67. package/docs/classes/Util.Magnifier.html +0 -503
  68. package/docs/classes/Util.Object3D.html +0 -406
  69. package/docs/classes/Util.PointDomHelper.html +0 -407
  70. package/docs/classes/Util.PointHelper.html +0 -398
  71. package/docs/classes/Util.PointSelectorHelper.html +0 -454
  72. package/docs/classes/Util.Rectangle.html +0 -455
  73. package/docs/enums/CameraMovementEffect.html +0 -310
  74. package/docs/enums/ContentType.html +0 -446
  75. package/docs/enums/DIRECTION.html +0 -320
  76. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -320
  77. package/docs/enums/DimensionType.html +0 -310
  78. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -313
  79. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -320
  80. package/docs/enums/PaintBrushTypeEnum.html +0 -313
  81. package/docs/enums/PointType.html +0 -310
  82. package/docs/enums/Rotation.html +0 -317
  83. package/docs/functions/AreaMakerPlugin.html +0 -290
  84. package/docs/functions/CSS3DRenderPlugin.html +0 -288
  85. package/docs/functions/CameraMovementPlugin.html +0 -293
  86. package/docs/functions/CruisePlugin.html +0 -290
  87. package/docs/functions/CurrentPanoImagePlugin.html +0 -290
  88. package/docs/functions/GuideLinePlugin.html +0 -290
  89. package/docs/functions/ItemLabelPlugin.html +0 -290
  90. package/docs/functions/MapviewFloorplanPlugin.html +0 -290
  91. package/docs/functions/ModelChassisCompassPlugin.html +0 -293
  92. package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -293
  93. package/docs/functions/ModelFloorplanPlugin.html +0 -290
  94. package/docs/functions/ModelItemLabelPlugin.html +0 -290
  95. package/docs/functions/ModelRoomLabelPlugin.html +0 -288
  96. package/docs/functions/ModelTVVideoPlugin.html +0 -290
  97. package/docs/functions/ModelViewPlugin.html +0 -293
  98. package/docs/functions/Object3DHelperPlugin.html +0 -288
  99. package/docs/functions/PanoCompassPlugin.html +0 -290
  100. package/docs/functions/PanoCursorRaycasterPlugin.html +0 -294
  101. package/docs/functions/PanoDoorLabelPlugin.html +0 -290
  102. package/docs/functions/PanoFloorplanRadarPlugin.html +0 -290
  103. package/docs/functions/PanoMeasurePlugin.html +0 -290
  104. package/docs/functions/PanoRulerPlugin.html +0 -293
  105. package/docs/functions/PanoRulerProPlugin.html +0 -293
  106. package/docs/functions/PanoSpatialTagPlugin.html +0 -293
  107. package/docs/functions/PanoTagPlugin.html +0 -295
  108. package/docs/functions/PanoVideoPlugin.html +0 -299
  109. package/docs/functions/PipelinePlugin.html +0 -288
  110. package/docs/functions/TopviewFloorplanPlugin.html +0 -290
  111. package/docs/functions/Util.absoluteUrl.html +0 -326
  112. package/docs/functions/Util.checkFiveModelLoaded.html +0 -329
  113. package/docs/functions/Util.equal.html +0 -338
  114. package/docs/functions/Util.getCoordsFromClient.html +0 -328
  115. package/docs/functions/Util.getCoordsFromElement.html +0 -328
  116. package/docs/functions/Util.getFrameTime.html +0 -320
  117. package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -328
  118. package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -328
  119. package/docs/functions/Util.isAbsoluteURL.html +0 -321
  120. package/docs/functions/Util.isModelLike.html +0 -321
  121. package/docs/functions/Util.isNil.html +0 -329
  122. package/docs/functions/Util.isPanoramaLike.html +0 -321
  123. package/docs/functions/Util.nextFrame.html +0 -334
  124. package/docs/functions/Util.notNil.html +0 -329
  125. package/docs/functions/Util.requestAnimationFrameInterval.html +0 -350
  126. package/docs/functions/Util.tweenProgress.html +0 -323
  127. package/docs/functions/Util.uuid.html +0 -319
  128. package/docs/functions/pluginFlag.html +0 -288
  129. package/docs/index.html +0 -354
  130. package/docs/interfaces/AddTagConfig.html +0 -303
  131. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -329
  132. package/docs/interfaces/AreaMakerPluginType.Config.html +0 -334
  133. package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -620
  134. package/docs/interfaces/AreaMakerPluginType.Params.html +0 -333
  135. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -383
  136. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -368
  137. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -333
  138. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -326
  139. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -325
  140. package/docs/interfaces/AreaMakerPluginType.State.html +0 -354
  141. package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -449
  142. package/docs/interfaces/CSS3DRenderPluginState.html +0 -325
  143. package/docs/interfaces/CameraMovementPluginExportType.html +0 -358
  144. package/docs/interfaces/CruisePluginTypes.Config.html +0 -359
  145. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -361
  146. package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -696
  147. package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -385
  148. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -421
  149. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -411
  150. package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -351
  151. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -319
  152. package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -408
  153. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -382
  154. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -521
  155. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -323
  156. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -315
  157. package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -337
  158. package/docs/interfaces/EventMap.html +0 -542
  159. package/docs/interfaces/FloorplanBounding.html +0 -332
  160. package/docs/interfaces/FloorplanData.html +0 -335
  161. package/docs/interfaces/FloorplanEntrance.html +0 -360
  162. package/docs/interfaces/FloorplanExtraObject.html +0 -350
  163. package/docs/interfaces/FloorplanExtraObject3D.html +0 -339
  164. package/docs/interfaces/FloorplanFloorData.html +0 -328
  165. package/docs/interfaces/FloorplanImagePosition.html +0 -314
  166. package/docs/interfaces/FloorplanObserver.html +0 -332
  167. package/docs/interfaces/FloorplanOutlineItem.html +0 -328
  168. package/docs/interfaces/FloorplanPosition.html +0 -314
  169. package/docs/interfaces/FloorplanRoomItem.html +0 -379
  170. package/docs/interfaces/FloorplanRoomLabelItem.html +0 -320
  171. package/docs/interfaces/FloorplanServerBounding.html +0 -332
  172. package/docs/interfaces/FloorplanServerComputedData.html +0 -331
  173. package/docs/interfaces/FloorplanServerData.html +0 -314
  174. package/docs/interfaces/FloorplanServerDoorItem.html +0 -331
  175. package/docs/interfaces/FloorplanServerDoorPosition.html +0 -317
  176. package/docs/interfaces/FloorplanServerEntrance.html +0 -360
  177. package/docs/interfaces/FloorplanServerFloorData.html +0 -328
  178. package/docs/interfaces/FloorplanServerImagePosition.html +0 -314
  179. package/docs/interfaces/FloorplanServerObserver.html +0 -332
  180. package/docs/interfaces/FloorplanServerOutlineItem.html +0 -328
  181. package/docs/interfaces/FloorplanServerPosition.html +0 -314
  182. package/docs/interfaces/FloorplanServerRoomItem.html +0 -391
  183. package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -320
  184. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -323
  185. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -361
  186. package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -525
  187. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -356
  188. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -347
  189. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -414
  190. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -346
  191. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -471
  192. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -343
  193. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -471
  194. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -308
  195. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -329
  196. package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -354
  197. package/docs/interfaces/GuideLinePluginType.Route.html +0 -370
  198. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -352
  199. package/docs/interfaces/HelperOffset.html +0 -332
  200. package/docs/interfaces/ImagePlaneGroup.html +0 -306
  201. package/docs/interfaces/ItemLabelPluginData.html +0 -303
  202. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -388
  203. package/docs/interfaces/ItemLabelPluginParametersType.html +0 -324
  204. package/docs/interfaces/MinMax.html +0 -310
  205. package/docs/interfaces/ModelChassisCompassPluginData.html +0 -310
  206. package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -346
  207. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -310
  208. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -317
  209. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -354
  210. package/docs/interfaces/ModelItemLabelPluginData.html +0 -303
  211. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -388
  212. package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -310
  213. package/docs/interfaces/ModelRoomLabelPluginData.html +0 -303
  214. package/docs/interfaces/ModelTVVideoPluginData.html +0 -324
  215. package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -348
  216. package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -303
  217. package/docs/interfaces/ModelViewPluginExportType.html +0 -416
  218. package/docs/interfaces/Object3DHelperState.html +0 -317
  219. package/docs/interfaces/ObjectHelperControllers.html +0 -324
  220. package/docs/interfaces/PaintBrushAction.html +0 -363
  221. package/docs/interfaces/PaintBrushConfigs.html +0 -361
  222. package/docs/interfaces/PaintBrushState.html +0 -345
  223. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -425
  224. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -282
  225. package/docs/interfaces/PanoMeasureParameterType.html +0 -449
  226. package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -317
  227. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -314
  228. package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -310
  229. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -320
  230. package/docs/interfaces/PanoRulerPluginExportType.html +0 -377
  231. package/docs/interfaces/PanoRulerPluginOptions.html +0 -326
  232. package/docs/interfaces/PanoRulerPluginParameterType.html +0 -317
  233. package/docs/interfaces/PanoRulerProPluginExportType.html +0 -353
  234. package/docs/interfaces/PanoRulerProPluginOptions.html +0 -323
  235. package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -310
  236. package/docs/interfaces/PanoRulerProPluginState.html +0 -317
  237. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -296
  238. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -285
  239. package/docs/interfaces/PanoSpatialTagPluginData.html +0 -353
  240. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -335
  241. package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -431
  242. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -331
  243. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -352
  244. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -338
  245. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -331
  246. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -323
  247. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -341
  248. package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -314
  249. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -420
  250. package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -314
  251. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -349
  252. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -368
  253. package/docs/interfaces/Point.html +0 -317
  254. package/docs/interfaces/Room.html +0 -324
  255. package/docs/interfaces/RoomInfo.html +0 -310
  256. package/docs/interfaces/RoomLabel.html +0 -386
  257. package/docs/interfaces/RoomRules.html +0 -285
  258. package/docs/interfaces/Rooms.html +0 -285
  259. package/docs/interfaces/Scissor.html +0 -344
  260. package/docs/interfaces/State.html +0 -331
  261. package/docs/interfaces/TagCacheInterface.html +0 -362
  262. package/docs/interfaces/TagConfig.html +0 -565
  263. package/docs/interfaces/TagGLTFObjectGroup.html +0 -306
  264. package/docs/interfaces/TagIconUrl.html +0 -363
  265. package/docs/interfaces/TagObjectGroup.html +0 -306
  266. package/docs/interfaces/TagStyle.html +0 -316
  267. package/docs/interfaces/Tags.html +0 -2688
  268. package/docs/interfaces/TemporaryState.html +0 -303
  269. package/docs/interfaces/Util.MagnifierParameter.html +0 -391
  270. package/docs/interfaces/Util.MouseGroupParameter.html +0 -350
  271. package/docs/interfaces/Util.PointIntersection.html +0 -365
  272. package/docs/modules/AreaMakerPluginType.html +0 -323
  273. package/docs/modules/CruisePluginTypes.html +0 -328
  274. package/docs/modules/CurrentPanoImagePluginType.html +0 -297
  275. package/docs/modules/GuideLineItem.html +0 -289
  276. package/docs/modules/GuideLineModeItem.html +0 -294
  277. package/docs/modules/GuideLinePluginType.html +0 -348
  278. package/docs/modules/PanoVideoPluginType.html +0 -301
  279. package/docs/modules/Util.html +0 -351
  280. package/docs/modules.html +0 -540
  281. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -331
  282. package/docs/types/AreaMakerPluginType.PluginData.html +0 -301
  283. package/docs/types/AreaMakerPluginType.ServerData.html +0 -301
  284. package/docs/types/ArrayPosition.html +0 -279
  285. package/docs/types/AudioAppearance.html +0 -279
  286. package/docs/types/AudioTagTypeConfigKey.html +0 -279
  287. package/docs/types/CSS3DRenderExportType.html +0 -279
  288. package/docs/types/CSS3DRenderPluginExportType.html +0 -279
  289. package/docs/types/CSS3DRenderPluginParameterType.html +0 -279
  290. package/docs/types/ClassFunctionParameters.html +0 -286
  291. package/docs/types/Color.html +0 -279
  292. package/docs/types/ContentTypeConfigKey.html +0 -279
  293. package/docs/types/ContentTypeConfigKeySplit.html +0 -279
  294. package/docs/types/ContentTypeMap.html +0 -279
  295. package/docs/types/Create3DDomContainerReturnType.html +0 -279
  296. package/docs/types/Create3DElementReturnType.html +0 -279
  297. package/docs/types/CruisePluginExportType.html +0 -279
  298. package/docs/types/CruisePluginTypes.CruiseData.html +0 -318
  299. package/docs/types/CruisePluginTypes.MoveEffect.html +0 -295
  300. package/docs/types/CurrentPanoImagePluginExportType.html +0 -279
  301. package/docs/types/DeprecatedMediaPlaneProperty.html +0 -291
  302. package/docs/types/DeprecatedTagProperty.html +0 -294
  303. package/docs/types/Direction-1.html +0 -279
  304. package/docs/types/Direction4.html +0 -279
  305. package/docs/types/ElementRenderer.html +0 -303
  306. package/docs/types/FloorplanRuleLabels.html +0 -282
  307. package/docs/types/FloorplanServerRuleLabels.html +0 -279
  308. package/docs/types/GuideLinePluginExportType.html +0 -279
  309. package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -351
  310. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -372
  311. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -305
  312. package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -308
  313. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -308
  314. package/docs/types/GuideLinePluginType.PathItem.html +0 -308
  315. package/docs/types/GuideLinePluginType.PluginData.html +0 -317
  316. package/docs/types/HelperEventMap.html +0 -517
  317. package/docs/types/LoadTagConfig.html +0 -279
  318. package/docs/types/MapviewFloorplanPluginParameterType.html +0 -279
  319. package/docs/types/MapviewFloorplanPluginReturnType.html +0 -279
  320. package/docs/types/MediaData.html +0 -295
  321. package/docs/types/MediaStore.html +0 -284
  322. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -286
  323. package/docs/types/ModelFloorplanPluginParameterType.html +0 -279
  324. package/docs/types/ModelFloorplanPluginReturnType.html +0 -279
  325. package/docs/types/ModelId.html +0 -279
  326. package/docs/types/ModelRoomLabelPluginParameters.html +0 -279
  327. package/docs/types/ModelRoomLabelPluginReturnType.html +0 -279
  328. package/docs/types/MoveArgs.html +0 -289
  329. package/docs/types/MoveOpts.html +0 -287
  330. package/docs/types/Object3DHelperEventMap.html +0 -372
  331. package/docs/types/ObjectFit.html +0 -279
  332. package/docs/types/PaintBrushEventMap.html +0 -310
  333. package/docs/types/PanoCompassPluginData.html +0 -279
  334. package/docs/types/PanoCompassPluginExportType.html +0 -279
  335. package/docs/types/PanoCompassPluginParameterType.html +0 -279
  336. package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -279
  337. package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -279
  338. package/docs/types/PanoIndex.html +0 -279
  339. package/docs/types/PanoMeasurePluginEvent.html +0 -279
  340. package/docs/types/PanoMeasureReturnType.html +0 -279
  341. package/docs/types/PanoSpatialTagPluginId.html +0 -279
  342. package/docs/types/PanoTagPluginExportInterface.html +0 -279
  343. package/docs/types/PanoTagPluginParamsInterface.html +0 -279
  344. package/docs/types/PanoVideoPluginParameterType.html +0 -279
  345. package/docs/types/PanoVideoPluginReturnType.html +0 -279
  346. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -287
  347. package/docs/types/PipelinePluginParameterType.html +0 -279
  348. package/docs/types/PipelinePluginReturnType.html +0 -279
  349. package/docs/types/PlaneTag.html +0 -287
  350. package/docs/types/Point2DTag.html +0 -287
  351. package/docs/types/Point3DTag.html +0 -287
  352. package/docs/types/PointTag.html +0 -284
  353. package/docs/types/PointTagInstance.html +0 -284
  354. package/docs/types/Position.html +0 -279
  355. package/docs/types/RotateArgs.html +0 -291
  356. package/docs/types/RotateOpts.html +0 -287
  357. package/docs/types/RuleLabelsKey.html +0 -279
  358. package/docs/types/RuleLabelsValue.html +0 -279
  359. package/docs/types/StickType.html +0 -279
  360. package/docs/types/Tag.html +0 -345
  361. package/docs/types/Tag2D.html +0 -287
  362. package/docs/types/Tag3D.html +0 -287
  363. package/docs/types/TagConfigByKey.html +0 -284
  364. package/docs/types/TagContentType.html +0 -279
  365. package/docs/types/TagDimensionType.html +0 -281
  366. package/docs/types/TagElement.html +0 -289
  367. package/docs/types/TagEvents.html +0 -332
  368. package/docs/types/TagGLTFObject.html +0 -302
  369. package/docs/types/TagHooks.html +0 -279
  370. package/docs/types/TagId.html +0 -279
  371. package/docs/types/TagInstance.html +0 -353
  372. package/docs/types/TagPointType.html +0 -282
  373. package/docs/types/TagRendererMap.html +0 -284
  374. package/docs/types/TopviewFloorplanPluginParameterType.html +0 -279
  375. package/docs/types/TopviewFloorplanPluginReturnType.html +0 -279
  376. package/docs/types/WorkCode.html +0 -279
  377. package/docs/variables/FLOOR_TYPE_MAP.html +0 -289
  378. package/docs/variables/PLUGIN.html +0 -279
  379. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -282
  380. package/docs/variables/ROOM_TYPE_MAP.html +0 -289
  381. package/docs/variables/defaultGlobalConfig.html +0 -279
  382. package/docs/variables/itemLabelPluginServerParams.html +0 -286
  383. package/docs/variables/modelItemLabelPluginServerParams.html +0 -286
  384. package/docs/variables/modelRoomLabelPluginServerParams.html +0 -286
  385. package/libs/shared-utils/five/adapt.d.ts +0 -9
  386. package/libs/shared-utils/five/adapt.js +0 -16
@@ -1,39 +1,39 @@
1
- var H = Object.defineProperty, J = Object.defineProperties;
2
- var U = Object.getOwnPropertyDescriptors;
3
- var F = Object.getOwnPropertySymbols;
4
- var _ = Object.prototype.hasOwnProperty, X = Object.prototype.propertyIsEnumerable;
5
- var k = (a, r, e) => r in a ? H(a, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[r] = e, C = (a, r) => {
1
+ var U = Object.defineProperty, X = Object.defineProperties;
2
+ var q = Object.getOwnPropertyDescriptors;
3
+ var R = Object.getOwnPropertySymbols;
4
+ var K = Object.prototype.hasOwnProperty, Q = Object.prototype.propertyIsEnumerable;
5
+ var w = (a, r, e) => r in a ? U(a, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[r] = e, C = (a, r) => {
6
6
  for (var e in r || (r = {}))
7
- _.call(r, e) && k(a, e, r[e]);
8
- if (F)
9
- for (var e of F(r))
10
- X.call(r, e) && k(a, e, r[e]);
7
+ K.call(r, e) && w(a, e, r[e]);
8
+ if (R)
9
+ for (var e of R(r))
10
+ Q.call(r, e) && w(a, e, r[e]);
11
11
  return a;
12
- }, L = (a, r) => J(a, U(r));
13
- var d = (a, r, e) => (k(a, typeof r != "symbol" ? r + "" : r, e), e);
14
- import { defaultGlobalConfig as q } from "../typings/tag/TagConfig.js";
15
- import { objectAssignDeepExports as b } from "../../vendor/object-assign-deep/objectAssignDeep.js";
16
- import * as K from "three";
17
- import { DefaultConfig as Q } from "../tag.config.js";
18
- import { anyPositionToVector3 as Y, arrayPositionToVector3 as w } from "../../shared-utils/positionToVector3.js";
19
- import { planeNormal as E } from "../utils/planeNormal.js";
20
- import { getTagCenterPosition as x } from "../utils/tagPosition.js";
21
- import { normalPositionToPositions as Z } from "../utils/normalPositionToPositions.js";
22
- import { TagCache as ee } from "./TagCache.js";
23
- import { writable as ie } from "../../vendor/svelte/store/index.js";
24
- import { isIOSWX as te } from "../../shared-utils/device.js";
25
- import { Five as oe } from "@realsee/five";
26
- import { isMediaPlaneTag as ne, isMediaModelTag as B, isPlaneTag as re, isPoint3DTag as se } from "../utils/tag/tagCheck.js";
27
- import { VideoPlane as fe } from "../utils/model/mediaPlane.js";
28
- import { FiveDomEvents as ae } from "../../shared-utils/five/FiveDomEvents.js";
29
- import R from "../utils/tag/adaptConfig.js";
30
- import { isPanoramaLike as W, isModelLike as N } from "../../shared-utils/five/mode.js";
12
+ }, B = (a, r) => X(a, q(r));
13
+ var d = (a, r, e) => (w(a, typeof r != "symbol" ? r + "" : r, e), e);
14
+ import { defaultGlobalConfig as Y } from "../typings/tag/TagConfig.js";
15
+ import { objectAssignDeepExports as P } from "../../vendor/object-assign-deep/objectAssignDeep.js";
16
+ import * as Z from "three";
17
+ import { DefaultConfig as ee } from "../tag.config.js";
18
+ import { anyPositionToVector3 as ie, arrayPositionToVector3 as E } from "../../shared-utils/positionToVector3.js";
19
+ import { planeNormal as W } from "../utils/planeNormal.js";
20
+ import { getTagCenterPosition as N } from "../utils/tagPosition.js";
21
+ import { normalPositionToPositions as te } from "../utils/normalPositionToPositions.js";
22
+ import { TagCache as oe } from "./TagCache.js";
23
+ import { writable as ne } from "../../vendor/svelte/store/index.js";
24
+ import { isIOSWX as re } from "../../shared-utils/device.js";
25
+ import { Five as se } from "@realsee/five";
26
+ import { isMediaPlaneTag as fe, isMediaModelTag as G, isPlaneTag as ae, isPoint3DTag as ce } from "../utils/tag/tagCheck.js";
27
+ import { VideoPlane as le } from "../utils/model/mediaPlane.js";
28
+ import { FiveDomEvents as de } from "../../shared-utils/five/FiveDomEvents.js";
29
+ import _ from "../utils/tag/adaptConfig.js";
30
+ import { isPanoramaLike as j, isModelLike as $ } from "../../shared-utils/five/mode.js";
31
31
  import "hammerjs";
32
32
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
33
33
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
34
34
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
35
- import { entries as G } from "../../shared-utils/typescript/entries.js";
36
- import { getUrlExt as $ } from "../../shared-utils/url/getUrl.js";
35
+ import { entries as z } from "../../shared-utils/typescript/entries.js";
36
+ import { getUrlExt as H } from "../../shared-utils/url/getUrl.js";
37
37
  import "../../shared-utils/three/centerPoint.js";
38
38
  import "../../base/BasePlugin.js";
39
39
  import "../../shared-utils/Subscribe.js";
@@ -58,12 +58,13 @@ import "../Assets/Icon.js";
58
58
  import "../../shared-utils/three/getPositionsByObjectFit.js";
59
59
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
60
60
  import "../../shared-utils/three/getNormal.js";
61
- class ti extends ee {
61
+ import "../../shared-utils/five/calculateThreeMouse.js";
62
+ class si extends oe {
62
63
  constructor(e) {
63
64
  super(e);
64
65
  d(this, "tags", []);
65
- d(this, "config", Q);
66
- d(this, "mediaStore", ie({
66
+ d(this, "config", ee);
67
+ d(this, "mediaStore", ne({
67
68
  currentMediaElement: null
68
69
  }));
69
70
  /** css3DRenderPlugin */
@@ -74,10 +75,10 @@ class ti extends ee {
74
75
  resizeObserverDisposerAdding: !1,
75
76
  css3DRenderDisposer: /* @__PURE__ */ new Map()
76
77
  });
77
- d(this, "domEvents", new ae(this.five));
78
+ d(this, "domEvents", new de(this.five));
78
79
  d(this, "mouseInfo");
79
80
  d(this, "loadVideoFirstFrame", () => {
80
- te && this.hooks.emit("loadVideoFirstFrame");
81
+ re && this.hooks.emit("loadVideoFirstFrame");
81
82
  });
82
83
  d(this, "preventWhenMouseDown", () => {
83
84
  var e;
@@ -87,7 +88,7 @@ class ti extends ee {
87
88
  this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.mediaStore.subscribe(({ currentMediaElement: i }) => {
88
89
  this.tags.forEach((o) => {
89
90
  var t;
90
- if (o.mediaPlane instanceof fe && i !== o.mediaPlane.videoInstance) {
91
+ if (o.mediaPlane instanceof le && i !== o.mediaPlane.videoInstance) {
91
92
  if (!((t = o.mediaPlane.videoInstance) != null && t.src) || i === o.mediaPlane.videoInstance)
92
93
  return;
93
94
  o.mediaPlane.pause();
@@ -125,11 +126,12 @@ class ti extends ee {
125
126
  }
126
127
  updateTagConfig() {
127
128
  this.clearCache(), this.tags.forEach((e) => {
128
- var t;
129
+ var o;
129
130
  const i = this.getTagConfig(e, { useCache: !1 });
130
- e.config = i;
131
- const o = JSON.parse(JSON.stringify(e.data));
132
- e.data = (t = i.initialData) != null && t.important ? b(e.data, o, i.initialData) : b(e.data, i.initialData, o);
131
+ if (e.config = i, e.config.initialData) {
132
+ const t = JSON.parse(JSON.stringify(e.data));
133
+ e.data = (o = i.initialData) != null && o.important ? P(e.data, t, i.initialData) : P(e.data, i.initialData, t);
134
+ }
133
135
  });
134
136
  }
135
137
  can(e, i) {
@@ -159,15 +161,15 @@ class ti extends ee {
159
161
  return;
160
162
  const t = e.data.mediaData;
161
163
  if (!(!t || t.length === 0) && o.renderType === "Mesh") {
162
- if (ne(e)) {
164
+ if (fe(e)) {
163
165
  if (t.length === 1) {
164
166
  if (t[0].type === "Video")
165
167
  return "Mesh";
166
168
  if (t[0].type === "Image")
167
- return $(t[0].url) === "gif" ? "BehindDom" : "Mesh";
169
+ return H(t[0].url) === "gif" ? "Dom" : "Mesh";
168
170
  }
169
- } else if (B(e))
170
- return t.length === 1 && t[0].type === "Image" ? $(t[0].url) === "gif" ? "BehindDom" : "Mesh" : "BehindDom";
171
+ } else if (G(e))
172
+ return t.length === 1 && t[0].type === "Image" ? H(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
171
173
  }
172
174
  })();
173
175
  return i != null ? i : "Dom";
@@ -187,44 +189,44 @@ class ti extends ee {
187
189
  const f = (n = (s = this.five.work) == null ? void 0 : s.observers[o]) == null ? void 0 : n.position;
188
190
  if (f === void 0)
189
191
  throw new Error(`getAngle(): observerPosition is ${f}`);
190
- const c = (() => e.stickType === "3DPoint" ? Y(e.normal) : E(e.position))();
191
- if (!c)
192
+ const u = (() => e.stickType === "3DPoint" ? ie(e.normal) : W(e.position))();
193
+ if (!u)
192
194
  return;
193
- const g = x(e);
195
+ const g = N(e);
194
196
  if (!g)
195
197
  return;
196
- const u = new K.Vector3().copy(f).sub(g), v = c.angleTo(u) * 180 / Math.PI;
197
- return t.angle = v, t.angle;
198
+ const l = new Z.Vector3().copy(f).sub(g), T = u.angleTo(l) * 180 / Math.PI;
199
+ return t.angle = T, t.angle;
198
200
  }
199
201
  }
200
202
  /**
201
203
  * @description: 获取距离
202
204
  */
203
205
  getDistance(e, i) {
204
- var c, g;
205
- const o = C(C({}, this.five.getCurrentState()), i), { panoIndex: t, mode: s } = o, n = W(s) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
206
+ var u, g;
207
+ const o = C(C({}, this.five.getCurrentState()), i), { panoIndex: t, mode: s } = o, n = j(s) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
206
208
  if ((n == null ? void 0 : n.distance) !== void 0)
207
209
  return n.distance;
208
- const f = x(e);
210
+ const f = N(e);
209
211
  if (!f)
210
212
  return -1;
211
- if (W(s)) {
212
- const u = (g = (c = this.five.work) == null ? void 0 : c.observers[t]) == null ? void 0 : g.position;
213
- if (u === void 0)
213
+ if (j(s)) {
214
+ const l = (g = (u = this.five.work) == null ? void 0 : u.observers[t]) == null ? void 0 : g.position;
215
+ if (l === void 0)
214
216
  return -1;
215
- const v = u.distanceTo(f);
216
- return n && (n.distance = v), v;
217
+ const T = l.distanceTo(f);
218
+ return n && (n.distance = T), T;
217
219
  }
218
- if (N(s))
220
+ if ($(s))
219
221
  return this.five.camera.position.distanceTo(f);
220
222
  }
221
223
  getPositions(e) {
222
- if (re(e))
224
+ if (ae(e))
223
225
  return e.position;
224
- if (B(e))
226
+ if (G(e))
225
227
  return e.data.mediaPosition;
226
- if (se(e))
227
- return Z(this.five.camera.position, w(e.position), w(e.normal));
228
+ if (ce(e))
229
+ return te(this.five.camera.position, E(e.position), E(e.normal));
228
230
  }
229
231
  addObjectClickHandler(e, i, o) {
230
232
  if (!i || !this.domEvents)
@@ -242,11 +244,11 @@ class ti extends ee {
242
244
  }
243
245
  getTagNormal(e) {
244
246
  if (e.normal)
245
- return w(e.normal);
247
+ return E(e.normal);
246
248
  if (e.stickType === "Plane")
247
- return E(e.position);
249
+ return W(e.position);
248
250
  if (e.stickType === "Model")
249
- return E(this.getPositions(e));
251
+ return W(this.getPositions(e));
250
252
  }
251
253
  // TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
252
254
  get filterPointTag() {
@@ -282,52 +284,46 @@ class ti extends ee {
282
284
  * @description: 获取merge后的配置
283
285
  */
284
286
  calculateTagConfig(e, i) {
285
- var v, j, A;
286
- const o = (v = i == null ? void 0 : i.useCache) != null ? v : !0;
287
+ var A, I, S, O;
288
+ const o = (A = i == null ? void 0 : i.useCache) != null ? A : !0;
287
289
  if (!e)
288
- return (j = this.config.globalConfig) != null ? j : {};
289
- if (o && ((A = e.config) != null && A._isMerged))
290
+ return (I = this.config.globalConfig) != null ? I : {};
291
+ if (o && ((S = e.config) != null && S._isMerged))
290
292
  return e.config;
291
293
  const t = {}, s = {}, n = {};
292
294
  this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([p, h]) => {
293
- var I, O;
294
- const l = p, D = l.split("-"), S = p.startsWith("["), y = S ? D[0].slice(1, -1) : void 0, T = S ? D.slice(1) : D, M = y ? ["PanoramaLike", "ModelLike"].includes(y) ? (I = s[y]) != null ? I : s[y] = {} : (O = n[y]) != null ? O : n[y] = {} : t;
295
- if (!M[l]) {
296
- if (T.length === 0 && (M[l] = h), T.length === 1) {
297
- const [m] = T;
298
- (e.contentType === m || m === "Any") && (M[l] = h);
295
+ var F, L;
296
+ const c = p, k = c.split("-"), V = p.startsWith("["), y = V ? k[0].slice(1, -1) : void 0, v = V ? k.slice(1) : k, M = y ? ["PanoramaLike", "ModelLike"].includes(y) ? (F = s[y]) != null ? F : s[y] = {} : (L = n[y]) != null ? L : n[y] = {} : t;
297
+ if (!M[c]) {
298
+ if (v.length === 0 && (M[c] = h), v.length === 1) {
299
+ const [m] = v;
300
+ (e.contentType === m || m === "Any") && (M[c] = h);
299
301
  }
300
- if (T.length === 2) {
301
- const [m = "Any", P = "Any"] = T;
302
- m === "Mixin" && e.contentType === P && (M[l] = h), (e.stickType === m || m === "Any") && (e.contentType === P || P === "Any") && (M[l] = h);
302
+ if (v.length === 2) {
303
+ const [m = "Any", b = "Any"] = v;
304
+ m === "Mixin" && e.contentType === b && (M[c] = h), (e.stickType === m || m === "Any") && (e.contentType === b || b === "Any") && (M[c] = h);
303
305
  }
304
- if (T.length === 3) {
305
- const [m = "Any", P, z] = T;
306
- if (P === "Audio" && e.contentType === "Audio") {
307
- const V = e;
308
- (V.stickType === m || m === "Any") && V.data.appearance === z && (M[l] = h);
306
+ if (v.length === 3) {
307
+ const [m = "Any", b, J] = v;
308
+ if (b === "Audio" && e.contentType === "Audio") {
309
+ const x = e;
310
+ (x.stickType === m || m === "Any") && x.data.appearance === J && (M[c] = h);
309
311
  }
310
312
  }
311
313
  }
312
314
  });
313
- const f = b(
314
- {},
315
- q,
316
- this.config.globalConfig,
317
- ...Object.values(t),
318
- e.config
319
- ), c = {}, g = Object.values(oe.Mode);
320
- G(s).forEach(([p, h]) => {
321
- g.forEach((l) => {
322
- (p === "PanoramaLike" && W(l) || p === "ModelLike" && N(l)) && (c[l] = b({}, f, ...Object.values(h)));
315
+ const f = (O = e.config) != null && O._isMerged ? e.initialConfig : e.config, u = P({}, Y, this.config.globalConfig, ...Object.values(t)), g = P({}, u, f), l = {}, T = Object.values(se.Mode);
316
+ z(s).forEach(([p, h]) => {
317
+ T.forEach((c) => {
318
+ (p === "PanoramaLike" && j(c) || p === "ModelLike" && $(c)) && (l[c] = P({}, u, ...Object.values(h), f));
323
319
  });
324
- }), G(n).forEach(([p, h]) => {
325
- c[p] = b({}, f, ...Object.values(h));
320
+ }), z(n).forEach(([p, h]) => {
321
+ l[p] = P({}, u, ...Object.values(h), f);
326
322
  });
327
- const u = L(C({}, f), { configWithFiveMode: c });
328
- return R(u, e), Object.values(c).forEach((p) => R(p, e)), u._isMerged = !0, u;
323
+ const D = B(C({}, g), { configWithFiveMode: l });
324
+ return _(D, e), Object.values(l).forEach((p) => _(p, e)), D._isMerged = !0, D;
329
325
  }
330
326
  }
331
327
  export {
332
- ti as TagUtil
328
+ si as TagUtil
333
329
  };
@@ -2,15 +2,15 @@ var w = Object.defineProperty, E = Object.defineProperties;
2
2
  var U = Object.getOwnPropertyDescriptors;
3
3
  var C = Object.getOwnPropertySymbols;
4
4
  var I = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
5
- var b = (d, a, e) => a in d ? w(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, c = (d, a) => {
5
+ var m = (d, a, e) => a in d ? w(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, c = (d, a) => {
6
6
  for (var e in a || (a = {}))
7
- I.call(a, e) && b(d, e, a[e]);
7
+ I.call(a, e) && m(d, e, a[e]);
8
8
  if (C)
9
9
  for (var e of C(a))
10
- B.call(a, e) && b(d, e, a[e]);
10
+ B.call(a, e) && m(d, e, a[e]);
11
11
  return d;
12
- }, T = (d, a) => E(d, U(a));
13
- var l = (d, a, e) => (b(d, typeof a != "symbol" ? a + "" : a, e), e);
12
+ }, u = (d, a) => E(d, U(a));
13
+ var l = (d, a, e) => (m(d, typeof a != "symbol" ? a + "" : a, e), e);
14
14
  var p = (d, a, e) => new Promise((t, i) => {
15
15
  var s = (r) => {
16
16
  try {
@@ -27,13 +27,13 @@ var p = (d, a, e) => new Promise((t, i) => {
27
27
  }, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
28
28
  n((e = e.apply(d, a)).next());
29
29
  });
30
- import * as y from "three";
30
+ import * as v from "three";
31
31
  import { Subscribe as F } from "@realsee/five";
32
32
  import { objectAssignDeepExports as f } from "../../vendor/object-assign-deep/objectAssignDeep.js";
33
- import { addDebugPoints as k } from "../utils/addDebugPoints.js";
33
+ import { addDebugPoints as M } from "../utils/addDebugPoints.js";
34
34
  import { arrayPositionToVector3 as A } from "../../shared-utils/positionToVector3.js";
35
- import { isMediaModelTag as M, isModelTag as R } from "../utils/tag/tagCheck.js";
36
- import { debounce as _ } from "../utils/debounce.js";
35
+ import { isMediaModelTag as R, isModelTag as _ } from "../utils/tag/tagCheck.js";
36
+ import { debounce as k } from "../utils/debounce.js";
37
37
  import { throttle as O } from "../utils/throttle.js";
38
38
  import { resizeObserver as D } from "../utils/resizeObserver.js";
39
39
  import V from "../utils/tag/format.js";
@@ -85,6 +85,7 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
85
85
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
86
86
  import "../../shared-utils/three/getNormal.js";
87
87
  import "../../shared-utils/five/FiveDomEvents.js";
88
+ import "../../shared-utils/five/calculateThreeMouse.js";
88
89
  import "../utils/tag/adaptConfig.js";
89
90
  import "../../shared-utils/typescript/entries.js";
90
91
  import "../../shared-utils/url/getUrl.js";
@@ -166,8 +167,8 @@ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
166
167
  import "../../shared-utils/three/GLTFLoader.js";
167
168
  import "@realsee/five/gltf-loader";
168
169
  import "../../shared-utils/animationFrame/index.js";
169
- const P = "Dnalogel-PanoTagPlugin", Ai = (d) => `${P}--${d}`;
170
- class Di extends N {
170
+ const P = "Dnalogel-PanoTagPlugin", Di = (d) => `${P}--${d}`;
171
+ class Pi extends N {
171
172
  constructor(e, t) {
172
173
  super(e);
173
174
  /** state */
@@ -181,7 +182,7 @@ class Di extends N {
181
182
  e.data = f({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
182
183
  }));
183
184
  l(this, "whyHide", (e) => {
184
- var i, s;
185
+ var i, s, o;
185
186
  if (!this.state.enabled)
186
187
  return { reason: `plugin.state.enabled is ${this.state.enabled}` };
187
188
  if (!this.state.visible)
@@ -192,15 +193,15 @@ class Di extends N {
192
193
  if (!t.enabled)
193
194
  return { reason: `tag ${e} enabled is ${t.enabled}` };
194
195
  if (!t.state.visible) {
195
- const o = (i = this.getPanoIndexCache({ panoIndex: this.five.panoIndex, id: e })) == null ? void 0 : i.__debug_visible_reason__.reason;
196
- return { reason: (s = o.type) != null ? s : o, reasonObj: o };
196
+ const n = (s = (i = this.getPanoIndexCache({ panoIndex: this.five.panoIndex, id: e })) == null ? void 0 : i.__debug_visible_reason__) == null ? void 0 : s.reason;
197
+ return { reason: (o = n.type) != null ? o : n, reasonObj: n };
197
198
  }
198
199
  return t.stickType === "Model" || t.stickType === "Plane" ? { reason: "maybe blocked by the five model" } : { reason: "check your eyes" };
199
200
  });
200
201
  l(this, "updateVisible", () => {
201
202
  const e = this.five.getCurrentState().mode;
202
203
  this.tags.forEach((t) => {
203
- M(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
204
+ R(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
204
205
  }), this.setVisible(), this.updateRenderAllTags();
205
206
  });
206
207
  l(this, "handleFiveWantsMoveToPano", (e) => {
@@ -240,24 +241,23 @@ class Di extends N {
240
241
  this.updatePointTagPosition();
241
242
  });
242
243
  l(this, "handleFivePanoArrived", () => p(this, null, function* () {
243
- var e, t, i;
244
- this.setVisible(), yield this.setVisibleAndUnfolded(), this.tags.forEach((s) => {
245
- s.temporaryState = T(c({}, s.temporaryState), { visible: !0 });
246
- }), (i = (t = (e = this.config) == null ? void 0 : e.globalConfig) == null ? void 0 : t.modelConfig) != null && i.autoLookAtEnabled && this.tags.filter(R).filter((s) => {
247
- var o, n;
248
- return (n = (o = s.config) == null ? void 0 : o.modelConfig) == null ? void 0 : n.autoLookAtEnabled;
249
- }).forEach((s) => {
250
- var u;
251
- const o = new y.Mesh(new y.BoxGeometry(), new y.MeshBasicMaterial()), n = (u = s.model) == null ? void 0 : u.object;
252
- if (!n)
244
+ this.setVisible(), this.updatePointTagPosition(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
245
+ e.temporaryState = u(c({}, e.temporaryState), { visible: !0 });
246
+ }), this.tags.filter(_).filter((e) => {
247
+ var t, i;
248
+ return (i = (t = e.config) == null ? void 0 : t.modelConfig) == null ? void 0 : i.autoLookAtEnabled;
249
+ }).forEach((e) => {
250
+ var h;
251
+ const t = new v.Mesh(new v.BoxGeometry(), new v.MeshBasicMaterial()), i = (h = e.model) == null ? void 0 : h.object;
252
+ if (!i)
253
253
  return;
254
- o.position.copy(n.position), o.quaternion.copy(n.quaternion);
255
- const r = this.five.camera.position;
256
- o.lookAt(r.clone().setY(o.position.y));
257
- const h = n.quaternion.clone(), g = o.quaternion.clone(), m = $();
258
- m.onUpdate(({ progress: v }) => {
259
- n.quaternion.copy(h.clone().slerp(g, v));
260
- }), m.play();
254
+ t.position.copy(i.position), t.quaternion.copy(i.quaternion);
255
+ const s = this.five.camera.position;
256
+ t.lookAt(s.clone().setY(t.position.y));
257
+ const o = i.quaternion.clone(), n = t.quaternion.clone(), r = $();
258
+ r.onUpdate(({ progress: g }) => {
259
+ i.quaternion.copy(o.clone().slerp(n, g));
260
+ }), r.play();
261
261
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
262
262
  }));
263
263
  /** 楼层切换时,需要更新标签可见性 */
@@ -287,7 +287,7 @@ class Di extends N {
287
287
  const i = yield this.addTag(e.tagList, t);
288
288
  if (this.debug)
289
289
  try {
290
- k(this.five, this.tags);
290
+ M(this.five, this.tags);
291
291
  } catch (n) {
292
292
  console.error(n);
293
293
  }
@@ -300,12 +300,12 @@ class Di extends N {
300
300
  addTag(e, t) {
301
301
  return p(this, null, function* () {
302
302
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
303
- var m, u, v;
303
+ var b, T, y;
304
304
  const n = this.getTagConfig(o), r = JSON.parse(JSON.stringify(o.data)), h = o.config;
305
- return o.config = n, T(c({}, o), {
306
- enabled: (m = o.enabled) != null ? m : !0,
307
- id: (u = o.id) != null ? u : z(),
308
- data: (v = n.initialData) != null && v.important ? f(o.data, r, n.initialData) : f(o.data, n.initialData, r),
305
+ return o.config = n, u(c({}, o), {
306
+ enabled: (b = o.enabled) != null ? b : !0,
307
+ id: (T = o.id) != null ? T : z(),
308
+ data: (y = n.initialData) != null && y.important ? f(o.data, r, n.initialData) : f(o.data, n.initialData, r),
309
309
  state: c({
310
310
  visible: void 0,
311
311
  unfolded: !this.can("fold", o)
@@ -511,7 +511,7 @@ class Di extends N {
511
511
  }, 500),
512
512
  e
513
513
  ), { observe: n, unobserve: r } = D(
514
- _(() => t(), 400),
514
+ k(() => t(), 400),
515
515
  e
516
516
  );
517
517
  return s(), n(), () => {
@@ -534,7 +534,7 @@ class Di extends N {
534
534
  }
535
535
  }
536
536
  export {
537
- Di as PanoTagPluginController,
538
- Di as default,
539
- Ai as pluginFlag
537
+ Pi as PanoTagPluginController,
538
+ Pi as default,
539
+ Di as pluginFlag
540
540
  };
@@ -1,7 +1,7 @@
1
1
  import r from "./controller/index.js";
2
- import { pluginFlag as Kt } from "./controller/index.js";
3
- import { defaultGlobalConfig as Mt } from "./typings/tag/TagConfig.js";
4
- import { ContentType as Ot, DimensionType as Qt, PointType as Rt } from "./Archive/deprecated.js";
2
+ import { pluginFlag as Lt } from "./controller/index.js";
3
+ import { defaultGlobalConfig as Nt } from "./typings/tag/TagConfig.js";
4
+ import { ContentType as Qt, DimensionType as Rt, PointType as St } from "./Archive/deprecated.js";
5
5
  import "three";
6
6
  import "@realsee/five";
7
7
  import "../vendor/object-assign-deep/objectAssignDeep.js";
@@ -56,6 +56,7 @@ import "../shared-utils/three/getPositionsByObjectFit.js";
56
56
  import "../shared-utils/three/FragmentTransparencyMaterial.js";
57
57
  import "../shared-utils/three/getNormal.js";
58
58
  import "../shared-utils/five/FiveDomEvents.js";
59
+ import "../shared-utils/five/calculateThreeMouse.js";
59
60
  import "./utils/tag/adaptConfig.js";
60
61
  import "../shared-utils/typescript/entries.js";
61
62
  import "../shared-utils/url/getUrl.js";
@@ -140,14 +141,14 @@ import "@realsee/five/gltf-loader";
140
141
  import "../shared-utils/animationFrame/BetterTween.js";
141
142
  import "../shared-utils/animationFrame/index.js";
142
143
  import "../shared-utils/five/fiveModelLoad.js";
143
- const Ht = (o, t) => new r(o, t);
144
+ const It = (o, t) => new r(o, t);
144
145
  export {
145
- Ot as ContentType,
146
- Qt as DimensionType,
147
- Ht as PanoTagPlugin,
146
+ Qt as ContentType,
147
+ Rt as DimensionType,
148
+ It as PanoTagPlugin,
148
149
  r as PanoTagPluginController,
149
- Rt as PointType,
150
- Ht as default,
151
- Mt as defaultGlobalConfig,
152
- Kt as pluginFlag
150
+ St as PointType,
151
+ It as default,
152
+ Nt as defaultGlobalConfig,
153
+ Lt as pluginFlag
153
154
  };
@@ -5,6 +5,7 @@ import type { MinMax } from './Utils';
5
5
  import type { TagInstance } from './TagInstance';
6
6
  import type { PartialObjectDeep } from '../../../typings/typings';
7
7
  import type { Vector3 } from 'three';
8
+ type TagVisibleMode = Mode | Mode[] | 'PanoramaLike' | 'ModelLike' | 'all';
8
9
  export interface TagConfig<C extends TagContentType = TagContentType> {
9
10
  /**
10
11
  * @description: 显示/隐藏相关配置
@@ -57,7 +58,7 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
57
58
  * }
58
59
  * ```
59
60
  */
60
- visibleFiveMode?: Mode | Mode[] | 'PanoramaLike' | 'ModelLike' | 'all';
61
+ visibleFiveMode?: TagVisibleMode | ((tag: TagInstance) => TagVisibleMode);
61
62
  /**
62
63
  * @description 当 visibleFiveMode 包含 'Floorplan' 或者 'MapView' 时,是否仅在当前楼层模型下可见
63
64
  * @default false
@@ -14,7 +14,7 @@ let b = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- i(this, "VERSION", "3.0.0-dev.2");
17
+ i(this, "VERSION", "3.0.0");
18
18
  i(this, "five");
19
19
  /**
20
20
  * 插件事件钩子
@@ -5,3 +5,4 @@ import "@realsee/five";
5
5
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
6
6
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
7
7
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
8
+ import "../shared-utils/nearlyEqual.js";
package/libs/index.d.ts CHANGED
@@ -24,5 +24,4 @@ export * from './PanoVideoPlugin';
24
24
  export * from './PipelinePlugin';
25
25
  export * from './AreaMakerPlugin';
26
26
  export * from './CurrentPanoImagePlugin';
27
- export * from './PanoTagPlugin';
28
27
  export * as Util from './shared-utils';
package/libs/index.js CHANGED
@@ -281,6 +281,7 @@ import "./shared-utils/three/getPositionsByObjectFit.js";
281
281
  import "./shared-utils/three/FragmentTransparencyMaterial.js";
282
282
  import "./shared-utils/three/getNormal.js";
283
283
  import "./shared-utils/five/FiveDomEvents.js";
284
+ import "./shared-utils/five/calculateThreeMouse.js";
284
285
  import "./PanoTagPlugin/utils/tag/adaptConfig.js";
285
286
  import "./shared-utils/typescript/entries.js";
286
287
  import "./shared-utils/url/getUrl.js";
@@ -408,7 +409,6 @@ import "./shared-utils/three/objects/LineSegments.js";
408
409
  import "./components/AreaLabel/LabelItem.js";
409
410
  import "./components/AreaLabel/Assets/roomLabelBg.js";
410
411
  import "./CurrentPanoImagePlugin/Controller.js";
411
- import "./shared-utils/five/adapt.js";
412
412
  import "./shared-utils/math/Interval.js";
413
413
  import "./shared-utils/math/Rectangle.js";
414
414
  import "./shared-utils/five/index.js";
@@ -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
  }