@realsee/dnalogel 2.16.0-15 → 2.16.0-17

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 (315) hide show
  1. package/dist/GuideLinePlugin/GuideLineItem.d.ts +4 -0
  2. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +2 -10
  3. package/dist/GuideLinePlugin/typing.d.ts +13 -6
  4. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +3 -3
  5. package/dist/index.cjs.js +43 -43
  6. package/dist/index.js +1859 -1844
  7. package/dist/index.umd.js +31 -31
  8. package/docs/assets/search.js +1 -1
  9. package/docs/classes/CSS3DRender.html +32 -31
  10. package/docs/classes/CruisePluginController.html +27 -26
  11. package/docs/classes/GuideLineItem.GuideLineItem.html +52 -16
  12. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +32 -141
  13. package/docs/classes/Magnifier.html +21 -20
  14. package/docs/classes/ModelRoomLabelController.html +12 -11
  15. package/docs/classes/Object3DHelperController.html +26 -25
  16. package/docs/classes/PaintBrush.html +16 -15
  17. package/docs/classes/PanoMeasurePluginLine.html +24 -23
  18. package/docs/classes/PanoMeasurePluginModel.html +23 -22
  19. package/docs/classes/PanoMeasurePluginPoint.html +15 -14
  20. package/docs/classes/PanoMeasurePluginPolyline.html +27 -26
  21. package/docs/classes/PanoTagPluginController.html +50 -159
  22. package/docs/classes/Util.BetterTween.html +10 -9
  23. package/docs/classes/Util.FivePointSelector.html +13 -12
  24. package/docs/classes/Util.Interval.html +13 -12
  25. package/docs/classes/Util.Magnifier.html +18 -17
  26. package/docs/classes/Util.PointDomHelper.html +12 -11
  27. package/docs/classes/Util.PointHelper.html +12 -11
  28. package/docs/classes/Util.Rectangle.html +14 -13
  29. package/docs/enums/CameraMovementEffect.html +8 -7
  30. package/docs/enums/ContentType.html +20 -19
  31. package/docs/enums/DIRECTION.html +10 -9
  32. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -9
  33. package/docs/enums/DimensionType.html +8 -7
  34. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -8
  35. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -9
  36. package/docs/enums/PaintBrushTypeEnum.html +9 -8
  37. package/docs/enums/Rotation.html +9 -8
  38. package/docs/functions/CSS3DRenderPlugin.html +5 -4
  39. package/docs/functions/CameraMovementPlugin.html +5 -4
  40. package/docs/functions/CruisePlugin.html +5 -4
  41. package/docs/functions/GuideLinePlugin.html +6 -5
  42. package/docs/functions/ItemLabelPlugin.html +5 -4
  43. package/docs/functions/MapviewFloorplanPlugin.html +5 -4
  44. package/docs/functions/ModelChassisCompassPlugin.html +5 -4
  45. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
  46. package/docs/functions/ModelFloorplanPlugin.html +5 -4
  47. package/docs/functions/ModelItemLabelPlugin.html +5 -4
  48. package/docs/functions/ModelRoomLabelPlugin.html +5 -4
  49. package/docs/functions/ModelTVVideoPlugin.html +5 -4
  50. package/docs/functions/ModelViewPlugin.html +5 -4
  51. package/docs/functions/Object3DHelperPlugin.html +5 -4
  52. package/docs/functions/PanoCompassPlugin.html +5 -4
  53. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
  54. package/docs/functions/PanoDoorLabelPlugin.html +5 -4
  55. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
  56. package/docs/functions/PanoMeasurePlugin.html +5 -4
  57. package/docs/functions/PanoRulerPlugin.html +5 -4
  58. package/docs/functions/PanoRulerProPlugin.html +5 -4
  59. package/docs/functions/PanoSpatialTagPlugin.html +5 -4
  60. package/docs/functions/PanoTagPlugin.html +5 -4
  61. package/docs/functions/PanoVideoPlugin.html +5 -4
  62. package/docs/functions/TopviewFloorplanPlugin.html +5 -4
  63. package/docs/functions/Util.getCoordsFromClient.html +6 -5
  64. package/docs/functions/Util.getCoordsFromElement.html +6 -5
  65. package/docs/functions/Util.getFrameTime.html +6 -5
  66. package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -5
  67. package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -5
  68. package/docs/functions/Util.isAbsoluteURL.html +6 -5
  69. package/docs/functions/Util.isModelLike.html +6 -5
  70. package/docs/functions/Util.isNil.html +6 -5
  71. package/docs/functions/Util.isPanoramaLike.html +6 -5
  72. package/docs/functions/Util.nextFrame.html +6 -5
  73. package/docs/functions/Util.notNil.html +6 -5
  74. package/docs/functions/Util.requestAnimationFrameInterval.html +6 -5
  75. package/docs/functions/Util.tweenProgress.html +6 -5
  76. package/docs/functions/Util.uuid.html +6 -5
  77. package/docs/functions/pluginFlag.html +6 -5
  78. package/docs/index.html +6 -5
  79. package/docs/interfaces/AddTagConfig.html +7 -6
  80. package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -11
  81. package/docs/interfaces/CSS3DRenderPluginState.html +9 -8
  82. package/docs/interfaces/CameraMovementPluginExportType.html +8 -7
  83. package/docs/interfaces/CruisePluginTypes.Config.html +9 -8
  84. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +13 -12
  85. package/docs/interfaces/CruisePluginTypes.EventMap.html +21 -20
  86. package/docs/interfaces/CruisePluginTypes.MoveAction.html +13 -12
  87. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +15 -14
  88. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +15 -14
  89. package/docs/interfaces/CruisePluginTypes.PluginData.html +10 -9
  90. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +8 -7
  91. package/docs/interfaces/CruisePluginTypes.PluginState.html +12 -11
  92. package/docs/interfaces/EventMap.html +16 -15
  93. package/docs/interfaces/FloorplanBounding.html +9 -8
  94. package/docs/interfaces/FloorplanData.html +11 -10
  95. package/docs/interfaces/FloorplanEntrance.html +12 -11
  96. package/docs/interfaces/FloorplanExtraObject.html +11 -10
  97. package/docs/interfaces/FloorplanExtraObject3D.html +9 -8
  98. package/docs/interfaces/FloorplanFloorData.html +10 -9
  99. package/docs/interfaces/FloorplanImagePosition.html +8 -7
  100. package/docs/interfaces/FloorplanObserver.html +10 -9
  101. package/docs/interfaces/FloorplanOutlineItem.html +10 -9
  102. package/docs/interfaces/FloorplanPosition.html +8 -7
  103. package/docs/interfaces/FloorplanRoomItem.html +14 -13
  104. package/docs/interfaces/FloorplanRoomLabelItem.html +8 -7
  105. package/docs/interfaces/FloorplanServerBounding.html +9 -8
  106. package/docs/interfaces/FloorplanServerComputedData.html +11 -10
  107. package/docs/interfaces/FloorplanServerData.html +8 -7
  108. package/docs/interfaces/FloorplanServerDoorItem.html +11 -10
  109. package/docs/interfaces/FloorplanServerDoorPosition.html +9 -8
  110. package/docs/interfaces/FloorplanServerEntrance.html +12 -11
  111. package/docs/interfaces/FloorplanServerFloorData.html +10 -9
  112. package/docs/interfaces/FloorplanServerImagePosition.html +8 -7
  113. package/docs/interfaces/FloorplanServerObserver.html +10 -9
  114. package/docs/interfaces/FloorplanServerOutlineItem.html +10 -9
  115. package/docs/interfaces/FloorplanServerPosition.html +8 -7
  116. package/docs/interfaces/FloorplanServerRoomItem.html +15 -14
  117. package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -7
  118. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +9 -8
  119. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +11 -10
  120. package/docs/interfaces/GuideLinePluginType.EventMap.html +14 -13
  121. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -8
  122. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +7 -6
  123. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +14 -13
  124. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -8
  125. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +21 -20
  126. package/docs/interfaces/{GuideLinePluginType.ModelGuideLineTag.html → GuideLinePluginType.ModelGuideLineTagData.html} +15 -139
  127. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +19 -18
  128. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +6 -5
  129. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -7
  130. package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -8
  131. package/docs/interfaces/GuideLinePluginType.Route.html +12 -11
  132. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +10 -9
  133. package/docs/interfaces/HelperOffset.html +9 -8
  134. package/docs/interfaces/ImagePlaneGroup.html +7 -6
  135. package/docs/interfaces/ItemLabelPluginData.html +7 -6
  136. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -11
  137. package/docs/interfaces/ItemLabelPluginParametersType.html +10 -9
  138. package/docs/interfaces/MinMax.html +8 -7
  139. package/docs/interfaces/ModelChassisCompassPluginData.html +8 -7
  140. package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -8
  141. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -7
  142. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -8
  143. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -8
  144. package/docs/interfaces/ModelItemLabelPluginData.html +7 -6
  145. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -11
  146. package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -7
  147. package/docs/interfaces/ModelRoomLabelPluginData.html +7 -6
  148. package/docs/interfaces/ModelTVVideoPluginData.html +10 -9
  149. package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -8
  150. package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -6
  151. package/docs/interfaces/ModelViewPluginExportType.html +12 -11
  152. package/docs/interfaces/Object3DHelperState.html +9 -8
  153. package/docs/interfaces/ObjectHelperControllers.html +10 -9
  154. package/docs/interfaces/PaintBrushAction.html +13 -12
  155. package/docs/interfaces/PaintBrushConfigs.html +13 -12
  156. package/docs/interfaces/PaintBrushState.html +11 -10
  157. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -10
  158. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
  159. package/docs/interfaces/PanoMeasureParameterType.html +15 -14
  160. package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -8
  161. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -7
  162. package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -7
  163. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -8
  164. package/docs/interfaces/PanoRulerPluginExportType.html +11 -10
  165. package/docs/interfaces/PanoRulerPluginOptions.html +8 -7
  166. package/docs/interfaces/PanoRulerPluginParameterType.html +9 -8
  167. package/docs/interfaces/PanoRulerProPluginExportType.html +10 -9
  168. package/docs/interfaces/PanoRulerProPluginOptions.html +8 -7
  169. package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -7
  170. package/docs/interfaces/PanoRulerProPluginState.html +9 -8
  171. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
  172. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
  173. package/docs/interfaces/PanoSpatialTagPluginData.html +12 -11
  174. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -10
  175. package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -13
  176. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -10
  177. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -13
  178. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -11
  179. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -10
  180. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +7 -6
  181. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -8
  182. package/docs/interfaces/PanoVideoPluginType.PluginData.html +7 -6
  183. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -9
  184. package/docs/interfaces/PanoVideoPluginType.PluginState.html +7 -6
  185. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -8
  186. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +11 -10
  187. package/docs/interfaces/Point.html +9 -8
  188. package/docs/interfaces/Room.html +10 -9
  189. package/docs/interfaces/RoomInfo.html +8 -7
  190. package/docs/interfaces/RoomLabel.html +15 -14
  191. package/docs/interfaces/RoomRules.html +6 -5
  192. package/docs/interfaces/Rooms.html +6 -5
  193. package/docs/interfaces/Scissor.html +10 -9
  194. package/docs/interfaces/State.html +9 -8
  195. package/docs/interfaces/TagCacheInterface.html +13 -12
  196. package/docs/interfaces/TagConfig.html +12 -11
  197. package/docs/interfaces/TagGLTFObjectGroup.html +7 -6
  198. package/docs/interfaces/TagIconUrl.html +13 -12
  199. package/docs/interfaces/TagObjectGroup.html +7 -6
  200. package/docs/interfaces/TagStyle.html +7 -6
  201. package/docs/interfaces/Tags.html +10 -9
  202. package/docs/interfaces/TemporaryState.html +7 -6
  203. package/docs/interfaces/Util.MagnifierParameter.html +12 -11
  204. package/docs/interfaces/Util.MouseGroupParameter.html +9 -8
  205. package/docs/modules/CruisePluginTypes.html +6 -5
  206. package/docs/modules/GuideLineItem.html +6 -5
  207. package/docs/modules/GuideLineModeItem.html +6 -5
  208. package/docs/modules/GuideLinePluginType.html +8 -6
  209. package/docs/modules/PanoVideoPluginType.html +6 -5
  210. package/docs/modules/Util.html +6 -5
  211. package/docs/modules.html +6 -5
  212. package/docs/types/ArrayPosition.html +6 -5
  213. package/docs/types/AudioAppearance.html +6 -5
  214. package/docs/types/AudioTagTypeConfigKey.html +6 -5
  215. package/docs/types/CSS3DRenderExportType.html +6 -5
  216. package/docs/types/CSS3DRenderPluginExportType.html +6 -5
  217. package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
  218. package/docs/types/ClassFunctionParameters.html +6 -5
  219. package/docs/types/Color.html +6 -5
  220. package/docs/types/ContentTypeConfigKey.html +6 -5
  221. package/docs/types/ContentTypeConfigKeySplit.html +6 -5
  222. package/docs/types/ContentTypeMap.html +6 -5
  223. package/docs/types/Create3DDomContainerReturnType.html +6 -5
  224. package/docs/types/Create3DElementReturnType.html +6 -5
  225. package/docs/types/CruisePluginExportType.html +6 -5
  226. package/docs/types/CruisePluginTypes.CruiseData.html +6 -5
  227. package/docs/types/CruisePluginTypes.MoveEffect.html +6 -5
  228. package/docs/types/Direction-1.html +6 -5
  229. package/docs/types/Direction4.html +6 -5
  230. package/docs/types/FloorplanRuleLabels.html +6 -5
  231. package/docs/types/FloorplanServerRuleLabels.html +6 -5
  232. package/docs/types/GuideLinePluginExportType.html +6 -5
  233. package/docs/types/GuideLinePluginType.GuideLineItem.html +7 -6
  234. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +41 -8
  235. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +6 -5
  236. package/docs/types/GuideLinePluginType.GuideLineStyle.html +6 -5
  237. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +353 -0
  238. package/docs/types/GuideLinePluginType.PathItem.html +6 -5
  239. package/docs/types/GuideLinePluginType.PluginData.html +6 -5
  240. package/docs/types/HelperEventMap.html +6 -5
  241. package/docs/types/LoadTagConfig.html +6 -5
  242. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
  243. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
  244. package/docs/types/MediaData.html +6 -5
  245. package/docs/types/MediaStore.html +6 -5
  246. package/docs/types/ModelElement.html +6 -5
  247. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
  248. package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
  249. package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
  250. package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
  251. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
  252. package/docs/types/MoveArgs.html +6 -5
  253. package/docs/types/MoveOpts.html +6 -5
  254. package/docs/types/Object3DHelperEventMap.html +6 -5
  255. package/docs/types/ObjectFit.html +6 -5
  256. package/docs/types/PaintBrushEventMap.html +6 -5
  257. package/docs/types/PanoCompassPluginData.html +6 -5
  258. package/docs/types/PanoCompassPluginExportType.html +6 -5
  259. package/docs/types/PanoCompassPluginParameterType.html +6 -5
  260. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
  261. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
  262. package/docs/types/PanoIndex.html +6 -5
  263. package/docs/types/PanoMeasurePluginEvent.html +6 -5
  264. package/docs/types/PanoMeasureReturnType.html +6 -5
  265. package/docs/types/PanoSpatialTagPluginId.html +6 -5
  266. package/docs/types/PanoTagPluginExportInterface.html +6 -5
  267. package/docs/types/PanoTagPluginParamsInterface.html +6 -5
  268. package/docs/types/PanoVideoPluginParameterType.html +6 -5
  269. package/docs/types/PanoVideoPluginReturnType.html +6 -5
  270. package/docs/types/PlaneTag.html +6 -5
  271. package/docs/types/PlaneTagElement.html +6 -5
  272. package/docs/types/Point2DElement.html +6 -5
  273. package/docs/types/Point2DTag.html +6 -5
  274. package/docs/types/Point3DElement.html +6 -5
  275. package/docs/types/Point3DTag.html +6 -5
  276. package/docs/types/PointTag.html +6 -5
  277. package/docs/types/PointTagElement.html +6 -5
  278. package/docs/types/Position.html +6 -5
  279. package/docs/types/RotateArgs.html +6 -5
  280. package/docs/types/RotateOpts.html +6 -5
  281. package/docs/types/RuleLabelsKey.html +6 -5
  282. package/docs/types/RuleLabelsValue.html +6 -5
  283. package/docs/types/StickType.html +6 -5
  284. package/docs/types/Tag.html +6 -5
  285. package/docs/types/Tag2D.html +6 -5
  286. package/docs/types/Tag3D.html +6 -5
  287. package/docs/types/TagContentType.html +6 -5
  288. package/docs/types/TagDimensionType.html +6 -5
  289. package/docs/types/TagElement.html +6 -5
  290. package/docs/types/TagEvents.html +6 -5
  291. package/docs/types/TagGLTFObject.html +6 -5
  292. package/docs/types/TagHooks.html +6 -5
  293. package/docs/types/TagIconSize.html +6 -5
  294. package/docs/types/TagId.html +6 -5
  295. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
  296. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
  297. package/docs/types/WorkCode.html +6 -5
  298. package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
  299. package/docs/variables/PLUGIN.html +6 -5
  300. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
  301. package/docs/variables/ROOM_TYPE_MAP.html +6 -5
  302. package/docs/variables/itemLabelPluginServerParams.html +6 -5
  303. package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
  304. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
  305. package/libs/GuideLinePlugin/Components/Tag.js +54 -33
  306. package/libs/GuideLinePlugin/GuideLineItem/index.js +67 -57
  307. package/libs/GuideLinePlugin/GuideLineItem.d.ts +4 -0
  308. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +39 -55
  309. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +2 -10
  310. package/libs/GuideLinePlugin/typing.d.ts +13 -6
  311. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +3 -3
  312. package/libs/PanoTagPlugin/controller/TagComputer.js +5 -5
  313. package/libs/base/BasePlugin.js +1 -1
  314. package/libs/index.js +1 -1
  315. package/package.json +1 -1
@@ -1,61 +1,71 @@
1
- var L = Object.defineProperty;
1
+ var y = Object.defineProperty;
2
2
  var w = Object.getOwnPropertySymbols;
3
- var S = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
4
- var d = (o, e, t) => e in o ? L(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, h = (o, e) => {
3
+ var G = Object.prototype.hasOwnProperty, L = 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) => {
5
5
  for (var t in e || (e = {}))
6
- S.call(e, t) && d(o, t, e[t]);
6
+ G.call(e, t) && h(o, t, e[t]);
7
7
  if (w)
8
8
  for (var t of w(e))
9
- _.call(e, t) && d(o, t, e[t]);
9
+ L.call(e, t) && h(o, t, e[t]);
10
10
  return o;
11
11
  };
12
- var s = (o, e, t) => (d(o, typeof e != "symbol" ? e + "" : e, t), t);
13
- var c = (o, e, t) => new Promise((r, n) => {
14
- var l = (a) => {
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) => {
15
15
  try {
16
- i(t.next(a));
17
- } catch (p) {
18
- n(p);
16
+ a(t.next(r));
17
+ } catch (u) {
18
+ n(u);
19
19
  }
20
- }, m = (a) => {
20
+ }, m = (r) => {
21
21
  try {
22
- i(t.throw(a));
23
- } catch (p) {
24
- n(p);
22
+ a(t.throw(r));
23
+ } catch (u) {
24
+ n(u);
25
25
  }
26
- }, i = (a) => a.done ? r(a.value) : Promise.resolve(a.value).then(l, m);
27
- i((t = t.apply(o, e)).next());
26
+ }, a = (r) => r.done ? i(r.value) : Promise.resolve(r.value).then(l, m);
27
+ a((t = t.apply(o, e)).next());
28
28
  });
29
- import { GuideLineModeItem as y } from "../GuideLineModeItem/index.js";
30
- import P from "../../CruisePlugin/Controller.js";
31
- import { logError as x } from "../../shared-utils/log.js";
32
- import { to as k } from "../../shared-utils/to.js";
33
- import { Subscribe as v } from "@realsee/five";
34
- import { changeMode as C } from "../../shared-utils/five/changeMode.js";
35
- class M {
29
+ import { GuideLineModeItem as _ } from "../GuideLineModeItem/index.js";
30
+ import S from "../../CruisePlugin/Controller.js";
31
+ import { logError as k } from "../../shared-utils/log.js";
32
+ import { to as P } from "../../shared-utils/to.js";
33
+ import { Subscribe as b } from "@realsee/five";
34
+ import { changeMode as x } from "../../shared-utils/five/changeMode.js";
35
+ class C {
36
36
  constructor(e) {
37
37
  s(this, "id");
38
38
  s(this, "renderID");
39
39
  s(this, "isGuideLine", !0);
40
40
  s(this, "panoramaItem");
41
41
  s(this, "modelItem");
42
- s(this, "hooks", new v());
42
+ s(this, "hooks", new b());
43
+ s(this, "_visible", !0);
43
44
  s(this, "plugin");
44
45
  s(this, "five");
45
- s(this, "logError", (e) => x("GuideLineItem: ", e));
46
- 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 });
46
+ s(this, "logError", (e) => k("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 });
48
+ }
49
+ get visible() {
50
+ return this._visible;
47
51
  }
48
52
  setData(e) {
49
53
  this.setDataByMode("panorama", e), this.setDataByMode("model", e);
50
54
  }
51
55
  setDataByMode(e, t) {
52
- const r = e === "panorama" ? this.panoramaItem : this.modelItem, n = e === "panorama" ? t.panorama_style : t.model_style, l = t.path, m = n, i = n;
56
+ const i = e === "panorama" ? this.panoramaItem : this.modelItem, n = e === "panorama" ? t.panorama_style : t.model_style, l = t.path, m = n, a = n;
53
57
  if (t.pano_group) {
54
- const a = e === "panorama";
55
- r.setGeometryByPanoGroup(t.pano_group, h({ skipPanoGroup: a }, m));
58
+ const r = e === "panorama";
59
+ i.setGeometryByPanoGroup(t.pano_group, d({ skipPanoGroup: r }, m));
56
60
  } else
57
- t.path && r.setGeometryByPath(l, m);
58
- r.setMartial(i), n != null && n.start_tag && r.setStartTag(n.start_tag), n != null && n.end_tag && r.setEndTag(n.end_tag);
61
+ t.path && i.setGeometryByPath(l, m);
62
+ i.setMartial(a), n != null && n.start_tag && i.setStartTag(n == null ? void 0 : n.start_tag), n != null && n.end_tag && i.setEndTag(n.end_tag);
63
+ }
64
+ show() {
65
+ this._visible = !0, this.hooks.emit("show", { userAction: !0 });
66
+ }
67
+ hide() {
68
+ this._visible = !1, this.hooks.emit("hide", { userAction: !0 });
59
69
  }
60
70
  dispose() {
61
71
  this.panoramaItem.dispose(), this.modelItem.dispose();
@@ -64,54 +74,54 @@ class M {
64
74
  return c(this, null, function* () {
65
75
  if (!this.panoramaItem.panoGroup)
66
76
  return;
67
- const t = h({ panoIndexList: this.panoramaItem.panoGroup }, e);
77
+ const t = d({ panoIndexList: this.panoramaItem.panoGroup }, e);
68
78
  this.hooks.emit("walkStart", { userAction: !0 });
69
- const [r] = yield k(E(this.five, t));
70
- if (this.hooks.emit("walkEnded", { userAction: !0 }), r)
71
- return this.logError(r.message);
79
+ const [i] = yield P(M(this.five, t));
80
+ if (this.hooks.emit("walkEnded", { userAction: !0 }), i)
81
+ return this.logError(i.message);
72
82
  });
73
83
  }
74
84
  }
75
- function E(o, e) {
85
+ function M(o, e) {
76
86
  return c(this, null, function* () {
77
87
  if (e.panoIndexList.length === 0)
78
88
  return;
79
89
  const t = o.getCurrentState();
80
- t.mode !== "Panorama" && (yield C(o, ["Panorama", { longitude: t.longitude, latitude: 0, panoIndex: e.panoIndexList[0] }]));
81
- const r = new P(o, { useGuideLine: !1 });
82
- yield r.load(e), yield new Promise((n, l) => {
90
+ t.mode !== "Panorama" && (yield x(o, ["Panorama", { longitude: t.longitude, latitude: 0, panoIndex: e.panoIndexList[0] }]));
91
+ const i = new S(o, { useGuideLine: !1 });
92
+ yield i.load(e), yield new Promise((n, l) => {
83
93
  const m = o.getCurrentState();
84
- let i = e.panoIndexList.slice();
85
- m.panoIndex === i[0] && p(m.panoIndex), r.playFromStart();
86
- function a(u) {
87
- if (u !== "Panorama")
94
+ let a = e.panoIndexList.slice();
95
+ m.panoIndex === a[0] && u(m.panoIndex), i.playFromStart();
96
+ function r(p) {
97
+ if (p !== "Panorama")
88
98
  return f(new Error("mode not match"));
89
99
  }
90
- function p(u) {
91
- const I = i[0];
92
- if (i = i.slice(1), u !== I)
93
- return f(new Error("panoIndex not match, wanted: " + I + ", got: " + u));
94
- if (i.length === 0)
95
- return G();
100
+ function u(p) {
101
+ const I = a[0];
102
+ if (a = a.slice(1), p !== I)
103
+ return f(new Error("panoIndex not match, wanted: " + I + ", got: " + p));
104
+ if (a.length === 0)
105
+ return v();
96
106
  }
97
107
  function g() {
98
- o.off("modeChange", a), o.off("panoArrived", p);
108
+ o.off("modeChange", r), o.off("panoArrived", u);
99
109
  }
100
- function f(u) {
101
- g(), l(u);
110
+ function f(p) {
111
+ g(), l(p);
102
112
  }
103
- function G() {
113
+ function v() {
104
114
  g(), n();
105
115
  }
106
- o.on("modeChange", a), o.on("panoArrived", p);
116
+ o.on("modeChange", r), o.on("panoArrived", u);
107
117
  });
108
118
  });
109
119
  }
110
120
  const O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
111
121
  __proto__: null,
112
- GuideLineItem: M
122
+ GuideLineItem: C
113
123
  }, Symbol.toStringTag, { value: "Module" }));
114
124
  export {
115
- M as GuideLineItem,
125
+ C as GuideLineItem,
116
126
  O as GuideLineItem$1
117
127
  };
@@ -16,6 +16,8 @@ declare class GuideLineItem {
16
16
  readonly panoramaItem: GuideLineModeItem;
17
17
  readonly modelItem: GuideLineModeItem;
18
18
  readonly hooks: Subscribe<PluginType.GuideLineItemEventMap>;
19
+ get visible(): boolean;
20
+ private _visible;
19
21
  private plugin;
20
22
  private five;
21
23
  constructor(options: {
@@ -25,6 +27,8 @@ declare class GuideLineItem {
25
27
  });
26
28
  setData(data: PluginType.GuideLineItem): void;
27
29
  setDataByMode(mode: PluginType.GuideLineModeItemMode, data: PluginType.GuideLineItem): void;
30
+ show(): void;
31
+ hide(): void;
28
32
  dispose(): void;
29
33
  walk(options?: CruisePluginTypes.MoveAction): Promise<void>;
30
34
  private logError;
@@ -1,27 +1,27 @@
1
1
  var C = Object.defineProperty, y = Object.defineProperties;
2
2
  var k = Object.getOwnPropertyDescriptors;
3
3
  var v = Object.getOwnPropertySymbols;
4
- var w = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
4
+ var w = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
5
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
7
  w.call(e, i) && m(o, i, e[i]);
8
8
  if (v)
9
9
  for (var i of v(e))
10
- U.call(e, i) && m(o, i, e[i]);
10
+ T.call(e, i) && m(o, i, e[i]);
11
11
  return o;
12
12
  }, g = (o, e) => y(o, k(e));
13
13
  var t = (o, e, i) => (m(o, typeof e != "symbol" ? e + "" : e, i), i);
14
- import * as l from "three";
15
- import { logWarning as P, logError as T } from "../../shared-utils/log.js";
14
+ import * as h from "three";
15
+ import { logWarning as U, logError as V } from "../../shared-utils/log.js";
16
16
  import { createLineGeometry as x } from "../utils/createLineGeometry.js";
17
- import { isPanoramaLike as E, isModelLike as _ } from "../../shared-utils/five/mode.js";
17
+ import { isPanoramaLike as _, isModelLike as L } from "../../shared-utils/five/mode.js";
18
18
  import "hammerjs";
19
19
  import "@realsee/five";
20
20
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
21
21
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
22
22
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
23
- import { BetterTween as L, tweenProgress as O } from "../../shared-utils/animationFrame/BetterTween.js";
24
- import { loadTexture as V } from "../../shared-utils/three/loadTexture.js";
23
+ import { BetterTween as O, tweenProgress as E } from "../../shared-utils/animationFrame/BetterTween.js";
24
+ import { loadTexture as P } from "../../shared-utils/three/loadTexture.js";
25
25
  import b from "../../PanoTagPlugin/controller/index.js";
26
26
  import G from "../Components/Tag.js";
27
27
  import { filterAdjacentDistinct as M } from "../utils/index.js";
@@ -36,7 +36,7 @@ const A = (
36
36
  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
37
37
  }
38
38
  `
39
- ), S = (
39
+ ), B = (
40
40
  /* glsl */
41
41
  `
42
42
  // 是否使用颜色
@@ -120,7 +120,7 @@ const A = (
120
120
  }
121
121
  `
122
122
  );
123
- class B {
123
+ class S {
124
124
  constructor(e, i) {
125
125
  t(this, "startTagContainer");
126
126
  t(this, "endTagContainer");
@@ -146,27 +146,11 @@ class B {
146
146
  t(this, "plugin");
147
147
  t(this, "textureHasLoaded", !1);
148
148
  t(this, "disposed", !1);
149
- t(this, "flowAnime", new L({ progress: 0 }).to({ progress: 1 }).duration(5e3).repeat(1 / 0));
150
- t(this, "flickerAnime", O(300).yoyo(!0).repeat(5));
149
+ t(this, "flowAnime", new O({ progress: 0 }).to({ progress: 1 }).duration(5e3).repeat(1 / 0));
150
+ t(this, "flickerAnime", E(300).yoyo(!0).repeat(5));
151
151
  t(this, "dispose", () => {
152
152
  var e, i;
153
- this.disposed || (this.disposed = !0, this.five.off("modeChange", this.onFiveModeChange), this.plugin.hooks.off("show", this.onPluginShow), this.plugin.hooks.off("hide", this.onPluginHide), this.plugin.hooks.off("enable", this.onPluginEnable), this.plugin.hooks.off("disable", this.onPluginDisable), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (i = this.endTagContainer) == null || i.plugin.dispose());
154
- });
155
- /** 当设置 GuideLinePLugin 展示 */
156
- t(this, "onPluginShow", () => {
157
- this.updateVisible();
158
- });
159
- /** 当设置 GuideLinePLugin 隐藏 */
160
- t(this, "onPluginHide", () => {
161
- this.updateVisible();
162
- });
163
- /** 当设置 GuideLinePLugin 开启 */
164
- t(this, "onPluginEnable", () => {
165
- this.updateVisible();
166
- });
167
- /** 当设置 GuideLinePLugin 关闭 */
168
- t(this, "onPluginDisable", () => {
169
- this.updateVisible();
153
+ this.disposed || (this.disposed = !0, this.five.off("modeChange", this.onFiveModeChange), this.parent.hooks.off("show", this.updateVisible), this.parent.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("show", this.updateVisible), this.plugin.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("enable", this.updateVisible), this.plugin.hooks.off("disable", this.updateVisible), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (i = this.endTagContainer) == null || i.plugin.dispose());
170
154
  });
171
155
  /** 开始走点动画 */
172
156
  t(this, "onWalkAnimationStart", () => {
@@ -178,7 +162,12 @@ class B {
178
162
  });
179
163
  /** 模型状态变更 */
180
164
  t(this, "onFiveModeChange", (e) => {
181
- this.modeVisible = this.mode === "panorama" ? E(e) : _(e), this.updateVisible();
165
+ this.modeVisible = this.mode === "panorama" ? _(e) : L(e), this.updateVisible();
166
+ });
167
+ /** 更新可见性 */
168
+ t(this, "updateVisible", () => {
169
+ const e = (() => !this.parent.visible || !this.plugin.state.enabled || !this.plugin.state.visible ? !1 : this.customVisible !== null ? this.customVisible : this.inWalkAnimation ? !0 : this.modeVisible && this.textureHasLoaded && this.defaultVisible)();
170
+ this.visible !== e && (this.visible = e, e ? this.doShow() : this.doHide());
182
171
  });
183
172
  t(this, "onFlowAnimeUpdate", (e) => {
184
173
  const { progress: i } = e;
@@ -189,21 +178,21 @@ class B {
189
178
  const { progress: i } = e, r = 1 - i;
190
179
  this.mesh.material.uniforms.flicker.value = r, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && f(this.startTagContainer.tag) && ((a = this.startTagContainer.app) == null || a.$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 })));
191
180
  });
192
- t(this, "logWarning", (e) => P("GuideLineModeItem: ", e));
193
- t(this, "logError", (e) => T("GuideLineModeItem: ", e));
181
+ t(this, "logWarning", (e) => U("GuideLineModeItem: ", e));
182
+ t(this, "logError", (e) => V("GuideLineModeItem: ", e));
194
183
  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) };
195
- const r = new l.BufferGeometry(), a = new l.ShaderMaterial({
184
+ const r = new h.BufferGeometry(), a = new h.ShaderMaterial({
196
185
  vertexShader: A,
197
- fragmentShader: S,
186
+ fragmentShader: B,
198
187
  transparent: !0,
199
188
  uniforms: {
200
189
  map: { value: null },
201
190
  useMapColor: { value: 0 },
202
- mapColor: { value: new l.Color() },
191
+ mapColor: { value: new h.Color() },
203
192
  mapOpacity: { value: 1 },
204
- backgroundColor: { value: new l.Color() },
193
+ backgroundColor: { value: new h.Color() },
205
194
  backgroundOpacity: { value: 0 },
206
- borderColor: { value: new l.Color() },
195
+ borderColor: { value: new h.Color() },
207
196
  borderOpacity: { value: 0 },
208
197
  opacity: { value: 1 },
209
198
  flicker: { value: 1 },
@@ -211,7 +200,7 @@ class B {
211
200
  vOffset: { value: 0 }
212
201
  }
213
202
  });
214
- this.mesh = new l.Mesh(r, a), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.plugin.hooks.on("show", this.onPluginShow), this.plugin.hooks.on("hide", this.onPluginHide), this.plugin.hooks.on("enable", this.onPluginEnable), this.plugin.hooks.on("disable", this.onPluginDisable), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.onFiveModeChange(this.five.getCurrentState().mode);
203
+ this.mesh = new h.Mesh(r, a), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), 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.onFiveModeChange(this.five.getCurrentState().mode);
215
204
  }
216
205
  get panoGroup() {
217
206
  return this._panoGroup;
@@ -261,13 +250,13 @@ class B {
261
250
  return this.logError("disposed");
262
251
  const r = (d = i == null ? void 0 : i.scale) != null ? d : this.scale, a = (p = i == null ? void 0 : i.width) != null ? p : this.width, s = (c = i == null ? void 0 : i.unit_length) != null ? c : this.unitLength;
263
252
  this.path = e, this.scale = r, this.width = a, this.unitLength = s;
264
- const { geometry: n, maxU: h } = x({
253
+ const { geometry: n, maxU: l } = x({
265
254
  path: e,
266
255
  width: a * r,
267
256
  unitLength: s * r,
268
257
  skipPositions: this.skippedPositions
269
258
  });
270
- this.mesh.geometry = n, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = h, this.five.needsRender = !0;
259
+ this.mesh.geometry = n, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = l, this.five.needsRender = !0;
271
260
  }
272
261
  /** 设置线条材质 */
273
262
  setMartial(e) {
@@ -280,13 +269,13 @@ class B {
280
269
  setColor(e) {
281
270
  if (this.disposed)
282
271
  return this.logError("disposed");
283
- e && (this.mesh.material.uniforms.mapColor.value = new l.Color().set(e)), this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
272
+ e && (this.mesh.material.uniforms.mapColor.value = new h.Color().set(e)), this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
284
273
  }
285
274
  /** 设置边框 */
286
275
  setBorderColor(e) {
287
276
  if (this.disposed)
288
277
  return this.logError("disposed");
289
- this.mesh.material.uniforms.borderColor.value = new l.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
278
+ this.mesh.material.uniforms.borderColor.value = new h.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
290
279
  }
291
280
  /** 设置边框透明度 */
292
281
  setBorderOpacity(e) {
@@ -298,7 +287,7 @@ class B {
298
287
  setBackgroundColor(e) {
299
288
  if (this.disposed)
300
289
  return this.logError("disposed");
301
- console.log("🐶 ==> color:", e), this.mesh.material.uniforms.backgroundColor.value = new l.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
290
+ this.mesh.material.uniforms.backgroundColor.value = new h.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
302
291
  }
303
292
  /** 设置背景透明度 */
304
293
  setBackgroundOpacity(e) {
@@ -322,8 +311,8 @@ class B {
322
311
  setTextureUrl(e) {
323
312
  if (this.disposed)
324
313
  return this.logError("disposed");
325
- this.textureUrl = e, V(e).then((i) => {
326
- this.disposed || this.textureUrl === e && (i.wrapT = l.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = i, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
314
+ this.textureUrl = e, P(e).then((i) => {
315
+ this.disposed || this.textureUrl === e && (i.wrapT = h.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = i, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
327
316
  });
328
317
  }
329
318
  setStartTag(e) {
@@ -349,20 +338,15 @@ class B {
349
338
  s.tag = a, f(a) && (s.tag.element = (n) => {
350
339
  var d;
351
340
  (d = s.app) == null || d.$destroy();
352
- const h = new G({ target: n, intro: !0, props: a.data });
353
- return s.app = h, () => h.$destroy();
341
+ const l = new G({ target: n, intro: !0, props: a.data });
342
+ return s.app = l, () => l.$destroy();
354
343
  }), s.plugin.load({ tagList: [s.tag] });
355
344
  }
356
- /** 更新可见性 */
357
- updateVisible() {
358
- const e = (() => !this.plugin.state.enabled || !this.plugin.state.visible ? !1 : this.customVisible !== null ? this.customVisible : this.inWalkAnimation ? !0 : this.modeVisible && this.textureHasLoaded && this.defaultVisible)();
359
- this.visible !== e && (this.visible = e, e ? this.doShow() : this.doHide());
360
- }
361
345
  doShow() {
362
- this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.mesh), this.five.needsRender = !0;
346
+ this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.mesh), this.startTagContainer.plugin.show(), this.endTagContainer.plugin.show(), this.five.needsRender = !0;
363
347
  }
364
348
  doHide() {
365
- this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.five.needsRender = !0;
349
+ this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.startTagContainer.plugin.hide(), this.endTagContainer.plugin.hide(), this.five.needsRender = !0;
366
350
  }
367
351
  /** 通过 panoIndex 数组计算路径 */
368
352
  getPathFromPanoGroup(e, i, r) {
@@ -377,9 +361,9 @@ function f(o) {
377
361
  }
378
362
  const Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
379
363
  __proto__: null,
380
- GuideLineModeItem: B
364
+ GuideLineModeItem: S
381
365
  }, Symbol.toStringTag, { value: "Module" }));
382
366
  export {
383
- B as GuideLineModeItem,
367
+ S as GuideLineModeItem,
384
368
  Z as GuideLineModeItem$1
385
369
  };
@@ -80,19 +80,11 @@ declare class GuideLineModeItem {
80
80
  setMapOpacity(opacity: number): void;
81
81
  /** 设置贴图 */
82
82
  setTextureUrl(url: string): void;
83
- setStartTag(tag: Tag): void;
84
- setEndTag(tag: Tag): void;
83
+ setStartTag(tag: Tag | PluginType.ModelGuideLineTagData): void;
84
+ setEndTag(tag: Tag | PluginType.ModelGuideLineTagData): void;
85
85
  /** 闪烁 */
86
86
  flicker(): void;
87
87
  private setTag;
88
- /** 当设置 GuideLinePLugin 展示 */
89
- private onPluginShow;
90
- /** 当设置 GuideLinePLugin 隐藏 */
91
- private onPluginHide;
92
- /** 当设置 GuideLinePLugin 开启 */
93
- private onPluginEnable;
94
- /** 当设置 GuideLinePLugin 关闭 */
95
- private onPluginDisable;
96
88
  /** 开始走点动画 */
97
89
  private onWalkAnimationStart;
98
90
  /** 结束走点动画 */
@@ -41,6 +41,12 @@ export interface EventMap extends BasePluginWithData.EventMap<PluginState, Plugi
41
41
  }) => void;
42
42
  }
43
43
  export type GuideLineItemEventMap = {
44
+ show: (options: {
45
+ userAction: boolean;
46
+ }) => void;
47
+ hide: (options: {
48
+ userAction: boolean;
49
+ }) => void;
44
50
  walkStart: (options: {
45
51
  userAction: boolean;
46
52
  }) => void;
@@ -70,7 +76,7 @@ export type GuideLineItem = RequireAtLeastOne<{
70
76
  /** 可展示的楼层 */
71
77
  visible_floor_indexes?: null | number[];
72
78
  /** 点位数组 */
73
- pano_group?: number[];
79
+ pano_group?: null | number[];
74
80
  /** 路径:由多个曲线组合而成的路径,路径为空时,会使用 pano_group 自动创建 */
75
81
  path?: PathItem[];
76
82
  /** 全景态使用的数据 */
@@ -85,8 +91,8 @@ export interface PanoramaGuideLineStyle extends GuideLineStyle {
85
91
  }
86
92
  /** 模型路径样式 */
87
93
  export interface ModelGuideLineStyle extends GuideLineStyle {
88
- start_tag?: ModelGuideLineTag;
89
- end_tag?: ModelGuideLineTag;
94
+ start_tag?: ModelGuideLineTagData;
95
+ end_tag?: ModelGuideLineTagData;
90
96
  }
91
97
  /** 不同模态下的路线数据 */
92
98
  export type GuideLineStyle = GuideLineGeometryStyle & GuideLineMaterialStyle;
@@ -116,19 +122,20 @@ export interface GuideLineMaterialStyle {
116
122
  /** 透明度 */
117
123
  opacity?: number;
118
124
  /** 贴图 */
119
- texture?: {
125
+ texture?: null | {
120
126
  /** 贴图地址 */
121
127
  url: string;
122
128
  };
123
129
  }
124
- /** 模型路线引导标签 */
125
- export interface ModelGuideLineTag extends Tag<'Custom', '2DPoint'> {
130
+ export interface ModelGuideLineTagData {
126
131
  position: number[];
127
132
  data: {
128
133
  text: string;
129
134
  icon_url: string;
130
135
  };
131
136
  }
137
+ /** 模型路线引导标签 */
138
+ export type ModelGuideLineTag = Tag<'Custom', '2DPoint'> & ModelGuideLineTagData;
132
139
  /** 目前只支持 CatmullRomCurve3 */
133
140
  export type PathItem = CatmullRomCurve3;
134
141
  /** @link https://threejs.org/docs/index.html?q=cu#api/zh/extras/curves/CatmullRomCurve3 */
@@ -24,11 +24,11 @@ export declare abstract class TagComputer extends TagUtil {
24
24
  /**
25
25
  * @description: 获取是否展开
26
26
  */
27
- getUnfoldedByPanoIndex(tag: Tag<any>, panoIndex?: number): boolean;
27
+ getUnfoldedByPanoIndex(tag: TagElement<any>, panoIndex?: number): boolean;
28
28
  /**
29
29
  * @description: 获取是否展开
30
30
  */
31
- getUnfoldedByCamera(tag: Tag<any, any>): boolean;
31
+ getUnfoldedByCamera(tag: TagElement<any, any>): boolean;
32
32
  protected sort<T extends Tag<any, any>>(tags: T[]): T[];
33
33
  /**
34
34
  * @description: 一个点的标签
@@ -41,7 +41,7 @@ export declare abstract class TagComputer extends TagUtil {
41
41
  /**
42
42
  * @description: 一个点的标签
43
43
  */
44
- protected getTagProject(tag: Tag<any, any>): {
44
+ protected getTagProject(tag: TagElement<any, any>): {
45
45
  x: number;
46
46
  y: number;
47
47
  z: number;
@@ -1,15 +1,15 @@
1
- var B = Object.defineProperty, U = Object.defineProperties;
1
+ var U = Object.defineProperty, B = Object.defineProperties;
2
2
  var M = Object.getOwnPropertyDescriptors;
3
3
  var x = Object.getOwnPropertySymbols;
4
4
  var R = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
5
- var y = (d, f, e) => f in d ? B(d, f, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[f] = e, I = (d, f) => {
5
+ var y = (d, f, e) => f in d ? U(d, f, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[f] = e, I = (d, f) => {
6
6
  for (var e in f || (f = {}))
7
7
  R.call(f, e) && y(d, e, f[e]);
8
8
  if (x)
9
9
  for (var e of x(f))
10
10
  D.call(f, e) && y(d, e, f[e]);
11
11
  return d;
12
- }, P = (d, f) => U(d, M(f));
12
+ }, P = (d, f) => B(d, M(f));
13
13
  var T = (d, f, e) => (y(d, typeof f != "symbol" ? f + "" : f, e), e);
14
14
  import * as C from "three";
15
15
  import { isMediaModelTag as m, is3DTag as j } from "../utils/tag/tagCheck.js";
@@ -188,7 +188,7 @@ class be extends S {
188
188
  * @description: 获取是否展开
189
189
  */
190
190
  getUnfoldedByCamera(e) {
191
- return this.getVisibleByPanoIndex(e) ? (() => {
191
+ return this.getVisible(e) ? (() => {
192
192
  var l;
193
193
  const s = this.getDistance(e), t = this.getTagConfig(e).unfoldedConfig;
194
194
  if (t) {
@@ -290,7 +290,7 @@ class be extends S {
290
290
  * @description: 一个点的标签
291
291
  */
292
292
  getTagProject(e) {
293
- if (!this.getVisibleByPanoIndex(e))
293
+ if (!this.getVisible(e))
294
294
  return;
295
295
  const n = V(e.position);
296
296
  if (!n)
@@ -14,7 +14,7 @@ let n = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- e(this, "VERSION", "2.16.0-15");
17
+ e(this, "VERSION", "2.16.0-17");
18
18
  e(this, "five");
19
19
  /**
20
20
  * 插件事件钩子
package/libs/index.js CHANGED
@@ -363,7 +363,7 @@ import "./shared-utils/three/PointHelper.js";
363
363
  import "./shared-utils/three/Assets/index.js";
364
364
  import "./shared-utils/three/PointDomHelper.js";
365
365
  import "./shared-utils/three/FivePointSelector.js";
366
- console.info("@realsee/dnalogel %cv2.16.0-15", "background-color: #12ce9b;color:black;padding:0 6px;border-radius: 3px");
366
+ console.info("@realsee/dnalogel %cv2.16.0-17", "background-color: #12ce9b;color:black;padding:0 6px;border-radius: 3px");
367
367
  export {
368
368
  le as CSS3DRender,
369
369
  Zm as CSS3DRenderPlugin,
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "repository": "https://github.com/realsee-developer/dnalogel.git",
9
9
  "description": "如视 VR 看房插件合集",
10
10
  "private": false,
11
- "version": "2.16.0-15",
11
+ "version": "2.16.0-17",
12
12
  "license": "SEE LICENSE IN TERMS.txt",
13
13
  "scripts": {
14
14
  "clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",