@realsee/dnalogel 3.0.0-0 → 3.0.0-10

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 (435) hide show
  1. package/dist/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +1 -1
  2. package/dist/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +0 -4
  3. package/dist/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +2 -6
  4. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
  5. package/dist/index.cjs.js +55 -55
  6. package/dist/index.js +5085 -5082
  7. package/dist/index.umd.js +49 -49
  8. package/dist/shared-utils/index.d.ts +1 -1
  9. package/dist/shared-utils/nearlyEqual.d.ts +7 -0
  10. package/dist/shared-utils/three/getNormal.d.ts +2 -0
  11. package/dist/shared-utils/url/getUrl.d.ts +4 -0
  12. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +30 -30
  13. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +31 -31
  14. package/docs/classes/CSS3DRender.html +30 -30
  15. package/docs/classes/CruisePluginController.html +25 -25
  16. package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
  17. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +34 -34
  18. package/docs/classes/Magnifier.html +19 -19
  19. package/docs/classes/ModelRoomLabelController.html +10 -10
  20. package/docs/classes/Object3DHelperController.html +24 -24
  21. package/docs/classes/PaintBrush.html +14 -14
  22. package/docs/classes/PanoMeasurePluginLine.html +26 -26
  23. package/docs/classes/PanoMeasurePluginModel.html +26 -26
  24. package/docs/classes/PanoMeasurePluginPoint.html +10 -10
  25. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  26. package/docs/classes/PanoTagPluginController.html +45 -45
  27. package/docs/classes/Util.BetterTween.html +8 -8
  28. package/docs/classes/Util.Interval.html +11 -11
  29. package/docs/classes/Util.LineSegments.html +7 -7
  30. package/docs/classes/Util.Magnifier.html +19 -19
  31. package/docs/classes/Util.Object3D.html +7 -7
  32. package/docs/classes/Util.PointDomHelper.html +10 -10
  33. package/docs/classes/Util.PointHelper.html +10 -10
  34. package/docs/classes/Util.PointSelectorHelper.html +15 -15
  35. package/docs/classes/Util.Rectangle.html +12 -12
  36. package/docs/enums/CameraMovementEffect.html +6 -6
  37. package/docs/enums/ContentType.html +19 -19
  38. package/docs/enums/DIRECTION.html +8 -8
  39. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
  40. package/docs/enums/DimensionType.html +6 -6
  41. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
  42. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
  43. package/docs/enums/PaintBrushTypeEnum.html +7 -7
  44. package/docs/enums/PointType.html +6 -6
  45. package/docs/enums/Rotation.html +7 -7
  46. package/docs/functions/AreaMakerPlugin.html +4 -4
  47. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  48. package/docs/functions/CameraMovementPlugin.html +4 -4
  49. package/docs/functions/CruisePlugin.html +4 -4
  50. package/docs/functions/CurrentPanoImagePlugin.html +4 -4
  51. package/docs/functions/GuideLinePlugin.html +4 -4
  52. package/docs/functions/ItemLabelPlugin.html +4 -4
  53. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  54. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  55. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  56. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  57. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  58. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  59. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  60. package/docs/functions/ModelViewPlugin.html +4 -4
  61. package/docs/functions/Object3DHelperPlugin.html +4 -4
  62. package/docs/functions/PanoCompassPlugin.html +4 -4
  63. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  64. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  65. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  66. package/docs/functions/PanoMeasurePlugin.html +4 -4
  67. package/docs/functions/PanoRulerPlugin.html +4 -4
  68. package/docs/functions/PanoRulerProPlugin.html +4 -4
  69. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  70. package/docs/functions/PanoTagPlugin.html +4 -4
  71. package/docs/functions/PanoVideoPlugin.html +4 -4
  72. package/docs/functions/PipelinePlugin.html +4 -4
  73. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  74. package/docs/functions/Util.absoluteUrl.html +4 -4
  75. package/docs/functions/Util.checkFiveModelLoaded.html +4 -4
  76. package/docs/functions/Util.equal.html +4 -4
  77. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  78. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  79. package/docs/functions/Util.getFrameTime.html +4 -4
  80. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  81. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  82. package/docs/functions/Util.isAbsoluteURL.html +4 -4
  83. package/docs/functions/Util.isModelLike.html +4 -4
  84. package/docs/functions/Util.isNil.html +4 -4
  85. package/docs/functions/Util.isPanoramaLike.html +4 -4
  86. package/docs/functions/Util.nextFrame.html +4 -4
  87. package/docs/functions/Util.notNil.html +4 -4
  88. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  89. package/docs/functions/Util.tweenProgress.html +4 -4
  90. package/docs/functions/Util.uuid.html +4 -4
  91. package/docs/functions/pluginFlag.html +4 -4
  92. package/docs/index.html +4 -4
  93. package/docs/interfaces/AddTagConfig.html +5 -5
  94. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +5 -5
  95. package/docs/interfaces/AreaMakerPluginType.Config.html +5 -5
  96. package/docs/interfaces/AreaMakerPluginType.EventMap.html +14 -14
  97. package/docs/interfaces/AreaMakerPluginType.Params.html +6 -6
  98. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +8 -8
  99. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +7 -7
  100. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +5 -5
  101. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +5 -5
  102. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +5 -5
  103. package/docs/interfaces/AreaMakerPluginType.State.html +7 -7
  104. package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
  105. package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
  106. package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
  107. package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
  108. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
  109. package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
  110. package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
  111. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
  112. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
  113. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
  114. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -5
  115. package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
  116. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +10 -10
  117. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +11 -11
  118. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +6 -6
  119. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +5 -5
  120. package/docs/interfaces/CurrentPanoImagePluginType.State.html +7 -7
  121. package/docs/interfaces/EventMap.html +14 -14
  122. package/docs/interfaces/FloorplanBounding.html +7 -7
  123. package/docs/interfaces/FloorplanData.html +9 -9
  124. package/docs/interfaces/FloorplanEntrance.html +10 -10
  125. package/docs/interfaces/FloorplanExtraObject.html +9 -9
  126. package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
  127. package/docs/interfaces/FloorplanFloorData.html +8 -8
  128. package/docs/interfaces/FloorplanImagePosition.html +6 -6
  129. package/docs/interfaces/FloorplanObserver.html +8 -8
  130. package/docs/interfaces/FloorplanOutlineItem.html +8 -8
  131. package/docs/interfaces/FloorplanPosition.html +6 -6
  132. package/docs/interfaces/FloorplanRoomItem.html +12 -12
  133. package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
  134. package/docs/interfaces/FloorplanServerBounding.html +7 -7
  135. package/docs/interfaces/FloorplanServerComputedData.html +9 -9
  136. package/docs/interfaces/FloorplanServerData.html +6 -6
  137. package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
  138. package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
  139. package/docs/interfaces/FloorplanServerEntrance.html +10 -10
  140. package/docs/interfaces/FloorplanServerFloorData.html +8 -8
  141. package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
  142. package/docs/interfaces/FloorplanServerObserver.html +8 -8
  143. package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
  144. package/docs/interfaces/FloorplanServerPosition.html +6 -6
  145. package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
  146. package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
  147. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
  148. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
  149. package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
  150. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
  151. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
  152. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
  153. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
  154. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
  155. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
  156. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
  157. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
  158. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -5
  159. package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
  160. package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
  161. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
  162. package/docs/interfaces/HelperOffset.html +7 -7
  163. package/docs/interfaces/ImagePlaneGroup.html +5 -5
  164. package/docs/interfaces/ItemLabelPluginData.html +5 -5
  165. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
  166. package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
  167. package/docs/interfaces/MinMax.html +6 -6
  168. package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
  169. package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
  170. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
  171. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
  172. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
  173. package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
  174. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
  175. package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
  176. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
  177. package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
  178. package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
  179. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
  180. package/docs/interfaces/ModelViewPluginExportType.html +10 -10
  181. package/docs/interfaces/Object3DHelperState.html +7 -7
  182. package/docs/interfaces/ObjectHelperControllers.html +8 -8
  183. package/docs/interfaces/PaintBrushAction.html +11 -11
  184. package/docs/interfaces/PaintBrushConfigs.html +11 -11
  185. package/docs/interfaces/PaintBrushState.html +9 -9
  186. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
  187. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  188. package/docs/interfaces/PanoMeasureParameterType.html +15 -15
  189. package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
  190. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
  191. package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
  192. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
  193. package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
  194. package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
  195. package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
  196. package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
  197. package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
  198. package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
  199. package/docs/interfaces/PanoRulerProPluginState.html +7 -7
  200. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  201. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  202. package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
  203. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
  204. package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
  205. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
  206. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
  207. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
  208. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
  209. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
  210. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
  211. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
  212. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  213. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
  214. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
  215. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
  216. package/docs/interfaces/Point.html +7 -7
  217. package/docs/interfaces/Room.html +8 -8
  218. package/docs/interfaces/RoomInfo.html +6 -6
  219. package/docs/interfaces/RoomLabel.html +13 -13
  220. package/docs/interfaces/RoomRules.html +4 -4
  221. package/docs/interfaces/Rooms.html +4 -4
  222. package/docs/interfaces/Scissor.html +8 -8
  223. package/docs/interfaces/State.html +7 -7
  224. package/docs/interfaces/TagCacheInterface.html +11 -11
  225. package/docs/interfaces/TagConfig.html +15 -15
  226. package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
  227. package/docs/interfaces/TagIconUrl.html +11 -11
  228. package/docs/interfaces/TagObjectGroup.html +5 -5
  229. package/docs/interfaces/TagStyle.html +5 -5
  230. package/docs/interfaces/Tags.html +8 -8
  231. package/docs/interfaces/TemporaryState.html +5 -5
  232. package/docs/interfaces/Util.MagnifierParameter.html +10 -10
  233. package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
  234. package/docs/interfaces/Util.PointIntersection.html +7 -7
  235. package/docs/modules/AreaMakerPluginType.html +4 -4
  236. package/docs/modules/CruisePluginTypes.html +4 -4
  237. package/docs/modules/CurrentPanoImagePluginType.html +4 -4
  238. package/docs/modules/GuideLineItem.html +4 -4
  239. package/docs/modules/GuideLineModeItem.html +4 -4
  240. package/docs/modules/GuideLinePluginType.html +4 -4
  241. package/docs/modules/PanoVideoPluginType.html +4 -4
  242. package/docs/modules/Util.html +4 -4
  243. package/docs/modules.html +4 -4
  244. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +4 -4
  245. package/docs/types/AreaMakerPluginType.PluginData.html +4 -4
  246. package/docs/types/AreaMakerPluginType.ServerData.html +4 -4
  247. package/docs/types/ArrayPosition.html +4 -4
  248. package/docs/types/AudioAppearance.html +4 -4
  249. package/docs/types/AudioTagTypeConfigKey.html +4 -4
  250. package/docs/types/CSS3DRenderExportType.html +4 -4
  251. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  252. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  253. package/docs/types/ClassFunctionParameters.html +4 -4
  254. package/docs/types/Color.html +4 -4
  255. package/docs/types/ContentTypeConfigKey.html +4 -4
  256. package/docs/types/ContentTypeConfigKeySplit.html +4 -4
  257. package/docs/types/ContentTypeMap.html +4 -4
  258. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  259. package/docs/types/Create3DElementReturnType.html +4 -4
  260. package/docs/types/CruisePluginExportType.html +4 -4
  261. package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
  262. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
  263. package/docs/types/CurrentPanoImagePluginExportType.html +4 -4
  264. package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
  265. package/docs/types/DeprecatedTagProperty.html +4 -4
  266. package/docs/types/Direction-1.html +4 -4
  267. package/docs/types/Direction4.html +4 -4
  268. package/docs/types/ElementRenderer.html +4 -4
  269. package/docs/types/FloorplanRuleLabels.html +4 -4
  270. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  271. package/docs/types/GuideLinePluginExportType.html +4 -4
  272. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  273. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  274. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  275. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  276. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
  277. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  278. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  279. package/docs/types/HelperEventMap.html +4 -4
  280. package/docs/types/LoadTagConfig.html +4 -4
  281. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  282. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  283. package/docs/types/MediaData.html +4 -4
  284. package/docs/types/MediaStore.html +4 -4
  285. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  286. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  287. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  288. package/docs/types/ModelId.html +4 -4
  289. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  290. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  291. package/docs/types/MoveArgs.html +4 -4
  292. package/docs/types/MoveOpts.html +4 -4
  293. package/docs/types/Object3DHelperEventMap.html +4 -4
  294. package/docs/types/ObjectFit.html +4 -4
  295. package/docs/types/PaintBrushEventMap.html +4 -4
  296. package/docs/types/PanoCompassPluginData.html +4 -4
  297. package/docs/types/PanoCompassPluginExportType.html +4 -4
  298. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  299. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  300. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  301. package/docs/types/PanoIndex.html +4 -4
  302. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  303. package/docs/types/PanoMeasureReturnType.html +4 -4
  304. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  305. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  306. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  307. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  308. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  309. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
  310. package/docs/types/PipelinePluginParameterType.html +4 -4
  311. package/docs/types/PipelinePluginReturnType.html +4 -4
  312. package/docs/types/PlaneTag.html +4 -4
  313. package/docs/types/Point2DTag.html +4 -4
  314. package/docs/types/Point3DTag.html +4 -4
  315. package/docs/types/PointTag.html +4 -4
  316. package/docs/types/PointTagInstance.html +4 -4
  317. package/docs/types/Position.html +4 -4
  318. package/docs/types/RotateArgs.html +4 -4
  319. package/docs/types/RotateOpts.html +4 -4
  320. package/docs/types/RuleLabelsKey.html +4 -4
  321. package/docs/types/RuleLabelsValue.html +4 -4
  322. package/docs/types/StickType.html +4 -4
  323. package/docs/types/Tag.html +4 -4
  324. package/docs/types/Tag2D.html +4 -4
  325. package/docs/types/Tag3D.html +4 -4
  326. package/docs/types/TagConfigByKey.html +4 -4
  327. package/docs/types/TagContentType.html +4 -4
  328. package/docs/types/TagDimensionType.html +4 -4
  329. package/docs/types/TagElement.html +4 -4
  330. package/docs/types/TagEvents.html +4 -4
  331. package/docs/types/TagGLTFObject.html +4 -4
  332. package/docs/types/TagHooks.html +4 -4
  333. package/docs/types/TagId.html +4 -4
  334. package/docs/types/TagInstance.html +4 -4
  335. package/docs/types/TagPointType.html +4 -4
  336. package/docs/types/TagRendererMap.html +4 -4
  337. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  338. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  339. package/docs/types/WorkCode.html +4 -4
  340. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  341. package/docs/variables/PLUGIN.html +4 -4
  342. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  343. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  344. package/docs/variables/defaultGlobalConfig.html +4 -4
  345. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  346. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  347. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  348. package/libs/AreaMakerPlugin/Controller.js +5 -3
  349. package/libs/AreaMakerPlugin/index.js +5 -3
  350. package/libs/AreaMakerPlugin/utils/Item.js +9 -7
  351. package/libs/CSS3DRenderPlugin/Controller.js +5 -3
  352. package/libs/CSS3DRenderPlugin/index.js +8 -6
  353. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +1 -1
  354. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +9 -6
  355. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +0 -4
  356. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +23 -22
  357. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +2 -6
  358. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +44 -54
  359. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +4 -2
  360. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +4 -3
  361. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +11 -10
  362. package/libs/CruisePlugin/Controller.js +108 -104
  363. package/libs/CruisePlugin/index.js +10 -8
  364. package/libs/CurrentPanoImagePlugin/Controller.js +11 -9
  365. package/libs/CurrentPanoImagePlugin/index.js +6 -4
  366. package/libs/GuideLinePlugin/Controller.js +26 -24
  367. package/libs/GuideLinePlugin/GuideLineItem.js +7 -5
  368. package/libs/GuideLinePlugin/GuideLineModeItem.js +7 -5
  369. package/libs/GuideLinePlugin/index.js +12 -10
  370. package/libs/ModelTVVideoPlugin/Plugin.js +6 -4
  371. package/libs/ModelTVVideoPlugin/index.js +5 -3
  372. package/libs/Object3DHelperPlugin/Controller.js +5 -3
  373. package/libs/Object3DHelperPlugin/index.js +8 -6
  374. package/libs/PanoCompassPlugin/Controller.js +5 -3
  375. package/libs/PanoCompassPlugin/index.js +6 -4
  376. package/libs/PanoDoorLabelPlugin/BaseController.js +9 -7
  377. package/libs/PanoDoorLabelPlugin/Controller.js +5 -3
  378. package/libs/PanoDoorLabelPlugin/index.js +6 -4
  379. package/libs/PanoMeasurePlugin/Components/Controller0.js +5 -3
  380. package/libs/PanoMeasurePlugin/Components/Controller1.js +55 -53
  381. package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -3
  382. package/libs/PanoMeasurePlugin/Controller/WatchController.js +4 -2
  383. package/libs/PanoMeasurePlugin/Controller/index.js +5 -3
  384. package/libs/PanoMeasurePlugin/Model/area.js +4 -2
  385. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +25 -23
  386. package/libs/PanoMeasurePlugin/index.js +16 -14
  387. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +14 -12
  388. package/libs/PanoSpatialTagPlugin/Plugin.js +6 -4
  389. package/libs/PanoSpatialTagPlugin/index.js +3 -1
  390. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +4 -2
  391. package/libs/PanoTagPlugin/Components/Tag/index.js +185 -183
  392. package/libs/PanoTagPlugin/Components/TagContainer.js +36 -34
  393. package/libs/PanoTagPlugin/Components/TagItem.js +66 -64
  394. package/libs/PanoTagPlugin/controller/TagCache.js +5 -3
  395. package/libs/PanoTagPlugin/controller/TagComputer.js +36 -35
  396. package/libs/PanoTagPlugin/controller/TagRender.js +7 -5
  397. package/libs/PanoTagPlugin/controller/TagUtil.js +100 -98
  398. package/libs/PanoTagPlugin/controller/index.js +20 -18
  399. package/libs/PanoTagPlugin/index.js +16 -14
  400. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
  401. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +97 -99
  402. package/libs/PanoVideoPlugin/Controller.js +5 -3
  403. package/libs/PanoVideoPlugin/VideoMeshController.js +4 -2
  404. package/libs/PanoVideoPlugin/index.js +8 -6
  405. package/libs/PipelinePlugin/Controller.js +5 -3
  406. package/libs/PipelinePlugin/index.js +6 -4
  407. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +4 -2
  408. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +14 -12
  409. package/libs/PipelinePlugin/utils/Objects/Pipe.js +2 -0
  410. package/libs/base/BasePlugin.js +2 -2
  411. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +5 -3
  412. package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -4
  413. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -3
  414. package/libs/floorplan/ModelFloorplanPlugin/index.js +6 -4
  415. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +5 -3
  416. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +6 -4
  417. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +33 -31
  418. package/libs/floorplan/TopviewFloorplanPlugin/index.js +6 -4
  419. package/libs/floorplan/index.js +1 -0
  420. package/libs/index.js +121 -119
  421. package/libs/shared-utils/five/FiveDomEvents.js +30 -31
  422. package/libs/shared-utils/five/changeMode.js +11 -11
  423. package/libs/shared-utils/index.d.ts +1 -1
  424. package/libs/shared-utils/index.js +1 -1
  425. package/libs/shared-utils/logger.js +1 -1
  426. package/libs/shared-utils/nearlyEqual.d.ts +7 -0
  427. package/libs/shared-utils/nearlyEqual.js +9 -3
  428. package/libs/shared-utils/three/getNormal.d.ts +2 -0
  429. package/libs/shared-utils/three/getNormal.js +10 -0
  430. package/libs/shared-utils/url/getUrl.d.ts +4 -0
  431. package/libs/shared-utils/url/getUrl.js +7 -0
  432. package/package.json +2 -2
  433. /package/dist/shared-utils/{absoluteUrl.d.ts → url/absoluteUrl.d.ts} +0 -0
  434. /package/libs/shared-utils/{absoluteUrl.d.ts → url/absoluteUrl.d.ts} +0 -0
  435. /package/libs/shared-utils/{absoluteUrl.js → url/absoluteUrl.js} +0 -0
@@ -1,19 +1,19 @@
1
- var E = Object.defineProperty, $ = Object.defineProperties;
1
+ var $ = Object.defineProperty, E = Object.defineProperties;
2
2
  var L = Object.getOwnPropertyDescriptors;
3
3
  var k = Object.getOwnPropertySymbols;
4
4
  var _ = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
5
- var M = (v, e, i) => e in v ? E(v, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : v[e] = i, y = (v, e) => {
5
+ var M = (p, e, i) => e in p ? $(p, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : p[e] = i, y = (p, e) => {
6
6
  for (var i in e || (e = {}))
7
- _.call(e, i) && M(v, i, e[i]);
7
+ _.call(e, i) && M(p, i, e[i]);
8
8
  if (k)
9
9
  for (var i of k(e))
10
- z.call(e, i) && M(v, i, e[i]);
11
- return v;
12
- }, D = (v, e) => $(v, L(e));
13
- import * as F from "three";
10
+ z.call(e, i) && M(p, i, e[i]);
11
+ return p;
12
+ }, D = (p, e) => E(p, L(e));
13
+ import * as j from "three";
14
14
  import { is3DTag as O, isMediaModelTag as R } from "../utils/tag/tagCheck.js";
15
15
  import { getTagCenterPosition as I, getTagPosition as Z } from "../utils/tagPosition.js";
16
- import { checkRange as h } from "../utils/checkRange.js";
16
+ import { checkRange as g } from "../utils/checkRange.js";
17
17
  import { isPanoramaLike as b, isModelLike as H } from "../../shared-utils/five/mode.js";
18
18
  import "hammerjs";
19
19
  import "@realsee/five";
@@ -35,6 +35,7 @@ import "../../CSS3DRenderPlugin/utils/even.js";
35
35
  import "../../shared-utils/Subscribe.js";
36
36
  import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
37
37
  import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
38
+ import "../../shared-utils/three/getObjectVisible.js";
38
39
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
39
40
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
40
41
  import "../typings/tag/TagConfig.js";
@@ -44,7 +45,7 @@ import "../utils/planeNormal.js";
44
45
  import "../utils/normalPositionToPositions.js";
45
46
  import "./TagCache.js";
46
47
  import "../../base/BasePlugin.js";
47
- import "../../shared-utils/absoluteUrl.js";
48
+ import "../../shared-utils/url/absoluteUrl.js";
48
49
  import "../../vendor/svelte/store/index.js";
49
50
  import "../../vendor/svelte/internal/index.js";
50
51
  import "../../shared-utils/device.js";
@@ -56,12 +57,13 @@ import "../../shared-utils/three/loadVideoTexture.js";
56
57
  import "../Assets/Icon.js";
57
58
  import "../../shared-utils/three/getPositionsByObjectFit.js";
58
59
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
60
+ import "../../shared-utils/three/getNormal.js";
59
61
  import "../../shared-utils/five/FiveDomEvents.js";
60
- import "../../shared-utils/three/getObjectVisible.js";
61
62
  import "../utils/tag/adaptConfig.js";
62
63
  import "../../shared-utils/typescript/entries.js";
63
- const T = new F.Raycaster();
64
- class We extends q {
64
+ import "../../shared-utils/url/getUrl.js";
65
+ const T = new j.Raycaster();
66
+ class Ge extends q {
65
67
  constructor(e) {
66
68
  super(e);
67
69
  }
@@ -83,8 +85,9 @@ class We extends q {
83
85
  if (s.keep === "visible")
84
86
  return { value: !0, checkedList: o, reason: "config.keep is visible" };
85
87
  if (s.visibleFiveMode !== void 0) {
86
- let a = !1;
87
- if (Array.isArray(s.visibleFiveMode) ? a = s.visibleFiveMode.includes(n) : s.visibleFiveMode === "ModelLike" ? a = H(n) : s.visibleFiveMode === "PanoramaLike" ? a = !b(n) : s.visibleFiveMode === "all" ? a = !0 : typeof s.visibleFiveMode == "string" && (a = s.visibleFiveMode === n), a === !1)
88
+ const a = typeof s.visibleFiveMode == "function" ? s.visibleFiveMode(e) : s.visibleFiveMode;
89
+ let v = !1;
90
+ if (Array.isArray(a) ? v = a.includes(n) : a === "ModelLike" ? v = H(n) : a === "PanoramaLike" ? v = !b(n) : a === "all" ? v = !0 : typeof a == "string" && (v = a === n), v === !1)
88
91
  return {
89
92
  value: !1,
90
93
  checkedList: o,
@@ -111,7 +114,7 @@ class We extends q {
111
114
  }
112
115
  if (b(n) && s.visibleDistance !== void 0 && (o.push("visibleDistance"), s.visibleDistance !== "unLimited")) {
113
116
  const a = this.getDistance(e);
114
- if (h(a, s.visibleDistance) === !1)
117
+ if (g(a, s.visibleDistance) === !1)
115
118
  return {
116
119
  value: !1,
117
120
  checkedList: o,
@@ -121,7 +124,7 @@ class We extends q {
121
124
  if (b(n) && s.angleRange && O(e)) {
122
125
  o.push("angleRange");
123
126
  const a = this.getAngle(e);
124
- if (h(a, s.angleRange) === !1)
127
+ if (g(a, s.angleRange) === !1)
125
128
  return { value: !1, checkedList: o, reason: `angle is not in angleRange. angle: ${a}, angleRange: ${s.angleRange}` };
126
129
  }
127
130
  if (s.intersectRaycaster !== !1 && (typeof s.intersectRaycaster != "object" || s.intersectRaycaster.enabled !== !1)) {
@@ -164,7 +167,7 @@ class We extends q {
164
167
  return !1;
165
168
  if (n.keep === "unfolded")
166
169
  return !0;
167
- if (n.unfoldDistance && h(this.getDistance(e), n.unfoldDistance) === !1)
170
+ if (n.unfoldDistance && g(this.getDistance(e), n.unfoldDistance) === !1)
168
171
  return !1;
169
172
  })();
170
173
  t.unfolded = d;
@@ -190,7 +193,7 @@ class We extends q {
190
193
  return;
191
194
  if (t.autoUnfold.strategy === "ScreenPostion") {
192
195
  const d = this.getTagProject(e);
193
- if (d && h(d.x, t.autoUnfold.autoUnfoldProjectX) === !1)
196
+ if (d && g(d.x, t.autoUnfold.autoUnfoldProjectX) === !1)
194
197
  return !1;
195
198
  }
196
199
  if (t.autoUnfold.strategy === "MinimumDistance") {
@@ -198,14 +201,14 @@ class We extends q {
198
201
  const f = this.getTagProject(r);
199
202
  if (!f)
200
203
  return !1;
201
- const { x: u, y: a, z: m } = f;
202
- return !(Math.abs(m) > 1 || Math.abs(u) > 1 || Math.abs(a) > 1);
204
+ const { x: u, y: a, z: v } = f;
205
+ return !(Math.abs(v) > 1 || Math.abs(u) > 1 || Math.abs(a) > 1);
203
206
  }).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: f }) => {
204
207
  var u, a;
205
208
  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");
206
209
  }).map((r) => D(y({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: f }) => {
207
210
  const u = f.autoUnfold.distance;
208
- return !(u && h(r, u) === !1);
211
+ return !(u && g(r, u) === !1);
209
212
  }).sort((r, f) => r.distance - f.distance).findIndex((r) => r.id === e.id);
210
213
  if (c === -1 || c <= ((n = t.autoUnfold.maxNumber) != null ? n : 1) - 1 === !1)
211
214
  return !1;
@@ -215,9 +218,7 @@ class We extends q {
215
218
  })() : void 0;
216
219
  }
217
220
  setTagZIndex(e) {
218
- return e.forEach((i) => {
219
- i.zIndex = this.calculateTagZIndex(i);
220
- });
221
+ console.log("🐶 ==> setTagZIndex:");
221
222
  }
222
223
  calculateTagZIndex(e) {
223
224
  const i = this.getDistance(e);
@@ -274,22 +275,22 @@ class We extends q {
274
275
  }
275
276
  /** 通过射线检测标签可用性 */
276
277
  getTagEnableByIntersect(e, i) {
277
- var s, r, f, u, a, m;
278
+ var s, r, f, u, a, v;
278
279
  const l = U(U((s = this.getTagConfig(e).visibleConfig) != null ? s : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, n = b(this.five.getCurrentState().mode) ? (r = this.five.work.observers[t]) == null ? void 0 : r.position : this.five.camera.position;
279
280
  if (n === void 0)
280
281
  return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
281
282
  const d = X(
282
283
  (() => {
283
- var g;
284
- const p = (g = l.checkPoints) != null ? g : "center";
285
- return p === "center" ? I(e) : p === "corner" ? Z(e) : Array.isArray(p) ? p : [];
284
+ var h;
285
+ const m = (h = l.checkPoints) != null ? h : "center";
286
+ return m === "center" ? I(e) : m === "corner" ? Z(e) : Array.isArray(m) ? m : [];
286
287
  })()
287
288
  );
288
289
  let o = 0, c = 0;
289
- for (const p of d) {
290
- const g = new F.Vector3().subVectors(p, n).normalize();
291
- T.set(n, g);
292
- const j = n.distanceTo(p), [P] = this.five.model.intersectRaycaster(T), x = (() => {
290
+ for (const m of d) {
291
+ const h = new j.Vector3().subVectors(m, n).normalize();
292
+ T.set(n, h);
293
+ const F = n.distanceTo(m), [P] = this.five.model.intersectRaycaster(T), x = (() => {
293
294
  if (!R(e))
294
295
  return;
295
296
  const B = this.tags.filter(R).map((A) => {
@@ -298,8 +299,8 @@ class We extends q {
298
299
  }).filter(N), [w] = T.intersectObjects(B, !0);
299
300
  return w;
300
301
  })(), S = (f = l.distanceAccuracy) != null ? f : 0.01;
301
- Math.min((u = P == null ? void 0 : P.distance) != null ? u : 1 / 0, (a = x == null ? void 0 : x.distance) != null ? a : 1 / 0) + S >= j ? o++ : c++;
302
- const V = (m = l.needPassed) != null ? m : 1;
302
+ 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 ? o++ : c++;
303
+ const V = (v = l.needPassed) != null ? v : 1;
303
304
  if (o >= V)
304
305
  return { value: !0 };
305
306
  }
@@ -326,5 +327,5 @@ class We extends q {
326
327
  }
327
328
  }
328
329
  export {
329
- We as TagComputer
330
+ Ge as TagComputer
330
331
  };
@@ -46,11 +46,13 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
46
46
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
47
47
  import "three/examples/jsm/renderers/CSS3DRenderer";
48
48
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
49
+ import "../../shared-utils/util.js";
49
50
  import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
50
51
  import "../../CSS3DRenderPlugin/utils/even.js";
51
52
  import "../../shared-utils/Subscribe.js";
52
53
  import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
53
54
  import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
55
+ import "../../shared-utils/three/getObjectVisible.js";
54
56
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
55
57
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
56
58
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
@@ -63,17 +65,16 @@ import "../utils/planeNormal.js";
63
65
  import "../utils/normalPositionToPositions.js";
64
66
  import "./TagCache.js";
65
67
  import "../../base/BasePlugin.js";
66
- import "../../shared-utils/absoluteUrl.js";
68
+ import "../../shared-utils/url/absoluteUrl.js";
67
69
  import "../../vendor/svelte/store/index.js";
68
70
  import "../../vendor/svelte/internal/index.js";
69
71
  import "../../shared-utils/device.js";
70
72
  import "../../shared-utils/five/FiveDomEvents.js";
71
- import "../../shared-utils/three/getObjectVisible.js";
72
73
  import "../utils/tag/adaptConfig.js";
73
74
  import "../../shared-utils/typescript/entries.js";
75
+ import "../../shared-utils/url/getUrl.js";
74
76
  import "../../shared-utils/five/getFloorIndex.js";
75
77
  import "../../shared-utils/safeObj.js";
76
- import "../../shared-utils/util.js";
77
78
  import "../../shared-utils/three/loadTexture.js";
78
79
  import "../../shared-utils/three/Quadrangle.js";
79
80
  import "../../shared-utils/math/pointIsRectangle.js";
@@ -81,6 +82,7 @@ import "../../shared-utils/three/loadVideoTexture.js";
81
82
  import "../Assets/Icon.js";
82
83
  import "../../shared-utils/three/getPositionsByObjectFit.js";
83
84
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
85
+ import "../../shared-utils/three/getNormal.js";
84
86
  import "../Components/TagItem.js";
85
87
  import "../utils/noTypecheck.js";
86
88
  import "../Components/Common/TagPoint.js";
@@ -155,7 +157,7 @@ import "../../CSS3DRenderPlugin/Controller.js";
155
157
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
156
158
  import "@realsee/five/gltf-loader";
157
159
  const B = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map();
158
- class pi extends O {
160
+ class hi extends O {
159
161
  constructor(t) {
160
162
  super(t);
161
163
  b(this, "group", new R());
@@ -462,5 +464,5 @@ class pi extends O {
462
464
  }
463
465
  }
464
466
  export {
465
- pi as TagRender
467
+ hi as TagRender
466
468
  };
@@ -1,49 +1,52 @@
1
- var z = Object.defineProperty, H = Object.defineProperties;
2
- var J = Object.getOwnPropertyDescriptors;
3
- var F = Object.getOwnPropertySymbols;
4
- var _ = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
5
- var k = (a, r, e) => r in a ? z(a, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[r] = e, C = (a, r) => {
1
+ var U = Object.defineProperty, X = Object.defineProperties;
2
+ var q = Object.getOwnPropertyDescriptors;
3
+ var R = Object.getOwnPropertySymbols;
4
+ var K = Object.prototype.hasOwnProperty, Q = Object.prototype.propertyIsEnumerable;
5
+ var w = (a, r, e) => r in a ? U(a, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[r] = e, C = (a, r) => {
6
6
  for (var e in r || (r = {}))
7
- _.call(r, e) && k(a, e, r[e]);
8
- if (F)
9
- for (var e of F(r))
10
- U.call(r, e) && k(a, e, r[e]);
7
+ K.call(r, e) && w(a, e, r[e]);
8
+ if (R)
9
+ for (var e of R(r))
10
+ Q.call(r, e) && w(a, e, r[e]);
11
11
  return a;
12
- }, L = (a, r) => H(a, J(r));
13
- var d = (a, r, e) => (k(a, typeof r != "symbol" ? r + "" : r, e), e);
14
- import { defaultGlobalConfig as X } from "../typings/tag/TagConfig.js";
15
- import { objectAssignDeepExports as b } from "../../vendor/object-assign-deep/objectAssignDeep.js";
16
- import * as q from "three";
17
- import { DefaultConfig as K } from "../tag.config.js";
18
- import { anyPositionToVector3 as Q, arrayPositionToVector3 as w } from "../../shared-utils/positionToVector3.js";
19
- import { planeNormal as E } from "../utils/planeNormal.js";
20
- import { getTagCenterPosition as R } from "../utils/tagPosition.js";
21
- import { normalPositionToPositions as Y } from "../utils/normalPositionToPositions.js";
22
- import { TagCache as Z } from "./TagCache.js";
23
- import { writable as ee } from "../../vendor/svelte/store/index.js";
24
- import { isIOSWX as ie } from "../../shared-utils/device.js";
25
- import { Five as te } from "@realsee/five";
26
- import { isMediaPlaneTag as oe, isMediaModelTag as x, isPlaneTag as ne, isPoint3DTag as re } from "../utils/tag/tagCheck.js";
27
- import { VideoPlane as se } from "../utils/model/mediaPlane.js";
28
- import { FiveDomEvents as fe } from "../../shared-utils/five/FiveDomEvents.js";
29
- import B from "../utils/tag/adaptConfig.js";
30
- import { isPanoramaLike as W, isModelLike as N } from "../../shared-utils/five/mode.js";
12
+ }, B = (a, r) => X(a, q(r));
13
+ var d = (a, r, e) => (w(a, typeof r != "symbol" ? r + "" : r, e), e);
14
+ import { defaultGlobalConfig as Y } from "../typings/tag/TagConfig.js";
15
+ import { objectAssignDeepExports as P } from "../../vendor/object-assign-deep/objectAssignDeep.js";
16
+ import * as Z from "three";
17
+ import { DefaultConfig as ee } from "../tag.config.js";
18
+ import { anyPositionToVector3 as ie, arrayPositionToVector3 as E } from "../../shared-utils/positionToVector3.js";
19
+ import { planeNormal as W } from "../utils/planeNormal.js";
20
+ import { getTagCenterPosition as N } from "../utils/tagPosition.js";
21
+ import { normalPositionToPositions as te } from "../utils/normalPositionToPositions.js";
22
+ import { TagCache as oe } from "./TagCache.js";
23
+ import { writable as ne } from "../../vendor/svelte/store/index.js";
24
+ import { isIOSWX as re } from "../../shared-utils/device.js";
25
+ import { Five as se } from "@realsee/five";
26
+ import { isMediaPlaneTag as fe, isMediaModelTag as G, isPlaneTag as ae, isPoint3DTag as ce } from "../utils/tag/tagCheck.js";
27
+ import { VideoPlane as le } from "../utils/model/mediaPlane.js";
28
+ import { FiveDomEvents as de } from "../../shared-utils/five/FiveDomEvents.js";
29
+ import _ from "../utils/tag/adaptConfig.js";
30
+ import { isPanoramaLike as j, isModelLike as $ } from "../../shared-utils/five/mode.js";
31
31
  import "hammerjs";
32
32
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
33
33
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
34
34
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
35
- import { entries as G } from "../../shared-utils/typescript/entries.js";
35
+ import { entries as z } from "../../shared-utils/typescript/entries.js";
36
+ import { getUrlExt as H } from "../../shared-utils/url/getUrl.js";
36
37
  import "../../shared-utils/three/centerPoint.js";
37
38
  import "../../base/BasePlugin.js";
38
39
  import "../../shared-utils/Subscribe.js";
39
- import "../../shared-utils/absoluteUrl.js";
40
+ import "../../shared-utils/url/absoluteUrl.js";
40
41
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
41
42
  import "three/examples/jsm/renderers/CSS3DRenderer";
42
43
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
44
+ import "../../shared-utils/util.js";
43
45
  import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
44
46
  import "../../CSS3DRenderPlugin/utils/even.js";
45
47
  import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
46
48
  import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
49
+ import "../../shared-utils/three/getObjectVisible.js";
47
50
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
48
51
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
49
52
  import "../../vendor/svelte/internal/index.js";
@@ -54,13 +57,13 @@ import "../../shared-utils/three/loadVideoTexture.js";
54
57
  import "../Assets/Icon.js";
55
58
  import "../../shared-utils/three/getPositionsByObjectFit.js";
56
59
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
57
- import "../../shared-utils/three/getObjectVisible.js";
58
- class Ye extends Z {
60
+ import "../../shared-utils/three/getNormal.js";
61
+ class ri extends oe {
59
62
  constructor(e) {
60
63
  super(e);
61
64
  d(this, "tags", []);
62
- d(this, "config", K);
63
- d(this, "mediaStore", ee({
65
+ d(this, "config", ee);
66
+ d(this, "mediaStore", ne({
64
67
  currentMediaElement: null
65
68
  }));
66
69
  /** css3DRenderPlugin */
@@ -71,10 +74,10 @@ class Ye extends Z {
71
74
  resizeObserverDisposerAdding: !1,
72
75
  css3DRenderDisposer: /* @__PURE__ */ new Map()
73
76
  });
74
- d(this, "domEvents", new fe(this.five));
77
+ d(this, "domEvents", new de(this.five));
75
78
  d(this, "mouseInfo");
76
79
  d(this, "loadVideoFirstFrame", () => {
77
- ie && this.hooks.emit("loadVideoFirstFrame");
80
+ re && this.hooks.emit("loadVideoFirstFrame");
78
81
  });
79
82
  d(this, "preventWhenMouseDown", () => {
80
83
  var e;
@@ -84,7 +87,7 @@ class Ye extends Z {
84
87
  this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.mediaStore.subscribe(({ currentMediaElement: i }) => {
85
88
  this.tags.forEach((o) => {
86
89
  var t;
87
- if (o.mediaPlane instanceof se && i !== o.mediaPlane.videoInstance) {
90
+ if (o.mediaPlane instanceof le && i !== o.mediaPlane.videoInstance) {
88
91
  if (!((t = o.mediaPlane.videoInstance) != null && t.src) || i === o.mediaPlane.videoInstance)
89
92
  return;
90
93
  o.mediaPlane.pause();
@@ -122,11 +125,12 @@ class Ye extends Z {
122
125
  }
123
126
  updateTagConfig() {
124
127
  this.clearCache(), this.tags.forEach((e) => {
125
- var t;
128
+ var o;
126
129
  const i = this.getTagConfig(e, { useCache: !1 });
127
- e.config = i;
128
- const o = JSON.parse(JSON.stringify(e.data));
129
- e.data = (t = i.initialData) != null && t.important ? b(e.data, o, i.initialData) : b(e.data, i.initialData, o);
130
+ if (e.config = i, e.config.initialData) {
131
+ const t = JSON.parse(JSON.stringify(e.data));
132
+ e.data = (o = i.initialData) != null && o.important ? P(e.data, t, i.initialData) : P(e.data, i.initialData, t);
133
+ }
130
134
  });
131
135
  }
132
136
  can(e, i) {
@@ -156,11 +160,15 @@ class Ye extends Z {
156
160
  return;
157
161
  const t = e.data.mediaData;
158
162
  if (!(!t || t.length === 0) && o.renderType === "Mesh") {
159
- if (oe(e)) {
160
- if (t.length === 1 && (t[0].type === "Image" || t[0].type === "Video"))
161
- return "Mesh";
162
- } else if (x(e))
163
- return t.length === 1 && t[0].type === "Image" ? "Mesh" : "BehindDom";
163
+ if (fe(e)) {
164
+ if (t.length === 1) {
165
+ if (t[0].type === "Video")
166
+ return "Mesh";
167
+ if (t[0].type === "Image")
168
+ return H(t[0].url) === "gif" ? "Dom" : "Mesh";
169
+ }
170
+ } else if (G(e))
171
+ return t.length === 1 && t[0].type === "Image" ? H(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
164
172
  }
165
173
  })();
166
174
  return i != null ? i : "Dom";
@@ -180,44 +188,44 @@ class Ye extends Z {
180
188
  const f = (n = (s = this.five.work) == null ? void 0 : s.observers[o]) == null ? void 0 : n.position;
181
189
  if (f === void 0)
182
190
  throw new Error(`getAngle(): observerPosition is ${f}`);
183
- const l = (() => e.stickType === "3DPoint" ? Q(e.normal) : E(e.position))();
184
- if (!l)
191
+ const u = (() => e.stickType === "3DPoint" ? ie(e.normal) : W(e.position))();
192
+ if (!u)
185
193
  return;
186
- const g = R(e);
194
+ const g = N(e);
187
195
  if (!g)
188
196
  return;
189
- const u = new q.Vector3().copy(f).sub(g), v = l.angleTo(u) * 180 / Math.PI;
190
- return t.angle = v, t.angle;
197
+ const l = new Z.Vector3().copy(f).sub(g), T = u.angleTo(l) * 180 / Math.PI;
198
+ return t.angle = T, t.angle;
191
199
  }
192
200
  }
193
201
  /**
194
202
  * @description: 获取距离
195
203
  */
196
204
  getDistance(e, i) {
197
- var l, g;
198
- const o = C(C({}, this.five.getCurrentState()), i), { panoIndex: t, mode: s } = o, n = W(s) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
205
+ var u, g;
206
+ const o = C(C({}, this.five.getCurrentState()), i), { panoIndex: t, mode: s } = o, n = j(s) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
199
207
  if ((n == null ? void 0 : n.distance) !== void 0)
200
208
  return n.distance;
201
- const f = R(e);
209
+ const f = N(e);
202
210
  if (!f)
203
211
  return -1;
204
- if (W(s)) {
205
- const u = (g = (l = this.five.work) == null ? void 0 : l.observers[t]) == null ? void 0 : g.position;
206
- if (u === void 0)
212
+ if (j(s)) {
213
+ const l = (g = (u = this.five.work) == null ? void 0 : u.observers[t]) == null ? void 0 : g.position;
214
+ if (l === void 0)
207
215
  return -1;
208
- const v = u.distanceTo(f);
209
- return n && (n.distance = v), v;
216
+ const T = l.distanceTo(f);
217
+ return n && (n.distance = T), T;
210
218
  }
211
- if (N(s))
219
+ if ($(s))
212
220
  return this.five.camera.position.distanceTo(f);
213
221
  }
214
222
  getPositions(e) {
215
- if (ne(e))
223
+ if (ae(e))
216
224
  return e.position;
217
- if (x(e))
225
+ if (G(e))
218
226
  return e.data.mediaPosition;
219
- if (re(e))
220
- return Y(this.five.camera.position, w(e.position), w(e.normal));
227
+ if (ce(e))
228
+ return te(this.five.camera.position, E(e.position), E(e.normal));
221
229
  }
222
230
  addObjectClickHandler(e, i, o) {
223
231
  if (!i || !this.domEvents)
@@ -235,11 +243,11 @@ class Ye extends Z {
235
243
  }
236
244
  getTagNormal(e) {
237
245
  if (e.normal)
238
- return w(e.normal);
246
+ return E(e.normal);
239
247
  if (e.stickType === "Plane")
240
- return E(e.position);
248
+ return W(e.position);
241
249
  if (e.stickType === "Model")
242
- return E(this.getPositions(e));
250
+ return W(this.getPositions(e));
243
251
  }
244
252
  // TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
245
253
  get filterPointTag() {
@@ -275,52 +283,46 @@ class Ye extends Z {
275
283
  * @description: 获取merge后的配置
276
284
  */
277
285
  calculateTagConfig(e, i) {
278
- var v, j, A;
279
- const o = (v = i == null ? void 0 : i.useCache) != null ? v : !0;
286
+ var A, I, S, O;
287
+ const o = (A = i == null ? void 0 : i.useCache) != null ? A : !0;
280
288
  if (!e)
281
- return (j = this.config.globalConfig) != null ? j : {};
282
- if (o && ((A = e.config) != null && A._isMerged))
289
+ return (I = this.config.globalConfig) != null ? I : {};
290
+ if (o && ((S = e.config) != null && S._isMerged))
283
291
  return e.config;
284
292
  const t = {}, s = {}, n = {};
285
293
  this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([p, h]) => {
286
- var I, O;
287
- const c = p, D = c.split("-"), S = p.startsWith("["), y = S ? D[0].slice(1, -1) : void 0, T = S ? D.slice(1) : D, M = y ? ["PanoramaLike", "ModelLike"].includes(y) ? (I = s[y]) != null ? I : s[y] = {} : (O = n[y]) != null ? O : n[y] = {} : t;
294
+ var F, L;
295
+ const c = p, k = c.split("-"), V = p.startsWith("["), y = V ? k[0].slice(1, -1) : void 0, v = V ? k.slice(1) : k, M = y ? ["PanoramaLike", "ModelLike"].includes(y) ? (F = s[y]) != null ? F : s[y] = {} : (L = n[y]) != null ? L : n[y] = {} : t;
288
296
  if (!M[c]) {
289
- if (T.length === 0 && (M[c] = h), T.length === 1) {
290
- const [m] = T;
297
+ if (v.length === 0 && (M[c] = h), v.length === 1) {
298
+ const [m] = v;
291
299
  (e.contentType === m || m === "Any") && (M[c] = h);
292
300
  }
293
- if (T.length === 2) {
294
- const [m = "Any", P = "Any"] = T;
295
- m === "Mixin" && e.contentType === P && (M[c] = h), (e.stickType === m || m === "Any") && (e.contentType === P || P === "Any") && (M[c] = h);
301
+ if (v.length === 2) {
302
+ const [m = "Any", b = "Any"] = v;
303
+ m === "Mixin" && e.contentType === b && (M[c] = h), (e.stickType === m || m === "Any") && (e.contentType === b || b === "Any") && (M[c] = h);
296
304
  }
297
- if (T.length === 3) {
298
- const [m = "Any", P, $] = T;
299
- if (P === "Audio" && e.contentType === "Audio") {
300
- const V = e;
301
- (V.stickType === m || m === "Any") && V.data.appearance === $ && (M[c] = h);
305
+ if (v.length === 3) {
306
+ const [m = "Any", b, J] = v;
307
+ if (b === "Audio" && e.contentType === "Audio") {
308
+ const x = e;
309
+ (x.stickType === m || m === "Any") && x.data.appearance === J && (M[c] = h);
302
310
  }
303
311
  }
304
312
  }
305
313
  });
306
- const f = b(
307
- {},
308
- X,
309
- this.config.globalConfig,
310
- ...Object.values(t),
311
- e.config
312
- ), l = {}, g = Object.values(te.Mode);
313
- G(s).forEach(([p, h]) => {
314
- g.forEach((c) => {
315
- (p === "PanoramaLike" && W(c) || p === "ModelLike" && N(c)) && (l[c] = b({}, f, ...Object.values(h)));
314
+ const f = (O = e.config) != null && O._isMerged ? e.initialConfig : e.config, u = P({}, Y, this.config.globalConfig, ...Object.values(t)), g = P({}, u, f), l = {}, T = Object.values(se.Mode);
315
+ z(s).forEach(([p, h]) => {
316
+ T.forEach((c) => {
317
+ (p === "PanoramaLike" && j(c) || p === "ModelLike" && $(c)) && (l[c] = P({}, u, ...Object.values(h), f));
316
318
  });
317
- }), G(n).forEach(([p, h]) => {
318
- l[p] = b({}, f, ...Object.values(h));
319
+ }), z(n).forEach(([p, h]) => {
320
+ l[p] = P({}, u, ...Object.values(h), f);
319
321
  });
320
- const u = L(C({}, f), { configWithFiveMode: l });
321
- return B(u, e), Object.values(l).forEach((p) => B(p, e)), u._isMerged = !0, u;
322
+ const D = B(C({}, g), { configWithFiveMode: l });
323
+ return _(D, e), Object.values(l).forEach((p) => _(p, e)), D._isMerged = !0, D;
322
324
  }
323
325
  }
324
326
  export {
325
- Ye as TagUtil
327
+ ri as TagUtil
326
328
  };