@realsee/dnalogel 2.27.3 → 2.27.4-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (383) hide show
  1. package/dist/AreaMakerPlugin/Controller.d.ts +94 -0
  2. package/dist/AreaMakerPlugin/index.d.ts +4 -0
  3. package/dist/AreaMakerPlugin/typing.d.ts +148 -0
  4. package/dist/AreaMakerPlugin/utils/Item.d.ts +114 -0
  5. package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -5
  6. package/dist/base/BasePluginWithData.d.ts +1 -1
  7. package/dist/components/AreaLabel/Assets/roomLabelBg.d.ts +1 -0
  8. package/dist/components/AreaLabel/LabelItem.svelte.d.ts +1 -0
  9. package/dist/floorplan/utils/correctFiveState.d.ts +2 -0
  10. package/dist/index.cjs.js +53 -53
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.js +4972 -4311
  13. package/dist/index.umd.js +54 -54
  14. package/dist/shared-utils/index.d.ts +1 -0
  15. package/dist/shared-utils/math/planimetry.d.ts +1 -1
  16. package/dist/shared-utils/three/core/Object3D.d.ts +8 -0
  17. package/dist/shared-utils/three/index.d.ts +2 -0
  18. package/dist/shared-utils/three/objects/LineSegments.d.ts +9 -0
  19. package/docs/.nojekyll +1 -0
  20. package/docs/assets/highlight.css +120 -0
  21. package/docs/assets/main.js +58 -0
  22. package/docs/assets/search.js +1 -0
  23. package/docs/assets/style.css +1367 -0
  24. package/docs/classes/AreaMakerPluginPluginType.AreaMakerController.html +711 -0
  25. package/docs/classes/AreaMakerPluginPluginType.AreaMakerItem.html +671 -0
  26. package/docs/classes/CSS3DRender.html +769 -0
  27. package/docs/classes/CruisePluginController.html +668 -0
  28. package/docs/classes/GuideLineItem.GuideLineItem.html +487 -0
  29. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +788 -0
  30. package/docs/classes/Magnifier.html +476 -0
  31. package/docs/classes/ModelRoomLabelController.html +394 -0
  32. package/docs/classes/Object3DHelperController.html +636 -0
  33. package/docs/classes/PaintBrush.html +498 -0
  34. package/docs/classes/PanoMeasurePluginLine.html +518 -0
  35. package/docs/classes/PanoMeasurePluginModel.html +567 -0
  36. package/docs/classes/PanoMeasurePluginPoint.html +358 -0
  37. package/docs/classes/PanoMeasurePluginPolyline.html +563 -0
  38. package/docs/classes/PanoTagPluginController.html +1086 -0
  39. package/docs/classes/Util.BetterTween.html +411 -0
  40. package/docs/classes/Util.Interval.html +427 -0
  41. package/docs/classes/Util.LineSegments.html +379 -0
  42. package/docs/classes/Util.Magnifier.html +498 -0
  43. package/docs/classes/Util.Object3D.html +401 -0
  44. package/docs/classes/Util.PointDomHelper.html +402 -0
  45. package/docs/classes/Util.PointHelper.html +393 -0
  46. package/docs/classes/Util.PointSelectorHelper.html +449 -0
  47. package/docs/classes/Util.Rectangle.html +450 -0
  48. package/docs/enums/CameraMovementEffect.html +306 -0
  49. package/docs/enums/ContentType.html +442 -0
  50. package/docs/enums/DIRECTION.html +316 -0
  51. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +316 -0
  52. package/docs/enums/DimensionType.html +306 -0
  53. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +309 -0
  54. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +316 -0
  55. package/docs/enums/PaintBrushTypeEnum.html +309 -0
  56. package/docs/enums/PointType.html +306 -0
  57. package/docs/enums/Rotation.html +313 -0
  58. package/docs/functions/AreaMakerPluginPlugin.html +284 -0
  59. package/docs/functions/CSS3DRenderPlugin.html +284 -0
  60. package/docs/functions/CameraMovementPlugin.html +289 -0
  61. package/docs/functions/CruisePlugin.html +286 -0
  62. package/docs/functions/GuideLinePlugin.html +286 -0
  63. package/docs/functions/ItemLabelPlugin.html +286 -0
  64. package/docs/functions/MapviewFloorplanPlugin.html +286 -0
  65. package/docs/functions/ModelChassisCompassPlugin.html +289 -0
  66. package/docs/functions/ModelEntryDoorGuidePlugin.html +289 -0
  67. package/docs/functions/ModelFloorplanPlugin.html +286 -0
  68. package/docs/functions/ModelItemLabelPlugin.html +286 -0
  69. package/docs/functions/ModelRoomLabelPlugin.html +284 -0
  70. package/docs/functions/ModelTVVideoPlugin.html +286 -0
  71. package/docs/functions/ModelViewPlugin.html +289 -0
  72. package/docs/functions/Object3DHelperPlugin.html +284 -0
  73. package/docs/functions/PanoCompassPlugin.html +286 -0
  74. package/docs/functions/PanoCursorRaycasterPlugin.html +290 -0
  75. package/docs/functions/PanoDoorLabelPlugin.html +286 -0
  76. package/docs/functions/PanoFloorplanRadarPlugin.html +286 -0
  77. package/docs/functions/PanoMeasurePlugin.html +286 -0
  78. package/docs/functions/PanoRulerPlugin.html +289 -0
  79. package/docs/functions/PanoRulerProPlugin.html +289 -0
  80. package/docs/functions/PanoSpatialTagPlugin.html +289 -0
  81. package/docs/functions/PanoTagPlugin.html +291 -0
  82. package/docs/functions/PanoVideoPlugin.html +295 -0
  83. package/docs/functions/PipelinePlugin.html +284 -0
  84. package/docs/functions/TopviewFloorplanPlugin.html +286 -0
  85. package/docs/functions/Util.absoluteUrl.html +321 -0
  86. package/docs/functions/Util.equal.html +333 -0
  87. package/docs/functions/Util.getCoordsFromClient.html +323 -0
  88. package/docs/functions/Util.getCoordsFromElement.html +323 -0
  89. package/docs/functions/Util.getFrameTime.html +315 -0
  90. package/docs/functions/Util.getIntersectFromRelativePosition.html +323 -0
  91. package/docs/functions/Util.getRaycasterFromFivePointer.html +323 -0
  92. package/docs/functions/Util.isAbsoluteURL.html +316 -0
  93. package/docs/functions/Util.isModelLike.html +316 -0
  94. package/docs/functions/Util.isNil.html +324 -0
  95. package/docs/functions/Util.isPanoramaLike.html +316 -0
  96. package/docs/functions/Util.nextFrame.html +329 -0
  97. package/docs/functions/Util.notNil.html +324 -0
  98. package/docs/functions/Util.requestAnimationFrameInterval.html +345 -0
  99. package/docs/functions/Util.tweenProgress.html +318 -0
  100. package/docs/functions/Util.uuid.html +314 -0
  101. package/docs/functions/pluginFlag.html +284 -0
  102. package/docs/index.html +350 -0
  103. package/docs/interfaces/AddTagConfig.html +299 -0
  104. package/docs/interfaces/AreaMakerPluginPluginType.AnimeOptions.html +325 -0
  105. package/docs/interfaces/AreaMakerPluginPluginType.Config.html +330 -0
  106. package/docs/interfaces/AreaMakerPluginPluginType.EventMap.html +616 -0
  107. package/docs/interfaces/AreaMakerPluginPluginType.Params.html +329 -0
  108. package/docs/interfaces/AreaMakerPluginPluginType.ServerAreaMakerItem.html +379 -0
  109. package/docs/interfaces/AreaMakerPluginPluginType.ServerAreaMakerItemV1.html +364 -0
  110. package/docs/interfaces/AreaMakerPluginPluginType.ServerDataV1.html +329 -0
  111. package/docs/interfaces/AreaMakerPluginPluginType.ServerDataV2.html +322 -0
  112. package/docs/interfaces/AreaMakerPluginPluginType.ShowHideOptions.html +321 -0
  113. package/docs/interfaces/AreaMakerPluginPluginType.State.html +350 -0
  114. package/docs/interfaces/CSS3DRenderPluginEventMap.html +445 -0
  115. package/docs/interfaces/CSS3DRenderPluginState.html +321 -0
  116. package/docs/interfaces/CameraMovementPluginExportType.html +354 -0
  117. package/docs/interfaces/CruisePluginTypes.Config.html +355 -0
  118. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +357 -0
  119. package/docs/interfaces/CruisePluginTypes.EventMap.html +692 -0
  120. package/docs/interfaces/CruisePluginTypes.MoveAction.html +381 -0
  121. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +417 -0
  122. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +407 -0
  123. package/docs/interfaces/CruisePluginTypes.PluginData.html +347 -0
  124. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +315 -0
  125. package/docs/interfaces/CruisePluginTypes.PluginState.html +404 -0
  126. package/docs/interfaces/EventMap.html +538 -0
  127. package/docs/interfaces/FloorplanBounding.html +328 -0
  128. package/docs/interfaces/FloorplanData.html +331 -0
  129. package/docs/interfaces/FloorplanEntrance.html +356 -0
  130. package/docs/interfaces/FloorplanExtraObject.html +346 -0
  131. package/docs/interfaces/FloorplanExtraObject3D.html +335 -0
  132. package/docs/interfaces/FloorplanFloorData.html +324 -0
  133. package/docs/interfaces/FloorplanImagePosition.html +310 -0
  134. package/docs/interfaces/FloorplanObserver.html +328 -0
  135. package/docs/interfaces/FloorplanOutlineItem.html +324 -0
  136. package/docs/interfaces/FloorplanPosition.html +310 -0
  137. package/docs/interfaces/FloorplanRoomItem.html +375 -0
  138. package/docs/interfaces/FloorplanRoomLabelItem.html +316 -0
  139. package/docs/interfaces/FloorplanServerBounding.html +328 -0
  140. package/docs/interfaces/FloorplanServerComputedData.html +327 -0
  141. package/docs/interfaces/FloorplanServerData.html +310 -0
  142. package/docs/interfaces/FloorplanServerDoorItem.html +327 -0
  143. package/docs/interfaces/FloorplanServerDoorPosition.html +313 -0
  144. package/docs/interfaces/FloorplanServerEntrance.html +356 -0
  145. package/docs/interfaces/FloorplanServerFloorData.html +324 -0
  146. package/docs/interfaces/FloorplanServerImagePosition.html +310 -0
  147. package/docs/interfaces/FloorplanServerObserver.html +328 -0
  148. package/docs/interfaces/FloorplanServerOutlineItem.html +324 -0
  149. package/docs/interfaces/FloorplanServerPosition.html +310 -0
  150. package/docs/interfaces/FloorplanServerRoomItem.html +387 -0
  151. package/docs/interfaces/FloorplanServerRoomLabelItem.html +316 -0
  152. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +319 -0
  153. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +357 -0
  154. package/docs/interfaces/GuideLinePluginType.EventMap.html +521 -0
  155. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +352 -0
  156. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +343 -0
  157. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +410 -0
  158. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +342 -0
  159. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +467 -0
  160. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +339 -0
  161. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +467 -0
  162. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +304 -0
  163. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +325 -0
  164. package/docs/interfaces/GuideLinePluginType.PluginState.html +350 -0
  165. package/docs/interfaces/GuideLinePluginType.Route.html +366 -0
  166. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +348 -0
  167. package/docs/interfaces/HelperOffset.html +328 -0
  168. package/docs/interfaces/ImagePlaneGroup.html +302 -0
  169. package/docs/interfaces/ItemLabelPluginData.html +299 -0
  170. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +384 -0
  171. package/docs/interfaces/ItemLabelPluginParametersType.html +320 -0
  172. package/docs/interfaces/MinMax.html +306 -0
  173. package/docs/interfaces/ModelChassisCompassPluginData.html +306 -0
  174. package/docs/interfaces/ModelChassisCompassPluginExportType.html +342 -0
  175. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +306 -0
  176. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +313 -0
  177. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +350 -0
  178. package/docs/interfaces/ModelItemLabelPluginData.html +299 -0
  179. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +384 -0
  180. package/docs/interfaces/ModelItemLabelPluginParametersType.html +306 -0
  181. package/docs/interfaces/ModelRoomLabelPluginData.html +299 -0
  182. package/docs/interfaces/ModelTVVideoPluginData.html +320 -0
  183. package/docs/interfaces/ModelTVVideoPluginExportType.html +344 -0
  184. package/docs/interfaces/ModelTVVideoPluginParameterType.html +299 -0
  185. package/docs/interfaces/ModelViewPluginExportType.html +412 -0
  186. package/docs/interfaces/Object3DHelperState.html +313 -0
  187. package/docs/interfaces/ObjectHelperControllers.html +320 -0
  188. package/docs/interfaces/PaintBrushAction.html +359 -0
  189. package/docs/interfaces/PaintBrushConfigs.html +357 -0
  190. package/docs/interfaces/PaintBrushState.html +341 -0
  191. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +421 -0
  192. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +278 -0
  193. package/docs/interfaces/PanoMeasureParameterType.html +445 -0
  194. package/docs/interfaces/PanoMeasurePluginLineJson.html +313 -0
  195. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +310 -0
  196. package/docs/interfaces/PanoMeasurePluginPointJson.html +306 -0
  197. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +316 -0
  198. package/docs/interfaces/PanoRulerPluginExportType.html +373 -0
  199. package/docs/interfaces/PanoRulerPluginOptions.html +322 -0
  200. package/docs/interfaces/PanoRulerPluginParameterType.html +313 -0
  201. package/docs/interfaces/PanoRulerProPluginExportType.html +349 -0
  202. package/docs/interfaces/PanoRulerProPluginOptions.html +319 -0
  203. package/docs/interfaces/PanoRulerProPluginParameterType.html +306 -0
  204. package/docs/interfaces/PanoRulerProPluginState.html +313 -0
  205. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +292 -0
  206. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +281 -0
  207. package/docs/interfaces/PanoSpatialTagPluginData.html +349 -0
  208. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +331 -0
  209. package/docs/interfaces/PanoSpatialTagPluginExportType.html +427 -0
  210. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +327 -0
  211. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +348 -0
  212. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +334 -0
  213. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +327 -0
  214. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +319 -0
  215. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +337 -0
  216. package/docs/interfaces/PanoVideoPluginType.PluginData.html +310 -0
  217. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +416 -0
  218. package/docs/interfaces/PanoVideoPluginType.PluginState.html +310 -0
  219. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +345 -0
  220. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +364 -0
  221. package/docs/interfaces/Point.html +313 -0
  222. package/docs/interfaces/Room.html +320 -0
  223. package/docs/interfaces/RoomInfo.html +306 -0
  224. package/docs/interfaces/RoomLabel.html +382 -0
  225. package/docs/interfaces/RoomRules.html +281 -0
  226. package/docs/interfaces/Rooms.html +281 -0
  227. package/docs/interfaces/Scissor.html +340 -0
  228. package/docs/interfaces/State.html +327 -0
  229. package/docs/interfaces/TagCacheInterface.html +351 -0
  230. package/docs/interfaces/TagConfig.html +541 -0
  231. package/docs/interfaces/TagGLTFObjectGroup.html +302 -0
  232. package/docs/interfaces/TagIconUrl.html +359 -0
  233. package/docs/interfaces/TagObjectGroup.html +302 -0
  234. package/docs/interfaces/TagStyle.html +312 -0
  235. package/docs/interfaces/Tags.html +542 -0
  236. package/docs/interfaces/TemporaryState.html +299 -0
  237. package/docs/interfaces/Util.MagnifierParameter.html +386 -0
  238. package/docs/interfaces/Util.MouseGroupParameter.html +345 -0
  239. package/docs/interfaces/Util.PointIntersection.html +360 -0
  240. package/docs/modules/AreaMakerPluginPluginType.html +319 -0
  241. package/docs/modules/CruisePluginTypes.html +324 -0
  242. package/docs/modules/GuideLineItem.html +285 -0
  243. package/docs/modules/GuideLineModeItem.html +290 -0
  244. package/docs/modules/GuideLinePluginType.html +344 -0
  245. package/docs/modules/PanoVideoPluginType.html +297 -0
  246. package/docs/modules/Util.html +345 -0
  247. package/docs/modules.html +532 -0
  248. package/docs/types/AreaMakerPluginPluginType.AreaMakerItemEventMap.html +327 -0
  249. package/docs/types/AreaMakerPluginPluginType.PluginData.html +297 -0
  250. package/docs/types/AreaMakerPluginPluginType.ServerData.html +297 -0
  251. package/docs/types/ArrayPosition.html +275 -0
  252. package/docs/types/AudioAppearance.html +275 -0
  253. package/docs/types/AudioTagTypeConfigKey.html +275 -0
  254. package/docs/types/CSS3DRenderExportType.html +275 -0
  255. package/docs/types/CSS3DRenderPluginExportType.html +275 -0
  256. package/docs/types/CSS3DRenderPluginParameterType.html +275 -0
  257. package/docs/types/ClassFunctionParameters.html +282 -0
  258. package/docs/types/Color.html +275 -0
  259. package/docs/types/ContentTypeConfigKey.html +275 -0
  260. package/docs/types/ContentTypeConfigKeySplit.html +275 -0
  261. package/docs/types/ContentTypeMap.html +275 -0
  262. package/docs/types/Create3DDomContainerReturnType.html +275 -0
  263. package/docs/types/Create3DElementReturnType.html +275 -0
  264. package/docs/types/CruisePluginExportType.html +275 -0
  265. package/docs/types/CruisePluginTypes.CruiseData.html +314 -0
  266. package/docs/types/CruisePluginTypes.MoveEffect.html +291 -0
  267. package/docs/types/DeprecatedMediaPlaneProperty.html +287 -0
  268. package/docs/types/DeprecatedTagProperty.html +290 -0
  269. package/docs/types/Direction-1.html +275 -0
  270. package/docs/types/Direction4.html +275 -0
  271. package/docs/types/ElementRenderer.html +299 -0
  272. package/docs/types/FloorplanRuleLabels.html +278 -0
  273. package/docs/types/FloorplanServerRuleLabels.html +275 -0
  274. package/docs/types/GuideLinePluginExportType.html +275 -0
  275. package/docs/types/GuideLinePluginType.GuideLineItem.html +347 -0
  276. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +368 -0
  277. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +301 -0
  278. package/docs/types/GuideLinePluginType.GuideLineStyle.html +304 -0
  279. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +304 -0
  280. package/docs/types/GuideLinePluginType.PathItem.html +304 -0
  281. package/docs/types/GuideLinePluginType.PluginData.html +313 -0
  282. package/docs/types/HelperEventMap.html +513 -0
  283. package/docs/types/LoadTagConfig.html +275 -0
  284. package/docs/types/MapviewFloorplanPluginParameterType.html +275 -0
  285. package/docs/types/MapviewFloorplanPluginReturnType.html +275 -0
  286. package/docs/types/MediaData.html +291 -0
  287. package/docs/types/MediaStore.html +280 -0
  288. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +282 -0
  289. package/docs/types/ModelFloorplanPluginParameterType.html +275 -0
  290. package/docs/types/ModelFloorplanPluginReturnType.html +275 -0
  291. package/docs/types/ModelRoomLabelPluginParameters.html +275 -0
  292. package/docs/types/ModelRoomLabelPluginReturnType.html +275 -0
  293. package/docs/types/MoveArgs.html +285 -0
  294. package/docs/types/MoveOpts.html +283 -0
  295. package/docs/types/Object3DHelperEventMap.html +368 -0
  296. package/docs/types/ObjectFit.html +275 -0
  297. package/docs/types/PaintBrushEventMap.html +306 -0
  298. package/docs/types/PanoCompassPluginData.html +275 -0
  299. package/docs/types/PanoCompassPluginExportType.html +275 -0
  300. package/docs/types/PanoCompassPluginParameterType.html +275 -0
  301. package/docs/types/PanoFloorplanRadarPluginParameterType.html +275 -0
  302. package/docs/types/PanoFloorplanRadarPluginReturnType.html +275 -0
  303. package/docs/types/PanoIndex.html +275 -0
  304. package/docs/types/PanoMeasurePluginEvent.html +275 -0
  305. package/docs/types/PanoMeasureReturnType.html +275 -0
  306. package/docs/types/PanoSpatialTagPluginId.html +275 -0
  307. package/docs/types/PanoTagPluginExportInterface.html +275 -0
  308. package/docs/types/PanoTagPluginParamsInterface.html +275 -0
  309. package/docs/types/PanoVideoPluginParameterType.html +275 -0
  310. package/docs/types/PanoVideoPluginReturnType.html +275 -0
  311. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +283 -0
  312. package/docs/types/PipelinePluginParameterType.html +275 -0
  313. package/docs/types/PipelinePluginReturnType.html +275 -0
  314. package/docs/types/PlaneTag.html +283 -0
  315. package/docs/types/Point2DTag.html +283 -0
  316. package/docs/types/Point3DTag.html +283 -0
  317. package/docs/types/PointTag.html +280 -0
  318. package/docs/types/PointTagInstance.html +280 -0
  319. package/docs/types/Position.html +275 -0
  320. package/docs/types/RotateArgs.html +287 -0
  321. package/docs/types/RotateOpts.html +283 -0
  322. package/docs/types/RuleLabelsKey.html +275 -0
  323. package/docs/types/RuleLabelsValue.html +275 -0
  324. package/docs/types/StickType.html +275 -0
  325. package/docs/types/Tag.html +341 -0
  326. package/docs/types/Tag2D.html +283 -0
  327. package/docs/types/Tag3D.html +283 -0
  328. package/docs/types/TagConfigByKey.html +280 -0
  329. package/docs/types/TagContentType.html +275 -0
  330. package/docs/types/TagDimensionType.html +277 -0
  331. package/docs/types/TagElement.html +285 -0
  332. package/docs/types/TagEvents.html +328 -0
  333. package/docs/types/TagGLTFObject.html +298 -0
  334. package/docs/types/TagHooks.html +275 -0
  335. package/docs/types/TagId.html +275 -0
  336. package/docs/types/TagInstance.html +347 -0
  337. package/docs/types/TagPointType.html +278 -0
  338. package/docs/types/TagRendererMap.html +280 -0
  339. package/docs/types/TopviewFloorplanPluginParameterType.html +275 -0
  340. package/docs/types/TopviewFloorplanPluginReturnType.html +275 -0
  341. package/docs/types/WorkCode.html +275 -0
  342. package/docs/variables/FLOOR_TYPE_MAP.html +285 -0
  343. package/docs/variables/PLUGIN.html +275 -0
  344. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +278 -0
  345. package/docs/variables/ROOM_TYPE_MAP.html +285 -0
  346. package/docs/variables/defaultGlobalConfig.html +275 -0
  347. package/docs/variables/itemLabelPluginServerParams.html +282 -0
  348. package/docs/variables/modelItemLabelPluginServerParams.html +282 -0
  349. package/docs/variables/modelRoomLabelPluginServerParams.html +282 -0
  350. package/libs/AreaMakerPlugin/Controller.d.ts +94 -0
  351. package/libs/AreaMakerPlugin/Controller.js +336 -0
  352. package/libs/AreaMakerPlugin/index.d.ts +4 -0
  353. package/libs/AreaMakerPlugin/index.js +37 -0
  354. package/libs/AreaMakerPlugin/typing.d.ts +148 -0
  355. package/libs/AreaMakerPlugin/typing.js +1 -0
  356. package/libs/AreaMakerPlugin/utils/Item.d.ts +114 -0
  357. package/libs/AreaMakerPlugin/utils/Item.js +263 -0
  358. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +42 -39
  359. package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -5
  360. package/libs/GuideLinePlugin/utils/createLineGeometry.js +13 -13
  361. package/libs/base/BasePlugin.js +1 -1
  362. package/libs/base/BasePluginWithData.d.ts +1 -1
  363. package/libs/components/AreaLabel/Assets/roomLabelBg.d.ts +1 -0
  364. package/libs/components/AreaLabel/Assets/roomLabelBg.js +4 -0
  365. package/libs/components/AreaLabel/LabelItem.js +125 -0
  366. package/libs/components/AreaLabel/LabelItem.svelte.d.ts +1 -0
  367. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +49 -48
  368. package/libs/floorplan/utils/correctFiveState.d.ts +2 -0
  369. package/libs/floorplan/utils/correctFiveState.js +28 -28
  370. package/libs/index.d.ts +1 -0
  371. package/libs/index.js +120 -112
  372. package/libs/shared-utils/five/changeMode.js +32 -29
  373. package/libs/shared-utils/index.d.ts +1 -0
  374. package/libs/shared-utils/index.js +27 -21
  375. package/libs/shared-utils/logger.js +1 -1
  376. package/libs/shared-utils/math/planimetry.d.ts +1 -1
  377. package/libs/shared-utils/math/planimetry.js +36 -29
  378. package/libs/shared-utils/three/core/Object3D.d.ts +8 -0
  379. package/libs/shared-utils/three/core/Object3D.js +22 -0
  380. package/libs/shared-utils/three/index.d.ts +2 -0
  381. package/libs/shared-utils/three/objects/LineSegments.d.ts +9 -0
  382. package/libs/shared-utils/three/objects/LineSegments.js +9 -0
  383. package/package.json +1 -1
@@ -0,0 +1,125 @@
1
+ import { SvelteComponent as v, init as p, safe_not_equal as h, append_styles as z, element as d, text as k, space as y, attr as u, set_style as l, toggle_class as g, insert as q, append as b, listen as w, set_data as x, noop as _, detach as C, is_function as I } from "../../vendor/svelte/internal/index.js";
2
+ import { ROOM_LABEL_BG as L } from "./Assets/roomLabelBg.js";
3
+ function B(t) {
4
+ z(t, "svelte-qxepni", ".room-label-item.svelte-qxepni{position:absolute;font-size:0.5rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff}.room-label-item__text.svelte-qxepni{position:absolute;left:0;top:-4rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.25rem;min-width:2rem;padding:0 0.375rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-qxepni{position:absolute;top:-2.75rem;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-qxepni{font-size:0.625rem}");
5
+ }
6
+ function O(t) {
7
+ let e, i, r, f, a, m, c;
8
+ return {
9
+ c() {
10
+ e = d("div"), i = d("span"), r = k(
11
+ /*content*/
12
+ t[0]
13
+ ), f = y(), a = d("div"), u(i, "class", "room-label-item__text svelte-qxepni"), l(i, "background-image", "url(" + L + ")"), g(
14
+ i,
15
+ "wide",
16
+ /*content*/
17
+ t[0].length > 3
18
+ ), u(a, "class", "room-label-item__bar svelte-qxepni"), u(e, "class", "room-label-item svelte-qxepni"), l(
19
+ e,
20
+ "z-index",
21
+ /*zIndex*/
22
+ t[2]
23
+ ), l(
24
+ e,
25
+ "transform",
26
+ /*transform*/
27
+ t[3]
28
+ ), l(
29
+ e,
30
+ "opacity",
31
+ /*opacity*/
32
+ t[1]
33
+ ), l(
34
+ e,
35
+ "visibility",
36
+ /*visibility*/
37
+ t[5]
38
+ );
39
+ },
40
+ m(s, o) {
41
+ q(s, e, o), b(e, i), b(i, r), b(e, f), b(e, a), m || (c = w(i, "click", function() {
42
+ I(
43
+ /*onClick*/
44
+ t[4]
45
+ ) && t[4].apply(this, arguments);
46
+ }), m = !0);
47
+ },
48
+ p(s, [o]) {
49
+ t = s, o & /*content*/
50
+ 1 && x(
51
+ r,
52
+ /*content*/
53
+ t[0]
54
+ ), o & /*content*/
55
+ 1 && g(
56
+ i,
57
+ "wide",
58
+ /*content*/
59
+ t[0].length > 3
60
+ ), o & /*zIndex*/
61
+ 4 && l(
62
+ e,
63
+ "z-index",
64
+ /*zIndex*/
65
+ t[2]
66
+ ), o & /*transform*/
67
+ 8 && l(
68
+ e,
69
+ "transform",
70
+ /*transform*/
71
+ t[3]
72
+ ), o & /*opacity*/
73
+ 2 && l(
74
+ e,
75
+ "opacity",
76
+ /*opacity*/
77
+ t[1]
78
+ ), o & /*visibility*/
79
+ 32 && l(
80
+ e,
81
+ "visibility",
82
+ /*visibility*/
83
+ t[5]
84
+ );
85
+ },
86
+ i: _,
87
+ o: _,
88
+ d(s) {
89
+ s && C(e), m = !1, c();
90
+ }
91
+ };
92
+ }
93
+ function j(t, e, i) {
94
+ let r, { content: f } = e, { visible: a } = e, { opacity: m = 1 } = e, { zIndex: c = 0 } = e, { transform: s } = e, { onClick: o = () => {
95
+ } } = e;
96
+ return t.$$set = (n) => {
97
+ "content" in n && i(0, f = n.content), "visible" in n && i(6, a = n.visible), "opacity" in n && i(1, m = n.opacity), "zIndex" in n && i(2, c = n.zIndex), "transform" in n && i(3, s = n.transform), "onClick" in n && i(4, o = n.onClick);
98
+ }, t.$$.update = () => {
99
+ t.$$.dirty & /*visible*/
100
+ 64 && i(5, r = a ? "visible" : "hidden");
101
+ }, [f, m, c, s, o, r, a];
102
+ }
103
+ class G extends v {
104
+ constructor(e) {
105
+ super(), p(
106
+ this,
107
+ e,
108
+ j,
109
+ O,
110
+ h,
111
+ {
112
+ content: 0,
113
+ visible: 6,
114
+ opacity: 1,
115
+ zIndex: 2,
116
+ transform: 3,
117
+ onClick: 4
118
+ },
119
+ B
120
+ );
121
+ }
122
+ }
123
+ export {
124
+ G as LabelItem
125
+ };
@@ -0,0 +1 @@
1
+ export { SvelteComponentTyped as default } from 'svelte/internal';
@@ -1,18 +1,18 @@
1
- var S = Object.defineProperty, A = Object.defineProperties;
2
- var P = Object.getOwnPropertyDescriptors;
3
- var w = Object.getOwnPropertySymbols;
4
- var E = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
5
- var m = (d, n, t) => n in d ? S(d, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[n] = t, c = (d, n) => {
6
- for (var t in n || (n = {}))
7
- E.call(n, t) && m(d, t, n[t]);
8
- if (w)
9
- for (var t of w(n))
10
- C.call(n, t) && m(d, t, n[t]);
1
+ var A = Object.defineProperty, P = Object.defineProperties;
2
+ var E = Object.getOwnPropertyDescriptors;
3
+ var g = Object.getOwnPropertySymbols;
4
+ var C = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
5
+ var m = (d, r, t) => r in d ? A(d, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[r] = t, c = (d, r) => {
6
+ for (var t in r || (r = {}))
7
+ C.call(r, t) && m(d, t, r[t]);
8
+ if (g)
9
+ for (var t of g(r))
10
+ I.call(r, t) && m(d, t, r[t]);
11
11
  return d;
12
- }, v = (d, n) => A(d, P(n));
13
- var o = (d, n, t) => (m(d, typeof n != "symbol" ? n + "" : n, t), t);
14
- var u = (d, n, t) => new Promise((e, i) => {
15
- var r = (a) => {
12
+ }, v = (d, r) => P(d, E(r));
13
+ var o = (d, r, t) => (m(d, typeof r != "symbol" ? r + "" : r, t), t);
14
+ var u = (d, r, t) => new Promise((e, i) => {
15
+ var n = (a) => {
16
16
  try {
17
17
  s(t.next(a));
18
18
  } catch (l) {
@@ -24,21 +24,21 @@ var u = (d, n, t) => new Promise((e, i) => {
24
24
  } catch (l) {
25
25
  i(l);
26
26
  }
27
- }, s = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(r, h);
28
- s((t = t.apply(d, n)).next());
27
+ }, s = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(n, h);
28
+ s((t = t.apply(d, r)).next());
29
29
  });
30
- import * as I from "three";
30
+ import * as w from "three";
31
31
  import { to as y } from "../../shared-utils/to.js";
32
32
  import { equal as F } from "../../shared-utils/equal.js";
33
33
  import { Main as x } from "../Components/Main.js";
34
- import { formatData as g } from "../utils/formatData.js";
34
+ import { formatData as b } from "../utils/formatData.js";
35
35
  import { CAMERA_IMAGE as M } from "../Assets/camera.js";
36
36
  import { omit as _ } from "../../shared-utils/filter.js";
37
37
  import { FLOOR_PLAN_ATTACHED_TO as L } from "../constant.js";
38
38
  import { Controller as O } from "../../base/BasePluginWithData.js";
39
39
  import { getPxmm as D, getAttachedY as T } from "../../shared-utils/getPxmm.js";
40
40
  import { checkShowState as k, correctFiveState as H } from "../utils/correctFiveState.js";
41
- import { changeModelCanvasOpacity as b } from "../../shared-utils/changeModelCanvasOpacity.js";
41
+ import { changeModelCanvasOpacity as S } from "../../shared-utils/changeModelCanvasOpacity.js";
42
42
  import { FloorplanErrorType as f, SHOW_ANIME_DURATION as R } from "../utils/constant.js";
43
43
  import "../../shared-utils/isTruelyObject.js";
44
44
  import "../../vendor/svelte/internal/index.js";
@@ -90,11 +90,11 @@ import "../../shared-utils/absoluteUrl.js";
90
90
  import "../../shared-utils/nearlyEqual.js";
91
91
  import "../../shared-utils/five/changeMode.js";
92
92
  function G(d) {
93
- const { latitude: n, longitude: t } = d, e = Math.abs(n - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
93
+ const { latitude: r, longitude: t } = d, e = Math.abs(r - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
94
94
  return e || i;
95
95
  }
96
96
  function W(d) {
97
- const { latitude: n, longitude: t } = d, e = Math.abs(n - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
97
+ const { latitude: r, longitude: t } = d, e = Math.abs(r - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
98
98
  return e && i;
99
99
  }
100
100
  class Jt extends O {
@@ -160,7 +160,7 @@ class Jt extends O {
160
160
  o(this, "updateSize", () => {
161
161
  if (!this.data || !k(this.five, this.showState) || !this.container || !this.wrapper)
162
162
  return;
163
- const { min: t, max: e } = this.data.bounding, i = e.x - t.x, r = e.y - t.y, h = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, s = D(this.five, this.wrapper, this.floorIndex, h), a = Math.ceil(i * s), l = Math.ceil(r * s);
163
+ const { min: t, max: e } = this.data.bounding, i = e.x - t.x, n = e.y - t.y, h = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, s = D(this.five, this.wrapper, this.floorIndex, h), a = Math.ceil(i * s), l = Math.ceil(n * s);
164
164
  this.size.width === a && this.size.height === l || (this.container.style.width = a + "px", this.container.style.height = l + "px", this.size = { width: a, height: l });
165
165
  });
166
166
  o(this, "highlight", (t) => {
@@ -170,9 +170,9 @@ class Jt extends O {
170
170
  this.highlightData = {}, this.render();
171
171
  });
172
172
  o(this, "_disable", (t) => {
173
- var i, r, h;
173
+ var i, n, h;
174
174
  const { userAction: e } = t;
175
- this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (r = this.app) == null || r.$destroy(), this.app = void 0, (h = this.container) == null || h.remove(), this.removeEventListener();
175
+ this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (n = this.app) == null || n.$destroy(), this.app = void 0, (h = this.container) == null || h.remove(), this.removeEventListener();
176
176
  });
177
177
  o(this, "_enable", (t) => {
178
178
  const { userAction: e } = t;
@@ -194,7 +194,7 @@ class Jt extends O {
194
194
  immediately: !1,
195
195
  isAutoShow: !1,
196
196
  userAction: !0
197
- }, i = c(c({}, e), t), r = () => u(this, null, function* () {
197
+ }, i = c(c({}, e), t), n = () => u(this, null, function* () {
198
198
  this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
199
199
  let s = !1, a;
200
200
  this.showRejection = (p) => {
@@ -207,10 +207,10 @@ class Jt extends O {
207
207
  throw a ? new Error(a) : new Error(f.UnknownError);
208
208
  this.updateSize(), this.updatePosition(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
209
209
  });
210
- return this.isHiddenByHideFunc = !1, this.showPromise = r().then(() => {
210
+ return this.isHiddenByHideFunc = !1, this.showPromise = n().then(() => {
211
211
  this.showPromise = void 0, this.showRejection = void 0;
212
212
  const s = i.modelOpacity, a = i.immediately ? 0 : R;
213
- b(this.five, s, a), this.render(a), this.hooks.emit("showAnimationEnded", {
213
+ S(this.five, s, a), this.render(a), this.hooks.emit("showAnimationEnded", {
214
214
  auto: i.isAutoShow,
215
215
  userAction: i.userAction
216
216
  });
@@ -220,13 +220,13 @@ class Jt extends O {
220
220
  }), this.showPromise;
221
221
  }));
222
222
  o(this, "_hide", (t) => {
223
- var r;
224
- (r = this.showRejection) == null || r.call(this, f.BreakOffByHide), this.showPromise = void 0;
223
+ var n;
224
+ (n = this.showRejection) == null || n.call(this, f.BreakOffByHide), this.showPromise = void 0;
225
225
  const i = c(c({}, {
226
226
  userAction: !0,
227
227
  isAutoHide: !1
228
228
  }), t);
229
- b(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
229
+ S(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
230
230
  });
231
231
  o(this, "handleClick", () => {
232
232
  if (!this.state.visible)
@@ -236,12 +236,13 @@ class Jt extends O {
236
236
  });
237
237
  /** modelLoaded 之后自动执行 append container 操作 */
238
238
  o(this, "onFiveModelLoaded", () => {
239
- if (this.state.enabled === !1 || this.wrapper || !this.selector)
239
+ const e = this.five.model.bounding.getCenter(new w.Vector3());
240
+ if (this.showState.offset = e, this.state.enabled === !1 || this.wrapper || !this.selector)
240
241
  return;
241
- const t = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
242
- if (!t)
242
+ const i = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
243
+ if (!i)
243
244
  throw new Error("不正确的父容器选择器");
244
- this.wrapper = t, t.append(this.container);
245
+ this.wrapper = i, i.append(this.container);
245
246
  });
246
247
  /** 更改模型时,自动隐藏户型图 */
247
248
  o(this, "onFiveModeChange", (t) => {
@@ -292,7 +293,7 @@ class Jt extends O {
292
293
  mode: "Mapview",
293
294
  longitude: 0,
294
295
  latitude: Math.PI / 2,
295
- fov: 90
296
+ fov: 80
296
297
  };
297
298
  const i = {
298
299
  northDesc: "北",
@@ -312,7 +313,7 @@ class Jt extends O {
312
313
  adaptiveRoomLabelVisibleEnable: !0,
313
314
  getRoomAreaText: (s) => (s / 1e6).toFixed(1) + "㎡",
314
315
  getRuleDistanceText: (s) => s.toString()
315
- }, r = e ? _(e, ["selector", "scale"]) : {}, h = c(c({}, i), r);
316
+ }, n = e ? _(e, ["selector", "scale"]) : {}, h = c(c({}, i), n);
316
317
  this.state = {
317
318
  enabled: !0,
318
319
  visible: !1,
@@ -321,13 +322,13 @@ class Jt extends O {
321
322
  }
322
323
  load(t, e, i = !0) {
323
324
  return u(this, null, function* () {
324
- function r(p) {
325
+ function n(p) {
325
326
  return Object.prototype.hasOwnProperty.apply(p, ["version"]);
326
327
  }
327
328
  const h = t;
328
329
  h && !h.version && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
329
- const s = JSON.parse(JSON.stringify(t)), a = r(s) ? s.data : s, l = this.data;
330
- this.data = yield g(a), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, l), e && this.updateState(e, i), this.render();
330
+ const s = JSON.parse(JSON.stringify(t)), a = n(s) ? s.data : s, l = this.data;
331
+ this.data = yield b(a), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, l), e && this.updateState(e, i), this.render();
331
332
  });
332
333
  }
333
334
  /** 把插件的渲染DOM插入到对应的容器中去 */
@@ -351,9 +352,9 @@ class Jt extends O {
351
352
  }
352
353
  /** 更改插件 State */
353
354
  setState(t, e = {}) {
354
- const i = this.state, r = e.userAction !== void 0 ? e.userAction : !0;
355
- if (this.updateState(t, r), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: r }) : this._disable({ userAction: r })), t.visible !== void 0 && i.visible !== t.visible) {
356
- const h = { userAction: r };
355
+ const i = this.state, n = e.userAction !== void 0 ? e.userAction : !0;
356
+ if (this.updateState(t, n), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: n }) : this._disable({ userAction: n })), t.visible !== void 0 && i.visible !== t.visible) {
357
+ const h = { userAction: n };
357
358
  t.visible ? this._show(h) : this._hide(h);
358
359
  }
359
360
  }
@@ -363,20 +364,20 @@ class Jt extends O {
363
364
  /** 更新户型图位置 */
364
365
  updatePosition() {
365
366
  var s;
366
- const t = T(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.five.model) == null ? void 0 : s.bounding.getCenter(new I.Vector3()).setY(t);
367
+ const t = T(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.five.model) == null ? void 0 : s.bounding.getCenter(new w.Vector3()).setY(t);
367
368
  if (!e)
368
369
  return;
369
- const i = e.clone().project(this.five.camera), r = (i.x + 1) / 2, h = -(i.y - 1) / 2;
370
- this.container.style.left = r * 100 + "%", this.container.style.top = h * 100 + "%";
370
+ const i = e.clone().project(this.five.camera), n = (i.x + 1) / 2, h = -(i.y - 1) / 2;
371
+ this.container.style.left = n * 100 + "%", this.container.style.top = h * 100 + "%";
371
372
  }
372
373
  formatData(t) {
373
374
  return u(this, null, function* () {
374
- return yield g(t.data);
375
+ return yield b(t.data);
375
376
  });
376
377
  }
377
378
  updateState(t, e) {
378
- const i = this.state, r = t.config ? c(c({}, i.config), t.config) : i.config;
379
- this.state = v(c(c({}, this.state), t), { config: r }), !F(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
379
+ const i = this.state, n = t.config ? c(c({}, i.config), t.config) : i.config;
380
+ this.state = v(c(c({}, this.state), t), { config: n }), !F(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
380
381
  }
381
382
  /** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
382
383
  *
@@ -1,9 +1,11 @@
1
+ import type * as THREE from 'three';
1
2
  import type { Five, Mode } from '@realsee/five';
2
3
  export interface ShowState {
3
4
  latitude: number;
4
5
  longitude: number;
5
6
  fov: number;
6
7
  mode: Mode;
8
+ offset?: THREE.Vector3;
7
9
  }
8
10
  /** 判断当前状态是否可以展示户型图 */
9
11
  export declare function checkShowState(five: Five, showState: ShowState): boolean;
@@ -1,41 +1,41 @@
1
- var m = (t, r, e) => new Promise((d, a) => {
2
- var i = (o) => {
1
+ var c = (e, r, o) => new Promise((d, a) => {
2
+ var i = (t) => {
3
3
  try {
4
- u(e.next(o));
5
- } catch (c) {
6
- a(c);
4
+ u(o.next(t));
5
+ } catch (f) {
6
+ a(f);
7
7
  }
8
- }, n = (o) => {
8
+ }, n = (t) => {
9
9
  try {
10
- u(e.throw(o));
11
- } catch (c) {
12
- a(c);
10
+ u(o.throw(t));
11
+ } catch (f) {
12
+ a(f);
13
13
  }
14
- }, u = (o) => o.done ? d(o.value) : Promise.resolve(o.value).then(i, n);
15
- u((e = e.apply(t, r)).next());
14
+ }, u = (t) => t.done ? d(t.value) : Promise.resolve(t.value).then(i, n);
15
+ u((o = o.apply(e, r)).next());
16
16
  });
17
- import { to as f } from "../../shared-utils/to.js";
18
- import { FloorplanErrorType as l } from "./constant.js";
17
+ import { to as l } from "../../shared-utils/to.js";
18
+ import { FloorplanErrorType as m } from "./constant.js";
19
19
  import { nearlyEqual as s } from "../../shared-utils/nearlyEqual.js";
20
20
  import { changeMode as p } from "../../shared-utils/five/changeMode.js";
21
- function g(t, r) {
22
- if (t.currentMode !== r.mode)
21
+ function g(e, r) {
22
+ if (e.currentMode !== r.mode)
23
23
  return !1;
24
- const { latitude: e, longitude: d, fov: a } = r, { latitude: i, longitude: n } = t.getCurrentState(), u = t.camera.fov;
25
- return !(!s(e, i, 2) || !s(d, n, 2) || a !== u);
24
+ const { latitude: o, longitude: d, fov: a, offset: i } = r, { latitude: n, longitude: u, offset: t } = e.getCurrentState(), f = e.camera.fov;
25
+ return !(!s(o, n, 2) || !s(d, u, 2) || i !== void 0 && i.distanceTo(t) > 0.01 || a !== f);
26
26
  }
27
- function F(t, r, e = !0) {
28
- return m(this, null, function* () {
29
- if (g(t, r) === !0)
27
+ function y(e, r, o = !0) {
28
+ return c(this, null, function* () {
29
+ if (g(e, r) === !0)
30
30
  return;
31
- const a = t.getCurrentState();
31
+ const a = e.getCurrentState();
32
32
  if (a.mode !== r.mode) {
33
- const [M] = yield f(p(t, [r.mode, r, void 0, e]));
33
+ const [M] = yield l(p(e, [r.mode, r, void 0, o]));
34
34
  if (M)
35
- throw new Error(l.ChangeModeError);
35
+ throw new Error(m.ChangeModeError);
36
36
  return;
37
37
  }
38
- const { latitude: i, longitude: n, fov: u } = a, o = Math.min(
38
+ const { latitude: i, longitude: n, fov: u } = a, t = Math.min(
39
39
  1e3,
40
40
  Math.max(
41
41
  200,
@@ -43,12 +43,12 @@ function F(t, r, e = !0) {
43
43
  (n > Math.PI ? 2 * Math.PI - n : n) * 500,
44
44
  Math.abs(u - r.fov) * 10
45
45
  )
46
- ), [c] = yield f(t.updateCamera(r, o, e));
47
- if (c)
48
- throw new Error(l.UpdateCameraError);
46
+ ), [f] = yield l(e.updateCamera(r, t, o));
47
+ if (f)
48
+ throw new Error(m.UpdateCameraError);
49
49
  });
50
50
  }
51
51
  export {
52
52
  g as checkShowState,
53
- F as correctFiveState
53
+ y as correctFiveState
54
54
  };
package/libs/index.d.ts CHANGED
@@ -22,4 +22,5 @@ export * from './PanoTagPlugin';
22
22
  export * from './Object3DHelperPlugin';
23
23
  export * from './PanoVideoPlugin';
24
24
  export * from './PipelinePlugin';
25
+ export * from './AreaMakerPlugin';
25
26
  export * as Util from './shared-utils';