@realsee/dnalogel 2.20.0-dev.1 → 2.20.0-dev.10

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 (330) hide show
  1. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
  2. package/dist/PanoTagPlugin/controller/TagRender.d.ts +11 -1
  3. package/dist/PanoTagPlugin/typings/controller.d.ts +2 -1
  4. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +4 -4
  5. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +4 -4
  6. package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +4 -2
  7. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +12 -10
  8. package/dist/index.cjs.js +44 -44
  9. package/dist/index.js +4082 -4019
  10. package/dist/index.umd.js +32 -32
  11. package/docs/assets/search.js +1 -1
  12. package/docs/classes/CSS3DRender.html +31 -31
  13. package/docs/classes/CruisePluginController.html +26 -26
  14. package/docs/classes/GuideLineItem.GuideLineItem.html +20 -20
  15. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +31 -31
  16. package/docs/classes/Magnifier.html +20 -20
  17. package/docs/classes/ModelRoomLabelController.html +11 -11
  18. package/docs/classes/Object3DHelperController.html +25 -25
  19. package/docs/classes/PaintBrush.html +15 -15
  20. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  21. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  22. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  23. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  24. package/docs/classes/PanoTagPluginController.html +74 -48
  25. package/docs/classes/Util.BetterTween.html +9 -9
  26. package/docs/classes/Util.FivePointSelector.html +12 -12
  27. package/docs/classes/Util.Interval.html +12 -12
  28. package/docs/classes/Util.Magnifier.html +17 -17
  29. package/docs/classes/Util.PointDomHelper.html +11 -11
  30. package/docs/classes/Util.PointHelper.html +11 -11
  31. package/docs/classes/Util.Rectangle.html +13 -13
  32. package/docs/enums/CameraMovementEffect.html +7 -7
  33. package/docs/enums/ContentType.html +20 -20
  34. package/docs/enums/DIRECTION.html +9 -9
  35. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  36. package/docs/enums/DimensionType.html +7 -7
  37. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  38. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  39. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  40. package/docs/enums/PointType.html +7 -7
  41. package/docs/enums/Rotation.html +8 -8
  42. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  43. package/docs/functions/CameraMovementPlugin.html +4 -4
  44. package/docs/functions/CruisePlugin.html +4 -4
  45. package/docs/functions/GuideLinePlugin.html +5 -5
  46. package/docs/functions/ItemLabelPlugin.html +4 -4
  47. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  48. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  49. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  50. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  51. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  52. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  53. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  54. package/docs/functions/ModelViewPlugin.html +4 -4
  55. package/docs/functions/Object3DHelperPlugin.html +4 -4
  56. package/docs/functions/PanoCompassPlugin.html +4 -4
  57. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  58. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  59. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  60. package/docs/functions/PanoMeasurePlugin.html +4 -4
  61. package/docs/functions/PanoRulerPlugin.html +4 -4
  62. package/docs/functions/PanoRulerProPlugin.html +4 -4
  63. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  64. package/docs/functions/PanoTagPlugin.html +4 -4
  65. package/docs/functions/PanoVideoPlugin.html +4 -4
  66. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  67. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  68. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  69. package/docs/functions/Util.getFrameTime.html +5 -5
  70. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  71. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  72. package/docs/functions/Util.isAbsoluteURL.html +5 -5
  73. package/docs/functions/Util.isModelLike.html +5 -5
  74. package/docs/functions/Util.isNil.html +5 -5
  75. package/docs/functions/Util.isPanoramaLike.html +5 -5
  76. package/docs/functions/Util.nextFrame.html +5 -5
  77. package/docs/functions/Util.notNil.html +5 -5
  78. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  79. package/docs/functions/Util.tweenProgress.html +5 -5
  80. package/docs/functions/Util.uuid.html +5 -5
  81. package/docs/functions/pluginFlag.html +5 -5
  82. package/docs/index.html +5 -5
  83. package/docs/interfaces/AddTagConfig.html +6 -6
  84. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  85. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  86. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  87. package/docs/interfaces/CruisePluginTypes.Config.html +8 -8
  88. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +12 -12
  89. package/docs/interfaces/CruisePluginTypes.EventMap.html +20 -20
  90. package/docs/interfaces/CruisePluginTypes.MoveAction.html +12 -12
  91. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +14 -14
  92. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +14 -14
  93. package/docs/interfaces/CruisePluginTypes.PluginData.html +9 -9
  94. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +7 -7
  95. package/docs/interfaces/CruisePluginTypes.PluginState.html +11 -11
  96. package/docs/interfaces/EventMap.html +15 -15
  97. package/docs/interfaces/FloorplanBounding.html +8 -8
  98. package/docs/interfaces/FloorplanData.html +10 -10
  99. package/docs/interfaces/FloorplanEntrance.html +11 -11
  100. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  101. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  102. package/docs/interfaces/FloorplanFloorData.html +9 -9
  103. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  104. package/docs/interfaces/FloorplanObserver.html +9 -9
  105. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  106. package/docs/interfaces/FloorplanPosition.html +7 -7
  107. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  108. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  109. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  110. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  111. package/docs/interfaces/FloorplanServerData.html +7 -7
  112. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  113. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  114. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  115. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  116. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  117. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  118. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  119. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  120. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  121. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  122. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +8 -8
  123. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +10 -10
  124. package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -13
  125. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -8
  126. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +6 -6
  127. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +13 -13
  128. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +8 -8
  129. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +18 -18
  130. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +7 -7
  131. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +18 -18
  132. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +5 -5
  133. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +7 -7
  134. package/docs/interfaces/GuideLinePluginType.PluginState.html +8 -8
  135. package/docs/interfaces/GuideLinePluginType.Route.html +11 -11
  136. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +9 -9
  137. package/docs/interfaces/HelperOffset.html +8 -8
  138. package/docs/interfaces/ImagePlaneGroup.html +6 -6
  139. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  140. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  141. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  142. package/docs/interfaces/MinMax.html +7 -7
  143. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  144. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  145. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  146. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  147. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  148. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  149. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  150. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  151. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  152. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  153. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  154. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  155. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  156. package/docs/interfaces/Object3DHelperState.html +8 -8
  157. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  158. package/docs/interfaces/PaintBrushAction.html +12 -12
  159. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  160. package/docs/interfaces/PaintBrushState.html +10 -10
  161. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  162. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  163. package/docs/interfaces/PanoMeasureParameterType.html +14 -14
  164. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  165. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  166. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  167. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  168. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  169. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  170. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  171. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  172. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  173. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  174. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  175. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  176. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  177. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  178. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  179. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  180. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  181. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  182. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  183. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  184. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  185. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  186. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  187. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  188. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  189. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  190. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  191. package/docs/interfaces/Point.html +8 -8
  192. package/docs/interfaces/Room.html +9 -9
  193. package/docs/interfaces/RoomInfo.html +7 -7
  194. package/docs/interfaces/RoomLabel.html +14 -14
  195. package/docs/interfaces/RoomRules.html +5 -5
  196. package/docs/interfaces/Rooms.html +5 -5
  197. package/docs/interfaces/Scissor.html +9 -9
  198. package/docs/interfaces/State.html +8 -8
  199. package/docs/interfaces/TagCacheInterface.html +12 -12
  200. package/docs/interfaces/TagConfig.html +15 -15
  201. package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
  202. package/docs/interfaces/TagIconUrl.html +12 -12
  203. package/docs/interfaces/TagObjectGroup.html +6 -6
  204. package/docs/interfaces/TagStyle.html +7 -7
  205. package/docs/interfaces/Tags.html +9 -9
  206. package/docs/interfaces/TemporaryState.html +6 -6
  207. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  208. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  209. package/docs/modules/CruisePluginTypes.html +5 -5
  210. package/docs/modules/GuideLineItem.html +5 -5
  211. package/docs/modules/GuideLineModeItem.html +5 -5
  212. package/docs/modules/GuideLinePluginType.html +5 -5
  213. package/docs/modules/PanoVideoPluginType.html +5 -5
  214. package/docs/modules/Util.html +5 -5
  215. package/docs/modules.html +6 -6
  216. package/docs/types/ArrayPosition.html +5 -5
  217. package/docs/types/AudioAppearance.html +5 -5
  218. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  219. package/docs/types/CSS3DRenderExportType.html +5 -5
  220. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  221. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  222. package/docs/types/ClassFunctionParameters.html +5 -5
  223. package/docs/types/Color.html +5 -5
  224. package/docs/types/ContentTypeConfigKey.html +6 -6
  225. package/docs/types/ContentTypeConfigKeySplit.html +6 -6
  226. package/docs/types/ContentTypeMap.html +5 -5
  227. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  228. package/docs/types/Create3DElementReturnType.html +5 -5
  229. package/docs/types/CruisePluginExportType.html +5 -5
  230. package/docs/types/CruisePluginTypes.CruiseData.html +5 -5
  231. package/docs/types/CruisePluginTypes.MoveEffect.html +5 -5
  232. package/docs/types/DeprecatedMediaPlaneProperty.html +5 -5
  233. package/docs/types/DeprecatedTagProperty.html +5 -5
  234. package/docs/types/Direction-1.html +5 -5
  235. package/docs/types/Direction4.html +5 -5
  236. package/docs/types/ElementRenderer.html +10 -8
  237. package/docs/types/FloorplanRuleLabels.html +5 -5
  238. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  239. package/docs/types/GuideLinePluginExportType.html +5 -5
  240. package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -5
  241. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -5
  242. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -5
  243. package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -5
  244. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +5 -5
  245. package/docs/types/GuideLinePluginType.PathItem.html +5 -5
  246. package/docs/types/GuideLinePluginType.PluginData.html +5 -5
  247. package/docs/types/HelperEventMap.html +5 -5
  248. package/docs/types/LoadTagConfig.html +5 -5
  249. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  250. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  251. package/docs/types/MediaData.html +5 -5
  252. package/docs/types/MediaStore.html +5 -5
  253. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  254. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  255. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  256. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  257. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  258. package/docs/types/MoveArgs.html +5 -5
  259. package/docs/types/MoveOpts.html +5 -5
  260. package/docs/types/Object3DHelperEventMap.html +5 -5
  261. package/docs/types/ObjectFit.html +5 -5
  262. package/docs/types/PaintBrushEventMap.html +5 -5
  263. package/docs/types/PanoCompassPluginData.html +5 -5
  264. package/docs/types/PanoCompassPluginExportType.html +5 -5
  265. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  266. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  267. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  268. package/docs/types/PanoIndex.html +5 -5
  269. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  270. package/docs/types/PanoMeasureReturnType.html +5 -5
  271. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  272. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  273. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  274. package/docs/types/PanoVideoPluginParameterType.html +5 -5
  275. package/docs/types/PanoVideoPluginReturnType.html +5 -5
  276. package/docs/types/PartialObjectDeep.html +5 -5
  277. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +6 -6
  278. package/docs/types/PlaneTag.html +5 -5
  279. package/docs/types/Point2DTag.html +5 -5
  280. package/docs/types/Point3DTag.html +5 -5
  281. package/docs/types/PointTag.html +5 -5
  282. package/docs/types/PointTagInstance.html +5 -5
  283. package/docs/types/Position.html +5 -5
  284. package/docs/types/RotateArgs.html +5 -5
  285. package/docs/types/RotateOpts.html +5 -5
  286. package/docs/types/RuleLabelsKey.html +5 -5
  287. package/docs/types/RuleLabelsValue.html +5 -5
  288. package/docs/types/StickType.html +5 -5
  289. package/docs/types/Tag.html +6 -6
  290. package/docs/types/Tag2D.html +5 -5
  291. package/docs/types/Tag3D.html +5 -5
  292. package/docs/types/TagContentType.html +5 -5
  293. package/docs/types/TagDimensionType.html +5 -5
  294. package/docs/types/TagElement.html +5 -5
  295. package/docs/types/TagEvents.html +29 -11
  296. package/docs/types/TagGLTFObject.html +5 -5
  297. package/docs/types/TagHooks.html +5 -5
  298. package/docs/types/TagId.html +5 -5
  299. package/docs/types/TagInstance.html +6 -6
  300. package/docs/types/TagPointType.html +5 -5
  301. package/docs/types/{TagIconSize.html → TagRendererMap.html} +8 -11
  302. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  303. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  304. package/docs/types/WorkCode.html +5 -5
  305. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  306. package/docs/variables/PLUGIN.html +5 -5
  307. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  308. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  309. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  310. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  311. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  312. package/libs/PanoTagPlugin/Components/Common/Media.js +94 -94
  313. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +61 -54
  314. package/libs/PanoTagPlugin/Components/Tag/index.js +279 -266
  315. package/libs/PanoTagPlugin/Components/TagContainer.js +90 -83
  316. package/libs/PanoTagPlugin/Components/TagItem.js +177 -169
  317. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
  318. package/libs/PanoTagPlugin/controller/TagComputer.js +83 -77
  319. package/libs/PanoTagPlugin/controller/TagRender.d.ts +11 -1
  320. package/libs/PanoTagPlugin/controller/TagRender.js +41 -22
  321. package/libs/PanoTagPlugin/controller/TagUtil.js +4 -4
  322. package/libs/PanoTagPlugin/controller/index.js +22 -19
  323. package/libs/PanoTagPlugin/typings/controller.d.ts +2 -1
  324. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +4 -4
  325. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +4 -4
  326. package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +4 -2
  327. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +12 -10
  328. package/libs/base/BasePlugin.js +1 -1
  329. package/libs/shared-utils/logger.js +1 -1
  330. package/package.json +1 -1
@@ -28,6 +28,7 @@ export declare abstract class TagComputer extends TagUtil {
28
28
  */
29
29
  getUnfoldedByCamera(tag: TagInstance): boolean;
30
30
  protected sort<T extends TagInstance>(tags: T[]): T[];
31
+ protected setTagZIndex<T extends TagInstance>(tags: T[]): void;
31
32
  /**
32
33
  * @description: 一个点的标签
33
34
  */
@@ -1,11 +1,12 @@
1
1
  import { TagComputer } from './TagComputer';
2
- import type { Tag, TagInstance, TagGLTFObject, TagObjectGroup, TagGLTFObjectGroup, ImagePlaneGroup, TagContentType } from '../typings';
2
+ import type { Tag, TagInstance, TagGLTFObject, TagObjectGroup, TagGLTFObjectGroup, ImagePlaneGroup, TagContentType, ElementRenderer, TagRendererMap } from '../typings';
3
3
  import type { TemporaryState } from '../typings';
4
4
  import { type Object3D } from 'three';
5
5
  import TagContainerSvelte from '../Components/TagContainer.svelte';
6
6
  import type { Five } from '@realsee/five';
7
7
  export declare abstract class TagRender extends TagComputer {
8
8
  protected group: TagObjectGroup;
9
+ protected renderMap: TagRendererMap;
9
10
  protected imagePlaneGroup: ImagePlaneGroup;
10
11
  protected gltfObjectGroup: TagGLTFObjectGroup;
11
12
  /** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
@@ -15,6 +16,15 @@ export declare abstract class TagRender extends TagComputer {
15
16
  /** 点标签 */
16
17
  protected TagContainerSvelte?: TagContainerSvelte;
17
18
  constructor(five: Five);
19
+ /**
20
+ * @description: 设置 contentType 的渲染器
21
+ * @param {string} contentType
22
+ * 如果是 `TagContentType` 中的类型,将会覆盖掉插件内部默认的渲染器,
23
+ * 如果是其他任意 str
24
+ * ing 如:'Foo',则可以将类似 `{id: 1, contentType: 'Foo', position: [0,0,0]}` 的 tag 交给插件渲染
25
+ * @note 优先级低于 tag.element
26
+ */
27
+ registerRenderer(contentType: string, renderer: ElementRenderer): void;
18
28
  clearTags(): void;
19
29
  /**
20
30
  * @description: 更新所有标签
@@ -56,11 +56,12 @@ export interface EventMap extends BasePlugin.EventMap<State> {
56
56
  }) => void;
57
57
  loadVideoFirstFrame: () => void;
58
58
  }
59
- export type TagEvents = {
59
+ export type TagEvents<C extends TagContentType = TagContentType> = {
60
60
  unfolded: () => void;
61
61
  folded: () => void;
62
62
  show: () => void;
63
63
  hide: () => void;
64
+ dataChanged: (data: TagInstance<C>['data']) => void;
64
65
  };
65
66
  export interface TagCacheInterface {
66
67
  visible?: boolean;
@@ -2,7 +2,7 @@ import type { State as FiveState } from '@realsee/five';
2
2
  import type { TagConfig } from './TagConfig';
3
3
  import type { ContentTypeMap, TagContentType } from './TagData';
4
4
  import type { Position, TagId, StickType, TagStyle, ElementRenderer, PickTagContentTypeInContentTypeConfigKey, ContentTypeConfigKey } from './Utils';
5
- import type { DeprecatedTagProperty } from '../../Archive/deprecated';
5
+ import type { ContentType, DeprecatedTagProperty } from '../../Archive/deprecated';
6
6
  export interface Tags {
7
7
  version?: string;
8
8
  /** tag配置 > 按type配置 > 全局配置 */
@@ -19,11 +19,11 @@ export type Tag<C extends TagContentType = TagContentType, S extends StickType =
19
19
  /** 开启/禁用 */
20
20
  enabled?: boolean;
21
21
  /** 唯一标识 */
22
- id?: TagId;
22
+ id: TagId;
23
23
  /** @type {StickType} 附着方式 */
24
24
  stickType: S;
25
25
  /** @type {TagContentType} 内容类型,根据内容类型展示对应UI */
26
- contentType: C;
26
+ contentType: C extends ContentType.Unknown ? string : C;
27
27
  /** 点 */
28
28
  position: S extends 'Plane' ? [Position, Position, Position, Position] : S extends '2DPoint' | '3DPoint' | 'Model' ? Position : Position | [Position, Position, Position, Position];
29
29
  /** 法向量 */
@@ -33,7 +33,7 @@ export type Tag<C extends TagContentType = TagContentType, S extends StickType =
33
33
  /** 标签 wrapper 的 classname */
34
34
  className?: string;
35
35
  /** 标签数据 */
36
- data?: C extends TagContentType ? ContentTypeMap[C] : ContentTypeMap[keyof ContentTypeMap];
36
+ data: C extends TagContentType ? ContentTypeMap[C] : ContentTypeMap[keyof ContentTypeMap];
37
37
  /** 「展开/收起」 「可见/不可见」 的策略配置 */
38
38
  config?: TagConfig<C>;
39
39
  /** 打标签时的 five state */
@@ -4,8 +4,8 @@ import type { ContentTypeMap, TagContentType } from './TagData';
4
4
  import type { MinMax } from './Utils';
5
5
  import type { PartialObjectDeep } from './Utils';
6
6
  import type { TagInstance } from './TagInstance';
7
- type ConfigFunction<C extends TagContentType = TagContentType> = (five: Five, tagState: {
8
- tag: TagInstance<C>;
7
+ type ConfigFunction = (five: Five, tagState: {
8
+ tag: TagInstance<any>;
9
9
  /** 标签点或中心点的到摄像机的距离 */
10
10
  distance: number;
11
11
  /** 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角 */
@@ -68,7 +68,7 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
68
68
  * @default undefined
69
69
  */
70
70
  angleRange?: MinMax;
71
- } | ConfigFunction<C>;
71
+ } | ConfigFunction;
72
72
  /** 展开/收起配置 */
73
73
  unfoldedConfig?: {
74
74
  /** 保持展开/收起,设置后unfoldedConfig下所有其他配置都不生效 */
@@ -109,7 +109,7 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
109
109
  /** 展开的最大距离, 默认为无限制 */
110
110
  distance?: MinMax;
111
111
  };
112
- } | ConfigFunction<C>;
112
+ } | ConfigFunction;
113
113
  /** 初始状态 */
114
114
  initialState?: {
115
115
  /** 显示/隐藏 */
@@ -1,7 +1,7 @@
1
1
  import type { Tag } from './Tag';
2
2
  import type TagContentSvelte from '../../Components/Tag/index.svelte';
3
3
  import type { TagContentType } from './TagData';
4
- import type { StickType, TagGLTFObject } from './Utils';
4
+ import type { PartialObjectDeep, StickType, TagGLTFObject } from './Utils';
5
5
  import type { Create3DDomContainerReturnType } from '../../../CSS3DRenderPlugin';
6
6
  import type { Vector3 } from 'three';
7
7
  import type { ImagePlane, VideoPlane } from '../../utils/model/mediaPlane';
@@ -15,6 +15,7 @@ export type TagInstance<C extends TagContentType = TagContentType, S extends Sti
15
15
  leftPercent: number;
16
16
  topPercent: number;
17
17
  } | null;
18
+ zIndex?: number;
18
19
  temporaryState: {
19
20
  visible: boolean;
20
21
  };
@@ -41,11 +42,12 @@ export type TagInstance<C extends TagContentType = TagContentType, S extends Sti
41
42
  visible?: boolean;
42
43
  unfolded: boolean;
43
44
  };
44
- hooks: Subscribe<TagEvents>;
45
+ hooks: Subscribe<TagEvents<C>>;
45
46
  unfold: () => void;
46
47
  fold: () => void;
47
48
  enable: () => void;
48
49
  disable: () => void;
49
50
  destroy: () => void;
51
+ changeData: (data: PartialObjectDeep<TagInstance<C>['data']>) => void;
50
52
  };
51
53
  export {};
@@ -35,8 +35,11 @@ export interface TagIconUrl {
35
35
  export interface TagStyle {
36
36
  /** 小圆点样式 */
37
37
  point?: {
38
- /** @deprecated v2.11.0 废弃,使用 width: number 控制 */
39
- size?: TagIconSize;
38
+ /**
39
+ * @deprecated v2.11.0 废弃,使用 width: number 控制
40
+ * @description S: 18; M: 20; L: 24; XL: 28
41
+ */
42
+ size?: 'S' | 'M' | 'L' | 'XL' | number;
40
43
  } & TagIconUrl;
41
44
  }
42
45
  export type TagGLTFObject = GLTFObject & {
@@ -46,7 +49,10 @@ export type TagGLTFObject = GLTFObject & {
46
49
  updateTagCss3DObjectMatrix?: () => void;
47
50
  };
48
51
  /** 返回一个销毁函数 */
49
- export type ElementRenderer = (container: HTMLElement) => () => void;
52
+ export type ElementRenderer = (container: HTMLElement, tag: TagInstance<any, any>) => () => void;
53
+ export type TagRendererMap = Map<string, {
54
+ renderer: ElementRenderer;
55
+ }>;
50
56
  export interface TagObjectGroup extends Group {
51
57
  children: Array<TagGLTFObjectGroup>;
52
58
  }
@@ -56,18 +62,14 @@ export interface TagGLTFObjectGroup extends Group {
56
62
  export interface ImagePlaneGroup extends Group {
57
63
  children: ImagePlane[];
58
64
  }
59
- /**
60
- * @description S: 18; M: 20; L: 24; XL: 28
61
- */
62
- export type TagIconSize = 'S' | 'M' | 'L' | 'XL' | number;
63
65
  export type AudioAppearance = TagInstance<'Audio'>['data']['appearance'];
64
66
  export type AudioTagTypeConfigKey = `${StickType | 'Any'}-Audio-${AudioAppearance}`;
65
- export type ContentTypeConfigKey = `${StickType | 'Any'}-${TagContentType | 'Any'}` | TagContentType | AudioTagTypeConfigKey;
67
+ export type ContentTypeConfigKey = `${StickType | 'Any'}-${TagContentType | 'Any'}` | TagContentType | AudioTagTypeConfigKey | `Mixin-${string}`;
66
68
  /**
67
69
  * @description: 从 ContentTypeConfigKey 中提取 ContentTypeConfigKey 对应的 TagContentType 是啥,没找到就是 never
68
70
  */
69
- export type PickTagContentTypeInContentTypeConfigKey<T extends ContentTypeConfigKey> = T extends `${any}-Audio-${any}` ? 'Audio' : T extends `${any}-${infer C}` ? C : T extends TagContentType ? T : never;
70
- export type ContentTypeConfigKeySplit = [StickType | 'Any', TagContentType | 'Any'] | [TagContentType] | [StickType | 'Any', 'Audio', AudioAppearance];
71
+ export type PickTagContentTypeInContentTypeConfigKey<T extends ContentTypeConfigKey> = T extends `${any}-Audio-${any}` ? 'Audio' : T extends `Mixin-${string}` ? string : T extends `${any}-${infer C}` ? C : T extends TagContentType ? T : never;
72
+ export type ContentTypeConfigKeySplit = [StickType | 'Any', TagContentType | 'Any'] | ['Mixin', string] | [TagContentType] | [StickType | 'Any', 'Audio', AudioAppearance];
71
73
  export type PointTag<C extends TagContentType = TagContentType> = TagInstance<C, '2DPoint' | '3DPoint'>;
72
74
  /** 二维标签 */
73
75
  export type Point2DTag<C extends TagContentType = TagContentType> = TagInstance<C, '2DPoint'>;