@realsee/dnalogel 3.2.0-dev.7 → 3.2.0

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 (383) 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/typings/tag/TagInstance.d.ts +0 -1
  6. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
  7. package/dist/PanoTagPlugin/utils/tagPosition.d.ts +3 -2
  8. package/dist/index.cjs.js +54 -54
  9. package/dist/index.js +3052 -3052
  10. package/dist/index.umd.js +51 -51
  11. package/dist/shared-utils/five/getFloorIndex.d.ts +8 -2
  12. package/libs/CruisePlugin/Controller.js +34 -35
  13. package/libs/CruisePlugin/index.js +5 -6
  14. package/libs/GuideLinePlugin/Controller.js +40 -41
  15. package/libs/GuideLinePlugin/GuideLineItem/index.js +33 -36
  16. package/libs/GuideLinePlugin/GuideLineItem.d.ts +0 -1
  17. package/libs/GuideLinePlugin/GuideLineItem.js +2 -3
  18. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +95 -72
  19. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +10 -1
  20. package/libs/GuideLinePlugin/GuideLineModeItem.js +2 -3
  21. package/libs/GuideLinePlugin/index.js +7 -8
  22. package/libs/GuideLinePlugin/typing.d.ts +6 -1
  23. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +26 -26
  24. package/libs/PanoTagPlugin/controller/TagComputer.js +95 -89
  25. package/libs/PanoTagPlugin/controller/TagRender.js +81 -81
  26. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +4 -8
  27. package/libs/PanoTagPlugin/controller/TagUtil.js +107 -123
  28. package/libs/PanoTagPlugin/controller/index.js +35 -40
  29. package/libs/PanoTagPlugin/index.js +11 -12
  30. package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +0 -1
  31. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -2
  32. package/libs/PanoTagPlugin/utils/tagPosition.d.ts +3 -2
  33. package/libs/PanoTagPlugin/utils/tagPosition.js +15 -15
  34. package/libs/base/BasePlugin.js +1 -1
  35. package/libs/index.js +116 -117
  36. package/libs/shared-utils/five/getFloorIndex.d.ts +8 -2
  37. package/libs/shared-utils/five/getFloorIndex.js +12 -16
  38. package/libs/shared-utils/logger.js +1 -1
  39. package/package.json +1 -1
  40. package/dist/shared-utils/five/transformPosition.d.ts +0 -2
  41. package/docs/.nojekyll +0 -1
  42. package/docs/assets/highlight.css +0 -120
  43. package/docs/assets/main.js +0 -58
  44. package/docs/assets/search.js +0 -1
  45. package/docs/assets/style.css +0 -1367
  46. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -725
  47. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -678
  48. package/docs/classes/CSS3DRender.html +0 -773
  49. package/docs/classes/CruisePluginController.html +0 -672
  50. package/docs/classes/GuideLineItem.GuideLineItem.html +0 -491
  51. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -792
  52. package/docs/classes/Magnifier.html +0 -480
  53. package/docs/classes/ModelRoomLabelController.html +0 -398
  54. package/docs/classes/Object3DHelperController.html +0 -640
  55. package/docs/classes/PaintBrush.html +0 -502
  56. package/docs/classes/PanoMeasurePluginLine.html +0 -522
  57. package/docs/classes/PanoMeasurePluginModel.html +0 -571
  58. package/docs/classes/PanoMeasurePluginPoint.html +0 -362
  59. package/docs/classes/PanoMeasurePluginPolyline.html +0 -567
  60. package/docs/classes/PanoTagPluginController.html +0 -1077
  61. package/docs/classes/Util.BetterTween.html +0 -416
  62. package/docs/classes/Util.Interval.html +0 -432
  63. package/docs/classes/Util.LineSegments.html +0 -384
  64. package/docs/classes/Util.Magnifier.html +0 -503
  65. package/docs/classes/Util.Object3D.html +0 -406
  66. package/docs/classes/Util.PointDomHelper.html +0 -407
  67. package/docs/classes/Util.PointHelper.html +0 -398
  68. package/docs/classes/Util.PointSelectorHelper.html +0 -454
  69. package/docs/classes/Util.Rectangle.html +0 -455
  70. package/docs/enums/CameraMovementEffect.html +0 -310
  71. package/docs/enums/ContentType.html +0 -446
  72. package/docs/enums/DIRECTION.html +0 -320
  73. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -320
  74. package/docs/enums/DimensionType.html +0 -310
  75. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -313
  76. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -320
  77. package/docs/enums/PaintBrushTypeEnum.html +0 -313
  78. package/docs/enums/PointType.html +0 -310
  79. package/docs/enums/Rotation.html +0 -317
  80. package/docs/functions/AreaMakerPlugin.html +0 -290
  81. package/docs/functions/CSS3DRenderPlugin.html +0 -288
  82. package/docs/functions/CameraMovementPlugin.html +0 -293
  83. package/docs/functions/CruisePlugin.html +0 -290
  84. package/docs/functions/CurrentPanoImagePlugin.html +0 -290
  85. package/docs/functions/GuideLinePlugin.html +0 -290
  86. package/docs/functions/ItemLabelPlugin.html +0 -290
  87. package/docs/functions/MapviewFloorplanPlugin.html +0 -290
  88. package/docs/functions/ModelChassisCompassPlugin.html +0 -293
  89. package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -293
  90. package/docs/functions/ModelFloorplanPlugin.html +0 -290
  91. package/docs/functions/ModelItemLabelPlugin.html +0 -290
  92. package/docs/functions/ModelRoomLabelPlugin.html +0 -288
  93. package/docs/functions/ModelTVVideoPlugin.html +0 -290
  94. package/docs/functions/ModelViewPlugin.html +0 -293
  95. package/docs/functions/Object3DHelperPlugin.html +0 -288
  96. package/docs/functions/PanoCompassPlugin.html +0 -290
  97. package/docs/functions/PanoCursorRaycasterPlugin.html +0 -294
  98. package/docs/functions/PanoDoorLabelPlugin.html +0 -290
  99. package/docs/functions/PanoFloorplanRadarPlugin.html +0 -290
  100. package/docs/functions/PanoMeasurePlugin.html +0 -290
  101. package/docs/functions/PanoRulerPlugin.html +0 -293
  102. package/docs/functions/PanoRulerProPlugin.html +0 -293
  103. package/docs/functions/PanoSpatialTagPlugin.html +0 -293
  104. package/docs/functions/PanoTagPlugin.html +0 -295
  105. package/docs/functions/PanoVideoPlugin.html +0 -299
  106. package/docs/functions/PipelinePlugin.html +0 -288
  107. package/docs/functions/TopviewFloorplanPlugin.html +0 -290
  108. package/docs/functions/Util.absoluteUrl.html +0 -326
  109. package/docs/functions/Util.checkFiveModelLoaded.html +0 -329
  110. package/docs/functions/Util.equal.html +0 -338
  111. package/docs/functions/Util.getCoordsFromClient.html +0 -328
  112. package/docs/functions/Util.getCoordsFromElement.html +0 -328
  113. package/docs/functions/Util.getFrameTime.html +0 -320
  114. package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -328
  115. package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -328
  116. package/docs/functions/Util.isAbsoluteURL.html +0 -321
  117. package/docs/functions/Util.isModelLike.html +0 -321
  118. package/docs/functions/Util.isNil.html +0 -329
  119. package/docs/functions/Util.isPanoramaLike.html +0 -321
  120. package/docs/functions/Util.nextFrame.html +0 -334
  121. package/docs/functions/Util.notNil.html +0 -329
  122. package/docs/functions/Util.requestAnimationFrameInterval.html +0 -350
  123. package/docs/functions/Util.tweenProgress.html +0 -323
  124. package/docs/functions/Util.uuid.html +0 -319
  125. package/docs/functions/pluginFlag.html +0 -288
  126. package/docs/index.html +0 -354
  127. package/docs/interfaces/AddTagConfig.html +0 -303
  128. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -329
  129. package/docs/interfaces/AreaMakerPluginType.Config.html +0 -334
  130. package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -620
  131. package/docs/interfaces/AreaMakerPluginType.Params.html +0 -333
  132. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -383
  133. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -368
  134. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -333
  135. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -326
  136. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -325
  137. package/docs/interfaces/AreaMakerPluginType.State.html +0 -354
  138. package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -449
  139. package/docs/interfaces/CSS3DRenderPluginState.html +0 -325
  140. package/docs/interfaces/CameraMovementPluginExportType.html +0 -358
  141. package/docs/interfaces/CruisePluginTypes.Config.html +0 -359
  142. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -361
  143. package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -696
  144. package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -385
  145. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -421
  146. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -411
  147. package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -351
  148. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -319
  149. package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -408
  150. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -382
  151. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -521
  152. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -323
  153. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -315
  154. package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -337
  155. package/docs/interfaces/EventMap.html +0 -542
  156. package/docs/interfaces/FloorplanBounding.html +0 -332
  157. package/docs/interfaces/FloorplanData.html +0 -335
  158. package/docs/interfaces/FloorplanEntrance.html +0 -360
  159. package/docs/interfaces/FloorplanExtraObject.html +0 -350
  160. package/docs/interfaces/FloorplanExtraObject3D.html +0 -339
  161. package/docs/interfaces/FloorplanFloorData.html +0 -328
  162. package/docs/interfaces/FloorplanImagePosition.html +0 -314
  163. package/docs/interfaces/FloorplanObserver.html +0 -332
  164. package/docs/interfaces/FloorplanOutlineItem.html +0 -328
  165. package/docs/interfaces/FloorplanPosition.html +0 -314
  166. package/docs/interfaces/FloorplanRoomItem.html +0 -379
  167. package/docs/interfaces/FloorplanRoomLabelItem.html +0 -320
  168. package/docs/interfaces/FloorplanServerBounding.html +0 -332
  169. package/docs/interfaces/FloorplanServerComputedData.html +0 -331
  170. package/docs/interfaces/FloorplanServerData.html +0 -314
  171. package/docs/interfaces/FloorplanServerDoorItem.html +0 -331
  172. package/docs/interfaces/FloorplanServerDoorPosition.html +0 -317
  173. package/docs/interfaces/FloorplanServerEntrance.html +0 -360
  174. package/docs/interfaces/FloorplanServerFloorData.html +0 -328
  175. package/docs/interfaces/FloorplanServerImagePosition.html +0 -314
  176. package/docs/interfaces/FloorplanServerObserver.html +0 -332
  177. package/docs/interfaces/FloorplanServerOutlineItem.html +0 -328
  178. package/docs/interfaces/FloorplanServerPosition.html +0 -314
  179. package/docs/interfaces/FloorplanServerRoomItem.html +0 -391
  180. package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -320
  181. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -323
  182. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -361
  183. package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -525
  184. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -356
  185. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -347
  186. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -414
  187. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -346
  188. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -471
  189. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -343
  190. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -471
  191. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -308
  192. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -329
  193. package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -354
  194. package/docs/interfaces/GuideLinePluginType.Route.html +0 -370
  195. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -352
  196. package/docs/interfaces/HelperOffset.html +0 -332
  197. package/docs/interfaces/ImagePlaneGroup.html +0 -306
  198. package/docs/interfaces/ItemLabelPluginData.html +0 -303
  199. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -388
  200. package/docs/interfaces/ItemLabelPluginParametersType.html +0 -324
  201. package/docs/interfaces/MinMax.html +0 -310
  202. package/docs/interfaces/ModelChassisCompassPluginData.html +0 -310
  203. package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -346
  204. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -310
  205. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -317
  206. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -354
  207. package/docs/interfaces/ModelItemLabelPluginData.html +0 -303
  208. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -388
  209. package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -310
  210. package/docs/interfaces/ModelRoomLabelPluginData.html +0 -303
  211. package/docs/interfaces/ModelTVVideoPluginData.html +0 -324
  212. package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -348
  213. package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -303
  214. package/docs/interfaces/ModelViewPluginExportType.html +0 -416
  215. package/docs/interfaces/Object3DHelperState.html +0 -317
  216. package/docs/interfaces/ObjectHelperControllers.html +0 -324
  217. package/docs/interfaces/PaintBrushAction.html +0 -363
  218. package/docs/interfaces/PaintBrushConfigs.html +0 -361
  219. package/docs/interfaces/PaintBrushState.html +0 -345
  220. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -425
  221. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -282
  222. package/docs/interfaces/PanoMeasureParameterType.html +0 -449
  223. package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -317
  224. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -314
  225. package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -310
  226. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -320
  227. package/docs/interfaces/PanoRulerPluginExportType.html +0 -377
  228. package/docs/interfaces/PanoRulerPluginOptions.html +0 -326
  229. package/docs/interfaces/PanoRulerPluginParameterType.html +0 -317
  230. package/docs/interfaces/PanoRulerProPluginExportType.html +0 -353
  231. package/docs/interfaces/PanoRulerProPluginOptions.html +0 -323
  232. package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -310
  233. package/docs/interfaces/PanoRulerProPluginState.html +0 -317
  234. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -296
  235. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -285
  236. package/docs/interfaces/PanoSpatialTagPluginData.html +0 -353
  237. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -335
  238. package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -431
  239. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -331
  240. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -352
  241. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -338
  242. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -331
  243. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -323
  244. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -341
  245. package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -314
  246. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -420
  247. package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -314
  248. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -349
  249. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -368
  250. package/docs/interfaces/Point.html +0 -317
  251. package/docs/interfaces/Room.html +0 -324
  252. package/docs/interfaces/RoomInfo.html +0 -310
  253. package/docs/interfaces/RoomLabel.html +0 -386
  254. package/docs/interfaces/RoomRules.html +0 -285
  255. package/docs/interfaces/Rooms.html +0 -285
  256. package/docs/interfaces/Scissor.html +0 -344
  257. package/docs/interfaces/State.html +0 -331
  258. package/docs/interfaces/TagCacheInterface.html +0 -362
  259. package/docs/interfaces/TagConfig.html +0 -565
  260. package/docs/interfaces/TagGLTFObjectGroup.html +0 -306
  261. package/docs/interfaces/TagIconUrl.html +0 -363
  262. package/docs/interfaces/TagObjectGroup.html +0 -306
  263. package/docs/interfaces/TagStyle.html +0 -316
  264. package/docs/interfaces/Tags.html +0 -2688
  265. package/docs/interfaces/TemporaryState.html +0 -303
  266. package/docs/interfaces/Util.MagnifierParameter.html +0 -391
  267. package/docs/interfaces/Util.MouseGroupParameter.html +0 -350
  268. package/docs/interfaces/Util.PointIntersection.html +0 -365
  269. package/docs/modules/AreaMakerPluginType.html +0 -323
  270. package/docs/modules/CruisePluginTypes.html +0 -328
  271. package/docs/modules/CurrentPanoImagePluginType.html +0 -297
  272. package/docs/modules/GuideLineItem.html +0 -289
  273. package/docs/modules/GuideLineModeItem.html +0 -294
  274. package/docs/modules/GuideLinePluginType.html +0 -348
  275. package/docs/modules/PanoVideoPluginType.html +0 -301
  276. package/docs/modules/Util.html +0 -351
  277. package/docs/modules.html +0 -540
  278. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -331
  279. package/docs/types/AreaMakerPluginType.PluginData.html +0 -301
  280. package/docs/types/AreaMakerPluginType.ServerData.html +0 -301
  281. package/docs/types/ArrayPosition.html +0 -279
  282. package/docs/types/AudioAppearance.html +0 -279
  283. package/docs/types/AudioTagTypeConfigKey.html +0 -279
  284. package/docs/types/CSS3DRenderExportType.html +0 -279
  285. package/docs/types/CSS3DRenderPluginExportType.html +0 -279
  286. package/docs/types/CSS3DRenderPluginParameterType.html +0 -279
  287. package/docs/types/ClassFunctionParameters.html +0 -286
  288. package/docs/types/Color.html +0 -279
  289. package/docs/types/ContentTypeConfigKey.html +0 -279
  290. package/docs/types/ContentTypeConfigKeySplit.html +0 -279
  291. package/docs/types/ContentTypeMap.html +0 -279
  292. package/docs/types/Create3DDomContainerReturnType.html +0 -279
  293. package/docs/types/Create3DElementReturnType.html +0 -279
  294. package/docs/types/CruisePluginExportType.html +0 -279
  295. package/docs/types/CruisePluginTypes.CruiseData.html +0 -318
  296. package/docs/types/CruisePluginTypes.MoveEffect.html +0 -295
  297. package/docs/types/CurrentPanoImagePluginExportType.html +0 -279
  298. package/docs/types/DeprecatedMediaPlaneProperty.html +0 -291
  299. package/docs/types/DeprecatedTagProperty.html +0 -294
  300. package/docs/types/Direction-1.html +0 -279
  301. package/docs/types/Direction4.html +0 -279
  302. package/docs/types/ElementRenderer.html +0 -303
  303. package/docs/types/FloorplanRuleLabels.html +0 -282
  304. package/docs/types/FloorplanServerRuleLabels.html +0 -279
  305. package/docs/types/GuideLinePluginExportType.html +0 -279
  306. package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -351
  307. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -372
  308. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -305
  309. package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -308
  310. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -308
  311. package/docs/types/GuideLinePluginType.PathItem.html +0 -308
  312. package/docs/types/GuideLinePluginType.PluginData.html +0 -317
  313. package/docs/types/HelperEventMap.html +0 -517
  314. package/docs/types/LoadTagConfig.html +0 -279
  315. package/docs/types/MapviewFloorplanPluginParameterType.html +0 -279
  316. package/docs/types/MapviewFloorplanPluginReturnType.html +0 -279
  317. package/docs/types/MediaData.html +0 -295
  318. package/docs/types/MediaStore.html +0 -284
  319. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -286
  320. package/docs/types/ModelFloorplanPluginParameterType.html +0 -279
  321. package/docs/types/ModelFloorplanPluginReturnType.html +0 -279
  322. package/docs/types/ModelId.html +0 -279
  323. package/docs/types/ModelRoomLabelPluginParameters.html +0 -279
  324. package/docs/types/ModelRoomLabelPluginReturnType.html +0 -279
  325. package/docs/types/MoveArgs.html +0 -289
  326. package/docs/types/MoveOpts.html +0 -287
  327. package/docs/types/Object3DHelperEventMap.html +0 -372
  328. package/docs/types/ObjectFit.html +0 -279
  329. package/docs/types/PaintBrushEventMap.html +0 -310
  330. package/docs/types/PanoCompassPluginData.html +0 -279
  331. package/docs/types/PanoCompassPluginExportType.html +0 -279
  332. package/docs/types/PanoCompassPluginParameterType.html +0 -279
  333. package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -279
  334. package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -279
  335. package/docs/types/PanoIndex.html +0 -279
  336. package/docs/types/PanoMeasurePluginEvent.html +0 -279
  337. package/docs/types/PanoMeasureReturnType.html +0 -279
  338. package/docs/types/PanoSpatialTagPluginId.html +0 -279
  339. package/docs/types/PanoTagPluginExportInterface.html +0 -279
  340. package/docs/types/PanoTagPluginParamsInterface.html +0 -279
  341. package/docs/types/PanoVideoPluginParameterType.html +0 -279
  342. package/docs/types/PanoVideoPluginReturnType.html +0 -279
  343. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -287
  344. package/docs/types/PipelinePluginParameterType.html +0 -279
  345. package/docs/types/PipelinePluginReturnType.html +0 -279
  346. package/docs/types/PlaneTag.html +0 -287
  347. package/docs/types/Point2DTag.html +0 -287
  348. package/docs/types/Point3DTag.html +0 -287
  349. package/docs/types/PointTag.html +0 -284
  350. package/docs/types/PointTagInstance.html +0 -284
  351. package/docs/types/Position.html +0 -279
  352. package/docs/types/RotateArgs.html +0 -291
  353. package/docs/types/RotateOpts.html +0 -287
  354. package/docs/types/RuleLabelsKey.html +0 -279
  355. package/docs/types/RuleLabelsValue.html +0 -279
  356. package/docs/types/StickType.html +0 -279
  357. package/docs/types/Tag.html +0 -345
  358. package/docs/types/Tag2D.html +0 -287
  359. package/docs/types/Tag3D.html +0 -287
  360. package/docs/types/TagConfigByKey.html +0 -284
  361. package/docs/types/TagContentType.html +0 -279
  362. package/docs/types/TagDimensionType.html +0 -281
  363. package/docs/types/TagElement.html +0 -289
  364. package/docs/types/TagEvents.html +0 -332
  365. package/docs/types/TagGLTFObject.html +0 -302
  366. package/docs/types/TagHooks.html +0 -279
  367. package/docs/types/TagId.html +0 -279
  368. package/docs/types/TagInstance.html +0 -355
  369. package/docs/types/TagPointType.html +0 -282
  370. package/docs/types/TagRendererMap.html +0 -284
  371. package/docs/types/TopviewFloorplanPluginParameterType.html +0 -279
  372. package/docs/types/TopviewFloorplanPluginReturnType.html +0 -279
  373. package/docs/types/WorkCode.html +0 -279
  374. package/docs/variables/FLOOR_TYPE_MAP.html +0 -289
  375. package/docs/variables/PLUGIN.html +0 -279
  376. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -282
  377. package/docs/variables/ROOM_TYPE_MAP.html +0 -289
  378. package/docs/variables/defaultGlobalConfig.html +0 -279
  379. package/docs/variables/itemLabelPluginServerParams.html +0 -286
  380. package/docs/variables/modelItemLabelPluginServerParams.html +0 -286
  381. package/docs/variables/modelRoomLabelPluginServerParams.html +0 -286
  382. package/libs/shared-utils/five/transformPosition.d.ts +0 -2
  383. 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;
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) => {
1
+ var P = Object.defineProperty, V = Object.defineProperties;
2
+ var F = Object.getOwnPropertyDescriptors;
3
+ var k = Object.getOwnPropertySymbols;
4
+ var L = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
5
+ var b = (n, e, t) => e in n ? P(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, d = (n, 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]);
7
+ L.call(e, t) && b(n, t, e[t]);
8
+ if (k)
9
+ for (var t of k(e))
10
+ T.call(e, t) && b(n, t, e[t]);
11
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";
16
- import { createLineGeometry as U } from "../utils/createLineGeometry.js";
17
- import { isPanoramaLike as x, isModelLike as _ } from "../../shared-utils/five/mode.js";
12
+ }, p = (n, e) => V(n, F(e));
13
+ var i = (n, e, t) => (b(n, typeof e != "symbol" ? e + "" : e, t), t);
14
+ import * as h from "three";
15
+ import { logWarning as x, logError as U } from "../../shared-utils/log.js";
16
+ import { createLineGeometry as S } from "../utils/createLineGeometry.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";
23
+ import { BetterTween as G, tweenProgress as O } from "../../shared-utils/animationFrame/BetterTween.js";
24
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 = (
25
+ import w from "../../PanoTagPlugin/controller/index.js";
26
+ import A 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));
156
- i(this, "flickerAnime", G(300).yoyo(!0).repeat(5));
158
+ i(this, "flowAnime", new G({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
159
+ i(this, "flickerAnime", O(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;
193
+ var r, a, o, u;
189
194
  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), {
195
+ this.mesh.material.uniforms.flicker.value = s, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && y(this.startTagContainer.tag) && ((o = this.startTagContainer.app) == null || o.$set(p(d({}, this.startTagContainer.tag.data), {
191
196
  opacity: s,
192
197
  name: this.name,
193
198
  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 })));
199
+ }))), this.endTagContainer.tag && y(this.endTagContainer.tag) && ((u = this.endTagContainer.app) == null || u.$set(p(d({}, this.endTagContainer.tag.data), { opacity: s })));
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) => U("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 s = new h.BufferGeometry(), r = new h.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 h.Color() },
208
213
  mapOpacity: { value: 1 },
209
- backgroundColor: { value: new l.Color() },
214
+ backgroundColor: { value: new h.Color() },
210
215
  backgroundOpacity: { value: 0 },
211
- borderColor: { value: new l.Color() },
216
+ borderColor: { value: new h.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 h.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);
220
225
  }
221
226
  get panoGroup() {
222
227
  return this._panoGroup;
@@ -263,7 +268,7 @@ 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);
271
+ const s = B(e);
267
272
  if (this._panoGroup = s, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
268
273
  const a = t.skipPanoGroup ? s.map((o) => this.five.work.observers[o]).map((o) => o.standingPosition.clone()) : null;
269
274
  this.skippedPositions = a;
@@ -273,37 +278,55 @@ class R {
273
278
  }
274
279
  /** 通过路径设置线条形状 */
275
280
  setGeometryByPath(e, t) {
276
- var h, g, f;
281
+ var c, 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 s = (c = t == null ? void 0 : t.scale) != null ? c : this.scale, r = (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 = s, this.width = r, this.unitLength = a;
286
+ const { geometry: o, maxU: u, curvePath: g, curvePoints: m } = S({
282
287
  path: e,
283
288
  width: r * s,
284
289
  unitLength: a * s,
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 = u, this.five.needsRender = !0;
293
+ const l = e, f = d(d({}, this.geometryStyle), t);
294
+ this.path = l, this.geometryStyle = f;
288
295
  }
289
296
  /** 设置线条材质 */
290
297
  setMartial(e) {
291
- var t;
298
+ var s;
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), ((s = e == null ? void 0 : e.texture) == null ? void 0 : s.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 = d(d({}, this.materialStyle), e);
303
+ this.materialStyle = t;
304
+ }
305
+ /** 设置模型状态 */
306
+ setMeshStyle(e) {
307
+ if (e != null && e.translate) {
308
+ const s = new h.Vector3(), r = new h.Vector3().fromArray(e.translate);
309
+ s.add(r), s.y += this.heightOffset, this.mesh.position.copy(s);
310
+ }
311
+ const t = d(d({}, this.meshStyle), e);
312
+ this.meshStyle = t;
313
+ }
314
+ /** 设置 Y 轴上的偏移量,为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
315
+ setHeightOffset(e) {
316
+ const t = new h.Vector3();
317
+ this.meshStyle.translate && t.add(new h.Vector3().fromArray(this.meshStyle.translate)), t.setY(t.y + e), this.mesh.position.copy(t), this.heightOffset = e, this.five.needsRender = !0;
295
318
  }
296
319
  /** 设置贴图颜色 */
297
320
  setColor(e) {
298
321
  if (this.disposed)
299
322
  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;
323
+ e && (this.mesh.material.uniforms.mapColor.value = new h.Color().set(e)), this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
301
324
  }
302
325
  /** 设置边框 */
303
326
  setBorderColor(e) {
304
327
  if (this.disposed)
305
328
  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;
329
+ this.mesh.material.uniforms.borderColor.value = new h.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
307
330
  }
308
331
  /** 设置边框透明度 */
309
332
  setBorderOpacity(e) {
@@ -315,7 +338,7 @@ class R {
315
338
  setBackgroundColor(e) {
316
339
  if (this.disposed)
317
340
  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;
341
+ this.mesh.material.uniforms.backgroundColor.value = new h.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
319
342
  }
320
343
  /** 设置背景透明度 */
321
344
  setBackgroundOpacity(e) {
@@ -340,7 +363,7 @@ class R {
340
363
  if (this.disposed)
341
364
  return this.logError("disposed");
342
365
  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());
366
+ this.disposed || this.textureUrl === e && (t.wrapT = h.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
367
  });
345
368
  }
346
369
  setVisibleFloorIndexes(e) {
@@ -371,34 +394,34 @@ class R {
371
394
  return this.disposed ? this.logError("disposed") : this.cacheLengths.length !== 0 ? this.cacheLengths[e] : (this.cacheLengths = this.getPanoGroupLengths(), this.cacheLengths[e]);
372
395
  }
373
396
  getPanoGroupLengths() {
374
- var u;
397
+ var m;
375
398
  if (!this.curvePoints || !this.curvePath)
376
399
  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];
381
- if (!f)
400
+ const e = this.panoGroup.map((l) => this.five.work.observers[l]), t = this.curvePoints.length, s = this.curvePath.getLength(), r = t - 1, a = s / r, o = (m = this.curvePath.getLengths(r)) != null ? m : [], u = [];
401
+ let g = 0;
402
+ for (let l = 0; l < t; l++) {
403
+ const f = this.curvePoints[l], c = e[g];
404
+ if (!c)
382
405
  break;
383
- f.standingPosition.clone().setY(0).distanceTo(g.clone().setY(0)) < a && (d.push(o[h]), m += 1);
406
+ c.standingPosition.clone().setY(0).distanceTo(f.clone().setY(0)) < a && (u.push(o[l]), g += 1);
384
407
  }
385
- return d;
408
+ return u;
386
409
  }
387
410
  setTag(e, t) {
388
411
  const s = this.curvePath, r = e === "start" ? this.startTagContainer : this.endTagContainer;
389
412
  t || r.plugin.clearTags();
390
- const o = A({}, {
413
+ const o = I({}, {
391
414
  contentType: "Custom",
392
415
  stickType: "2DPoint",
393
416
  config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
394
417
  style: { point: { enabled: !1 } },
395
418
  data: {}
396
419
  }, 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();
420
+ r.tag = o, y(o) && (r.tag.element = (u) => {
421
+ var l, f;
422
+ (l = r.app) == null || l.$destroy();
423
+ const g = e === "start" ? p(d({}, o.data), { name: this.name, distance: Math.round((f = s.getLength()) != null ? f : 0), i18n: this.plugin.config.i18n }) : o.data, m = new A({ target: u, intro: !0, props: g });
424
+ return r.app = m, () => m.$destroy();
402
425
  }), r.plugin.load({ tagList: [r.tag] });
403
426
  }
404
427
  doShow() {
@@ -412,17 +435,17 @@ class R {
412
435
  if (e.length < 2)
413
436
  return [];
414
437
  const a = e.map((o) => t.observers[o]).map((o) => o.standingPosition.toArray());
415
- return [p({ type: "CatmullRomCurve3", points: a }, s)];
438
+ return [d({ type: "CatmullRomCurve3", points: a }, s)];
416
439
  }
417
440
  }
418
- function b(n) {
441
+ function y(n) {
419
442
  return n.contentType === "Custom";
420
443
  }
421
- const ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
444
+ const se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
422
445
  __proto__: null,
423
- GuideLineModeItem: R
446
+ GuideLineModeItem: N
424
447
  }, Symbol.toStringTag, { value: "Module" }));
425
448
  export {
426
- R as GuideLineModeItem,
427
- ie as GuideLineModeItem$1
449
+ N as GuideLineModeItem,
450
+ se as GuideLineModeItem$1
428
451
  };
@@ -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,