@realsee/dnalogel 3.6.0-dev.0 → 3.6.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 (397) hide show
  1. package/dist/AreaMakerPlugin/Controller.d.ts +2 -0
  2. package/dist/AreaMakerPlugin/typing.d.ts +1 -0
  3. package/dist/AreaMakerPlugin/utils/Item.d.ts +4 -0
  4. package/dist/CruisePlugin/Controller.d.ts +171 -0
  5. package/dist/CruisePlugin/index.d.ts +3 -4
  6. package/dist/CruisePlugin/typing.d.ts +2 -2
  7. package/dist/CruisePlugin/utils/linerValue.d.ts +1 -0
  8. package/dist/GuideLinePlugin/Controller.d.ts +6 -1
  9. package/dist/index.cjs.js +54 -54
  10. package/dist/index.js +4104 -4142
  11. package/dist/index.umd.js +58 -58
  12. package/libs/AreaMakerPlugin/Controller.d.ts +2 -0
  13. package/libs/AreaMakerPlugin/Controller.js +32 -30
  14. package/libs/AreaMakerPlugin/typing.d.ts +1 -0
  15. package/libs/AreaMakerPlugin/utils/Item.d.ts +4 -0
  16. package/libs/AreaMakerPlugin/utils/Item.js +59 -53
  17. package/libs/CruisePlugin/Controller.d.ts +171 -0
  18. package/libs/CruisePlugin/Controller.js +760 -0
  19. package/libs/CruisePlugin/index.d.ts +3 -4
  20. package/libs/CruisePlugin/index.js +12 -17
  21. package/libs/CruisePlugin/typing.d.ts +2 -2
  22. package/libs/GuideLinePlugin/Controller.d.ts +6 -1
  23. package/libs/GuideLinePlugin/Controller.js +62 -48
  24. package/libs/GuideLinePlugin/GuideLineItem/index.js +43 -53
  25. package/libs/GuideLinePlugin/GuideLineItem.js +10 -13
  26. package/libs/GuideLinePlugin/index.js +17 -20
  27. package/libs/PanoTagPlugin/controller/index.js +1 -1
  28. package/libs/base/BasePlugin.js +1 -1
  29. package/libs/components/AreaLabel/LabelItem.js +111 -68
  30. package/libs/index.js +119 -124
  31. package/libs/shared-utils/logger.js +1 -1
  32. package/package.json +2 -2
  33. package/dist/CruisePlugin/BaseController.d.ts +0 -159
  34. package/dist/CruisePlugin/Move.d.ts +0 -40
  35. package/dist/CruisePlugin/Work.d.ts +0 -120
  36. package/dist/CruisePlugin/utils/getFiveStateOnCurve.d.ts +0 -11
  37. package/dist/shared-utils/five/fiveLoaded.d.ts +0 -2
  38. package/docs/.nojekyll +0 -1
  39. package/docs/assets/highlight.css +0 -120
  40. package/docs/assets/main.js +0 -58
  41. package/docs/assets/search.js +0 -1
  42. package/docs/assets/style.css +0 -1367
  43. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -728
  44. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -681
  45. package/docs/classes/CSS3DRender.html +0 -776
  46. package/docs/classes/GuideLineItem.GuideLineItem.html +0 -479
  47. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -859
  48. package/docs/classes/Magnifier.html +0 -483
  49. package/docs/classes/ModelRoomLabelController.html +0 -401
  50. package/docs/classes/MoveController.html +0 -652
  51. package/docs/classes/Object3DHelperController.html +0 -643
  52. package/docs/classes/PaintBrush.html +0 -505
  53. package/docs/classes/PanoMeasurePluginLine.html +0 -525
  54. package/docs/classes/PanoMeasurePluginModel.html +0 -574
  55. package/docs/classes/PanoMeasurePluginPoint.html +0 -365
  56. package/docs/classes/PanoMeasurePluginPolyline.html +0 -570
  57. package/docs/classes/PanoTagPluginController.html +0 -1114
  58. package/docs/classes/Util.BetterTween.html +0 -419
  59. package/docs/classes/Util.Interval.html +0 -435
  60. package/docs/classes/Util.LineSegments.html +0 -387
  61. package/docs/classes/Util.Magnifier.html +0 -506
  62. package/docs/classes/Util.Object3D.html +0 -409
  63. package/docs/classes/Util.PointDomHelper.html +0 -410
  64. package/docs/classes/Util.PointHelper.html +0 -401
  65. package/docs/classes/Util.PointSelectorHelper.html +0 -457
  66. package/docs/classes/Util.Rectangle.html +0 -458
  67. package/docs/classes/WalkController.html +0 -671
  68. package/docs/enums/CameraMovementEffect.html +0 -313
  69. package/docs/enums/ContentType.html +0 -459
  70. package/docs/enums/DIRECTION.html +0 -323
  71. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -323
  72. package/docs/enums/DimensionType.html +0 -313
  73. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -316
  74. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -323
  75. package/docs/enums/PaintBrushTypeEnum.html +0 -316
  76. package/docs/enums/PointType.html +0 -313
  77. package/docs/enums/Rotation.html +0 -320
  78. package/docs/functions/AreaMakerPlugin.html +0 -293
  79. package/docs/functions/CSS3DRenderPlugin.html +0 -291
  80. package/docs/functions/CameraMovementPlugin.html +0 -296
  81. package/docs/functions/CruisePlugin.html +0 -293
  82. package/docs/functions/CurrentPanoImagePlugin.html +0 -293
  83. package/docs/functions/GuideLinePlugin.html +0 -293
  84. package/docs/functions/ItemLabelPlugin.html +0 -293
  85. package/docs/functions/MapviewFloorplanPlugin.html +0 -293
  86. package/docs/functions/ModelChassisCompassPlugin.html +0 -296
  87. package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -296
  88. package/docs/functions/ModelFloorplanPlugin.html +0 -293
  89. package/docs/functions/ModelItemLabelPlugin.html +0 -293
  90. package/docs/functions/ModelRoomLabelPlugin.html +0 -291
  91. package/docs/functions/ModelTVVideoPlugin.html +0 -293
  92. package/docs/functions/ModelViewPlugin.html +0 -296
  93. package/docs/functions/Object3DHelperPlugin.html +0 -291
  94. package/docs/functions/PanoCompassPlugin.html +0 -293
  95. package/docs/functions/PanoCursorRaycasterPlugin.html +0 -297
  96. package/docs/functions/PanoDoorLabelPlugin.html +0 -293
  97. package/docs/functions/PanoFloorplanRadarPlugin.html +0 -293
  98. package/docs/functions/PanoMeasurePlugin.html +0 -293
  99. package/docs/functions/PanoRulerPlugin.html +0 -296
  100. package/docs/functions/PanoRulerProPlugin.html +0 -296
  101. package/docs/functions/PanoSpatialTagPlugin.html +0 -296
  102. package/docs/functions/PanoTagPlugin.html +0 -298
  103. package/docs/functions/PanoVideoPlugin.html +0 -302
  104. package/docs/functions/PipelinePlugin.html +0 -291
  105. package/docs/functions/TopviewFloorplanPlugin.html +0 -293
  106. package/docs/functions/Util.absoluteUrl.html +0 -329
  107. package/docs/functions/Util.checkFiveModelLoaded.html +0 -332
  108. package/docs/functions/Util.equal.html +0 -341
  109. package/docs/functions/Util.getCoordsFromClient.html +0 -331
  110. package/docs/functions/Util.getCoordsFromElement.html +0 -331
  111. package/docs/functions/Util.getFrameTime.html +0 -323
  112. package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -331
  113. package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -331
  114. package/docs/functions/Util.isAbsoluteURL.html +0 -324
  115. package/docs/functions/Util.isModelLike.html +0 -324
  116. package/docs/functions/Util.isNil.html +0 -332
  117. package/docs/functions/Util.isPanoramaLike.html +0 -324
  118. package/docs/functions/Util.nextFrame.html +0 -337
  119. package/docs/functions/Util.notNil.html +0 -332
  120. package/docs/functions/Util.requestAnimationFrameInterval.html +0 -353
  121. package/docs/functions/Util.tweenProgress.html +0 -326
  122. package/docs/functions/Util.uuid.html +0 -322
  123. package/docs/functions/pluginFlag.html +0 -291
  124. package/docs/index.html +0 -357
  125. package/docs/interfaces/AddTagConfig.html +0 -306
  126. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -332
  127. package/docs/interfaces/AreaMakerPluginType.Config.html +0 -337
  128. package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -623
  129. package/docs/interfaces/AreaMakerPluginType.Params.html +0 -336
  130. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -386
  131. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -371
  132. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -336
  133. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -329
  134. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -328
  135. package/docs/interfaces/AreaMakerPluginType.State.html +0 -357
  136. package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -452
  137. package/docs/interfaces/CSS3DRenderPluginState.html +0 -328
  138. package/docs/interfaces/CameraMovementPluginExportType.html +0 -361
  139. package/docs/interfaces/CruisePluginTypes.Config.html +0 -362
  140. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -364
  141. package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -699
  142. package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -388
  143. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -424
  144. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -414
  145. package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -354
  146. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -322
  147. package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -390
  148. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -385
  149. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -524
  150. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -326
  151. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -318
  152. package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -340
  153. package/docs/interfaces/EventMap.html +0 -545
  154. package/docs/interfaces/FloorplanBounding.html +0 -335
  155. package/docs/interfaces/FloorplanData.html +0 -338
  156. package/docs/interfaces/FloorplanEntrance.html +0 -363
  157. package/docs/interfaces/FloorplanExtraObject.html +0 -353
  158. package/docs/interfaces/FloorplanExtraObject3D.html +0 -342
  159. package/docs/interfaces/FloorplanFloorData.html +0 -331
  160. package/docs/interfaces/FloorplanImagePosition.html +0 -317
  161. package/docs/interfaces/FloorplanObserver.html +0 -335
  162. package/docs/interfaces/FloorplanOutlineItem.html +0 -331
  163. package/docs/interfaces/FloorplanPosition.html +0 -317
  164. package/docs/interfaces/FloorplanRoomItem.html +0 -382
  165. package/docs/interfaces/FloorplanRoomLabelItem.html +0 -323
  166. package/docs/interfaces/FloorplanServerBounding.html +0 -335
  167. package/docs/interfaces/FloorplanServerComputedData.html +0 -334
  168. package/docs/interfaces/FloorplanServerData.html +0 -317
  169. package/docs/interfaces/FloorplanServerDoorItem.html +0 -334
  170. package/docs/interfaces/FloorplanServerDoorPosition.html +0 -320
  171. package/docs/interfaces/FloorplanServerEntrance.html +0 -363
  172. package/docs/interfaces/FloorplanServerFloorData.html +0 -331
  173. package/docs/interfaces/FloorplanServerImagePosition.html +0 -317
  174. package/docs/interfaces/FloorplanServerObserver.html +0 -335
  175. package/docs/interfaces/FloorplanServerOutlineItem.html +0 -331
  176. package/docs/interfaces/FloorplanServerPosition.html +0 -317
  177. package/docs/interfaces/FloorplanServerRoomItem.html +0 -394
  178. package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -323
  179. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -326
  180. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -365
  181. package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -529
  182. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -360
  183. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -351
  184. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -418
  185. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -340
  186. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -350
  187. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -486
  188. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -347
  189. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -486
  190. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -312
  191. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -333
  192. package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -358
  193. package/docs/interfaces/GuideLinePluginType.Route.html +0 -374
  194. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -356
  195. package/docs/interfaces/HelperOffset.html +0 -335
  196. package/docs/interfaces/ImagePlaneGroup.html +0 -309
  197. package/docs/interfaces/ItemLabelPluginData.html +0 -306
  198. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -391
  199. package/docs/interfaces/ItemLabelPluginParametersType.html +0 -327
  200. package/docs/interfaces/MinMax.html +0 -313
  201. package/docs/interfaces/ModelChassisCompassPluginData.html +0 -313
  202. package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -349
  203. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -313
  204. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -320
  205. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -357
  206. package/docs/interfaces/ModelItemLabelPluginData.html +0 -306
  207. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -391
  208. package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -313
  209. package/docs/interfaces/ModelRoomLabelPluginData.html +0 -306
  210. package/docs/interfaces/ModelTVVideoPluginData.html +0 -327
  211. package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -351
  212. package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -306
  213. package/docs/interfaces/ModelViewPluginExportType.html +0 -419
  214. package/docs/interfaces/Object3DHelperState.html +0 -320
  215. package/docs/interfaces/ObjectHelperControllers.html +0 -327
  216. package/docs/interfaces/PaintBrushAction.html +0 -366
  217. package/docs/interfaces/PaintBrushConfigs.html +0 -364
  218. package/docs/interfaces/PaintBrushState.html +0 -348
  219. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -428
  220. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -285
  221. package/docs/interfaces/PanoMeasureParameterType.html +0 -452
  222. package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -320
  223. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -317
  224. package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -313
  225. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -323
  226. package/docs/interfaces/PanoRulerPluginExportType.html +0 -380
  227. package/docs/interfaces/PanoRulerPluginOptions.html +0 -329
  228. package/docs/interfaces/PanoRulerPluginParameterType.html +0 -320
  229. package/docs/interfaces/PanoRulerProPluginExportType.html +0 -356
  230. package/docs/interfaces/PanoRulerProPluginOptions.html +0 -326
  231. package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -313
  232. package/docs/interfaces/PanoRulerProPluginState.html +0 -320
  233. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -299
  234. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -288
  235. package/docs/interfaces/PanoSpatialTagPluginData.html +0 -356
  236. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -338
  237. package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -434
  238. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -334
  239. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -355
  240. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -341
  241. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -334
  242. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -326
  243. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -344
  244. package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -317
  245. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -423
  246. package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -317
  247. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -352
  248. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -371
  249. package/docs/interfaces/Point.html +0 -320
  250. package/docs/interfaces/Room.html +0 -327
  251. package/docs/interfaces/RoomInfo.html +0 -313
  252. package/docs/interfaces/RoomLabel.html +0 -389
  253. package/docs/interfaces/RoomRules.html +0 -288
  254. package/docs/interfaces/Rooms.html +0 -288
  255. package/docs/interfaces/Scissor.html +0 -347
  256. package/docs/interfaces/State.html +0 -334
  257. package/docs/interfaces/TagCacheInterface.html +0 -365
  258. package/docs/interfaces/TagConfig.html +0 -568
  259. package/docs/interfaces/TagGLTFObjectGroup.html +0 -309
  260. package/docs/interfaces/TagIconUrl.html +0 -366
  261. package/docs/interfaces/TagObjectGroup.html +0 -309
  262. package/docs/interfaces/TagStyle.html +0 -319
  263. package/docs/interfaces/Tags.html +0 -2823
  264. package/docs/interfaces/TemporaryState.html +0 -306
  265. package/docs/interfaces/Util.MagnifierParameter.html +0 -394
  266. package/docs/interfaces/Util.MouseGroupParameter.html +0 -353
  267. package/docs/interfaces/Util.PointIntersection.html +0 -368
  268. package/docs/modules/AreaMakerPluginType.html +0 -326
  269. package/docs/modules/CruisePluginTypes.html +0 -331
  270. package/docs/modules/CurrentPanoImagePluginType.html +0 -300
  271. package/docs/modules/GuideLineItem.html +0 -292
  272. package/docs/modules/GuideLineModeItem.html +0 -297
  273. package/docs/modules/GuideLinePluginType.html +0 -353
  274. package/docs/modules/PanoVideoPluginType.html +0 -304
  275. package/docs/modules/Util.html +0 -354
  276. package/docs/modules.html +0 -560
  277. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -334
  278. package/docs/types/AreaMakerPluginType.PluginData.html +0 -304
  279. package/docs/types/AreaMakerPluginType.ServerData.html +0 -304
  280. package/docs/types/ArrayPosition.html +0 -282
  281. package/docs/types/AudioAppearance.html +0 -282
  282. package/docs/types/AudioTagTypeConfigKey.html +0 -282
  283. package/docs/types/CSS3DRenderExportType.html +0 -282
  284. package/docs/types/CSS3DRenderPluginExportType.html +0 -282
  285. package/docs/types/CSS3DRenderPluginParameterType.html +0 -282
  286. package/docs/types/ClassFunctionParameters.html +0 -289
  287. package/docs/types/Color.html +0 -282
  288. package/docs/types/ContentTypeConfigKey.html +0 -282
  289. package/docs/types/ContentTypeConfigKeySplit.html +0 -282
  290. package/docs/types/ContentTypeMap.html +0 -282
  291. package/docs/types/Create3DDomContainerReturnType.html +0 -282
  292. package/docs/types/Create3DElementReturnType.html +0 -282
  293. package/docs/types/CruisePluginExportType.html +0 -282
  294. package/docs/types/CruisePluginTypes.CruiseData.html +0 -321
  295. package/docs/types/CruisePluginTypes.MoveEffect.html +0 -298
  296. package/docs/types/CurrentPanoImagePluginExportType.html +0 -282
  297. package/docs/types/DeprecatedMediaPlaneProperty.html +0 -294
  298. package/docs/types/DeprecatedTagProperty.html +0 -297
  299. package/docs/types/Direction-1.html +0 -282
  300. package/docs/types/Direction4.html +0 -282
  301. package/docs/types/ElementRenderer.html +0 -306
  302. package/docs/types/FloorplanRuleLabels.html +0 -285
  303. package/docs/types/FloorplanServerRuleLabels.html +0 -282
  304. package/docs/types/GuideLinePluginExportType.html +0 -282
  305. package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -355
  306. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -376
  307. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -309
  308. package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -312
  309. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -312
  310. package/docs/types/GuideLinePluginType.PathItem.html +0 -312
  311. package/docs/types/GuideLinePluginType.PluginData.html +0 -321
  312. package/docs/types/HelperEventMap.html +0 -520
  313. package/docs/types/LoadTagConfig.html +0 -282
  314. package/docs/types/MapviewFloorplanPluginParameterType.html +0 -282
  315. package/docs/types/MapviewFloorplanPluginReturnType.html +0 -282
  316. package/docs/types/MediaData.html +0 -303
  317. package/docs/types/MediaStore.html +0 -287
  318. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -289
  319. package/docs/types/ModelFloorplanPluginParameterType.html +0 -282
  320. package/docs/types/ModelFloorplanPluginReturnType.html +0 -282
  321. package/docs/types/ModelId.html +0 -282
  322. package/docs/types/ModelRoomLabelPluginParameters.html +0 -282
  323. package/docs/types/ModelRoomLabelPluginReturnType.html +0 -282
  324. package/docs/types/MoveArgs.html +0 -292
  325. package/docs/types/MoveOpts.html +0 -290
  326. package/docs/types/Object3DHelperEventMap.html +0 -375
  327. package/docs/types/ObjectFit.html +0 -282
  328. package/docs/types/PaintBrushEventMap.html +0 -313
  329. package/docs/types/PanoCompassPluginData.html +0 -282
  330. package/docs/types/PanoCompassPluginExportType.html +0 -282
  331. package/docs/types/PanoCompassPluginParameterType.html +0 -282
  332. package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -282
  333. package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -282
  334. package/docs/types/PanoIndex.html +0 -282
  335. package/docs/types/PanoMeasurePluginEvent.html +0 -282
  336. package/docs/types/PanoMeasureReturnType.html +0 -282
  337. package/docs/types/PanoSpatialTagPluginId.html +0 -282
  338. package/docs/types/PanoTagPluginExportInterface.html +0 -282
  339. package/docs/types/PanoTagPluginParamsInterface.html +0 -282
  340. package/docs/types/PanoVideoPluginParameterType.html +0 -282
  341. package/docs/types/PanoVideoPluginReturnType.html +0 -282
  342. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -290
  343. package/docs/types/PipelinePluginParameterType.html +0 -282
  344. package/docs/types/PipelinePluginReturnType.html +0 -282
  345. package/docs/types/PlaneTag.html +0 -290
  346. package/docs/types/Point2DTag.html +0 -290
  347. package/docs/types/Point3DTag.html +0 -290
  348. package/docs/types/PointTag.html +0 -287
  349. package/docs/types/PointTagInstance.html +0 -287
  350. package/docs/types/Position.html +0 -282
  351. package/docs/types/RotateArgs.html +0 -294
  352. package/docs/types/RotateOpts.html +0 -290
  353. package/docs/types/RuleLabelsKey.html +0 -282
  354. package/docs/types/RuleLabelsValue.html +0 -282
  355. package/docs/types/StickType.html +0 -282
  356. package/docs/types/Tag.html +0 -348
  357. package/docs/types/Tag2D.html +0 -290
  358. package/docs/types/Tag3D.html +0 -290
  359. package/docs/types/TagConfigByKey.html +0 -287
  360. package/docs/types/TagContentType.html +0 -282
  361. package/docs/types/TagContentTypeMapping.html +0 -282
  362. package/docs/types/TagDimensionType.html +0 -284
  363. package/docs/types/TagElement.html +0 -292
  364. package/docs/types/TagEvents.html +0 -335
  365. package/docs/types/TagGLTFObject.html +0 -305
  366. package/docs/types/TagHooks.html +0 -282
  367. package/docs/types/TagId.html +0 -282
  368. package/docs/types/TagInstance.html +0 -360
  369. package/docs/types/TagPointType.html +0 -285
  370. package/docs/types/TagRendererMap.html +0 -287
  371. package/docs/types/TopviewFloorplanPluginParameterType.html +0 -282
  372. package/docs/types/TopviewFloorplanPluginReturnType.html +0 -282
  373. package/docs/types/WorkCode.html +0 -282
  374. package/docs/variables/FLOOR_TYPE_MAP.html +0 -292
  375. package/docs/variables/PLUGIN.html +0 -282
  376. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -285
  377. package/docs/variables/ROOM_TYPE_MAP.html +0 -292
  378. package/docs/variables/defaultGlobalConfig.html +0 -282
  379. package/docs/variables/itemLabelPluginServerParams.html +0 -289
  380. package/docs/variables/modelItemLabelPluginServerParams.html +0 -289
  381. package/docs/variables/modelRoomLabelPluginServerParams.html +0 -289
  382. package/libs/CruisePlugin/BaseController.d.ts +0 -159
  383. package/libs/CruisePlugin/BaseController.js +0 -231
  384. package/libs/CruisePlugin/Move.d.ts +0 -40
  385. package/libs/CruisePlugin/Move.js +0 -120
  386. package/libs/CruisePlugin/Work.d.ts +0 -120
  387. package/libs/CruisePlugin/Work.js +0 -597
  388. package/libs/CruisePlugin/utils/getFiveStateOnCurve.d.ts +0 -11
  389. package/libs/CruisePlugin/utils/getFiveStateOnCurve.js +0 -11
  390. package/libs/shared-utils/five/fiveLoaded.d.ts +0 -2
  391. package/libs/shared-utils/five/fiveLoaded.js +0 -30
  392. package/libs/shared-utils/formatRad.d.ts +0 -7
  393. package/libs/shared-utils/formatRad.js +0 -7
  394. /package/dist/{shared-utils → CruisePlugin/utils}/formatRad.d.ts +0 -0
  395. /package/dist/{shared-utils/vectorToCoordinate.d.ts → CruisePlugin/utils/vectorToCoordinates.d.ts} +0 -0
  396. /package/libs/{shared-utils/vectorToCoordinate.d.ts → CruisePlugin/utils/vectorToCoordinates.d.ts} +0 -0
  397. /package/libs/{shared-utils/vectorToCoordinate.js → CruisePlugin/utils/vectorToCoordinates.js} +0 -0
@@ -8,6 +8,8 @@ export declare class Controller extends BasePlugin.Controller<PluginType.State,
8
8
  state: PluginType.State;
9
9
  /** 标注模型 { id: item } 的映射表 */
10
10
  itemMap: Map<string | number, AreaMakerItem>;
11
+ /** 自定义 DOM */
12
+ itemRenderer?: PluginType.ItemRenderer;
11
13
  /** 标注模型容器 */
12
14
  modelGroup: THREE.Group;
13
15
  /** 当前使用的数据 */
@@ -2,16 +2,16 @@ var C = Object.defineProperty, M = Object.defineProperties;
2
2
  var I = Object.getOwnPropertyDescriptors;
3
3
  var p = Object.getOwnPropertySymbols;
4
4
  var A = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
5
- var u = (h, o, t) => o in h ? C(h, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[o] = t, d = (h, o) => {
6
- for (var t in o || (o = {}))
7
- A.call(o, t) && u(h, t, o[t]);
5
+ var u = (h, r, t) => r in h ? C(h, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[r] = t, d = (h, r) => {
6
+ for (var t in r || (r = {}))
7
+ A.call(r, t) && u(h, t, r[t]);
8
8
  if (p)
9
- for (var t of p(o))
10
- S.call(o, t) && u(h, t, o[t]);
9
+ for (var t of p(r))
10
+ S.call(r, t) && u(h, t, r[t]);
11
11
  return h;
12
- }, f = (h, o) => M(h, I(o));
13
- var r = (h, o, t) => (u(h, typeof o != "symbol" ? o + "" : o, t), t);
14
- var m = (h, o, t) => new Promise((i, e) => {
12
+ }, f = (h, r) => M(h, I(r));
13
+ var o = (h, r, t) => (u(h, typeof r != "symbol" ? r + "" : r, t), t);
14
+ var m = (h, r, t) => new Promise((i, e) => {
15
15
  var s = (n) => {
16
16
  try {
17
17
  l(t.next(n));
@@ -25,7 +25,7 @@ var m = (h, o, t) => new Promise((i, e) => {
25
25
  e(c);
26
26
  }
27
27
  }, l = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(s, a);
28
- l((t = t.apply(h, o)).next());
28
+ l((t = t.apply(h, r)).next());
29
29
  });
30
30
  import * as g from "three";
31
31
  import { Controller as _ } from "../base/BasePluginWithData.js";
@@ -61,7 +61,7 @@ import "../components/AreaLabel/LabelItem.js";
61
61
  import "../vendor/svelte/internal/index.js";
62
62
  import "../components/AreaLabel/Assets/roomLabelBg.js";
63
63
  import "../shared-utils/math/planimetry.js";
64
- class rt extends _ {
64
+ class at extends _ {
65
65
  /** AreaMakerPlugin
66
66
  * @param `five` `<Five>` Five 实例
67
67
  * @param `params` `<PluginType.Params> | <undefined>` 插件初始化参数
@@ -71,41 +71,43 @@ class rt extends _ {
71
71
  super(t);
72
72
  // ==================== public properties ====================
73
73
  /** 插件当前状态 */
74
- r(this, "state");
74
+ o(this, "state");
75
75
  /** 标注模型 { id: item } 的映射表 */
76
- r(this, "itemMap");
76
+ o(this, "itemMap");
77
+ /** 自定义 DOM */
78
+ o(this, "itemRenderer");
77
79
  /** 标注模型容器 */
78
- r(this, "modelGroup");
80
+ o(this, "modelGroup");
79
81
  /** 当前使用的数据 */
80
- r(this, "data");
82
+ o(this, "data");
81
83
  /** tag 容器 */
82
- r(this, "tagDomContainer");
84
+ o(this, "tagDomContainer");
83
85
  /** 用于监听容器尺寸变化的 iframe */
84
- r(this, "resizeIframe");
86
+ o(this, "resizeIframe");
85
87
  /** 查询问题使用的调试对象 */
86
- r(this, "checkMsg", {
88
+ o(this, "checkMsg", {
87
89
  childrenMountedState: ""
88
90
  });
89
91
  // ==================== private properties ====================
90
92
  /** 是否在 Five Change Mode 动画中 */
91
- r(this, "isInFiveChangeModeAnime", !1);
93
+ o(this, "isInFiveChangeModeAnime", !1);
92
94
  /** 子组件是否挂载 */
93
- r(this, "childrenMountedState", !1);
95
+ o(this, "childrenMountedState", !1);
94
96
  /** config 的原始值 */
95
- r(this, "_config");
97
+ o(this, "_config");
96
98
  /** disposed 的原始值 */
97
- r(this, "_disposed", !1);
99
+ o(this, "_disposed", !1);
98
100
  /** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
99
- r(this, "dispose", () => {
101
+ o(this, "dispose", () => {
100
102
  this.five.scene.remove(this.modelGroup);
101
103
  });
102
- r(this, "onFiveInitAnimationWillStart", () => {
104
+ o(this, "onFiveInitAnimationWillStart", () => {
103
105
  this.isInFiveChangeModeAnime = !0, this.updateChildrenMountedState();
104
106
  });
105
- r(this, "onFiveInitAnimationEnded", () => {
107
+ o(this, "onFiveInitAnimationEnded", () => {
106
108
  this.isInFiveChangeModeAnime = !1, this.updateChildrenMountedState();
107
109
  });
108
- r(this, "onFiveCameraUpdate", () => {
110
+ o(this, "onFiveCameraUpdate", () => {
109
111
  const t = this.five.camera;
110
112
  [...this.itemMap.values()].sort((e, s) => {
111
113
  const a = e.tagPosition.distanceTo(t.position);
@@ -115,13 +117,13 @@ class rt extends _ {
115
117
  (a = this.getMaskItemByID(e.id)) == null || a.setTagZIndex(s * 10);
116
118
  });
117
119
  });
118
- r(this, "onFiveModeChange", () => {
120
+ o(this, "onFiveModeChange", () => {
119
121
  this.updateChildrenMountedState();
120
122
  });
121
- r(this, "onMakerTagClick", (t) => {
123
+ o(this, "onMakerTagClick", (t) => {
122
124
  this.hooks.emit("wantsTap", { target: t.target, intersectObjects: [] });
123
125
  });
124
- r(this, "onWantsFiveTapGesture", (t) => {
126
+ o(this, "onWantsFiveTapGesture", (t) => {
125
127
  const i = Array.from(this.itemMap.values()).filter((n) => n.mounted && n.visible).map((n) => ({
126
128
  makerItem: n,
127
129
  intersects: n.modelGroup.getRaycastIntersects(t)
@@ -165,7 +167,7 @@ class rt extends _ {
165
167
  const i = this.data;
166
168
  this.data = this.formatData(t), this.hooks.emit("dataChange", this.data, i), this.modelGroup.remove(...this.modelGroup.children), this.itemMap.clear(), this.data.list.forEach((e) => {
167
169
  const s = new y(this, e);
168
- this.modelGroup.add(s.modelGroup), this.itemMap.set(e.id, s), s.hooks.on("tagClick", this.onMakerTagClick);
170
+ s.itemRenderer = this.itemRenderer, this.modelGroup.add(s.modelGroup), this.itemMap.set(e.id, s), s.hooks.on("tagClick", this.onMakerTagClick);
169
171
  });
170
172
  });
171
173
  }
@@ -336,5 +338,5 @@ class rt extends _ {
336
338
  }
337
339
  }
338
340
  export {
339
- rt as Controller
341
+ at as Controller
340
342
  };
@@ -106,6 +106,7 @@ export interface ServerDataV2 {
106
106
  export type ServerData = ServerDataV1 | ServerDataV2;
107
107
  /** 插件使用的数据 */
108
108
  export type PluginData = ServerDataV2;
109
+ export type ItemRenderer = (container: HTMLElement, item: ServerAreaMakerItem) => () => void;
109
110
  export interface ServerAreaMakerItem {
110
111
  id: number | string;
111
112
  /** 标注名称 */
@@ -58,6 +58,10 @@ export declare class AreaMakerItem {
58
58
  tagZIndex: number;
59
59
  /** 标注实例的事件处理器 */
60
60
  hooks: Subscribe<PluginType.AreaMakerItemEventMap>;
61
+ /** 自定义 Dom */
62
+ itemRenderer?: PluginType.ItemRenderer;
63
+ /** 数据 */
64
+ private data;
61
65
  /** Plugin 实例 */
62
66
  private plugin;
63
67
  /** 标注透明度动画 */
@@ -1,6 +1,6 @@
1
- var f = Object.defineProperty;
2
- var d = (a, t, e) => t in a ? f(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
- var i = (a, t, e) => (d(a, typeof t != "symbol" ? t + "" : t, e), e);
1
+ var d = Object.defineProperty;
2
+ var f = (a, e, t) => e in a ? d(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
+ var i = (a, e, t) => (f(a, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import * as n from "three";
5
5
  import "hammerjs";
6
6
  import "@realsee/five";
@@ -30,17 +30,17 @@ import "../../shared-utils/animationFrame/index.js";
30
30
  import "../../vendor/svelte/internal/index.js";
31
31
  import "../../components/AreaLabel/Assets/roomLabelBg.js";
32
32
  class v extends b {
33
- constructor(e) {
33
+ constructor(t) {
34
34
  super();
35
35
  i(this, "areaMakerItem");
36
- this.areaMakerItem = e;
36
+ this.areaMakerItem = t;
37
37
  }
38
- raycast(e, s) {
39
- this.areaMakerItem.makerObject.raycast(e, s);
38
+ raycast(t, s) {
39
+ this.areaMakerItem.makerObject.raycast(t, s);
40
40
  }
41
41
  }
42
42
  class Q {
43
- constructor(t, e) {
43
+ constructor(e, t) {
44
44
  i(this, "id");
45
45
  /** 标注名称 */
46
46
  i(this, "name", "");
@@ -86,6 +86,10 @@ class Q {
86
86
  i(this, "tagZIndex", 0);
87
87
  /** 标注实例的事件处理器 */
88
88
  i(this, "hooks", new O());
89
+ /** 自定义 Dom */
90
+ i(this, "itemRenderer");
91
+ /** 数据 */
92
+ i(this, "data");
89
93
  /** Plugin 实例 */
90
94
  i(this, "plugin");
91
95
  /** 标注透明度动画 */
@@ -113,11 +117,11 @@ class Q {
113
117
  // })
114
118
  // }
115
119
  /** 透明度动画 */
116
- i(this, "doOpacityAnime", (t) => {
120
+ i(this, "doOpacityAnime", (e) => {
117
121
  var h;
118
122
  (h = this.opacityAnime) == null || h.dispose();
119
- const e = t.duration, [s, o] = t.makerObjectOpacity, [r, l] = t.outlineOpacity;
120
- if (e === 0) {
123
+ const t = e.duration, [s, o] = e.makerObjectOpacity, [r, l] = e.outlineOpacity;
124
+ if (t === 0) {
121
125
  this.makerObject.material.opacity = o, this.outline.material.opacity = l;
122
126
  return;
123
127
  }
@@ -133,8 +137,8 @@ class Q {
133
137
  });
134
138
  });
135
139
  /** 插件 Config 变化时更新自身 depthTest */
136
- i(this, "onPluginConfigChange", (t) => {
137
- this.makerObject.material.depthTest = t.config.modelDepthTest, this.outline.material.depthTest = t.config.modelDepthTest, this.plugin.five.needsRender = !0;
140
+ i(this, "onPluginConfigChange", (e) => {
141
+ this.makerObject.material.depthTest = e.config.modelDepthTest, this.outline.material.depthTest = e.config.modelDepthTest, this.plugin.five.needsRender = !0;
138
142
  });
139
143
  /** 插件整体可见性变化时,需要更新自身可见性 */
140
144
  i(this, "onPluginStateChange", () => {
@@ -142,15 +146,15 @@ class Q {
142
146
  });
143
147
  /** 更新标注可见性 */
144
148
  i(this, "updateVisible", () => {
145
- const { result: t, msg: e } = this.checkVisible();
146
- this.checkMsg.checkVisibleMsg = e, this.visible !== t && (this.visible = t, this.modelGroup.visible = t, this.plugin.five.needsRender = !0);
149
+ const { result: e, msg: t } = this.checkVisible();
150
+ this.checkMsg.checkVisibleMsg = t, this.visible !== e && (this.visible = e, this.modelGroup.visible = e, this.plugin.five.needsRender = !0);
147
151
  });
148
152
  /** 检测标注是否可见 */
149
153
  i(this, "checkVisible", () => {
150
154
  if (!this.plugin.state.visible)
151
155
  return { result: !1, msg: "插件不可见" };
152
- const e = this.plugin.five.model.shownFloor;
153
- return e === null || e === this.floorIndex ? { result: !0, msg: "" } : { result: !1, msg: `模型高亮楼层不符合展示条件, 当前高亮楼层为:${e}` };
156
+ const t = this.plugin.five.model.shownFloor;
157
+ return t === null || t === this.floorIndex ? { result: !0, msg: "" } : { result: !1, msg: `模型高亮楼层不符合展示条件, 当前高亮楼层为:${t}` };
154
158
  });
155
159
  /** 更新标注标签 */
156
160
  i(this, "updateTag", () => {
@@ -158,20 +162,20 @@ class Q {
158
162
  });
159
163
  /** 更新标注标签的 NDC Position */
160
164
  i(this, "updateTagNDCPosition", () => {
161
- const e = this.tagPosition.clone().project(this.plugin.five.camera);
162
- this.tagNDCPosition.copy(e);
165
+ const t = this.tagPosition.clone().project(this.plugin.five.camera);
166
+ this.tagNDCPosition.copy(t);
163
167
  });
164
168
  /** 更新标注标签的 transform */
165
169
  i(this, "updateTagDomTransform", () => {
166
170
  var o;
167
- const t = this.tagNDCPosition, e = Math.round((t.x + 1) / 2 * this.plugin.tagDomContainer.clientWidth), s = Math.round((-t.y + 1) / 2 * this.plugin.tagDomContainer.clientHeight);
168
- this.tagTransform.left === e && this.tagTransform.top === s || (this.tagTransform = { left: e, top: s }, (o = this.tagApp) == null || o.$set({ transform: `translate(${e}px, ${s}px)` }));
171
+ const e = this.tagNDCPosition, t = Math.round((e.x + 1) / 2 * this.plugin.tagDomContainer.clientWidth), s = Math.round((-e.y + 1) / 2 * this.plugin.tagDomContainer.clientHeight);
172
+ this.tagTransform.left === t && this.tagTransform.top === s || (this.tagTransform = { left: t, top: s }, (o = this.tagApp) == null || o.$set({ transform: `translate(${t}px, ${s}px)` }));
169
173
  });
170
174
  /** 更新标注标签可见性 */
171
175
  i(this, "updateTagVisible", () => {
172
176
  var s;
173
- const { result: t, msg: e } = this.checkTagVisible();
174
- this.checkMsg.checkTagVisibleMsg = e, this.tagVisible !== t && (this.tagVisible = t, (s = this.tagApp) == null || s.$set({ visible: t }));
177
+ const { result: e, msg: t } = this.checkTagVisible();
178
+ this.checkMsg.checkTagVisibleMsg = t, this.tagVisible !== e && (this.tagVisible = e, (s = this.tagApp) == null || s.$set({ visible: e }));
175
179
  });
176
180
  /** 检测标注标签是否可见 */
177
181
  i(this, "checkTagVisible", () => {
@@ -179,9 +183,9 @@ class Q {
179
183
  return { result: !1, msg: "标注整体不可见" };
180
184
  if (this.isInContainerResizeAnimation)
181
185
  return { result: !1, msg: "处于容器 resize 动画中" };
182
- const e = this.plugin.five, s = new n.Raycaster(), o = e.camera.position.clone();
186
+ const t = this.plugin.five, s = new n.Raycaster(), o = t.camera.position.clone();
183
187
  s.set(o.clone(), this.tagPosition.clone().sub(o).normalize());
184
- const [r] = e.model.intersectRaycaster(s), l = this.tagPosition.distanceTo(e.camera.position);
188
+ const [r] = t.model.intersectRaycaster(s), l = this.tagPosition.distanceTo(t.camera.position);
185
189
  if (r && r.distance + 0.1 < l)
186
190
  return { result: !1, msg: "标注标签被 Five 模型遮挡" };
187
191
  const h = this.tagNDCPosition;
@@ -194,14 +198,14 @@ class Q {
194
198
  /** tag container DOM 发生 resize */
195
199
  i(this, "onContainerResize", () => {
196
200
  this.isInContainerResizeAnimation === !1 && (this.isInContainerResizeAnimation = !0, this.updateTag());
197
- const e = () => {
201
+ const t = () => {
198
202
  this.isInContainerResizeAnimation = !1, this.containerResizeTimeoutID = null, this.updateTag();
199
203
  };
200
- this.containerResizeTimeoutID && clearTimeout(this.containerResizeTimeoutID), this.containerResizeTimeoutID = setTimeout(e, 100);
204
+ this.containerResizeTimeoutID && clearTimeout(this.containerResizeTimeoutID), this.containerResizeTimeoutID = setTimeout(t, 100);
201
205
  });
202
206
  var p, m, c;
203
- const s = e.object_data, o = s.bottom_y, r = s.height, l = new n.Color((p = s.color) != null ? p : "#FFFFFF"), h = (m = s.opacity) != null ? m : 0.4;
204
- this.id = e.id, this.name = (c = e.name) != null ? c : "", this.plugin = t, this.height = r, this.bottomY = o, this.opacity = h, this.shape = new n.Shape().fromJSON(s.shape), this.floorIndex = e.floor_index, this.makerObject = new n.Mesh(g(this.shape, r), M(l, h)), u(this.makerObject, o), this.makerObject.material.depthTest = this.plugin.config.modelDepthTest, this.outline = new k(
207
+ const s = t.object_data, o = s.bottom_y, r = s.height, l = new n.Color((p = s.color) != null ? p : "#FFFFFF"), h = (m = s.opacity) != null ? m : 0.4;
208
+ this.data = t, this.id = t.id, this.name = (c = t.name) != null ? c : "", this.plugin = e, this.height = r, this.bottomY = o, this.opacity = h, this.shape = new n.Shape().fromJSON(s.shape), this.floorIndex = t.floor_index, this.makerObject = new n.Mesh(g(this.shape, r), M(l, h)), u(this.makerObject, o), this.makerObject.material.depthTest = this.plugin.config.modelDepthTest, this.outline = new k(
205
209
  new n.EdgesGeometry(this.makerObject.geometry),
206
210
  new n.LineBasicMaterial({ color: l, transparent: !0 })
207
211
  ), u(this.outline, o), this.outline.material.depthTest = this.plugin.config.modelDepthTest, this.setHeight(r), this.modelGroup = new v(this);
@@ -209,44 +213,46 @@ class Q {
209
213
  /** 挂载标注 */
210
214
  mount() {
211
215
  if (this.mounted = !0, this.updateVisible(), this.makerObject.material.depthTest = this.plugin.config.modelDepthTest, this.outline.material.depthTest = this.plugin.config.modelDepthTest, this.modelGroup.add(this.makerObject, this.outline), !!this.name) {
212
- const e = this.plugin.tagDomContainer, s = {
216
+ const t = this.plugin.tagDomContainer, s = {
217
+ data: this.data,
213
218
  content: this.name,
214
219
  visible: this.tagVisible,
220
+ renderer: this.itemRenderer,
215
221
  transform: `translate(${this.tagTransform.left}px, ${this.tagTransform.top}px)`,
216
222
  onClick: (o) => this.hooks.emit("tagClick", { target: this, nativeEvent: o })
217
223
  };
218
- this.tagApp = new T({ target: e, props: s }), this.updateTag();
224
+ this.tagApp = new T({ target: t, props: s }), this.updateTag();
219
225
  }
220
226
  this.plugin.five.needsRender = !0, this.plugin.hooks.on("stateChange", this.onPluginStateChange), this.plugin.hooks.on("configChange", this.onPluginConfigChange), this.plugin.five.on("modeChange", this.updateVisible), this.plugin.five.on("modelShownFloorChange", this.updateVisible), this.plugin.five.on("cameraUpdate", this.onFiveCameraUpdate), this.plugin.resizeIframe.contentWindow.addEventListener("resize", this.onContainerResize);
221
227
  }
222
228
  /** 卸载标注 */
223
229
  unmount() {
224
- var t;
225
- this.mounted = !1, this.modelGroup.remove(...this.modelGroup.children), (t = this.tagApp) == null || t.$destroy(), this.tagApp = null, this.plugin.hooks.off("stateChange", this.onPluginStateChange), this.plugin.hooks.off("configChange", this.onPluginConfigChange), this.plugin.five.off("modeChange", this.updateVisible), this.plugin.five.off("modelShownFloorChange", this.updateVisible), this.plugin.five.off("cameraUpdate", this.onFiveCameraUpdate), this.plugin.resizeIframe.contentWindow.removeEventListener("resize", this.onContainerResize);
230
+ var e;
231
+ this.mounted = !1, this.modelGroup.remove(...this.modelGroup.children), (e = this.tagApp) == null || e.$destroy(), this.tagApp = null, this.plugin.hooks.off("stateChange", this.onPluginStateChange), this.plugin.hooks.off("configChange", this.onPluginConfigChange), this.plugin.five.off("modeChange", this.updateVisible), this.plugin.five.off("modelShownFloorChange", this.updateVisible), this.plugin.five.off("cameraUpdate", this.onFiveCameraUpdate), this.plugin.resizeIframe.contentWindow.removeEventListener("resize", this.onContainerResize);
226
232
  }
227
233
  /** 更改标注透明度
228
234
  * @param opacity 标注透明度,范围:0-1
229
235
  */
230
- setOpacity(t) {
231
- var e;
232
- this.opacity = t, (e = this.opacityAnime) == null || e.dispose(), this.makerObject.material.opacity = t, this.plugin.five.needsRender = !0;
236
+ setOpacity(e) {
237
+ var t;
238
+ this.opacity = e, (t = this.opacityAnime) == null || t.dispose(), this.makerObject.material.opacity = e, this.plugin.five.needsRender = !0;
233
239
  }
234
240
  /** 更改标注颜色
235
241
  * @param color 标注颜色,支持 hex
236
242
  * @example setColor('#FF0000')
237
243
  */
238
- setColor(t) {
239
- const e = new n.Color(t);
240
- this.makerObject.material.color = e, this.outline.material.color = e, this.plugin.five.needsRender = !0;
244
+ setColor(e) {
245
+ const t = new n.Color(e);
246
+ this.makerObject.material.color = t, this.outline.material.color = t, this.plugin.five.needsRender = !0;
241
247
  }
242
248
  /** 更改标注高度
243
249
  * @param height 标注高度,单位:米
244
250
  */
245
- setHeight(t) {
246
- if (t <= 0)
251
+ setHeight(e) {
252
+ if (e <= 0)
247
253
  throw new Error("高度必须大于 0");
248
- this.height = t, this.makerObject.geometry = g(this.shape, t), this.outline.geometry = new n.EdgesGeometry(this.makerObject.geometry);
249
- const e = this.shape.extractPoints(10).shape.slice(0, -1), s = C(e), o = new n.Vector3(s.x, s.y, t);
254
+ this.height = e, this.makerObject.geometry = g(this.shape, e), this.outline.geometry = new n.EdgesGeometry(this.makerObject.geometry);
255
+ const t = this.shape.extractPoints(10).shape.slice(0, -1), s = C(t), o = new n.Vector3(s.x, s.y, e);
250
256
  u(o, this.bottomY), this.tagPosition.copy(o), this.updateTag(), this.plugin.five.needsRender = !0;
251
257
  }
252
258
  /** 更改标注标签的显示层级
@@ -257,27 +263,27 @@ class Q {
257
263
  * - 标签 A <- 标签 B <- 相机: 标签 A 在标签 B 的后面
258
264
  * 但是当前元素是无法感知到这种变化的,所以需要通过父元素调用这个方法来更新标签的层级。
259
265
  */
260
- setTagZIndex(t) {
261
- var e;
262
- this.tagZIndex !== t && ((e = this.tagApp) == null || e.$set({ zIndex: t }));
266
+ setTagZIndex(e) {
267
+ var t;
268
+ this.tagZIndex !== e && ((t = this.tagApp) == null || t.$set({ zIndex: e }));
263
269
  }
264
270
  }
265
- function g(a, t) {
271
+ function g(a, e) {
266
272
  return new n.ExtrudeBufferGeometry(a, {
267
- depth: t,
273
+ depth: e,
268
274
  bevelEnabled: !1
269
275
  });
270
276
  }
271
- function M(a, t) {
277
+ function M(a, e) {
272
278
  return new n.MeshBasicMaterial({
273
279
  color: a,
274
- opacity: t,
280
+ opacity: e,
275
281
  transparent: !0
276
282
  });
277
283
  }
278
- function u(a, t) {
279
- const e = new n.Matrix4(), s = new n.Matrix4().makeRotationX(Math.PI / 2), o = new n.Matrix4().makeTranslation(0, 0, -t), r = new n.Matrix4().makeScale(1, 1, -1);
280
- e.multiply(s), e.multiply(o), e.multiply(r), a.applyMatrix4(e);
284
+ function u(a, e) {
285
+ const t = new n.Matrix4(), s = new n.Matrix4().makeRotationX(Math.PI / 2), o = new n.Matrix4().makeTranslation(0, 0, -e), r = new n.Matrix4().makeScale(1, 1, -1);
286
+ t.multiply(s), t.multiply(o), t.multiply(r), a.applyMatrix4(t);
281
287
  }
282
288
  export {
283
289
  Q as AreaMakerItem
@@ -0,0 +1,171 @@
1
+ import type { Five } from '@realsee/five';
2
+ import type { BaseOptions } from '../base/BasePlugin';
3
+ import * as BasePluginWithData from '../base/BasePluginWithData';
4
+ import type { PluginState, EventMap, PluginServerData, PluginData, Config } from './typing';
5
+ export declare const pluginFlag: (name: string) => string;
6
+ export default class CruisePluginController extends BasePluginWithData.Controller<PluginState, EventMap, PluginServerData, PluginData> {
7
+ static PluginVersion: string;
8
+ state: PluginState;
9
+ protected data?: PluginData;
10
+ private config?;
11
+ private privateState;
12
+ private GuideLine?;
13
+ constructor(five: Five, config?: Config);
14
+ /**
15
+ * @description Load Data and State
16
+ */
17
+ load(serverData: PluginServerData | PluginServerData['data'], state?: PluginState, userAction?: boolean): Promise<void>;
18
+ /**
19
+ * @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
20
+ */
21
+ play(options?: {
22
+ userAction?: boolean;
23
+ }): void;
24
+ /**
25
+ * @description If playing, first pause, then play from keyframes index/id
26
+ * @param {number} options.index play from keyframes index
27
+ * @param {string} options.id play from keyframes id
28
+ */
29
+ playFrom(options: {
30
+ userAction?: boolean;
31
+ index?: number;
32
+ id?: string;
33
+ }): void;
34
+ /**
35
+ * @description Play from first keyframe
36
+ */
37
+ playFromStart(options?: {
38
+ userAction?: boolean;
39
+ }): void;
40
+ /**
41
+ * @description Pause
42
+ */
43
+ pause(options?: {
44
+ userAction?: boolean;
45
+ }): void;
46
+ /**
47
+ * @description Show guide line
48
+ */
49
+ show(options?: {
50
+ userAction?: boolean;
51
+ }): Promise<void>;
52
+ /**
53
+ * @description Hide guide line
54
+ */
55
+ hide(options?: {
56
+ userAction?: boolean;
57
+ }): Promise<void>;
58
+ /**
59
+ * @description Enable
60
+ */
61
+ enable(options?: {
62
+ userAction?: boolean;
63
+ }): void;
64
+ /**
65
+ * @description Disable
66
+ */
67
+ disable(options?: {
68
+ userAction?: boolean;
69
+ }): void;
70
+ /**
71
+ * @description Dispose
72
+ */
73
+ dispose(): void;
74
+ /**
75
+ * @description Set state
76
+ */
77
+ setState(state: Partial<PluginState>, options?: BaseOptions & Record<string, any>): void;
78
+ /**
79
+ * @description Format data
80
+ */
81
+ protected formatData(serverData: PluginServerData | PluginServerData['data']): Promise<PluginData>;
82
+ private handleEnable;
83
+ private handleVisible;
84
+ private changePlayState;
85
+ /**
86
+ * @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
87
+ * @param {number} options.playFromIndex play from keyframes index
88
+ * @param {string} options.playFromId play from keyframes id
89
+ */
90
+ private handlePlay;
91
+ /**
92
+ * @description: Pause and record pause state
93
+ */
94
+ private handlePause;
95
+ /**
96
+ * @description Play single keyframe
97
+ */
98
+ private playKeyframe;
99
+ /**
100
+ * @description: listen interupted by five gesture
101
+ */
102
+ private addInterruptListener;
103
+ /**
104
+ * @description: getPlayPromise
105
+ */
106
+ private getPlayPromise;
107
+ /**
108
+ * @description Action promise queue in sequence
109
+ */
110
+ private actionPromiseQueue;
111
+ /**
112
+ * @description Action move keyframe
113
+ */
114
+ private move;
115
+ /**
116
+ * @description Action rotate keyframe
117
+ */
118
+ private rotate;
119
+ /**
120
+ * @description Update five camera
121
+ */
122
+ private updateCamera;
123
+ /**
124
+ * @description: Change five pano
125
+ */
126
+ private changePano;
127
+ /**
128
+ * @description: Change play speed
129
+ */
130
+ private changeSpeed;
131
+ /**
132
+ * @description Get duration by speed
133
+ */
134
+ private getSpeededDuration;
135
+ /**
136
+ * @description Get ratate progress
137
+ */
138
+ private getProgress;
139
+ /**
140
+ * @description Change five mode
141
+ */
142
+ private changeMode;
143
+ /**
144
+ * @description Force interupt five updateCamera
145
+ */
146
+ private forceInteruptUpdateCamera;
147
+ private getPauseData;
148
+ /**
149
+ * @description Set pause data
150
+ */
151
+ private setPauseData;
152
+ /**
153
+ * @description Clear pause data
154
+ */
155
+ private clearPauseData;
156
+ /**
157
+ * @description: Restore state that before loaded
158
+ */
159
+ private clear;
160
+ private handleDispose;
161
+ /**
162
+ * @description Action function if plugin is enable
163
+ */
164
+ private actionIfStateIsEnabled;
165
+ /**
166
+ * @description: Wait for five work ready
167
+ */
168
+ private waitFiveLoaded;
169
+ private setFiveLinearUpdateCamera;
170
+ private setFiveOriginUpdateCamera;
171
+ }