@realsee/dnalogel 2.28.0-dev.1 → 2.28.1-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 (421) hide show
  1. package/dist/AreaMakerPlugin/Controller.d.ts +94 -0
  2. package/dist/AreaMakerPlugin/index.d.ts +4 -0
  3. package/dist/AreaMakerPlugin/typing.d.ts +148 -0
  4. package/dist/AreaMakerPlugin/utils/Item.d.ts +115 -0
  5. package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -5
  6. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +1 -1
  7. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -4
  8. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +2 -0
  9. package/dist/base/BasePluginWithData.d.ts +1 -1
  10. package/dist/components/AreaLabel/Assets/roomLabelBg.d.ts +1 -0
  11. package/dist/floorplan/index.d.ts +0 -1
  12. package/dist/floorplan/utils/correctFiveState.d.ts +2 -0
  13. package/dist/index.cjs.js +67 -67
  14. package/dist/index.d.ts +1 -0
  15. package/dist/index.js +6901 -7187
  16. package/dist/index.umd.js +60 -60
  17. package/dist/shared-utils/index.d.ts +1 -0
  18. package/dist/shared-utils/math/planimetry.d.ts +1 -1
  19. package/dist/shared-utils/three/core/Object3D.d.ts +8 -0
  20. package/dist/shared-utils/three/index.d.ts +2 -0
  21. package/dist/shared-utils/three/loadVideoTexture.d.ts +1 -1
  22. package/dist/shared-utils/three/objects/LineSegments.d.ts +9 -0
  23. package/docs/assets/search.js +1 -1
  24. package/docs/classes/AreaMakerPluginPluginType.AreaMakerController.html +711 -0
  25. package/docs/classes/AreaMakerPluginPluginType.AreaMakerItem.html +671 -0
  26. package/docs/classes/CSS3DRender.html +33 -34
  27. package/docs/classes/CruisePluginController.html +29 -30
  28. package/docs/classes/GuideLineItem.GuideLineItem.html +22 -23
  29. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +37 -38
  30. package/docs/classes/Magnifier.html +22 -23
  31. package/docs/classes/ModelRoomLabelController.html +13 -14
  32. package/docs/classes/Object3DHelperController.html +27 -28
  33. package/docs/classes/PaintBrush.html +17 -18
  34. package/docs/classes/PanoMeasurePluginLine.html +29 -30
  35. package/docs/classes/PanoMeasurePluginModel.html +29 -30
  36. package/docs/classes/PanoMeasurePluginPoint.html +13 -14
  37. package/docs/classes/PanoMeasurePluginPolyline.html +29 -30
  38. package/docs/classes/PanoTagPluginController.html +52 -53
  39. package/docs/classes/Util.BetterTween.html +13 -11
  40. package/docs/classes/Util.Interval.html +16 -14
  41. package/docs/classes/Util.LineSegments.html +379 -0
  42. package/docs/classes/Util.Magnifier.html +24 -22
  43. package/docs/classes/Util.Object3D.html +401 -0
  44. package/docs/classes/Util.PointDomHelper.html +15 -13
  45. package/docs/classes/Util.PointHelper.html +15 -13
  46. package/docs/classes/Util.PointSelectorHelper.html +20 -18
  47. package/docs/classes/Util.Rectangle.html +17 -15
  48. package/docs/enums/CameraMovementEffect.html +9 -10
  49. package/docs/enums/ContentType.html +22 -23
  50. package/docs/enums/DIRECTION.html +11 -12
  51. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -12
  52. package/docs/enums/DimensionType.html +9 -10
  53. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -11
  54. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -12
  55. package/docs/enums/PaintBrushTypeEnum.html +10 -11
  56. package/docs/enums/PointType.html +9 -10
  57. package/docs/enums/Rotation.html +10 -11
  58. package/docs/functions/{FloorplanRoomsPlugin.html → AreaMakerPluginPlugin.html} +12 -13
  59. package/docs/functions/CSS3DRenderPlugin.html +6 -7
  60. package/docs/functions/CameraMovementPlugin.html +6 -7
  61. package/docs/functions/CruisePlugin.html +7 -8
  62. package/docs/functions/GuideLinePlugin.html +7 -8
  63. package/docs/functions/ItemLabelPlugin.html +6 -7
  64. package/docs/functions/MapviewFloorplanPlugin.html +6 -7
  65. package/docs/functions/ModelChassisCompassPlugin.html +6 -7
  66. package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -7
  67. package/docs/functions/ModelFloorplanPlugin.html +6 -7
  68. package/docs/functions/ModelItemLabelPlugin.html +6 -7
  69. package/docs/functions/ModelRoomLabelPlugin.html +6 -7
  70. package/docs/functions/ModelTVVideoPlugin.html +6 -7
  71. package/docs/functions/ModelViewPlugin.html +6 -7
  72. package/docs/functions/Object3DHelperPlugin.html +6 -7
  73. package/docs/functions/PanoCompassPlugin.html +6 -7
  74. package/docs/functions/PanoCursorRaycasterPlugin.html +6 -7
  75. package/docs/functions/PanoDoorLabelPlugin.html +6 -7
  76. package/docs/functions/PanoFloorplanRadarPlugin.html +6 -7
  77. package/docs/functions/PanoMeasurePlugin.html +6 -7
  78. package/docs/functions/PanoRulerPlugin.html +6 -7
  79. package/docs/functions/PanoRulerProPlugin.html +6 -7
  80. package/docs/functions/PanoSpatialTagPlugin.html +6 -7
  81. package/docs/functions/PanoTagPlugin.html +6 -7
  82. package/docs/functions/PanoVideoPlugin.html +6 -7
  83. package/docs/functions/PipelinePlugin.html +6 -7
  84. package/docs/functions/TopviewFloorplanPlugin.html +6 -7
  85. package/docs/functions/Util.absoluteUrl.html +9 -7
  86. package/docs/functions/Util.equal.html +333 -0
  87. package/docs/functions/Util.getCoordsFromClient.html +9 -7
  88. package/docs/functions/Util.getCoordsFromElement.html +9 -7
  89. package/docs/functions/Util.getFrameTime.html +9 -7
  90. package/docs/functions/Util.getIntersectFromRelativePosition.html +9 -7
  91. package/docs/functions/Util.getRaycasterFromFivePointer.html +9 -7
  92. package/docs/functions/Util.isAbsoluteURL.html +9 -7
  93. package/docs/functions/Util.isModelLike.html +9 -7
  94. package/docs/functions/Util.isNil.html +9 -7
  95. package/docs/functions/Util.isPanoramaLike.html +9 -7
  96. package/docs/functions/Util.nextFrame.html +9 -7
  97. package/docs/functions/Util.notNil.html +9 -7
  98. package/docs/functions/Util.requestAnimationFrameInterval.html +9 -7
  99. package/docs/functions/Util.tweenProgress.html +9 -7
  100. package/docs/functions/Util.uuid.html +9 -7
  101. package/docs/functions/pluginFlag.html +7 -8
  102. package/docs/index.html +7 -8
  103. package/docs/interfaces/AddTagConfig.html +8 -9
  104. package/docs/interfaces/AreaMakerPluginPluginType.AnimeOptions.html +325 -0
  105. package/docs/interfaces/AreaMakerPluginPluginType.Config.html +330 -0
  106. package/docs/interfaces/AreaMakerPluginPluginType.EventMap.html +616 -0
  107. package/docs/interfaces/AreaMakerPluginPluginType.Params.html +329 -0
  108. package/docs/interfaces/AreaMakerPluginPluginType.ServerAreaMakerItem.html +379 -0
  109. package/docs/interfaces/AreaMakerPluginPluginType.ServerAreaMakerItemV1.html +364 -0
  110. package/docs/interfaces/AreaMakerPluginPluginType.ServerDataV1.html +329 -0
  111. package/docs/interfaces/AreaMakerPluginPluginType.ServerDataV2.html +322 -0
  112. package/docs/interfaces/AreaMakerPluginPluginType.ShowHideOptions.html +321 -0
  113. package/docs/interfaces/AreaMakerPluginPluginType.State.html +350 -0
  114. package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -14
  115. package/docs/interfaces/CSS3DRenderPluginState.html +10 -11
  116. package/docs/interfaces/CameraMovementPluginExportType.html +9 -10
  117. package/docs/interfaces/CruisePluginTypes.Config.html +10 -11
  118. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +14 -15
  119. package/docs/interfaces/CruisePluginTypes.EventMap.html +22 -23
  120. package/docs/interfaces/CruisePluginTypes.MoveAction.html +14 -15
  121. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +16 -17
  122. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +16 -17
  123. package/docs/interfaces/CruisePluginTypes.PluginData.html +11 -12
  124. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +8 -9
  125. package/docs/interfaces/CruisePluginTypes.PluginState.html +13 -14
  126. package/docs/interfaces/EventMap.html +17 -18
  127. package/docs/interfaces/FloorplanBounding.html +10 -11
  128. package/docs/interfaces/FloorplanData.html +12 -13
  129. package/docs/interfaces/FloorplanEntrance.html +13 -14
  130. package/docs/interfaces/FloorplanExtraObject.html +12 -13
  131. package/docs/interfaces/FloorplanExtraObject3D.html +10 -11
  132. package/docs/interfaces/FloorplanFloorData.html +11 -12
  133. package/docs/interfaces/FloorplanImagePosition.html +9 -10
  134. package/docs/interfaces/FloorplanObserver.html +11 -12
  135. package/docs/interfaces/FloorplanOutlineItem.html +11 -12
  136. package/docs/interfaces/FloorplanPosition.html +9 -10
  137. package/docs/interfaces/FloorplanRoomItem.html +15 -16
  138. package/docs/interfaces/FloorplanRoomLabelItem.html +9 -10
  139. package/docs/interfaces/FloorplanServerBounding.html +10 -11
  140. package/docs/interfaces/FloorplanServerComputedData.html +12 -13
  141. package/docs/interfaces/FloorplanServerData.html +9 -10
  142. package/docs/interfaces/FloorplanServerDoorItem.html +12 -13
  143. package/docs/interfaces/FloorplanServerDoorPosition.html +10 -11
  144. package/docs/interfaces/FloorplanServerEntrance.html +13 -14
  145. package/docs/interfaces/FloorplanServerFloorData.html +11 -12
  146. package/docs/interfaces/FloorplanServerImagePosition.html +9 -10
  147. package/docs/interfaces/FloorplanServerObserver.html +11 -12
  148. package/docs/interfaces/FloorplanServerOutlineItem.html +11 -12
  149. package/docs/interfaces/FloorplanServerPosition.html +9 -10
  150. package/docs/interfaces/FloorplanServerRoomItem.html +16 -17
  151. package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -10
  152. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -11
  153. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +12 -13
  154. package/docs/interfaces/GuideLinePluginType.EventMap.html +15 -16
  155. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +10 -11
  156. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +8 -9
  157. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +15 -16
  158. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +10 -11
  159. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +20 -21
  160. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +9 -10
  161. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +20 -21
  162. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +7 -8
  163. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -9
  164. package/docs/interfaces/GuideLinePluginType.PluginState.html +10 -11
  165. package/docs/interfaces/GuideLinePluginType.Route.html +13 -14
  166. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +11 -12
  167. package/docs/interfaces/HelperOffset.html +10 -11
  168. package/docs/interfaces/ImagePlaneGroup.html +8 -9
  169. package/docs/interfaces/ItemLabelPluginData.html +8 -9
  170. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -14
  171. package/docs/interfaces/ItemLabelPluginParametersType.html +11 -12
  172. package/docs/interfaces/MinMax.html +9 -10
  173. package/docs/interfaces/ModelChassisCompassPluginData.html +9 -10
  174. package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -11
  175. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -10
  176. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -11
  177. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -11
  178. package/docs/interfaces/ModelItemLabelPluginData.html +8 -9
  179. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -14
  180. package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -10
  181. package/docs/interfaces/ModelRoomLabelPluginData.html +8 -9
  182. package/docs/interfaces/ModelTVVideoPluginData.html +11 -12
  183. package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -11
  184. package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -9
  185. package/docs/interfaces/ModelViewPluginExportType.html +13 -14
  186. package/docs/interfaces/Object3DHelperState.html +10 -11
  187. package/docs/interfaces/ObjectHelperControllers.html +11 -12
  188. package/docs/interfaces/PaintBrushAction.html +14 -15
  189. package/docs/interfaces/PaintBrushConfigs.html +14 -15
  190. package/docs/interfaces/PaintBrushState.html +12 -13
  191. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -13
  192. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -8
  193. package/docs/interfaces/PanoMeasureParameterType.html +18 -19
  194. package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -11
  195. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -10
  196. package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -10
  197. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -11
  198. package/docs/interfaces/PanoRulerPluginExportType.html +12 -13
  199. package/docs/interfaces/PanoRulerPluginOptions.html +9 -10
  200. package/docs/interfaces/PanoRulerPluginParameterType.html +10 -11
  201. package/docs/interfaces/PanoRulerProPluginExportType.html +11 -12
  202. package/docs/interfaces/PanoRulerProPluginOptions.html +9 -10
  203. package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -10
  204. package/docs/interfaces/PanoRulerProPluginState.html +10 -11
  205. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -8
  206. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -8
  207. package/docs/interfaces/PanoSpatialTagPluginData.html +13 -14
  208. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -13
  209. package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -16
  210. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -13
  211. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -16
  212. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -14
  213. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -13
  214. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -9
  215. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -11
  216. package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -9
  217. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +11 -12
  218. package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -9
  219. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -11
  220. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -13
  221. package/docs/interfaces/Point.html +10 -11
  222. package/docs/interfaces/Room.html +11 -12
  223. package/docs/interfaces/RoomInfo.html +9 -10
  224. package/docs/interfaces/RoomLabel.html +16 -17
  225. package/docs/interfaces/RoomRules.html +7 -8
  226. package/docs/interfaces/Rooms.html +7 -8
  227. package/docs/interfaces/Scissor.html +11 -12
  228. package/docs/interfaces/State.html +10 -11
  229. package/docs/interfaces/TagCacheInterface.html +14 -15
  230. package/docs/interfaces/TagConfig.html +17 -18
  231. package/docs/interfaces/TagGLTFObjectGroup.html +8 -9
  232. package/docs/interfaces/TagIconUrl.html +14 -15
  233. package/docs/interfaces/TagObjectGroup.html +8 -9
  234. package/docs/interfaces/TagStyle.html +8 -9
  235. package/docs/interfaces/Tags.html +11 -12
  236. package/docs/interfaces/TemporaryState.html +8 -9
  237. package/docs/interfaces/Util.MagnifierParameter.html +15 -13
  238. package/docs/interfaces/Util.MouseGroupParameter.html +12 -10
  239. package/docs/interfaces/Util.PointIntersection.html +12 -10
  240. package/docs/modules/AreaMakerPluginPluginType.html +319 -0
  241. package/docs/modules/CruisePluginTypes.html +7 -8
  242. package/docs/modules/GuideLineItem.html +7 -8
  243. package/docs/modules/GuideLineModeItem.html +7 -8
  244. package/docs/modules/GuideLinePluginType.html +7 -8
  245. package/docs/modules/PanoVideoPluginType.html +7 -8
  246. package/docs/modules/Util.html +12 -7
  247. package/docs/modules.html +10 -12
  248. package/docs/types/AreaMakerPluginPluginType.AreaMakerItemEventMap.html +327 -0
  249. package/docs/types/{FloorplanRoomsPluginReturnType.html → AreaMakerPluginPluginType.PluginData.html} +35 -14
  250. package/docs/types/{FloorplanRoomsPluginParameterType.html → AreaMakerPluginPluginType.ServerData.html} +35 -14
  251. package/docs/types/ArrayPosition.html +7 -8
  252. package/docs/types/AudioAppearance.html +7 -8
  253. package/docs/types/AudioTagTypeConfigKey.html +7 -8
  254. package/docs/types/CSS3DRenderExportType.html +7 -8
  255. package/docs/types/CSS3DRenderPluginExportType.html +7 -8
  256. package/docs/types/CSS3DRenderPluginParameterType.html +7 -8
  257. package/docs/types/ClassFunctionParameters.html +7 -8
  258. package/docs/types/Color.html +7 -8
  259. package/docs/types/ContentTypeConfigKey.html +7 -8
  260. package/docs/types/ContentTypeConfigKeySplit.html +7 -8
  261. package/docs/types/ContentTypeMap.html +7 -8
  262. package/docs/types/Create3DDomContainerReturnType.html +7 -8
  263. package/docs/types/Create3DElementReturnType.html +7 -8
  264. package/docs/types/CruisePluginExportType.html +7 -8
  265. package/docs/types/CruisePluginTypes.CruiseData.html +7 -8
  266. package/docs/types/CruisePluginTypes.MoveEffect.html +7 -8
  267. package/docs/types/DeprecatedMediaPlaneProperty.html +7 -8
  268. package/docs/types/DeprecatedTagProperty.html +7 -8
  269. package/docs/types/Direction-1.html +7 -8
  270. package/docs/types/Direction4.html +7 -8
  271. package/docs/types/ElementRenderer.html +7 -8
  272. package/docs/types/FloorplanRuleLabels.html +7 -8
  273. package/docs/types/FloorplanServerRuleLabels.html +7 -8
  274. package/docs/types/GuideLinePluginExportType.html +7 -8
  275. package/docs/types/GuideLinePluginType.GuideLineItem.html +7 -8
  276. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +7 -8
  277. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +7 -8
  278. package/docs/types/GuideLinePluginType.GuideLineStyle.html +7 -8
  279. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +7 -8
  280. package/docs/types/GuideLinePluginType.PathItem.html +7 -8
  281. package/docs/types/GuideLinePluginType.PluginData.html +7 -8
  282. package/docs/types/HelperEventMap.html +7 -8
  283. package/docs/types/LoadTagConfig.html +7 -8
  284. package/docs/types/MapviewFloorplanPluginParameterType.html +7 -8
  285. package/docs/types/MapviewFloorplanPluginReturnType.html +7 -8
  286. package/docs/types/MediaData.html +7 -8
  287. package/docs/types/MediaStore.html +7 -8
  288. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -8
  289. package/docs/types/ModelFloorplanPluginParameterType.html +7 -8
  290. package/docs/types/ModelFloorplanPluginReturnType.html +7 -8
  291. package/docs/types/ModelRoomLabelPluginParameters.html +7 -8
  292. package/docs/types/ModelRoomLabelPluginReturnType.html +7 -8
  293. package/docs/types/MoveArgs.html +7 -8
  294. package/docs/types/MoveOpts.html +7 -8
  295. package/docs/types/Object3DHelperEventMap.html +7 -8
  296. package/docs/types/ObjectFit.html +7 -8
  297. package/docs/types/PaintBrushEventMap.html +7 -8
  298. package/docs/types/PanoCompassPluginData.html +7 -8
  299. package/docs/types/PanoCompassPluginExportType.html +7 -8
  300. package/docs/types/PanoCompassPluginParameterType.html +7 -8
  301. package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -8
  302. package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -8
  303. package/docs/types/PanoIndex.html +7 -8
  304. package/docs/types/PanoMeasurePluginEvent.html +7 -8
  305. package/docs/types/PanoMeasureReturnType.html +7 -8
  306. package/docs/types/PanoSpatialTagPluginId.html +7 -8
  307. package/docs/types/PanoTagPluginExportInterface.html +7 -8
  308. package/docs/types/PanoTagPluginParamsInterface.html +7 -8
  309. package/docs/types/PanoVideoPluginParameterType.html +7 -8
  310. package/docs/types/PanoVideoPluginReturnType.html +7 -8
  311. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +7 -8
  312. package/docs/types/PipelinePluginParameterType.html +7 -8
  313. package/docs/types/PipelinePluginReturnType.html +7 -8
  314. package/docs/types/PlaneTag.html +7 -8
  315. package/docs/types/Point2DTag.html +7 -8
  316. package/docs/types/Point3DTag.html +7 -8
  317. package/docs/types/PointTag.html +7 -8
  318. package/docs/types/PointTagInstance.html +7 -8
  319. package/docs/types/Position.html +7 -8
  320. package/docs/types/RotateArgs.html +7 -8
  321. package/docs/types/RotateOpts.html +7 -8
  322. package/docs/types/RuleLabelsKey.html +7 -8
  323. package/docs/types/RuleLabelsValue.html +7 -8
  324. package/docs/types/StickType.html +7 -8
  325. package/docs/types/Tag.html +9 -10
  326. package/docs/types/Tag2D.html +7 -8
  327. package/docs/types/Tag3D.html +7 -8
  328. package/docs/types/TagConfigByKey.html +7 -8
  329. package/docs/types/TagContentType.html +7 -8
  330. package/docs/types/TagDimensionType.html +7 -8
  331. package/docs/types/TagElement.html +7 -8
  332. package/docs/types/TagEvents.html +7 -8
  333. package/docs/types/TagGLTFObject.html +7 -8
  334. package/docs/types/TagHooks.html +7 -8
  335. package/docs/types/TagId.html +7 -8
  336. package/docs/types/TagInstance.html +7 -8
  337. package/docs/types/TagPointType.html +7 -8
  338. package/docs/types/TagRendererMap.html +7 -8
  339. package/docs/types/TopviewFloorplanPluginParameterType.html +7 -8
  340. package/docs/types/TopviewFloorplanPluginReturnType.html +7 -8
  341. package/docs/types/WorkCode.html +7 -8
  342. package/docs/variables/FLOOR_TYPE_MAP.html +7 -8
  343. package/docs/variables/PLUGIN.html +7 -8
  344. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -8
  345. package/docs/variables/ROOM_TYPE_MAP.html +7 -8
  346. package/docs/variables/defaultGlobalConfig.html +8 -9
  347. package/docs/variables/itemLabelPluginServerParams.html +7 -8
  348. package/docs/variables/modelItemLabelPluginServerParams.html +7 -8
  349. package/docs/variables/modelRoomLabelPluginServerParams.html +7 -8
  350. package/libs/AreaMakerPlugin/Controller.d.ts +94 -0
  351. package/libs/AreaMakerPlugin/Controller.js +336 -0
  352. package/libs/AreaMakerPlugin/index.d.ts +4 -0
  353. package/libs/AreaMakerPlugin/index.js +37 -0
  354. package/libs/AreaMakerPlugin/typing.d.ts +148 -0
  355. package/libs/AreaMakerPlugin/utils/Item.d.ts +115 -0
  356. package/libs/AreaMakerPlugin/utils/Item.js +266 -0
  357. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +42 -39
  358. package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -5
  359. package/libs/GuideLinePlugin/utils/createLineGeometry.js +13 -13
  360. package/libs/PanoTagPlugin/controller/TagRender.js +19 -18
  361. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +1 -1
  362. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -4
  363. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +2 -0
  364. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +10 -10
  365. package/libs/base/BasePlugin.js +1 -1
  366. package/libs/base/BasePluginWithData.d.ts +1 -1
  367. package/libs/components/AreaLabel/Assets/roomLabelBg.d.ts +1 -0
  368. package/libs/components/AreaLabel/Assets/roomLabelBg.js +4 -0
  369. package/libs/components/AreaLabel/LabelItem.js +125 -0
  370. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +49 -48
  371. package/libs/floorplan/index.d.ts +0 -1
  372. package/libs/floorplan/utils/correctFiveState.d.ts +2 -0
  373. package/libs/floorplan/utils/correctFiveState.js +28 -28
  374. package/libs/index.d.ts +1 -0
  375. package/libs/index.js +120 -122
  376. package/libs/shared-utils/device.js +0 -1
  377. package/libs/shared-utils/five/changeMode.js +32 -29
  378. package/libs/shared-utils/index.d.ts +1 -0
  379. package/libs/shared-utils/index.js +27 -21
  380. package/libs/shared-utils/logger.js +1 -1
  381. package/libs/shared-utils/math/planimetry.d.ts +1 -1
  382. package/libs/shared-utils/math/planimetry.js +36 -29
  383. package/libs/shared-utils/three/core/Object3D.d.ts +8 -0
  384. package/libs/shared-utils/three/core/Object3D.js +22 -0
  385. package/libs/shared-utils/three/index.d.ts +2 -0
  386. package/libs/shared-utils/three/loadVideoTexture.d.ts +1 -1
  387. package/libs/shared-utils/three/loadVideoTexture.js +6 -6
  388. package/libs/shared-utils/three/objects/LineSegments.d.ts +9 -0
  389. package/libs/shared-utils/three/objects/LineSegments.js +9 -0
  390. package/libs/vendor/svelte/internal/index.js +79 -85
  391. package/package.json +2 -2
  392. package/dist/floorplan/FloorplanRoomsPlugin/BasePlugin.d.ts +0 -114
  393. package/dist/floorplan/FloorplanRoomsPlugin/BasePluginWithData.d.ts +0 -23
  394. package/dist/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/Room.svelte.d.ts +0 -1
  395. package/dist/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/RoomHighlight.svelte.d.ts +0 -1
  396. package/dist/floorplan/FloorplanRoomsPlugin/Components/Main.svelte.d.ts +0 -1
  397. package/dist/floorplan/FloorplanRoomsPlugin/Controller.d.ts +0 -40
  398. package/dist/floorplan/FloorplanRoomsPlugin/index.d.ts +0 -6
  399. package/dist/floorplan/FloorplanRoomsPlugin/typing.d.ts +0 -60
  400. package/libs/floorplan/FloorplanRoomsPlugin/BasePlugin.d.ts +0 -114
  401. package/libs/floorplan/FloorplanRoomsPlugin/BasePlugin.js +0 -51
  402. package/libs/floorplan/FloorplanRoomsPlugin/BasePluginWithData.d.ts +0 -23
  403. package/libs/floorplan/FloorplanRoomsPlugin/BasePluginWithData.js +0 -25
  404. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/CurrentFloor.js +0 -188
  405. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/CurrentFloor.svelte.d.ts +0 -1
  406. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/ExtraObjects.js +0 -94
  407. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/ExtraObjects.svelte.d.ts +0 -1
  408. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/Room.js +0 -111
  409. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/Room.svelte.d.ts +0 -1
  410. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/RoomHighlight.js +0 -191
  411. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/RoomHighlight.svelte.d.ts +0 -1
  412. package/libs/floorplan/FloorplanRoomsPlugin/Components/Main.js +0 -237
  413. package/libs/floorplan/FloorplanRoomsPlugin/Components/Main.svelte.d.ts +0 -1
  414. package/libs/floorplan/FloorplanRoomsPlugin/Controller.d.ts +0 -40
  415. package/libs/floorplan/FloorplanRoomsPlugin/Controller.js +0 -207
  416. package/libs/floorplan/FloorplanRoomsPlugin/index.d.ts +0 -6
  417. package/libs/floorplan/FloorplanRoomsPlugin/index.js +0 -43
  418. package/libs/floorplan/FloorplanRoomsPlugin/typing.d.ts +0 -60
  419. /package/dist/{floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/CurrentFloor.svelte.d.ts → components/AreaLabel/LabelItem.svelte.d.ts} +0 -0
  420. /package/libs/{floorplan/FloorplanRoomsPlugin → AreaMakerPlugin}/typing.js +0 -0
  421. /package/{dist/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/ExtraObjects.svelte.d.ts → libs/components/AreaLabel/LabelItem.svelte.d.ts} +0 -0
@@ -0,0 +1,9 @@
1
+ /** @file three.js 中声明有问题,这里重载一下声明 */
2
+ import type { Geometry, BufferGeometry, Material } from 'three';
3
+ import { LineSegments as OriginLineSegments } from 'three';
4
+ declare class LineSegments<TGeometry extends Geometry | BufferGeometry = Geometry | BufferGeometry, TMaterial extends Material | Material[] = Material | Material[]> extends OriginLineSegments<TGeometry, TMaterial> {
5
+ geometry: TGeometry;
6
+ material: TMaterial;
7
+ constructor(geometry: TGeometry, material: TMaterial);
8
+ }
9
+ export { LineSegments };
@@ -0,0 +1,9 @@
1
+ import { LineSegments as n } from "three";
2
+ class m extends n {
3
+ constructor(e, s) {
4
+ super(e, s);
5
+ }
6
+ }
7
+ export {
8
+ m as LineSegments
9
+ };
@@ -151,25 +151,20 @@ function lt(t, e, n, i) {
151
151
  return t.addEventListener(e, n, i), () => t.removeEventListener(e, n, i);
152
152
  }
153
153
  function Zt(t) {
154
- return function(e) {
155
- return e.preventDefault(), t.call(this, e);
156
- };
157
- }
158
- function te(t) {
159
154
  return function(e) {
160
155
  return e.stopPropagation(), t.call(this, e);
161
156
  };
162
157
  }
163
- function ee(t, e, n) {
158
+ function te(t, e, n) {
164
159
  n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
165
160
  }
166
161
  function At(t) {
167
162
  return Array.from(t.childNodes);
168
163
  }
169
- function ne(t, e) {
164
+ function ee(t, e) {
170
165
  e = "" + e, t.data !== e && (t.data = e);
171
166
  }
172
- function ie(t, e, n, i) {
167
+ function ne(t, e, n, i) {
173
168
  n === null ? t.style.removeProperty(e) : t.style.setProperty(e, n, i ? "important" : "");
174
169
  }
175
170
  let W;
@@ -184,7 +179,7 @@ function Tt() {
184
179
  }
185
180
  return W;
186
181
  }
187
- function re(t, e) {
182
+ function ie(t, e) {
188
183
  getComputedStyle(t).position === "static" && (t.style.position = "relative");
189
184
  const i = K("iframe");
190
185
  i.setAttribute("style", "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"), i.setAttribute("aria-hidden", "true"), i.tabIndex = -1;
@@ -198,14 +193,14 @@ function re(t, e) {
198
193
  (r || s && i.contentWindow) && s(), J(i);
199
194
  };
200
195
  }
201
- function se(t, e, n) {
196
+ function re(t, e, n) {
202
197
  t.classList[n ? "add" : "remove"](e);
203
198
  }
204
199
  function yt(t, e, { bubbles: n = !1, cancelable: i = !1 } = {}) {
205
200
  const r = document.createEvent("CustomEvent");
206
201
  return r.initCustomEvent(t, n, i, e), r;
207
202
  }
208
- class oe {
203
+ class se {
209
204
  constructor(e = !1) {
210
205
  this.is_svg = !1, this.is_svg = e, this.e = this.n = null;
211
206
  }
@@ -271,28 +266,28 @@ function jt() {
271
266
  }), H.clear());
272
267
  });
273
268
  }
274
- let O;
269
+ let D;
275
270
  function v(t) {
276
- O = t;
271
+ D = t;
277
272
  }
278
273
  function A() {
279
- if (!O)
274
+ if (!D)
280
275
  throw new Error("Function called outside component initialization");
281
- return O;
276
+ return D;
282
277
  }
283
- function ce(t) {
278
+ function oe(t) {
284
279
  A().$$.before_update.push(t);
285
280
  }
286
- function ue(t) {
281
+ function ce(t) {
287
282
  A().$$.on_mount.push(t);
288
283
  }
289
- function le(t) {
284
+ function ue(t) {
290
285
  A().$$.after_update.push(t);
291
286
  }
292
- function fe(t) {
287
+ function le(t) {
293
288
  A().$$.on_destroy.push(t);
294
289
  }
295
- function ae() {
290
+ function fe() {
296
291
  const t = A();
297
292
  return (e, n, { cancelable: i = !1 } = {}) => {
298
293
  const r = t.$$.callbacks[e];
@@ -305,13 +300,13 @@ function ae() {
305
300
  return !0;
306
301
  };
307
302
  }
308
- function de(t, e) {
303
+ function ae(t, e) {
309
304
  return A().$$.context.set(t, e), e;
310
305
  }
311
- function he(t) {
306
+ function de(t) {
312
307
  return A().$$.context.get(t);
313
308
  }
314
- function _e(t, e) {
309
+ function he(t, e) {
315
310
  const n = t.$$.callbacks[e.type];
316
311
  n && n.slice().forEach((i) => i.call(this, e));
317
312
  }
@@ -322,13 +317,13 @@ let Y = !1;
322
317
  function wt() {
323
318
  Y || (Y = !0, bt.then(rt));
324
319
  }
325
- function pe() {
320
+ function _e() {
326
321
  return wt(), bt;
327
322
  }
328
323
  function z(t) {
329
324
  S.push(t);
330
325
  }
331
- function me(t) {
326
+ function pe(t) {
332
327
  X.push(t);
333
328
  }
334
329
  const V = /* @__PURE__ */ new Set();
@@ -336,7 +331,7 @@ let C = 0;
336
331
  function rt() {
337
332
  if (C !== 0)
338
333
  return;
339
- const t = O;
334
+ const t = D;
340
335
  do {
341
336
  try {
342
337
  for (; C < P.length; ) {
@@ -369,11 +364,11 @@ function zt(t) {
369
364
  const e = [], n = [];
370
365
  S.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), S = e;
371
366
  }
372
- let D;
367
+ let O;
373
368
  function st() {
374
- return D || (D = Promise.resolve(), D.then(() => {
375
- D = null;
376
- })), D;
369
+ return O || (O = Promise.resolve(), O.then(() => {
370
+ O = null;
371
+ })), O;
377
372
  }
378
373
  function T(t, e, n) {
379
374
  t.dispatchEvent(yt(`${e ? "intro" : "outro"}${n}`));
@@ -388,7 +383,7 @@ function Lt() {
388
383
  // parent group
389
384
  };
390
385
  }
391
- function Dt() {
386
+ function Ot() {
392
387
  x.r || M(x.c), x = x.p;
393
388
  }
394
389
  function ot(t, e) {
@@ -405,7 +400,7 @@ function $t(t, e, n, i) {
405
400
  i && i();
406
401
  }
407
402
  const ct = { duration: 0 };
408
- function ge(t, e, n) {
403
+ function me(t, e, n) {
409
404
  const i = { direction: "in" };
410
405
  let r = e(t, n, i), s = !1, c, o, l = 0;
411
406
  function u() {
@@ -440,7 +435,7 @@ function ge(t, e, n) {
440
435
  }
441
436
  };
442
437
  }
443
- function ye(t, e, n) {
438
+ function ge(t, e, n) {
444
439
  const i = { direction: "out" };
445
440
  let r = e(t, n, i), s = !0, c;
446
441
  const o = x;
@@ -469,7 +464,7 @@ function ye(t, e, n) {
469
464
  }
470
465
  };
471
466
  }
472
- function be(t, e, n, i) {
467
+ function ye(t, e, n, i) {
473
468
  const r = { direction: "both" };
474
469
  let s = e(t, n, r), c = i ? 0 : 1, o = null, l = null, u = null;
475
470
  function _() {
@@ -515,7 +510,7 @@ function be(t, e, n, i) {
515
510
  }
516
511
  };
517
512
  }
518
- function we(t, e) {
513
+ function be(t, e) {
519
514
  const n = e.token = {};
520
515
  function i(r, s, c, o) {
521
516
  if (e.token !== n)
@@ -528,7 +523,7 @@ function we(t, e) {
528
523
  e.block && (e.blocks ? e.blocks.forEach((a, d) => {
529
524
  d !== s && a && (Lt(), $t(a, 1, 1, () => {
530
525
  e.blocks[d] === a && (e.blocks[d] = null);
531
- }), Dt());
526
+ }), Ot());
532
527
  }) : e.block.d(1), u.c(), ot(u, 1), u.m(e.mount(), e.anchor), _ = !0), e.block = u, e.blocks && (e.blocks[s] = u), _ && rt();
533
528
  }
534
529
  if (xt(t)) {
@@ -546,20 +541,20 @@ function we(t, e) {
546
541
  e.resolved = t;
547
542
  }
548
543
  }
549
- function $e(t, e, n) {
544
+ function we(t, e, n) {
550
545
  const i = e.slice(), { resolved: r } = t;
551
546
  t.current === t.then && (i[t.value] = r), t.current === t.catch && (i[t.error] = r), t.block.p(i, n);
552
547
  }
553
- const ke = typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : global;
554
- function xe(t, e) {
548
+ const $e = typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : global;
549
+ function ke(t, e) {
555
550
  t.d(1), e.delete(t.key);
556
551
  }
557
- function Ee(t, e) {
552
+ function xe(t, e) {
558
553
  $t(t, 1, 1, () => {
559
554
  e.delete(t.key);
560
555
  });
561
556
  }
562
- function ve(t, e, n, i, r, s, c, o, l, u, _, a) {
557
+ function Ee(t, e, n, i, r, s, c, o, l, u, _, a) {
563
558
  let d = t.length, f = s.length, h = d;
564
559
  const m = {};
565
560
  for (; h--; )
@@ -586,7 +581,7 @@ function ve(t, e, n, i, r, s, c, o, l, u, _, a) {
586
581
  Q(p[f - 1]);
587
582
  return M(b), p;
588
583
  }
589
- function Ne(t, e) {
584
+ function ve(t, e) {
590
585
  const n = {}, i = {}, r = { $$scope: 1 };
591
586
  let s = t.length;
592
587
  for (; s--; ) {
@@ -605,17 +600,17 @@ function Ne(t, e) {
605
600
  c in n || (n[c] = void 0);
606
601
  return n;
607
602
  }
608
- function Me(t) {
603
+ function Ne(t) {
609
604
  return typeof t == "object" && t !== null ? t : {};
610
605
  }
611
- function Ae(t, e, n) {
606
+ function Me(t, e, n) {
612
607
  const i = t.$$.props[e];
613
608
  i !== void 0 && (t.$$.bound[i] = n, n(t.$$.ctx[i]));
614
609
  }
615
- function Te(t) {
610
+ function Ae(t) {
616
611
  t && t.c();
617
612
  }
618
- function Ot(t, e, n, i) {
613
+ function Dt(t, e, n, i) {
619
614
  const { fragment: r, after_update: s } = t.$$;
620
615
  r && r.m(e, n), i || z(() => {
621
616
  const c = t.$$.on_mount.map(at).filter(L);
@@ -629,8 +624,8 @@ function Rt(t, e) {
629
624
  function qt(t, e) {
630
625
  t.$$.dirty[0] === -1 && (P.push(t), wt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
631
626
  }
632
- function Ce(t, e, n, i, r, s, c, o = [-1]) {
633
- const l = O;
627
+ function Te(t, e, n, i, r, s, c, o = [-1]) {
628
+ const l = D;
634
629
  v(t);
635
630
  const u = t.$$ = {
636
631
  fragment: null,
@@ -664,11 +659,11 @@ function Ce(t, e, n, i, r, s, c, o = [-1]) {
664
659
  u.fragment && u.fragment.l(a), a.forEach(J);
665
660
  } else
666
661
  u.fragment && u.fragment.c();
667
- e.intro && ot(t.$$.fragment), Ot(t, e.target, e.anchor, e.customElement), rt();
662
+ e.intro && ot(t.$$.fragment), Dt(t, e.target, e.anchor, e.customElement), rt();
668
663
  }
669
664
  v(l);
670
665
  }
671
- class Pe {
666
+ class Ce {
672
667
  $destroy() {
673
668
  Rt(this, 1), this.$destroy = N;
674
669
  }
@@ -686,70 +681,69 @@ class Pe {
686
681
  }
687
682
  }
688
683
  export {
689
- oe as HtmlTag,
690
- Pe as SvelteComponent,
684
+ se as HtmlTag,
685
+ Ce as SvelteComponent,
691
686
  Jt as action_destroyer,
692
- me as add_flush_callback,
687
+ pe as add_flush_callback,
693
688
  z as add_render_callback,
694
- re as add_resize_listener,
695
- le as afterUpdate,
689
+ ie as add_resize_listener,
690
+ ue as afterUpdate,
696
691
  pt as append,
697
692
  Qt as append_styles,
698
693
  kt as assign,
699
- ee as attr,
700
- ce as beforeUpdate,
701
- Ae as bind,
694
+ te as attr,
695
+ oe as beforeUpdate,
696
+ Me as bind,
702
697
  ft as binding_callbacks,
703
- _e as bubble,
704
- Dt as check_outros,
705
- ae as createEventDispatcher,
706
- be as create_bidirectional_transition,
707
- Te as create_component,
708
- ge as create_in_transition,
709
- ye as create_out_transition,
698
+ he as bubble,
699
+ Ot as check_outros,
700
+ fe as createEventDispatcher,
701
+ ye as create_bidirectional_transition,
702
+ Ae as create_component,
703
+ me as create_in_transition,
704
+ ge as create_out_transition,
710
705
  Bt as create_slot,
711
- xe as destroy_block,
706
+ ke as destroy_block,
712
707
  Rt as destroy_component,
713
708
  Vt as destroy_each,
714
709
  J as detach,
715
710
  K as element,
716
711
  Yt as empty,
717
- he as getContext,
712
+ de as getContext,
718
713
  Ut as get_all_dirty_from_scope,
719
714
  Ht as get_slot_changes,
720
- Me as get_spread_object,
721
- Ne as get_spread_update,
722
- ke as globals,
715
+ Ne as get_spread_object,
716
+ ve as get_spread_update,
717
+ $e as globals,
723
718
  Lt as group_outros,
724
- we as handle_promise,
719
+ be as handle_promise,
725
720
  Z as identity,
726
- Ce as init,
721
+ Te as init,
727
722
  Nt as insert,
728
723
  L as is_function,
729
724
  lt as listen,
730
- Ot as mount_component,
725
+ Dt as mount_component,
731
726
  N as noop,
732
727
  Gt as null_to_empty,
733
- fe as onDestroy,
734
- ue as onMount,
735
- Ee as outro_and_destroy_block,
736
- Zt as prevent_default,
728
+ le as onDestroy,
729
+ ce as onMount,
730
+ xe as outro_and_destroy_block,
737
731
  M as run_all,
738
732
  Ft as safe_not_equal,
739
- de as setContext,
740
- ne as set_data,
741
- ie as set_style,
733
+ ae as setContext,
734
+ ee as set_data,
735
+ ne as set_style,
742
736
  Xt as space,
743
737
  Kt as split_css_unit,
744
738
  Wt as src_url_equal,
745
- te as stop_propagation,
739
+ Zt as stop_propagation,
746
740
  Mt as svg_element,
747
741
  gt as text,
748
- pe as tick,
749
- se as toggle_class,
742
+ _e as tick,
743
+ re as toggle_class,
750
744
  ot as transition_in,
751
745
  $t as transition_out,
752
- $e as update_await_block_branch,
753
- ve as update_keyed_each,
746
+ we as update_await_block_branch,
747
+ Ee as update_keyed_each,
754
748
  It as update_slot_base
755
749
  };
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "repository": "https://github.com/realsee-developer/dnalogel.git",
8
8
  "description": "如视 VR 看房插件合集",
9
9
  "private": false,
10
- "version": "2.28.0-dev.1",
10
+ "version": "2.28.1-0",
11
11
  "license": "SEE LICENSE IN TERMS.txt",
12
12
  "scripts": {
13
13
  "clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
@@ -21,7 +21,7 @@
21
21
  "build:dist": "NODE_ENV=production BUILD_MODULE=dist vite build -m production",
22
22
  "build:components": "NODE_ENV=production BUILD_MODULE=components vite build -m production",
23
23
  "docs": "typedoc --options ./typedoc.json",
24
- "prepublishOnly": "run-p build docs",
24
+ "prepublishOnly": "run-p build",
25
25
  "postpublish": "cnpm sync @realsee/dnalogel"
26
26
  },
27
27
  "files": [
@@ -1,114 +0,0 @@
1
- import { Subscribe } from '../../shared-utils/Subscribe';
2
- /**
3
- * 基本属性字段
4
- */
5
- interface State {
6
- /**
7
- * 插件是否启用
8
- */
9
- enabled: boolean;
10
- /**
11
- * 插件UI是否展示
12
- */
13
- visible?: boolean;
14
- /**
15
- * 插件的配置项
16
- */
17
- config?: unknown;
18
- }
19
- interface BaseOptions {
20
- /** 是否是用户行为 */
21
- userAction?: boolean;
22
- }
23
- interface Config {
24
- /** 静态资源前缀 */
25
- staticPrefix?: string;
26
- /** 国际化转换函数 */
27
- i18n?: (key: string) => string;
28
- }
29
- /**
30
- * 插件基本事件
31
- */
32
- type EventMap<PluginState> = {
33
- /**
34
- * 插件被销毁
35
- */
36
- dispose: () => void;
37
- /**
38
- * 插件状态变化
39
- * @param params.state 最新的State
40
- * @param params.prevState 上一个State
41
- * @param params.userAction 是否是用户触发
42
- */
43
- stateChange: (params: {
44
- state: PluginState;
45
- prevState?: PluginState;
46
- userAction: boolean;
47
- }) => void;
48
- };
49
- /**
50
- * plugin 的基本控制器
51
- */
52
- declare abstract class Controller<PluginState extends State, PluginEventMap extends EventMap<PluginState>> {
53
- /**
54
- * @realsee/dnalogel 版本号
55
- */
56
- readonly VERSION: string;
57
- /**
58
- * 插件事件钩子
59
- */
60
- hooks: Subscribe<PluginEventMap>;
61
- readonly staticPrefix: string;
62
- /**
63
- * 当前状态
64
- * @description
65
- * ```text
66
- * 可以通过 plugin.state 和 plugin.setState 来获取和设置。
67
- * 通过 state 设置后,plugin 会通过合适的动画运动来达到设置的效果。
68
- * 来迎合一些通过数据驱动的场景。
69
- * ```
70
- */
71
- abstract state: PluginState;
72
- constructor(config?: Config);
73
- /**
74
- * 获取当前的插件状态,如果当初插件内存在需要通过动画变更的 state 值,则通过此方法可以得到中间状态
75
- */
76
- getCurrentState(): PluginState;
77
- /**
78
- * 插件自身DOM添加到父容器
79
- * @param wrapper
80
- */
81
- appendTo?(wrapper: Element): void;
82
- /**
83
- * 展示UI
84
- */
85
- show?(options?: BaseOptions): Promise<void>;
86
- /**
87
- * 隐藏UI
88
- */
89
- hide?(options?: BaseOptions): Promise<void>;
90
- /**
91
- * 设置state
92
- * @param state 插件的目标状态
93
- * @param options 配置项
94
- */
95
- setState?(state: Partial<PluginState>, options?: BaseOptions): void;
96
- /**
97
- * @description: 获取静态资源的url
98
- */
99
- absoluteUrl(url: string): string;
100
- /**
101
- * 启用插件,让插件能够响应交互
102
- */
103
- abstract enable(options?: BaseOptions): void;
104
- /**
105
- * 禁用插件,让插件停止响应交互
106
- */
107
- abstract disable(options?: BaseOptions): void;
108
- /**
109
- * 插件进行销毁
110
- */
111
- abstract dispose(): void;
112
- }
113
- export type { State, Config, EventMap, BaseOptions };
114
- export { Controller };
@@ -1,23 +0,0 @@
1
- import * as BasePlugin from './BasePlugin';
2
- type State = BasePlugin.State;
3
- type Config = BasePlugin.Config;
4
- interface EventMap<PluginState, PluginData> extends BasePlugin.EventMap<PluginState> {
5
- /** 数据变更 */
6
- dataChange: (data: PluginData, prevData?: PluginData) => void;
7
- /** 数据加载完成 */
8
- dataLoaded: (data: PluginData) => void;
9
- }
10
- declare abstract class Controller<PluginState extends State, PluginEventMap extends EventMap<PluginState, PluginData>, PluginServerData, PluginData> extends BasePlugin.Controller<PluginState, PluginEventMap> {
11
- protected abstract data?: PluginData;
12
- /**
13
- * 加载插件依赖数据
14
- * @param serverData 插件数据
15
- * @param state 插件 State
16
- */
17
- abstract load(serverData: PluginServerData, state?: PluginState, userAction?: boolean): Promise<void>;
18
- /** 把原始数据转化为插件数据 */
19
- protected abstract formatData?(serverData: PluginServerData): Promise<PluginData>;
20
- }
21
- export type { State, EventMap, Config };
22
- export type { BaseOptions } from './BasePlugin';
23
- export { Controller };
@@ -1 +0,0 @@
1
- export { SvelteComponentTyped as default } from 'svelte/internal';
@@ -1 +0,0 @@
1
- export { SvelteComponentTyped as default } from 'svelte/internal';
@@ -1 +0,0 @@
1
- export { SvelteComponentTyped as default } from 'svelte/internal';
@@ -1,40 +0,0 @@
1
- import type { BaseOptions } from './BasePlugin';
2
- import type { FloorplanServerData } from '../typings/floorplanServerData';
3
- import type { FloorplanExtraObject3D } from '../typings/floorplanData';
4
- import type { HighlightData } from '../typings';
5
- import type { State, Config, EventMap, Parameters, PluginData, PluginServerData } from './typing';
6
- import * as BasePlugin from './BasePluginWithData';
7
- export declare class Controller extends BasePlugin.Controller<State, EventMap, PluginServerData, PluginData> {
8
- name: string;
9
- state: State;
10
- protected data?: PluginData;
11
- private app?;
12
- private wrapperSelector;
13
- private wrapper;
14
- private disposed;
15
- private extraObjects;
16
- private highlightData;
17
- constructor(params?: Parameters);
18
- dispose: () => void;
19
- load(serverData: PluginServerData | FloorplanServerData, state?: Partial<State>, userAction?: boolean): Promise<void>;
20
- show(options?: BaseOptions): Promise<void>;
21
- hide(options?: BaseOptions): Promise<void>;
22
- enable(options?: BaseOptions): void;
23
- disable(options?: BaseOptions): void;
24
- highlight: (highlightData: HighlightData) => void;
25
- unhighlight: () => void;
26
- getHighlightData: () => HighlightData;
27
- /** 更改插件 State */
28
- setState(state: Partial<State>, options?: BaseOptions): void;
29
- /** 把插件的渲染DOM插入到对应的容器中去 */
30
- appendTo(wrapper: Element): void;
31
- changeConfigs(config: Config, userAction?: boolean): void;
32
- setExtraObjectsWith3DPositions(data: FloorplanExtraObject3D[]): void;
33
- protected formatData(serverData: PluginServerData): Promise<PluginData>;
34
- private _enable;
35
- private _disable;
36
- private _show;
37
- private _hide;
38
- private updateState;
39
- private render;
40
- }
@@ -1,6 +0,0 @@
1
- import type { Parameters } from './typing';
2
- import { Controller } from './Controller';
3
- export declare const FloorplanRoomsPlugin: (params: any) => Controller;
4
- export type FloorplanRoomsPluginParameterType = Parameters | undefined;
5
- export type FloorplanRoomsPluginReturnType = InstanceType<typeof Controller>;
6
- export default FloorplanRoomsPlugin;
@@ -1,60 +0,0 @@
1
- import type * as BasePlugin from './BasePluginWithData';
2
- import type { FloorplanData } from '../typings/floorplanData';
3
- import type { FloorplanServerData } from '../typings/floorplanServerData';
4
- export interface HighlightStyle {
5
- color: string;
6
- opacity: number;
7
- disabled?: boolean;
8
- }
9
- export interface Config {
10
- /** 鼠标放置在分间上时,是否要自动高亮分间 */
11
- hoverEnable: boolean;
12
- /** 支持highlight功能,默认为 false */
13
- highlightEnable: boolean;
14
- /** highlight的样式 */
15
- highlightStyle?: HighlightStyle;
16
- }
17
- export interface State extends BasePlugin.State {
18
- visible: boolean;
19
- config: Config;
20
- }
21
- export interface EventMap extends BasePlugin.EventMap<State, FloorplanData> {
22
- /** visible 从 false 到 true 的回调
23
- * @param event.userAction 是否是用户操作
24
- */
25
- show: (event: {
26
- userAction: boolean;
27
- }) => void;
28
- /** visible 从 true 到 false 的回调
29
- * @param event.userAction 是否是用户操作
30
- */
31
- hide: (event: {
32
- userAction: boolean;
33
- }) => void;
34
- /** enabled 从 false 到 true 的回调
35
- * @param event.userAction 是否是用户操作
36
- */
37
- enable: (event: {
38
- userAction: boolean;
39
- }) => void;
40
- /** enabled 从 true 到 false 的回调
41
- * @param event.userAction 是否是用户操作
42
- */
43
- disable: (event: {
44
- userAction: boolean;
45
- }) => void;
46
- }
47
- /** 插件初始化参数 */
48
- export interface Parameters extends Partial<Config> {
49
- wrapper?: string | Element;
50
- configs?: {
51
- hoverEnable?: boolean;
52
- highlightEnable?: boolean;
53
- highlightStyle?: HighlightStyle;
54
- };
55
- }
56
- export interface PluginServerData {
57
- version: number;
58
- data: FloorplanServerData;
59
- }
60
- export type { FloorplanData as PluginData };