@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,39 +1,39 @@
1
- var a = Object.defineProperty;
2
- var d = (s, i, t) => i in s ? a(s, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[i] = t;
3
- var r = (s, i, t) => (d(s, typeof i != "symbol" ? i + "" : i, t), t);
4
- import { BaseEditor as g } from "../Base/Editor.js";
5
- import { Sculpt as o } from "../../index.js";
6
- import { PointMesh as l } from "../../Meshes/Point.js";
7
- import { getIntersectByRaycaster as p } from "../../../shared-utils/five/getPosition.js";
1
+ var g = Object.defineProperty;
2
+ var d = (s, e, t) => e in s ? g(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
+ var n = (s, e, t) => (d(s, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import { BaseEditor as p } from "../Base/Editor.js";
5
+ import { Sculpt as r } from "../../index.js";
6
+ import { PointMesh as a } from "../../Meshes/Point.js";
7
+ import { getIntersectByRaycaster as h } from "../../../shared-utils/five/getPosition.js";
8
8
  import "hammerjs";
9
9
  import "three";
10
10
  import "@realsee/five";
11
11
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
12
12
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
13
13
  import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
14
- import { notNil as h } from "../../../shared-utils/isNil.js";
15
- class m extends g {
14
+ import { notNil as l } from "../../../shared-utils/isNil.js";
15
+ class m extends p {
16
16
  constructor(t) {
17
17
  super(t);
18
- r(this, "draggingPoints", []);
19
- r(this, "onDragstart", (t) => {
20
- const e = t.target;
21
- this.draggingPoints = this.points.filter((n) => n.position.equals(e.position));
18
+ n(this, "draggingPoints", []);
19
+ n(this, "onDragstart", (t) => {
20
+ const i = t.target;
21
+ this.draggingPoints = this.pointMeshes.filter((o) => o.position.equals(i.position));
22
22
  });
23
- r(this, "onDragend", (t) => {
23
+ n(this, "onDragend", (t) => {
24
24
  this.draggingPoints = [];
25
25
  });
26
26
  }
27
- get points() {
28
- return this.children.filter((t) => t instanceof l);
27
+ get pointMeshes() {
28
+ return this.children.filter((t) => t instanceof a);
29
29
  }
30
30
  get pointHandles() {
31
31
  return this.children;
32
32
  }
33
33
  enable() {
34
- super.enable(), this.lines.flatMap((t) => t.visiblePointMeshes).filter(h).forEach((t) => {
35
- const e = t.clone();
36
- e.visible = !1, e.draggable = !0, o.modules.fiveDomEvents.addEventListener(e, "drag", this.onDrag), o.modules.fiveDomEvents.addEventListener(e, "dragstart", this.onDragstart), o.modules.fiveDomEvents.addEventListener(e, "dragend", this.onDragend), this.add(e);
34
+ super.enable(), this.points.filter(l).forEach((t) => {
35
+ const i = new a();
36
+ i.visible = !1, i.position.copy(t), i.draggable = !0, r.modules.fiveDomEvents.addEventListener(i, "drag", this.onDrag), r.modules.fiveDomEvents.addEventListener(i, "dragstart", this.onDragstart), r.modules.fiveDomEvents.addEventListener(i, "dragend", this.onDragend), this.add(i);
37
37
  });
38
38
  }
39
39
  disable() {
@@ -43,24 +43,16 @@ class m extends g {
43
43
  class j extends m {
44
44
  constructor(t) {
45
45
  super(t);
46
- r(this, "onDrag", (t) => {
46
+ n(this, "onDrag", (t) => {
47
47
  if (!this.draggingPoints || this.draggingPoints.length === 0)
48
48
  return;
49
- const e = p(o.modules.five, t.raycaster);
50
- this.draggingPoints.forEach((n) => n.position.copy(e.point)), this.originObject.polyLineMesh.setPoints(this.points.map((n) => n.position));
49
+ const i = h(r.modules.five, t.raycaster);
50
+ this.draggingPoints.forEach((o) => o.position.copy(i.point)), this.originObject.polyLineMesh.setPoints(this.pointMeshes.map((o) => o.position));
51
51
  });
52
52
  }
53
- get lines() {
54
- return this.originObject.polyLineMesh.lines;
55
- }
56
- enable() {
57
- super.enable();
58
- }
59
- disable() {
60
- super.disable();
53
+ get points() {
54
+ return this.originObject.polyLineMesh.points;
61
55
  }
62
- // private onDblclick = (event: FiveDomEvent) => {
63
- // }
64
56
  }
65
57
  export {
66
58
  m as LineEditor,
@@ -137,35 +137,59 @@ export declare class Sculpt extends Subscribe<Event> {
137
137
  /**
138
138
  * @description: 开始绘制点
139
139
  */
140
- createPoint(params?: Parameters<Point['create']>[0]): Promise<BaseObject<any, any, BaseObjectConfig>>;
140
+ createPoint(params?: Parameters<Point['create']>[0]): Promise<BaseObject<any, {
141
+ [x: string]: any;
142
+ id: string | number;
143
+ }, BaseObjectConfig>>;
141
144
  /**
142
145
  * @description: 开始绘制空间折线
143
146
  */
144
- createPolyline(params?: Parameters<Polyline['create']>[0]): Promise<BaseObject<any, any, BaseObjectConfig>>;
147
+ createPolyline(params?: Parameters<Polyline['create']>[0]): Promise<BaseObject<any, {
148
+ [x: string]: any;
149
+ id: string | number;
150
+ }, BaseObjectConfig>>;
145
151
  /**
146
152
  * @description: 开始绘制平面多边形
147
153
  */
148
- createPolygon(params?: Parameters<Polygon['create']>[0]): Promise<BaseObject<any, any, BaseObjectConfig>>;
154
+ createPolygon(params?: Parameters<Polygon['create']>[0]): Promise<BaseObject<any, {
155
+ [x: string]: any;
156
+ id: string | number;
157
+ }, BaseObjectConfig>>;
149
158
  /**
150
159
  * @description: 开始绘制多棱柱
151
160
  */
152
- createPrism(params?: Parameters<Prism['create']>[0]): Promise<BaseObject<any, any, BaseObjectConfig>>;
161
+ createPrism(params?: Parameters<Prism['create']>[0]): Promise<BaseObject<any, {
162
+ [x: string]: any;
163
+ id: string | number;
164
+ }, BaseObjectConfig>>;
153
165
  /**
154
166
  * @description: 开始绘制矩形
155
167
  */
156
- createRectangle(params?: Parameters<Rectangle['create']>[0]): Promise<BaseObject<any, any, BaseObjectConfig>>;
168
+ createRectangle(params?: Parameters<Rectangle['create']>[0]): Promise<BaseObject<any, {
169
+ [x: string]: any;
170
+ id: string | number;
171
+ }, BaseObjectConfig>>;
157
172
  /**
158
173
  * @description: 开始绘制圆形
159
174
  */
160
- createCircle(params?: Parameters<Circle['create']>[0]): Promise<BaseObject<any, any, BaseObjectConfig>>;
175
+ createCircle(params?: Parameters<Circle['create']>[0]): Promise<BaseObject<any, {
176
+ [x: string]: any;
177
+ id: string | number;
178
+ }, BaseObjectConfig>>;
161
179
  /**
162
180
  * @description: 开始绘制圆柱
163
181
  */
164
- createCylinder(params?: Parameters<Cylinder['create']>[0]): Promise<BaseObject<any, any, BaseObjectConfig>>;
182
+ createCylinder(params?: Parameters<Cylinder['create']>[0]): Promise<BaseObject<any, {
183
+ [x: string]: any;
184
+ id: string | number;
185
+ }, BaseObjectConfig>>;
165
186
  /**
166
187
  * @description: 开始绘制 Box
167
188
  */
168
- createBox(params?: Parameters<Box['create']>[0]): Promise<BaseObject<any, any, BaseObjectConfig>>;
189
+ createBox(params?: Parameters<Box['create']>[0]): Promise<BaseObject<any, {
190
+ [x: string]: any;
191
+ id: string | number;
192
+ }, BaseObjectConfig>>;
169
193
  /**
170
194
  * @description: 撤销
171
195
  */
@@ -42,8 +42,8 @@ import { Polyline as w } from "./Objects/Polyline/index.js";
42
42
  import { Point as I } from "./Objects/Point/index.js";
43
43
  import { Polygon as P } from "./Objects/Polygon/index.js";
44
44
  import { Prism as b } from "./Objects/Prism/index.js";
45
- import { Rectangle as C } from "./Objects/Rectangle/index.js";
46
- import { Circle as v } from "./Objects/Circle/index.js";
45
+ import { Rectangle as v } from "./Objects/Rectangle/index.js";
46
+ import { Circle as C } from "./Objects/Circle/index.js";
47
47
  import { Cylinder as j } from "./Objects/Cylinder/index.js";
48
48
  import { Box as x } from "./Objects/Box/index.js";
49
49
  const h = class extends E {
@@ -52,7 +52,7 @@ const h = class extends E {
52
52
  a(this, "group");
53
53
  a(this, "five");
54
54
  a(this, "theme");
55
- console.log(e), this.five = e, this.theme = t, this.group = new L(), this.group.name = "Sculpt", e.scene.add(this.group), h.modules.init(e), h.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: o }) => {
55
+ this.five = e, this.theme = t, this.group = new L(), this.group.name = "Sculpt", e.scene.add(this.group), h.modules.init(e), h.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: o }) => {
56
56
  var s;
57
57
  const l = S((s = o == null ? void 0 : o[0]) == null ? void 0 : s.object, (n) => n.isSculptObject);
58
58
  return l ? this.emit("click", l) : !1;
@@ -83,7 +83,7 @@ const h = class extends E {
83
83
  const n = g(r({}, s), {
84
84
  style: r(r({}, (c = this.theme) == null ? void 0 : c[s.type.toLowerCase()]), s.style)
85
85
  });
86
- return s.type === "Point" ? new I(n, t) : s.type === "Polyline" ? new w(n, t) : s.type === "Polygon" ? new P(n, t) : s.type === "Prism" ? new b(n, t) : s.type === "Rectangle" ? new C(n, t) : s.type === "Circle" ? new v(n, t) : s.type === "Cylinder" ? new j(n, t) : s.type === "Box" ? new x(n, t) : null;
86
+ return s.type === "Point" ? new I(n, t) : s.type === "Polyline" ? new w(n, t) : s.type === "Polygon" ? new P(n, t) : s.type === "Prism" ? new b(n, t) : s.type === "Rectangle" ? new v(n, t) : s.type === "Circle" ? new C(n, t) : s.type === "Cylinder" ? new j(n, t) : s.type === "Box" ? new x(n, t) : null;
87
87
  });
88
88
  this.group.add(...o), this.needsRender();
89
89
  }
@@ -144,7 +144,7 @@ const h = class extends E {
144
144
  createRectangle(e) {
145
145
  return u(this, null, function* () {
146
146
  var t;
147
- return this.createItem(C, r(r({}, (t = this.theme) == null ? void 0 : t.rectangle), e));
147
+ return this.createItem(v, r(r({}, (t = this.theme) == null ? void 0 : t.rectangle), e));
148
148
  });
149
149
  }
150
150
  /**
@@ -153,7 +153,7 @@ const h = class extends E {
153
153
  createCircle(e) {
154
154
  return u(this, null, function* () {
155
155
  var t;
156
- return this.createItem(v, r(r({}, (t = this.theme) == null ? void 0 : t.circle), e));
156
+ return this.createItem(C, r(r({}, (t = this.theme) == null ? void 0 : t.circle), e));
157
157
  });
158
158
  }
159
159
  /**
@@ -1,7 +1,10 @@
1
1
  import type * as THREE from 'three';
2
- import type { LiteralUnion, UnknownArray } from 'type-fest';
2
+ import type { LiteralUnion, Merge, UnknownArray } from 'type-fest';
3
3
  import type { IsNull, NonRecursiveType } from 'type-fest/source/internal';
4
4
  export type LiteralString<T> = LiteralUnion<T, string>;
5
+ export type ImportDataToExportData<T> = Merge<JsonData<T>, {
6
+ id: string | number;
7
+ }>;
5
8
  export type JsonVector3<T> = ReplaceDeep<T, THREE.Vector3, number[]>;
6
9
  export type JsonColor<T> = ReplaceDeep<T, THREE.Color>;
7
10
  export type JsonData<T> = JsonColor<JsonVector3<T>>;
@@ -84,11 +84,11 @@ declare abstract class Controller<PluginState extends State, PluginEventMap exte
84
84
  /**
85
85
  * 展示UI
86
86
  */
87
- show?(options?: BaseOptions): Promise<void>;
87
+ show?(options?: BaseOptions): Promise<void> | void;
88
88
  /**
89
89
  * 隐藏UI
90
90
  */
91
- hide?(options?: BaseOptions): Promise<void>;
91
+ hide?(options?: BaseOptions): Promise<void> | void;
92
92
  /**
93
93
  * 设置state
94
94
  * @param state 插件的目标状态
@@ -14,7 +14,7 @@ let b = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- i(this, "VERSION", "3.21.2");
17
+ i(this, "VERSION", "3.23.0");
18
18
  i(this, "five");
19
19
  /**
20
20
  * @description: 插件事件钩子
@@ -15,8 +15,6 @@ declare abstract class Controller<PluginState extends State, PluginEventMap exte
15
15
  * @param state 插件 State
16
16
  */
17
17
  abstract load(serverData: PluginServerData, state?: PluginState, userAction?: boolean): Promise<void>;
18
- /** 把原始数据转化为插件数据 */
19
- protected abstract formatData?(serverData: PluginServerData): Promise<PluginData> | PluginData;
20
18
  }
21
19
  export type { State, EventMap, Config };
22
20
  export type { BaseOptions } from './BasePlugin';
@@ -1,82 +1,82 @@
1
- import { SvelteComponent as p, init as C, safe_not_equal as I, append_styles as L, element as v, attr as k, set_style as f, insert as b, noop as y, detach as _, onMount as x, onDestroy as B, text as M, space as O, toggle_class as z, append as j, listen as A, is_function as D, set_data as E, binding_callbacks as G } from "../../vendor/svelte/internal/index.js";
2
- import { ROOM_LABEL_BG as R } from "./Assets/roomLabelBg.js";
3
- function S(n) {
4
- L(n, "svelte-qxepni", ".room-label-item.svelte-qxepni{position:absolute;font-size:0.5rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff}.room-label-item__text.svelte-qxepni{position:absolute;left:0;top:-4rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.25rem;min-width:2rem;padding:0 0.375rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-qxepni{position:absolute;top:-2.75rem;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-qxepni{font-size:0.625rem}");
1
+ import { SvelteComponent as w, init as C, safe_not_equal as D, append_styles as N, element as v, attr as k, set_style as f, insert as b, noop as y, detach as _, onMount as L, onDestroy as B, text as M, space as O, toggle_class as z, append as q, listen as A, is_function as E, set_data as G, binding_callbacks as R } from "../../vendor/svelte/internal/index.js";
2
+ import { ROOM_LABEL_BG as S } from "./Assets/roomLabelBg.js";
3
+ function F(i) {
4
+ N(i, "svelte-1s88cj8", ".room-label-item.svelte-1s88cj8{position:absolute;font-size:0.5rem;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff}.room-label-item__text.svelte-1s88cj8{position:absolute;left:0;top:-4rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.25rem;min-width:2rem;padding:0 0.375rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-1s88cj8{position:absolute;top:-2.75rem;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-1s88cj8{font-size:0.625rem}");
5
5
  }
6
- function q(n) {
7
- let e, i, l, o, a, m;
6
+ function j(i) {
7
+ let e, n, l, o, a, m;
8
8
  return {
9
9
  c() {
10
- e = v("span"), i = M(
10
+ e = v("span"), n = M(
11
11
  /*content*/
12
- n[0]
13
- ), l = O(), o = v("div"), k(e, "class", "room-label-item__text svelte-qxepni"), f(e, "background-image", "url(" + R + ")"), z(
12
+ i[0]
13
+ ), l = O(), o = v("div"), k(e, "class", "room-label-item__text svelte-1s88cj8"), f(e, "background-image", "url(" + S + ")"), z(
14
14
  e,
15
15
  "wide",
16
16
  /*content*/
17
- n[0].length > 3
18
- ), k(o, "class", "room-label-item__bar svelte-qxepni");
17
+ i[0].length > 3
18
+ ), k(o, "class", "room-label-item__bar svelte-1s88cj8");
19
19
  },
20
- m(s, r) {
21
- b(s, e, r), j(e, i), b(s, l, r), b(s, o, r), a || (m = A(e, "click", function() {
22
- D(
20
+ m(r, s) {
21
+ b(r, e, s), q(e, n), b(r, l, s), b(r, o, s), a || (m = A(e, "click", function() {
22
+ E(
23
23
  /*onClick*/
24
- n[4]
25
- ) && n[4].apply(this, arguments);
24
+ i[4]
25
+ ) && i[4].apply(this, arguments);
26
26
  }), a = !0);
27
27
  },
28
- p(s, r) {
29
- n = s, r & /*content*/
30
- 1 && E(
31
- i,
28
+ p(r, s) {
29
+ i = r, s & /*content*/
30
+ 1 && G(
31
+ n,
32
32
  /*content*/
33
- n[0]
34
- ), r & /*content*/
33
+ i[0]
34
+ ), s & /*content*/
35
35
  1 && z(
36
36
  e,
37
37
  "wide",
38
38
  /*content*/
39
- n[0].length > 3
39
+ i[0].length > 3
40
40
  );
41
41
  },
42
- d(s) {
43
- s && _(e), s && _(l), s && _(o), a = !1, m();
42
+ d(r) {
43
+ r && _(e), r && _(l), r && _(o), a = !1, m();
44
44
  }
45
45
  };
46
46
  }
47
- function F(n) {
48
- let e, i = !/*renderer*/
49
- n[5] && q(n);
47
+ function H(i) {
48
+ let e, n = !/*rendererIfNeed*/
49
+ i[5] && j(i);
50
50
  return {
51
51
  c() {
52
- e = v("div"), i && i.c(), k(e, "class", "room-label-item svelte-qxepni"), f(
52
+ e = v("div"), n && n.c(), k(e, "class", "room-label-item svelte-1s88cj8"), f(
53
53
  e,
54
54
  "z-index",
55
55
  /*zIndex*/
56
- n[2]
56
+ i[2]
57
57
  ), f(
58
58
  e,
59
59
  "transform",
60
60
  /*transform*/
61
- n[3]
61
+ i[3]
62
62
  ), f(
63
63
  e,
64
64
  "opacity",
65
65
  /*opacity*/
66
- n[1]
66
+ i[1]
67
67
  ), f(
68
68
  e,
69
69
  "visibility",
70
70
  /*visibility*/
71
- n[7]
71
+ i[7]
72
72
  );
73
73
  },
74
74
  m(l, o) {
75
- b(l, e, o), i && i.m(e, null), n[10](e);
75
+ b(l, e, o), n && n.m(e, null), i[10](e);
76
76
  },
77
77
  p(l, [o]) {
78
- /*renderer*/
79
- l[5] ? i && (i.d(1), i = null) : i ? i.p(l, o) : (i = q(l), i.c(), i.m(e, null)), o & /*zIndex*/
78
+ /*rendererIfNeed*/
79
+ l[5] ? n && (n.d(1), n = null) : n ? n.p(l, o) : (n = j(l), n.c(), n.m(e, null)), o & /*zIndex*/
80
80
  4 && f(
81
81
  e,
82
82
  "z-index",
@@ -105,50 +105,50 @@ function F(n) {
105
105
  i: y,
106
106
  o: y,
107
107
  d(l) {
108
- l && _(e), i && i.d(), n[10](null);
108
+ l && _(e), n && n.d(), i[10](null);
109
109
  }
110
110
  };
111
111
  }
112
- function H(n, e, i) {
113
- let l, { content: o } = e, { visible: a } = e, { opacity: m = 1 } = e, { zIndex: s = 0 } = e, { transform: r } = e, { onClick: h = () => {
114
- } } = e, { renderer: c } = e, { data: g } = e, u, d;
115
- x(() => {
116
- u && typeof c == "function" && (d = c(u, g));
112
+ function J(i, e, n) {
113
+ let l, { content: o } = e, { visible: a = !0 } = e, { opacity: m = 1 } = e, { zIndex: r = 0 } = e, { transform: s = void 0 } = e, { onClick: h = () => {
114
+ } } = e, { rendererIfNeed: c = void 0 } = e, { rendererData: g = void 0 } = e, d, u;
115
+ L(() => {
116
+ d && typeof c == "function" && (u = c(d, g));
117
117
  }), B(() => {
118
- d == null || d();
118
+ u == null || u();
119
119
  });
120
- function w(t) {
121
- G[t ? "unshift" : "push"](() => {
122
- u = t, i(6, u);
120
+ function I(t) {
121
+ R[t ? "unshift" : "push"](() => {
122
+ d = t, n(6, d);
123
123
  });
124
124
  }
125
- return n.$$set = (t) => {
126
- "content" in t && i(0, o = t.content), "visible" in t && i(8, a = t.visible), "opacity" in t && i(1, m = t.opacity), "zIndex" in t && i(2, s = t.zIndex), "transform" in t && i(3, r = t.transform), "onClick" in t && i(4, h = t.onClick), "renderer" in t && i(5, c = t.renderer), "data" in t && i(9, g = t.data);
127
- }, n.$$.update = () => {
128
- n.$$.dirty & /*visible*/
129
- 256 && i(7, l = a ? "visible" : "hidden");
125
+ return i.$$set = (t) => {
126
+ "content" in t && n(0, o = t.content), "visible" in t && n(8, a = t.visible), "opacity" in t && n(1, m = t.opacity), "zIndex" in t && n(2, r = t.zIndex), "transform" in t && n(3, s = t.transform), "onClick" in t && n(4, h = t.onClick), "rendererIfNeed" in t && n(5, c = t.rendererIfNeed), "rendererData" in t && n(9, g = t.rendererData);
127
+ }, i.$$.update = () => {
128
+ i.$$.dirty & /*visible*/
129
+ 256 && n(7, l = a ? "visible" : "hidden");
130
130
  }, [
131
131
  o,
132
132
  m,
133
- s,
134
133
  r,
134
+ s,
135
135
  h,
136
136
  c,
137
- u,
137
+ d,
138
138
  l,
139
139
  a,
140
140
  g,
141
- w
141
+ I
142
142
  ];
143
143
  }
144
- class N extends p {
144
+ class Q extends w {
145
145
  constructor(e) {
146
146
  super(), C(
147
147
  this,
148
148
  e,
149
+ J,
149
150
  H,
150
- F,
151
- I,
151
+ D,
152
152
  {
153
153
  content: 0,
154
154
  visible: 8,
@@ -156,13 +156,13 @@ class N extends p {
156
156
  zIndex: 2,
157
157
  transform: 3,
158
158
  onClick: 4,
159
- renderer: 5,
160
- data: 9
159
+ rendererIfNeed: 5,
160
+ rendererData: 9
161
161
  },
162
- S
162
+ F
163
163
  );
164
164
  }
165
165
  }
166
166
  export {
167
- N as LabelItem
167
+ Q as LabelItem
168
168
  };
package/libs/index.d.ts CHANGED
@@ -25,4 +25,5 @@ export * from './PipelinePlugin';
25
25
  export * from './AreaMakerPlugin';
26
26
  export * from './CurrentPanoImagePlugin';
27
27
  export * from './Sculpt';
28
+ export * from './ModelMakerPlugin';
28
29
  export * as Util from './shared-utils';