@realsee/dnalogel 2.18.5 → 2.19.0-1

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 (325) hide show
  1. package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +1 -4
  2. package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -1
  3. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
  4. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +3 -0
  5. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +12 -2
  6. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +3 -1
  7. package/dist/index.cjs.js +24 -24
  8. package/dist/index.js +5261 -5239
  9. package/dist/index.umd.js +25 -25
  10. package/docs/assets/search.js +1 -1
  11. package/docs/classes/CSS3DRender.html +30 -30
  12. package/docs/classes/CruisePluginController.html +25 -25
  13. package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
  14. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +30 -30
  15. package/docs/classes/Magnifier.html +19 -19
  16. package/docs/classes/ModelRoomLabelController.html +10 -10
  17. package/docs/classes/Object3DHelperController.html +24 -24
  18. package/docs/classes/PaintBrush.html +14 -14
  19. package/docs/classes/PanoMeasurePluginLine.html +22 -22
  20. package/docs/classes/PanoMeasurePluginModel.html +21 -21
  21. package/docs/classes/PanoMeasurePluginPoint.html +13 -13
  22. package/docs/classes/PanoMeasurePluginPolyline.html +25 -25
  23. package/docs/classes/PanoTagPluginController.html +55 -55
  24. package/docs/classes/Util.BetterTween.html +8 -8
  25. package/docs/classes/Util.FivePointSelector.html +11 -11
  26. package/docs/classes/Util.Interval.html +11 -11
  27. package/docs/classes/Util.Magnifier.html +16 -16
  28. package/docs/classes/Util.PointDomHelper.html +10 -10
  29. package/docs/classes/Util.PointHelper.html +10 -10
  30. package/docs/classes/Util.Rectangle.html +12 -12
  31. package/docs/enums/CameraMovementEffect.html +6 -6
  32. package/docs/enums/ContentType.html +27 -18
  33. package/docs/enums/DIRECTION.html +8 -8
  34. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
  35. package/docs/enums/DimensionType.html +6 -6
  36. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
  37. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
  38. package/docs/enums/PaintBrushTypeEnum.html +7 -7
  39. package/docs/enums/Rotation.html +7 -7
  40. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  41. package/docs/functions/CameraMovementPlugin.html +3 -3
  42. package/docs/functions/CruisePlugin.html +3 -3
  43. package/docs/functions/GuideLinePlugin.html +4 -4
  44. package/docs/functions/ItemLabelPlugin.html +3 -3
  45. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  46. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  47. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  48. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  49. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  50. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  51. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  52. package/docs/functions/ModelViewPlugin.html +3 -3
  53. package/docs/functions/Object3DHelperPlugin.html +3 -3
  54. package/docs/functions/PanoCompassPlugin.html +3 -3
  55. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  56. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  57. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  58. package/docs/functions/PanoMeasurePlugin.html +3 -3
  59. package/docs/functions/PanoRulerPlugin.html +3 -3
  60. package/docs/functions/PanoRulerProPlugin.html +3 -3
  61. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  62. package/docs/functions/PanoTagPlugin.html +3 -3
  63. package/docs/functions/PanoVideoPlugin.html +3 -3
  64. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  65. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  66. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  67. package/docs/functions/Util.getFrameTime.html +4 -4
  68. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  69. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  70. package/docs/functions/Util.isAbsoluteURL.html +4 -4
  71. package/docs/functions/Util.isModelLike.html +4 -4
  72. package/docs/functions/Util.isNil.html +4 -4
  73. package/docs/functions/Util.isPanoramaLike.html +4 -4
  74. package/docs/functions/Util.nextFrame.html +4 -4
  75. package/docs/functions/Util.notNil.html +4 -4
  76. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  77. package/docs/functions/Util.tweenProgress.html +4 -4
  78. package/docs/functions/Util.uuid.html +4 -4
  79. package/docs/functions/pluginFlag.html +4 -4
  80. package/docs/index.html +4 -4
  81. package/docs/interfaces/AddTagConfig.html +5 -5
  82. package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
  83. package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
  84. package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
  85. package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
  86. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
  87. package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
  88. package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
  89. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
  90. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
  91. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
  92. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
  93. package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
  94. package/docs/interfaces/EventMap.html +16 -16
  95. package/docs/interfaces/FloorplanBounding.html +7 -7
  96. package/docs/interfaces/FloorplanData.html +9 -9
  97. package/docs/interfaces/FloorplanEntrance.html +10 -10
  98. package/docs/interfaces/FloorplanExtraObject.html +9 -9
  99. package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
  100. package/docs/interfaces/FloorplanFloorData.html +8 -8
  101. package/docs/interfaces/FloorplanImagePosition.html +6 -6
  102. package/docs/interfaces/FloorplanObserver.html +8 -8
  103. package/docs/interfaces/FloorplanOutlineItem.html +8 -8
  104. package/docs/interfaces/FloorplanPosition.html +6 -6
  105. package/docs/interfaces/FloorplanRoomItem.html +12 -12
  106. package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
  107. package/docs/interfaces/FloorplanServerBounding.html +7 -7
  108. package/docs/interfaces/FloorplanServerComputedData.html +9 -9
  109. package/docs/interfaces/FloorplanServerData.html +6 -6
  110. package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
  111. package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
  112. package/docs/interfaces/FloorplanServerEntrance.html +10 -10
  113. package/docs/interfaces/FloorplanServerFloorData.html +8 -8
  114. package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
  115. package/docs/interfaces/FloorplanServerObserver.html +8 -8
  116. package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
  117. package/docs/interfaces/FloorplanServerPosition.html +6 -6
  118. package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
  119. package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
  120. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
  121. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
  122. package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
  123. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
  124. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
  125. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
  126. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
  127. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
  128. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
  129. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
  130. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
  131. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
  132. package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
  133. package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
  134. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
  135. package/docs/interfaces/HelperOffset.html +7 -7
  136. package/docs/interfaces/ImagePlaneGroup.html +5 -5
  137. package/docs/interfaces/ItemLabelPluginData.html +5 -5
  138. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
  139. package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
  140. package/docs/interfaces/MinMax.html +6 -6
  141. package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
  142. package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
  143. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
  144. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
  145. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
  146. package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
  147. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
  148. package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
  149. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
  150. package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
  151. package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
  152. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
  153. package/docs/interfaces/ModelViewPluginExportType.html +10 -10
  154. package/docs/interfaces/Object3DHelperState.html +7 -7
  155. package/docs/interfaces/ObjectHelperControllers.html +8 -8
  156. package/docs/interfaces/PaintBrushAction.html +11 -11
  157. package/docs/interfaces/PaintBrushConfigs.html +11 -11
  158. package/docs/interfaces/PaintBrushState.html +9 -9
  159. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
  160. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  161. package/docs/interfaces/PanoMeasureParameterType.html +13 -13
  162. package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
  163. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
  164. package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
  165. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
  166. package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
  167. package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
  168. package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
  169. package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
  170. package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
  171. package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
  172. package/docs/interfaces/PanoRulerProPluginState.html +7 -7
  173. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  174. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  175. package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
  176. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
  177. package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
  178. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
  179. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
  180. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
  181. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
  182. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
  183. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
  184. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
  185. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  186. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
  187. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
  188. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
  189. package/docs/interfaces/Point.html +7 -7
  190. package/docs/interfaces/Room.html +8 -8
  191. package/docs/interfaces/RoomInfo.html +6 -6
  192. package/docs/interfaces/RoomLabel.html +13 -13
  193. package/docs/interfaces/RoomRules.html +4 -4
  194. package/docs/interfaces/Rooms.html +4 -4
  195. package/docs/interfaces/Scissor.html +8 -8
  196. package/docs/interfaces/State.html +7 -7
  197. package/docs/interfaces/TagCacheInterface.html +11 -11
  198. package/docs/interfaces/TagConfig.html +23 -11
  199. package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
  200. package/docs/interfaces/TagIconUrl.html +11 -11
  201. package/docs/interfaces/TagObjectGroup.html +5 -5
  202. package/docs/interfaces/TagStyle.html +5 -5
  203. package/docs/interfaces/Tags.html +22 -10
  204. package/docs/interfaces/TemporaryState.html +5 -5
  205. package/docs/interfaces/Util.MagnifierParameter.html +10 -10
  206. package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
  207. package/docs/modules/CruisePluginTypes.html +4 -4
  208. package/docs/modules/GuideLineItem.html +4 -4
  209. package/docs/modules/GuideLineModeItem.html +4 -4
  210. package/docs/modules/GuideLinePluginType.html +4 -4
  211. package/docs/modules/PanoVideoPluginType.html +4 -4
  212. package/docs/modules/Util.html +4 -4
  213. package/docs/modules.html +4 -4
  214. package/docs/types/ArrayPosition.html +4 -4
  215. package/docs/types/AudioAppearance.html +4 -4
  216. package/docs/types/AudioTagTypeConfigKey.html +4 -4
  217. package/docs/types/CSS3DRenderExportType.html +4 -4
  218. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  219. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  220. package/docs/types/ClassFunctionParameters.html +4 -4
  221. package/docs/types/Color.html +4 -4
  222. package/docs/types/ContentTypeConfigKey.html +4 -4
  223. package/docs/types/ContentTypeConfigKeySplit.html +4 -4
  224. package/docs/types/ContentTypeMap.html +5 -5
  225. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  226. package/docs/types/Create3DElementReturnType.html +4 -4
  227. package/docs/types/CruisePluginExportType.html +4 -4
  228. package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
  229. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
  230. package/docs/types/Direction-1.html +4 -4
  231. package/docs/types/Direction4.html +4 -4
  232. package/docs/types/ElementRenderer.html +4 -4
  233. package/docs/types/FloorplanRuleLabels.html +4 -4
  234. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  235. package/docs/types/GuideLinePluginExportType.html +4 -4
  236. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  237. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  238. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  239. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  240. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
  241. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  242. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  243. package/docs/types/HelperEventMap.html +4 -4
  244. package/docs/types/LoadTagConfig.html +4 -4
  245. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  246. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  247. package/docs/types/MediaData.html +4 -4
  248. package/docs/types/MediaStore.html +4 -4
  249. package/docs/types/ModelElement.html +4 -4
  250. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  251. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  252. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  253. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  254. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  255. package/docs/types/MoveArgs.html +4 -4
  256. package/docs/types/MoveOpts.html +4 -4
  257. package/docs/types/Object3DHelperEventMap.html +4 -4
  258. package/docs/types/ObjectFit.html +4 -4
  259. package/docs/types/PaintBrushEventMap.html +4 -4
  260. package/docs/types/PanoCompassPluginData.html +4 -4
  261. package/docs/types/PanoCompassPluginExportType.html +4 -4
  262. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  263. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  264. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  265. package/docs/types/PanoIndex.html +4 -4
  266. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  267. package/docs/types/PanoMeasureReturnType.html +4 -4
  268. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  269. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  270. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  271. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  272. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  273. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
  274. package/docs/types/PlaneTag.html +4 -4
  275. package/docs/types/PlaneTagElement.html +4 -4
  276. package/docs/types/Point2DElement.html +4 -4
  277. package/docs/types/Point2DTag.html +4 -4
  278. package/docs/types/Point3DElement.html +4 -4
  279. package/docs/types/Point3DTag.html +4 -4
  280. package/docs/types/PointTag.html +4 -4
  281. package/docs/types/PointTagElement.html +4 -4
  282. package/docs/types/Position.html +4 -4
  283. package/docs/types/RotateArgs.html +4 -4
  284. package/docs/types/RotateOpts.html +4 -4
  285. package/docs/types/RuleLabelsKey.html +4 -4
  286. package/docs/types/RuleLabelsValue.html +4 -4
  287. package/docs/types/StickType.html +4 -4
  288. package/docs/types/Tag.html +4 -4
  289. package/docs/types/Tag2D.html +4 -4
  290. package/docs/types/Tag3D.html +4 -4
  291. package/docs/types/TagContentType.html +4 -4
  292. package/docs/types/TagDimensionType.html +4 -4
  293. package/docs/types/TagElement.html +4 -4
  294. package/docs/types/TagEvents.html +4 -4
  295. package/docs/types/TagGLTFObject.html +4 -4
  296. package/docs/types/TagHooks.html +4 -4
  297. package/docs/types/TagIconSize.html +4 -4
  298. package/docs/types/TagId.html +4 -4
  299. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  300. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  301. package/docs/types/WorkCode.html +4 -4
  302. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  303. package/docs/variables/PLUGIN.html +4 -4
  304. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  305. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  306. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  307. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  308. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  309. package/libs/PanoMeasurePlugin/Controller/MixedController.d.ts +1 -4
  310. package/libs/PanoMeasurePlugin/Controller/MixedController.js +35 -39
  311. package/libs/PanoTagPlugin/controller/TagComputer.js +9 -9
  312. package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
  313. package/libs/PanoTagPlugin/controller/TagRender.js +97 -93
  314. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
  315. package/libs/PanoTagPlugin/controller/TagUtil.js +17 -17
  316. package/libs/PanoTagPlugin/controller/index.js +121 -103
  317. package/libs/PanoTagPlugin/index.js +12 -10
  318. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +3 -0
  319. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +12 -2
  320. package/libs/PanoTagPlugin/typings/tag/TagData.js +1 -1
  321. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +3 -1
  322. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +13 -5
  323. package/libs/base/BasePlugin.js +1 -1
  324. package/libs/shared-utils/logger.js +1 -1
  325. 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.5</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-1</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.5</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.19.0-1</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/4d0829b/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/b542819/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.5</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/>1</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>
@@ -17,10 +17,7 @@ export default class MixedController extends BaseController {
17
17
  dispose(): void;
18
18
  highlightLine(line: Line): void;
19
19
  clearHighlightLines(): void;
20
- getEditingLines(): Line[];
21
- addStartPoint(): void;
22
- /** 编辑线条发生改变时通知外部 */
23
- private onLineChanged;
20
+ getEditingLines(): Polyline[];
24
21
  private onWantsTapGesture;
25
22
  /** 编辑时取消走点,watch时可以走 */
26
23
  private onWantsToMoveToPano;
@@ -1,16 +1,16 @@
1
- var b = Object.defineProperty;
2
- var k = (h, s, e) => s in h ? b(h, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[s] = e;
3
- var t = (h, s, e) => (k(h, typeof s != "symbol" ? s + "" : s, e), e);
4
- import { Model as S } from "../Model/index.js";
5
- import y from "../Model/line.js";
6
- import D from "./BaseController.js";
7
- import T from "../Modules/DeleteDom/index.js";
8
- import { findAssociatedLines as M } from "../utils/findAssociatedLines.js";
1
+ var S = Object.defineProperty;
2
+ var k = (h, n, e) => n in h ? S(h, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[n] = e;
3
+ var t = (h, n, e) => (k(h, typeof n != "symbol" ? n + "" : n, e), e);
4
+ import { Model as D } from "../Model/index.js";
5
+ import T from "../Model/line.js";
6
+ import y from "./BaseController.js";
7
+ import M from "../Modules/DeleteDom/index.js";
8
+ import { findAssociatedLines as G } from "../utils/findAssociatedLines.js";
9
9
  import { Vector2 as p } from "three";
10
- import C from "../utils/isNDCPointInScreen.js";
11
- import { closestPointOnLine as G } from "../utils/math.js";
12
- import { Polyline as N } from "../Model/polyline.js";
13
- import R from "../Modules/rangePiece/index.js";
10
+ import L from "../utils/isNDCPointInScreen.js";
11
+ import { closestPointOnLine as N } from "../utils/math.js";
12
+ import { Polyline as v } from "../Model/polyline.js";
13
+ import W from "../Modules/rangePiece/index.js";
14
14
  import "@realsee/five";
15
15
  import "../../shared-utils/uuid.js";
16
16
  import "../utils/line.js";
@@ -29,7 +29,7 @@ import "../../shared-utils/animationFrame/index.js";
29
29
  import "../../shared-utils/noop.js";
30
30
  import "../utils/calculateThreeMouse.js";
31
31
  import "../utils/mouseGroup.js";
32
- class re extends D {
32
+ class re extends y {
33
33
  constructor(e) {
34
34
  super(e);
35
35
  t(this, "state", "watching");
@@ -41,32 +41,28 @@ class re extends D {
41
41
  t(this, "deleteDom");
42
42
  t(this, "rangePieceController");
43
43
  t(this, "disposers", []);
44
- /** 编辑线条发生改变时通知外部 */
45
- t(this, "onLineChanged", () => {
46
- this.hook.emit("editedPolylineChange", this.polyline);
47
- });
48
44
  t(this, "onWantsTapGesture", (e) => {
49
45
  if (this.state === "editing")
50
46
  return !1;
51
47
  const [i] = this.five.model.intersectRaycaster(e);
52
48
  if (!i)
53
49
  return;
54
- const o = this.five.camera, m = i.point.clone().project(o), r = this.container.clientWidth, d = this.container.clientHeight, f = new p(m.x * r, m.y * d), g = this.polyline.lines.map((n) => {
55
- const [a, L] = n.points, l = a.position.clone().project(o), c = L.position.clone().project(o);
56
- if (!C(l) && !C(c))
50
+ const o = this.five.camera, a = i.point.clone().project(o), d = this.container.clientWidth, l = this.container.clientHeight, f = new p(a.x * d, a.y * l), g = this.model.getAllLines().map((s) => {
51
+ const [r, C] = s.points, c = r.position.clone().project(o), m = C.position.clone().project(o);
52
+ if (!L(c) && !L(m))
57
53
  return null;
58
- const v = new p(l.x * r, l.y * d), w = new p(c.x * r, c.y * d);
59
- return { id: n.id, points: [v, w] };
60
- }).filter((n) => !!n);
54
+ const w = new p(c.x * d, c.y * l), b = new p(m.x * d, m.y * l);
55
+ return { id: s.id, points: [w, b] };
56
+ }).filter((s) => !!s);
61
57
  if (g.length === 0)
62
58
  return;
63
- const u = g.map((n) => {
64
- const a = G(f, n.points);
65
- return { id: n.id, distance: a.distanceTo(f) };
66
- }).sort((n, a) => n.distance - a.distance)[0];
59
+ const u = g.map((s) => {
60
+ const r = N(f, s.points);
61
+ return { id: s.id, distance: r.distanceTo(f) };
62
+ }).sort((s, r) => s.distance - r.distance)[0];
67
63
  if (u.distance > 20)
68
64
  return;
69
- const P = this.polyline.lines.find(({ id: n }) => n === u.id);
65
+ const P = this.model.getAllLines().find(({ id: s }) => s === u.id);
70
66
  if (P)
71
67
  return this.chooseLine(P), !1;
72
68
  });
@@ -90,8 +86,8 @@ class re extends D {
90
86
  t(this, "onGetEndPoint", (e) => {
91
87
  const i = this.mobileNowPoint;
92
88
  if (this.removeLine(this.dashed), this.hasAppendDashed = !1, this.mobileStartPoint && i) {
93
- const o = new y(this.mobileStartPoint, i, this.model);
94
- o.distanceItem.appendTo(this.container), o.distanceItem.update(this.five), o.hook.on("selected", this.chooseLine), this.disposers.push(() => o.hook.off("selected", this.chooseLine)), this.group.add(o.mesh), this.polyline.addLine(o);
89
+ const o = new T(this.mobileStartPoint, i, this.model), a = new v({ model: this.model });
90
+ a.addLine(o), o.distanceItem.appendTo(this.container), o.distanceItem.update(this.five), o.hook.on("selected", this.chooseLine), this.disposers.push(() => o.hook.off("selected", this.chooseLine)), this.group.add(o.mesh), this.model.addPolyline(a);
95
91
  }
96
92
  this.mobileStartPoint = null, this.mobileNowPoint = null, this.five.needsRender = !0;
97
93
  });
@@ -106,7 +102,7 @@ class re extends D {
106
102
  this.state = i, this.state === "watching" ? this.five.helperVisible = !0 : this.five.helperVisible = !1;
107
103
  });
108
104
  t(this, "chooseLine", (e) => {
109
- const i = M(e);
105
+ const i = G(e);
110
106
  this.highlightLines(i), this.five.needsRender = !0, this.hook.emit(
111
107
  "selectedChange",
112
108
  i.map((o) => o)
@@ -114,33 +110,33 @@ class re extends D {
114
110
  });
115
111
  t(this, "deleteDomClickCallback", () => {
116
112
  this.highlightedLines.forEach((e) => {
117
- this.removeLine(e), this.polyline.removeLine(e);
113
+ this.removeLine(e);
114
+ const i = this.model.getPolylineByLine(e);
115
+ this.model.removePolyline(i);
118
116
  }), this.highlightedLines = [], this.deleteDom.setLines([]).hide();
119
117
  });
120
118
  t(this, "cancelDeleteClickCallback", () => {
121
119
  this.clearHighlightLines();
122
120
  });
123
- this.model = new S(this.config), this.polyline = new N({ model: this.model }), this.model.addPolyline(this.polyline), this.rangePieceController = new R(e), this.deleteDom = new T(this.five, {
121
+ this.model = new D(this.config), this.polyline = new v({ model: this.model }), this.rangePieceController = new W(e), this.deleteDom = new M(this.five, {
124
122
  i18n: this.config.i18n,
125
123
  onClick: this.deleteDomClickCallback,
126
124
  cancelDelete: this.cancelDeleteClickCallback
127
- }).appendTo(this.container), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.onWantsTapGesture), this.five.on("wantsToMoveToPano", this.onWantsToMoveToPano), this.polyline.hook.on("lineAdded", this.onLineChanged), this.polyline.hook.on("lineRemoved", this.onLineChanged), this.five.helperVisible = !1, this.hook.emit("editedDashedLineChange", null), this.hook.on("getStartPoint", this.onGetStartPoint), this.hook.on("getEndPoint", this.onGetEndPoint), this.hook.on("nowPointChange", this.onNowPointChange), this.hook.on("willChangeState", this.onWillChangeState), this.five.refresh();
125
+ }).appendTo(this.container), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.onWantsTapGesture), this.five.on("wantsToMoveToPano", this.onWantsToMoveToPano), this.five.helperVisible = !1, this.hook.emit("editedDashedLineChange", null), this.hook.on("getStartPoint", this.onGetStartPoint), this.hook.on("getEndPoint", this.onGetEndPoint), this.hook.on("nowPointChange", this.onNowPointChange), this.hook.on("willChangeState", this.onWillChangeState), this.five.refresh();
128
126
  }
129
127
  dispose() {
130
- super.dispose(), this.disposers.forEach((e) => e()), this.five.helperVisible = !0, this.rangePieceController.dispose(), this.group.remove(this.mouseGroup, this.dashed.mesh), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsTapGesture", this.onWantsTapGesture), this.five.off("wantsToMoveToPano", this.onWantsToMoveToPano), this.polyline.hook.off("lineAdded", this.onLineChanged), this.polyline.hook.off("lineRemoved", this.onLineChanged), this.hook.off("getStartPoint", this.onGetStartPoint), this.hook.off("getEndPoint", this.onGetEndPoint), this.hook.off("nowPointChange", this.onNowPointChange), this.hook.off("willChangeState", this.onWillChangeState), this.hook.emit("selectedChange", []), this.dashed.distanceItem.remove(), this.five.needsRender = !0;
128
+ super.dispose(), this.disposers.forEach((e) => e()), this.five.helperVisible = !0, this.rangePieceController.dispose(), this.group.remove(this.mouseGroup, this.dashed.mesh), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsTapGesture", this.onWantsTapGesture), this.five.off("wantsToMoveToPano", this.onWantsToMoveToPano), this.hook.off("getStartPoint", this.onGetStartPoint), this.hook.off("getEndPoint", this.onGetEndPoint), this.hook.off("nowPointChange", this.onNowPointChange), this.hook.off("willChangeState", this.onWillChangeState), this.hook.emit("selectedChange", []), this.dashed.distanceItem.remove(), this.five.needsRender = !0;
131
129
  }
132
130
  highlightLine(e) {
133
131
  e.selected || (e.selected = !0, this.group.add(e.lightMesh), e.distanceItem.highlight(), this.five.needsRender = !0);
134
132
  }
135
133
  clearHighlightLines() {
136
- this.group.children.length !== 0 && (this.deleteDom.setLines([]).hide(), this.polyline.lines.forEach((e) => {
134
+ this.group.children.length !== 0 && (this.deleteDom.setLines([]).hide(), this.model.getAllLines().forEach((e) => {
137
135
  e.selected = !1, e.distanceItem.unHighlight(), this.group.remove(e.lightMesh);
138
136
  }), this.highlightedLines = [], this.five.needsRender = !0);
139
137
  }
140
138
  getEditingLines() {
141
- return this.polyline.lines;
142
- }
143
- addStartPoint() {
139
+ return this.model.polylines;
144
140
  }
145
141
  highlightLines(e) {
146
142
  this.clearHighlightLines(), this.highlightedLines = e, this.deleteDom.setLines(e).updatePosition().show(), e.forEach((i) => this.highlightLine(i));
@@ -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;