@realsee/dnalogel 2.16.2-alpha.0 → 2.17.0-aplha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +6 -7
  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 +1899 -1855
  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 +173 -171
  280. package/libs/PanoTagPlugin/controller/TagRender.js +51 -44
  281. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -1
  282. package/libs/PanoTagPlugin/controller/TagUtil.js +21 -16
  283. package/libs/PanoTagPlugin/controller/index.d.ts +2 -2
  284. package/libs/PanoTagPlugin/controller/index.js +45 -41
  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 +6 -7
  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 +1 -1
  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 +16 -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
@@ -1,7 +1,7 @@
1
1
  var w = Object.defineProperty;
2
- var O = (d, p, e) => p in d ? w(d, p, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[p] = e;
3
- var c = (d, p, e) => (O(d, typeof p != "symbol" ? p + "" : p, e), e);
4
- var P = (d, p, e) => new Promise((t, i) => {
2
+ var E = (c, d, e) => d in c ? w(c, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[d] = e;
3
+ var h = (c, d, e) => (E(c, typeof d != "symbol" ? d + "" : d, e), e);
4
+ var T = (c, d, e) => new Promise((t, i) => {
5
5
  var o = (s) => {
6
6
  try {
7
7
  a(e.next(s));
@@ -15,14 +15,14 @@ var P = (d, p, e) => new Promise((t, i) => {
15
15
  i(r);
16
16
  }
17
17
  }, a = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(o, n);
18
- a((e = e.apply(d, p)).next());
18
+ a((e = e.apply(c, d)).next());
19
19
  });
20
- import { TagComputer as x } from "./TagComputer.js";
21
- import { Group as b, Quaternion as I, Vector3 as D, Matrix4 as T } from "three";
22
- import E from "../Components/TagContainer.js";
20
+ import { TagComputer as O } from "./TagComputer.js";
21
+ import { Group as b, Quaternion as k, Vector3 as D, Matrix4 as P } from "three";
22
+ import x from "../Components/TagContainer.js";
23
23
  import G from "../Components/Tag/index.js";
24
24
  import { arrayPositionToVector3 as v } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
25
- import { centerPoint as k } from "../../shared-utils/three/centerPoint.js";
25
+ import { centerPoint as I } from "../../shared-utils/three/centerPoint.js";
26
26
  import "@realsee/five/gltf-loader";
27
27
  import { VideoPlane as R, ImagePlane as j } from "../utils/model/mediaPlane.js";
28
28
  import { isMediaModelTag as S } from "../utils/tag/tagCheck.js";
@@ -67,12 +67,14 @@ import "../utils/normalPositionToPositions.js";
67
67
  import "./TagCache.js";
68
68
  import "../../base/BasePlugin.js";
69
69
  import "../../vendor/svelte/store/index.js";
70
+ import "../../shared-utils/five/FiveDomEvents.js";
71
+ import "../../shared-utils/five/getFloorIndex.js";
70
72
  import "../../shared-utils/three/Quadrangle.js";
71
73
  import "../../shared-utils/math/pointIsRectangle.js";
72
74
  import "../../shared-utils/three/loadVideoTexture.js";
73
75
  import "../Assets/Icon.js";
74
76
  import "../../shared-utils/three/getPositionsByObjectFit.js";
75
- import "../../shared-utils/five/FiveDomEvents.js";
77
+ import "../../shared-utils/three/FragmentTransparencyMaterial.js";
76
78
  import "../Components/TagItem.js";
77
79
  import "../utils/noTypecheck.js";
78
80
  import "../Components/Common/TagPoint.js";
@@ -138,16 +140,16 @@ import "../Components/Tag/CustomTag.js";
138
140
  import "../../CSS3DRenderPlugin/Controller.js";
139
141
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
140
142
  const F = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
141
- class Zt extends x {
143
+ class ei extends O {
142
144
  constructor(e) {
143
145
  super(e);
144
- c(this, "group", new b());
145
- c(this, "imagePlaneGroup", new b());
146
- c(this, "gltfObjectGroup", new b());
147
- c(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
148
- c(this, "temporaryState", { visible: !0 });
149
- c(this, "TagContainerSvelte");
150
- c(this, "loadModel", (e) => P(this, null, function* () {
146
+ h(this, "group", new b());
147
+ h(this, "imagePlaneGroup", new b());
148
+ h(this, "gltfObjectGroup", new b());
149
+ h(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
150
+ h(this, "temporaryState", { visible: !0 });
151
+ h(this, "TagContainerSvelte");
152
+ h(this, "loadModel", (e) => T(this, null, function* () {
151
153
  var s;
152
154
  const t = e.data.modelUrl;
153
155
  if (!t)
@@ -157,7 +159,7 @@ class Zt extends x {
157
159
  const o = yield i;
158
160
  if (((s = e.model) == null ? void 0 : s.promise) !== i || (e.model.object = o, !this.tags.includes(e)))
159
161
  return;
160
- o.visible = this.getCurrentVisibleState(e), new T().fromArray(e.matrix).decompose(o.position, o.quaternion, o.scale), o.updateWorldMatrix(!0, !0), o.visible = this.getVisibleByFloorIndex(e);
162
+ o.visible = this.getCurrentVisibleState(e), new P().fromArray(e.matrix).decompose(o.position, o.quaternion, o.scale), o.updateWorldMatrix(!0, !0), o.visible = this.getVisibleByFiveMode(e);
161
163
  const a = this.gltfObjectGroup.children.find((r) => r.customID === e.id);
162
164
  if (a && this.gltfObjectGroup.remove(a), this.getRenderType(e) === "Mesh") {
163
165
  if (!e.mediaPlane) {
@@ -185,26 +187,31 @@ class Zt extends x {
185
187
  }
186
188
  updateRenderImagePlane() {
187
189
  this.sort(this.filterImagePlane).forEach((t) => {
188
- var s, r, m;
190
+ var s, r, m, u;
189
191
  const i = t.data.mediaData[0];
190
192
  if (!i)
191
193
  return;
192
- const o = i.url, n = i.type;
193
- if (!o || (t.mediaPlane && (t.mediaPlane.visible = (r = (s = t.state) == null ? void 0 : s.visible) != null ? r : !0, t.mediaPlane instanceof R && !t.mediaPlane.visible && t.mediaPlane.pause()), ((m = t.mediaPlane) == null ? void 0 : m.src) === o))
194
+ const { url: o, type: n } = i;
195
+ if (!o || (t.mediaPlane && (t.mediaPlane.visible = (r = (s = t.state) == null ? void 0 : s.visible) != null ? r : !0, t.mediaPlane.visible || t.mediaPlane instanceof R && t.mediaPlane.pause()), ((m = t.mediaPlane) == null ? void 0 : m.src) === o))
194
196
  return;
195
197
  const a = t.position.map(v);
196
198
  if (t.mediaPlane && t.mediaPlane.removeFromParent(), n === "Image")
197
- t.mediaPlane = new j(o, a);
199
+ t.mediaPlane = new j(o, a), this.domEvents.addAutoBindEventListener(t.mediaPlane, "click", (p) => {
200
+ this.hooks.emit("click", { tag: t, target: "TagContent", event: p.origDomEvent });
201
+ });
198
202
  else if (n === "Video") {
199
- const l = new R(o, a, {
203
+ const p = new R(o, a, {
200
204
  videoCoverSrc: i.videoCoverUrl,
201
205
  playButton: t.data.playIcon,
206
+ paused: !((u = t.data.autoplayConfig) != null && u.autoplayVideo),
202
207
  videoTextureMap: F,
203
208
  ImageTextureMap: B
204
209
  });
205
- l.videoInstance.addEventListener("play", () => {
206
- this.mediaStore.set({ currentMediaElement: l.videoInstance });
207
- }), l.initialDomEvents(this.five), l.initialRenderHooks(this.five), t.mediaPlane = l;
210
+ p.onVideoReady = (l) => {
211
+ l.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: p.videoInstance }));
212
+ }, p.initialDomEvents(this.domEvents);
213
+ const f = (l) => (this.five.on("renderFrame", l), () => this.five.off("renderFrame", l));
214
+ p.initialRenderHooks(f), t.mediaPlane = p;
208
215
  }
209
216
  this.imagePlaneGroup.add(t.mediaPlane);
210
217
  });
@@ -215,7 +222,7 @@ class Zt extends x {
215
222
  if (t.tag3DContentSvelte) {
216
223
  const { svelteApp: n, css3DInstance: a, initialNormal: s, currentNormal: r } = t.tag3DContentSvelte;
217
224
  if (n.$set({ tag: t, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !s.equals(r)) {
218
- const m = new I().setFromUnitVectors(s, r);
225
+ const m = new k().setFromUnitVectors(s, r);
219
226
  a.css3DObject.setRotationFromQuaternion(m);
220
227
  }
221
228
  return;
@@ -233,14 +240,14 @@ class Zt extends x {
233
240
  const r = (o = this.getTagConfig(t).tag3DConfig) != null ? o : {};
234
241
  if (this.getRenderType(t) === "BehindDom") {
235
242
  r.mode = "behind", r.container = document.createElement("div");
236
- const f = "black";
237
- r.container.style.backgroundColor = f, r.container.style.border = `3px solid ${f}`, this.css3DRenderPlugin.hooks.on("render", () => {
238
- var u;
243
+ const p = "black";
244
+ r.container.style.backgroundColor = p, r.container.style.border = `3px solid ${p}`, this.css3DRenderPlugin.hooks.on("render", () => {
245
+ var f;
239
246
  if (m.css3DObject.opacityMesh) {
240
- const h = this.addObjectClickHandler(t, m.css3DObject.opacityMesh, (g) => {
247
+ const l = this.addObjectClickHandler(t, m.css3DObject.opacityMesh, (g) => {
241
248
  this.hooks.emit("click", { event: g, target: "TagContent", tag: t });
242
249
  });
243
- (u = this.store.css3DRenderDisposer.get(t.id)) == null || u.push(h);
250
+ (f = this.store.css3DRenderDisposer.get(t.id)) == null || f.push(l);
244
251
  }
245
252
  });
246
253
  }
@@ -248,7 +255,7 @@ class Zt extends x {
248
255
  if (!m)
249
256
  return;
250
257
  this.store.css3DRenderDisposer.set(t.id, [m.dispose]);
251
- const l = new G({
258
+ const u = new G({
252
259
  target: m.container,
253
260
  props: {
254
261
  tag: t,
@@ -259,13 +266,13 @@ class Zt extends x {
259
266
  }
260
267
  });
261
268
  t.tag3DContentSvelte = {
262
- svelteApp: l,
269
+ svelteApp: u,
263
270
  domContainer: m,
264
271
  css3DInstance: m,
265
272
  initialNormal: a,
266
273
  currentNormal: a,
267
274
  dispose: () => {
268
- l.$destroy(), m.dispose();
275
+ u.$destroy(), m.dispose();
269
276
  }
270
277
  };
271
278
  }
@@ -287,19 +294,19 @@ class Zt extends x {
287
294
  });
288
295
  }
289
296
  updateTagCss3DObjectMatrix(e, t) {
290
- var g, C, M, y;
291
- const i = (M = (C = (g = e.mergedConfig) == null ? void 0 : g.tag3DConfig) == null ? void 0 : C.ratio) != null ? M : 216e-5, o = (y = e.tag3DContentSvelte) == null ? void 0 : y.css3DInstance.css3DObject;
297
+ var g, C, y, M;
298
+ const i = (y = (C = (g = e.mergedConfig) == null ? void 0 : g.tag3DConfig) == null ? void 0 : C.ratio) != null ? y : 216e-5, o = (M = e.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
292
299
  if (!o)
293
300
  return;
294
301
  const n = S(e) ? e.data.mediaPosition : e.position;
295
302
  t.updateWorldMatrix(!1, !1);
296
- const a = t.matrixWorld, s = new D().fromArray(n[0]), r = new D().fromArray(n[2]), m = k(s, r).add(new D(0, 0, 5e-4)), l = new T().setPosition(m), f = new T().makeScale(i, i, i), u = new T().multiply(a).multiply(l).multiply(f);
297
- u.decompose(o.position, o.quaternion, o.scale);
298
- const h = o.opacityMesh;
299
- h && u.decompose(h.position, h.quaternion, h.scale);
303
+ const a = t.matrixWorld, s = new D().fromArray(n[0]), r = new D().fromArray(n[2]), m = I(s, r).add(new D(0, 0, 5e-4)), u = new P().setPosition(m), p = new P().makeScale(i, i, i), f = new P().multiply(a).multiply(u).multiply(p);
304
+ f.decompose(o.position, o.quaternion, o.scale);
305
+ const l = o.opacityMesh;
306
+ l && f.decompose(l.position, l.quaternion, l.scale);
300
307
  }
301
308
  addMediaModelTag(e) {
302
- return P(this, null, function* () {
309
+ return T(this, null, function* () {
303
310
  const t = e.filter(S).map((i) => this.loadModel(i));
304
311
  yield Promise.all(t), this.setModelMedialVisible(), this.updateRenderAllTags();
305
312
  });
@@ -313,7 +320,7 @@ class Zt extends x {
313
320
  const i = (t = this.five.getElement()) == null ? void 0 : t.parentElement;
314
321
  if (!i)
315
322
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
316
- this.TagContainerSvelte = new E({
323
+ this.TagContainerSvelte = new x({
317
324
  target: i,
318
325
  props: { hooks: this.hooks, tags: e, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
319
326
  });
@@ -351,5 +358,5 @@ class Zt extends x {
351
358
  }
352
359
  }
353
360
  export {
354
- Zt as TagRender
361
+ ei as TagRender
355
362
  };
@@ -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,9 +1,9 @@
1
1
  var T = Object.defineProperty;
2
- var y = (u, m, e) => m in u ? T(u, m, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[m] = e;
3
- var l = (u, m, e) => (y(u, typeof m != "symbol" ? m + "" : m, e), e);
2
+ var y = (m, u, e) => u in m ? T(m, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[u] = e;
3
+ var l = (m, u, e) => (y(m, typeof u != "symbol" ? u + "" : u, e), e);
4
4
  import D from "object-assign-deep";
5
- import * as C from "three";
6
- import { DefaultConfig as P } from "../tag.config.js";
5
+ import * as P from "three";
6
+ import { DefaultConfig as C } from "../tag.config.js";
7
7
  import { anyPositionToVector3 as w, arrayPositionToVector3 as h } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
8
8
  import { planeNormal as g } from "../utils/planeNormal.js";
9
9
  import { tagPosition as E, getTagPosition as k } from "../utils/tagPosition.js";
@@ -15,8 +15,9 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
15
15
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
16
16
  import "@realsee/five";
17
17
  import { isMediaPlaneTag as x, isMediaModelTag as v, isPlaneTag as V } from "../utils/tag/tagCheck.js";
18
- import { DomEvents as L } from "../../shared-utils/threex/domevents/index.js";
19
- import { VideoPlane as S } from "../utils/model/mediaPlane.js";
18
+ import "../../shared-utils/threex/domevents/index.js";
19
+ import { VideoPlane as F } from "../utils/model/mediaPlane.js";
20
+ import { FiveDomEvents as L } from "../../shared-utils/five/FiveDomEvents.js";
20
21
  import "@realsee/five/gltf-loader";
21
22
  import "../../shared-utils/three/loadTexture.js";
22
23
  import "hammerjs";
@@ -49,12 +50,12 @@ import "../../shared-utils/math/pointIsRectangle.js";
49
50
  import "../../shared-utils/three/loadVideoTexture.js";
50
51
  import "../Assets/Icon.js";
51
52
  import "../../shared-utils/three/getPositionsByObjectFit.js";
52
- import "../../shared-utils/five/FiveDomEvents.js";
53
- class Ae extends b {
53
+ import "../../shared-utils/three/FragmentTransparencyMaterial.js";
54
+ class xe extends b {
54
55
  constructor(e) {
55
56
  super(e);
56
57
  l(this, "tags", []);
57
- l(this, "config", P);
58
+ l(this, "config", C);
58
59
  l(this, "mediaStore", I({
59
60
  currentMediaElement: null
60
61
  }));
@@ -65,17 +66,21 @@ class Ae extends b {
65
66
  resizeObserverDisposerAdding: !1,
66
67
  css3DRenderDisposer: /* @__PURE__ */ new Map()
67
68
  });
68
- l(this, "domEvents");
69
+ l(this, "domEvents", new L(this.five));
69
70
  l(this, "mouseInfo");
70
71
  l(this, "preventWhenMouseDown", () => {
71
72
  var e;
72
73
  if ((e = this.mouseInfo) != null && e.isDown)
73
74
  return !1;
74
75
  });
75
- const i = this.five.getElement();
76
- i && (this.domEvents = new L(this.five.camera, i)), this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.mediaStore.subscribe(({ currentMediaElement: o }) => {
77
- this.tags.forEach((t) => {
78
- t.mediaPlane instanceof S && o !== t.mediaPlane.videoInstance && t.mediaPlane.pause();
76
+ this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.mediaStore.subscribe(({ currentMediaElement: i }) => {
77
+ this.tags.forEach((o) => {
78
+ var t;
79
+ if (o.mediaPlane instanceof F && i !== o.mediaPlane.videoInstance) {
80
+ if (!((t = o.mediaPlane.videoInstance) != null && t.src) || i === o.mediaPlane.videoInstance)
81
+ return;
82
+ o.mediaPlane.pause();
83
+ }
79
84
  });
80
85
  }), this.store.disposers.push(() => {
81
86
  this.five.off("wantsMoveToPano", this.preventWhenMouseDown), this.five.off("wantsTapGesture", this.preventWhenMouseDown);
@@ -187,7 +192,7 @@ class Ae extends b {
187
192
  const n = E(e.position);
188
193
  if (!n)
189
194
  return;
190
- const c = new C.Vector3().copy(f).sub(n), p = s.angleTo(c) * 180 / Math.PI;
195
+ const c = new P.Vector3().copy(f).sub(n), p = s.angleTo(c) * 180 / Math.PI;
191
196
  return t.angle = p, t.angle;
192
197
  }
193
198
  }
@@ -308,5 +313,5 @@ class Ae extends b {
308
313
  }
309
314
  }
310
315
  export {
311
- Ae as TagUtil
316
+ xe as TagUtil
312
317
  };
@@ -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;
@@ -1,16 +1,16 @@
1
- var S = Object.defineProperty, P = Object.defineProperties;
2
- var U = Object.getOwnPropertyDescriptors;
3
- var T = Object.getOwnPropertySymbols;
4
- var F = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
1
+ var S = Object.defineProperty, F = Object.defineProperties;
2
+ var P = Object.getOwnPropertyDescriptors;
3
+ var b = Object.getOwnPropertySymbols;
4
+ var M = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
5
5
  var u = (d, a, e) => a in d ? S(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, l = (d, a) => {
6
6
  for (var e in a || (a = {}))
7
- F.call(a, e) && u(d, e, a[e]);
8
- if (T)
9
- for (var e of T(a))
10
- E.call(a, e) && u(d, e, a[e]);
7
+ M.call(a, e) && u(d, e, a[e]);
8
+ if (b)
9
+ for (var e of b(a))
10
+ U.call(a, e) && u(d, e, a[e]);
11
11
  return d;
12
- }, m = (d, a) => P(d, U(a));
13
- var p = (d, a, e) => (u(d, typeof a != "symbol" ? a + "" : a, e), e);
12
+ }, m = (d, a) => F(d, P(a));
13
+ var c = (d, a, e) => (u(d, typeof a != "symbol" ? a + "" : a, e), e);
14
14
  var f = (d, a, e) => new Promise((t, i) => {
15
15
  var s = (n) => {
16
16
  try {
@@ -27,15 +27,15 @@ var f = (d, a, e) => new Promise((t, i) => {
27
27
  }, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, o);
28
28
  r((e = e.apply(d, a)).next());
29
29
  });
30
- import { Subscribe as M } from "@realsee/five";
31
- import c from "object-assign-deep";
32
- import { arrayPositionToVector3 as C } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
33
- import { addDebugPoints as w } from "../utils/addDebugPoints.js";
30
+ import { Subscribe as w } from "@realsee/five";
31
+ import p from "object-assign-deep";
32
+ import { arrayPositionToVector3 as T } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
33
+ import { addDebugPoints as E } from "../utils/addDebugPoints.js";
34
34
  import "three";
35
35
  import "@realsee/five/gltf-loader";
36
36
  import "../../shared-utils/three/loadTexture.js";
37
37
  import "../../shared-utils/threex/domevents/index.js";
38
- import { isMediaModelTag as v } from "../utils/tag/tagCheck.js";
38
+ import { isMediaModelTag as C } from "../utils/tag/tagCheck.js";
39
39
  import { waitFiveModelLoaded as I } from "../utils/actionAfterFiveModelLoad.js";
40
40
  import { debounce as A } from "../utils/debounce.js";
41
41
  import { throttle as B } from "../utils/throttle.js";
@@ -87,7 +87,9 @@ import "../../shared-utils/math/pointIsRectangle.js";
87
87
  import "../../shared-utils/three/loadVideoTexture.js";
88
88
  import "../Assets/Icon.js";
89
89
  import "../../shared-utils/three/getPositionsByObjectFit.js";
90
+ import "../../shared-utils/three/FragmentTransparencyMaterial.js";
90
91
  import "../../shared-utils/five/FiveDomEvents.js";
92
+ import "../../shared-utils/five/getFloorIndex.js";
91
93
  import "../Components/TagContainer.js";
92
94
  import "../Components/TagItem.js";
93
95
  import "../Components/Tag/index.js";
@@ -154,25 +156,26 @@ import "../Components/Common/TagPoint.js";
154
156
  import "../../CSS3DRenderPlugin/index.js";
155
157
  import "../../CSS3DRenderPlugin/Controller.js";
156
158
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
157
- const D = "Dnalogel-PanoTagPlugin", si = (d) => `${D}--${d}`;
158
- class oi extends k {
159
+ const D = "Dnalogel-PanoTagPlugin", ni = (d) => `${D}--${d}`;
160
+ class ri extends k {
159
161
  constructor(e, t) {
160
162
  super(e);
161
- p(this, "state", { enabled: !0, visible: !0 });
162
- p(this, "params");
163
- p(this, "debug");
164
- p(this, "changeTagModel", (e, t) => f(this, null, function* () {
165
- e.data = c({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
163
+ c(this, "state", { enabled: !0, visible: !0 });
164
+ c(this, "params");
165
+ c(this, "debug");
166
+ c(this, "changeTagModel", (e, t) => f(this, null, function* () {
167
+ e.data = p({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
166
168
  }));
167
- p(this, "handleFiveInitAnimationEnded", () => {
169
+ c(this, "handleFiveInitAnimationEnded", () => {
168
170
  const e = this.five.getCurrentState().mode;
169
171
  this.tags.forEach((t) => {
170
- v(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
172
+ C(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
171
173
  }), this.updateRenderAllTags();
172
174
  });
173
- p(this, "handleFiveModelShownFloorChange", () => {
175
+ c(this, "handleFiveModelShownFloorChange", () => {
174
176
  this.tags.forEach((e) => {
175
- !v(e) || (e.state.visible = this.getVisible(e));
177
+ const t = this.getTagConfig(e).visibleConfig;
178
+ typeof t == "object" && (t.visibleFiveMode.includes("Floorplan") || t.visibleFiveMode.includes("Mapview")) && (e.state.visible = this.getVisibleByFiveMode(e));
176
179
  }), this.updateRenderAllTags();
177
180
  });
178
181
  this.params = l({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, O(1, { namespace: _.PlayAudio });
@@ -185,14 +188,14 @@ class oi extends k {
185
188
  load(e, t) {
186
189
  return f(this, null, function* () {
187
190
  var s, o;
188
- this.clearTags(), console.info(D, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = c({}, this.config, {
191
+ this.clearTags(), console.info(D, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = p({}, this.config, {
189
192
  globalConfig: (s = e.globalConfig) != null ? s : {},
190
193
  contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
191
194
  });
192
195
  const i = yield this.addTag(e.tagList, t);
193
196
  if (this.debug)
194
197
  try {
195
- w(this.five, this.tags);
198
+ E(this.five, this.tags);
196
199
  } catch (r) {
197
200
  console.error(r);
198
201
  }
@@ -204,11 +207,12 @@ class oi extends k {
204
207
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
205
208
  const r = this.getTagConfig(o);
206
209
  return m(l({}, o), {
210
+ data: p({}, r.initialData, o.data),
207
211
  state: l({
208
212
  visible: void 0,
209
213
  unfolded: !this.can("fold", o)
210
214
  }, r.initialState),
211
- hooks: new M(),
215
+ hooks: new w(),
212
216
  mergedConfig: r,
213
217
  unfold: () => this.changeUnfoldedById(o.id, !0),
214
218
  fold: () => this.changeUnfoldedById(o.id, !1),
@@ -224,13 +228,13 @@ class oi extends k {
224
228
  });
225
229
  }
226
230
  changeConfig(e, t = !0) {
227
- t ? this.config = c({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
231
+ t ? this.config = p({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
228
232
  }
229
233
  changeGlobalConfig(e, t = !0) {
230
- t ? this.config.globalConfig = c({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
234
+ t ? this.config.globalConfig = p({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
231
235
  }
232
236
  changeContentTypeConfig(e, t, i = !0) {
233
- this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = c({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.clearCache(), this.updateRenderAllTags();
237
+ this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = p({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.clearCache(), this.updateRenderAllTags();
234
238
  }
235
239
  show(e) {
236
240
  return f(this, null, function* () {
@@ -292,18 +296,18 @@ class oi extends k {
292
296
  }
293
297
  changeTagNormalById(e, t) {
294
298
  const i = this.getTagById(e);
295
- !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = C(t));
299
+ !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = T(t));
296
300
  }
297
301
  changeDataById(e, t, i = !0) {
298
302
  const s = this.getTagById(e);
299
- !s || (i ? s.data = c({}, s.data, t) : s.data = l(l({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
303
+ !s || (i ? s.data = p({}, s.data, t) : s.data = l(l({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
300
304
  }
301
305
  changeStickTypeById(e, t, i = !0) {
302
306
  this.changeTagById(e, t, i);
303
307
  }
304
308
  changeTagById(e, t, i = !0) {
305
309
  const s = this.getTagById(e);
306
- !t || (i ? c(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = C(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag());
310
+ !t || (i ? p(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = T(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag());
307
311
  }
308
312
  destroyTagById(e) {
309
313
  (Array.isArray(e) ? e : [e]).forEach((i) => {
@@ -341,8 +345,8 @@ class oi extends k {
341
345
  }), this.five.needsRender = !0;
342
346
  }
343
347
  addEventListener() {
344
- const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), h = this.loadVideoFirstFrame.bind(this), g = this.clickhandler.bind(this), b = this.five.currentMode;
345
- return b && this.handleFiveModeChange(b), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), e.on("panoArrived", h), t.on("click", g), () => {
348
+ const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), h = this.loadVideoFirstFrame.bind(this), g = this.clickhandler.bind(this), v = this.five.currentMode;
349
+ return v && this.handleFiveModeChange(v), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), e.on("panoArrived", h), t.on("click", g), () => {
346
350
  e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), e.off("panoArrived", h), t.off("click", g), this.store.eventListenerDisposer = void 0;
347
351
  };
348
352
  }
@@ -376,7 +380,7 @@ class oi extends k {
376
380
  }
377
381
  handleFiveModeChange(e) {
378
382
  this.setModelMedialVisible(), this.tags.forEach((t) => {
379
- v(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
383
+ C(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
380
384
  }), this.updateRenderAllTags();
381
385
  }
382
386
  handleFiveWantsMoveToPano() {
@@ -426,7 +430,7 @@ class oi extends k {
426
430
  }
427
431
  }
428
432
  export {
429
- oi as PanoTagPluginController,
430
- oi as default,
431
- si as pluginFlag
433
+ ri as PanoTagPluginController,
434
+ ri as default,
435
+ ni as pluginFlag
432
436
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./controller/index.js";
2
- import { default as kr, pluginFlag as qr } from "./controller/index.js";
3
- import { ContentType as zr } from "./typings/tag/TagData.js";
4
- import { DimensionType as Br } from "./typings/tag/Utils.js";
2
+ import { default as vr, pluginFlag as zr } from "./controller/index.js";
3
+ import { ContentType as Br } from "./typings/tag/TagData.js";
4
+ import { DimensionType as Gr } from "./typings/tag/Utils.js";
5
5
  import "@realsee/five";
6
6
  import "object-assign-deep";
7
7
  import "../CSS3DRenderPlugin/utils/positionToVector3.js";
@@ -62,7 +62,9 @@ import "../shared-utils/math/pointIsRectangle.js";
62
62
  import "../shared-utils/three/loadVideoTexture.js";
63
63
  import "./Assets/Icon.js";
64
64
  import "../shared-utils/three/getPositionsByObjectFit.js";
65
+ import "../shared-utils/three/FragmentTransparencyMaterial.js";
65
66
  import "../shared-utils/five/FiveDomEvents.js";
67
+ import "../shared-utils/five/getFloorIndex.js";
66
68
  import "./Components/TagContainer.js";
67
69
  import "./Components/TagItem.js";
68
70
  import "./Components/Tag/index.js";
@@ -129,12 +131,12 @@ import "./Components/Common/TagPoint.js";
129
131
  import "../CSS3DRenderPlugin/index.js";
130
132
  import "../CSS3DRenderPlugin/Controller.js";
131
133
  import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
132
- const br = (o, r) => new t(o, r);
134
+ const jr = (o, r) => new t(o, r);
133
135
  export {
134
- zr as ContentType,
135
- Br as DimensionType,
136
- br as PanoTagPlugin,
137
- kr as PanoTagPluginController,
138
- br as default,
139
- qr as pluginFlag
136
+ Br as ContentType,
137
+ Gr as DimensionType,
138
+ jr as PanoTagPlugin,
139
+ vr as PanoTagPluginController,
140
+ jr as default,
141
+ zr as pluginFlag
140
142
  };
@@ -49,6 +49,13 @@ const e = {
49
49
  },
50
50
  visibleConfig: {
51
51
  alwaysShowWhenMovePano: !0
52
+ },
53
+ initialData: {
54
+ autoplayConfig: {
55
+ autoplayCarousel: !0,
56
+ autoplayVideo: !1,
57
+ autoplayVideoInCarousel: !1
58
+ }
52
59
  }
53
60
  },
54
61
  MediaModel: {
@@ -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
24
  id: TagId;
22
- /** @deprecated 一个点的标签/4个点的标签,已废弃,使用 stickType 代替 */
23
- pointType?: 'PlaneTag' | 'PointTag';
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
  /** 点 */