@realsee/dnalogel 2.16.0-6 → 2.16.0-8

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 (326) hide show
  1. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +2 -1
  2. package/dist/GuideLinePlugin/typing.d.ts +0 -1
  3. package/dist/GuideLinePlugin/utils/index.d.ts +6 -0
  4. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
  5. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +3 -1
  6. package/dist/index.cjs.js +43 -43
  7. package/dist/index.js +2378 -2297
  8. package/dist/index.umd.js +31 -31
  9. package/docs/assets/search.js +1 -1
  10. package/docs/classes/CSS3DRender.html +31 -31
  11. package/docs/classes/CruisePluginController.html +26 -26
  12. package/docs/classes/GuideLineItem.GuideLineItem.html +16 -16
  13. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +28 -28
  14. package/docs/classes/Magnifier.html +20 -20
  15. package/docs/classes/ModelRoomLabelController.html +11 -11
  16. package/docs/classes/Object3DHelperController.html +25 -25
  17. package/docs/classes/PaintBrush.html +15 -15
  18. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  19. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  20. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  21. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  22. package/docs/classes/PanoTagPluginController.html +47 -47
  23. package/docs/classes/Util.BetterTween.html +8 -8
  24. package/docs/classes/Util.FivePointSelector.html +12 -12
  25. package/docs/classes/Util.Interval.html +12 -12
  26. package/docs/classes/Util.Magnifier.html +17 -17
  27. package/docs/classes/Util.PointDomHelper.html +11 -11
  28. package/docs/classes/Util.PointHelper.html +11 -11
  29. package/docs/classes/Util.Rectangle.html +13 -13
  30. package/docs/enums/CameraMovementEffect.html +7 -7
  31. package/docs/enums/ContentType.html +19 -19
  32. package/docs/enums/DIRECTION.html +9 -9
  33. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  34. package/docs/enums/DimensionType.html +7 -7
  35. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  36. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  37. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  38. package/docs/enums/Rotation.html +8 -8
  39. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  40. package/docs/functions/CameraMovementPlugin.html +4 -4
  41. package/docs/functions/CruisePlugin.html +4 -4
  42. package/docs/functions/GuideLinePlugin.html +5 -5
  43. package/docs/functions/ItemLabelPlugin.html +4 -4
  44. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  45. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  46. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  47. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  48. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  49. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  50. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  51. package/docs/functions/ModelViewPlugin.html +4 -4
  52. package/docs/functions/Object3DHelperPlugin.html +4 -4
  53. package/docs/functions/PanoCompassPlugin.html +4 -4
  54. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  55. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  56. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  57. package/docs/functions/PanoMeasurePlugin.html +4 -4
  58. package/docs/functions/PanoRulerPlugin.html +4 -4
  59. package/docs/functions/PanoRulerProPlugin.html +4 -4
  60. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  61. package/docs/functions/PanoTagPlugin.html +4 -4
  62. package/docs/functions/PanoVideoPlugin.html +4 -4
  63. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  64. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  65. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  66. package/docs/functions/Util.getFrameTime.html +5 -5
  67. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  68. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  69. package/docs/functions/Util.isAbsoluteURL.html +5 -5
  70. package/docs/functions/Util.isModelLike.html +5 -5
  71. package/docs/functions/Util.isNil.html +5 -5
  72. package/docs/functions/Util.isPanoramaLike.html +5 -5
  73. package/docs/functions/Util.nextFrame.html +5 -5
  74. package/docs/functions/Util.notNil.html +5 -5
  75. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  76. package/docs/functions/Util.tweenProgress.html +5 -5
  77. package/docs/functions/Util.uuid.html +5 -5
  78. package/docs/functions/pluginFlag.html +5 -5
  79. package/docs/index.html +4 -4
  80. package/docs/interfaces/AddTagConfig.html +6 -6
  81. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  82. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  83. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  84. package/docs/interfaces/CruisePluginTypes.Config.html +8 -8
  85. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +12 -12
  86. package/docs/interfaces/CruisePluginTypes.EventMap.html +20 -20
  87. package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
  88. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
  89. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
  90. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
  91. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +7 -7
  92. package/docs/interfaces/CruisePluginTypes.PluginState.html +11 -11
  93. package/docs/interfaces/EventMap.html +15 -15
  94. package/docs/interfaces/FloorplanBounding.html +8 -8
  95. package/docs/interfaces/FloorplanData.html +10 -10
  96. package/docs/interfaces/FloorplanEntrance.html +11 -11
  97. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  98. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  99. package/docs/interfaces/FloorplanFloorData.html +9 -9
  100. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  101. package/docs/interfaces/FloorplanObserver.html +9 -9
  102. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  103. package/docs/interfaces/FloorplanPosition.html +7 -7
  104. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  105. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  106. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  107. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  108. package/docs/interfaces/FloorplanServerData.html +7 -7
  109. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  110. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  111. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  112. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  113. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  114. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  115. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  116. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  117. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  118. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  119. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +10 -10
  120. package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -13
  121. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -8
  122. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +6 -6
  123. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +11 -11
  124. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +8 -8
  125. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +16 -16
  126. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTag.html +21 -23
  127. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +16 -16
  128. package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +7 -7
  129. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +6 -6
  130. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +7 -7
  131. package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -9
  132. package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
  133. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +9 -9
  134. package/docs/interfaces/HelperOffset.html +8 -8
  135. package/docs/interfaces/ImagePlaneGroup.html +6 -6
  136. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  137. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  138. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  139. package/docs/interfaces/MinMax.html +7 -7
  140. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  141. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  142. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  143. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  144. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  145. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  146. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  147. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  148. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  149. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  150. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  151. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  152. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  153. package/docs/interfaces/Object3DHelperState.html +8 -8
  154. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  155. package/docs/interfaces/PaintBrushAction.html +12 -12
  156. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  157. package/docs/interfaces/PaintBrushState.html +10 -10
  158. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  159. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  160. package/docs/interfaces/PanoMeasureParameterType.html +14 -14
  161. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  162. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  163. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  164. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  165. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  166. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  167. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  168. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  169. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  170. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  171. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  172. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  173. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  174. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  175. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  176. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  177. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  178. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  179. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  180. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  181. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  182. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  183. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  184. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  185. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  186. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  187. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  188. package/docs/interfaces/Point.html +8 -8
  189. package/docs/interfaces/Room.html +9 -9
  190. package/docs/interfaces/RoomInfo.html +7 -7
  191. package/docs/interfaces/RoomLabel.html +14 -14
  192. package/docs/interfaces/RoomRules.html +5 -5
  193. package/docs/interfaces/Rooms.html +5 -5
  194. package/docs/interfaces/Scissor.html +9 -9
  195. package/docs/interfaces/State.html +8 -8
  196. package/docs/interfaces/TagCacheInterface.html +12 -12
  197. package/docs/interfaces/TagConfig.html +11 -11
  198. package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
  199. package/docs/interfaces/TagIconUrl.html +26 -17
  200. package/docs/interfaces/TagObjectGroup.html +6 -6
  201. package/docs/interfaces/TagStyle.html +6 -6
  202. package/docs/interfaces/Tags.html +9 -9
  203. package/docs/interfaces/TemporaryState.html +6 -6
  204. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  205. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  206. package/docs/modules/CruisePluginTypes.html +5 -5
  207. package/docs/modules/GuideLineItem.html +5 -5
  208. package/docs/modules/GuideLineModeItem.html +5 -5
  209. package/docs/modules/GuideLinePluginType.html +5 -5
  210. package/docs/modules/PanoVideoPluginType.html +5 -5
  211. package/docs/modules/Util.html +5 -5
  212. package/docs/modules.html +4 -4
  213. package/docs/types/ArrayPosition.html +5 -5
  214. package/docs/types/AudioAppearance.html +5 -5
  215. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  216. package/docs/types/CSS3DRenderExportType.html +5 -5
  217. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  218. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  219. package/docs/types/ClassFunctionParameters.html +5 -5
  220. package/docs/types/Color.html +5 -5
  221. package/docs/types/ContentTypeConfigKey.html +5 -5
  222. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  223. package/docs/types/ContentTypeMap.html +5 -5
  224. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  225. package/docs/types/Create3DElementReturnType.html +5 -5
  226. package/docs/types/CruisePluginExportType.html +5 -5
  227. package/docs/types/CruisePluginTypes.CruiseData.html +5 -5
  228. package/docs/types/CruisePluginTypes.MoveEffect.html +5 -5
  229. package/docs/types/Direction-1.html +5 -5
  230. package/docs/types/Direction4.html +5 -5
  231. package/docs/types/FloorplanRuleLabels.html +5 -5
  232. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  233. package/docs/types/GuideLinePluginExportType.html +5 -5
  234. package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -5
  235. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -5
  236. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -5
  237. package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -5
  238. package/docs/types/GuideLinePluginType.PathItem.html +5 -5
  239. package/docs/types/GuideLinePluginType.PluginData.html +5 -5
  240. package/docs/types/HelperEventMap.html +5 -5
  241. package/docs/types/LoadTagConfig.html +5 -5
  242. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  243. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  244. package/docs/types/MediaData.html +5 -5
  245. package/docs/types/MediaStore.html +5 -5
  246. package/docs/types/ModelElement.html +5 -5
  247. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  248. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  249. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  250. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  251. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  252. package/docs/types/MoveArgs.html +5 -5
  253. package/docs/types/MoveOpts.html +5 -5
  254. package/docs/types/Object3DHelperEventMap.html +5 -5
  255. package/docs/types/ObjectFit.html +5 -5
  256. package/docs/types/PaintBrushEventMap.html +5 -5
  257. package/docs/types/PanoCompassPluginData.html +5 -5
  258. package/docs/types/PanoCompassPluginExportType.html +5 -5
  259. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  260. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  261. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  262. package/docs/types/PanoIndex.html +5 -5
  263. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  264. package/docs/types/PanoMeasureReturnType.html +5 -5
  265. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  266. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  267. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  268. package/docs/types/PanoVideoPluginParameterType.html +5 -5
  269. package/docs/types/PanoVideoPluginReturnType.html +5 -5
  270. package/docs/types/PlaneTag.html +5 -5
  271. package/docs/types/PlaneTagElement.html +5 -5
  272. package/docs/types/Point2DElement.html +5 -5
  273. package/docs/types/Point2DTag.html +5 -5
  274. package/docs/types/Point3DElement.html +5 -5
  275. package/docs/types/Point3DTag.html +5 -5
  276. package/docs/types/PointTag.html +5 -5
  277. package/docs/types/PointTagElement.html +5 -5
  278. package/docs/types/Position.html +5 -5
  279. package/docs/types/RotateArgs.html +5 -5
  280. package/docs/types/RotateOpts.html +5 -5
  281. package/docs/types/RuleLabelsKey.html +5 -5
  282. package/docs/types/RuleLabelsValue.html +5 -5
  283. package/docs/types/StickType.html +5 -5
  284. package/docs/types/Tag.html +5 -5
  285. package/docs/types/Tag2D.html +5 -5
  286. package/docs/types/Tag3D.html +5 -5
  287. package/docs/types/TagContentType.html +5 -5
  288. package/docs/types/TagDimensionType.html +5 -5
  289. package/docs/types/TagElement.html +5 -5
  290. package/docs/types/TagEvents.html +5 -5
  291. package/docs/types/TagGLTFObject.html +5 -5
  292. package/docs/types/TagHooks.html +5 -5
  293. package/docs/types/TagIconSize.html +5 -5
  294. package/docs/types/TagId.html +5 -5
  295. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  296. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  297. package/docs/types/WorkCode.html +5 -5
  298. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  299. package/docs/variables/PLUGIN.html +5 -5
  300. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  301. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  302. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  303. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  304. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  305. package/libs/CruisePlugin/Controller.js +16 -14
  306. package/libs/CruisePlugin/index.js +21 -19
  307. package/libs/GuideLinePlugin/Components/Tag.js +38 -0
  308. package/libs/GuideLinePlugin/Controller.js +6 -4
  309. package/libs/GuideLinePlugin/GuideLineItem/index.js +25 -25
  310. package/libs/GuideLinePlugin/GuideLineItem.js +16 -14
  311. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +46 -36
  312. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +2 -1
  313. package/libs/GuideLinePlugin/GuideLineModeItem.js +15 -13
  314. package/libs/GuideLinePlugin/index.js +9 -7
  315. package/libs/GuideLinePlugin/typing.d.ts +0 -1
  316. package/libs/GuideLinePlugin/utils/createLineGeometry.js +19 -16
  317. package/libs/GuideLinePlugin/utils/index.d.ts +6 -0
  318. package/libs/GuideLinePlugin/utils/index.js +8 -4
  319. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +92 -66
  320. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
  321. package/libs/PanoTagPlugin/controller/TagComputer.js +6 -0
  322. package/libs/PanoTagPlugin/controller/index.js +5 -5
  323. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +3 -1
  324. package/libs/base/BasePlugin.js +1 -1
  325. package/libs/index.js +111 -109
  326. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- var c = Object.defineProperty;
1
+ var v = Object.defineProperty;
2
2
  var g = Object.getOwnPropertySymbols;
3
3
  var C = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
4
- var h = (r, e, i) => e in r ? c(r, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[e] = i, f = (r, e) => {
4
+ var h = (r, e, i) => e in r ? v(r, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[e] = i, f = (r, e) => {
5
5
  for (var i in e || (e = {}))
6
6
  C.call(e, i) && h(r, i, e[i]);
7
7
  if (g)
@@ -10,10 +10,10 @@ var h = (r, e, i) => e in r ? c(r, e, { enumerable: !0, configurable: !0, writab
10
10
  return r;
11
11
  };
12
12
  var t = (r, e, i) => (h(r, typeof e != "symbol" ? e + "" : e, i), i);
13
- import * as a from "three";
13
+ import * as o from "three";
14
14
  import { logWarning as E, logError as F } from "../../shared-utils/log.js";
15
- import { createLineGeometry as k } from "../utils/createLineGeometry.js";
16
- import { isPanoramaLike as y, isModelLike as P } from "../../shared-utils/five/mode.js";
15
+ import { createLineGeometry as y } from "../utils/createLineGeometry.js";
16
+ import { isPanoramaLike as k, isModelLike as P } from "../../shared-utils/five/mode.js";
17
17
  import "hammerjs";
18
18
  import "@realsee/five";
19
19
  import "@tweenjs/tween.js";
@@ -22,16 +22,18 @@ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
22
22
  import "../../shared-utils/animationFrame/BetterTween.js";
23
23
  import { loadTexture as w } from "../../shared-utils/three/loadTexture.js";
24
24
  import "object-assign-deep";
25
+ import { filterAdjacentDistinct as U } from "../utils/index.js";
25
26
  import p from "../../PanoTagPlugin/controller/index.js";
26
27
  import "@realsee/five/gltf-loader";
27
- const U = `
28
+ import x from "../Components/Tag.js";
29
+ const L = `
28
30
  varying vec2 vUv;
29
31
 
30
32
  void main() {
31
33
  vUv = uv;
32
34
  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
33
35
  }
34
- `, x = `
36
+ `, V = `
35
37
  // \u662F\u5426\u4F7F\u7528\u989C\u8272
36
38
  uniform int useMapColor;
37
39
  // \u8D34\u56FE
@@ -89,7 +91,7 @@ const U = `
89
91
  gl_FragColor.a = gl_FragColor.a * linearGradientOpacity();
90
92
  }
91
93
  `;
92
- class L {
94
+ class G {
93
95
  constructor(e, i) {
94
96
  t(this, "startTagPlugin");
95
97
  t(this, "endTagPlugin");
@@ -112,6 +114,7 @@ class L {
112
114
  t(this, "plugin");
113
115
  t(this, "textureHasLoaded", !1);
114
116
  t(this, "disposed", !1);
117
+ t(this, "onTagContainerChange", (e, i) => new x({ target: e, intro: !0, props: i.data }).$destroy);
115
118
  t(this, "onPluginShow", () => {
116
119
  this.updateVisible();
117
120
  });
@@ -131,27 +134,27 @@ class L {
131
134
  this.inWalkAnimation = !1, this.updateVisible();
132
135
  });
133
136
  t(this, "onFiveModeChange", (e) => {
134
- this.modeVisible = this.mode === "panorama" ? y(e) : P(e), this.updateVisible();
137
+ this.modeVisible = this.mode === "panorama" ? k(e) : P(e), this.updateVisible();
135
138
  });
136
139
  t(this, "logWarning", (e) => E("GuideLineModeItem: ", e));
137
140
  t(this, "logError", (e) => F("GuideLineModeItem: ", e));
138
141
  this.five = e, this.mode = i.mode, this.plugin = i.plugin, this.parent = i.parent, this.startTagPlugin = new p(this.five), this.endTagPlugin = new p(this.five);
139
- const s = new a.BufferGeometry(), o = new a.ShaderMaterial({
140
- vertexShader: U,
141
- fragmentShader: x,
142
+ const s = new o.BufferGeometry(), a = new o.ShaderMaterial({
143
+ vertexShader: L,
144
+ fragmentShader: V,
142
145
  transparent: !0,
143
146
  uniforms: {
144
147
  map: { value: null },
145
148
  useMapColor: { value: 0 },
146
- mapColor: { value: new a.Color() },
149
+ mapColor: { value: new o.Color() },
147
150
  mapOpacity: { value: 1 },
148
- backgroundColor: { value: new a.Color() },
151
+ backgroundColor: { value: new o.Color() },
149
152
  backgroundOpacity: { value: 0 },
150
153
  opacity: { value: 1 },
151
154
  maxU: { value: 0 }
152
155
  }
153
156
  });
154
- this.mesh = new a.Mesh(s, o), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), 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.five.on("modeChange", this.onFiveModeChange), this.onFiveModeChange(this.five.getCurrentState().mode);
157
+ this.mesh = new o.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.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.five.on("modeChange", this.onFiveModeChange), this.onFiveModeChange(this.five.getCurrentState().mode);
155
158
  }
156
159
  get panoGroup() {
157
160
  return this._panoGroup;
@@ -184,26 +187,27 @@ class L {
184
187
  return this.logError("disposed");
185
188
  if (!this.five.work)
186
189
  return this.logError("setPathByPanoGroup: work is not ready");
187
- if (this._panoGroup = e, (i == null ? void 0 : i.skipPanoGroup) !== void 0) {
188
- const o = i.skipPanoGroup ? e.map((u) => this.five.work.observers[u]).map((u) => u.standingPosition.clone()) : null;
189
- this.skippedPositions = o;
190
+ const s = U(e);
191
+ if (this._panoGroup = s, (i == null ? void 0 : i.skipPanoGroup) !== void 0) {
192
+ const n = i.skipPanoGroup ? s.map((u) => this.five.work.observers[u]).map((u) => u.standingPosition.clone()) : null;
193
+ this.skippedPositions = n;
190
194
  }
191
- const s = this.getPathFromPanoGroup(e, this.five.work, i);
192
- this.path = s, this.setGeometryByPath(s, i);
195
+ const a = this.getPathFromPanoGroup(s, this.five.work, i);
196
+ this.path = a, this.setGeometryByPath(a, i);
193
197
  }
194
198
  setGeometryByPath(e, i) {
195
199
  var l, d, m;
196
200
  if (this.disposed)
197
201
  return this.logError("disposed");
198
- const s = (l = i == null ? void 0 : i.scale) != null ? l : this.scale, o = (d = i == null ? void 0 : i.width) != null ? d : this.width, u = (m = i == null ? void 0 : i.unit_length) != null ? m : this.unitLength;
199
- this.path = e, this.scale = s, this.width = o, this.unitLength = u;
200
- const { geometry: n, maxU: v } = k({
202
+ const s = (l = i == null ? void 0 : i.scale) != null ? l : this.scale, a = (d = i == null ? void 0 : i.width) != null ? d : this.width, n = (m = i == null ? void 0 : i.unit_length) != null ? m : this.unitLength;
203
+ this.path = e, this.scale = s, this.width = a, this.unitLength = n;
204
+ const { geometry: u, maxU: c } = y({
201
205
  path: e,
202
- width: o * s,
203
- unitLength: u * s,
206
+ width: a * s,
207
+ unitLength: n * s,
204
208
  skipPositions: this.skippedPositions
205
209
  });
206
- this.mesh.geometry = n, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = v, this.five.needsRender = !0;
210
+ this.mesh.geometry = u, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = c, this.five.needsRender = !0;
207
211
  }
208
212
  setMartial(e) {
209
213
  var i;
@@ -214,12 +218,12 @@ class L {
214
218
  setColor(e) {
215
219
  if (this.disposed)
216
220
  return this.logError("disposed");
217
- this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniforms.mapColor.value = new a.Color().setRGB(e[0], e[1], e[2]), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
221
+ this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniforms.mapColor.value = new o.Color().setRGB(e[0], e[1], e[2]), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
218
222
  }
219
223
  setBackgroundColor(e) {
220
224
  if (this.disposed)
221
225
  return this.logError("disposed");
222
- this.mesh.material.uniforms.backgroundColor.value = new a.Color().setRGB(e[0], e[1], e[2]), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
226
+ this.mesh.material.uniforms.backgroundColor.value = new o.Color().setRGB(e[0], e[1], e[2]), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
223
227
  }
224
228
  setOpacity(e) {
225
229
  if (this.disposed)
@@ -240,7 +244,7 @@ class L {
240
244
  if (this.disposed)
241
245
  return this.logError("disposed");
242
246
  this.textureUrl = e, w(e).then((i) => {
243
- this.disposed || this.textureUrl === e && (i.wrapT = a.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());
247
+ this.disposed || this.textureUrl === e && (i.wrapT = o.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());
244
248
  });
245
249
  }
246
250
  setStartTag(e) {
@@ -250,7 +254,8 @@ class L {
250
254
  this.setTag("end", e);
251
255
  }
252
256
  setTag(e, i) {
253
- (e === "start" ? this.startTagPlugin : this.endTagPlugin).load({ tagList: [i] });
257
+ const s = e === "start" ? this.startTagPlugin : this.endTagPlugin;
258
+ T(i) && (i.element = (a) => this.onTagContainerChange(a, i)), s.load({ tagList: [i] });
254
259
  }
255
260
  updateVisible() {
256
261
  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)();
@@ -263,15 +268,20 @@ class L {
263
268
  this.five.scene.remove(this.mesh), this.five.needsRender = !0;
264
269
  }
265
270
  getPathFromPanoGroup(e, i, s) {
266
- const u = e.map((n) => i.observers[n]).map((n) => n.standingPosition.toArray());
267
- return [f({ type: "CatmullRomCurve3", points: u }, s)];
271
+ if (e.length < 2)
272
+ return [];
273
+ const n = e.map((u) => i.observers[u]).map((u) => u.standingPosition.toArray());
274
+ return [f({ type: "CatmullRomCurve3", points: n }, s)];
268
275
  }
269
276
  }
270
- const I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
277
+ function T(r) {
278
+ return r.contentType === "Custom";
279
+ }
280
+ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
271
281
  __proto__: null,
272
- GuideLineModeItem: L
282
+ GuideLineModeItem: G
273
283
  }, Symbol.toStringTag, { value: "Module" }));
274
284
  export {
275
- L as GuideLineModeItem,
276
- I as GuideLineModeItem$1
285
+ G as GuideLineModeItem,
286
+ J as GuideLineModeItem$1
277
287
  };
@@ -48,7 +48,7 @@ declare class GuideLineModeItem {
48
48
  /** 设置缩放 */
49
49
  setScale(scale: number): void;
50
50
  /** 通过点位设置线条形状 */
51
- setGeometryByPanoGroup(panoGroup: number[], options?: CatmullRomCurve3RestParams & PluginType.GuideLineGeometryStyle & {
51
+ setGeometryByPanoGroup(_panoGroup: number[], options?: CatmullRomCurve3RestParams & PluginType.GuideLineGeometryStyle & {
52
52
  skipPanoGroup?: boolean;
53
53
  }): void;
54
54
  /** 通过路径设置线条形状 */
@@ -70,6 +70,7 @@ declare class GuideLineModeItem {
70
70
  setStartTag(tag: Tag): void;
71
71
  setEndTag(tag: Tag): void;
72
72
  private setTag;
73
+ private onTagContainerChange;
73
74
  /** 当设置 GuideLinePLugin 展示 */
74
75
  private onPluginShow;
75
76
  /** 当设置 GuideLinePLugin 隐藏 */
@@ -10,9 +10,11 @@ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
10
10
  import "../shared-utils/animationFrame/BetterTween.js";
11
11
  import "../shared-utils/three/loadTexture.js";
12
12
  import "object-assign-deep";
13
- import { GuideLineModeItem as li } from "./GuideLineModeItem/index.js";
13
+ import { GuideLineModeItem as si } from "./GuideLineModeItem/index.js";
14
+ import "./utils/index.js";
14
15
  import "../PanoTagPlugin/controller/index.js";
15
16
  import "@realsee/five/gltf-loader";
17
+ import "./Components/Tag.js";
16
18
  import "polyline-normals";
17
19
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
18
20
  import "three/examples/jsm/renderers/CSS3DRenderer";
@@ -27,6 +29,17 @@ import "../shared-utils/three/centerPoint.js";
27
29
  import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
28
30
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
29
31
  import "../shared-utils/animationFrame/index.js";
32
+ import "../vendor/svelte/internal/index.js";
33
+ import "../PanoTagPlugin/utils/device.js";
34
+ import "../shared-utils/threex/domevents/index.js";
35
+ import "animejs";
36
+ import "../PanoTagPlugin/utils/constants.js";
37
+ import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
38
+ import "lodash.get";
39
+ import "lodash.clonedeep";
40
+ import "lodash.isequal";
41
+ import "classnames";
42
+ import "../shared-utils/three/GLTFLoader.js";
30
43
  import "../PanoTagPlugin/utils/addDebugPoints.js";
31
44
  import "../PanoTagPlugin/utils/tag/tagCheck.js";
32
45
  import "../PanoTagPlugin/utils/actionAfterFiveModelLoad.js";
@@ -48,9 +61,6 @@ import "../PanoTagPlugin/controller/TagCache.js";
48
61
  import "../base/BasePlugin.js";
49
62
  import "../shared-utils/isAbsoluteURL.js";
50
63
  import "../vendor/svelte/store/index.js";
51
- import "../vendor/svelte/internal/index.js";
52
- import "../PanoTagPlugin/utils/device.js";
53
- import "../shared-utils/threex/domevents/index.js";
54
64
  import "../PanoTagPlugin/Components/TagContainer.js";
55
65
  import "../PanoTagPlugin/Components/TagItem.js";
56
66
  import "../PanoTagPlugin/Components/Tag/index.js";
@@ -63,14 +73,11 @@ import "../shared-utils/uuid.js";
63
73
  import "../PanoTagPlugin/Components/Common/Shadow.js";
64
74
  import "../PanoTagPlugin/Components/Common/Text/FlyMText.js";
65
75
  import "../PanoTagPlugin/Components/Common/Text/FlyText.js";
66
- import "animejs";
67
76
  import "../PanoTagPlugin/utils/search.js";
68
- import "../PanoTagPlugin/utils/constants.js";
69
77
  import "../PanoTagPlugin/Components/Common/Arrow.js";
70
78
  import "../PanoTagPlugin/Assets/Icon.js";
71
79
  import "../PanoTagPlugin/utils/doUtil.js";
72
80
  import "../shared-utils/svelte/resizeObserver.js";
73
- import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
74
81
  import "../PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js";
75
82
  import "../PanoTagPlugin/Components/Common/Text/MText.js";
76
83
  import "../PanoTagPlugin/utils/px2rem.js";
@@ -97,11 +104,8 @@ import "../vendor/svelte-carousel/src/utils/clones.js";
97
104
  import "../vendor/svelte-carousel/src/utils/object.js";
98
105
  import "../vendor/svelte-carousel/src/components/Carousel/createCarousel.js";
99
106
  import "../vendor/simply-reactive/src/simply-reactive.js";
100
- import "lodash.get";
101
- import "lodash.clonedeep";
102
107
  import "../vendor/simply-reactive/src/utils/subscription.js";
103
108
  import "../vendor/simply-reactive/src/utils/object.js";
104
- import "lodash.isequal";
105
109
  import "../vendor/simply-reactive/src/utils/watcher.js";
106
110
  import "../vendor/svelte-carousel/src/utils/lazy.js";
107
111
  import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
@@ -120,13 +124,11 @@ import "../PanoTagPlugin/Components/Tag/LinkTag.js";
120
124
  import "../PanoTagPlugin/Components/Common/Icon/Icon.js";
121
125
  import "../PanoTagPlugin/utils/getImageInfo.js";
122
126
  import "../PanoTagPlugin/Components/Tag/CustomTag.js";
123
- import "classnames";
124
127
  import "../PanoTagPlugin/Components/Common/TagPoint.js";
125
128
  import "../PanoTagPlugin/utils/model/imagePlane.js";
126
129
  import "../CSS3DRenderPlugin/index.js";
127
130
  import "../CSS3DRenderPlugin/Controller.js";
128
131
  import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
129
- import "../shared-utils/three/GLTFLoader.js";
130
132
  export {
131
- li as GuideLineModeItem
133
+ si as GuideLineModeItem
132
134
  };
@@ -1,6 +1,6 @@
1
1
  import t from "./Controller.js";
2
- import { GuideLineItem$1 as Qo } from "./GuideLineItem/index.js";
3
- import { GuideLineModeItem$1 as So } from "./GuideLineModeItem/index.js";
2
+ import { GuideLineItem$1 as So } from "./GuideLineItem/index.js";
3
+ import { GuideLineModeItem$1 as Uo } from "./GuideLineModeItem/index.js";
4
4
  import "../base/BasePluginWithData.js";
5
5
  import "../base/BasePlugin.js";
6
6
  import "../shared-utils/Subscribe.js";
@@ -54,6 +54,7 @@ import "../CruisePlugin/utils/sleep.js";
54
54
  import "../shared-utils/log.js";
55
55
  import "./utils/createLineGeometry.js";
56
56
  import "../shared-utils/five/mode.js";
57
+ import "./utils/index.js";
57
58
  import "../PanoTagPlugin/controller/index.js";
58
59
  import "../PanoTagPlugin/utils/addDebugPoints.js";
59
60
  import "../PanoTagPlugin/utils/tag/tagCheck.js";
@@ -141,13 +142,14 @@ import "../PanoTagPlugin/utils/model/imagePlane.js";
141
142
  import "../CSS3DRenderPlugin/index.js";
142
143
  import "../CSS3DRenderPlugin/Controller.js";
143
144
  import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
145
+ import "./Components/Tag.js";
144
146
  import "../shared-utils/to.js";
145
147
  import "../shared-utils/five/changeMode.js";
146
148
  import "../shared-utils/nearlyEqual.js";
147
- const Ko = (i, o) => new t(i, o);
149
+ const Oo = (i, o) => new t(i, o);
148
150
  export {
149
- Qo as GuideLineItem,
150
- So as GuideLineModeItem,
151
- Ko as GuideLinePlugin,
152
- Ko as default
151
+ So as GuideLineItem,
152
+ Uo as GuideLineModeItem,
153
+ Oo as GuideLinePlugin,
154
+ Oo as default
153
155
  };
@@ -124,7 +124,6 @@ export interface ModelGuideLineTag extends Tag<'Custom', '2DPoint'> {
124
124
  data: {
125
125
  text: string;
126
126
  icon_url: string;
127
- text_background_url: string;
128
127
  };
129
128
  }
130
129
  /** 目前只支持 CatmullRomCurve3 */
@@ -1,23 +1,26 @@
1
1
  import * as n from "three";
2
- import { Vector3 as y } from "three";
3
- import z from "polyline-normals";
4
- const G = 2, M = 3, X = 3, k = 2;
2
+ import { Vector3 as P } from "three";
3
+ import G from "polyline-normals";
4
+ const z = 2, M = 3, X = 3, k = 2;
5
5
  function Y(e) {
6
- const i = e.width, g = e.unitLength / i, c = i / 2, P = e.path, f = new n.CurvePath();
7
- P.forEach((t) => {
6
+ const i = e.width, E = e.unitLength / i, c = i / 2, p = e.path;
7
+ if (p.length === 0)
8
+ return { geometry: new n.BufferGeometry(), maxU: 0 };
9
+ const h = new n.CurvePath();
10
+ p.forEach((t) => {
8
11
  const a = I(t);
9
- a && f.add(a);
12
+ a && h.add(a);
10
13
  });
11
- const x = Math.ceil(f.getLength() * 100), o = f.getPoints(x), p = o.length, L = z(o.map((t) => [t.x, t.z])), C = (p - 1) * G * M, d = 2 * p, B = d * X, T = d * k, r = new Uint32Array(C), s = new Float32Array(B), u = new Float32Array(T);
12
- let w = 0, N = 0;
14
+ 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, d = 2 * w, C = d * X, U = d * k, r = new Uint32Array(B), s = new Float32Array(C), u = new Float32Array(U);
15
+ let y = 0, N = 0;
13
16
  for (let t = 0; t < o.length; t++) {
14
- const [a, R] = L[t][0], U = o[t], { x: A, y: _, z: b } = U, m = new y(A + a * c, _ + 0.05, b + R * c);
17
+ const [a, R] = L[t][0], T = o[t], { x: A, y: _, z: b } = T, m = new P(A + a * c, _ + 0.05, b + R * c);
15
18
  s[t * 6 + 0] = m.x, s[t * 6 + 1] = m.y, s[t * 6 + 2] = m.z;
16
- const v = new y(A - a * c, _ + 0.05, b - R * c);
17
- s[t * 6 + 3] = v.x, s[t * 6 + 4] = v.y, s[t * 6 + 5] = v.z, w += t > 0 ? o[t - 1].clone().sub(o[t]).length() : 0;
18
- const h = w / i / g;
19
- if (N = h, u[t * 4 + 0] = 0, u[t * 4 + 1] = h, u[t * 4 + 2] = 1, u[t * 4 + 3] = h, e.skipPositions) {
20
- const V = new n.Vector3().lerpVectors(m, v, 0.5);
19
+ const f = new P(A - a * c, _ + 0.05, b - R * c);
20
+ s[t * 6 + 3] = f.x, s[t * 6 + 4] = f.y, s[t * 6 + 5] = f.z, y += t > 0 ? o[t - 1].clone().sub(o[t]).length() : 0;
21
+ const v = y / i / E;
22
+ if (N = v, u[t * 4 + 0] = 0, u[t * 4 + 1] = v, u[t * 4 + 2] = 1, u[t * 4 + 3] = v, e.skipPositions) {
23
+ const V = new n.Vector3().lerpVectors(m, f, 0.5);
21
24
  if (e.skipPositions.some((F) => F.distanceTo(V) < 0.26))
22
25
  continue;
23
26
  }
@@ -28,8 +31,8 @@ function Y(e) {
28
31
  }
29
32
  function I(e) {
30
33
  if (O(e)) {
31
- const i = [e.closed, e.curve_type, e.tension], E = e.points.map((c) => new n.Vector3().fromArray(c));
32
- return new n.CatmullRomCurve3(E, ...i);
34
+ const i = [e.closed, e.curve_type, e.tension], g = e.points.map((c) => new n.Vector3().fromArray(c));
35
+ return new n.CatmullRomCurve3(g, ...i);
33
36
  }
34
37
  }
35
38
  function O(e) {
@@ -5,3 +5,9 @@ export declare function updateGuideLineModeItemByData(options: {
5
5
  data: PluginType.GuideLineItem;
6
6
  mode: PluginType.GuideLineModeItemMode;
7
7
  }): void;
8
+ /**
9
+ * 筛选出给定数组中,相邻元素不能重复的元素组成的新数组
10
+ * @param array 要筛选的数组
11
+ * @returns 筛选后的新数组
12
+ */
13
+ export declare function filterAdjacentDistinct<T>(array: T[]): T[];
@@ -34,12 +34,16 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
34
34
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
35
35
  import "../../shared-utils/animationFrame/index.js";
36
36
  function O(o) {
37
- const t = o.data, m = o.item, r = o.mode === "panorama" ? t.panorama_style : t.model_style;
38
- if (!r)
37
+ const t = o.data, r = o.item, i = o.mode === "panorama" ? t.panorama_style : t.model_style;
38
+ if (!i)
39
39
  return;
40
- const i = t.path, p = r, e = r;
41
- t.path ? m.setGeometryByPath(i, p) : t.pano_group && m.setGeometryByPanoGroup(t.pano_group, p), m.setMartial(e);
40
+ const p = t.path, m = i, e = i;
41
+ t.path ? r.setGeometryByPath(p, m) : t.pano_group && r.setGeometryByPanoGroup(t.pano_group, m), r.setMartial(e);
42
+ }
43
+ function Q(o) {
44
+ return o.length === 0 ? [] : o.filter((t, r) => t !== o[r - 1]);
42
45
  }
43
46
  export {
47
+ Q as filterAdjacentDistinct,
44
48
  O as updateGuideLineModeItemByData
45
49
  };