@realsee/dnalogel 3.42.0-alpha-tag.44 → 3.42.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 (384) hide show
  1. package/CHANGELOG.md +12 -7
  2. package/dist/ModelMakerPlugin/Controller.d.ts +1 -2
  3. package/dist/Object3DHelperPlugin/Controller.d.ts +61 -0
  4. package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +14 -1
  5. package/dist/PanoTagPlugin/controller/Tag/PointTag.d.ts +4 -0
  6. package/dist/PanoTagPlugin/controller/index.d.ts +4 -4
  7. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +5 -0
  8. package/dist/index.cjs.js +31 -31
  9. package/dist/index.js +1205 -1185
  10. package/dist/index.umd.js +38 -38
  11. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +1 -1
  12. package/dist/shared-utils/Object3DHelper/typings/index.d.ts +7 -1
  13. package/libs/ModelMakerPlugin/Controller.d.ts +1 -2
  14. package/libs/ModelMakerPlugin/Controller.js +1 -1
  15. package/libs/Object3DHelperPlugin/Controller.d.ts +61 -0
  16. package/libs/Object3DHelperPlugin/Controller.js +3 -3
  17. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +39 -19
  18. package/libs/PanoTagPlugin/Components/Tag/index.js +138 -133
  19. package/libs/PanoTagPlugin/Components/TagItem.js +194 -196
  20. package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +14 -1
  21. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +251 -236
  22. package/libs/PanoTagPlugin/controller/Tag/PointTag.d.ts +4 -0
  23. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +27 -23
  24. package/libs/PanoTagPlugin/controller/index.d.ts +4 -4
  25. package/libs/PanoTagPlugin/controller/index.js +19 -17
  26. package/libs/PanoTagPlugin/tag.config.js +2 -6
  27. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +5 -0
  28. package/libs/PanoTagPlugin/utils/tag/format.js +3 -3
  29. package/libs/PipelinePlugin/utils/formatData.js +16 -16
  30. package/libs/base/BasePlugin.js +1 -1
  31. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +1 -1
  32. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +22 -21
  33. package/libs/shared-utils/Object3DHelper/typings/index.d.ts +7 -1
  34. package/libs/shared-utils/logger.js +1 -1
  35. package/package.json +3 -2
  36. package/README.md +0 -116
  37. package/docs/.nojekyll +0 -1
  38. package/docs/assets/custom.css +0 -0
  39. package/docs/assets/highlight.css +0 -127
  40. package/docs/assets/main.js +0 -58
  41. package/docs/assets/search.js +0 -1
  42. package/docs/assets/style.css +0 -1367
  43. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -731
  44. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -694
  45. package/docs/classes/CSS3DRender.html +0 -778
  46. package/docs/classes/GuideLineItem.GuideLineItem.html +0 -481
  47. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -894
  48. package/docs/classes/Magnifier.html +0 -485
  49. package/docs/classes/ModelRoomLabelController.html +0 -403
  50. package/docs/classes/MoveController.html +0 -681
  51. package/docs/classes/Object3DHelperController.html +0 -645
  52. package/docs/classes/PaintBrush.html +0 -507
  53. package/docs/classes/PanoMeasurePluginLine.html +0 -527
  54. package/docs/classes/PanoMeasurePluginModel.html +0 -576
  55. package/docs/classes/PanoMeasurePluginPoint.html +0 -367
  56. package/docs/classes/PanoMeasurePluginPolyline.html +0 -572
  57. package/docs/classes/PanoTagPluginController.html +0 -1132
  58. package/docs/classes/Util.BetterTween.html +0 -421
  59. package/docs/classes/Util.Interval.html +0 -437
  60. package/docs/classes/Util.LineSegments.html +0 -389
  61. package/docs/classes/Util.Magnifier.html +0 -508
  62. package/docs/classes/Util.Object3D.html +0 -411
  63. package/docs/classes/Util.PointDomHelper.html +0 -412
  64. package/docs/classes/Util.PointHelper.html +0 -403
  65. package/docs/classes/Util.PointSelectorHelper.html +0 -459
  66. package/docs/classes/Util.Rectangle.html +0 -460
  67. package/docs/classes/WalkController.html +0 -700
  68. package/docs/enums/CameraMovementEffect.html +0 -315
  69. package/docs/enums/ContentType.html +0 -461
  70. package/docs/enums/DIRECTION.html +0 -325
  71. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -325
  72. package/docs/enums/DimensionType.html +0 -315
  73. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -318
  74. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -325
  75. package/docs/enums/PaintBrushTypeEnum.html +0 -318
  76. package/docs/enums/PointType.html +0 -315
  77. package/docs/enums/Rotation.html +0 -322
  78. package/docs/functions/AreaMakerPlugin.html +0 -295
  79. package/docs/functions/CSS3DRenderPlugin.html +0 -293
  80. package/docs/functions/CameraMovementPlugin.html +0 -298
  81. package/docs/functions/CruisePlugin.html +0 -295
  82. package/docs/functions/CurrentPanoImagePlugin.html +0 -295
  83. package/docs/functions/GuideLinePlugin.html +0 -295
  84. package/docs/functions/ItemLabelPlugin.html +0 -295
  85. package/docs/functions/MapviewFloorplanPlugin.html +0 -295
  86. package/docs/functions/ModelChassisCompassPlugin.html +0 -298
  87. package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -298
  88. package/docs/functions/ModelFloorplanPlugin.html +0 -295
  89. package/docs/functions/ModelItemLabelPlugin.html +0 -295
  90. package/docs/functions/ModelRoomLabelPlugin.html +0 -293
  91. package/docs/functions/ModelTVVideoPlugin.html +0 -295
  92. package/docs/functions/ModelViewPlugin.html +0 -298
  93. package/docs/functions/MovePlugin.html +0 -295
  94. package/docs/functions/Object3DHelperPlugin.html +0 -293
  95. package/docs/functions/PanoCompassPlugin.html +0 -295
  96. package/docs/functions/PanoCursorRaycasterPlugin.html +0 -299
  97. package/docs/functions/PanoDoorLabelPlugin.html +0 -295
  98. package/docs/functions/PanoFloorplanRadarPlugin.html +0 -295
  99. package/docs/functions/PanoMeasurePlugin.html +0 -295
  100. package/docs/functions/PanoRulerPlugin.html +0 -298
  101. package/docs/functions/PanoRulerProPlugin.html +0 -298
  102. package/docs/functions/PanoSpatialTagPlugin.html +0 -298
  103. package/docs/functions/PanoTagPlugin.html +0 -300
  104. package/docs/functions/PanoVideoPlugin.html +0 -304
  105. package/docs/functions/PipelinePlugin.html +0 -293
  106. package/docs/functions/TopviewFloorplanPlugin.html +0 -295
  107. package/docs/functions/Util.absoluteUrl.html +0 -331
  108. package/docs/functions/Util.checkFiveModelLoaded.html +0 -334
  109. package/docs/functions/Util.equal.html +0 -343
  110. package/docs/functions/Util.getCoordsFromClient.html +0 -333
  111. package/docs/functions/Util.getCoordsFromElement.html +0 -333
  112. package/docs/functions/Util.getFrameTime.html +0 -325
  113. package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -333
  114. package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -333
  115. package/docs/functions/Util.isAbsoluteURL.html +0 -326
  116. package/docs/functions/Util.isModelLike.html +0 -326
  117. package/docs/functions/Util.isNil.html +0 -334
  118. package/docs/functions/Util.isPanoramaLike.html +0 -326
  119. package/docs/functions/Util.nextFrame.html +0 -339
  120. package/docs/functions/Util.notNil.html +0 -334
  121. package/docs/functions/Util.requestAnimationFrameInterval.html +0 -355
  122. package/docs/functions/Util.tweenProgress.html +0 -328
  123. package/docs/functions/Util.uuid.html +0 -324
  124. package/docs/functions/pluginFlag.html +0 -293
  125. package/docs/index.html +0 -358
  126. package/docs/interfaces/AddTagConfig.html +0 -308
  127. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -335
  128. package/docs/interfaces/AreaMakerPluginType.Config.html +0 -340
  129. package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -626
  130. package/docs/interfaces/AreaMakerPluginType.Params.html +0 -339
  131. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -397
  132. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -382
  133. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -339
  134. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -332
  135. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -331
  136. package/docs/interfaces/AreaMakerPluginType.State.html +0 -360
  137. package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -454
  138. package/docs/interfaces/CSS3DRenderPluginState.html +0 -330
  139. package/docs/interfaces/CameraMovementPluginExportType.html +0 -363
  140. package/docs/interfaces/CruisePluginTypes.Config.html +0 -364
  141. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -366
  142. package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -724
  143. package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -390
  144. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -426
  145. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -416
  146. package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -356
  147. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -324
  148. package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -392
  149. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -387
  150. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -526
  151. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -328
  152. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -320
  153. package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -342
  154. package/docs/interfaces/EventMap.html +0 -547
  155. package/docs/interfaces/FloorplanBounding.html +0 -337
  156. package/docs/interfaces/FloorplanData.html +0 -340
  157. package/docs/interfaces/FloorplanEntrance.html +0 -365
  158. package/docs/interfaces/FloorplanExtraObject.html +0 -355
  159. package/docs/interfaces/FloorplanExtraObject3D.html +0 -344
  160. package/docs/interfaces/FloorplanFloorData.html +0 -333
  161. package/docs/interfaces/FloorplanImagePosition.html +0 -319
  162. package/docs/interfaces/FloorplanObserver.html +0 -337
  163. package/docs/interfaces/FloorplanOutlineItem.html +0 -333
  164. package/docs/interfaces/FloorplanPosition.html +0 -319
  165. package/docs/interfaces/FloorplanRoomItem.html +0 -407
  166. package/docs/interfaces/FloorplanRoomLabelItem.html +0 -325
  167. package/docs/interfaces/FloorplanServerBounding.html +0 -337
  168. package/docs/interfaces/FloorplanServerComputedData.html +0 -336
  169. package/docs/interfaces/FloorplanServerData.html +0 -319
  170. package/docs/interfaces/FloorplanServerDoorItem.html +0 -336
  171. package/docs/interfaces/FloorplanServerDoorPosition.html +0 -322
  172. package/docs/interfaces/FloorplanServerEntrance.html +0 -365
  173. package/docs/interfaces/FloorplanServerFloorData.html +0 -333
  174. package/docs/interfaces/FloorplanServerImagePosition.html +0 -319
  175. package/docs/interfaces/FloorplanServerObserver.html +0 -337
  176. package/docs/interfaces/FloorplanServerOutlineItem.html +0 -333
  177. package/docs/interfaces/FloorplanServerPosition.html +0 -319
  178. package/docs/interfaces/FloorplanServerRoomItem.html +0 -419
  179. package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -325
  180. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -328
  181. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -367
  182. package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -531
  183. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -362
  184. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -353
  185. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -452
  186. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -342
  187. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -352
  188. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -522
  189. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -349
  190. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -532
  191. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -314
  192. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -335
  193. package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -360
  194. package/docs/interfaces/GuideLinePluginType.Route.html +0 -376
  195. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -358
  196. package/docs/interfaces/HelperOffset.html +0 -337
  197. package/docs/interfaces/ImagePlaneGroup.html +0 -311
  198. package/docs/interfaces/ItemLabelPluginData.html +0 -308
  199. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -393
  200. package/docs/interfaces/ItemLabelPluginParametersType.html +0 -329
  201. package/docs/interfaces/MinMax.html +0 -315
  202. package/docs/interfaces/ModelChassisCompassPluginData.html +0 -315
  203. package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -351
  204. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -315
  205. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -322
  206. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -359
  207. package/docs/interfaces/ModelItemLabelPluginData.html +0 -308
  208. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -393
  209. package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -315
  210. package/docs/interfaces/ModelRoomLabelPluginData.html +0 -308
  211. package/docs/interfaces/ModelTVVideoPluginData.html +0 -329
  212. package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -353
  213. package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -308
  214. package/docs/interfaces/ModelViewPluginExportType.html +0 -421
  215. package/docs/interfaces/Object3DHelperState.html +0 -322
  216. package/docs/interfaces/ObjectHelperControllers.html +0 -329
  217. package/docs/interfaces/PaintBrushAction.html +0 -368
  218. package/docs/interfaces/PaintBrushConfigs.html +0 -366
  219. package/docs/interfaces/PaintBrushState.html +0 -350
  220. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -430
  221. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -287
  222. package/docs/interfaces/PanoMeasureParameterType.html +0 -454
  223. package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -322
  224. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -319
  225. package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -315
  226. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -325
  227. package/docs/interfaces/PanoRulerPluginExportType.html +0 -382
  228. package/docs/interfaces/PanoRulerPluginOptions.html +0 -331
  229. package/docs/interfaces/PanoRulerPluginParameterType.html +0 -322
  230. package/docs/interfaces/PanoRulerProPluginExportType.html +0 -358
  231. package/docs/interfaces/PanoRulerProPluginOptions.html +0 -328
  232. package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -315
  233. package/docs/interfaces/PanoRulerProPluginState.html +0 -322
  234. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -301
  235. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -290
  236. package/docs/interfaces/PanoSpatialTagPluginData.html +0 -358
  237. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -340
  238. package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -436
  239. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -336
  240. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -357
  241. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -343
  242. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -336
  243. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -328
  244. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -346
  245. package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -319
  246. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -425
  247. package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -319
  248. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -354
  249. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -373
  250. package/docs/interfaces/Point.html +0 -322
  251. package/docs/interfaces/Room.html +0 -329
  252. package/docs/interfaces/RoomInfo.html +0 -315
  253. package/docs/interfaces/RoomLabel.html +0 -391
  254. package/docs/interfaces/RoomRules.html +0 -290
  255. package/docs/interfaces/Rooms.html +0 -290
  256. package/docs/interfaces/Scissor.html +0 -349
  257. package/docs/interfaces/State.html +0 -336
  258. package/docs/interfaces/TagCacheInterface.html +0 -367
  259. package/docs/interfaces/TagConfig.html +0 -570
  260. package/docs/interfaces/TagGLTFObjectGroup.html +0 -311
  261. package/docs/interfaces/TagIconUrl.html +0 -368
  262. package/docs/interfaces/TagObjectGroup.html +0 -311
  263. package/docs/interfaces/TagStyle.html +0 -321
  264. package/docs/interfaces/Tags.html +0 -2825
  265. package/docs/interfaces/TemporaryState.html +0 -308
  266. package/docs/interfaces/Util.MagnifierParameter.html +0 -396
  267. package/docs/interfaces/Util.MouseGroupParameter.html +0 -355
  268. package/docs/interfaces/Util.PointIntersection.html +0 -370
  269. package/docs/modules/AreaMakerPluginType.html +0 -330
  270. package/docs/modules/CruisePluginTypes.html +0 -333
  271. package/docs/modules/CurrentPanoImagePluginType.html +0 -302
  272. package/docs/modules/GuideLineItem.html +0 -294
  273. package/docs/modules/GuideLineModeItem.html +0 -299
  274. package/docs/modules/GuideLinePluginType.html +0 -355
  275. package/docs/modules/PanoVideoPluginType.html +0 -306
  276. package/docs/modules/Util.html +0 -356
  277. package/docs/modules.html +0 -564
  278. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -359
  279. package/docs/types/AreaMakerPluginType.ItemRenderer.html +0 -325
  280. package/docs/types/AreaMakerPluginType.PluginData.html +0 -307
  281. package/docs/types/AreaMakerPluginType.ServerData.html +0 -307
  282. package/docs/types/ArrayPosition.html +0 -284
  283. package/docs/types/AudioAppearance.html +0 -284
  284. package/docs/types/AudioTagTypeConfigKey.html +0 -284
  285. package/docs/types/CSS3DRenderExportType.html +0 -284
  286. package/docs/types/CSS3DRenderPluginExportType.html +0 -284
  287. package/docs/types/CSS3DRenderPluginParameterType.html +0 -284
  288. package/docs/types/ClassFunctionParameters.html +0 -291
  289. package/docs/types/Color.html +0 -284
  290. package/docs/types/ContentTypeConfigKey.html +0 -284
  291. package/docs/types/ContentTypeConfigKeySplit.html +0 -284
  292. package/docs/types/ContentTypeMap.html +0 -284
  293. package/docs/types/Create3DDomContainerReturnType.html +0 -284
  294. package/docs/types/Create3DElementReturnType.html +0 -284
  295. package/docs/types/CruisePluginExportType.html +0 -284
  296. package/docs/types/CruisePluginTypes.CruiseData.html +0 -323
  297. package/docs/types/CruisePluginTypes.MoveEffect.html +0 -300
  298. package/docs/types/CurrentPanoImagePluginExportType.html +0 -284
  299. package/docs/types/DeprecatedMediaPlaneProperty.html +0 -296
  300. package/docs/types/DeprecatedTagProperty.html +0 -299
  301. package/docs/types/Direction-1.html +0 -284
  302. package/docs/types/Direction4.html +0 -284
  303. package/docs/types/ElementRenderer.html +0 -308
  304. package/docs/types/FloorplanRuleLabels.html +0 -287
  305. package/docs/types/FloorplanServerRuleLabels.html +0 -284
  306. package/docs/types/GuideLinePluginExportType.html +0 -284
  307. package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -357
  308. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -378
  309. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -311
  310. package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -314
  311. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -314
  312. package/docs/types/GuideLinePluginType.PathItem.html +0 -314
  313. package/docs/types/GuideLinePluginType.PluginData.html +0 -323
  314. package/docs/types/HelperEventMap.html +0 -429
  315. package/docs/types/InternalHelperEventMap.html +0 -380
  316. package/docs/types/LoadTagConfig.html +0 -284
  317. package/docs/types/MapviewFloorplanPluginParameterType.html +0 -284
  318. package/docs/types/MapviewFloorplanPluginReturnType.html +0 -284
  319. package/docs/types/MediaData.html +0 -305
  320. package/docs/types/MediaStore.html +0 -289
  321. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -291
  322. package/docs/types/ModelFloorplanPluginParameterType.html +0 -284
  323. package/docs/types/ModelFloorplanPluginReturnType.html +0 -284
  324. package/docs/types/ModelId.html +0 -284
  325. package/docs/types/ModelRoomLabelPluginParameters.html +0 -284
  326. package/docs/types/ModelRoomLabelPluginReturnType.html +0 -284
  327. package/docs/types/MoveArgs.html +0 -294
  328. package/docs/types/MoveOpts.html +0 -292
  329. package/docs/types/Object3DHelperEventMap.html +0 -377
  330. package/docs/types/ObjectFit.html +0 -284
  331. package/docs/types/PaintBrushEventMap.html +0 -315
  332. package/docs/types/PanoCompassPluginData.html +0 -284
  333. package/docs/types/PanoCompassPluginExportType.html +0 -284
  334. package/docs/types/PanoCompassPluginParameterType.html +0 -284
  335. package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -284
  336. package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -284
  337. package/docs/types/PanoIndex.html +0 -284
  338. package/docs/types/PanoMeasurePluginEvent.html +0 -284
  339. package/docs/types/PanoMeasureReturnType.html +0 -284
  340. package/docs/types/PanoSpatialTagPluginId.html +0 -284
  341. package/docs/types/PanoTagPluginExportInterface.html +0 -284
  342. package/docs/types/PanoTagPluginParamsInterface.html +0 -284
  343. package/docs/types/PanoVideoPluginParameterType.html +0 -284
  344. package/docs/types/PanoVideoPluginReturnType.html +0 -284
  345. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -292
  346. package/docs/types/PipelinePluginParameterType.html +0 -284
  347. package/docs/types/PipelinePluginReturnType.html +0 -284
  348. package/docs/types/PlaneTag.html +0 -292
  349. package/docs/types/Point2DTag.html +0 -292
  350. package/docs/types/Point3DTag.html +0 -292
  351. package/docs/types/PointTag.html +0 -289
  352. package/docs/types/PointTagInstance.html +0 -289
  353. package/docs/types/Position.html +0 -284
  354. package/docs/types/RotateArgs.html +0 -296
  355. package/docs/types/RotateOpts.html +0 -292
  356. package/docs/types/RuleLabelsKey.html +0 -284
  357. package/docs/types/RuleLabelsValue.html +0 -284
  358. package/docs/types/StickType.html +0 -284
  359. package/docs/types/Tag.html +0 -350
  360. package/docs/types/Tag2D.html +0 -292
  361. package/docs/types/Tag3D.html +0 -292
  362. package/docs/types/TagConfigByKey.html +0 -289
  363. package/docs/types/TagContentType.html +0 -284
  364. package/docs/types/TagContentTypeMapping.html +0 -284
  365. package/docs/types/TagDimensionType.html +0 -286
  366. package/docs/types/TagElement.html +0 -294
  367. package/docs/types/TagEvents.html +0 -337
  368. package/docs/types/TagGLTFObject.html +0 -307
  369. package/docs/types/TagHooks.html +0 -284
  370. package/docs/types/TagId.html +0 -284
  371. package/docs/types/TagInstance.html +0 -362
  372. package/docs/types/TagPointType.html +0 -287
  373. package/docs/types/TagRendererMap.html +0 -291
  374. package/docs/types/TopviewFloorplanPluginParameterType.html +0 -284
  375. package/docs/types/TopviewFloorplanPluginReturnType.html +0 -284
  376. package/docs/types/WorkCode.html +0 -284
  377. package/docs/variables/FLOOR_TYPE_MAP.html +0 -294
  378. package/docs/variables/PLUGIN.html +0 -284
  379. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -287
  380. package/docs/variables/ROOM_TYPE_MAP.html +0 -294
  381. package/docs/variables/defaultGlobalConfig.html +0 -284
  382. package/docs/variables/itemLabelPluginServerParams.html +0 -291
  383. package/docs/variables/modelItemLabelPluginServerParams.html +0 -291
  384. package/docs/variables/modelRoomLabelPluginServerParams.html +0 -291
@@ -1,46 +1,46 @@
1
1
  var Q = Object.defineProperty, X = Object.defineProperties;
2
2
  var Z = Object.getOwnPropertyDescriptors;
3
- var k = Object.getOwnPropertySymbols;
4
- var j = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
5
- var M = (c, i, e) => i in c ? Q(c, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[i] = e, p = (c, i) => {
3
+ var y = Object.getOwnPropertySymbols;
4
+ var F = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
5
+ var x = (c, i, e) => i in c ? Q(c, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[i] = e, p = (c, i) => {
6
6
  for (var e in i || (i = {}))
7
- j.call(i, e) && M(c, e, i[e]);
8
- if (k)
9
- for (var e of k(i))
10
- A.call(i, e) && M(c, e, i[e]);
7
+ F.call(i, e) && x(c, e, i[e]);
8
+ if (y)
9
+ for (var e of y(i))
10
+ D.call(i, e) && x(c, e, i[e]);
11
11
  return c;
12
- }, U = (c, i) => X(c, Z(i));
13
- var O = (c, i) => {
12
+ }, M = (c, i) => X(c, Z(i));
13
+ var B = (c, i) => {
14
14
  var e = {};
15
15
  for (var t in c)
16
- j.call(c, t) && i.indexOf(t) < 0 && (e[t] = c[t]);
17
- if (c != null && k)
18
- for (var t of k(c))
19
- i.indexOf(t) < 0 && A.call(c, t) && (e[t] = c[t]);
16
+ F.call(c, t) && i.indexOf(t) < 0 && (e[t] = c[t]);
17
+ if (c != null && y)
18
+ for (var t of y(c))
19
+ i.indexOf(t) < 0 && D.call(c, t) && (e[t] = c[t]);
20
20
  return e;
21
21
  };
22
- var l = (c, i, e) => (M(c, typeof i != "symbol" ? i + "" : i, e), e);
23
- var w = (c, i, e) => new Promise((t, s) => {
24
- var r = (n) => {
22
+ var f = (c, i, e) => (x(c, typeof i != "symbol" ? i + "" : i, e), e);
23
+ var I = (c, i, e) => new Promise((t, r) => {
24
+ var n = (s) => {
25
25
  try {
26
- o(e.next(n));
26
+ o(e.next(s));
27
27
  } catch (a) {
28
- s(a);
28
+ r(a);
29
29
  }
30
- }, f = (n) => {
30
+ }, l = (s) => {
31
31
  try {
32
- o(e.throw(n));
32
+ o(e.throw(s));
33
33
  } catch (a) {
34
- s(a);
34
+ r(a);
35
35
  }
36
- }, o = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(r, f);
36
+ }, o = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(n, l);
37
37
  o((e = e.apply(c, i)).next());
38
38
  });
39
39
  import { Subscribe as _ } from "../../../shared-utils/Subscribe.js";
40
- import { calculateTagConfig as S } from "../../utils/tag/calculateTagConfig.js";
40
+ import { calculateTagConfig as U } from "../../utils/tag/calculateTagConfig.js";
41
41
  import { getTagStickType as G } from "../../utils/tag/format.js";
42
- import { isModelLike as K, isPanoramaLike as T } from "../../../shared-utils/five/mode.js";
43
- import * as D from "three";
42
+ import { isPanoramaLike as w, isModelLike as K } from "../../../shared-utils/five/mode.js";
43
+ import * as V from "three";
44
44
  import "hammerjs";
45
45
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
46
46
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
@@ -48,20 +48,20 @@ import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
48
48
  import "../../../shared-utils/three/THREESphere.js";
49
49
  import { blink as Y, reblink as ee } from "../../../shared-utils/three/blink.js";
50
50
  import { vectorToCoordinates as ie } from "../../../shared-utils/vectorToCoordinate.js";
51
- import { transformPosition as R } from "../../../shared-utils/five/transformPosition.js";
52
- import { isNil as B, notNil as te } from "../../../shared-utils/isNil.js";
51
+ import { transformPosition as j } from "../../../shared-utils/five/transformPosition.js";
52
+ import { isNil as A, notNil as te } from "../../../shared-utils/isNil.js";
53
53
  import { lookPoint as ne } from "../../../shared-utils/five/lookPoint.js";
54
54
  import { uuid as se } from "../../../shared-utils/uuid.js";
55
- import { objectAssignDeepExports as C } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
56
- import { anyPositionToVector3 as E } from "../../../shared-utils/positionToVector3.js";
57
- import { getTagPosition as L, getTagCenterPosition as $ } from "../../utils/tagPosition.js";
58
- import { checkRange as x } from "../../utils/checkRange.js";
55
+ import { objectAssignDeepExports as b } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
56
+ import { anyPositionToVector3 as O } from "../../../shared-utils/positionToVector3.js";
57
+ import { getTagPosition as R, getTagCenterPosition as E } from "../../utils/tagPosition.js";
58
+ import { checkRange as P } from "../../utils/checkRange.js";
59
59
  import { centerPoint as oe } from "../../../shared-utils/three/centerPoint.js";
60
- import { isMediaPlaneTag as re, isMediaModelTag as V } from "../../utils/tag/tagCheck.js";
61
- import { getUrlExt as N } from "../../../shared-utils/url/getUrl.js";
62
- import { getFloorIndex as ae } from "../../../shared-utils/five/getFloorIndex.js";
63
- import { safeObj as z } from "../../../shared-utils/safeObj.js";
64
- import { toArray as le } from "../../../shared-utils/util.js";
60
+ import { isMediaPlaneTag as re, isMediaModelTag as T } from "../../utils/tag/tagCheck.js";
61
+ import { getUrlExt as L } from "../../../shared-utils/url/getUrl.js";
62
+ import { getFloorIndex as le } from "../../../shared-utils/five/getFloorIndex.js";
63
+ import { safeObj as $ } from "../../../shared-utils/safeObj.js";
64
+ import { toArray as ae } from "../../../shared-utils/util.js";
65
65
  import { Cache as fe } from "../../utils/Cache.js";
66
66
  import { sleep as de } from "../../../CruisePlugin/utils/sleep.js";
67
67
  import "../../../shared-utils/typescript/entries.js";
@@ -84,57 +84,58 @@ import "../../../shared-utils/Utils/FiveUtil.js";
84
84
  import "../../../shared-utils/Utils/BaseUtil.js";
85
85
  import "../../../shared-utils/Utils/WorkUtil.js";
86
86
  import "../../../shared-utils/five/getFiveModel.js";
87
- const I = new D.Raycaster();
88
- I.params.Points.threshold = 0.1;
87
+ const C = new V.Raycaster();
88
+ C.params.Points.threshold = 0.1;
89
89
  class ri {
90
90
  constructor(i, e) {
91
- l(this, "plugin");
92
- l(this, "id");
93
- l(this, "contentType");
94
- l(this, "stickType");
95
- l(this, "enabled");
96
- l(this, "config");
97
- l(this, "data");
98
- l(this, "state");
99
- l(this, "temporaryState", { visible: !0 });
100
- l(this, "originPosition");
101
- l(this, "position");
102
- l(this, "fiveState");
103
- l(this, "model");
104
- l(this, "matrix");
105
- l(this, "screenPosition");
106
- l(this, "normal");
107
- l(this, "mediaPlane");
108
- l(this, "hooks");
109
- l(this, "zIndex");
110
- l(this, "play");
111
- l(this, "pause");
112
- l(this, "tag3DContentSvelte");
113
- l(this, "dom");
114
- l(this, "contentDom");
115
- l(this, "initialConfig");
116
- l(this, "computedConfig");
117
- l(this, "cache");
118
- var n, a, u, v;
91
+ f(this, "plugin");
92
+ f(this, "id");
93
+ f(this, "contentType");
94
+ f(this, "stickType");
95
+ f(this, "enabled");
96
+ f(this, "config");
97
+ f(this, "data");
98
+ f(this, "state");
99
+ f(this, "temporaryState", { visible: !0 });
100
+ f(this, "originPosition");
101
+ f(this, "position");
102
+ f(this, "fiveState");
103
+ f(this, "model");
104
+ f(this, "matrix");
105
+ f(this, "screenPosition");
106
+ f(this, "normal");
107
+ f(this, "mediaPlane");
108
+ f(this, "hooks");
109
+ f(this, "zIndex");
110
+ f(this, "play");
111
+ f(this, "pause");
112
+ f(this, "tag3DContentSvelte");
113
+ f(this, "dom");
114
+ f(this, "contentDom");
115
+ f(this, "initialConfig");
116
+ f(this, "computedConfig");
117
+ f(this, "cache");
118
+ f(this, "entryFromModel");
119
+ var s, a, u, g;
119
120
  this.plugin = i;
120
121
  const t = G(e);
121
122
  e.stickType = t;
122
- const s = JSON.parse(JSON.stringify(e.data)), r = (n = e.initialConfig) != null ? n : e.config ? JSON.parse(JSON.stringify(e.config)) : {};
123
- e.initialConfig = r;
124
- const f = S(e, i.config), o = this.getConfig(e);
125
- e.config = o, this.id = (a = e.id) != null ? a : se(), this.enabled = (u = e.enabled) != null ? u : !0, this.contentType = e.contentType, this.data = (v = o.initialData) != null && v.important ? C(e.data, s, o.initialData) : C(e.data, o.initialData, s), this.state = p({
123
+ const r = JSON.parse(JSON.stringify(e.data)), n = (s = e.initialConfig) != null ? s : e.config ? JSON.parse(JSON.stringify(e.config)) : {};
124
+ e.initialConfig = n;
125
+ const l = U(e, i.config), o = this.getConfig(e);
126
+ e.config = o, this.id = (a = e.id) != null ? a : se(), this.enabled = (u = e.enabled) != null ? u : !0, this.contentType = e.contentType, this.data = (g = o.initialData) != null && g.important ? b(e.data, r, o.initialData) : b(e.data, o.initialData, r), this.state = p({
126
127
  visible: void 0,
127
128
  unfolded: !this.can("fold")
128
129
  }, o.initialState), this.originPosition = e.position, e.originPosition = this.originPosition, this.position = (() => {
129
130
  const d = e.originPosition;
130
131
  if (!d)
131
132
  return;
132
- const b = i.workUtil.transform;
133
- return Array.isArray(d) && d.length === 4 ? d.map(E).map((m) => R(m, b).toArray()) : R(E(d), b).toArray();
133
+ const m = i.workUtil.transform;
134
+ return Array.isArray(d) && d.length === 4 ? d.map(O).map((h) => j(h, m).toArray()) : j(O(d), m).toArray();
134
135
  })(), this.matrix = e.matrix ? (() => {
135
- const d = new D.Matrix4().fromArray(e.matrix);
136
+ const d = new V.Matrix4().fromArray(e.matrix);
136
137
  return d.premultiply(i.workUtil.transform), d.elements;
137
- })() : e.matrix, this.initialConfig = r, this.computedConfig = f, this.stickType = t, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new fe(), this.hooks = new _(), Object.keys(e).forEach((d) => {
138
+ })() : e.matrix, this.initialConfig = n, this.computedConfig = l, this.stickType = t, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new fe(), this.hooks = new _(), Object.keys(e).forEach((d) => {
138
139
  this[d] === void 0 && e[d] !== void 0 && (this[d] = e[d]);
139
140
  });
140
141
  }
@@ -148,13 +149,13 @@ class ri {
148
149
  return this.plugin.workUtil;
149
150
  }
150
151
  get centerPosition() {
151
- const i = L(this);
152
+ const i = R(this);
152
153
  return oe(...Array.isArray(i) ? i : [i]);
153
154
  }
154
155
  get currentConfig() {
155
- var s, r;
156
- const i = S(this, this.plugin.config, { useCache: !0 }), e = this.five.getCurrentState().mode, t = (s = i.configWithFiveMode) == null ? void 0 : s[e];
157
- return (r = t != null ? t : i) != null ? r : {};
156
+ var r, n;
157
+ const i = U(this, this.plugin.config, { useCache: !0 }), e = this.five.getCurrentState().mode, t = (r = i.configWithFiveMode) == null ? void 0 : r[e];
158
+ return (n = t != null ? t : i) != null ? n : {};
158
159
  }
159
160
  get currentVisible() {
160
161
  return !(!this.plugin.state.enabled || !this.plugin.state.visible || !this.enabled || !this.state.visible);
@@ -172,49 +173,49 @@ class ri {
172
173
  * @description 找到标签
173
174
  */
174
175
  find(i) {
175
- return w(this, null, function* () {
176
- var s;
176
+ return I(this, null, function* () {
177
+ var r;
177
178
  const e = this.fiveState;
178
179
  if (!this.fiveState)
179
180
  return;
180
- const t = (s = i == null ? void 0 : i.targetMode) != null ? s : this.five.state.mode;
181
+ const t = (r = i == null ? void 0 : i.targetMode) != null ? r : this.five.state.mode;
181
182
  if (t === "Panorama") {
182
- const r = e == null ? void 0 : e.panoIndex;
183
- if (B(r))
183
+ const n = e == null ? void 0 : e.panoIndex;
184
+ if (A(n))
184
185
  return;
185
- const f = this.workUtil.getObserverPosition(r), o = this.centerPosition.clone().sub(f).normalize();
186
+ const l = this.workUtil.getObserverPosition(n), o = this.centerPosition.clone().sub(l).normalize();
186
187
  this.five.setState(p({
187
188
  mode: "Panorama",
188
189
  workCode: this.workUtil.workCode,
189
- panoIndex: r
190
+ panoIndex: n
190
191
  }, ie(o))), yield this.five.ready();
191
192
  } else
192
- t === "Mapview" && (yield ne(this.five, this.centerPosition, i.pointConfig));
193
+ t === "Mapview" && (yield ne(this.five, this.centerPosition, i == null ? void 0 : i.pointConfig));
193
194
  });
194
195
  }
195
196
  /**
196
197
  * @description 闪烁
197
198
  */
198
199
  blink(i) {
199
- return w(this, null, function* () {
200
- var o, n;
201
- const e = (o = this.enabled) != null ? o : !0, t = (n = this.state) == null ? void 0 : n.visible, s = e && t;
202
- s === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.plugin.render(), yield de(0), this.dom && (this.dom.style.visibility = "hidden"), this.contentDom && (this.contentDom.style.visibility = "hidden"));
203
- const r = (() => {
200
+ return I(this, null, function* () {
201
+ var o, s;
202
+ const e = (o = this.enabled) != null ? o : !0, t = (s = this.state) == null ? void 0 : s.visible, r = e && t;
203
+ r === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.plugin.render(), yield de(0), this.dom && (this.dom.style.visibility = "hidden"), this.contentDom && (this.contentDom.style.visibility = "hidden"));
204
+ const n = (() => {
204
205
  var u;
205
206
  const a = [];
206
207
  return a.push(this.dom), this.stickType !== "2DPoint" && a.push(this.contentDom), a.push((u = this.model) == null ? void 0 : u.object), a.push(this.mediaPlane), a.filter(Boolean);
207
208
  })();
208
- if (!r.length)
209
+ if (!n.length)
209
210
  return;
210
- yield (s ? Y : ee)(r, p({
211
+ yield (r ? Y : ee)(n, p({
211
212
  begin: () => {
212
- s === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
213
+ r === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
213
214
  },
214
215
  updateRender: () => {
215
216
  this.five.needsRender = !0;
216
217
  }
217
- }, i)).finished, e === !1 && (this.enabled = !1), t === !1 && this.updateVisible(), s === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
218
+ }, i)).finished, e === !1 && (this.enabled = !1), t === !1 && this.updateVisible(), r === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
218
219
  });
219
220
  }
220
221
  /**
@@ -222,6 +223,11 @@ class ri {
222
223
  */
223
224
  unfold() {
224
225
  }
226
+ /**
227
+ * @description 展开自己,收起其他标签
228
+ */
229
+ unfoldAndFoldOthers() {
230
+ }
225
231
  /**
226
232
  * @description 收起
227
233
  */
@@ -256,7 +262,7 @@ class ri {
256
262
  * @param deepMerge 是否深度合并 data,默认为 true
257
263
  */
258
264
  setData(i, e = !0) {
259
- e ? this.data = C(this.data, i) : this.data = p(p({}, this.data), i), this.hooks.emit("dataChanged", this.data);
265
+ e ? this.data = b(this.data, i) : this.data = p(p({}, this.data), i), this.hooks.emit("dataChanged", this.data);
260
266
  }
261
267
  /**
262
268
  * @description 修改标签位置
@@ -269,7 +275,7 @@ class ri {
269
275
  * @param deepMerge 是否深度合并 data,默认为 true
270
276
  */
271
277
  set(i, e = !0) {
272
- this.plugin.tagsLengthWillUpdate = !0, e ? C(this, i) : Object.assign(this, i), this.cache.clear();
278
+ this.plugin.tagsLengthWillUpdate = !0, e ? b(this, i) : Object.assign(this, i), this.cache.clear();
273
279
  }
274
280
  updateConfig() {
275
281
  var t;
@@ -277,36 +283,33 @@ class ri {
277
283
  this.computedConfig = i;
278
284
  const e = this.getConfig();
279
285
  if (this.config = e, this.config.initialData) {
280
- const s = JSON.parse(JSON.stringify(this.data));
281
- this.data = (t = e.initialData) != null && t.important ? C(this.data, s, e.initialData) : C(this.data, e.initialData, s);
286
+ const r = JSON.parse(JSON.stringify(this.data));
287
+ this.data = (t = e.initialData) != null && t.important ? b(this.data, r, e.initialData) : b(this.data, e.initialData, r);
282
288
  }
283
289
  this.cache.clear();
284
290
  }
285
- updateVisibleState() {
286
- this.state.visible = this.getVisible();
287
- }
288
291
  updateVisible() {
289
- this.updateVisibleState(), this.applyVisible();
292
+ this.state.visible = this.getVisible(), this.applyVisible();
290
293
  }
291
294
  updateZIndex() {
292
295
  const i = this.getDistance();
293
296
  this.zIndex = Math.round((1e4 - (i != null ? i : 0)) * 100);
294
297
  }
295
298
  getConfig(i, e) {
296
- var f, o, n;
297
- const t = S(i != null ? i : this, this.plugin.config, { useCache: e == null ? void 0 : e.useCache }), s = (f = e == null ? void 0 : e.fiveMode) != null ? f : this.five.getCurrentState().mode, r = (o = t.configWithFiveMode) == null ? void 0 : o[s];
298
- return (n = r != null ? r : t) != null ? n : {};
299
+ var l, o, s;
300
+ const t = U(i != null ? i : this, this.plugin.config, { useCache: e == null ? void 0 : e.useCache }), r = (l = e == null ? void 0 : e.fiveMode) != null ? l : this.five.getCurrentState().mode, n = (o = t.configWithFiveMode) == null ? void 0 : o[r];
301
+ return (s = n != null ? n : t) != null ? s : {};
299
302
  }
300
303
  getDistance(i, e = 3) {
301
- const t = p(p({}, this.five.getCurrentState()), i), { panoIndex: s, mode: r } = t, f = r === "Panorama" ? this.workUtil.getObserverPosition(s) : this.five.camera.position, o = this.centerPosition;
302
- return !f || !o ? -1 : f.distanceTo(o);
304
+ const t = p(p({}, this.five.getCurrentState()), i), { panoIndex: r, mode: n } = t, l = n === "Panorama" ? this.workUtil.getObserverPosition(r) : this.five.camera.position, o = this.centerPosition;
305
+ return !l || !o ? -1 : l.distanceTo(o);
303
306
  }
304
307
  getVisible(i) {
305
308
  if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
306
309
  return !1;
307
310
  const e = p(p({}, this.five.getCurrentState()), i);
308
311
  let t = this.cache.getVisible(this, e);
309
- return B(t) && (t = this.computeVisible(e).value, this.cache.setVisible(this, e, t)), t;
312
+ return A(t) && (t = this.computeVisible(e).value, this.cache.setVisible(this, e, t)), t;
310
313
  }
311
314
  getUnfoldedByPanoIndex(i) {
312
315
  if (!this.currentVisible)
@@ -351,147 +354,159 @@ class ri {
351
354
  if (t[0].type === "Video")
352
355
  return navigator.userAgent.toLowerCase().indexOf("firefox") > -1 && navigator.userAgent.toLowerCase().indexOf("mobile") > -1 ? "Dom" : "Mesh";
353
356
  if (t[0].type === "Image")
354
- return N(t[0].url) === "gif" ? "Dom" : "Mesh";
357
+ return L(t[0].url) === "gif" ? "Dom" : "Mesh";
355
358
  }
356
- } else if (V(this))
357
- return t.length === 1 && t[0].type === "Image" ? N(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
359
+ } else if (T(this))
360
+ return t.length === 1 && t[0].type === "Image" ? L(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
358
361
  }
359
362
  })();
360
363
  return i != null ? i : "Dom";
361
364
  }
362
365
  computeVisible(i) {
363
- const e = p(p({}, this.five.getCurrentState()), i), { panoIndex: t, mode: s } = e, r = [];
366
+ const e = p(p({}, this.five.getCurrentState()), i), { panoIndex: t, mode: r } = e, n = [];
364
367
  return (() => {
365
- var a, u, v, d, b, y, P;
366
- const n = (a = this.getConfig().visibleConfig) != null ? a : {};
367
- if (typeof n == "function")
368
+ var a, g, d;
369
+ const s = (a = this.getConfig().visibleConfig) != null ? a : {};
370
+ if (typeof s == "function")
368
371
  return {
369
- value: n(this.five, { tag: this, distance: this.getDistance(e, void 0) }),
370
- checkedList: r,
372
+ value: s(this.five, { tag: this, distance: this.getDistance(e, void 0) }),
373
+ checkedList: n,
371
374
  reason: "config function result"
372
375
  };
373
- if (n.keep === "hidden")
374
- return { value: !1, checkedList: r, reason: "config.keep is hidden" };
375
- if (n.keep === "visible")
376
- return { value: !0, checkedList: r, reason: "config.keep is visible" };
377
- if (n.visibleFiveMode !== void 0) {
378
- const h = typeof n.visibleFiveMode == "function" ? n.visibleFiveMode(this) : n.visibleFiveMode;
379
- let g = !1;
380
- if (Array.isArray(h) ? g = h.includes(s) : h === "ModelLike" ? g = K(s) : h === "PanoramaLike" ? g = !T(s) : h === "all" ? g = !0 : typeof h == "string" && (g = h === s), g === !1)
381
- return {
382
- value: !1,
383
- checkedList: r,
384
- reason: "current mode is not included in visibleFiveMode",
385
- visibleFiveMode: n.visibleFiveMode,
386
- mode: s
387
- };
388
- } else if (n.visibleFiveMode === void 0 && ((u = this.five.getCurrentState()) == null ? void 0 : u.mode) !== ((d = (v = this.fiveState) == null ? void 0 : v.mode) != null ? d : "Panorama"))
376
+ {
377
+ if (s.keep === "hidden")
378
+ return { value: !1, checkedList: n, reason: "config.keep is hidden" };
379
+ if (s.keep === "visible")
380
+ return { value: !0, checkedList: n, reason: "config.keep is visible" };
381
+ const m = this.computeVisibleByFiveMode(s, r);
382
+ if ((m == null ? void 0 : m.value) === !1)
383
+ return m;
384
+ if (s.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (r === "Floorplan" || r === "Mapview")) {
385
+ const u = this.computeVisibleByFloorIndex(), { value: h } = u, v = B(u, ["value"]);
386
+ if (h === !1)
387
+ return p({ value: !1, checkedList: n, reason: "followModelVisibility check failed" }, v);
388
+ }
389
+ if (w(r) && s.visiblePanoIndex !== void 0 && s.visiblePanoIndex !== "all" && t !== void 0) {
390
+ if (n.push("visiblePanoIndex"), Array.isArray(s.visiblePanoIndex) && !s.visiblePanoIndex.includes(t))
391
+ return {
392
+ value: !1,
393
+ checkedList: n,
394
+ reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${s.visiblePanoIndex}`
395
+ };
396
+ if (s.visiblePanoIndex === "current" && t !== ((g = this.fiveState) == null ? void 0 : g.panoIndex))
397
+ return {
398
+ value: !1,
399
+ checkedList: n,
400
+ reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(d = this.fiveState) == null ? void 0 : d.panoIndex}`
401
+ };
402
+ }
403
+ if (s.visibleDistance !== void 0 && (n.push("visibleDistance"), s.visibleDistance !== "unLimited")) {
404
+ const h = this.getDistance(e, 1);
405
+ if (P(h, s.visibleDistance) === !1)
406
+ return {
407
+ value: !1,
408
+ checkedList: n,
409
+ panoIndex: t,
410
+ visibleDistance: s.visibleDistance,
411
+ reason: `distance is not in visibleDistance. distance: ${h}, visibleDistance: ${s.visibleDistance.min} - ${s.visibleDistance.max}`
412
+ };
413
+ }
414
+ if (s.intersectRaycaster !== !1 && (typeof s.intersectRaycaster != "object" || s.intersectRaycaster.enabled !== !1)) {
415
+ if (n.push("intersectRaycaster"), t === void 0)
416
+ return {
417
+ value: !1,
418
+ checkedList: n,
419
+ reason: `intersectRaycaster check failed: panoIndex is ${t}`
420
+ };
421
+ const h = this.computeVisibleByIntersect(t);
422
+ if (h.value === !1)
423
+ return Object.assign(h, { checkedList: n });
424
+ }
389
425
  return {
390
- value: !1,
391
- checkedList: r,
392
- reason: "current mode is not equal to tag.fiveState.mode",
393
- tagFiveMode: (b = this.fiveState) == null ? void 0 : b.mode,
394
- mode: s
426
+ value: !0,
427
+ checkedList: n,
428
+ reason: "all check passed"
395
429
  };
396
- if (n.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (s === "Floorplan" || s === "Mapview")) {
397
- const m = this.computeVisibleByFloorIndex(), { value: h } = m, g = O(m, ["value"]);
398
- if (h === !1)
399
- return p({ value: !1, checkedList: r, reason: "followModelVisibility check failed" }, g);
400
- }
401
- if (T(s) && n.visiblePanoIndex !== void 0 && n.visiblePanoIndex !== "all" && t !== void 0) {
402
- if (r.push("visiblePanoIndex"), Array.isArray(n.visiblePanoIndex) && !n.visiblePanoIndex.includes(t))
403
- return {
404
- value: !1,
405
- checkedList: r,
406
- reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${n.visiblePanoIndex}`
407
- };
408
- if (n.visiblePanoIndex === "current" && t !== ((y = this.fiveState) == null ? void 0 : y.panoIndex))
409
- return {
410
- value: !1,
411
- checkedList: r,
412
- reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(P = this.fiveState) == null ? void 0 : P.panoIndex}`
413
- };
414
- }
415
- if (n.visibleDistance !== void 0 && (r.push("visibleDistance"), n.visibleDistance !== "unLimited")) {
416
- const h = this.getDistance(e, 1);
417
- if (x(h, n.visibleDistance) === !1)
418
- return {
419
- value: !1,
420
- checkedList: r,
421
- panoIndex: t,
422
- visibleDistance: n.visibleDistance,
423
- reason: `distance is not in visibleDistance. distance: ${h}, visibleDistance: ${n.visibleDistance.min} - ${n.visibleDistance.max}`
424
- };
425
- }
426
- if (n.intersectRaycaster !== !1 && (typeof n.intersectRaycaster != "object" || n.intersectRaycaster.enabled !== !1)) {
427
- if (r.push("intersectRaycaster"), t === void 0)
428
- return {
429
- value: !1,
430
- checkedList: r,
431
- reason: `intersectRaycaster check failed: panoIndex is ${t}`
432
- };
433
- const h = this.computeVisibleByIntersect(t);
434
- if (h.value === !1)
435
- return Object.assign(h, { checkedList: r });
436
430
  }
431
+ })();
432
+ }
433
+ /**
434
+ * @description 计算标签可见性
435
+ */
436
+ computeVisibleByFiveMode(i, e) {
437
+ const t = () => {
438
+ var l, o;
439
+ let n = typeof i.visibleFiveMode == "function" ? i.visibleFiveMode(this) : i.visibleFiveMode;
440
+ if (n || (n = (o = (l = this.fiveState) == null ? void 0 : l.mode) != null ? o : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(n))
441
+ return n.includes(e);
442
+ if (n === "ModelLike")
443
+ return K(e);
444
+ if (n === "PanoramaLike")
445
+ return !w(e);
446
+ if (n === "all")
447
+ return !0;
448
+ if (typeof n == "string")
449
+ return n === e;
450
+ };
451
+ if ((() => t())() === !1)
437
452
  return {
438
- value: !0,
439
- checkedList: r,
440
- reason: "all check passed"
453
+ value: !1,
454
+ reason: "current mode is not included in visibleFiveMode",
455
+ visibleFiveMode: i.visibleFiveMode,
456
+ mode: e
441
457
  };
442
- })();
443
458
  }
444
459
  /** 通过射线检测标签可用性 */
445
460
  computeVisibleByIntersect(i) {
446
- var n, a, u, v;
447
- const e = z(z((n = this.getConfig().visibleConfig) != null ? n : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, s = T(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
448
- if (s === void 0)
461
+ var s, a, u, g;
462
+ const e = $($((s = this.getConfig().visibleConfig) != null ? s : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, r = w(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
463
+ if (r === void 0)
449
464
  return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
450
- const r = le(
465
+ const n = ae(
451
466
  (() => {
452
- var b;
453
- const d = (b = e.checkPoints) != null ? b : "center";
454
- return d === "center" ? $(this) : d === "corner" ? L(this) : Array.isArray(d) ? d : [];
467
+ var m;
468
+ const d = (m = e.checkPoints) != null ? m : "center";
469
+ return d === "center" ? E(this) : d === "corner" ? R(this) : Array.isArray(d) ? d : [];
455
470
  })()
456
471
  );
457
- let f = 0, o = 0;
458
- for (const d of r) {
459
- const b = new D.Vector3().subVectors(d, s).normalize();
460
- let m;
461
- I.set(s, b);
462
- const [y] = this.fiveUtil.model.intersectRaycaster(I);
463
- m = y == null ? void 0 : y.distance;
464
- const P = (() => {
465
- if (!V(this))
472
+ let l = 0, o = 0;
473
+ for (const d of n) {
474
+ const m = new V.Vector3().subVectors(d, r).normalize();
475
+ let h;
476
+ C.set(r, m);
477
+ const [v] = this.fiveUtil.model.intersectRaycaster(C);
478
+ h = v == null ? void 0 : v.distance;
479
+ const k = (() => {
480
+ if (!T(this))
466
481
  return;
467
- const W = this.plugin.tags.filter(V).map((q) => {
468
- var F;
469
- return (F = q.model) == null ? void 0 : F.object;
470
- }).filter(te), [H] = I.intersectObjects(W, !0);
482
+ const W = this.plugin.tags.filter(T).map((q) => {
483
+ var S;
484
+ return (S = q.model) == null ? void 0 : S.object;
485
+ }).filter(te), [H] = C.intersectObjects(W, !0);
471
486
  return H;
472
- })(), h = s.distanceTo(d), g = (a = e.distanceAccuracy) != null ? a : 0.01;
473
- m = Math.min(m != null ? m : 1 / 0, (u = P == null ? void 0 : P.distance) != null ? u : 1 / 0), m + g >= h ? f++ : o++;
474
- const J = (v = e.needPassed) != null ? v : 1;
475
- if (f >= J)
487
+ })(), N = r.distanceTo(d), z = (a = e.distanceAccuracy) != null ? a : 0.01;
488
+ h = Math.min(h != null ? h : 1 / 0, (u = k == null ? void 0 : k.distance) != null ? u : 1 / 0), h + z >= N ? l++ : o++;
489
+ const J = (g = e.needPassed) != null ? g : 1;
490
+ if (l >= J)
476
491
  return { value: !0 };
477
492
  }
478
493
  return o === 0 ? { value: !0 } : {
479
494
  value: !1,
480
495
  reason: {
481
496
  type: "intersectRaycaster check failed",
482
- passedCount: f,
497
+ passedCount: l,
483
498
  needPassed: e.needPassed,
484
499
  model: this.fiveUtil.model.name
485
500
  }
486
501
  };
487
502
  }
488
503
  computeVisibleByFloorIndex() {
489
- var s, r, f, o, n, a, u;
504
+ var r, n, l, o, s, a, u;
490
505
  let i = 0;
491
- const e = (s = this.fiveState) == null ? void 0 : s.panoIndex;
492
- e !== void 0 ? i = (r = this.workUtil.getObserver(e)) == null ? void 0 : r.floorIndex : i = ae(
506
+ const e = (r = this.fiveState) == null ? void 0 : r.panoIndex;
507
+ e !== void 0 ? i = (n = this.workUtil.getObserver(e)) == null ? void 0 : n.floorIndex : i = le(
493
508
  this.workUtil.work,
494
- (u = (a = (o = (f = this.model) == null ? void 0 : f.object) == null ? void 0 : o.position) != null ? a : (n = this.mediaPlane) == null ? void 0 : n.position) != null ? u : $(this)
509
+ (u = (a = (o = (l = this.model) == null ? void 0 : l.object) == null ? void 0 : o.position) != null ? a : (s = this.mediaPlane) == null ? void 0 : s.position) != null ? u : E(this)
495
510
  );
496
511
  const t = this.fiveUtil.model.shownFloor;
497
512
  return {
@@ -512,7 +527,7 @@ class ri {
512
527
  return !1;
513
528
  if (e.keep === "unfolded")
514
529
  return !0;
515
- if (e.unfoldDistance && x(this.getDistance({ panoIndex: i }), e.unfoldDistance) === !1)
530
+ if (e.unfoldDistance && P(this.getDistance({ panoIndex: i }), e.unfoldDistance) === !1)
516
531
  return !1;
517
532
  }
518
533
  }
@@ -530,24 +545,24 @@ class ri {
530
545
  return;
531
546
  if (i.autoUnfold.strategy === "ScreenPostion") {
532
547
  const t = this.computeTagProject();
533
- if (t && x(t.x, i.autoUnfold.autoUnfoldProjectX) === !1)
548
+ if (t && P(t.x, i.autoUnfold.autoUnfoldProjectX) === !1)
534
549
  return !1;
535
550
  }
536
551
  if (i.autoUnfold.strategy === "MinimumDistance") {
537
- const r = this.plugin.filterPointTag.filter((o) => o.currentVisible).filter((o) => {
538
- const n = this.computeTagProject();
539
- if (!n)
552
+ const n = this.plugin.filterPointTag.filter((o) => o.currentVisible).filter((o) => {
553
+ const s = this.computeTagProject();
554
+ if (!s)
540
555
  return !1;
541
- const { x: a, y: u, z: v } = n;
542
- return !(Math.abs(v) > 1 || Math.abs(a) > 1 || Math.abs(u) > 1);
556
+ const { x: a, y: u, z: g } = s;
557
+ return !(Math.abs(g) > 1 || Math.abs(a) > 1 || Math.abs(u) > 1);
543
558
  }).map((o) => ({ tag: o, id: o.id, tagConfig: o.getConfig().unfoldedConfig })).filter(({ tagConfig: o }) => {
544
- var n, a;
545
- return !(typeof o == "function" || o.keep || o.autoUnfold === !1 || ((n = o.autoUnfold) == null ? void 0 : n.enable) === !1 || ((a = o.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
546
- }).map((o) => U(p({}, o), { distance: o.tag.getDistance() })).filter(({ distance: o, tagConfig: n }) => {
547
- const a = n.autoUnfold.distance;
548
- return !(a && x(o, a) === !1);
549
- }).sort((o, n) => o.distance - n.distance).findIndex((o) => o.id === this.id);
550
- if (r === -1 || r <= ((e = i.autoUnfold.maxNumber) != null ? e : 1) - 1 === !1)
559
+ var s, a;
560
+ return !(typeof o == "function" || o.keep || o.autoUnfold === !1 || ((s = o.autoUnfold) == null ? void 0 : s.enable) === !1 || ((a = o.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
561
+ }).map((o) => M(p({}, o), { distance: o.tag.getDistance() })).filter(({ distance: o, tagConfig: s }) => {
562
+ const a = s.autoUnfold.distance;
563
+ return !(a && P(o, a) === !1);
564
+ }).sort((o, s) => o.distance - s.distance).findIndex((o) => o.id === this.id);
565
+ if (n === -1 || n <= ((e = i.autoUnfold.maxNumber) != null ? e : 1) - 1 === !1)
551
566
  return !1;
552
567
  }
553
568
  return i.autoUnfold.strategy !== "FoldWhenMove";
@@ -557,22 +572,22 @@ class ri {
557
572
  const i = this.centerPosition;
558
573
  if (!i)
559
574
  return;
560
- const { x: e, y: t, z: s } = i.project(this.five.camera);
561
- if (!(s > 1))
562
- return { x: e, y: t, z: s };
575
+ const { x: e, y: t, z: r } = i.project(this.five.camera);
576
+ if (!(r > 1))
577
+ return { x: e, y: t, z: r };
563
578
  }
564
579
  addObjectClickHandler(i, e, t) {
565
580
  if (!e || !this.plugin.domEvents)
566
581
  return () => {
567
582
  };
568
- const s = () => !(!i.currentVisible || i.loading), r = (f) => {
569
- if (!s())
583
+ const r = () => !(!i.currentVisible || i.loading), n = (l) => {
584
+ if (!r())
570
585
  return !1;
571
- t(f.origDomEvent);
586
+ t(l.origDomEvent);
572
587
  };
573
- return this.plugin.domEvents.addEventListener(e, "click", r), () => {
574
- var f;
575
- (f = this.plugin.domEvents) == null || f.removeEventListener(e, "click", r);
588
+ return this.plugin.domEvents.addEventListener(e, "click", n), () => {
589
+ var l;
590
+ (l = this.plugin.domEvents) == null || l.removeEventListener(e, "click", n);
576
591
  };
577
592
  }
578
593
  whyHide() {
@@ -583,7 +598,7 @@ class ri {
583
598
  return { reason: `plugin.state.visible is ${this.plugin.state.visible}` };
584
599
  if (!this.enabled)
585
600
  return { reason: `tag ${this.id} enabled is: ${this.enabled}` };
586
- const i = U(p({}, this.computeVisible()), {
601
+ const i = M(p({}, this.computeVisible()), {
587
602
  tagInstance: this
588
603
  });
589
604
  return i.value !== this.state.visible ? { reason: "插件故障,请联系维护人员, err: 0", info: i } : this.state.visible ? { reason: "应该是能看见才对", info: i } : i.value === !0 ? { reason: "插件故障,请联系维护人员, err: 1", info: i } : { reason: (e = i.reason.type) != null ? e : i.reason, info: i };