@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
@@ -2,15 +2,15 @@ var E = Object.defineProperty, $ = Object.defineProperties;
2
2
  var L = Object.getOwnPropertyDescriptors;
3
3
  var k = Object.getOwnPropertySymbols;
4
4
  var _ = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
5
- var M = (v, e, i) => e in v ? E(v, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : v[e] = i, y = (v, e) => {
5
+ var M = (p, e, i) => e in p ? E(p, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : p[e] = i, y = (p, e) => {
6
6
  for (var i in e || (e = {}))
7
- _.call(e, i) && M(v, i, e[i]);
7
+ _.call(e, i) && M(p, i, e[i]);
8
8
  if (k)
9
9
  for (var i of k(e))
10
- z.call(e, i) && M(v, i, e[i]);
11
- return v;
12
- }, D = (v, e) => $(v, L(e));
13
- import * as F from "three";
10
+ z.call(e, i) && M(p, i, e[i]);
11
+ return p;
12
+ }, D = (p, e) => $(p, L(e));
13
+ import * as j from "three";
14
14
  import { is3DTag as O, isMediaModelTag as R } from "../utils/tag/tagCheck.js";
15
15
  import { getTagCenterPosition as I, getTagPosition as Z } from "../utils/tagPosition.js";
16
16
  import { checkRange as h } from "../utils/checkRange.js";
@@ -45,7 +45,7 @@ import "../utils/planeNormal.js";
45
45
  import "../utils/normalPositionToPositions.js";
46
46
  import "./TagCache.js";
47
47
  import "../../base/BasePlugin.js";
48
- import "../../shared-utils/absoluteUrl.js";
48
+ import "../../shared-utils/url/absoluteUrl.js";
49
49
  import "../../vendor/svelte/store/index.js";
50
50
  import "../../vendor/svelte/internal/index.js";
51
51
  import "../../shared-utils/device.js";
@@ -57,11 +57,14 @@ import "../../shared-utils/three/loadVideoTexture.js";
57
57
  import "../Assets/Icon.js";
58
58
  import "../../shared-utils/three/getPositionsByObjectFit.js";
59
59
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
60
+ import "../../shared-utils/three/getNormal.js";
60
61
  import "../../shared-utils/five/FiveDomEvents.js";
62
+ import "../../shared-utils/five/calculateThreeMouse.js";
61
63
  import "../utils/tag/adaptConfig.js";
62
64
  import "../../shared-utils/typescript/entries.js";
63
- const T = new F.Raycaster();
64
- class We extends q {
65
+ import "../../shared-utils/url/getUrl.js";
66
+ const T = new j.Raycaster();
67
+ class Je extends q {
65
68
  constructor(e) {
66
69
  super(e);
67
70
  }
@@ -73,71 +76,72 @@ class We extends q {
73
76
  if ((d == null ? void 0 : d.visible) !== void 0)
74
77
  return d.visible;
75
78
  {
76
- const o = [], c = (() => {
79
+ const s = [], c = (() => {
77
80
  var r, f, u;
78
- const s = (r = e.config.visibleConfig) != null ? r : {};
79
- if (typeof s == "function")
80
- return { value: s(this.five, { tag: e, distance: this.getDistance(e) }), checkedList: o, reason: "config function result" };
81
- if (s.keep === "hidden")
82
- return { value: !1, checkedList: o, reason: "config.keep is hidden" };
83
- if (s.keep === "visible")
84
- return { value: !0, checkedList: o, reason: "config.keep is visible" };
85
- if (s.visibleFiveMode !== void 0) {
86
- let a = !1;
87
- if (Array.isArray(s.visibleFiveMode) ? a = s.visibleFiveMode.includes(n) : s.visibleFiveMode === "ModelLike" ? a = H(n) : s.visibleFiveMode === "PanoramaLike" ? a = !b(n) : s.visibleFiveMode === "all" ? a = !0 : typeof s.visibleFiveMode == "string" && (a = s.visibleFiveMode === n), a === !1)
81
+ const o = (r = e.config.visibleConfig) != null ? r : {};
82
+ if (typeof o == "function")
83
+ return { value: o(this.five, { tag: e, distance: this.getDistance(e) }), checkedList: s, reason: "config function result" };
84
+ if (o.keep === "hidden")
85
+ return { value: !1, checkedList: s, reason: "config.keep is hidden" };
86
+ if (o.keep === "visible")
87
+ return { value: !0, checkedList: s, reason: "config.keep is visible" };
88
+ if (o.visibleFiveMode !== void 0) {
89
+ const a = typeof o.visibleFiveMode == "function" ? o.visibleFiveMode(e) : o.visibleFiveMode;
90
+ let v = !1;
91
+ if (Array.isArray(a) ? v = a.includes(n) : a === "ModelLike" ? v = H(n) : a === "PanoramaLike" ? v = !b(n) : a === "all" ? v = !0 : typeof a == "string" && (v = a === n), v === !1)
88
92
  return {
89
93
  value: !1,
90
- checkedList: o,
94
+ checkedList: s,
91
95
  reason: "current mode is not included in visibleFiveMode",
92
- visibleFiveMode: s.visibleFiveMode,
96
+ visibleFiveMode: o.visibleFiveMode,
93
97
  mode: n
94
98
  };
95
99
  }
96
- if (s.followModelVisibility === !0 && (n === "Floorplan" || n === "Mapview") && this.getVisibleByFloorIndex(e) === !1)
97
- return { value: !1, checkedList: o, reason: "followModelVisibility check failed" };
98
- if (b(n) && s.visiblePanoIndex !== void 0 && s.visiblePanoIndex !== "all" && t !== void 0) {
99
- if (o.push("visiblePanoIndex"), Array.isArray(s.visiblePanoIndex) && !s.visiblePanoIndex.includes(t))
100
+ if (o.followModelVisibility === !0 && (n === "Floorplan" || n === "Mapview") && this.getVisibleByFloorIndex(e) === !1)
101
+ return { value: !1, checkedList: s, reason: "followModelVisibility check failed" };
102
+ if (b(n) && o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && t !== void 0) {
103
+ if (s.push("visiblePanoIndex"), Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(t))
100
104
  return {
101
105
  value: !1,
102
- checkedList: o,
103
- reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${s.visiblePanoIndex}`
106
+ checkedList: s,
107
+ reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${o.visiblePanoIndex}`
104
108
  };
105
- if (s.visiblePanoIndex === "current" && t !== ((f = e.fiveState) == null ? void 0 : f.panoIndex))
109
+ if (o.visiblePanoIndex === "current" && t !== ((f = e.fiveState) == null ? void 0 : f.panoIndex))
106
110
  return {
107
111
  value: !1,
108
- checkedList: o,
112
+ checkedList: s,
109
113
  reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(u = e.fiveState) == null ? void 0 : u.panoIndex}`
110
114
  };
111
115
  }
112
- if (b(n) && s.visibleDistance !== void 0 && (o.push("visibleDistance"), s.visibleDistance !== "unLimited")) {
116
+ if (b(n) && o.visibleDistance !== void 0 && (s.push("visibleDistance"), o.visibleDistance !== "unLimited")) {
113
117
  const a = this.getDistance(e);
114
- if (h(a, s.visibleDistance) === !1)
118
+ if (h(a, o.visibleDistance) === !1)
115
119
  return {
116
120
  value: !1,
117
- checkedList: o,
118
- reason: `distance is not in visibleDistance. distance: ${a}, visibleDistance: ${s.visibleDistance}`
121
+ checkedList: s,
122
+ reason: `distance is not in visibleDistance. distance: ${a}, visibleDistance: ${o.visibleDistance}`
119
123
  };
120
124
  }
121
- if (b(n) && s.angleRange && O(e)) {
122
- o.push("angleRange");
125
+ if (b(n) && o.angleRange && O(e)) {
126
+ s.push("angleRange");
123
127
  const a = this.getAngle(e);
124
- if (h(a, s.angleRange) === !1)
125
- return { value: !1, checkedList: o, reason: `angle is not in angleRange. angle: ${a}, angleRange: ${s.angleRange}` };
128
+ if (h(a, o.angleRange) === !1)
129
+ return { value: !1, checkedList: s, reason: `angle is not in angleRange. angle: ${a}, angleRange: ${o.angleRange}` };
126
130
  }
127
- if (s.intersectRaycaster !== !1 && (typeof s.intersectRaycaster != "object" || s.intersectRaycaster.enabled !== !1)) {
128
- if (o.push("intersectRaycaster"), t === void 0)
131
+ if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
132
+ if (s.push("intersectRaycaster"), t === void 0)
129
133
  return {
130
134
  value: !1,
131
- checkedList: o,
135
+ checkedList: s,
132
136
  reason: `intersectRaycaster check failed: panoIndex is ${t}`
133
137
  };
134
138
  const a = this.getTagEnableByIntersect(e, t);
135
139
  if (a.value === !1)
136
- return Object.assign(a, { checkedList: o });
140
+ return Object.assign(a, { checkedList: s });
137
141
  }
138
142
  return {
139
143
  value: !0,
140
- checkedList: o,
144
+ checkedList: s,
141
145
  reason: "all check passed"
142
146
  };
143
147
  })();
@@ -168,8 +172,8 @@ class We extends q {
168
172
  return !1;
169
173
  })();
170
174
  t.unfolded = d;
171
- const o = this.getUnfoldedByCamera(e);
172
- return o !== void 0 ? o : t.unfolded;
175
+ const s = this.getUnfoldedByCamera(e);
176
+ return s !== void 0 ? s : t.unfolded;
173
177
  }
174
178
  }
175
179
  /**
@@ -198,8 +202,8 @@ class We extends q {
198
202
  const f = this.getTagProject(r);
199
203
  if (!f)
200
204
  return !1;
201
- const { x: u, y: a, z: m } = f;
202
- return !(Math.abs(m) > 1 || Math.abs(u) > 1 || Math.abs(a) > 1);
205
+ const { x: u, y: a, z: v } = f;
206
+ return !(Math.abs(v) > 1 || Math.abs(u) > 1 || Math.abs(a) > 1);
203
207
  }).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: f }) => {
204
208
  var u, a;
205
209
  return !(typeof f == "function" || f.keep || f.autoUnfold === !1 || ((u = f.autoUnfold) == null ? void 0 : u.enable) === !1 || ((a = f.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
@@ -274,22 +278,22 @@ class We extends q {
274
278
  }
275
279
  /** 通过射线检测标签可用性 */
276
280
  getTagEnableByIntersect(e, i) {
277
- var s, r, f, u, a, m;
278
- const l = U(U((s = this.getTagConfig(e).visibleConfig) != null ? s : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, n = b(this.five.getCurrentState().mode) ? (r = this.five.work.observers[t]) == null ? void 0 : r.position : this.five.camera.position;
281
+ var o, r, f, u, a, v;
282
+ const l = U(U((o = this.getTagConfig(e).visibleConfig) != null ? o : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, n = b(this.five.getCurrentState().mode) ? (r = this.five.work.observers[t]) == null ? void 0 : r.position : this.five.camera.position;
279
283
  if (n === void 0)
280
284
  return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
281
285
  const d = X(
282
286
  (() => {
283
287
  var g;
284
- const p = (g = l.checkPoints) != null ? g : "center";
285
- return p === "center" ? I(e) : p === "corner" ? Z(e) : Array.isArray(p) ? p : [];
288
+ const m = (g = l.checkPoints) != null ? g : "center";
289
+ return m === "center" ? I(e) : m === "corner" ? Z(e) : Array.isArray(m) ? m : [];
286
290
  })()
287
291
  );
288
- let o = 0, c = 0;
289
- for (const p of d) {
290
- const g = new F.Vector3().subVectors(p, n).normalize();
292
+ let s = 0, c = 0;
293
+ for (const m of d) {
294
+ const g = new j.Vector3().subVectors(m, n).normalize();
291
295
  T.set(n, g);
292
- const j = n.distanceTo(p), [P] = this.five.model.intersectRaycaster(T), x = (() => {
296
+ const F = n.distanceTo(m), [P] = this.five.model.intersectRaycaster(T), x = (() => {
293
297
  if (!R(e))
294
298
  return;
295
299
  const B = this.tags.filter(R).map((A) => {
@@ -298,33 +302,33 @@ class We extends q {
298
302
  }).filter(N), [w] = T.intersectObjects(B, !0);
299
303
  return w;
300
304
  })(), S = (f = l.distanceAccuracy) != null ? f : 0.01;
301
- Math.min((u = P == null ? void 0 : P.distance) != null ? u : 1 / 0, (a = x == null ? void 0 : x.distance) != null ? a : 1 / 0) + S >= j ? o++ : c++;
302
- const V = (m = l.needPassed) != null ? m : 1;
303
- if (o >= V)
305
+ Math.min((u = P == null ? void 0 : P.distance) != null ? u : 1 / 0, (a = x == null ? void 0 : x.distance) != null ? a : 1 / 0) + S >= F ? s++ : c++;
306
+ const V = (v = l.needPassed) != null ? v : 1;
307
+ if (s >= V)
304
308
  return { value: !0 };
305
309
  }
306
310
  return c === 0 ? { value: !0 } : {
307
311
  value: !1,
308
312
  reason: {
309
313
  type: "intersectRaycaster check failed",
310
- passedCount: o,
314
+ passedCount: s,
311
315
  needPassed: l.needPassed
312
316
  }
313
317
  };
314
318
  }
315
319
  /** 检测是否匹配当前楼层 */
316
320
  getVisibleByFloorIndex(e) {
317
- var n, d, o, c, s, r, f;
321
+ var n, d, s, c, o, r, f;
318
322
  let i = 0;
319
323
  const l = (n = e.fiveState) == null ? void 0 : n.panoIndex;
320
324
  l !== void 0 ? i = (d = this.five.work.observers[l]) == null ? void 0 : d.floorIndex : i = W(
321
325
  this.five.work.observers,
322
- (f = (r = (c = (o = e.model) == null ? void 0 : o.object) == null ? void 0 : c.position) != null ? r : (s = e.mediaPlane) == null ? void 0 : s.position) != null ? f : I(e)
326
+ (f = (r = (c = (s = e.model) == null ? void 0 : s.object) == null ? void 0 : c.position) != null ? r : (o = e.mediaPlane) == null ? void 0 : o.position) != null ? f : I(e)
323
327
  );
324
328
  const t = this.five.model.shownFloor;
325
329
  return t === null || t === i;
326
330
  }
327
331
  }
328
332
  export {
329
- We as TagComputer
333
+ Je as TagComputer
330
334
  };
@@ -1,16 +1,16 @@
1
- var A = Object.defineProperty;
1
+ var V = Object.defineProperty;
2
2
  var j = Object.getOwnPropertySymbols;
3
- var V = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
4
- var y = (c, d, t) => d in c ? A(c, d, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[d] = t, w = (c, d) => {
5
- for (var t in d || (d = {}))
6
- V.call(d, t) && y(c, t, d[t]);
3
+ var A = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
4
+ var y = (d, p, t) => p in d ? V(d, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[p] = t, w = (d, p) => {
5
+ for (var t in p || (p = {}))
6
+ A.call(p, t) && y(d, t, p[t]);
7
7
  if (j)
8
- for (var t of j(d))
9
- x.call(d, t) && y(c, t, d[t]);
10
- return c;
8
+ for (var t of j(p))
9
+ x.call(p, t) && y(d, t, p[t]);
10
+ return d;
11
11
  };
12
- var b = (c, d, t) => (y(c, typeof d != "symbol" ? d + "" : d, t), t);
13
- var M = (c, d, t) => new Promise((e, o) => {
12
+ var P = (d, p, t) => (y(d, typeof p != "symbol" ? p + "" : p, t), t);
13
+ var M = (d, p, t) => new Promise((e, o) => {
14
14
  var i = (r) => {
15
15
  try {
16
16
  a(t.next(r));
@@ -24,7 +24,7 @@ var M = (c, d, t) => new Promise((e, o) => {
24
24
  o(n);
25
25
  }
26
26
  }, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(i, s);
27
- a((t = t.apply(c, d)).next());
27
+ a((t = t.apply(d, p)).next());
28
28
  });
29
29
  import { TagComputer as O } from "./TagComputer.js";
30
30
  import { Group as R, Quaternion as I, Vector3 as D, Matrix4 as g } from "three";
@@ -65,13 +65,15 @@ import "../utils/planeNormal.js";
65
65
  import "../utils/normalPositionToPositions.js";
66
66
  import "./TagCache.js";
67
67
  import "../../base/BasePlugin.js";
68
- import "../../shared-utils/absoluteUrl.js";
68
+ import "../../shared-utils/url/absoluteUrl.js";
69
69
  import "../../vendor/svelte/store/index.js";
70
70
  import "../../vendor/svelte/internal/index.js";
71
71
  import "../../shared-utils/device.js";
72
72
  import "../../shared-utils/five/FiveDomEvents.js";
73
+ import "../../shared-utils/five/calculateThreeMouse.js";
73
74
  import "../utils/tag/adaptConfig.js";
74
75
  import "../../shared-utils/typescript/entries.js";
76
+ import "../../shared-utils/url/getUrl.js";
75
77
  import "../../shared-utils/five/getFloorIndex.js";
76
78
  import "../../shared-utils/safeObj.js";
77
79
  import "../../shared-utils/three/loadTexture.js";
@@ -81,6 +83,7 @@ import "../../shared-utils/three/loadVideoTexture.js";
81
83
  import "../Assets/Icon.js";
82
84
  import "../../shared-utils/three/getPositionsByObjectFit.js";
83
85
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
86
+ import "../../shared-utils/three/getNormal.js";
84
87
  import "../Components/TagItem.js";
85
88
  import "../utils/noTypecheck.js";
86
89
  import "../Components/Common/TagPoint.js";
@@ -155,37 +158,37 @@ import "../../CSS3DRenderPlugin/Controller.js";
155
158
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
156
159
  import "@realsee/five/gltf-loader";
157
160
  const B = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map();
158
- class pi extends O {
161
+ class ui extends O {
159
162
  constructor(t) {
160
163
  super(t);
161
- b(this, "group", new R());
162
- b(this, "renderMap", /* @__PURE__ */ new Map());
163
- b(this, "imagePlaneGroup", new R());
164
- b(this, "gltfObjectGroup", new R());
164
+ P(this, "group", new R());
165
+ P(this, "renderMap", /* @__PURE__ */ new Map());
166
+ P(this, "imagePlaneGroup", new R());
167
+ P(this, "gltfObjectGroup", new R());
165
168
  /** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
166
- b(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
169
+ P(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
167
170
  /** 临时状态 */
168
- b(this, "temporaryState", { visible: !0 });
171
+ P(this, "temporaryState", { visible: !0 });
169
172
  /** 点标签 */
170
- b(this, "TagContainerSvelte");
173
+ P(this, "TagContainerSvelte");
171
174
  /** 加载外部模型 */
172
- b(this, "loadModel", (t) => M(this, null, function* () {
175
+ P(this, "loadModel", (t) => M(this, null, function* () {
173
176
  var a;
174
177
  const e = t.data.modelUrl;
175
178
  if (!e)
176
179
  return;
177
180
  t.loading = !0;
178
181
  const o = W(e).then((r) => {
179
- var m, h, f, p, P;
182
+ var m, c;
180
183
  const n = Object.assign(r.scene, {
181
184
  customID: t.id,
182
185
  isTagModel: !0,
183
186
  removeEventListener: t.config.clickable === !1 ? () => {
184
- } : this.addObjectClickHandler(t, r.scene, (u) => {
185
- this.hooks.emit("click", { target: "TagModel", tag: t, event: u });
187
+ } : this.addObjectClickHandler(t, r.scene, (h) => {
188
+ this.hooks.emit("click", { target: "TagModel", tag: t, event: h });
186
189
  })
187
190
  });
188
- return n.visible = this.getCurrentVisibleState(t), new g().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (f = (h = (m = this.config) == null ? void 0 : m.globalConfig) == null ? void 0 : h.modelConfig) != null && f.autoLookAtEnabled && ((P = (p = t.config) == null ? void 0 : p.modelConfig) != null && P.autoLookAtEnabled) && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
191
+ return n.visible = this.getCurrentVisibleState(t), new g().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (c = (m = t.config) == null ? void 0 : m.modelConfig) != null && c.autoLookAtEnabled && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
189
192
  });
190
193
  t.model = { promise: o };
191
194
  const i = yield o;
@@ -236,30 +239,30 @@ class pi extends O {
236
239
  var o, i;
237
240
  return ((i = (o = e.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Video";
238
241
  }).forEach((e) => {
239
- var m, h, f, p, P;
242
+ var m, c, h, u, b;
240
243
  const o = e.data.mediaData[0];
241
244
  if (!o)
242
245
  return;
243
246
  const { url: i } = o;
244
247
  if (!i)
245
248
  return;
246
- e.mediaPlane && !((h = (m = e.state) == null ? void 0 : m.visible) == null || h) && e.mediaPlane instanceof k && e.mediaPlane.pause();
249
+ e.mediaPlane && !((c = (m = e.state) == null ? void 0 : m.visible) == null || c) && e.mediaPlane instanceof k && e.mediaPlane.pause();
247
250
  const s = e.position.map(C), a = this.getCurrentVisibleState(e), r = (() => !!(e.mediaPlane && !a))(), n = (() => !!(!e.mediaPlane && a))(), l = (() => !!(e.mediaPlane && e.mediaPlane.src !== i))();
248
- if ((r || l) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (f = e.mediaPlane) == null || f.dispose(), (p = e.mediaPlane) == null || p.removeFromParent(), e.mediaPlane = void 0), n || l) {
249
- const u = new k(i, s, {
251
+ if ((r || l) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (h = e.mediaPlane) == null || h.dispose(), (u = e.mediaPlane) == null || u.removeFromParent(), e.mediaPlane = void 0), n || l) {
252
+ const f = new k(i, s, {
250
253
  videoCoverSrc: o.videoCoverUrl,
251
254
  playButton: e.data.playIcon,
252
- paused: !((P = e.data.autoplayConfig) != null && P.autoplayVideo),
255
+ paused: !((b = e.data.autoplayConfig) != null && b.autoplayVideo),
253
256
  objectFit: e.data.objectFit,
254
257
  videoTextureMap: B,
255
258
  ImageTextureMap: N,
256
259
  domEvents: this.domEvents
257
260
  });
258
- u.onVideoReady = (T) => {
259
- T.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: u.videoInstance }));
261
+ f.onVideoReady = (T) => {
262
+ T.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: f.videoInstance }));
260
263
  };
261
264
  const v = (T) => (this.five.on("renderFrame", T), () => this.five.off("renderFrame", T));
262
- u.initialRenderHooks(v), e.mediaPlane = u, this.imagePlaneGroup.add(e.mediaPlane);
265
+ f.initialRenderHooks(v), e.mediaPlane = f, this.imagePlaneGroup.add(e.mediaPlane);
263
266
  }
264
267
  });
265
268
  }
@@ -276,8 +279,8 @@ class pi extends O {
276
279
  if (!o)
277
280
  return;
278
281
  const i = e.position.map(C), s = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !s))(), r = (() => !!(!e.mediaPlane && s))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== o))();
279
- (a || n) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (l = e.mediaPlane) == null || l.dispose(), (m = e.mediaPlane) == null || m.removeFromParent(), e.mediaPlane = void 0), (r || n) && (e.mediaPlane = new E(o, i, { objectFit: e.data.objectFit }), e.config.clickable !== !1 && this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (h) => {
280
- this.hooks.emit("click", { tag: e, target: "TagContent", event: h.origDomEvent });
282
+ (a || n) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (l = e.mediaPlane) == null || l.dispose(), (m = e.mediaPlane) == null || m.removeFromParent(), e.mediaPlane = void 0), (r || n) && (e.mediaPlane = new E(o, i, { objectFit: e.data.objectFit }), e.config.clickable !== !1 && this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (c) => {
283
+ this.hooks.emit("click", { tag: e, target: "TagContent", event: c.origDomEvent });
281
284
  }), this.imagePlaneGroup.add(e.mediaPlane));
282
285
  });
283
286
  }
@@ -308,14 +311,14 @@ class pi extends O {
308
311
  const n = this.getTagConfig(e), l = w({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
309
312
  if (this.getRenderType(e) === "BehindDom" || l.mode === "behind") {
310
313
  l.mode = "behind", l.container = document.createElement("div");
311
- const f = "black";
312
- l.container.style.backgroundColor = f, l.container.style.border = `3px solid ${f}`, this.css3DRenderPlugin.hooks.on("render", () => {
313
- var p;
314
+ const h = "black";
315
+ l.container.style.backgroundColor = h, l.container.style.border = `3px solid ${h}`, this.css3DRenderPlugin.hooks.on("render", () => {
316
+ var u;
314
317
  if (m.css3DObject.opacityMesh && n.clickable !== !1) {
315
- const P = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (u) => {
316
- this.hooks.emit("click", { event: u, target: "TagContent", tag: e });
318
+ const b = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (f) => {
319
+ this.hooks.emit("click", { event: f, target: "TagContent", tag: e });
317
320
  });
318
- (p = this.store.css3DRenderDisposer.get(e.id)) == null || p.push(P);
321
+ (u = this.store.css3DRenderDisposer.get(e.id)) == null || u.push(b);
319
322
  }
320
323
  });
321
324
  }
@@ -323,7 +326,7 @@ class pi extends O {
323
326
  if (!m)
324
327
  return;
325
328
  this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
326
- const h = new F({
329
+ const c = new F({
327
330
  target: m.container,
328
331
  props: {
329
332
  tag: e,
@@ -335,13 +338,13 @@ class pi extends O {
335
338
  }
336
339
  });
337
340
  e.tag3DContentSvelte = {
338
- svelteApp: h,
341
+ svelteApp: c,
339
342
  domContainer: m,
340
343
  css3DInstance: m,
341
344
  initialNormal: r,
342
345
  currentNormal: r,
343
346
  dispose: () => {
344
- h.$destroy(), m.dispose();
347
+ c.$destroy(), m.dispose();
345
348
  }
346
349
  }, S(e) && ((s = e.model) != null && s.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
347
350
  }
@@ -374,18 +377,18 @@ class pi extends O {
374
377
  * @param model 模型
375
378
  */
376
379
  updateTagCss3DObjectMatrix(t, e) {
377
- var P, u, v;
378
- const o = (u = (P = t.config.tag3DConfig) == null ? void 0 : P.ratio) != null ? u : 216e-5, i = (v = t.tag3DContentSvelte) == null ? void 0 : v.css3DInstance.css3DObject;
380
+ var b, f, v;
381
+ const o = (f = (b = t.config.tag3DConfig) == null ? void 0 : b.ratio) != null ? f : 216e-5, i = (v = t.tag3DContentSvelte) == null ? void 0 : v.css3DInstance.css3DObject;
379
382
  if (!i)
380
383
  return;
381
384
  const s = S(t) ? t.data.mediaPosition : t.position;
382
385
  if (!s || s.length !== 4 || !Array.isArray(s[0]) || !Array.isArray(s[2]))
383
386
  return;
384
387
  e.updateWorldMatrix(!1, !1);
385
- const a = e.matrixWorld, r = new D().fromArray(s[0]), n = new D().fromArray(s[2]), l = q(r, n).add(new D(0, 0, 5e-4)), m = new g().setPosition(l), h = new g().makeScale(o, o, o), f = new g().multiply(a).multiply(m).multiply(h);
386
- f.decompose(i.position, i.quaternion, i.scale);
387
- const p = i.opacityMesh;
388
- p && f.decompose(p.position, p.quaternion, p.scale);
388
+ const a = e.matrixWorld, r = new D().fromArray(s[0]), n = new D().fromArray(s[2]), l = q(r, n).add(new D(0, 0, 5e-4)), m = new g().setPosition(l), c = new g().makeScale(o, o, o), h = new g().multiply(a).multiply(m).multiply(c);
389
+ h.decompose(i.position, i.quaternion, i.scale);
390
+ const u = i.opacityMesh;
391
+ u && h.decompose(u.position, u.quaternion, u.scale);
389
392
  }
390
393
  /** 添加模型标签 */
391
394
  addMediaModelTag(t) {
@@ -399,7 +402,7 @@ class pi extends O {
399
402
  */
400
403
  updateRenderPointTag() {
401
404
  const t = this.filterPointTag;
402
- this.setTagZIndex(t), this.updateDomView();
405
+ this.setTagZIndex(t), this.setPointTagPosition(), this.updateDomView();
403
406
  }
404
407
  updatePointTagPosition() {
405
408
  this.setPointTagPosition(), this.updateDomView();
@@ -462,5 +465,5 @@ class pi extends O {
462
465
  }
463
466
  }
464
467
  export {
465
- pi as TagRender
468
+ ui as TagRender
466
469
  };