@realsee/dnalogel 3.3.3 → 3.3.5-dev.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 (368) hide show
  1. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +0 -4
  2. package/dist/PanoTagPlugin/controller/TagRender.d.ts +4 -0
  3. package/dist/floorplan/MapviewFloorplanPlugin/Controller.d.ts +1 -1
  4. package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +1 -1
  5. package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +1 -1
  6. package/dist/floorplan/utils/constant.d.ts +2 -0
  7. package/dist/index.cjs.js +50 -50
  8. package/dist/index.js +2670 -2634
  9. package/dist/index.umd.js +42 -42
  10. package/docs/.nojekyll +1 -0
  11. package/docs/assets/highlight.css +120 -0
  12. package/docs/assets/main.js +58 -0
  13. package/docs/assets/search.js +1 -0
  14. package/docs/assets/style.css +1367 -0
  15. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +725 -0
  16. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +678 -0
  17. package/docs/classes/CSS3DRender.html +773 -0
  18. package/docs/classes/CruisePluginController.html +672 -0
  19. package/docs/classes/GuideLineItem.GuideLineItem.html +476 -0
  20. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +856 -0
  21. package/docs/classes/Magnifier.html +480 -0
  22. package/docs/classes/ModelRoomLabelController.html +398 -0
  23. package/docs/classes/Object3DHelperController.html +640 -0
  24. package/docs/classes/PaintBrush.html +502 -0
  25. package/docs/classes/PanoMeasurePluginLine.html +522 -0
  26. package/docs/classes/PanoMeasurePluginModel.html +571 -0
  27. package/docs/classes/PanoMeasurePluginPoint.html +362 -0
  28. package/docs/classes/PanoMeasurePluginPolyline.html +567 -0
  29. package/docs/classes/PanoTagPluginController.html +1077 -0
  30. package/docs/classes/Util.BetterTween.html +416 -0
  31. package/docs/classes/Util.Interval.html +432 -0
  32. package/docs/classes/Util.LineSegments.html +384 -0
  33. package/docs/classes/Util.Magnifier.html +503 -0
  34. package/docs/classes/Util.Object3D.html +406 -0
  35. package/docs/classes/Util.PointDomHelper.html +407 -0
  36. package/docs/classes/Util.PointHelper.html +398 -0
  37. package/docs/classes/Util.PointSelectorHelper.html +454 -0
  38. package/docs/classes/Util.Rectangle.html +455 -0
  39. package/docs/enums/CameraMovementEffect.html +310 -0
  40. package/docs/enums/ContentType.html +446 -0
  41. package/docs/enums/DIRECTION.html +320 -0
  42. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +320 -0
  43. package/docs/enums/DimensionType.html +310 -0
  44. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +313 -0
  45. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +320 -0
  46. package/docs/enums/PaintBrushTypeEnum.html +313 -0
  47. package/docs/enums/PointType.html +310 -0
  48. package/docs/enums/Rotation.html +317 -0
  49. package/docs/functions/AreaMakerPlugin.html +290 -0
  50. package/docs/functions/CSS3DRenderPlugin.html +288 -0
  51. package/docs/functions/CameraMovementPlugin.html +293 -0
  52. package/docs/functions/CruisePlugin.html +290 -0
  53. package/docs/functions/CurrentPanoImagePlugin.html +290 -0
  54. package/docs/functions/GuideLinePlugin.html +290 -0
  55. package/docs/functions/ItemLabelPlugin.html +290 -0
  56. package/docs/functions/MapviewFloorplanPlugin.html +290 -0
  57. package/docs/functions/ModelChassisCompassPlugin.html +293 -0
  58. package/docs/functions/ModelEntryDoorGuidePlugin.html +293 -0
  59. package/docs/functions/ModelFloorplanPlugin.html +290 -0
  60. package/docs/functions/ModelItemLabelPlugin.html +290 -0
  61. package/docs/functions/ModelRoomLabelPlugin.html +288 -0
  62. package/docs/functions/ModelTVVideoPlugin.html +290 -0
  63. package/docs/functions/ModelViewPlugin.html +293 -0
  64. package/docs/functions/Object3DHelperPlugin.html +288 -0
  65. package/docs/functions/PanoCompassPlugin.html +290 -0
  66. package/docs/functions/PanoCursorRaycasterPlugin.html +294 -0
  67. package/docs/functions/PanoDoorLabelPlugin.html +290 -0
  68. package/docs/functions/PanoFloorplanRadarPlugin.html +290 -0
  69. package/docs/functions/PanoMeasurePlugin.html +290 -0
  70. package/docs/functions/PanoRulerPlugin.html +293 -0
  71. package/docs/functions/PanoRulerProPlugin.html +293 -0
  72. package/docs/functions/PanoSpatialTagPlugin.html +293 -0
  73. package/docs/functions/PanoTagPlugin.html +295 -0
  74. package/docs/functions/PanoVideoPlugin.html +299 -0
  75. package/docs/functions/PipelinePlugin.html +288 -0
  76. package/docs/functions/TopviewFloorplanPlugin.html +290 -0
  77. package/docs/functions/Util.absoluteUrl.html +326 -0
  78. package/docs/functions/Util.checkFiveModelLoaded.html +329 -0
  79. package/docs/functions/Util.equal.html +338 -0
  80. package/docs/functions/Util.getCoordsFromClient.html +328 -0
  81. package/docs/functions/Util.getCoordsFromElement.html +328 -0
  82. package/docs/functions/Util.getFrameTime.html +320 -0
  83. package/docs/functions/Util.getIntersectFromRelativePosition.html +328 -0
  84. package/docs/functions/Util.getRaycasterFromFivePointer.html +328 -0
  85. package/docs/functions/Util.isAbsoluteURL.html +321 -0
  86. package/docs/functions/Util.isModelLike.html +321 -0
  87. package/docs/functions/Util.isNil.html +329 -0
  88. package/docs/functions/Util.isPanoramaLike.html +321 -0
  89. package/docs/functions/Util.nextFrame.html +334 -0
  90. package/docs/functions/Util.notNil.html +329 -0
  91. package/docs/functions/Util.requestAnimationFrameInterval.html +350 -0
  92. package/docs/functions/Util.tweenProgress.html +323 -0
  93. package/docs/functions/Util.uuid.html +319 -0
  94. package/docs/functions/pluginFlag.html +288 -0
  95. package/docs/index.html +354 -0
  96. package/docs/interfaces/AddTagConfig.html +303 -0
  97. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +329 -0
  98. package/docs/interfaces/AreaMakerPluginType.Config.html +334 -0
  99. package/docs/interfaces/AreaMakerPluginType.EventMap.html +620 -0
  100. package/docs/interfaces/AreaMakerPluginType.Params.html +333 -0
  101. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +383 -0
  102. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +368 -0
  103. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +333 -0
  104. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +326 -0
  105. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +325 -0
  106. package/docs/interfaces/AreaMakerPluginType.State.html +354 -0
  107. package/docs/interfaces/CSS3DRenderPluginEventMap.html +449 -0
  108. package/docs/interfaces/CSS3DRenderPluginState.html +325 -0
  109. package/docs/interfaces/CameraMovementPluginExportType.html +358 -0
  110. package/docs/interfaces/CruisePluginTypes.Config.html +359 -0
  111. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +361 -0
  112. package/docs/interfaces/CruisePluginTypes.EventMap.html +696 -0
  113. package/docs/interfaces/CruisePluginTypes.MoveAction.html +385 -0
  114. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +421 -0
  115. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +411 -0
  116. package/docs/interfaces/CruisePluginTypes.PluginData.html +351 -0
  117. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +319 -0
  118. package/docs/interfaces/CruisePluginTypes.PluginState.html +408 -0
  119. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +382 -0
  120. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +521 -0
  121. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +323 -0
  122. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +315 -0
  123. package/docs/interfaces/CurrentPanoImagePluginType.State.html +337 -0
  124. package/docs/interfaces/EventMap.html +542 -0
  125. package/docs/interfaces/FloorplanBounding.html +332 -0
  126. package/docs/interfaces/FloorplanData.html +335 -0
  127. package/docs/interfaces/FloorplanEntrance.html +360 -0
  128. package/docs/interfaces/FloorplanExtraObject.html +350 -0
  129. package/docs/interfaces/FloorplanExtraObject3D.html +339 -0
  130. package/docs/interfaces/FloorplanFloorData.html +328 -0
  131. package/docs/interfaces/FloorplanImagePosition.html +314 -0
  132. package/docs/interfaces/FloorplanObserver.html +332 -0
  133. package/docs/interfaces/FloorplanOutlineItem.html +328 -0
  134. package/docs/interfaces/FloorplanPosition.html +314 -0
  135. package/docs/interfaces/FloorplanRoomItem.html +379 -0
  136. package/docs/interfaces/FloorplanRoomLabelItem.html +320 -0
  137. package/docs/interfaces/FloorplanServerBounding.html +332 -0
  138. package/docs/interfaces/FloorplanServerComputedData.html +331 -0
  139. package/docs/interfaces/FloorplanServerData.html +314 -0
  140. package/docs/interfaces/FloorplanServerDoorItem.html +331 -0
  141. package/docs/interfaces/FloorplanServerDoorPosition.html +317 -0
  142. package/docs/interfaces/FloorplanServerEntrance.html +360 -0
  143. package/docs/interfaces/FloorplanServerFloorData.html +328 -0
  144. package/docs/interfaces/FloorplanServerImagePosition.html +314 -0
  145. package/docs/interfaces/FloorplanServerObserver.html +332 -0
  146. package/docs/interfaces/FloorplanServerOutlineItem.html +328 -0
  147. package/docs/interfaces/FloorplanServerPosition.html +314 -0
  148. package/docs/interfaces/FloorplanServerRoomItem.html +391 -0
  149. package/docs/interfaces/FloorplanServerRoomLabelItem.html +320 -0
  150. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +323 -0
  151. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +362 -0
  152. package/docs/interfaces/GuideLinePluginType.EventMap.html +526 -0
  153. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +357 -0
  154. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +348 -0
  155. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +415 -0
  156. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +337 -0
  157. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +347 -0
  158. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +483 -0
  159. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +344 -0
  160. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +483 -0
  161. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +309 -0
  162. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +330 -0
  163. package/docs/interfaces/GuideLinePluginType.PluginState.html +355 -0
  164. package/docs/interfaces/GuideLinePluginType.Route.html +371 -0
  165. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +353 -0
  166. package/docs/interfaces/HelperOffset.html +332 -0
  167. package/docs/interfaces/ImagePlaneGroup.html +306 -0
  168. package/docs/interfaces/ItemLabelPluginData.html +303 -0
  169. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +388 -0
  170. package/docs/interfaces/ItemLabelPluginParametersType.html +324 -0
  171. package/docs/interfaces/MinMax.html +310 -0
  172. package/docs/interfaces/ModelChassisCompassPluginData.html +310 -0
  173. package/docs/interfaces/ModelChassisCompassPluginExportType.html +346 -0
  174. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +310 -0
  175. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +317 -0
  176. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +354 -0
  177. package/docs/interfaces/ModelItemLabelPluginData.html +303 -0
  178. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +388 -0
  179. package/docs/interfaces/ModelItemLabelPluginParametersType.html +310 -0
  180. package/docs/interfaces/ModelRoomLabelPluginData.html +303 -0
  181. package/docs/interfaces/ModelTVVideoPluginData.html +324 -0
  182. package/docs/interfaces/ModelTVVideoPluginExportType.html +348 -0
  183. package/docs/interfaces/ModelTVVideoPluginParameterType.html +303 -0
  184. package/docs/interfaces/ModelViewPluginExportType.html +416 -0
  185. package/docs/interfaces/Object3DHelperState.html +317 -0
  186. package/docs/interfaces/ObjectHelperControllers.html +324 -0
  187. package/docs/interfaces/PaintBrushAction.html +363 -0
  188. package/docs/interfaces/PaintBrushConfigs.html +361 -0
  189. package/docs/interfaces/PaintBrushState.html +345 -0
  190. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +425 -0
  191. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +282 -0
  192. package/docs/interfaces/PanoMeasureParameterType.html +449 -0
  193. package/docs/interfaces/PanoMeasurePluginLineJson.html +317 -0
  194. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +314 -0
  195. package/docs/interfaces/PanoMeasurePluginPointJson.html +310 -0
  196. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +320 -0
  197. package/docs/interfaces/PanoRulerPluginExportType.html +377 -0
  198. package/docs/interfaces/PanoRulerPluginOptions.html +326 -0
  199. package/docs/interfaces/PanoRulerPluginParameterType.html +317 -0
  200. package/docs/interfaces/PanoRulerProPluginExportType.html +353 -0
  201. package/docs/interfaces/PanoRulerProPluginOptions.html +323 -0
  202. package/docs/interfaces/PanoRulerProPluginParameterType.html +310 -0
  203. package/docs/interfaces/PanoRulerProPluginState.html +317 -0
  204. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +296 -0
  205. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +285 -0
  206. package/docs/interfaces/PanoSpatialTagPluginData.html +353 -0
  207. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +335 -0
  208. package/docs/interfaces/PanoSpatialTagPluginExportType.html +431 -0
  209. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +331 -0
  210. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +352 -0
  211. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +338 -0
  212. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +331 -0
  213. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +323 -0
  214. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +341 -0
  215. package/docs/interfaces/PanoVideoPluginType.PluginData.html +314 -0
  216. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +420 -0
  217. package/docs/interfaces/PanoVideoPluginType.PluginState.html +314 -0
  218. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +349 -0
  219. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +368 -0
  220. package/docs/interfaces/Point.html +317 -0
  221. package/docs/interfaces/Room.html +324 -0
  222. package/docs/interfaces/RoomInfo.html +310 -0
  223. package/docs/interfaces/RoomLabel.html +386 -0
  224. package/docs/interfaces/RoomRules.html +285 -0
  225. package/docs/interfaces/Rooms.html +285 -0
  226. package/docs/interfaces/Scissor.html +344 -0
  227. package/docs/interfaces/State.html +331 -0
  228. package/docs/interfaces/TagCacheInterface.html +362 -0
  229. package/docs/interfaces/TagConfig.html +565 -0
  230. package/docs/interfaces/TagGLTFObjectGroup.html +306 -0
  231. package/docs/interfaces/TagIconUrl.html +363 -0
  232. package/docs/interfaces/TagObjectGroup.html +306 -0
  233. package/docs/interfaces/TagStyle.html +316 -0
  234. package/docs/interfaces/Tags.html +2688 -0
  235. package/docs/interfaces/TemporaryState.html +303 -0
  236. package/docs/interfaces/Util.MagnifierParameter.html +391 -0
  237. package/docs/interfaces/Util.MouseGroupParameter.html +350 -0
  238. package/docs/interfaces/Util.PointIntersection.html +365 -0
  239. package/docs/modules/AreaMakerPluginType.html +323 -0
  240. package/docs/modules/CruisePluginTypes.html +328 -0
  241. package/docs/modules/CurrentPanoImagePluginType.html +297 -0
  242. package/docs/modules/GuideLineItem.html +289 -0
  243. package/docs/modules/GuideLineModeItem.html +294 -0
  244. package/docs/modules/GuideLinePluginType.html +350 -0
  245. package/docs/modules/PanoVideoPluginType.html +301 -0
  246. package/docs/modules/Util.html +351 -0
  247. package/docs/modules.html +540 -0
  248. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +331 -0
  249. package/docs/types/AreaMakerPluginType.PluginData.html +301 -0
  250. package/docs/types/AreaMakerPluginType.ServerData.html +301 -0
  251. package/docs/types/ArrayPosition.html +279 -0
  252. package/docs/types/AudioAppearance.html +279 -0
  253. package/docs/types/AudioTagTypeConfigKey.html +279 -0
  254. package/docs/types/CSS3DRenderExportType.html +279 -0
  255. package/docs/types/CSS3DRenderPluginExportType.html +279 -0
  256. package/docs/types/CSS3DRenderPluginParameterType.html +279 -0
  257. package/docs/types/ClassFunctionParameters.html +286 -0
  258. package/docs/types/Color.html +279 -0
  259. package/docs/types/ContentTypeConfigKey.html +279 -0
  260. package/docs/types/ContentTypeConfigKeySplit.html +279 -0
  261. package/docs/types/ContentTypeMap.html +279 -0
  262. package/docs/types/Create3DDomContainerReturnType.html +279 -0
  263. package/docs/types/Create3DElementReturnType.html +279 -0
  264. package/docs/types/CruisePluginExportType.html +279 -0
  265. package/docs/types/CruisePluginTypes.CruiseData.html +318 -0
  266. package/docs/types/CruisePluginTypes.MoveEffect.html +295 -0
  267. package/docs/types/CurrentPanoImagePluginExportType.html +279 -0
  268. package/docs/types/DeprecatedMediaPlaneProperty.html +291 -0
  269. package/docs/types/DeprecatedTagProperty.html +294 -0
  270. package/docs/types/Direction-1.html +279 -0
  271. package/docs/types/Direction4.html +279 -0
  272. package/docs/types/ElementRenderer.html +303 -0
  273. package/docs/types/FloorplanRuleLabels.html +282 -0
  274. package/docs/types/FloorplanServerRuleLabels.html +279 -0
  275. package/docs/types/GuideLinePluginExportType.html +279 -0
  276. package/docs/types/GuideLinePluginType.GuideLineItem.html +352 -0
  277. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +373 -0
  278. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +306 -0
  279. package/docs/types/GuideLinePluginType.GuideLineStyle.html +309 -0
  280. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +309 -0
  281. package/docs/types/GuideLinePluginType.PathItem.html +309 -0
  282. package/docs/types/GuideLinePluginType.PluginData.html +318 -0
  283. package/docs/types/HelperEventMap.html +517 -0
  284. package/docs/types/LoadTagConfig.html +279 -0
  285. package/docs/types/MapviewFloorplanPluginParameterType.html +279 -0
  286. package/docs/types/MapviewFloorplanPluginReturnType.html +279 -0
  287. package/docs/types/MediaData.html +295 -0
  288. package/docs/types/MediaStore.html +284 -0
  289. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +286 -0
  290. package/docs/types/ModelFloorplanPluginParameterType.html +279 -0
  291. package/docs/types/ModelFloorplanPluginReturnType.html +279 -0
  292. package/docs/types/ModelId.html +279 -0
  293. package/docs/types/ModelRoomLabelPluginParameters.html +279 -0
  294. package/docs/types/ModelRoomLabelPluginReturnType.html +279 -0
  295. package/docs/types/MoveArgs.html +289 -0
  296. package/docs/types/MoveOpts.html +287 -0
  297. package/docs/types/Object3DHelperEventMap.html +372 -0
  298. package/docs/types/ObjectFit.html +279 -0
  299. package/docs/types/PaintBrushEventMap.html +310 -0
  300. package/docs/types/PanoCompassPluginData.html +279 -0
  301. package/docs/types/PanoCompassPluginExportType.html +279 -0
  302. package/docs/types/PanoCompassPluginParameterType.html +279 -0
  303. package/docs/types/PanoFloorplanRadarPluginParameterType.html +279 -0
  304. package/docs/types/PanoFloorplanRadarPluginReturnType.html +279 -0
  305. package/docs/types/PanoIndex.html +279 -0
  306. package/docs/types/PanoMeasurePluginEvent.html +279 -0
  307. package/docs/types/PanoMeasureReturnType.html +279 -0
  308. package/docs/types/PanoSpatialTagPluginId.html +279 -0
  309. package/docs/types/PanoTagPluginExportInterface.html +279 -0
  310. package/docs/types/PanoTagPluginParamsInterface.html +279 -0
  311. package/docs/types/PanoVideoPluginParameterType.html +279 -0
  312. package/docs/types/PanoVideoPluginReturnType.html +279 -0
  313. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +287 -0
  314. package/docs/types/PipelinePluginParameterType.html +279 -0
  315. package/docs/types/PipelinePluginReturnType.html +279 -0
  316. package/docs/types/PlaneTag.html +287 -0
  317. package/docs/types/Point2DTag.html +287 -0
  318. package/docs/types/Point3DTag.html +287 -0
  319. package/docs/types/PointTag.html +284 -0
  320. package/docs/types/PointTagInstance.html +284 -0
  321. package/docs/types/Position.html +279 -0
  322. package/docs/types/RotateArgs.html +291 -0
  323. package/docs/types/RotateOpts.html +287 -0
  324. package/docs/types/RuleLabelsKey.html +279 -0
  325. package/docs/types/RuleLabelsValue.html +279 -0
  326. package/docs/types/StickType.html +279 -0
  327. package/docs/types/Tag.html +345 -0
  328. package/docs/types/Tag2D.html +287 -0
  329. package/docs/types/Tag3D.html +287 -0
  330. package/docs/types/TagConfigByKey.html +284 -0
  331. package/docs/types/TagContentType.html +279 -0
  332. package/docs/types/TagDimensionType.html +281 -0
  333. package/docs/types/TagElement.html +289 -0
  334. package/docs/types/TagEvents.html +332 -0
  335. package/docs/types/TagGLTFObject.html +302 -0
  336. package/docs/types/TagHooks.html +279 -0
  337. package/docs/types/TagId.html +279 -0
  338. package/docs/types/TagInstance.html +355 -0
  339. package/docs/types/TagPointType.html +282 -0
  340. package/docs/types/TagRendererMap.html +284 -0
  341. package/docs/types/TopviewFloorplanPluginParameterType.html +279 -0
  342. package/docs/types/TopviewFloorplanPluginReturnType.html +279 -0
  343. package/docs/types/WorkCode.html +279 -0
  344. package/docs/variables/FLOOR_TYPE_MAP.html +289 -0
  345. package/docs/variables/PLUGIN.html +279 -0
  346. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +282 -0
  347. package/docs/variables/ROOM_TYPE_MAP.html +289 -0
  348. package/docs/variables/defaultGlobalConfig.html +279 -0
  349. package/docs/variables/itemLabelPluginServerParams.html +286 -0
  350. package/docs/variables/modelItemLabelPluginServerParams.html +286 -0
  351. package/docs/variables/modelRoomLabelPluginServerParams.html +286 -0
  352. package/libs/PanoTagPlugin/Components/TagItem.js +287 -255
  353. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +0 -4
  354. package/libs/PanoTagPlugin/controller/TagComputer.js +116 -135
  355. package/libs/PanoTagPlugin/controller/TagRender.d.ts +4 -0
  356. package/libs/PanoTagPlugin/controller/TagRender.js +90 -71
  357. package/libs/base/BasePlugin.js +1 -1
  358. package/libs/floorplan/MapviewFloorplanPlugin/Controller.d.ts +1 -1
  359. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +48 -46
  360. package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +1 -1
  361. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +42 -40
  362. package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +1 -1
  363. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +2 -2
  364. package/libs/floorplan/utils/constant.d.ts +2 -0
  365. package/libs/floorplan/utils/constant.js +1 -1
  366. package/libs/floorplan/utils/correctFiveState.js +9 -10
  367. package/libs/shared-utils/logger.js +1 -1
  368. package/package.json +2 -2
@@ -1,40 +1,40 @@
1
- var V = Object.defineProperty;
1
+ var A = Object.defineProperty;
2
2
  var R = Object.getOwnPropertySymbols;
3
- var E = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
4
- var C = (c, l, t) => l in c ? V(c, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[l] = t, j = (c, l) => {
3
+ var V = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
4
+ var C = (c, l, t) => l in c ? A(c, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[l] = t, j = (c, l) => {
5
5
  for (var t in l || (l = {}))
6
- E.call(l, t) && C(c, t, l[t]);
6
+ V.call(l, t) && C(c, t, l[t]);
7
7
  if (R)
8
8
  for (var t of R(l))
9
- A.call(l, t) && C(c, t, l[t]);
9
+ E.call(l, t) && C(c, t, l[t]);
10
10
  return c;
11
11
  };
12
12
  var f = (c, l, t) => (C(c, typeof l != "symbol" ? l + "" : l, t), t);
13
13
  var S = (c, l, t) => new Promise((e, o) => {
14
- var i = (r) => {
14
+ var i = (s) => {
15
15
  try {
16
- a(t.next(r));
16
+ a(t.next(s));
17
17
  } catch (n) {
18
18
  o(n);
19
19
  }
20
- }, s = (r) => {
20
+ }, r = (s) => {
21
21
  try {
22
- a(t.throw(r));
22
+ a(t.throw(s));
23
23
  } catch (n) {
24
24
  o(n);
25
25
  }
26
- }, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(i, s);
26
+ }, a = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(i, r);
27
27
  a((t = t.apply(c, l)).next());
28
28
  });
29
- import { TagComputer as x } from "./TagComputer.js";
30
- import { Group as y, Quaternion as O, Vector3 as b, Matrix4 as v } from "three";
31
- import I from "../Components/TagContainer.js";
29
+ import { TagComputer as I } from "./TagComputer.js";
30
+ import { Group as y, Quaternion as O, Vector3 as T, Matrix4 as v } from "three";
31
+ import x from "../Components/TagContainer.js";
32
32
  import G from "../Components/Tag/index.js";
33
33
  import { CSS3DRenderPlugin as F } from "../../CSS3DRenderPlugin/index.js";
34
- import { loadGLTF as L } from "../../shared-utils/three/GLTFLoader.js";
35
- import { isMediaModelTag as D, isStickModelTag as W } from "../utils/tag/tagCheck.js";
34
+ import { loadGLTF as _ } from "../../shared-utils/three/GLTFLoader.js";
35
+ import { isMediaModelTag as D, isStickModelTag as L } from "../utils/tag/tagCheck.js";
36
36
  import { VideoPlane as w, ImagePlane as k } from "../utils/model/mediaPlane.js";
37
- import { centerPoint as $ } from "../../shared-utils/three/centerPoint.js";
37
+ import { centerPoint as W } from "../../shared-utils/three/centerPoint.js";
38
38
  import { arrayPositionToVector3 as g } from "../../shared-utils/positionToVector3.js";
39
39
  import "../utils/tagPosition.js";
40
40
  import "../utils/checkRange.js";
@@ -158,8 +158,8 @@ import "../Components/Tag/CustomTag.js";
158
158
  import "../../CSS3DRenderPlugin/Controller.js";
159
159
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
160
160
  import "@realsee/five/gltf-loader";
161
- const q = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
162
- class ui extends x {
161
+ const $ = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map();
162
+ class ui extends I {
163
163
  constructor(t) {
164
164
  super(t);
165
165
  f(this, "group", new y());
@@ -179,13 +179,13 @@ class ui extends x {
179
179
  if (!e)
180
180
  return;
181
181
  t.loading = !0;
182
- const o = L(e).then((r) => {
182
+ const o = _(e).then((s) => {
183
183
  var m;
184
- const n = Object.assign(r.scene, {
184
+ const n = Object.assign(s.scene, {
185
185
  customID: t.id,
186
186
  isTagModel: !0,
187
187
  removeEventListener: this.getTagConfig(t).clickable === !1 ? () => {
188
- } : this.addObjectClickHandler(t, r.scene, (h) => {
188
+ } : this.addObjectClickHandler(t, s.scene, (h) => {
189
189
  this.hooks.emit("click", { target: "TagModel", tag: t, event: h });
190
190
  })
191
191
  });
@@ -196,14 +196,14 @@ class ui extends x {
196
196
  if (t.loading = !1, ((a = t.model) == null ? void 0 : a.promise) !== o || !this.tags.includes(t))
197
197
  return;
198
198
  t.model.object = i;
199
- const s = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
200
- if (s && (this.gltfObjectGroup.remove(s), s.removeEventListener()), this.updateRender3DDomTag(), D(t)) {
199
+ const r = this.gltfObjectGroup.children.find((s) => s.customID === t.id);
200
+ if (r && (this.gltfObjectGroup.remove(r), r.removeEventListener()), this.updateRender3DDomTag(), D(t)) {
201
201
  if (this.getRenderType(t) === "Mesh" && !t.mediaPlane) {
202
- const r = t.data.mediaPosition.map(g);
202
+ const s = t.data.mediaPosition.map(g);
203
203
  t.mediaPlane = new k(t.data.mediaData[0].url, t.data.mediaPosition.map(g), {
204
204
  objectFit: t.data.objectFit
205
205
  });
206
- const n = new b().addVectors(r[0], r[2]).divideScalar(2);
206
+ const n = new T().addVectors(s[0], s[2]).divideScalar(2);
207
207
  t.mediaPlane.position.copy(n), i.add(t.mediaPlane);
208
208
  }
209
209
  this.getRenderType(t) !== "Mesh" && (i.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, i), i.updateTagCss3DObjectMatrix());
@@ -248,22 +248,22 @@ class ui extends x {
248
248
  if (!i)
249
249
  return;
250
250
  e.mediaPlane && !((h = (m = e.state) == null ? void 0 : m.visible) == null || h) && e.mediaPlane instanceof w && e.mediaPlane.pause();
251
- const s = e.position.map(g), a = this.getCurrentVisibleState(e), r = (() => !!(e.mediaPlane && !a))(), n = (() => !!(!e.mediaPlane && a))(), p = (() => !!(e.mediaPlane && e.mediaPlane.src !== i))();
252
- if ((r || p) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), n || p) {
253
- const d = new w(i, s, {
251
+ const r = e.position.map(g), a = this.getCurrentVisibleState(e), s = (() => !!(e.mediaPlane && !a))(), n = (() => !!(!e.mediaPlane && a))(), d = (() => !!(e.mediaPlane && e.mediaPlane.src !== i))();
252
+ if ((s || d) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), n || d) {
253
+ const p = new w(i, r, {
254
254
  videoCoverSrc: o.videoCoverUrl,
255
255
  playButton: e.data.playIcon,
256
256
  paused: !((P = e.data.autoplayConfig) != null && P.autoplayVideo),
257
257
  objectFit: e.data.objectFit,
258
- videoTextureMap: q,
259
- ImageTextureMap: B,
258
+ videoTextureMap: $,
259
+ ImageTextureMap: q,
260
260
  domEvents: this.domEvents
261
261
  });
262
- d.onVideoReady = (u) => {
263
- u.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: d.videoInstance }));
262
+ p.onVideoReady = (u) => {
263
+ u.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: p.videoInstance }));
264
264
  };
265
- const T = (u) => (this.five.on("renderFrame", u), () => this.five.off("renderFrame", u));
266
- d.initialRenderHooks(T), e.mediaPlane = d, this.imagePlaneGroup.add(e.mediaPlane);
265
+ const b = (u) => (this.five.on("renderFrame", u), () => this.five.off("renderFrame", u));
266
+ p.initialRenderHooks(b), e.mediaPlane = p, this.imagePlaneGroup.add(e.mediaPlane);
267
267
  }
268
268
  });
269
269
  }
@@ -278,9 +278,9 @@ class ui extends x {
278
278
  const { url: o } = e.data.mediaData[0];
279
279
  if (!o)
280
280
  return;
281
- const i = e.position.map(g), s = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !s))(), r = (() => !!(!e.mediaPlane && s))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== o))();
282
- (a || n) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), (r || n) && (e.mediaPlane = new k(o, i, { objectFit: e.data.objectFit }), this.getTagConfig(e).clickable !== !1 && this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (p) => {
283
- this.hooks.emit("click", { tag: e, target: "TagContent", event: p.origDomEvent });
281
+ const i = e.position.map(g), r = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !r))(), s = (() => !!(!e.mediaPlane && r))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== o))();
282
+ (a || n) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), (s || n) && (e.mediaPlane = new k(o, i, { objectFit: e.data.objectFit }), this.getTagConfig(e).clickable !== !1 && this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (d) => {
283
+ this.hooks.emit("click", { tag: e, target: "TagContent", event: d.origDomEvent });
284
284
  }), this.imagePlaneGroup.add(e.mediaPlane));
285
285
  });
286
286
  }
@@ -289,12 +289,12 @@ class ui extends x {
289
289
  */
290
290
  updateRender3DDomTag() {
291
291
  this.filterCSS3DTag.forEach((e) => {
292
- var o, i, s;
292
+ var o, i, r;
293
293
  if (e.tag3DContentSvelte) {
294
- const { svelteApp: a, css3DInstance: r, initialNormal: n, currentNormal: p } = e.tag3DContentSvelte;
295
- if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(p)) {
296
- const m = new O().setFromUnitVectors(n, p);
297
- r.css3DObject.setRotationFromQuaternion(m);
294
+ const { svelteApp: a, css3DInstance: s, initialNormal: n, currentNormal: d } = e.tag3DContentSvelte;
295
+ if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(d)) {
296
+ const m = new O().setFromUnitVectors(n, d);
297
+ s.css3DObject.setRotationFromQuaternion(m);
298
298
  }
299
299
  return;
300
300
  } else {
@@ -305,24 +305,24 @@ class ui extends x {
305
305
  const a = this.getPositions(e);
306
306
  if (!a)
307
307
  return;
308
- const r = this.getTagNormal(e);
309
- if (!r)
308
+ const s = this.getTagNormal(e);
309
+ if (!s)
310
310
  return;
311
- const n = this.getTagConfig(e), p = j({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
312
- if (this.getRenderType(e) === "BehindDom" || p.mode === "behind") {
313
- p.mode = "behind", p.container = document.createElement("div");
311
+ const n = this.getTagConfig(e), d = j({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
312
+ if (this.getRenderType(e) === "BehindDom" || d.mode === "behind") {
313
+ d.mode = "behind", d.container = document.createElement("div");
314
314
  const P = "black";
315
- p.container.style.backgroundColor = P, p.container.style.border = `3px solid ${P}`, this.css3DRenderPlugin.hooks.on("render", () => {
316
- var d;
315
+ d.container.style.backgroundColor = P, d.container.style.border = `3px solid ${P}`, this.css3DRenderPlugin.hooks.on("render", () => {
316
+ var p;
317
317
  if (m.css3DObject.opacityMesh && n.clickable !== !1) {
318
- const T = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (u) => {
318
+ const b = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (u) => {
319
319
  this.hooks.emit("click", { event: u, target: "TagContent", tag: e });
320
320
  });
321
- (d = this.store.css3DRenderDisposer.get(e.id)) == null || d.push(T);
321
+ (p = this.store.css3DRenderDisposer.get(e.id)) == null || p.push(b);
322
322
  }
323
323
  });
324
324
  }
325
- const m = this.css3DRenderPlugin.create3DDomContainer(a, p);
325
+ const m = this.css3DRenderPlugin.create3DDomContainer(a, d);
326
326
  if (!m)
327
327
  return;
328
328
  this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
@@ -341,12 +341,12 @@ class ui extends x {
341
341
  svelteApp: h,
342
342
  domContainer: m,
343
343
  css3DInstance: m,
344
- initialNormal: r,
345
- currentNormal: r,
344
+ initialNormal: s,
345
+ currentNormal: s,
346
346
  dispose: () => {
347
347
  h.$destroy(), m.dispose();
348
348
  }
349
- }, D(e) && ((s = e.model) != null && s.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
349
+ }, D(e) && ((r = e.model) != null && r.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
350
350
  }
351
351
  }), this.clearUnusedPanelTag();
352
352
  }
@@ -360,8 +360,8 @@ class ui extends x {
360
360
  updateRenderModelTag() {
361
361
  const t = (i) => !this.enabledModelTagSet.has(i.customID), e = this.gltfObjectGroup.children.filter(t);
362
362
  e.forEach((i) => i.removeEventListener()), this.gltfObjectGroup.remove(...e), this.tags.filter((i) => i.stickType === "Model").forEach((i) => {
363
- var s;
364
- (s = i.model) == null || s.promise.then((a) => {
363
+ var r;
364
+ (r = i.model) == null || r.promise.then((a) => {
365
365
  a.visible = this.getCurrentVisibleState(i);
366
366
  });
367
367
  }), this.five.needsRender = !0;
@@ -378,26 +378,45 @@ class ui extends x {
378
378
  * @param model 模型
379
379
  */
380
380
  updateTagCss3DObjectMatrix(t, e) {
381
- var T, u, M;
382
- const o = (u = (T = this.getTagConfig(t).tag3DConfig) == null ? void 0 : T.ratio) != null ? u : 216e-5, i = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
381
+ var b, u, M;
382
+ const o = (u = (b = this.getTagConfig(t).tag3DConfig) == null ? void 0 : b.ratio) != null ? u : 216e-5, i = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
383
383
  if (!i)
384
384
  return;
385
- const s = D(t) ? t.data.mediaPosition : t.position;
386
- if (!s || s.length !== 4 || !Array.isArray(s[0]) || !Array.isArray(s[2]))
385
+ const r = D(t) ? t.data.mediaPosition : t.position;
386
+ if (!r || r.length !== 4 || !Array.isArray(r[0]) || !Array.isArray(r[2]))
387
387
  return;
388
388
  e.updateWorldMatrix(!1, !1);
389
- const a = e.matrixWorld, r = new b().fromArray(s[0]), n = new b().fromArray(s[2]), p = $(r, n).add(new b(0, 0, 5e-4)), m = new v().setPosition(p), h = new v().makeScale(o, o, o), P = new v().multiply(a).multiply(m).multiply(h);
389
+ const a = e.matrixWorld, s = new T().fromArray(r[0]), n = new T().fromArray(r[2]), d = W(s, n).add(new T(0, 0, 5e-4)), m = new v().setPosition(d), h = new v().makeScale(o, o, o), P = new v().multiply(a).multiply(m).multiply(h);
390
390
  P.decompose(i.position, i.quaternion, i.scale);
391
- const d = i.opacityMesh;
392
- d && P.decompose(d.position, d.quaternion, d.scale);
391
+ const p = i.opacityMesh;
392
+ p && P.decompose(p.position, p.quaternion, p.scale);
393
393
  }
394
394
  /** 添加模型标签 */
395
395
  addMediaModelTag(t) {
396
396
  return S(this, null, function* () {
397
- const e = t.filter(W).map((o) => this.loadModel(o));
397
+ const e = t.filter(L).map((o) => this.loadModel(o));
398
398
  yield Promise.all(e), this.setVisible(), this.updateRenderAllTags();
399
399
  });
400
400
  }
401
+ /**
402
+ * @description: 一个点的标签
403
+ */
404
+ setPointTagPosition() {
405
+ const t = this.filterPointTag;
406
+ t.length !== 0 && t.forEach((e) => {
407
+ var a;
408
+ const o = this.getCurrentVisibleState(e), i = (a = e.__Object__) != null ? a : {
409
+ timeoutId: void 0,
410
+ inAnimation: !0
411
+ };
412
+ if (e.__Object__ = i, !o && e.screenPosition ? (i.inAnimation = !0, i.timeoutId = setTimeout(() => {
413
+ this.getCurrentVisibleState(e) || (i.inAnimation = !1, e.screenPosition = null, this.updateDomView());
414
+ }, 1e3)) : i.timeoutId && (i.inAnimation = !1, clearTimeout(i.timeoutId)), !o && !i.inAnimation)
415
+ return;
416
+ const r = this.getTagProject(e);
417
+ r ? e.screenPosition = { leftPercent: (r.x + 1) / 2 * 100, topPercent: (-r.y + 1) / 2 * 100 } : e.screenPosition = null;
418
+ });
419
+ }
401
420
  /**
402
421
  * @description: 渲染单个点的标签
403
422
  */
@@ -415,8 +434,8 @@ class ui extends x {
415
434
  temporaryState: this.temporaryState,
416
435
  withAnimation: this.store.visibleWithAnimation
417
436
  }), this.filterCSS3DTag.forEach((e) => {
418
- var o, i, s, a, r;
419
- (a = (i = (o = e.tag3DContentSvelte) == null ? void 0 : o.css3DInstance) == null ? void 0 : i.css3DObject) == null || a.setVisible((this.state.visible && ((s = e.state) == null ? void 0 : s.visible)) !== !1), (r = e.tag3DContentSvelte) == null || r.svelteApp.$set({
437
+ var o, i, r, a, s;
438
+ (a = (i = (o = e.tag3DContentSvelte) == null ? void 0 : o.css3DInstance) == null ? void 0 : i.css3DObject) == null || a.setVisible((this.state.visible && ((r = e.state) == null ? void 0 : r.visible)) !== !1), (s = e.tag3DContentSvelte) == null || s.svelteApp.$set({
420
439
  state: this.state,
421
440
  temporaryState: this.temporaryState,
422
441
  withAnimation: this.store.visibleWithAnimation
@@ -447,11 +466,11 @@ class ui extends x {
447
466
  if (this.TagContainerSvelte)
448
467
  this.TagContainerSvelte.$set({ tags: e, state: this.state, temporaryState: this.temporaryState });
449
468
  else {
450
- const s = (o = this.five.getElement()) == null ? void 0 : o.parentElement;
451
- if (!s)
469
+ const r = (o = this.five.getElement()) == null ? void 0 : o.parentElement;
470
+ if (!r)
452
471
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
453
- this.TagContainerSvelte = new I({
454
- target: s,
472
+ this.TagContainerSvelte = new x({
473
+ target: r,
455
474
  props: {
456
475
  hooks: this.hooks,
457
476
  tags: e,
@@ -14,7 +14,7 @@ let b = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- i(this, "VERSION", "3.3.3");
17
+ i(this, "VERSION", "3.3.5-dev.0");
18
18
  i(this, "five");
19
19
  /**
20
20
  * 插件事件钩子
@@ -63,7 +63,7 @@ export declare class Controller extends BasePlugin.Controller<State, EventMap, P
63
63
  setState(state: PartialDeep<State>, options?: BaseOptions): void;
64
64
  changeConfigs(config: Partial<Config>, userAction?: boolean): void;
65
65
  /** 更新户型图大小 */
66
- updateSize: () => void;
66
+ updateSize: () => boolean;
67
67
  /** 更新户型图位置 */
68
68
  updatePosition(): void;
69
69
  highlight: (highlightData: HighlightData) => void;
@@ -1,15 +1,15 @@
1
- var A = Object.defineProperty, F = Object.defineProperties;
2
- var P = Object.getOwnPropertyDescriptors;
1
+ var F = Object.defineProperty, P = Object.defineProperties;
2
+ var E = Object.getOwnPropertyDescriptors;
3
3
  var v = Object.getOwnPropertySymbols;
4
- var E = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
5
- var g = (d, r, t) => r in d ? A(d, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[r] = t, l = (d, r) => {
4
+ var x = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
5
+ var g = (d, r, t) => r in d ? F(d, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[r] = t, l = (d, r) => {
6
6
  for (var t in r || (r = {}))
7
- E.call(r, t) && g(d, t, r[t]);
7
+ x.call(r, t) && g(d, t, r[t]);
8
8
  if (v)
9
9
  for (var t of v(r))
10
- x.call(r, t) && g(d, t, r[t]);
10
+ I.call(r, t) && g(d, t, r[t]);
11
11
  return d;
12
- }, p = (d, r) => F(d, P(r));
12
+ }, m = (d, r) => P(d, E(r));
13
13
  var o = (d, r, t) => (g(d, typeof r != "symbol" ? r + "" : r, t), t);
14
14
  var u = (d, r, t) => new Promise((e, i) => {
15
15
  var n = (a) => {
@@ -28,18 +28,18 @@ var u = (d, r, t) => new Promise((e, i) => {
28
28
  s((t = t.apply(d, r)).next());
29
29
  });
30
30
  import * as w from "three";
31
- import { to as I } from "../../shared-utils/to.js";
32
- import { equal as M } from "../../shared-utils/equal.js";
33
- import { Main as y } from "../Components/Main.js";
31
+ import { to as M } from "../../shared-utils/to.js";
32
+ import { equal as y } from "../../shared-utils/equal.js";
33
+ import { Main as L } from "../Components/Main.js";
34
34
  import { formatData as b } from "../utils/formatData.js";
35
- import { CAMERA_IMAGE as L } from "../Assets/camera.js";
36
- import { omit as C } from "../../shared-utils/filter.js";
37
- import { FLOOR_PLAN_ATTACHED_TO as _ } from "../constant.js";
38
- import { Controller as O } from "../../base/BasePluginWithData.js";
39
- import { getPxmm as D, getAttachedY as T } from "../../shared-utils/getPxmm.js";
40
- import { correctFiveState as k } from "../utils/correctFiveState.js";
41
- import { changeModelCanvasOpacity as S } from "../../shared-utils/changeModelCanvasOpacity.js";
42
- import { FloorplanErrorType as m, SHOW_ANIME_DURATION as H } from "../utils/constant.js";
35
+ import { CAMERA_IMAGE as _ } from "../Assets/camera.js";
36
+ import { omit as S } from "../../shared-utils/filter.js";
37
+ import { FLOOR_PLAN_ATTACHED_TO as O } from "../constant.js";
38
+ import { Controller as D } from "../../base/BasePluginWithData.js";
39
+ import { getPxmm as T, getAttachedY as k } from "../../shared-utils/getPxmm.js";
40
+ import { correctFiveState as H } from "../utils/correctFiveState.js";
41
+ import { changeModelCanvasOpacity as C } from "../../shared-utils/changeModelCanvasOpacity.js";
42
+ import { FloorplanErrorType as p, SHOW_ANIME_DURATION as R } from "../utils/constant.js";
43
43
  import "../../shared-utils/isTruelyObject.js";
44
44
  import "../../vendor/svelte/internal/index.js";
45
45
  import "../../vendor/svelte/transition/index.js";
@@ -92,7 +92,7 @@ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
92
92
  import "../../shared-utils/url/absoluteUrl.js";
93
93
  import "../../shared-utils/nearlyEqual.js";
94
94
  import "../../shared-utils/five/changeMode.js";
95
- function R(d) {
95
+ function z(d) {
96
96
  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);
97
97
  return e || i;
98
98
  }
@@ -100,7 +100,7 @@ function W(d) {
100
100
  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);
101
101
  return e && i;
102
102
  }
103
- class Kt extends O {
103
+ class Qt extends D {
104
104
  constructor(t, e) {
105
105
  var a, f;
106
106
  super(t);
@@ -164,9 +164,9 @@ class Kt extends O {
164
164
  /** 更新户型图大小 */
165
165
  o(this, "updateSize", () => {
166
166
  if (!this.data || !this.container || !this.wrapper)
167
- return;
168
- 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), f = Math.ceil(n * s);
169
- this.size.width === a && this.size.height === f || (this.container.style.width = a + "px", this.container.style.height = f + "px", this.size = { width: a, height: f });
167
+ return !1;
168
+ 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 = T(this.five, this.wrapper, this.floorIndex, h), a = Math.ceil(i * s), f = Math.ceil(n * s);
169
+ return this.size.width === a && this.size.height === f || (this.container.style.width = a + "px", this.container.style.height = f + "px", this.size = { width: a, height: f }), !0;
170
170
  });
171
171
  o(this, "highlight", (t) => {
172
172
  this.state.config.highlightEnable && (this.highlightData = t, this.render());
@@ -177,7 +177,7 @@ class Kt extends O {
177
177
  o(this, "_disable", (t) => {
178
178
  var i, n, h;
179
179
  const { userAction: e } = t;
180
- this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, m.BreakOffByDisable), this.showPromise = void 0, (n = this.app) == null || n.$destroy(), this.app = void 0, (h = this.container) == null || h.remove(), this.removeEventListener();
180
+ this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, p.BreakOffByDisable), this.showPromise = void 0, (n = this.app) == null || n.$destroy(), this.app = void 0, (h = this.container) == null || h.remove(), this.removeEventListener();
181
181
  });
182
182
  o(this, "_enable", (t) => {
183
183
  const { userAction: e } = t;
@@ -188,9 +188,9 @@ class Kt extends O {
188
188
  if (!this.state.enabled)
189
189
  return;
190
190
  if (!((h = this.five.model) != null && h.loaded))
191
- throw new Error(m.ModelNotLoaded);
191
+ throw new Error(p.ModelNotLoaded);
192
192
  if (!this.data)
193
- throw new Error(m.DataNotLoaded);
193
+ throw new Error(p.DataNotLoaded);
194
194
  if (this.showPromise)
195
195
  return this.showPromise;
196
196
  const e = {
@@ -202,20 +202,22 @@ class Kt extends O {
202
202
  }, i = l(l({}, e), t), n = () => u(this, null, function* () {
203
203
  this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
204
204
  let s = !1, a;
205
- this.showRejection = (c) => {
206
- s = !0, a = c;
205
+ this.showRejection = (A) => {
206
+ s = !0, a = A;
207
207
  };
208
- const [f] = yield I(k(this.five, this.showState, i.userAction));
208
+ const [f] = yield M(H(this.five, this.showState, i.userAction));
209
209
  if (f)
210
210
  throw f;
211
211
  if (s)
212
- throw a ? new Error(a) : new Error(m.UnknownError);
213
- this.updateSize(), this.updatePosition(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
212
+ throw a ? new Error(a) : new Error(p.UnknownError);
213
+ if (!this.updateSize())
214
+ throw new Error(p.UpdateSizeError);
215
+ this.updatePosition(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
214
216
  });
215
217
  return this.isHiddenByHideFunc = !1, this.showPromise = n().then(() => {
216
218
  this.showPromise = void 0, this.showRejection = void 0;
217
- const s = i.modelOpacity, a = i.immediately ? 0 : H;
218
- S(this.five, s, a), this.render(a), this.hooks.emit("showAnimationEnded", {
219
+ const s = i.modelOpacity, a = i.immediately ? 0 : R;
220
+ C(this.five, s, a), this.render(a), this.hooks.emit("showAnimationEnded", {
219
221
  auto: i.isAutoShow,
220
222
  userAction: i.userAction
221
223
  });
@@ -226,12 +228,12 @@ class Kt extends O {
226
228
  }));
227
229
  o(this, "_hide", (t) => {
228
230
  var n;
229
- (n = this.showRejection) == null || n.call(this, m.BreakOffByHide), this.showPromise = void 0;
231
+ (n = this.showRejection) == null || n.call(this, p.BreakOffByHide), this.showPromise = void 0;
230
232
  const i = l(l({}, {
231
233
  userAction: !0,
232
234
  isAutoHide: !1
233
235
  }), t);
234
- S(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
236
+ C(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
235
237
  });
236
238
  o(this, "handleClick", () => {
237
239
  if (!this.state.visible)
@@ -270,12 +272,12 @@ class Kt extends O {
270
272
  if (!this.state.visible || this.showPromise)
271
273
  return;
272
274
  const i = this.five.getCurrentState();
273
- this.updatePosition(), this.updateSize(), R(i) && (this.updateState({ visible: !1 }, e), this._hide({ userAction: e }));
275
+ this.updatePosition(), this.updateSize(), z(i) && (this.updateState({ visible: !1 }, e), this._hide({ userAction: e }));
274
276
  });
275
277
  /** 户型图展示中,转动三维模型,结束时应该自动修复模型状态 */
276
278
  o(this, "onFiveWantsPanGesture", (t, e) => {
277
279
  if (this.five.getCurrentState().mode === this.showState.mode && this.state.config.autoShowEnable !== !1 && e && this.state.visible)
278
- return this.five.updateCamera(C(this.showState, ["offset"]), 0), !1;
280
+ return this.five.updateCamera(S(this.showState, ["offset"]), 0), !1;
279
281
  });
280
282
  /** 阻止点击分间走点 */
281
283
  o(this, "onFiveWantsTapGesture", () => this.handleClick());
@@ -317,15 +319,15 @@ class Kt extends O {
317
319
  roomLabelsEnable: !0,
318
320
  roomAreaEnable: !0,
319
321
  roomNameEnable: !0,
320
- cameraImageUrl: L,
321
- attachedTo: _.BOUNDING_CENTER,
322
+ cameraImageUrl: _,
323
+ attachedTo: O.BOUNDING_CENTER,
322
324
  getLabelElement: void 0,
323
325
  adaptiveRoomLabelVisibleEnable: !0,
324
326
  missingFloorConfig: l(l({}, this.defaultMissingFloorConfig), e.missingFloorConfig),
325
327
  i18n: (c) => c,
326
328
  getRoomAreaText: (c) => (c / 1e6).toFixed(1) + "㎡",
327
329
  getRuleDistanceText: (c) => c.toString()
328
- }, n = e ? C(e, ["selector", "scale"]) : {}, h = l(l({}, i.missingFloorConfig), n.missingFloorConfig), s = p(l(l({}, i), n), { missingFloorConfig: h });
330
+ }, n = e ? S(e, ["selector", "scale"]) : {}, h = l(l({}, i.missingFloorConfig), n.missingFloorConfig), s = m(l(l({}, i), n), { missingFloorConfig: h });
329
331
  this.state = { enabled: !0, visible: !1, config: s }, this.initContainer(), t.model.loaded ? this.onFiveModelLoaded() : t.once("modelLoaded", this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
330
332
  }
331
333
  load(t, e, i = !0) {
@@ -372,7 +374,7 @@ class Kt extends O {
372
374
  /** 更新户型图位置 */
373
375
  updatePosition() {
374
376
  var s;
375
- 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);
377
+ const t = k(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.five.model) == null ? void 0 : s.bounding.getCenter(new w.Vector3()).setY(t);
376
378
  if (!e)
377
379
  return;
378
380
  const i = e.clone().project(this.five.camera), n = (i.x + 1) / 2, h = -(i.y - 1) / 2;
@@ -385,8 +387,8 @@ class Kt extends O {
385
387
  }
386
388
  updateState(t, e) {
387
389
  var s;
388
- const i = this.state, n = (s = t.config) != null && s.missingFloorConfig ? l(l({}, i.config.missingFloorConfig), t.config.missingFloorConfig) : i.config.missingFloorConfig, h = t.config ? p(l(l({}, i.config), t.config), { missingFloorConfig: n }) : i.config;
389
- this.state = p(l(l({}, this.state), t), { config: h }), !M(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
390
+ const i = this.state, n = (s = t.config) != null && s.missingFloorConfig ? l(l({}, i.config.missingFloorConfig), t.config.missingFloorConfig) : i.config.missingFloorConfig, h = t.config ? m(l(l({}, i.config), t.config), { missingFloorConfig: n }) : i.config;
391
+ this.state = m(l(l({}, this.state), t), { config: h }), !y(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
390
392
  }
391
393
  /** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
392
394
  *
@@ -415,7 +417,7 @@ class Kt extends O {
415
417
  render(t) {
416
418
  if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
417
419
  return;
418
- const e = p(l({}, this.state.config), {
420
+ const e = m(l({}, this.state.config), {
419
421
  visible: this.state.visible,
420
422
  duration: t != null ? t : 0,
421
423
  panoIndex: this.panoIndex,
@@ -426,9 +428,9 @@ class Kt extends O {
426
428
  });
427
429
  if (this.app)
428
430
  return this.app.$set(e);
429
- this.app = new y({ target: this.container, intro: !0, props: e });
431
+ this.app = new L({ target: this.container, intro: !0, props: e });
430
432
  }
431
433
  }
432
434
  export {
433
- Kt as Controller
435
+ Qt as Controller
434
436
  };
@@ -63,7 +63,7 @@ export declare class Controller extends BasePlugin.Controller<State, EventMap, P
63
63
  setState(state: PartialDeep<State>, options?: BaseOptions): void;
64
64
  changeConfigs(config: Partial<Config>, userAction?: boolean): void;
65
65
  /** 更新户型图大小 */
66
- updateSize: () => void;
66
+ updateSize: () => boolean;
67
67
  highlight: (highlightData: HighlightData) => void;
68
68
  unhighlight: () => void;
69
69
  protected formatData(serverData: PluginServerData): Promise<PluginData>;