@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,57 +1,58 @@
1
- var F = Object.defineProperty;
2
- var D = Object.getOwnPropertySymbols;
3
- var k = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
4
- var b = (l, p, e) => p in l ? F(l, p, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[p] = e, E = (l, p) => {
5
- for (var e in p || (p = {}))
6
- k.call(p, e) && b(l, e, p[e]);
7
- if (D)
8
- for (var e of D(p))
9
- S.call(p, e) && b(l, e, p[e]);
10
- return l;
1
+ var Y = Object.defineProperty;
2
+ var H = Object.getOwnPropertySymbols;
3
+ var Z = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
4
+ var P = (h, l, e) => l in h ? Y(h, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[l] = e, B = (h, l) => {
5
+ for (var e in l || (l = {}))
6
+ Z.call(l, e) && P(h, e, l[e]);
7
+ if (H)
8
+ for (var e of H(l))
9
+ K.call(l, e) && P(h, e, l[e]);
10
+ return h;
11
11
  };
12
- var h = (l, p, e) => (b(l, typeof p != "symbol" ? p + "" : p, e), e);
13
- var w = (l, p, e) => new Promise((s, a) => {
14
- var i = (t) => {
12
+ var d = (h, l, e) => (P(h, typeof l != "symbol" ? l + "" : l, e), e);
13
+ var D = (h, l, e) => new Promise((i, r) => {
14
+ var t = (s) => {
15
15
  try {
16
- o(e.next(t));
17
- } catch (r) {
18
- a(r);
16
+ a(e.next(s));
17
+ } catch (o) {
18
+ r(o);
19
19
  }
20
- }, n = (t) => {
20
+ }, n = (s) => {
21
21
  try {
22
- o(e.throw(t));
23
- } catch (r) {
24
- a(r);
22
+ a(e.throw(s));
23
+ } catch (o) {
24
+ r(o);
25
25
  }
26
- }, o = (t) => t.done ? s(t.value) : Promise.resolve(t.value).then(i, n);
27
- o((e = e.apply(l, p)).next());
26
+ }, a = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(t, n);
27
+ a((e = e.apply(h, l)).next());
28
28
  });
29
- import { Controller as P } from "../base/BasePluginWithData.js";
30
- import * as d from "three";
31
- import { ModelMakerBoxItem as j } from "./item/boxItem.js";
32
- import { PrismMesh as I } from "../Sculpt/Meshes/Prism.js";
33
- import { anyPositionToVector3 as L } from "../shared-utils/positionToVector3.js";
34
- import { PolygonWithEdgeMesh as H } from "../Sculpt/Meshes/PolygonWithEdge.js";
35
- import "../shared-utils/tag.js";
29
+ import { AnimationFrameLoop as X } from "@realsee/five";
30
+ import { Controller as J } from "../base/BasePluginWithData.js";
31
+ import * as c from "three";
32
+ import { ModelMakerBoxItem as ee } from "./item/boxItem.js";
33
+ import { PrismMesh as G } from "../Sculpt/Meshes/Prism.js";
34
+ import { anyPositionToVector3 as te } from "../shared-utils/positionToVector3.js";
35
+ import { PolygonWithEdgeMesh as ie } from "../Sculpt/Meshes/PolygonWithEdge.js";
36
+ import { LightTag as oe } from "../shared-utils/tag.js";
36
37
  import "../vendor/hammerjs/hammer.js";
37
38
  import "../shared-utils/three/PointSelector/index.js";
38
39
  import "../shared-utils/three/CSS3DRenderer/index.js";
39
- import { waitFiveModelLoaded as A } from "../shared-utils/five/fiveModelLoad.js";
40
+ import { waitFiveModelLoaded as se } from "../shared-utils/five/fiveModelLoad.js";
40
41
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
41
42
  import "@realsee/five/line";
42
- import { notNil as v } from "../shared-utils/isNil.js";
43
+ import { notNil as C } from "../shared-utils/isNil.js";
43
44
  import "../shared-utils/three/core/Five_LineMaterial2.js";
44
- import { boxVertex as y } from "../shared-utils/three/boundingBox.js";
45
+ import { boxVertex as b, boundingBox as F } from "../shared-utils/three/boundingBox.js";
45
46
  import "../vendor/animejs/lib/anime.es.js";
46
- import { FiveDomEvents as O } from "../shared-utils/five/FiveDomEvents.js";
47
+ import { FiveDomEvents as ne } from "../shared-utils/five/FiveDomEvents.js";
47
48
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
48
49
  import "../shared-utils/five/FivePuppet.js";
49
- import { tagRendererMap as B } from "./utils/tagRenderer.js";
50
- import { ModelMakerPrismItem as T } from "./item/prismItem.js";
51
- import { ModelMakerPolygonItem as z } from "./item/polygonItem.js";
52
- import { fiveEveryReadyListener as G } from "../shared-utils/five/fiveEveryReadyListener.js";
53
- import { sleep as N } from "../CruisePlugin/utils/sleep.js";
54
- import { CONST as Q } from "../shared-utils/constants.js";
50
+ import { tagRendererMap as re } from "./utils/tagRenderer.js";
51
+ import { ModelMakerPrismItem as N } from "./item/prismItem.js";
52
+ import { ModelMakerPolygonItem as ae } from "./item/polygonItem.js";
53
+ import { fiveEveryReadyListener as le } from "../shared-utils/five/fiveEveryReadyListener.js";
54
+ import { sleep as ce } from "../CruisePlugin/utils/sleep.js";
55
+ import { CONST as de } from "../shared-utils/constants.js";
55
56
  import "../base/BasePlugin.js";
56
57
  import "../shared-utils/Subscribe.js";
57
58
  import "../shared-utils/three/core/Sphere.js";
@@ -114,161 +115,376 @@ import "../shared-utils/five/getPosition.js";
114
115
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
115
116
  import "../shared-utils/three/PointSelector/utils/contents.js";
116
117
  import "../Sculpt/utils/three/rayOnLine.js";
117
- import "@realsee/five";
118
118
  import "../shared-utils/five/calculateThreeMouse.js";
119
119
  import "./utils/Text.js";
120
120
  import "../vendor/svelte/internal/index.js";
121
121
  import "../components/AreaLabel/LabelItem.js";
122
122
  import "../components/AreaLabel/Assets/roomLabelBg.js";
123
123
  import "../shared-utils/math/rad2Deg.js";
124
- class kt extends P {
125
- constructor(e, s) {
126
- var a, i;
124
+ import "./utils/BoxLabelItem.js";
125
+ const he = (h, l, e, i = [0, 1, 4, 5]) => {
126
+ let r = null, t = 1 / 0;
127
+ return i.forEach((n) => {
128
+ const a = b(h, n), o = a.clone().applyMatrix4(l.matrixWorld).distanceTo(e);
129
+ o < t && (t = o, r = a);
130
+ }), r || b(h, 5);
131
+ }, pe = (h) => {
132
+ const l = h * 100;
133
+ return l < 10 ? null : `${Math.round(l / 10) * 10}cm`;
134
+ };
135
+ class ii extends J {
136
+ constructor(e, i) {
137
+ var r, t;
127
138
  super(e);
128
- h(this, "state");
129
- h(this, "items", []);
130
- h(this, "group", new d.Group());
131
- h(this, "data");
132
- h(this, "tagRendererMap", {});
133
- h(this, "fiveDomEvents");
134
- h(this, "zFightingOffset", 0);
135
- h(this, "tagWrapper");
136
- h(this, "occlusionVisibility");
137
- h(this, "occlusionMode");
138
- h(this, "fiveEveryReadyListenerDisposer");
139
- h(this, "onFiveModeChange", (e) => {
140
- const s = this.occlusionVisibility;
141
- Array.isArray(s) && this.items.forEach((a) => {
142
- a.type !== "triangles" && a.model.setStyle instanceof Function && a.model.setStyle({ occlusionVisibility: s.includes(e) });
139
+ d(this, "state");
140
+ d(this, "items", []);
141
+ d(this, "group", new c.Group());
142
+ d(this, "data");
143
+ d(this, "tagRendererMap", {});
144
+ d(this, "fiveDomEvents");
145
+ d(this, "zFightingOffset", 0);
146
+ d(this, "tagWrapper");
147
+ d(this, "occlusionVisibility");
148
+ d(this, "occlusionMode");
149
+ d(this, "fiveEveryReadyListenerDisposer");
150
+ d(this, "activeAnimations", /* @__PURE__ */ new Map());
151
+ d(this, "activeEaseInAnimations", /* @__PURE__ */ new Map());
152
+ d(this, "onFiveModeChange", (e) => {
153
+ const i = this.occlusionVisibility;
154
+ Array.isArray(i) && this.items.forEach((r) => {
155
+ r.type !== "triangles" && r.model.setStyle instanceof Function && r.model.setStyle({ occlusionVisibility: i.includes(e) });
143
156
  });
144
157
  });
145
- h(this, "handleEnable", () => {
146
- var e, s;
147
- this.five.scene.add(this.group), (s = (e = this.five.getElement()) == null ? void 0 : e.parentElement) == null || s.appendChild(this.tagWrapper), this.five.needsRender = !0, this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveEveryReady(), this.five.on("modeChange", this.onFiveModeChange), this.fiveEveryReadyListenerDisposer = G(this.five, this.onFiveEveryReady);
158
+ d(this, "handleEnable", () => {
159
+ var e, i;
160
+ this.five.scene.add(this.group), (i = (e = this.five.getElement()) == null ? void 0 : e.parentElement) == null || i.appendChild(this.tagWrapper), this.five.needsRender = !0, this.items.forEach((r) => {
161
+ r.state.enabled || r.enable();
162
+ }), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveEveryReady(), this.five.on("modeChange", this.onFiveModeChange), this.fiveEveryReadyListenerDisposer = le(this.five, this.onFiveEveryReady);
148
163
  });
149
- h(this, "handleDisable", () => {
150
- this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0, this.five.off("modeChange", this.onFiveModeChange), this.fiveEveryReadyListenerDisposer();
164
+ d(this, "handleDisable", () => {
165
+ this.items.forEach((e) => {
166
+ e.state.enabled && e.disable();
167
+ }), this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0, this.five.off("modeChange", this.onFiveModeChange), this.fiveEveryReadyListenerDisposer();
151
168
  });
152
- h(this, "onFiveEveryReady", () => w(this, null, function* () {
169
+ d(this, "onFiveEveryReady", () => D(this, null, function* () {
153
170
  if (this.five.state.mode === "Panorama")
154
171
  return;
155
- const e = this.items.filter((t) => t instanceof T).map((t) => t.tag), s = e.filter((t) => t.position && t.visible && t.enabled);
156
- yield N(0);
157
- const a = this.five.camera.position.clone(), i = s.sort((t, r) => a.distanceTo(t.position) - a.distanceTo(r.position)), n = [], o = (t, r) => !(t.right < r.left || t.left > r.right || t.bottom < r.top || t.top > r.bottom);
158
- e.forEach((t) => {
159
- t.visibles[2] = void 0;
160
- }), i.forEach((t) => {
161
- if (t.visibles[1] === !1)
172
+ const e = this.items.filter((s) => s instanceof N).map((s) => s.tag), i = e.filter((s) => s.position && s.visible && s.enabled);
173
+ yield ce(0);
174
+ const r = this.five.camera.position.clone(), t = i.sort((s, o) => r.distanceTo(s.position) - r.distanceTo(o.position)), n = [], a = (s, o) => !(s.right < o.left || s.left > o.right || s.bottom < o.top || s.top > o.bottom);
175
+ e.forEach((s) => {
176
+ s.visibles[2] = void 0;
177
+ }), t.forEach((s) => {
178
+ if (s.visibles[1] === !1)
162
179
  return;
163
- const r = t.container.getElementsByClassName("room-label-item__text")[0];
164
- if (!r)
180
+ const o = s.container.getElementsByClassName("room-label-item__text")[0];
181
+ if (!o)
165
182
  return;
166
- const c = r.getBoundingClientRect();
167
- n.every((m) => !o(m.boundingClientRect, c)) ? (n.push({ tag: t, boundingClientRect: c }), t.visibles[2] = !0) : t.visibles[2] = !1, t.needsRender = !0;
183
+ const p = o.getBoundingClientRect();
184
+ n.every((y) => !a(y.boundingClientRect, p)) ? (n.push({ tag: s, boundingClientRect: p }), s.visibles[2] = !0) : s.visibles[2] = !1, s.needsRender = !0;
168
185
  });
169
186
  }));
170
- h(this, "updateTagRenderer", () => {
187
+ d(this, "updateTagRenderer", () => {
171
188
  this.items.forEach((e) => {
172
- var a;
173
- const s = (a = this.tagRendererMap[e.type]) != null ? a : B[e.type];
174
- s && e.__renderer !== s && (e.__renderer = s, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = s(e.tag.container, e, this.five));
189
+ var r;
190
+ const i = (r = this.tagRendererMap[e.type]) != null ? r : re[e.type];
191
+ i && e.__renderer !== i && (e.__renderer = i, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = i(e.tag.container, e, this.five));
175
192
  });
176
193
  });
177
- this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (a = s == null ? void 0 : s.occlusionVisibility) != null ? a : !1, this.occlusionMode = (i = s == null ? void 0 : s.occlusionMode) != null ? i : "translucence", this.fiveDomEvents = new O(e, { noEmitWhenHide: !0, noEmitWhenNotInScene: !0 }), this.tagWrapper = (() => {
178
- var o;
194
+ this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (r = i == null ? void 0 : i.occlusionVisibility) != null ? r : !1, this.occlusionMode = (t = i == null ? void 0 : i.occlusionMode) != null ? t : "translucence", this.fiveDomEvents = new ne(e, { noEmitWhenHide: !0, noEmitWhenNotInScene: !0 }), this.tagWrapper = (() => {
195
+ var a;
179
196
  const n = document.createElement("div");
180
- return n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "100%", n.style.height = "100%", n.style.pointerEvents = "none", n.style.zIndex = `${(o = s == null ? void 0 : s.tagContainerZIndex) != null ? o : ""}`, n;
181
- })(), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
197
+ return n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "100%", n.style.height = "100%", n.style.pointerEvents = "none", n.style.zIndex = `${(a = i == null ? void 0 : i.tagContainerZIndex) != null ? a : ""}`, n;
198
+ })(), this.injectEdgeTagCSS(), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
182
199
  }
183
200
  load(e) {
184
- return w(this, null, function* () {
185
- var a;
186
- if (this.clear(), this.data = e, yield A(this.five), this.data !== e)
201
+ return D(this, null, function* () {
202
+ var r;
203
+ if (this.clear(), this.data = e, yield se(this.five), this.data !== e)
187
204
  return;
188
205
  this.clear();
189
- const s = (i) => {
190
- var r;
191
- const n = i.object_data.color ? new d.Color().setHex(parseInt(i.object_data.color.slice(1), 16)) : new d.Color(1, 1, 1);
192
- let o = typeof this.occlusionVisibility == "boolean" ? this.occlusionVisibility : !1, t = this.occlusionMode;
193
- return i.type === "triangles" && (o = !0, t = "depthTest"), {
206
+ const i = (t) => {
207
+ var x;
208
+ const n = t.object_data.color ? new c.Color().setHex(parseInt(t.object_data.color.slice(1), 16)) : new c.Color(1, 1, 1);
209
+ let a = typeof this.occlusionVisibility == "boolean" ? this.occlusionVisibility : !1, s = this.occlusionMode;
210
+ t.type === "triangles" && (a = !0, s = "depthTest");
211
+ let o = 1, p = ((x = t.object_data.opacity) != null ? x : 0.8) / 2;
212
+ return t.type === "box" && (o = 0.5, p = 0.2), {
194
213
  color: n,
195
214
  lineColor: n,
196
- opacity: ((r = i.object_data.opacity) != null ? r : 0.4) / 2,
197
- lineOpacity: 1,
215
+ opacity: p,
216
+ lineOpacity: o,
198
217
  lineWidth: 1,
199
- occlusionVisibility: o,
200
- occlusionMode: t
218
+ occlusionVisibility: a,
219
+ occlusionMode: s
201
220
  };
202
221
  };
203
- (a = e == null ? void 0 : e.list) == null || a.forEach((i) => {
204
- var n;
205
- if (i.type === "triangles") {
206
- const o = new H();
207
- v(i.id) && (o.uuid = i.id.toString()), o.setPoints(i.object_data.points, { checkLinesIntersect: !1 }), o.setStyle(s(i)), this.fiveDomEvents.addEventListener(o, "hover", () => o.highlight()), this.fiveDomEvents.addEventListener(o, "unHover", () => o.unhighlight());
208
- const t = new z({
222
+ (r = e == null ? void 0 : e.list) == null || r.forEach((t) => {
223
+ var n, a, s;
224
+ if (t.type === "triangles") {
225
+ const o = new ie();
226
+ C(t.id) && (o.uuid = t.id.toString()), o.setPoints(t.object_data.points, { checkLinesIntersect: !1 }), o.setStyle(i(t)), this.fiveDomEvents.addEventListener(o, "hover", () => o.highlight()), this.fiveDomEvents.addEventListener(o, "unHover", () => o.unhighlight());
227
+ const p = new ae({
209
228
  five: this.five,
210
229
  tagWrapper: this.tagWrapper,
211
230
  model: o,
212
231
  group: this.group,
213
- type: i.type,
214
- rawData: i,
232
+ type: t.type,
233
+ rawData: t,
215
234
  fiveDomEvents: this.fiveDomEvents
216
235
  });
217
- this.items.push(t);
218
- } else if (i.type === "prism") {
219
- const o = new I();
220
- v(i.id) && (o.uuid = i.id.toString()), this.zFightingOffset += Q.Z_FIGHTING_OFFSET;
221
- const t = i.object_data.points.map((m) => {
222
- var g;
223
- return [m[0], m[1] + ((g = i.object_data.fixedY) != null ? g : 0), m[2]];
236
+ this.items.push(p);
237
+ } else if (t.type === "prism") {
238
+ const o = new G();
239
+ C(t.id) && (o.uuid = t.id.toString()), this.zFightingOffset += de.Z_FIGHTING_OFFSET;
240
+ const p = t.object_data.points.map((E) => {
241
+ var R;
242
+ return [E[0], E[1] + ((R = t.object_data.fixedY) != null ? R : 0), E[2]];
224
243
  });
225
- t.push(t[0]);
226
- const r = i.object_data.height + ((n = i.object_data.fixedHeight) != null ? n : 0) + this.zFightingOffset, c = L(t[0]).add(new d.Vector3().setY(r));
227
- o.setPoints({ points: t, heightPoint: c }), o.setStyle(s(i));
228
- const u = new T({
244
+ p.push(p[0]);
245
+ const x = t.object_data.height + ((n = t.object_data.fixedHeight) != null ? n : 0) + this.zFightingOffset, y = te(p[0]).add(new c.Vector3().setY(x));
246
+ o.setPoints({ points: p, heightPoint: y }), o.setStyle(i(t));
247
+ const w = new N({
229
248
  five: this.five,
230
249
  tagWrapper: this.tagWrapper,
231
250
  model: o,
232
251
  group: this.group,
233
- type: i.type,
234
- rawData: i,
252
+ type: t.type,
253
+ rawData: t,
235
254
  fiveDomEvents: this.fiveDomEvents
236
255
  });
237
- this.items.push(u);
238
- } else if (i.type === "box") {
239
- const o = new I();
240
- v(i.id) && (o.uuid = i.id.toString());
241
- const { start: t, end: r, rotation: c = [0, 0, 0, 0] } = i.object_data, u = new d.Vector3().fromArray(t), m = new d.Vector3().fromArray(r), g = new d.Euler().fromArray(c), R = new d.Quaternion().setFromEuler(g), M = R.clone().inverse(), _ = new d.Vector3().lerpVectors(u, m, 0.5), C = _.clone().negate(), x = u.clone().add(C).applyQuaternion(M), V = m.clone().add(C).applyQuaternion(M), f = new d.Box3(x.clone().max(V), x.clone().min(V));
256
+ this.items.push(w);
257
+ } else if (t.type === "box") {
258
+ const o = new G();
259
+ C(t.id) && (o.uuid = t.id.toString());
260
+ const { start: p, end: x, rotation: y = [0, 0, 0, 0] } = t.object_data, w = new c.Vector3().fromArray(p), E = new c.Vector3().fromArray(x), R = new c.Euler().fromArray(y), v = new c.Quaternion().setFromEuler(R), u = v.clone().inverse(), A = new c.Vector3().lerpVectors(w, E, 0.5), S = A.clone().negate(), V = w.clone().add(S).applyQuaternion(u), m = E.clone().add(S).applyQuaternion(u), f = new c.Box3(V.clone().max(m), V.clone().min(m));
242
261
  o.setPoints({
243
- points: [y(f, 2), y(f, 3), y(f, 7), y(f, 6)],
244
- heightPoint: y(f, 1)
245
- }), o.position.copy(_), o.quaternion.copy(R), o.setStyle(s(i));
246
- const W = new j({
262
+ points: [b(f, 2), b(f, 3), b(f, 7), b(f, 6)],
263
+ heightPoint: b(f, 1)
264
+ }), o.position.copy(A), o.quaternion.copy(v), o.setStyle(i(t));
265
+ const g = ((a = t.extend) == null ? void 0 : a.index) !== void 0 ? this.five.work.observers[t.extend.index].position : null, M = g ? he(F(o), o, g, [0, 1, 4, 5]) : b(F(o), (s = t.object_data.positionIndex) != null ? s : 5), _ = (I) => ({
266
+ 0: [1, 3, 4],
267
+ 1: [0, 2, 5],
268
+ 2: [1, 3, 6],
269
+ 3: [0, 2, 7],
270
+ 4: [0, 5, 7],
271
+ 5: [1, 4, 6],
272
+ 6: [2, 5, 7],
273
+ 7: [3, 4, 6]
274
+ })[I] || [], z = F(o);
275
+ let k = 5;
276
+ for (let I = 0; I < 8; I++)
277
+ if (b(z, I).distanceTo(M) < 1e-3) {
278
+ k = I;
279
+ break;
280
+ }
281
+ const U = _(k), W = [];
282
+ U.forEach((I, j) => {
283
+ const L = b(z, I), $ = M.distanceTo(L), O = pe($);
284
+ if (!O)
285
+ return;
286
+ const Q = new c.Vector3().lerpVectors(M, L, 0.5).clone().applyMatrix4(o.matrixWorld), T = new oe(this.five);
287
+ T.setPosition(Q), T.container.innerHTML = `
288
+ <div class="model-maker-edge-tag">
289
+ ${O}
290
+ </div>
291
+ `, T.container.style.transform = "translate(-50%, -100%)", T.hide(), W.push(T);
292
+ });
293
+ const q = new ee({
247
294
  five: this.five,
248
295
  tagWrapper: this.tagWrapper,
249
296
  model: o,
250
297
  group: this.group,
251
- type: i.type,
252
- rawData: i,
253
- fiveDomEvents: this.fiveDomEvents
298
+ type: t.type,
299
+ rawData: t,
300
+ fiveDomEvents: this.fiveDomEvents,
301
+ position: M,
302
+ edgeTags: W
254
303
  });
255
- this.items.push(W);
304
+ this.items.push(q);
256
305
  }
257
306
  }), this.state.enabled ? this.handleEnable() : this.handleDisable(), this.state.visible ? this.handleShow() : this.handleHide(), this.updateTagRenderer(), this.hooks.emit("dataLoaded", e), this.five.needsRender = !0;
258
307
  });
259
308
  }
260
309
  setState(e) {
261
- v(e.enabled) && this.state.enabled !== e.enabled && (this.state.enabled = e.enabled, e.enabled ? this.handleEnable() : this.handleDisable(), this.hooks.emit(e.enabled ? "enable" : "disable", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" })), v(e.visible) && this.state.visible !== e.visible && (this.state.visible = e.visible, e.visible ? this.handleShow() : this.handleHide(), this.hooks.emit(e.visible ? "show" : "hide", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" }));
310
+ C(e.enabled) && this.state.enabled !== e.enabled && (this.state.enabled = e.enabled, e.enabled ? this.handleEnable() : this.handleDisable(), this.hooks.emit(e.enabled ? "enable" : "disable", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" })), C(e.visible) && this.state.visible !== e.visible && (this.state.visible = e.visible, e.visible ? this.handleShow() : this.handleHide(), this.hooks.emit(e.visible ? "show" : "hide", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" }));
262
311
  }
263
312
  getItemById(e) {
264
- return this.items.find((s) => s.rawData.id === e);
313
+ return this.items.find((i) => i.rawData.id === e);
265
314
  }
266
315
  registerTagRenderer(e) {
267
- this.tagRendererMap = E(E({}, this.tagRendererMap), e), this.updateTagRenderer();
316
+ this.tagRendererMap = B(B({}, this.tagRendererMap), e), this.updateTagRenderer();
268
317
  }
269
318
  hasCustomTagRenderer(e) {
270
319
  return !!this.tagRendererMap[e];
271
320
  }
321
+ /**
322
+ * Shows a specific item's tag and ensures all other tags are hidden
323
+ * @param id The ID of the item whose tag should be shown
324
+ * @returns The item if found and showed, otherwise null
325
+ */
326
+ showItemTag(e) {
327
+ const i = this.getItemById(e);
328
+ return i ? (this.five.currentMode === "Panorama" && this.hideAllItemTags(), i.tag.visible || (i.tag.show({ force: !0 }), i.type === "box" && "edgeTags" in i && i.edgeTags.forEach((r) => r.show({ force: !0 }))), this.five.needsRender = !0, i) : (console.warn(`Item with ID ${e} not found`), null);
329
+ }
330
+ /**
331
+ * Hides all item tags
332
+ * @param options Optional configuration for hiding tags
333
+ * @param options.excludeId Optional ID of an item whose tag should remain visible
334
+ */
335
+ hideAllItemTags(e) {
336
+ this.items.forEach((i) => {
337
+ i.tag && i.tag.visible && i.rawData.id !== (e == null ? void 0 : e.excludeId) && (i.tag.hide(), i.type === "box" && "edgeTags" in i && i.edgeTags.forEach((r) => r.hide()));
338
+ }), this.five.needsRender = !0;
339
+ }
340
+ /**
341
+ * Force finish all active box animations immediately
342
+ * @param id Optional box item ID. If not provided, finishes all active box animations.
343
+ */
344
+ forceFinishBoxAnimation(e) {
345
+ (e ? [e] : Array.from(this.activeAnimations.keys())).forEach((r) => {
346
+ const t = this.activeAnimations.get(r);
347
+ if (t) {
348
+ t.remove(), t.animatedBoxMesh.visible = !1;
349
+ const a = this.getItemById(r);
350
+ a && a.type === "box" && this.showBoxFinalState(a.model), this.activeAnimations.delete(r);
351
+ }
352
+ const n = this.activeEaseInAnimations.get(r);
353
+ n && (clearInterval(n.interval), this.showBoxFinalState(n.model), this.activeEaseInAnimations.delete(r));
354
+ }), this.five.needsRender = !0;
355
+ }
356
+ /**
357
+ * Play the up-and-down animation for a box mesh
358
+ * @param id Optional box item ID. If not provided, plays animation for all box items.
359
+ * @returns Promise that resolves when all animations are complete
360
+ */
361
+ playBoxAnimation(e) {
362
+ this.activeAnimations.size > 0 && this.forceFinishBoxAnimation();
363
+ const i = e ? [this.getItemById(e)].filter(Boolean) : this.items.filter((t) => t.type === "box");
364
+ if (i.length === 0)
365
+ return console.warn("No box items found to animate"), Promise.resolve();
366
+ const r = i.map((t) => {
367
+ if (!t || t.type !== "box")
368
+ return Promise.resolve();
369
+ const n = t.model;
370
+ return new Promise((a) => {
371
+ if (n && n.isBox && typeof n.isBox == "function" && n.isBox()) {
372
+ n.prismMesh.visible = !1, n.edgeMesh.visible = !1;
373
+ const s = new c.Vector3(1 / 0, 1 / 0, 1 / 0), o = new c.Vector3(-1 / 0, -1 / 0, -1 / 0), p = n.bottomPositions;
374
+ for (const m of p)
375
+ s.min(m), o.max(m);
376
+ const x = n.topPositions;
377
+ for (const m of x)
378
+ s.min(m), o.max(m);
379
+ const y = o.clone().sub(s), w = new c.BoxGeometry(y.x, y.y, y.z), E = `
380
+ varying vec2 vUV;
381
+ varying vec3 vPosition;
382
+ #include <common>
383
+ void main() {
384
+ vUV = uv;
385
+ vPosition = position;
386
+ vec4 transformed = vec4(position, 1.0);
387
+ gl_Position = projectionMatrix * modelViewMatrix * transformed;
388
+ }
389
+ `, R = `
390
+ #include <common>
391
+ uniform vec3 color;
392
+ uniform vec3 size;
393
+ uniform vec2 faceSize;
394
+ uniform float opacity;
395
+ uniform float progress;
396
+ uniform float spread;
397
+ varying vec2 vUV;
398
+ varying vec3 vPosition;
399
+ void main() {
400
+
401
+ float u = vUV.x;
402
+ float v = vUV.y;
403
+ float r = 0.1 + sqrt(u * u + v * v) * 0.3;
404
+
405
+ // 边缘线
406
+ if (size.y * v < 0.003 || size.y * (1.0 - v) < 0.003) {
407
+ r += 0.8 * (1.0 - abs(u - 0.5) * 2.0);
408
+ }
409
+ if (size.x * u < 0.003 || size.x * (1.0 - u) < 0.003) {
410
+ r += 0.8 * (1.0 - abs(v - 0.5) * 2.0);
411
+ }
412
+
413
+ // 扫光动画
414
+ vec3 p = (vPosition + size / 2.0) / size;
415
+ r = r * pow(clamp(1.0 - abs(p.y - progress) / spread, 0.0, 1.0), 2.0);
416
+
417
+ gl_FragColor = vec4(color, clamp(r * opacity, 0.0, 1.0));
418
+ }
419
+ `, v = new c.ShaderMaterial({
420
+ vertexShader: E,
421
+ fragmentShader: R,
422
+ uniforms: {
423
+ color: { value: new c.Color(77 / 255, 240 / 255, 1) },
424
+ // Color
425
+ size: { value: y },
426
+ // Box size
427
+ faceSize: { value: new c.Vector2(1, 1) },
428
+ // Face size
429
+ opacity: { value: 0.8 },
430
+ // Opacity
431
+ progress: { value: 0.5 },
432
+ // Animation progress
433
+ spread: { value: 0.5 }
434
+ // Animation spread
435
+ },
436
+ depthTest: !1,
437
+ side: c.DoubleSide,
438
+ transparent: !0
439
+ });
440
+ v.polygonOffset = !0, v.polygonOffsetFactor = 1, v.polygonOffsetUnits = 1;
441
+ const u = new c.Mesh(w, [
442
+ v.clone(),
443
+ // right
444
+ v.clone(),
445
+ // left
446
+ v.clone(),
447
+ // top
448
+ v.clone(),
449
+ // bottom
450
+ v.clone(),
451
+ // back
452
+ v.clone()
453
+ // front
454
+ ]);
455
+ u.position.copy(n.localCenter), u.position.applyMatrix4(n.matrixWorld), u.quaternion.copy(n.quaternion), u.onBeforeRender = () => {
456
+ w.boundingBox || w.computeBoundingBox();
457
+ const m = w.boundingBox.getSize(new c.Vector3());
458
+ for (let f = 0; f < 6; f++) {
459
+ const g = u.material[f];
460
+ f === 0 || f === 1 ? g.uniforms.faceSize.value.set(m.z, m.y) : f === 2 || f === 3 ? g.uniforms.faceSize.value.set(m.x, m.z) : g.uniforms.faceSize.value.set(m.x, m.y);
461
+ }
462
+ for (const f of u.material)
463
+ f.uniforms.size.value.copy(m);
464
+ this.five.needsRender = !0;
465
+ };
466
+ const A = 3e3;
467
+ let S = 0;
468
+ const V = X.shared.add((m, f) => {
469
+ S += f;
470
+ let g = S / A;
471
+ g > 1 && (g = 1);
472
+ let M = Math.abs((g - 0.5) * 2);
473
+ M = M * 2 - 0.5;
474
+ for (const _ of u.material)
475
+ _.uniforms.progress.value = M;
476
+ g === 1 && (V(), u.visible = !1, this.playEaseInAnimation(n, () => {
477
+ this.activeAnimations.delete(t.rawData.id), a();
478
+ })), this.five.needsRender = !0;
479
+ });
480
+ this.activeAnimations.set(t.rawData.id, { animatedBoxMesh: u, remove: V }), this.five.scene.add(u);
481
+ } else
482
+ a();
483
+ });
484
+ });
485
+ return Promise.all(r).then(() => {
486
+ });
487
+ }
272
488
  enable() {
273
489
  this.setState({ enabled: !0 });
274
490
  }
@@ -282,7 +498,9 @@ class kt extends P {
282
498
  this.setState({ visible: !1 });
283
499
  }
284
500
  clear() {
285
- this.zFightingOffset = 0, this.handleDisable(), this.group.children.length = 0, this.five.needsRender = !0, this.items = [], this.tagWrapper.innerHTML = "", this.fiveDomEvents.clear();
501
+ this.zFightingOffset = 0, this.items.forEach((e) => {
502
+ e.state.enabled && e.disable();
503
+ }), this.handleDisable(), this.group.children.length = 0, this.five.needsRender = !0, this.items = [], this.tagWrapper.innerHTML = "", this.fiveDomEvents.clear();
286
504
  }
287
505
  dispose() {
288
506
  this.hooks.emit("dispose"), this.clear();
@@ -290,13 +508,60 @@ class kt extends P {
290
508
  onWorkCodeChange() {
291
509
  this.group.matrix.copy(this.workUtil.transform.clone()), this.group.matrix.decompose(this.group.position, this.group.quaternion, this.group.scale), this.group.updateMatrixWorld();
292
510
  }
511
+ playEaseInAnimation(e, i) {
512
+ e.prismMesh.visible = !0, e.edgeMesh.visible = !0;
513
+ let r = 0;
514
+ const t = e.prismMesh.style.opacity;
515
+ e.prismMesh.setStyle({ opacity: 0 }), e.edgeMesh.setStyle({ lineOpacity: 0 });
516
+ const n = this.items.find((s) => s.model === e);
517
+ if (!n) {
518
+ console.warn("Could not find item for model in playEaseInAnimation");
519
+ return;
520
+ }
521
+ const a = setInterval(() => {
522
+ r === 61 && (clearInterval(a), this.activeEaseInAnimations.delete(n.rawData.id), this.showBoxFinalState(e), i()), e.edgeMesh.setStyle({ lineOpacity: r / 60 }), e.prismMesh.setStyle({ opacity: r / 60 * t }), this.five.needsRender = !0, r++;
523
+ }, 16);
524
+ this.activeEaseInAnimations.set(n.rawData.id, { interval: a, model: e });
525
+ }
293
526
  handleShow() {
294
- this.group.visible = !0, this.tagWrapper.style.display = "block", this.five.needsRender = !0;
527
+ this.group.visible = !0, this.tagWrapper.style.display = "block", this.items.forEach((e) => {
528
+ e.show();
529
+ }), this.five.needsRender = !0;
295
530
  }
296
531
  handleHide() {
297
- this.group.visible = !1, this.tagWrapper.style.display = "none", this.five.needsRender = !0;
532
+ this.group.visible = !1, this.tagWrapper.style.display = "none", this.items.forEach((e) => {
533
+ e.hide();
534
+ }), this.five.needsRender = !0;
535
+ }
536
+ /**
537
+ * Shows a box model in its final state (fully visible with full opacity)
538
+ * @param model The PrismMesh model to show
539
+ */
540
+ showBoxFinalState(e) {
541
+ e.prismMesh.visible = !0, e.edgeMesh.visible = !0, e.prismMesh.setStyle({ opacity: e.prismMesh.style.opacity }), e.edgeMesh.setStyle({ lineOpacity: 1 });
542
+ }
543
+ /**
544
+ * Inject CSS styles for edge tags
545
+ */
546
+ injectEdgeTagCSS() {
547
+ if (!document.getElementById("model-maker-edge-tag-style")) {
548
+ const e = document.createElement("style");
549
+ e.id = "model-maker-edge-tag-style", e.textContent = `
550
+ .model-maker-edge-tag {
551
+ color: white;
552
+ font-size: 14px;
553
+ font-weight: 500;
554
+ white-space: nowrap;
555
+ pointer-events: none;
556
+ text-align: center;
557
+ line-height: 1;
558
+ display: inline-block;
559
+ min-width: 30px;
560
+ }
561
+ `, document.head.appendChild(e);
562
+ }
298
563
  }
299
564
  }
300
565
  export {
301
- kt as Controller
566
+ ii as Controller
302
567
  };