@realsee/dnalogel 2.19.1 → 2.20.0-alpha.1

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 (363) hide show
  1. package/dist/PanoTagPlugin/Archive/deprecated.d.ts +48 -1
  2. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +12 -12
  3. package/dist/PanoTagPlugin/controller/TagRender.d.ts +5 -5
  4. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +20 -20
  5. package/dist/PanoTagPlugin/controller/index.d.ts +7 -7
  6. package/dist/PanoTagPlugin/typings/controller.d.ts +8 -58
  7. package/dist/PanoTagPlugin/typings/index.d.ts +7 -5
  8. package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +4 -4
  9. package/dist/PanoTagPlugin/utils/resizeObserver.d.ts +1 -1
  10. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +11 -11
  11. package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -2
  12. package/dist/index.cjs.js +39 -39
  13. package/dist/index.js +677 -672
  14. package/dist/index.umd.js +32 -32
  15. package/docs/assets/search.js +1 -1
  16. package/docs/classes/CSS3DRender.html +45 -38
  17. package/docs/classes/CruisePluginController.html +40 -33
  18. package/docs/classes/GuideLineItem.GuideLineItem.html +34 -27
  19. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +45 -38
  20. package/docs/classes/Magnifier.html +34 -27
  21. package/docs/classes/ModelRoomLabelController.html +25 -18
  22. package/docs/classes/Object3DHelperController.html +39 -32
  23. package/docs/classes/PaintBrush.html +29 -22
  24. package/docs/classes/PanoMeasurePluginLine.html +37 -30
  25. package/docs/classes/PanoMeasurePluginModel.html +36 -29
  26. package/docs/classes/PanoMeasurePluginPoint.html +28 -21
  27. package/docs/classes/PanoMeasurePluginPolyline.html +40 -33
  28. package/docs/classes/PanoTagPluginController.html +86 -79
  29. package/docs/classes/Util.BetterTween.html +23 -16
  30. package/docs/classes/Util.FivePointSelector.html +26 -19
  31. package/docs/classes/Util.Interval.html +26 -19
  32. package/docs/classes/Util.Magnifier.html +31 -24
  33. package/docs/classes/Util.PointDomHelper.html +25 -18
  34. package/docs/classes/Util.PointHelper.html +25 -18
  35. package/docs/classes/Util.Rectangle.html +27 -20
  36. package/docs/enums/CameraMovementEffect.html +21 -14
  37. package/docs/enums/ContentType.html +69 -58
  38. package/docs/enums/DIRECTION.html +23 -16
  39. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +23 -16
  40. package/docs/enums/DimensionType.html +21 -14
  41. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +22 -15
  42. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +23 -16
  43. package/docs/enums/PaintBrushTypeEnum.html +22 -15
  44. package/docs/enums/PointType.html +390 -0
  45. package/docs/enums/Rotation.html +22 -15
  46. package/docs/functions/CSS3DRenderPlugin.html +18 -11
  47. package/docs/functions/CameraMovementPlugin.html +18 -11
  48. package/docs/functions/CruisePlugin.html +18 -11
  49. package/docs/functions/GuideLinePlugin.html +19 -12
  50. package/docs/functions/ItemLabelPlugin.html +18 -11
  51. package/docs/functions/MapviewFloorplanPlugin.html +18 -11
  52. package/docs/functions/ModelChassisCompassPlugin.html +18 -11
  53. package/docs/functions/ModelEntryDoorGuidePlugin.html +18 -11
  54. package/docs/functions/ModelFloorplanPlugin.html +18 -11
  55. package/docs/functions/ModelItemLabelPlugin.html +18 -11
  56. package/docs/functions/ModelRoomLabelPlugin.html +18 -11
  57. package/docs/functions/ModelTVVideoPlugin.html +18 -11
  58. package/docs/functions/ModelViewPlugin.html +18 -11
  59. package/docs/functions/Object3DHelperPlugin.html +18 -11
  60. package/docs/functions/PanoCompassPlugin.html +18 -11
  61. package/docs/functions/PanoCursorRaycasterPlugin.html +18 -11
  62. package/docs/functions/PanoDoorLabelPlugin.html +18 -11
  63. package/docs/functions/PanoFloorplanRadarPlugin.html +18 -11
  64. package/docs/functions/PanoMeasurePlugin.html +18 -11
  65. package/docs/functions/PanoRulerPlugin.html +18 -11
  66. package/docs/functions/PanoRulerProPlugin.html +18 -11
  67. package/docs/functions/PanoSpatialTagPlugin.html +18 -11
  68. package/docs/functions/PanoTagPlugin.html +18 -11
  69. package/docs/functions/PanoVideoPlugin.html +18 -11
  70. package/docs/functions/TopviewFloorplanPlugin.html +18 -11
  71. package/docs/functions/Util.getCoordsFromClient.html +19 -12
  72. package/docs/functions/Util.getCoordsFromElement.html +19 -12
  73. package/docs/functions/Util.getFrameTime.html +19 -12
  74. package/docs/functions/Util.getIntersectFromRelativePosition.html +19 -12
  75. package/docs/functions/Util.getRaycasterFromFivePointer.html +19 -12
  76. package/docs/functions/Util.isAbsoluteURL.html +19 -12
  77. package/docs/functions/Util.isModelLike.html +19 -12
  78. package/docs/functions/Util.isNil.html +19 -12
  79. package/docs/functions/Util.isPanoramaLike.html +19 -12
  80. package/docs/functions/Util.nextFrame.html +19 -12
  81. package/docs/functions/Util.notNil.html +19 -12
  82. package/docs/functions/Util.requestAnimationFrameInterval.html +19 -12
  83. package/docs/functions/Util.tweenProgress.html +19 -12
  84. package/docs/functions/Util.uuid.html +19 -12
  85. package/docs/functions/pluginFlag.html +19 -12
  86. package/docs/index.html +19 -12
  87. package/docs/interfaces/AddTagConfig.html +20 -13
  88. package/docs/interfaces/CSS3DRenderPluginEventMap.html +25 -18
  89. package/docs/interfaces/CSS3DRenderPluginState.html +22 -15
  90. package/docs/interfaces/CameraMovementPluginExportType.html +21 -14
  91. package/docs/interfaces/ContentTypeMapInterface.html +724 -0
  92. package/docs/interfaces/CruisePluginTypes.Config.html +22 -15
  93. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +26 -19
  94. package/docs/interfaces/CruisePluginTypes.EventMap.html +34 -27
  95. package/docs/interfaces/CruisePluginTypes.MoveAction.html +26 -19
  96. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +28 -21
  97. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +28 -21
  98. package/docs/interfaces/CruisePluginTypes.PluginData.html +23 -16
  99. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +21 -14
  100. package/docs/interfaces/CruisePluginTypes.PluginState.html +25 -18
  101. package/docs/interfaces/EventMap.html +31 -24
  102. package/docs/interfaces/FloorplanBounding.html +22 -15
  103. package/docs/interfaces/FloorplanData.html +24 -17
  104. package/docs/interfaces/FloorplanEntrance.html +25 -18
  105. package/docs/interfaces/FloorplanExtraObject.html +24 -17
  106. package/docs/interfaces/FloorplanExtraObject3D.html +22 -15
  107. package/docs/interfaces/FloorplanFloorData.html +23 -16
  108. package/docs/interfaces/FloorplanImagePosition.html +21 -14
  109. package/docs/interfaces/FloorplanObserver.html +23 -16
  110. package/docs/interfaces/FloorplanOutlineItem.html +23 -16
  111. package/docs/interfaces/FloorplanPosition.html +21 -14
  112. package/docs/interfaces/FloorplanRoomItem.html +27 -20
  113. package/docs/interfaces/FloorplanRoomLabelItem.html +21 -14
  114. package/docs/interfaces/FloorplanServerBounding.html +22 -15
  115. package/docs/interfaces/FloorplanServerComputedData.html +24 -17
  116. package/docs/interfaces/FloorplanServerData.html +21 -14
  117. package/docs/interfaces/FloorplanServerDoorItem.html +24 -17
  118. package/docs/interfaces/FloorplanServerDoorPosition.html +22 -15
  119. package/docs/interfaces/FloorplanServerEntrance.html +25 -18
  120. package/docs/interfaces/FloorplanServerFloorData.html +23 -16
  121. package/docs/interfaces/FloorplanServerImagePosition.html +21 -14
  122. package/docs/interfaces/FloorplanServerObserver.html +23 -16
  123. package/docs/interfaces/FloorplanServerOutlineItem.html +23 -16
  124. package/docs/interfaces/FloorplanServerPosition.html +21 -14
  125. package/docs/interfaces/FloorplanServerRoomItem.html +28 -21
  126. package/docs/interfaces/FloorplanServerRoomLabelItem.html +21 -14
  127. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +22 -15
  128. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +24 -17
  129. package/docs/interfaces/GuideLinePluginType.EventMap.html +27 -20
  130. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +22 -15
  131. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +20 -13
  132. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +27 -20
  133. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +22 -15
  134. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +32 -25
  135. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +21 -14
  136. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +32 -25
  137. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +19 -12
  138. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +21 -14
  139. package/docs/interfaces/GuideLinePluginType.PluginState.html +22 -15
  140. package/docs/interfaces/GuideLinePluginType.Route.html +25 -18
  141. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +23 -16
  142. package/docs/interfaces/HelperOffset.html +22 -15
  143. package/docs/interfaces/ImagePlaneGroup.html +20 -13
  144. package/docs/interfaces/ItemLabelPluginData.html +20 -13
  145. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +25 -18
  146. package/docs/interfaces/ItemLabelPluginParametersType.html +23 -16
  147. package/docs/interfaces/MinMax.html +21 -14
  148. package/docs/interfaces/ModelChassisCompassPluginData.html +21 -14
  149. package/docs/interfaces/ModelChassisCompassPluginExportType.html +22 -15
  150. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +21 -14
  151. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +22 -15
  152. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +22 -15
  153. package/docs/interfaces/ModelItemLabelPluginData.html +20 -13
  154. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +25 -18
  155. package/docs/interfaces/ModelItemLabelPluginParametersType.html +21 -14
  156. package/docs/interfaces/ModelRoomLabelPluginData.html +20 -13
  157. package/docs/interfaces/ModelTVVideoPluginData.html +23 -16
  158. package/docs/interfaces/ModelTVVideoPluginExportType.html +22 -15
  159. package/docs/interfaces/ModelTVVideoPluginParameterType.html +20 -13
  160. package/docs/interfaces/ModelViewPluginExportType.html +25 -18
  161. package/docs/interfaces/Object3DHelperState.html +22 -15
  162. package/docs/interfaces/ObjectHelperControllers.html +23 -16
  163. package/docs/interfaces/PaintBrushAction.html +26 -19
  164. package/docs/interfaces/PaintBrushConfigs.html +26 -19
  165. package/docs/interfaces/PaintBrushState.html +24 -17
  166. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +24 -17
  167. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +19 -12
  168. package/docs/interfaces/PanoMeasureParameterType.html +28 -21
  169. package/docs/interfaces/PanoMeasurePluginLineJson.html +22 -15
  170. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +21 -14
  171. package/docs/interfaces/PanoMeasurePluginPointJson.html +21 -14
  172. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +22 -15
  173. package/docs/interfaces/PanoRulerPluginExportType.html +24 -17
  174. package/docs/interfaces/PanoRulerPluginOptions.html +21 -14
  175. package/docs/interfaces/PanoRulerPluginParameterType.html +22 -15
  176. package/docs/interfaces/PanoRulerProPluginExportType.html +23 -16
  177. package/docs/interfaces/PanoRulerProPluginOptions.html +21 -14
  178. package/docs/interfaces/PanoRulerProPluginParameterType.html +21 -14
  179. package/docs/interfaces/PanoRulerProPluginState.html +22 -15
  180. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +19 -12
  181. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +19 -12
  182. package/docs/interfaces/PanoSpatialTagPluginData.html +25 -18
  183. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +24 -17
  184. package/docs/interfaces/PanoSpatialTagPluginExportType.html +27 -20
  185. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +24 -17
  186. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +27 -20
  187. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +25 -18
  188. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +24 -17
  189. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +20 -13
  190. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +22 -15
  191. package/docs/interfaces/PanoVideoPluginType.PluginData.html +20 -13
  192. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +23 -16
  193. package/docs/interfaces/PanoVideoPluginType.PluginState.html +20 -13
  194. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +22 -15
  195. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +24 -17
  196. package/docs/interfaces/Point.html +22 -15
  197. package/docs/interfaces/Room.html +23 -16
  198. package/docs/interfaces/RoomInfo.html +21 -14
  199. package/docs/interfaces/RoomLabel.html +28 -21
  200. package/docs/interfaces/RoomRules.html +19 -12
  201. package/docs/interfaces/Rooms.html +19 -12
  202. package/docs/interfaces/Scissor.html +23 -16
  203. package/docs/interfaces/State.html +22 -15
  204. package/docs/interfaces/TagCacheInterface.html +26 -19
  205. package/docs/interfaces/TagConfig.html +32 -27
  206. package/docs/interfaces/TagGLTFObjectGroup.html +20 -13
  207. package/docs/interfaces/TagIconUrl.html +26 -19
  208. package/docs/interfaces/TagObjectGroup.html +20 -13
  209. package/docs/interfaces/TagStyle.html +20 -13
  210. package/docs/interfaces/Tags.html +116 -129
  211. package/docs/interfaces/TemporaryState.html +20 -13
  212. package/docs/interfaces/Util.MagnifierParameter.html +25 -18
  213. package/docs/interfaces/Util.MouseGroupParameter.html +22 -15
  214. package/docs/modules/CruisePluginTypes.html +19 -12
  215. package/docs/modules/GuideLineItem.html +19 -12
  216. package/docs/modules/GuideLineModeItem.html +19 -12
  217. package/docs/modules/GuideLinePluginType.html +19 -12
  218. package/docs/modules/PanoVideoPluginType.html +19 -12
  219. package/docs/modules/Util.html +19 -12
  220. package/docs/modules.html +34 -20
  221. package/docs/types/ArrayPosition.html +19 -12
  222. package/docs/types/AudioAppearance.html +20 -13
  223. package/docs/types/AudioTagTypeConfigKey.html +19 -12
  224. package/docs/types/CSS3DRenderExportType.html +19 -12
  225. package/docs/types/CSS3DRenderPluginExportType.html +19 -12
  226. package/docs/types/CSS3DRenderPluginParameterType.html +19 -12
  227. package/docs/types/ClassFunctionParameters.html +19 -12
  228. package/docs/types/Color.html +19 -12
  229. package/docs/types/ConfigFunction.html +390 -0
  230. package/docs/types/ContentTypeConfigKey.html +19 -12
  231. package/docs/types/ContentTypeConfigKeySplit.html +19 -12
  232. package/docs/types/ContentTypeMap.html +20 -13
  233. package/docs/types/ContentTypeMapInterfaceWithExtraData.html +359 -0
  234. package/docs/types/Create3DDomContainerReturnType.html +19 -12
  235. package/docs/types/Create3DElementReturnType.html +19 -12
  236. package/docs/types/CruisePluginExportType.html +19 -12
  237. package/docs/types/CruisePluginTypes.CruiseData.html +19 -12
  238. package/docs/types/CruisePluginTypes.MoveEffect.html +19 -12
  239. package/docs/types/DeprecatedMediaPlaneProperty.html +371 -0
  240. package/docs/types/DeprecatedTagProperty.html +374 -0
  241. package/docs/types/Direction-1.html +19 -12
  242. package/docs/types/Direction4.html +19 -12
  243. package/docs/types/ElementRenderer.html +19 -12
  244. package/docs/types/FloorplanRuleLabels.html +19 -12
  245. package/docs/types/FloorplanServerRuleLabels.html +19 -12
  246. package/docs/types/GuideLinePluginExportType.html +19 -12
  247. package/docs/types/GuideLinePluginType.GuideLineItem.html +19 -12
  248. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +19 -12
  249. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +19 -12
  250. package/docs/types/GuideLinePluginType.GuideLineStyle.html +19 -12
  251. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +19 -12
  252. package/docs/types/GuideLinePluginType.PathItem.html +19 -12
  253. package/docs/types/GuideLinePluginType.PluginData.html +19 -12
  254. package/docs/types/HelperEventMap.html +19 -12
  255. package/docs/types/LoadTagConfig.html +19 -12
  256. package/docs/types/MapviewFloorplanPluginParameterType.html +19 -12
  257. package/docs/types/MapviewFloorplanPluginReturnType.html +19 -12
  258. package/docs/types/MediaData.html +19 -12
  259. package/docs/types/MediaStore.html +19 -12
  260. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +19 -12
  261. package/docs/types/ModelFloorplanPluginParameterType.html +19 -12
  262. package/docs/types/ModelFloorplanPluginReturnType.html +19 -12
  263. package/docs/types/ModelRoomLabelPluginParameters.html +19 -12
  264. package/docs/types/ModelRoomLabelPluginReturnType.html +19 -12
  265. package/docs/types/MoveArgs.html +19 -12
  266. package/docs/types/MoveOpts.html +19 -12
  267. package/docs/types/{Point2DElement.html → Object.html} +22 -20
  268. package/docs/types/Object3DHelperEventMap.html +19 -12
  269. package/docs/types/ObjectFit.html +19 -12
  270. package/docs/types/PaintBrushEventMap.html +19 -12
  271. package/docs/types/PanoCompassPluginData.html +19 -12
  272. package/docs/types/PanoCompassPluginExportType.html +19 -12
  273. package/docs/types/PanoCompassPluginParameterType.html +19 -12
  274. package/docs/types/PanoFloorplanRadarPluginParameterType.html +19 -12
  275. package/docs/types/PanoFloorplanRadarPluginReturnType.html +19 -12
  276. package/docs/types/PanoIndex.html +19 -12
  277. package/docs/types/PanoMeasurePluginEvent.html +19 -12
  278. package/docs/types/PanoMeasureReturnType.html +19 -12
  279. package/docs/types/PanoSpatialTagPluginId.html +19 -12
  280. package/docs/types/PanoTagPluginExportInterface.html +19 -12
  281. package/docs/types/PanoTagPluginParamsInterface.html +19 -12
  282. package/docs/types/PanoVideoPluginParameterType.html +19 -12
  283. package/docs/types/PanoVideoPluginReturnType.html +19 -12
  284. package/docs/types/{Point3DElement.html → PartialObjectDeep.html} +23 -16
  285. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +20 -13
  286. package/docs/types/PlaneTag.html +20 -13
  287. package/docs/types/Point2DTag.html +20 -13
  288. package/docs/types/Point3DTag.html +20 -13
  289. package/docs/types/PointTag.html +20 -13
  290. package/docs/types/{PointTagElement.html → PointTagInstance.html} +22 -15
  291. package/docs/types/Position.html +19 -12
  292. package/docs/types/{ModelElement.html → RequiredTag.html} +25 -16
  293. package/docs/types/RotateArgs.html +19 -12
  294. package/docs/types/RotateOpts.html +19 -12
  295. package/docs/types/RuleLabelsKey.html +19 -12
  296. package/docs/types/RuleLabelsValue.html +19 -12
  297. package/docs/types/StickType.html +19 -12
  298. package/docs/types/Tag.html +20 -13
  299. package/docs/types/Tag2D.html +19 -12
  300. package/docs/types/Tag3D.html +19 -12
  301. package/docs/types/TagContentType.html +19 -12
  302. package/docs/types/TagDimensionType.html +22 -13
  303. package/docs/types/TagElement.html +23 -13
  304. package/docs/types/TagEvents.html +19 -12
  305. package/docs/types/TagGLTFObject.html +19 -12
  306. package/docs/types/TagHooks.html +19 -12
  307. package/docs/types/TagIconSize.html +19 -12
  308. package/docs/types/TagId.html +19 -12
  309. package/docs/types/TagInstance.html +366 -0
  310. package/docs/types/{PlaneTagElement.html → TagPointType.html} +25 -20
  311. package/docs/types/TopviewFloorplanPluginParameterType.html +19 -12
  312. package/docs/types/TopviewFloorplanPluginReturnType.html +19 -12
  313. package/docs/types/WorkCode.html +19 -12
  314. package/docs/variables/FLOOR_TYPE_MAP.html +19 -12
  315. package/docs/variables/PLUGIN.html +19 -12
  316. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +19 -12
  317. package/docs/variables/ROOM_TYPE_MAP.html +19 -12
  318. package/docs/variables/itemLabelPluginServerParams.html +19 -12
  319. package/docs/variables/modelItemLabelPluginServerParams.html +19 -12
  320. package/docs/variables/modelRoomLabelPluginServerParams.html +19 -12
  321. package/libs/CruisePlugin/Controller.js +74 -74
  322. package/libs/GuideLinePlugin/Controller.js +7 -7
  323. package/libs/PanoTagPlugin/Archive/deprecated.d.ts +48 -1
  324. package/libs/PanoTagPlugin/Archive/deprecated.js +4 -2
  325. package/libs/PanoTagPlugin/Components/Tag/index.js +21 -21
  326. package/libs/PanoTagPlugin/Components/TagItem.js +46 -46
  327. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +12 -12
  328. package/libs/PanoTagPlugin/controller/TagComputer.js +27 -27
  329. package/libs/PanoTagPlugin/controller/TagRender.d.ts +5 -5
  330. package/libs/PanoTagPlugin/controller/TagRender.js +33 -31
  331. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +20 -20
  332. package/libs/PanoTagPlugin/controller/TagUtil.js +17 -20
  333. package/libs/PanoTagPlugin/controller/index.d.ts +7 -7
  334. package/libs/PanoTagPlugin/controller/index.js +36 -34
  335. package/libs/PanoTagPlugin/index.js +11 -11
  336. package/libs/PanoTagPlugin/typings/controller.d.ts +8 -58
  337. package/libs/PanoTagPlugin/typings/index.d.ts +7 -5
  338. package/libs/PanoTagPlugin/typings/index.js +4 -4
  339. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.js +1 -0
  340. package/libs/PanoTagPlugin/typings/tag/TagData.d.js +1 -0
  341. package/libs/PanoTagPlugin/typings/tag/TagInstance.d.js +1 -0
  342. package/libs/PanoTagPlugin/typings/tag/Utils.d.js +1 -0
  343. package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +4 -4
  344. package/libs/PanoTagPlugin/utils/planeNormal.js +5 -5
  345. package/libs/PanoTagPlugin/utils/resizeObserver.d.ts +1 -1
  346. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +11 -11
  347. package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -2
  348. package/libs/base/BasePlugin.js +3 -3
  349. package/libs/index.js +7 -7
  350. package/libs/shared-utils/logger.js +1 -1
  351. package/package.json +2 -2
  352. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +0 -50
  353. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -133
  354. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +0 -184
  355. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +0 -83
  356. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +0 -50
  357. package/libs/PanoTagPlugin/typings/tag/Tag.js +0 -4
  358. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -133
  359. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +0 -184
  360. package/libs/PanoTagPlugin/typings/tag/TagData.js +0 -4
  361. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +0 -83
  362. package/libs/PanoTagPlugin/typings/tag/Utils.js +0 -4
  363. /package/libs/PanoTagPlugin/typings/tag/{TagConfig.js → Tag.d.js} +0 -0
@@ -1,7 +1,6 @@
1
- import t from "./controller/index.js";
2
- import { pluginFlag as Ar } from "./controller/index.js";
3
- import { ContentType as Er } from "./typings/tag/TagData.js";
4
- import { DimensionType as Hr } from "./typings/tag/Utils.js";
1
+ import r from "./controller/index.js";
2
+ import { pluginFlag as At } from "./controller/index.js";
3
+ import { ContentType as Et, DimensionType as Gt, PointType as Ht } from "./Archive/deprecated.js";
5
4
  import "three";
6
5
  import "@realsee/five";
7
6
  import "../vendor/object-assign-deep/objectAssignDeep.js";
@@ -133,12 +132,13 @@ import "../shared-utils/three/GLTFLoader.js";
133
132
  import "@realsee/five/gltf-loader";
134
133
  import "../shared-utils/animationFrame/BetterTween.js";
135
134
  import "../shared-utils/animationFrame/index.js";
136
- const qr = (o, r) => new t(o, r);
135
+ const qt = (o, t) => new r(o, t);
137
136
  export {
138
- Er as ContentType,
139
- Hr as DimensionType,
140
- qr as PanoTagPlugin,
141
- t as PanoTagPluginController,
142
- qr as default,
143
- Ar as pluginFlag
137
+ Et as ContentType,
138
+ Gt as DimensionType,
139
+ qt as PanoTagPlugin,
140
+ r as PanoTagPluginController,
141
+ Ht as PointType,
142
+ qt as default,
143
+ At as pluginFlag
144
144
  };
@@ -1,15 +1,8 @@
1
- import type { PanoTagPluginController, TagConfig } from '../index';
1
+ import type { PanoTagPluginController, TagInstance } from '../index';
2
2
  import type * as BasePlugin from '../../base/BasePlugin';
3
- import type TagContentSvelte from '../Components/Tag/index.svelte';
4
- import type { Vector3 } from 'three';
5
- import type { Create3DDomContainerReturnType } from '../../CSS3DRenderPlugin';
6
3
  import type { Writable } from 'svelte/store';
7
- import type { Subscribe } from '@realsee/five';
8
- import type { TagId, StickType, TagGLTFObject } from './tag/Utils';
4
+ import type { TagId } from './tag/Utils';
9
5
  import type { TagContentType } from './tag/TagData';
10
- import type { Tag } from './tag/Tag';
11
- import type { ImagePlane, VideoPlane } from '../utils/model/mediaPlane';
12
- type NonNullable<T> = T extends null | undefined | void ? never : T;
13
6
  export type TagHooks = InstanceType<typeof PanoTagPluginController>['hooks'];
14
7
  export interface State extends BasePlugin.State {
15
8
  }
@@ -25,22 +18,22 @@ export interface EventMap extends BasePlugin.EventMap<State> {
25
18
  event: Event;
26
19
  } & ({
27
20
  target: 'TagPoint';
28
- tag: PointTagElement<any>;
21
+ tag: PointTagInstance;
29
22
  } | {
30
23
  target: 'TagContent';
31
- tag: TagElement<any, any>;
24
+ tag: TagInstance;
32
25
  } | {
33
26
  target: 'AudioTagPlayIcon';
34
- tag: TagElement;
27
+ tag: TagInstance;
35
28
  audioInstance: HTMLAudioElement;
36
29
  } | {
37
30
  target: 'TagModel';
38
- tag: TagElement<'Model', 'Model'> | TagElement<'MediaModel', 'Model'>;
31
+ tag: TagInstance<'Model', 'Model'> | TagInstance<'MediaModel', 'Model'>;
39
32
  })) => void;
40
33
  playStateChange: (params: {
41
34
  event: Event;
42
35
  state: 'playing' | 'paused';
43
- tag: TagElement;
36
+ tag: TagInstance;
44
37
  mediaInstance: HTMLMediaElement;
45
38
  }) => void;
46
39
  exposure: (params: {
@@ -82,50 +75,7 @@ export interface TagCacheInterface {
82
75
  reason?: string;
83
76
  };
84
77
  }
85
- export type TagElement<C extends TagContentType = TagContentType, S extends StickType = StickType> = Tag<C, S> & Partial<{
86
- pointTagStyle: {
87
- leftPercent: number;
88
- topPercent: number;
89
- } | null;
90
- temporaryState: {
91
- visible: boolean;
92
- };
93
- tag3DContentSvelte: {
94
- svelteApp: TagContentSvelte;
95
- /** @deprecated rename to css3DInstance */
96
- domContainer: NonNullable<Create3DDomContainerReturnType>;
97
- css3DInstance: NonNullable<Create3DDomContainerReturnType>;
98
- initialNormal: Vector3;
99
- currentNormal: Vector3;
100
- dispose: () => void;
101
- };
102
- mediaPlane: ImagePlane | VideoPlane;
103
- model: {
104
- promise: Promise<TagGLTFObject>;
105
- object?: TagGLTFObject;
106
- };
107
- mediaVisible: boolean;
108
- play: () => void;
109
- pause: () => void;
110
- }> & {
111
- state: {
112
- visible?: boolean;
113
- unfolded: boolean;
114
- };
115
- hooks: Subscribe<TagEvents>;
116
- mergedConfig: TagConfig<C, S>;
117
- unfold: () => void;
118
- fold: () => void;
119
- enable: () => void;
120
- disable: () => void;
121
- destroy: () => void;
122
- };
123
78
  export type MediaStore = Writable<{
124
79
  currentMediaElement: HTMLMediaElement | null;
125
80
  }>;
126
- export type PointTagElement<C extends TagContentType = TagContentType> = TagElement<C, '3DPoint' | '2DPoint'>;
127
- export type PlaneTagElement<C extends TagContentType = TagContentType> = TagElement<C, 'Plane'>;
128
- export type Point2DElement<C extends TagContentType = TagContentType> = TagElement<C, '2DPoint'>;
129
- export type Point3DElement<C extends TagContentType = TagContentType> = TagElement<C, '3DPoint'>;
130
- export type ModelElement<C extends TagContentType = TagContentType> = TagElement<C, 'Model'>;
131
- export {};
81
+ export type PointTagInstance<C extends TagContentType = TagContentType> = TagInstance<C, '3DPoint' | '2DPoint'>;
@@ -1,6 +1,8 @@
1
1
  export * from './controller';
2
- export * from './tag/Tag';
3
- export * from './tag/Utils';
4
- export * from './tag/TagData';
5
- export * from './tag/TagConfig';
6
- export type { PartialDeep } from 'type-fest';
2
+ export * from './tag/Tag.d';
3
+ export * from './tag/Utils.d';
4
+ export * from './tag/TagData.d';
5
+ export * from './tag/TagConfig.d';
6
+ export * from './tag/TagInstance.d';
7
+ export * from '../Archive/deprecated';
8
+ export type { ContentTypeMap, TagContentType } from './tag/TagData';
@@ -1,6 +1,6 @@
1
- import { ContentType as n } from "./tag/TagData.js";
2
- import { DimensionType as r } from "./tag/Utils.js";
1
+ import { ContentType as o, DimensionType as p, PointType as t } from "../Archive/deprecated.js";
3
2
  export {
4
- n as ContentType,
5
- r as DimensionType
3
+ o as ContentType,
4
+ p as DimensionType,
5
+ t as PointType
6
6
  };
@@ -1,8 +1,8 @@
1
1
  import * as THREE from 'three';
2
2
  import { Vector3 } from 'three';
3
- import { type ObjectFit } from '../../typings';
4
- import DomEvents from '../../../shared-utils/threex/domevents';
5
- import { type Overwrite } from '../../../typings/utils.type';
3
+ import type { ObjectFit } from '../../typings';
4
+ import type DomEvents from '../../../shared-utils/threex/domevents';
5
+ import type { Overwrite } from '../../../typings/utils.type';
6
6
  type Src = string;
7
7
  type VideoTexture = Overwrite<THREE.VideoTexture, {
8
8
  image: HTMLVideoElement;
@@ -50,7 +50,7 @@ declare class VideoPlane extends MediaPlane {
50
50
  play(muted?: boolean): Promise<void>;
51
51
  pause(): void;
52
52
  initialDomEvents(domEvents: DomEvents): void;
53
- initialRenderHooks(func: (render: () => void) => () => any): void;
53
+ initialRenderHooks(func: (render: () => void) => () => void): void;
54
54
  private showPlayUI;
55
55
  private showPauseUI;
56
56
  private render;
@@ -1,10 +1,10 @@
1
- import { anyPositionToVector3 as c } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
1
+ import { anyPositionToVector3 as e } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
2
2
  import "three";
3
- function i(t) {
4
- if (t.length < 3)
3
+ function i(r) {
4
+ if (!r || r.length < 3)
5
5
  return;
6
- const o = t.map(c), r = o[1].clone().sub(o[0]), n = o[2].clone().sub(o[1]);
7
- return r.cross(n);
6
+ const o = r.map(e), t = o[1].clone().sub(o[0]), n = o[2].clone().sub(o[1]);
7
+ return t.cross(n);
8
8
  }
9
9
  export {
10
10
  i as planeNormal
@@ -1,4 +1,4 @@
1
- export declare function resizeObserver(func: () => any, element?: HTMLElement): {
1
+ export declare function resizeObserver(func: () => void, element?: HTMLElement): {
2
2
  observe: () => void;
3
3
  unobserve: () => void;
4
4
  };
@@ -1,11 +1,11 @@
1
- import type { PlaneTagElement, Tag, TagElement } from '../../typings';
2
- export declare function isPointTag(tag: Tag<any, any>): boolean;
3
- export declare function isPlaneTag(tag: Tag<any, any>): tag is PlaneTagElement;
4
- export declare function isPoint2DTag(tag: Tag<any, any>): boolean;
5
- export declare function isPoint3DTag(tag: Tag<any, any>): boolean;
6
- export declare function is2DTag(tag: Tag<any, any>): boolean;
7
- export declare function is3DTag(tag: Tag<any, any>): tag is Tag<any, '3DPoint'> | Tag<any, 'Plane'>;
8
- export declare function isMediaModelTag(tag: Tag<any, any>): tag is Tag<'MediaModel', 'Model'>;
9
- export declare function isModelTag(tag: Tag<any, any>): tag is Tag<'Model', 'Model'>;
10
- export declare function isStickModelTag(tag: Tag<any, any>): tag is TagElement<'Model', 'Model'> | TagElement<'MediaModel', 'Model'>;
11
- export declare function isMediaPlaneTag(tag: Tag<any, any>): tag is Tag<'MediaModel', 'Model'>;
1
+ import type { TagContentType, TagInstance } from '../../typings';
2
+ export declare function isPointTag(tag: TagInstance): boolean;
3
+ export declare function isPlaneTag<T extends TagContentType>(tag: TagInstance<T>): tag is TagInstance<T, 'Plane'>;
4
+ export declare function isPoint2DTag(tag: TagInstance): boolean;
5
+ export declare function isPoint3DTag<T extends TagContentType>(tag: TagInstance<T>): tag is TagInstance<T, '3DPoint'>;
6
+ export declare function is2DTag(tag: TagInstance): boolean;
7
+ export declare function is3DTag<T extends TagContentType>(tag: TagInstance): tag is TagInstance<T, '3DPoint'> | TagInstance<T, 'Plane'>;
8
+ export declare function isMediaModelTag(tag: TagInstance): tag is TagInstance<'MediaModel', 'Model'>;
9
+ export declare function isModelTag(tag: TagInstance): tag is TagInstance<'Model', 'Model'>;
10
+ export declare function isStickModelTag(tag: TagInstance): tag is TagInstance<'Model', 'Model'> | TagInstance<'MediaModel', 'Model'>;
11
+ export declare function isMediaPlaneTag(tag: TagInstance): tag is TagInstance<'MediaModel', 'Model'>;
@@ -1,5 +1,5 @@
1
1
  import { Vector3 } from 'three';
2
2
  import { type AnyPosition } from '.';
3
- import type { Tag } from '../typings';
3
+ import type { TagInstance } from '../typings';
4
4
  export declare function tagPosition(position: AnyPosition | [AnyPosition, AnyPosition, AnyPosition, AnyPosition]): Vector3;
5
- export declare function getTagPosition(tag: Tag): Vector3;
5
+ export declare function getTagPosition(tag: TagInstance): Vector3;
@@ -8,13 +8,13 @@ import "@realsee/five";
8
8
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
9
9
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
10
10
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
11
- import { isAbsoluteURL as m } from "../shared-utils/isAbsoluteURL.js";
11
+ import { isAbsoluteURL as l } from "../shared-utils/isAbsoluteURL.js";
12
12
  let n = class {
13
13
  constructor(t, r) {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- e(this, "VERSION", "2.19.1");
17
+ e(this, "VERSION", "2.20.0-alpha.1");
18
18
  e(this, "five");
19
19
  /**
20
20
  * 插件事件钩子
@@ -30,7 +30,7 @@ let n = class {
30
30
  return this.state;
31
31
  }
32
32
  isAbsoluteURL(t) {
33
- return m(t) ? t : `${this.staticPrefix}${t}`;
33
+ return l(t) ? t : `${this.staticPrefix}${t}`;
34
34
  }
35
35
  };
36
36
  export {
package/libs/index.js CHANGED
@@ -11,7 +11,7 @@ import { ModelFloorplanPlugin as Lp } from "./floorplan/ModelFloorplanPlugin/ind
11
11
  import { MapviewFloorplanPlugin as _p } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
12
  import { TopviewFloorplanPlugin as Rp } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
13
  import { PanoFloorplanRadarPlugin as Op } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
- import { FLOOR_TYPE_MAP as yp, ROOM_FETILE_TYPE_MAP as Ap, ROOM_TYPE_MAP as Dp } from "./floorplan/typings/floorplanServerData.js";
14
+ import { FLOOR_TYPE_MAP as Sp, ROOM_FETILE_TYPE_MAP as Ap, ROOM_TYPE_MAP as Dp } from "./floorplan/typings/floorplanServerData.js";
15
15
  import { ModelChassisCompassPlugin as bp } from "./ModelChassisCompassPlugin/Plugin.js";
16
16
  import { ModelEntryDoorGuidePlugin as Yp } from "./ModelEntryDoorGuidePlugin/Plugin.js";
17
17
  import { CameraMovementPlugin as cp } from "./CameraMovementPlugin/CameraMovementPlugin.js";
@@ -36,7 +36,7 @@ import { CSS3DRender as Te } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.j
36
36
  import { Model as Ce } from "./PanoMeasurePlugin/Model/index.js";
37
37
  import { default as Ee } from "./PanoMeasurePlugin/Model/point.js";
38
38
  import { default as Ie } from "./PanoMeasurePlugin/Model/line.js";
39
- import { Polyline as Se } from "./PanoMeasurePlugin/Model/polyline.js";
39
+ import { Polyline as ye } from "./PanoMeasurePlugin/Model/polyline.js";
40
40
  import { default as Ae } from "./PanoMeasurePlugin/Modules/Magnifier.js";
41
41
  import { DISPLAY_STRATEGY_TYPE as Ge } from "./ModelItemLabelPlugin/typings.js";
42
42
  import { ModelItemLabelPlugin as Fe } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
@@ -47,8 +47,7 @@ import { GuideLineModeItem$1 as Be } from "./GuideLinePlugin/GuideLineModeItem/i
47
47
  import { default as Ue } from "./CruisePlugin/Controller.js";
48
48
  import { typing as $e } from "./CruisePlugin/typing/index.js";
49
49
  import { default as qe, pluginFlag as ze } from "./PanoTagPlugin/controller/index.js";
50
- import { ContentType as Ke } from "./PanoTagPlugin/typings/tag/TagData.js";
51
- import { DimensionType as We } from "./PanoTagPlugin/typings/tag/Utils.js";
50
+ import { ContentType as Ke, DimensionType as Qe, PointType as We } from "./PanoTagPlugin/Archive/deprecated.js";
52
51
  import { Object3DHelperController as Ze, PLUGIN as on } from "./Object3DHelperPlugin/Controller.js";
53
52
  import { typings as tn } from "./PanoVideoPlugin/typings/index.js";
54
53
  import "./components/PaintBrush/Controller.js";
@@ -385,9 +384,9 @@ export {
385
384
  $e as CruisePluginTypes,
386
385
  oe as DIRECTION,
387
386
  Ge as DISPLAY_STRATEGY_TYPE,
388
- We as DimensionType,
387
+ Qe as DimensionType,
389
388
  Mp as FLOOR_PLAN_ATTACHED_TO,
390
- yp as FLOOR_TYPE_MAP,
389
+ Sp as FLOOR_TYPE_MAP,
391
390
  he as GuideLineItem,
392
391
  Be as GuideLineModeItem,
393
392
  ee as GuideLinePlugin,
@@ -415,7 +414,7 @@ export {
415
414
  Ie as PanoMeasurePluginLine,
416
415
  Ce as PanoMeasurePluginModel,
417
416
  Ee as PanoMeasurePluginPoint,
418
- Se as PanoMeasurePluginPolyline,
417
+ ye as PanoMeasurePluginPolyline,
419
418
  Bp as PanoRulerPlugin,
420
419
  Up as PanoRulerProPlugin,
421
420
  Jp as PanoSpatialTagPlugin,
@@ -423,6 +422,7 @@ export {
423
422
  qe as PanoTagPluginController,
424
423
  ge as PanoVideoPlugin,
425
424
  tn as PanoVideoPluginType,
425
+ We as PointType,
426
426
  Ap as ROOM_FETILE_TYPE_MAP,
427
427
  Dp as ROOM_TYPE_MAP,
428
428
  hp as Rotation,
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.info(
3
- "%c %c@realsee/dnalogel %cv2.19.1",
3
+ "%c %c@realsee/dnalogel %cv2.20.0-alpha.1",
4
4
  [
5
5
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
6
6
  "background-repeat: no-repeat",
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.19.1",
10
+ "version": "2.20.0-alpha.1",
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*",
@@ -72,7 +72,7 @@
72
72
  "svelte-carousel": "1.0.25",
73
73
  "svelte-preprocess": "^5.0.3",
74
74
  "three": "0.117.1",
75
- "type-fest": "3.8.0",
75
+ "type-fest": "3.11.0",
76
76
  "typedoc": "^0.24.6",
77
77
  "typescript": "^5.0.4",
78
78
  "vite": "4.3.2",
@@ -1,50 +0,0 @@
1
- import type { State as FiveState } from '@realsee/five';
2
- import type { TagConfig } from './TagConfig';
3
- import { type ContentTypeMap, ContentType, type TagContentType } from './TagData';
4
- import type { Position, TagId, StickType, TagStyle, ElementRenderer, PickTagContentTypeInContentTypeConfigKey, ContentTypeConfigKey } from './Utils';
5
- import { type DeprecatedTagProperty } from '../../Archive/deprecated';
6
- export type { ContentTypeMap, TagContentType };
7
- export { ContentType };
8
- export interface Tags {
9
- version?: string;
10
- /** tag配置 > 按type配置 > 全局配置 */
11
- /** 全局配置 */
12
- globalConfig?: TagConfig;
13
- /** 按type配置 */
14
- contentTypeConfig?: {
15
- [key in ContentTypeConfigKey]?: PickTagContentTypeInContentTypeConfigKey<key> extends TagContentType ? TagConfig<PickTagContentTypeInContentTypeConfigKey<key>> : unknown;
16
- };
17
- /** 标签列表配置 */
18
- tagList: Tag<any, any>[];
19
- }
20
- export type Tag<C extends TagContentType = TagContentType, S extends StickType = StickType> = DeprecatedTagProperty & {
21
- /** 开启/禁用 */
22
- enabled?: boolean;
23
- /** 唯一标识 */
24
- id: TagId;
25
- /** @type {StickType} 附着方式 */
26
- stickType: S;
27
- /** @type {TagContentType} 内容类型,根据内容类型展示对应UI */
28
- contentType: C;
29
- /** 点 */
30
- position: S extends 'Plane' ? [Position, Position, Position, Position] : S extends '2DPoint' | '3DPoint' | 'Model' ? Position : Position | [Position, Position, Position, Position];
31
- /** 法向量 */
32
- normal?: Position;
33
- /** 自定义标签内容 */
34
- element?: string | Element | ElementRenderer;
35
- /** 标签 wrapper 的 classname */
36
- className?: string;
37
- /** 标签数据 */
38
- data: C extends TagContentType ? ContentTypeMap[C] : ContentTypeMap[keyof ContentTypeMap];
39
- /** 「展开/收起」 「可见/不可见」 的策略配置 */
40
- config?: TagConfig<C, S>;
41
- /** 打标签时的 five state */
42
- fiveState?: FiveState;
43
- /** 样式 */
44
- style?: TagStyle;
45
- } & (S extends '3DPoint' ? {
46
- normal: Position;
47
- } : unknown) & // 三维标签需要法向量
48
- (S extends 'Model' ? {
49
- matrix: number[];
50
- } : unknown);
@@ -1,133 +0,0 @@
1
- import type { Create3DDomContainerParamsType } from '../../../CSS3DRenderPlugin/Controller';
2
- import type { Five, Mode } from '@realsee/five';
3
- import type { ContentTypeMap, TagContentType } from './TagData';
4
- import type { Tag } from './Tag';
5
- import type { MinMax, StickType } from './Utils';
6
- import type { PartialDeep } from 'type-fest';
7
- export interface TagConfig<C extends TagContentType = TagContentType, S extends StickType = StickType> {
8
- /** 显示/隐藏配置 */
9
- visibleConfig?: {
10
- /**
11
- * @description 保持可见/不可见, 设置后visibleConfig下所有其他配置都不生效
12
- * @default undefined
13
- */
14
- keep?: 'visible' | 'hidden';
15
- /**
16
- * @description 在哪些 five mode 下可见
17
- * @default ['Panorama']
18
- */
19
- visibleFiveMode?: Mode[];
20
- /**
21
- * @description 当 visibleFiveMode 包含 'Floorplan' 或者 'MapView' 时,是否仅在当前楼层模型下可见
22
- * @default false
23
- */
24
- followModelVisibility?: boolean;
25
- /**
26
- * @description 走点时不隐藏
27
- * @default false
28
- */
29
- alwaysShowWhenMovePano?: true;
30
- /**
31
- * @description min-max米内显示 | 无距离限制
32
- * @default 'unLimited'
33
- */
34
- visibleDistance?: MinMax | 'unLimited';
35
- /**
36
- * @description: 限制xx点位上可见,默认为all
37
- * @param all: 不限制
38
- * @param current: 仅当前点位可见
39
- * @param: number[] 仅指定点位可见
40
- * @default 'all'
41
- */
42
- visiblePanoIndex?: 'all' | 'current' | number[];
43
- /**
44
- * @description 碰撞检测配置,默认开启
45
- * @default true
46
- */
47
- intersectRaycaster?: boolean | {
48
- /**
49
- * @description 是否开启碰撞检测
50
- * @default true
51
- */
52
- enabled?: boolean;
53
- /**
54
- * @description 碰撞检测的允许误差
55
- * @default 0.01
56
- */
57
- distanceAccuracy?: number;
58
- };
59
- /**
60
- * @description 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角,范围内自动展开,范围外自动收起
61
- * @default undefined
62
- */
63
- angleRange?: MinMax;
64
- } | ((five: Five, tagState: {
65
- tag: Tag<C, S>;
66
- /** 标签点或中心点的到摄像机的距离 */
67
- distance: number;
68
- /** 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角 */
69
- angleRange?: number;
70
- }) => boolean);
71
- /** 展开/收起配置 */
72
- unfoldedConfig?: {
73
- /** 保持展开/收起,设置后unfoldedConfig下所有其他配置都不生效 */
74
- keep?: 'unfolded' | 'folded';
75
- /**
76
- * @description 划动到不可见状态时,自动收起,disableFold: true 的标签不受此参数影响
77
- * @note 部分标签是无法收起的
78
- * @default true
79
- */
80
- autoFoldWhenHide?: false;
81
- /**
82
- * @deprecated replace by { keep: 'folded' }
83
- * @deprecated 部分标签是无法打开的
84
- * @default undefined
85
- */
86
- disableUnfold?: true;
87
- /**
88
- * @deprecated replace by { keep: 'unfolded' }
89
- * @deprecated 部分标签是无法收起的
90
- * @default undefined
91
- */
92
- disableFold?: true;
93
- /** min-max米内自动展开,否则收起 */
94
- unfoldDistance?: MinMax;
95
- /** 自动展开策略, false 时不自动展开 */
96
- autoUnfold?: false | {
97
- enable?: boolean;
98
- /** 自动展开 策略 */
99
- strategy?: 'ScreenPostion';
100
- /** 自动展开策略,{min,max}为project(camera)后的x值 */
101
- autoUnfoldProjectX?: MinMax;
102
- } | {
103
- enable?: boolean;
104
- /** 自动展开:最近标签自动展开 */
105
- strategy?: 'MinimumDistance';
106
- /** 展开的最大数量, 默认为1 */
107
- maxNumber?: number;
108
- /** 展开的最大距离, 默认为无限制 */
109
- distance?: MinMax;
110
- };
111
- } | ((five: Five, tagState: {
112
- tag: Tag<C, S>;
113
- /** 标签点或中心点的到摄像机的距离 */
114
- distance: number;
115
- /** 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角 */
116
- angleRange?: number;
117
- }) => boolean);
118
- /** 初始状态 */
119
- initialState?: {
120
- /** 显示/隐藏 */
121
- visible?: boolean;
122
- /** 展开/收起 */
123
- unfolded?: boolean;
124
- };
125
- initialData?: PartialDeep<ContentTypeMap[C]>;
126
- tag3DConfig?: Create3DDomContainerParamsType['config'];
127
- modelConfig?: {
128
- autoLookAtEnabled?: boolean;
129
- };
130
- /** 当图片为一张时可以通过Mesh渲染 */
131
- renderType?: 'Mesh' | 'Dom';
132
- clickable?: false;
133
- }