@realsee/dnalogel 3.21.2 → 3.23.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 (466) hide show
  1. package/dist/ModelMakerPlugin/Controller.d.ts +26 -0
  2. package/dist/ModelMakerPlugin/index.d.ts +4 -0
  3. package/dist/ModelMakerPlugin/item/baseItem.d.ts +36 -0
  4. package/dist/ModelMakerPlugin/item/boxItem.d.ts +4 -0
  5. package/dist/ModelMakerPlugin/item/polygonItem.d.ts +9 -0
  6. package/dist/ModelMakerPlugin/item/prismItem.d.ts +4 -0
  7. package/dist/ModelMakerPlugin/typings/data.d.ts +41 -0
  8. package/dist/ModelMakerPlugin/typings/index.d.ts +52 -0
  9. package/dist/ModelMakerPlugin/utils/Text.svelte.d.ts +1 -0
  10. package/dist/ModelMakerPlugin/utils/tagRenderer.d.ts +3 -0
  11. package/dist/Sculpt/Meshes/Area.d.ts +2 -23
  12. package/dist/Sculpt/Meshes/Polygon.d.ts +3 -0
  13. package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +22 -0
  14. package/dist/Sculpt/Meshes/Polyline.d.ts +9 -7
  15. package/dist/Sculpt/Meshes/Prism.d.ts +5 -3
  16. package/dist/Sculpt/Objects/Base/index.d.ts +4 -2
  17. package/dist/Sculpt/Objects/Polygon/Editor.d.ts +2 -1
  18. package/dist/Sculpt/Objects/Polyline/Editor.d.ts +3 -6
  19. package/dist/Sculpt/index.d.ts +32 -8
  20. package/dist/Sculpt/typings/utils.type.d.ts +4 -1
  21. package/dist/base/BasePlugin.d.ts +2 -2
  22. package/dist/base/BasePluginWithData.d.ts +0 -2
  23. package/dist/index.cjs.js +54 -54
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.js +4775 -4429
  26. package/dist/index.umd.js +47 -47
  27. package/dist/shared-utils/Object3DHelper/utils/boundingBox.d.ts +12 -0
  28. package/dist/shared-utils/five/FiveDomEvents.d.ts +1 -1
  29. package/dist/shared-utils/five/vector3ToScreen.d.ts +5 -0
  30. package/dist/shared-utils/tag.d.ts +19 -0
  31. package/dist/shared-utils/three/addIfNotExists.d.ts +2 -0
  32. package/dist/shared-utils/three/closeVectors.d.ts +2 -0
  33. package/dist/shared-utils/three/earcut3D.d.ts +2 -0
  34. package/docs/assets/search.js +1 -1
  35. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +7 -5
  36. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +10 -8
  37. package/docs/classes/CSS3DRender.html +5 -3
  38. package/docs/classes/GuideLineItem.GuideLineItem.html +5 -3
  39. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +5 -3
  40. package/docs/classes/ModelMakerPluginType.ModelMakerController.html +561 -0
  41. package/docs/classes/ModelRoomLabelController.html +5 -3
  42. package/docs/classes/MoveController.html +5 -3
  43. package/docs/classes/Object3DHelperController.html +5 -3
  44. package/docs/classes/PaintBrush.html +5 -3
  45. package/docs/classes/PanoMeasurePluginLine.html +5 -3
  46. package/docs/classes/PanoMeasurePluginModel.html +5 -3
  47. package/docs/classes/PanoMeasurePluginPoint.html +5 -3
  48. package/docs/classes/PanoMeasurePluginPolyline.html +5 -3
  49. package/docs/classes/PanoTagPluginController.html +10 -8
  50. package/docs/classes/Sculpt.html +35 -33
  51. package/docs/classes/Util.BetterTween.html +5 -3
  52. package/docs/classes/Util.Interval.html +5 -3
  53. package/docs/classes/Util.LineSegments.html +5 -3
  54. package/docs/classes/Util.Magnifier.html +5 -3
  55. package/docs/classes/Util.Object3D.html +5 -3
  56. package/docs/classes/Util.PointDomHelper.html +5 -3
  57. package/docs/classes/Util.PointHelper.html +5 -3
  58. package/docs/classes/Util.PointSelectorHelper.html +5 -3
  59. package/docs/classes/Util.Rectangle.html +5 -3
  60. package/docs/classes/WalkController.html +5 -3
  61. package/docs/enums/CameraMovementEffect.html +5 -3
  62. package/docs/enums/ContentType.html +5 -3
  63. package/docs/enums/DIRECTION.html +5 -3
  64. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +5 -3
  65. package/docs/enums/DimensionType.html +5 -3
  66. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +5 -3
  67. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +5 -3
  68. package/docs/enums/PaintBrushTypeEnum.html +5 -3
  69. package/docs/enums/PointType.html +5 -3
  70. package/docs/enums/Rotation.html +5 -3
  71. package/docs/functions/AreaMakerPlugin.html +5 -3
  72. package/docs/functions/CSS3DRenderPlugin.html +5 -3
  73. package/docs/functions/CameraMovementPlugin.html +5 -3
  74. package/docs/functions/CruisePlugin.html +5 -3
  75. package/docs/functions/CurrentPanoImagePlugin.html +5 -3
  76. package/docs/functions/GuideLinePlugin.html +5 -3
  77. package/docs/functions/ItemLabelPlugin.html +5 -3
  78. package/docs/functions/MapviewFloorplanPlugin.html +5 -3
  79. package/docs/functions/ModelChassisCompassPlugin.html +5 -3
  80. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -3
  81. package/docs/functions/ModelFloorplanPlugin.html +5 -3
  82. package/docs/functions/ModelItemLabelPlugin.html +5 -3
  83. package/docs/functions/ModelMakerPlugin.html +300 -0
  84. package/docs/functions/ModelRoomLabelPlugin.html +5 -3
  85. package/docs/functions/ModelTVVideoPlugin.html +5 -3
  86. package/docs/functions/ModelViewPlugin.html +5 -3
  87. package/docs/functions/MovePlugin.html +5 -3
  88. package/docs/functions/Object3DHelperPlugin.html +5 -3
  89. package/docs/functions/PanoCompassPlugin.html +5 -3
  90. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -3
  91. package/docs/functions/PanoDoorLabelPlugin.html +5 -3
  92. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -3
  93. package/docs/functions/PanoMeasurePlugin.html +5 -3
  94. package/docs/functions/PanoRulerPlugin.html +5 -3
  95. package/docs/functions/PanoRulerProPlugin.html +5 -3
  96. package/docs/functions/PanoSpatialTagPlugin.html +5 -3
  97. package/docs/functions/PanoTagPlugin.html +5 -3
  98. package/docs/functions/PanoVideoPlugin.html +5 -3
  99. package/docs/functions/PipelinePlugin.html +5 -3
  100. package/docs/functions/TopviewFloorplanPlugin.html +5 -3
  101. package/docs/functions/Util.absoluteUrl.html +5 -3
  102. package/docs/functions/Util.checkFiveModelLoaded.html +5 -3
  103. package/docs/functions/Util.equal.html +5 -3
  104. package/docs/functions/Util.getCoordsFromClient.html +5 -3
  105. package/docs/functions/Util.getCoordsFromElement.html +5 -3
  106. package/docs/functions/Util.getFrameTime.html +5 -3
  107. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -3
  108. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -3
  109. package/docs/functions/Util.isAbsoluteURL.html +5 -3
  110. package/docs/functions/Util.isModelLike.html +5 -3
  111. package/docs/functions/Util.isNil.html +5 -3
  112. package/docs/functions/Util.isPanoramaLike.html +5 -3
  113. package/docs/functions/Util.nextFrame.html +5 -3
  114. package/docs/functions/Util.notNil.html +5 -3
  115. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -3
  116. package/docs/functions/Util.tweenProgress.html +5 -3
  117. package/docs/functions/Util.uuid.html +5 -3
  118. package/docs/functions/pluginFlag.html +5 -3
  119. package/docs/index.html +6 -4
  120. package/docs/interfaces/AddTagConfig.html +5 -3
  121. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +5 -3
  122. package/docs/interfaces/AreaMakerPluginType.Config.html +5 -3
  123. package/docs/interfaces/AreaMakerPluginType.EventMap.html +9 -7
  124. package/docs/interfaces/AreaMakerPluginType.Params.html +5 -3
  125. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +5 -3
  126. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +5 -3
  127. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +5 -3
  128. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +5 -3
  129. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +5 -3
  130. package/docs/interfaces/AreaMakerPluginType.State.html +5 -3
  131. package/docs/interfaces/CSS3DRenderPluginEventMap.html +5 -3
  132. package/docs/interfaces/CSS3DRenderPluginState.html +5 -3
  133. package/docs/interfaces/CameraMovementPluginExportType.html +5 -3
  134. package/docs/interfaces/CruisePluginTypes.Config.html +5 -3
  135. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +5 -3
  136. package/docs/interfaces/CruisePluginTypes.EventMap.html +5 -3
  137. package/docs/interfaces/CruisePluginTypes.MoveAction.html +5 -3
  138. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +5 -3
  139. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +5 -3
  140. package/docs/interfaces/CruisePluginTypes.PluginData.html +5 -3
  141. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -3
  142. package/docs/interfaces/CruisePluginTypes.PluginState.html +5 -3
  143. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +5 -3
  144. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +5 -3
  145. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +5 -3
  146. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +5 -3
  147. package/docs/interfaces/CurrentPanoImagePluginType.State.html +5 -3
  148. package/docs/interfaces/EventMap.html +5 -3
  149. package/docs/interfaces/FloorplanBounding.html +5 -3
  150. package/docs/interfaces/FloorplanData.html +5 -3
  151. package/docs/interfaces/FloorplanEntrance.html +5 -3
  152. package/docs/interfaces/FloorplanExtraObject.html +5 -3
  153. package/docs/interfaces/FloorplanExtraObject3D.html +5 -3
  154. package/docs/interfaces/FloorplanFloorData.html +5 -3
  155. package/docs/interfaces/FloorplanImagePosition.html +5 -3
  156. package/docs/interfaces/FloorplanObserver.html +5 -3
  157. package/docs/interfaces/FloorplanOutlineItem.html +5 -3
  158. package/docs/interfaces/FloorplanPosition.html +5 -3
  159. package/docs/interfaces/FloorplanRoomItem.html +5 -3
  160. package/docs/interfaces/FloorplanRoomLabelItem.html +5 -3
  161. package/docs/interfaces/FloorplanServerBounding.html +5 -3
  162. package/docs/interfaces/FloorplanServerComputedData.html +5 -3
  163. package/docs/interfaces/FloorplanServerData.html +5 -3
  164. package/docs/interfaces/FloorplanServerDoorItem.html +5 -3
  165. package/docs/interfaces/FloorplanServerDoorPosition.html +5 -3
  166. package/docs/interfaces/FloorplanServerEntrance.html +5 -3
  167. package/docs/interfaces/FloorplanServerFloorData.html +5 -3
  168. package/docs/interfaces/FloorplanServerImagePosition.html +5 -3
  169. package/docs/interfaces/FloorplanServerObserver.html +5 -3
  170. package/docs/interfaces/FloorplanServerOutlineItem.html +5 -3
  171. package/docs/interfaces/FloorplanServerPosition.html +5 -3
  172. package/docs/interfaces/FloorplanServerRoomItem.html +5 -3
  173. package/docs/interfaces/FloorplanServerRoomLabelItem.html +5 -3
  174. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +5 -3
  175. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +5 -3
  176. package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -3
  177. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -3
  178. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -3
  179. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +5 -3
  180. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +5 -3
  181. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +5 -3
  182. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +5 -3
  183. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +5 -3
  184. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +5 -3
  185. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +5 -3
  186. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -3
  187. package/docs/interfaces/GuideLinePluginType.PluginState.html +5 -3
  188. package/docs/interfaces/GuideLinePluginType.Route.html +5 -3
  189. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +5 -3
  190. package/docs/interfaces/HelperOffset.html +5 -3
  191. package/docs/interfaces/ImagePlaneGroup.html +5 -3
  192. package/docs/interfaces/ItemLabelPluginData.html +5 -3
  193. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +5 -3
  194. package/docs/interfaces/ItemLabelPluginParametersType.html +5 -3
  195. package/docs/interfaces/MinMax.html +5 -3
  196. package/docs/interfaces/ModelChassisCompassPluginData.html +5 -3
  197. package/docs/interfaces/ModelChassisCompassPluginExportType.html +5 -3
  198. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +5 -3
  199. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +5 -3
  200. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +5 -3
  201. package/docs/interfaces/ModelItemLabelPluginData.html +5 -3
  202. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +5 -3
  203. package/docs/interfaces/ModelItemLabelPluginParametersType.html +5 -3
  204. package/docs/interfaces/ModelMakerPluginType.EventMap.html +588 -0
  205. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +340 -0
  206. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +376 -0
  207. package/docs/interfaces/ModelMakerPluginType.ServerData.html +329 -0
  208. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +371 -0
  209. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +365 -0
  210. package/docs/interfaces/ModelMakerPluginType.State.html +361 -0
  211. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -3
  212. package/docs/interfaces/ModelTVVideoPluginData.html +5 -3
  213. package/docs/interfaces/ModelTVVideoPluginExportType.html +5 -3
  214. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -3
  215. package/docs/interfaces/ModelViewPluginExportType.html +5 -3
  216. package/docs/interfaces/Object3DHelperState.html +5 -3
  217. package/docs/interfaces/ObjectHelperControllers.html +5 -3
  218. package/docs/interfaces/PaintBrushAction.html +5 -3
  219. package/docs/interfaces/PaintBrushConfigs.html +5 -3
  220. package/docs/interfaces/PaintBrushState.html +5 -3
  221. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +5 -3
  222. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -3
  223. package/docs/interfaces/PanoMeasureParameterType.html +5 -3
  224. package/docs/interfaces/PanoMeasurePluginLineJson.html +5 -3
  225. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +5 -3
  226. package/docs/interfaces/PanoMeasurePluginPointJson.html +5 -3
  227. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +5 -3
  228. package/docs/interfaces/PanoRulerPluginExportType.html +5 -3
  229. package/docs/interfaces/PanoRulerPluginOptions.html +5 -3
  230. package/docs/interfaces/PanoRulerPluginParameterType.html +5 -3
  231. package/docs/interfaces/PanoRulerProPluginExportType.html +5 -3
  232. package/docs/interfaces/PanoRulerProPluginOptions.html +5 -3
  233. package/docs/interfaces/PanoRulerProPluginParameterType.html +5 -3
  234. package/docs/interfaces/PanoRulerProPluginState.html +5 -3
  235. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -3
  236. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -3
  237. package/docs/interfaces/PanoSpatialTagPluginData.html +5 -3
  238. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +5 -3
  239. package/docs/interfaces/PanoSpatialTagPluginExportType.html +5 -3
  240. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +5 -3
  241. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +5 -3
  242. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +5 -3
  243. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +5 -3
  244. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -3
  245. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -3
  246. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -3
  247. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +5 -3
  248. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -3
  249. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -3
  250. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +5 -3
  251. package/docs/interfaces/Point.html +5 -3
  252. package/docs/interfaces/Room.html +5 -3
  253. package/docs/interfaces/RoomInfo.html +5 -3
  254. package/docs/interfaces/RoomLabel.html +5 -3
  255. package/docs/interfaces/RoomRules.html +5 -3
  256. package/docs/interfaces/Rooms.html +5 -3
  257. package/docs/interfaces/Scissor.html +5 -3
  258. package/docs/interfaces/State.html +5 -3
  259. package/docs/interfaces/TagCacheInterface.html +5 -3
  260. package/docs/interfaces/TagConfig.html +5 -3
  261. package/docs/interfaces/TagGLTFObjectGroup.html +5 -3
  262. package/docs/interfaces/TagIconUrl.html +5 -3
  263. package/docs/interfaces/TagObjectGroup.html +5 -3
  264. package/docs/interfaces/TagStyle.html +5 -3
  265. package/docs/interfaces/Tags.html +5 -3
  266. package/docs/interfaces/TemporaryState.html +5 -3
  267. package/docs/interfaces/Util.MagnifierParameter.html +5 -3
  268. package/docs/interfaces/Util.MouseGroupParameter.html +5 -3
  269. package/docs/interfaces/Util.PointIntersection.html +5 -3
  270. package/docs/modules/AreaMakerPluginType.html +5 -3
  271. package/docs/modules/CruisePluginTypes.html +5 -3
  272. package/docs/modules/CurrentPanoImagePluginType.html +5 -3
  273. package/docs/modules/GuideLineItem.html +5 -3
  274. package/docs/modules/GuideLineModeItem.html +5 -3
  275. package/docs/modules/GuideLinePluginType.html +5 -3
  276. package/docs/modules/ModelMakerPluginType.html +325 -0
  277. package/docs/modules/PanoVideoPluginType.html +5 -3
  278. package/docs/modules/Util.html +5 -3
  279. package/docs/modules.html +8 -4
  280. package/docs/types/AddObject3DHelperConfig.html +5 -3
  281. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +5 -3
  282. package/docs/types/AreaMakerPluginType.ItemRenderer.html +5 -3
  283. package/docs/types/AreaMakerPluginType.PluginData.html +5 -3
  284. package/docs/types/AreaMakerPluginType.ServerData.html +5 -3
  285. package/docs/types/ArrayPosition.html +5 -3
  286. package/docs/types/AudioAppearance.html +5 -3
  287. package/docs/types/AudioTagTypeConfigKey.html +5 -3
  288. package/docs/types/CSS3DRenderExportType.html +5 -3
  289. package/docs/types/CSS3DRenderPluginExportType.html +5 -3
  290. package/docs/types/CSS3DRenderPluginParameterType.html +5 -3
  291. package/docs/types/ClassFunctionParameters.html +5 -3
  292. package/docs/types/Color.html +5 -3
  293. package/docs/types/ContentTypeConfigKey.html +5 -3
  294. package/docs/types/ContentTypeConfigKeySplit.html +5 -3
  295. package/docs/types/ContentTypeMap.html +5 -3
  296. package/docs/types/Create3DDomContainerReturnType.html +5 -3
  297. package/docs/types/Create3DElementReturnType.html +5 -3
  298. package/docs/types/CruisePluginExportType.html +5 -3
  299. package/docs/types/CruisePluginTypes.CruiseData.html +5 -3
  300. package/docs/types/CruisePluginTypes.MoveEffect.html +5 -3
  301. package/docs/types/CurrentPanoImagePluginExportType.html +5 -3
  302. package/docs/types/DeprecatedMediaPlaneProperty.html +5 -3
  303. package/docs/types/DeprecatedTagProperty.html +5 -3
  304. package/docs/types/Direction-1.html +5 -3
  305. package/docs/types/Direction4.html +5 -3
  306. package/docs/types/ElementRenderer.html +5 -3
  307. package/docs/types/FloorplanRuleLabels.html +5 -3
  308. package/docs/types/FloorplanServerRuleLabels.html +5 -3
  309. package/docs/types/GuideLinePluginExportType.html +5 -3
  310. package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -3
  311. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -3
  312. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -3
  313. package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -3
  314. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +5 -3
  315. package/docs/types/GuideLinePluginType.PathItem.html +5 -3
  316. package/docs/types/GuideLinePluginType.PluginData.html +5 -3
  317. package/docs/types/HelperEventMap.html +5 -3
  318. package/docs/types/InternalHelperEventMap.html +5 -3
  319. package/docs/types/LoadTagConfig.html +5 -3
  320. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -3
  321. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -3
  322. package/docs/types/MediaData.html +5 -3
  323. package/docs/types/MediaStore.html +5 -3
  324. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -3
  325. package/docs/types/ModelFloorplanPluginParameterType.html +5 -3
  326. package/docs/types/ModelFloorplanPluginReturnType.html +5 -3
  327. package/docs/types/ModelId.html +5 -3
  328. package/docs/types/ModelMakerPluginType.ElementRenderer.html +326 -0
  329. package/docs/types/ModelMakerPluginType.ItemType.html +305 -0
  330. package/docs/types/ModelRoomLabelPluginParameters.html +5 -3
  331. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -3
  332. package/docs/types/MoveArgs.html +5 -3
  333. package/docs/types/MoveOpts.html +5 -3
  334. package/docs/types/Object3DHelperEventMap.html +5 -3
  335. package/docs/types/ObjectFit.html +5 -3
  336. package/docs/types/PaintBrushEventMap.html +5 -3
  337. package/docs/types/PanoCompassPluginData.html +5 -3
  338. package/docs/types/PanoCompassPluginExportType.html +5 -3
  339. package/docs/types/PanoCompassPluginParameterType.html +5 -3
  340. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -3
  341. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -3
  342. package/docs/types/PanoIndex.html +5 -3
  343. package/docs/types/PanoMeasurePluginEvent.html +5 -3
  344. package/docs/types/PanoMeasureReturnType.html +5 -3
  345. package/docs/types/PanoSpatialTagPluginId.html +5 -3
  346. package/docs/types/PanoTagPluginExportInterface.html +5 -3
  347. package/docs/types/PanoTagPluginParamsInterface.html +5 -3
  348. package/docs/types/PanoVideoPluginParameterType.html +5 -3
  349. package/docs/types/PanoVideoPluginReturnType.html +5 -3
  350. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -3
  351. package/docs/types/PipelinePluginParameterType.html +5 -3
  352. package/docs/types/PipelinePluginReturnType.html +5 -3
  353. package/docs/types/PlaneTag.html +5 -3
  354. package/docs/types/Point2DTag.html +5 -3
  355. package/docs/types/Point3DTag.html +5 -3
  356. package/docs/types/PointTag.html +5 -3
  357. package/docs/types/PointTagInstance.html +5 -3
  358. package/docs/types/Position.html +5 -3
  359. package/docs/types/PositionFrom.html +5 -3
  360. package/docs/types/RotateArgs.html +5 -3
  361. package/docs/types/RotateOpts.html +5 -3
  362. package/docs/types/RuleLabelsKey.html +5 -3
  363. package/docs/types/RuleLabelsValue.html +5 -3
  364. package/docs/types/ScaleCallback.html +5 -3
  365. package/docs/types/ScalePosition.html +5 -3
  366. package/docs/types/StickType.html +5 -3
  367. package/docs/types/Tag.html +5 -3
  368. package/docs/types/Tag2D.html +5 -3
  369. package/docs/types/Tag3D.html +5 -3
  370. package/docs/types/TagConfigByKey.html +5 -3
  371. package/docs/types/TagContentType.html +5 -3
  372. package/docs/types/TagContentTypeMapping.html +5 -3
  373. package/docs/types/TagDimensionType.html +5 -3
  374. package/docs/types/TagElement.html +5 -3
  375. package/docs/types/TagEvents.html +5 -3
  376. package/docs/types/TagGLTFObject.html +5 -3
  377. package/docs/types/TagHooks.html +5 -3
  378. package/docs/types/TagId.html +5 -3
  379. package/docs/types/TagInstance.html +5 -3
  380. package/docs/types/TagPointType.html +5 -3
  381. package/docs/types/TagRendererMap.html +5 -3
  382. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -3
  383. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -3
  384. package/docs/types/WorkCode.html +5 -3
  385. package/docs/variables/FLOOR_TYPE_MAP.html +5 -3
  386. package/docs/variables/PLUGIN.html +5 -3
  387. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -3
  388. package/docs/variables/ROOM_TYPE_MAP.html +5 -3
  389. package/docs/variables/defaultGlobalConfig.html +5 -3
  390. package/docs/variables/itemLabelPluginServerParams.html +5 -3
  391. package/docs/variables/modelItemLabelPluginServerParams.html +5 -3
  392. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -3
  393. package/libs/AreaMakerPlugin/utils/Item.js +12 -13
  394. package/libs/GuideLinePlugin/Controller.js +15 -15
  395. package/libs/ModelMakerPlugin/Controller.d.ts +26 -0
  396. package/libs/ModelMakerPlugin/Controller.js +203 -0
  397. package/libs/ModelMakerPlugin/index.d.ts +4 -0
  398. package/libs/ModelMakerPlugin/index.js +61 -0
  399. package/libs/ModelMakerPlugin/item/baseItem.d.ts +36 -0
  400. package/libs/ModelMakerPlugin/item/baseItem.js +57 -0
  401. package/libs/ModelMakerPlugin/item/boxItem.d.ts +4 -0
  402. package/libs/ModelMakerPlugin/item/boxItem.js +20 -0
  403. package/libs/ModelMakerPlugin/item/polygonItem.d.ts +9 -0
  404. package/libs/ModelMakerPlugin/item/polygonItem.js +38 -0
  405. package/libs/ModelMakerPlugin/item/prismItem.d.ts +4 -0
  406. package/libs/ModelMakerPlugin/item/prismItem.js +32 -0
  407. package/libs/ModelMakerPlugin/typings/data.d.ts +41 -0
  408. package/libs/ModelMakerPlugin/typings/data.js +1 -0
  409. package/libs/ModelMakerPlugin/typings/index.d.ts +52 -0
  410. package/libs/ModelMakerPlugin/typings/index.js +1 -0
  411. package/libs/ModelMakerPlugin/utils/Text.js +45 -0
  412. package/libs/ModelMakerPlugin/utils/Text.svelte.d.ts +1 -0
  413. package/libs/ModelMakerPlugin/utils/tagRenderer.d.ts +3 -0
  414. package/libs/ModelMakerPlugin/utils/tagRenderer.js +26 -0
  415. package/libs/PanoMeasurePlugin/Components/Controller0.js +4 -2
  416. package/libs/PanoMeasurePlugin/Components/Controller1.js +4 -2
  417. package/libs/PanoMeasurePlugin/Controller/EditController.js +4 -2
  418. package/libs/PanoMeasurePlugin/Controller/WatchController.js +4 -2
  419. package/libs/PanoMeasurePlugin/Controller/index.js +4 -2
  420. package/libs/PanoMeasurePlugin/Model/area.js +4 -2
  421. package/libs/PanoMeasurePlugin/Model/polygon.js +12 -10
  422. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +4 -2
  423. package/libs/PanoMeasurePlugin/index.js +15 -13
  424. package/libs/Sculpt/Meshes/Area.d.ts +2 -23
  425. package/libs/Sculpt/Meshes/Area.js +9 -52
  426. package/libs/Sculpt/Meshes/Point.js +19 -19
  427. package/libs/Sculpt/Meshes/Polygon.d.ts +3 -0
  428. package/libs/Sculpt/Meshes/Polygon.js +26 -20
  429. package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +22 -0
  430. package/libs/Sculpt/Meshes/PolygonWithEdge.js +46 -0
  431. package/libs/Sculpt/Meshes/Polyline.d.ts +9 -7
  432. package/libs/Sculpt/Meshes/Polyline.js +42 -38
  433. package/libs/Sculpt/Meshes/Prism.d.ts +5 -3
  434. package/libs/Sculpt/Meshes/Prism.js +33 -28
  435. package/libs/Sculpt/Objects/Base/index.d.ts +4 -2
  436. package/libs/Sculpt/Objects/Polygon/Editor.d.ts +2 -1
  437. package/libs/Sculpt/Objects/Polygon/Editor.js +5 -5
  438. package/libs/Sculpt/Objects/Polygon/index.js +17 -17
  439. package/libs/Sculpt/Objects/Polyline/Editor.d.ts +3 -6
  440. package/libs/Sculpt/Objects/Polyline/Editor.js +24 -32
  441. package/libs/Sculpt/index.d.ts +32 -8
  442. package/libs/Sculpt/index.js +6 -6
  443. package/libs/Sculpt/typings/utils.type.d.ts +4 -1
  444. package/libs/base/BasePlugin.d.ts +2 -2
  445. package/libs/base/BasePlugin.js +1 -1
  446. package/libs/base/BasePluginWithData.d.ts +0 -2
  447. package/libs/components/AreaLabel/LabelItem.js +61 -61
  448. package/libs/index.d.ts +1 -0
  449. package/libs/index.js +138 -123
  450. package/libs/shared-utils/Object3DHelper/utils/boundingBox.d.ts +12 -0
  451. package/libs/shared-utils/Object3DHelper/utils/boundingBox.js +44 -22
  452. package/libs/shared-utils/five/FiveDomEvents.d.ts +1 -1
  453. package/libs/shared-utils/five/FiveDomEvents.js +6 -5
  454. package/libs/shared-utils/five/vector3ToScreen.d.ts +5 -0
  455. package/libs/shared-utils/five/vector3ToScreen.js +7 -0
  456. package/libs/shared-utils/logger.js +1 -1
  457. package/libs/shared-utils/tag.d.ts +19 -0
  458. package/libs/shared-utils/tag.js +50 -0
  459. package/libs/shared-utils/three/addIfNotExists.d.ts +2 -0
  460. package/libs/shared-utils/three/addIfNotExists.js +8 -0
  461. package/libs/shared-utils/three/closeVectors.d.ts +2 -0
  462. package/libs/shared-utils/three/closeVectors.js +10 -0
  463. package/libs/shared-utils/three/earcut3D.d.ts +2 -0
  464. package/libs/shared-utils/three/earcut3D.js +12 -0
  465. package/libs/shared-utils/three/generatePolygonGeometry.js +8 -10
  466. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  var S = Object.defineProperty;
2
- var C = Object.getOwnPropertySymbols;
2
+ var _ = Object.getOwnPropertySymbols;
3
3
  var V = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
4
4
  var c = (s, o, t) => o in s ? S(s, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[o] = t, f = (s, o) => {
5
5
  for (var t in o || (o = {}))
6
6
  V.call(o, t) && c(s, t, o[t]);
7
- if (C)
8
- for (var t of C(o))
7
+ if (_)
8
+ for (var t of _(o))
9
9
  M.call(o, t) && c(s, t, o[t]);
10
10
  return s;
11
11
  };
@@ -30,8 +30,8 @@ import { Controller as O } from "../base/BasePluginWithData.js";
30
30
  import { equal as U } from "../shared-utils/equal.js";
31
31
  import { GuideLineItem as x } from "./GuideLineItem/index.js";
32
32
  import N from "../CruisePlugin/Work.js";
33
- import { objectAssignDeepExports as T } from "../vendor/object-assign-deep/objectAssignDeep.js";
34
- import * as A from "three";
33
+ import { objectAssignDeepExports as C } from "../vendor/object-assign-deep/objectAssignDeep.js";
34
+ import * as T from "three";
35
35
  import { waitFiveLoaded as W } from "../shared-utils/five/fiveLoaded.js";
36
36
  import { WorkUtil as $ } from "../shared-utils/Utils/WorkUtil.js";
37
37
  import "hammerjs";
@@ -242,21 +242,21 @@ class me extends O {
242
242
  }
243
243
  load(t, i, a = !0) {
244
244
  return u(this, null, function* () {
245
- var w, I, E, y, k, D, L;
245
+ var v, w, I, E, y, k, D;
246
246
  const m = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, e = yield this.formatData(t);
247
247
  this.hooks.emit("dataChange", e, m), this.data = e;
248
248
  const r = e.config, n = {
249
249
  panorama_style: {
250
250
  visible: !!(!e.lines && e.routes),
251
- unit_length: (w = r == null ? void 0 : r.unitHeight) != null ? w : 0.4,
252
- width: (I = r == null ? void 0 : r.unitWidth) != null ? I : 0.6,
253
- texture: { url: (E = r == null ? void 0 : r.arrowTextureUrl) != null ? E : this.staticPrefix + "/release/web/arrow-white.5c2c79a5.png" }
251
+ unit_length: (v = r == null ? void 0 : r.unitHeight) != null ? v : 0.4,
252
+ width: (w = r == null ? void 0 : r.unitWidth) != null ? w : 0.6,
253
+ texture: { url: (I = r == null ? void 0 : r.arrowTextureUrl) != null ? I : this.staticPrefix + "/release/web/arrow-white.5c2c79a5.png" }
254
254
  }
255
- }, d = (k = (y = e.routes) == null ? void 0 : y.map((l) => {
256
- var _;
257
- return T({}, n, { id: (_ = l.id) != null ? _ : P(), pano_group: l.panoIndexList });
258
- })) != null ? k : [], G = (L = (D = e.lines) == null ? void 0 : D.map((l) => T({}, n, l))) != null ? L : [], v = [...d, ...G];
259
- yield W(this.five), this.clear(), console.log(v), v.forEach((l) => {
255
+ }, d = (y = (E = e.routes) == null ? void 0 : E.map((l) => {
256
+ var L;
257
+ return C({}, n, { id: (L = l.id) != null ? L : P(), pano_group: l.panoIndexList });
258
+ })) != null ? y : [], A = (D = (k = e.lines) == null ? void 0 : k.map((l) => C({}, n, l))) != null ? D : [], G = [...d, ...A];
259
+ yield W(this.five), this.clear(), G.forEach((l) => {
260
260
  this.addGuideLineItem(l);
261
261
  }), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: a }), this.hooks.emit("dataLoaded", e), console.debug(`${g} loaded`, e);
262
262
  });
@@ -319,7 +319,7 @@ class me extends O {
319
319
  return Array.isArray(e) && e.every((r) => typeof r == "number");
320
320
  }
321
321
  function a(e, r) {
322
- return new A.Vector3().fromArray(e).distanceTo(new A.Vector3().fromArray(r)) < 0.01;
322
+ return new T.Vector3().fromArray(e).distanceTo(new T.Vector3().fromArray(r)) < 0.01;
323
323
  }
324
324
  function m(e) {
325
325
  var p;
@@ -0,0 +1,26 @@
1
+ import type { Five } from '@realsee/five';
2
+ import * as BasePlugin from '../base/BasePluginWithData';
3
+ import type * as PluginType from './typings';
4
+ export declare class Controller extends BasePlugin.Controller<PluginType.State, PluginType.EventMap, PluginType.ServerData, PluginType.ServerData> {
5
+ state: PluginType.State;
6
+ protected data: PluginType.ServerData;
7
+ private group;
8
+ private items;
9
+ private tagRendererMap;
10
+ constructor(five: Five);
11
+ load(serverData: PluginType.ServerData): Promise<void>;
12
+ setState(targetState: Partial<PluginType.State>): void;
13
+ registerTagRenderer(map: Partial<Record<PluginType.ItemType, PluginType.ElementRenderer>>): void;
14
+ enable(): void;
15
+ disable(): void;
16
+ show(): void;
17
+ hide(): void;
18
+ clear(): void;
19
+ dispose(): void;
20
+ private handleShow;
21
+ private handleHide;
22
+ private handleEnable;
23
+ private handleDisable;
24
+ private onWantsMovePano;
25
+ private updateTagRenderer;
26
+ }
@@ -0,0 +1,203 @@
1
+ var v = Object.defineProperty;
2
+ var P = (l, n, e) => n in l ? v(l, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[n] = e;
3
+ var h = (l, n, e) => (P(l, typeof n != "symbol" ? n + "" : n, e), e);
4
+ var f = (l, n, e) => new Promise((a, o) => {
5
+ var c = (r) => {
6
+ try {
7
+ p(e.next(r));
8
+ } catch (d) {
9
+ o(d);
10
+ }
11
+ }, i = (r) => {
12
+ try {
13
+ p(e.throw(r));
14
+ } catch (d) {
15
+ o(d);
16
+ }
17
+ }, p = (r) => r.done ? a(r.value) : Promise.resolve(r.value).then(c, i);
18
+ p((e = e.apply(l, n)).next());
19
+ });
20
+ import { Controller as E } from "../base/BasePluginWithData.js";
21
+ import * as s from "three";
22
+ import { ModelMakerBoxItem as V } from "./item/boxItem.js";
23
+ import { PrismMesh as u } from "../Sculpt/Meshes/Prism.js";
24
+ import { anyPositionToVector3 as R } from "../shared-utils/positionToVector3.js";
25
+ import { PolygonWithEdgeMesh as k } from "../Sculpt/Meshes/PolygonWithEdge.js";
26
+ import "hammerjs";
27
+ import "@realsee/five";
28
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
29
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
30
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
31
+ import { notNil as y } from "../shared-utils/isNil.js";
32
+ import { tagRendererMap as T } from "./utils/tagRenderer.js";
33
+ import { ModelMakerPrismItem as z } from "./item/prismItem.js";
34
+ import { ModelMakerPolygonItem as C } from "./item/polygonItem.js";
35
+ import "../base/BasePlugin.js";
36
+ import "../shared-utils/Subscribe.js";
37
+ import "../shared-utils/url/absoluteUrl.js";
38
+ import "../shared-utils/three/IObject3D.js";
39
+ import "../Sculpt/Meshes/Polygon.js";
40
+ import "../shared-utils/three/generatePolygonGeometry.js";
41
+ import "../shared-utils/three/earcut3D.js";
42
+ import "earcut";
43
+ import "../shared-utils/three/getNormal.js";
44
+ import "../Sculpt/utils/color.js";
45
+ import "../Sculpt/utils/three/ColoredMesh.js";
46
+ import "../shared-utils/three/geometryUtil.js";
47
+ import "../shared-utils/three/centerPoint.js";
48
+ import "../Sculpt/Meshes/Line.js";
49
+ import "@realsee/five/line";
50
+ import "../Sculpt/Meshes/Polyline.js";
51
+ import "../Sculpt/Meshes/LineWithDots.js";
52
+ import "../Sculpt/Meshes/Point.js";
53
+ import "../shared-utils/three/closeVectors.js";
54
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
55
+ import "three/examples/jsm/renderers/CSS3DRenderer";
56
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
57
+ import "../shared-utils/util.js";
58
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
59
+ import "../CSS3DRenderPlugin/utils/even.js";
60
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
61
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
62
+ import "../shared-utils/three/getObjectVisible.js";
63
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
64
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
65
+ import "./utils/Text.js";
66
+ import "../vendor/svelte/internal/index.js";
67
+ import "../components/AreaLabel/LabelItem.js";
68
+ import "../components/AreaLabel/Assets/roomLabelBg.js";
69
+ import "../shared-utils/Object3DHelper/utils/boundingBox.js";
70
+ import "./item/baseItem.js";
71
+ import "../shared-utils/three/addIfNotExists.js";
72
+ import "../shared-utils/tag.js";
73
+ import "../shared-utils/five/vector3ToScreen.js";
74
+ import "../shared-utils/five/FiveDomEvents.js";
75
+ import "../shared-utils/five/calculateThreeMouse.js";
76
+ class He extends E {
77
+ constructor(e) {
78
+ super(e);
79
+ h(this, "state");
80
+ h(this, "data");
81
+ h(this, "group", new s.Group());
82
+ h(this, "items", []);
83
+ h(this, "tagRendererMap", {});
84
+ h(this, "onWantsMovePano", () => {
85
+ this.items.forEach((e) => e.tag.hide());
86
+ });
87
+ h(this, "updateTagRenderer", () => {
88
+ this.items.forEach((e) => {
89
+ var o;
90
+ const a = (o = this.tagRendererMap[e.type]) != null ? o : T[e.type];
91
+ a && e.__renderer !== a && (e.__renderer = a, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = a(e.tag.container, e));
92
+ });
93
+ });
94
+ this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, e.scene.add(this.group), this.handleEnable();
95
+ }
96
+ load(e) {
97
+ return f(this, null, function* () {
98
+ var a;
99
+ this.clear(), this.data = e, (a = e == null ? void 0 : e.list) == null || a.forEach((o) => {
100
+ var c;
101
+ if (o.type === "triangles") {
102
+ const i = new k();
103
+ i.setPoints(o.object_data.points), i.setStyle({
104
+ color: o.object_data.color,
105
+ opacity: o.object_data.opacity,
106
+ lineColor: o.object_data.color,
107
+ occlusionVisibility: !1
108
+ });
109
+ const p = new C({
110
+ five: this.five,
111
+ model: i,
112
+ group: this.group,
113
+ type: o.type,
114
+ rawData: o
115
+ });
116
+ this.items.push(p);
117
+ } else if (o.type === "prism") {
118
+ const i = new u();
119
+ i.setPoints({
120
+ points: o.object_data.points.map((r) => {
121
+ var d;
122
+ return [r[0], r[1] + ((d = o.object_data.fixedY) != null ? d : 0), r[2]];
123
+ }),
124
+ heightPoint: R(o.object_data.points[0]).add(
125
+ new s.Vector3().setY(o.object_data.height + ((c = o.object_data.fixedHeight) != null ? c : 0))
126
+ )
127
+ }), i.setStyle({
128
+ color: o.object_data.color,
129
+ opacity: o.object_data.opacity,
130
+ lineColor: o.object_data.color,
131
+ occlusionVisibility: !1
132
+ });
133
+ const p = new z({
134
+ five: this.five,
135
+ model: i,
136
+ group: this.group,
137
+ type: o.type,
138
+ rawData: o
139
+ });
140
+ this.items.push(p);
141
+ } else if (o.type === "box") {
142
+ const i = new u(), { start: p, end: r, rotation: d, opacity: x, color: b } = o.object_data, w = new s.Vector3().fromArray(p), _ = new s.Vector3().fromArray(r), g = new s.Euler().fromArray(d), M = new s.Quaternion().setFromEuler(g), t = new s.Box3();
143
+ t.expandByPoint(w), t.expandByPoint(_);
144
+ const m = [
145
+ t.max.clone(),
146
+ new s.Vector3(t.min.x, t.max.y, t.max.z),
147
+ new s.Vector3(t.min.x, t.min.y, t.max.z),
148
+ new s.Vector3(t.max.x, t.min.y, t.max.z),
149
+ new s.Vector3(t.max.x, t.max.y, t.min.z),
150
+ new s.Vector3(t.min.x, t.max.y, t.min.z),
151
+ t.min.clone(),
152
+ new s.Vector3(t.max.x, t.min.y, t.min.z)
153
+ ];
154
+ i.setPoints({
155
+ points: [m[2], m[3], m[7], m[6]],
156
+ heightPoint: m[0]
157
+ }), i.applyQuaternion(M), i.setStyle({ color: b, opacity: x, lineColor: b, occlusionVisibility: !1 });
158
+ const j = new V({ five: this.five, model: i, group: this.group, type: o.type });
159
+ this.items.push(j);
160
+ }
161
+ }), this.five.needsRender = !0, this.handleShow(), this.updateTagRenderer();
162
+ });
163
+ }
164
+ setState(e) {
165
+ y(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: "我不知道捏" })), y(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: "我不知道捏" }));
166
+ }
167
+ registerTagRenderer(e) {
168
+ this.tagRendererMap = e, this.updateTagRenderer();
169
+ }
170
+ enable() {
171
+ this.setState({ enabled: !0 });
172
+ }
173
+ disable() {
174
+ this.setState({ enabled: !1 });
175
+ }
176
+ show() {
177
+ this.setState({ visible: !0 });
178
+ }
179
+ hide() {
180
+ this.setState({ visible: !1 });
181
+ }
182
+ clear() {
183
+ this.handleDisable();
184
+ }
185
+ dispose() {
186
+ this.handleDisable();
187
+ }
188
+ handleShow() {
189
+ this.items.forEach((e) => e.show());
190
+ }
191
+ handleHide() {
192
+ this.items.forEach((e) => e.hide());
193
+ }
194
+ handleEnable() {
195
+ this.items.forEach((e) => e.enable()), this.five.on("pano.request", this.onWantsMovePano);
196
+ }
197
+ handleDisable() {
198
+ this.items.forEach((e) => e.disable()), this.five.off("pano.request", this.onWantsMovePano);
199
+ }
200
+ }
201
+ export {
202
+ He as Controller
203
+ };
@@ -0,0 +1,4 @@
1
+ import type { Five } from '@realsee/five';
2
+ import type * as ModelMakerPluginType from './typings';
3
+ export declare const ModelMakerPlugin: (five: Five) => ModelMakerPluginType.ModelMakerController;
4
+ export type { ModelMakerPluginType };
@@ -0,0 +1,61 @@
1
+ import { Controller as r } from "./Controller.js";
2
+ import "../base/BasePluginWithData.js";
3
+ import "../base/BasePlugin.js";
4
+ import "../shared-utils/Subscribe.js";
5
+ import "hammerjs";
6
+ import "three";
7
+ import "@realsee/five";
8
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
9
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
10
+ import "../shared-utils/positionToVector3.js";
11
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
12
+ import "three/examples/jsm/renderers/CSS3DRenderer";
13
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
14
+ import "../shared-utils/util.js";
15
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
16
+ import "../CSS3DRenderPlugin/utils/even.js";
17
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
18
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
19
+ import "../shared-utils/three/centerPoint.js";
20
+ import "../shared-utils/three/getObjectVisible.js";
21
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
22
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
23
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
24
+ import "../shared-utils/url/absoluteUrl.js";
25
+ import "./item/boxItem.js";
26
+ import "./item/polygonItem.js";
27
+ import "./item/baseItem.js";
28
+ import "../shared-utils/three/addIfNotExists.js";
29
+ import "../shared-utils/tag.js";
30
+ import "../shared-utils/five/vector3ToScreen.js";
31
+ import "../shared-utils/Object3DHelper/utils/boundingBox.js";
32
+ import "../shared-utils/five/FiveDomEvents.js";
33
+ import "../shared-utils/five/calculateThreeMouse.js";
34
+ import "../Sculpt/Meshes/Prism.js";
35
+ import "../shared-utils/three/IObject3D.js";
36
+ import "../shared-utils/isNil.js";
37
+ import "../Sculpt/Meshes/Polygon.js";
38
+ import "../shared-utils/three/generatePolygonGeometry.js";
39
+ import "../shared-utils/three/earcut3D.js";
40
+ import "earcut";
41
+ import "../shared-utils/three/getNormal.js";
42
+ import "../Sculpt/utils/color.js";
43
+ import "../Sculpt/utils/three/ColoredMesh.js";
44
+ import "../shared-utils/three/geometryUtil.js";
45
+ import "../Sculpt/Meshes/Line.js";
46
+ import "@realsee/five/line";
47
+ import "../Sculpt/Meshes/PolygonWithEdge.js";
48
+ import "../Sculpt/Meshes/Polyline.js";
49
+ import "../Sculpt/Meshes/LineWithDots.js";
50
+ import "../Sculpt/Meshes/Point.js";
51
+ import "../shared-utils/three/closeVectors.js";
52
+ import "./utils/tagRenderer.js";
53
+ import "./utils/Text.js";
54
+ import "../vendor/svelte/internal/index.js";
55
+ import "../components/AreaLabel/LabelItem.js";
56
+ import "../components/AreaLabel/Assets/roomLabelBg.js";
57
+ import "./item/prismItem.js";
58
+ const po = (o) => new r(o);
59
+ export {
60
+ po as ModelMakerPlugin
61
+ };
@@ -0,0 +1,36 @@
1
+ import type { Five, Mode } from '@realsee/five';
2
+ import * as THREE from 'three';
3
+ import { Subscribe } from '../../shared-utils/Subscribe';
4
+ import type { LightTag } from '../../shared-utils/tag';
5
+ import { FiveDomEvents } from '../../shared-utils/five/FiveDomEvents';
6
+ type Event = {
7
+ enable: () => boolean;
8
+ disable: () => boolean;
9
+ click: (item: ModelMakerBaseItem) => void | boolean;
10
+ };
11
+ export declare class ModelMakerBaseItem extends Subscribe<Event> {
12
+ get container(): HTMLDivElement;
13
+ type: string;
14
+ tag: LightTag;
15
+ rawData: any;
16
+ protected five: Five;
17
+ protected model: THREE.Object3D;
18
+ protected group: THREE.Object3D;
19
+ protected enabled: boolean;
20
+ protected fiveDomEvents: FiveDomEvents;
21
+ constructor(params: {
22
+ five: Five;
23
+ model: THREE.Object3D;
24
+ group: THREE.Object3D;
25
+ type: string;
26
+ rawData?: any;
27
+ visibleMode?: Mode[];
28
+ position?: THREE.Vector3;
29
+ });
30
+ show(): void;
31
+ hide(): void;
32
+ enable(): void;
33
+ disable(): void;
34
+ protected onClick(): boolean;
35
+ }
36
+ export {};
@@ -0,0 +1,57 @@
1
+ var d = Object.defineProperty;
2
+ var l = (i, s, e) => s in i ? d(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e;
3
+ var t = (i, s, e) => (l(i, typeof s != "symbol" ? s + "" : s, e), e);
4
+ import * as m from "three";
5
+ import { addIfNotExists as v } from "../../shared-utils/three/addIfNotExists.js";
6
+ import { Subscribe as a } from "../../shared-utils/Subscribe.js";
7
+ import { tag as f } from "../../shared-utils/tag.js";
8
+ import { boundingBox as c } from "../../shared-utils/Object3DHelper/utils/boundingBox.js";
9
+ import { FiveDomEvents as u } from "../../shared-utils/five/FiveDomEvents.js";
10
+ import "../../shared-utils/positionToVector3.js";
11
+ import "../../shared-utils/five/vector3ToScreen.js";
12
+ import "../../shared-utils/three/getObjectVisible.js";
13
+ import "../../shared-utils/five/calculateThreeMouse.js";
14
+ let o;
15
+ const g = (i) => o || (o = new u(i), o);
16
+ class B extends a {
17
+ constructor(e) {
18
+ var r, n;
19
+ super();
20
+ t(this, "type");
21
+ t(this, "tag");
22
+ t(this, "rawData");
23
+ t(this, "five");
24
+ t(this, "model");
25
+ t(this, "group");
26
+ t(this, "enabled", !1);
27
+ t(this, "fiveDomEvents");
28
+ this.five = e.five, this.model = e.model, this.group = e.group, this.type = e.type, this.rawData = e.rawData, this.fiveDomEvents = g(this.five);
29
+ const h = (n = (r = e.position) != null ? r : this.model.center) != null ? n : c(this.model).getCenter(new m.Vector3());
30
+ this.tag = f(this.five, h);
31
+ }
32
+ get container() {
33
+ return this.tag.container;
34
+ }
35
+ show() {
36
+ this.tag.show(), this.model.visible = !0, this.five.needsRender = !0;
37
+ }
38
+ hide() {
39
+ this.tag.hide(), this.model.visible = !1, this.five.needsRender = !0;
40
+ }
41
+ enable() {
42
+ if (this.enabled)
43
+ return;
44
+ this.enabled = !0, v(this.group, this.model), this.five.needsRender = !0, this.tag.enable();
45
+ const e = this.onClick.bind(this);
46
+ this.fiveDomEvents.addEventListener(this.model, "click", e);
47
+ }
48
+ disable() {
49
+ this.enabled && (this.enabled = !1, this.group.remove(this.model), this.five.needsRender = !0, this.tag.disable(), this.fiveDomEvents.removeEventListener(this.model, "click"));
50
+ }
51
+ onClick() {
52
+ return this.emit("click", this);
53
+ }
54
+ }
55
+ export {
56
+ B as ModelMakerBaseItem
57
+ };
@@ -0,0 +1,4 @@
1
+ import { ModelMakerPolygonItem } from './polygonItem';
2
+ export declare class ModelMakerBoxItem extends ModelMakerPolygonItem {
3
+ constructor(...args: ConstructorParameters<typeof ModelMakerPolygonItem>);
4
+ }
@@ -0,0 +1,20 @@
1
+ import { ModelMakerPolygonItem as r } from "./polygonItem.js";
2
+ import "./baseItem.js";
3
+ import "three";
4
+ import "../../shared-utils/three/addIfNotExists.js";
5
+ import "../../shared-utils/Subscribe.js";
6
+ import "../../shared-utils/tag.js";
7
+ import "../../shared-utils/positionToVector3.js";
8
+ import "../../shared-utils/five/vector3ToScreen.js";
9
+ import "../../shared-utils/Object3DHelper/utils/boundingBox.js";
10
+ import "../../shared-utils/five/FiveDomEvents.js";
11
+ import "../../shared-utils/three/getObjectVisible.js";
12
+ import "../../shared-utils/five/calculateThreeMouse.js";
13
+ class k extends r {
14
+ constructor(...o) {
15
+ super(...o);
16
+ }
17
+ }
18
+ export {
19
+ k as ModelMakerBoxItem
20
+ };
@@ -0,0 +1,9 @@
1
+ import { ModelMakerBaseItem } from './baseItem';
2
+ export declare class ModelMakerPolygonItem extends ModelMakerBaseItem {
3
+ constructor(...args: ConstructorParameters<typeof ModelMakerBaseItem>);
4
+ enable(): void;
5
+ disable(): void;
6
+ show(): void;
7
+ protected onClick(): boolean;
8
+ private hideTag;
9
+ }
@@ -0,0 +1,38 @@
1
+ var o = Object.defineProperty;
2
+ var r = (t, e, i) => e in t ? o(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
3
+ var s = (t, e, i) => (r(t, typeof e != "symbol" ? e + "" : e, i), i);
4
+ import { ModelMakerBaseItem as h } from "./baseItem.js";
5
+ import "three";
6
+ import "../../shared-utils/three/addIfNotExists.js";
7
+ import "../../shared-utils/Subscribe.js";
8
+ import "../../shared-utils/tag.js";
9
+ import "../../shared-utils/positionToVector3.js";
10
+ import "../../shared-utils/five/vector3ToScreen.js";
11
+ import "../../shared-utils/Object3DHelper/utils/boundingBox.js";
12
+ import "../../shared-utils/five/FiveDomEvents.js";
13
+ import "../../shared-utils/three/getObjectVisible.js";
14
+ import "../../shared-utils/five/calculateThreeMouse.js";
15
+ class T extends h {
16
+ constructor(...i) {
17
+ super(...i);
18
+ s(this, "hideTag", () => {
19
+ this.tag.hide();
20
+ });
21
+ this.enable(), this.tag.hide();
22
+ }
23
+ enable() {
24
+ super.enable(), this.five.on("mode.change.request", this.hideTag), this.five.on("pano.request", this.hideTag);
25
+ }
26
+ disable() {
27
+ super.disable(), this.five.off("mode.change.request", this.hideTag), this.five.off("pano.request", this.hideTag);
28
+ }
29
+ show() {
30
+ this.model.visible = !0, this.five.needsRender = !0;
31
+ }
32
+ onClick() {
33
+ return this.tag.visible ? this.tag.hide({ withAnimation: !0 }) : this.tag.show(), super.onClick(), !0;
34
+ }
35
+ }
36
+ export {
37
+ T as ModelMakerPolygonItem
38
+ };
@@ -0,0 +1,4 @@
1
+ import { ModelMakerBaseItem } from './baseItem';
2
+ export declare class ModelMakerPrismItem extends ModelMakerBaseItem {
3
+ constructor(...args: ConstructorParameters<typeof ModelMakerBaseItem>);
4
+ }
@@ -0,0 +1,32 @@
1
+ var c = Object.defineProperty, l = Object.defineProperties;
2
+ var x = Object.getOwnPropertyDescriptors;
3
+ var m = Object.getOwnPropertySymbols;
4
+ var d = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
5
+ var p = (t, o, r) => o in t ? c(t, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[o] = r, i = (t, o) => {
6
+ for (var r in o || (o = {}))
7
+ d.call(o, r) && p(t, r, o[r]);
8
+ if (m)
9
+ for (var r of m(o))
10
+ b.call(o, r) && p(t, r, o[r]);
11
+ return t;
12
+ }, s = (t, o) => l(t, x(o));
13
+ import { boundingBox as M, boxVertex as n } from "../../shared-utils/Object3DHelper/utils/boundingBox.js";
14
+ import { ModelMakerBaseItem as f } from "./baseItem.js";
15
+ import * as u from "three";
16
+ import "../../shared-utils/three/addIfNotExists.js";
17
+ import "../../shared-utils/Subscribe.js";
18
+ import "../../shared-utils/tag.js";
19
+ import "../../shared-utils/positionToVector3.js";
20
+ import "../../shared-utils/five/vector3ToScreen.js";
21
+ import "../../shared-utils/five/FiveDomEvents.js";
22
+ import "../../shared-utils/three/getObjectVisible.js";
23
+ import "../../shared-utils/five/calculateThreeMouse.js";
24
+ class R extends f {
25
+ constructor(...o) {
26
+ const r = o[0], e = M(r.model), a = new u.Vector3().lerpVectors(n(e, 0), n(e, 5), 0.5);
27
+ super(s(i({}, r), { position: a })), this.enable();
28
+ }
29
+ }
30
+ export {
31
+ R as ModelMakerPrismItem
32
+ };
@@ -0,0 +1,41 @@
1
+ export interface ServerData {
2
+ list: (ServerBoxItem | ServerTrianglesItem | ServerPrismItem)[];
3
+ }
4
+ export interface ServerBaseItem {
5
+ id?: number;
6
+ name?: string;
7
+ }
8
+ export interface ServerBoxItem extends ServerBaseItem {
9
+ type: 'box';
10
+ object_data: {
11
+ /** box 的其中一个顶点坐标 */
12
+ start: number[];
13
+ /** start 对角位置的顶点坐标 */
14
+ end: number[];
15
+ /** box 的欧拉角旋转,旋转顺序是 [XYZ] */
16
+ rotation: number[];
17
+ color?: string;
18
+ opacity?: number;
19
+ };
20
+ }
21
+ export interface ServerTrianglesItem extends ServerBaseItem {
22
+ type: 'triangles';
23
+ object_data: {
24
+ panoIndex: number;
25
+ points: number[][];
26
+ color?: string;
27
+ opacity?: number;
28
+ };
29
+ }
30
+ export interface ServerPrismItem extends ServerBaseItem {
31
+ type: 'prism';
32
+ object_data: {
33
+ points: number[][];
34
+ floorIndex?: number;
35
+ height: number;
36
+ fixedY?: number;
37
+ fixedHeight?: number;
38
+ color: string;
39
+ opacity?: number;
40
+ };
41
+ }