@realsee/dnalogel 3.64.22 → 3.64.23-alpha.16

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 (468) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/ModelMakerPlugin/Controller.d.ts +38 -1
  3. package/dist/ModelMakerPlugin/item/baseItem.d.ts +5 -0
  4. package/dist/ModelMakerPlugin/item/boxItem.d.ts +5 -1
  5. package/dist/ModelMakerPlugin/typings/data.d.ts +2 -0
  6. package/dist/ModelMakerPlugin/utils/BoxLabelItem.svelte.d.ts +1 -0
  7. package/dist/Sculpt/Meshes/Prism.d.ts +6 -1
  8. package/dist/floorplan/typings/floorplanData.d.ts +49 -0
  9. package/dist/floorplan/typings/floorplanServerData.d.ts +2 -0
  10. package/dist/index.cjs.js +115 -53
  11. package/dist/index.js +7674 -7147
  12. package/dist/index.umd.js +111 -49
  13. package/docs/assets/navigation.js +1 -1
  14. package/docs/assets/search.js +1 -1
  15. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +25 -25
  16. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +28 -28
  17. package/docs/classes/CSS3DRender.html +3 -3
  18. package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
  19. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +26 -26
  20. package/docs/classes/ModelMakerPluginInstance.html +30 -15
  21. package/docs/classes/ModelRoomLabelController.html +6 -6
  22. package/docs/classes/MoveController.html +17 -17
  23. package/docs/classes/Object3DHelperController.html +15 -15
  24. package/docs/classes/PaintBrush.html +5 -5
  25. package/docs/classes/PanoMeasurePluginLine.html +2 -2
  26. package/docs/classes/PanoMeasurePluginModel.html +2 -2
  27. package/docs/classes/PanoMeasurePluginPoint.html +2 -2
  28. package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
  29. package/docs/classes/PanoTagPluginController.html +34 -34
  30. package/docs/classes/Sculpt.html +23 -23
  31. package/docs/classes/Util.BetterTween.html +2 -2
  32. package/docs/classes/Util.FiveDomEvents.html +4 -4
  33. package/docs/classes/Util.FivePuppet.html +3 -3
  34. package/docs/classes/Util.Interval.html +5 -5
  35. package/docs/classes/Util.LightTag.html +15 -15
  36. package/docs/classes/Util.LineSegments.html +2 -2
  37. package/docs/classes/Util.Magnifier.html +6 -6
  38. package/docs/classes/Util.Object3D.html +4 -4
  39. package/docs/classes/Util.PointHelper.html +2 -2
  40. package/docs/classes/Util.PointSelector.html +16 -16
  41. package/docs/classes/Util.PointSelectorHelper.html +2 -2
  42. package/docs/classes/Util.Rectangle.html +5 -5
  43. package/docs/classes/Util.sculpt.BaseEditor.html +7 -7
  44. package/docs/classes/Util.sculpt.BoxMesh.html +10 -7
  45. package/docs/classes/Util.sculpt.BoxMeshEditor.html +7 -7
  46. package/docs/classes/Util.sculpt.CircleMesh.html +4 -4
  47. package/docs/classes/Util.sculpt.CircleMeshEditor.html +7 -7
  48. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +4 -4
  49. package/docs/classes/Util.sculpt.CylinderMesh.html +5 -5
  50. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +7 -7
  51. package/docs/classes/Util.sculpt.LineMesh.html +5 -5
  52. package/docs/classes/Util.sculpt.PointMesh.html +5 -5
  53. package/docs/classes/Util.sculpt.PolygonMesh.html +6 -6
  54. package/docs/classes/Util.sculpt.PrismMesh.html +10 -7
  55. package/docs/classes/Util.sculpt.PrismMeshEditor.html +7 -7
  56. package/docs/classes/Util.sculpt.RectangleMesh.html +7 -7
  57. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +7 -7
  58. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +7 -7
  59. package/docs/classes/WalkController.html +18 -18
  60. package/docs/enums/CameraMovementEffect.html +3 -3
  61. package/docs/enums/ContentType.html +18 -18
  62. package/docs/enums/DIRECTION.html +2 -2
  63. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
  64. package/docs/enums/DimensionType.html +3 -3
  65. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
  66. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
  67. package/docs/enums/PaintBrushTypeEnum.html +2 -2
  68. package/docs/enums/PointType.html +3 -3
  69. package/docs/enums/Rotation.html +3 -3
  70. package/docs/functions/AreaMakerPlugin.html +1 -1
  71. package/docs/functions/CSS3DRenderPlugin.html +1 -1
  72. package/docs/functions/CameraMovementPlugin.html +2 -2
  73. package/docs/functions/CruisePlugin.html +1 -1
  74. package/docs/functions/CurrentPanoImagePlugin.html +1 -1
  75. package/docs/functions/GuideLinePlugin.html +1 -1
  76. package/docs/functions/ItemLabelPlugin.html +1 -1
  77. package/docs/functions/MapviewFloorplanPlugin.html +1 -1
  78. package/docs/functions/MeasurePlugin.html +1 -1
  79. package/docs/functions/ModelChassisCompassPlugin.html +2 -2
  80. package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
  81. package/docs/functions/ModelFloorplanPlugin.html +1 -1
  82. package/docs/functions/ModelItemLabelPlugin.html +1 -1
  83. package/docs/functions/ModelMakerPlugin.html +1 -1
  84. package/docs/functions/ModelRoomLabelPlugin.html +1 -1
  85. package/docs/functions/ModelTVVideoPlugin.html +1 -1
  86. package/docs/functions/ModelViewPlugin.html +2 -2
  87. package/docs/functions/MovePlugin.html +1 -1
  88. package/docs/functions/Object3DHelperPlugin.html +1 -1
  89. package/docs/functions/PanoCompassPlugin.html +1 -1
  90. package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
  91. package/docs/functions/PanoDoorLabelPlugin.html +1 -1
  92. package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
  93. package/docs/functions/PanoMeasurePlugin.html +1 -1
  94. package/docs/functions/PanoRulerPlugin.html +2 -2
  95. package/docs/functions/PanoRulerProPlugin.html +2 -2
  96. package/docs/functions/PanoSpatialTagPlugin.html +2 -2
  97. package/docs/functions/PanoTagPlugin.html +1 -1
  98. package/docs/functions/PanoVideoPlugin.html +2 -2
  99. package/docs/functions/PipelinePlugin.html +1 -1
  100. package/docs/functions/SculptPlugin.html +2 -2
  101. package/docs/functions/TopviewFloorplanPlugin.html +1 -1
  102. package/docs/functions/Util.absoluteUrl.html +2 -2
  103. package/docs/functions/Util.awaitNextFrame.html +1 -1
  104. package/docs/functions/Util.blink.html +2 -2
  105. package/docs/functions/Util.bounding.html +1 -1
  106. package/docs/functions/Util.boundingBox.html +1 -1
  107. package/docs/functions/Util.boundingSphere.html +1 -1
  108. package/docs/functions/Util.boxVertex.html +2 -2
  109. package/docs/functions/Util.boxVertexes.html +1 -1
  110. package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
  111. package/docs/functions/Util.convexHull.html +2 -2
  112. package/docs/functions/Util.equal.html +2 -2
  113. package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
  114. package/docs/functions/Util.getCoordsFromClient.html +1 -1
  115. package/docs/functions/Util.getCoordsFromElement.html +1 -1
  116. package/docs/functions/Util.getFrameTime.html +2 -2
  117. package/docs/functions/Util.initialCSS3DRender.html +1 -1
  118. package/docs/functions/Util.inside.html +1 -1
  119. package/docs/functions/Util.isAbsoluteURL.html +1 -1
  120. package/docs/functions/Util.isModelLike.html +1 -1
  121. package/docs/functions/Util.isNil.html +2 -2
  122. package/docs/functions/Util.isPanoramaLike.html +1 -1
  123. package/docs/functions/Util.lookObject.html +2 -2
  124. package/docs/functions/Util.lookPoint.html +2 -2
  125. package/docs/functions/Util.nextFrame.html +1 -1
  126. package/docs/functions/Util.notNil.html +2 -2
  127. package/docs/functions/Util.reblink.html +2 -2
  128. package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
  129. package/docs/functions/Util.sculpt.createBox.html +1 -1
  130. package/docs/functions/Util.sculpt.createCircle.html +1 -1
  131. package/docs/functions/Util.sculpt.createCylinder.html +1 -1
  132. package/docs/functions/Util.sculpt.createLine.html +2 -2
  133. package/docs/functions/Util.sculpt.createPoint.html +1 -1
  134. package/docs/functions/Util.sculpt.createPolygon.html +1 -1
  135. package/docs/functions/Util.sculpt.createPrism.html +1 -1
  136. package/docs/functions/Util.sculpt.createRectangle.html +2 -2
  137. package/docs/functions/Util.tag.html +1 -1
  138. package/docs/functions/Util.tweenProgress.html +1 -1
  139. package/docs/functions/Util.uuid.html +2 -2
  140. package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
  141. package/docs/functions/Util.worldBounding.html +1 -1
  142. package/docs/functions/Util.worldBoundingBox.html +1 -1
  143. package/docs/functions/Util.worldBoundingSphere.html +1 -1
  144. package/docs/functions/createPolyline.html +2 -2
  145. package/docs/functions/pluginFlag.html +1 -1
  146. package/docs/hierarchy.html +1 -1
  147. package/docs/index.html +2 -2
  148. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
  149. package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
  150. package/docs/interfaces/AreaMakerPluginType.EventMap.html +12 -12
  151. package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
  152. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +4 -4
  153. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
  154. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
  155. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
  156. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
  157. package/docs/interfaces/AreaMakerPluginType.State.html +5 -5
  158. package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
  159. package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
  160. package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
  161. package/docs/interfaces/ContentTypeMapInterface.html +15 -15
  162. package/docs/interfaces/CruisePluginTypes.Config.html +4 -4
  163. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
  164. package/docs/interfaces/CruisePluginTypes.EventMap.html +17 -17
  165. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
  166. package/docs/interfaces/CruisePluginTypes.MoveAction.html +8 -8
  167. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +9 -9
  168. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +10 -10
  169. package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
  170. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
  171. package/docs/interfaces/CruisePluginTypes.PluginState.html +7 -7
  172. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +7 -7
  173. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +8 -8
  174. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
  175. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
  176. package/docs/interfaces/CurrentPanoImagePluginType.State.html +4 -4
  177. package/docs/interfaces/FloorplanBounding.html +5 -5
  178. package/docs/interfaces/FloorplanData.html +4 -3
  179. package/docs/interfaces/FloorplanEntrance.html +8 -8
  180. package/docs/interfaces/FloorplanExtraObject.html +5 -5
  181. package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
  182. package/docs/interfaces/FloorplanFloorData.html +3 -3
  183. package/docs/interfaces/FloorplanImagePosition.html +3 -3
  184. package/docs/interfaces/FloorplanObserver.html +3 -3
  185. package/docs/interfaces/FloorplanOutlineItem.html +3 -3
  186. package/docs/interfaces/FloorplanPosition.html +3 -3
  187. package/docs/interfaces/FloorplanRoomItem.html +9 -9
  188. package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
  189. package/docs/interfaces/FloorplanServerBounding.html +5 -5
  190. package/docs/interfaces/FloorplanServerComputedData.html +3 -2
  191. package/docs/interfaces/FloorplanServerData.html +3 -3
  192. package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
  193. package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
  194. package/docs/interfaces/FloorplanServerEntrance.html +8 -8
  195. package/docs/interfaces/FloorplanServerFloorData.html +3 -3
  196. package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
  197. package/docs/interfaces/FloorplanServerObserver.html +3 -3
  198. package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
  199. package/docs/interfaces/FloorplanServerPosition.html +3 -3
  200. package/docs/interfaces/FloorplanServerRoomItem.html +10 -10
  201. package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
  202. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
  203. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
  204. package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -5
  205. package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +3 -3
  206. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -5
  207. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
  208. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
  209. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
  210. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
  211. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +16 -16
  212. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
  213. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +20 -20
  214. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
  215. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
  216. package/docs/interfaces/GuideLinePluginType.PluginState.html +4 -4
  217. package/docs/interfaces/GuideLinePluginType.Route.html +6 -6
  218. package/docs/interfaces/HelperOffset.html +2 -2
  219. package/docs/interfaces/IFloorplanArea.html +25 -0
  220. package/docs/interfaces/ImagePlaneGroup.html +2 -2
  221. package/docs/interfaces/ItemLabelPluginData.html +2 -2
  222. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
  223. package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
  224. package/docs/interfaces/MinMax.html +2 -2
  225. package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
  226. package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
  227. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
  228. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
  229. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
  230. package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
  231. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
  232. package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
  233. package/docs/interfaces/ModelMakerPluginType.EventMap.html +10 -10
  234. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
  235. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +5 -4
  236. package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
  237. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +4 -4
  238. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +4 -4
  239. package/docs/interfaces/ModelMakerPluginType.State.html +5 -5
  240. package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
  241. package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
  242. package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
  243. package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
  244. package/docs/interfaces/ModelViewPluginExportType.html +2 -2
  245. package/docs/interfaces/Object3DHelperState.html +2 -2
  246. package/docs/interfaces/ObjectHelperControllers.html +2 -2
  247. package/docs/interfaces/PaintBrushAction.html +7 -7
  248. package/docs/interfaces/PaintBrushConfigs.html +2 -2
  249. package/docs/interfaces/PaintBrushState.html +2 -2
  250. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  251. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  252. package/docs/interfaces/PanoMeasureParameterType.html +6 -6
  253. package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
  254. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
  255. package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
  256. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
  257. package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
  258. package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
  259. package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
  260. package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
  261. package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
  262. package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
  263. package/docs/interfaces/PanoRulerProPluginState.html +2 -2
  264. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  265. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  266. package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
  267. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
  268. package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
  269. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
  270. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
  271. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
  272. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
  273. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
  274. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -5
  275. package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
  276. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  277. package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
  278. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -5
  279. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +7 -7
  280. package/docs/interfaces/PluginEventMap.html +4 -4
  281. package/docs/interfaces/Point.html +2 -2
  282. package/docs/interfaces/Room.html +2 -2
  283. package/docs/interfaces/RoomInfo.html +2 -2
  284. package/docs/interfaces/RoomLabel.html +7 -7
  285. package/docs/interfaces/RoomRules.html +1 -1
  286. package/docs/interfaces/Rooms.html +1 -1
  287. package/docs/interfaces/Scissor.html +6 -6
  288. package/docs/interfaces/State.html +4 -4
  289. package/docs/interfaces/TagCacheInterface.html +3 -3
  290. package/docs/interfaces/TagConfig.html +11 -11
  291. package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
  292. package/docs/interfaces/TagIconUrl.html +9 -9
  293. package/docs/interfaces/TagObjectGroup.html +2 -2
  294. package/docs/interfaces/TagStyle.html +2 -2
  295. package/docs/interfaces/Tags.html +4 -4
  296. package/docs/interfaces/TemporaryState.html +2 -2
  297. package/docs/interfaces/Util.AnimeInstance.html +2 -2
  298. package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
  299. package/docs/interfaces/Util.EventHandlerConfig.html +6 -6
  300. package/docs/interfaces/Util.FiveDomEvent.html +2 -2
  301. package/docs/interfaces/Util.FiveDomEventMap.html +10 -10
  302. package/docs/interfaces/Util.MagnifierParameter.html +5 -5
  303. package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
  304. package/docs/interfaces/Util.PointIntersection.html +11 -11
  305. package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
  306. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
  307. package/docs/modules/AreaMakerPluginType.html +2 -2
  308. package/docs/modules/CruisePluginTypes.html +2 -2
  309. package/docs/modules/CurrentPanoImagePluginType.html +2 -2
  310. package/docs/modules/GuideLineItem.html +2 -2
  311. package/docs/modules/GuideLineModeItem.html +2 -2
  312. package/docs/modules/GuideLinePluginType.html +2 -2
  313. package/docs/modules/ModelMakerPluginType.html +2 -2
  314. package/docs/modules/PanoVideoPluginType.html +2 -2
  315. package/docs/modules/SculptData.html +2 -2
  316. package/docs/modules/SculptType.html +2 -2
  317. package/docs/modules/Util.html +2 -2
  318. package/docs/modules/Util.sculpt.html +2 -2
  319. package/docs/modules.html +3 -2
  320. package/docs/types/AddObject3DHelperConfig.html +2 -2
  321. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
  322. package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
  323. package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
  324. package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
  325. package/docs/types/ArrayPosition.html +1 -1
  326. package/docs/types/AudioAppearance.html +1 -1
  327. package/docs/types/CSS3DRenderExportType.html +1 -1
  328. package/docs/types/CSS3DRenderPluginExportType.html +1 -1
  329. package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
  330. package/docs/types/ClassFunctionParameters.html +1 -1
  331. package/docs/types/Color.html +1 -1
  332. package/docs/types/ContentTypeConfigKey.html +1 -1
  333. package/docs/types/ContentTypeConfigKeySplit.html +1 -1
  334. package/docs/types/ContentTypeMap.html +1 -1
  335. package/docs/types/Create3DDomContainerReturnType.html +1 -1
  336. package/docs/types/Create3DElementReturnType.html +1 -1
  337. package/docs/types/CruisePluginExportType.html +1 -1
  338. package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
  339. package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
  340. package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
  341. package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
  342. package/docs/types/DeprecatedTagProperty.html +2 -2
  343. package/docs/types/Direction-1.html +1 -1
  344. package/docs/types/Direction4.html +1 -1
  345. package/docs/types/ElementRenderer.html +2 -2
  346. package/docs/types/FloorplanRuleLabels.html +2 -2
  347. package/docs/types/FloorplanServerRuleLabels.html +1 -1
  348. package/docs/types/GuideLinePluginExportType.html +1 -1
  349. package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
  350. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
  351. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
  352. package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
  353. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
  354. package/docs/types/GuideLinePluginType.PathItem.html +2 -2
  355. package/docs/types/GuideLinePluginType.PluginData.html +2 -2
  356. package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
  357. package/docs/types/HelperEventMap.html +1 -1
  358. package/docs/types/InternalHelperEventMap.html +1 -1
  359. package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
  360. package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
  361. package/docs/types/MeasurePluginConfig.html +1 -1
  362. package/docs/types/MediaData.html +2 -2
  363. package/docs/types/MediaStore.html +1 -1
  364. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
  365. package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
  366. package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
  367. package/docs/types/ModelId.html +1 -1
  368. package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
  369. package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
  370. package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
  371. package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
  372. package/docs/types/MoveArgs.html +2 -2
  373. package/docs/types/MoveOpts.html +2 -2
  374. package/docs/types/Object3DHelperEventMap.html +1 -1
  375. package/docs/types/ObjectFit.html +1 -1
  376. package/docs/types/PaintBrushEventMap.html +1 -1
  377. package/docs/types/PanoCompassPluginData.html +1 -1
  378. package/docs/types/PanoCompassPluginExportType.html +1 -1
  379. package/docs/types/PanoCompassPluginParameterType.html +1 -1
  380. package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
  381. package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
  382. package/docs/types/PanoIndex.html +1 -1
  383. package/docs/types/PanoMeasurePluginEvent.html +1 -1
  384. package/docs/types/PanoMeasureReturnType.html +1 -1
  385. package/docs/types/PanoSpatialTagPluginId.html +1 -1
  386. package/docs/types/PanoTagPluginExportInterface.html +1 -1
  387. package/docs/types/PanoTagPluginParamsInterface.html +1 -1
  388. package/docs/types/PanoVideoPluginParameterType.html +1 -1
  389. package/docs/types/PanoVideoPluginReturnType.html +1 -1
  390. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
  391. package/docs/types/PipelinePluginParameterType.html +1 -1
  392. package/docs/types/PipelinePluginReturnType.html +1 -1
  393. package/docs/types/PlaneTag.html +2 -2
  394. package/docs/types/Point2DTag.html +2 -2
  395. package/docs/types/Point3DTag.html +2 -2
  396. package/docs/types/PointTagInstance.html +1 -1
  397. package/docs/types/Position.html +1 -1
  398. package/docs/types/PositionFrom.html +1 -1
  399. package/docs/types/RotateArgs.html +2 -2
  400. package/docs/types/RotateOpts.html +2 -2
  401. package/docs/types/RuleLabelsKey.html +1 -1
  402. package/docs/types/RuleLabelsValue.html +1 -1
  403. package/docs/types/ScaleCallback.html +1 -1
  404. package/docs/types/ScalePosition.html +2 -2
  405. package/docs/types/SculptData.BoxData.html +1 -1
  406. package/docs/types/SculptData.CircleData.html +1 -1
  407. package/docs/types/SculptData.CylinderData.html +1 -1
  408. package/docs/types/SculptData.PointData.html +1 -1
  409. package/docs/types/SculptData.PolygonData.html +1 -1
  410. package/docs/types/SculptData.PolylineData.html +1 -1
  411. package/docs/types/SculptData.PrismData.html +1 -1
  412. package/docs/types/SculptData.RectangleData.html +1 -1
  413. package/docs/types/SculptType.Theme.html +2 -2
  414. package/docs/types/StickType.html +1 -1
  415. package/docs/types/Tag.html +2 -2
  416. package/docs/types/Tag2D.html +2 -2
  417. package/docs/types/Tag3D.html +2 -2
  418. package/docs/types/TagClickParams.html +1 -1
  419. package/docs/types/TagConfigByKey.html +1 -1
  420. package/docs/types/TagContentType.html +1 -1
  421. package/docs/types/TagContentTypeMapping.html +1 -1
  422. package/docs/types/TagDimensionType.html +1 -1
  423. package/docs/types/TagElement.html +2 -2
  424. package/docs/types/TagEvents.html +1 -1
  425. package/docs/types/TagGLTFObject.html +1 -1
  426. package/docs/types/TagHooks.html +1 -1
  427. package/docs/types/TagId.html +1 -1
  428. package/docs/types/TagInstance.html +1 -1
  429. package/docs/types/TagPointType.html +2 -2
  430. package/docs/types/TagRendererMap.html +1 -1
  431. package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
  432. package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
  433. package/docs/types/Util.ActionIfNoIntersection.html +1 -1
  434. package/docs/types/Util.AdherePoint.html +2 -2
  435. package/docs/types/Util.PointSelectorConfig.html +1 -1
  436. package/docs/types/WorkCode.html +1 -1
  437. package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
  438. package/docs/variables/PLUGIN.html +1 -1
  439. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
  440. package/docs/variables/ROOM_TYPE_MAP.html +2 -2
  441. package/docs/variables/Util.animeMap.html +1 -1
  442. package/docs/variables/defaultGlobalConfig.html +1 -1
  443. package/docs/variables/itemLabelPluginServerParams.html +1 -1
  444. package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
  445. package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
  446. package/libs/ModelMakerPlugin/Controller.d.ts +38 -1
  447. package/libs/ModelMakerPlugin/Controller.js +401 -136
  448. package/libs/ModelMakerPlugin/index.js +4 -3
  449. package/libs/ModelMakerPlugin/item/baseItem.d.ts +5 -0
  450. package/libs/ModelMakerPlugin/item/baseItem.js +42 -22
  451. package/libs/ModelMakerPlugin/item/boxItem.d.ts +5 -1
  452. package/libs/ModelMakerPlugin/item/boxItem.js +36 -13
  453. package/libs/ModelMakerPlugin/typings/data.d.ts +2 -0
  454. package/libs/ModelMakerPlugin/utils/BoxLabelItem.js +204 -0
  455. package/libs/ModelMakerPlugin/utils/BoxLabelItem.svelte.d.ts +1 -0
  456. package/libs/ModelMakerPlugin/utils/tagRenderer.js +18 -10
  457. package/libs/Sculpt/Meshes/Prism.d.ts +6 -1
  458. package/libs/Sculpt/Meshes/Prism.js +37 -30
  459. package/libs/base/BasePlugin.js +3 -3
  460. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +146 -136
  461. package/libs/floorplan/Components/SvgImage.js +23 -17
  462. package/libs/floorplan/typings/floorplanData.d.ts +49 -0
  463. package/libs/floorplan/typings/floorplanServerData.d.ts +2 -0
  464. package/libs/floorplan/utils/formatData.js +14 -13
  465. package/libs/index.js +146 -145
  466. package/libs/shared-utils/logger.js +1 -1
  467. package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +91 -91
  468. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import { Controller as r } from "./Controller.js";
2
+ import "@realsee/five";
2
3
  import "../base/BasePluginWithData.js";
3
4
  import "../base/BasePlugin.js";
4
5
  import "../shared-utils/Subscribe.js";
@@ -36,7 +37,6 @@ import "../shared-utils/three/core/Sphere.js";
36
37
  import "../vendor/animejs/lib/anime.es.js";
37
38
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
38
39
  import "../shared-utils/five/FivePuppet.js";
39
- import "@realsee/five";
40
40
  import "../shared-utils/five/fiveModelLoad.js";
41
41
  import "../shared-utils/three/PointSelector/utils/html.js";
42
42
  import "../shared-utils/CSS3DRender/index.js";
@@ -90,11 +90,12 @@ import "../vendor/svelte/internal/index.js";
90
90
  import "../components/AreaLabel/LabelItem.js";
91
91
  import "../components/AreaLabel/Assets/roomLabelBg.js";
92
92
  import "../shared-utils/math/rad2Deg.js";
93
+ import "./utils/BoxLabelItem.js";
93
94
  import "./item/prismItem.js";
94
95
  import "./item/polygonItem.js";
95
96
  import "../CruisePlugin/utils/sleep.js";
96
97
  import "../shared-utils/constants.js";
97
- const To = (...o) => new r(...o);
98
+ const Uo = (...o) => new r(...o);
98
99
  export {
99
- To as ModelMakerPlugin
100
+ Uo as ModelMakerPlugin
100
101
  };
@@ -43,5 +43,10 @@ export declare class ModelMakerBaseItem extends Subscribe<Event> {
43
43
  disable(): void;
44
44
  updateVisible(): void;
45
45
  protected onClick(): boolean;
46
+ /**
47
+ * Helper method to find the controller instance
48
+ * Walks up the scene graph to find the ModelMakerPluginGroup
49
+ */
50
+ protected findController(): any;
46
51
  }
47
52
  export {};
@@ -1,11 +1,11 @@
1
1
  var p = Object.defineProperty;
2
- var h = (o, e, i) => e in o ? p(o, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[e] = i;
3
- var t = (o, e, i) => (h(o, typeof e != "symbol" ? e + "" : e, i), i);
2
+ var h = (r, o, i) => o in r ? p(r, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[o] = i;
3
+ var e = (r, o, i) => (h(r, typeof o != "symbol" ? o + "" : o, i), i);
4
4
  import * as l from "three";
5
- import { addIfNotExists as d } from "../../shared-utils/three/addIfNotExists.js";
6
- import { Subscribe as n } from "../../shared-utils/Subscribe.js";
5
+ import { addIfNotExists as n } from "../../shared-utils/three/addIfNotExists.js";
6
+ import { Subscribe as d } from "../../shared-utils/Subscribe.js";
7
7
  import { tag as a } from "../../shared-utils/tag.js";
8
- import { boundingBox as v } from "../../shared-utils/three/boundingBox.js";
8
+ import { boundingBox as u } from "../../shared-utils/three/boundingBox.js";
9
9
  import "../../shared-utils/positionToVector3.js";
10
10
  import "../../shared-utils/five/vector3ToScreen.js";
11
11
  import "../../shared-utils/five/getFiveModel.js";
@@ -63,22 +63,22 @@ import "../../shared-utils/five/getPosition.js";
63
63
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
64
64
  import "../../shared-utils/three/PointSelector/utils/contents.js";
65
65
  import "../../Sculpt/utils/three/rayOnLine.js";
66
- class wi extends n {
66
+ class Di extends d {
67
67
  constructor(i) {
68
- var r, m;
68
+ var s, m;
69
69
  super();
70
- t(this, "type");
71
- t(this, "tag");
72
- t(this, "rawData");
73
- t(this, "model");
74
- t(this, "visibles", []);
75
- t(this, "five");
76
- t(this, "group");
77
- t(this, "fiveDomEvents");
78
- t(this, "disposers", []);
70
+ e(this, "type");
71
+ e(this, "tag");
72
+ e(this, "rawData");
73
+ e(this, "model");
74
+ e(this, "visibles", []);
75
+ e(this, "five");
76
+ e(this, "group");
77
+ e(this, "fiveDomEvents");
78
+ e(this, "disposers", []);
79
79
  this.five = i.five, this.model = i.model, this.group = i.group, this.type = i.type, this.rawData = i.rawData, this.fiveDomEvents = i.fiveDomEvents;
80
- const s = (m = (r = i.position) != null ? r : this.model.center) != null ? m : v(this.model).getCenter(new l.Vector3());
81
- this.tag = a(this.five, s, { wrapper: i.tagWrapper }), this.tag.extraObjectsForIntersectCheck.push(this.group);
80
+ const t = (m = (s = i.position) != null ? s : this.model.center) != null ? m : u(this.model).getCenter(new l.Vector3());
81
+ this.tag = a(this.five, t, { wrapper: i.tagWrapper }), this.tag.extraObjectsForIntersectCheck.push(this.group);
82
82
  }
83
83
  get container() {
84
84
  return this.tag.container;
@@ -96,7 +96,7 @@ class wi extends n {
96
96
  this.visibles[0] = !1, this.updateVisible(), this.emit("hide");
97
97
  }
98
98
  enable() {
99
- d(this.group, this.model), this.five.needsRender = !0, this.model.updateMatrixWorld(!0), this.tag.setTransformMatrix(this.model.matrixWorld), this.tag.enable();
99
+ n(this.group, this.model), this.five.needsRender = !0, this.model.updateMatrixWorld(!0), this.tag.setTransformMatrix(this.model.matrixWorld), this.tag.enable();
100
100
  const i = this.onClick.bind(this);
101
101
  this.fiveDomEvents.removeEventListener(this.model, "click"), this.fiveDomEvents.addEventListener(this.model, "click", i, { skipPano: !0 }), this.disposers.push(() => {
102
102
  this.fiveDomEvents.removeEventListener(this.model, "click");
@@ -106,12 +106,32 @@ class wi extends n {
106
106
  this.group.remove(this.model), this.five.needsRender = !0, this.tag.disable(), this.disposers.forEach((i) => i()), this.disposers = [], this.emit("disable");
107
107
  }
108
108
  updateVisible() {
109
- !this.visibles.some((s) => s === !1) ? (this.tag.show(), this.model.visible = !0) : (this.tag.hide(), this.model.visible = !1), this.five.needsRender = !0;
109
+ !this.visibles.some((t) => t === !1) ? (this.tag.show(), this.model.visible = !0) : (this.tag.hide(), this.model.visible = !1), this.five.needsRender = !0;
110
110
  }
111
111
  onClick() {
112
- return this.emit("click", this);
112
+ const i = this.findController();
113
+ return i && i.items.forEach((t) => {
114
+ t !== this && t.tag && t.tag.visible && t.tag.hide();
115
+ }), this.emit("click", this);
116
+ }
117
+ /**
118
+ * Helper method to find the controller instance
119
+ * Walks up the scene graph to find the ModelMakerPluginGroup
120
+ */
121
+ findController() {
122
+ let i = this.model.parent;
123
+ for (; i; ) {
124
+ if (i.name === "ModelMakerPluginGroup") {
125
+ const t = window == null ? void 0 : window.__MODELMAKER_DEBUG__;
126
+ if (t && Array.isArray(t.items))
127
+ return t;
128
+ break;
129
+ }
130
+ i = i.parent;
131
+ }
132
+ return null;
113
133
  }
114
134
  }
115
135
  export {
116
- wi as ModelMakerBaseItem
136
+ Di as ModelMakerBaseItem
117
137
  };
@@ -1,6 +1,10 @@
1
1
  import { ModelMakerBaseItem } from './baseItem';
2
+ import type { LightTag } from '../../shared-utils/tag';
2
3
  export declare class ModelMakerBoxItem extends ModelMakerBaseItem {
3
- constructor(...args: ConstructorParameters<typeof ModelMakerBaseItem>);
4
+ edgeTags: LightTag[];
5
+ constructor(params: ConstructorParameters<typeof ModelMakerBaseItem>[0] & {
6
+ edgeTags?: LightTag[];
7
+ });
4
8
  enable(): void;
5
9
  disable(): void;
6
10
  show(): void;
@@ -1,7 +1,18 @@
1
1
  var p = Object.defineProperty;
2
- var m = (o, i, t) => i in o ? p(o, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[i] = t;
3
- var r = (o, i, t) => (m(o, typeof i != "symbol" ? i + "" : i, t), t);
4
- import { ModelMakerBaseItem as s } from "./baseItem.js";
2
+ var a = Object.getOwnPropertySymbols;
3
+ var d = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
4
+ var n = (e, o, t) => o in e ? p(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t;
5
+ var h = (e, o) => {
6
+ var t = {};
7
+ for (var i in e)
8
+ d.call(e, i) && o.indexOf(i) < 0 && (t[i] = e[i]);
9
+ if (e != null && a)
10
+ for (var i of a(e))
11
+ o.indexOf(i) < 0 && g.call(e, i) && (t[i] = e[i]);
12
+ return t;
13
+ };
14
+ var r = (e, o, t) => (n(e, typeof o != "symbol" ? o + "" : o, t), t);
15
+ import { ModelMakerBaseItem as l } from "./baseItem.js";
5
16
  import "three";
6
17
  import "../../shared-utils/three/addIfNotExists.js";
7
18
  import "../../shared-utils/Subscribe.js";
@@ -64,30 +75,42 @@ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
64
75
  import "../../shared-utils/three/PointSelector/utils/contents.js";
65
76
  import "../../Sculpt/utils/three/rayOnLine.js";
66
77
  import "../../shared-utils/three/boundingBox.js";
67
- class ci extends s {
68
- constructor(...t) {
69
- super(...t);
78
+ class Ii extends l {
79
+ constructor(t) {
80
+ const s = t, { edgeTags: i } = s, m = h(s, ["edgeTags"]);
81
+ super(m);
82
+ r(this, "edgeTags", []);
70
83
  r(this, "hideTag", () => {
71
- this.tag.hide();
84
+ this.tag.hide(), this.edgeTags.forEach((t) => t.hide());
72
85
  });
73
- this.enable(), this.tag.hide(), this.updateVisible();
86
+ i && (this.edgeTags = i), this.enable(), this.tag.hide(), this.updateVisible();
74
87
  }
75
88
  enable() {
76
89
  super.enable(), this.five.on("mode.change.request", this.hideTag), this.five.on("pano.request", this.hideTag);
77
90
  }
78
91
  disable() {
79
- super.disable(), this.five.off("mode.change.request", this.hideTag), this.five.off("pano.request", this.hideTag);
92
+ super.disable(), this.five.off("mode.change.request", this.hideTag), this.five.off("pano.request", this.hideTag), this.edgeTags.forEach((t) => t.destroy()), this.edgeTags = [];
80
93
  }
81
94
  show() {
82
- super.show(), this.tag.hide();
95
+ super.show(), this.tag.hide(), this.edgeTags.forEach((t) => t.hide());
83
96
  }
84
97
  onClick() {
85
- return this.tag.visible ? this.tag.hide() : this.tag.show({ force: !0 }), super.onClick(), !0;
98
+ const t = this.findController();
99
+ return t ? (t.forceFinishBoxAnimation(), this.five.currentMode !== "Panorama" ? (this.five.once("pano.arrived", () => {
100
+ t.playBoxAnimation(this.rawData.id).then(() => {
101
+ t.showItemTag(this.rawData.id), this.edgeTags.forEach((i) => i.show({ force: !0 }));
102
+ });
103
+ }), this.five.setState({
104
+ mode: "Panorama",
105
+ longitude: this.rawData.extend.longitude,
106
+ latitude: this.rawData.extend.latitude,
107
+ panoIndex: this.rawData.extend.index
108
+ })) : this.tag.visible ? (this.tag.hide(), this.edgeTags.forEach((i) => i.hide())) : (t.showItemTag(this.rawData.id), this.edgeTags.forEach((i) => i.show({ force: !0 })))) : (super.onClick(), this.tag.visible ? (this.tag.hide(), this.edgeTags.forEach((i) => i.hide())) : (this.tag.show({ force: !0 }), this.edgeTags.forEach((i) => i.show({ force: !0 })))), !0;
86
109
  }
87
110
  updateVisible() {
88
- !this.visibles.some((e) => e === !1) ? this.model.visible = !0 : (this.tag.hide(), this.model.visible = !1), this.five.needsRender = !0;
111
+ !this.visibles.some((i) => i === !1) ? this.model.visible = !0 : (this.tag.hide(), this.edgeTags.forEach((i) => i.hide()), this.model.visible = !1), this.five.needsRender = !0;
89
112
  }
90
113
  }
91
114
  export {
92
- ci as ModelMakerBoxItem
115
+ Ii as ModelMakerBoxItem
93
116
  };
@@ -20,6 +20,8 @@ export interface ServerBoxItem extends ServerBaseItem {
20
20
  color?: string;
21
21
  /** 透明度 */
22
22
  opacity?: number;
23
+ /** 标签位置(顶点坐标) */
24
+ positionIndex?: number;
23
25
  };
24
26
  }
25
27
  export interface ServerTrianglesItem extends ServerBaseItem {
@@ -0,0 +1,204 @@
1
+ import { SvelteComponent as L, init as S, safe_not_equal as q, append_styles as B, element as w, attr as _, set_style as o, insert as M, noop as C, detach as N, onMount as H, onDestroy as X, space as Y, text as j, toggle_class as m, append as c, listen as A, is_function as E, set_data as G, binding_callbacks as y } from "../../vendor/svelte/internal/index.js";
2
+ function J(i) {
3
+ B(i, "svelte-11sw1v", ".box-label-item.svelte-11sw1v{position:absolute;transform:translateY(-3.9375rem);cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff}.box-label-item__container.svelte-11sw1v{position:relative;display:flex;align-items:flex-start}.text-wrapper.svelte-11sw1v{position:relative}.text-wrapper.panorama.svelte-11sw1v{margin-left:0.375rem;margin-top:-0.3125rem}.text-wrapper.mapview.svelte-11sw1v{margin-left:0.375rem;margin-top:-0.4375rem}.box-label-item__text.svelte-11sw1v{font-family:PingFangSC-Medium;font-weight:500;color:#ffffff;letter-spacing:0;text-shadow:0 0.125rem 0.75rem #0000004d;pointer-events:all;white-space:nowrap}.box-label-item__text.panorama.svelte-11sw1v{height:1rem;font-size:1rem;line-height:1rem}.box-label-item__text.mapview.svelte-11sw1v{height:0.7rem;font-size:0.7rem;line-height:0.7rem}.box-label-item__bar.svelte-11sw1v{position:relative;width:0.0625rem;height:3.4375rem;transform-origin:top;background-image:linear-gradient(0deg, #ffffff1a 0%, #ffffff 100%);box-shadow:0 0.125rem 0.625rem 0 #0000004d;border-radius:0.03125rem}.box-label-item__dot.svelte-11sw1v{position:absolute;bottom:-0.625rem;left:50%;transform:translateX(-50%);width:0.25rem;height:0.25rem;background:#ffffff;box-shadow:0 0 0.3125rem 0 #ffffff;border-radius:50%}");
4
+ }
5
+ function D(i) {
6
+ let t, e, f, l, a, d, b, v;
7
+ return {
8
+ c() {
9
+ t = w("div"), e = w("div"), e.innerHTML = '<div class="box-label-item__dot svelte-11sw1v"></div>', f = Y(), l = w("div"), a = w("span"), d = j(
10
+ /*content*/
11
+ i[0]
12
+ ), _(e, "class", "box-label-item__bar svelte-11sw1v"), _(a, "class", "box-label-item__text svelte-11sw1v"), m(
13
+ a,
14
+ "panorama",
15
+ /*isPanoramaMode*/
16
+ i[9]
17
+ ), m(a, "mapview", !/*isPanoramaMode*/
18
+ i[9]), _(l, "class", "text-wrapper svelte-11sw1v"), m(
19
+ l,
20
+ "panorama",
21
+ /*isPanoramaMode*/
22
+ i[9]
23
+ ), m(l, "mapview", !/*isPanoramaMode*/
24
+ i[9]), _(t, "class", "box-label-item__container svelte-11sw1v");
25
+ },
26
+ m(s, r) {
27
+ M(s, t, r), c(t, e), i[14](e), c(t, f), c(t, l), c(l, a), c(a, d), i[15](a), b || (v = A(a, "click", function() {
28
+ E(
29
+ /*onClick*/
30
+ i[4]
31
+ ) && i[4].apply(this, arguments);
32
+ }), b = !0);
33
+ },
34
+ p(s, r) {
35
+ i = s, r & /*content*/
36
+ 1 && G(
37
+ d,
38
+ /*content*/
39
+ i[0]
40
+ ), r & /*isPanoramaMode*/
41
+ 512 && m(
42
+ a,
43
+ "panorama",
44
+ /*isPanoramaMode*/
45
+ i[9]
46
+ ), r & /*isPanoramaMode*/
47
+ 512 && m(a, "mapview", !/*isPanoramaMode*/
48
+ i[9]), r & /*isPanoramaMode*/
49
+ 512 && m(
50
+ l,
51
+ "panorama",
52
+ /*isPanoramaMode*/
53
+ i[9]
54
+ ), r & /*isPanoramaMode*/
55
+ 512 && m(l, "mapview", !/*isPanoramaMode*/
56
+ i[9]);
57
+ },
58
+ d(s) {
59
+ s && N(t), i[14](null), i[15](null), b = !1, v();
60
+ }
61
+ };
62
+ }
63
+ function K(i) {
64
+ let t, e = !/*rendererIfNeed*/
65
+ i[5] && D(i);
66
+ return {
67
+ c() {
68
+ t = w("div"), e && e.c(), _(t, "class", "box-label-item svelte-11sw1v"), o(
69
+ t,
70
+ "z-index",
71
+ /*zIndex*/
72
+ i[2]
73
+ ), o(
74
+ t,
75
+ "transform",
76
+ /*transform*/
77
+ i[3]
78
+ ), o(
79
+ t,
80
+ "opacity",
81
+ /*opacity*/
82
+ i[1]
83
+ ), o(
84
+ t,
85
+ "visibility",
86
+ /*visibility*/
87
+ i[10]
88
+ );
89
+ },
90
+ m(f, l) {
91
+ M(f, t, l), e && e.m(t, null), i[16](t);
92
+ },
93
+ p(f, [l]) {
94
+ /*rendererIfNeed*/
95
+ f[5] ? e && (e.d(1), e = null) : e ? e.p(f, l) : (e = D(f), e.c(), e.m(t, null)), l & /*zIndex*/
96
+ 4 && o(
97
+ t,
98
+ "z-index",
99
+ /*zIndex*/
100
+ f[2]
101
+ ), l & /*transform*/
102
+ 8 && o(
103
+ t,
104
+ "transform",
105
+ /*transform*/
106
+ f[3]
107
+ ), l & /*opacity*/
108
+ 2 && o(
109
+ t,
110
+ "opacity",
111
+ /*opacity*/
112
+ f[1]
113
+ ), l & /*visibility*/
114
+ 1024 && o(
115
+ t,
116
+ "visibility",
117
+ /*visibility*/
118
+ f[10]
119
+ );
120
+ },
121
+ i: C,
122
+ o: C,
123
+ d(f) {
124
+ f && N(t), e && e.d(), i[16](null);
125
+ }
126
+ };
127
+ }
128
+ function O(i, t, e) {
129
+ let f, { content: l } = t, { five: a = void 0 } = t, { visible: d = !0 } = t, { opacity: b = 1 } = t, { zIndex: v = 0 } = t, { transform: s = void 0 } = t, { onClick: r = () => {
130
+ } } = t, { rendererIfNeed: g = void 0 } = t, { rendererData: p = void 0 } = t, u, k, z, I = !0, h;
131
+ const x = (n) => {
132
+ e(9, I = a.state.mode === "Panorama");
133
+ };
134
+ H(() => {
135
+ u && typeof g == "function" && (h = g(u, p)), a && (e(9, I = a.state.mode === "Panorama"), a.on("cameraUpdate", x));
136
+ }), X(() => {
137
+ h == null || h(), a == null || a.off("cameraUpdate", x);
138
+ });
139
+ function P(n) {
140
+ y[n ? "unshift" : "push"](() => {
141
+ k = n, e(7, k);
142
+ });
143
+ }
144
+ function U(n) {
145
+ y[n ? "unshift" : "push"](() => {
146
+ z = n, e(8, z);
147
+ });
148
+ }
149
+ function F(n) {
150
+ y[n ? "unshift" : "push"](() => {
151
+ u = n, e(6, u);
152
+ });
153
+ }
154
+ return i.$$set = (n) => {
155
+ "content" in n && e(0, l = n.content), "five" in n && e(11, a = n.five), "visible" in n && e(12, d = n.visible), "opacity" in n && e(1, b = n.opacity), "zIndex" in n && e(2, v = n.zIndex), "transform" in n && e(3, s = n.transform), "onClick" in n && e(4, r = n.onClick), "rendererIfNeed" in n && e(5, g = n.rendererIfNeed), "rendererData" in n && e(13, p = n.rendererData);
156
+ }, i.$$.update = () => {
157
+ i.$$.dirty & /*visible*/
158
+ 4096 && e(10, f = d ? "visible" : "hidden");
159
+ }, [
160
+ l,
161
+ b,
162
+ v,
163
+ s,
164
+ r,
165
+ g,
166
+ u,
167
+ k,
168
+ z,
169
+ I,
170
+ f,
171
+ a,
172
+ d,
173
+ p,
174
+ P,
175
+ U,
176
+ F
177
+ ];
178
+ }
179
+ class R extends L {
180
+ constructor(t) {
181
+ super(), S(
182
+ this,
183
+ t,
184
+ O,
185
+ K,
186
+ q,
187
+ {
188
+ content: 0,
189
+ five: 11,
190
+ visible: 12,
191
+ opacity: 1,
192
+ zIndex: 2,
193
+ transform: 3,
194
+ onClick: 4,
195
+ rendererIfNeed: 5,
196
+ rendererData: 13
197
+ },
198
+ J
199
+ );
200
+ }
201
+ }
202
+ export {
203
+ R as default
204
+ };
@@ -0,0 +1 @@
1
+ export { SvelteComponentTyped as default } from 'svelte/internal';
@@ -1,27 +1,35 @@
1
- import p from "./Text.js";
2
- import { LabelItem as m } from "../../components/AreaLabel/LabelItem.js";
1
+ import n from "./Text.js";
2
+ import { LabelItem as p } from "../../components/AreaLabel/LabelItem.js";
3
+ import m from "./BoxLabelItem.js";
3
4
  import "../../vendor/svelte/internal/index.js";
4
5
  import "../../components/AreaLabel/Assets/roomLabelBg.js";
5
6
  import "../../shared-utils/math/rad2Deg.js";
6
- const n = (e, r) => {
7
+ const s = (e, r) => {
7
8
  var t;
8
- const o = new p({
9
+ const o = new n({
9
10
  target: e,
10
11
  props: { text: (t = r.rawData) == null ? void 0 : t.name }
11
12
  });
12
13
  return () => o.$destroy();
13
- }, s = (e, r, o) => {
14
+ }, c = (e, r, o) => {
15
+ var a;
16
+ const t = new p({
17
+ target: e,
18
+ props: { content: (a = r.rawData) == null ? void 0 : a.name, five: o }
19
+ });
20
+ return () => t.$destroy();
21
+ }, i = (e, r, o) => {
14
22
  var a;
15
23
  const t = new m({
16
24
  target: e,
17
25
  props: { content: (a = r.rawData) == null ? void 0 : a.name, five: o }
18
26
  });
19
27
  return () => t.$destroy();
20
- }, l = {
21
- box: n,
22
- triangles: n,
23
- prism: s
28
+ }, R = {
29
+ box: i,
30
+ triangles: s,
31
+ prism: c
24
32
  };
25
33
  export {
26
- l as tagRendererMap
34
+ R as tagRendererMap
27
35
  };
@@ -6,6 +6,7 @@ import type { LineStyle } from '../typings/style';
6
6
  import type { ColoredMeshStyle } from '../utils/three/ColoredMesh';
7
7
  import ColoredMesh from '../utils/three/ColoredMesh';
8
8
  import { PrismGeometry } from '../../shared-utils/three/core/PrismGeometry';
9
+ import { LineMesh } from './Line';
9
10
  export type PrismStyle = ColoredMeshStyle & LineStyle;
10
11
  export interface PrismData extends AreaData {
11
12
  heightPoint: AnyPosition;
@@ -48,10 +49,14 @@ export declare class PrismMesh extends IObject3D {
48
49
  prismMesh: ColoredMesh & {
49
50
  geometry: PrismGeometry;
50
51
  };
51
- private edgeMesh;
52
+ edgeMesh: LineMesh;
52
53
  paramStyle: Partial<PrismStyle>;
53
54
  constructor(params?: Partial<PrismData & PrismStyle>);
54
55
  setStyle(params?: Partial<PrismStyle>): void;
56
+ /**
57
+ * Check if the prism is a box (has 4 bottom positions)
58
+ */
59
+ isBox(): boolean;
55
60
  setPoints(params: Partial<PrismData>): void;
56
61
  highlight(): void;
57
62
  unhighlight(): void;
@@ -1,15 +1,15 @@
1
1
  var b = Object.defineProperty;
2
2
  var d = Object.getOwnPropertySymbols;
3
3
  var C = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
4
- var c = (o, t, e) => t in o ? b(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, a = (o, t) => {
5
- for (var e in t || (t = {}))
6
- C.call(t, e) && c(o, e, t[e]);
4
+ var c = (o, e, t) => e in o ? b(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, a = (o, e) => {
5
+ for (var t in e || (e = {}))
6
+ C.call(e, t) && c(o, t, e[t]);
7
7
  if (d)
8
- for (var e of d(t))
9
- w.call(t, e) && c(o, e, t[e]);
8
+ for (var t of d(e))
9
+ w.call(e, t) && c(o, t, e[t]);
10
10
  return o;
11
11
  };
12
- var s = (o, t, e) => (c(o, typeof t != "symbol" ? t + "" : t, e), e);
12
+ var s = (o, e, t) => (c(o, typeof e != "symbol" ? e + "" : e, t), t);
13
13
  import { IObject3D as V } from "../../shared-utils/three/IObject3D.js";
14
14
  import { anyPositionToVector3 as f } from "../../shared-utils/positionToVector3.js";
15
15
  import * as i from "three";
@@ -18,9 +18,9 @@ import { ColoredMesh as A } from "../utils/three/ColoredMesh.js";
18
18
  import { PrismGeometry as S } from "../../shared-utils/three/core/PrismGeometry.js";
19
19
  import { triangleArea as E, triangleCenter as W } from "../../shared-utils/three/geometryUtil.js";
20
20
  import { LineMesh as v } from "./Line.js";
21
- import { LineGeometry as N } from "../../shared-utils/three/core/LineGeometry.js";
21
+ import { LineGeometry as x } from "../../shared-utils/three/core/LineGeometry.js";
22
22
  class H extends V {
23
- constructor(e) {
23
+ constructor(t) {
24
24
  super();
25
25
  s(this, "name", "PrismMesh");
26
26
  s(this, "_geometryInfoCache");
@@ -28,17 +28,17 @@ class H extends V {
28
28
  s(this, "prismMesh", new A());
29
29
  s(this, "edgeMesh", new v());
30
30
  s(this, "paramStyle");
31
- this.prismMesh.name = "PrismMesh", this.prismMesh.geometry = new S(), this.edgeMesh.name = "EdgeMesh", this.addIfNotExists(this.prismMesh, this.edgeMesh), e && this.setPoints(e), this.setStyle(e);
31
+ this.prismMesh.name = "PrismMesh", this.prismMesh.geometry = new S(), this.edgeMesh.name = "EdgeMesh", this.addIfNotExists(this.prismMesh, this.edgeMesh), t && this.setPoints(t), this.setStyle(t);
32
32
  }
33
33
  get topPosition() {
34
34
  return new i.Vector3().fromArray(this.prismMesh.geometry.topPosition);
35
35
  }
36
36
  get bottomPositions() {
37
- return this.prismMesh.geometry.bottomPositions.map((e) => new i.Vector3().fromArray(e));
37
+ return this.prismMesh.geometry.bottomPositions.map((t) => new i.Vector3().fromArray(t));
38
38
  }
39
39
  get topPositions() {
40
- const e = this.bottomPositions[0].clone().sub(this.topPosition);
41
- return this.bottomPositions.map((r) => r.clone().sub(e));
40
+ const t = this.bottomPositions[0].clone().sub(this.topPosition);
41
+ return this.bottomPositions.map((r) => r.clone().sub(t));
42
42
  }
43
43
  get style() {
44
44
  return {
@@ -66,23 +66,23 @@ class H extends V {
66
66
  return this.localCenter.clone();
67
67
  }
68
68
  get localCenter() {
69
- var e;
70
- return (e = this.geometryInfo.center.clone()) != null ? e : new i.Vector3(9999, 9999, 9999);
69
+ var t;
70
+ return (t = this.geometryInfo.center.clone()) != null ? t : new i.Vector3(9999, 9999, 9999);
71
71
  }
72
72
  get geometryInfo() {
73
73
  if (this.geometryInfoNeedUpdate) {
74
74
  this.geometryInfoNeedUpdate = !1;
75
- const e = this.prismMesh.geometry.bottomPositions, r = this.prismMesh.geometry.topPosition;
76
- if (!e || e.length < 3 || !r) {
75
+ const t = this.prismMesh.geometry.bottomPositions, r = this.prismMesh.geometry.topPosition;
76
+ if (!t || t.length < 3 || !r) {
77
77
  this._geometryInfoCache = void 0;
78
78
  return;
79
79
  }
80
- const n = e.map((l, h) => {
81
- if (!(h >= e.length - 2))
80
+ const n = t.map((l, h) => {
81
+ if (!(h >= t.length - 2))
82
82
  return [
83
- new i.Vector3().fromArray(e[0]),
84
- new i.Vector3().fromArray(e[h + 1]),
85
- new i.Vector3().fromArray(e[h + 2])
83
+ new i.Vector3().fromArray(t[0]),
84
+ new i.Vector3().fromArray(t[h + 1]),
85
+ new i.Vector3().fromArray(t[h + 2])
86
86
  ];
87
87
  }).filter(Boolean);
88
88
  if (n.length === 0) {
@@ -95,7 +95,7 @@ class H extends V {
95
95
  g += y, m.add(P);
96
96
  }
97
97
  m = m.divideScalar(g);
98
- const u = new i.Vector3().fromArray(r).sub(new i.Vector3().fromArray(e[0])), M = m.clone().add(u.divideScalar(2));
98
+ const u = new i.Vector3().fromArray(r).sub(new i.Vector3().fromArray(t[0])), M = m.clone().add(u.divideScalar(2));
99
99
  this._geometryInfoCache = { center: M };
100
100
  }
101
101
  return this._geometryInfoCache;
@@ -112,15 +112,22 @@ class H extends V {
112
112
  get lineColor() {
113
113
  return this.edgeMesh.color;
114
114
  }
115
- setStyle(e = {}) {
116
- this.paramStyle = a(a({}, this.paramStyle), e), this.prismMesh.setStyle(this.paramStyle), this.edgeMesh.setStyle(this.paramStyle);
115
+ setStyle(t = {}) {
116
+ this.paramStyle = a(a({}, this.paramStyle), t), this.prismMesh.setStyle(this.paramStyle), this.edgeMesh.setStyle(this.paramStyle);
117
117
  }
118
- setPoints(e) {
118
+ /**
119
+ * Check if the prism is a box (has 4 bottom positions)
120
+ */
121
+ isBox() {
122
+ const t = this.prismMesh.geometry.bottomPositions;
123
+ return t && t.length === 4;
124
+ }
125
+ setPoints(t) {
119
126
  var r;
120
127
  this.prismMesh.geometry.setPosition({
121
- bottomPositions: (r = e.points) == null ? void 0 : r.map(f).map((n) => n.toArray()),
122
- topPosition: e.heightPoint ? f(e.heightPoint).toArray() : void 0
123
- }), this.edgeMesh.geometry = new N().fromEdgesGeometry(new i.EdgesGeometry(this.prismMesh.geometry)), this.geometryInfoNeedUpdate = !0;
128
+ bottomPositions: (r = t.points) == null ? void 0 : r.map(f).map((n) => n.toArray()),
129
+ topPosition: t.heightPoint ? f(t.heightPoint).toArray() : void 0
130
+ }), this.edgeMesh.geometry = new x().fromEdgesGeometry(new i.EdgesGeometry(this.prismMesh.geometry)), this.geometryInfoNeedUpdate = !0;
124
131
  }
125
132
  highlight() {
126
133
  this.prismMesh.highlight();
@@ -128,8 +135,8 @@ class H extends V {
128
135
  unhighlight() {
129
136
  this.prismMesh.unhighlight();
130
137
  }
131
- raycast(e, r) {
132
- return this.children.forEach((n) => I(n, e, r, !0)), !1;
138
+ raycast(t, r) {
139
+ return this.children.forEach((n) => I(n, t, r, !0)), !1;
133
140
  }
134
141
  }
135
142
  export {