@realsee/dnalogel 2.18.4 → 2.19.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -1
  2. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
  3. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +3 -0
  4. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +12 -2
  5. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +3 -1
  6. package/dist/index.cjs.js +22 -22
  7. package/dist/index.js +5169 -5143
  8. package/dist/index.umd.js +24 -24
  9. package/docs/assets/search.js +1 -1
  10. package/docs/classes/CSS3DRender.html +30 -30
  11. package/docs/classes/CruisePluginController.html +25 -25
  12. package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
  13. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +30 -30
  14. package/docs/classes/Magnifier.html +19 -19
  15. package/docs/classes/ModelRoomLabelController.html +10 -10
  16. package/docs/classes/Object3DHelperController.html +24 -24
  17. package/docs/classes/PaintBrush.html +14 -14
  18. package/docs/classes/PanoMeasurePluginLine.html +22 -22
  19. package/docs/classes/PanoMeasurePluginModel.html +21 -21
  20. package/docs/classes/PanoMeasurePluginPoint.html +13 -13
  21. package/docs/classes/PanoMeasurePluginPolyline.html +25 -25
  22. package/docs/classes/PanoTagPluginController.html +55 -55
  23. package/docs/classes/Util.BetterTween.html +8 -8
  24. package/docs/classes/Util.FivePointSelector.html +11 -11
  25. package/docs/classes/Util.Interval.html +11 -11
  26. package/docs/classes/Util.Magnifier.html +16 -16
  27. package/docs/classes/Util.PointDomHelper.html +10 -10
  28. package/docs/classes/Util.PointHelper.html +10 -10
  29. package/docs/classes/Util.Rectangle.html +12 -12
  30. package/docs/enums/CameraMovementEffect.html +6 -6
  31. package/docs/enums/ContentType.html +27 -18
  32. package/docs/enums/DIRECTION.html +8 -8
  33. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
  34. package/docs/enums/DimensionType.html +6 -6
  35. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
  36. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
  37. package/docs/enums/PaintBrushTypeEnum.html +7 -7
  38. package/docs/enums/Rotation.html +7 -7
  39. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  40. package/docs/functions/CameraMovementPlugin.html +3 -3
  41. package/docs/functions/CruisePlugin.html +3 -3
  42. package/docs/functions/GuideLinePlugin.html +4 -4
  43. package/docs/functions/ItemLabelPlugin.html +3 -3
  44. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  45. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  46. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  47. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  48. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  49. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  50. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  51. package/docs/functions/ModelViewPlugin.html +3 -3
  52. package/docs/functions/Object3DHelperPlugin.html +3 -3
  53. package/docs/functions/PanoCompassPlugin.html +3 -3
  54. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  55. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  56. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  57. package/docs/functions/PanoMeasurePlugin.html +3 -3
  58. package/docs/functions/PanoRulerPlugin.html +3 -3
  59. package/docs/functions/PanoRulerProPlugin.html +3 -3
  60. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  61. package/docs/functions/PanoTagPlugin.html +3 -3
  62. package/docs/functions/PanoVideoPlugin.html +3 -3
  63. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  64. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  65. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  66. package/docs/functions/Util.getFrameTime.html +4 -4
  67. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  68. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  69. package/docs/functions/Util.isAbsoluteURL.html +4 -4
  70. package/docs/functions/Util.isModelLike.html +4 -4
  71. package/docs/functions/Util.isNil.html +4 -4
  72. package/docs/functions/Util.isPanoramaLike.html +4 -4
  73. package/docs/functions/Util.nextFrame.html +4 -4
  74. package/docs/functions/Util.notNil.html +4 -4
  75. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  76. package/docs/functions/Util.tweenProgress.html +4 -4
  77. package/docs/functions/Util.uuid.html +4 -4
  78. package/docs/functions/pluginFlag.html +4 -4
  79. package/docs/index.html +4 -4
  80. package/docs/interfaces/AddTagConfig.html +5 -5
  81. package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
  82. package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
  83. package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
  84. package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
  85. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
  86. package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
  87. package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
  88. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
  89. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
  90. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
  91. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
  92. package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
  93. package/docs/interfaces/EventMap.html +16 -16
  94. package/docs/interfaces/FloorplanBounding.html +7 -7
  95. package/docs/interfaces/FloorplanData.html +9 -9
  96. package/docs/interfaces/FloorplanEntrance.html +10 -10
  97. package/docs/interfaces/FloorplanExtraObject.html +9 -9
  98. package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
  99. package/docs/interfaces/FloorplanFloorData.html +8 -8
  100. package/docs/interfaces/FloorplanImagePosition.html +6 -6
  101. package/docs/interfaces/FloorplanObserver.html +8 -8
  102. package/docs/interfaces/FloorplanOutlineItem.html +8 -8
  103. package/docs/interfaces/FloorplanPosition.html +6 -6
  104. package/docs/interfaces/FloorplanRoomItem.html +12 -12
  105. package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
  106. package/docs/interfaces/FloorplanServerBounding.html +7 -7
  107. package/docs/interfaces/FloorplanServerComputedData.html +9 -9
  108. package/docs/interfaces/FloorplanServerData.html +6 -6
  109. package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
  110. package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
  111. package/docs/interfaces/FloorplanServerEntrance.html +10 -10
  112. package/docs/interfaces/FloorplanServerFloorData.html +8 -8
  113. package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
  114. package/docs/interfaces/FloorplanServerObserver.html +8 -8
  115. package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
  116. package/docs/interfaces/FloorplanServerPosition.html +6 -6
  117. package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
  118. package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
  119. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
  120. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
  121. package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
  122. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
  123. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
  124. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
  125. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
  126. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
  127. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
  128. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
  129. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
  130. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
  131. package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
  132. package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
  133. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
  134. package/docs/interfaces/HelperOffset.html +7 -7
  135. package/docs/interfaces/ImagePlaneGroup.html +5 -5
  136. package/docs/interfaces/ItemLabelPluginData.html +5 -5
  137. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
  138. package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
  139. package/docs/interfaces/MinMax.html +6 -6
  140. package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
  141. package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
  142. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
  143. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
  144. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
  145. package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
  146. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
  147. package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
  148. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
  149. package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
  150. package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
  151. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
  152. package/docs/interfaces/ModelViewPluginExportType.html +10 -10
  153. package/docs/interfaces/Object3DHelperState.html +7 -7
  154. package/docs/interfaces/ObjectHelperControllers.html +8 -8
  155. package/docs/interfaces/PaintBrushAction.html +11 -11
  156. package/docs/interfaces/PaintBrushConfigs.html +11 -11
  157. package/docs/interfaces/PaintBrushState.html +9 -9
  158. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
  159. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  160. package/docs/interfaces/PanoMeasureParameterType.html +13 -13
  161. package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
  162. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
  163. package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
  164. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
  165. package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
  166. package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
  167. package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
  168. package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
  169. package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
  170. package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
  171. package/docs/interfaces/PanoRulerProPluginState.html +7 -7
  172. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  173. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  174. package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
  175. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
  176. package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
  177. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
  178. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
  179. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
  180. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
  181. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
  182. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
  183. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
  184. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  185. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
  186. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
  187. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
  188. package/docs/interfaces/Point.html +7 -7
  189. package/docs/interfaces/Room.html +8 -8
  190. package/docs/interfaces/RoomInfo.html +6 -6
  191. package/docs/interfaces/RoomLabel.html +13 -13
  192. package/docs/interfaces/RoomRules.html +4 -4
  193. package/docs/interfaces/Rooms.html +4 -4
  194. package/docs/interfaces/Scissor.html +8 -8
  195. package/docs/interfaces/State.html +7 -7
  196. package/docs/interfaces/TagCacheInterface.html +11 -11
  197. package/docs/interfaces/TagConfig.html +23 -11
  198. package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
  199. package/docs/interfaces/TagIconUrl.html +11 -11
  200. package/docs/interfaces/TagObjectGroup.html +5 -5
  201. package/docs/interfaces/TagStyle.html +5 -5
  202. package/docs/interfaces/Tags.html +22 -10
  203. package/docs/interfaces/TemporaryState.html +5 -5
  204. package/docs/interfaces/Util.MagnifierParameter.html +10 -10
  205. package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
  206. package/docs/modules/CruisePluginTypes.html +4 -4
  207. package/docs/modules/GuideLineItem.html +4 -4
  208. package/docs/modules/GuideLineModeItem.html +4 -4
  209. package/docs/modules/GuideLinePluginType.html +4 -4
  210. package/docs/modules/PanoVideoPluginType.html +4 -4
  211. package/docs/modules/Util.html +4 -4
  212. package/docs/modules.html +4 -4
  213. package/docs/types/ArrayPosition.html +4 -4
  214. package/docs/types/AudioAppearance.html +4 -4
  215. package/docs/types/AudioTagTypeConfigKey.html +4 -4
  216. package/docs/types/CSS3DRenderExportType.html +4 -4
  217. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  218. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  219. package/docs/types/ClassFunctionParameters.html +4 -4
  220. package/docs/types/Color.html +4 -4
  221. package/docs/types/ContentTypeConfigKey.html +4 -4
  222. package/docs/types/ContentTypeConfigKeySplit.html +4 -4
  223. package/docs/types/ContentTypeMap.html +5 -5
  224. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  225. package/docs/types/Create3DElementReturnType.html +4 -4
  226. package/docs/types/CruisePluginExportType.html +4 -4
  227. package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
  228. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
  229. package/docs/types/Direction-1.html +4 -4
  230. package/docs/types/Direction4.html +4 -4
  231. package/docs/types/ElementRenderer.html +4 -4
  232. package/docs/types/FloorplanRuleLabels.html +4 -4
  233. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  234. package/docs/types/GuideLinePluginExportType.html +4 -4
  235. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  236. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  237. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  238. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  239. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
  240. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  241. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  242. package/docs/types/HelperEventMap.html +4 -4
  243. package/docs/types/LoadTagConfig.html +4 -4
  244. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  245. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  246. package/docs/types/MediaData.html +4 -4
  247. package/docs/types/MediaStore.html +4 -4
  248. package/docs/types/ModelElement.html +4 -4
  249. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  250. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  251. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  252. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  253. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  254. package/docs/types/MoveArgs.html +4 -4
  255. package/docs/types/MoveOpts.html +4 -4
  256. package/docs/types/Object3DHelperEventMap.html +4 -4
  257. package/docs/types/ObjectFit.html +4 -4
  258. package/docs/types/PaintBrushEventMap.html +4 -4
  259. package/docs/types/PanoCompassPluginData.html +4 -4
  260. package/docs/types/PanoCompassPluginExportType.html +4 -4
  261. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  262. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  263. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  264. package/docs/types/PanoIndex.html +4 -4
  265. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  266. package/docs/types/PanoMeasureReturnType.html +4 -4
  267. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  268. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  269. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  270. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  271. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  272. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
  273. package/docs/types/PlaneTag.html +4 -4
  274. package/docs/types/PlaneTagElement.html +4 -4
  275. package/docs/types/Point2DElement.html +4 -4
  276. package/docs/types/Point2DTag.html +4 -4
  277. package/docs/types/Point3DElement.html +4 -4
  278. package/docs/types/Point3DTag.html +4 -4
  279. package/docs/types/PointTag.html +4 -4
  280. package/docs/types/PointTagElement.html +4 -4
  281. package/docs/types/Position.html +4 -4
  282. package/docs/types/RotateArgs.html +4 -4
  283. package/docs/types/RotateOpts.html +4 -4
  284. package/docs/types/RuleLabelsKey.html +4 -4
  285. package/docs/types/RuleLabelsValue.html +4 -4
  286. package/docs/types/StickType.html +4 -4
  287. package/docs/types/Tag.html +4 -4
  288. package/docs/types/Tag2D.html +4 -4
  289. package/docs/types/Tag3D.html +4 -4
  290. package/docs/types/TagContentType.html +4 -4
  291. package/docs/types/TagDimensionType.html +4 -4
  292. package/docs/types/TagElement.html +4 -4
  293. package/docs/types/TagEvents.html +4 -4
  294. package/docs/types/TagGLTFObject.html +4 -4
  295. package/docs/types/TagHooks.html +4 -4
  296. package/docs/types/TagIconSize.html +4 -4
  297. package/docs/types/TagId.html +4 -4
  298. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  299. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  300. package/docs/types/WorkCode.html +4 -4
  301. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  302. package/docs/variables/PLUGIN.html +4 -4
  303. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  304. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  305. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  306. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  307. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  308. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -3
  309. package/libs/PanoTagPlugin/controller/TagComputer.js +9 -9
  310. package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
  311. package/libs/PanoTagPlugin/controller/TagRender.js +97 -93
  312. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
  313. package/libs/PanoTagPlugin/controller/TagUtil.js +17 -17
  314. package/libs/PanoTagPlugin/controller/index.js +127 -109
  315. package/libs/PanoTagPlugin/index.js +12 -10
  316. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +3 -0
  317. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +12 -2
  318. package/libs/PanoTagPlugin/typings/tag/TagData.js +1 -1
  319. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +3 -1
  320. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +13 -5
  321. package/libs/base/BasePlugin.js +1 -1
  322. package/libs/shared-utils/logger.js +1 -1
  323. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.18.4</title><meta name="description" content="Documentation for 如视看房插件合集"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.19.0-0</title><meta name="description" content="Documentation for 如视看房插件合集"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,7 +6,7 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.18.4</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.19.0-0</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-content">
@@ -24,7 +24,7 @@
24
24
  <li class="tsd-parameter">
25
25
  <h5><span class="tsd-kind-property">version</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
26
26
  <ul>
27
- <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/5c2bd53/plugins/src/ModelRoomLabelPlugin/index.ts#L9">plugins/src/ModelRoomLabelPlugin/index.ts:9</a></li></ul></aside></div>
27
+ <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/9934704/plugins/src/ModelRoomLabelPlugin/index.ts#L9">plugins/src/ModelRoomLabelPlugin/index.ts:9</a></li></ul></aside></div>
28
28
  <div class="col-sidebar">
29
29
  <div class="page-menu">
30
30
  <div class="tsd-navigation settings">
@@ -38,7 +38,7 @@
38
38
  <div class="tsd-theme-toggle">
39
39
  <h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
40
40
  <div class="site-menu">
41
- <nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4-path"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)" id="icon-4-text"></path></svg><span>如视看房插件合集 -<wbr/> v2.18.4</span></a>
41
+ <nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4-path"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)" id="icon-4-text"></path></svg><span>如视看房插件合集 -<wbr/> v2.19.0-<wbr/>0</span></a>
42
42
  <ul class="tsd-small-nested-navigation">
43
43
  <li>
44
44
  <details class="tsd-index-accordion" data-key="CruisePluginTypes"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg><a href="../modules/CruisePluginTypes.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4-path"></use><use href="#icon-4-text"></use></svg><span>Cruise<wbr/>Plugin<wbr/>Types</span></a></summary>
@@ -128,14 +128,14 @@ function V(t, n, a) {
128
128
  const w = G("hooks");
129
129
  let { tag: o } = n, i, l = !1;
130
130
  const g = () => {
131
- o.style.point.enabled !== !1 && (i !== void 0 && clearTimeout(i), l = !0, i = setTimeout(
131
+ i !== void 0 && clearTimeout(i), l = !0, i = setTimeout(
132
132
  () => {
133
133
  l = !1;
134
134
  },
135
135
  800
136
- ));
136
+ );
137
137
  }, k = (r) => {
138
- o.style.point.enabled !== !1 && (l || w.emit("click", { event: r, target: "TagPoint", tag: o }));
138
+ l || w.emit("click", { event: r, target: "TagPoint", tag: o });
139
139
  }, e = (() => o.contentType === "Text" && o.data.appearance === "plane" ? 500 : 800)();
140
140
  function s(r) {
141
141
  H.call(this, t, r);
@@ -2,17 +2,17 @@ var M = Object.defineProperty, U = Object.defineProperties;
2
2
  var R = Object.getOwnPropertyDescriptors;
3
3
  var P = Object.getOwnPropertySymbols;
4
4
  var B = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
5
- var y = (c, l, e) => l in c ? M(c, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[l] = e, x = (c, l) => {
5
+ var g = (c, l, e) => l in c ? M(c, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[l] = e, x = (c, l) => {
6
6
  for (var e in l || (l = {}))
7
- B.call(l, e) && y(c, e, l[e]);
7
+ B.call(l, e) && g(c, e, l[e]);
8
8
  if (P)
9
9
  for (var e of P(l))
10
- C.call(l, e) && y(c, e, l[e]);
10
+ C.call(l, e) && g(c, e, l[e]);
11
11
  return c;
12
12
  }, I = (c, l) => U(c, R(l));
13
- var T = (c, l, e) => (y(c, typeof l != "symbol" ? l + "" : l, e), e);
13
+ var T = (c, l, e) => (g(c, typeof l != "symbol" ? l + "" : l, e), e);
14
14
  import * as D from "three";
15
- import { isMediaModelTag as g, is3DTag as j } from "../utils/tag/tagCheck.js";
15
+ import { is3DTag as j, isMediaModelTag as y } from "../utils/tag/tagCheck.js";
16
16
  import { tagPosition as V, getTagPosition as k } from "../utils/tagPosition.js";
17
17
  import { checkRange as h } from "../utils/checkRange.js";
18
18
  import "hammerjs";
@@ -65,7 +65,7 @@ class Ue extends $ {
65
65
  */
66
66
  getVisibleByPanoIndex(e, t) {
67
67
  const s = this.getCache({ panoIndex: t, id: e.id }), n = t != null ? t : this.five.getCurrentState().panoIndex;
68
- if (g(e))
68
+ if (e.stickType === "Model")
69
69
  return !0;
70
70
  if (s.visible !== void 0)
71
71
  return s.visible;
@@ -270,7 +270,7 @@ class Ue extends $ {
270
270
  const e = this.five.getCurrentState().mode;
271
271
  this.tags.forEach((t) => {
272
272
  var n;
273
- if (!g(t))
273
+ if (!y(t))
274
274
  return;
275
275
  if (!((n = t.model) != null && n.object)) {
276
276
  t.mediaVisible = !1;
@@ -306,9 +306,9 @@ class Ue extends $ {
306
306
  getTagEnableByIntersect(e, t) {
307
307
  var u, v, r;
308
308
  const s = (u = this.getTagConfig(e).visibleConfig) != null ? u : {}, n = this.getDistance(e), [i] = this.five.model.intersectRaycaster(t), o = (() => {
309
- if (!g(e))
309
+ if (!y(e))
310
310
  return;
311
- const a = this.tags.filter(g).map((b) => {
311
+ const a = this.tags.filter(y).map((b) => {
312
312
  var m;
313
313
  return (m = b.model) == null ? void 0 : m.object;
314
314
  }).filter(S);
@@ -55,5 +55,5 @@ export declare abstract class TagRender extends TagComputer {
55
55
  */
56
56
  protected clearUnusedPanelTag(): void;
57
57
  /** 加载外部模型 */
58
- protected loadModel: (tag: TagElement<'MediaModel', 'Model'>) => Promise<TagGLTFObject>;
58
+ protected loadModel: (tag: TagElement<'Model', 'Model'> | TagElement<'MediaModel', 'Model'>) => Promise<TagGLTFObject>;
59
59
  }
@@ -1,32 +1,32 @@
1
- var w = Object.defineProperty;
2
- var O = (c, l, t) => l in c ? w(c, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[l] = t;
3
- var u = (c, l, t) => (O(c, typeof l != "symbol" ? l + "" : l, t), t);
4
- var T = (c, l, t) => new Promise((e, i) => {
5
- var o = (s) => {
1
+ var k = Object.defineProperty;
2
+ var w = (f, h, t) => h in f ? k(f, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[h] = t;
3
+ var g = (f, h, t) => (w(f, typeof h != "symbol" ? h + "" : h, t), t);
4
+ var P = (f, h, t) => new Promise((e, i) => {
5
+ var o = (r) => {
6
6
  try {
7
- a(t.next(s));
8
- } catch (r) {
9
- i(r);
7
+ a(t.next(r));
8
+ } catch (s) {
9
+ i(s);
10
10
  }
11
- }, n = (s) => {
11
+ }, n = (r) => {
12
12
  try {
13
- a(t.throw(s));
14
- } catch (r) {
15
- i(r);
13
+ a(t.throw(r));
14
+ } catch (s) {
15
+ i(s);
16
16
  }
17
- }, a = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(o, n);
18
- a((t = t.apply(c, l)).next());
17
+ }, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(o, n);
18
+ a((t = t.apply(f, h)).next());
19
19
  });
20
- import { TagComputer as k } from "./TagComputer.js";
21
- import { Group as b, Quaternion as x, Vector3 as P, Matrix4 as D } from "three";
22
- import E from "../Components/TagContainer.js";
23
- import G from "../Components/Tag/index.js";
24
- import { arrayPositionToVector3 as v } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
25
- import { centerPoint as I } from "../../shared-utils/three/centerPoint.js";
26
- import { isMediaModelTag as S } from "../utils/tag/tagCheck.js";
20
+ import { TagComputer as E } from "./TagComputer.js";
21
+ import { Group as v, Quaternion as O, Vector3 as T, Matrix4 as D } from "three";
22
+ import x from "../Components/TagContainer.js";
23
+ import A from "../Components/Tag/index.js";
24
+ import { arrayPositionToVector3 as S } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
25
+ import { centerPoint as G } from "../../shared-utils/three/centerPoint.js";
26
+ import { isMediaModelTag as C, isStickModelTag as I } from "../utils/tag/tagCheck.js";
27
27
  import { CSS3DRenderPlugin as V } from "../../CSS3DRenderPlugin/index.js";
28
- import { loadGLTF as A } from "../../shared-utils/three/GLTFLoader.js";
29
- import { VideoPlane as j, ImagePlane as R } from "../utils/model/mediaPlane.js";
28
+ import { loadGLTF as F } from "../../shared-utils/three/GLTFLoader.js";
29
+ import { VideoPlane as R, ImagePlane as j } from "../utils/model/mediaPlane.js";
30
30
  import "../utils/tagPosition.js";
31
31
  import "../utils/checkRange.js";
32
32
  import "hammerjs";
@@ -139,43 +139,47 @@ import "../Components/Tag/CustomTag.js";
139
139
  import "../../CSS3DRenderPlugin/Controller.js";
140
140
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
141
141
  import "@realsee/five/gltf-loader";
142
- const F = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
143
- class ei extends k {
142
+ const L = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
143
+ class ti extends E {
144
144
  constructor(t) {
145
145
  super(t);
146
- u(this, "group", new b());
147
- u(this, "imagePlaneGroup", new b());
148
- u(this, "gltfObjectGroup", new b());
146
+ g(this, "group", new v());
147
+ g(this, "imagePlaneGroup", new v());
148
+ g(this, "gltfObjectGroup", new v());
149
149
  /** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
150
- u(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
150
+ g(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
151
151
  /** 临时状态 */
152
- u(this, "temporaryState", { visible: !0 });
152
+ g(this, "temporaryState", { visible: !0 });
153
153
  /** 点标签 */
154
- u(this, "TagContainerSvelte");
154
+ g(this, "TagContainerSvelte");
155
155
  /** 加载外部模型 */
156
- u(this, "loadModel", (t) => T(this, null, function* () {
157
- var s;
156
+ g(this, "loadModel", (t) => P(this, null, function* () {
157
+ var a;
158
158
  const e = t.data.modelUrl;
159
159
  if (!e)
160
160
  return;
161
- const i = A(e).then((r) => Object.assign(r.scene, { customID: t.id, isTagModel: !0 }));
161
+ const i = F(e).then((r) => {
162
+ var m, u, p, d, c;
163
+ const s = Object.assign(r.scene, { customID: t.id, isTagModel: !0 });
164
+ return s.visible = this.getCurrentVisibleState(t), new D().fromArray(t.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), s.visible = this.getVisibleByFiveMode(t), (p = (u = (m = this.config) == null ? void 0 : m.globalConfig) == null ? void 0 : u.modelConfig) != null && p.autoLookAtEnabled && ((c = (d = t.config) == null ? void 0 : d.modelConfig) != null && c.autoLookAtEnabled) && s.lookAt(this.five.camera.position.clone().setY(s.position.y)), s;
165
+ });
162
166
  t.model = { promise: i };
163
167
  const o = yield i;
164
- if (((s = t.model) == null ? void 0 : s.promise) !== i || (t.model.object = o, !this.tags.includes(t)))
168
+ if (((a = t.model) == null ? void 0 : a.promise) !== i || !this.tags.includes(t))
165
169
  return;
166
- o.visible = this.getCurrentVisibleState(t), new D().fromArray(t.matrix).decompose(o.position, o.quaternion, o.scale), o.updateWorldMatrix(!0, !0), o.visible = this.getVisibleByFiveMode(t);
167
- const a = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
168
- if (a && this.gltfObjectGroup.remove(a), this.getRenderType(t) === "Mesh") {
169
- if (!t.mediaPlane) {
170
- const r = t.data.mediaPosition.map(v);
171
- t.mediaPlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(v), {
170
+ t.model.object = o;
171
+ const n = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
172
+ if (n && this.gltfObjectGroup.remove(n), this.updateRender3DDomTag(), C(t)) {
173
+ if (this.getRenderType(t) === "Mesh" && !t.mediaPlane) {
174
+ const r = t.data.mediaPosition.map(S);
175
+ t.mediaPlane = new j(t.data.mediaData[0].url, t.data.mediaPosition.map(S), {
172
176
  objectFit: t.data.objectFit
173
177
  });
174
- const m = new P().addVectors(r[0], r[2]).divideScalar(2);
175
- t.mediaPlane.position.copy(m), o.add(t.mediaPlane);
178
+ const s = new T().addVectors(r[0], r[2]).divideScalar(2);
179
+ t.mediaPlane.position.copy(s), o.add(t.mediaPlane);
176
180
  }
177
- } else
178
- o.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, o), o.updateTagCss3DObjectMatrix();
181
+ this.getRenderType(t) !== "Mesh" && (o.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, o), o.updateTagCss3DObjectMatrix());
182
+ }
179
183
  return this.gltfObjectGroup.add(o), o;
180
184
  }));
181
185
  this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
@@ -197,32 +201,32 @@ class ei extends k {
197
201
  */
198
202
  updateRenderImagePlane() {
199
203
  this.sort(this.filterImagePlane).forEach((e) => {
200
- var s, r, m, f, g;
204
+ var r, s, l, m, u;
201
205
  const i = e.data.mediaData[0];
202
206
  if (!i)
203
207
  return;
204
208
  const { url: o, type: n } = i;
205
- if (!o || (e.mediaPlane && (e.mediaPlane.visible = (r = (s = e.state) == null ? void 0 : s.visible) != null ? r : !0, e.mediaPlane.visible || e.mediaPlane instanceof j && ((m = e.data.autoplayConfig) != null && m.autoplayVideo || e.mediaPlane.pause())), ((f = e.mediaPlane) == null ? void 0 : f.src) === o))
209
+ if (!o || (e.mediaPlane && (e.mediaPlane.visible = (s = (r = e.state) == null ? void 0 : r.visible) != null ? s : !0, e.mediaPlane.visible || e.mediaPlane instanceof R && ((l = e.data.autoplayConfig) != null && l.autoplayVideo || e.mediaPlane.pause())), ((m = e.mediaPlane) == null ? void 0 : m.src) === o))
206
210
  return;
207
- const a = e.position.map(v);
211
+ const a = e.position.map(S);
208
212
  if (e.mediaPlane && e.mediaPlane.removeFromParent(), n === "Image")
209
- e.mediaPlane = new R(o, a, { objectFit: e.data.objectFit }), this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (p) => {
213
+ e.mediaPlane = new j(o, a, { objectFit: e.data.objectFit }), this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (p) => {
210
214
  this.hooks.emit("click", { tag: e, target: "TagContent", event: p.origDomEvent });
211
215
  });
212
216
  else if (n === "Video") {
213
- const p = new j(o, a, {
217
+ const p = new R(o, a, {
214
218
  videoCoverSrc: i.videoCoverUrl,
215
219
  playButton: e.data.playIcon,
216
- paused: !((g = e.data.autoplayConfig) != null && g.autoplayVideo),
220
+ paused: !((u = e.data.autoplayConfig) != null && u.autoplayVideo),
217
221
  objectFit: e.data.objectFit,
218
- videoTextureMap: F,
222
+ videoTextureMap: L,
219
223
  ImageTextureMap: B
220
224
  });
221
- p.onVideoReady = (d) => {
222
- d.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: p.videoInstance }));
225
+ p.onVideoReady = (c) => {
226
+ c.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: p.videoInstance }));
223
227
  }, p.initialDomEvents(this.domEvents);
224
- const h = (d) => (this.five.on("renderFrame", d), () => this.five.off("renderFrame", d));
225
- p.initialRenderHooks(h), e.mediaPlane = p;
228
+ const d = (c) => (this.five.on("renderFrame", c), () => this.five.off("renderFrame", c));
229
+ p.initialRenderHooks(d), e.mediaPlane = p;
226
230
  }
227
231
  this.imagePlaneGroup.add(e.mediaPlane);
228
232
  });
@@ -232,44 +236,44 @@ class ei extends k {
232
236
  */
233
237
  updateRender3DDomTag() {
234
238
  this.sort([...this.filterCSS3DTag]).forEach((e) => {
235
- var i, o;
239
+ var i, o, n;
236
240
  if (e.tag3DContentSvelte) {
237
- const { svelteApp: n, css3DInstance: a, initialNormal: s, currentNormal: r } = e.tag3DContentSvelte;
238
- if (n.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !s.equals(r)) {
239
- const m = new x().setFromUnitVectors(s, r);
240
- a.css3DObject.setRotationFromQuaternion(m);
241
+ const { svelteApp: a, css3DInstance: r, initialNormal: s, currentNormal: l } = e.tag3DContentSvelte;
242
+ if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !s.equals(l)) {
243
+ const m = new O().setFromUnitVectors(s, l);
244
+ r.css3DObject.setRotationFromQuaternion(m);
241
245
  }
242
246
  return;
243
247
  } else {
244
- if (((i = e.state) == null ? void 0 : i.visible) === !1)
248
+ if (C(e) && !((i = e.model) != null && i.object) || ((o = e.state) == null ? void 0 : o.visible) === !1 || !this.state.visible || !this.state.enabled)
245
249
  return;
246
250
  if (this.css3DRenderPlugin || (this.css3DRenderPlugin = V(this.five)), e.stickType === "3DPoint" && !e.normal)
247
251
  return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
248
- const n = this.getPositions(e);
249
- if (!n)
250
- return;
251
- const a = this.getTagNormal(e);
252
+ const a = this.getPositions(e);
252
253
  if (!a)
253
254
  return;
254
- const r = (o = this.getTagConfig(e).tag3DConfig) != null ? o : {};
255
+ const r = this.getTagNormal(e);
256
+ if (!r)
257
+ return;
258
+ const l = (n = this.getTagConfig(e).tag3DConfig) != null ? n : {};
255
259
  if (this.getRenderType(e) === "BehindDom") {
256
- r.mode = "behind", r.container = document.createElement("div");
257
- const g = "black";
258
- r.container.style.backgroundColor = g, r.container.style.border = `3px solid ${g}`, this.css3DRenderPlugin.hooks.on("render", () => {
259
- var p;
260
+ l.mode = "behind", l.container = document.createElement("div");
261
+ const p = "black";
262
+ l.container.style.backgroundColor = p, l.container.style.border = `3px solid ${p}`, this.css3DRenderPlugin.hooks.on("render", () => {
263
+ var d;
260
264
  if (m.css3DObject.opacityMesh) {
261
- const h = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (d) => {
262
- this.hooks.emit("click", { event: d, target: "TagContent", tag: e });
265
+ const c = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (b) => {
266
+ this.hooks.emit("click", { event: b, target: "TagContent", tag: e });
263
267
  });
264
- (p = this.store.css3DRenderDisposer.get(e.id)) == null || p.push(h);
268
+ (d = this.store.css3DRenderDisposer.get(e.id)) == null || d.push(c);
265
269
  }
266
270
  });
267
271
  }
268
- const m = this.css3DRenderPlugin.create3DDomContainer(n, r);
272
+ const m = this.css3DRenderPlugin.create3DDomContainer(a, l);
269
273
  if (!m)
270
274
  return;
271
275
  this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
272
- const f = new G({
276
+ const u = new A({
273
277
  target: m.container,
274
278
  props: {
275
279
  tag: e,
@@ -281,13 +285,13 @@ class ei extends k {
281
285
  }
282
286
  });
283
287
  e.tag3DContentSvelte = {
284
- svelteApp: f,
288
+ svelteApp: u,
285
289
  domContainer: m,
286
290
  css3DInstance: m,
287
- initialNormal: a,
288
- currentNormal: a,
291
+ initialNormal: r,
292
+ currentNormal: r,
289
293
  dispose: () => {
290
- f.$destroy(), m.dispose();
294
+ u.$destroy(), m.dispose();
291
295
  }
292
296
  };
293
297
  }
@@ -302,7 +306,7 @@ class ei extends k {
302
306
  */
303
307
  updateRenderModelTag() {
304
308
  const t = (i) => !this.enabledModelTagSet.has(i.customID);
305
- this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter(S).forEach((i) => {
309
+ this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter((i) => i.stickType === "Model").forEach((i) => {
306
310
  var o;
307
311
  (o = i.model) == null || o.promise.then((n) => {
308
312
  n.visible = this.getCurrentVisibleState(i);
@@ -320,21 +324,21 @@ class ei extends k {
320
324
  * @param model 模型
321
325
  */
322
326
  updateTagCss3DObjectMatrix(t, e) {
323
- var d, C, y, M;
324
- const i = (y = (C = (d = t.mergedConfig) == null ? void 0 : d.tag3DConfig) == null ? void 0 : C.ratio) != null ? y : 216e-5, o = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
327
+ var c, b, y, M;
328
+ const i = (y = (b = (c = t.mergedConfig) == null ? void 0 : c.tag3DConfig) == null ? void 0 : b.ratio) != null ? y : 216e-5, o = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
325
329
  if (!o)
326
330
  return;
327
- const n = S(t) ? t.data.mediaPosition : t.position;
331
+ const n = C(t) ? t.data.mediaPosition : t.position;
328
332
  e.updateWorldMatrix(!1, !1);
329
- const a = e.matrixWorld, s = new P().fromArray(n[0]), r = new P().fromArray(n[2]), m = I(s, r).add(new P(0, 0, 5e-4)), f = new D().setPosition(m), g = new D().makeScale(i, i, i), p = new D().multiply(a).multiply(f).multiply(g);
333
+ const a = e.matrixWorld, r = new T().fromArray(n[0]), s = new T().fromArray(n[2]), l = G(r, s).add(new T(0, 0, 5e-4)), m = new D().setPosition(l), u = new D().makeScale(i, i, i), p = new D().multiply(a).multiply(m).multiply(u);
330
334
  p.decompose(o.position, o.quaternion, o.scale);
331
- const h = o.opacityMesh;
332
- h && p.decompose(h.position, h.quaternion, h.scale);
335
+ const d = o.opacityMesh;
336
+ d && p.decompose(d.position, d.quaternion, d.scale);
333
337
  }
334
338
  /** 添加模型标签 */
335
339
  addMediaModelTag(t) {
336
- return T(this, null, function* () {
337
- const e = t.filter(S).map((i) => this.loadModel(i));
340
+ return P(this, null, function* () {
341
+ const e = t.filter(I).map((i) => this.loadModel(i));
338
342
  yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
339
343
  });
340
344
  }
@@ -350,7 +354,7 @@ class ei extends k {
350
354
  const i = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
351
355
  if (!i)
352
356
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
353
- this.TagContainerSvelte = new E({
357
+ this.TagContainerSvelte = new x({
354
358
  target: i,
355
359
  props: { hooks: this.hooks, tags: t, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
356
360
  });
@@ -363,8 +367,8 @@ class ei extends k {
363
367
  temporaryState: this.temporaryState,
364
368
  withAnimation: this.store.visibleWithAnimation
365
369
  }), this.filterCSS3DTag.forEach((e) => {
366
- var i, o, n, a, s;
367
- (a = (o = (i = e.tag3DContentSvelte) == null ? void 0 : i.css3DInstance) == null ? void 0 : o.css3DObject) == null || a.setVisible((this.state.visible && ((n = e.state) == null ? void 0 : n.visible)) !== !1), (s = e.tag3DContentSvelte) == null || s.svelteApp.$set({
370
+ var i, o, n, a, r;
371
+ (a = (o = (i = e.tag3DContentSvelte) == null ? void 0 : i.css3DInstance) == null ? void 0 : o.css3DObject) == null || a.setVisible((this.state.visible && ((n = e.state) == null ? void 0 : n.visible)) !== !1), (r = e.tag3DContentSvelte) == null || r.svelteApp.$set({
368
372
  state: this.state,
369
373
  temporaryState: this.temporaryState,
370
374
  withAnimation: this.store.visibleWithAnimation
@@ -391,5 +395,5 @@ class ei extends k {
391
395
  }
392
396
  }
393
397
  export {
394
- ei as TagRender
398
+ ti as TagRender
395
399
  };
@@ -32,7 +32,7 @@ export declare abstract class TagUtil extends TagCache {
32
32
  * @description: 获取merge后的配置
33
33
  * TODO: 缓存
34
34
  */
35
- getTagConfig(tag: Tag<any, any>): TagConfig<"Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", StickType>;
35
+ getTagConfig(tag: Tag<any, any>): TagConfig<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", StickType>;
36
36
  protected loadVideoFirstFrame(): void;
37
37
  protected updateTagConfig(params?: {
38
38
  force?: boolean;
@@ -6,8 +6,8 @@ import * as C from "three";
6
6
  import { DefaultConfig as P } from "../tag.config.js";
7
7
  import { anyPositionToVector3 as w, arrayPositionToVector3 as h } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
8
8
  import { planeNormal as p } from "../utils/planeNormal.js";
9
- import { tagPosition as E, getTagPosition as k } from "../utils/tagPosition.js";
10
- import { normalPositionToPositions as M } from "../utils/normalPositionToPositions.js";
9
+ import { tagPosition as E, getTagPosition as M } from "../utils/tagPosition.js";
10
+ import { normalPositionToPositions as k } from "../utils/normalPositionToPositions.js";
11
11
  import { TagCache as b } from "./TagCache.js";
12
12
  import { writable as I } from "../../vendor/svelte/store/index.js";
13
13
  import { isIOSWX as A } from "../../shared-utils/device.js";
@@ -97,12 +97,12 @@ class De extends b {
97
97
  * TODO: 缓存
98
98
  */
99
99
  getTagConfig(e) {
100
- var o, a;
100
+ var o, d;
101
101
  if (!e)
102
102
  return (o = this.config.globalConfig) != null ? o : {};
103
103
  const i = {};
104
- this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((d) => {
105
- const r = d;
104
+ this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((a) => {
105
+ const r = a;
106
106
  if (i[r])
107
107
  return;
108
108
  const f = r.split("-");
@@ -123,7 +123,7 @@ class De extends b {
123
123
  }
124
124
  });
125
125
  const t = T({}, this.config.globalConfig, ...Object.values(i), e.config);
126
- return typeof t.unfoldedConfig == "object" && (t.unfoldedConfig.disableFold && (t.unfoldedConfig = { keep: "unfolded" }), t.unfoldedConfig.disableUnfold && (t.unfoldedConfig = { keep: "folded" }), t.unfoldedConfig.keep && (t.unfoldedConfig = { keep: t.unfoldedConfig.keep })), typeof t.visibleConfig == "object" && t.visibleConfig.keep && (t.visibleConfig = { keep: t.visibleConfig.keep, visibleFiveMode: (a = t.visibleConfig) == null ? void 0 : a.visibleFiveMode }), t;
126
+ return typeof t.unfoldedConfig == "object" && (t.unfoldedConfig.disableFold && (t.unfoldedConfig = { keep: "unfolded" }), t.unfoldedConfig.disableUnfold && (t.unfoldedConfig = { keep: "folded" }), t.unfoldedConfig.keep && (t.unfoldedConfig = { keep: t.unfoldedConfig.keep })), typeof t.visibleConfig == "object" && t.visibleConfig.keep && (t.visibleConfig = { keep: t.visibleConfig.keep, visibleFiveMode: (d = t.visibleConfig) == null ? void 0 : d.visibleFiveMode }), t;
127
127
  }
128
128
  loadVideoFirstFrame() {
129
129
  A && this.hooks.emit("loadVideoFirstFrame");
@@ -175,7 +175,7 @@ class De extends b {
175
175
  * @description: 获取角度
176
176
  */
177
177
  getAngle(e, i) {
178
- var a, d;
178
+ var d, a;
179
179
  const t = i != null ? i : this.five.getCurrentState().panoIndex;
180
180
  if (t === void 0)
181
181
  throw new Error(`getDistance(): fivePanoIndex is ${t}`);
@@ -183,7 +183,7 @@ class De extends b {
183
183
  if (o.angle !== void 0)
184
184
  return o.angle;
185
185
  {
186
- const r = (d = (a = this.five.work) == null ? void 0 : a.observers[t]) == null ? void 0 : d.position;
186
+ const r = (a = (d = this.five.work) == null ? void 0 : d.observers[t]) == null ? void 0 : a.position;
187
187
  if (r === void 0)
188
188
  throw new Error(`getAngleRange(): observerPosition is ${r}`);
189
189
  const f = (() => e.stickType === "3DPoint" ? w(e.normal) : p(e.position))();
@@ -200,7 +200,7 @@ class De extends b {
200
200
  * @description: 获取距离
201
201
  */
202
202
  getDistance(e, i) {
203
- var a, d;
203
+ var d, a;
204
204
  const t = i != null ? i : this.five.getCurrentState().panoIndex;
205
205
  if (t === void 0)
206
206
  throw new Error(`getDistance(): fivePanoIndex is ${t}`);
@@ -208,10 +208,10 @@ class De extends b {
208
208
  if (o.distance !== void 0)
209
209
  return o.distance;
210
210
  {
211
- const r = (d = (a = this.five.work) == null ? void 0 : a.observers[t]) == null ? void 0 : d.position;
211
+ const r = (a = (d = this.five.work) == null ? void 0 : d.observers[t]) == null ? void 0 : a.position;
212
212
  if (r === void 0)
213
213
  throw new Error(`getDistance(): observerPosition is ${r}`);
214
- const f = k(e);
214
+ const f = M(e);
215
215
  if (!f)
216
216
  return -1;
217
217
  const s = r.distanceTo(f);
@@ -224,7 +224,7 @@ class De extends b {
224
224
  if (g(e))
225
225
  return e.data.mediaPosition;
226
226
  const i = e;
227
- return M(
227
+ return k(
228
228
  this.five.camera.position,
229
229
  h(i.position),
230
230
  h(i.normal)
@@ -234,7 +234,7 @@ class De extends b {
234
234
  if (!i || !this.domEvents)
235
235
  return () => {
236
236
  };
237
- const o = () => !(!e.state.visible || !this.state.visible || g(e) && !e.mediaVisible), a = (s) => {
237
+ const o = () => !(!e.state.visible || !this.state.visible || g(e) && !e.mediaVisible), d = (s) => {
238
238
  if (!o()) {
239
239
  this.mouseInfo = void 0;
240
240
  return;
@@ -246,7 +246,7 @@ class De extends b {
246
246
  isDown: !0,
247
247
  mouseDownTimestamp: Date.now()
248
248
  };
249
- }, d = (s) => {
249
+ }, a = (s) => {
250
250
  if (!o()) {
251
251
  this.mouseInfo = void 0;
252
252
  return;
@@ -273,8 +273,8 @@ class De extends b {
273
273
  const n = s.origDomEvent;
274
274
  this.mouseInfo && (this.mouseInfo.isDown && this.mouseInfo.x === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientX) && this.mouseInfo.y === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientY) && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && t(n), this.mouseInfo = void 0);
275
275
  };
276
- return this.domEvents.addEventListener(i, "mousedown", a, !1), this.domEvents.addEventListener(i, "mouseup", d, !1), this.domEvents.addEventListener(i, "touchstart", r, !1), this.domEvents.addEventListener(i, "touchend", f, !1), () => {
277
- this.domEvents && (this.mouseInfo = void 0, this.domEvents.removeEventListener(i, "mousedown", a), this.domEvents.removeEventListener(i, "mouseup", d), this.domEvents.removeEventListener(i, "touchstart", r), this.domEvents.removeEventListener(i, "touchend", f));
276
+ return this.domEvents.addEventListener(i, "mousedown", d, !1), this.domEvents.addEventListener(i, "mouseup", a, !1), this.domEvents.addEventListener(i, "touchstart", r, !1), this.domEvents.addEventListener(i, "touchend", f, !1), () => {
277
+ this.domEvents && (this.mouseInfo = void 0, this.domEvents.removeEventListener(i, "mousedown", d), this.domEvents.removeEventListener(i, "mouseup", a), this.domEvents.removeEventListener(i, "touchstart", r), this.domEvents.removeEventListener(i, "touchend", f));
278
278
  };
279
279
  }
280
280
  getTagNormal(e) {
@@ -307,7 +307,7 @@ class De extends b {
307
307
  return this.tags.filter((e) => e.stickType === "Model");
308
308
  }
309
309
  get filterCSS3DTag() {
310
- return this.tags.filter((i) => i.stickType === "3DPoint" || i.stickType === "Plane" || i.stickType === "Model").filter((i) => {
310
+ return this.tags.filter((i) => i.stickType === "3DPoint" || i.stickType === "Plane" || i.stickType === "Model" && i.contentType === "MediaModel").filter((i) => {
311
311
  const t = this.getRenderType(i);
312
312
  return t === "BehindDom" || t === "Dom";
313
313
  });