@realsee/dnalogel 3.64.27 → 3.64.28-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (483) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/components/index.js +3 -3
  3. package/dist/ModelMakerPlugin/Controller.d.ts +39 -13
  4. package/dist/ModelMakerPlugin/item/baseItem.d.ts +31 -14
  5. package/dist/ModelMakerPlugin/item/boxItem.d.ts +13 -3
  6. package/dist/ModelMakerPlugin/item/polygonItem.d.ts +13 -3
  7. package/dist/ModelMakerPlugin/item/prismItem.d.ts +12 -2
  8. package/dist/ModelMakerPlugin/typings/data.d.ts +78 -46
  9. package/dist/ModelMakerPlugin/typings/index.d.ts +5 -2
  10. package/dist/Sculpt/Meshes/LineWithDots.d.ts +15 -0
  11. package/dist/Sculpt/Meshes/Prism.d.ts +1 -1
  12. package/dist/index.cjs.js +59 -59
  13. package/dist/index.js +4156 -4086
  14. package/dist/index.umd.js +52 -52
  15. package/dist/shared-utils/tag.d.ts +1 -2
  16. package/docs/assets/navigation.js +1 -1
  17. package/docs/assets/search.js +1 -1
  18. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +25 -25
  19. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +28 -28
  20. package/docs/classes/CSS3DRender.html +3 -3
  21. package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
  22. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +26 -26
  23. package/docs/classes/ModelMakerPluginInstance.html +21 -15
  24. package/docs/classes/ModelRoomLabelController.html +6 -6
  25. package/docs/classes/MoveController.html +17 -17
  26. package/docs/classes/Object3DHelperController.html +15 -15
  27. package/docs/classes/PaintBrush.html +5 -5
  28. package/docs/classes/PanoMeasurePluginLine.html +2 -2
  29. package/docs/classes/PanoMeasurePluginModel.html +2 -2
  30. package/docs/classes/PanoMeasurePluginPoint.html +2 -2
  31. package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
  32. package/docs/classes/PanoTagPluginController.html +35 -35
  33. package/docs/classes/Sculpt.html +23 -23
  34. package/docs/classes/Util.BetterTween.html +2 -2
  35. package/docs/classes/Util.FiveDomEvents.html +4 -4
  36. package/docs/classes/Util.FivePuppet.html +3 -3
  37. package/docs/classes/Util.Interval.html +5 -5
  38. package/docs/classes/Util.LegacyPointHelper.html +2 -2
  39. package/docs/classes/Util.LightTag.html +14 -14
  40. package/docs/classes/Util.LineSegments.html +2 -2
  41. package/docs/classes/Util.Magnifier.html +6 -6
  42. package/docs/classes/Util.Object3D.html +4 -4
  43. package/docs/classes/Util.PointDomHelper.html +3 -3
  44. package/docs/classes/Util.PointHelper.html +2 -2
  45. package/docs/classes/Util.PointSelector.html +16 -16
  46. package/docs/classes/Util.PointSelectorHelper.html +2 -2
  47. package/docs/classes/Util.Rectangle.html +5 -5
  48. package/docs/classes/Util.sculpt.BaseEditor.html +7 -7
  49. package/docs/classes/Util.sculpt.BoxMesh.html +6 -6
  50. package/docs/classes/Util.sculpt.BoxMeshEditor.html +7 -7
  51. package/docs/classes/Util.sculpt.CircleMesh.html +4 -4
  52. package/docs/classes/Util.sculpt.CircleMeshEditor.html +7 -7
  53. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +4 -4
  54. package/docs/classes/Util.sculpt.CylinderMesh.html +5 -5
  55. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +7 -7
  56. package/docs/classes/Util.sculpt.LineMesh.html +5 -5
  57. package/docs/classes/Util.sculpt.PointMesh.html +5 -5
  58. package/docs/classes/Util.sculpt.PolygonMesh.html +6 -6
  59. package/docs/classes/Util.sculpt.PrismMesh.html +6 -6
  60. package/docs/classes/Util.sculpt.PrismMeshEditor.html +7 -7
  61. package/docs/classes/Util.sculpt.RectangleMesh.html +7 -7
  62. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +7 -7
  63. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +7 -7
  64. package/docs/classes/WalkController.html +18 -18
  65. package/docs/enums/CameraMovementEffect.html +3 -3
  66. package/docs/enums/ContentType.html +18 -18
  67. package/docs/enums/DIRECTION.html +2 -2
  68. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
  69. package/docs/enums/DimensionType.html +3 -3
  70. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
  71. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
  72. package/docs/enums/PaintBrushTypeEnum.html +2 -2
  73. package/docs/enums/PointType.html +3 -3
  74. package/docs/enums/Rotation.html +3 -3
  75. package/docs/functions/AreaMakerPlugin.html +1 -1
  76. package/docs/functions/CSS3DRenderPlugin.html +1 -1
  77. package/docs/functions/CameraMovementPlugin.html +2 -2
  78. package/docs/functions/CruisePlugin.html +1 -1
  79. package/docs/functions/CurrentPanoImagePlugin.html +1 -1
  80. package/docs/functions/GuideLinePlugin.html +1 -1
  81. package/docs/functions/ItemLabelPlugin.html +1 -1
  82. package/docs/functions/MapviewFloorplanPlugin.html +1 -1
  83. package/docs/functions/MeasurePlugin.html +1 -1
  84. package/docs/functions/ModelChassisCompassPlugin.html +2 -2
  85. package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
  86. package/docs/functions/ModelFloorplanPlugin.html +1 -1
  87. package/docs/functions/ModelItemLabelPlugin.html +1 -1
  88. package/docs/functions/ModelMakerPlugin.html +1 -1
  89. package/docs/functions/ModelRoomLabelPlugin.html +1 -1
  90. package/docs/functions/ModelTVVideoPlugin.html +1 -1
  91. package/docs/functions/ModelViewPlugin.html +2 -2
  92. package/docs/functions/MovePlugin.html +1 -1
  93. package/docs/functions/Object3DHelperPlugin.html +1 -1
  94. package/docs/functions/PanoCompassPlugin.html +1 -1
  95. package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
  96. package/docs/functions/PanoDoorLabelPlugin.html +1 -1
  97. package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
  98. package/docs/functions/PanoMeasurePlugin.html +1 -1
  99. package/docs/functions/PanoRulerPlugin.html +2 -2
  100. package/docs/functions/PanoRulerProPlugin.html +2 -2
  101. package/docs/functions/PanoSpatialTagPlugin.html +2 -2
  102. package/docs/functions/PanoTagPlugin.html +1 -1
  103. package/docs/functions/PanoVideoPlugin.html +2 -2
  104. package/docs/functions/PipelinePlugin.html +1 -1
  105. package/docs/functions/SculptPlugin.html +2 -2
  106. package/docs/functions/TopviewFloorplanPlugin.html +1 -1
  107. package/docs/functions/Util.absoluteUrl.html +2 -2
  108. package/docs/functions/Util.awaitNextFrame.html +1 -1
  109. package/docs/functions/Util.blink.html +2 -2
  110. package/docs/functions/Util.bounding.html +1 -1
  111. package/docs/functions/Util.boundingBox.html +1 -1
  112. package/docs/functions/Util.boundingSphere.html +1 -1
  113. package/docs/functions/Util.boxVertex.html +2 -2
  114. package/docs/functions/Util.boxVertexes.html +1 -1
  115. package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
  116. package/docs/functions/Util.convexHull.html +2 -2
  117. package/docs/functions/Util.equal.html +2 -2
  118. package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
  119. package/docs/functions/Util.getCoordsFromClient.html +1 -1
  120. package/docs/functions/Util.getCoordsFromElement.html +1 -1
  121. package/docs/functions/Util.getFrameTime.html +2 -2
  122. package/docs/functions/Util.getIntersectFromRelativePosition.html +1 -1
  123. package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -1
  124. package/docs/functions/Util.initialCSS3DRender.html +1 -1
  125. package/docs/functions/Util.inside.html +1 -1
  126. package/docs/functions/Util.isAbsoluteURL.html +1 -1
  127. package/docs/functions/Util.isModelLike.html +1 -1
  128. package/docs/functions/Util.isNil.html +2 -2
  129. package/docs/functions/Util.isPanoramaLike.html +1 -1
  130. package/docs/functions/Util.lookObject.html +2 -2
  131. package/docs/functions/Util.lookPoint.html +2 -2
  132. package/docs/functions/Util.nextFrame.html +1 -1
  133. package/docs/functions/Util.notNil.html +2 -2
  134. package/docs/functions/Util.reblink.html +2 -2
  135. package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
  136. package/docs/functions/Util.sculpt.createBox.html +1 -1
  137. package/docs/functions/Util.sculpt.createCircle.html +1 -1
  138. package/docs/functions/Util.sculpt.createCylinder.html +1 -1
  139. package/docs/functions/Util.sculpt.createLine.html +2 -2
  140. package/docs/functions/Util.sculpt.createPoint.html +1 -1
  141. package/docs/functions/Util.sculpt.createPolygon.html +1 -1
  142. package/docs/functions/Util.sculpt.createPrism.html +1 -1
  143. package/docs/functions/Util.sculpt.createRectangle.html +2 -2
  144. package/docs/functions/Util.tag.html +1 -1
  145. package/docs/functions/Util.tweenProgress.html +1 -1
  146. package/docs/functions/Util.uuid.html +2 -2
  147. package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
  148. package/docs/functions/Util.worldBounding.html +1 -1
  149. package/docs/functions/Util.worldBoundingBox.html +1 -1
  150. package/docs/functions/Util.worldBoundingSphere.html +1 -1
  151. package/docs/functions/createPolyline.html +2 -2
  152. package/docs/functions/pluginFlag.html +1 -1
  153. package/docs/hierarchy.html +1 -1
  154. package/docs/index.html +2 -2
  155. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
  156. package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
  157. package/docs/interfaces/AreaMakerPluginType.EventMap.html +12 -12
  158. package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
  159. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +4 -4
  160. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
  161. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
  162. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
  163. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
  164. package/docs/interfaces/AreaMakerPluginType.State.html +5 -5
  165. package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
  166. package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
  167. package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
  168. package/docs/interfaces/ContentTypeMapInterface.html +15 -15
  169. package/docs/interfaces/CruisePluginTypes.Config.html +4 -4
  170. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
  171. package/docs/interfaces/CruisePluginTypes.EventMap.html +17 -17
  172. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
  173. package/docs/interfaces/CruisePluginTypes.MoveAction.html +8 -8
  174. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +9 -9
  175. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +10 -10
  176. package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
  177. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
  178. package/docs/interfaces/CruisePluginTypes.PluginState.html +7 -7
  179. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +7 -7
  180. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +8 -8
  181. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
  182. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
  183. package/docs/interfaces/CurrentPanoImagePluginType.State.html +4 -4
  184. package/docs/interfaces/FloorplanBounding.html +5 -5
  185. package/docs/interfaces/FloorplanData.html +3 -3
  186. package/docs/interfaces/FloorplanEntrance.html +8 -8
  187. package/docs/interfaces/FloorplanExtraObject.html +5 -5
  188. package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
  189. package/docs/interfaces/FloorplanFloorData.html +3 -3
  190. package/docs/interfaces/FloorplanImagePosition.html +3 -3
  191. package/docs/interfaces/FloorplanObserver.html +3 -3
  192. package/docs/interfaces/FloorplanOutlineItem.html +3 -3
  193. package/docs/interfaces/FloorplanPosition.html +3 -3
  194. package/docs/interfaces/FloorplanRoomItem.html +9 -9
  195. package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
  196. package/docs/interfaces/FloorplanServerBounding.html +5 -5
  197. package/docs/interfaces/FloorplanServerComputedData.html +2 -2
  198. package/docs/interfaces/FloorplanServerData.html +3 -3
  199. package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
  200. package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
  201. package/docs/interfaces/FloorplanServerEntrance.html +8 -8
  202. package/docs/interfaces/FloorplanServerFloorData.html +3 -3
  203. package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
  204. package/docs/interfaces/FloorplanServerObserver.html +3 -3
  205. package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
  206. package/docs/interfaces/FloorplanServerPosition.html +3 -3
  207. package/docs/interfaces/FloorplanServerRoomItem.html +10 -10
  208. package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
  209. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
  210. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
  211. package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -5
  212. package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +3 -3
  213. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -5
  214. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
  215. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
  216. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
  217. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
  218. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +16 -16
  219. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
  220. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +19 -19
  221. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
  222. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
  223. package/docs/interfaces/GuideLinePluginType.PluginState.html +4 -4
  224. package/docs/interfaces/GuideLinePluginType.Route.html +6 -6
  225. package/docs/interfaces/HelperOffset.html +2 -2
  226. package/docs/interfaces/ImagePlaneGroup.html +2 -2
  227. package/docs/interfaces/ItemLabelPluginData.html +2 -2
  228. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
  229. package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
  230. package/docs/interfaces/MinMax.html +2 -2
  231. package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
  232. package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
  233. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
  234. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
  235. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
  236. package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
  237. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
  238. package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
  239. package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +12 -0
  240. package/docs/interfaces/ModelMakerPluginType.EventMap.html +10 -10
  241. package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +16 -0
  242. package/docs/interfaces/ModelMakerPluginType.ServerBaseItemData.html +10 -0
  243. package/docs/interfaces/ModelMakerPluginType.ServerBoxItemData.html +10 -0
  244. package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -2
  245. package/docs/interfaces/ModelMakerPluginType.ServerPrismItemData.html +10 -0
  246. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItemData.html +10 -0
  247. package/docs/interfaces/ModelMakerPluginType.State.html +5 -5
  248. package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +10 -0
  249. package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
  250. package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
  251. package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
  252. package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
  253. package/docs/interfaces/ModelViewPluginExportType.html +2 -2
  254. package/docs/interfaces/Object3DHelperState.html +2 -2
  255. package/docs/interfaces/ObjectHelperControllers.html +2 -2
  256. package/docs/interfaces/PaintBrushAction.html +7 -7
  257. package/docs/interfaces/PaintBrushConfigs.html +2 -2
  258. package/docs/interfaces/PaintBrushState.html +2 -2
  259. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  260. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  261. package/docs/interfaces/PanoMeasureParameterType.html +6 -6
  262. package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
  263. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
  264. package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
  265. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
  266. package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
  267. package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
  268. package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
  269. package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
  270. package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
  271. package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
  272. package/docs/interfaces/PanoRulerProPluginState.html +2 -2
  273. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  274. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  275. package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
  276. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
  277. package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
  278. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
  279. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
  280. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
  281. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
  282. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
  283. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -5
  284. package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
  285. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  286. package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
  287. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -5
  288. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +7 -7
  289. package/docs/interfaces/PluginEventMap.html +4 -4
  290. package/docs/interfaces/Point.html +2 -2
  291. package/docs/interfaces/Room.html +2 -2
  292. package/docs/interfaces/RoomInfo.html +2 -2
  293. package/docs/interfaces/RoomLabel.html +7 -7
  294. package/docs/interfaces/RoomRules.html +1 -1
  295. package/docs/interfaces/Rooms.html +1 -1
  296. package/docs/interfaces/Scissor.html +6 -6
  297. package/docs/interfaces/State.html +4 -4
  298. package/docs/interfaces/TagCacheInterface.html +3 -3
  299. package/docs/interfaces/TagConfig.html +10 -10
  300. package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
  301. package/docs/interfaces/TagIconUrl.html +9 -9
  302. package/docs/interfaces/TagObjectGroup.html +2 -2
  303. package/docs/interfaces/TagStyle.html +2 -2
  304. package/docs/interfaces/Tags.html +4 -4
  305. package/docs/interfaces/TemporaryState.html +2 -2
  306. package/docs/interfaces/Util.AnimeInstance.html +2 -2
  307. package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
  308. package/docs/interfaces/Util.EventHandlerConfig.html +5 -5
  309. package/docs/interfaces/Util.FiveDomEvent.html +2 -2
  310. package/docs/interfaces/Util.FiveDomEventMap.html +10 -10
  311. package/docs/interfaces/Util.LegacyMouseGroupParameter.html +2 -2
  312. package/docs/interfaces/Util.MagnifierParameter.html +5 -5
  313. package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
  314. package/docs/interfaces/Util.PointIntersection.html +11 -11
  315. package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
  316. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
  317. package/docs/modules/AreaMakerPluginType.html +2 -2
  318. package/docs/modules/CruisePluginTypes.html +2 -2
  319. package/docs/modules/CurrentPanoImagePluginType.html +2 -2
  320. package/docs/modules/GuideLineItem.html +2 -2
  321. package/docs/modules/GuideLineModeItem.html +2 -2
  322. package/docs/modules/GuideLinePluginType.html +2 -2
  323. package/docs/modules/ModelMakerPluginType.html +12 -7
  324. package/docs/modules/PanoVideoPluginType.html +2 -2
  325. package/docs/modules/SculptData.html +2 -2
  326. package/docs/modules/SculptType.html +2 -2
  327. package/docs/modules/Util.html +2 -2
  328. package/docs/modules/Util.sculpt.html +2 -2
  329. package/docs/modules.html +2 -2
  330. package/docs/types/AddObject3DHelperConfig.html +2 -2
  331. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
  332. package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
  333. package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
  334. package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
  335. package/docs/types/ArrayPosition.html +1 -1
  336. package/docs/types/AudioAppearance.html +1 -1
  337. package/docs/types/CSS3DRenderExportType.html +1 -1
  338. package/docs/types/CSS3DRenderPluginExportType.html +1 -1
  339. package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
  340. package/docs/types/ClassFunctionParameters.html +1 -1
  341. package/docs/types/Color.html +1 -1
  342. package/docs/types/ContentTypeConfigKey.html +1 -1
  343. package/docs/types/ContentTypeConfigKeySplit.html +1 -1
  344. package/docs/types/ContentTypeMap.html +1 -1
  345. package/docs/types/Create3DDomContainerReturnType.html +1 -1
  346. package/docs/types/Create3DElementReturnType.html +1 -1
  347. package/docs/types/CruisePluginExportType.html +1 -1
  348. package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
  349. package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
  350. package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
  351. package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
  352. package/docs/types/DeprecatedTagProperty.html +2 -2
  353. package/docs/types/Direction-1.html +1 -1
  354. package/docs/types/Direction4.html +1 -1
  355. package/docs/types/ElementRenderer.html +2 -2
  356. package/docs/types/FloorplanRuleLabels.html +2 -2
  357. package/docs/types/FloorplanServerRuleLabels.html +1 -1
  358. package/docs/types/GuideLinePluginExportType.html +1 -1
  359. package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
  360. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
  361. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
  362. package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
  363. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
  364. package/docs/types/GuideLinePluginType.PathItem.html +2 -2
  365. package/docs/types/GuideLinePluginType.PluginData.html +2 -2
  366. package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
  367. package/docs/types/HelperEventMap.html +1 -1
  368. package/docs/types/InternalHelperEventMap.html +1 -1
  369. package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
  370. package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
  371. package/docs/types/MeasurePluginConfig.html +1 -1
  372. package/docs/types/MediaData.html +2 -2
  373. package/docs/types/MediaStore.html +1 -1
  374. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
  375. package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
  376. package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
  377. package/docs/types/ModelId.html +1 -1
  378. package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
  379. package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
  380. package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -0
  381. package/docs/types/ModelMakerPluginType.ServerItemData.html +2 -0
  382. package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
  383. package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
  384. package/docs/types/MoveArgs.html +2 -2
  385. package/docs/types/MoveOpts.html +2 -2
  386. package/docs/types/Object3DHelperEventMap.html +1 -1
  387. package/docs/types/ObjectFit.html +1 -1
  388. package/docs/types/PaintBrushEventMap.html +1 -1
  389. package/docs/types/PanoCompassPluginData.html +1 -1
  390. package/docs/types/PanoCompassPluginExportType.html +1 -1
  391. package/docs/types/PanoCompassPluginParameterType.html +1 -1
  392. package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
  393. package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
  394. package/docs/types/PanoIndex.html +1 -1
  395. package/docs/types/PanoMeasurePluginEvent.html +1 -1
  396. package/docs/types/PanoMeasureReturnType.html +1 -1
  397. package/docs/types/PanoSpatialTagPluginId.html +1 -1
  398. package/docs/types/PanoTagPluginExportInterface.html +1 -1
  399. package/docs/types/PanoTagPluginParamsInterface.html +1 -1
  400. package/docs/types/PanoVideoPluginParameterType.html +1 -1
  401. package/docs/types/PanoVideoPluginReturnType.html +1 -1
  402. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
  403. package/docs/types/PipelinePluginParameterType.html +1 -1
  404. package/docs/types/PipelinePluginReturnType.html +1 -1
  405. package/docs/types/PlaneTag.html +2 -2
  406. package/docs/types/Point2DTag.html +2 -2
  407. package/docs/types/Point3DTag.html +2 -2
  408. package/docs/types/PointTagInstance.html +1 -1
  409. package/docs/types/Position.html +1 -1
  410. package/docs/types/PositionFrom.html +1 -1
  411. package/docs/types/RotateArgs.html +2 -2
  412. package/docs/types/RotateOpts.html +2 -2
  413. package/docs/types/RuleLabelsKey.html +1 -1
  414. package/docs/types/RuleLabelsValue.html +1 -1
  415. package/docs/types/ScaleCallback.html +1 -1
  416. package/docs/types/ScalePosition.html +2 -2
  417. package/docs/types/SculptData.BoxData.html +1 -1
  418. package/docs/types/SculptData.CircleData.html +1 -1
  419. package/docs/types/SculptData.CylinderData.html +1 -1
  420. package/docs/types/SculptData.PointData.html +1 -1
  421. package/docs/types/SculptData.PolygonData.html +1 -1
  422. package/docs/types/SculptData.PolylineData.html +1 -1
  423. package/docs/types/SculptData.PrismData.html +1 -1
  424. package/docs/types/SculptData.RectangleData.html +1 -1
  425. package/docs/types/SculptType.Theme.html +2 -2
  426. package/docs/types/StickType.html +1 -1
  427. package/docs/types/Tag.html +2 -2
  428. package/docs/types/Tag2D.html +2 -2
  429. package/docs/types/Tag3D.html +2 -2
  430. package/docs/types/TagClickParams.html +1 -1
  431. package/docs/types/TagConfigByKey.html +1 -1
  432. package/docs/types/TagContentType.html +1 -1
  433. package/docs/types/TagContentTypeMapping.html +1 -1
  434. package/docs/types/TagDimensionType.html +1 -1
  435. package/docs/types/TagElement.html +2 -2
  436. package/docs/types/TagEvents.html +1 -1
  437. package/docs/types/TagGLTFObject.html +1 -1
  438. package/docs/types/TagHooks.html +1 -1
  439. package/docs/types/TagId.html +1 -1
  440. package/docs/types/TagInstance.html +1 -1
  441. package/docs/types/TagPointType.html +2 -2
  442. package/docs/types/TagRendererMap.html +1 -1
  443. package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
  444. package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
  445. package/docs/types/Util.ActionIfNoIntersection.html +1 -1
  446. package/docs/types/Util.AdherePoint.html +2 -2
  447. package/docs/types/Util.PointSelectorConfig.html +1 -1
  448. package/docs/types/WorkCode.html +1 -1
  449. package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
  450. package/docs/variables/PLUGIN.html +1 -1
  451. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
  452. package/docs/variables/ROOM_TYPE_MAP.html +2 -2
  453. package/docs/variables/Util.animeMap.html +1 -1
  454. package/docs/variables/defaultGlobalConfig.html +1 -1
  455. package/docs/variables/itemLabelPluginServerParams.html +1 -1
  456. package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
  457. package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
  458. package/libs/ModelMakerPlugin/Controller.d.ts +39 -13
  459. package/libs/ModelMakerPlugin/Controller.js +228 -156
  460. package/libs/ModelMakerPlugin/item/baseItem.d.ts +31 -14
  461. package/libs/ModelMakerPlugin/item/baseItem.js +4 -4
  462. package/libs/ModelMakerPlugin/item/boxItem.d.ts +13 -3
  463. package/libs/ModelMakerPlugin/item/boxItem.js +4 -4
  464. package/libs/ModelMakerPlugin/item/polygonItem.d.ts +13 -3
  465. package/libs/ModelMakerPlugin/item/polygonItem.js +3 -4
  466. package/libs/ModelMakerPlugin/item/prismItem.d.ts +12 -2
  467. package/libs/ModelMakerPlugin/typings/data.d.ts +78 -46
  468. package/libs/ModelMakerPlugin/typings/index.d.ts +5 -2
  469. package/libs/Sculpt/Meshes/Line.js +1 -4
  470. package/libs/Sculpt/Meshes/LineWithDots.d.ts +15 -0
  471. package/libs/Sculpt/Meshes/PolygonWithEdge.js +37 -34
  472. package/libs/Sculpt/Meshes/Prism.d.ts +1 -1
  473. package/libs/Sculpt/Meshes/Prism.js +9 -12
  474. package/libs/base/BasePlugin.js +1 -1
  475. package/libs/shared-utils/logger.js +1 -1
  476. package/libs/shared-utils/tag.d.ts +1 -2
  477. package/libs/shared-utils/tag.js +17 -16
  478. package/libs/vendor/@tweenjs/tween/dist/tween.esm.js.js +4 -4
  479. package/package.json +16 -12
  480. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +0 -5
  481. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +0 -12
  482. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +0 -14
  483. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +0 -11
@@ -1,13 +1,12 @@
1
1
  import type { Five, Mode as FiveMode } from '@realsee/five';
2
2
  import * as BasePlugin from '../base/BasePluginWithData';
3
- import type * as PluginType from './typings';
4
- import * as THREE from 'three';
5
- import type { ModelMakerBaseItem } from './item/baseItem';
6
- export declare class Controller extends BasePlugin.Controller<PluginType.State, PluginType.EventMap, PluginType.ServerData, PluginType.ServerData> {
7
- state: PluginType.State;
8
- items: ModelMakerBaseItem[];
9
- group: THREE.Group;
10
- protected data: PluginType.ServerData;
3
+ import { Group } from 'three';
4
+ import type { MarkerItem, State, ServerData, ItemType, ElementRenderer, EventMap } from './typings';
5
+ export declare class Controller extends BasePlugin.Controller<State, EventMap, ServerData, ServerData> {
6
+ state: State;
7
+ items: MarkerItem[];
8
+ group: Group;
9
+ protected data: ServerData;
11
10
  private tagRendererMap;
12
11
  private fiveDomEvents;
13
12
  private zFightingOffset;
@@ -15,6 +14,8 @@ export declare class Controller extends BasePlugin.Controller<PluginType.State,
15
14
  private occlusionVisibility;
16
15
  private occlusionMode;
17
16
  private fiveEveryReadyListenerDisposer?;
17
+ private originalOpacities;
18
+ private originalTagOpacities;
18
19
  constructor(five: Five, config?: {
19
20
  tagContainerZIndex?: number;
20
21
  /**
@@ -30,18 +31,43 @@ export declare class Controller extends BasePlugin.Controller<PluginType.State,
30
31
  */
31
32
  occlusionMode?: 'translucence' | 'depthTest';
32
33
  });
33
- load(serverData: PluginType.ServerData): Promise<void>;
34
- setState(targetState: Partial<PluginType.State>): void;
35
- getItemById(id: string | number): ModelMakerBaseItem;
36
- registerTagRenderer(map: Partial<Record<PluginType.ItemType, PluginType.ElementRenderer>>): void;
37
- hasCustomTagRenderer(map: PluginType.ItemType): boolean;
34
+ load(serverData: ServerData): Promise<void>;
35
+ setState(targetState: Partial<State>): void;
36
+ getItemById(id: string | number): MarkerItem;
37
+ registerTagRenderer(map: Partial<Record<ItemType, ElementRenderer>>): void;
38
+ hasCustomTagRenderer(map: ItemType): boolean;
38
39
  enable(): void;
39
40
  disable(): void;
40
41
  show(): void;
41
42
  hide(): void;
42
43
  clear(): void;
44
+ /**
45
+ * 设置所有模型的透明度
46
+ * @param opacityPercent 透明度系数,范围0-1,1表示保持原始透明度,0表示完全透明
47
+ * @param options 可选参数
48
+ * @param options.type 模型类型,可选值为'box'、'prism'、'triangles'
49
+ * @param options.id 模型id
50
+ */
51
+ setModelsOpacity(opacityPercent: number, options?: {
52
+ type?: ItemType | ItemType[];
53
+ id?: number;
54
+ }): void;
43
55
  dispose(): void;
44
56
  protected onWorkCodeChange(): void;
57
+ /**
58
+ * 设置棱柱体模型的透明度
59
+ * @param id 模型id
60
+ * @param model 模型对象
61
+ * @param opacityPercent 透明度系数,范围0-1
62
+ */
63
+ private setPrismModelOpacity;
64
+ /**
65
+ * 设置多边形模型的透明度
66
+ * @param id 模型id
67
+ * @param model 模型对象
68
+ * @param opacityPercent 透明度系数,范围0-1
69
+ */
70
+ private setPolygonModelOpacity;
45
71
  private onFiveModeChange;
46
72
  private handleShow;
47
73
  private handleHide;
@@ -1,58 +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 x = Object.defineProperty;
2
+ var T = Object.getOwnPropertySymbols;
3
+ var k = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
4
+ var E = (h, l, t) => l in h ? x(h, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[l] = t, M = (h, l) => {
5
+ for (var t in l || (l = {}))
6
+ k.call(l, t) && E(h, t, l[t]);
7
+ if (T)
8
+ for (var t of T(l))
9
+ F.call(l, t) && E(h, t, l[t]);
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 p = (h, l, t) => (E(h, typeof l != "symbol" ? l + "" : l, t), t);
13
+ var w = (h, l, t) => new Promise((s, e) => {
14
+ var r = (i) => {
15
15
  try {
16
- o(e.next(t));
17
- } catch (r) {
18
- a(r);
16
+ n(t.next(i));
17
+ } catch (a) {
18
+ e(a);
19
19
  }
20
- }, n = (t) => {
20
+ }, o = (i) => {
21
21
  try {
22
- o(e.throw(t));
23
- } catch (r) {
24
- a(r);
22
+ n(t.throw(i));
23
+ } catch (a) {
24
+ e(a);
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
+ }, n = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(r, o);
27
+ n((t = t.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";
29
+ import { Controller as W } from "../base/BasePluginWithData.js";
30
+ import { Group as V, Vector3 as b, Euler as P, Quaternion as j, Box3 as A, Color as C } from "three";
31
+ import { ModelMakerBoxItem as L } from "./item/boxItem.js";
32
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";
33
+ import { anyPositionToVector3 as H } from "../shared-utils/positionToVector3.js";
34
+ import { PolygonWithEdgeMesh as B } from "../Sculpt/Meshes/PolygonWithEdge.js";
35
35
  import "../shared-utils/tag.js";
36
36
  import "../vendor/hammerjs/hammer.js";
37
37
  import "../shared-utils/three/PointSelector/index.js";
38
38
  import "../shared-utils/three/CSS3DRenderer/index.js";
39
- import { waitFiveModelLoaded as A } from "../shared-utils/five/fiveModelLoad.js";
39
+ import { waitFiveModelLoaded as z } from "../shared-utils/five/fiveModelLoad.js";
40
40
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
41
41
  import "@realsee/five/line";
42
- import { notNil as v } from "../shared-utils/isNil.js";
42
+ import { notNil as u } from "../shared-utils/isNil.js";
43
43
  import "../shared-utils/three/core/Five_LineMaterial2.js";
44
44
  import { boxVertex as y } from "../shared-utils/three/boundingBox.js";
45
45
  import "../vendor/animejs/lib/anime.es.js";
46
46
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
47
47
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
48
- import { FiveDomEvents as O } from "../shared-utils/five/FiveDomEvents.js";
48
+ import { FiveDomEvents as G } from "../shared-utils/five/FiveDomEvents.js";
49
49
  import "../shared-utils/five/FivePuppet.js";
50
- import { tagRendererMap as B } from "./utils/tagRenderer.js";
51
- import { ModelMakerPrismItem as T } from "./item/prismItem.js";
52
- import { ModelMakerPolygonItem as z } from "./item/polygonItem.js";
53
- import { fiveEveryReadyListener as G } from "../shared-utils/five/fiveEveryReadyListener.js";
54
- import { sleep as N } from "../CruisePlugin/utils/sleep.js";
55
- import { CONST as Q } from "../shared-utils/constants.js";
50
+ import { tagRendererMap as N } from "./utils/tagRenderer.js";
51
+ import { ModelMakerPrismItem as S } from "./item/prismItem.js";
52
+ import { ModelMakerPolygonItem as Q } from "./item/polygonItem.js";
53
+ import { fiveEveryReadyListener as q } from "../shared-utils/five/fiveEveryReadyListener.js";
54
+ import { sleep as U } from "../CruisePlugin/utils/sleep.js";
55
+ import { CONST as Y } from "../shared-utils/constants.js";
56
56
  import "../base/BasePlugin.js";
57
57
  import "../shared-utils/Subscribe.js";
58
58
  import "../shared-utils/three/core/Sphere.js";
@@ -125,153 +125,161 @@ import "../vendor/svelte/internal/index.js";
125
125
  import "../components/AreaLabel/LabelItem.js";
126
126
  import "../components/AreaLabel/Assets/roomLabelBg.js";
127
127
  import "../shared-utils/math/rad2Deg.js";
128
- class Lt extends P {
129
- constructor(e, s) {
130
- var a, i;
131
- super(e);
132
- h(this, "state");
133
- h(this, "items", []);
134
- h(this, "group", new d.Group());
135
- h(this, "data");
136
- h(this, "tagRendererMap", {});
137
- h(this, "fiveDomEvents");
138
- h(this, "zFightingOffset", 0);
139
- h(this, "tagWrapper");
140
- h(this, "occlusionVisibility");
141
- h(this, "occlusionMode");
142
- h(this, "fiveEveryReadyListenerDisposer");
143
- h(this, "onFiveModeChange", (e) => {
128
+ class ze extends W {
129
+ constructor(t, s) {
130
+ var e, r;
131
+ super(t);
132
+ p(this, "state");
133
+ p(this, "items", []);
134
+ p(this, "group", new V());
135
+ p(this, "data");
136
+ p(this, "tagRendererMap", {});
137
+ p(this, "fiveDomEvents");
138
+ p(this, "zFightingOffset", 0);
139
+ p(this, "tagWrapper");
140
+ p(this, "occlusionVisibility");
141
+ p(this, "occlusionMode");
142
+ p(this, "fiveEveryReadyListenerDisposer");
143
+ // 存储每个模型的原始透明度
144
+ p(this, "originalOpacities", /* @__PURE__ */ new Map());
145
+ // 存储标签原始透明度
146
+ p(this, "originalTagOpacities", /* @__PURE__ */ new Map());
147
+ p(this, "onFiveModeChange", (t) => {
144
148
  const s = this.occlusionVisibility;
145
- Array.isArray(s) && this.items.forEach((a) => {
146
- a.type !== "triangles" && a.model.setStyle instanceof Function && a.model.setStyle({ occlusionVisibility: s.includes(e) });
149
+ Array.isArray(s) && this.items.forEach((e) => {
150
+ e.type !== "triangles" && e.model.setStyle instanceof Function && e.model.setStyle({ occlusionVisibility: s.includes(t) });
147
151
  });
148
152
  });
149
- h(this, "handleEnable", () => {
150
- var e, s;
151
- 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);
153
+ p(this, "handleEnable", () => {
154
+ var t, s;
155
+ this.five.scene.add(this.group), (s = (t = this.five.getElement()) == null ? void 0 : t.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 = q(this.five, this.onFiveEveryReady);
152
156
  });
153
- h(this, "handleDisable", () => {
157
+ p(this, "handleDisable", () => {
154
158
  this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0, this.five.off("modeChange", this.onFiveModeChange), this.fiveEveryReadyListenerDisposer();
155
159
  });
156
- h(this, "onFiveEveryReady", () => w(this, null, function* () {
160
+ p(this, "onFiveEveryReady", () => w(this, null, function* () {
157
161
  if (this.five.state.mode === "Panorama")
158
162
  return;
159
- const e = this.items.filter((t) => t instanceof T).map((t) => t.tag), s = e.filter((t) => t.position && t.visible && t.enabled);
160
- yield N(0);
161
- 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);
162
- e.forEach((t) => {
163
- t.visibles[2] = void 0;
164
- }), i.forEach((t) => {
165
- if (t.visibles[1] === !1)
163
+ const t = this.items.filter((i) => i instanceof S).map((i) => i.tag), s = t.filter((i) => i.position && i.visible && i.enabled);
164
+ yield U(0);
165
+ const e = this.five.camera.position.clone(), r = s.sort((i, a) => e.distanceTo(i.position) - e.distanceTo(a.position)), o = [], n = (i, a) => !(i.right < a.left || i.left > a.right || i.bottom < a.top || i.top > a.bottom);
166
+ t.forEach((i) => {
167
+ i.visibles[2] = void 0;
168
+ }), r.forEach((i) => {
169
+ if (i.visibles[1] === !1)
166
170
  return;
167
- const r = t.container.getElementsByClassName("room-label-item__text")[0];
168
- if (!r)
171
+ const a = i.container.getElementsByClassName("room-label-item__text")[0];
172
+ if (!a)
169
173
  return;
170
- const c = r.getBoundingClientRect();
171
- n.every((m) => !o(m.boundingClientRect, c)) ? (n.push({ tag: t, boundingClientRect: c }), t.visibles[2] = !0) : t.visibles[2] = !1, t.needsRender = !0;
174
+ const d = a.getBoundingClientRect();
175
+ o.every((c) => !n(c.boundingClientRect, d)) ? (o.push({ tag: i, boundingClientRect: d }), i.visibles[2] = !0) : i.visibles[2] = !1, i.needsRender = !0;
172
176
  });
173
177
  }));
174
- h(this, "updateTagRenderer", () => {
175
- this.items.forEach((e) => {
176
- var a;
177
- const s = (a = this.tagRendererMap[e.type]) != null ? a : B[e.type];
178
- 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));
178
+ p(this, "updateTagRenderer", () => {
179
+ this.items.forEach((t) => {
180
+ var e;
181
+ const s = (e = this.tagRendererMap[t.type]) != null ? e : N[t.type];
182
+ s && t.__renderer !== s && (t.__renderer = s, typeof t.__disposeRenderer == "function" && t.__disposeRenderer(), t.tag.container.innerHTML = "", t.__disposeRenderer = s(t.tag.container, t, this.five));
179
183
  });
180
184
  });
181
- 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 = (() => {
182
- var o;
183
- const n = document.createElement("div");
184
- 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;
185
- })(), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
185
+ this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (e = s == null ? void 0 : s.occlusionVisibility) != null ? e : !1, this.occlusionMode = (r = s == null ? void 0 : s.occlusionMode) != null ? r : "translucence", this.fiveDomEvents = new G(t, { noEmitWhenHide: !0, noEmitWhenNotInScene: !0 }), this.tagWrapper = (() => {
186
+ var n;
187
+ const o = document.createElement("div");
188
+ return o.style.position = "absolute", o.style.top = "0", o.style.left = "0", o.style.width = "100%", o.style.height = "100%", o.style.pointerEvents = "none", o.style.zIndex = `${(n = s == null ? void 0 : s.tagContainerZIndex) != null ? n : ""}`, o;
189
+ })(), t.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
186
190
  }
187
- load(e) {
191
+ load(t) {
188
192
  return w(this, null, function* () {
189
- var a;
190
- if (this.clear(), this.data = e, yield A(this.five), this.data !== e)
193
+ if (this.clear(), this.data = t, this.originalOpacities.clear(), yield z(this.five), this.data !== t)
191
194
  return;
192
195
  this.clear();
193
- const s = (i) => {
194
- var r;
195
- const n = i.object_data.color ? new d.Color().setHex(parseInt(i.object_data.color.slice(1), 16)) : new d.Color(1, 1, 1);
196
- let o = typeof this.occlusionVisibility == "boolean" ? this.occlusionVisibility : !1, t = this.occlusionMode;
197
- return i.type === "triangles" && (o = !0, t = "depthTest"), {
198
- color: n,
199
- lineColor: n,
200
- opacity: ((r = i.object_data.opacity) != null ? r : 0.4) / 2,
196
+ const s = (e) => {
197
+ var a;
198
+ const r = e.object_data.color ? new C().setHex(parseInt(e.object_data.color.slice(1), 16)) : new C(1, 1, 1);
199
+ let o = typeof this.occlusionVisibility == "boolean" ? this.occlusionVisibility : !1, n = this.occlusionMode;
200
+ e.type === "triangles" && (o = !0, n = "depthTest");
201
+ const i = ((a = e.object_data.opacity) != null ? a : 0.4) / 2;
202
+ return e.id && this.originalOpacities.set(e.id.toString(), {
203
+ opacity: i,
204
+ lineOpacity: 1
205
+ }), {
206
+ color: r,
207
+ lineColor: r,
208
+ opacity: i,
201
209
  lineOpacity: 1,
202
210
  lineWidth: 1,
203
211
  occlusionVisibility: o,
204
- occlusionMode: t
212
+ occlusionMode: n
205
213
  };
206
214
  };
207
- (a = e == null ? void 0 : e.list) == null || a.forEach((i) => {
208
- var n;
209
- if (i.type === "triangles") {
210
- const o = new H();
211
- 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());
212
- const t = new z({
213
- five: this.five,
214
- tagWrapper: this.tagWrapper,
215
- model: o,
216
- group: this.group,
217
- type: i.type,
218
- rawData: i,
219
- fiveDomEvents: this.fiveDomEvents
220
- });
221
- this.items.push(t);
222
- } else if (i.type === "prism") {
223
- const o = new I();
224
- v(i.id) && (o.uuid = i.id.toString()), this.zFightingOffset += Q.Z_FIGHTING_OFFSET;
225
- const t = i.object_data.points.map((m) => {
226
- var g;
227
- return [m[0], m[1] + ((g = i.object_data.fixedY) != null ? g : 0), m[2]];
228
- });
229
- t.push(t[0]);
230
- 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));
231
- o.setPoints({ points: t, heightPoint: c }), o.setStyle(s(i));
232
- const u = new T({
233
- five: this.five,
234
- tagWrapper: this.tagWrapper,
235
- model: o,
236
- group: this.group,
237
- type: i.type,
238
- rawData: i,
239
- fiveDomEvents: this.fiveDomEvents
240
- });
241
- this.items.push(u);
242
- } else if (i.type === "box") {
243
- const o = new I();
244
- v(i.id) && (o.uuid = i.id.toString());
245
- 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));
246
- o.setPoints({
247
- points: [y(f, 2), y(f, 3), y(f, 7), y(f, 6)],
248
- heightPoint: y(f, 1)
249
- }), o.position.copy(_), o.quaternion.copy(R), o.setStyle(s(i));
250
- const W = new j({
251
- five: this.five,
252
- tagWrapper: this.tagWrapper,
253
- model: o,
254
- group: this.group,
255
- type: i.type,
256
- rawData: i,
257
- fiveDomEvents: this.fiveDomEvents
258
- });
259
- this.items.push(W);
215
+ this.items = t.list.map((e) => {
216
+ var r;
217
+ switch (e.type) {
218
+ case "triangles": {
219
+ const o = new B();
220
+ return u(e.id) && (o.uuid = e.id.toString()), o.setPoints(e.object_data.points, { checkLinesIntersect: !1 }), o.setStyle(s(e)), this.fiveDomEvents.addEventListener(o, "hover", () => o.highlight()), this.fiveDomEvents.addEventListener(o, "unHover", () => o.unhighlight()), new Q({
221
+ five: this.five,
222
+ tagWrapper: this.tagWrapper,
223
+ model: o,
224
+ group: this.group,
225
+ type: e.type,
226
+ rawData: e,
227
+ fiveDomEvents: this.fiveDomEvents
228
+ });
229
+ }
230
+ case "prism": {
231
+ const o = new I();
232
+ u(e.id) && (o.uuid = e.id.toString()), this.zFightingOffset += Y.Z_FIGHTING_OFFSET;
233
+ const n = e.object_data.points.map((m) => {
234
+ var c;
235
+ return [m[0], m[1] + ((c = e.object_data.fixedY) != null ? c : 0), m[2]];
236
+ });
237
+ n.push(n[0]);
238
+ const i = e.object_data.height + ((r = e.object_data.fixedHeight) != null ? r : 0) + this.zFightingOffset, a = H(n[0]).add(new b().setY(i));
239
+ return o.setPoints({ points: n, heightPoint: a }), o.setStyle(s(e)), new S({
240
+ five: this.five,
241
+ tagWrapper: this.tagWrapper,
242
+ model: o,
243
+ group: this.group,
244
+ type: e.type,
245
+ rawData: e,
246
+ fiveDomEvents: this.fiveDomEvents
247
+ });
248
+ }
249
+ case "box": {
250
+ const o = new I();
251
+ u(e.id) && (o.uuid = e.id.toString());
252
+ const { start: n, end: i, rotation: a = [0, 0, 0, 0] } = e.object_data, d = new b().fromArray(n), m = new b().fromArray(i), c = new P().fromArray(a), f = new j().setFromEuler(c), v = f.clone().inverse(), O = new b().lerpVectors(d, m, 0.5), R = O.clone().negate(), _ = d.clone().add(R).applyQuaternion(v), D = m.clone().add(R).applyQuaternion(v), g = new A(_.clone().max(D), _.clone().min(D));
253
+ return o.setPoints({
254
+ points: [y(g, 2), y(g, 3), y(g, 7), y(g, 6)],
255
+ heightPoint: y(g, 1)
256
+ }), o.position.copy(O), o.quaternion.copy(f), o.setStyle(s(e)), new L({
257
+ five: this.five,
258
+ tagWrapper: this.tagWrapper,
259
+ model: o,
260
+ group: this.group,
261
+ type: e.type,
262
+ rawData: e,
263
+ fiveDomEvents: this.fiveDomEvents
264
+ });
265
+ }
266
+ default:
267
+ return null;
260
268
  }
261
- }), 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;
269
+ }).filter(Boolean), this.state.enabled ? this.handleEnable() : this.handleDisable(), this.state.visible ? this.handleShow() : this.handleHide(), this.updateTagRenderer(), this.hooks.emit("dataLoaded", t), this.five.needsRender = !0;
262
270
  });
263
271
  }
264
- setState(e) {
265
- 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: "我不知道捏" }));
272
+ setState(t) {
273
+ u(t.enabled) && this.state.enabled !== t.enabled && (this.state.enabled = t.enabled, t.enabled ? this.handleEnable() : this.handleDisable(), this.hooks.emit(t.enabled ? "enable" : "disable", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" })), u(t.visible) && this.state.visible !== t.visible && (this.state.visible = t.visible, t.visible ? this.handleShow() : this.handleHide(), this.hooks.emit(t.visible ? "show" : "hide", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" }));
266
274
  }
267
- getItemById(e) {
268
- return this.items.find((s) => s.rawData.id === e);
275
+ getItemById(t) {
276
+ return this.items.find((s) => s.rawData.id === t);
269
277
  }
270
- registerTagRenderer(e) {
271
- this.tagRendererMap = E(E({}, this.tagRendererMap), e), this.updateTagRenderer();
278
+ registerTagRenderer(t) {
279
+ this.tagRendererMap = M(M({}, this.tagRendererMap), t), this.updateTagRenderer();
272
280
  }
273
- hasCustomTagRenderer(e) {
274
- return !!this.tagRendererMap[e];
281
+ hasCustomTagRenderer(t) {
282
+ return !!this.tagRendererMap[t];
275
283
  }
276
284
  enable() {
277
285
  this.setState({ enabled: !0 });
@@ -286,7 +294,51 @@ class Lt extends P {
286
294
  this.setState({ visible: !1 });
287
295
  }
288
296
  clear() {
289
- this.zFightingOffset = 0, this.handleDisable(), this.group.children.length = 0, this.five.needsRender = !0, this.items = [], this.tagWrapper.innerHTML = "", this.fiveDomEvents.clear();
297
+ this.zFightingOffset = 0, this.handleDisable(), this.group.children.length = 0, this.five.needsRender = !0, this.items = [], this.tagWrapper.innerHTML = "", this.fiveDomEvents.clear(), this.originalOpacities.clear(), this.originalTagOpacities.clear();
298
+ }
299
+ /**
300
+ * 设置所有模型的透明度
301
+ * @param opacityPercent 透明度系数,范围0-1,1表示保持原始透明度,0表示完全透明
302
+ * @param options 可选参数
303
+ * @param options.type 模型类型,可选值为'box'、'prism'、'triangles'
304
+ * @param options.id 模型id
305
+ */
306
+ setModelsOpacity(t, s) {
307
+ if (!this.state.enabled)
308
+ return;
309
+ const { type: e, id: r } = s || {}, o = e ? Array.isArray(e) ? e : [e] : [], n = t === 1;
310
+ for (const i of this.items)
311
+ if (!e || o.includes(i.type) || i.rawData.id === r) {
312
+ switch (i.type) {
313
+ case "box":
314
+ case "prism": {
315
+ this.setPrismModelOpacity(i.rawData.id, i.model, t);
316
+ break;
317
+ }
318
+ case "triangles": {
319
+ this.setPolygonModelOpacity(i.rawData.id, i.model, t);
320
+ break;
321
+ }
322
+ }
323
+ if (i.tag) {
324
+ if (!i.tag.visible)
325
+ continue;
326
+ const d = i.rawData.id.toString();
327
+ if (n) {
328
+ const c = this.originalTagOpacities.get(d);
329
+ c !== void 0 && (i.tag.container.style.opacity = c.toString());
330
+ } else {
331
+ if (!this.originalTagOpacities.has(d)) {
332
+ const v = parseFloat(i.tag.container.style.opacity) || 1;
333
+ this.originalTagOpacities.set(d, v);
334
+ }
335
+ const f = (this.originalTagOpacities.get(d) || 1) * t;
336
+ i.tag.container.style.opacity = f.toString();
337
+ }
338
+ (parseFloat(i.tag.container.style.opacity) || 0) < 0.01 ? i.tag.container.style.pointerEvents = "none" : i.tag.container.style.pointerEvents = "auto";
339
+ }
340
+ }
341
+ this.five.needsRender = !0;
290
342
  }
291
343
  dispose() {
292
344
  this.hooks.emit("dispose"), this.clear();
@@ -294,6 +346,26 @@ class Lt extends P {
294
346
  onWorkCodeChange() {
295
347
  this.group.matrix.copy(this.workUtil.transform.clone()), this.group.matrix.decompose(this.group.position, this.group.quaternion, this.group.scale), this.group.updateMatrixWorld();
296
348
  }
349
+ /**
350
+ * 设置棱柱体模型的透明度
351
+ * @param id 模型id
352
+ * @param model 模型对象
353
+ * @param opacityPercent 透明度系数,范围0-1
354
+ */
355
+ setPrismModelOpacity(t, s, e) {
356
+ let { opacity: r, lineOpacity: o } = this.originalOpacities.get(t.toString()) || { opacity: 0.2, lineOpacity: 1 };
357
+ r = r * e, o = o * e, s.setStyle({ opacity: r, lineOpacity: o });
358
+ }
359
+ /**
360
+ * 设置多边形模型的透明度
361
+ * @param id 模型id
362
+ * @param model 模型对象
363
+ * @param opacityPercent 透明度系数,范围0-1
364
+ */
365
+ setPolygonModelOpacity(t, s, e) {
366
+ let { opacity: r, lineOpacity: o } = this.originalOpacities.get(t.toString()) || { opacity: 0.2, lineOpacity: 1 };
367
+ r = r * e, o = o * e, s.setStyle({ opacity: r, lineOpacity: o });
368
+ }
297
369
  handleShow() {
298
370
  this.group.visible = !0, this.tagWrapper.style.display = "block", this.five.needsRender = !0;
299
371
  }
@@ -302,5 +374,5 @@ class Lt extends P {
302
374
  }
303
375
  }
304
376
  export {
305
- Lt as Controller
377
+ ze as Controller
306
378
  };
@@ -1,40 +1,57 @@
1
1
  import type { Five, Mode } from '@realsee/five';
2
- import * as THREE from 'three';
2
+ import type { Object3D } from 'three';
3
+ import { Vector3 } from 'three';
3
4
  import { Subscribe } from '../../shared-utils/Subscribe';
4
5
  import type { LightTag } from '../../shared-utils/tag';
5
6
  import type { FiveDomEvents } from '../../shared-utils/five/FiveDomEvents';
6
- type Event = {
7
+ import type { ServerItemData, ItemType } from '../typings';
8
+ interface ModelWithCenter extends Object3D {
9
+ /** 模型中心点 */
10
+ center?: Vector3;
11
+ }
12
+ /**
13
+ * @description 模型标注的事件类型
14
+ */
15
+ type ModelMakerEvent<ServerData extends ServerItemData> = {
16
+ /** 启用 */
7
17
  enable: () => void;
18
+ /** 禁用 */
8
19
  disable: () => void;
20
+ /** 显示 */
9
21
  show: () => void;
22
+ /** 隐藏 */
10
23
  hide: () => void;
11
- click: (item: ModelMakerBaseItem) => void | boolean;
24
+ /** 点击 */
25
+ click: (item: ModelMakerBaseItem<ServerData>) => void | boolean;
12
26
  };
13
- export declare class ModelMakerBaseItem extends Subscribe<Event> {
27
+ /**
28
+ * @description 模型标注的基类
29
+ */
30
+ export declare class ModelMakerBaseItem<ServerData extends ServerItemData> extends Subscribe<ModelMakerEvent<ServerData>> {
14
31
  get container(): HTMLDivElement;
15
- type: string;
32
+ type: ItemType;
16
33
  tag: LightTag;
17
- rawData: any;
18
- model: THREE.Object3D;
34
+ rawData: ServerData;
35
+ model: ModelWithCenter;
19
36
  get state(): {
20
37
  visible: boolean;
21
38
  enabled: boolean;
22
39
  };
23
40
  visibles: boolean[];
24
41
  protected five: Five;
25
- protected group: THREE.Object3D;
42
+ protected group: Object3D;
26
43
  protected fiveDomEvents: FiveDomEvents;
27
- protected disposers: (() => any)[];
44
+ protected disposers: (() => void)[];
28
45
  constructor(params: {
29
46
  five: Five;
30
- model: THREE.Object3D;
31
- group: THREE.Object3D;
32
- type: string;
47
+ model: ModelWithCenter;
48
+ group: Object3D;
49
+ type: ItemType;
33
50
  fiveDomEvents: FiveDomEvents;
34
- rawData?: any;
51
+ rawData?: ServerData;
35
52
  tagWrapper?: HTMLElement;
36
53
  visibleMode?: Mode[];
37
- position?: THREE.Vector3;
54
+ position?: Vector3;
38
55
  tagContainerZIndex?: number;
39
56
  });
40
57
  show(): void;