@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,4 +1,10 @@
1
- import type { Work } from '@realsee/five';
2
- export default function getFloorIndex(work: Work, point: {
1
+ export default function getFloorIndex(observer: {
2
+ floorIndex: number;
3
+ position: {
4
+ x: number;
5
+ y: number;
6
+ z: number;
7
+ };
8
+ }[], point: {
3
9
  y: number;
4
10
  }): number;
@@ -110,7 +110,6 @@ import "../shared-utils/five/calculateThreeMouse.js";
110
110
  import "../PanoTagPlugin/utils/tag/adaptConfig.js";
111
111
  import "../shared-utils/typescript/entries.js";
112
112
  import "../shared-utils/url/getUrl.js";
113
- import "../shared-utils/five/transformPosition.js";
114
113
  import "../shared-utils/five/getFloorIndex.js";
115
114
  import "../shared-utils/safeObj.js";
116
115
  import "../PanoTagPlugin/Components/TagContainer.js";
@@ -198,7 +197,7 @@ import "../shared-utils/nearlyEqual.js";
198
197
  import "./utils/coordinatesToVector.js";
199
198
  import "../shared-utils/isTruelyObject.js";
200
199
  import "./utils/formatRad.js";
201
- const M = "v1.0.6", G = "CruisePlugin", x = `${G}@${M}`, or = (c) => `${x}--${c}`, D = () => {
200
+ const M = "v1.0.6", G = "CruisePlugin", x = `${G}@${M}`, ar = (c) => `${x}--${c}`, D = () => {
202
201
  console.error(`${x} is disposed`);
203
202
  }, W = () => {
204
203
  console.warn(`${x} is disabled`);
@@ -245,30 +244,30 @@ class z extends V {
245
244
  */
246
245
  load(e, t, r) {
247
246
  return v(this, null, function* () {
248
- var o, m, f, u, h, g;
247
+ var o, m, p, u, h, g;
249
248
  if (this.state.disposed)
250
249
  return D();
251
- this.privateState.fiveOriginGetProgress || (m = (o = this.five.controller) == null ? void 0 : o.cameraMotion) != null && m.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (u = (f = this.five.controller) == null ? void 0 : f.cameraMotion) == null ? void 0 : u.getProgress), this.clear();
250
+ this.privateState.fiveOriginGetProgress || (m = (o = this.five.controller) == null ? void 0 : o.cameraMotion) != null && m.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (u = (p = this.five.controller) == null ? void 0 : p.cameraMotion) == null ? void 0 : u.getProgress), this.clear();
252
251
  const i = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, n = yield this.formatData(e);
253
252
  this.data = n, this.hooks.emit("dataChange", n, i);
254
253
  let s = [], d;
255
- const a = this.data.keyframes.filter((p) => p.data.panoIndex !== void 0);
256
- a.filter((p, y) => {
254
+ const a = this.data.keyframes.filter((f) => f.data.panoIndex !== void 0);
255
+ a.filter((f, y) => {
257
256
  var S;
258
- return p.data.panoIndex !== ((S = a[y - 1]) == null ? void 0 : S.data.panoIndex);
259
- }).map((p) => p.data.panoIndex).forEach((p) => {
257
+ return f.data.panoIndex !== ((S = a[y - 1]) == null ? void 0 : S.data.panoIndex);
258
+ }).map((f) => f.data.panoIndex).forEach((f) => {
260
259
  var S, k;
261
- const y = (S = this.five.work.observers[p]) == null ? void 0 : S.floorIndex;
260
+ const y = (S = this.five.work.observers[f]) == null ? void 0 : S.floorIndex;
262
261
  if (y !== void 0)
263
262
  if (d === y) {
264
263
  const b = s.length - 1;
265
- s[b] = [...(k = s[b]) != null ? k : [], p];
264
+ s[b] = [...(k = s[b]) != null ? k : [], f];
266
265
  } else {
267
266
  d = y;
268
267
  const b = s.length;
269
- s[b] = [p];
268
+ s[b] = [f];
270
269
  }
271
- }), !this.GuideLine && ((h = this.config) == null ? void 0 : h.useGuideLine) !== !1 && n.useGuildLine !== !1 && (this.GuideLine = $(this.five, this.config)), (g = this.GuideLine) == null || g.load({ routes: s.map((p) => ({ panoIndexList: p })), config: n.guildPluginOptions }), t ? this.setState(t, { userAction: r }) : (this.setState({ playing: !1 }, { userAction: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing, { userAction: !1 }), this.changeSpeed(this.state.speed)), this.clearPauseData(), console.debug(`${x} loaded`, n), this.hooks.emit("dataLoaded", n);
270
+ }), !this.GuideLine && ((h = this.config) == null ? void 0 : h.useGuideLine) !== !1 && n.useGuildLine !== !1 && (this.GuideLine = $(this.five, this.config)), (g = this.GuideLine) == null || g.load({ routes: s.map((f) => ({ panoIndexList: f })), config: n.guildPluginOptions }), t ? this.setState(t, { userAction: r }) : (this.setState({ playing: !1 }, { userAction: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing, { userAction: !1 }), this.changeSpeed(this.state.speed)), this.clearPauseData(), console.debug(`${x} loaded`, n), this.hooks.emit("dataLoaded", n);
272
271
  });
273
272
  }
274
273
  /**
@@ -368,12 +367,12 @@ class z extends V {
368
367
  const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration: d } = r;
369
368
  return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = d, r.panoIndexList.forEach((a, o) => {
370
369
  const m = (() => {
371
- var p, y, S, k;
372
- const f = r.panoIndexList.slice(o).find((b) => b !== a);
373
- if (f === void 0)
370
+ var f, y, S, k;
371
+ const p = r.panoIndexList.slice(o).find((b) => b !== a);
372
+ if (p === void 0)
374
373
  return;
375
- const u = (p = t[a]) == null ? void 0 : p.position, h = (y = t[f]) == null ? void 0 : y.position;
376
- if (!h || !u || ((S = t[a]) == null ? void 0 : S.floorIndex) !== ((k = t[f]) == null ? void 0 : k.floorIndex))
374
+ const u = (f = t[a]) == null ? void 0 : f.position, h = (y = t[p]) == null ? void 0 : y.position;
375
+ if (!h || !u || ((S = t[a]) == null ? void 0 : S.floorIndex) !== ((k = t[p]) == null ? void 0 : k.floorIndex))
377
376
  return;
378
377
  const g = new j.Vector3().subVectors(h, u);
379
378
  return N(g.normalize());
@@ -426,23 +425,23 @@ class z extends V {
426
425
  const d = t.keyframes, a = this.getPauseData();
427
426
  (e == null ? void 0 : e.notEmitEvent) !== !0 && n.emit("play", { userAction: (u = e == null ? void 0 : e.userAction) != null ? u : !0 });
428
427
  let o = !1;
429
- const f = yield (() => v(this, null, function* () {
428
+ const p = yield (() => v(this, null, function* () {
430
429
  var h, g;
431
430
  if ((e == null ? void 0 : e.playFromIndex) !== void 0)
432
431
  return e.playFromIndex;
433
432
  if ((e == null ? void 0 : e.playFromId) !== void 0)
434
- return (h = this.data) == null ? void 0 : h.keyframes.findIndex((p) => p.id === e.playFromId);
433
+ return (h = this.data) == null ? void 0 : h.keyframes.findIndex((f) => f.id === e.playFromId);
435
434
  if (a != null && a.keyframeId) {
436
- const p = (g = this.data) == null ? void 0 : g.keyframes.find((y) => y.id === a.keyframeId);
435
+ const f = (g = this.data) == null ? void 0 : g.keyframes.find((y) => y.id === a.keyframeId);
437
436
  if (a != null && a.fiveState && (yield this.move(a.fiveState, {
438
437
  moveEffect: i.moveToFirstPanoEffect,
439
438
  duration: i.moveToFirstPanoDuration
440
- })), p) {
441
- if (p.data.effect === "Move")
442
- return p.index;
443
- if (p.data.effect === "Rotate") {
439
+ })), f) {
440
+ if (f.data.effect === "Move")
441
+ return f.index;
442
+ if (f.data.effect === "Rotate") {
444
443
  const y = a.duration !== void 0 ? a.duration * (1 - a.playedProgress) : void 0;
445
- return yield this.playKeyframe(p, { duration: y }), o = !0, p.index + 1;
444
+ return yield this.playKeyframe(f, { duration: y }), o = !0, f.index + 1;
446
445
  }
447
446
  }
448
447
  }
@@ -451,7 +450,7 @@ class z extends V {
451
450
  for (const h of d) {
452
451
  if (i.broke || !r.playing || !i.playing || s !== i.playId)
453
452
  return;
454
- if (!(f !== void 0 && h.index < f))
453
+ if (!(p !== void 0 && h.index < p))
455
454
  try {
456
455
  n.emit("playIndexChange", h.index, h), yield this.playKeyframe(h, {
457
456
  moveEffect: o === !1 ? i.moveToFirstPanoEffect : void 0,
@@ -582,11 +581,11 @@ class z extends V {
582
581
  return v(this, arguments, function* (e, t = {}) {
583
582
  const { five: i, privateState: n, state: s } = this, d = (() => {
584
583
  var u, h;
585
- const m = (u = s.config) == null ? void 0 : u.speedConfig, f = (h = e.rotateSpeed) != null ? h : m == null ? void 0 : m.rotateSpeed;
584
+ const m = (u = s.config) == null ? void 0 : u.speedConfig, p = (h = e.rotateSpeed) != null ? h : m == null ? void 0 : m.rotateSpeed;
586
585
  if ((m == null ? void 0 : m.rotateSpeedUnit) === void 0)
587
- return f;
588
- if (f !== void 0)
589
- return m.rotateSpeedUnit === "rad/ms" ? f : f / 1e3;
586
+ return p;
587
+ if (p !== void 0)
588
+ return m.rotateSpeedUnit === "rad/ms" ? p : p / 1e3;
590
589
  })(), a = (() => {
591
590
  if (t.duration)
592
591
  return t.duration;
@@ -614,8 +613,8 @@ class z extends V {
614
613
  const s = r.getCurrentState().mode !== "Panorama";
615
614
  s && (this.privateState.modeChanging = !0);
616
615
  const d = (() => {
617
- var f, u;
618
- const o = (f = n.config) == null ? void 0 : f.speedConfig, m = (u = e.moveSpeed) != null ? u : o == null ? void 0 : o.moveSpeed;
616
+ var p, u;
617
+ const o = (p = n.config) == null ? void 0 : p.speedConfig, m = (u = e.moveSpeed) != null ? u : o == null ? void 0 : o.moveSpeed;
619
618
  if ((o == null ? void 0 : o.moveSpeedUnit) === void 0)
620
619
  return m;
621
620
  if (m !== void 0)
@@ -630,13 +629,13 @@ class z extends V {
630
629
  return 800;
631
630
  })();
632
631
  i.currentPlayKeyframe && (i.currentPlayKeyframe.originDuration = a), yield new Promise((o) => {
633
- var m, f, u;
632
+ var m, p, u;
634
633
  r.moveToPano(e.panoIndex, {
635
634
  latitude: e.latitude,
636
635
  longitude: e.longitude,
637
636
  fov: e.fov,
638
637
  duration: this.getSpeededDuration(a),
639
- effect: (u = (f = t == null ? void 0 : t.moveEffect) != null ? f : (m = this.state.config) == null ? void 0 : m.moveEffect) != null ? u : e.moveEffect,
638
+ effect: (u = (p = t == null ? void 0 : t.moveEffect) != null ? p : (m = this.state.config) == null ? void 0 : m.moveEffect) != null ? u : e.moveEffect,
640
639
  moveCancelCallback: () => o(),
641
640
  moveEndCallback: () => o()
642
641
  }), s && r.once("panoArrived", () => o());
@@ -755,5 +754,5 @@ class z extends V {
755
754
  I(z, "PluginVersion", M);
756
755
  export {
757
756
  z as default,
758
- or as pluginFlag
757
+ ar as pluginFlag
759
758
  };
@@ -1,5 +1,5 @@
1
1
  import i from "./Controller.js";
2
- import { typing as fo } from "./typing/index.js";
2
+ import { typing as ao } from "./typing/index.js";
3
3
  import "../base/BasePluginWithData.js";
4
4
  import "../base/BasePlugin.js";
5
5
  import "../shared-utils/Subscribe.js";
@@ -78,7 +78,6 @@ import "../shared-utils/five/calculateThreeMouse.js";
78
78
  import "../PanoTagPlugin/utils/tag/adaptConfig.js";
79
79
  import "../shared-utils/typescript/entries.js";
80
80
  import "../shared-utils/url/getUrl.js";
81
- import "../shared-utils/five/transformPosition.js";
82
81
  import "../shared-utils/five/getFloorIndex.js";
83
82
  import "../shared-utils/safeObj.js";
84
83
  import "../PanoTagPlugin/Components/TagContainer.js";
@@ -170,10 +169,10 @@ import "./utils/vectorToCoordinates.js";
170
169
  import "./utils/formatRad.js";
171
170
  import "./utils/linerValue.js";
172
171
  import "./utils/sleep.js";
173
- const go = (r) => new i(r);
172
+ const lo = (r) => new i(r);
174
173
  export {
175
- go as CruisePlugin,
174
+ lo as CruisePlugin,
176
175
  i as CruisePluginController,
177
- fo as CruisePluginTypes,
178
- go as default
176
+ ao as CruisePluginTypes,
177
+ lo as default
179
178
  };
@@ -1,29 +1,29 @@
1
- var M = Object.defineProperty;
1
+ var O = Object.defineProperty;
2
2
  var G = Object.getOwnPropertySymbols;
3
- var N = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
4
- var f = (p, o, t) => o in p ? M(p, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[o] = t, c = (p, o) => {
3
+ var M = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable;
4
+ var c = (p, o, t) => o in p ? O(p, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[o] = t, f = (p, o) => {
5
5
  for (var t in o || (o = {}))
6
- N.call(o, t) && f(p, t, o[t]);
6
+ M.call(o, t) && c(p, t, o[t]);
7
7
  if (G)
8
8
  for (var t of G(o))
9
- O.call(o, t) && f(p, t, o[t]);
9
+ N.call(o, t) && c(p, t, o[t]);
10
10
  return p;
11
11
  };
12
- var d = (p, o, t) => (f(p, typeof o != "symbol" ? o + "" : o, t), t);
13
- var u = (p, o, t) => new Promise((i, s) => {
14
- var a = (m) => {
12
+ var d = (p, o, t) => (c(p, typeof o != "symbol" ? o + "" : o, t), t);
13
+ var u = (p, o, t) => new Promise((i, a) => {
14
+ var m = (s) => {
15
15
  try {
16
- r(t.next(m));
16
+ r(t.next(s));
17
17
  } catch (n) {
18
- s(n);
18
+ a(n);
19
19
  }
20
- }, e = (m) => {
20
+ }, e = (s) => {
21
21
  try {
22
- r(t.throw(m));
22
+ r(t.throw(s));
23
23
  } catch (n) {
24
- s(n);
24
+ a(n);
25
25
  }
26
- }, r = (m) => m.done ? i(m.value) : Promise.resolve(m.value).then(a, e);
26
+ }, r = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(m, e);
27
27
  r((t = t.apply(p, o)).next());
28
28
  });
29
29
  import { Controller as P } from "../base/BasePluginWithData.js";
@@ -103,7 +103,6 @@ import "../shared-utils/five/calculateThreeMouse.js";
103
103
  import "../PanoTagPlugin/utils/tag/adaptConfig.js";
104
104
  import "../shared-utils/typescript/entries.js";
105
105
  import "../shared-utils/url/getUrl.js";
106
- import "../shared-utils/five/transformPosition.js";
107
106
  import "../shared-utils/five/getFloorIndex.js";
108
107
  import "../shared-utils/safeObj.js";
109
108
  import "../PanoTagPlugin/Components/TagContainer.js";
@@ -197,8 +196,8 @@ import "../CruisePlugin/utils/vectorToCoordinates.js";
197
196
  import "../CruisePlugin/utils/formatRad.js";
198
197
  import "../CruisePlugin/utils/linerValue.js";
199
198
  import "../CruisePlugin/utils/sleep.js";
200
- const V = "v1.1.0", b = "GuideLinePlugin", g = `${b}@${V}`, zr = (p) => `${g}--${p}`;
201
- class Kr extends P {
199
+ const V = "v1.1.0", b = "GuideLinePlugin", g = `${b}@${V}`, qr = (p) => `${g}--${p}`;
200
+ class zr extends P {
202
201
  constructor(t, i) {
203
202
  super(t, i);
204
203
  d(this, "version", V);
@@ -226,27 +225,27 @@ class Kr extends P {
226
225
  get disposed() {
227
226
  return this._disposed;
228
227
  }
229
- load(t, i, s = !0) {
228
+ load(t, i, a = !0) {
230
229
  return u(this, null, function* () {
231
- var v, w, E, I, y, L, D;
230
+ var v, w, I, E, y, L, D;
232
231
  if (this.disposed)
233
232
  return;
234
- const a = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, e = yield this.formatData(t);
235
- this.hooks.emit("dataChange", e, a), this.data = e;
233
+ const m = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, e = yield this.formatData(t);
234
+ this.hooks.emit("dataChange", e, m), this.data = e;
236
235
  const r = e.config, n = {
237
236
  panorama_style: {
238
237
  visible: !!(!e.lines && e.routes),
239
238
  unit_length: (v = r == null ? void 0 : r.unitHeight) != null ? v : 0.4,
240
239
  width: (w = r == null ? void 0 : r.unitWidth) != null ? w : 0.6,
241
- texture: { url: (E = r == null ? void 0 : r.arrowTextureUrl) != null ? E : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }
240
+ texture: { url: (I = r == null ? void 0 : r.arrowTextureUrl) != null ? I : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }
242
241
  }
243
- }, h = (y = (I = e.routes) == null ? void 0 : I.map((l) => {
242
+ }, h = (y = (E = e.routes) == null ? void 0 : E.map((l) => {
244
243
  var _;
245
244
  return S({}, n, { id: (_ = l.id) != null ? _ : Date.now(), pano_group: l.panoIndexList });
246
245
  })) != null ? y : [], A = (D = (L = e.lines) == null ? void 0 : L.map((l) => S({}, n, l))) != null ? D : [], C = [...h, ...A];
247
246
  yield this.waitFiveLoaded(), this.clear(), C.forEach((l) => {
248
247
  this.addGuideLineItem(l);
249
- }), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", e), console.debug(`${g} loaded`, e);
248
+ }), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: a }), this.hooks.emit("dataLoaded", e), console.debug(`${g} loaded`, e);
250
249
  });
251
250
  }
252
251
  formatData(t) {
@@ -279,18 +278,18 @@ class Kr extends P {
279
278
  this.disposed || (this.clear(), this.hooks.emit("dispose"));
280
279
  }
281
280
  setState(t, i) {
282
- var a;
281
+ var m;
283
282
  if (this.disposed)
284
283
  return this.disposedErrorLog();
285
- const s = c({}, this.state);
286
- this.state = c(c({}, this.state), t), t.visible !== void 0 && t.visible !== s.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== s.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction), $(s, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: (a = i == null ? void 0 : i.userAction) != null ? a : !0 }), this.five.needsRender = !0);
284
+ const a = f({}, this.state);
285
+ this.state = f(f({}, this.state), t), t.visible !== void 0 && t.visible !== a.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== a.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction), $(a, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: a, userAction: (m = i == null ? void 0 : i.userAction) != null ? m : !0 }), this.five.needsRender = !0);
287
286
  }
288
287
  /** 添加一个 GuideLineItem */
289
288
  addGuideLineItem(t) {
290
- const i = t.render_id || t.id, s = this.itemMap.get(i);
291
- s && this.removeGuideLineItem(s);
292
- const a = new k({ five: this.five, id: i, plugin: this });
293
- return this.itemMap.set(i, a), t && a.setData(t), this.heightOffset += 1e-4, a.setHeightOffset(this.heightOffset), a;
289
+ const i = t.render_id || t.id, a = this.itemMap.get(i);
290
+ a && this.removeGuideLineItem(a);
291
+ const m = new k({ five: this.five, id: i, plugin: this });
292
+ return this.itemMap.set(i, m), t && m.setData(t), this.heightOffset += 1e-4, m.modelItem.setHeightOffset(this.heightOffset), m.panoramaItem.setHeightOffset(this.heightOffset), m;
294
293
  }
295
294
  /** 获取 Plugin 内的 GuideLineItem */
296
295
  getGuideLineItemByID(t) {
@@ -306,22 +305,22 @@ class Kr extends P {
306
305
  function i(e) {
307
306
  return Array.isArray(e) && e.every((r) => typeof r == "number");
308
307
  }
309
- function s(e, r) {
308
+ function a(e, r) {
310
309
  return new T.Vector3().fromArray(e).distanceTo(new T.Vector3().fromArray(r)) < 0.01;
311
310
  }
312
- function a(e) {
313
- var m;
314
- const r = (m = e.tag) == null ? void 0 : m.position;
311
+ function m(e) {
312
+ var s;
313
+ const r = (s = e.tag) == null ? void 0 : s.position;
315
314
  return i(r) ? t.every((n) => {
316
315
  var h;
317
- return i((h = n.tag) == null ? void 0 : h.position) ? !s(r, n.tag.position) : !0;
316
+ return i((h = n.tag) == null ? void 0 : h.position) ? !a(r, n.tag.position) : !0;
318
317
  }) : !1;
319
318
  }
320
319
  this.itemMap.forEach((e) => {
321
- const r = e.modelItem.startTagContainer, m = e.modelItem.endTagContainer, n = a(r);
320
+ const r = e.modelItem.startTagContainer, s = e.modelItem.endTagContainer, n = m(r);
322
321
  n && t.push(r), r.plugin.setState({ enabled: n }, {});
323
- const h = a(m);
324
- h && t.push(m), m.plugin.setState({ enabled: h }, {});
322
+ const h = m(s);
323
+ h && t.push(s), s.plugin.setState({ enabled: h }, {});
325
324
  });
326
325
  }
327
326
  /** 清空所有 GuideLineItem */
@@ -357,6 +356,6 @@ class Kr extends P {
357
356
  }
358
357
  }
359
358
  export {
360
- Kr as default,
361
- zr as pluginFlag
359
+ zr as default,
360
+ qr as pluginFlag
362
361
  };
@@ -1,17 +1,17 @@
1
1
  var v = Object.defineProperty;
2
2
  var w = Object.getOwnPropertySymbols;
3
- var b = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
4
- var h = (o, e, t) => e in o ? v(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, d = (o, e) => {
3
+ var S = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
4
+ var d = (o, e, t) => e in o ? v(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, c = (o, e) => {
5
5
  for (var t in e || (e = {}))
6
- b.call(e, t) && h(o, t, e[t]);
6
+ S.call(e, t) && d(o, t, e[t]);
7
7
  if (w)
8
8
  for (var t of w(e))
9
- x.call(e, t) && h(o, t, e[t]);
9
+ b.call(e, t) && d(o, t, e[t]);
10
10
  return o;
11
11
  };
12
- var s = (o, e, t) => (h(o, typeof e != "symbol" ? e + "" : e, t), t);
13
- var c = (o, e, t) => new Promise((n, i) => {
14
- var u = (r) => {
12
+ var s = (o, e, t) => (d(o, typeof e != "symbol" ? e + "" : e, t), t);
13
+ var g = (o, e, t) => new Promise((n, i) => {
14
+ var p = (r) => {
15
15
  try {
16
16
  a(t.next(r));
17
17
  } catch (m) {
@@ -23,13 +23,13 @@ var c = (o, e, t) => new Promise((n, i) => {
23
23
  } catch (m) {
24
24
  i(m);
25
25
  }
26
- }, a = (r) => r.done ? n(r.value) : Promise.resolve(r.value).then(u, l);
26
+ }, a = (r) => r.done ? n(r.value) : Promise.resolve(r.value).then(p, l);
27
27
  a((t = t.apply(o, e)).next());
28
28
  });
29
29
  import { GuideLineModeItem as y } from "../GuideLineModeItem/index.js";
30
- import G from "../../CruisePlugin/Controller.js";
31
- import { logError as L } from "../../shared-utils/log.js";
32
- import { to as S } from "../../shared-utils/to.js";
30
+ import x from "../../CruisePlugin/Controller.js";
31
+ import { logError as G } from "../../shared-utils/log.js";
32
+ import { to as L } from "../../shared-utils/to.js";
33
33
  import { Subscribe as k } from "@realsee/five";
34
34
  import { changeMode as P } from "../../shared-utils/five/changeMode.js";
35
35
  class C {
@@ -43,7 +43,7 @@ class C {
43
43
  s(this, "_visible", !0);
44
44
  s(this, "plugin");
45
45
  s(this, "five");
46
- s(this, "logError", (e) => L("GuideLineItem: ", e));
46
+ s(this, "logError", (e) => G("GuideLineItem: ", e));
47
47
  this.id = e.id, this.five = e.five, this.plugin = e.plugin, this.panoramaItem = new y(this.five, { mode: "panorama", plugin: this.plugin, parent: this }), this.modelItem = new y(this.five, { mode: "model", plugin: this.plugin, parent: this });
48
48
  }
49
49
  get visible() {
@@ -52,18 +52,15 @@ class C {
52
52
  setData(e) {
53
53
  this.setDataByMode("panorama", e), this.setDataByMode("model", e);
54
54
  }
55
- setHeightOffset(e) {
56
- this.modelItem.mesh.position.y = e, this.panoramaItem.mesh.position.y = e;
57
- }
58
55
  setDataByMode(e, t) {
59
- var r;
60
- const n = e === "panorama" ? this.panoramaItem : this.modelItem, i = e === "panorama" ? t.panorama_style : t.model_style, u = t.path, l = i, a = i;
56
+ var m;
57
+ const n = e === "panorama" ? this.panoramaItem : this.modelItem, i = e === "panorama" ? t.panorama_style : t.model_style, p = t.path, l = i, a = i, r = i;
61
58
  if (t.pano_group) {
62
- const m = e === "panorama";
63
- n.setGeometryByPanoGroup(t.pano_group, d({ skipPanoGroup: m }, l));
59
+ const h = e === "panorama";
60
+ n.setGeometryByPanoGroup(t.pano_group, c({ skipPanoGroup: h }, l));
64
61
  } else
65
- t.path && n.setGeometryByPath(u, l);
66
- n.name = t.name, n.setMartial(a), n.setVisibleFloorIndexes((r = t.visible_floor_indexes) != null ? r : null), n.setStartTag(i == null ? void 0 : i.start_tag), n.setEndTag(i == null ? void 0 : i.end_tag);
62
+ t.path && n.setGeometryByPath(p, l);
63
+ n.name = t.name, n.setMeshStyle(r), n.setMartial(a), n.setVisibleFloorIndexes((m = t.visible_floor_indexes) != null ? m : null), n.setStartTag(i == null ? void 0 : i.start_tag), n.setEndTag(i == null ? void 0 : i.end_tag);
67
64
  }
68
65
  show() {
69
66
  this._visible = !0, this.hooks.emit("show", { userAction: !0 });
@@ -75,47 +72,47 @@ class C {
75
72
  this.panoramaItem.dispose(), this.modelItem.dispose();
76
73
  }
77
74
  walk(e) {
78
- return c(this, null, function* () {
75
+ return g(this, null, function* () {
79
76
  if (!this.panoramaItem.panoGroup)
80
77
  return;
81
- const t = d({ panoIndexList: this.panoramaItem.panoGroup }, e);
78
+ const t = c({ panoIndexList: this.panoramaItem.panoGroup }, e);
82
79
  this.hooks.emit("walkStart", { userAction: !0 });
83
- const [n] = yield S(M(this.five, t));
80
+ const [n] = yield L(M(this.five, t));
84
81
  if (this.hooks.emit("walkEnded", { userAction: !0 }), n)
85
82
  return this.logError(n.message);
86
83
  });
87
84
  }
88
85
  }
89
86
  function M(o, e) {
90
- return c(this, null, function* () {
87
+ return g(this, null, function* () {
91
88
  if (e.panoIndexList.length === 0)
92
89
  return;
93
90
  const t = o.getCurrentState();
94
91
  t.mode !== "Panorama" && (yield P(o, ["Panorama", { longitude: t.longitude, latitude: 0, panoIndex: e.panoIndexList[0] }]));
95
- const n = new G(o, { useGuideLine: !1 });
96
- yield n.load(e), yield new Promise((i, u) => {
92
+ const n = new x(o, { useGuideLine: !1 });
93
+ yield n.load(e), yield new Promise((i, p) => {
97
94
  const l = o.getCurrentState();
98
95
  let a = e.panoIndexList.slice();
99
96
  l.panoIndex === a[0] && m(l.panoIndex), n.playFromStart();
100
- function r(p) {
101
- if (p !== "Panorama")
97
+ function r(u) {
98
+ if (u !== "Panorama")
102
99
  return f(new Error("mode not match"));
103
100
  }
104
- function m(p) {
101
+ function m(u) {
105
102
  const I = a[0];
106
- if (a = a.slice(1), p !== I)
107
- return f(new Error("panoIndex not match, wanted: " + I + ", got: " + p));
103
+ if (a = a.slice(1), u !== I)
104
+ return f(new Error("panoIndex not match, wanted: " + I + ", got: " + u));
108
105
  if (a.length === 0)
109
106
  return _();
110
107
  }
111
- function g() {
108
+ function h() {
112
109
  o.off("modeChange", r), o.off("panoArrived", m);
113
110
  }
114
- function f(p) {
115
- g(), u(p);
111
+ function f(u) {
112
+ h(), p(u);
116
113
  }
117
114
  function _() {
118
- g(), i();
115
+ h(), i();
119
116
  }
120
117
  o.on("modeChange", r), o.on("panoArrived", m);
121
118
  });
@@ -26,7 +26,6 @@ declare class GuideLineItem {
26
26
  plugin: GuideLinePlugin;
27
27
  });
28
28
  setData(data: PluginType.GuideLineItem): void;
29
- setHeightOffset(heightOffset: number): void;
30
29
  setDataByMode(mode: PluginType.GuideLineModeItemMode, data: PluginType.GuideLineItem): void;
31
30
  show(): void;
32
31
  hide(): void;
@@ -4,7 +4,7 @@ import "../shared-utils/log.js";
4
4
  import "../shared-utils/to.js";
5
5
  import "@realsee/five";
6
6
  import "../shared-utils/five/changeMode.js";
7
- import { GuideLineItem as xo } from "./GuideLineItem/index.js";
7
+ import { GuideLineItem as uo } from "./GuideLineItem/index.js";
8
8
  import "three";
9
9
  import "./utils/createLineGeometry.js";
10
10
  import "../vendor/polyline-normals/index.js";
@@ -74,7 +74,6 @@ import "../shared-utils/five/calculateThreeMouse.js";
74
74
  import "../PanoTagPlugin/utils/tag/adaptConfig.js";
75
75
  import "../shared-utils/typescript/entries.js";
76
76
  import "../shared-utils/url/getUrl.js";
77
- import "../shared-utils/five/transformPosition.js";
78
77
  import "../shared-utils/five/getFloorIndex.js";
79
78
  import "../shared-utils/safeObj.js";
80
79
  import "../PanoTagPlugin/Components/TagContainer.js";
@@ -170,5 +169,5 @@ import "../CruisePlugin/utils/formatRad.js";
170
169
  import "../CruisePlugin/utils/linerValue.js";
171
170
  import "../CruisePlugin/utils/sleep.js";
172
171
  export {
173
- xo as GuideLineItem
172
+ uo as GuideLineItem
174
173
  };