@realsee/dnalogel 2.18.1-2 → 2.18.2

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 (336) hide show
  1. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +2 -2
  2. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +46 -12
  3. package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +1 -0
  4. package/dist/index.cjs.js +50 -50
  5. package/dist/index.js +2730 -2699
  6. package/dist/index.umd.js +42 -42
  7. package/dist/shared-utils/device.d.ts +6 -0
  8. package/dist/shared-utils/three/loadVideoTexture.d.ts +1 -1
  9. package/docs/classes/CSS3DRender.html +30 -30
  10. package/docs/classes/CruisePluginController.html +25 -25
  11. package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
  12. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +30 -30
  13. package/docs/classes/Magnifier.html +19 -19
  14. package/docs/classes/ModelRoomLabelController.html +10 -10
  15. package/docs/classes/Object3DHelperController.html +24 -24
  16. package/docs/classes/PaintBrush.html +14 -14
  17. package/docs/classes/PanoMeasurePluginLine.html +22 -22
  18. package/docs/classes/PanoMeasurePluginModel.html +21 -21
  19. package/docs/classes/PanoMeasurePluginPoint.html +13 -13
  20. package/docs/classes/PanoMeasurePluginPolyline.html +25 -25
  21. package/docs/classes/PanoTagPluginController.html +45 -45
  22. package/docs/classes/Util.BetterTween.html +8 -8
  23. package/docs/classes/Util.FivePointSelector.html +11 -11
  24. package/docs/classes/Util.Interval.html +11 -11
  25. package/docs/classes/Util.Magnifier.html +16 -16
  26. package/docs/classes/Util.PointDomHelper.html +10 -10
  27. package/docs/classes/Util.PointHelper.html +10 -10
  28. package/docs/classes/Util.Rectangle.html +12 -12
  29. package/docs/enums/CameraMovementEffect.html +6 -6
  30. package/docs/enums/ContentType.html +18 -18
  31. package/docs/enums/DIRECTION.html +8 -8
  32. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
  33. package/docs/enums/DimensionType.html +6 -6
  34. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
  35. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
  36. package/docs/enums/PaintBrushTypeEnum.html +7 -7
  37. package/docs/enums/Rotation.html +7 -7
  38. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  39. package/docs/functions/CameraMovementPlugin.html +3 -3
  40. package/docs/functions/CruisePlugin.html +3 -3
  41. package/docs/functions/GuideLinePlugin.html +4 -4
  42. package/docs/functions/ItemLabelPlugin.html +3 -3
  43. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  44. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  45. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  46. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  47. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  48. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  49. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  50. package/docs/functions/ModelViewPlugin.html +3 -3
  51. package/docs/functions/Object3DHelperPlugin.html +3 -3
  52. package/docs/functions/PanoCompassPlugin.html +3 -3
  53. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  54. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  55. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  56. package/docs/functions/PanoMeasurePlugin.html +3 -3
  57. package/docs/functions/PanoRulerPlugin.html +3 -3
  58. package/docs/functions/PanoRulerProPlugin.html +3 -3
  59. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  60. package/docs/functions/PanoTagPlugin.html +3 -3
  61. package/docs/functions/PanoVideoPlugin.html +3 -3
  62. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  63. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  64. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  65. package/docs/functions/Util.getFrameTime.html +4 -4
  66. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  67. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  68. package/docs/functions/Util.isAbsoluteURL.html +4 -4
  69. package/docs/functions/Util.isModelLike.html +4 -4
  70. package/docs/functions/Util.isNil.html +4 -4
  71. package/docs/functions/Util.isPanoramaLike.html +4 -4
  72. package/docs/functions/Util.nextFrame.html +4 -4
  73. package/docs/functions/Util.notNil.html +4 -4
  74. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  75. package/docs/functions/Util.tweenProgress.html +4 -4
  76. package/docs/functions/Util.uuid.html +4 -4
  77. package/docs/functions/pluginFlag.html +4 -4
  78. package/docs/index.html +4 -4
  79. package/docs/interfaces/AddTagConfig.html +5 -5
  80. package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
  81. package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
  82. package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
  83. package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
  84. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
  85. package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
  86. package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
  87. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
  88. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
  89. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
  90. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
  91. package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
  92. package/docs/interfaces/EventMap.html +14 -14
  93. package/docs/interfaces/FloorplanBounding.html +7 -7
  94. package/docs/interfaces/FloorplanData.html +9 -9
  95. package/docs/interfaces/FloorplanEntrance.html +10 -10
  96. package/docs/interfaces/FloorplanExtraObject.html +9 -9
  97. package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
  98. package/docs/interfaces/FloorplanFloorData.html +8 -8
  99. package/docs/interfaces/FloorplanImagePosition.html +6 -6
  100. package/docs/interfaces/FloorplanObserver.html +8 -8
  101. package/docs/interfaces/FloorplanOutlineItem.html +8 -8
  102. package/docs/interfaces/FloorplanPosition.html +6 -6
  103. package/docs/interfaces/FloorplanRoomItem.html +12 -12
  104. package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
  105. package/docs/interfaces/FloorplanServerBounding.html +7 -7
  106. package/docs/interfaces/FloorplanServerComputedData.html +9 -9
  107. package/docs/interfaces/FloorplanServerData.html +6 -6
  108. package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
  109. package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
  110. package/docs/interfaces/FloorplanServerEntrance.html +10 -10
  111. package/docs/interfaces/FloorplanServerFloorData.html +8 -8
  112. package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
  113. package/docs/interfaces/FloorplanServerObserver.html +8 -8
  114. package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
  115. package/docs/interfaces/FloorplanServerPosition.html +6 -6
  116. package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
  117. package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
  118. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
  119. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
  120. package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
  121. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
  122. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
  123. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
  124. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
  125. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
  126. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
  127. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
  128. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
  129. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
  130. package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
  131. package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
  132. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
  133. package/docs/interfaces/HelperOffset.html +7 -7
  134. package/docs/interfaces/ImagePlaneGroup.html +5 -5
  135. package/docs/interfaces/ItemLabelPluginData.html +5 -5
  136. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
  137. package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
  138. package/docs/interfaces/MinMax.html +6 -6
  139. package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
  140. package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
  141. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
  142. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
  143. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
  144. package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
  145. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
  146. package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
  147. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
  148. package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
  149. package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
  150. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
  151. package/docs/interfaces/ModelViewPluginExportType.html +10 -10
  152. package/docs/interfaces/Object3DHelperState.html +7 -7
  153. package/docs/interfaces/ObjectHelperControllers.html +8 -8
  154. package/docs/interfaces/PaintBrushAction.html +11 -11
  155. package/docs/interfaces/PaintBrushConfigs.html +11 -11
  156. package/docs/interfaces/PaintBrushState.html +9 -9
  157. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
  158. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  159. package/docs/interfaces/PanoMeasureParameterType.html +13 -13
  160. package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
  161. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
  162. package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
  163. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
  164. package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
  165. package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
  166. package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
  167. package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
  168. package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
  169. package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
  170. package/docs/interfaces/PanoRulerProPluginState.html +7 -7
  171. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  172. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  173. package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
  174. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
  175. package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
  176. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
  177. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
  178. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
  179. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
  180. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
  181. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
  182. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
  183. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  184. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
  185. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
  186. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
  187. package/docs/interfaces/Point.html +7 -7
  188. package/docs/interfaces/Room.html +8 -8
  189. package/docs/interfaces/RoomInfo.html +6 -6
  190. package/docs/interfaces/RoomLabel.html +13 -13
  191. package/docs/interfaces/RoomRules.html +4 -4
  192. package/docs/interfaces/Rooms.html +4 -4
  193. package/docs/interfaces/Scissor.html +8 -8
  194. package/docs/interfaces/State.html +7 -7
  195. package/docs/interfaces/TagCacheInterface.html +11 -11
  196. package/docs/interfaces/TagConfig.html +12 -12
  197. package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
  198. package/docs/interfaces/TagIconUrl.html +11 -11
  199. package/docs/interfaces/TagObjectGroup.html +5 -5
  200. package/docs/interfaces/TagStyle.html +5 -5
  201. package/docs/interfaces/Tags.html +8 -8
  202. package/docs/interfaces/TemporaryState.html +5 -5
  203. package/docs/interfaces/Util.MagnifierParameter.html +10 -10
  204. package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
  205. package/docs/modules/CruisePluginTypes.html +4 -4
  206. package/docs/modules/GuideLineItem.html +4 -4
  207. package/docs/modules/GuideLineModeItem.html +4 -4
  208. package/docs/modules/GuideLinePluginType.html +4 -4
  209. package/docs/modules/PanoVideoPluginType.html +4 -4
  210. package/docs/modules/Util.html +4 -4
  211. package/docs/modules.html +4 -4
  212. package/docs/types/ArrayPosition.html +4 -4
  213. package/docs/types/AudioAppearance.html +4 -4
  214. package/docs/types/AudioTagTypeConfigKey.html +4 -4
  215. package/docs/types/CSS3DRenderExportType.html +4 -4
  216. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  217. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  218. package/docs/types/ClassFunctionParameters.html +4 -4
  219. package/docs/types/Color.html +4 -4
  220. package/docs/types/ContentTypeConfigKey.html +4 -4
  221. package/docs/types/ContentTypeConfigKeySplit.html +4 -4
  222. package/docs/types/ContentTypeMap.html +4 -4
  223. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  224. package/docs/types/Create3DElementReturnType.html +4 -4
  225. package/docs/types/CruisePluginExportType.html +4 -4
  226. package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
  227. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
  228. package/docs/types/Direction-1.html +4 -4
  229. package/docs/types/Direction4.html +4 -4
  230. package/docs/types/ElementRenderer.html +4 -4
  231. package/docs/types/FloorplanRuleLabels.html +4 -4
  232. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  233. package/docs/types/GuideLinePluginExportType.html +4 -4
  234. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  235. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  236. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  237. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  238. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
  239. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  240. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  241. package/docs/types/HelperEventMap.html +4 -4
  242. package/docs/types/LoadTagConfig.html +4 -4
  243. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  244. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  245. package/docs/types/MediaData.html +4 -4
  246. package/docs/types/MediaStore.html +4 -4
  247. package/docs/types/ModelElement.html +4 -4
  248. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  249. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  250. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  251. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  252. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  253. package/docs/types/MoveArgs.html +4 -4
  254. package/docs/types/MoveOpts.html +4 -4
  255. package/docs/types/Object3DHelperEventMap.html +4 -4
  256. package/docs/types/ObjectFit.html +4 -4
  257. package/docs/types/PaintBrushEventMap.html +4 -4
  258. package/docs/types/PanoCompassPluginData.html +4 -4
  259. package/docs/types/PanoCompassPluginExportType.html +4 -4
  260. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  261. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  262. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  263. package/docs/types/PanoIndex.html +4 -4
  264. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  265. package/docs/types/PanoMeasureReturnType.html +4 -4
  266. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  267. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  268. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  269. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  270. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  271. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
  272. package/docs/types/PlaneTag.html +4 -4
  273. package/docs/types/PlaneTagElement.html +4 -4
  274. package/docs/types/Point2DElement.html +4 -4
  275. package/docs/types/Point2DTag.html +4 -4
  276. package/docs/types/Point3DElement.html +4 -4
  277. package/docs/types/Point3DTag.html +4 -4
  278. package/docs/types/PointTag.html +4 -4
  279. package/docs/types/PointTagElement.html +4 -4
  280. package/docs/types/Position.html +4 -4
  281. package/docs/types/RotateArgs.html +4 -4
  282. package/docs/types/RotateOpts.html +4 -4
  283. package/docs/types/RuleLabelsKey.html +4 -4
  284. package/docs/types/RuleLabelsValue.html +4 -4
  285. package/docs/types/StickType.html +4 -4
  286. package/docs/types/Tag.html +4 -4
  287. package/docs/types/Tag2D.html +4 -4
  288. package/docs/types/Tag3D.html +4 -4
  289. package/docs/types/TagContentType.html +4 -4
  290. package/docs/types/TagDimensionType.html +4 -4
  291. package/docs/types/TagElement.html +4 -4
  292. package/docs/types/TagEvents.html +4 -4
  293. package/docs/types/TagGLTFObject.html +4 -4
  294. package/docs/types/TagHooks.html +4 -4
  295. package/docs/types/TagIconSize.html +4 -4
  296. package/docs/types/TagId.html +4 -4
  297. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  298. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  299. package/docs/types/WorkCode.html +4 -4
  300. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  301. package/docs/variables/PLUGIN.html +4 -4
  302. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  303. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  304. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  305. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  306. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  307. package/libs/CruisePlugin/Controller.js +46 -46
  308. package/libs/CruisePlugin/index.js +1 -1
  309. package/libs/GuideLinePlugin/Controller.js +1 -1
  310. package/libs/GuideLinePlugin/GuideLineItem/index.js +36 -36
  311. package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
  312. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +33 -31
  313. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +2 -2
  314. package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
  315. package/libs/GuideLinePlugin/index.js +1 -1
  316. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +118 -118
  317. package/libs/PanoTagPlugin/controller/TagComputer.js +15 -13
  318. package/libs/PanoTagPlugin/controller/TagRender.js +1 -1
  319. package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
  320. package/libs/PanoTagPlugin/controller/index.js +1 -1
  321. package/libs/PanoTagPlugin/index.js +1 -1
  322. package/libs/PanoTagPlugin/tag.config.js +3 -0
  323. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +46 -12
  324. package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +1 -0
  325. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +34 -30
  326. package/libs/base/BasePlugin.js +1 -1
  327. package/libs/index.js +1 -1
  328. package/libs/shared-utils/device.d.ts +6 -0
  329. package/libs/shared-utils/device.js +8 -0
  330. package/libs/shared-utils/logger.js +1 -1
  331. package/libs/shared-utils/three/loadVideoTexture.d.ts +1 -1
  332. package/libs/shared-utils/three/loadVideoTexture.js +28 -8
  333. package/package.json +1 -2
  334. package/dist/PanoTagPlugin/utils/device.d.ts +0 -1
  335. package/libs/PanoTagPlugin/utils/device.d.ts +0 -1
  336. package/libs/PanoTagPlugin/utils/device.js +0 -4
@@ -14,18 +14,18 @@ var I = (c, l, e) => (L(c, typeof l != "symbol" ? l + "" : l, e), e);
14
14
  var v = (c, l, e) => new Promise((t, i) => {
15
15
  var r = (m) => {
16
16
  try {
17
- n(e.next(m));
17
+ s(e.next(m));
18
18
  } catch (o) {
19
19
  i(o);
20
20
  }
21
- }, s = (m) => {
21
+ }, n = (m) => {
22
22
  try {
23
- n(e.throw(m));
23
+ s(e.throw(m));
24
24
  } catch (o) {
25
25
  i(o);
26
26
  }
27
- }, n = (m) => m.done ? t(m.value) : Promise.resolve(m.value).then(r, s);
28
- n((e = e.apply(c, l)).next());
27
+ }, s = (m) => m.done ? t(m.value) : Promise.resolve(m.value).then(r, n);
28
+ s((e = e.apply(c, l)).next());
29
29
  });
30
30
  import { Controller as V } from "../base/BasePluginWithData.js";
31
31
  import { GuideLinePlugin as $ } from "../GuideLinePlugin/index.js";
@@ -94,7 +94,7 @@ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
94
94
  import "../PanoTagPlugin/controller/TagCache.js";
95
95
  import "../vendor/svelte/store/index.js";
96
96
  import "../vendor/svelte/internal/index.js";
97
- import "../PanoTagPlugin/utils/device.js";
97
+ import "../shared-utils/device.js";
98
98
  import "../PanoTagPlugin/utils/model/mediaPlane.js";
99
99
  import "../shared-utils/three/Quadrangle.js";
100
100
  import "../shared-utils/math/pointIsRectangle.js";
@@ -240,9 +240,9 @@ class z extends V {
240
240
  if (this.state.disposed)
241
241
  return D();
242
242
  this.privateState.fiveOriginGetProgress || (d = (a = this.five.controller) == null ? void 0 : a.cameraMotion) != null && d.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (u = (f = this.five.controller) == null ? void 0 : f.cameraMotion) == null ? void 0 : u.getProgress), this.clear();
243
- const r = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, s = yield this.formatData(e);
244
- this.data = s, this.hooks.emit("dataChange", s, r);
245
- let n = [], m;
243
+ const r = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, n = yield this.formatData(e);
244
+ this.data = n, this.hooks.emit("dataChange", n, r);
245
+ let s = [], m;
246
246
  const o = this.data.keyframes.filter((p) => p.data.panoIndex !== void 0);
247
247
  o.filter((p, y) => {
248
248
  var S;
@@ -252,14 +252,14 @@ class z extends V {
252
252
  const y = (S = this.five.work.observers[p]) == null ? void 0 : S.floorIndex;
253
253
  if (y !== void 0)
254
254
  if (m === y) {
255
- const b = n.length - 1;
256
- n[b] = [...(k = n[b]) != null ? k : [], p];
255
+ const b = s.length - 1;
256
+ s[b] = [...(k = s[b]) != null ? k : [], p];
257
257
  } else {
258
258
  m = y;
259
- const b = n.length;
260
- n[b] = [p];
259
+ const b = s.length;
260
+ s[b] = [p];
261
261
  }
262
- }), !this.GuideLine && ((h = this.config) == null ? void 0 : h.useGuideLine) !== !1 && s.useGuildLine !== !1 && (this.GuideLine = $(this.five, this.config)), console.log("🐶 ==> data.guildPluginOptions:", s.guildPluginOptions), (P = this.GuideLine) == null || P.load({ routes: n.map((p) => ({ panoIndexList: p })), config: s.guildPluginOptions }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), t && this.setState(t, { userAction: i }), console.info(`${x} loaded`, s), this.hooks.emit("dataLoaded", s);
262
+ }), !this.GuideLine && ((h = this.config) == null ? void 0 : h.useGuideLine) !== !1 && n.useGuildLine !== !1 && (this.GuideLine = $(this.five, this.config)), (P = this.GuideLine) == null || P.load({ routes: s.map((p) => ({ panoIndexList: p })), config: n.guildPluginOptions }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), t && this.setState(t, { userAction: i }), console.info(`${x} loaded`, n), this.hooks.emit("dataLoaded", n);
263
263
  });
264
264
  }
265
265
  /**
@@ -348,16 +348,16 @@ class z extends V {
348
348
  if (i.keyframes)
349
349
  return {
350
350
  keyframesId: w(),
351
- keyframes: i.keyframes.map((r, s) => {
351
+ keyframes: i.keyframes.map((r, n) => {
352
352
  var o;
353
- const n = i.keyframes[s + 1], m = (() => !n || n.start === void 0 || r.end === void 0 ? 0 : n.start - r.end)();
354
- return C(g({ id: (o = r.uuid) != null ? o : w(), moveIndex: s, stay: m, index: s }, r), { guildPluginOptions: i.guildPluginOptions });
353
+ const s = i.keyframes[n + 1], m = (() => !s || s.start === void 0 || r.end === void 0 ? 0 : s.start - r.end)();
354
+ return C(g({ id: (o = r.uuid) != null ? o : w(), moveIndex: n, stay: m, index: n }, r), { guildPluginOptions: i.guildPluginOptions });
355
355
  })
356
356
  };
357
357
  if (i.panoIndexList) {
358
358
  let r = [];
359
- const { moveEffect: s, moveToFirstPanoEffect: n, moveToFirstPanoDuration: m } = i;
360
- return this.privateState.moveToFirstPanoEffect = n, this.privateState.moveToFirstPanoDuration = m, i.panoIndexList.forEach((o, a) => {
359
+ const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration: m } = i;
360
+ return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = m, i.panoIndexList.forEach((o, a) => {
361
361
  const d = (() => {
362
362
  var p, y, S, k;
363
363
  const f = i.panoIndexList.slice(a).find((b) => b !== o);
@@ -372,8 +372,8 @@ class z extends V {
372
372
  i.moveType === void 0 || i.moveType === "justMove" ? r.push({
373
373
  moveIndex: a,
374
374
  stay: i.stay,
375
- data: g({ effect: "Move", panoIndex: o, moveEffect: s }, d != null ? d : {})
376
- }) : i.moveType === "moveAndRotate" && (r.push({ moveIndex: a, stay: i.stay, data: { effect: "Move", panoIndex: o, moveEffect: s } }), d && r.push({ moveIndex: a, stay: i.stay, data: g({ effect: "Rotate", panoIndex: o }, d) }));
375
+ data: g({ effect: "Move", panoIndex: o, moveEffect: n }, d != null ? d : {})
376
+ }) : i.moveType === "moveAndRotate" && (r.push({ moveIndex: a, stay: i.stay, data: { effect: "Move", panoIndex: o, moveEffect: n } }), d && r.push({ moveIndex: a, stay: i.stay, data: g({ effect: "Rotate", panoIndex: o }, d) }));
377
377
  }), {
378
378
  keyframesId: w(),
379
379
  keyframes: r.map((o, a) => g({ id: w(), index: a }, o)),
@@ -409,13 +409,13 @@ class z extends V {
409
409
  handlePlay(e) {
410
410
  return v(this, null, function* () {
411
411
  var u;
412
- const { data: t, state: i, privateState: r, hooks: s } = this;
412
+ const { data: t, state: i, privateState: r, hooks: n } = this;
413
413
  if (r.playing || !(t != null && t.keyframes) || (t == null ? void 0 : t.keyframes.length) === 0)
414
414
  return;
415
- const n = w();
416
- r.playId = n, r.playing = !0, r.broke = !1;
415
+ const s = w();
416
+ r.playId = s, r.playing = !0, r.broke = !1;
417
417
  const m = t.keyframes, o = this.getPauseData();
418
- (e == null ? void 0 : e.notEmitEvent) !== !0 && s.emit("play", { userAction: (u = e == null ? void 0 : e.userAction) != null ? u : !0 });
418
+ (e == null ? void 0 : e.notEmitEvent) !== !0 && n.emit("play", { userAction: (u = e == null ? void 0 : e.userAction) != null ? u : !0 });
419
419
  let a = !1;
420
420
  const f = yield (() => v(this, null, function* () {
421
421
  var h, P;
@@ -440,11 +440,11 @@ class z extends V {
440
440
  }))();
441
441
  this.clearPauseData();
442
442
  for (const h of m) {
443
- if (r.broke || !i.playing || !r.playing || n !== r.playId)
443
+ if (r.broke || !i.playing || !r.playing || s !== r.playId)
444
444
  return;
445
445
  if (!(f !== void 0 && h.index < f))
446
446
  try {
447
- s.emit("playIndexChange", h.index, h), yield this.playKeyframe(h, {
447
+ n.emit("playIndexChange", h.index, h), yield this.playKeyframe(h, {
448
448
  moveEffect: a === !1 ? r.moveToFirstPanoEffect : void 0,
449
449
  duration: a === !1 && typeof r.moveToFirstPanoDuration == "number" ? r.moveToFirstPanoDuration : void 0
450
450
  }), h.stay && (yield J(h.stay)), a === !1 && (a = !0);
@@ -452,16 +452,16 @@ class z extends V {
452
452
  return Promise.resolve("broke");
453
453
  }
454
454
  }
455
- i.playing && n === r.playId && (this.setState({ playing: !1 }, { userAction: !1 }), s.emit("end"), this.clearPauseData());
455
+ i.playing && s === r.playId && (this.setState({ playing: !1 }, { userAction: !1 }), n.emit("end"), this.clearPauseData());
456
456
  });
457
457
  }
458
458
  /**
459
459
  * @description: Pause and record pause state
460
460
  */
461
461
  handlePause(e) {
462
- var s;
462
+ var n;
463
463
  const { state: t, privateState: i, hooks: r } = this;
464
- t.playing = !1, i.playing !== !1 && (i.playing = !1, this.setPauseData(), i.broke || this.forceInteruptUpdateCamera(), (e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("pause", { userAction: (s = e == null ? void 0 : e.userAction) != null ? s : !0 }));
464
+ t.playing = !1, i.playing !== !1 && (i.playing = !1, this.setPauseData(), i.broke || this.forceInteruptUpdateCamera(), (e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("pause", { userAction: (n = e == null ? void 0 : e.userAction) != null ? n : !0 }));
465
465
  }
466
466
  /**
467
467
  * @description Play single keyframe
@@ -489,10 +489,10 @@ class z extends V {
489
489
  */
490
490
  getPlayPromise(i) {
491
491
  return v(this, arguments, function* (e, t = {}) {
492
- var s;
492
+ var n;
493
493
  const r = e.data;
494
- if (t.duration = (s = t.duration) != null ? s : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!r)
495
- return new Promise((n, m) => {
494
+ if (t.duration = (n = t.duration) != null ? n : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!r)
495
+ return new Promise((s, m) => {
496
496
  let o = !1;
497
497
  this.addInterruptListener(() => {
498
498
  if (!o)
@@ -502,7 +502,7 @@ class z extends V {
502
502
  if (o)
503
503
  return;
504
504
  const a = () => {
505
- n(), o = !0;
505
+ s(), o = !0;
506
506
  };
507
507
  switch (r.effect) {
508
508
  case "Move":
@@ -569,9 +569,9 @@ class z extends V {
569
569
  */
570
570
  updateCamera(i) {
571
571
  return v(this, arguments, function* (e, t = {}) {
572
- const { five: r, privateState: s, state: n } = this, m = (() => {
572
+ const { five: r, privateState: n, state: s } = this, m = (() => {
573
573
  var u, h;
574
- const d = (u = n.config) == null ? void 0 : u.speedConfig, f = (h = e.rotateSpeed) != null ? h : d == null ? void 0 : d.rotateSpeed;
574
+ const d = (u = s.config) == null ? void 0 : u.speedConfig, f = (h = e.rotateSpeed) != null ? h : d == null ? void 0 : d.rotateSpeed;
575
575
  if ((d == null ? void 0 : d.rotateSpeedUnit) === void 0)
576
576
  return f;
577
577
  if (f !== void 0)
@@ -585,7 +585,7 @@ class z extends V {
585
585
  }
586
586
  return 800;
587
587
  })();
588
- s.currentPlayKeyframe && (s.currentPlayKeyframe.originDuration = o);
588
+ n.currentPlayKeyframe && (n.currentPlayKeyframe.originDuration = o);
589
589
  const a = this.getSpeededDuration(o);
590
590
  return new Promise((d) => {
591
591
  _(() => r.updateCamera(e, a)), setTimeout(() => d(), a);
@@ -597,14 +597,14 @@ class z extends V {
597
597
  */
598
598
  changePano(e, t) {
599
599
  return v(this, null, function* () {
600
- const { five: i, privateState: r, state: s } = this;
600
+ const { five: i, privateState: r, state: n } = this;
601
601
  if (typeof e.panoIndex != "number" || e.panoIndex === i.panoIndex)
602
602
  return;
603
- const n = i.getCurrentState().mode !== "Panorama";
604
- n && (this.privateState.modeChanging = !0);
603
+ const s = i.getCurrentState().mode !== "Panorama";
604
+ s && (this.privateState.modeChanging = !0);
605
605
  const m = (() => {
606
606
  var f, u;
607
- const a = (f = s.config) == null ? void 0 : f.speedConfig, d = (u = e.moveSpeed) != null ? u : a == null ? void 0 : a.moveSpeed;
607
+ const a = (f = n.config) == null ? void 0 : f.speedConfig, d = (u = e.moveSpeed) != null ? u : a == null ? void 0 : a.moveSpeed;
608
608
  if ((a == null ? void 0 : a.moveSpeedUnit) === void 0)
609
609
  return d;
610
610
  if (d !== void 0)
@@ -628,18 +628,18 @@ class z extends V {
628
628
  effect: (u = (f = t == null ? void 0 : t.moveEffect) != null ? f : (d = this.state.config) == null ? void 0 : d.moveEffect) != null ? u : e.moveEffect,
629
629
  moveCancelCallback: () => a(),
630
630
  moveEndCallback: () => a()
631
- }), n && i.once("panoArrived", () => a());
632
- }), n && (this.privateState.modeChanging = !1);
631
+ }), s && i.once("panoArrived", () => a());
632
+ }), s && (this.privateState.modeChanging = !1);
633
633
  });
634
634
  }
635
635
  /**
636
636
  * @description: Change play speed
637
637
  */
638
638
  changeSpeed(e, t = !0) {
639
- const { state: i, privateState: r, hooks: s } = this, { currentPlayKeyframe: n } = r;
640
- if (s.emit("speedChange", e, { userAction: t }), i.playing && n)
639
+ const { state: i, privateState: r, hooks: n } = this, { currentPlayKeyframe: s } = r;
640
+ if (n.emit("speedChange", e, { userAction: t }), i.playing && s)
641
641
  try {
642
- const m = n.originDuration !== void 0 ? n.originDuration * (1 - this.getProgress()) : void 0, o = this.playKeyframe(n.keyframe, { duration: m });
642
+ const m = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, o = this.playKeyframe(s.keyframe, { duration: m });
643
643
  r.currentPlayQueue.push(o);
644
644
  } catch (m) {
645
645
  }
@@ -62,7 +62,7 @@ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
62
62
  import "../PanoTagPlugin/controller/TagCache.js";
63
63
  import "../vendor/svelte/store/index.js";
64
64
  import "../vendor/svelte/internal/index.js";
65
- import "../PanoTagPlugin/utils/device.js";
65
+ import "../shared-utils/device.js";
66
66
  import "../PanoTagPlugin/utils/model/mediaPlane.js";
67
67
  import "../shared-utils/three/Quadrangle.js";
68
68
  import "../shared-utils/math/pointIsRectangle.js";
@@ -87,7 +87,7 @@ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
87
87
  import "../PanoTagPlugin/controller/TagCache.js";
88
88
  import "../vendor/svelte/store/index.js";
89
89
  import "../vendor/svelte/internal/index.js";
90
- import "../PanoTagPlugin/utils/device.js";
90
+ import "../shared-utils/device.js";
91
91
  import "../PanoTagPlugin/utils/model/mediaPlane.js";
92
92
  import "../shared-utils/three/Quadrangle.js";
93
93
  import "../shared-utils/math/pointIsRectangle.js";
@@ -1,7 +1,7 @@
1
- var y = Object.defineProperty;
1
+ var v = Object.defineProperty;
2
2
  var w = Object.getOwnPropertySymbols;
3
3
  var b = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
4
- var h = (o, e, t) => e in o ? y(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, d = (o, e) => {
4
+ var h = (o, e, t) => e in o ? v(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, d = (o, e) => {
5
5
  for (var t in e || (e = {}))
6
6
  b.call(e, t) && h(o, t, e[t]);
7
7
  if (w)
@@ -10,23 +10,23 @@ var h = (o, e, t) => e in o ? y(o, e, { enumerable: !0, configurable: !0, writab
10
10
  return o;
11
11
  };
12
12
  var s = (o, e, t) => (h(o, typeof e != "symbol" ? e + "" : e, t), t);
13
- var c = (o, e, t) => new Promise((i, n) => {
14
- var l = (r) => {
13
+ var c = (o, e, t) => new Promise((n, r) => {
14
+ var u = (i) => {
15
15
  try {
16
- a(t.next(r));
16
+ a(t.next(i));
17
17
  } catch (m) {
18
- n(m);
18
+ r(m);
19
19
  }
20
- }, p = (r) => {
20
+ }, l = (i) => {
21
21
  try {
22
- a(t.throw(r));
22
+ a(t.throw(i));
23
23
  } catch (m) {
24
- n(m);
24
+ r(m);
25
25
  }
26
- }, a = (r) => r.done ? i(r.value) : Promise.resolve(r.value).then(l, p);
26
+ }, a = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(u, l);
27
27
  a((t = t.apply(o, e)).next());
28
28
  });
29
- import { GuideLineModeItem as _ } from "../GuideLineModeItem/index.js";
29
+ import { GuideLineModeItem as y } from "../GuideLineModeItem/index.js";
30
30
  import G from "../../CruisePlugin/Controller.js";
31
31
  import { logError as L } from "../../shared-utils/log.js";
32
32
  import { to as S } from "../../shared-utils/to.js";
@@ -44,7 +44,7 @@ class C {
44
44
  s(this, "plugin");
45
45
  s(this, "five");
46
46
  s(this, "logError", (e) => L("GuideLineItem: ", e));
47
- this.id = e.id, this.five = e.five, this.plugin = e.plugin, this.panoramaItem = new _(this.five, { mode: "panorama", plugin: this.plugin, parent: this }), this.modelItem = new _(this.five, { mode: "model", plugin: this.plugin, parent: this });
47
+ this.id = e.id, this.five = e.five, this.plugin = e.plugin, this.panoramaItem = new y(this.five, { mode: "panorama", plugin: this.plugin, parent: this }), this.modelItem = new y(this.five, { mode: "model", plugin: this.plugin, parent: this });
48
48
  }
49
49
  get visible() {
50
50
  return this._visible;
@@ -56,14 +56,14 @@ class C {
56
56
  this.modelItem.mesh.position.y = e, this.panoramaItem.mesh.position.y = e;
57
57
  }
58
58
  setDataByMode(e, t) {
59
- var r;
60
- const i = e === "panorama" ? this.panoramaItem : this.modelItem, n = e === "panorama" ? t.panorama_style : t.model_style, l = t.path, p = n, a = n;
59
+ var i;
60
+ const n = e === "panorama" ? this.panoramaItem : this.modelItem, r = e === "panorama" ? t.panorama_style : t.model_style, u = t.path, l = r, a = r;
61
61
  if (t.pano_group) {
62
62
  const m = e === "panorama";
63
- i.setGeometryByPanoGroup(t.pano_group, d({ skipPanoGroup: m }, p));
63
+ n.setGeometryByPanoGroup(t.pano_group, d({ skipPanoGroup: m }, l));
64
64
  } else
65
- t.path && i.setGeometryByPath(l, p);
66
- i.setMartial(a), i.setVisibleFloorIndexes((r = t.visible_floor_indexes) != null ? r : null), n != null && n.start_tag && i.setStartTag(n == null ? void 0 : n.start_tag), n != null && n.end_tag && i.setEndTag(n.end_tag);
65
+ t.path && n.setGeometryByPath(u, l);
66
+ n.setMartial(a), n.setVisibleFloorIndexes((i = t.visible_floor_indexes) != null ? i : null), n.setStartTag(r == null ? void 0 : r.start_tag), n.setEndTag(r.end_tag);
67
67
  }
68
68
  show() {
69
69
  this._visible = !0, this.hooks.emit("show", { userAction: !0 });
@@ -80,9 +80,9 @@ class C {
80
80
  return;
81
81
  const t = d({ panoIndexList: this.panoramaItem.panoGroup }, e);
82
82
  this.hooks.emit("walkStart", { userAction: !0 });
83
- const [i] = yield S(M(this.five, t));
84
- if (this.hooks.emit("walkEnded", { userAction: !0 }), i)
85
- return this.logError(i.message);
83
+ const [n] = yield S(M(this.five, t));
84
+ if (this.hooks.emit("walkEnded", { userAction: !0 }), n)
85
+ return this.logError(n.message);
86
86
  });
87
87
  }
88
88
  }
@@ -92,32 +92,32 @@ function M(o, e) {
92
92
  return;
93
93
  const t = o.getCurrentState();
94
94
  t.mode !== "Panorama" && (yield P(o, ["Panorama", { longitude: t.longitude, latitude: 0, panoIndex: e.panoIndexList[0] }]));
95
- const i = new G(o, { useGuideLine: !1 });
96
- yield i.load(e), yield new Promise((n, l) => {
97
- const p = o.getCurrentState();
95
+ const n = new G(o, { useGuideLine: !1 });
96
+ yield n.load(e), yield new Promise((r, u) => {
97
+ const l = o.getCurrentState();
98
98
  let a = e.panoIndexList.slice();
99
- p.panoIndex === a[0] && m(p.panoIndex), i.playFromStart();
100
- function r(u) {
101
- if (u !== "Panorama")
99
+ l.panoIndex === a[0] && m(l.panoIndex), n.playFromStart();
100
+ function i(p) {
101
+ if (p !== "Panorama")
102
102
  return f(new Error("mode not match"));
103
103
  }
104
- function m(u) {
104
+ function m(p) {
105
105
  const I = a[0];
106
- if (a = a.slice(1), u !== I)
107
- return f(new Error("panoIndex not match, wanted: " + I + ", got: " + u));
106
+ if (a = a.slice(1), p !== I)
107
+ return f(new Error("panoIndex not match, wanted: " + I + ", got: " + p));
108
108
  if (a.length === 0)
109
- return v();
109
+ return _();
110
110
  }
111
111
  function g() {
112
- o.off("modeChange", r), o.off("panoArrived", m);
112
+ o.off("modeChange", i), o.off("panoArrived", m);
113
113
  }
114
- function f(u) {
115
- g(), l(u);
114
+ function f(p) {
115
+ g(), u(p);
116
116
  }
117
- function v() {
118
- g(), n();
117
+ function _() {
118
+ g(), r();
119
119
  }
120
- o.on("modeChange", r), o.on("panoArrived", m);
120
+ o.on("modeChange", i), o.on("panoArrived", m);
121
121
  });
122
122
  });
123
123
  }
@@ -58,7 +58,7 @@ import "../base/BasePlugin.js";
58
58
  import "../shared-utils/isAbsoluteURL.js";
59
59
  import "../vendor/svelte/store/index.js";
60
60
  import "../vendor/svelte/internal/index.js";
61
- import "../PanoTagPlugin/utils/device.js";
61
+ import "../shared-utils/device.js";
62
62
  import "../PanoTagPlugin/utils/model/mediaPlane.js";
63
63
  import "../shared-utils/three/Quadrangle.js";
64
64
  import "../shared-utils/math/pointIsRectangle.js";
@@ -2,15 +2,15 @@ var C = Object.defineProperty, y = Object.defineProperties;
2
2
  var k = Object.getOwnPropertyDescriptors;
3
3
  var c = Object.getOwnPropertySymbols;
4
4
  var w = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
5
- var m = (a, e, i) => e in a ? C(a, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[e] = i, u = (a, e) => {
5
+ var m = (o, e, i) => e in o ? C(o, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[e] = i, u = (o, e) => {
6
6
  for (var i in e || (e = {}))
7
- w.call(e, i) && m(a, i, e[i]);
7
+ w.call(e, i) && m(o, i, e[i]);
8
8
  if (c)
9
9
  for (var i of c(e))
10
- F.call(e, i) && m(a, i, e[i]);
11
- return a;
12
- }, g = (a, e) => y(a, k(e));
13
- var t = (a, e, i) => (m(a, typeof e != "symbol" ? e + "" : e, i), i);
10
+ F.call(e, i) && m(o, i, e[i]);
11
+ return o;
12
+ }, g = (o, e) => y(o, k(e));
13
+ var t = (o, e, i) => (m(o, typeof e != "symbol" ? e + "" : e, i), i);
14
14
  import * as l from "three";
15
15
  import { logWarning as V, logError as T } from "../../shared-utils/log.js";
16
16
  import { createLineGeometry as U } from "../utils/createLineGeometry.js";
@@ -180,15 +180,15 @@ class B {
180
180
  this.mesh.material.uniforms.vOffset.value = i, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
181
181
  });
182
182
  t(this, "onFlickerAnimeUpdate", (e) => {
183
- var o, s;
183
+ var n, s;
184
184
  const { progress: i } = e, r = 1 - i;
185
- this.mesh.material.uniforms.flicker.value = r, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && f(this.startTagContainer.tag) && ((o = this.startTagContainer.app) == null || o.$set(g(u({}, this.startTagContainer.tag.data), { opacity: r }))), this.endTagContainer.tag && f(this.endTagContainer.tag) && ((s = this.endTagContainer.app) == null || s.$set(g(u({}, this.endTagContainer.tag.data), { opacity: r })));
185
+ this.mesh.material.uniforms.flicker.value = r, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && f(this.startTagContainer.tag) && ((n = this.startTagContainer.app) == null || n.$set(g(u({}, this.startTagContainer.tag.data), { opacity: r }))), this.endTagContainer.tag && f(this.endTagContainer.tag) && ((s = this.endTagContainer.app) == null || s.$set(g(u({}, this.endTagContainer.tag.data), { opacity: r })));
186
186
  });
187
187
  t(this, "logWarning", (e) => V("GuideLineModeItem: ", e));
188
188
  t(this, "logError", (e) => T("GuideLineModeItem: ", e));
189
- var s, n;
189
+ var s, a;
190
190
  this.five = e, this.mode = i.mode, this.plugin = i.plugin, this.parent = i.parent, this.startTagContainer = { tag: null, plugin: new b(this.five) }, this.endTagContainer = { tag: null, plugin: new b(this.five) };
191
- const r = new l.BufferGeometry(), o = new l.ShaderMaterial({
191
+ const r = new l.BufferGeometry(), n = new l.ShaderMaterial({
192
192
  vertexShader: S,
193
193
  fragmentShader: A,
194
194
  transparent: !0,
@@ -207,7 +207,7 @@ class B {
207
207
  vOffset: { value: 0 }
208
208
  }
209
209
  });
210
- this.mesh = new l.Mesh(r, o), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((n = (s = this.five.model) == null ? void 0 : s.shownFloor) != null ? n : null), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.parent.hooks.on("show", this.updateVisible), this.parent.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("show", this.updateVisible), this.plugin.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("enable", this.updateVisible), this.plugin.hooks.on("disable", this.updateVisible), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.five.on("modelShownFloorChange", this.onFiveModelShownFloorChange);
210
+ this.mesh = new l.Mesh(r, n), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((a = (s = this.five.model) == null ? void 0 : s.shownFloor) != null ? a : null), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.parent.hooks.on("show", this.updateVisible), this.parent.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("show", this.updateVisible), this.plugin.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("enable", this.updateVisible), this.plugin.hooks.on("disable", this.updateVisible), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.five.on("modelShownFloorChange", this.onFiveModelShownFloorChange);
211
211
  }
212
212
  get panoGroup() {
213
213
  return this._panoGroup;
@@ -248,26 +248,26 @@ class B {
248
248
  return this.logError("setPathByPanoGroup: work is not ready");
249
249
  const r = P(e);
250
250
  if (this._panoGroup = r, (i == null ? void 0 : i.skipPanoGroup) !== void 0) {
251
- const s = i.skipPanoGroup ? r.map((n) => this.five.work.observers[n]).map((n) => n.standingPosition.clone()) : null;
251
+ const s = i.skipPanoGroup ? r.map((a) => this.five.work.observers[a]).map((a) => a.standingPosition.clone()) : null;
252
252
  this.skippedPositions = s;
253
253
  }
254
- const o = this.getPathFromPanoGroup(r, this.five.work, i);
255
- this.path = o, this.setGeometryByPath(o, i);
254
+ const n = this.getPathFromPanoGroup(r, this.five.work, i);
255
+ this.path = n, this.setGeometryByPath(n, i);
256
256
  }
257
257
  /** 通过路径设置线条形状 */
258
258
  setGeometryByPath(e, i) {
259
259
  var h, p, v;
260
260
  if (this.disposed)
261
261
  return this.logError("disposed");
262
- const r = (h = i == null ? void 0 : i.scale) != null ? h : this.scale, o = (p = i == null ? void 0 : i.width) != null ? p : this.width, s = (v = i == null ? void 0 : i.unit_length) != null ? v : this.unitLength;
263
- this.path = e, this.scale = r, this.width = o, this.unitLength = s;
264
- const { geometry: n, maxU: d } = U({
262
+ const r = (h = i == null ? void 0 : i.scale) != null ? h : this.scale, n = (p = i == null ? void 0 : i.width) != null ? p : this.width, s = (v = i == null ? void 0 : i.unit_length) != null ? v : this.unitLength;
263
+ this.path = e, this.scale = r, this.width = n, this.unitLength = s;
264
+ const { geometry: a, maxU: d } = U({
265
265
  path: e,
266
- width: o * r,
266
+ width: n * r,
267
267
  unitLength: s * r,
268
268
  skipPositions: this.skippedPositions
269
269
  });
270
- this.mesh.geometry = n, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = d, this.five.needsRender = !0;
270
+ this.mesh.geometry = a, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = d, this.five.needsRender = !0;
271
271
  }
272
272
  /** 设置线条材质 */
273
273
  setMartial(e) {
@@ -330,7 +330,7 @@ class B {
330
330
  var i, r;
331
331
  if (this.disposed)
332
332
  return this.logError("disposed");
333
- this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((r = (i = this.five.model) == null ? void 0 : i.shownFloor) != null ? r : 0);
333
+ this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((r = (i = this.five.model) == null ? void 0 : i.shownFloor) != null ? r : null);
334
334
  }
335
335
  setStartTag(e) {
336
336
  this.setTag("start", e);
@@ -345,19 +345,21 @@ class B {
345
345
  this.flickerAnime.play();
346
346
  }
347
347
  setTag(e, i) {
348
- const o = G({}, {
348
+ const r = e === "start" ? this.startTagContainer : this.endTagContainer;
349
+ i || r.plugin.clearTags();
350
+ const s = G({}, {
349
351
  contentType: "Custom",
350
352
  stickType: "2DPoint",
351
- config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"] } },
353
+ config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
352
354
  style: { point: { enabled: !1 } },
353
355
  data: {}
354
- }, i), s = e === "start" ? this.startTagContainer : this.endTagContainer;
355
- s.tag = o, f(o) && (s.tag.element = (n) => {
356
+ }, i);
357
+ r.tag = s, f(s) && (r.tag.element = (a) => {
356
358
  var h;
357
- (h = s.app) == null || h.$destroy();
358
- const d = new O({ target: n, intro: !0, props: o.data });
359
- return s.app = d, () => d.$destroy();
360
- }), s.plugin.load({ tagList: [s.tag] });
359
+ (h = r.app) == null || h.$destroy();
360
+ const d = new O({ target: a, intro: !0, props: s.data });
361
+ return r.app = d, () => d.$destroy();
362
+ }), r.plugin.load({ tagList: [r.tag] });
361
363
  }
362
364
  doShow() {
363
365
  this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.mesh), this.startTagContainer.plugin.show(), this.endTagContainer.plugin.show(), this.five.needsRender = !0;
@@ -369,12 +371,12 @@ class B {
369
371
  getPathFromPanoGroup(e, i, r) {
370
372
  if (e.length < 2)
371
373
  return [];
372
- const s = e.map((n) => i.observers[n]).map((n) => n.standingPosition.toArray());
374
+ const s = e.map((a) => i.observers[a]).map((a) => a.standingPosition.toArray());
373
375
  return [u({ type: "CatmullRomCurve3", points: s }, r)];
374
376
  }
375
377
  }
376
- function f(a) {
377
- return a.contentType === "Custom";
378
+ function f(o) {
379
+ return o.contentType === "Custom";
378
380
  }
379
381
  const Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
380
382
  __proto__: null,
@@ -86,8 +86,8 @@ declare class GuideLineModeItem {
86
86
  /** 设置贴图 */
87
87
  setTextureUrl(url: string): void;
88
88
  setVisibleFloorIndexes(floorIndexes: number[]): void;
89
- setStartTag(tag: Tag | PluginType.ModelGuideLineTagData): void;
90
- setEndTag(tag: Tag | PluginType.ModelGuideLineTagData): void;
89
+ setStartTag(tag: Tag | PluginType.ModelGuideLineTagData | null): void;
90
+ setEndTag(tag: Tag | PluginType.ModelGuideLineTagData | null): void;
91
91
  /** 闪烁 */
92
92
  flicker(): void;
93
93
  private setTag;
@@ -56,7 +56,7 @@ import "../base/BasePlugin.js";
56
56
  import "../shared-utils/isAbsoluteURL.js";
57
57
  import "../vendor/svelte/store/index.js";
58
58
  import "../vendor/svelte/internal/index.js";
59
- import "../PanoTagPlugin/utils/device.js";
59
+ import "../shared-utils/device.js";
60
60
  import "../PanoTagPlugin/utils/model/mediaPlane.js";
61
61
  import "../shared-utils/three/Quadrangle.js";
62
62
  import "../shared-utils/math/pointIsRectangle.js";
@@ -69,7 +69,7 @@ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
69
69
  import "../PanoTagPlugin/controller/TagCache.js";
70
70
  import "../vendor/svelte/store/index.js";
71
71
  import "../vendor/svelte/internal/index.js";
72
- import "../PanoTagPlugin/utils/device.js";
72
+ import "../shared-utils/device.js";
73
73
  import "../PanoTagPlugin/utils/model/mediaPlane.js";
74
74
  import "../shared-utils/three/Quadrangle.js";
75
75
  import "../shared-utils/math/pointIsRectangle.js";