@realsee/dnalogel 3.58.3 → 3.58.4

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 (454) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/dist/ModelMakerPlugin/item/baseItem.d.ts +2 -0
  3. package/dist/ModelMakerPlugin/item/boxItem.d.ts +9 -3
  4. package/dist/ModelMakerPlugin/item/polygonItem.d.ts +7 -7
  5. package/dist/ModelMakerPlugin/item/prismItem.d.ts +0 -3
  6. package/dist/PanoDoorLabelPlugin/Controller.d.ts +13 -7
  7. package/dist/index.cjs.js +28 -28
  8. package/dist/index.js +2548 -2580
  9. package/dist/index.umd.js +28 -28
  10. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
  11. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
  12. package/docs/classes/CSS3DRender.html +2 -2
  13. package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
  14. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
  15. package/docs/classes/ModelMakerPluginInstance.html +2 -2
  16. package/docs/classes/ModelRoomLabelController.html +2 -2
  17. package/docs/classes/MoveController.html +2 -2
  18. package/docs/classes/Object3DHelperController.html +2 -2
  19. package/docs/classes/PaintBrush.html +2 -2
  20. package/docs/classes/PanoMeasurePluginLine.html +2 -2
  21. package/docs/classes/PanoMeasurePluginModel.html +2 -2
  22. package/docs/classes/PanoMeasurePluginPoint.html +2 -2
  23. package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
  24. package/docs/classes/PanoTagPluginController.html +2 -2
  25. package/docs/classes/Sculpt.html +2 -2
  26. package/docs/classes/Util.BetterTween.html +2 -2
  27. package/docs/classes/Util.FiveDomEvents.html +2 -2
  28. package/docs/classes/Util.FivePuppet.html +2 -2
  29. package/docs/classes/Util.Interval.html +2 -2
  30. package/docs/classes/Util.LightTag.html +2 -2
  31. package/docs/classes/Util.LineSegments.html +2 -2
  32. package/docs/classes/Util.Magnifier.html +2 -2
  33. package/docs/classes/Util.Object3D.html +2 -2
  34. package/docs/classes/Util.PointHelper.html +2 -2
  35. package/docs/classes/Util.PointSelector.html +2 -2
  36. package/docs/classes/Util.PointSelectorHelper.html +2 -2
  37. package/docs/classes/Util.Rectangle.html +2 -2
  38. package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
  39. package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
  40. package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
  41. package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
  42. package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
  43. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
  44. package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
  45. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
  46. package/docs/classes/Util.sculpt.LineMesh.html +2 -2
  47. package/docs/classes/Util.sculpt.PointMesh.html +2 -2
  48. package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
  49. package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
  50. package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
  51. package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
  52. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
  53. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
  54. package/docs/classes/WalkController.html +2 -2
  55. package/docs/enums/CameraMovementEffect.html +2 -2
  56. package/docs/enums/ContentType.html +2 -2
  57. package/docs/enums/DIRECTION.html +2 -2
  58. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
  59. package/docs/enums/DimensionType.html +2 -2
  60. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
  61. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
  62. package/docs/enums/PaintBrushTypeEnum.html +2 -2
  63. package/docs/enums/PointType.html +2 -2
  64. package/docs/enums/Rotation.html +2 -2
  65. package/docs/functions/AreaMakerPlugin.html +1 -1
  66. package/docs/functions/CSS3DRenderPlugin.html +1 -1
  67. package/docs/functions/CameraMovementPlugin.html +2 -2
  68. package/docs/functions/CruisePlugin.html +1 -1
  69. package/docs/functions/CurrentPanoImagePlugin.html +1 -1
  70. package/docs/functions/GuideLinePlugin.html +1 -1
  71. package/docs/functions/ItemLabelPlugin.html +1 -1
  72. package/docs/functions/MapviewFloorplanPlugin.html +1 -1
  73. package/docs/functions/ModelChassisCompassPlugin.html +2 -2
  74. package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
  75. package/docs/functions/ModelFloorplanPlugin.html +1 -1
  76. package/docs/functions/ModelItemLabelPlugin.html +1 -1
  77. package/docs/functions/ModelMakerPlugin.html +1 -1
  78. package/docs/functions/ModelRoomLabelPlugin.html +1 -1
  79. package/docs/functions/ModelTVVideoPlugin.html +1 -1
  80. package/docs/functions/ModelViewPlugin.html +2 -2
  81. package/docs/functions/MovePlugin.html +1 -1
  82. package/docs/functions/Object3DHelperPlugin.html +1 -1
  83. package/docs/functions/PanoCompassPlugin.html +1 -1
  84. package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
  85. package/docs/functions/PanoDoorLabelPlugin.html +1 -1
  86. package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
  87. package/docs/functions/PanoMeasurePlugin.html +1 -1
  88. package/docs/functions/PanoRulerPlugin.html +2 -2
  89. package/docs/functions/PanoRulerProPlugin.html +2 -2
  90. package/docs/functions/PanoSpatialTagPlugin.html +2 -2
  91. package/docs/functions/PanoTagPlugin.html +1 -1
  92. package/docs/functions/PanoVideoPlugin.html +2 -2
  93. package/docs/functions/PipelinePlugin.html +1 -1
  94. package/docs/functions/SculptPlugin.html +2 -2
  95. package/docs/functions/TopviewFloorplanPlugin.html +1 -1
  96. package/docs/functions/Util.absoluteUrl.html +2 -2
  97. package/docs/functions/Util.awaitNextFrame.html +1 -1
  98. package/docs/functions/Util.blink.html +2 -2
  99. package/docs/functions/Util.bounding.html +1 -1
  100. package/docs/functions/Util.boundingBox.html +1 -1
  101. package/docs/functions/Util.boundingSphere.html +1 -1
  102. package/docs/functions/Util.boxVertex.html +2 -2
  103. package/docs/functions/Util.boxVertexes.html +1 -1
  104. package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
  105. package/docs/functions/Util.convexHull.html +2 -2
  106. package/docs/functions/Util.equal.html +2 -2
  107. package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
  108. package/docs/functions/Util.getCoordsFromClient.html +1 -1
  109. package/docs/functions/Util.getCoordsFromElement.html +1 -1
  110. package/docs/functions/Util.getFrameTime.html +2 -2
  111. package/docs/functions/Util.inside.html +1 -1
  112. package/docs/functions/Util.isAbsoluteURL.html +1 -1
  113. package/docs/functions/Util.isModelLike.html +1 -1
  114. package/docs/functions/Util.isNil.html +2 -2
  115. package/docs/functions/Util.isPanoramaLike.html +1 -1
  116. package/docs/functions/Util.lookObject.html +2 -2
  117. package/docs/functions/Util.lookPoint.html +2 -2
  118. package/docs/functions/Util.nextFrame.html +1 -1
  119. package/docs/functions/Util.notNil.html +2 -2
  120. package/docs/functions/Util.reblink.html +2 -2
  121. package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
  122. package/docs/functions/Util.sculpt.createBox.html +1 -1
  123. package/docs/functions/Util.sculpt.createCircle.html +1 -1
  124. package/docs/functions/Util.sculpt.createCylinder.html +1 -1
  125. package/docs/functions/Util.sculpt.createLine.html +2 -2
  126. package/docs/functions/Util.sculpt.createPoint.html +1 -1
  127. package/docs/functions/Util.sculpt.createPolygon.html +1 -1
  128. package/docs/functions/Util.sculpt.createPrism.html +1 -1
  129. package/docs/functions/Util.sculpt.createRectangle.html +2 -2
  130. package/docs/functions/Util.tag.html +1 -1
  131. package/docs/functions/Util.tweenProgress.html +1 -1
  132. package/docs/functions/Util.uuid.html +2 -2
  133. package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
  134. package/docs/functions/Util.worldBounding.html +1 -1
  135. package/docs/functions/Util.worldBoundingBox.html +1 -1
  136. package/docs/functions/Util.worldBoundingSphere.html +1 -1
  137. package/docs/functions/createPolyline.html +2 -2
  138. package/docs/functions/pluginFlag.html +1 -1
  139. package/docs/hierarchy.html +1 -1
  140. package/docs/index.html +2 -2
  141. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
  142. package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
  143. package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
  144. package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
  145. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
  146. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
  147. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
  148. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
  149. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
  150. package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
  151. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  152. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  153. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  154. package/docs/interfaces/ContentTypeMapInterface.html +2 -2
  155. package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
  156. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
  157. package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
  158. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
  159. package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
  160. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
  161. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
  162. package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
  163. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
  164. package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
  165. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
  166. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
  167. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
  168. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
  169. package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
  170. package/docs/interfaces/FloorplanBounding.html +2 -2
  171. package/docs/interfaces/FloorplanData.html +2 -2
  172. package/docs/interfaces/FloorplanEntrance.html +2 -2
  173. package/docs/interfaces/FloorplanExtraObject.html +2 -2
  174. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  175. package/docs/interfaces/FloorplanFloorData.html +2 -2
  176. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  177. package/docs/interfaces/FloorplanObserver.html +2 -2
  178. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  179. package/docs/interfaces/FloorplanPosition.html +2 -2
  180. package/docs/interfaces/FloorplanRoomItem.html +2 -2
  181. package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
  182. package/docs/interfaces/FloorplanServerBounding.html +2 -2
  183. package/docs/interfaces/FloorplanServerComputedData.html +2 -2
  184. package/docs/interfaces/FloorplanServerData.html +2 -2
  185. package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
  186. package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
  187. package/docs/interfaces/FloorplanServerEntrance.html +2 -2
  188. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  189. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  190. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  191. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  192. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  193. package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
  194. package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
  195. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
  196. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
  197. package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
  198. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
  199. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
  200. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
  201. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
  202. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
  203. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
  204. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
  205. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
  206. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
  207. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
  208. package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
  209. package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
  210. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +2 -2
  211. package/docs/interfaces/HelperOffset.html +2 -2
  212. package/docs/interfaces/ImagePlaneGroup.html +2 -2
  213. package/docs/interfaces/ItemLabelPluginData.html +2 -2
  214. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
  215. package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
  216. package/docs/interfaces/MinMax.html +2 -2
  217. package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
  218. package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
  219. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
  220. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
  221. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
  222. package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
  223. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
  224. package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
  225. package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
  226. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
  227. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
  228. package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
  229. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
  230. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
  231. package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
  232. package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
  233. package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
  234. package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
  235. package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
  236. package/docs/interfaces/ModelViewPluginExportType.html +2 -2
  237. package/docs/interfaces/Object3DHelperState.html +2 -2
  238. package/docs/interfaces/ObjectHelperControllers.html +2 -2
  239. package/docs/interfaces/PaintBrushAction.html +2 -2
  240. package/docs/interfaces/PaintBrushConfigs.html +2 -2
  241. package/docs/interfaces/PaintBrushState.html +2 -2
  242. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
  243. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  244. package/docs/interfaces/PanoMeasureParameterType.html +2 -2
  245. package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
  246. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
  247. package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
  248. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
  249. package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
  250. package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
  251. package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
  252. package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
  253. package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
  254. package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
  255. package/docs/interfaces/PanoRulerProPluginState.html +2 -2
  256. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  257. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  258. package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
  259. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
  260. package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
  261. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
  262. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
  263. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
  264. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
  265. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
  266. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
  267. package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
  268. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
  269. package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
  270. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
  271. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
  272. package/docs/interfaces/PluginEventMap.html +2 -2
  273. package/docs/interfaces/Point.html +2 -2
  274. package/docs/interfaces/Room.html +2 -2
  275. package/docs/interfaces/RoomInfo.html +2 -2
  276. package/docs/interfaces/RoomLabel.html +2 -2
  277. package/docs/interfaces/RoomRules.html +1 -1
  278. package/docs/interfaces/Rooms.html +1 -1
  279. package/docs/interfaces/Scissor.html +2 -2
  280. package/docs/interfaces/State.html +2 -2
  281. package/docs/interfaces/TagCacheInterface.html +2 -2
  282. package/docs/interfaces/TagConfig.html +2 -2
  283. package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
  284. package/docs/interfaces/TagIconUrl.html +2 -2
  285. package/docs/interfaces/TagObjectGroup.html +2 -2
  286. package/docs/interfaces/TagStyle.html +2 -2
  287. package/docs/interfaces/Tags.html +2 -2
  288. package/docs/interfaces/TemporaryState.html +2 -2
  289. package/docs/interfaces/Util.AnimeInstance.html +2 -2
  290. package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
  291. package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
  292. package/docs/interfaces/Util.FiveDomEvent.html +2 -2
  293. package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
  294. package/docs/interfaces/Util.MagnifierParameter.html +2 -2
  295. package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
  296. package/docs/interfaces/Util.PointIntersection.html +2 -2
  297. package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
  298. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
  299. package/docs/modules/AreaMakerPluginType.html +2 -2
  300. package/docs/modules/CruisePluginTypes.html +2 -2
  301. package/docs/modules/CurrentPanoImagePluginType.html +2 -2
  302. package/docs/modules/GuideLineItem.html +2 -2
  303. package/docs/modules/GuideLineModeItem.html +2 -2
  304. package/docs/modules/GuideLinePluginType.html +2 -2
  305. package/docs/modules/ModelMakerPluginType.html +2 -2
  306. package/docs/modules/PanoVideoPluginType.html +2 -2
  307. package/docs/modules/SculptData.html +2 -2
  308. package/docs/modules/Util.html +2 -2
  309. package/docs/modules/Util.sculpt.html +2 -2
  310. package/docs/modules.html +2 -2
  311. package/docs/types/AddObject3DHelperConfig.html +2 -2
  312. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
  313. package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
  314. package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
  315. package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
  316. package/docs/types/ArrayPosition.html +1 -1
  317. package/docs/types/AudioAppearance.html +1 -1
  318. package/docs/types/CSS3DRenderExportType.html +1 -1
  319. package/docs/types/CSS3DRenderPluginExportType.html +1 -1
  320. package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
  321. package/docs/types/ClassFunctionParameters.html +1 -1
  322. package/docs/types/Color.html +1 -1
  323. package/docs/types/ContentTypeConfigKey.html +1 -1
  324. package/docs/types/ContentTypeConfigKeySplit.html +1 -1
  325. package/docs/types/ContentTypeMap.html +1 -1
  326. package/docs/types/Create3DDomContainerReturnType.html +1 -1
  327. package/docs/types/Create3DElementReturnType.html +1 -1
  328. package/docs/types/CruisePluginExportType.html +1 -1
  329. package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
  330. package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
  331. package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
  332. package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
  333. package/docs/types/DeprecatedTagProperty.html +2 -2
  334. package/docs/types/Direction-1.html +1 -1
  335. package/docs/types/Direction4.html +1 -1
  336. package/docs/types/ElementRenderer.html +2 -2
  337. package/docs/types/FloorplanRuleLabels.html +2 -2
  338. package/docs/types/FloorplanServerRuleLabels.html +1 -1
  339. package/docs/types/GuideLinePluginExportType.html +1 -1
  340. package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
  341. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
  342. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
  343. package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
  344. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
  345. package/docs/types/GuideLinePluginType.PathItem.html +2 -2
  346. package/docs/types/GuideLinePluginType.PluginData.html +2 -2
  347. package/docs/types/HelperEventMap.html +1 -1
  348. package/docs/types/InternalHelperEventMap.html +1 -1
  349. package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
  350. package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
  351. package/docs/types/MediaData.html +2 -2
  352. package/docs/types/MediaStore.html +1 -1
  353. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
  354. package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
  355. package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
  356. package/docs/types/ModelId.html +1 -1
  357. package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
  358. package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
  359. package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
  360. package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
  361. package/docs/types/MoveArgs.html +2 -2
  362. package/docs/types/MoveOpts.html +2 -2
  363. package/docs/types/Object3DHelperEventMap.html +1 -1
  364. package/docs/types/ObjectFit.html +1 -1
  365. package/docs/types/PaintBrushEventMap.html +1 -1
  366. package/docs/types/PanoCompassPluginData.html +1 -1
  367. package/docs/types/PanoCompassPluginExportType.html +1 -1
  368. package/docs/types/PanoCompassPluginParameterType.html +1 -1
  369. package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
  370. package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
  371. package/docs/types/PanoIndex.html +1 -1
  372. package/docs/types/PanoMeasurePluginEvent.html +1 -1
  373. package/docs/types/PanoMeasureReturnType.html +1 -1
  374. package/docs/types/PanoSpatialTagPluginId.html +1 -1
  375. package/docs/types/PanoTagPluginExportInterface.html +1 -1
  376. package/docs/types/PanoTagPluginParamsInterface.html +1 -1
  377. package/docs/types/PanoVideoPluginParameterType.html +1 -1
  378. package/docs/types/PanoVideoPluginReturnType.html +1 -1
  379. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
  380. package/docs/types/PipelinePluginParameterType.html +1 -1
  381. package/docs/types/PipelinePluginReturnType.html +1 -1
  382. package/docs/types/PlaneTag.html +2 -2
  383. package/docs/types/Point2DTag.html +2 -2
  384. package/docs/types/Point3DTag.html +2 -2
  385. package/docs/types/PointTagInstance.html +1 -1
  386. package/docs/types/Position.html +1 -1
  387. package/docs/types/PositionFrom.html +1 -1
  388. package/docs/types/RotateArgs.html +2 -2
  389. package/docs/types/RotateOpts.html +2 -2
  390. package/docs/types/RuleLabelsKey.html +1 -1
  391. package/docs/types/RuleLabelsValue.html +1 -1
  392. package/docs/types/ScaleCallback.html +1 -1
  393. package/docs/types/ScalePosition.html +2 -2
  394. package/docs/types/SculptData.BoxData.html +1 -1
  395. package/docs/types/SculptData.CircleData.html +1 -1
  396. package/docs/types/SculptData.CylinderData.html +1 -1
  397. package/docs/types/SculptData.PointData.html +1 -1
  398. package/docs/types/SculptData.PolygonData.html +1 -1
  399. package/docs/types/SculptData.PolylineData.html +1 -1
  400. package/docs/types/SculptData.PrismData.html +1 -1
  401. package/docs/types/SculptData.RectangleData.html +1 -1
  402. package/docs/types/StickType.html +1 -1
  403. package/docs/types/Tag.html +2 -2
  404. package/docs/types/Tag2D.html +2 -2
  405. package/docs/types/Tag3D.html +2 -2
  406. package/docs/types/TagClickParams.html +1 -1
  407. package/docs/types/TagConfigByKey.html +1 -1
  408. package/docs/types/TagContentType.html +1 -1
  409. package/docs/types/TagContentTypeMapping.html +1 -1
  410. package/docs/types/TagDimensionType.html +1 -1
  411. package/docs/types/TagElement.html +2 -2
  412. package/docs/types/TagEvents.html +1 -1
  413. package/docs/types/TagGLTFObject.html +1 -1
  414. package/docs/types/TagHooks.html +1 -1
  415. package/docs/types/TagId.html +1 -1
  416. package/docs/types/TagInstance.html +1 -1
  417. package/docs/types/TagPointType.html +2 -2
  418. package/docs/types/TagRendererMap.html +1 -1
  419. package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
  420. package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
  421. package/docs/types/Util.ActionIfNoModelUnderMouse.html +1 -1
  422. package/docs/types/Util.PointSelectorConfig.html +1 -1
  423. package/docs/types/WorkCode.html +1 -1
  424. package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
  425. package/docs/variables/PLUGIN.html +1 -1
  426. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
  427. package/docs/variables/ROOM_TYPE_MAP.html +2 -2
  428. package/docs/variables/Util.animeMap.html +1 -1
  429. package/docs/variables/defaultGlobalConfig.html +1 -1
  430. package/docs/variables/itemLabelPluginServerParams.html +1 -1
  431. package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
  432. package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
  433. package/libs/ModelMakerPlugin/Controller.js +48 -48
  434. package/libs/ModelMakerPlugin/index.js +1 -1
  435. package/libs/ModelMakerPlugin/item/baseItem.d.ts +2 -0
  436. package/libs/ModelMakerPlugin/item/baseItem.js +32 -28
  437. package/libs/ModelMakerPlugin/item/boxItem.d.ts +9 -3
  438. package/libs/ModelMakerPlugin/item/boxItem.js +27 -6
  439. package/libs/ModelMakerPlugin/item/polygonItem.d.ts +7 -7
  440. package/libs/ModelMakerPlugin/item/polygonItem.js +24 -20
  441. package/libs/ModelMakerPlugin/item/prismItem.d.ts +0 -3
  442. package/libs/ModelMakerPlugin/item/prismItem.js +25 -31
  443. package/libs/PanoDoorLabelPlugin/Controller.d.ts +13 -7
  444. package/libs/PanoDoorLabelPlugin/Controller.js +203 -177
  445. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +63 -64
  446. package/libs/PanoDoorLabelPlugin/index.js +2 -2
  447. package/libs/base/BasePlugin.js +1 -1
  448. package/libs/index.js +144 -145
  449. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +5 -5
  450. package/libs/shared-utils/logger.js +1 -1
  451. package/package.json +1 -1
  452. package/dist/PanoDoorLabelPlugin/BaseController.d.ts +0 -61
  453. package/libs/PanoDoorLabelPlugin/BaseController.d.ts +0 -61
  454. package/libs/PanoDoorLabelPlugin/BaseController.js +0 -143
@@ -1,55 +1,66 @@
1
- var $ = Object.defineProperty, B = Object.defineProperties;
2
- var U = Object.getOwnPropertyDescriptors;
1
+ var N = Object.defineProperty, Q = Object.defineProperties;
2
+ var j = Object.getOwnPropertyDescriptors;
3
3
  var C = Object.getOwnPropertySymbols;
4
- var G = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable;
5
- var T = (p, a, i) => a in p ? $(p, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : p[a] = i, H = (p, a) => {
6
- for (var i in a || (a = {}))
7
- G.call(a, i) && T(p, i, a[i]);
4
+ var R = Object.prototype.hasOwnProperty, $ = Object.prototype.propertyIsEnumerable;
5
+ var H = (l, h, t) => h in l ? N(l, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[h] = t, L = (l, h) => {
6
+ for (var t in h || (h = {}))
7
+ R.call(h, t) && H(l, t, h[t]);
8
8
  if (C)
9
- for (var i of C(a))
10
- N.call(a, i) && T(p, i, a[i]);
11
- return p;
12
- }, W = (p, a) => B(p, U(a));
13
- var n = (p, a, i) => (T(p, typeof a != "symbol" ? a + "" : a, i), i);
14
- import { Raycaster as Q, Vector3 as V, Quaternion as j, Euler as z } from "three";
15
- import { BasePanoPluginController as q } from "./BaseController.js";
16
- import X from "./DoorLabelItem.js";
17
- import { getCameraToward as Y, isTwoRectOverlaped as Z, getDistance as J, getToward as K } from "./utils.js";
18
- import "@realsee/five";
19
- import "../base/BasePlugin.js";
20
- import "../shared-utils/Subscribe.js";
9
+ for (var t of C(h))
10
+ $.call(h, t) && H(l, t, h[t]);
11
+ return l;
12
+ }, U = (l, h) => Q(l, j(h));
13
+ var B = (l, h) => {
14
+ var t = {};
15
+ for (var i in l)
16
+ R.call(l, i) && h.indexOf(i) < 0 && (t[i] = l[i]);
17
+ if (l != null && C)
18
+ for (var i of C(l))
19
+ h.indexOf(i) < 0 && $.call(l, i) && (t[i] = l[i]);
20
+ return t;
21
+ };
22
+ var c = (l, h, t) => (H(l, typeof h != "symbol" ? h + "" : h, t), t);
23
+ import { Raycaster as q, Vector3 as S, Quaternion as X, Euler as G } from "three";
24
+ import { Controller as Y } from "../base/BasePlugin.js";
25
+ import Z from "./DoorLabelItem.js";
26
+ import { getCameraToward as J, isTwoRectOverlaped as K, getDistance as tt, getToward as it } from "./utils.js";
21
27
  import "../shared-utils/tag.js";
22
- import "../shared-utils/positionToVector3.js";
23
- import "../shared-utils/five/vector3ToScreen.js";
24
- import "../shared-utils/five/getFiveModel.js";
28
+ import "hammerjs";
29
+ import "../shared-utils/three/PointSelector/index.js";
30
+ import "three/examples/jsm/renderers/CSS3DRenderer";
31
+ import "@realsee/five/line";
32
+ import "../shared-utils/three/core/Five_LineMaterial2.js";
33
+ import "../shared-utils/three/core/Sphere.js";
34
+ import "animejs";
35
+ import { waitFiveModelLoaded as et } from "../shared-utils/five/fiveModelLoad.js";
36
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
37
+ import "../shared-utils/five/FivePuppet.js";
38
+ import "../shared-utils/Subscribe.js";
25
39
  import "../shared-utils/Utils/FiveUtil.js";
26
40
  import "../shared-utils/Utils/BaseUtil.js";
27
41
  import "../shared-utils/Utils/WorkUtil.js";
28
42
  import "../shared-utils/five/transformPosition.js";
43
+ import "../shared-utils/five/getFiveModel.js";
44
+ import "../shared-utils/url/absoluteUrl.js";
45
+ import "../vendor/svelte/internal/index.js";
46
+ import "../vendor/classnames/index.js";
47
+ import "../shared-utils/positionToVector3.js";
48
+ import "../shared-utils/five/vector3ToScreen.js";
29
49
  import "../shared-utils/three/temp.js";
30
50
  import "../shared-utils/three/core/Raycaster.js";
31
51
  import "../shared-utils/dom/resizeObserver.js";
32
52
  import "../shared-utils/five/fiveEveryReadyListener.js";
33
53
  import "../shared-utils/throttle.js";
34
- import "hammerjs";
35
- import "../shared-utils/three/PointSelector/index.js";
36
54
  import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
37
55
  import "../shared-utils/three/Magnifier.js";
38
56
  import "../shared-utils/three/PointSelector/utils/PointHelper.js";
39
57
  import "../shared-utils/three/Assets/index.js";
40
58
  import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
41
- import "three/examples/jsm/renderers/CSS3DRenderer";
42
59
  import "../CSS3DRenderPlugin/utils/even.js";
43
60
  import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
44
61
  import "../shared-utils/three/centerPoint.js";
45
62
  import "../shared-utils/three/getObjectVisible.js";
46
- import "@realsee/five/line";
47
63
  import "../shared-utils/isNil.js";
48
- import "../shared-utils/three/core/Five_LineMaterial2.js";
49
- import "../shared-utils/three/core/Sphere.js";
50
- import "animejs";
51
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
52
- import "../shared-utils/five/FivePuppet.js";
53
64
  import "../shared-utils/three/PointSelector/utils/html.js";
54
65
  import "../shared-utils/five/initialCSS3DRender.js";
55
66
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
@@ -72,213 +83,228 @@ import "../shared-utils/isTouchDevice.js";
72
83
  import "../shared-utils/five/getPosition.js";
73
84
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
74
85
  import "../shared-utils/three/PointSelector/utils/contents.js";
75
- import "../shared-utils/url/absoluteUrl.js";
76
- import "../vendor/svelte/internal/index.js";
77
- import "../vendor/classnames/index.js";
78
- const ii = { userAction: !0 };
79
- class mt extends q {
80
- constructor(i) {
81
- super(i);
82
- n(this, "MinVisibledistance", 1.8);
83
- n(this, "MaxVisibledistance", 5);
84
- n(this, "OffsetHeight", -1.3);
86
+ import "@realsee/five";
87
+ const ot = { userAction: !0 };
88
+ class vi extends Y {
89
+ constructor(t) {
90
+ super(t);
91
+ c(this, "state", { enabled: !0, visible: !0 });
92
+ c(this, "container");
93
+ c(this, "MinVisibledistance", 1.8);
94
+ c(this, "MaxVisibledistance", 5);
95
+ c(this, "OffsetHeight", -1.3);
85
96
  // 标签页面高度偏移值
86
- n(this, "rooms");
87
- n(this, "floorplanServerData");
88
- /** 标签项 */
89
- n(this, "doorLabelItems");
97
+ c(this, "rooms");
98
+ c(this, "floorplanServerData");
90
99
  /** 每个点位 visible 标签的缓存 */
91
- n(this, "visibleLabelMap", /* @__PURE__ */ new Map());
100
+ c(this, "visibleLabelMap", /* @__PURE__ */ new Map());
92
101
  /** 标签项Prop值 */
93
- n(this, "labelItems", []);
102
+ c(this, "labelItems", []);
94
103
  /** 数据 */
95
- n(this, "doorLabels");
96
- n(this, "roomObservers");
97
- n(this, "loadData", (i, r) => {
98
- r && (this.MaxVisibledistance = r.MaxVisibledistance, this.MinVisibledistance = r.MinVisibledistance, this.OffsetHeight = r.OffsetHeight), this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((m) => {
99
- m.$destroy();
100
- }), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData = i, typeof this.five.ready == "function" ? this.five.ready().then(() => this.initData()) : this.five.once("panoArrived", () => {
101
- this.initData();
104
+ c(this, "doorLabels");
105
+ c(this, "roomObservers");
106
+ c(this, "loadData", (t, i) => {
107
+ i && (this.MaxVisibledistance = i.MaxVisibledistance, this.MinVisibledistance = i.MinVisibledistance, this.OffsetHeight = i.OffsetHeight), this.labelItems = [], this.doorLabels = [], this.floorplanServerData = t, et(this.five).then(() => {
108
+ this.initData(), this.fixDoorVisibleAndPosition(), this.applyState();
102
109
  });
103
110
  });
104
- n(this, "initRoomObservers", () => {
105
- var l, h;
106
- const i = this.floorplanServerData.computed_data.floor_datas || [], m = (((h = (l = this.five) == null ? void 0 : l.work) == null ? void 0 : h.observers) || []).map((e) => {
107
- const s = e.panoIndex, f = e.floorIndex, t = i == null ? void 0 : i.find((o) => o.floor_index === f);
108
- if (t) {
109
- const o = t.rooms.find((c) => c.observer_indexs.includes(s));
110
- if (o)
111
- return { panoIndex: s, floorIndex: f, name: o.name };
111
+ c(this, "dispose", () => {
112
+ var t, i, f, e, a, o, s;
113
+ (t = this.five) == null || t.off("wantsToMoveToPano", this.hideAllLabels), (i = this.five) == null || i.off("modelLoaded", this.fixDoorVisibleAndPosition), (f = this.five) == null || f.off("panoArrived", this.fixDoorVisibleAndPosition), (e = this.five) == null || e.off("initAnimationEnded", this.fixDoorPosition), (a = this.five) == null || a.off("cameraUpdate", this.fixDoorPosition), (o = this.five) == null || o.off("mouseWheel", this.fixDoorPosition), (s = this.five) == null || s.off("pinchGesture", this.fixDoorPosition), this.applyState({ enabled: !1 });
114
+ });
115
+ c(this, "initRoomObservers", () => {
116
+ var e, a;
117
+ const t = this.floorplanServerData.computed_data.floor_datas || [], f = (((a = (e = this.five) == null ? void 0 : e.work) == null ? void 0 : a.observers) || []).map((o) => {
118
+ const s = o.panoIndex, d = o.floorIndex, n = t == null ? void 0 : t.find((r) => r.floor_index === d);
119
+ if (n) {
120
+ const r = n.rooms.find((p) => p.observer_indexs.includes(s));
121
+ if (r)
122
+ return { panoIndex: s, floorIndex: d, name: r.name };
112
123
  }
113
124
  }).filter(Boolean);
114
- this.roomObservers = m;
125
+ this.roomObservers = f;
115
126
  });
116
- n(this, "hideAllLabels", () => {
117
- this.labelItems.forEach((i) => {
118
- i.visible = !1, i.inSight = !1;
119
- }), this.render();
127
+ c(this, "hideAllLabels", () => {
128
+ this.labelItems.forEach((t) => {
129
+ t.visible = !1, t.inSight = !1;
130
+ });
120
131
  });
121
- n(this, "fixDoorVisibleAndPosition", () => {
132
+ c(this, "fixDoorVisibleAndPosition", () => {
122
133
  this.initRoomObservers();
123
- const { panoIndex: i } = this.five;
124
- if (!this.visible || this.five.model.empty || i === null || !this.roomObservers.find((e) => e.panoIndex === i))
134
+ const { panoIndex: t } = this.five;
135
+ if (!this.state.visible || this.five.model.empty || t === null || !this.roomObservers.find((o) => o.panoIndex === t))
125
136
  return;
126
- const r = this.roomObservers.find((e) => e.panoIndex === i), l = this.five.work.observers.find((e) => e.panoIndex === i).position.clone(), h = (() => {
127
- if (this.visibleLabelMap.has(i))
128
- return this.visibleLabelMap.get(i);
137
+ const i = this.roomObservers.find((o) => o.panoIndex === t), e = this.five.work.observers.find((o) => o.panoIndex === t).position.clone(), a = (() => {
138
+ if (this.visibleLabelMap.has(t))
139
+ return this.visibleLabelMap.get(t);
129
140
  {
130
- const e = [];
131
- return this.doorLabels.forEach((s, f) => {
132
- if (s.roomName === r.name)
141
+ const o = [];
142
+ return this.doorLabels.forEach((s, d) => {
143
+ if (s.roomName === i.name)
133
144
  return;
134
- const t = s.position.clone(), o = t.distanceTo(l);
135
- if (o < this.MinVisibledistance || o > this.MaxVisibledistance)
145
+ const n = s.position.clone(), r = n.distanceTo(e);
146
+ if (r < this.MinVisibledistance || r > this.MaxVisibledistance)
136
147
  return;
137
- const c = new Q(), v = t.clone().sub(l).normalize();
138
- c.set(l, v);
139
- const [b] = this.five.model.intersectRaycaster(c);
140
- b && b.distance + 0.1 < o || e.push(f);
141
- }), this.visibleLabelMap.set(i, e), e;
148
+ const p = new q(), v = n.clone().sub(e).normalize();
149
+ p.set(e, v);
150
+ const [b] = this.five.model.intersectRaycaster(p);
151
+ b && b.distance + 0.1 < r || o.push(d);
152
+ }), this.visibleLabelMap.set(t, o), o;
142
153
  }
143
154
  })();
144
- this.labelItems.forEach((e, s) => {
145
- e.visible = h.includes(s);
155
+ this.labelItems.forEach((o, s) => {
156
+ o.visible = a.includes(s);
146
157
  }), this.fixDoorPosition();
147
158
  });
148
- n(this, "fixDoorPosition", () => {
149
- var t, o, c, v, b, y, g, w, L, E, _, S;
150
- const { panoIndex: i, camera: r } = this.five;
151
- if (i === null)
159
+ c(this, "fixDoorPosition", () => {
160
+ var d, n, r, p, v, b, V, x, P, g, W, z;
161
+ if (!this.state.enabled || !this.state.visible)
162
+ return;
163
+ const { panoIndex: t, camera: i } = this.five;
164
+ if (t === null)
152
165
  return;
153
166
  if (this.five.currentMode !== "Panorama")
154
167
  return this.hideAllLabels();
155
- const m = this.five.getElement(), l = m.clientWidth, h = m.clientHeight, e = r.getWorldDirection(new V()), s = [], f = [...this.labelItems];
156
- if (f.forEach((d, u) => {
157
- if (d.visible) {
158
- const x = r.position.distanceTo(d.position), M = d.position.clone().add(new V(0, this.OffsetHeight, 0)), A = M.clone().sub(r.position).normalize().angleTo(e), O = M.clone().project(r), P = (O.x + 1) / 2.2 * 100, I = (-O.y + 1) / 2.2 * 100, D = P >= 0 && P <= 100 && I >= 0 && I <= 100 && x > this.MinVisibledistance && x <= this.MaxVisibledistance;
159
- d.left = P, d.top = I, d.inSight = D && A < Math.PI / 2, d.cameraToward = Y(this.five), D ? s.push({ disFromCameraToLabel: x, left: P, top: I, index: u }) : d.transform = "translate(-50%, -50%)";
168
+ const f = this.five.getElement(), e = f.clientWidth, a = f.clientHeight, o = i.getWorldDirection(new S()), s = [];
169
+ if (this.labelItems.forEach((m, u) => {
170
+ var w;
171
+ if (m.visible) {
172
+ const A = i.position.distanceTo(m.position), y = m.position.clone().add(new S(0, this.OffsetHeight, 0)), M = y.clone().sub(i.position).normalize().angleTo(o), E = y.clone().project(i), D = (E.x + 1) / 2.2 * 100, _ = (-E.y + 1) / 2.2 * 100, F = D >= 0 && D <= 100 && _ >= 0 && _ <= 100 && A > this.MinVisibledistance && A <= this.MaxVisibledistance;
173
+ m.left = D, m.top = _, m.inSight = F && M < Math.PI / 2, m.cameraToward = J(this.five), F ? s.push({ disFromCameraToLabel: A, left: D, top: _, index: u }) : m.transform = "translate(-50%, -50%)";
160
174
  } else
161
- d.inSight = !1;
175
+ m.inSight = !1;
176
+ const T = m, { svelteApp: I } = T, k = B(T, ["svelteApp"]);
177
+ (w = m.svelteApp) == null || w.$set({ props: k });
162
178
  }), s.length > 1) {
163
- let d = 0;
164
- s.sort((u, x) => x.disFromCameraToLabel - u.disFromCameraToLabel);
179
+ let m = 0;
180
+ s.sort((u, I) => I.disFromCameraToLabel - u.disFromCameraToLabel);
165
181
  for (let u = 1; u < s.length; u++) {
166
- const { index: x, left: M, top: k } = s[u - 1], { index: A, left: O, top: P } = s[u], I = this.container.children[x], D = this.container.children[A];
167
- if (!I || !D)
182
+ const { index: I, left: k, top: T } = s[u - 1], { index: w, left: A, top: y } = s[u], O = this.container.children[I], M = this.container.children[w];
183
+ if (!O || !M)
168
184
  return;
169
- const R = {
170
- left: l * M / 100,
171
- top: h * k / 100,
172
- width: (c = (o = (t = I.children) == null ? void 0 : t[0]) == null ? void 0 : o.clientWidth) != null ? c : 0,
173
- height: (y = (b = (v = I.children) == null ? void 0 : v[0]) == null ? void 0 : b.clientHeight) != null ? y : 0
174
- }, F = {
175
- left: l * O / 100,
176
- top: h * P / 100,
177
- width: (L = (w = (g = D.children) == null ? void 0 : g[0]) == null ? void 0 : w.clientWidth) != null ? L : 0,
178
- height: (S = (_ = (E = D.children) == null ? void 0 : E[0]) == null ? void 0 : _.clientHeight) != null ? S : 0
185
+ const E = {
186
+ left: e * k / 100,
187
+ top: a * T / 100,
188
+ width: (r = (n = (d = O.children) == null ? void 0 : d[0]) == null ? void 0 : n.clientWidth) != null ? r : 0,
189
+ height: (b = (v = (p = O.children) == null ? void 0 : p[0]) == null ? void 0 : v.clientHeight) != null ? b : 0
190
+ }, D = {
191
+ left: e * A / 100,
192
+ top: a * y / 100,
193
+ width: (P = (x = (V = M.children) == null ? void 0 : V[0]) == null ? void 0 : x.clientWidth) != null ? P : 0,
194
+ height: (z = (W = (g = M.children) == null ? void 0 : g[0]) == null ? void 0 : W.clientHeight) != null ? z : 0
179
195
  };
180
- Z(R, F) && (d++, f[x].transform = `translate(-50%, ${(d - 1) * 100 - 50}%)`, f[A].transform = `translate(-50%, ${d * 100 - 50}%)`);
196
+ K(E, D) && (m++, this.labelItems[I].transform = `translate(-50%, ${(m - 1) * 100 - 50}%)`, this.labelItems[w].transform = `translate(-50%, ${m * 100 - 50}%)`);
181
197
  }
182
198
  }
183
- this.labelItems = f, this.render();
184
199
  });
185
- n(this, "onClick", (i, r) => {
200
+ c(this, "onClick", (t, i) => {
186
201
  if (!this.roomObservers)
187
202
  return;
188
- const { work: m } = this.five;
189
- let l, h, e = 1 / 0;
190
- for (const s of m.observers)
191
- if (this.roomObservers.find((t) => t.panoIndex === s.panoIndex && t.name === i)) {
192
- const t = s.standingPosition, o = r.distanceTo(t);
193
- o < e && (l = s.panoIndex, h = t.clone().sub(r).normalize(), e = o);
203
+ const { work: f } = this.five;
204
+ let e, a, o = 1 / 0;
205
+ for (const s of f.observers)
206
+ if (this.roomObservers.find((n) => n.panoIndex === s.panoIndex && n.name === t)) {
207
+ const n = s.standingPosition, r = i.distanceTo(n);
208
+ r < o && (e = s.panoIndex, a = n.clone().sub(i).normalize(), o = r);
194
209
  }
195
- if (h !== null && l !== null) {
210
+ if (a !== null && e !== null) {
196
211
  const s = {};
197
- if (e > 0) {
198
- const t = new V(0, 0, -1), o = h.clone(), c = new j();
199
- c.setFromUnitVectors(t, o);
200
- const v = new z();
201
- v.setFromQuaternion(c, "YXZ"), s.longitude = v.y;
212
+ if (o > 0) {
213
+ const n = new S(0, 0, -1), r = a.clone(), p = new X();
214
+ p.setFromUnitVectors(n, r);
215
+ const v = new G();
216
+ v.setFromQuaternion(p, "YXZ"), s.longitude = v.y;
202
217
  }
203
- this.five.emit("wantsToMoveToPano", l, {}, !0) || this.five.moveToPano(l, { longitude: s.longitude });
218
+ this.five.emit("wantsToMoveToPano", e, {}, !0) || this.five.moveToPano(e, { longitude: s.longitude });
204
219
  }
205
220
  });
206
- n(this, "initData", () => {
207
- var l;
221
+ c(this, "initData", () => {
222
+ var e;
208
223
  this.doorLabels = [];
209
- const i = this.five.panoIndex, r = this.floorplanServerData.computed_data.observers[i].floor_index, m = r !== void 0 && ((l = this.floorplanServerData.computed_data.floor_datas[r]) == null ? void 0 : l.rooms);
210
- this.rooms = m, this.rooms && this.rooms.length > 0 && this.rooms.forEach((h) => {
211
- var f;
212
- const e = (f = this.floorplanServerData.computed_data.doors) == null ? void 0 : f.filter((t) => !!(t && t.name === h.name)), s = this.five.work.observers.filter((t, o) => !!h.observer_indexs.find((c) => c === o));
213
- e && e.forEach((t) => {
214
- const o = t.position;
215
- let c = 1 / 0, v;
216
- s.forEach((y) => {
217
- const g = y.standingPosition, w = {
218
- x: g.x,
219
- y: g.y,
220
- z: g.z
221
- }, L = J(o, w);
222
- L < c && (c = L, v = w);
223
- }), v && (o.y = v.y + 0.01);
224
- const b = new V(o.x, o.y, o.z);
225
- b.add(new V(-0.2, 1.8, 0).applyEuler(new z(0, t.rad, 0))), this.doorLabels.push({
226
- roomName: h.name,
227
- name: t.name,
224
+ const t = this.five.panoIndex, i = this.floorplanServerData.computed_data.observers[t].floor_index, f = i !== void 0 && ((e = this.floorplanServerData.computed_data.floor_datas[i]) == null ? void 0 : e.rooms);
225
+ this.rooms = f, this.rooms && this.rooms.length > 0 && this.rooms.forEach((a) => {
226
+ var d;
227
+ const o = (d = this.floorplanServerData.computed_data.doors) == null ? void 0 : d.filter((n) => !!(n && n.name === a.name)), s = this.five.work.observers.filter((n, r) => !!a.observer_indexs.find((p) => p === r));
228
+ o && o.forEach((n) => {
229
+ const r = n.position;
230
+ let p = 1 / 0, v;
231
+ s.forEach((V) => {
232
+ const x = V.standingPosition, P = {
233
+ x: x.x,
234
+ y: x.y,
235
+ z: x.z
236
+ }, g = tt(r, P);
237
+ g < p && (p = g, v = P);
238
+ }), v && (r.y = v.y + 0.01);
239
+ const b = new S(r.x, r.y, r.z);
240
+ b.add(new S(-0.2, 1.8, 0).applyEuler(new G(0, n.rad, 0))), this.doorLabels.push({
241
+ roomName: a.name,
242
+ name: n.name,
228
243
  position: b,
229
- toward: K(t.rad)
244
+ toward: it(n.rad)
230
245
  });
231
246
  });
232
- }), this.labelItems = this.doorLabels.map((h) => W(H({}, h), {
247
+ }), this.labelItems = this.doorLabels.map((a) => U(L({}, a), {
233
248
  left: 0,
234
249
  top: 0,
235
250
  visible: !1,
236
251
  inSight: !1,
237
252
  transform: "",
238
253
  cameraToward: ""
239
- })), this.five.on("wantsToMoveToPano", this.hideAllLabels), this.five.on("modelLoaded", this.fixDoorVisibleAndPosition), this.five.on("panoArrived", this.fixDoorVisibleAndPosition), this.five.on("initAnimationEnded", this.fixDoorPosition), this.five.on("cameraUpdate", this.fixDoorPosition), this.five.on("mouseWheel", this.fixDoorPosition), this.five.on("pinchGesture", this.fixDoorPosition), this.fixDoorVisibleAndPosition();
254
+ })), this.five.on("wantsToMoveToPano", this.hideAllLabels), this.five.on("panoArrived", this.fixDoorVisibleAndPosition), this.five.on("initAnimationEnded", this.fixDoorPosition), this.five.on("cameraUpdate", this.fixDoorPosition), this.five.on("mouseWheel", this.fixDoorPosition), this.five.on("pinchGesture", this.fixDoorPosition), this.fixDoorVisibleAndPosition();
240
255
  });
241
256
  }
242
- stateChangedCallback(i, r) {
257
+ appendTo(t) {
258
+ this.state.enabled && (this.container = t);
259
+ }
260
+ setState(t, i) {
261
+ const f = this.state;
262
+ this.state = L(L({}, f), t);
263
+ const e = f.enabled && f.visible, a = this.state.enabled && this.state.visible;
264
+ e !== a && this.applyState();
265
+ }
266
+ show() {
267
+ this.setState({ visible: !0 });
268
+ }
269
+ hide() {
270
+ this.setState({ visible: !1 });
271
+ }
272
+ enable() {
273
+ this.setState({ enabled: !0 });
274
+ }
275
+ disable() {
276
+ this.setState({ enabled: !1 });
277
+ }
278
+ stateChangedCallback(t, i) {
243
279
  if (this.hooks.hasListener("stateChange")) {
244
- const m = {
280
+ const f = {
245
281
  state: this.state,
246
- prevState: i,
247
- userAction: r ? r.userAction : ii.userAction
282
+ prevState: t,
283
+ userAction: i ? i.userAction : ot.userAction
248
284
  };
249
- this.hooks.emit("stateChange", m);
285
+ this.hooks.emit("stateChange", f);
250
286
  }
251
287
  }
252
- render() {
253
- if (!this.enabled) {
254
- this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((i) => {
255
- i == null || i.$destroy();
256
- }), this.doorLabels = void 0;
257
- return;
258
- }
259
- this.doorLabelItems && this.doorLabelItems.forEach((i) => {
260
- i.$destroy();
261
- }), this.doorLabelItems = [], this.labelItems.forEach((i) => {
262
- this.doorLabelItems.push(
263
- new X({
264
- target: this.container,
265
- props: {
266
- props: i,
267
- onClick: () => {
268
- this.onClick(i.name, i.position);
269
- }
288
+ applyState(t) {
289
+ const i = t != null ? t : this.state;
290
+ i.enabled !== !1 && i.visible !== !1 ? (this.labelItems.forEach((e) => {
291
+ e.svelteApp = new Z({
292
+ target: this.container,
293
+ props: {
294
+ props: e,
295
+ onClick: () => {
296
+ this.onClick(e.name, e.position);
270
297
  }
271
- })
272
- );
298
+ }
299
+ });
300
+ }), this.fixDoorPosition()) : this.labelItems.forEach((e) => {
301
+ e.svelteApp.$destroy();
273
302
  });
274
303
  }
275
304
  initState() {
276
305
  return { enabled: !0, visible: !0 };
277
306
  }
278
- dispose() {
279
- this && this.five && (this.five.off("wantsToMoveToPano", this.hideAllLabels), this.five.off("modelLoaded", this.fixDoorVisibleAndPosition), this.five.off("panoArrived", this.fixDoorVisibleAndPosition), this.five.off("initAnimationEnded", this.fixDoorPosition), this.five.off("cameraUpdate", this.fixDoorPosition), this.five.off("mouseWheel", this.fixDoorPosition), this.five.off("pinchGesture", this.fixDoorPosition), super.dispose());
280
- }
281
307
  }
282
308
  export {
283
- mt as PanoDoorLabelPluginController
309
+ vi as PanoDoorLabelPluginController
284
310
  };