@realsee/dnalogel 2.2.6 → 2.3.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 (377) hide show
  1. package/dist/CSS3DRenderPlugin/CSS3DRender.d.ts +48 -34
  2. package/dist/CSS3DRenderPlugin/Controller.d.ts +5 -5
  3. package/dist/CSS3DRenderPlugin/index.d.ts +2 -1
  4. package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
  5. package/dist/CSS3DRenderPlugin/utils/even.d.ts +9 -0
  6. package/dist/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
  7. package/dist/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
  8. package/dist/CSS3DRenderPlugin/utils/index.d.ts +1 -1
  9. package/dist/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +25 -0
  10. package/dist/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +31 -11
  11. package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
  12. package/dist/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
  13. package/dist/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
  14. package/dist/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
  15. package/dist/Object3DHelperPlugin/Controller.d.ts +2 -0
  16. package/dist/index.cjs.js +46 -46
  17. package/dist/index.js +4987 -4817
  18. package/dist/index.umd.js +39 -39
  19. package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
  20. package/docs/assets/highlight.css +7 -0
  21. package/docs/assets/main.js +1 -1
  22. package/docs/assets/search.js +1 -1
  23. package/docs/classes/CSS3DRender.html +533 -0
  24. package/docs/classes/CruisePluginController.html +24 -24
  25. package/docs/classes/Magnifier.html +16 -16
  26. package/docs/classes/ModelRoomLabelController.html +11 -11
  27. package/docs/classes/Object3DHelperController.html +24 -24
  28. package/docs/classes/PaintBrush.html +15 -15
  29. package/docs/classes/PanoTagPluginController.html +39 -39
  30. package/docs/classes/Util.BetterTween.html +8 -8
  31. package/docs/classes/Util.FivePointSelector.html +12 -12
  32. package/docs/classes/Util.Interval.html +12 -12
  33. package/docs/classes/Util.Magnifier.html +17 -17
  34. package/docs/classes/Util.PointDomHelper.html +11 -11
  35. package/docs/classes/Util.PointHelper.html +11 -11
  36. package/docs/classes/Util.Rectangle.html +13 -13
  37. package/docs/enums/CameraMovementEffect.html +7 -7
  38. package/docs/enums/ContentType.html +12 -12
  39. package/docs/enums/DIRECTION.html +9 -9
  40. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  41. package/docs/enums/DimensionType.html +7 -7
  42. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  43. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  44. package/docs/enums/LinkType.html +7 -7
  45. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  46. package/docs/enums/PointType.html +7 -7
  47. package/docs/enums/Rotation.html +8 -8
  48. package/docs/functions/CSS3DRenderPlugin.html +6 -5
  49. package/docs/functions/CameraMovementPlugin.html +6 -5
  50. package/docs/functions/CruisePlugin.html +6 -5
  51. package/docs/functions/GuideLinePlugin.html +7 -6
  52. package/docs/functions/ItemLabelPlugin.html +6 -5
  53. package/docs/functions/MapviewFloorplanPlugin.html +6 -5
  54. package/docs/functions/ModelChassisCompassPlugin.html +6 -5
  55. package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -5
  56. package/docs/functions/ModelFloorplanPlugin.html +6 -5
  57. package/docs/functions/ModelItemLabelPlugin.html +6 -5
  58. package/docs/functions/ModelRoomLabelPlugin.html +6 -5
  59. package/docs/functions/ModelTVVideoPlugin.html +6 -5
  60. package/docs/functions/ModelViewPlugin.html +6 -5
  61. package/docs/functions/Object3DHelperPlugin.html +6 -5
  62. package/docs/functions/PanoCompassPlugin.html +6 -5
  63. package/docs/functions/PanoCursorRaycasterPlugin.html +6 -5
  64. package/docs/functions/PanoDoorLabelPlugin.html +6 -5
  65. package/docs/functions/PanoFloorplanRadarPlugin.html +6 -5
  66. package/docs/functions/PanoMeasurePlugin.html +6 -5
  67. package/docs/functions/PanoRulerPlugin.html +6 -5
  68. package/docs/functions/PanoRulerProPlugin.html +6 -5
  69. package/docs/functions/PanoSpatialTagPlugin.html +6 -5
  70. package/docs/functions/PanoTagPlugin.html +6 -5
  71. package/docs/functions/TopviewFloorplanPlugin.html +6 -5
  72. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  73. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  74. package/docs/functions/Util.getFrameTime.html +5 -5
  75. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  76. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  77. package/docs/functions/Util.isNil.html +5 -5
  78. package/docs/functions/Util.nextFrame.html +5 -5
  79. package/docs/functions/Util.notNil.html +5 -5
  80. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  81. package/docs/functions/Util.tweenProgress.html +5 -5
  82. package/docs/functions/pluginFlag.html +7 -6
  83. package/docs/index.html +6 -5
  84. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  85. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  86. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  87. package/docs/interfaces/ContentTypeMap.html +12 -12
  88. package/docs/interfaces/FloorplanBounding.html +8 -8
  89. package/docs/interfaces/FloorplanData.html +10 -10
  90. package/docs/interfaces/FloorplanEntrance.html +11 -11
  91. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  92. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  93. package/docs/interfaces/FloorplanFloorData.html +9 -9
  94. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  95. package/docs/interfaces/FloorplanObserver.html +9 -9
  96. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  97. package/docs/interfaces/FloorplanPosition.html +7 -7
  98. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  99. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  100. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  101. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  102. package/docs/interfaces/FloorplanServerData.html +7 -7
  103. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  104. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  105. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  106. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  107. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  108. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  109. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  110. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  111. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  112. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  113. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  114. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  115. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  116. package/docs/interfaces/LineJson.html +7 -7
  117. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  118. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  119. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  120. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  121. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  122. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  123. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  124. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  125. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  126. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  127. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  128. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  129. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  130. package/docs/interfaces/Object3DHelperState.html +8 -8
  131. package/docs/interfaces/OpenParameter.html +7 -7
  132. package/docs/interfaces/PaintBrushAction.html +12 -12
  133. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  134. package/docs/interfaces/PaintBrushState.html +10 -10
  135. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  136. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -6
  137. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  138. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  139. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  140. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  141. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  142. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  143. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  144. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  145. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -6
  146. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -6
  147. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  148. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  149. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  150. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  151. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  152. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  153. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  154. package/docs/interfaces/Point.html +8 -8
  155. package/docs/interfaces/PointJson.html +8 -8
  156. package/docs/interfaces/Room.html +9 -9
  157. package/docs/interfaces/RoomInfo.html +7 -7
  158. package/docs/interfaces/RoomLabel.html +14 -14
  159. package/docs/interfaces/RoomRules.html +7 -6
  160. package/docs/interfaces/Rooms.html +7 -6
  161. package/docs/interfaces/Scissor.html +9 -9
  162. package/docs/interfaces/TagConfig.html +10 -10
  163. package/docs/interfaces/Tags.html +9 -9
  164. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  165. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  166. package/docs/modules/Util.html +5 -5
  167. package/docs/modules.html +7 -5
  168. package/docs/types/ArrayPosition.html +7 -6
  169. package/docs/types/CSS3DRenderExportType.html +8 -7
  170. package/docs/types/CSS3DRenderPluginExportType.html +7 -6
  171. package/docs/types/CSS3DRenderPluginParameterType.html +7 -6
  172. package/docs/types/Color.html +7 -6
  173. package/docs/types/ContentTypeConfigKey.html +7 -6
  174. package/docs/types/ContentTypeConfigKeyArray.html +7 -6
  175. package/docs/types/Create3DDomContainerReturnType.html +7 -6
  176. package/docs/types/Create3DElementReturnType.html +8 -7
  177. package/docs/types/CruisePluginExportType.html +7 -6
  178. package/docs/types/Direction-1.html +7 -6
  179. package/docs/types/Direction4.html +7 -6
  180. package/docs/types/FloorplanRuleLabels.html +7 -6
  181. package/docs/types/FloorplanServerRuleLabels.html +7 -6
  182. package/docs/types/GuideLinePluginExportType.html +7 -6
  183. package/docs/types/HelperEventMap.html +7 -6
  184. package/docs/types/MapviewFloorplanPluginParameterType.html +7 -6
  185. package/docs/types/MapviewFloorplanPluginReturnType.html +7 -6
  186. package/docs/types/MediaData.html +7 -6
  187. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -6
  188. package/docs/types/ModelFloorplanPluginParameterType.html +7 -6
  189. package/docs/types/ModelFloorplanPluginReturnType.html +7 -6
  190. package/docs/types/ModelRoomLabelPluginParameters.html +7 -6
  191. package/docs/types/ModelRoomLabelPluginReturnType.html +7 -6
  192. package/docs/types/MoveArgs.html +7 -6
  193. package/docs/types/MoveOpts.html +7 -6
  194. package/docs/types/Object3DHelperEventMap.html +7 -6
  195. package/docs/types/ObjectFit.html +7 -6
  196. package/docs/types/PaintBrushEventMap.html +7 -6
  197. package/docs/types/PanoCompassPluginData.html +7 -6
  198. package/docs/types/PanoCompassPluginExportType.html +7 -6
  199. package/docs/types/PanoCompassPluginParameterType.html +7 -6
  200. package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -6
  201. package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -6
  202. package/docs/types/PanoMeasurePluginEvent.html +7 -6
  203. package/docs/types/PanoMeasureReturnType.html +7 -6
  204. package/docs/types/PanoSpatialTagPluginId.html +7 -6
  205. package/docs/types/PanoTagPluginExportInterface.html +7 -6
  206. package/docs/types/PanoTagPluginParamsInterface.html +7 -6
  207. package/docs/types/PlaneTag.html +7 -6
  208. package/docs/types/PointTag.html +7 -6
  209. package/docs/types/Position.html +7 -6
  210. package/docs/types/RotateArgs.html +7 -6
  211. package/docs/types/RotateOpts.html +7 -6
  212. package/docs/types/RuleLabelsKey.html +7 -6
  213. package/docs/types/RuleLabelsValue.html +7 -6
  214. package/docs/types/Tag.html +7 -6
  215. package/docs/types/Tag2D.html +7 -6
  216. package/docs/types/Tag3D.html +7 -6
  217. package/docs/types/TagId.html +7 -6
  218. package/docs/types/TopviewFloorplanPluginParameterType.html +7 -6
  219. package/docs/types/TopviewFloorplanPluginReturnType.html +7 -6
  220. package/docs/variables/FLOOR_TYPE_MAP.html +7 -6
  221. package/docs/variables/PLUGIN.html +7 -6
  222. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -6
  223. package/docs/variables/ROOM_TYPE_MAP.html +7 -6
  224. package/docs/variables/VERSION.html +7 -6
  225. package/docs/variables/itemLabelPluginServerParams.html +7 -6
  226. package/docs/variables/modelItemLabelPluginServerParams.html +7 -6
  227. package/docs/variables/modelRoomLabelPluginServerParams.html +7 -6
  228. package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +48 -34
  229. package/libs/CSS3DRenderPlugin/CSS3DRender.js +198 -251
  230. package/libs/CSS3DRenderPlugin/Controller.d.ts +5 -5
  231. package/libs/CSS3DRenderPlugin/Controller.js +63 -58
  232. package/libs/CSS3DRenderPlugin/index.d.ts +2 -1
  233. package/libs/CSS3DRenderPlugin/index.js +21 -3
  234. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
  235. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +22 -0
  236. package/libs/CSS3DRenderPlugin/utils/even.d.ts +9 -0
  237. package/libs/CSS3DRenderPlugin/utils/even.js +7 -0
  238. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
  239. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +29 -0
  240. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
  241. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +9 -0
  242. package/libs/CSS3DRenderPlugin/utils/index.d.ts +1 -1
  243. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +25 -0
  244. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +53 -0
  245. package/libs/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +31 -11
  246. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +115 -0
  247. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
  248. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +46 -0
  249. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
  250. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +39 -0
  251. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
  252. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +18 -0
  253. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
  254. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +31 -0
  255. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +28 -25
  256. package/libs/CameraMovementPlugin/index.js +13 -0
  257. package/libs/CruisePlugin/Controller.js +65 -54
  258. package/libs/CruisePlugin/index.js +26 -3
  259. package/libs/CruisePlugin/typing.js +1 -0
  260. package/libs/GuideLinePlugin/Controller.js +14 -9
  261. package/libs/GuideLinePlugin/index.js +14 -3
  262. package/libs/GuideLinePlugin/typing.js +1 -0
  263. package/libs/ItemLabelPlugin/Plugin.js +33 -23
  264. package/libs/ItemLabelPlugin/events.type.js +1 -0
  265. package/libs/ItemLabelPlugin/index.js +16 -2
  266. package/libs/ModelChassisCompassPlugin/Plugin.js +2 -1
  267. package/libs/ModelChassisCompassPlugin/index.js +8 -0
  268. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +44 -39
  269. package/libs/ModelEntryDoorGuidePlugin/index.js +9 -0
  270. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +28 -22
  271. package/libs/ModelItemLabelPlugin/index.js +12 -2
  272. package/libs/ModelRoomLabelPlugin/Controller.js +6 -2
  273. package/libs/ModelRoomLabelPlugin/index.js +10 -3
  274. package/libs/ModelRoomLabelPlugin/typings.js +1 -0
  275. package/libs/ModelTVVideoPlugin/Plugin.js +80 -62
  276. package/libs/ModelTVVideoPlugin/index.js +25 -0
  277. package/libs/ModelViewPlugin/Plugin.js +2 -1
  278. package/libs/ModelViewPlugin/index.js +6 -0
  279. package/libs/Object3DHelperPlugin/Controller.d.ts +2 -0
  280. package/libs/Object3DHelperPlugin/Controller.js +114 -73
  281. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +13 -9
  282. package/libs/Object3DHelperPlugin/index.js +48 -3
  283. package/libs/Object3DHelperPlugin/typings.js +1 -0
  284. package/libs/PanoCompassPlugin/Controller.js +60 -40
  285. package/libs/PanoCompassPlugin/index.js +31 -3
  286. package/libs/PanoCompassPlugin/typings.js +1 -0
  287. package/libs/PanoCursorRaycasterPlugin/index.js +4 -2
  288. package/libs/PanoDoorLabelPlugin/BaseController.js +27 -26
  289. package/libs/PanoDoorLabelPlugin/Controller.js +7 -2
  290. package/libs/PanoDoorLabelPlugin/index.js +12 -2
  291. package/libs/PanoDoorLabelPlugin/typings.js +1 -0
  292. package/libs/PanoMeasurePlugin/index.js +56 -5
  293. package/libs/PanoRulerPlugin/Plugin.js +22 -17
  294. package/libs/PanoRulerPlugin/index.js +9 -0
  295. package/libs/PanoRulerPlugin/style.js +1 -1
  296. package/libs/PanoRulerPlugin/typings.js +1 -0
  297. package/libs/PanoRulerProPlugin/Controller.js +38 -27
  298. package/libs/PanoRulerProPlugin/index.js +16 -3
  299. package/libs/PanoRulerProPlugin/typings.js +1 -0
  300. package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -3
  301. package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
  302. package/libs/PanoSpatialTagPlugin/Plugin.js +91 -71
  303. package/libs/PanoSpatialTagPlugin/index.js +28 -0
  304. package/libs/PanoSpatialTagPlugin/store.js +1 -0
  305. package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
  306. package/libs/PanoTagPlugin/Components/Common/Audio.js +43 -43
  307. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +7 -7
  308. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +28 -29
  309. package/libs/PanoTagPlugin/Components/Common/Media.js +47 -55
  310. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
  311. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +59 -68
  312. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -7
  313. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +21 -23
  314. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +28 -31
  315. package/libs/PanoTagPlugin/Components/Common/Shadow.js +9 -10
  316. package/libs/PanoTagPlugin/Components/Common/Text.js +9 -9
  317. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +19 -27
  318. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
  319. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +97 -118
  320. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +6 -8
  321. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -5
  322. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +54 -72
  323. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +54 -65
  324. package/libs/PanoTagPlugin/Components/Tag/index.js +74 -103
  325. package/libs/PanoTagPlugin/Components/TagContainer.js +65 -108
  326. package/libs/PanoTagPlugin/Components/TagWrapper.js +78 -116
  327. package/libs/PanoTagPlugin/controller/index.js +2 -2
  328. package/libs/PanoTagPlugin/index.js +90 -3
  329. package/libs/PanoTagPlugin/tag.config.js +2 -1
  330. package/libs/floorplan/Components/BaseImage.js +7 -7
  331. package/libs/floorplan/Components/Camera.js +10 -10
  332. package/libs/floorplan/Components/Compass.js +1 -1
  333. package/libs/floorplan/Components/CurrentFloor.js +47 -56
  334. package/libs/floorplan/Components/Main.js +80 -99
  335. package/libs/floorplan/Components/Normalmage.js +5 -5
  336. package/libs/floorplan/Components/RoomHighlight/Room.js +11 -11
  337. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +13 -14
  338. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -1
  339. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +47 -47
  340. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +23 -23
  341. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +14 -14
  342. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +13 -13
  343. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +13 -13
  344. package/libs/floorplan/Components/RuleLabels/RuleItem.js +6 -6
  345. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +14 -14
  346. package/libs/floorplan/Components/SvgImage.js +12 -12
  347. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +111 -81
  348. package/libs/floorplan/MapviewFloorplanPlugin/index.js +47 -3
  349. package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -0
  350. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +166 -135
  351. package/libs/floorplan/ModelFloorplanPlugin/index.js +47 -3
  352. package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
  353. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
  354. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +8 -12
  355. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
  356. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -83
  357. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +51 -36
  358. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +24 -3
  359. package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
  360. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +155 -126
  361. package/libs/floorplan/TopviewFloorplanPlugin/index.js +44 -3
  362. package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
  363. package/libs/floorplan/TopviewFloorplanPlugin/style.js +11 -0
  364. package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
  365. package/libs/floorplan/typings/index.js +1 -0
  366. package/libs/index.js +123 -114
  367. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
  368. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +8 -7
  369. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
  370. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
  371. package/libs/shared-utils/three/index.js +2 -1
  372. package/package.json +31 -30
  373. package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
  374. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +0 -65
  375. package/libs/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
  376. package/libs/CSS3DRenderPlugin/utils/evenNumber.js +0 -7
  377. package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
@@ -0,0 +1,39 @@
1
+ var i = Object.defineProperty;
2
+ var a = (n, r, e) => r in n ? i(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
3
+ var d = (n, r, e) => (a(n, typeof r != "symbol" ? r + "" : r, e), e);
4
+ import * as c from "three";
5
+ import { getAllCSS3DObject as o } from "../getAllCSS3DObject.js";
6
+ class m extends c.Scene {
7
+ constructor() {
8
+ super();
9
+ }
10
+ add(...r) {
11
+ return super.add(...r), o(...r).forEach((e) => {
12
+ e.mode = "front";
13
+ }), this;
14
+ }
15
+ }
16
+ class p extends c.Scene {
17
+ constructor(e) {
18
+ super();
19
+ d(this, "scene");
20
+ if (!e)
21
+ throw new Error("CSS3DBehindScene: scene is required");
22
+ this.scene = e;
23
+ }
24
+ add(...e) {
25
+ return super.add(...e), o(...e).forEach((t) => {
26
+ t.mode = "behind", this.scene.add(t.getOpacityMesh());
27
+ }), this;
28
+ }
29
+ remove(...e) {
30
+ return o(...e).forEach((t) => {
31
+ var s;
32
+ (s = t.opacityMesh) == null || s.removeFromParent();
33
+ }), super.remove(...e), this;
34
+ }
35
+ }
36
+ export {
37
+ p as CSS3DBehindScene,
38
+ m as CSS3DFrontScene
39
+ };
@@ -0,0 +1,6 @@
1
+ import * as THREE from 'three';
2
+ export default class OpecityMesh extends THREE.Mesh {
3
+ name: string;
4
+ constructor(width: number, height: number);
5
+ removeFromParent(): this;
6
+ }
@@ -0,0 +1,18 @@
1
+ var c = Object.defineProperty;
2
+ var m = (r, t, e) => t in r ? c(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
+ var o = (r, t, e) => (m(r, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import * as s from "three";
5
+ class p extends s.Mesh {
6
+ constructor(e, a) {
7
+ const n = new s.MeshBasicMaterial({ opacity: 0, color: 0, transparent: !1, side: s.DoubleSide }), i = new s.PlaneGeometry(e, a);
8
+ super(i, n);
9
+ o(this, "name", "opacity-mesh");
10
+ }
11
+ removeFromParent() {
12
+ const e = this.parent;
13
+ return e !== null && e.remove(this), this;
14
+ }
15
+ }
16
+ export {
17
+ p as OpecityMesh
18
+ };
@@ -0,0 +1,2 @@
1
+ import type { Five } from '@realsee/five';
2
+ export default function fiveModelLoaded(five: Five): Promise<void>;
@@ -0,0 +1,31 @@
1
+ var t = (o, n, e) => new Promise((c, l) => {
2
+ var i = (d) => {
3
+ try {
4
+ r(e.next(d));
5
+ } catch (a) {
6
+ l(a);
7
+ }
8
+ }, m = (d) => {
9
+ try {
10
+ r(e.throw(d));
11
+ } catch (a) {
12
+ l(a);
13
+ }
14
+ }, r = (d) => d.done ? c(d.value) : Promise.resolve(d.value).then(i, m);
15
+ r((e = e.apply(o, n)).next());
16
+ });
17
+ function f(o) {
18
+ return t(this, null, function* () {
19
+ return new Promise((n) => {
20
+ var e;
21
+ if ((e = o.model) != null && e.loaded) {
22
+ n();
23
+ return;
24
+ } else
25
+ o.once("modelLoaded", () => n());
26
+ });
27
+ });
28
+ }
29
+ export {
30
+ f as fiveModelLoaded
31
+ };
@@ -1,38 +1,40 @@
1
- var b = (e, o, a) => new Promise((m, p) => {
1
+ var b = (e, o, n) => new Promise((m, p) => {
2
2
  var t = (d) => {
3
3
  try {
4
- n(a.next(d));
4
+ a(n.next(d));
5
5
  } catch (f) {
6
6
  p(f);
7
7
  }
8
8
  }, i = (d) => {
9
9
  try {
10
- n(a.throw(d));
10
+ a(n.throw(d));
11
11
  } catch (f) {
12
12
  p(f);
13
13
  }
14
- }, n = (d) => d.done ? m(d.value) : Promise.resolve(d.value).then(t, i);
15
- n((a = a.apply(e, o)).next());
14
+ }, a = (d) => d.done ? m(d.value) : Promise.resolve(d.value).then(t, i);
15
+ a((n = n.apply(e, o)).next());
16
16
  });
17
17
  import { Five as y } from "@realsee/five";
18
18
  import * as h from "@tweenjs/tween.js";
19
19
  import { tweenProgress as T } from "../shared-utils/animationFrame/tween.js";
20
- import { Rotation as r } from "./typing.js";
20
+ import { Rotation as u } from "./typing.js";
21
21
  import { formatLatitude as P, formatLongitude as v } from "../shared-utils/animationFrame/formatRad.js";
22
22
  import { progressNumber as I } from "../shared-utils/animationFrame/calculateProgress.js";
23
- const w = (e, o, a) => {
23
+ import "../shared-utils/animationFrame/index.js";
24
+ import "../shared-utils/animationFrame/BetterTween.js";
25
+ const w = (e, o, n) => {
24
26
  const m = Math.PI, p = m * 2;
25
- return e = v(e), o = v(o), a === r.Anticlockwise && e < o && (e += p), a === r.Clockwise && o < e && (o += p), a === r.Loop && o - e > m ? w(e, o, r.Anticlockwise) : a === r.Loop && e - o > m ? w(e, o, r.Clockwise) : { from: e, to: o };
26
- }, R = (e) => {
27
- const o = {}, a = (d, f, ...L) => b(void 0, [d, f, ...L], function* (t, i, n = { preload: !0 }) {
28
- return o.interruptCallback && o.interruptCallback(!1), n.asyncStartCallback && (yield n.asyncStartCallback()), t.mode && t.mode !== e.currentMode && (yield e.changeMode(t.mode)), n.preload && t.panoIndex !== void 0 && t.panoIndex !== e.panoIndex && (yield e.preloadPano(t.panoIndex)), n.asyncEndCallback && (yield n.asyncEndCallback()), t.panoIndex === void 0 && t.fov === void 0 && t.latitude === void 0 && t.longitude === void 0 ? !0 : yield new Promise((u, l) => {
27
+ return e = v(e), o = v(o), n === u.Anticlockwise && e < o && (e += p), n === u.Clockwise && o < e && (o += p), n === u.Loop && o - e > m ? w(e, o, u.Anticlockwise) : n === u.Loop && e - o > m ? w(e, o, u.Clockwise) : { from: e, to: o };
28
+ }, _ = (e) => {
29
+ const o = {}, n = (d, f, ...L) => b(void 0, [d, f, ...L], function* (t, i, a = { preload: !0 }) {
30
+ return o.interruptCallback && o.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), t.mode && t.mode !== e.currentMode && (yield e.changeMode(t.mode)), a.preload && t.panoIndex !== void 0 && t.panoIndex !== e.panoIndex && (yield e.preloadPano(t.panoIndex)), a.asyncEndCallback && (yield a.asyncEndCallback()), t.panoIndex === void 0 && t.fov === void 0 && t.latitude === void 0 && t.longitude === void 0 ? !0 : yield new Promise((r, l) => {
29
31
  const c = t.panoIndex !== void 0 ? t.panoIndex : e.panoIndex;
30
32
  c !== void 0 ? e.moveToPano(
31
33
  c,
32
34
  Object.assign(
33
35
  {
34
36
  duration: i,
35
- moveEndCallback: () => u(!0),
37
+ moveEndCallback: () => r(!0),
36
38
  moveCancelCallback: () => l(!1)
37
39
  },
38
40
  t
@@ -40,20 +42,20 @@ const w = (e, o, a) => {
40
42
  ) : l(!1);
41
43
  });
42
44
  }), m = (t) => {
43
- const i = e.state, n = P(i.latitude), d = P(t.latitude), { from: f, to: L } = w(
45
+ const i = e.state, a = P(i.latitude), d = P(t.latitude), { from: f, to: L } = w(
44
46
  i.longitude,
45
47
  t.longitude,
46
- t.rotation || r.Loop
47
- ), u = i.fov, l = t.fov;
48
+ t.rotation || u.Loop
49
+ ), r = i.fov, l = t.fov;
48
50
  return {
49
- from: { latitude: n, longitude: f, fov: u },
51
+ from: { latitude: a, longitude: f, fov: r },
50
52
  to: { latitude: d, longitude: L, fov: l }
51
53
  };
52
54
  };
53
55
  return {
54
- move: a,
55
- rotate: (d, f, ...L) => b(void 0, [d, f, ...L], function* (t, i, n = {}) {
56
- o.interruptCallback && o.interruptCallback(!1), n.asyncStartCallback && (yield n.asyncStartCallback()), e.currentMode !== y.Mode.Panorama && (yield e.changeMode(y.Mode.Panorama)), t.panoIndex !== void 0 && t.panoIndex !== e.panoIndex && (n.preload && (yield e.preloadPano(t.panoIndex)), yield new Promise((c, k) => {
56
+ move: n,
57
+ rotate: (d, f, ...L) => b(void 0, [d, f, ...L], function* (t, i, a = {}) {
58
+ o.interruptCallback && o.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), e.currentMode !== y.Mode.Panorama && (yield e.changeMode(y.Mode.Panorama)), t.panoIndex !== void 0 && t.panoIndex !== e.panoIndex && (a.preload && (yield e.preloadPano(t.panoIndex)), yield new Promise((c, k) => {
57
59
  if (!t.panoIndex) {
58
60
  c(!0);
59
61
  return;
@@ -62,18 +64,18 @@ const w = (e, o, a) => {
62
64
  moveEndCallback: () => c(!0),
63
65
  moveCancelCallback: () => k(!1)
64
66
  });
65
- })), n.asyncEndCallback && (yield n.asyncEndCallback());
66
- const { from: u, to: l } = m(t);
67
+ })), a.asyncEndCallback && (yield a.asyncEndCallback());
68
+ const { from: r, to: l } = m(t);
67
69
  return yield new Promise((c) => {
68
70
  const k = ({ progress: s }) => {
69
71
  const C = {};
70
- C.longitude = I(u.longitude, l.longitude, s), C.latitude = I(u.latitude, l.latitude, s), C.fov = I(u.fov, l.fov, s), e.setState(C, !0);
72
+ C.longitude = I(r.longitude, l.longitude, s), C.latitude = I(r.latitude, l.latitude, s), C.fov = I(r.fov, l.fov, s), e.setState(C, !0);
71
73
  }, M = () => {
72
74
  c(!0);
73
75
  }, E = () => {
74
76
  c(!1);
75
- }, S = t.rotateSpeed ? Math.ceil(Math.abs(l.longitude - u.longitude) / t.rotateSpeed * 1e3) : i, x = T(S, h.Easing.Linear.None).onUpdate(k).onComplete(M).onDestroy(E);
76
- t.rotation === r.Loop && x.repeat(1 / 0).yoyo(!0), o.interruptCallback = (s = !0) => {
77
+ }, S = t.rotateSpeed ? Math.ceil(Math.abs(l.longitude - r.longitude) / t.rotateSpeed * 1e3) : i, x = T(S, h.Easing.Linear.None).onUpdate(k).onComplete(M).onDestroy(E);
78
+ t.rotation === u.Loop && x.repeat(1 / 0).yoyo(!0), o.interruptCallback = (s = !0) => {
77
79
  x.destroy(), o.interruptCallback = void 0, o.timeoutId && (clearTimeout(o.timeoutId), o.timeoutId = void 0), c(s);
78
80
  }, o.timeoutId = setTimeout(() => {
79
81
  o.interruptCallback && o.interruptCallback(!0);
@@ -83,5 +85,6 @@ const w = (e, o, a) => {
83
85
  };
84
86
  };
85
87
  export {
86
- R as CameraMovementPlugin
88
+ _ as CameraMovementPlugin,
89
+ _ as default
87
90
  };
@@ -1,3 +1,16 @@
1
+ import "./CameraMovementPlugin.js";
2
+ import { CameraMovementPlugin as u, CameraMovementPlugin as v } from "./CameraMovementPlugin.js";
3
+ import { CameraMovementEffect as M, Rotation as g } from "./typing.js";
1
4
  import "@realsee/five";
2
5
  import "@tweenjs/tween.js";
6
+ import "../shared-utils/animationFrame/tween.js";
7
+ import "../shared-utils/animationFrame/index.js";
3
8
  import "../shared-utils/animationFrame/BetterTween.js";
9
+ import "../shared-utils/animationFrame/formatRad.js";
10
+ import "../shared-utils/animationFrame/calculateProgress.js";
11
+ export {
12
+ M as CameraMovementEffect,
13
+ u as CameraMovementPlugin,
14
+ g as Rotation,
15
+ v as default
16
+ };
@@ -2,16 +2,16 @@ var G = Object.defineProperty, K = Object.defineProperties;
2
2
  var U = Object.getOwnPropertyDescriptors;
3
3
  var E = Object.getOwnPropertySymbols;
4
4
  var T = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
5
- var x = (g, c, e) => c in g ? G(g, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : g[c] = e, S = (g, c) => {
5
+ var x = (v, c, e) => c in v ? G(v, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : v[c] = e, P = (v, c) => {
6
6
  for (var e in c || (c = {}))
7
- T.call(c, e) && x(g, e, c[e]);
7
+ T.call(c, e) && x(v, e, c[e]);
8
8
  if (E)
9
9
  for (var e of E(c))
10
- A.call(c, e) && x(g, e, c[e]);
11
- return g;
12
- }, L = (g, c) => K(g, U(c));
13
- var P = (g, c, e) => (x(g, typeof c != "symbol" ? c + "" : c, e), e);
14
- var y = (g, c, e) => new Promise((t, i) => {
10
+ A.call(c, e) && x(v, e, c[e]);
11
+ return v;
12
+ }, L = (v, c) => K(v, U(c));
13
+ var S = (v, c, e) => (x(v, typeof c != "symbol" ? c + "" : c, e), e);
14
+ var g = (v, c, e) => new Promise((t, i) => {
15
15
  var a = (s) => {
16
16
  try {
17
17
  n(e.next(s));
@@ -25,19 +25,29 @@ var y = (g, c, e) => new Promise((t, i) => {
25
25
  i(r);
26
26
  }
27
27
  }, n = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(a, o);
28
- n((e = e.apply(g, c)).next());
28
+ n((e = e.apply(v, c)).next());
29
29
  });
30
30
  import { Controller as O } from "../base/BasePluginWithData.js";
31
31
  import { GuideLinePlugin as V } from "../GuideLinePlugin/index.js";
32
32
  import { uuid as k } from "../shared-utils/uuid.js";
33
33
  import { coordinatesAngle as Q } from "./utils/coordinatesAngle.js";
34
- import { safeCall as _ } from "./utils/safeCall.js";
35
- import { equal as $ } from "../shared-utils/equal.js";
34
+ import { safeCall as $ } from "./utils/safeCall.js";
35
+ import { equal as _ } from "../shared-utils/equal.js";
36
36
  import { vectorToCoordinates as R } from "./utils/vectorToCoordinates.js";
37
37
  import * as N from "three";
38
38
  import { linerValue as j } from "./utils/linerValue.js";
39
39
  import { sleep as H } from "./utils/sleep.js";
40
- const M = "v1.0.6", D = "CruisePlugin", w = `${D}@${M}`, F = () => {
40
+ import "../base/BasePlugin.js";
41
+ import "../shared-utils/Subscribe.js";
42
+ import "../GuideLinePlugin/Controller.js";
43
+ import "../GuideLinePlugin/utils/getLineGeometries.js";
44
+ import "polyline-normals";
45
+ import "../GuideLinePlugin/utils/getArrowMaterial.js";
46
+ import "../shared-utils/isNil.js";
47
+ import "./utils/coordinatesToVector.js";
48
+ import "../shared-utils/isTruelyObject.js";
49
+ import "./utils/formatRad.js";
50
+ const M = "v1.0.6", D = "CruisePlugin", w = `${D}@${M}`, ve = (v) => `${w}--${v}`, F = () => {
41
51
  console.error(`${w} is disposed`);
42
52
  }, J = () => {
43
53
  console.warn(`${w} is disabled`);
@@ -47,7 +57,7 @@ const M = "v1.0.6", D = "CruisePlugin", w = `${D}@${M}`, F = () => {
47
57
  class B extends O {
48
58
  constructor(e, t) {
49
59
  super(e, t);
50
- P(this, "state", {
60
+ S(this, "state", {
51
61
  visible: !0,
52
62
  enabled: !0,
53
63
  disposed: !1,
@@ -62,9 +72,9 @@ class B extends O {
62
72
  }
63
73
  }
64
74
  });
65
- P(this, "data");
66
- P(this, "config");
67
- P(this, "privateState", {
75
+ S(this, "data");
76
+ S(this, "config");
77
+ S(this, "privateState", {
68
78
  playing: !1,
69
79
  currentPlayQueue: [],
70
80
  currentPlayKeyframe: null,
@@ -72,7 +82,7 @@ class B extends O {
72
82
  disposers: [],
73
83
  modeChanging: !1
74
84
  });
75
- P(this, "GuideLine");
85
+ S(this, "GuideLine");
76
86
  this.config = t, Object.assign(window, { [`__${D}_DEBUG__`]: this });
77
87
  const i = this.setFiveLinearUpdateCamera.bind(this), a = this.setFiveOriginUpdateCamera.bind(this);
78
88
  this.hooks.on("play", i), this.hooks.on("broke", a), this.hooks.on("end", a), this.hooks.on("pause", a), this.privateState.disposers.push(() => {
@@ -80,11 +90,11 @@ class B extends O {
80
90
  });
81
91
  }
82
92
  load(e, t, i) {
83
- return y(this, null, function* () {
84
- var d, v, f, l, u;
93
+ return g(this, null, function* () {
94
+ var d, y, f, l, u;
85
95
  if (this.state.disposed)
86
96
  return F();
87
- this.privateState.fiveOriginGetProgress || (v = (d = this.five.controller) == null ? void 0 : d.cameraMotion) != null && v.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (l = (f = this.five.controller) == null ? void 0 : f.cameraMotion) == null ? void 0 : l.getProgress), this.clear();
97
+ this.privateState.fiveOriginGetProgress || (y = (d = this.five.controller) == null ? void 0 : d.cameraMotion) != null && y.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (l = (f = this.five.controller) == null ? void 0 : f.cameraMotion) == null ? void 0 : l.getProgress), this.clear();
88
98
  const a = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, o = yield this.formatData(e);
89
99
  this.data = o, this.hooks.emit("dataChange", o, a);
90
100
  let n = [], s;
@@ -115,18 +125,18 @@ class B extends O {
115
125
  this.state.playing && this.setState({ playing: !1 }, { userAction: a }), this.setState({ playing: !0 }, { userAction: a, playFromIndex: t, playFromId: i });
116
126
  }
117
127
  playFromStart(e) {
118
- return this.playFrom(L(S({}, e), { index: 0 }));
128
+ return this.playFrom(L(P({}, e), { index: 0 }));
119
129
  }
120
130
  pause(e) {
121
131
  this.setState({ playing: !1 }, e);
122
132
  }
123
133
  show(e) {
124
- return y(this, null, function* () {
134
+ return g(this, null, function* () {
125
135
  this.setState({ visible: !0 }, e);
126
136
  });
127
137
  }
128
138
  hide(e) {
129
- return y(this, null, function* () {
139
+ return g(this, null, function* () {
130
140
  this.setState({ visible: !1 }, e);
131
141
  });
132
142
  }
@@ -145,11 +155,11 @@ class B extends O {
145
155
  return F();
146
156
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
147
157
  return q();
148
- const i = S({}, this.state);
149
- this.state = S(S({}, this.state), e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed, t == null ? void 0 : t.userAction), $(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (a = t == null ? void 0 : t.userAction) != null ? a : !0 });
158
+ const i = P({}, this.state);
159
+ this.state = P(P({}, this.state), e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed, t == null ? void 0 : t.userAction), _(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (a = t == null ? void 0 : t.userAction) != null ? a : !0 });
150
160
  }
151
161
  formatData(e) {
152
- return y(this, null, function* () {
162
+ return g(this, null, function* () {
153
163
  this.five.work || (yield this.waitFiveLoaded());
154
164
  const t = this.five.work.observers, i = (() => {
155
165
  const a = e;
@@ -161,7 +171,7 @@ class B extends O {
161
171
  keyframes: i.keyframes.map((a, o) => {
162
172
  var r;
163
173
  const n = i.keyframes[o + 1], s = (() => !n || n.start === void 0 || a.end === void 0 ? 0 : n.start - a.end)();
164
- return S({ id: (r = a.uuid) != null ? r : k(), moveIndex: o, stay: s, index: o }, a);
174
+ return P({ id: (r = a.uuid) != null ? r : k(), moveIndex: o, stay: s, index: o }, a);
165
175
  })
166
176
  };
167
177
  if (i.panoIndexList) {
@@ -170,11 +180,11 @@ class B extends O {
170
180
  return this.privateState.moveToFirstPanoEffect = n, i.panoIndexList.forEach((s, r) => {
171
181
  const d = (() => {
172
182
  var h, m, p, b;
173
- const v = i.panoIndexList.slice(r).find((I) => I !== s);
174
- if (v === void 0)
183
+ const y = i.panoIndexList.slice(r).find((I) => I !== s);
184
+ if (y === void 0)
175
185
  return;
176
- const f = (h = t[s]) == null ? void 0 : h.position, l = (m = t[v]) == null ? void 0 : m.position;
177
- if (!l || !f || ((p = t[s]) == null ? void 0 : p.floorIndex) !== ((b = t[v]) == null ? void 0 : b.floorIndex))
186
+ const f = (h = t[s]) == null ? void 0 : h.position, l = (m = t[y]) == null ? void 0 : m.position;
187
+ if (!l || !f || ((p = t[s]) == null ? void 0 : p.floorIndex) !== ((b = t[y]) == null ? void 0 : b.floorIndex))
178
188
  return;
179
189
  const u = new N.Vector3().subVectors(l, f);
180
190
  return R(u);
@@ -182,9 +192,9 @@ class B extends O {
182
192
  i.moveType === void 0 || i.moveType === "justMove" ? a.push({
183
193
  moveIndex: r,
184
194
  stay: i.stay,
185
- data: S({ effect: "Move", panoIndex: s, moveEffect: o }, d != null ? d : {})
186
- }) : i.moveType === "moveAndRotate" && (a.push({ moveIndex: r, stay: i.stay, data: { effect: "Move", panoIndex: s, moveEffect: o } }), d && a.push({ moveIndex: r, stay: i.stay, data: S({ effect: "Rotate", panoIndex: s }, d) }));
187
- }), { keyframesId: k(), keyframes: a.map((s, r) => S({ id: k(), index: r }, s)) };
195
+ data: P({ effect: "Move", panoIndex: s, moveEffect: o }, d != null ? d : {})
196
+ }) : i.moveType === "moveAndRotate" && (a.push({ moveIndex: r, stay: i.stay, data: { effect: "Move", panoIndex: s, moveEffect: o } }), d && a.push({ moveIndex: r, stay: i.stay, data: P({ effect: "Rotate", panoIndex: s }, d) }));
197
+ }), { keyframesId: k(), keyframes: a.map((s, r) => P({ id: k(), index: r }, s)) };
188
198
  } else
189
199
  throw new Error("format error: data no keyframes or no panoIndexList");
190
200
  });
@@ -206,7 +216,7 @@ class B extends O {
206
216
  ), e ? this.handlePlay(t) : this.handlePause(t), this.state.playing = e;
207
217
  }
208
218
  handlePlay(e) {
209
- return y(this, null, function* () {
219
+ return g(this, null, function* () {
210
220
  var l;
211
221
  const { data: t, state: i, privateState: a, hooks: o } = this;
212
222
  if (a.playing || !(t != null && t.keyframes) || (t == null ? void 0 : t.keyframes.length) === 0)
@@ -216,7 +226,7 @@ class B extends O {
216
226
  const s = t.keyframes, r = this.getPauseData();
217
227
  (e == null ? void 0 : e.notEmitEvent) !== !0 && o.emit("play", { userAction: (l = e == null ? void 0 : e.userAction) != null ? l : !0 });
218
228
  let d = !1;
219
- const f = yield (() => y(this, null, function* () {
229
+ const f = yield (() => g(this, null, function* () {
220
230
  var u, h;
221
231
  if ((e == null ? void 0 : e.playFromIndex) !== void 0)
222
232
  return e.playFromIndex;
@@ -257,7 +267,7 @@ class B extends O {
257
267
  t.playing = !1, i.playing !== !1 && (i.playing = !1, this.setPauseData(), i.broke || this.forceInteruptUpdateCamera(), (e == null ? void 0 : e.notEmitEvent) !== !0 && a.emit("pause", { userAction: (o = e == null ? void 0 : e.userAction) != null ? o : !0 }));
258
268
  }
259
269
  playKeyframe(e, t) {
260
- return y(this, null, function* () {
270
+ return g(this, null, function* () {
261
271
  var a;
262
272
  const { privateState: i } = this;
263
273
  return ((a = this.privateState.currentPlayKeyframe) == null ? void 0 : a.keyframe.id) !== e.id && (this.privateState.currentPlayKeyframe = { keyframe: e }), i.currentPlayQueue.push(this.getPlayPromise(e, t)), this.actionPromiseQueue();
@@ -272,7 +282,7 @@ class B extends O {
272
282
  };
273
283
  }
274
284
  getPlayPromise(e, t) {
275
- return y(this, null, function* () {
285
+ return g(this, null, function* () {
276
286
  var a;
277
287
  const i = e.data;
278
288
  if ((a = t == null ? void 0 : t.duration) != null || e.start !== void 0 && e.end !== void 0 && e.end - e.start, !!i)
@@ -304,7 +314,7 @@ class B extends O {
304
314
  });
305
315
  }
306
316
  actionPromiseQueue() {
307
- return y(this, null, function* () {
317
+ return g(this, null, function* () {
308
318
  const { privateState: e } = this;
309
319
  return new Promise((t, i) => {
310
320
  if (e.currentPlayQueue.length === 0) {
@@ -321,7 +331,7 @@ class B extends O {
321
331
  });
322
332
  }
323
333
  move(e, t) {
324
- return y(this, null, function* () {
334
+ return g(this, null, function* () {
325
335
  if (e.mode && e.mode !== this.five.currentMode)
326
336
  yield this.changeMode(e);
327
337
  else if (e.panoIndex !== this.five.panoIndex)
@@ -331,7 +341,7 @@ class B extends O {
331
341
  });
332
342
  }
333
343
  rotate(e, t) {
334
- return y(this, null, function* () {
344
+ return g(this, null, function* () {
335
345
  if (e.mode && e.mode !== this.five.currentMode)
336
346
  yield this.changeMode({ mode: e.mode, panoIndex: e.panoIndex });
337
347
  else if (e.panoIndex && e.panoIndex !== this.five.panoIndex)
@@ -340,16 +350,16 @@ class B extends O {
340
350
  });
341
351
  }
342
352
  updateCamera(e, t = 800) {
343
- return y(this, null, function* () {
353
+ return g(this, null, function* () {
344
354
  const { five: i, privateState: a, state: o } = this;
345
355
  let n = t;
346
356
  const s = (() => {
347
357
  var f, l;
348
- const d = (f = o.config) == null ? void 0 : f.speedConfig, v = (l = e.rotateSpeed) != null ? l : d == null ? void 0 : d.rotateSpeed;
358
+ const d = (f = o.config) == null ? void 0 : f.speedConfig, y = (l = e.rotateSpeed) != null ? l : d == null ? void 0 : d.rotateSpeed;
349
359
  if ((d == null ? void 0 : d.rotateSpeedUnit) === void 0)
350
- return v;
351
- if (v !== void 0)
352
- return d.rotateSpeedUnit === "rad/ms" ? v : v / 1e3;
360
+ return y;
361
+ if (y !== void 0)
362
+ return d.rotateSpeedUnit === "rad/ms" ? y : y / 1e3;
353
363
  })();
354
364
  if (s) {
355
365
  const d = this.five.getCurrentState();
@@ -358,20 +368,20 @@ class B extends O {
358
368
  a.currentPlayKeyframe && (a.currentPlayKeyframe.originDuration = n);
359
369
  const r = this.getSpeededDuration(n);
360
370
  return new Promise((d) => {
361
- _(() => i.updateCamera(e, r)), setTimeout(() => d(), r);
371
+ $(() => i.updateCamera(e, r)), setTimeout(() => d(), r);
362
372
  });
363
373
  });
364
374
  }
365
375
  changePano(e, t) {
366
- return y(this, null, function* () {
367
- var v;
376
+ return g(this, null, function* () {
377
+ var y;
368
378
  const { five: i, privateState: a, state: o } = this;
369
379
  if (typeof e.panoIndex != "number" || e.panoIndex === i.panoIndex)
370
380
  return;
371
381
  i.getCurrentState().mode;
372
382
  const n = i.getCurrentState().mode !== "Panorama";
373
383
  n && (this.privateState.modeChanging = !0);
374
- let s = (v = t == null ? void 0 : t.duration) != null ? v : 800;
384
+ let s = (y = t == null ? void 0 : t.duration) != null ? y : 800;
375
385
  const r = (() => {
376
386
  var u, h;
377
387
  const f = (u = o.config) == null ? void 0 : u.speedConfig, l = (h = e.moveSpeed) != null ? h : f == null ? void 0 : f.moveSpeed;
@@ -416,8 +426,8 @@ class B extends O {
416
426
  return this.five.controller.cameraMotion.progress;
417
427
  }
418
428
  changeMode(e, t) {
419
- return y(this, null, function* () {
420
- e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, console.log("this.privateState.modeChanging", this.privateState.modeChanging), yield this.five.changeMode(e.mode, e, t), this.privateState.modeChanging = !1);
429
+ return g(this, null, function* () {
430
+ e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, t), this.privateState.modeChanging = !1);
421
431
  });
422
432
  }
423
433
  forceInteruptUpdateCamera() {
@@ -456,7 +466,7 @@ class B extends O {
456
466
  t != null && t.warnLog && J();
457
467
  }
458
468
  waitFiveLoaded() {
459
- return y(this, null, function* () {
469
+ return g(this, null, function* () {
460
470
  return new Promise((e) => {
461
471
  if (this.five.work) {
462
472
  e();
@@ -478,7 +488,8 @@ class B extends O {
478
488
  !this.privateState.fiveOriginGetProgress || (this.five.controller.cameraMotion.getProgress = this.privateState.fiveOriginGetProgress);
479
489
  }
480
490
  }
481
- P(B, "PluginVersion", M);
491
+ S(B, "PluginVersion", M);
482
492
  export {
483
- B as CruisePluginController
493
+ B as default,
494
+ ve as pluginFlag
484
495
  };
@@ -1,5 +1,28 @@
1
- import { CruisePluginController as o } from "./Controller.js";
2
- const i = (r) => new o(r);
1
+ import o from "./Controller.js";
2
+ import { default as y } from "./Controller.js";
3
+ import "../base/BasePluginWithData.js";
4
+ import "../base/BasePlugin.js";
5
+ import "../shared-utils/Subscribe.js";
6
+ import "../GuideLinePlugin/index.js";
7
+ import "../GuideLinePlugin/Controller.js";
8
+ import "three";
9
+ import "../GuideLinePlugin/utils/getLineGeometries.js";
10
+ import "polyline-normals";
11
+ import "../GuideLinePlugin/utils/getArrowMaterial.js";
12
+ import "../shared-utils/isNil.js";
13
+ import "../shared-utils/equal.js";
14
+ import "../shared-utils/isTruelyObject.js";
15
+ import "../shared-utils/uuid.js";
16
+ import "./utils/coordinatesAngle.js";
17
+ import "./utils/coordinatesToVector.js";
18
+ import "./utils/safeCall.js";
19
+ import "./utils/vectorToCoordinates.js";
20
+ import "./utils/formatRad.js";
21
+ import "./utils/linerValue.js";
22
+ import "./utils/sleep.js";
23
+ const k = (r) => new o(r);
3
24
  export {
4
- i as CruisePlugin
25
+ k as CruisePlugin,
26
+ y as CruisePluginController,
27
+ k as default
5
28
  };
@@ -0,0 +1 @@
1
+
@@ -1,15 +1,15 @@
1
1
  var k = Object.defineProperty;
2
2
  var G = Object.getOwnPropertySymbols;
3
3
  var x = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
4
- var b = (n, s, e) => s in n ? k(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e, c = (n, s) => {
4
+ var m = (n, s, e) => s in n ? k(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e, c = (n, s) => {
5
5
  for (var e in s || (s = {}))
6
- x.call(s, e) && b(n, e, s[e]);
6
+ x.call(s, e) && m(n, e, s[e]);
7
7
  if (G)
8
8
  for (var e of G(s))
9
- P.call(s, e) && b(n, e, s[e]);
9
+ P.call(s, e) && m(n, e, s[e]);
10
10
  return n;
11
11
  };
12
- var d = (n, s, e) => (b(n, typeof s != "symbol" ? s + "" : s, e), e);
12
+ var d = (n, s, e) => (m(n, typeof s != "symbol" ? s + "" : s, e), e);
13
13
  var u = (n, s, e) => new Promise((i, t) => {
14
14
  var a = (r) => {
15
15
  try {
@@ -27,11 +27,15 @@ var u = (n, s, e) => new Promise((i, t) => {
27
27
  o((e = e.apply(n, s)).next());
28
28
  });
29
29
  import { Controller as $ } from "../base/BasePluginWithData.js";
30
- import * as m from "three";
30
+ import * as b from "three";
31
31
  import { getLineGeometries as y } from "./utils/getLineGeometries.js";
32
32
  import { getArrowMaterial as M } from "./utils/getArrowMaterial.js";
33
33
  import { notNil as w } from "../shared-utils/isNil.js";
34
34
  import { equal as N } from "../shared-utils/equal.js";
35
+ import "../base/BasePlugin.js";
36
+ import "../shared-utils/Subscribe.js";
37
+ import "polyline-normals";
38
+ import "../shared-utils/isTruelyObject.js";
35
39
  const L = "v1.0.1", S = "GuideLinePlugin", v = `${S}@${L}`, E = (n) => `${v}--${n}`;
36
40
  class I extends $ {
37
41
  constructor(e, i) {
@@ -101,13 +105,13 @@ class I extends $ {
101
105
  this.linesGroup && this.five.scene.add(this.linesGroup);
102
106
  }
103
107
  getLinesGroup(e) {
104
- const i = e.map(this.getLine.bind(this)).filter(w), t = new m.Group();
108
+ const i = e.map(this.getLine.bind(this)).filter(w), t = new b.Group();
105
109
  if (t.name = E("route-group"), i.length !== 0)
106
110
  return t.add(...i), t;
107
111
  }
108
112
  getLine(e) {
109
113
  var o, r, l, g;
110
- const i = new m.Group(), t = e.panoIndexList.map((p) => {
114
+ const i = new b.Group(), t = e.panoIndexList.map((p) => {
111
115
  var f;
112
116
  return (f = this.five.work.observers[p]) == null ? void 0 : f.standingPosition;
113
117
  }).filter(w), a = y(t, {
@@ -119,7 +123,7 @@ class I extends $ {
119
123
  return;
120
124
  const h = M({ textureUrl: (g = e.arrowTextureUrl) != null ? g : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png" });
121
125
  return a.forEach((p) => {
122
- const f = new m.Mesh(p, h);
126
+ const f = new b.Mesh(p, h);
123
127
  f.name = E("route-line-mesh"), i.add(f);
124
128
  }), i;
125
129
  }
@@ -139,5 +143,6 @@ class I extends $ {
139
143
  }
140
144
  d(I, "lasestVersion", L);
141
145
  export {
142
- I as Controller
146
+ I as default,
147
+ E as pluginFlag
143
148
  };