@realsee/dnalogel 2.20.1 → 2.20.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 (324) hide show
  1. package/dist/GuideLinePlugin/Controller.d.ts +3 -3
  2. package/dist/GuideLinePlugin/GuideLineItem.d.ts +1 -1
  3. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +0 -16
  4. package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -7
  5. package/dist/PanoMeasurePlugin/Controller/index.d.ts +1 -2
  6. package/dist/index.cjs.js +26 -26
  7. package/dist/index.js +580 -616
  8. package/dist/index.umd.js +19 -19
  9. package/docs/assets/search.js +1 -1
  10. package/docs/classes/CSS3DRender.html +30 -30
  11. package/docs/classes/CruisePluginController.html +25 -25
  12. package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
  13. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +31 -79
  14. package/docs/classes/Magnifier.html +19 -19
  15. package/docs/classes/ModelRoomLabelController.html +10 -10
  16. package/docs/classes/Object3DHelperController.html +24 -24
  17. package/docs/classes/PaintBrush.html +14 -14
  18. package/docs/classes/PanoMeasurePluginLine.html +22 -22
  19. package/docs/classes/PanoMeasurePluginModel.html +21 -21
  20. package/docs/classes/PanoMeasurePluginPoint.html +13 -13
  21. package/docs/classes/PanoMeasurePluginPolyline.html +25 -25
  22. package/docs/classes/PanoTagPluginController.html +46 -46
  23. package/docs/classes/Util.BetterTween.html +8 -8
  24. package/docs/classes/Util.FivePointSelector.html +11 -11
  25. package/docs/classes/Util.Interval.html +11 -11
  26. package/docs/classes/Util.Magnifier.html +16 -16
  27. package/docs/classes/Util.PointDomHelper.html +10 -10
  28. package/docs/classes/Util.PointHelper.html +10 -10
  29. package/docs/classes/Util.Rectangle.html +12 -12
  30. package/docs/enums/CameraMovementEffect.html +6 -6
  31. package/docs/enums/ContentType.html +19 -19
  32. package/docs/enums/DIRECTION.html +8 -8
  33. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
  34. package/docs/enums/DimensionType.html +6 -6
  35. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
  36. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
  37. package/docs/enums/PaintBrushTypeEnum.html +7 -7
  38. package/docs/enums/PointType.html +6 -6
  39. package/docs/enums/Rotation.html +7 -7
  40. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  41. package/docs/functions/CameraMovementPlugin.html +3 -3
  42. package/docs/functions/CruisePlugin.html +3 -3
  43. package/docs/functions/GuideLinePlugin.html +4 -4
  44. package/docs/functions/ItemLabelPlugin.html +3 -3
  45. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  46. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  47. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  48. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  49. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  50. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  51. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  52. package/docs/functions/ModelViewPlugin.html +3 -3
  53. package/docs/functions/Object3DHelperPlugin.html +3 -3
  54. package/docs/functions/PanoCompassPlugin.html +3 -3
  55. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  56. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  57. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  58. package/docs/functions/PanoMeasurePlugin.html +3 -3
  59. package/docs/functions/PanoRulerPlugin.html +3 -3
  60. package/docs/functions/PanoRulerProPlugin.html +3 -3
  61. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  62. package/docs/functions/PanoTagPlugin.html +3 -3
  63. package/docs/functions/PanoVideoPlugin.html +3 -3
  64. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  65. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  66. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  67. package/docs/functions/Util.getFrameTime.html +4 -4
  68. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  69. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  70. package/docs/functions/Util.isAbsoluteURL.html +4 -4
  71. package/docs/functions/Util.isModelLike.html +4 -4
  72. package/docs/functions/Util.isNil.html +4 -4
  73. package/docs/functions/Util.isPanoramaLike.html +4 -4
  74. package/docs/functions/Util.nextFrame.html +4 -4
  75. package/docs/functions/Util.notNil.html +4 -4
  76. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  77. package/docs/functions/Util.tweenProgress.html +4 -4
  78. package/docs/functions/Util.uuid.html +4 -4
  79. package/docs/functions/pluginFlag.html +4 -4
  80. package/docs/index.html +4 -4
  81. package/docs/interfaces/AddTagConfig.html +5 -5
  82. package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
  83. package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
  84. package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
  85. package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
  86. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
  87. package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
  88. package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
  89. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
  90. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
  91. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
  92. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
  93. package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
  94. package/docs/interfaces/EventMap.html +14 -14
  95. package/docs/interfaces/FloorplanBounding.html +7 -7
  96. package/docs/interfaces/FloorplanData.html +9 -9
  97. package/docs/interfaces/FloorplanEntrance.html +10 -10
  98. package/docs/interfaces/FloorplanExtraObject.html +9 -9
  99. package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
  100. package/docs/interfaces/FloorplanFloorData.html +8 -8
  101. package/docs/interfaces/FloorplanImagePosition.html +6 -6
  102. package/docs/interfaces/FloorplanObserver.html +8 -8
  103. package/docs/interfaces/FloorplanOutlineItem.html +8 -8
  104. package/docs/interfaces/FloorplanPosition.html +6 -6
  105. package/docs/interfaces/FloorplanRoomItem.html +12 -12
  106. package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
  107. package/docs/interfaces/FloorplanServerBounding.html +7 -7
  108. package/docs/interfaces/FloorplanServerComputedData.html +9 -9
  109. package/docs/interfaces/FloorplanServerData.html +6 -6
  110. package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
  111. package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
  112. package/docs/interfaces/FloorplanServerEntrance.html +10 -10
  113. package/docs/interfaces/FloorplanServerFloorData.html +8 -8
  114. package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
  115. package/docs/interfaces/FloorplanServerObserver.html +8 -8
  116. package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
  117. package/docs/interfaces/FloorplanServerPosition.html +6 -6
  118. package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
  119. package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
  120. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
  121. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
  122. package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
  123. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
  124. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
  125. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
  126. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
  127. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
  128. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
  129. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
  130. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
  131. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
  132. package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
  133. package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
  134. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
  135. package/docs/interfaces/HelperOffset.html +7 -7
  136. package/docs/interfaces/ImagePlaneGroup.html +5 -5
  137. package/docs/interfaces/ItemLabelPluginData.html +5 -5
  138. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
  139. package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
  140. package/docs/interfaces/MinMax.html +6 -6
  141. package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
  142. package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
  143. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
  144. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
  145. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
  146. package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
  147. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
  148. package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
  149. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
  150. package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
  151. package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
  152. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
  153. package/docs/interfaces/ModelViewPluginExportType.html +10 -10
  154. package/docs/interfaces/Object3DHelperState.html +7 -7
  155. package/docs/interfaces/ObjectHelperControllers.html +8 -8
  156. package/docs/interfaces/PaintBrushAction.html +11 -11
  157. package/docs/interfaces/PaintBrushConfigs.html +11 -11
  158. package/docs/interfaces/PaintBrushState.html +9 -9
  159. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
  160. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  161. package/docs/interfaces/PanoMeasureParameterType.html +13 -13
  162. package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
  163. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
  164. package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
  165. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
  166. package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
  167. package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
  168. package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
  169. package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
  170. package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
  171. package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
  172. package/docs/interfaces/PanoRulerProPluginState.html +7 -7
  173. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  174. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  175. package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
  176. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
  177. package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
  178. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
  179. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
  180. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
  181. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
  182. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
  183. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
  184. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
  185. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  186. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
  187. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
  188. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
  189. package/docs/interfaces/Point.html +7 -7
  190. package/docs/interfaces/Room.html +8 -8
  191. package/docs/interfaces/RoomInfo.html +6 -6
  192. package/docs/interfaces/RoomLabel.html +13 -13
  193. package/docs/interfaces/RoomRules.html +4 -4
  194. package/docs/interfaces/Rooms.html +4 -4
  195. package/docs/interfaces/Scissor.html +8 -8
  196. package/docs/interfaces/State.html +7 -7
  197. package/docs/interfaces/TagCacheInterface.html +11 -11
  198. package/docs/interfaces/TagConfig.html +12 -12
  199. package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
  200. package/docs/interfaces/TagIconUrl.html +11 -11
  201. package/docs/interfaces/TagObjectGroup.html +5 -5
  202. package/docs/interfaces/TagStyle.html +5 -5
  203. package/docs/interfaces/Tags.html +8 -8
  204. package/docs/interfaces/TemporaryState.html +5 -5
  205. package/docs/interfaces/Util.MagnifierParameter.html +10 -10
  206. package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
  207. package/docs/modules/CruisePluginTypes.html +4 -4
  208. package/docs/modules/GuideLineItem.html +4 -4
  209. package/docs/modules/GuideLineModeItem.html +4 -4
  210. package/docs/modules/GuideLinePluginType.html +4 -4
  211. package/docs/modules/PanoVideoPluginType.html +4 -4
  212. package/docs/modules/Util.html +4 -4
  213. package/docs/modules.html +4 -4
  214. package/docs/types/ArrayPosition.html +4 -4
  215. package/docs/types/AudioAppearance.html +4 -4
  216. package/docs/types/AudioTagTypeConfigKey.html +4 -4
  217. package/docs/types/CSS3DRenderExportType.html +4 -4
  218. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  219. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  220. package/docs/types/ClassFunctionParameters.html +4 -4
  221. package/docs/types/Color.html +4 -4
  222. package/docs/types/ContentTypeConfigKey.html +4 -4
  223. package/docs/types/ContentTypeConfigKeySplit.html +4 -4
  224. package/docs/types/ContentTypeMap.html +4 -4
  225. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  226. package/docs/types/Create3DElementReturnType.html +4 -4
  227. package/docs/types/CruisePluginExportType.html +4 -4
  228. package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
  229. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
  230. package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
  231. package/docs/types/DeprecatedTagProperty.html +4 -4
  232. package/docs/types/Direction-1.html +4 -4
  233. package/docs/types/Direction4.html +4 -4
  234. package/docs/types/ElementRenderer.html +4 -4
  235. package/docs/types/FloorplanRuleLabels.html +4 -4
  236. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  237. package/docs/types/GuideLinePluginExportType.html +4 -4
  238. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  239. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  240. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  241. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  242. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
  243. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  244. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  245. package/docs/types/HelperEventMap.html +4 -4
  246. package/docs/types/LoadTagConfig.html +4 -4
  247. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  248. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  249. package/docs/types/MediaData.html +4 -4
  250. package/docs/types/MediaStore.html +4 -4
  251. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  252. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  253. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  254. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  255. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  256. package/docs/types/MoveArgs.html +4 -4
  257. package/docs/types/MoveOpts.html +4 -4
  258. package/docs/types/Object3DHelperEventMap.html +4 -4
  259. package/docs/types/ObjectFit.html +4 -4
  260. package/docs/types/PaintBrushEventMap.html +4 -4
  261. package/docs/types/PanoCompassPluginData.html +4 -4
  262. package/docs/types/PanoCompassPluginExportType.html +4 -4
  263. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  264. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  265. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  266. package/docs/types/PanoIndex.html +4 -4
  267. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  268. package/docs/types/PanoMeasureReturnType.html +4 -4
  269. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  270. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  271. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  272. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  273. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  274. package/docs/types/PartialObjectDeep.html +4 -4
  275. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
  276. package/docs/types/PlaneTag.html +4 -4
  277. package/docs/types/Point2DTag.html +4 -4
  278. package/docs/types/Point3DTag.html +4 -4
  279. package/docs/types/PointTag.html +4 -4
  280. package/docs/types/PointTagInstance.html +4 -4
  281. package/docs/types/Position.html +4 -4
  282. package/docs/types/RotateArgs.html +4 -4
  283. package/docs/types/RotateOpts.html +4 -4
  284. package/docs/types/RuleLabelsKey.html +4 -4
  285. package/docs/types/RuleLabelsValue.html +4 -4
  286. package/docs/types/StickType.html +4 -4
  287. package/docs/types/Tag.html +4 -4
  288. package/docs/types/Tag2D.html +4 -4
  289. package/docs/types/Tag3D.html +4 -4
  290. package/docs/types/TagContentType.html +4 -4
  291. package/docs/types/TagDimensionType.html +4 -4
  292. package/docs/types/TagElement.html +4 -4
  293. package/docs/types/TagEvents.html +4 -4
  294. package/docs/types/TagGLTFObject.html +4 -4
  295. package/docs/types/TagHooks.html +4 -4
  296. package/docs/types/TagId.html +4 -4
  297. package/docs/types/TagInstance.html +4 -4
  298. package/docs/types/TagPointType.html +4 -4
  299. package/docs/types/TagRendererMap.html +4 -4
  300. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  301. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  302. package/docs/types/WorkCode.html +4 -4
  303. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  304. package/docs/variables/PLUGIN.html +4 -4
  305. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  306. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  307. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  308. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  309. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  310. package/libs/GuideLinePlugin/Controller.d.ts +3 -3
  311. package/libs/GuideLinePlugin/Controller.js +39 -39
  312. package/libs/GuideLinePlugin/GuideLineItem.d.ts +1 -1
  313. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +76 -108
  314. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +0 -16
  315. package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -7
  316. package/libs/GuideLinePlugin/utils/createLineGeometry.js +17 -19
  317. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +77 -77
  318. package/libs/PanoMeasurePlugin/Controller/index.d.ts +1 -2
  319. package/libs/base/BasePlugin.js +1 -1
  320. package/libs/floorplan/Components/RoomHighlight/Room.js +54 -54
  321. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +8 -8
  322. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +28 -30
  323. package/libs/shared-utils/logger.js +1 -1
  324. package/package.json +2 -2
@@ -1,37 +1,37 @@
1
- var V = Object.defineProperty;
1
+ var M = Object.defineProperty;
2
2
  var S = Object.getOwnPropertySymbols;
3
- var M = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable;
4
- var f = (p, o, t) => o in p ? V(p, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[o] = t, c = (p, o) => {
3
+ var N = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
4
+ var f = (s, o, t) => o in s ? M(s, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[o] = t, c = (s, o) => {
5
5
  for (var t in o || (o = {}))
6
- M.call(o, t) && f(p, t, o[t]);
6
+ N.call(o, t) && f(s, t, o[t]);
7
7
  if (S)
8
8
  for (var t of S(o))
9
- N.call(o, t) && f(p, t, o[t]);
10
- return p;
9
+ O.call(o, t) && f(s, t, o[t]);
10
+ return s;
11
11
  };
12
- var d = (p, o, t) => (f(p, typeof o != "symbol" ? o + "" : o, t), t);
13
- var u = (p, o, t) => new Promise((i, s) => {
12
+ var d = (s, o, t) => (f(s, typeof o != "symbol" ? o + "" : o, t), t);
13
+ var u = (s, o, t) => new Promise((i, p) => {
14
14
  var a = (m) => {
15
15
  try {
16
16
  r(t.next(m));
17
17
  } catch (n) {
18
- s(n);
18
+ p(n);
19
19
  }
20
20
  }, e = (m) => {
21
21
  try {
22
22
  r(t.throw(m));
23
23
  } catch (n) {
24
- s(n);
24
+ p(n);
25
25
  }
26
26
  }, r = (m) => m.done ? i(m.value) : Promise.resolve(m.value).then(a, e);
27
- r((t = t.apply(p, o)).next());
27
+ r((t = t.apply(s, o)).next());
28
28
  });
29
- import { Controller as O } from "../base/BasePluginWithData.js";
30
- import { equal as P } from "../shared-utils/equal.js";
31
- import { GuideLineItem as $ } from "./GuideLineItem/index.js";
32
- import k from "../CruisePlugin/Controller.js";
29
+ import { Controller as P } from "../base/BasePluginWithData.js";
30
+ import { equal as $ } from "../shared-utils/equal.js";
31
+ import { GuideLineItem as k } from "./GuideLineItem/index.js";
32
+ import x from "../CruisePlugin/Controller.js";
33
33
  import { objectAssignDeepExports as T } from "../vendor/object-assign-deep/objectAssignDeep.js";
34
- import * as _ from "three";
34
+ import * as V from "three";
35
35
  import "../base/BasePlugin.js";
36
36
  import "../shared-utils/Subscribe.js";
37
37
  import "hammerjs";
@@ -188,52 +188,52 @@ import "../CruisePlugin/utils/vectorToCoordinates.js";
188
188
  import "../CruisePlugin/utils/formatRad.js";
189
189
  import "../CruisePlugin/utils/linerValue.js";
190
190
  import "../CruisePlugin/utils/sleep.js";
191
- const A = "v1.1.0", b = "GuideLinePlugin", g = `${b}@${A}`, xr = (p) => `${g}--${p}`;
192
- class Wr extends O {
191
+ const _ = "v1.1.0", b = "GuideLinePlugin", g = `${b}@${_}`, Wr = (s) => `${g}--${s}`;
192
+ class Ur extends P {
193
193
  constructor(t, i) {
194
194
  super(t, i);
195
- d(this, "version", A);
195
+ d(this, "version", _);
196
196
  d(this, "name", b);
197
197
  d(this, "cruisePlugin");
198
198
  /** GuideLineItem 索引 */
199
199
  d(this, "itemMap", /* @__PURE__ */ new Map());
200
+ /** 当新增一根线时,整体高度的偏移值 */
201
+ d(this, "heightOffset", 0);
200
202
  d(this, "state", {
201
203
  visible: !1,
202
204
  enabled: !0
203
205
  });
204
206
  d(this, "data");
205
- /** 当新增一根线时,整体高度的偏移值 */
206
- d(this, "heightOffset", 0);
207
207
  d(this, "_disposed", !1);
208
208
  d(this, "disposedErrorLog", () => {
209
209
  console.error(`${g} is disposed`);
210
210
  });
211
- this.cruisePlugin = new k(t, { useGuideLine: !1 }), Object.assign(window, { [`__${b}_DEBUG__`]: this });
211
+ this.cruisePlugin = new x(t, { useGuideLine: !1 }), Object.assign(window, { [`__${b}_DEBUG__`]: this });
212
212
  }
213
213
  get disposed() {
214
214
  return this._disposed;
215
215
  }
216
- load(t, i, s = !0) {
216
+ load(t, i, p = !0) {
217
217
  return u(this, null, function* () {
218
218
  var v, w, E, I, y, L, D;
219
219
  if (this.disposed)
220
220
  return;
221
221
  const a = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, e = yield this.formatData(t);
222
222
  this.hooks.emit("dataChange", e, a), this.data = e;
223
- const r = e.config, m = {
223
+ const r = e.config, n = {
224
224
  panorama_style: {
225
- visible: !1,
225
+ visible: !!(!e.lines && e.routes),
226
226
  unit_length: (v = r == null ? void 0 : r.unitHeight) != null ? v : 0.4,
227
227
  width: (w = r == null ? void 0 : r.unitWidth) != null ? w : 0.6,
228
228
  texture: { url: (E = r == null ? void 0 : r.arrowTextureUrl) != null ? E : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }
229
229
  }
230
- }, n = (y = (I = e.routes) == null ? void 0 : I.map((l) => {
230
+ }, h = (y = (I = e.routes) == null ? void 0 : I.map((l) => {
231
231
  var G;
232
- return T({}, m, { id: (G = l.id) != null ? G : Date.now(), pano_group: l.panoIndexList });
233
- })) != null ? y : [], h = (D = (L = e.lines) == null ? void 0 : L.map((l) => T({}, m, l))) != null ? D : [], C = [...n, ...h];
232
+ return T({}, n, { id: (G = l.id) != null ? G : Date.now(), pano_group: l.panoIndexList });
233
+ })) != null ? y : [], A = (D = (L = e.lines) == null ? void 0 : L.map((l) => T({}, n, l))) != null ? D : [], C = [...h, ...A];
234
234
  yield this.waitFiveLoaded(), this.clear(), C.forEach((l) => {
235
235
  this.addGuideLineItem(l);
236
- }), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", e), console.debug(`${g} loaded`, e);
236
+ }), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: p }), this.hooks.emit("dataLoaded", e), console.debug(`${g} loaded`, e);
237
237
  });
238
238
  }
239
239
  formatData(t) {
@@ -269,14 +269,14 @@ class Wr extends O {
269
269
  var a;
270
270
  if (this.disposed)
271
271
  return this.disposedErrorLog();
272
- const s = c({}, this.state);
273
- this.state = c(c({}, this.state), t), t.visible !== void 0 && t.visible !== s.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== s.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction), P(s, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: (a = i == null ? void 0 : i.userAction) != null ? a : !0 }), this.five.needsRender = !0);
272
+ const p = c({}, this.state);
273
+ this.state = c(c({}, this.state), t), t.visible !== void 0 && t.visible !== p.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== p.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction), $(p, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: p, userAction: (a = i == null ? void 0 : i.userAction) != null ? a : !0 }), this.five.needsRender = !0);
274
274
  }
275
275
  /** 添加一个 GuideLineItem */
276
276
  addGuideLineItem(t) {
277
- const i = t.render_id || t.id, s = this.itemMap.get(i);
278
- s && this.removeGuideLineItem(s);
279
- const a = new $({ five: this.five, id: i, plugin: this });
277
+ const i = t.render_id || t.id, p = this.itemMap.get(i);
278
+ p && this.removeGuideLineItem(p);
279
+ const a = new k({ five: this.five, id: i, plugin: this });
280
280
  return this.itemMap.set(i, a), t && a.setData(t), this.heightOffset += 1e-4, a.setHeightOffset(this.heightOffset), a;
281
281
  }
282
282
  /** 获取 Plugin 内的 GuideLineItem */
@@ -293,15 +293,15 @@ class Wr extends O {
293
293
  function i(e) {
294
294
  return Array.isArray(e) && e.every((r) => typeof r == "number");
295
295
  }
296
- function s(e, r) {
297
- return new _.Vector3().fromArray(e).distanceTo(new _.Vector3().fromArray(r)) < 0.01;
296
+ function p(e, r) {
297
+ return new V.Vector3().fromArray(e).distanceTo(new V.Vector3().fromArray(r)) < 0.01;
298
298
  }
299
299
  function a(e) {
300
300
  var m;
301
301
  const r = (m = e.tag) == null ? void 0 : m.position;
302
302
  return i(r) ? t.every((n) => {
303
303
  var h;
304
- return i((h = n.tag) == null ? void 0 : h.position) ? !s(r, n.tag.position) : !0;
304
+ return i((h = n.tag) == null ? void 0 : h.position) ? !p(r, n.tag.position) : !0;
305
305
  }) : !1;
306
306
  }
307
307
  this.itemMap.forEach((e) => {
@@ -344,6 +344,6 @@ class Wr extends O {
344
344
  }
345
345
  }
346
346
  export {
347
- Wr as default,
348
- xr as pluginFlag
347
+ Ur as default,
348
+ Wr as pluginFlag
349
349
  };
@@ -2,7 +2,7 @@ import type { Five } from '@realsee/five';
2
2
  import type GuideLinePlugin from './Controller';
3
3
  import type * as PluginType from './typing';
4
4
  import { GuideLineModeItem } from './GuideLineModeItem';
5
- import type { CruisePluginTypes } from '../CruisePlugin';
5
+ import { CruisePluginTypes } from '../CruisePlugin';
6
6
  import { Subscribe } from '@realsee/five';
7
7
  /** 路线引导实例。
8
8
  * - 路线包括两个部分:全景路线和模型路线。
@@ -1,18 +1,18 @@
1
- var k = Object.defineProperty, w = Object.defineProperties;
2
- var P = Object.getOwnPropertyDescriptors;
3
- var C = Object.getOwnPropertySymbols;
4
- var F = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
5
- var c = (n, e, i) => e in n ? k(n, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[e] = i, f = (n, e) => {
1
+ var C = Object.defineProperty, y = Object.defineProperties;
2
+ var k = Object.getOwnPropertyDescriptors;
3
+ var c = Object.getOwnPropertySymbols;
4
+ var w = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
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
- F.call(e, i) && c(n, i, e[i]);
8
- if (C)
9
- for (var i of C(e))
10
- T.call(e, i) && c(n, i, e[i]);
11
- return n;
12
- }, v = (n, e) => w(n, P(e));
13
- var t = (n, e, i) => (c(n, typeof e != "symbol" ? e + "" : e, i), i);
14
- import * as h from "three";
15
- import { logWarning as V, logError as L } from "../../shared-utils/log.js";
7
+ w.call(e, i) && m(o, i, e[i]);
8
+ if (c)
9
+ for (var i of c(e))
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
+ import * as l from "three";
15
+ import { logWarning as V, logError as T } from "../../shared-utils/log.js";
16
16
  import { createLineGeometry as U } from "../utils/createLineGeometry.js";
17
17
  import { isPanoramaLike as x, isModelLike as _ } from "../../shared-utils/five/mode.js";
18
18
  import "hammerjs";
@@ -20,13 +20,13 @@ 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 G, tweenProgress as M } from "../../shared-utils/animationFrame/BetterTween.js";
24
- import { loadTexture as E } from "../../shared-utils/three/loadTexture.js";
25
- import y from "../../PanoTagPlugin/controller/index.js";
23
+ import { BetterTween as M, tweenProgress as E } from "../../shared-utils/animationFrame/BetterTween.js";
24
+ import { loadTexture as L } from "../../shared-utils/three/loadTexture.js";
25
+ import b from "../../PanoTagPlugin/controller/index.js";
26
26
  import O from "../Components/Tag.js";
27
- import { filterAdjacentDistinct as S } from "../utils/index.js";
28
- import { objectAssignDeepExports as A } from "../../vendor/object-assign-deep/objectAssignDeep.js";
29
- const B = (
27
+ import { filterAdjacentDistinct as P } from "../utils/index.js";
28
+ import { objectAssignDeepExports as G } from "../../vendor/object-assign-deep/objectAssignDeep.js";
29
+ const S = (
30
30
  /* glsl */
31
31
  `
32
32
  varying vec2 vUv;
@@ -36,7 +36,7 @@ const B = (
36
36
  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
37
37
  }
38
38
  `
39
- ), I = (
39
+ ), A = (
40
40
  /* glsl */
41
41
  `
42
42
  // 是否使用颜色
@@ -120,7 +120,7 @@ const B = (
120
120
  }
121
121
  `
122
122
  );
123
- class R {
123
+ class B {
124
124
  constructor(e, i) {
125
125
  t(this, "startTagContainer");
126
126
  t(this, "endTagContainer");
@@ -128,9 +128,7 @@ class R {
128
128
  t(this, "five");
129
129
  t(this, "mode");
130
130
  t(this, "path", []);
131
- t(this, "_curvePath", null);
132
- t(this, "_curvePoints", null);
133
- t(this, "_panoGroup", []);
131
+ t(this, "_panoGroup", null);
134
132
  t(this, "skippedPositions", null);
135
133
  t(this, "textureUrl", "");
136
134
  t(this, "scale", 1);
@@ -151,10 +149,8 @@ class R {
151
149
  t(this, "plugin");
152
150
  t(this, "textureHasLoaded", !1);
153
151
  t(this, "disposed", !1);
154
- t(this, "flowAnime", new G({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
155
- t(this, "flickerAnime", M(300).yoyo(!0).repeat(5));
156
- /** 缓存 panoGroup 中每个点距离起点的长度 */
157
- t(this, "cacheLengths", []);
152
+ t(this, "flowAnime", new M({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
153
+ t(this, "flickerAnime", E(300).yoyo(!0).repeat(5));
158
154
  t(this, "dispose", () => {
159
155
  var e, i;
160
156
  this.disposed || (this.disposed = !0, 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.five.off("modeChange", this.onFiveModeChange), this.five.off("modelShownFloorChange", this.onFiveModelShownFloorChange), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (i = this.endTagContainer) == null || i.plugin.dispose());
@@ -184,26 +180,26 @@ class R {
184
180
  this.mesh.material.uniforms.vOffset.value = i, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
185
181
  });
186
182
  t(this, "onFlickerAnimeUpdate", (e) => {
187
- var a, r;
188
- const { progress: i } = e, s = 1 - i;
189
- this.mesh.material.uniforms.flicker.value = s, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && b(this.startTagContainer.tag) && ((a = this.startTagContainer.app) == null || a.$set(v(f({}, this.startTagContainer.tag.data), { opacity: s }))), this.endTagContainer.tag && b(this.endTagContainer.tag) && ((r = this.endTagContainer.app) == null || r.$set(v(f({}, this.endTagContainer.tag.data), { opacity: s })));
183
+ var n, s;
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) && ((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 })));
190
186
  });
191
187
  t(this, "logWarning", (e) => V("GuideLineModeItem: ", e));
192
- t(this, "logError", (e) => L("GuideLineModeItem: ", e));
193
- var r, o;
194
- this.five = e, this.mode = i.mode, this.plugin = i.plugin, this.parent = i.parent, this.startTagContainer = { tag: null, plugin: new y(this.five) }, this.endTagContainer = { tag: null, plugin: new y(this.five) };
195
- const s = new h.BufferGeometry(), a = new h.ShaderMaterial({
196
- vertexShader: B,
197
- fragmentShader: I,
188
+ t(this, "logError", (e) => T("GuideLineModeItem: ", e));
189
+ var s, a;
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(), n = new l.ShaderMaterial({
192
+ vertexShader: S,
193
+ fragmentShader: A,
198
194
  transparent: !0,
199
195
  uniforms: {
200
196
  map: { value: null },
201
197
  useMapColor: { value: 0 },
202
- mapColor: { value: new h.Color() },
198
+ mapColor: { value: new l.Color() },
203
199
  mapOpacity: { value: 1 },
204
- backgroundColor: { value: new h.Color() },
200
+ backgroundColor: { value: new l.Color() },
205
201
  backgroundOpacity: { value: 0 },
206
- borderColor: { value: new h.Color() },
202
+ borderColor: { value: new l.Color() },
207
203
  borderOpacity: { value: 0 },
208
204
  opacity: { value: 1 },
209
205
  flicker: { value: 1 },
@@ -211,7 +207,7 @@ class R {
211
207
  vOffset: { value: 0 }
212
208
  }
213
209
  });
214
- this.mesh = new h.Mesh(s, a), 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((o = (r = this.five.model) == null ? void 0 : r.shownFloor) != null ? o : 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);
215
211
  }
216
212
  get panoGroup() {
217
213
  return this._panoGroup;
@@ -220,14 +216,6 @@ class R {
220
216
  get visibleFloorIndexes() {
221
217
  return this._visibleFloorIndexes;
222
218
  }
223
- /** THREE Curve 路径 */
224
- get curvePath() {
225
- return this._curvePath;
226
- }
227
- /** THREE Curve 路径上的点 */
228
- get curvePoints() {
229
- return this._curvePoints;
230
- }
231
219
  /** 自定义展示 */
232
220
  setCustomVisible(e) {
233
221
  if (this.disposed)
@@ -258,28 +246,28 @@ class R {
258
246
  return this.logError("disposed");
259
247
  if (!this.five.work)
260
248
  return this.logError("setPathByPanoGroup: work is not ready");
261
- const s = S(e);
262
- if (this._panoGroup = s, (i == null ? void 0 : i.skipPanoGroup) !== void 0) {
263
- const r = i.skipPanoGroup ? s.map((o) => this.five.work.observers[o]).map((o) => o.standingPosition.clone()) : null;
264
- this.skippedPositions = r;
249
+ const r = P(e);
250
+ if (this._panoGroup = r, (i == null ? void 0 : i.skipPanoGroup) !== void 0) {
251
+ const s = i.skipPanoGroup ? r.map((a) => this.five.work.observers[a]).map((a) => a.standingPosition.clone()) : null;
252
+ this.skippedPositions = s;
265
253
  }
266
- const a = this.getPathFromPanoGroup(s, this.five.work, i);
267
- this.path = a, this.setGeometryByPath(a, i);
254
+ const n = this.getPathFromPanoGroup(r, this.five.work, i);
255
+ this.path = n, this.setGeometryByPath(n, i);
268
256
  }
269
257
  /** 通过路径设置线条形状 */
270
258
  setGeometryByPath(e, i) {
271
- var m, g, p;
259
+ var h, p, v;
272
260
  if (this.disposed)
273
261
  return this.logError("disposed");
274
- const s = (m = i == null ? void 0 : i.scale) != null ? m : this.scale, a = (g = i == null ? void 0 : i.width) != null ? g : this.width, r = (p = i == null ? void 0 : i.unit_length) != null ? p : this.unitLength;
275
- this.path = e, this.scale = s, this.width = a, this.unitLength = r;
276
- const { geometry: o, maxU: d, curvePath: u, curvePoints: l } = 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({
277
265
  path: e,
278
- width: a * s,
279
- unitLength: r * s,
266
+ width: n * r,
267
+ unitLength: s * r,
280
268
  skipPositions: this.skippedPositions
281
269
  });
282
- this._curvePath = u, this._curvePoints = l, this.mesh.geometry = o, 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;
283
271
  }
284
272
  /** 设置线条材质 */
285
273
  setMartial(e) {
@@ -292,13 +280,13 @@ class R {
292
280
  setColor(e) {
293
281
  if (this.disposed)
294
282
  return this.logError("disposed");
295
- 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;
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;
296
284
  }
297
285
  /** 设置边框 */
298
286
  setBorderColor(e) {
299
287
  if (this.disposed)
300
288
  return this.logError("disposed");
301
- this.mesh.material.uniforms.borderColor.value = new h.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
289
+ this.mesh.material.uniforms.borderColor.value = new l.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
302
290
  }
303
291
  /** 设置边框透明度 */
304
292
  setBorderOpacity(e) {
@@ -310,7 +298,7 @@ class R {
310
298
  setBackgroundColor(e) {
311
299
  if (this.disposed)
312
300
  return this.logError("disposed");
313
- this.mesh.material.uniforms.backgroundColor.value = new h.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
301
+ this.mesh.material.uniforms.backgroundColor.value = new l.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
314
302
  }
315
303
  /** 设置背景透明度 */
316
304
  setBackgroundOpacity(e) {
@@ -334,15 +322,15 @@ class R {
334
322
  setTextureUrl(e) {
335
323
  if (this.disposed)
336
324
  return this.logError("disposed");
337
- this.textureUrl = e, E(e).then((i) => {
338
- 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());
325
+ this.textureUrl = e, L(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());
339
327
  });
340
328
  }
341
329
  setVisibleFloorIndexes(e) {
342
- var i, s;
330
+ var i, r;
343
331
  if (this.disposed)
344
332
  return this.logError("disposed");
345
- this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((s = (i = this.five.model) == null ? void 0 : i.shownFloor) != null ? s : null);
333
+ this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((r = (i = this.five.model) == null ? void 0 : i.shownFloor) != null ? r : null);
346
334
  }
347
335
  setStartTag(e) {
348
336
  this.setTag("start", e);
@@ -356,42 +344,22 @@ class R {
356
344
  return this.logError("disposed");
357
345
  this.flickerAnime.play();
358
346
  }
359
- /** 求起点到 panoIndex 曲线长度
360
- * @param index panoIndex 在 panoGroup 中的索引
361
- *
362
- * @description 为什么不使用 panoIndex 作为参数?
363
- * - panoIndex 在一个曲线中可能出现多次,无法确定是哪一个。
364
- */
365
- getLengthByPanoGroupIndex(e) {
366
- return this.disposed ? this.logError("disposed") : this.cacheLengths.length !== 0 ? this.cacheLengths[e] : (this.cacheLengths = this.getPanoGroupLengths(), this.cacheLengths[e]);
367
- }
368
- getPanoGroupLengths() {
369
- const e = this.panoGroup.map((l) => this.five.work.observers[l]), i = this.curvePoints.length, s = this.curvePath.getLength(), a = i - 1, r = s / a, o = this.curvePath.getLengths(a), d = [];
370
- let u = 0;
371
- for (let l = 0; l < i; l++) {
372
- const m = this.curvePoints[l], g = e[u];
373
- if (!g)
374
- break;
375
- g.standingPosition.clone().setY(0).distanceTo(m.clone().setY(0)) < r && (d.push(o[l]), u += 1);
376
- }
377
- return d;
378
- }
379
347
  setTag(e, i) {
380
- const s = e === "start" ? this.startTagContainer : this.endTagContainer;
381
- i || s.plugin.clearTags();
382
- const r = A({}, {
348
+ const r = e === "start" ? this.startTagContainer : this.endTagContainer;
349
+ i || r.plugin.clearTags();
350
+ const s = G({}, {
383
351
  contentType: "Custom",
384
352
  stickType: "2DPoint",
385
353
  config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
386
354
  style: { point: { enabled: !1 } },
387
355
  data: {}
388
356
  }, i);
389
- s.tag = r, b(r) && (s.tag.element = (o) => {
390
- var u;
391
- (u = s.app) == null || u.$destroy();
392
- const d = new O({ target: o, intro: !0, props: r.data });
393
- return s.app = d, () => d.$destroy();
394
- }), s.plugin.load({ tagList: [s.tag] });
357
+ r.tag = s, f(s) && (r.tag.element = (a) => {
358
+ var h;
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] });
395
363
  }
396
364
  doShow() {
397
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;
@@ -400,21 +368,21 @@ class R {
400
368
  this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.startTagContainer.plugin.hide(), this.endTagContainer.plugin.hide(), this.five.needsRender = !0;
401
369
  }
402
370
  /** 通过 panoIndex 数组计算路径 */
403
- getPathFromPanoGroup(e, i, s) {
371
+ getPathFromPanoGroup(e, i, r) {
404
372
  if (e.length < 2)
405
373
  return [];
406
- const r = e.map((o) => i.observers[o]).map((o) => o.standingPosition.toArray());
407
- return [f({ type: "CatmullRomCurve3", points: r }, s)];
374
+ const s = e.map((a) => i.observers[a]).map((a) => a.standingPosition.toArray());
375
+ return [u({ type: "CatmullRomCurve3", points: s }, r)];
408
376
  }
409
377
  }
410
- function b(n) {
411
- return n.contentType === "Custom";
378
+ function f(o) {
379
+ return o.contentType === "Custom";
412
380
  }
413
- const ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
381
+ const Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
414
382
  __proto__: null,
415
- GuideLineModeItem: R
383
+ GuideLineModeItem: B
416
384
  }, Symbol.toStringTag, { value: "Module" }));
417
385
  export {
418
- R as GuideLineModeItem,
419
- ie as GuideLineModeItem$1
386
+ B as GuideLineModeItem,
387
+ Z as GuideLineModeItem$1
420
388
  };
@@ -18,18 +18,12 @@ declare class GuideLineModeItem {
18
18
  get panoGroup(): number[];
19
19
  /** 可展示的楼层 */
20
20
  get visibleFloorIndexes(): number[];
21
- /** THREE Curve 路径 */
22
- get curvePath(): THREE.CurvePath<THREE.Vector3>;
23
- /** THREE Curve 路径上的点 */
24
- get curvePoints(): THREE.Vector3[];
25
21
  startTagContainer: GuideLineTagContainer;
26
22
  endTagContainer: GuideLineTagContainer;
27
23
  readonly mesh: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
28
24
  private five;
29
25
  private mode;
30
26
  private path;
31
- private _curvePath;
32
- private _curvePoints;
33
27
  private _panoGroup;
34
28
  private skippedPositions;
35
29
  private textureUrl;
@@ -53,8 +47,6 @@ declare class GuideLineModeItem {
53
47
  private disposed;
54
48
  private flowAnime;
55
49
  private flickerAnime;
56
- /** 缓存 panoGroup 中每个点距离起点的长度 */
57
- private cacheLengths;
58
50
  constructor(five: Five, options: {
59
51
  mode: PluginType.GuideLineModeItemMode;
60
52
  plugin: GuideLinePlugin;
@@ -98,14 +90,6 @@ declare class GuideLineModeItem {
98
90
  setEndTag(tag: Tag | PluginType.ModelGuideLineTagData | null): void;
99
91
  /** 闪烁 */
100
92
  flicker(): void;
101
- /** 求起点到 panoIndex 曲线长度
102
- * @param index panoIndex 在 panoGroup 中的索引
103
- *
104
- * @description 为什么不使用 panoIndex 作为参数?
105
- * - panoIndex 在一个曲线中可能出现多次,无法确定是哪一个。
106
- */
107
- getLengthByPanoGroupIndex(index: number): number | void;
108
- private getPanoGroupLengths;
109
93
  private setTag;
110
94
  /** 开始走点动画 */
111
95
  private onWalkAnimationStart;
@@ -19,12 +19,5 @@ interface LineGeometryOption {
19
19
  export declare function createLineGeometry(options: LineGeometryOption): {
20
20
  geometry: THREE.BufferGeometry;
21
21
  maxU: number;
22
- curvePath?: undefined;
23
- curvePoints?: undefined;
24
- } | {
25
- geometry: THREE.BufferGeometry;
26
- maxU: number;
27
- curvePath: THREE.CurvePath<THREE.Vector3>;
28
- curvePoints: THREE.Vector3[];
29
22
  };
30
23
  export {};
@@ -1,5 +1,5 @@
1
1
  import * as n from "three";
2
- import { Vector3 as x } from "three";
2
+ import { Vector3 as P } from "three";
3
3
  import { polylineNormals as G } from "../../vendor/polyline-normals/index.js";
4
4
  import "../../vendor/polyline-miter-util/index.js";
5
5
  import "../../vendor/gl-vec2/add.js";
@@ -12,35 +12,33 @@ function Q(e) {
12
12
  const i = e.width, g = e.unitLength / i, c = i / 2, E = e.path;
13
13
  if (E.length === 0)
14
14
  return { geometry: new n.BufferGeometry(), maxU: 0 };
15
- const u = new n.CurvePath();
15
+ const h = new n.CurvePath();
16
16
  E.forEach((t) => {
17
- const m = I(t);
18
- m && u.add(m);
17
+ const a = I(t);
18
+ a && h.add(a);
19
19
  });
20
- const w = Math.ceil(u.getLength() * 100);
21
- u.arcLengthDivisions = w;
22
- const o = u.getPoints(w), y = o.length, L = G(o.map((t) => [t.x, t.z])), B = (y - 1) * z * M, d = 2 * y, C = d * X, U = d * k, r = new Uint32Array(B), s = new Float32Array(C), a = new Float32Array(U);
23
- let N = 0, R = 0;
20
+ const x = Math.ceil(h.getLength() * 100), o = h.getPoints(x), w = o.length, L = G(o.map((t) => [t.x, t.z])), B = (w - 1) * z * M, y = 2 * w, C = y * X, U = y * k, r = new Uint32Array(B), s = new Float32Array(C), u = new Float32Array(U);
21
+ let d = 0, N = 0;
24
22
  for (let t = 0; t < o.length; t++) {
25
- const [m, A] = L[t][0], T = o[t], { x: _, y: b, z: P } = T, f = new x(_ + m * c, b + 0.05, P + A * c);
26
- s[t * 6 + 0] = f.x, s[t * 6 + 1] = f.y, s[t * 6 + 2] = f.z;
27
- const h = new x(_ - m * c, b + 0.05, P - A * c);
28
- s[t * 6 + 3] = h.x, s[t * 6 + 4] = h.y, s[t * 6 + 5] = h.z, N += t > 0 ? o[t - 1].clone().sub(o[t]).length() : 0;
29
- const v = N / i / g;
30
- if (R = v, a[t * 4 + 0] = 0, a[t * 4 + 1] = v, a[t * 4 + 2] = 1, a[t * 4 + 3] = v, e.skipPositions) {
31
- const V = new n.Vector3().lerpVectors(f, h, 0.5);
23
+ const [a, R] = L[t][0], T = o[t], { x: A, y: _, z: b } = T, l = new P(A + a * c, _ + 0.05, b + R * c);
24
+ s[t * 6 + 0] = l.x, s[t * 6 + 1] = l.y, s[t * 6 + 2] = l.z;
25
+ const f = new P(A - a * c, _ + 0.05, b - R * c);
26
+ s[t * 6 + 3] = f.x, s[t * 6 + 4] = f.y, s[t * 6 + 5] = f.z, d += t > 0 ? o[t - 1].clone().sub(o[t]).length() : 0;
27
+ const p = d / i / g;
28
+ if (N = p, u[t * 4 + 0] = 0, u[t * 4 + 1] = p, u[t * 4 + 2] = 1, u[t * 4 + 3] = p, e.skipPositions) {
29
+ const V = new n.Vector3().lerpVectors(l, f, 0.5);
32
30
  if (e.skipPositions.some((F) => F.distanceTo(V) < 0.26))
33
31
  continue;
34
32
  }
35
33
  t !== o.length - 1 && (r[t * 6 + 0] = t * 2 + 0, r[t * 6 + 1] = t * 2 + 2, r[t * 6 + 2] = t * 2 + 1, r[t * 6 + 3] = t * 2 + 2, r[t * 6 + 4] = t * 2 + 3, r[t * 6 + 5] = t * 2 + 1);
36
34
  }
37
- const l = new n.BufferGeometry();
38
- return l.setAttribute("position", new n.BufferAttribute(s, 3)), l.setAttribute("uv", new n.BufferAttribute(a, 2)), l.setIndex(new n.BufferAttribute(r, 1)), { geometry: l, maxU: R, curvePath: u, curvePoints: o };
35
+ const m = new n.BufferGeometry();
36
+ return m.setAttribute("position", new n.BufferAttribute(s, 3)), m.setAttribute("uv", new n.BufferAttribute(u, 2)), m.setIndex(new n.BufferAttribute(r, 1)), { geometry: m, maxU: N };
39
37
  }
40
38
  function I(e) {
41
39
  if (O(e)) {
42
- const i = [e.closed, e.curve_type, e.tension], p = e.points.map((c) => new n.Vector3().fromArray(c));
43
- return new n.CatmullRomCurve3(p, ...i);
40
+ const i = [e.closed, e.curve_type, e.tension], v = e.points.map((c) => new n.Vector3().fromArray(c));
41
+ return new n.CatmullRomCurve3(v, ...i);
44
42
  }
45
43
  }
46
44
  function O(e) {