@realsee/dnalogel 2.13.2 → 2.14.0-dev.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 (376) hide show
  1. package/dist/CSS3DRenderPlugin/Controller.d.ts +1 -1
  2. package/dist/CSS3DRenderPlugin/index.d.ts +1 -1
  3. package/dist/CSS3DRenderPlugin/typing.d.ts +1 -1
  4. package/dist/CSS3DRenderPlugin/{CSS3DRender.d.ts → utils/three/CSS3DRender.d.ts} +9 -7
  5. package/dist/Object3DHelperPlugin/Controller.d.ts +1 -3
  6. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +9 -4
  7. package/dist/PanoTagPlugin/controller/TagRender.d.ts +5 -4
  8. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +12 -4
  9. package/dist/PanoTagPlugin/typings/controller.d.ts +4 -6
  10. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +3 -3
  11. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -9
  12. package/{libs/PanoTagPlugin/utils/model/imageModel.d.ts → dist/PanoTagPlugin/utils/model/imagePlane.d.ts} +3 -2
  13. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +5 -4
  14. package/dist/index.cjs.js +47 -47
  15. package/dist/index.js +5101 -5083
  16. package/dist/index.umd.js +43 -43
  17. package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -1
  18. package/{libs/shared-utils/Object3DHelper/utils → dist/shared-utils}/threex/domevents/index.d.ts +9 -7
  19. package/docs/assets/search.js +1 -1
  20. package/docs/classes/CSS3DRender.html +31 -31
  21. package/docs/classes/CruisePluginController.html +25 -25
  22. package/docs/classes/Magnifier.html +20 -20
  23. package/docs/classes/ModelRoomLabelController.html +11 -11
  24. package/docs/classes/Object3DHelperController.html +24 -31
  25. package/docs/classes/PaintBrush.html +15 -15
  26. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  27. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  28. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  29. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  30. package/docs/classes/PanoTagPluginController.html +90 -222
  31. package/docs/classes/Util.BetterTween.html +8 -8
  32. package/docs/classes/Util.FivePointSelector.html +12 -12
  33. package/docs/classes/Util.Interval.html +12 -12
  34. package/docs/classes/Util.Magnifier.html +17 -17
  35. package/docs/classes/Util.PointDomHelper.html +11 -11
  36. package/docs/classes/Util.PointHelper.html +11 -11
  37. package/docs/classes/Util.Rectangle.html +13 -13
  38. package/docs/enums/CameraMovementEffect.html +7 -7
  39. package/docs/enums/ContentType.html +19 -19
  40. package/docs/enums/DIRECTION.html +9 -9
  41. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  42. package/docs/enums/DimensionType.html +7 -7
  43. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  44. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  45. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  46. package/docs/enums/Rotation.html +8 -8
  47. package/docs/functions/CSS3DRenderPlugin.html +5 -8
  48. package/docs/functions/CameraMovementPlugin.html +5 -8
  49. package/docs/functions/CruisePlugin.html +5 -8
  50. package/docs/functions/GuideLinePlugin.html +5 -8
  51. package/docs/functions/ItemLabelPlugin.html +5 -8
  52. package/docs/functions/MapviewFloorplanPlugin.html +5 -8
  53. package/docs/functions/ModelChassisCompassPlugin.html +5 -8
  54. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -8
  55. package/docs/functions/ModelFloorplanPlugin.html +5 -8
  56. package/docs/functions/ModelItemLabelPlugin.html +5 -8
  57. package/docs/functions/ModelRoomLabelPlugin.html +5 -8
  58. package/docs/functions/ModelTVVideoPlugin.html +5 -8
  59. package/docs/functions/ModelViewPlugin.html +5 -8
  60. package/docs/functions/Object3DHelperPlugin.html +5 -8
  61. package/docs/functions/PanoCompassPlugin.html +5 -8
  62. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -8
  63. package/docs/functions/PanoDoorLabelPlugin.html +5 -8
  64. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -8
  65. package/docs/functions/PanoMeasurePlugin.html +5 -8
  66. package/docs/functions/PanoRulerPlugin.html +5 -8
  67. package/docs/functions/PanoRulerProPlugin.html +5 -8
  68. package/docs/functions/PanoSpatialTagPlugin.html +5 -8
  69. package/docs/functions/PanoTagPlugin.html +5 -8
  70. package/docs/functions/PanoVideoPlugin.html +5 -8
  71. package/docs/functions/TopviewFloorplanPlugin.html +5 -8
  72. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  73. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  74. package/docs/functions/Util.getFrameTime.html +5 -5
  75. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  76. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  77. package/docs/functions/Util.isNil.html +5 -5
  78. package/docs/functions/Util.nextFrame.html +5 -5
  79. package/docs/functions/Util.notNil.html +5 -5
  80. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  81. package/docs/functions/Util.tweenProgress.html +5 -5
  82. package/docs/functions/pluginFlag.html +5 -8
  83. package/docs/index.html +4 -7
  84. package/docs/interfaces/AddTagConfig.html +6 -6
  85. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  86. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  87. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  88. package/docs/interfaces/EventMap.html +15 -15
  89. package/docs/interfaces/FloorplanBounding.html +8 -8
  90. package/docs/interfaces/FloorplanData.html +10 -10
  91. package/docs/interfaces/FloorplanEntrance.html +11 -11
  92. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  93. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  94. package/docs/interfaces/FloorplanFloorData.html +9 -9
  95. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  96. package/docs/interfaces/FloorplanObserver.html +9 -9
  97. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  98. package/docs/interfaces/FloorplanPosition.html +7 -7
  99. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  100. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  101. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  102. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  103. package/docs/interfaces/FloorplanServerData.html +7 -7
  104. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  105. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  106. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  107. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  108. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  109. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  110. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  111. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  112. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  113. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  114. package/docs/interfaces/HelperOffset.html +8 -8
  115. package/docs/interfaces/ImagePlaneGroup.html +7 -7
  116. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  117. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  118. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  119. package/docs/interfaces/MinMax.html +7 -7
  120. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  121. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  122. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  123. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  124. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  125. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  126. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  127. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  128. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  129. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  130. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  131. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  132. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  133. package/docs/interfaces/Object3DHelperState.html +8 -8
  134. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  135. package/docs/interfaces/PaintBrushAction.html +12 -12
  136. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  137. package/docs/interfaces/PaintBrushState.html +10 -10
  138. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  139. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -8
  140. package/docs/interfaces/PanoMeasureParameterType.html +14 -14
  141. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  142. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  143. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  144. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  145. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  146. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  147. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  148. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  149. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  150. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  151. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  152. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -8
  153. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -8
  154. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  155. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  156. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  157. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  158. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  159. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  160. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  161. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  162. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  163. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  164. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  165. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  166. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  167. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  168. package/docs/interfaces/Point.html +8 -8
  169. package/docs/interfaces/Room.html +9 -9
  170. package/docs/interfaces/RoomInfo.html +7 -7
  171. package/docs/interfaces/RoomLabel.html +14 -14
  172. package/docs/interfaces/RoomRules.html +5 -8
  173. package/docs/interfaces/Rooms.html +5 -8
  174. package/docs/interfaces/Scissor.html +9 -9
  175. package/docs/interfaces/State.html +8 -8
  176. package/docs/interfaces/TagCacheInterface.html +12 -12
  177. package/docs/interfaces/TagConfig.html +11 -11
  178. package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
  179. package/docs/interfaces/TagIconUrl.html +11 -11
  180. package/docs/interfaces/TagObjectGroup.html +6 -6
  181. package/docs/interfaces/TagStyle.html +6 -6
  182. package/docs/interfaces/Tags.html +10 -10
  183. package/docs/interfaces/TemporaryState.html +6 -6
  184. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  185. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  186. package/docs/modules/PanoVideoPluginType.html +5 -5
  187. package/docs/modules/Util.html +5 -5
  188. package/docs/modules.html +4 -10
  189. package/docs/types/ArrayPosition.html +5 -8
  190. package/docs/types/AudioAppearance.html +5 -8
  191. package/docs/types/AudioTagTypeConfigKey.html +5 -8
  192. package/docs/types/CSS3DRenderExportType.html +5 -8
  193. package/docs/types/CSS3DRenderPluginExportType.html +5 -8
  194. package/docs/types/CSS3DRenderPluginParameterType.html +5 -8
  195. package/docs/types/ClassFunctionParameters.html +5 -8
  196. package/docs/types/Color.html +5 -8
  197. package/docs/types/ContentTypeConfigKey.html +5 -8
  198. package/docs/types/ContentTypeConfigKeySplit.html +5 -8
  199. package/docs/types/ContentTypeMap.html +5 -8
  200. package/docs/types/Create3DDomContainerReturnType.html +5 -8
  201. package/docs/types/Create3DElementReturnType.html +5 -8
  202. package/docs/types/CruisePluginExportType.html +5 -8
  203. package/docs/types/Direction-1.html +5 -8
  204. package/docs/types/Direction4.html +5 -8
  205. package/docs/types/FloorplanRuleLabels.html +5 -8
  206. package/docs/types/FloorplanServerRuleLabels.html +5 -8
  207. package/docs/types/GuideLinePluginExportType.html +5 -8
  208. package/docs/types/HelperEventMap.html +5 -8
  209. package/docs/types/LoadTagConfig.html +5 -8
  210. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -8
  211. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -8
  212. package/docs/types/MediaData.html +5 -8
  213. package/docs/types/MediaStore.html +5 -8
  214. package/docs/types/ModelElement.html +5 -8
  215. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -8
  216. package/docs/types/ModelFloorplanPluginParameterType.html +5 -8
  217. package/docs/types/ModelFloorplanPluginReturnType.html +5 -8
  218. package/docs/types/ModelRoomLabelPluginParameters.html +5 -8
  219. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -8
  220. package/docs/types/MoveArgs.html +5 -8
  221. package/docs/types/MoveOpts.html +5 -8
  222. package/docs/types/Object3DHelperEventMap.html +5 -8
  223. package/docs/types/ObjectFit.html +5 -8
  224. package/docs/types/PaintBrushEventMap.html +5 -8
  225. package/docs/types/PanoCompassPluginData.html +5 -8
  226. package/docs/types/PanoCompassPluginExportType.html +5 -8
  227. package/docs/types/PanoCompassPluginParameterType.html +5 -8
  228. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -8
  229. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -8
  230. package/docs/types/PanoIndex.html +5 -8
  231. package/docs/types/PanoMeasurePluginEvent.html +5 -8
  232. package/docs/types/PanoMeasureReturnType.html +5 -8
  233. package/docs/types/PanoSpatialTagPluginId.html +5 -8
  234. package/docs/types/PanoTagPluginExportInterface.html +5 -8
  235. package/docs/types/PanoTagPluginParamsInterface.html +5 -8
  236. package/docs/types/PanoVideoPluginParameterType.html +5 -8
  237. package/docs/types/PanoVideoPluginReturnType.html +5 -8
  238. package/docs/types/PlaneTag.html +5 -8
  239. package/docs/types/PlaneTagElement.html +5 -8
  240. package/docs/types/Point2DElement.html +5 -8
  241. package/docs/types/Point2DTag.html +5 -8
  242. package/docs/types/Point3DElement.html +5 -8
  243. package/docs/types/Point3DTag.html +5 -8
  244. package/docs/types/PointTag.html +5 -8
  245. package/docs/types/PointTagElement.html +5 -8
  246. package/docs/types/Position.html +5 -8
  247. package/docs/types/RotateArgs.html +5 -8
  248. package/docs/types/RotateOpts.html +5 -8
  249. package/docs/types/RuleLabelsKey.html +5 -8
  250. package/docs/types/RuleLabelsValue.html +5 -8
  251. package/docs/types/StickType.html +5 -8
  252. package/docs/types/Tag.html +6 -9
  253. package/docs/types/Tag2D.html +5 -8
  254. package/docs/types/Tag3D.html +5 -8
  255. package/docs/types/TagContentType.html +5 -8
  256. package/docs/types/TagDimensionType.html +5 -8
  257. package/docs/types/TagElement.html +6 -9
  258. package/docs/types/TagEvents.html +5 -8
  259. package/docs/types/TagGLTFObject.html +5 -8
  260. package/docs/types/TagHooks.html +5 -8
  261. package/docs/types/TagIconSize.html +5 -8
  262. package/docs/types/TagId.html +5 -8
  263. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -8
  264. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -8
  265. package/docs/types/WorkCode.html +5 -8
  266. package/docs/variables/FLOOR_TYPE_MAP.html +5 -8
  267. package/docs/variables/PLUGIN.html +6 -9
  268. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -8
  269. package/docs/variables/ROOM_TYPE_MAP.html +5 -8
  270. package/docs/variables/itemLabelPluginServerParams.html +5 -8
  271. package/docs/variables/modelItemLabelPluginServerParams.html +5 -8
  272. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -8
  273. package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -1
  274. package/libs/CSS3DRenderPlugin/Controller.js +2 -4
  275. package/libs/CSS3DRenderPlugin/index.d.ts +1 -1
  276. package/libs/CSS3DRenderPlugin/index.js +1 -1
  277. package/libs/CSS3DRenderPlugin/typing.d.ts +1 -1
  278. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +21 -21
  279. package/libs/CSS3DRenderPlugin/{CSS3DRender.d.ts → utils/three/CSS3DRender.d.ts} +9 -7
  280. package/libs/CSS3DRenderPlugin/{CSS3DRender.js → utils/three/CSS3DRender.js} +13 -13
  281. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +11 -11
  282. package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
  283. package/libs/ModelTVVideoPlugin/index.js +1 -1
  284. package/libs/Object3DHelperPlugin/Controller.d.ts +1 -3
  285. package/libs/Object3DHelperPlugin/Controller.js +50 -52
  286. package/libs/Object3DHelperPlugin/index.js +3 -4
  287. package/libs/PanoCompassPlugin/Controller.js +1 -1
  288. package/libs/PanoCompassPlugin/index.js +1 -1
  289. package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
  290. package/libs/PanoSpatialTagPlugin/index.js +1 -1
  291. package/libs/PanoTagPlugin/Archive/deprecated.d.ts +7 -0
  292. package/libs/PanoTagPlugin/Archive/deprecated.js +4 -0
  293. package/libs/PanoTagPlugin/Archive/index.d.ts +1 -0
  294. package/libs/PanoTagPlugin/Archive/index.js +4 -0
  295. package/libs/PanoTagPlugin/Components/Common/Audio.js +93 -97
  296. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +206 -205
  297. package/libs/PanoTagPlugin/Components/Common/Media.js +115 -109
  298. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +100 -100
  299. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +66 -68
  300. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +14 -15
  301. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +4 -2
  302. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +45 -45
  303. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +101 -106
  304. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +82 -84
  305. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +62 -61
  306. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +13 -13
  307. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +49 -48
  308. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +52 -51
  309. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +108 -115
  310. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +25 -36
  311. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +49 -50
  312. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +68 -70
  313. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +55 -54
  314. package/libs/PanoTagPlugin/Components/Tag/index.js +153 -163
  315. package/libs/PanoTagPlugin/Components/TagContainer.js +5 -3
  316. package/libs/PanoTagPlugin/Components/TagItem.js +80 -87
  317. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +9 -4
  318. package/libs/PanoTagPlugin/controller/TagComputer.js +80 -58
  319. package/libs/PanoTagPlugin/controller/TagRender.d.ts +5 -4
  320. package/libs/PanoTagPlugin/controller/TagRender.js +161 -153
  321. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +12 -4
  322. package/libs/PanoTagPlugin/controller/TagUtil.js +179 -77
  323. package/libs/PanoTagPlugin/controller/index.js +54 -49
  324. package/libs/PanoTagPlugin/index.js +16 -16
  325. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
  326. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
  327. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
  328. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
  329. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
  330. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
  331. package/libs/PanoTagPlugin/mocks/v1/mock1.js +122 -0
  332. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
  333. package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
  334. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
  335. package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
  336. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
  337. package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
  338. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
  339. package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
  340. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
  341. package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
  342. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
  343. package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
  344. package/libs/PanoTagPlugin/typings/controller.d.ts +4 -6
  345. package/libs/PanoTagPlugin/typings/index.js +7 -5
  346. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +3 -3
  347. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -9
  348. package/libs/PanoTagPlugin/typings/tag/Utils.js +5 -3
  349. package/libs/PanoTagPlugin/utils/addDebugPoints.js +6 -4
  350. package/libs/PanoTagPlugin/utils/index.js +35 -33
  351. package/{dist/PanoTagPlugin/utils/model/imageModel.d.ts → libs/PanoTagPlugin/utils/model/imagePlane.d.ts} +3 -2
  352. package/libs/PanoTagPlugin/utils/model/imagePlane.js +33 -0
  353. package/libs/PanoTagPlugin/utils/planeNormal.js +4 -2
  354. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +5 -4
  355. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +8 -4
  356. package/libs/PanoTagPlugin/utils/tagPosition.js +9 -7
  357. package/libs/PanoVideoPlugin/Controller.js +1 -1
  358. package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
  359. package/libs/PanoVideoPlugin/index.js +1 -1
  360. package/libs/base/BasePlugin.js +1 -1
  361. package/libs/index.js +31 -33
  362. package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -1
  363. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
  364. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +1 -1
  365. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -1
  366. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -1
  367. package/libs/shared-utils/Object3DHelper/typings/index.js +1 -1
  368. package/libs/shared-utils/three/index.js +1 -1
  369. package/{dist/shared-utils/Object3DHelper/utils → libs/shared-utils}/threex/domevents/index.d.ts +9 -7
  370. package/libs/shared-utils/{Object3DHelper/utils/threex → threex}/domevents/index.js +4 -3
  371. package/package.json +1 -1
  372. package/docs/enums/PointType.html +0 -72
  373. package/docs/types/TagPointType.html +0 -272
  374. package/docs/variables/VERSION.html +0 -269
  375. package/libs/PanoTagPlugin/tsconfig.js +0 -9
  376. package/libs/PanoTagPlugin/utils/model/imageModel.js +0 -31
@@ -1,8 +1,10 @@
1
- import { SvelteComponent as M, init as N, safe_not_equal as O, append_styles as Q, element as P, space as U, attr as u, set_style as S, toggle_class as b, insert as L, append as j, transition_out as T, check_outros as B, transition_in as z, detach as I, getContext as W, group_outros as E, noop as A, create_component as G, mount_component as H, destroy_component as J } from "../../vendor/svelte/internal/index.js";
2
- import X from "./Tag/index.js";
1
+ import { SvelteComponent as K, init as M, safe_not_equal as N, append_styles as O, element as A, space as Q, attr as u, set_style as k, toggle_class as g, insert as C, append as j, transition_out as h, check_outros as B, transition_in as y, detach as P, getContext as U, group_outros as E, noop as v, create_component as G, mount_component as H, destroy_component as J } from "../../vendor/svelte/internal/index.js";
2
+ import W from "./Tag/index.js";
3
3
  import "three";
4
4
  import { noTypecheck as F } from "../utils/noTypecheck.js";
5
- import Y from "./Common/TagPoint.js";
5
+ import "@realsee/five/gltf-loader";
6
+ import "../../shared-utils/three/loadTexture.js";
7
+ import X from "./Common/TagPoint.js";
6
8
  import "./Tag/TextTag/index.js";
7
9
  import "./Tag/TextTag/TextTag.js";
8
10
  import "./Common/Line/Straight.js";
@@ -61,7 +63,7 @@ import "./Tag/MarketingTag.js";
61
63
  import "hammerjs";
62
64
  import "@realsee/five";
63
65
  import "@tweenjs/tween.js";
64
- import "../../CSS3DRenderPlugin/CSS3DRender.js";
66
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
65
67
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
66
68
  import "three/examples/jsm/renderers/CSS3DRenderer";
67
69
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -90,29 +92,29 @@ import "./Tag/LinkTag.js";
90
92
  import "./Common/Icon/Icon.js";
91
93
  import "../utils/getImageInfo.js";
92
94
  import "./Tag/CustomTag.js";
93
- function Z(o) {
94
- Q(o, "svelte-pzwdws", ".tag.withAnimation.svelte-pzwdws{transition:opacity 0.3s linear}.tag.hide.svelte-pzwdws{opacity:0;pointer-events:none}.tag.hide.svelte-pzwdws *{pointer-events:none !important}.tag.unClickable.svelte-pzwdws{pointer-events:none !important}.tag.unClickable.svelte-pzwdws *{pointer-events:none !important}.tag.disable.svelte-pzwdws{display:none}.wrapper.svelte-pzwdws{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}");
95
+ function Y(o) {
96
+ O(o, "svelte-pzwdws", ".tag.withAnimation.svelte-pzwdws{transition:opacity 0.3s linear}.tag.hide.svelte-pzwdws{opacity:0;pointer-events:none}.tag.hide.svelte-pzwdws *{pointer-events:none !important}.tag.unClickable.svelte-pzwdws{pointer-events:none !important}.tag.unClickable.svelte-pzwdws *{pointer-events:none !important}.tag.disable.svelte-pzwdws{display:none}.wrapper.svelte-pzwdws{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}");
95
97
  }
96
- function x(o) {
98
+ function Z(o) {
97
99
  let e;
98
100
  return {
99
101
  c() {
100
- e = P("div"), u(e, "data-info", "tag content is disable");
102
+ e = A("div"), u(e, "data-info", "tag content is disable");
101
103
  },
102
104
  m(t, i) {
103
- L(t, e, i);
105
+ C(t, e, i);
104
106
  },
105
- p: A,
106
- i: A,
107
- o: A,
107
+ p: v,
108
+ i: v,
109
+ o: v,
108
110
  d(t) {
109
- t && I(e);
111
+ t && P(e);
110
112
  }
111
113
  };
112
114
  }
113
- function $(o) {
115
+ function x(o) {
114
116
  let e, t;
115
- return e = new X({
117
+ return e = new W({
116
118
  props: {
117
119
  mediaStore: o[2],
118
120
  withAnimation: o[0],
@@ -129,40 +131,40 @@ function $(o) {
129
131
  H(e, i, n), t = !0;
130
132
  },
131
133
  p(i, n) {
132
- const a = {};
133
- n & 4 && (a.mediaStore = i[2]), n & 1 && (a.withAnimation = i[0]), n & 2 && (a.tag = F(i[1])), n & 8 && (a.state = i[3]), n & 16 && (a.temporaryState = i[4]), e.$set(a);
134
+ const l = {};
135
+ n & 4 && (l.mediaStore = i[2]), n & 1 && (l.withAnimation = i[0]), n & 2 && (l.tag = F(i[1])), n & 8 && (l.state = i[3]), n & 16 && (l.temporaryState = i[4]), e.$set(l);
134
136
  },
135
137
  i(i) {
136
- t || (z(e.$$.fragment, i), t = !0);
138
+ t || (y(e.$$.fragment, i), t = !0);
137
139
  },
138
140
  o(i) {
139
- T(e.$$.fragment, i), t = !1;
141
+ h(e.$$.fragment, i), t = !1;
140
142
  },
141
143
  d(i) {
142
144
  J(e, i);
143
145
  }
144
146
  };
145
147
  }
146
- function tt(o) {
148
+ function $(o) {
147
149
  let e;
148
150
  return {
149
151
  c() {
150
- e = P("div"), u(e, "data-info", "tag point is disable");
152
+ e = A("div"), u(e, "data-info", "tag point is disable");
151
153
  },
152
154
  m(t, i) {
153
- L(t, e, i);
155
+ C(t, e, i);
154
156
  },
155
- p: A,
156
- i: A,
157
- o: A,
157
+ p: v,
158
+ i: v,
159
+ o: v,
158
160
  d(t) {
159
- t && I(e);
161
+ t && P(e);
160
162
  }
161
163
  };
162
164
  }
163
- function et(o) {
165
+ function tt(o) {
164
166
  let e, t;
165
- return e = new Y({ props: { tag: o[1] } }), {
167
+ return e = new X({ props: { tag: o[1] } }), {
166
168
  c() {
167
169
  G(e.$$.fragment);
168
170
  },
@@ -170,102 +172,93 @@ function et(o) {
170
172
  H(e, i, n), t = !0;
171
173
  },
172
174
  p(i, n) {
173
- const a = {};
174
- n & 2 && (a.tag = i[1]), e.$set(a);
175
+ const l = {};
176
+ n & 2 && (l.tag = i[1]), e.$set(l);
175
177
  },
176
178
  i(i) {
177
- t || (z(e.$$.fragment, i), t = !0);
179
+ t || (y(e.$$.fragment, i), t = !0);
178
180
  },
179
181
  o(i) {
180
- T(e.$$.fragment, i), t = !1;
182
+ h(e.$$.fragment, i), t = !1;
181
183
  },
182
184
  d(i) {
183
185
  J(e, i);
184
186
  }
185
187
  };
186
188
  }
187
- function it(o) {
188
- let e, t, i, n, a, l, f, k, s;
189
- const C = [$, x], c = [];
190
- function v(r, p) {
189
+ function et(o) {
190
+ let e, t, i, n, l, s, d, w, f;
191
+ const S = [x, Z], c = [];
192
+ function T(r, a) {
191
193
  return r[12] ? 0 : 1;
192
194
  }
193
- i = v(o), n = c[i] = C[i](o);
194
- const h = [et, tt], d = [];
195
- function y(r, p) {
195
+ i = T(o), n = c[i] = S[i](o);
196
+ const p = [tt, $], _ = [];
197
+ function z(r, a) {
196
198
  return r[13] ? 0 : 1;
197
199
  }
198
- return l = y(o), f = d[l] = h[l](o), {
200
+ return s = z(o), d = _[s] = p[s](o), {
199
201
  c() {
200
- e = P("div"), t = P("div"), n.c(), a = U(), f.c(), u(t, "class", "wrapper svelte-pzwdws"), u(t, "data-tag-unfolded", o[8]), u(t, "data-tag-id", o[11]), u(t, "data-content-type", k = o[1].contentType), S(t, "left", o[7]), S(t, "top", o[6]), S(t, "z-index", o[5]), u(e, "class", "tag svelte-pzwdws"), u(e, "data-tag-id", o[11]), b(e, "unClickable", o[1].mergedConfig.clickable === !1), b(e, "disable", o[10]), b(e, "hide", o[9]), b(e, "withAnimation", o[0]);
202
+ e = A("div"), t = A("div"), n.c(), l = Q(), d.c(), u(t, "class", "wrapper svelte-pzwdws"), u(t, "data-tag-unfolded", o[8]), u(t, "data-tag-id", o[11]), u(t, "data-content-type", w = o[1].contentType), k(t, "left", o[7]), k(t, "top", o[6]), k(t, "z-index", o[5]), u(e, "class", "tag svelte-pzwdws"), u(e, "data-tag-id", o[11]), g(e, "unClickable", o[1].mergedConfig.clickable === !1), g(e, "disable", o[10]), g(e, "hide", o[9]), g(e, "withAnimation", o[0]);
201
203
  },
202
- m(r, p) {
203
- L(r, e, p), j(e, t), c[i].m(t, null), j(t, a), d[l].m(t, null), s = !0;
204
+ m(r, a) {
205
+ C(r, e, a), j(e, t), c[i].m(t, null), j(t, l), _[s].m(t, null), f = !0;
204
206
  },
205
- p(r, [p]) {
206
- let g = i;
207
- i = v(r), i === g ? c[i].p(r, p) : (E(), T(c[g], 1, 1, () => {
208
- c[g] = null;
209
- }), B(), n = c[i], n ? n.p(r, p) : (n = c[i] = C[i](r), n.c()), z(n, 1), n.m(t, a));
210
- let w = l;
211
- l = y(r), l === w ? d[l].p(r, p) : (E(), T(d[w], 1, 1, () => {
212
- d[w] = null;
213
- }), B(), f = d[l], f ? f.p(r, p) : (f = d[l] = h[l](r), f.c()), z(f, 1), f.m(t, null)), (!s || p & 256) && u(t, "data-tag-unfolded", r[8]), (!s || p & 2048) && u(t, "data-tag-id", r[11]), (!s || p & 2 && k !== (k = r[1].contentType)) && u(t, "data-content-type", k), p & 128 && S(t, "left", r[7]), p & 64 && S(t, "top", r[6]), p & 32 && S(t, "z-index", r[5]), (!s || p & 2048) && u(e, "data-tag-id", r[11]), (!s || p & 2) && b(e, "unClickable", r[1].mergedConfig.clickable === !1), (!s || p & 1024) && b(e, "disable", r[10]), (!s || p & 512) && b(e, "hide", r[9]), (!s || p & 1) && b(e, "withAnimation", r[0]);
207
+ p(r, [a]) {
208
+ let m = i;
209
+ i = T(r), i === m ? c[i].p(r, a) : (E(), h(c[m], 1, 1, () => {
210
+ c[m] = null;
211
+ }), B(), n = c[i], n ? n.p(r, a) : (n = c[i] = S[i](r), n.c()), y(n, 1), n.m(t, l));
212
+ let b = s;
213
+ s = z(r), s === b ? _[s].p(r, a) : (E(), h(_[b], 1, 1, () => {
214
+ _[b] = null;
215
+ }), B(), d = _[s], d ? d.p(r, a) : (d = _[s] = p[s](r), d.c()), y(d, 1), d.m(t, null)), (!f || a & 256) && u(t, "data-tag-unfolded", r[8]), (!f || a & 2048) && u(t, "data-tag-id", r[11]), (!f || a & 2 && w !== (w = r[1].contentType)) && u(t, "data-content-type", w), a & 128 && k(t, "left", r[7]), a & 64 && k(t, "top", r[6]), a & 32 && k(t, "z-index", r[5]), (!f || a & 2048) && u(e, "data-tag-id", r[11]), (!f || a & 2) && g(e, "unClickable", r[1].mergedConfig.clickable === !1), (!f || a & 1024) && g(e, "disable", r[10]), (!f || a & 512) && g(e, "hide", r[9]), (!f || a & 1) && g(e, "withAnimation", r[0]);
214
216
  },
215
217
  i(r) {
216
- s || (z(n), z(f), s = !0);
218
+ f || (y(n), y(d), f = !0);
217
219
  },
218
220
  o(r) {
219
- T(n), T(f), s = !1;
221
+ h(n), h(d), f = !1;
220
222
  },
221
223
  d(r) {
222
- r && I(e), c[i].d(), d[l].d();
224
+ r && P(e), c[i].d(), _[s].d();
223
225
  }
224
226
  };
225
227
  }
226
- function ot(o, e, t) {
227
- let i, n, a, l, f, k, s, C, c;
228
- var v, h, d, y, r, p, g, w;
229
- let { withAnimation: q = !1 } = e, { tag: m } = e, { mediaStore: D } = e, { state: R } = e, { temporaryState: V } = e;
230
- const K = W("hooks");
231
- return o.$$set = (_) => {
232
- "withAnimation" in _ && t(0, q = _.withAnimation), "tag" in _ && t(1, m = _.tag), "mediaStore" in _ && t(2, D = _.mediaStore), "state" in _ && t(3, R = _.state), "temporaryState" in _ && t(4, V = _.temporaryState);
228
+ function it(o, e, t) {
229
+ let i, n, l, s, d, w, f, S, c, { withAnimation: T = !1 } = e, { tag: p } = e, { mediaStore: _ } = e, { state: z } = e, { temporaryState: r } = e;
230
+ const a = U("hooks");
231
+ return o.$$set = (m) => {
232
+ "withAnimation" in m && t(0, T = m.withAnimation), "tag" in m && t(1, p = m.tag), "mediaStore" in m && t(2, _ = m.mediaStore), "state" in m && t(3, z = m.state), "temporaryState" in m && t(4, r = m.temporaryState);
233
233
  }, o.$$.update = () => {
234
- o.$$.dirty & 2 && t(13, i = (() => !(m.contentType === "Sticker" || m.contentType === "Link" || m.contentType === "VRLink" || m.contentType === "PanoLink" || m.contentType === "Audio" && m.data.appearance === "plane"))()), o.$$.dirty & 2 && t(12, n = (() => m.stickType === "2DPoint")()), o.$$.dirty & 2 && t(11, a = m.id), o.$$.dirty & 98306 && t(10, l = !(!(t(15, v = m.pointTagStyle) === null || v === void 0) && v.leftPercent) || !(!(t(16, h = m.pointTagStyle) === null || h === void 0) && h.topPercent) || m.enabled === !1 || !m.state), o.$$.dirty & 393218 && t(9, f = !(!(t(17, d = m.state) === null || d === void 0) && d.visible) || (t(18, y = m.temporaryState) === null || y === void 0 ? void 0 : y.visible) === !1), o.$$.dirty & 524290 && t(8, k = t(19, r = m.state) === null || r === void 0 ? void 0 : r.unfolded), o.$$.dirty & 1048578 && t(7, s = (t(20, p = m.pointTagStyle) === null || p === void 0 ? void 0 : p.leftPercent) + "%"), o.$$.dirty & 2097154 && t(6, C = (t(21, g = m.pointTagStyle) === null || g === void 0 ? void 0 : g.topPercent) + "%"), o.$$.dirty & 4194306 && t(5, c = !(t(22, w = m.state) === null || w === void 0) && w.unfolded ? 1 : 0);
234
+ var m, b, L, I, q, D, R, V;
235
+ o.$$.dirty & 2 && t(13, i = (() => !(p.contentType === "Sticker" || p.contentType === "Link" || p.contentType === "VRLink" || p.contentType === "PanoLink" || p.contentType === "Audio" && p.data.appearance === "plane"))()), o.$$.dirty & 2 && t(12, n = (() => p.stickType === "2DPoint")()), o.$$.dirty & 2 && t(11, l = p.id), o.$$.dirty & 2 && t(10, s = !((m = p.pointTagStyle) != null && m.leftPercent) || !((b = p.pointTagStyle) != null && b.topPercent) || p.enabled === !1 || !p.state), o.$$.dirty & 2 && t(9, d = !((L = p.state) != null && L.visible) || ((I = p.temporaryState) == null ? void 0 : I.visible) === !1), o.$$.dirty & 2 && t(8, w = (q = p.state) == null ? void 0 : q.unfolded), o.$$.dirty & 2 && t(7, f = ((D = p.pointTagStyle) == null ? void 0 : D.leftPercent) + "%"), o.$$.dirty & 2 && t(6, S = ((R = p.pointTagStyle) == null ? void 0 : R.topPercent) + "%"), o.$$.dirty & 2 && t(5, c = (V = p.state) != null && V.unfolded ? 1 : 0);
235
236
  }, [
236
- q,
237
- m,
238
- D,
239
- R,
240
- V,
237
+ T,
238
+ p,
239
+ _,
240
+ z,
241
+ r,
241
242
  c,
242
- C,
243
- s,
244
- k,
243
+ S,
245
244
  f,
245
+ w,
246
+ d,
247
+ s,
246
248
  l,
247
- a,
248
249
  n,
249
250
  i,
250
- K,
251
- v,
252
- h,
253
- d,
254
- y,
255
- r,
256
- p,
257
- g,
258
- w
251
+ a
259
252
  ];
260
253
  }
261
- class Ke extends M {
254
+ class Me extends K {
262
255
  constructor(e) {
263
- super(), N(
256
+ super(), M(
264
257
  this,
265
258
  e,
266
- ot,
267
259
  it,
268
- O,
260
+ et,
261
+ N,
269
262
  {
270
263
  withAnimation: 0,
271
264
  tag: 1,
@@ -273,10 +266,10 @@ class Ke extends M {
273
266
  state: 3,
274
267
  temporaryState: 4
275
268
  },
276
- Z
269
+ Y
277
270
  );
278
271
  }
279
272
  }
280
273
  export {
281
- Ke as default
274
+ Me as default
282
275
  };
@@ -1,6 +1,6 @@
1
1
  import type { Five, Mode } from '@realsee/five';
2
2
  import * as THREE from 'three';
3
- import type { Tag } from '../typings';
3
+ import type { Tag, TagElement } from '../typings';
4
4
  import { Raycaster } from 'three';
5
5
  import { TagUtil } from './TagUtil';
6
6
  export declare abstract class TagComputer extends TagUtil {
@@ -12,10 +12,15 @@ export declare abstract class TagComputer extends TagUtil {
12
12
  getVisibleByPanoIndex(tag: Tag<any, any>, panoIndex?: number): boolean;
13
13
  getVisibleByFiveMode(tag: Tag<any, any>, mode: Mode): boolean;
14
14
  /** 检测是否匹配当前楼层 */
15
- getVisibleByFloorIndex(tag: Tag<any, any>): boolean;
16
- getVisible(tag: Tag<any, any>): boolean;
15
+ getVisibleByFloorIndex(tag: TagElement<any, any>): boolean;
16
+ /**
17
+ * @description 获取标签当前状态
18
+ * @return (this.state.visible && tag.state.visible) ?? true
19
+ */
20
+ getCurrentVisibleState(tag: TagElement<any, any>): boolean;
21
+ getVisible(tag: TagElement<any, any>): boolean;
17
22
  /** 获取当前点位上模型中的多媒体是否应该展示 */
18
- getModelMedialVisibleByPanoIndex(tag: Tag<any, any>): boolean;
23
+ getModelMedialVisibleByPanoIndex(tag: TagElement<any, any>): boolean;
19
24
  /**
20
25
  * @description: 获取是否展开
21
26
  */
@@ -1,30 +1,32 @@
1
1
  var B = Object.defineProperty, U = Object.defineProperties;
2
- var V = Object.getOwnPropertyDescriptors;
2
+ var M = Object.getOwnPropertyDescriptors;
3
3
  var x = Object.getOwnPropertySymbols;
4
- var M = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
4
+ var R = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
5
5
  var y = (d, f, e) => f in d ? B(d, f, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[f] = e, I = (d, f) => {
6
6
  for (var e in f || (f = {}))
7
- M.call(f, e) && y(d, e, f[e]);
7
+ R.call(f, e) && y(d, e, f[e]);
8
8
  if (x)
9
9
  for (var e of x(f))
10
10
  D.call(f, e) && y(d, e, f[e]);
11
11
  return d;
12
- }, P = (d, f) => U(d, V(f));
12
+ }, P = (d, f) => U(d, M(f));
13
13
  var T = (d, f, e) => (y(d, typeof f != "symbol" ? f + "" : f, e), e);
14
- import * as R from "three";
14
+ import * as C from "three";
15
15
  import { isMediaModelTag as h, is3DTag as j } from "../utils/tag/tagCheck.js";
16
- import { tagPosition as C, getTagPosition as k } from "../utils/tagPosition.js";
16
+ import { tagPosition as V } from "../utils/tagPosition.js";
17
17
  import { checkRange as g } from "../utils/checkRange.js";
18
18
  import "hammerjs";
19
19
  import "@realsee/five";
20
20
  import "@tweenjs/tween.js";
21
- import "../../CSS3DRenderPlugin/CSS3DRender.js";
21
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
22
22
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
23
- import { notNil as S } from "../../shared-utils/isNil.js";
23
+ import { notNil as k } from "../../shared-utils/isNil.js";
24
24
  import "../../shared-utils/animationFrame/BetterTween.js";
25
- import { TagUtil as $ } from "./TagUtil.js";
25
+ import { TagUtil as S } from "./TagUtil.js";
26
26
  import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
27
27
  import "../../shared-utils/three/centerPoint.js";
28
+ import "@realsee/five/gltf-loader";
29
+ import "../../shared-utils/three/loadTexture.js";
28
30
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
29
31
  import "three/examples/jsm/renderers/CSS3DRenderer";
30
32
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -39,15 +41,17 @@ import "../../shared-utils/animationFrame/index.js";
39
41
  import "object-assign-deep";
40
42
  import "../tag.config.js";
41
43
  import "../utils/planeNormal.js";
44
+ import "../utils/normalPositionToPositions.js";
42
45
  import "./TagCache.js";
43
46
  import "../../base/BasePlugin.js";
44
47
  import "../../vendor/svelte/store/index.js";
45
48
  import "../../vendor/svelte/internal/index.js";
46
49
  import "../utils/device.js";
47
- class be extends $ {
50
+ import "../../shared-utils/threex/domevents/index.js";
51
+ class he extends S {
48
52
  constructor(e) {
49
53
  super(e);
50
- T(this, "raycaster", new R.Raycaster());
54
+ T(this, "raycaster", new C.Raycaster());
51
55
  }
52
56
  getVisibleByPanoIndex(e, i) {
53
57
  var t;
@@ -59,44 +63,47 @@ class be extends $ {
59
63
  {
60
64
  const l = (() => {
61
65
  var v, p, a;
62
- const o = (v = this.getTagConfig(e).visibleConfig) != null ? v : {}, u = this.getDistance(e);
63
- if (typeof o == "function")
64
- return { value: o(this.five, { tag: e, distance: u }), reason: "config function result" };
65
- if (o.keep === "hidden")
66
+ const r = (v = this.getTagConfig(e).visibleConfig) != null ? v : {}, u = this.getDistance(e);
67
+ if (typeof r == "function")
68
+ return { value: r(this.five, { tag: e, distance: u }), reason: "config function result" };
69
+ if (r.keep === "hidden")
66
70
  return { value: !1, reason: "config.keep is hidden" };
67
- if (o.keep === "visible")
71
+ if (r.keep === "visible")
68
72
  return { value: !0, reason: "config.keep is visible" };
69
- if (o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && s !== void 0) {
70
- if (Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(s))
73
+ if (r.visiblePanoIndex !== void 0 && r.visiblePanoIndex !== "all" && s !== void 0) {
74
+ if (Array.isArray(r.visiblePanoIndex) && !r.visiblePanoIndex.includes(s))
71
75
  return {
72
76
  value: !1,
73
- reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${s}, visiblePanoIndex: ${o.visiblePanoIndex}`
77
+ reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${s}, visiblePanoIndex: ${r.visiblePanoIndex}`
74
78
  };
75
- if (o.visiblePanoIndex === "current" && s !== ((p = e.fiveState) == null ? void 0 : p.panoIndex))
79
+ if (r.visiblePanoIndex === "current" && s !== ((p = e.fiveState) == null ? void 0 : p.panoIndex))
76
80
  return {
77
81
  value: !1,
78
82
  reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${s}, tag.panoIndex: ${(a = e.fiveState) == null ? void 0 : a.panoIndex}`
79
83
  };
80
84
  }
81
- if (o.visibleDistance !== void 0 && o.visibleDistance !== "unLimited" && g(u, o.visibleDistance) === !1)
85
+ if (r.visibleDistance !== void 0 && r.visibleDistance !== "unLimited" && g(u, r.visibleDistance) === !1)
82
86
  return {
83
87
  value: !1,
84
- reason: `distance is not in visibleDistance. distance: ${u}, visibleDistance: ${o.visibleDistance}`
88
+ reason: `distance is not in visibleDistance. distance: ${u}, visibleDistance: ${r.visibleDistance}`
85
89
  };
86
- if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
90
+ if (r.intersectRaycaster !== !1 && (typeof r.intersectRaycaster != "object" || r.intersectRaycaster.enabled !== !1)) {
87
91
  if (s === void 0)
88
92
  return {
89
93
  value: !1,
90
94
  reason: `intersectRaycaster check failed: fivePanoIndex is ${s}`
91
95
  };
92
- const r = this.getRaycasterFromPanoIndex(e, s), c = this.getTagEnableByIntersect(e, r);
96
+ const o = this.getRaycasterFromPanoIndex(e, s);
97
+ if (!o)
98
+ return { value: !1, reason: `intersectRaycaster check failed: raycaster is ${o}` };
99
+ const c = this.getTagEnableByIntersect(e, o);
93
100
  if (c.value === !1)
94
101
  return c;
95
102
  }
96
- if (o.angleRange && j(e)) {
97
- const r = this.getAngle(e);
98
- if (g(r, o.angleRange) === !1)
99
- return { value: !1, reason: `angle is not in angleRange. angle: ${r}, angleRange: ${o.angleRange}` };
103
+ if (r.angleRange && j(e)) {
104
+ const o = this.getAngle(e);
105
+ if (g(o, r.angleRange) === !1)
106
+ return { value: !1, reason: `angle is not in angleRange. angle: ${o}, angleRange: ${r.angleRange}` };
100
107
  }
101
108
  return {
102
109
  value: !0,
@@ -122,15 +129,24 @@ class be extends $ {
122
129
  const n = i.panoIndex, s = (l = this.five.work.observers[n]) == null ? void 0 : l.floorIndex, t = this.five.model.shownFloor;
123
130
  return t === null || t === s;
124
131
  }
132
+ getCurrentVisibleState(e) {
133
+ var i;
134
+ return (i = this.state.visible && e.state.visible) != null ? i : !0;
135
+ }
125
136
  getVisible(e) {
126
137
  const i = this.five.getCurrentState(), n = this.getVisibleByFiveMode(e, i.mode), s = h(e) ? this.getVisibleByFloorIndex(e) : !0, t = i.mode === "Panorama" ? this.getVisibleByPanoIndex(e, i.panoIndex) : !0;
127
138
  return n && t && s;
128
139
  }
129
140
  getModelMedialVisibleByPanoIndex(e) {
141
+ if (!this.getCurrentVisibleState(e))
142
+ return !1;
130
143
  const i = this.five.getCurrentState().panoIndex, n = this.getCache({ panoIndex: i, id: e.id });
131
144
  if (n.modelMedialVisible !== void 0)
132
145
  return n.modelMedialVisible;
133
- const s = this.getRaycasterFromPanoIndex(e, i), t = this.getTagEnableByIntersect(e, s);
146
+ const s = this.getRaycasterFromPanoIndex(e, i);
147
+ if (!s)
148
+ return !1;
149
+ const t = this.getTagEnableByIntersect(e, s);
134
150
  return n.modelMedialVisible = t.value, n.__debug_visible_reason__ = t, t.value !== !1;
135
151
  }
136
152
  getUnfoldedByPanoIndex(e, i) {
@@ -155,8 +171,8 @@ class be extends $ {
155
171
  return !1;
156
172
  })();
157
173
  s.unfolded = l;
158
- const o = this.getUnfoldedByCamera(e);
159
- return o !== void 0 ? o : s.unfolded;
174
+ const r = this.getUnfoldedByCamera(e);
175
+ return r !== void 0 ? r : s.unfolded;
160
176
  }
161
177
  }
162
178
  getUnfoldedByCamera(e) {
@@ -173,24 +189,24 @@ class be extends $ {
173
189
  if (t.autoUnfold === void 0 || t.autoUnfold === !1 || t.autoUnfold.enable === !1 || !t.autoUnfold.strategy)
174
190
  return;
175
191
  if (t.autoUnfold.strategy === "ScreenPostion") {
176
- const o = this.getTagProject(e);
177
- if (o && g(o.x, t.autoUnfold.autoUnfoldProjectX) === !1)
192
+ const r = this.getTagProject(e);
193
+ if (r && g(r.x, t.autoUnfold.autoUnfoldProjectX) === !1)
178
194
  return !1;
179
195
  }
180
196
  if (t.autoUnfold.strategy === "MinimumDistance") {
181
197
  const v = this.filterPointTag.filter((a) => this.getVisibleByPanoIndex(a)).filter((a) => {
182
- const r = this.getTagProject(a);
183
- if (!r)
198
+ const o = this.getTagProject(a);
199
+ if (!o)
184
200
  return !1;
185
- const { x: c, y: b, z: m } = r;
201
+ const { x: c, y: b, z: m } = o;
186
202
  return !(Math.abs(m) > 1 || Math.abs(c) > 1 || Math.abs(b) > 1);
187
- }).map((a) => ({ tag: a, id: a.id, tagConfig: this.getTagConfig(a).unfoldedConfig })).filter(({ tag: a, tagConfig: r }) => {
203
+ }).map((a) => ({ tag: a, id: a.id, tagConfig: this.getTagConfig(a).unfoldedConfig })).filter(({ tag: a, tagConfig: o }) => {
188
204
  var c, b;
189
- return !(typeof r != "object" || r.keep || r.autoUnfold === !1 || ((c = r.autoUnfold) == null ? void 0 : c.enable) === !1 || ((b = r.autoUnfold) == null ? void 0 : b.strategy) !== "MinimumDistance");
190
- }).map((a) => P(I({}, a), { distance: this.getDistance(a.tag) })).filter(({ distance: a, tagConfig: r }) => {
205
+ return !(typeof o != "object" || o.keep || o.autoUnfold === !1 || ((c = o.autoUnfold) == null ? void 0 : c.enable) === !1 || ((b = o.autoUnfold) == null ? void 0 : b.strategy) !== "MinimumDistance");
206
+ }).map((a) => P(I({}, a), { distance: this.getDistance(a.tag) })).filter(({ distance: a, tagConfig: o }) => {
191
207
  var c, b;
192
- return !(a === void 0 || typeof r != "object" || r.autoUnfold === !1 || ((c = r.autoUnfold) == null ? void 0 : c.enable) === !1 || ((b = r.autoUnfold) == null ? void 0 : b.strategy) !== "MinimumDistance" || r.autoUnfold.distance && g(a, r.autoUnfold.distance) === !1);
193
- }).sort((a, r) => a.distance - r.distance).findIndex((a) => a.id === e.id);
208
+ return !(a === void 0 || typeof o != "object" || o.autoUnfold === !1 || ((c = o.autoUnfold) == null ? void 0 : c.enable) === !1 || ((b = o.autoUnfold) == null ? void 0 : b.strategy) !== "MinimumDistance" || o.autoUnfold.distance && g(a, o.autoUnfold.distance) === !1);
209
+ }).sort((a, o) => a.distance - o.distance).findIndex((a) => a.id === e.id);
194
210
  if (v === -1 || v <= ((l = t.autoUnfold.maxNumber) != null ? l : 1) - 1 === !1)
195
211
  return !1;
196
212
  }
@@ -250,9 +266,12 @@ class be extends $ {
250
266
  });
251
267
  }
252
268
  getTagProject(e) {
253
- if (!this.getVisibleByPanoIndex(e) || !e.position)
269
+ if (!this.getVisibleByPanoIndex(e))
270
+ return;
271
+ const n = V(e.position);
272
+ if (!n)
254
273
  return;
255
- const n = C(e.position), { x: s, y: t, z: l } = n.project(this.five.camera);
274
+ const { x: s, y: t, z: l } = n.project(this.five.camera);
256
275
  if (!(l > 1))
257
276
  return { x: s, y: t, z: l };
258
277
  }
@@ -261,30 +280,33 @@ class be extends $ {
261
280
  const n = (v = this.getTagConfig(e).visibleConfig) != null ? v : {}, s = this.getDistance(e), [t] = this.five.model.intersectRaycaster(i), l = (() => {
262
281
  if (!h(e))
263
282
  return;
264
- const r = this.tags.filter(h).map((b) => {
283
+ const o = this.tags.filter(h).map((b) => {
265
284
  var m;
266
285
  return (m = b.model) == null ? void 0 : m.object;
267
- }).filter(S);
268
- return i.intersectObjects(r, !0)[0];
269
- })(), o = (() => {
270
- var r;
271
- return typeof n == "object" && typeof n.intersectRaycaster == "object" && (r = n.intersectRaycaster.distanceAccuracy) != null ? r : 0.01;
272
- })();
273
- return Math.min((p = t == null ? void 0 : t.distance) != null ? p : 1 / 0, (a = l == null ? void 0 : l.distance) != null ? a : 1 / 0) + o < s ? {
286
+ }).filter(k);
287
+ return i.intersectObjects(o, !0)[0];
288
+ })(), r = (() => {
289
+ var o;
290
+ return typeof n == "object" && typeof n.intersectRaycaster == "object" && (o = n.intersectRaycaster.distanceAccuracy) != null ? o : 0.01;
291
+ })(), u = Math.min((p = t == null ? void 0 : t.distance) != null ? p : 1 / 0, (a = l == null ? void 0 : l.distance) != null ? a : 1 / 0);
292
+ return u + r < s ? {
274
293
  value: !1,
275
- reason: `intersectRaycaster check failed: distance is ${s}, intersection.point is ${t == null ? void 0 : t.point.toArray()},
276
- customModelIntersection.point is ${l == null ? void 0 : l.point.toArray()} distanceError is ${o}`
294
+ reason: `intersectRaycaster check failed: distance is ${s}, intersection.distance is ${t == null ? void 0 : t.distance}, intersection.point is ${t == null ? void 0 : t.point.toArray()},
295
+ customModelIntersection.point is ${l == null ? void 0 : l.point.toArray()}, minIntersectionDistance is ${u}`
277
296
  } : { value: !0, reason: "" };
278
297
  }
279
298
  getRaycasterFromPanoIndex(e, i) {
280
- var t;
281
- const n = (t = this.five.work.observers[i]) == null ? void 0 : t.position;
299
+ var l;
300
+ const n = (l = this.five.work.observers[i]) == null ? void 0 : l.position;
282
301
  if (n === void 0)
283
302
  throw new Error(`getVisible(): observerPosition is ${n}`);
284
- const s = k(e).sub(n).normalize();
285
- return this.raycaster.set(n, s), this.raycaster;
303
+ const s = V(e.position);
304
+ if (!s)
305
+ return;
306
+ const t = s.sub(n).normalize();
307
+ return this.raycaster.set(n, t), this.raycaster;
286
308
  }
287
309
  }
288
310
  export {
289
- be as TagComputer
311
+ he as TagComputer
290
312
  };
@@ -20,11 +20,14 @@ export declare abstract class TagRender extends TagComputer {
20
20
  * @description: 更新所有标签
21
21
  */
22
22
  protected updateRenderAllTags(): void;
23
- protected updateRenderImageModel(): void;
23
+ /**
24
+ * @description: 渲染图片贴片
25
+ */
26
+ protected updateRenderImagePlane(): void;
24
27
  /**
25
28
  * @description: 渲染3D贴片
26
29
  */
27
- protected updateRenderPlaneTag(): void;
30
+ protected updateRender3DDomTag(): void;
28
31
  /** 更新所有模型标签
29
32
  *
30
33
  * 1. 移除不应该在场景中的模型
@@ -37,7 +40,6 @@ export declare abstract class TagRender extends TagComputer {
37
40
  /** 更新标签中多媒体面片的位置
38
41
  * @param tag 标签
39
42
  * @param model 模型
40
- * @param scale css3DObject 原始缩放比例
41
43
  */
42
44
  protected updateTagCss3DObjectMatrix<S extends 'Model' | 'Plane' = 'Model'>(tag: TagElement<any, S>, model: Object3D): void;
43
45
  /** 添加模型标签 */
@@ -54,5 +56,4 @@ export declare abstract class TagRender extends TagComputer {
54
56
  protected clearUnusedPanelTag(): void;
55
57
  /** 加载外部模型 */
56
58
  protected loadModel: (tag: TagElement<'MediaModel', 'Model'>) => Promise<TagGLTFObject>;
57
- private updateTagCss3DObjectVisible;
58
59
  }