@realsee/dnalogel 2.3.4 → 2.3.5-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
  2. package/dist/ModelViewPlugin/Plugin.d.ts +8 -0
  3. package/dist/PanoTagPlugin/Assets/Icon.d.ts +3 -2
  4. package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +1 -2
  5. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +15 -14
  6. package/dist/PanoTagPlugin/controller/index.d.ts +14 -12
  7. package/dist/PanoTagPlugin/index.d.ts +1 -1
  8. package/dist/PanoTagPlugin/typings/controller.d.ts +12 -11
  9. package/dist/PanoTagPlugin/typings/index.d.ts +5 -1
  10. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +53 -0
  11. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +88 -0
  12. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +155 -0
  13. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +50 -0
  14. package/dist/PanoTagPlugin/utils/color.d.ts +7 -0
  15. package/dist/PanoTagPlugin/utils/getImageInfo.d.ts +16 -0
  16. package/dist/PanoTagPlugin/utils/px2rem.d.ts +1 -0
  17. package/dist/PanoTagPlugin/utils/tag/format.d.ts +2 -0
  18. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -0
  19. package/dist/PanoTagPlugin/utils/timeToString.d.ts +1 -0
  20. package/dist/index.cjs.js +51 -51
  21. package/dist/index.js +7181 -6311
  22. package/dist/index.umd.js +43 -43
  23. package/docs/assets/search.js +1 -1
  24. package/docs/classes/CSS3DRender.html +31 -31
  25. package/docs/classes/CruisePluginController.html +24 -24
  26. package/docs/classes/Magnifier.html +16 -16
  27. package/docs/classes/ModelRoomLabelController.html +11 -11
  28. package/docs/classes/Object3DHelperController.html +24 -24
  29. package/docs/classes/PaintBrush.html +15 -15
  30. package/docs/classes/PanoTagPluginController.html +196 -164
  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 +75 -35
  40. package/docs/enums/DIRECTION.html +9 -9
  41. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  42. package/docs/enums/DimensionType.html +19 -15
  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/PointType.html +19 -15
  47. package/docs/enums/Rotation.html +8 -8
  48. package/docs/functions/CSS3DRenderPlugin.html +35 -13
  49. package/docs/functions/CameraMovementPlugin.html +35 -13
  50. package/docs/functions/CruisePlugin.html +35 -13
  51. package/docs/functions/GuideLinePlugin.html +36 -14
  52. package/docs/functions/ItemLabelPlugin.html +35 -13
  53. package/docs/functions/MapviewFloorplanPlugin.html +35 -13
  54. package/docs/functions/ModelChassisCompassPlugin.html +35 -13
  55. package/docs/functions/ModelEntryDoorGuidePlugin.html +35 -13
  56. package/docs/functions/ModelFloorplanPlugin.html +35 -13
  57. package/docs/functions/ModelItemLabelPlugin.html +35 -13
  58. package/docs/functions/ModelRoomLabelPlugin.html +35 -13
  59. package/docs/functions/ModelTVVideoPlugin.html +35 -13
  60. package/docs/functions/ModelViewPlugin.html +35 -13
  61. package/docs/functions/Object3DHelperPlugin.html +35 -13
  62. package/docs/functions/PanoCompassPlugin.html +35 -13
  63. package/docs/functions/PanoCursorRaycasterPlugin.html +35 -13
  64. package/docs/functions/PanoDoorLabelPlugin.html +35 -13
  65. package/docs/functions/PanoFloorplanRadarPlugin.html +35 -13
  66. package/docs/functions/PanoMeasurePlugin.html +35 -13
  67. package/docs/functions/PanoRulerPlugin.html +35 -13
  68. package/docs/functions/PanoRulerProPlugin.html +35 -13
  69. package/docs/functions/PanoSpatialTagPlugin.html +35 -13
  70. package/docs/functions/PanoTagPlugin.html +41 -23
  71. package/docs/functions/TopviewFloorplanPlugin.html +35 -13
  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 +36 -14
  83. package/docs/index.html +35 -13
  84. package/docs/interfaces/AddTagConfig.html +64 -0
  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 +298 -0
  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/ItemLabelPluginData.html +6 -6
  115. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  116. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  117. package/docs/interfaces/LineJson.html +7 -7
  118. package/docs/interfaces/MinMax.html +71 -0
  119. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  120. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  121. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  122. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  123. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  124. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  125. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  126. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  127. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  128. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  129. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  130. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  131. package/docs/interfaces/ModelViewPluginExportType.html +57 -9
  132. package/docs/interfaces/Object3DHelperState.html +8 -8
  133. package/docs/interfaces/OpenParameter.html +7 -7
  134. package/docs/interfaces/PaintBrushAction.html +12 -12
  135. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  136. package/docs/interfaces/PaintBrushState.html +10 -10
  137. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  138. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +36 -14
  139. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  140. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  141. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  142. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  143. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  144. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  145. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  146. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  147. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +36 -14
  148. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +36 -14
  149. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  150. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  151. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  152. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  153. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  154. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  155. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  156. package/docs/interfaces/Point.html +8 -8
  157. package/docs/interfaces/PointJson.html +8 -8
  158. package/docs/interfaces/Room.html +9 -9
  159. package/docs/interfaces/RoomInfo.html +7 -7
  160. package/docs/interfaces/RoomLabel.html +14 -14
  161. package/docs/interfaces/RoomRules.html +36 -14
  162. package/docs/interfaces/Rooms.html +36 -14
  163. package/docs/interfaces/Scissor.html +9 -9
  164. package/docs/interfaces/State.html +89 -0
  165. package/docs/interfaces/TagCache.html +92 -0
  166. package/docs/interfaces/TagConfig.html +15 -19
  167. package/docs/interfaces/TagIconUrl.html +91 -0
  168. package/docs/interfaces/Tags.html +14 -12
  169. package/docs/interfaces/TemporaryState.html +64 -0
  170. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  171. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  172. package/docs/modules/Util.html +5 -5
  173. package/docs/modules.html +65 -21
  174. package/docs/types/ArrayPosition.html +37 -15
  175. package/docs/types/CSS3DRenderExportType.html +36 -14
  176. package/docs/types/CSS3DRenderPluginExportType.html +36 -14
  177. package/docs/types/CSS3DRenderPluginParameterType.html +36 -14
  178. package/docs/types/Color.html +36 -14
  179. package/docs/types/ContentTypeConfigKey.html +37 -15
  180. package/docs/types/ContentTypeMap.html +247 -0
  181. package/docs/types/Create3DDomContainerReturnType.html +36 -14
  182. package/docs/types/Create3DElementReturnType.html +36 -14
  183. package/docs/types/CruisePluginExportType.html +36 -14
  184. package/docs/types/Direction-1.html +36 -14
  185. package/docs/types/Direction4.html +36 -14
  186. package/docs/types/FloorplanRuleLabels.html +36 -14
  187. package/docs/types/FloorplanServerRuleLabels.html +36 -14
  188. package/docs/types/GuideLinePluginExportType.html +36 -14
  189. package/docs/types/HelperEventMap.html +36 -14
  190. package/docs/types/MapviewFloorplanPluginParameterType.html +36 -14
  191. package/docs/types/MapviewFloorplanPluginReturnType.html +36 -14
  192. package/docs/types/MediaData.html +36 -14
  193. package/docs/types/MediaStore.html +247 -0
  194. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +36 -14
  195. package/docs/types/ModelFloorplanPluginParameterType.html +36 -14
  196. package/docs/types/ModelFloorplanPluginReturnType.html +36 -14
  197. package/docs/types/ModelRoomLabelPluginParameters.html +36 -14
  198. package/docs/types/ModelRoomLabelPluginReturnType.html +36 -14
  199. package/docs/types/MoveArgs.html +36 -14
  200. package/docs/types/MoveOpts.html +36 -14
  201. package/docs/types/Object3DHelperEventMap.html +36 -14
  202. package/docs/types/ObjectFit.html +36 -14
  203. package/docs/types/PaintBrushEventMap.html +36 -14
  204. package/docs/types/PanoCompassPluginData.html +36 -14
  205. package/docs/types/PanoCompassPluginExportType.html +36 -14
  206. package/docs/types/PanoCompassPluginParameterType.html +36 -14
  207. package/docs/types/PanoFloorplanRadarPluginParameterType.html +36 -14
  208. package/docs/types/PanoFloorplanRadarPluginReturnType.html +36 -14
  209. package/docs/types/PanoIndex.html +247 -0
  210. package/docs/types/PanoMeasurePluginEvent.html +36 -14
  211. package/docs/types/PanoMeasureReturnType.html +36 -14
  212. package/docs/types/PanoSpatialTagPluginId.html +36 -14
  213. package/docs/types/PanoTagPluginExportInterface.html +36 -14
  214. package/docs/types/PanoTagPluginParamsInterface.html +36 -14
  215. package/docs/types/PlaneTag.html +39 -19
  216. package/docs/types/PlaneTagElement.html +252 -0
  217. package/docs/types/Point2DElement.html +252 -0
  218. package/docs/types/Point2DTag.html +254 -0
  219. package/docs/types/Point3DElement.html +252 -0
  220. package/docs/types/Point3DTag.html +254 -0
  221. package/docs/types/PointTag.html +39 -23
  222. package/docs/types/PointTagElement.html +252 -0
  223. package/docs/types/Position.html +36 -14
  224. package/docs/types/RotateArgs.html +36 -14
  225. package/docs/types/RotateOpts.html +36 -14
  226. package/docs/types/RuleLabelsKey.html +36 -14
  227. package/docs/types/RuleLabelsValue.html +36 -14
  228. package/docs/types/StickType.html +247 -0
  229. package/docs/types/Tag.html +40 -22
  230. package/docs/types/Tag2D.html +41 -20
  231. package/docs/types/Tag3D.html +41 -20
  232. package/docs/types/TagContentType.html +247 -0
  233. package/docs/types/TagDimensionType.html +247 -0
  234. package/docs/types/TagElement.html +254 -0
  235. package/docs/types/TagEvents.html +282 -0
  236. package/docs/types/TagHooks.html +247 -0
  237. package/docs/types/TagIconSize.html +250 -0
  238. package/docs/types/TagId.html +36 -14
  239. package/docs/types/TagPointType.html +250 -0
  240. package/docs/types/TopviewFloorplanPluginParameterType.html +36 -14
  241. package/docs/types/TopviewFloorplanPluginReturnType.html +36 -14
  242. package/docs/types/{ContentTypeConfigKeyArray.html → WorkCode.html} +39 -17
  243. package/docs/variables/FLOOR_TYPE_MAP.html +36 -14
  244. package/docs/variables/PLUGIN.html +36 -14
  245. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +36 -14
  246. package/docs/variables/ROOM_TYPE_MAP.html +36 -14
  247. package/docs/variables/VERSION.html +36 -14
  248. package/docs/variables/itemLabelPluginServerParams.html +36 -14
  249. package/docs/variables/modelItemLabelPluginServerParams.html +36 -14
  250. package/docs/variables/modelRoomLabelPluginServerParams.html +36 -14
  251. package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
  252. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +2 -2
  253. package/libs/ModelViewPlugin/Plugin.d.ts +8 -0
  254. package/libs/ModelViewPlugin/Plugin.js +83 -73
  255. package/libs/PanoTagPlugin/Assets/Icon.d.ts +3 -2
  256. package/libs/PanoTagPlugin/Assets/Icon.js +4 -3
  257. package/libs/PanoTagPlugin/Components/Common/Audio.js +138 -133
  258. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +173 -0
  259. package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +108 -0
  260. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +32 -32
  261. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +79 -57
  262. package/libs/PanoTagPlugin/Components/Common/Media.js +212 -194
  263. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +109 -80
  264. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +78 -0
  265. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +135 -0
  266. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +147 -0
  267. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +166 -0
  268. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +209 -0
  269. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +204 -0
  270. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +98 -0
  271. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +100 -130
  272. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +49 -98
  273. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +47 -44
  274. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +98 -0
  275. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +122 -0
  276. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +98 -0
  277. package/libs/PanoTagPlugin/Components/Tag/index.js +130 -133
  278. package/libs/PanoTagPlugin/Components/TagContainer.js +89 -105
  279. package/libs/PanoTagPlugin/Components/TagItem.js +139 -0
  280. package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +1 -2
  281. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +15 -14
  282. package/libs/PanoTagPlugin/controller/TagComputer.js +168 -151
  283. package/libs/PanoTagPlugin/controller/index.d.ts +14 -12
  284. package/libs/PanoTagPlugin/controller/index.js +128 -133
  285. package/libs/PanoTagPlugin/index.d.ts +1 -1
  286. package/libs/PanoTagPlugin/index.js +31 -20
  287. package/libs/PanoTagPlugin/tag.config.js +23 -16
  288. package/libs/PanoTagPlugin/typings/controller.d.ts +12 -11
  289. package/libs/PanoTagPlugin/typings/index.d.ts +5 -1
  290. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +53 -0
  291. package/libs/PanoTagPlugin/typings/tag/Tag.js +1 -0
  292. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +88 -0
  293. package/libs/PanoTagPlugin/typings/tag/TagConfig.js +1 -0
  294. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +155 -0
  295. package/libs/PanoTagPlugin/typings/tag/TagData.js +4 -0
  296. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +50 -0
  297. package/libs/PanoTagPlugin/typings/tag/Utils.js +5 -0
  298. package/libs/PanoTagPlugin/utils/color.d.ts +7 -0
  299. package/libs/PanoTagPlugin/utils/color.js +17 -0
  300. package/libs/PanoTagPlugin/utils/getImageInfo.d.ts +16 -0
  301. package/libs/PanoTagPlugin/utils/getImageInfo.js +50 -0
  302. package/libs/PanoTagPlugin/utils/px2rem.d.ts +1 -0
  303. package/libs/PanoTagPlugin/utils/px2rem.js +6 -0
  304. package/libs/PanoTagPlugin/utils/tag/format.d.ts +2 -0
  305. package/libs/PanoTagPlugin/utils/tag/format.js +10 -0
  306. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -0
  307. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +10 -0
  308. package/libs/PanoTagPlugin/utils/tagPosition.js +2 -2
  309. package/libs/PanoTagPlugin/utils/timeToString.d.ts +1 -0
  310. package/libs/PanoTagPlugin/utils/timeToString.js +7 -0
  311. package/libs/index.js +112 -101
  312. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +17 -20
  313. package/libs/vendor/svelte/internal/index.js +381 -341
  314. package/package.json +3 -3
  315. package/dist/PanoTagPlugin/typings/tag.d.ts +0 -247
  316. package/docs/enums/LinkType.html +0 -67
  317. package/docs/interfaces/ContentTypeMap.html +0 -212
  318. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +0 -170
  319. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +0 -50
  320. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +0 -50
  321. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +0 -166
  322. package/libs/PanoTagPlugin/Components/Common/Text.js +0 -130
  323. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +0 -131
  324. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +0 -122
  325. package/libs/PanoTagPlugin/Components/TagWrapper.js +0 -152
  326. package/libs/PanoTagPlugin/typings/tag.d.ts +0 -247
  327. package/libs/PanoTagPlugin/typings/tag.js +0 -7
@@ -1,247 +0,0 @@
1
- import type { Five } from '@realsee/five';
2
- import type { Create3DDomContainerParamsType } from '../../CSS3DRenderPlugin/Controller';
3
- export type { PartialDeep } from 'type-fest';
4
- export declare type TagId = string | number;
5
- export declare type ArrayPosition = [number, number, number];
6
- export declare type Position = ArrayPosition;
7
- declare type Object = Record<string | number | symbol, any>;
8
- /** 返回一个销毁函数 */
9
- declare type ElementRenderer = (container: HTMLElement) => () => void;
10
- interface MinMax {
11
- min?: number;
12
- max?: number;
13
- }
14
- export declare enum DimensionType {
15
- Two = "2D",
16
- Three = "3D"
17
- }
18
- export declare enum PointType {
19
- PointTag = "PointTag",
20
- PlaneTag = "PlaneTag"
21
- }
22
- export declare enum ContentType {
23
- /** 音频标签 */
24
- Audio = "Audio",
25
- /** 文本标签 */
26
- Text = "Text",
27
- /** 图文标签 */
28
- ImageText = "ImageText",
29
- /** VR跳转标签 */
30
- Link = "Link",
31
- /** 营销标签 */
32
- Marketing = "Marketing",
33
- /** 图片视频贴片 */
34
- MediaPlane = "MediaPlane",
35
- /** 其他/自定义标签 */
36
- Custom = "Custom"
37
- }
38
- export interface Tags {
39
- version?: string;
40
- /** tag配置 > 按type配置 > 全局配置 */
41
- /** 全局配置 */
42
- globalConfig?: TagConfig;
43
- /** 按type配置 */
44
- contentTypeConfig?: Partial<Record<ContentTypeConfigKey, TagConfig>>;
45
- tagList: Tag[];
46
- }
47
- export declare type ContentTypeConfigKeyArray = [DimensionType | 'Any', ContentType | 'Any', PointType | 'Any'];
48
- export declare type ContentTypeConfigKey = `${ContentTypeConfigKeyArray[0]}-${ContentTypeConfigKeyArray[1]}-${ContentTypeConfigKeyArray[2]}`;
49
- export declare type Tag<C extends ContentType = any, P extends PointType = any, D extends DimensionType = any, CustomDataType extends Object = {}> = {
50
- /** 开启/禁用 */
51
- enabled?: boolean;
52
- /** 唯一标识 */
53
- id: TagId;
54
- /** 一个点的标签/4个点的标签 */
55
- pointType: P;
56
- /** 2维/3维类型 */
57
- dimensionType: D;
58
- /** 内容类型,根据内容类型展示对应UI */
59
- contentType: C;
60
- /** 点 */
61
- position: P extends PointType.PointTag ? Position : P extends PointType.PlaneTag ? [Position, Position, Position, Position] : any;
62
- /** 自定义标签内容 */
63
- element?: string | Element | ElementRenderer;
64
- /** 标签数据 */
65
- data: C extends ContentType.Custom ? CustomDataType : ContentTypeMap[C];
66
- /** 「展开/收起」 「可见/不可见」 的策略配置 */
67
- config?: TagConfig<C, P, D, CustomDataType>;
68
- /** 法向量 */
69
- normal?: Position;
70
- /** 样式 */
71
- style?: {
72
- /** 小圆点样式 */
73
- point?: {
74
- style: 'Default';
75
- } | {
76
- style: 'CustomIcon';
77
- iconUrl: string;
78
- } | {
79
- style: 'noPoint';
80
- };
81
- /** 收起的时候的动画延时,单位:ms */
82
- foldedPointDelay?: number;
83
- };
84
- } & (D extends DimensionType.Three ? (P extends PointType.PointTag ? {
85
- normal: Position;
86
- } : unknown) : unknown); /** 三维标签需要法向量 */
87
- export interface TagConfig<C extends ContentType = ContentType, T extends PointType = PointType, D extends DimensionType = DimensionType, CustomDataType extends Object = {}> {
88
- /** 显示/隐藏配置 */
89
- visibleConfig?: {
90
- /** 保持可见/不可见, 设置后visibleConfig下所有其他配置都不生效 */
91
- keep?: 'visible' | 'hidden';
92
- /** 走点时不隐藏 */
93
- alwaysShowWhenMovePano?: true;
94
- /** min-max米内显示 | 无距离限制 */
95
- visibleDistance?: MinMax | 'unLimited';
96
- /** 限制xx点位上可见,不传则不限制 */
97
- visiblePanoIndex?: number[];
98
- /** 碰撞检测配置 */
99
- intersectRaycaster?: {
100
- /** 是否开启碰撞检测 */
101
- enabled?: false;
102
- /** 碰撞检测的允许误差, 默认值建议为0.01 */
103
- distanceAccuracy?: number;
104
- };
105
- /** 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角,范围内自动展开,范围外自动收起 */
106
- angleRange?: MinMax;
107
- } | ((five: Five, tagState: {
108
- tag: Tag<C, T, D, CustomDataType>;
109
- /** 标签点或中心点的到摄像机的距离 */
110
- distance: number;
111
- /** 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角 */
112
- angleRange?: number;
113
- }) => boolean);
114
- /** 展开/收起配置 */
115
- unfoldedConfig?: {
116
- /** 保持展开/收起,设置后unfoldedConfig下所有其他配置都不生效 */
117
- keep?: 'unfolded' | 'folded';
118
- /** 划动到不可见状态时,自动收起,disableFold: true 的标签不受此参数影响 */
119
- autoUnfoldWhenHide?: false;
120
- /**
121
- * @deprecated replace by { keep: 'folded' }
122
- * @deprecated 部分标签是无法打开的
123
- */
124
- disableUnfold?: true;
125
- /**
126
- * @deprecated replace by { keep: 'unfolded' }
127
- * @deprecated 部分标签是无法收起的
128
- */
129
- disableFold?: true;
130
- /** min-max米内自动展开,否则收起 */
131
- unfoldDistance?: MinMax;
132
- /** 自动展开策略 */
133
- autoUnfold?: {
134
- /** 自动展开 策略 */
135
- strategy?: 'ScreenPostion';
136
- /** 自动展开策略,{min,max}为project(camera)后的x值 */
137
- autoUnfoldProjectX?: MinMax;
138
- } | {
139
- /** 自动展开 策略 */
140
- strategy?: 'MinimumDistance';
141
- /** 展开的最大数量, 默认为1 */
142
- maxNumber?: number;
143
- };
144
- } | ((five: Five, tagState: {
145
- tag: Tag<C, T, D, CustomDataType>;
146
- /** 标签点或中心点的到摄像机的距离 */
147
- distance: number;
148
- /** 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角 */
149
- angleRange?: number;
150
- }) => boolean);
151
- /** 初始状态 */
152
- initialState?: {
153
- /** 显示/隐藏 */
154
- visible?: boolean;
155
- /** 展开/收起 */
156
- unfolded?: boolean;
157
- };
158
- tag3DConfig?: Create3DDomContainerParamsType['config'];
159
- clickable?: false;
160
- }
161
- export declare enum LinkType {
162
- VrLink = "vr",
163
- NormalLink = "normal"
164
- }
165
- export declare type MediaData = {
166
- type: 'Image';
167
- url: string;
168
- } | {
169
- type: 'Video';
170
- url: string;
171
- videoCoverUrl?: string;
172
- };
173
- export declare type ObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
174
- export interface ContentTypeMap {
175
- [ContentType.Audio]: {
176
- text: string;
177
- audioUrl: string;
178
- extraData?: Object;
179
- };
180
- [ContentType.ImageText]: {
181
- text?: string;
182
- mediaData: (MediaData & {
183
- name?: string;
184
- })[];
185
- extraData?: Object;
186
- };
187
- [ContentType.Text]: {
188
- text: string;
189
- extraData?: Object;
190
- };
191
- [ContentType.Link]: {
192
- linkType: LinkType;
193
- text: string;
194
- extraData?: Object;
195
- };
196
- [ContentType.Marketing]: {
197
- /** 标题 */
198
- title: string;
199
- /** 高亮的标签 */
200
- brandTags?: string[];
201
- /** 普通标签 */
202
- tags?: string[];
203
- /** 头部宣传图 */
204
- headerPictureUrl?: string;
205
- /** 跳转文字 */
206
- highlightText?: string;
207
- /** 价格 */
208
- price?: {
209
- value: string;
210
- /** 单位 */
211
- unit: string;
212
- };
213
- extraData?: Object;
214
- };
215
- [ContentType.MediaPlane]: {
216
- enableCarousel?: boolean;
217
- /**
218
- * @description stretch: 拉伸适配, proportional: 等比适配,默认值 'proportional'
219
- * @deprecated replaced by objectFit
220
- */
221
- adaptationMode?: 'stretch' | 'proportional';
222
- /** object-fit doc {@link https://developer.mozilla.org/zh-CN/docs/Web/CSS/object-fit} */
223
- objectFit?: ObjectFit;
224
- /**
225
- * @description 是否开启自动轮播
226
- * @param autoplay true: 开启自动轮播, false: 关闭自动播放
227
- * @param autoplayVideo 自动轮播时,如果是视频, 则自动播放视频
228
- * @default 默认值 { autoplay: true, autoplayVideo: false }
229
- */
230
- autoplayConfig?: {
231
- autoplay: boolean;
232
- autoplayVideo: boolean;
233
- };
234
- mediaData: MediaData[];
235
- extraData?: Object;
236
- };
237
- [ContentType.Custom]: unknown;
238
- }
239
- /** 内置一些基础标签 */
240
- /** 一个点的标签 */
241
- export declare type PointTag<C extends ContentType = ContentType, D extends DimensionType = DimensionType, CustomDataType extends Object = {}> = Tag<C, PointType.PointTag, D, CustomDataType>;
242
- /** 二维标签 */
243
- export declare type Tag2D<C extends ContentType = ContentType, CustomDataType extends Object = {}> = Tag<C, PointType.PointTag, DimensionType.Two, CustomDataType>;
244
- /** 三维标签 */
245
- export declare type Tag3D<C extends ContentType = ContentType, CustomDataType extends Object = {}> = Tag<C, PointType.PointTag, DimensionType.Three, CustomDataType>;
246
- /** 三维贴片 */
247
- export declare type PlaneTag<C extends ContentType = ContentType, CustomDataType extends Object = {}> = Tag<C, PointType.PlaneTag, DimensionType.Three, CustomDataType>;
@@ -1,7 +0,0 @@
1
- var r = /* @__PURE__ */ ((a) => (a.Two = "2D", a.Three = "3D", a))(r || {}), g = /* @__PURE__ */ ((a) => (a.PointTag = "PointTag", a.PlaneTag = "PlaneTag", a))(g || {}), i = /* @__PURE__ */ ((a) => (a.Audio = "Audio", a.Text = "Text", a.ImageText = "ImageText", a.Link = "Link", a.Marketing = "Marketing", a.MediaPlane = "MediaPlane", a.Custom = "Custom", a))(i || {}), u = /* @__PURE__ */ ((a) => (a.VrLink = "vr", a.NormalLink = "normal", a))(u || {});
2
- export {
3
- i as ContentType,
4
- r as DimensionType,
5
- u as LinkType,
6
- g as PointType
7
- };