@realsee/dnalogel 2.16.1 → 2.17.0-alpha.3

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 (309) hide show
  1. package/dist/PanoTagPlugin/Archive/deprecated.d.ts +22 -0
  2. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +3 -3
  3. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -1
  4. package/dist/PanoTagPlugin/controller/index.d.ts +2 -2
  5. package/dist/PanoTagPlugin/typings/controller.d.ts +1 -1
  6. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +7 -8
  7. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +6 -1
  8. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +25 -25
  9. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +4 -0
  10. package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +15 -25
  11. package/dist/index.cjs.js +42 -42
  12. package/dist/index.js +1967 -1918
  13. package/dist/index.umd.js +42 -42
  14. package/dist/shared-utils/five/FiveDomEvents.d.ts +6 -0
  15. package/dist/shared-utils/five/getFloorIndex.d.ts +10 -0
  16. package/dist/shared-utils/three/FragmentTransparencyMaterial.d.ts +17 -0
  17. package/dist/shared-utils/three/loadVideoTexture.d.ts +6 -1
  18. package/dist/typings/utils.type.d.ts +2 -0
  19. package/docs/assets/search.js +1 -1
  20. package/docs/classes/CSS3DRender.html +31 -31
  21. package/docs/classes/CruisePluginController.html +25 -25
  22. package/docs/classes/Magnifier.html +20 -20
  23. package/docs/classes/ModelRoomLabelController.html +11 -11
  24. package/docs/classes/Object3DHelperController.html +24 -24
  25. package/docs/classes/PaintBrush.html +15 -15
  26. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  27. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  28. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  29. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  30. package/docs/classes/PanoTagPluginController.html +81 -369
  31. package/docs/classes/Util.BetterTween.html +8 -8
  32. package/docs/classes/Util.FivePointSelector.html +12 -12
  33. package/docs/classes/Util.Interval.html +12 -12
  34. package/docs/classes/Util.Magnifier.html +17 -17
  35. package/docs/classes/Util.PointDomHelper.html +11 -11
  36. package/docs/classes/Util.PointHelper.html +11 -11
  37. package/docs/classes/Util.Rectangle.html +13 -13
  38. package/docs/enums/CameraMovementEffect.html +7 -7
  39. package/docs/enums/ContentType.html +19 -19
  40. package/docs/enums/DIRECTION.html +9 -9
  41. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  42. package/docs/enums/DimensionType.html +7 -7
  43. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  44. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  45. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  46. package/docs/enums/Rotation.html +8 -8
  47. package/docs/functions/CSS3DRenderPlugin.html +6 -5
  48. package/docs/functions/CameraMovementPlugin.html +6 -5
  49. package/docs/functions/CruisePlugin.html +6 -5
  50. package/docs/functions/GuideLinePlugin.html +6 -5
  51. package/docs/functions/ItemLabelPlugin.html +6 -5
  52. package/docs/functions/MapviewFloorplanPlugin.html +6 -5
  53. package/docs/functions/ModelChassisCompassPlugin.html +6 -5
  54. package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -5
  55. package/docs/functions/ModelFloorplanPlugin.html +6 -5
  56. package/docs/functions/ModelItemLabelPlugin.html +6 -5
  57. package/docs/functions/ModelRoomLabelPlugin.html +6 -5
  58. package/docs/functions/ModelTVVideoPlugin.html +6 -5
  59. package/docs/functions/ModelViewPlugin.html +6 -5
  60. package/docs/functions/Object3DHelperPlugin.html +6 -5
  61. package/docs/functions/PanoCompassPlugin.html +6 -5
  62. package/docs/functions/PanoCursorRaycasterPlugin.html +6 -5
  63. package/docs/functions/PanoDoorLabelPlugin.html +6 -5
  64. package/docs/functions/PanoFloorplanRadarPlugin.html +6 -5
  65. package/docs/functions/PanoMeasurePlugin.html +6 -5
  66. package/docs/functions/PanoRulerPlugin.html +6 -5
  67. package/docs/functions/PanoRulerProPlugin.html +6 -5
  68. package/docs/functions/PanoSpatialTagPlugin.html +6 -5
  69. package/docs/functions/PanoTagPlugin.html +6 -5
  70. package/docs/functions/PanoVideoPlugin.html +6 -5
  71. package/docs/functions/TopviewFloorplanPlugin.html +6 -5
  72. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  73. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  74. package/docs/functions/Util.getFrameTime.html +5 -5
  75. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  76. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  77. package/docs/functions/Util.isNil.html +5 -5
  78. package/docs/functions/Util.nextFrame.html +5 -5
  79. package/docs/functions/Util.notNil.html +5 -5
  80. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  81. package/docs/functions/Util.tweenProgress.html +5 -5
  82. package/docs/functions/pluginFlag.html +6 -5
  83. package/docs/index.html +5 -4
  84. package/docs/interfaces/AddTagConfig.html +6 -6
  85. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  86. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  87. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  88. package/docs/interfaces/EventMap.html +19 -19
  89. package/docs/interfaces/FloorplanBounding.html +8 -8
  90. package/docs/interfaces/FloorplanData.html +10 -10
  91. package/docs/interfaces/FloorplanEntrance.html +11 -11
  92. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  93. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  94. package/docs/interfaces/FloorplanFloorData.html +9 -9
  95. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  96. package/docs/interfaces/FloorplanObserver.html +9 -9
  97. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  98. package/docs/interfaces/FloorplanPosition.html +7 -7
  99. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  100. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  101. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  102. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  103. package/docs/interfaces/FloorplanServerData.html +7 -7
  104. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  105. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  106. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  107. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  108. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  109. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  110. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  111. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  112. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  113. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  114. package/docs/interfaces/HelperOffset.html +8 -8
  115. package/docs/interfaces/ImagePlaneGroup.html +6 -6
  116. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  117. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  118. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  119. package/docs/interfaces/MinMax.html +7 -7
  120. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  121. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  122. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  123. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  124. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  125. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  126. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  127. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  128. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  129. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  130. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  131. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  132. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  133. package/docs/interfaces/Object3DHelperState.html +8 -8
  134. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  135. package/docs/interfaces/PaintBrushAction.html +12 -12
  136. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  137. package/docs/interfaces/PaintBrushState.html +10 -10
  138. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  139. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
  140. package/docs/interfaces/PanoMeasureParameterType.html +14 -14
  141. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  142. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  143. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  144. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  145. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  146. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  147. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  148. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  149. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  150. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  151. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  152. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
  153. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
  154. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  155. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  156. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  157. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  158. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  159. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  160. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  161. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  162. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  163. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  164. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  165. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  166. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  167. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  168. package/docs/interfaces/Point.html +8 -8
  169. package/docs/interfaces/Room.html +9 -9
  170. package/docs/interfaces/RoomInfo.html +7 -7
  171. package/docs/interfaces/RoomLabel.html +14 -14
  172. package/docs/interfaces/RoomRules.html +6 -5
  173. package/docs/interfaces/Rooms.html +6 -5
  174. package/docs/interfaces/Scissor.html +9 -9
  175. package/docs/interfaces/State.html +8 -8
  176. package/docs/interfaces/TagCacheInterface.html +12 -12
  177. package/docs/interfaces/TagConfig.html +19 -12
  178. package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
  179. package/docs/interfaces/TagIconUrl.html +11 -11
  180. package/docs/interfaces/TagObjectGroup.html +6 -6
  181. package/docs/interfaces/TagStyle.html +6 -6
  182. package/docs/interfaces/Tags.html +214 -13
  183. package/docs/interfaces/TemporaryState.html +6 -6
  184. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  185. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  186. package/docs/modules/PanoVideoPluginType.html +5 -5
  187. package/docs/modules/Util.html +5 -5
  188. package/docs/modules.html +6 -4
  189. package/docs/types/ArrayPosition.html +6 -5
  190. package/docs/types/AudioAppearance.html +6 -5
  191. package/docs/types/AudioTagTypeConfigKey.html +6 -5
  192. package/docs/types/CSS3DRenderExportType.html +6 -5
  193. package/docs/types/CSS3DRenderPluginExportType.html +6 -5
  194. package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
  195. package/docs/types/ClassFunctionParameters.html +6 -5
  196. package/docs/types/Color.html +6 -5
  197. package/docs/types/ContentTypeConfigKey.html +6 -5
  198. package/docs/types/ContentTypeConfigKeySplit.html +6 -5
  199. package/docs/types/ContentTypeMap.html +7 -6
  200. package/docs/types/Create3DDomContainerReturnType.html +6 -5
  201. package/docs/types/Create3DElementReturnType.html +6 -5
  202. package/docs/types/CruisePluginExportType.html +6 -5
  203. package/docs/types/Direction-1.html +6 -5
  204. package/docs/types/Direction4.html +6 -5
  205. package/docs/types/ElementRenderer.html +6 -5
  206. package/docs/types/FloorplanRuleLabels.html +6 -5
  207. package/docs/types/FloorplanServerRuleLabels.html +6 -5
  208. package/docs/types/GuideLinePluginExportType.html +6 -5
  209. package/docs/types/HelperEventMap.html +6 -5
  210. package/docs/types/LoadTagConfig.html +6 -5
  211. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
  212. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
  213. package/docs/types/MediaData.html +6 -5
  214. package/docs/types/MediaStore.html +6 -5
  215. package/docs/types/ModelElement.html +6 -5
  216. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
  217. package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
  218. package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
  219. package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
  220. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
  221. package/docs/types/MoveArgs.html +6 -5
  222. package/docs/types/MoveOpts.html +6 -5
  223. package/docs/types/Object3DHelperEventMap.html +6 -5
  224. package/docs/types/ObjectFit.html +6 -5
  225. package/docs/types/PaintBrushEventMap.html +6 -5
  226. package/docs/types/PanoCompassPluginData.html +6 -5
  227. package/docs/types/PanoCompassPluginExportType.html +6 -5
  228. package/docs/types/PanoCompassPluginParameterType.html +6 -5
  229. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
  230. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
  231. package/docs/types/PanoIndex.html +6 -5
  232. package/docs/types/PanoMeasurePluginEvent.html +6 -5
  233. package/docs/types/PanoMeasureReturnType.html +6 -5
  234. package/docs/types/PanoSpatialTagPluginId.html +6 -5
  235. package/docs/types/PanoTagPluginExportInterface.html +6 -5
  236. package/docs/types/PanoTagPluginParamsInterface.html +6 -5
  237. package/docs/types/PanoVideoPluginParameterType.html +6 -5
  238. package/docs/types/PanoVideoPluginReturnType.html +6 -5
  239. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +275 -0
  240. package/docs/types/PlaneTag.html +6 -5
  241. package/docs/types/PlaneTagElement.html +6 -5
  242. package/docs/types/Point2DElement.html +6 -5
  243. package/docs/types/Point2DTag.html +6 -5
  244. package/docs/types/Point3DElement.html +6 -5
  245. package/docs/types/Point3DTag.html +6 -5
  246. package/docs/types/PointTag.html +6 -5
  247. package/docs/types/PointTagElement.html +6 -5
  248. package/docs/types/Position.html +6 -5
  249. package/docs/types/RotateArgs.html +6 -5
  250. package/docs/types/RotateOpts.html +6 -5
  251. package/docs/types/RuleLabelsKey.html +6 -5
  252. package/docs/types/RuleLabelsValue.html +6 -5
  253. package/docs/types/StickType.html +6 -5
  254. package/docs/types/Tag.html +7 -6
  255. package/docs/types/Tag2D.html +6 -5
  256. package/docs/types/Tag3D.html +6 -5
  257. package/docs/types/TagContentType.html +6 -5
  258. package/docs/types/TagDimensionType.html +6 -5
  259. package/docs/types/TagElement.html +6 -5
  260. package/docs/types/TagEvents.html +6 -5
  261. package/docs/types/TagGLTFObject.html +6 -5
  262. package/docs/types/TagHooks.html +6 -5
  263. package/docs/types/TagIconSize.html +6 -5
  264. package/docs/types/TagId.html +6 -5
  265. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
  266. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
  267. package/docs/types/WorkCode.html +6 -5
  268. package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
  269. package/docs/variables/PLUGIN.html +6 -5
  270. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
  271. package/docs/variables/ROOM_TYPE_MAP.html +6 -5
  272. package/docs/variables/itemLabelPluginServerParams.html +6 -5
  273. package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
  274. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
  275. package/libs/PanoTagPlugin/Archive/deprecated.d.ts +15 -0
  276. package/libs/PanoTagPlugin/Components/Common/Media.js +14 -10
  277. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -1
  278. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +3 -3
  279. package/libs/PanoTagPlugin/controller/TagComputer.js +141 -139
  280. package/libs/PanoTagPlugin/controller/TagRender.js +59 -52
  281. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -1
  282. package/libs/PanoTagPlugin/controller/TagUtil.js +24 -19
  283. package/libs/PanoTagPlugin/controller/index.d.ts +2 -2
  284. package/libs/PanoTagPlugin/controller/index.js +49 -42
  285. package/libs/PanoTagPlugin/index.js +12 -10
  286. package/libs/PanoTagPlugin/tag.config.js +7 -0
  287. package/libs/PanoTagPlugin/typings/controller.d.ts +1 -1
  288. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +7 -8
  289. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +6 -1
  290. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +25 -25
  291. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +4 -0
  292. package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +15 -25
  293. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +130 -158
  294. package/libs/base/BasePlugin.js +3 -3
  295. package/libs/index.js +104 -102
  296. package/libs/shared-utils/five/FiveDomEvents.d.ts +6 -0
  297. package/libs/shared-utils/five/FiveDomEvents.js +48 -38
  298. package/libs/shared-utils/five/getFloorIndex.d.ts +10 -0
  299. package/libs/shared-utils/five/getFloorIndex.js +18 -0
  300. package/libs/shared-utils/logger.js +1 -1
  301. package/libs/shared-utils/three/FragmentTransparencyMaterial.d.ts +17 -0
  302. package/libs/shared-utils/three/FragmentTransparencyMaterial.js +36 -0
  303. package/libs/shared-utils/three/loadVideoTexture.d.ts +6 -1
  304. package/libs/shared-utils/three/loadVideoTexture.js +8 -10
  305. package/libs/typings/utils.type.d.ts +2 -0
  306. package/libs/typings/utils.type.js +1 -0
  307. package/package.json +2 -2
  308. package/libs/PanoTagPlugin/Archive/index.d.ts +0 -1
  309. package/libs/PanoTagPlugin/Archive/index.js +0 -4
@@ -0,0 +1,22 @@
1
+ /** @deprecated 改用具体的string */
2
+ export declare enum PointType {
3
+ PointTag = "PointTag",
4
+ PlaneTag = "PlaneTag"
5
+ }
6
+ /** @deprecated 改用 stickType */
7
+ export declare type TagPointType = keyof typeof PointType;
8
+ /** @deprecated */
9
+ export declare type DeprecatedTagProperty = {
10
+ /** @deprecated 2维/3维类型,已废弃,使用 stickType 代替 */
11
+ dimensionType?: '2D' | '3D';
12
+ /** @deprecated 一个点的标签/4个点的标签,已废弃,使用 stickType 代替 */
13
+ pointType?: 'PlaneTag' | 'PointTag';
14
+ };
15
+ /** @deprecated */
16
+ export declare type DeprecatedMediaPlaneProperty = {
17
+ /**
18
+ * @description stretch: 拉伸适配, proportional: 等比适配,默认值 'proportional'
19
+ * @deprecated replaced by objectFit
20
+ */
21
+ adaptationMode?: 'stretch' | 'proportional';
22
+ };
@@ -10,9 +10,7 @@ export declare abstract class TagComputer extends TagUtil {
10
10
  * @description: 获取是否可见
11
11
  */
12
12
  getVisibleByPanoIndex(tag: Tag<any, any>, panoIndex?: number): boolean;
13
- getVisibleByFiveMode(tag: Tag<any, any>, mode: Mode): boolean;
14
- /** 检测是否匹配当前楼层 */
15
- getVisibleByFloorIndex(tag: TagElement<any, any>): boolean;
13
+ getVisibleByFiveMode(tag: TagElement<any, any>, mode?: Mode): boolean;
16
14
  /**
17
15
  * @description 获取标签当前状态
18
16
  * @return (this.state.visible && tag.state.visible) ?? true
@@ -52,4 +50,6 @@ export declare abstract class TagComputer extends TagUtil {
52
50
  };
53
51
  /** 获取点位看向标签的射线 */
54
52
  protected getRaycasterFromPanoIndex(tag: Tag, panoIndex: number): THREE.Raycaster;
53
+ /** 检测是否匹配当前楼层 */
54
+ private getVisibleByFloorIndex;
55
55
  }
@@ -4,6 +4,7 @@ import type { Tag, Tags, Point2DElement, Point3DElement, PlaneTagElement, PointT
4
4
  import { TagCache } from './TagCache';
5
5
  import { CSS3DRenderPluginExportType } from '../../CSS3DRenderPlugin';
6
6
  import { Five } from '@realsee/five';
7
+ import { FiveDomEvents } from '../../shared-utils/five/FiveDomEvents';
7
8
  export declare abstract class TagUtil extends TagCache {
8
9
  tags: TagElement[];
9
10
  config: Pick<Tags, 'globalConfig' | 'contentTypeConfig'>;
@@ -21,7 +22,7 @@ export declare abstract class TagUtil extends TagCache {
21
22
  disposed: boolean;
22
23
  };
23
24
  protected get isPanorama(): boolean;
24
- private domEvents?;
25
+ protected domEvents: FiveDomEvents;
25
26
  private mouseInfo?;
26
27
  protected constructor(five: Five);
27
28
  getTagById<C extends TagContentType = any, S extends StickType = any>(id: TagId): TagElement<C, S> | undefined;
@@ -1,5 +1,5 @@
1
1
  import type { Tag, PartialDeep, TagId, Tags, TagElement, State, AddTagConfig, LoadTagConfig, ContentTypeConfigKey, TagConfig } from '../typings';
2
- import type { TagContentType } from '..';
2
+ import type { PickTagContentTypeInContentTypeConfigKey, TagContentType } from '..';
3
3
  import type { ArrayPosition } from '../typings';
4
4
  import { Five } from '@realsee/five';
5
5
  import { TagRender } from './TagRender';
@@ -37,7 +37,7 @@ declare class PanoTagPluginController extends TagRender {
37
37
  /**
38
38
  * @description: 改变类型配置
39
39
  */
40
- changeContentTypeConfig(key: ContentTypeConfigKey, contentTypeConfig: TagConfig, merge?: boolean): void;
40
+ changeContentTypeConfig<T extends ContentTypeConfigKey>(key: ContentTypeConfigKey, contentTypeConfig: PickTagContentTypeInContentTypeConfigKey<T> extends TagContentType ? TagConfig<PickTagContentTypeInContentTypeConfigKey<T>> : unknown, merge?: boolean): void;
41
41
  show(params?: {
42
42
  userAction?: boolean;
43
43
  withAnimation?: boolean;
@@ -28,7 +28,7 @@ export interface EventMap extends BasePlugin.EventMap<State> {
28
28
  tag: PointTagElement<any>;
29
29
  } | {
30
30
  target: 'TagContent';
31
- tag: TagElement;
31
+ tag: TagElement<any, any>;
32
32
  } | {
33
33
  target: 'AudioTagPlayIcon';
34
34
  tag: TagElement;
@@ -1,7 +1,8 @@
1
1
  import type { State as FiveState } from '@realsee/five';
2
2
  import type { TagConfig } from './TagConfig';
3
3
  import { ContentTypeMap, ContentType, TagContentType } from './TagData';
4
- import type { ContentTypeConfigKey, Position, TagId, StickType, TagStyle, ElementRenderer } from './Utils';
4
+ import type { Position, TagId, StickType, TagStyle, ElementRenderer, PickTagContentTypeInContentTypeConfigKey, ContentTypeConfigKey } from './Utils';
5
+ import { DeprecatedTagProperty } from '../../Archive/deprecated';
5
6
  export type { ContentTypeMap, TagContentType };
6
7
  export { ContentType };
7
8
  export interface Tags {
@@ -10,21 +11,19 @@ export interface Tags {
10
11
  /** 全局配置 */
11
12
  globalConfig?: TagConfig;
12
13
  /** 按type配置 */
13
- contentTypeConfig?: Partial<Record<ContentTypeConfigKey, TagConfig>>;
14
+ contentTypeConfig?: {
15
+ [key in ContentTypeConfigKey]?: PickTagContentTypeInContentTypeConfigKey<key> extends TagContentType ? TagConfig<PickTagContentTypeInContentTypeConfigKey<key>> : unknown;
16
+ };
14
17
  /** 标签列表配置 */
15
18
  tagList: Tag[];
16
19
  }
17
- export declare type Tag<C extends TagContentType = TagContentType, S extends StickType = StickType> = {
20
+ export declare type Tag<C extends TagContentType = TagContentType, S extends StickType = StickType> = DeprecatedTagProperty & {
18
21
  /** 开启/禁用 */
19
22
  enabled?: boolean;
20
23
  /** 唯一标识 */
21
- id: TagId;
22
- /** @deprecated 一个点的标签/4个点的标签,已废弃,使用 stickType 代替 */
23
- pointType?: 'PlaneTag' | 'PointTag';
24
+ id?: TagId;
24
25
  /** @type {StickType} 附着方式 */
25
26
  stickType: S;
26
- /** @deprecated 2维/3维类型,已废弃,使用 stickType 代替 */
27
- dimensionType?: '2D' | '3D';
28
27
  /** @type {TagContentType} 内容类型,根据内容类型展示对应UI */
29
28
  contentType: C;
30
29
  /** 点 */
@@ -1,14 +1,18 @@
1
1
  import type { Create3DDomContainerParamsType } from '../../../CSS3DRenderPlugin/Controller';
2
2
  import type { Five, Mode } from '@realsee/five';
3
- import type { TagContentType } from './TagData';
3
+ import type { ContentTypeMap, TagContentType } from './TagData';
4
4
  import type { Tag } from './Tag';
5
5
  import type { MinMax, StickType } from './Utils';
6
+ import type { PartialDeep } from 'type-fest';
6
7
  export interface TagConfig<C extends TagContentType = TagContentType, S extends StickType = StickType> {
7
8
  /** 显示/隐藏配置 */
8
9
  visibleConfig?: {
9
10
  /** 保持可见/不可见, 设置后visibleConfig下所有其他配置都不生效 */
10
11
  keep?: 'visible' | 'hidden';
12
+ /** 在哪些 five mode 下可见,默认为 ['Panorama'] */
11
13
  visibleFiveMode?: Mode[];
14
+ /** 当 visibleFiveMode 包含 'Floorplan' 或者 'MapView' 时,是否仅在当前楼层模型下可见,默认为true */
15
+ followModelVisibility?: boolean;
12
16
  /** 走点时不隐藏 */
13
17
  alwaysShowWhenMovePano?: true;
14
18
  /** min-max米内显示 | 无距离限制 */
@@ -84,6 +88,7 @@ export interface TagConfig<C extends TagContentType = TagContentType, S extends
84
88
  /** 展开/收起 */
85
89
  unfolded?: boolean;
86
90
  };
91
+ initialData?: PartialDeep<ContentTypeMap[C]>;
87
92
  tag3DConfig?: Create3DDomContainerParamsType['config'];
88
93
  /** 当图片为一张时可以通过Mesh渲染 */
89
94
  renderType?: 'Mesh' | 'Dom';
@@ -1,3 +1,4 @@
1
+ import { DeprecatedMediaPlaneProperty } from '../../Archive/deprecated';
1
2
  import type { Position, TagIconUrl } from './Utils';
2
3
  export declare type MediaData = {
3
4
  type: 'Image';
@@ -7,8 +8,8 @@ export declare type MediaData = {
7
8
  url: string;
8
9
  videoCoverUrl?: string;
9
10
  };
10
- declare type Object = Record<string | number | symbol, any>;
11
11
  export declare type ObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
12
+ declare type Object = Record<string | number | symbol, any>;
12
13
  export declare enum ContentType {
13
14
  /** 音频标签 */
14
15
  Audio = "Audio",
@@ -51,7 +52,6 @@ interface ContentTypeMapInterface {
51
52
  text?: string;
52
53
  title?: string;
53
54
  description?: string;
54
- extraData?: Object;
55
55
  edit?: {
56
56
  title?: {
57
57
  inputting?: boolean;
@@ -72,7 +72,6 @@ interface ContentTypeMapInterface {
72
72
  appearance?: 'line' | 'plane';
73
73
  theme?: 'dark' | 'light';
74
74
  audioUrl: string;
75
- extraData?: Object;
76
75
  };
77
76
  /** 图文标签 */
78
77
  ImageText: {
@@ -82,7 +81,6 @@ interface ContentTypeMapInterface {
82
81
  mediaData: (MediaData & {
83
82
  name?: string;
84
83
  })[];
85
- extraData?: Object;
86
84
  };
87
85
  /** 图片标签 */
88
86
  Image: ContentTypeMapInterface['ImageText'];
@@ -96,7 +94,6 @@ interface ContentTypeMapInterface {
96
94
  /** @deprecated: linkType 不再和样式绑定,使用 iconUrl 代替 */
97
95
  linkType?: 'vr' | 'normal';
98
96
  icon?: TagIconUrl;
99
- extraData?: Object;
100
97
  };
101
98
  /** VR跳转标签 */
102
99
  VRLink: ContentTypeMapInterface['Link'];
@@ -126,35 +123,33 @@ interface ContentTypeMapInterface {
126
123
  /** 单位 */
127
124
  unit: string;
128
125
  };
129
- extraData?: Object;
130
126
  };
131
127
  /** 营销贴片 */
132
128
  MediaPlane: {
133
129
  enableCarousel?: boolean;
134
- /**
135
- * @description stretch: 拉伸适配, proportional: 等比适配,默认值 'proportional'
136
- * @deprecated replaced by objectFit
137
- */
138
- adaptationMode?: 'stretch' | 'proportional';
139
130
  /** 多媒体在容器中的适配规则 {@link https://developer.mozilla.org/zh-CN/docs/Web/CSS/object-fit} */
140
131
  objectFit?: ObjectFit;
141
- /**
142
- * @description 是否开启自动轮播
143
- * @param autoplay true: 开启自动轮播, false: 关闭自动播放
144
- * @param autoplayVideo 自动轮播时,如果是视频, 则自动播放视频
145
- * @default 默认值 { autoplay: true, autoplayVideo: false }
146
- */
147
132
  autoplayConfig?: {
148
- autoplay: boolean;
149
- autoplayVideo: boolean;
133
+ /**
134
+ * @description 是否自动播放视频
135
+ * @default autoplayVideo: false
136
+ */
137
+ autoplayVideo?: boolean;
138
+ /**
139
+ * @description 是否自动轮播
140
+ * @default autoplayCarousel: true
141
+ */
142
+ autoplayCarousel?: boolean;
143
+ /**
144
+ * @description 轮播中遇到视频是否要自动播放
145
+ * @default autoplayVideoInCarousel: false
146
+ */
147
+ autoplayVideoInCarousel?: boolean;
150
148
  };
151
149
  mediaData: MediaData[];
152
- /**
153
- * @description 暂停时的播放按钮url
154
- */
150
+ /** @description 暂停时的播放按钮url */
155
151
  playIcon?: 'withText' | 'withoutText' | string;
156
- extraData?: Object;
157
- };
152
+ } & DeprecatedMediaPlaneProperty;
158
153
  MediaModel: {
159
154
  modelUrl: string;
160
155
  mediaData: MediaData[];
@@ -170,5 +165,10 @@ interface ContentTypeMapInterface {
170
165
  Custom: Object;
171
166
  Unknown: Object;
172
167
  }
173
- export declare type ContentTypeMap = Pick<ContentTypeMapInterface, TagContentType>;
168
+ declare type ContentTypeMapInterfaceWithextraData = {
169
+ [key in keyof ContentTypeMapInterface]: ContentTypeMapInterface[key] & {
170
+ extraData?: Object;
171
+ };
172
+ };
173
+ export declare type ContentTypeMap = Pick<ContentTypeMapInterfaceWithextraData, TagContentType>;
174
174
  export {};
@@ -62,6 +62,10 @@ export declare type TagIconSize = 'S' | 'M' | 'L' | 'XL' | number;
62
62
  export declare type AudioAppearance = Tag<'Audio'>['data']['appearance'];
63
63
  export declare type AudioTagTypeConfigKey = `${StickType | 'Any'}-Audio-${AudioAppearance}`;
64
64
  export declare type ContentTypeConfigKey = `${StickType | 'Any'}-${TagContentType | 'Any'}` | TagContentType | AudioTagTypeConfigKey;
65
+ /**
66
+ * @description: 从 ContentTypeConfigKey 中提取 ContentTypeConfigKey 对应的 ContentType 是啥,没找到就是 never
67
+ */
68
+ export declare type PickTagContentTypeInContentTypeConfigKey<T extends ContentTypeConfigKey> = T extends `${any}-Audio-${any}` ? 'Audio' : T extends `${any}-${infer C}` ? C : T extends TagContentType ? T : never;
65
69
  export declare type ContentTypeConfigKeySplit = [StickType | 'Any', TagContentType | 'Any'] | [TagContentType] | [StickType | 'Any', 'Audio', AudioAppearance];
66
70
  export declare type PointTag<C extends TagContentType = TagContentType> = Tag<C, '2DPoint' | '3DPoint'>;
67
71
  /** 二维标签 */
@@ -1,13 +1,16 @@
1
1
  import * as THREE from 'three';
2
2
  import { Vector3 } from 'three';
3
3
  import { ObjectFit } from '../../typings';
4
+ import DomEvents from '../../../shared-utils/threex/domevents';
5
+ import { Overwrite } from '../../../typings/utils.type';
4
6
  declare type Src = string;
5
- declare type VideoTexture = Omit<THREE.VideoTexture, 'image'> & {
7
+ declare type VideoTexture = Overwrite<THREE.VideoTexture, {
6
8
  image: HTMLVideoElement;
7
- };
8
- declare type ImageTexture = Omit<THREE.Texture, 'image'> & {
9
+ metadataLoaded: boolean;
10
+ }>;
11
+ declare type ImageTexture = Overwrite<THREE.Texture, {
9
12
  image: HTMLImageElement;
10
- };
13
+ }>;
11
14
  declare abstract class MediaPlane extends THREE.Mesh<THREE.BufferGeometry | THREE.Geometry, THREE.MeshBasicMaterial> {
12
15
  name: string;
13
16
  src?: string;
@@ -22,10 +25,10 @@ declare class ImagePlane extends MediaPlane {
22
25
  declare class VideoPlane extends MediaPlane {
23
26
  readonly isVideoPlane = true;
24
27
  name: string;
25
- videoInstance: HTMLVideoElement;
28
+ videoInstance?: HTMLVideoElement;
29
+ onVideoReady?: (videoInstance?: HTMLVideoElement) => void;
26
30
  private objectFit;
27
31
  private buttonSrc;
28
- private paused;
29
32
  private videoCoverSrc?;
30
33
  private domEvents?;
31
34
  private disposers;
@@ -37,39 +40,26 @@ declare class VideoPlane extends MediaPlane {
37
40
  private videoTextureMap;
38
41
  private ImageTextureMap;
39
42
  constructor(videoSrc: string, cornerPoints: Vector3[], params?: {
40
- videoInstance?: HTMLVideoElement;
43
+ paused?: boolean;
41
44
  playButton?: 'withText' | 'withoutText' | string;
42
45
  videoCoverSrc?: string;
43
46
  objectFit?: ObjectFit;
44
47
  videoTextureMap?: Map<Src, VideoTexture>;
45
48
  ImageTextureMap?: Map<Src, ImageTexture>;
46
49
  });
47
- play(): Promise<void>;
50
+ play(muted?: boolean): Promise<void>;
48
51
  pause(): void;
49
- initialDomEvents(five: any): void;
50
- initialRenderHooks(five: any): void;
52
+ initialDomEvents(domEvents: DomEvents): void;
53
+ initialRenderHooks(func: (render: () => void) => () => any): void;
51
54
  private showPauseUI;
52
55
  private render;
53
- private addAutoEventListener;
56
+ private addAutoBindEventListener;
54
57
  private addDomEventListener;
55
58
  private removeDomEventListener;
56
59
  private addCoverMesh;
57
60
  private addVideoMesh;
58
61
  private addButtonMesh;
59
- /**
60
- * @description: 将视频封面Mesh
61
- */
62
- private getCoverMesh;
63
- /**
64
- * @description: 获取视频Mesh
65
- */
66
- private getVideoMesh;
67
- /**
68
- * @description: 获取点击播放按钮Mesh
69
- */
70
- private getButtonMesh;
71
- private getButtonTexture;
72
- private getCoverTexture;
62
+ private getImageTexture;
73
63
  private getVideoTexture;
74
64
  }
75
65
  export { ImagePlane, VideoPlane };