@realsee/dnalogel 3.2.0-dev.8 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (385) hide show
  1. package/dist/GuideLinePlugin/GuideLineItem.d.ts +0 -1
  2. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +10 -1
  3. package/dist/GuideLinePlugin/typing.d.ts +6 -1
  4. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +4 -8
  5. package/dist/PanoTagPlugin/controller/index.d.ts +1 -1
  6. package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +0 -1
  7. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
  8. package/dist/PanoTagPlugin/utils/tagPosition.d.ts +3 -2
  9. package/dist/index.cjs.js +54 -54
  10. package/dist/index.js +3071 -3056
  11. package/dist/index.umd.js +51 -51
  12. package/dist/shared-utils/five/getFloorIndex.d.ts +8 -2
  13. package/libs/CruisePlugin/Controller.js +34 -35
  14. package/libs/CruisePlugin/index.js +5 -6
  15. package/libs/GuideLinePlugin/Controller.js +40 -41
  16. package/libs/GuideLinePlugin/GuideLineItem/index.js +33 -36
  17. package/libs/GuideLinePlugin/GuideLineItem.d.ts +0 -1
  18. package/libs/GuideLinePlugin/GuideLineItem.js +2 -3
  19. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +124 -86
  20. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +10 -1
  21. package/libs/GuideLinePlugin/GuideLineModeItem.js +2 -3
  22. package/libs/GuideLinePlugin/index.js +7 -8
  23. package/libs/GuideLinePlugin/typing.d.ts +6 -1
  24. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +26 -26
  25. package/libs/PanoTagPlugin/controller/TagComputer.js +95 -89
  26. package/libs/PanoTagPlugin/controller/TagRender.js +81 -81
  27. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +4 -8
  28. package/libs/PanoTagPlugin/controller/TagUtil.js +107 -123
  29. package/libs/PanoTagPlugin/controller/index.d.ts +1 -1
  30. package/libs/PanoTagPlugin/controller/index.js +36 -41
  31. package/libs/PanoTagPlugin/index.js +11 -12
  32. package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +0 -1
  33. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
  34. package/libs/PanoTagPlugin/utils/tagPosition.d.ts +3 -2
  35. package/libs/PanoTagPlugin/utils/tagPosition.js +15 -15
  36. package/libs/base/BasePlugin.js +1 -1
  37. package/libs/index.js +116 -117
  38. package/libs/shared-utils/five/getFloorIndex.d.ts +8 -2
  39. package/libs/shared-utils/five/getFloorIndex.js +12 -16
  40. package/libs/shared-utils/logger.js +1 -1
  41. package/package.json +1 -1
  42. package/dist/shared-utils/five/transformPosition.d.ts +0 -2
  43. package/docs/.nojekyll +0 -1
  44. package/docs/assets/highlight.css +0 -120
  45. package/docs/assets/main.js +0 -58
  46. package/docs/assets/search.js +0 -1
  47. package/docs/assets/style.css +0 -1367
  48. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -725
  49. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -678
  50. package/docs/classes/CSS3DRender.html +0 -773
  51. package/docs/classes/CruisePluginController.html +0 -672
  52. package/docs/classes/GuideLineItem.GuideLineItem.html +0 -491
  53. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -792
  54. package/docs/classes/Magnifier.html +0 -480
  55. package/docs/classes/ModelRoomLabelController.html +0 -398
  56. package/docs/classes/Object3DHelperController.html +0 -640
  57. package/docs/classes/PaintBrush.html +0 -502
  58. package/docs/classes/PanoMeasurePluginLine.html +0 -522
  59. package/docs/classes/PanoMeasurePluginModel.html +0 -571
  60. package/docs/classes/PanoMeasurePluginPoint.html +0 -362
  61. package/docs/classes/PanoMeasurePluginPolyline.html +0 -567
  62. package/docs/classes/PanoTagPluginController.html +0 -1077
  63. package/docs/classes/Util.BetterTween.html +0 -416
  64. package/docs/classes/Util.Interval.html +0 -432
  65. package/docs/classes/Util.LineSegments.html +0 -384
  66. package/docs/classes/Util.Magnifier.html +0 -503
  67. package/docs/classes/Util.Object3D.html +0 -406
  68. package/docs/classes/Util.PointDomHelper.html +0 -407
  69. package/docs/classes/Util.PointHelper.html +0 -398
  70. package/docs/classes/Util.PointSelectorHelper.html +0 -454
  71. package/docs/classes/Util.Rectangle.html +0 -455
  72. package/docs/enums/CameraMovementEffect.html +0 -310
  73. package/docs/enums/ContentType.html +0 -446
  74. package/docs/enums/DIRECTION.html +0 -320
  75. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -320
  76. package/docs/enums/DimensionType.html +0 -310
  77. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -313
  78. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -320
  79. package/docs/enums/PaintBrushTypeEnum.html +0 -313
  80. package/docs/enums/PointType.html +0 -310
  81. package/docs/enums/Rotation.html +0 -317
  82. package/docs/functions/AreaMakerPlugin.html +0 -290
  83. package/docs/functions/CSS3DRenderPlugin.html +0 -288
  84. package/docs/functions/CameraMovementPlugin.html +0 -293
  85. package/docs/functions/CruisePlugin.html +0 -290
  86. package/docs/functions/CurrentPanoImagePlugin.html +0 -290
  87. package/docs/functions/GuideLinePlugin.html +0 -290
  88. package/docs/functions/ItemLabelPlugin.html +0 -290
  89. package/docs/functions/MapviewFloorplanPlugin.html +0 -290
  90. package/docs/functions/ModelChassisCompassPlugin.html +0 -293
  91. package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -293
  92. package/docs/functions/ModelFloorplanPlugin.html +0 -290
  93. package/docs/functions/ModelItemLabelPlugin.html +0 -290
  94. package/docs/functions/ModelRoomLabelPlugin.html +0 -288
  95. package/docs/functions/ModelTVVideoPlugin.html +0 -290
  96. package/docs/functions/ModelViewPlugin.html +0 -293
  97. package/docs/functions/Object3DHelperPlugin.html +0 -288
  98. package/docs/functions/PanoCompassPlugin.html +0 -290
  99. package/docs/functions/PanoCursorRaycasterPlugin.html +0 -294
  100. package/docs/functions/PanoDoorLabelPlugin.html +0 -290
  101. package/docs/functions/PanoFloorplanRadarPlugin.html +0 -290
  102. package/docs/functions/PanoMeasurePlugin.html +0 -290
  103. package/docs/functions/PanoRulerPlugin.html +0 -293
  104. package/docs/functions/PanoRulerProPlugin.html +0 -293
  105. package/docs/functions/PanoSpatialTagPlugin.html +0 -293
  106. package/docs/functions/PanoTagPlugin.html +0 -295
  107. package/docs/functions/PanoVideoPlugin.html +0 -299
  108. package/docs/functions/PipelinePlugin.html +0 -288
  109. package/docs/functions/TopviewFloorplanPlugin.html +0 -290
  110. package/docs/functions/Util.absoluteUrl.html +0 -326
  111. package/docs/functions/Util.checkFiveModelLoaded.html +0 -329
  112. package/docs/functions/Util.equal.html +0 -338
  113. package/docs/functions/Util.getCoordsFromClient.html +0 -328
  114. package/docs/functions/Util.getCoordsFromElement.html +0 -328
  115. package/docs/functions/Util.getFrameTime.html +0 -320
  116. package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -328
  117. package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -328
  118. package/docs/functions/Util.isAbsoluteURL.html +0 -321
  119. package/docs/functions/Util.isModelLike.html +0 -321
  120. package/docs/functions/Util.isNil.html +0 -329
  121. package/docs/functions/Util.isPanoramaLike.html +0 -321
  122. package/docs/functions/Util.nextFrame.html +0 -334
  123. package/docs/functions/Util.notNil.html +0 -329
  124. package/docs/functions/Util.requestAnimationFrameInterval.html +0 -350
  125. package/docs/functions/Util.tweenProgress.html +0 -323
  126. package/docs/functions/Util.uuid.html +0 -319
  127. package/docs/functions/pluginFlag.html +0 -288
  128. package/docs/index.html +0 -354
  129. package/docs/interfaces/AddTagConfig.html +0 -303
  130. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -329
  131. package/docs/interfaces/AreaMakerPluginType.Config.html +0 -334
  132. package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -620
  133. package/docs/interfaces/AreaMakerPluginType.Params.html +0 -333
  134. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -383
  135. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -368
  136. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -333
  137. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -326
  138. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -325
  139. package/docs/interfaces/AreaMakerPluginType.State.html +0 -354
  140. package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -449
  141. package/docs/interfaces/CSS3DRenderPluginState.html +0 -325
  142. package/docs/interfaces/CameraMovementPluginExportType.html +0 -358
  143. package/docs/interfaces/CruisePluginTypes.Config.html +0 -359
  144. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -361
  145. package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -696
  146. package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -385
  147. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -421
  148. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -411
  149. package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -351
  150. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -319
  151. package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -408
  152. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -382
  153. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -521
  154. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -323
  155. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -315
  156. package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -337
  157. package/docs/interfaces/EventMap.html +0 -542
  158. package/docs/interfaces/FloorplanBounding.html +0 -332
  159. package/docs/interfaces/FloorplanData.html +0 -335
  160. package/docs/interfaces/FloorplanEntrance.html +0 -360
  161. package/docs/interfaces/FloorplanExtraObject.html +0 -350
  162. package/docs/interfaces/FloorplanExtraObject3D.html +0 -339
  163. package/docs/interfaces/FloorplanFloorData.html +0 -328
  164. package/docs/interfaces/FloorplanImagePosition.html +0 -314
  165. package/docs/interfaces/FloorplanObserver.html +0 -332
  166. package/docs/interfaces/FloorplanOutlineItem.html +0 -328
  167. package/docs/interfaces/FloorplanPosition.html +0 -314
  168. package/docs/interfaces/FloorplanRoomItem.html +0 -379
  169. package/docs/interfaces/FloorplanRoomLabelItem.html +0 -320
  170. package/docs/interfaces/FloorplanServerBounding.html +0 -332
  171. package/docs/interfaces/FloorplanServerComputedData.html +0 -331
  172. package/docs/interfaces/FloorplanServerData.html +0 -314
  173. package/docs/interfaces/FloorplanServerDoorItem.html +0 -331
  174. package/docs/interfaces/FloorplanServerDoorPosition.html +0 -317
  175. package/docs/interfaces/FloorplanServerEntrance.html +0 -360
  176. package/docs/interfaces/FloorplanServerFloorData.html +0 -328
  177. package/docs/interfaces/FloorplanServerImagePosition.html +0 -314
  178. package/docs/interfaces/FloorplanServerObserver.html +0 -332
  179. package/docs/interfaces/FloorplanServerOutlineItem.html +0 -328
  180. package/docs/interfaces/FloorplanServerPosition.html +0 -314
  181. package/docs/interfaces/FloorplanServerRoomItem.html +0 -391
  182. package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -320
  183. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -323
  184. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -361
  185. package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -525
  186. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -356
  187. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -347
  188. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -414
  189. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -346
  190. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -471
  191. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -343
  192. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -471
  193. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -308
  194. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -329
  195. package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -354
  196. package/docs/interfaces/GuideLinePluginType.Route.html +0 -370
  197. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -352
  198. package/docs/interfaces/HelperOffset.html +0 -332
  199. package/docs/interfaces/ImagePlaneGroup.html +0 -306
  200. package/docs/interfaces/ItemLabelPluginData.html +0 -303
  201. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -388
  202. package/docs/interfaces/ItemLabelPluginParametersType.html +0 -324
  203. package/docs/interfaces/MinMax.html +0 -310
  204. package/docs/interfaces/ModelChassisCompassPluginData.html +0 -310
  205. package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -346
  206. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -310
  207. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -317
  208. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -354
  209. package/docs/interfaces/ModelItemLabelPluginData.html +0 -303
  210. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -388
  211. package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -310
  212. package/docs/interfaces/ModelRoomLabelPluginData.html +0 -303
  213. package/docs/interfaces/ModelTVVideoPluginData.html +0 -324
  214. package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -348
  215. package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -303
  216. package/docs/interfaces/ModelViewPluginExportType.html +0 -416
  217. package/docs/interfaces/Object3DHelperState.html +0 -317
  218. package/docs/interfaces/ObjectHelperControllers.html +0 -324
  219. package/docs/interfaces/PaintBrushAction.html +0 -363
  220. package/docs/interfaces/PaintBrushConfigs.html +0 -361
  221. package/docs/interfaces/PaintBrushState.html +0 -345
  222. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -425
  223. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -282
  224. package/docs/interfaces/PanoMeasureParameterType.html +0 -449
  225. package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -317
  226. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -314
  227. package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -310
  228. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -320
  229. package/docs/interfaces/PanoRulerPluginExportType.html +0 -377
  230. package/docs/interfaces/PanoRulerPluginOptions.html +0 -326
  231. package/docs/interfaces/PanoRulerPluginParameterType.html +0 -317
  232. package/docs/interfaces/PanoRulerProPluginExportType.html +0 -353
  233. package/docs/interfaces/PanoRulerProPluginOptions.html +0 -323
  234. package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -310
  235. package/docs/interfaces/PanoRulerProPluginState.html +0 -317
  236. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -296
  237. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -285
  238. package/docs/interfaces/PanoSpatialTagPluginData.html +0 -353
  239. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -335
  240. package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -431
  241. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -331
  242. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -352
  243. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -338
  244. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -331
  245. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -323
  246. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -341
  247. package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -314
  248. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -420
  249. package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -314
  250. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -349
  251. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -368
  252. package/docs/interfaces/Point.html +0 -317
  253. package/docs/interfaces/Room.html +0 -324
  254. package/docs/interfaces/RoomInfo.html +0 -310
  255. package/docs/interfaces/RoomLabel.html +0 -386
  256. package/docs/interfaces/RoomRules.html +0 -285
  257. package/docs/interfaces/Rooms.html +0 -285
  258. package/docs/interfaces/Scissor.html +0 -344
  259. package/docs/interfaces/State.html +0 -331
  260. package/docs/interfaces/TagCacheInterface.html +0 -362
  261. package/docs/interfaces/TagConfig.html +0 -565
  262. package/docs/interfaces/TagGLTFObjectGroup.html +0 -306
  263. package/docs/interfaces/TagIconUrl.html +0 -363
  264. package/docs/interfaces/TagObjectGroup.html +0 -306
  265. package/docs/interfaces/TagStyle.html +0 -316
  266. package/docs/interfaces/Tags.html +0 -2688
  267. package/docs/interfaces/TemporaryState.html +0 -303
  268. package/docs/interfaces/Util.MagnifierParameter.html +0 -391
  269. package/docs/interfaces/Util.MouseGroupParameter.html +0 -350
  270. package/docs/interfaces/Util.PointIntersection.html +0 -365
  271. package/docs/modules/AreaMakerPluginType.html +0 -323
  272. package/docs/modules/CruisePluginTypes.html +0 -328
  273. package/docs/modules/CurrentPanoImagePluginType.html +0 -297
  274. package/docs/modules/GuideLineItem.html +0 -289
  275. package/docs/modules/GuideLineModeItem.html +0 -294
  276. package/docs/modules/GuideLinePluginType.html +0 -348
  277. package/docs/modules/PanoVideoPluginType.html +0 -301
  278. package/docs/modules/Util.html +0 -351
  279. package/docs/modules.html +0 -540
  280. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -331
  281. package/docs/types/AreaMakerPluginType.PluginData.html +0 -301
  282. package/docs/types/AreaMakerPluginType.ServerData.html +0 -301
  283. package/docs/types/ArrayPosition.html +0 -279
  284. package/docs/types/AudioAppearance.html +0 -279
  285. package/docs/types/AudioTagTypeConfigKey.html +0 -279
  286. package/docs/types/CSS3DRenderExportType.html +0 -279
  287. package/docs/types/CSS3DRenderPluginExportType.html +0 -279
  288. package/docs/types/CSS3DRenderPluginParameterType.html +0 -279
  289. package/docs/types/ClassFunctionParameters.html +0 -286
  290. package/docs/types/Color.html +0 -279
  291. package/docs/types/ContentTypeConfigKey.html +0 -279
  292. package/docs/types/ContentTypeConfigKeySplit.html +0 -279
  293. package/docs/types/ContentTypeMap.html +0 -279
  294. package/docs/types/Create3DDomContainerReturnType.html +0 -279
  295. package/docs/types/Create3DElementReturnType.html +0 -279
  296. package/docs/types/CruisePluginExportType.html +0 -279
  297. package/docs/types/CruisePluginTypes.CruiseData.html +0 -318
  298. package/docs/types/CruisePluginTypes.MoveEffect.html +0 -295
  299. package/docs/types/CurrentPanoImagePluginExportType.html +0 -279
  300. package/docs/types/DeprecatedMediaPlaneProperty.html +0 -291
  301. package/docs/types/DeprecatedTagProperty.html +0 -294
  302. package/docs/types/Direction-1.html +0 -279
  303. package/docs/types/Direction4.html +0 -279
  304. package/docs/types/ElementRenderer.html +0 -303
  305. package/docs/types/FloorplanRuleLabels.html +0 -282
  306. package/docs/types/FloorplanServerRuleLabels.html +0 -279
  307. package/docs/types/GuideLinePluginExportType.html +0 -279
  308. package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -351
  309. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -372
  310. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -305
  311. package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -308
  312. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -308
  313. package/docs/types/GuideLinePluginType.PathItem.html +0 -308
  314. package/docs/types/GuideLinePluginType.PluginData.html +0 -317
  315. package/docs/types/HelperEventMap.html +0 -517
  316. package/docs/types/LoadTagConfig.html +0 -279
  317. package/docs/types/MapviewFloorplanPluginParameterType.html +0 -279
  318. package/docs/types/MapviewFloorplanPluginReturnType.html +0 -279
  319. package/docs/types/MediaData.html +0 -295
  320. package/docs/types/MediaStore.html +0 -284
  321. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -286
  322. package/docs/types/ModelFloorplanPluginParameterType.html +0 -279
  323. package/docs/types/ModelFloorplanPluginReturnType.html +0 -279
  324. package/docs/types/ModelId.html +0 -279
  325. package/docs/types/ModelRoomLabelPluginParameters.html +0 -279
  326. package/docs/types/ModelRoomLabelPluginReturnType.html +0 -279
  327. package/docs/types/MoveArgs.html +0 -289
  328. package/docs/types/MoveOpts.html +0 -287
  329. package/docs/types/Object3DHelperEventMap.html +0 -372
  330. package/docs/types/ObjectFit.html +0 -279
  331. package/docs/types/PaintBrushEventMap.html +0 -310
  332. package/docs/types/PanoCompassPluginData.html +0 -279
  333. package/docs/types/PanoCompassPluginExportType.html +0 -279
  334. package/docs/types/PanoCompassPluginParameterType.html +0 -279
  335. package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -279
  336. package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -279
  337. package/docs/types/PanoIndex.html +0 -279
  338. package/docs/types/PanoMeasurePluginEvent.html +0 -279
  339. package/docs/types/PanoMeasureReturnType.html +0 -279
  340. package/docs/types/PanoSpatialTagPluginId.html +0 -279
  341. package/docs/types/PanoTagPluginExportInterface.html +0 -279
  342. package/docs/types/PanoTagPluginParamsInterface.html +0 -279
  343. package/docs/types/PanoVideoPluginParameterType.html +0 -279
  344. package/docs/types/PanoVideoPluginReturnType.html +0 -279
  345. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -287
  346. package/docs/types/PipelinePluginParameterType.html +0 -279
  347. package/docs/types/PipelinePluginReturnType.html +0 -279
  348. package/docs/types/PlaneTag.html +0 -287
  349. package/docs/types/Point2DTag.html +0 -287
  350. package/docs/types/Point3DTag.html +0 -287
  351. package/docs/types/PointTag.html +0 -284
  352. package/docs/types/PointTagInstance.html +0 -284
  353. package/docs/types/Position.html +0 -279
  354. package/docs/types/RotateArgs.html +0 -291
  355. package/docs/types/RotateOpts.html +0 -287
  356. package/docs/types/RuleLabelsKey.html +0 -279
  357. package/docs/types/RuleLabelsValue.html +0 -279
  358. package/docs/types/StickType.html +0 -279
  359. package/docs/types/Tag.html +0 -345
  360. package/docs/types/Tag2D.html +0 -287
  361. package/docs/types/Tag3D.html +0 -287
  362. package/docs/types/TagConfigByKey.html +0 -284
  363. package/docs/types/TagContentType.html +0 -279
  364. package/docs/types/TagDimensionType.html +0 -281
  365. package/docs/types/TagElement.html +0 -289
  366. package/docs/types/TagEvents.html +0 -332
  367. package/docs/types/TagGLTFObject.html +0 -302
  368. package/docs/types/TagHooks.html +0 -279
  369. package/docs/types/TagId.html +0 -279
  370. package/docs/types/TagInstance.html +0 -355
  371. package/docs/types/TagPointType.html +0 -282
  372. package/docs/types/TagRendererMap.html +0 -284
  373. package/docs/types/TopviewFloorplanPluginParameterType.html +0 -279
  374. package/docs/types/TopviewFloorplanPluginReturnType.html +0 -279
  375. package/docs/types/WorkCode.html +0 -279
  376. package/docs/variables/FLOOR_TYPE_MAP.html +0 -289
  377. package/docs/variables/PLUGIN.html +0 -279
  378. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -282
  379. package/docs/variables/ROOM_TYPE_MAP.html +0 -289
  380. package/docs/variables/defaultGlobalConfig.html +0 -279
  381. package/docs/variables/itemLabelPluginServerParams.html +0 -286
  382. package/docs/variables/modelItemLabelPluginServerParams.html +0 -286
  383. package/docs/variables/modelRoomLabelPluginServerParams.html +0 -286
  384. package/libs/shared-utils/five/transformPosition.d.ts +0 -2
  385. package/libs/shared-utils/five/transformPosition.js +0 -10
@@ -1,32 +1,32 @@
1
- var k = Object.defineProperty, w = Object.defineProperties;
2
- var P = Object.getOwnPropertyDescriptors;
3
- var C = Object.getOwnPropertySymbols;
1
+ var P = Object.defineProperty, V = Object.defineProperties;
2
+ var T = Object.getOwnPropertyDescriptors;
3
+ var k = Object.getOwnPropertySymbols;
4
4
  var F = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
5
- var v = (n, e, t) => e in n ? k(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, p = (n, e) => {
5
+ var b = (h, e, t) => e in h ? P(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t, u = (h, e) => {
6
6
  for (var t in e || (e = {}))
7
- F.call(e, t) && v(n, t, e[t]);
8
- if (C)
9
- for (var t of C(e))
10
- L.call(e, t) && v(n, t, e[t]);
11
- return n;
12
- }, c = (n, e) => w(n, P(e));
13
- var i = (n, e, t) => (v(n, typeof e != "symbol" ? e + "" : e, t), t);
14
- import * as l from "three";
15
- import { logWarning as T, logError as V } from "../../shared-utils/log.js";
7
+ F.call(e, t) && b(h, t, e[t]);
8
+ if (k)
9
+ for (var t of k(e))
10
+ L.call(e, t) && b(h, t, e[t]);
11
+ return h;
12
+ }, p = (h, e) => V(h, T(e));
13
+ var i = (h, e, t) => (b(h, typeof e != "symbol" ? e + "" : e, t), t);
14
+ import * as n from "three";
15
+ import { logWarning as x, logError as S } from "../../shared-utils/log.js";
16
16
  import { createLineGeometry as U } from "../utils/createLineGeometry.js";
17
- import { isPanoramaLike as x, isModelLike as _ } from "../../shared-utils/five/mode.js";
17
+ import { isPanoramaLike as _, isModelLike as M } from "../../shared-utils/five/mode.js";
18
18
  import "hammerjs";
19
19
  import "@realsee/five";
20
20
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
21
21
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
22
22
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
23
- import { BetterTween as M, tweenProgress as G } 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";
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 = (
23
+ import { BetterTween as O, tweenProgress as G } from "../../shared-utils/animationFrame/BetterTween.js";
24
+ import { loadTexture as A } from "../../shared-utils/three/loadTexture.js";
25
+ import w from "../../PanoTagPlugin/controller/index.js";
26
+ import E from "../Components/Tag.js";
27
+ import { filterAdjacentDistinct as B } from "../utils/index.js";
28
+ import { objectAssignDeepExports as I } from "../../vendor/object-assign-deep/objectAssignDeep.js";
29
+ const R = (
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
+ ), W = (
40
40
  /* glsl */
41
41
  `
42
42
  // 是否使用颜色
@@ -120,15 +120,18 @@ const B = (
120
120
  }
121
121
  `
122
122
  );
123
- class R {
123
+ class N {
124
124
  constructor(e, t) {
125
125
  i(this, "name", "");
126
126
  i(this, "startTagContainer");
127
127
  i(this, "endTagContainer");
128
+ i(this, "path", []);
129
+ i(this, "geometryStyle", {});
130
+ i(this, "materialStyle", {});
131
+ i(this, "meshStyle", {});
128
132
  i(this, "mesh");
129
133
  i(this, "five");
130
134
  i(this, "mode");
131
- i(this, "path", []);
132
135
  i(this, "_curvePath", null);
133
136
  i(this, "_curvePoints", null);
134
137
  i(this, "_panoGroup", []);
@@ -152,10 +155,12 @@ class R {
152
155
  i(this, "plugin");
153
156
  i(this, "textureHasLoaded", !1);
154
157
  i(this, "disposed", !1);
155
- i(this, "flowAnime", new M({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
158
+ i(this, "flowAnime", new O({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
156
159
  i(this, "flickerAnime", G(300).yoyo(!0).repeat(5));
157
160
  /** 缓存 panoGroup 中每个点距离起点的长度 */
158
161
  i(this, "cacheLengths", []);
162
+ /** 为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
163
+ i(this, "heightOffset", 0);
159
164
  i(this, "dispose", () => {
160
165
  var e, t;
161
166
  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(), (t = this.endTagContainer) == null || t.plugin.dispose());
@@ -170,7 +175,7 @@ class R {
170
175
  });
171
176
  /** 模型状态变更 */
172
177
  i(this, "onFiveModeChange", (e) => {
173
- this.modeVisible = this.mode === "panorama" ? x(e) : _(e), this.updateVisible();
178
+ this.modeVisible = this.mode === "panorama" ? _(e) : M(e), this.updateVisible();
174
179
  });
175
180
  i(this, "onFiveModelShownFloorChange", (e) => {
176
181
  this.floorVisible = e === null || this.visibleFloorIndexes === null || this.visibleFloorIndexes.includes(e), this.updateVisible();
@@ -185,30 +190,30 @@ class R {
185
190
  this.mesh.material.uniforms.vOffset.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
186
191
  });
187
192
  i(this, "onFlickerAnimeUpdate", (e) => {
188
- var r, a, o, d;
189
- const { progress: t } = e, s = 1 - t;
190
- this.mesh.material.uniforms.flicker.value = s, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && b(this.startTagContainer.tag) && ((o = this.startTagContainer.app) == null || o.$set(c(p({}, this.startTagContainer.tag.data), {
191
- opacity: s,
193
+ var s, a, o, d;
194
+ const { progress: t } = e, r = 1 - t;
195
+ this.mesh.material.uniforms.flicker.value = r, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && y(this.startTagContainer.tag) && ((o = this.startTagContainer.app) == null || o.$set(p(u({}, this.startTagContainer.tag.data), {
196
+ opacity: r,
192
197
  name: this.name,
193
- distance: Math.round((a = (r = this.curvePath) == null ? void 0 : r.getLength()) != null ? a : 0)
194
- }))), this.endTagContainer.tag && b(this.endTagContainer.tag) && ((d = this.endTagContainer.app) == null || d.$set(c(p({}, this.endTagContainer.tag.data), { opacity: s })));
198
+ distance: Math.round((a = (s = this.curvePath) == null ? void 0 : s.getLength()) != null ? a : 0)
199
+ }))), this.endTagContainer.tag && y(this.endTagContainer.tag) && ((d = this.endTagContainer.app) == null || d.$set(p(u({}, this.endTagContainer.tag.data), { opacity: r })));
195
200
  });
196
- i(this, "logWarning", (e) => T("GuideLineModeItem: ", e));
197
- i(this, "logError", (e) => V("GuideLineModeItem: ", e));
201
+ i(this, "logWarning", (e) => x("GuideLineModeItem: ", e));
202
+ i(this, "logError", (e) => S("GuideLineModeItem: ", e));
198
203
  var a, o;
199
- this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.startTagContainer = { tag: null, plugin: new y(this.five) }, this.endTagContainer = { tag: null, plugin: new y(this.five) };
200
- const s = new l.BufferGeometry(), r = new l.ShaderMaterial({
201
- vertexShader: B,
202
- fragmentShader: I,
204
+ this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.startTagContainer = { tag: null, plugin: new w(this.five) }, this.endTagContainer = { tag: null, plugin: new w(this.five) };
205
+ const r = new n.BufferGeometry(), s = new n.ShaderMaterial({
206
+ vertexShader: R,
207
+ fragmentShader: W,
203
208
  transparent: !0,
204
209
  uniforms: {
205
210
  map: { value: null },
206
211
  useMapColor: { value: 0 },
207
- mapColor: { value: new l.Color() },
212
+ mapColor: { value: new n.Color() },
208
213
  mapOpacity: { value: 1 },
209
- backgroundColor: { value: new l.Color() },
214
+ backgroundColor: { value: new n.Color() },
210
215
  backgroundOpacity: { value: 0 },
211
- borderColor: { value: new l.Color() },
216
+ borderColor: { value: new n.Color() },
212
217
  borderOpacity: { value: 0 },
213
218
  opacity: { value: 1 },
214
219
  flicker: { value: 1 },
@@ -216,7 +221,7 @@ class R {
216
221
  vOffset: { value: 0 }
217
222
  }
218
223
  });
219
- this.mesh = new l.Mesh(s, r), 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 = (a = this.five.model) == null ? void 0 : a.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);
224
+ this.mesh = new n.Mesh(r, s), 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 = (a = this.five.model) == null ? void 0 : a.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);
220
225
  }
221
226
  get panoGroup() {
222
227
  return this._panoGroup;
@@ -263,47 +268,73 @@ class R {
263
268
  return this.logError("disposed");
264
269
  if (!this.five.work)
265
270
  return this.logError("setPathByPanoGroup: work is not ready");
266
- const s = S(e);
267
- if (this._panoGroup = s, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
268
- const a = t.skipPanoGroup ? s.map((o) => this.five.work.observers[o]).map((o) => o.standingPosition.clone()) : null;
271
+ const r = B(e);
272
+ if (this._panoGroup = r, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
273
+ const a = t.skipPanoGroup ? r.map((o) => this.five.work.observers[o]).map((o) => o.standingPosition.clone()) : null;
269
274
  this.skippedPositions = a;
270
275
  }
271
- const r = this.getPathFromPanoGroup(s, this.five.work, t);
272
- this.path = r, this.setGeometryByPath(r, t);
276
+ const s = this.getPathFromPanoGroup(r, this.five.work, t);
277
+ this.path = s, this.setGeometryByPath(s, t);
273
278
  }
274
279
  /** 通过路径设置线条形状 */
275
280
  setGeometryByPath(e, t) {
276
- var h, g, f;
281
+ var f, v, C;
277
282
  if (this.disposed)
278
283
  return this.logError("disposed");
279
- const s = (h = t == null ? void 0 : t.scale) != null ? h : this.scale, r = (g = t == null ? void 0 : t.width) != null ? g : this.width, a = (f = t == null ? void 0 : t.unit_length) != null ? f : this.unitLength;
280
- this.path = e, this.scale = s, this.width = r, this.unitLength = a;
281
- const { geometry: o, maxU: d, curvePath: m, curvePoints: u } = U({
284
+ const r = (f = t == null ? void 0 : t.scale) != null ? f : this.scale, s = (v = t == null ? void 0 : t.width) != null ? v : this.width, a = (C = t == null ? void 0 : t.unit_length) != null ? C : this.unitLength;
285
+ this.scale = r, this.width = s, this.unitLength = a;
286
+ const { geometry: o, maxU: d, curvePath: g, curvePoints: m } = U({
282
287
  path: e,
283
- width: r * s,
284
- unitLength: a * s,
288
+ width: s * r,
289
+ unitLength: a * r,
285
290
  skipPositions: this.skippedPositions
286
291
  });
287
- this._curvePath = m, this._curvePoints = u, this.mesh.geometry = o, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = d, this.five.needsRender = !0;
292
+ this._curvePath = g, this._curvePoints = m, this.mesh.geometry = o, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = d, this.five.needsRender = !0;
293
+ const l = e, c = u(u({}, this.geometryStyle), t);
294
+ this.path = l, this.geometryStyle = c;
288
295
  }
289
296
  /** 设置线条材质 */
290
297
  setMartial(e) {
291
- var t;
298
+ var r;
292
299
  if (this.disposed)
293
300
  return this.logError("disposed");
294
- (e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), ((t = e == null ? void 0 : e.texture) == null ? void 0 : t.url) !== void 0 && this.setTextureUrl(e.texture.url), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity);
301
+ (e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), ((r = e == null ? void 0 : e.texture) == null ? void 0 : r.url) !== void 0 && this.setTextureUrl(e.texture.url), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity);
302
+ const t = u(u({}, this.materialStyle), e);
303
+ this.materialStyle = t;
304
+ }
305
+ /** 设置模型状态 */
306
+ setMeshStyle(e) {
307
+ if (e != null && e.translate) {
308
+ const s = new n.Vector3(), a = new n.Vector3().fromArray(e.translate);
309
+ a.y += this.heightOffset, s.add(a), this.mesh.position.copy(s), r(this.startTagContainer, a), r(this.endTagContainer, a);
310
+ }
311
+ const t = u(u({}, this.meshStyle), e);
312
+ this.meshStyle = t;
313
+ function r(s, a) {
314
+ if (!s.tag)
315
+ return;
316
+ const o = new n.Vector3().fromArray(s.tag.position);
317
+ o.add(a);
318
+ const d = o.toArray();
319
+ s.plugin.changeTagById(s.tag.id, { position: d });
320
+ }
321
+ }
322
+ /** 设置 Y 轴上的偏移量,为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
323
+ setHeightOffset(e) {
324
+ const t = new n.Vector3();
325
+ this.meshStyle.translate && t.add(new n.Vector3().fromArray(this.meshStyle.translate)), t.setY(t.y + e), this.mesh.position.copy(t), this.heightOffset = e, this.five.needsRender = !0;
295
326
  }
296
327
  /** 设置贴图颜色 */
297
328
  setColor(e) {
298
329
  if (this.disposed)
299
330
  return this.logError("disposed");
300
- 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;
331
+ e && (this.mesh.material.uniforms.mapColor.value = new n.Color().set(e)), this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
301
332
  }
302
333
  /** 设置边框 */
303
334
  setBorderColor(e) {
304
335
  if (this.disposed)
305
336
  return this.logError("disposed");
306
- this.mesh.material.uniforms.borderColor.value = new l.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
337
+ this.mesh.material.uniforms.borderColor.value = new n.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
307
338
  }
308
339
  /** 设置边框透明度 */
309
340
  setBorderOpacity(e) {
@@ -315,7 +346,7 @@ class R {
315
346
  setBackgroundColor(e) {
316
347
  if (this.disposed)
317
348
  return this.logError("disposed");
318
- this.mesh.material.uniforms.backgroundColor.value = new l.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
349
+ this.mesh.material.uniforms.backgroundColor.value = new n.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
319
350
  }
320
351
  /** 设置背景透明度 */
321
352
  setBackgroundOpacity(e) {
@@ -339,15 +370,15 @@ class R {
339
370
  setTextureUrl(e) {
340
371
  if (this.disposed)
341
372
  return this.logError("disposed");
342
- this.textureUrl = e, E(e).then((t) => {
343
- this.disposed || this.textureUrl === e && (t.wrapT = l.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
373
+ this.textureUrl = e, A(e).then((t) => {
374
+ this.disposed || this.textureUrl === e && (t.wrapT = n.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
344
375
  });
345
376
  }
346
377
  setVisibleFloorIndexes(e) {
347
- var t, s;
378
+ var t, r;
348
379
  if (this.disposed)
349
380
  return this.logError("disposed");
350
- this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((s = (t = this.five.model) == null ? void 0 : t.shownFloor) != null ? s : null);
381
+ this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((r = (t = this.five.model) == null ? void 0 : t.shownFloor) != null ? r : null);
351
382
  }
352
383
  setStartTag(e) {
353
384
  this.setTag("start", e);
@@ -371,35 +402,42 @@ class R {
371
402
  return this.disposed ? this.logError("disposed") : this.cacheLengths.length !== 0 ? this.cacheLengths[e] : (this.cacheLengths = this.getPanoGroupLengths(), this.cacheLengths[e]);
372
403
  }
373
404
  getPanoGroupLengths() {
374
- var u;
405
+ var m;
375
406
  if (!this.curvePoints || !this.curvePath)
376
407
  return [];
377
- const e = this.panoGroup.map((h) => this.five.work.observers[h]), t = this.curvePoints.length, s = this.curvePath.getLength(), r = t - 1, a = s / r, o = (u = this.curvePath.getLengths(r)) != null ? u : [], d = [];
378
- let m = 0;
379
- for (let h = 0; h < t; h++) {
380
- const g = this.curvePoints[h], f = e[m];
408
+ const e = this.panoGroup.map((l) => this.five.work.observers[l]), t = this.curvePoints.length, r = this.curvePath.getLength(), s = t - 1, a = r / s, o = (m = this.curvePath.getLengths(s)) != null ? m : [], d = [];
409
+ let g = 0;
410
+ for (let l = 0; l < t; l++) {
411
+ const c = this.curvePoints[l], f = e[g];
381
412
  if (!f)
382
413
  break;
383
- f.standingPosition.clone().setY(0).distanceTo(g.clone().setY(0)) < a && (d.push(o[h]), m += 1);
414
+ f.standingPosition.clone().setY(0).distanceTo(c.clone().setY(0)) < a && (d.push(o[l]), g += 1);
384
415
  }
385
416
  return d;
386
417
  }
387
418
  setTag(e, t) {
388
- const s = this.curvePath, r = e === "start" ? this.startTagContainer : this.endTagContainer;
389
- t || r.plugin.clearTags();
390
- const o = A({}, {
419
+ const r = this.curvePath, s = e === "start" ? this.startTagContainer : this.endTagContainer;
420
+ t || s.plugin.clearTags();
421
+ const o = I({}, {
391
422
  contentType: "Custom",
392
423
  stickType: "2DPoint",
393
424
  config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
394
425
  style: { point: { enabled: !1 } },
395
426
  data: {}
396
427
  }, t);
397
- r.tag = o, b(o) && (r.tag.element = (d) => {
398
- var h, g;
399
- (h = r.app) == null || h.$destroy();
400
- const m = e === "start" ? c(p({}, o.data), { name: this.name, distance: Math.round((g = s.getLength()) != null ? g : 0), i18n: this.plugin.config.i18n }) : o.data, u = new O({ target: d, intro: !0, props: m });
401
- return r.app = u, () => u.$destroy();
402
- }), r.plugin.load({ tagList: [r.tag] });
428
+ s.tag = o, y(o) && (s.tag.element = (g) => {
429
+ var c, f;
430
+ (c = s.app) == null || c.$destroy();
431
+ const m = e === "start" ? p(u({}, o.data), { name: this.name, distance: Math.round((f = r.getLength()) != null ? f : 0), i18n: this.plugin.config.i18n }) : o.data, l = new E({ target: g, intro: !0, props: m });
432
+ return s.app = l, () => l.$destroy();
433
+ }), s.plugin.load({ tagList: [s.tag] });
434
+ const d = this.meshStyle.translate;
435
+ if (d) {
436
+ const g = new n.Vector3().fromArray(o.position), m = new n.Vector3().fromArray(d);
437
+ g.add(m), g.y += this.heightOffset;
438
+ const l = g.toArray();
439
+ s.plugin.changeTagById(s.tag.id, { position: l });
440
+ }
403
441
  }
404
442
  doShow() {
405
443
  this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.mesh), this.startTagContainer.plugin.show(), this.endTagContainer.plugin.show(), this.five.needsRender = !0;
@@ -408,21 +446,21 @@ class R {
408
446
  this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.startTagContainer.plugin.hide(), this.endTagContainer.plugin.hide(), this.five.needsRender = !0;
409
447
  }
410
448
  /** 通过 panoIndex 数组计算路径 */
411
- getPathFromPanoGroup(e, t, s) {
449
+ getPathFromPanoGroup(e, t, r) {
412
450
  if (e.length < 2)
413
451
  return [];
414
452
  const a = e.map((o) => t.observers[o]).map((o) => o.standingPosition.toArray());
415
- return [p({ type: "CatmullRomCurve3", points: a }, s)];
453
+ return [u({ type: "CatmullRomCurve3", points: a }, r)];
416
454
  }
417
455
  }
418
- function b(n) {
419
- return n.contentType === "Custom";
456
+ function y(h) {
457
+ return h.contentType === "Custom";
420
458
  }
421
- const ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
459
+ const se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
422
460
  __proto__: null,
423
- GuideLineModeItem: R
461
+ GuideLineModeItem: N
424
462
  }, Symbol.toStringTag, { value: "Module" }));
425
463
  export {
426
- R as GuideLineModeItem,
427
- ie as GuideLineModeItem$1
464
+ N as GuideLineModeItem,
465
+ se as GuideLineModeItem$1
428
466
  };
@@ -25,10 +25,13 @@ declare class GuideLineModeItem {
25
25
  name: string;
26
26
  startTagContainer: GuideLineTagContainer;
27
27
  endTagContainer: GuideLineTagContainer;
28
+ path: PluginType.PathItem[];
29
+ geometryStyle: PluginType.GuideLineGeometryStyle;
30
+ materialStyle: PluginType.GuideLineMaterialStyle;
31
+ meshStyle: PluginType.GuideLineMeshStyle;
28
32
  readonly mesh: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
29
33
  private five;
30
34
  private mode;
31
- private path;
32
35
  private _curvePath;
33
36
  private _curvePoints;
34
37
  private _panoGroup;
@@ -56,6 +59,8 @@ declare class GuideLineModeItem {
56
59
  private flickerAnime;
57
60
  /** 缓存 panoGroup 中每个点距离起点的长度 */
58
61
  private cacheLengths;
62
+ /** 为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
63
+ private heightOffset;
59
64
  constructor(five: Five, options: {
60
65
  mode: PluginType.GuideLineModeItemMode;
61
66
  plugin: GuideLinePlugin;
@@ -78,6 +83,10 @@ declare class GuideLineModeItem {
78
83
  setGeometryByPath(path: PluginType.PathItem[], options?: PluginType.GuideLineGeometryStyle): void;
79
84
  /** 设置线条材质 */
80
85
  setMartial(options?: PluginType.GuideLineMaterialStyle): void;
86
+ /** 设置模型状态 */
87
+ setMeshStyle(options?: PluginType.GuideLineMeshStyle): void;
88
+ /** 设置 Y 轴上的偏移量,为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
89
+ setHeightOffset(offset: number): void;
81
90
  /** 设置贴图颜色 */
82
91
  setColor(color: null | string): void;
83
92
  /** 设置边框 */
@@ -13,7 +13,7 @@ import "../PanoTagPlugin/controller/index.js";
13
13
  import "./Components/Tag.js";
14
14
  import "./utils/index.js";
15
15
  import "../vendor/object-assign-deep/objectAssignDeep.js";
16
- import { GuideLineModeItem as Wi } from "./GuideLineModeItem/index.js";
16
+ import { GuideLineModeItem as Vi } from "./GuideLineModeItem/index.js";
17
17
  import "../vendor/polyline-normals/index.js";
18
18
  import "../vendor/polyline-miter-util/index.js";
19
19
  import "../vendor/gl-vec2/add.js";
@@ -72,7 +72,6 @@ import "../shared-utils/five/calculateThreeMouse.js";
72
72
  import "../PanoTagPlugin/utils/tag/adaptConfig.js";
73
73
  import "../shared-utils/typescript/entries.js";
74
74
  import "../shared-utils/url/getUrl.js";
75
- import "../shared-utils/five/transformPosition.js";
76
75
  import "../shared-utils/five/getFloorIndex.js";
77
76
  import "../shared-utils/safeObj.js";
78
77
  import "../PanoTagPlugin/Components/TagContainer.js";
@@ -153,5 +152,5 @@ import "../shared-utils/three/GLTFLoader.js";
153
152
  import "@realsee/five/gltf-loader";
154
153
  import "../shared-utils/five/fiveModelLoad.js";
155
154
  export {
156
- Wi as GuideLineModeItem
155
+ Vi as GuideLineModeItem
157
156
  };
@@ -1,6 +1,6 @@
1
1
  import t from "./Controller.js";
2
- import { GuideLineItem$1 as lt } from "./GuideLineItem/index.js";
3
- import { GuideLineModeItem$1 as It } from "./GuideLineModeItem/index.js";
2
+ import { GuideLineItem$1 as ft } from "./GuideLineItem/index.js";
3
+ import { GuideLineModeItem$1 as st } from "./GuideLineModeItem/index.js";
4
4
  import "../base/BasePluginWithData.js";
5
5
  import "../base/BasePlugin.js";
6
6
  import "../shared-utils/Subscribe.js";
@@ -85,7 +85,6 @@ import "../shared-utils/five/calculateThreeMouse.js";
85
85
  import "../PanoTagPlugin/utils/tag/adaptConfig.js";
86
86
  import "../shared-utils/typescript/entries.js";
87
87
  import "../shared-utils/url/getUrl.js";
88
- import "../shared-utils/five/transformPosition.js";
89
88
  import "../shared-utils/five/getFloorIndex.js";
90
89
  import "../shared-utils/safeObj.js";
91
90
  import "../PanoTagPlugin/Components/TagContainer.js";
@@ -169,10 +168,10 @@ import "./utils/index.js";
169
168
  import "../shared-utils/to.js";
170
169
  import "../shared-utils/five/changeMode.js";
171
170
  import "../shared-utils/nearlyEqual.js";
172
- const Lt = (i, o) => new t(i, o);
171
+ const Gt = (i, o) => new t(i, o);
173
172
  export {
174
- lt as GuideLineItem,
175
- It as GuideLineModeItem,
176
- Lt as GuideLinePlugin,
177
- Lt as default
173
+ ft as GuideLineItem,
174
+ st as GuideLineModeItem,
175
+ Gt as GuideLinePlugin,
176
+ Gt as default
178
177
  };
@@ -95,7 +95,12 @@ export interface ModelGuideLineStyle extends GuideLineStyle {
95
95
  end_tag?: ModelGuideLineTagData;
96
96
  }
97
97
  /** 不同模态下的路线数据 */
98
- export type GuideLineStyle = GuideLineGeometryStyle & GuideLineMaterialStyle;
98
+ export type GuideLineStyle = GuideLineGeometryStyle & GuideLineMaterialStyle & GuideLineMeshStyle;
99
+ /** 影响模型的样式 */
100
+ export interface GuideLineMeshStyle {
101
+ /** 三维偏移值: [x, y, z] */
102
+ translate?: number[];
103
+ }
99
104
  /** 影响形状的样式 */
100
105
  export interface GuideLineGeometryStyle {
101
106
  /** scale 之前的路线宽度,默认值是 0.5 */
@@ -1,13 +1,13 @@
1
1
  var Q = Object.defineProperty, V = Object.defineProperties;
2
2
  var X = Object.getOwnPropertyDescriptors;
3
- var D = Object.getOwnPropertySymbols;
3
+ var E = Object.getOwnPropertySymbols;
4
4
  var Y = Object.prototype.hasOwnProperty, Z = Object.prototype.propertyIsEnumerable;
5
- var E = (e, i, o) => i in e ? Q(e, i, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[i] = o, C = (e, i) => {
5
+ var F = (e, i, o) => i in e ? Q(e, i, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[i] = o, C = (e, i) => {
6
6
  for (var o in i || (i = {}))
7
- Y.call(i, o) && E(e, o, i[o]);
8
- if (D)
9
- for (var o of D(i))
10
- Z.call(i, o) && E(e, o, i[o]);
7
+ Y.call(i, o) && F(e, o, i[o]);
8
+ if (E)
9
+ for (var o of E(i))
10
+ Z.call(i, o) && F(e, o, i[o]);
11
11
  return e;
12
12
  }, L = (e, i) => V(e, X(i));
13
13
  var K = (e, i, o) => new Promise((t, n) => {
@@ -26,7 +26,7 @@ var K = (e, i, o) => new Promise((t, n) => {
26
26
  }, u = (a) => a.done ? t(a.value) : Promise.resolve(a.value).then(r, m);
27
27
  u((o = o.apply(e, i)).next());
28
28
  });
29
- import { SvelteComponent as $, init as x, safe_not_equal as ee, append_styles as ie, empty as N, insert as w, transition_in as _, transition_out as y, check_outros as B, detach as b, createEventDispatcher as ne, onMount as te, element as R, space as oe, attr as p, set_style as c, append as re, group_outros as G, create_component as ae, mount_component as le, destroy_component as ue, handle_promise as q, update_await_block_branch as J, noop as s, src_url_equal as F } from "../../../../vendor/svelte/internal/index.js";
29
+ import { SvelteComponent as $, init as x, safe_not_equal as ee, append_styles as ie, empty as N, insert as w, transition_in as _, transition_out as y, check_outros as B, detach as b, createEventDispatcher as ne, onMount as te, element as R, space as oe, attr as p, set_style as c, append as re, group_outros as G, create_component as ae, mount_component as le, destroy_component as ue, handle_promise as q, update_await_block_branch as J, noop as s, src_url_equal as M } from "../../../../vendor/svelte/internal/index.js";
30
30
  import "three";
31
31
  import { noTypecheck as W } from "../../../utils/noTypecheck.js";
32
32
  import { getKeyframeInfo as se, getImageInfo as fe } from "../../../utils/getImageInfo.js";
@@ -37,13 +37,13 @@ import "../../../../vendor/svelte/easing/index.js";
37
37
  function de(e) {
38
38
  ie(e, "svelte-316sq3", "@keyframes svelte-316sq3-sprites-animation{0%{background-position:0 0}100%{background-position:100% 0}}.icon-image.svelte-316sq3{display:block;width:auto}.icon-keyframe.svelte-316sq3{background-repeat:no-repeat;background-size:auto 100%;animation-direction:normal;animation-iteration-count:infinite;animation-name:svelte-316sq3-sprites-animation;animation-delay:0}");
39
39
  }
40
- function M(e) {
40
+ function T(e) {
41
41
  e[1] = e[19].width;
42
42
  }
43
- function T(e) {
43
+ function U(e) {
44
44
  e[1] = e[19].width, e[16] = e[19].height, e[17] = e[19].steps, e[18] = e[19].duration;
45
45
  }
46
- function U(e) {
46
+ function j(e) {
47
47
  let i, o, t, n = (
48
48
  /*shadow*/
49
49
  e[0] && A()
@@ -237,11 +237,11 @@ function _e(e) {
237
237
  return { c: s, m: s, p: s, d: s };
238
238
  }
239
239
  function pe(e) {
240
- M(e);
240
+ T(e);
241
241
  let i, o;
242
242
  return {
243
243
  c() {
244
- i = R("img"), p(i, "alt", "tag-icon"), p(i, "class", "icon-image svelte-316sq3"), F(i.src, o = /*iconUrl*/
244
+ i = R("img"), p(i, "alt", "tag-icon"), p(i, "class", "icon-image svelte-316sq3"), M(i.src, o = /*iconUrl*/
245
245
  e[7]) || p(i, "src", o), c(i, "width", g(k({
246
246
  originWidth: (
247
247
  /*width*/
@@ -261,8 +261,8 @@ function pe(e) {
261
261
  w(t, i, n);
262
262
  },
263
263
  p(t, n) {
264
- M(t), n & /*iconUrl*/
265
- 128 && !F(i.src, o = /*iconUrl*/
264
+ T(t), n & /*iconUrl*/
265
+ 128 && !M(i.src, o = /*iconUrl*/
266
266
  t[7]) && p(i, "src", o), n & /*iconUrl, iconRatio, iconScale, iconWidth*/
267
267
  184 && c(i, "width", g(k({
268
268
  originWidth: (
@@ -291,10 +291,10 @@ function ke(e) {
291
291
  return { c: s, m: s, p: s, d: s };
292
292
  }
293
293
  function we(e) {
294
- T(e);
294
+ U(e);
295
295
  let i, o = `url(${/*iconUrl*/
296
296
  e[7]})`, t = `steps(${/*steps*/
297
- e[17]}, jump-none)`;
297
+ e[17] - 1})`;
298
298
  return {
299
299
  c() {
300
300
  i = R("div"), p(i, "class", "icon-keyframe svelte-316sq3"), c(i, "width", g(k({
@@ -342,7 +342,7 @@ function we(e) {
342
342
  w(n, i, r);
343
343
  },
344
344
  p(n, r) {
345
- T(n), r & /*iconUrl, iconSteps, iconFps, iconRatio, iconScale, iconWidth*/
345
+ U(n), r & /*iconUrl, iconSteps, iconFps, iconRatio, iconScale, iconWidth*/
346
346
  252 && c(i, "width", g(k({
347
347
  originWidth: (
348
348
  /*width*/
@@ -388,7 +388,7 @@ function we(e) {
388
388
  n[18]
389
389
  ), r & /*iconUrl, iconSteps, iconFps, iconRatio*/
390
390
  228 && t !== (t = `steps(${/*steps*/
391
- n[17]}, jump-none)`) && c(i, "animation-timing-function", t);
391
+ n[17] - 1})`) && c(i, "animation-timing-function", t);
392
392
  },
393
393
  d(n) {
394
394
  n && b(i);
@@ -401,7 +401,7 @@ function be(e) {
401
401
  function ye(e) {
402
402
  let i, o, t = (
403
403
  /*iconCopy*/
404
- e[9] && U(e)
404
+ e[9] && j(e)
405
405
  );
406
406
  return {
407
407
  c() {
@@ -413,7 +413,7 @@ function ye(e) {
413
413
  p(n, [r]) {
414
414
  /*iconCopy*/
415
415
  n[9] ? t ? (t.p(n, r), r & /*iconCopy*/
416
- 512 && _(t, 1)) : (t = U(n), t.c(), _(t, 1), t.m(i.parentNode, i)) : t && (G(), y(t, 1, 1, () => {
416
+ 512 && _(t, 1)) : (t = j(n), t.c(), _(t, 1), t.m(i.parentNode, i)) : t && (G(), y(t, 1, 1, () => {
417
417
  t = null;
418
418
  }), B());
419
419
  },
@@ -433,7 +433,7 @@ function k(e) {
433
433
  return L(C({}, e), { width: r, height: m });
434
434
  }
435
435
  function We(e, i, o) {
436
- let t, n, r, m, u, a, d, v, I, { width: H = null } = i, { icon: l = null } = i, { shadow: j = !1 } = i;
436
+ let t, n, r, m, u, a, d, v, I, { width: H = null } = i, { icon: l = null } = i, { shadow: z = !1 } = i;
437
437
  const S = ne();
438
438
  function O(f) {
439
439
  return K(this, null, function* () {
@@ -449,13 +449,13 @@ function We(e, i, o) {
449
449
  return S("iconLoaded", h), h;
450
450
  });
451
451
  }
452
- function z() {
452
+ function D() {
453
453
  v || S("iconLoaded");
454
454
  }
455
455
  return te(() => {
456
- z();
456
+ D();
457
457
  }), e.$$set = (f) => {
458
- "width" in f && o(1, H = f.width), "icon" in f && o(12, l = f.icon), "shadow" in f && o(0, j = f.shadow);
458
+ "width" in f && o(1, H = f.width), "icon" in f && o(12, l = f.icon), "shadow" in f && o(0, z = f.shadow);
459
459
  }, e.$$.update = () => {
460
460
  var f, h;
461
461
  e.$$.dirty & /*icon*/
@@ -475,8 +475,8 @@ function We(e, i, o) {
475
475
  })), e.$$.dirty & /*iconSteps*/
476
476
  4 && o(8, v = n > 1), e.$$.dirty & /*width*/
477
477
  2 && (I = H);
478
- }, z(), [
479
- j,
478
+ }, D(), [
479
+ z,
480
480
  H,
481
481
  n,
482
482
  a,