@realsee/dnalogel 3.2.0-dev.8 → 3.2.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 (385) hide show
  1. package/dist/GuideLinePlugin/GuideLineItem.d.ts +0 -1
  2. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +10 -1
  3. package/dist/GuideLinePlugin/typing.d.ts +6 -1
  4. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +4 -8
  5. package/dist/PanoTagPlugin/controller/index.d.ts +1 -1
  6. package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +0 -1
  7. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
  8. package/dist/PanoTagPlugin/utils/tagPosition.d.ts +3 -2
  9. package/dist/index.cjs.js +54 -54
  10. package/dist/index.js +3053 -3053
  11. package/dist/index.umd.js +51 -51
  12. package/dist/shared-utils/five/getFloorIndex.d.ts +8 -2
  13. package/libs/CruisePlugin/Controller.js +34 -35
  14. package/libs/CruisePlugin/index.js +5 -6
  15. package/libs/GuideLinePlugin/Controller.js +40 -41
  16. package/libs/GuideLinePlugin/GuideLineItem/index.js +33 -36
  17. package/libs/GuideLinePlugin/GuideLineItem.d.ts +0 -1
  18. package/libs/GuideLinePlugin/GuideLineItem.js +2 -3
  19. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +95 -72
  20. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +10 -1
  21. package/libs/GuideLinePlugin/GuideLineModeItem.js +2 -3
  22. package/libs/GuideLinePlugin/index.js +7 -8
  23. package/libs/GuideLinePlugin/typing.d.ts +6 -1
  24. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +26 -26
  25. package/libs/PanoTagPlugin/controller/TagComputer.js +95 -89
  26. package/libs/PanoTagPlugin/controller/TagRender.js +81 -81
  27. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +4 -8
  28. package/libs/PanoTagPlugin/controller/TagUtil.js +107 -123
  29. package/libs/PanoTagPlugin/controller/index.d.ts +1 -1
  30. package/libs/PanoTagPlugin/controller/index.js +36 -41
  31. package/libs/PanoTagPlugin/index.js +11 -12
  32. package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +0 -1
  33. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
  34. package/libs/PanoTagPlugin/utils/tagPosition.d.ts +3 -2
  35. package/libs/PanoTagPlugin/utils/tagPosition.js +15 -15
  36. package/libs/base/BasePlugin.js +1 -1
  37. package/libs/index.js +116 -117
  38. package/libs/shared-utils/five/getFloorIndex.d.ts +8 -2
  39. package/libs/shared-utils/five/getFloorIndex.js +12 -16
  40. package/libs/shared-utils/logger.js +1 -1
  41. package/package.json +1 -1
  42. package/dist/shared-utils/five/transformPosition.d.ts +0 -2
  43. package/docs/.nojekyll +0 -1
  44. package/docs/assets/highlight.css +0 -120
  45. package/docs/assets/main.js +0 -58
  46. package/docs/assets/search.js +0 -1
  47. package/docs/assets/style.css +0 -1367
  48. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -725
  49. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -678
  50. package/docs/classes/CSS3DRender.html +0 -773
  51. package/docs/classes/CruisePluginController.html +0 -672
  52. package/docs/classes/GuideLineItem.GuideLineItem.html +0 -491
  53. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -792
  54. package/docs/classes/Magnifier.html +0 -480
  55. package/docs/classes/ModelRoomLabelController.html +0 -398
  56. package/docs/classes/Object3DHelperController.html +0 -640
  57. package/docs/classes/PaintBrush.html +0 -502
  58. package/docs/classes/PanoMeasurePluginLine.html +0 -522
  59. package/docs/classes/PanoMeasurePluginModel.html +0 -571
  60. package/docs/classes/PanoMeasurePluginPoint.html +0 -362
  61. package/docs/classes/PanoMeasurePluginPolyline.html +0 -567
  62. package/docs/classes/PanoTagPluginController.html +0 -1077
  63. package/docs/classes/Util.BetterTween.html +0 -416
  64. package/docs/classes/Util.Interval.html +0 -432
  65. package/docs/classes/Util.LineSegments.html +0 -384
  66. package/docs/classes/Util.Magnifier.html +0 -503
  67. package/docs/classes/Util.Object3D.html +0 -406
  68. package/docs/classes/Util.PointDomHelper.html +0 -407
  69. package/docs/classes/Util.PointHelper.html +0 -398
  70. package/docs/classes/Util.PointSelectorHelper.html +0 -454
  71. package/docs/classes/Util.Rectangle.html +0 -455
  72. package/docs/enums/CameraMovementEffect.html +0 -310
  73. package/docs/enums/ContentType.html +0 -446
  74. package/docs/enums/DIRECTION.html +0 -320
  75. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -320
  76. package/docs/enums/DimensionType.html +0 -310
  77. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -313
  78. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -320
  79. package/docs/enums/PaintBrushTypeEnum.html +0 -313
  80. package/docs/enums/PointType.html +0 -310
  81. package/docs/enums/Rotation.html +0 -317
  82. package/docs/functions/AreaMakerPlugin.html +0 -290
  83. package/docs/functions/CSS3DRenderPlugin.html +0 -288
  84. package/docs/functions/CameraMovementPlugin.html +0 -293
  85. package/docs/functions/CruisePlugin.html +0 -290
  86. package/docs/functions/CurrentPanoImagePlugin.html +0 -290
  87. package/docs/functions/GuideLinePlugin.html +0 -290
  88. package/docs/functions/ItemLabelPlugin.html +0 -290
  89. package/docs/functions/MapviewFloorplanPlugin.html +0 -290
  90. package/docs/functions/ModelChassisCompassPlugin.html +0 -293
  91. package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -293
  92. package/docs/functions/ModelFloorplanPlugin.html +0 -290
  93. package/docs/functions/ModelItemLabelPlugin.html +0 -290
  94. package/docs/functions/ModelRoomLabelPlugin.html +0 -288
  95. package/docs/functions/ModelTVVideoPlugin.html +0 -290
  96. package/docs/functions/ModelViewPlugin.html +0 -293
  97. package/docs/functions/Object3DHelperPlugin.html +0 -288
  98. package/docs/functions/PanoCompassPlugin.html +0 -290
  99. package/docs/functions/PanoCursorRaycasterPlugin.html +0 -294
  100. package/docs/functions/PanoDoorLabelPlugin.html +0 -290
  101. package/docs/functions/PanoFloorplanRadarPlugin.html +0 -290
  102. package/docs/functions/PanoMeasurePlugin.html +0 -290
  103. package/docs/functions/PanoRulerPlugin.html +0 -293
  104. package/docs/functions/PanoRulerProPlugin.html +0 -293
  105. package/docs/functions/PanoSpatialTagPlugin.html +0 -293
  106. package/docs/functions/PanoTagPlugin.html +0 -295
  107. package/docs/functions/PanoVideoPlugin.html +0 -299
  108. package/docs/functions/PipelinePlugin.html +0 -288
  109. package/docs/functions/TopviewFloorplanPlugin.html +0 -290
  110. package/docs/functions/Util.absoluteUrl.html +0 -326
  111. package/docs/functions/Util.checkFiveModelLoaded.html +0 -329
  112. package/docs/functions/Util.equal.html +0 -338
  113. package/docs/functions/Util.getCoordsFromClient.html +0 -328
  114. package/docs/functions/Util.getCoordsFromElement.html +0 -328
  115. package/docs/functions/Util.getFrameTime.html +0 -320
  116. package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -328
  117. package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -328
  118. package/docs/functions/Util.isAbsoluteURL.html +0 -321
  119. package/docs/functions/Util.isModelLike.html +0 -321
  120. package/docs/functions/Util.isNil.html +0 -329
  121. package/docs/functions/Util.isPanoramaLike.html +0 -321
  122. package/docs/functions/Util.nextFrame.html +0 -334
  123. package/docs/functions/Util.notNil.html +0 -329
  124. package/docs/functions/Util.requestAnimationFrameInterval.html +0 -350
  125. package/docs/functions/Util.tweenProgress.html +0 -323
  126. package/docs/functions/Util.uuid.html +0 -319
  127. package/docs/functions/pluginFlag.html +0 -288
  128. package/docs/index.html +0 -354
  129. package/docs/interfaces/AddTagConfig.html +0 -303
  130. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -329
  131. package/docs/interfaces/AreaMakerPluginType.Config.html +0 -334
  132. package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -620
  133. package/docs/interfaces/AreaMakerPluginType.Params.html +0 -333
  134. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -383
  135. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -368
  136. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -333
  137. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -326
  138. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -325
  139. package/docs/interfaces/AreaMakerPluginType.State.html +0 -354
  140. package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -449
  141. package/docs/interfaces/CSS3DRenderPluginState.html +0 -325
  142. package/docs/interfaces/CameraMovementPluginExportType.html +0 -358
  143. package/docs/interfaces/CruisePluginTypes.Config.html +0 -359
  144. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -361
  145. package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -696
  146. package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -385
  147. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -421
  148. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -411
  149. package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -351
  150. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -319
  151. package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -408
  152. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -382
  153. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -521
  154. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -323
  155. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -315
  156. package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -337
  157. package/docs/interfaces/EventMap.html +0 -542
  158. package/docs/interfaces/FloorplanBounding.html +0 -332
  159. package/docs/interfaces/FloorplanData.html +0 -335
  160. package/docs/interfaces/FloorplanEntrance.html +0 -360
  161. package/docs/interfaces/FloorplanExtraObject.html +0 -350
  162. package/docs/interfaces/FloorplanExtraObject3D.html +0 -339
  163. package/docs/interfaces/FloorplanFloorData.html +0 -328
  164. package/docs/interfaces/FloorplanImagePosition.html +0 -314
  165. package/docs/interfaces/FloorplanObserver.html +0 -332
  166. package/docs/interfaces/FloorplanOutlineItem.html +0 -328
  167. package/docs/interfaces/FloorplanPosition.html +0 -314
  168. package/docs/interfaces/FloorplanRoomItem.html +0 -379
  169. package/docs/interfaces/FloorplanRoomLabelItem.html +0 -320
  170. package/docs/interfaces/FloorplanServerBounding.html +0 -332
  171. package/docs/interfaces/FloorplanServerComputedData.html +0 -331
  172. package/docs/interfaces/FloorplanServerData.html +0 -314
  173. package/docs/interfaces/FloorplanServerDoorItem.html +0 -331
  174. package/docs/interfaces/FloorplanServerDoorPosition.html +0 -317
  175. package/docs/interfaces/FloorplanServerEntrance.html +0 -360
  176. package/docs/interfaces/FloorplanServerFloorData.html +0 -328
  177. package/docs/interfaces/FloorplanServerImagePosition.html +0 -314
  178. package/docs/interfaces/FloorplanServerObserver.html +0 -332
  179. package/docs/interfaces/FloorplanServerOutlineItem.html +0 -328
  180. package/docs/interfaces/FloorplanServerPosition.html +0 -314
  181. package/docs/interfaces/FloorplanServerRoomItem.html +0 -391
  182. package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -320
  183. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -323
  184. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -361
  185. package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -525
  186. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -356
  187. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -347
  188. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -414
  189. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -346
  190. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -471
  191. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -343
  192. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -471
  193. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -308
  194. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -329
  195. package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -354
  196. package/docs/interfaces/GuideLinePluginType.Route.html +0 -370
  197. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -352
  198. package/docs/interfaces/HelperOffset.html +0 -332
  199. package/docs/interfaces/ImagePlaneGroup.html +0 -306
  200. package/docs/interfaces/ItemLabelPluginData.html +0 -303
  201. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -388
  202. package/docs/interfaces/ItemLabelPluginParametersType.html +0 -324
  203. package/docs/interfaces/MinMax.html +0 -310
  204. package/docs/interfaces/ModelChassisCompassPluginData.html +0 -310
  205. package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -346
  206. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -310
  207. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -317
  208. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -354
  209. package/docs/interfaces/ModelItemLabelPluginData.html +0 -303
  210. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -388
  211. package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -310
  212. package/docs/interfaces/ModelRoomLabelPluginData.html +0 -303
  213. package/docs/interfaces/ModelTVVideoPluginData.html +0 -324
  214. package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -348
  215. package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -303
  216. package/docs/interfaces/ModelViewPluginExportType.html +0 -416
  217. package/docs/interfaces/Object3DHelperState.html +0 -317
  218. package/docs/interfaces/ObjectHelperControllers.html +0 -324
  219. package/docs/interfaces/PaintBrushAction.html +0 -363
  220. package/docs/interfaces/PaintBrushConfigs.html +0 -361
  221. package/docs/interfaces/PaintBrushState.html +0 -345
  222. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -425
  223. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -282
  224. package/docs/interfaces/PanoMeasureParameterType.html +0 -449
  225. package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -317
  226. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -314
  227. package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -310
  228. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -320
  229. package/docs/interfaces/PanoRulerPluginExportType.html +0 -377
  230. package/docs/interfaces/PanoRulerPluginOptions.html +0 -326
  231. package/docs/interfaces/PanoRulerPluginParameterType.html +0 -317
  232. package/docs/interfaces/PanoRulerProPluginExportType.html +0 -353
  233. package/docs/interfaces/PanoRulerProPluginOptions.html +0 -323
  234. package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -310
  235. package/docs/interfaces/PanoRulerProPluginState.html +0 -317
  236. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -296
  237. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -285
  238. package/docs/interfaces/PanoSpatialTagPluginData.html +0 -353
  239. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -335
  240. package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -431
  241. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -331
  242. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -352
  243. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -338
  244. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -331
  245. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -323
  246. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -341
  247. package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -314
  248. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -420
  249. package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -314
  250. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -349
  251. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -368
  252. package/docs/interfaces/Point.html +0 -317
  253. package/docs/interfaces/Room.html +0 -324
  254. package/docs/interfaces/RoomInfo.html +0 -310
  255. package/docs/interfaces/RoomLabel.html +0 -386
  256. package/docs/interfaces/RoomRules.html +0 -285
  257. package/docs/interfaces/Rooms.html +0 -285
  258. package/docs/interfaces/Scissor.html +0 -344
  259. package/docs/interfaces/State.html +0 -331
  260. package/docs/interfaces/TagCacheInterface.html +0 -362
  261. package/docs/interfaces/TagConfig.html +0 -565
  262. package/docs/interfaces/TagGLTFObjectGroup.html +0 -306
  263. package/docs/interfaces/TagIconUrl.html +0 -363
  264. package/docs/interfaces/TagObjectGroup.html +0 -306
  265. package/docs/interfaces/TagStyle.html +0 -316
  266. package/docs/interfaces/Tags.html +0 -2688
  267. package/docs/interfaces/TemporaryState.html +0 -303
  268. package/docs/interfaces/Util.MagnifierParameter.html +0 -391
  269. package/docs/interfaces/Util.MouseGroupParameter.html +0 -350
  270. package/docs/interfaces/Util.PointIntersection.html +0 -365
  271. package/docs/modules/AreaMakerPluginType.html +0 -323
  272. package/docs/modules/CruisePluginTypes.html +0 -328
  273. package/docs/modules/CurrentPanoImagePluginType.html +0 -297
  274. package/docs/modules/GuideLineItem.html +0 -289
  275. package/docs/modules/GuideLineModeItem.html +0 -294
  276. package/docs/modules/GuideLinePluginType.html +0 -348
  277. package/docs/modules/PanoVideoPluginType.html +0 -301
  278. package/docs/modules/Util.html +0 -351
  279. package/docs/modules.html +0 -540
  280. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -331
  281. package/docs/types/AreaMakerPluginType.PluginData.html +0 -301
  282. package/docs/types/AreaMakerPluginType.ServerData.html +0 -301
  283. package/docs/types/ArrayPosition.html +0 -279
  284. package/docs/types/AudioAppearance.html +0 -279
  285. package/docs/types/AudioTagTypeConfigKey.html +0 -279
  286. package/docs/types/CSS3DRenderExportType.html +0 -279
  287. package/docs/types/CSS3DRenderPluginExportType.html +0 -279
  288. package/docs/types/CSS3DRenderPluginParameterType.html +0 -279
  289. package/docs/types/ClassFunctionParameters.html +0 -286
  290. package/docs/types/Color.html +0 -279
  291. package/docs/types/ContentTypeConfigKey.html +0 -279
  292. package/docs/types/ContentTypeConfigKeySplit.html +0 -279
  293. package/docs/types/ContentTypeMap.html +0 -279
  294. package/docs/types/Create3DDomContainerReturnType.html +0 -279
  295. package/docs/types/Create3DElementReturnType.html +0 -279
  296. package/docs/types/CruisePluginExportType.html +0 -279
  297. package/docs/types/CruisePluginTypes.CruiseData.html +0 -318
  298. package/docs/types/CruisePluginTypes.MoveEffect.html +0 -295
  299. package/docs/types/CurrentPanoImagePluginExportType.html +0 -279
  300. package/docs/types/DeprecatedMediaPlaneProperty.html +0 -291
  301. package/docs/types/DeprecatedTagProperty.html +0 -294
  302. package/docs/types/Direction-1.html +0 -279
  303. package/docs/types/Direction4.html +0 -279
  304. package/docs/types/ElementRenderer.html +0 -303
  305. package/docs/types/FloorplanRuleLabels.html +0 -282
  306. package/docs/types/FloorplanServerRuleLabels.html +0 -279
  307. package/docs/types/GuideLinePluginExportType.html +0 -279
  308. package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -351
  309. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -372
  310. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -305
  311. package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -308
  312. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -308
  313. package/docs/types/GuideLinePluginType.PathItem.html +0 -308
  314. package/docs/types/GuideLinePluginType.PluginData.html +0 -317
  315. package/docs/types/HelperEventMap.html +0 -517
  316. package/docs/types/LoadTagConfig.html +0 -279
  317. package/docs/types/MapviewFloorplanPluginParameterType.html +0 -279
  318. package/docs/types/MapviewFloorplanPluginReturnType.html +0 -279
  319. package/docs/types/MediaData.html +0 -295
  320. package/docs/types/MediaStore.html +0 -284
  321. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -286
  322. package/docs/types/ModelFloorplanPluginParameterType.html +0 -279
  323. package/docs/types/ModelFloorplanPluginReturnType.html +0 -279
  324. package/docs/types/ModelId.html +0 -279
  325. package/docs/types/ModelRoomLabelPluginParameters.html +0 -279
  326. package/docs/types/ModelRoomLabelPluginReturnType.html +0 -279
  327. package/docs/types/MoveArgs.html +0 -289
  328. package/docs/types/MoveOpts.html +0 -287
  329. package/docs/types/Object3DHelperEventMap.html +0 -372
  330. package/docs/types/ObjectFit.html +0 -279
  331. package/docs/types/PaintBrushEventMap.html +0 -310
  332. package/docs/types/PanoCompassPluginData.html +0 -279
  333. package/docs/types/PanoCompassPluginExportType.html +0 -279
  334. package/docs/types/PanoCompassPluginParameterType.html +0 -279
  335. package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -279
  336. package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -279
  337. package/docs/types/PanoIndex.html +0 -279
  338. package/docs/types/PanoMeasurePluginEvent.html +0 -279
  339. package/docs/types/PanoMeasureReturnType.html +0 -279
  340. package/docs/types/PanoSpatialTagPluginId.html +0 -279
  341. package/docs/types/PanoTagPluginExportInterface.html +0 -279
  342. package/docs/types/PanoTagPluginParamsInterface.html +0 -279
  343. package/docs/types/PanoVideoPluginParameterType.html +0 -279
  344. package/docs/types/PanoVideoPluginReturnType.html +0 -279
  345. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -287
  346. package/docs/types/PipelinePluginParameterType.html +0 -279
  347. package/docs/types/PipelinePluginReturnType.html +0 -279
  348. package/docs/types/PlaneTag.html +0 -287
  349. package/docs/types/Point2DTag.html +0 -287
  350. package/docs/types/Point3DTag.html +0 -287
  351. package/docs/types/PointTag.html +0 -284
  352. package/docs/types/PointTagInstance.html +0 -284
  353. package/docs/types/Position.html +0 -279
  354. package/docs/types/RotateArgs.html +0 -291
  355. package/docs/types/RotateOpts.html +0 -287
  356. package/docs/types/RuleLabelsKey.html +0 -279
  357. package/docs/types/RuleLabelsValue.html +0 -279
  358. package/docs/types/StickType.html +0 -279
  359. package/docs/types/Tag.html +0 -345
  360. package/docs/types/Tag2D.html +0 -287
  361. package/docs/types/Tag3D.html +0 -287
  362. package/docs/types/TagConfigByKey.html +0 -284
  363. package/docs/types/TagContentType.html +0 -279
  364. package/docs/types/TagDimensionType.html +0 -281
  365. package/docs/types/TagElement.html +0 -289
  366. package/docs/types/TagEvents.html +0 -332
  367. package/docs/types/TagGLTFObject.html +0 -302
  368. package/docs/types/TagHooks.html +0 -279
  369. package/docs/types/TagId.html +0 -279
  370. package/docs/types/TagInstance.html +0 -355
  371. package/docs/types/TagPointType.html +0 -282
  372. package/docs/types/TagRendererMap.html +0 -284
  373. package/docs/types/TopviewFloorplanPluginParameterType.html +0 -279
  374. package/docs/types/TopviewFloorplanPluginReturnType.html +0 -279
  375. package/docs/types/WorkCode.html +0 -279
  376. package/docs/variables/FLOOR_TYPE_MAP.html +0 -289
  377. package/docs/variables/PLUGIN.html +0 -279
  378. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -282
  379. package/docs/variables/ROOM_TYPE_MAP.html +0 -289
  380. package/docs/variables/defaultGlobalConfig.html +0 -279
  381. package/docs/variables/itemLabelPluginServerParams.html +0 -286
  382. package/docs/variables/modelItemLabelPluginServerParams.html +0 -286
  383. package/docs/variables/modelRoomLabelPluginServerParams.html +0 -286
  384. package/libs/shared-utils/five/transformPosition.d.ts +0 -2
  385. package/libs/shared-utils/five/transformPosition.js +0 -10
@@ -1,30 +1,30 @@
1
- var B = Object.defineProperty, E = Object.defineProperties;
2
- var $ = Object.getOwnPropertyDescriptors;
3
- var C = Object.getOwnPropertySymbols;
4
- var w = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
5
- var k = (m, e, i) => e in m ? B(m, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : m[e] = i, g = (m, e) => {
1
+ var E = Object.defineProperty, $ = Object.defineProperties;
2
+ var L = Object.getOwnPropertyDescriptors;
3
+ var k = Object.getOwnPropertySymbols;
4
+ var _ = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
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
- w.call(e, i) && k(m, i, e[i]);
8
- if (C)
9
- for (var i of C(e))
10
- O.call(e, i) && k(m, i, e[i]);
11
- return m;
12
- }, M = (m, e) => E(m, $(e));
7
+ _.call(e, i) && M(p, i, e[i]);
8
+ if (k)
9
+ for (var i of k(e))
10
+ z.call(e, i) && M(p, i, e[i]);
11
+ return p;
12
+ }, D = (p, e) => $(p, L(e));
13
13
  import * as j from "three";
14
- import { is3DTag as L, isMediaModelTag as D } from "../utils/tag/tagCheck.js";
15
- import { getTagCenterPosition as x, getTagPosition as z } from "../utils/tagPosition.js";
16
- import { checkRange as p } from "../utils/checkRange.js";
17
- import { isPanoramaLike as b, isModelLike as Z } from "../../shared-utils/five/mode.js";
14
+ import { is3DTag as O, isMediaModelTag as R } from "../utils/tag/tagCheck.js";
15
+ import { getTagCenterPosition as I, getTagPosition as Z } from "../utils/tagPosition.js";
16
+ import { checkRange as h } from "../utils/checkRange.js";
17
+ import { isPanoramaLike as b, isModelLike as H } from "../../shared-utils/five/mode.js";
18
18
  import "hammerjs";
19
19
  import "@realsee/five";
20
20
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
21
21
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
22
22
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
23
- import { notNil as H } from "../../shared-utils/isNil.js";
24
- import { TagUtil as N } from "./TagUtil.js";
25
- import { getFloorIndex as q } from "../../shared-utils/five/getFloorIndex.js";
26
- import { safeObj as R } from "../../shared-utils/safeObj.js";
27
- import { toArray as W } from "../../shared-utils/util.js";
23
+ import { notNil as N } from "../../shared-utils/isNil.js";
24
+ import { TagUtil as q } from "./TagUtil.js";
25
+ import { getFloorIndex as W } from "../../shared-utils/five/getFloorIndex.js";
26
+ import { safeObj as U } from "../../shared-utils/safeObj.js";
27
+ import { toArray as X } from "../../shared-utils/util.js";
28
28
  import "../../shared-utils/three/centerPoint.js";
29
29
  import "../../shared-utils/positionToVector3.js";
30
30
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
@@ -63,9 +63,8 @@ import "../../shared-utils/five/calculateThreeMouse.js";
63
63
  import "../utils/tag/adaptConfig.js";
64
64
  import "../../shared-utils/typescript/entries.js";
65
65
  import "../../shared-utils/url/getUrl.js";
66
- import "../../shared-utils/five/transformPosition.js";
67
- const I = new j.Raycaster();
68
- class Je extends N {
66
+ const T = new j.Raycaster();
67
+ class Je extends q {
69
68
  constructor(e) {
70
69
  super(e);
71
70
  }
@@ -73,12 +72,12 @@ class Je extends N {
73
72
  * @description: 获取是否可见
74
73
  */
75
74
  getVisible(e, i) {
76
- const l = g(g({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = l, f = b(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
77
- if ((f == null ? void 0 : f.visible) !== void 0)
78
- return f.visible;
75
+ const l = y(y({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = l, d = b(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
76
+ if ((d == null ? void 0 : d.visible) !== void 0)
77
+ return d.visible;
79
78
  {
80
- const s = [], u = (() => {
81
- var r, c, v;
79
+ const s = [], c = (() => {
80
+ var r, f, u;
82
81
  const o = (r = e.config.visibleConfig) != null ? r : {};
83
82
  if (typeof o == "function")
84
83
  return { value: o(this.five, { tag: e, distance: this.getDistance(e) }), checkedList: s, reason: "config function result" };
@@ -88,8 +87,8 @@ class Je extends N {
88
87
  return { value: !0, checkedList: s, reason: "config.keep is visible" };
89
88
  if (o.visibleFiveMode !== void 0) {
90
89
  const a = typeof o.visibleFiveMode == "function" ? o.visibleFiveMode(e) : o.visibleFiveMode;
91
- let d = !1;
92
- if (Array.isArray(a) ? d = a.includes(n) : a === "ModelLike" ? d = Z(n) : a === "PanoramaLike" ? d = !b(n) : a === "all" ? d = !0 : typeof a == "string" && (d = a === n), d === !1)
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)
93
92
  return {
94
93
  value: !1,
95
94
  checkedList: s,
@@ -107,26 +106,26 @@ class Je extends N {
107
106
  checkedList: s,
108
107
  reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${o.visiblePanoIndex}`
109
108
  };
110
- if (o.visiblePanoIndex === "current" && t !== ((c = e.fiveState) == null ? void 0 : c.panoIndex))
109
+ if (o.visiblePanoIndex === "current" && t !== ((f = e.fiveState) == null ? void 0 : f.panoIndex))
111
110
  return {
112
111
  value: !1,
113
112
  checkedList: s,
114
- reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(v = e.fiveState) == null ? void 0 : v.panoIndex}`
113
+ reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(u = e.fiveState) == null ? void 0 : u.panoIndex}`
115
114
  };
116
115
  }
117
- if (o.visibleDistance !== void 0 && (s.push("visibleDistance"), o.visibleDistance !== "unLimited")) {
116
+ if (b(n) && o.visibleDistance !== void 0 && (s.push("visibleDistance"), o.visibleDistance !== "unLimited")) {
118
117
  const a = this.getDistance(e);
119
- if (p(a, o.visibleDistance) === !1)
118
+ if (h(a, o.visibleDistance) === !1)
120
119
  return {
121
120
  value: !1,
122
121
  checkedList: s,
123
122
  reason: `distance is not in visibleDistance. distance: ${a}, visibleDistance: ${o.visibleDistance}`
124
123
  };
125
124
  }
126
- if (b(n) && o.angleRange && L(e)) {
125
+ if (b(n) && o.angleRange && O(e)) {
127
126
  s.push("angleRange");
128
127
  const a = this.getAngle(e);
129
- if (p(a, o.angleRange) === !1)
128
+ if (h(a, o.angleRange) === !1)
130
129
  return { value: !1, checkedList: s, reason: `angle is not in angleRange. angle: ${a}, angleRange: ${o.angleRange}` };
131
130
  }
132
131
  if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
@@ -146,7 +145,7 @@ class Je extends N {
146
145
  reason: "all check passed"
147
146
  };
148
147
  })();
149
- return f && (f.visible = u.value, f.__debug_visible_reason__ = u), u.value;
148
+ return d && (d.visible = c.value, d.__debug_visible_reason__ = c), c.value;
150
149
  }
151
150
  }
152
151
  /**
@@ -162,17 +161,17 @@ class Je extends N {
162
161
  const n = this.getTagConfig(e).unfoldedConfig;
163
162
  if (!n)
164
163
  return;
165
- const f = (() => {
164
+ const d = (() => {
166
165
  if (typeof n == "function")
167
166
  return n(this.five, { tag: e, distance: this.getDistance(e) });
168
167
  if (n.keep === "folded")
169
168
  return !1;
170
169
  if (n.keep === "unfolded")
171
170
  return !0;
172
- if (n.unfoldDistance && p(this.getDistance(e), n.unfoldDistance) === !1)
171
+ if (n.unfoldDistance && h(this.getDistance(e), n.unfoldDistance) === !1)
173
172
  return !1;
174
173
  })();
175
- t.unfolded = f;
174
+ t.unfolded = d;
176
175
  const s = this.getUnfoldedByCamera(e);
177
176
  return s !== void 0 ? s : t.unfolded;
178
177
  }
@@ -194,25 +193,25 @@ class Je extends N {
194
193
  if (t.autoUnfold === void 0 || t.autoUnfold === !1 || t.autoUnfold.enable === !1 || !t.autoUnfold.strategy)
195
194
  return;
196
195
  if (t.autoUnfold.strategy === "ScreenPostion") {
197
- const f = this.getTagProject(e);
198
- if (f && p(f.x, t.autoUnfold.autoUnfoldProjectX) === !1)
196
+ const d = this.getTagProject(e);
197
+ if (d && h(d.x, t.autoUnfold.autoUnfoldProjectX) === !1)
199
198
  return !1;
200
199
  }
201
200
  if (t.autoUnfold.strategy === "MinimumDistance") {
202
- const u = this.filterPointTag.filter((r) => this.getCurrentVisibleState(r)).filter((r) => {
203
- const c = this.getTagProject(r);
204
- if (!c)
201
+ const c = this.filterPointTag.filter((r) => this.getCurrentVisibleState(r)).filter((r) => {
202
+ const f = this.getTagProject(r);
203
+ if (!f)
205
204
  return !1;
206
- const { x: v, y: a, z: d } = c;
207
- return !(Math.abs(d) > 1 || Math.abs(v) > 1 || Math.abs(a) > 1);
208
- }).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: c }) => {
209
- var v, a;
210
- return !(typeof c == "function" || c.keep || c.autoUnfold === !1 || ((v = c.autoUnfold) == null ? void 0 : v.enable) === !1 || ((a = c.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
211
- }).map((r) => M(g({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: c }) => {
212
- const v = c.autoUnfold.distance;
213
- return !(v && p(r, v) === !1);
214
- }).sort((r, c) => r.distance - c.distance).findIndex((r) => r.id === e.id);
215
- if (u === -1 || u <= ((n = t.autoUnfold.maxNumber) != null ? n : 1) - 1 === !1)
205
+ const { x: u, y: a, z: v } = f;
206
+ return !(Math.abs(v) > 1 || Math.abs(u) > 1 || Math.abs(a) > 1);
207
+ }).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: f }) => {
208
+ var u, a;
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");
210
+ }).map((r) => D(y({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: f }) => {
211
+ const u = f.autoUnfold.distance;
212
+ return !(u && h(r, u) === !1);
213
+ }).sort((r, f) => r.distance - f.distance).findIndex((r) => r.id === e.id);
214
+ if (c === -1 || c <= ((n = t.autoUnfold.maxNumber) != null ? n : 1) - 1 === !1)
216
215
  return !1;
217
216
  }
218
217
  return !0;
@@ -234,17 +233,21 @@ class Je extends N {
234
233
  setPointTagPosition() {
235
234
  const e = this.filterPointTag;
236
235
  e.length !== 0 && e.forEach((i) => {
237
- var f;
238
- const l = this.getCurrentVisibleState(i), t = (f = i.__Object__) != null ? f : {
239
- timeoutId: void 0,
240
- inAnimation: !0
241
- };
242
- if (i.__Object__ = t, !l && i.screenPosition ? (t.inAnimation = !0, t.timeoutId = setTimeout(() => {
243
- this.getCurrentVisibleState(i) || (t.inAnimation = !1, i.screenPosition = null);
244
- }, 1e3)) : t.timeoutId && (t.inAnimation = !1, clearTimeout(t.timeoutId)), !l && !t.inAnimation)
236
+ const l = this.getCurrentVisibleState(i);
237
+ let t;
238
+ if (!l) {
239
+ t = setTimeout(() => {
240
+ l || (i.screenPosition = null);
241
+ }, 1e3);
245
242
  return;
243
+ }
244
+ clearTimeout(t);
246
245
  const n = this.getTagProject(i);
247
- n ? i.screenPosition = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 } : i.screenPosition = null;
246
+ if (!n) {
247
+ i.screenPosition = null;
248
+ return;
249
+ }
250
+ i.screenPosition = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 };
248
251
  });
249
252
  }
250
253
  setVisible(e) {
@@ -266,7 +269,7 @@ class Je extends N {
266
269
  * @description 一个点的标签
267
270
  */
268
271
  getTagProject(e) {
269
- const i = x(e);
272
+ const i = I(e);
270
273
  if (!i)
271
274
  return;
272
275
  const { x: l, y: t, z: n } = i.project(this.five.camera);
@@ -275,36 +278,36 @@ class Je extends N {
275
278
  }
276
279
  /** 通过射线检测标签可用性 */
277
280
  getTagEnableByIntersect(e, i) {
278
- var o, r, c, v, a;
279
- const l = R(R((o = this.getTagConfig(e).visibleConfig) != null ? o : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, n = b(this.five.getCurrentState().mode) ? this.getObserverPosition(t) : 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;
280
283
  if (n === void 0)
281
284
  return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
282
- const f = W(
285
+ const d = X(
283
286
  (() => {
284
- var h;
285
- const d = (h = l.checkPoints) != null ? h : "center";
286
- return d === "center" ? x(e) : d === "corner" ? z(e) : Array.isArray(d) ? d : [];
287
+ var g;
288
+ const m = (g = l.checkPoints) != null ? g : "center";
289
+ return m === "center" ? I(e) : m === "corner" ? Z(e) : Array.isArray(m) ? m : [];
287
290
  })()
288
291
  );
289
- let s = 0, u = 0;
290
- for (const d of f) {
291
- const h = new j.Vector3().subVectors(d, n).normalize();
292
- I.set(n, h);
293
- const U = n.distanceTo(d), [y] = this.five.model.intersectRaycaster(I), P = (() => {
294
- if (!D(e))
292
+ let s = 0, c = 0;
293
+ for (const m of d) {
294
+ const g = new j.Vector3().subVectors(m, n).normalize();
295
+ T.set(n, g);
296
+ const F = n.distanceTo(m), [P] = this.five.model.intersectRaycaster(T), x = (() => {
297
+ if (!R(e))
295
298
  return;
296
- const A = this.tags.filter(D).map((V) => {
297
- var T;
298
- return (T = V.model) == null ? void 0 : T.object;
299
- }).filter(H), [S] = I.intersectObjects(A, !0);
300
- return S;
301
- })(), _ = (r = l.distanceAccuracy) != null ? r : 0.01;
302
- Math.min((c = y == null ? void 0 : y.distance) != null ? c : 1 / 0, (v = P == null ? void 0 : P.distance) != null ? v : 1 / 0) + _ >= U ? s++ : u++;
303
- const F = (a = l.needPassed) != null ? a : 1;
304
- if (s >= F)
299
+ const B = this.tags.filter(R).map((A) => {
300
+ var C;
301
+ return (C = A.model) == null ? void 0 : C.object;
302
+ }).filter(N), [w] = T.intersectObjects(B, !0);
303
+ return w;
304
+ })(), S = (f = l.distanceAccuracy) != null ? f : 0.01;
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)
305
308
  return { value: !0 };
306
309
  }
307
- return u === 0 ? { value: !0 } : {
310
+ return c === 0 ? { value: !0 } : {
308
311
  value: !1,
309
312
  reason: {
310
313
  type: "intersectRaycaster check failed",
@@ -315,10 +318,13 @@ class Je extends N {
315
318
  }
316
319
  /** 检测是否匹配当前楼层 */
317
320
  getVisibleByFloorIndex(e) {
318
- var n, f, s, u, o, r, c;
321
+ var n, d, s, c, o, r, f;
319
322
  let i = 0;
320
323
  const l = (n = e.fiveState) == null ? void 0 : n.panoIndex;
321
- l !== void 0 ? i = (f = this.work.observers[l]) == null ? void 0 : f.floorIndex : i = q(this.work, (c = (r = (u = (s = e.model) == null ? void 0 : s.object) == null ? void 0 : u.position) != null ? r : (o = e.mediaPlane) == null ? void 0 : o.position) != null ? c : x(e));
324
+ l !== void 0 ? i = (d = this.five.work.observers[l]) == null ? void 0 : d.floorIndex : i = W(
325
+ this.five.work.observers,
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)
327
+ );
322
328
  const t = this.five.model.shownFloor;
323
329
  return t === null || t === i;
324
330
  }
@@ -1,16 +1,16 @@
1
- var E = Object.defineProperty;
2
- var R = Object.getOwnPropertySymbols;
3
- var V = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
4
- var S = (c, l, t) => l in c ? E(c, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[l] = t, j = (c, l) => {
5
- for (var t in l || (l = {}))
6
- V.call(l, t) && S(c, t, l[t]);
7
- if (R)
8
- for (var t of R(l))
9
- A.call(l, t) && S(c, t, l[t]);
10
- return c;
1
+ var V = Object.defineProperty;
2
+ var j = Object.getOwnPropertySymbols;
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
+ if (j)
8
+ for (var t of j(p))
9
+ x.call(p, t) && y(d, t, p[t]);
10
+ return d;
11
11
  };
12
- var P = (c, l, t) => (S(c, typeof l != "symbol" ? l + "" : l, t), t);
13
- var C = (c, l, 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,18 +24,18 @@ var C = (c, l, 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, l)).next());
27
+ a((t = t.apply(d, p)).next());
28
28
  });
29
- import { TagComputer as x } from "./TagComputer.js";
30
- import { Group as y, Quaternion as O, Vector3 as v, Matrix4 as T } from "three";
31
- import I from "../Components/TagContainer.js";
32
- import G from "../Components/Tag/index.js";
33
- import { CSS3DRenderPlugin as F } from "../../CSS3DRenderPlugin/index.js";
34
- import { loadGLTF as L } from "../../shared-utils/three/GLTFLoader.js";
35
- import { isMediaModelTag as D, isStickModelTag as W } from "../utils/tag/tagCheck.js";
36
- import { VideoPlane as w, ImagePlane as k } from "../utils/model/mediaPlane.js";
37
- import { centerPoint as $ } from "../../shared-utils/three/centerPoint.js";
38
- import { arrayPositionToVector3 as g } from "../../shared-utils/positionToVector3.js";
29
+ import { TagComputer as O } from "./TagComputer.js";
30
+ import { Group as R, Quaternion as I, Vector3 as D, Matrix4 as g } from "three";
31
+ import G from "../Components/TagContainer.js";
32
+ import F from "../Components/Tag/index.js";
33
+ import { CSS3DRenderPlugin as L } from "../../CSS3DRenderPlugin/index.js";
34
+ import { loadGLTF as W } from "../../shared-utils/three/GLTFLoader.js";
35
+ import { isMediaModelTag as S, isStickModelTag as $ } from "../utils/tag/tagCheck.js";
36
+ import { VideoPlane as k, ImagePlane as E } from "../utils/model/mediaPlane.js";
37
+ import { centerPoint as q } from "../../shared-utils/three/centerPoint.js";
38
+ import { arrayPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
39
39
  import "../utils/tagPosition.js";
40
40
  import "../utils/checkRange.js";
41
41
  import "../../shared-utils/five/mode.js";
@@ -74,7 +74,6 @@ import "../../shared-utils/five/calculateThreeMouse.js";
74
74
  import "../utils/tag/adaptConfig.js";
75
75
  import "../../shared-utils/typescript/entries.js";
76
76
  import "../../shared-utils/url/getUrl.js";
77
- import "../../shared-utils/five/transformPosition.js";
78
77
  import "../../shared-utils/five/getFloorIndex.js";
79
78
  import "../../shared-utils/safeObj.js";
80
79
  import "../../shared-utils/three/loadTexture.js";
@@ -158,14 +157,14 @@ import "../Components/Tag/CustomTag.js";
158
157
  import "../../CSS3DRenderPlugin/Controller.js";
159
158
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
160
159
  import "@realsee/five/gltf-loader";
161
- const q = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
162
- class ui extends x {
160
+ const B = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map();
161
+ class ui extends O {
163
162
  constructor(t) {
164
163
  super(t);
165
- P(this, "group", new y());
164
+ P(this, "group", new R());
166
165
  P(this, "renderMap", /* @__PURE__ */ new Map());
167
- P(this, "imagePlaneGroup", new y());
168
- P(this, "gltfObjectGroup", new y());
166
+ P(this, "imagePlaneGroup", new R());
167
+ P(this, "gltfObjectGroup", new R());
169
168
  /** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
170
169
  P(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
171
170
  /** 临时状态 */
@@ -173,23 +172,23 @@ class ui extends x {
173
172
  /** 点标签 */
174
173
  P(this, "TagContainerSvelte");
175
174
  /** 加载外部模型 */
176
- P(this, "loadModel", (t) => C(this, null, function* () {
175
+ P(this, "loadModel", (t) => M(this, null, function* () {
177
176
  var a;
178
177
  const e = t.data.modelUrl;
179
178
  if (!e)
180
179
  return;
181
180
  t.loading = !0;
182
- const o = L(e).then((r) => {
183
- var m, h;
181
+ const o = W(e).then((r) => {
182
+ var m, c;
184
183
  const n = Object.assign(r.scene, {
185
184
  customID: t.id,
186
185
  isTagModel: !0,
187
186
  removeEventListener: t.config.clickable === !1 ? () => {
188
- } : this.addObjectClickHandler(t, r.scene, (u) => {
189
- 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 });
190
189
  })
191
190
  });
192
- return n.visible = this.getCurrentVisibleState(t), new T().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (h = (m = t.config) == null ? void 0 : m.modelConfig) != null && h.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;
193
192
  });
194
193
  t.model = { promise: o };
195
194
  const i = yield o;
@@ -197,13 +196,13 @@ class ui extends x {
197
196
  return;
198
197
  t.model.object = i;
199
198
  const s = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
200
- if (s && (this.gltfObjectGroup.remove(s), s.removeEventListener()), this.updateRender3DDomTag(), D(t)) {
199
+ if (s && (this.gltfObjectGroup.remove(s), s.removeEventListener()), this.updateRender3DDomTag(), S(t)) {
201
200
  if (this.getRenderType(t) === "Mesh" && !t.mediaPlane) {
202
- const r = t.data.mediaPosition.map(g);
203
- t.mediaPlane = new k(t.data.mediaData[0].url, t.data.mediaPosition.map(g), {
201
+ const r = t.data.mediaPosition.map(C);
202
+ t.mediaPlane = new E(t.data.mediaData[0].url, t.data.mediaPosition.map(C), {
204
203
  objectFit: t.data.objectFit
205
204
  });
206
- const n = new v().addVectors(r[0], r[2]).divideScalar(2);
205
+ const n = new D().addVectors(r[0], r[2]).divideScalar(2);
207
206
  t.mediaPlane.position.copy(n), i.add(t.mediaPlane);
208
207
  }
209
208
  this.getRenderType(t) !== "Mesh" && (i.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, i), i.updateTagCss3DObjectMatrix());
@@ -240,30 +239,30 @@ class ui extends x {
240
239
  var o, i;
241
240
  return ((i = (o = e.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Video";
242
241
  }).forEach((e) => {
243
- var m, h, u;
242
+ var m, c, h, u, b;
244
243
  const o = e.data.mediaData[0];
245
244
  if (!o)
246
245
  return;
247
246
  const { url: i } = o;
248
247
  if (!i)
249
248
  return;
250
- e.mediaPlane && !((h = (m = e.state) == null ? void 0 : m.visible) == null || h) && e.mediaPlane instanceof w && e.mediaPlane.pause();
251
- const s = e.position.map(g), a = this.getCurrentVisibleState(e), r = (() => !!(e.mediaPlane && !a))(), n = (() => !!(!e.mediaPlane && a))(), p = (() => !!(e.mediaPlane && e.mediaPlane.src !== i))();
252
- if ((r || p) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), n || p) {
253
- const d = new w(i, s, {
249
+ e.mediaPlane && !((c = (m = e.state) == null ? void 0 : m.visible) == null || c) && e.mediaPlane instanceof k && e.mediaPlane.pause();
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))();
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, {
254
253
  videoCoverSrc: o.videoCoverUrl,
255
254
  playButton: e.data.playIcon,
256
- paused: !((u = e.data.autoplayConfig) != null && u.autoplayVideo),
255
+ paused: !((b = e.data.autoplayConfig) != null && b.autoplayVideo),
257
256
  objectFit: e.data.objectFit,
258
- videoTextureMap: q,
259
- ImageTextureMap: B,
257
+ videoTextureMap: B,
258
+ ImageTextureMap: N,
260
259
  domEvents: this.domEvents
261
260
  });
262
- d.onVideoReady = (f) => {
263
- f.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: d.videoInstance }));
261
+ f.onVideoReady = (T) => {
262
+ T.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: f.videoInstance }));
264
263
  };
265
- const b = (f) => (this.five.on("renderFrame", f), () => this.five.off("renderFrame", f));
266
- d.initialRenderHooks(b), e.mediaPlane = d, this.imagePlaneGroup.add(e.mediaPlane);
264
+ const v = (T) => (this.five.on("renderFrame", T), () => this.five.off("renderFrame", T));
265
+ f.initialRenderHooks(v), e.mediaPlane = f, this.imagePlaneGroup.add(e.mediaPlane);
267
266
  }
268
267
  });
269
268
  }
@@ -275,12 +274,13 @@ class ui extends x {
275
274
  var o, i;
276
275
  return ((i = (o = e.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Image";
277
276
  }).forEach((e) => {
277
+ var l, m;
278
278
  const { url: o } = e.data.mediaData[0];
279
279
  if (!o)
280
280
  return;
281
- const i = e.position.map(g), s = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !s))(), r = (() => !!(!e.mediaPlane && s))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== o))();
282
- (a || n) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), (r || n) && (e.mediaPlane = new k(o, i, { objectFit: e.data.objectFit }), e.config.clickable !== !1 && this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (p) => {
283
- this.hooks.emit("click", { tag: e, target: "TagContent", event: p.origDomEvent });
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))();
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 });
284
284
  }), this.imagePlaneGroup.add(e.mediaPlane));
285
285
  });
286
286
  }
@@ -291,16 +291,16 @@ class ui extends x {
291
291
  this.filterCSS3DTag.forEach((e) => {
292
292
  var o, i, s;
293
293
  if (e.tag3DContentSvelte) {
294
- const { svelteApp: a, css3DInstance: r, initialNormal: n, currentNormal: p } = e.tag3DContentSvelte;
295
- if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(p)) {
296
- const m = new O().setFromUnitVectors(n, p);
294
+ const { svelteApp: a, css3DInstance: r, initialNormal: n, currentNormal: l } = e.tag3DContentSvelte;
295
+ if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(l)) {
296
+ const m = new I().setFromUnitVectors(n, l);
297
297
  r.css3DObject.setRotationFromQuaternion(m);
298
298
  }
299
299
  return;
300
300
  } else {
301
- if (D(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled)
301
+ if (S(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled)
302
302
  return;
303
- if (this.css3DRenderPlugin || (this.css3DRenderPlugin = F(this.five)), e.stickType === "3DPoint" && !e.normal)
303
+ if (this.css3DRenderPlugin || (this.css3DRenderPlugin = L(this.five)), e.stickType === "3DPoint" && !e.normal)
304
304
  return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
305
305
  const a = this.getPositions(e);
306
306
  if (!a)
@@ -308,25 +308,25 @@ class ui extends x {
308
308
  const r = this.getTagNormal(e);
309
309
  if (!r)
310
310
  return;
311
- const n = this.getTagConfig(e), p = j({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
312
- if (this.getRenderType(e) === "BehindDom" || p.mode === "behind") {
313
- p.mode = "behind", p.container = document.createElement("div");
314
- const u = "black";
315
- p.container.style.backgroundColor = u, p.container.style.border = `3px solid ${u}`, this.css3DRenderPlugin.hooks.on("render", () => {
316
- var d;
311
+ const n = this.getTagConfig(e), l = w({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
312
+ if (this.getRenderType(e) === "BehindDom" || l.mode === "behind") {
313
+ l.mode = "behind", l.container = document.createElement("div");
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;
317
317
  if (m.css3DObject.opacityMesh && n.clickable !== !1) {
318
318
  const b = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (f) => {
319
319
  this.hooks.emit("click", { event: f, target: "TagContent", tag: e });
320
320
  });
321
- (d = this.store.css3DRenderDisposer.get(e.id)) == null || d.push(b);
321
+ (u = this.store.css3DRenderDisposer.get(e.id)) == null || u.push(b);
322
322
  }
323
323
  });
324
324
  }
325
- const m = this.css3DRenderPlugin.create3DDomContainer(a, p);
325
+ const m = this.css3DRenderPlugin.create3DDomContainer(a, l);
326
326
  if (!m)
327
327
  return;
328
328
  this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
329
- const h = new G({
329
+ const c = new F({
330
330
  target: m.container,
331
331
  props: {
332
332
  tag: e,
@@ -338,15 +338,15 @@ class ui extends x {
338
338
  }
339
339
  });
340
340
  e.tag3DContentSvelte = {
341
- svelteApp: h,
341
+ svelteApp: c,
342
342
  domContainer: m,
343
343
  css3DInstance: m,
344
344
  initialNormal: r,
345
345
  currentNormal: r,
346
346
  dispose: () => {
347
- h.$destroy(), m.dispose();
347
+ c.$destroy(), m.dispose();
348
348
  }
349
- }, D(e) && ((s = e.model) != null && s.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
349
+ }, S(e) && ((s = e.model) != null && s.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
350
350
  }
351
351
  }), this.clearUnusedPanelTag();
352
352
  }
@@ -377,23 +377,23 @@ class ui extends x {
377
377
  * @param model 模型
378
378
  */
379
379
  updateTagCss3DObjectMatrix(t, e) {
380
- var b, f, M;
381
- const o = (f = (b = t.config.tag3DConfig) == null ? void 0 : b.ratio) != null ? f : 216e-5, i = (M = t.tag3DContentSvelte) == null ? void 0 : M.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;
382
382
  if (!i)
383
383
  return;
384
- const s = D(t) ? t.data.mediaPosition : t.position;
384
+ const s = S(t) ? t.data.mediaPosition : t.position;
385
385
  if (!s || s.length !== 4 || !Array.isArray(s[0]) || !Array.isArray(s[2]))
386
386
  return;
387
387
  e.updateWorldMatrix(!1, !1);
388
- const a = e.matrixWorld, r = new v().fromArray(s[0]), n = new v().fromArray(s[2]), p = $(r, n).add(new v(0, 0, 5e-4)), m = new T().setPosition(p), h = new T().makeScale(o, o, o), u = new T().multiply(a).multiply(m).multiply(h);
389
- u.decompose(i.position, i.quaternion, i.scale);
390
- const d = i.opacityMesh;
391
- d && u.decompose(d.position, d.quaternion, d.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);
392
392
  }
393
393
  /** 添加模型标签 */
394
394
  addMediaModelTag(t) {
395
- return C(this, null, function* () {
396
- const e = t.filter(W).map((o) => this.loadModel(o));
395
+ return M(this, null, function* () {
396
+ const e = t.filter($).map((o) => this.loadModel(o));
397
397
  yield Promise.all(e), this.setVisible(), this.updateRenderAllTags();
398
398
  });
399
399
  }
@@ -449,7 +449,7 @@ class ui extends x {
449
449
  const s = (o = this.five.getElement()) == null ? void 0 : o.parentElement;
450
450
  if (!s)
451
451
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
452
- this.TagContainerSvelte = new I({
452
+ this.TagContainerSvelte = new G({
453
453
  target: s,
454
454
  props: {
455
455
  hooks: this.hooks,