@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
@@ -1,42 +1,43 @@
1
- var z = Object.defineProperty, H = Object.defineProperties;
2
- var J = Object.getOwnPropertyDescriptors;
3
- var F = Object.getOwnPropertySymbols;
4
- var _ = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
5
- var k = (a, r, e) => r in a ? z(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
- U.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) => H(a, J(r));
13
- var d = (a, r, e) => (k(a, typeof r != "symbol" ? r + "" : r, e), e);
14
- import { defaultGlobalConfig as X } from "../typings/tag/TagConfig.js";
15
- import { objectAssignDeepExports as b } from "../../vendor/object-assign-deep/objectAssignDeep.js";
16
- import * as q from "three";
17
- import { DefaultConfig as K } from "../tag.config.js";
18
- import { anyPositionToVector3 as Q, arrayPositionToVector3 as w } from "../../shared-utils/positionToVector3.js";
19
- import { planeNormal as E } from "../utils/planeNormal.js";
20
- import { getTagCenterPosition as R } from "../utils/tagPosition.js";
21
- import { normalPositionToPositions as Y } from "../utils/normalPositionToPositions.js";
22
- import { TagCache as Z } from "./TagCache.js";
23
- import { writable as ee } from "../../vendor/svelte/store/index.js";
24
- import { isIOSWX as ie } from "../../shared-utils/device.js";
25
- import { Five as te } from "@realsee/five";
26
- import { isMediaPlaneTag as oe, isMediaModelTag as x, isPlaneTag as ne, isPoint3DTag as re } from "../utils/tag/tagCheck.js";
27
- import { VideoPlane as se } from "../utils/model/mediaPlane.js";
28
- import { FiveDomEvents as fe } from "../../shared-utils/five/FiveDomEvents.js";
29
- import B 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";
35
+ import { entries as z } from "../../shared-utils/typescript/entries.js";
36
+ import { getUrlExt as H } from "../../shared-utils/url/getUrl.js";
36
37
  import "../../shared-utils/three/centerPoint.js";
37
38
  import "../../base/BasePlugin.js";
38
39
  import "../../shared-utils/Subscribe.js";
39
- import "../../shared-utils/absoluteUrl.js";
40
+ import "../../shared-utils/url/absoluteUrl.js";
40
41
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
41
42
  import "three/examples/jsm/renderers/CSS3DRenderer";
42
43
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -56,12 +57,14 @@ import "../../shared-utils/three/loadVideoTexture.js";
56
57
  import "../Assets/Icon.js";
57
58
  import "../../shared-utils/three/getPositionsByObjectFit.js";
58
59
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
59
- class Ze extends Z {
60
+ import "../../shared-utils/three/getNormal.js";
61
+ import "../../shared-utils/five/calculateThreeMouse.js";
62
+ class si extends oe {
60
63
  constructor(e) {
61
64
  super(e);
62
65
  d(this, "tags", []);
63
- d(this, "config", K);
64
- d(this, "mediaStore", ee({
66
+ d(this, "config", ee);
67
+ d(this, "mediaStore", ne({
65
68
  currentMediaElement: null
66
69
  }));
67
70
  /** css3DRenderPlugin */
@@ -72,10 +75,10 @@ class Ze extends Z {
72
75
  resizeObserverDisposerAdding: !1,
73
76
  css3DRenderDisposer: /* @__PURE__ */ new Map()
74
77
  });
75
- d(this, "domEvents", new fe(this.five));
78
+ d(this, "domEvents", new de(this.five));
76
79
  d(this, "mouseInfo");
77
80
  d(this, "loadVideoFirstFrame", () => {
78
- ie && this.hooks.emit("loadVideoFirstFrame");
81
+ re && this.hooks.emit("loadVideoFirstFrame");
79
82
  });
80
83
  d(this, "preventWhenMouseDown", () => {
81
84
  var e;
@@ -85,7 +88,7 @@ class Ze extends Z {
85
88
  this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.mediaStore.subscribe(({ currentMediaElement: i }) => {
86
89
  this.tags.forEach((o) => {
87
90
  var t;
88
- if (o.mediaPlane instanceof se && i !== o.mediaPlane.videoInstance) {
91
+ if (o.mediaPlane instanceof le && i !== o.mediaPlane.videoInstance) {
89
92
  if (!((t = o.mediaPlane.videoInstance) != null && t.src) || i === o.mediaPlane.videoInstance)
90
93
  return;
91
94
  o.mediaPlane.pause();
@@ -123,11 +126,12 @@ class Ze extends Z {
123
126
  }
124
127
  updateTagConfig() {
125
128
  this.clearCache(), this.tags.forEach((e) => {
126
- var t;
129
+ var o;
127
130
  const i = this.getTagConfig(e, { useCache: !1 });
128
- e.config = i;
129
- const o = JSON.parse(JSON.stringify(e.data));
130
- 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
+ }
131
135
  });
132
136
  }
133
137
  can(e, i) {
@@ -157,11 +161,15 @@ class Ze extends Z {
157
161
  return;
158
162
  const t = e.data.mediaData;
159
163
  if (!(!t || t.length === 0) && o.renderType === "Mesh") {
160
- if (oe(e)) {
161
- if (t.length === 1 && (t[0].type === "Image" || t[0].type === "Video"))
162
- return "Mesh";
163
- } else if (x(e))
164
- return t.length === 1 && t[0].type === "Image" ? "Mesh" : "BehindDom";
164
+ if (fe(e)) {
165
+ if (t.length === 1) {
166
+ if (t[0].type === "Video")
167
+ return "Mesh";
168
+ if (t[0].type === "Image")
169
+ return H(t[0].url) === "gif" ? "Dom" : "Mesh";
170
+ }
171
+ } else if (G(e))
172
+ return t.length === 1 && t[0].type === "Image" ? H(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
165
173
  }
166
174
  })();
167
175
  return i != null ? i : "Dom";
@@ -181,44 +189,44 @@ class Ze extends Z {
181
189
  const f = (n = (s = this.five.work) == null ? void 0 : s.observers[o]) == null ? void 0 : n.position;
182
190
  if (f === void 0)
183
191
  throw new Error(`getAngle(): observerPosition is ${f}`);
184
- const l = (() => e.stickType === "3DPoint" ? Q(e.normal) : E(e.position))();
185
- if (!l)
192
+ const u = (() => e.stickType === "3DPoint" ? ie(e.normal) : W(e.position))();
193
+ if (!u)
186
194
  return;
187
- const g = R(e);
195
+ const g = N(e);
188
196
  if (!g)
189
197
  return;
190
- const u = new q.Vector3().copy(f).sub(g), v = l.angleTo(u) * 180 / Math.PI;
191
- 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;
192
200
  }
193
201
  }
194
202
  /**
195
203
  * @description: 获取距离
196
204
  */
197
205
  getDistance(e, i) {
198
- var l, g;
199
- 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;
200
208
  if ((n == null ? void 0 : n.distance) !== void 0)
201
209
  return n.distance;
202
- const f = R(e);
210
+ const f = N(e);
203
211
  if (!f)
204
212
  return -1;
205
- if (W(s)) {
206
- const u = (g = (l = this.five.work) == null ? void 0 : l.observers[t]) == null ? void 0 : g.position;
207
- 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)
208
216
  return -1;
209
- const v = u.distanceTo(f);
210
- return n && (n.distance = v), v;
217
+ const T = l.distanceTo(f);
218
+ return n && (n.distance = T), T;
211
219
  }
212
- if (N(s))
220
+ if ($(s))
213
221
  return this.five.camera.position.distanceTo(f);
214
222
  }
215
223
  getPositions(e) {
216
- if (ne(e))
224
+ if (ae(e))
217
225
  return e.position;
218
- if (x(e))
226
+ if (G(e))
219
227
  return e.data.mediaPosition;
220
- if (re(e))
221
- return Y(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));
222
230
  }
223
231
  addObjectClickHandler(e, i, o) {
224
232
  if (!i || !this.domEvents)
@@ -236,11 +244,11 @@ class Ze extends Z {
236
244
  }
237
245
  getTagNormal(e) {
238
246
  if (e.normal)
239
- return w(e.normal);
247
+ return E(e.normal);
240
248
  if (e.stickType === "Plane")
241
- return E(e.position);
249
+ return W(e.position);
242
250
  if (e.stickType === "Model")
243
- return E(this.getPositions(e));
251
+ return W(this.getPositions(e));
244
252
  }
245
253
  // TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
246
254
  get filterPointTag() {
@@ -276,52 +284,46 @@ class Ze extends Z {
276
284
  * @description: 获取merge后的配置
277
285
  */
278
286
  calculateTagConfig(e, i) {
279
- var v, j, A;
280
- 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;
281
289
  if (!e)
282
- return (j = this.config.globalConfig) != null ? j : {};
283
- 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))
284
292
  return e.config;
285
293
  const t = {}, s = {}, n = {};
286
294
  this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([p, h]) => {
287
- var I, O;
288
- const c = p, D = c.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
+ 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;
289
297
  if (!M[c]) {
290
- if (T.length === 0 && (M[c] = h), T.length === 1) {
291
- const [m] = T;
298
+ if (v.length === 0 && (M[c] = h), v.length === 1) {
299
+ const [m] = v;
292
300
  (e.contentType === m || m === "Any") && (M[c] = h);
293
301
  }
294
- if (T.length === 2) {
295
- const [m = "Any", P = "Any"] = T;
296
- m === "Mixin" && e.contentType === P && (M[c] = h), (e.stickType === m || m === "Any") && (e.contentType === P || P === "Any") && (M[c] = 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);
297
305
  }
298
- if (T.length === 3) {
299
- const [m = "Any", P, $] = T;
300
- if (P === "Audio" && e.contentType === "Audio") {
301
- const V = e;
302
- (V.stickType === m || m === "Any") && V.data.appearance === $ && (M[c] = 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);
303
311
  }
304
312
  }
305
313
  }
306
314
  });
307
- const f = b(
308
- {},
309
- X,
310
- this.config.globalConfig,
311
- ...Object.values(t),
312
- e.config
313
- ), l = {}, g = Object.values(te.Mode);
314
- G(s).forEach(([p, h]) => {
315
- g.forEach((c) => {
316
- (p === "PanoramaLike" && W(c) || p === "ModelLike" && N(c)) && (l[c] = 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));
317
319
  });
318
- }), G(n).forEach(([p, h]) => {
319
- l[p] = b({}, f, ...Object.values(h));
320
+ }), z(n).forEach(([p, h]) => {
321
+ l[p] = P({}, u, ...Object.values(h), f);
320
322
  });
321
- const u = L(C({}, f), { configWithFiveMode: l });
322
- return B(u, e), Object.values(l).forEach((p) => B(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;
323
325
  }
324
326
  }
325
327
  export {
326
- Ze as TagUtil
328
+ si as TagUtil
327
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";
@@ -60,7 +60,7 @@ import "../utils/normalPositionToPositions.js";
60
60
  import "./TagCache.js";
61
61
  import "../../base/BasePlugin.js";
62
62
  import "../../shared-utils/Subscribe.js";
63
- import "../../shared-utils/absoluteUrl.js";
63
+ import "../../shared-utils/url/absoluteUrl.js";
64
64
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
65
65
  import "three/examples/jsm/renderers/CSS3DRenderer";
66
66
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -83,9 +83,12 @@ import "../../shared-utils/three/loadVideoTexture.js";
83
83
  import "../Assets/Icon.js";
84
84
  import "../../shared-utils/three/getPositionsByObjectFit.js";
85
85
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
86
+ import "../../shared-utils/three/getNormal.js";
86
87
  import "../../shared-utils/five/FiveDomEvents.js";
88
+ import "../../shared-utils/five/calculateThreeMouse.js";
87
89
  import "../utils/tag/adaptConfig.js";
88
90
  import "../../shared-utils/typescript/entries.js";
91
+ import "../../shared-utils/url/getUrl.js";
89
92
  import "../../shared-utils/five/getFloorIndex.js";
90
93
  import "../../shared-utils/safeObj.js";
91
94
  import "../Components/TagContainer.js";
@@ -164,8 +167,8 @@ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
164
167
  import "../../shared-utils/three/GLTFLoader.js";
165
168
  import "@realsee/five/gltf-loader";
166
169
  import "../../shared-utils/animationFrame/index.js";
167
- const P = "Dnalogel-PanoTagPlugin", yi = (d) => `${P}--${d}`;
168
- class Ci extends N {
170
+ const P = "Dnalogel-PanoTagPlugin", Di = (d) => `${P}--${d}`;
171
+ class Pi extends N {
169
172
  constructor(e, t) {
170
173
  super(e);
171
174
  /** state */
@@ -179,7 +182,7 @@ class Ci extends N {
179
182
  e.data = f({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
180
183
  }));
181
184
  l(this, "whyHide", (e) => {
182
- var i, s;
185
+ var i, s, o;
183
186
  if (!this.state.enabled)
184
187
  return { reason: `plugin.state.enabled is ${this.state.enabled}` };
185
188
  if (!this.state.visible)
@@ -190,15 +193,15 @@ class Ci extends N {
190
193
  if (!t.enabled)
191
194
  return { reason: `tag ${e} enabled is ${t.enabled}` };
192
195
  if (!t.state.visible) {
193
- const o = (i = this.getPanoIndexCache({ panoIndex: this.five.panoIndex, id: e })) == null ? void 0 : i.__debug_visible_reason__.reason;
194
- 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 };
195
198
  }
196
199
  return t.stickType === "Model" || t.stickType === "Plane" ? { reason: "maybe blocked by the five model" } : { reason: "check your eyes" };
197
200
  });
198
201
  l(this, "updateVisible", () => {
199
202
  const e = this.five.getCurrentState().mode;
200
203
  this.tags.forEach((t) => {
201
- M(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
204
+ R(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
202
205
  }), this.setVisible(), this.updateRenderAllTags();
203
206
  });
204
207
  l(this, "handleFiveWantsMoveToPano", (e) => {
@@ -238,24 +241,23 @@ class Ci extends N {
238
241
  this.updatePointTagPosition();
239
242
  });
240
243
  l(this, "handleFivePanoArrived", () => p(this, null, function* () {
241
- var e, t, i;
242
- this.setVisible(), yield this.setVisibleAndUnfolded(), this.tags.forEach((s) => {
243
- s.temporaryState = T(c({}, s.temporaryState), { visible: !0 });
244
- }), (i = (t = (e = this.config) == null ? void 0 : e.globalConfig) == null ? void 0 : t.modelConfig) != null && i.autoLookAtEnabled && this.tags.filter(R).filter((s) => {
245
- var o, n;
246
- return (n = (o = s.config) == null ? void 0 : o.modelConfig) == null ? void 0 : n.autoLookAtEnabled;
247
- }).forEach((s) => {
248
- var u;
249
- const o = new y.Mesh(new y.BoxGeometry(), new y.MeshBasicMaterial()), n = (u = s.model) == null ? void 0 : u.object;
250
- 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)
251
253
  return;
252
- o.position.copy(n.position), o.quaternion.copy(n.quaternion);
253
- const r = this.five.camera.position;
254
- o.lookAt(r.clone().setY(o.position.y));
255
- const h = n.quaternion.clone(), g = o.quaternion.clone(), m = $();
256
- m.onUpdate(({ progress: v }) => {
257
- n.quaternion.copy(h.clone().slerp(g, v));
258
- }), 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();
259
261
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
260
262
  }));
261
263
  /** 楼层切换时,需要更新标签可见性 */
@@ -285,7 +287,7 @@ class Ci extends N {
285
287
  const i = yield this.addTag(e.tagList, t);
286
288
  if (this.debug)
287
289
  try {
288
- k(this.five, this.tags);
290
+ M(this.five, this.tags);
289
291
  } catch (n) {
290
292
  console.error(n);
291
293
  }
@@ -298,12 +300,12 @@ class Ci extends N {
298
300
  addTag(e, t) {
299
301
  return p(this, null, function* () {
300
302
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
301
- var m, u, v;
303
+ var b, T, y;
302
304
  const n = this.getTagConfig(o), r = JSON.parse(JSON.stringify(o.data)), h = o.config;
303
- return o.config = n, T(c({}, o), {
304
- enabled: (m = o.enabled) != null ? m : !0,
305
- id: (u = o.id) != null ? u : z(),
306
- 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),
307
309
  state: c({
308
310
  visible: void 0,
309
311
  unfolded: !this.can("fold", o)
@@ -509,7 +511,7 @@ class Ci extends N {
509
511
  }, 500),
510
512
  e
511
513
  ), { observe: n, unobserve: r } = D(
512
- _(() => t(), 400),
514
+ k(() => t(), 400),
513
515
  e
514
516
  );
515
517
  return s(), n(), () => {
@@ -532,7 +534,7 @@ class Ci extends N {
532
534
  }
533
535
  }
534
536
  export {
535
- Ci as PanoTagPluginController,
536
- Ci as default,
537
- yi as pluginFlag
537
+ Pi as PanoTagPluginController,
538
+ Pi as default,
539
+ Di as pluginFlag
538
540
  };
@@ -1,7 +1,7 @@
1
1
  import r from "./controller/index.js";
2
- import { pluginFlag as It } from "./controller/index.js";
3
- import { defaultGlobalConfig as Kt } from "./typings/tag/TagConfig.js";
4
- import { ContentType as Mt, DimensionType as Nt, PointType as Ot } 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";
@@ -42,7 +42,7 @@ import "./utils/planeNormal.js";
42
42
  import "./utils/normalPositionToPositions.js";
43
43
  import "./controller/TagCache.js";
44
44
  import "../base/BasePlugin.js";
45
- import "../shared-utils/absoluteUrl.js";
45
+ import "../shared-utils/url/absoluteUrl.js";
46
46
  import "../vendor/svelte/store/index.js";
47
47
  import "../vendor/svelte/internal/index.js";
48
48
  import "../shared-utils/device.js";
@@ -54,9 +54,12 @@ import "../shared-utils/three/loadVideoTexture.js";
54
54
  import "./Assets/Icon.js";
55
55
  import "../shared-utils/three/getPositionsByObjectFit.js";
56
56
  import "../shared-utils/three/FragmentTransparencyMaterial.js";
57
+ import "../shared-utils/three/getNormal.js";
57
58
  import "../shared-utils/five/FiveDomEvents.js";
59
+ import "../shared-utils/five/calculateThreeMouse.js";
58
60
  import "./utils/tag/adaptConfig.js";
59
61
  import "../shared-utils/typescript/entries.js";
62
+ import "../shared-utils/url/getUrl.js";
60
63
  import "../shared-utils/five/getFloorIndex.js";
61
64
  import "../shared-utils/safeObj.js";
62
65
  import "./Components/TagContainer.js";
@@ -138,14 +141,14 @@ import "@realsee/five/gltf-loader";
138
141
  import "../shared-utils/animationFrame/BetterTween.js";
139
142
  import "../shared-utils/animationFrame/index.js";
140
143
  import "../shared-utils/five/fiveModelLoad.js";
141
- const Bt = (o, t) => new r(o, t);
144
+ const It = (o, t) => new r(o, t);
142
145
  export {
143
- Mt as ContentType,
144
- Nt as DimensionType,
145
- Bt as PanoTagPlugin,
146
+ Qt as ContentType,
147
+ Rt as DimensionType,
148
+ It as PanoTagPlugin,
146
149
  r as PanoTagPluginController,
147
- Ot as PointType,
148
- Bt as default,
149
- Kt as defaultGlobalConfig,
150
- It as pluginFlag
150
+ St as PointType,
151
+ It as default,
152
+ Nt as defaultGlobalConfig,
153
+ Lt as pluginFlag
151
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