@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
@@ -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, l, e) => l in c ? w(c, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[l] = e;
3
+ var u = (c, l, e) => (E(c, typeof l != "symbol" ? l + "" : l, e), e);
4
+ var T = (c, l, e) => new Promise((t, i) => {
5
5
  var o = (s) => {
6
6
  try {
7
7
  a(e.next(s));
@@ -15,19 +15,19 @@ 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, l)).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
- import { isMediaModelTag as S } from "../utils/tag/tagCheck.js";
29
- import { CSS3DRenderPlugin as A } from "../../CSS3DRenderPlugin/index.js";
30
- import { loadGLTF as V } from "../../shared-utils/three/GLTFLoader.js";
28
+ import { isMediaModelTag as C } from "../utils/tag/tagCheck.js";
29
+ import { CSS3DRenderPlugin as V } from "../../CSS3DRenderPlugin/index.js";
30
+ import { loadGLTF as A } from "../../shared-utils/three/GLTFLoader.js";
31
31
  import "@realsee/five";
32
32
  import "../utils/tagPosition.js";
33
33
  import "../../shared-utils/three/loadTexture.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,26 +140,26 @@ 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
+ u(this, "group", new b());
147
+ u(this, "imagePlaneGroup", new b());
148
+ u(this, "gltfObjectGroup", new b());
149
+ u(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
150
+ u(this, "temporaryState", { visible: !0 });
151
+ u(this, "TagContainerSvelte");
152
+ u(this, "loadModel", (e) => T(this, null, function* () {
151
153
  var s;
152
154
  const t = e.data.modelUrl;
153
155
  if (!t)
154
156
  return;
155
- const i = V(t).then((r) => Object.assign(r.scene, { customID: e.id, isTagModel: !0 }));
157
+ const i = A(t).then((r) => Object.assign(r.scene, { customID: e.id, isTagModel: !0 }));
156
158
  e.model = { promise: i };
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, f, g;
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 && ((m = t.data.autoplayConfig) != null && m.autoplayVideo || t.mediaPlane.pause())), ((f = t.mediaPlane) == null ? void 0 : f.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: !((g = t.data.autoplayConfig) != null && g.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 = (d) => {
211
+ d.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: p.videoInstance }));
212
+ }, p.initialDomEvents(this.domEvents);
213
+ const h = (d) => (this.five.on("renderFrame", d), () => this.five.off("renderFrame", d));
214
+ p.initialRenderHooks(h), t.mediaPlane = p;
208
215
  }
209
216
  this.imagePlaneGroup.add(t.mediaPlane);
210
217
  });
@@ -215,14 +222,14 @@ 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;
222
229
  } else {
223
230
  if (((i = t.state) == null ? void 0 : i.visible) === !1)
224
231
  return;
225
- if (this.css3DRenderPlugin || (this.css3DRenderPlugin = A(this.five)), t.stickType === "3DPoint" && !t.normal)
232
+ if (this.css3DRenderPlugin || (this.css3DRenderPlugin = V(this.five)), t.stickType === "3DPoint" && !t.normal)
226
233
  return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
227
234
  const n = this.getPositions(t);
228
235
  if (!n)
@@ -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 g = "black";
244
+ r.container.style.backgroundColor = g, r.container.style.border = `3px solid ${g}`, this.css3DRenderPlugin.hooks.on("render", () => {
245
+ var p;
239
246
  if (m.css3DObject.opacityMesh) {
240
- const h = this.addObjectClickHandler(t, m.css3DObject.opacityMesh, (g) => {
241
- this.hooks.emit("click", { event: g, target: "TagContent", tag: t });
247
+ const h = this.addObjectClickHandler(t, m.css3DObject.opacityMesh, (d) => {
248
+ this.hooks.emit("click", { event: d, target: "TagContent", tag: t });
242
249
  });
243
- (u = this.store.css3DRenderDisposer.get(t.id)) == null || u.push(h);
250
+ (p = this.store.css3DRenderDisposer.get(t.id)) == null || p.push(h);
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 f = 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: f,
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
+ f.$destroy(), m.dispose();
269
276
  }
270
277
  };
271
278
  }
@@ -273,7 +280,7 @@ class Zt extends x {
273
280
  }
274
281
  updateRenderModelTag() {
275
282
  const e = (i) => !this.enabledModelTagSet.has(i.customID);
276
- this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(S).forEach((i) => {
283
+ this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(C).forEach((i) => {
277
284
  var o;
278
285
  (o = i.model) == null || o.promise.then((n) => {
279
286
  n.visible = this.getCurrentVisibleState(i);
@@ -287,20 +294,20 @@ 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 d, S, y, M;
298
+ const i = (y = (S = (d = e.mergedConfig) == null ? void 0 : d.tag3DConfig) == null ? void 0 : S.ratio) != null ? y : 216e-5, o = (M = e.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
292
299
  if (!o)
293
300
  return;
294
- const n = S(e) ? e.data.mediaPosition : e.position;
301
+ const n = C(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);
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)), f = new P().setPosition(m), g = new P().makeScale(i, i, i), p = new P().multiply(a).multiply(f).multiply(g);
304
+ p.decompose(o.position, o.quaternion, o.scale);
298
305
  const h = o.opacityMesh;
299
- h && u.decompose(h.position, h.quaternion, h.scale);
306
+ h && p.decompose(h.position, h.quaternion, h.scale);
300
307
  }
301
308
  addMediaModelTag(e) {
302
- return P(this, null, function* () {
303
- const t = e.filter(S).map((i) => this.loadModel(i));
309
+ return T(this, null, function* () {
310
+ const t = e.filter(C).map((i) => this.loadModel(i));
304
311
  yield Promise.all(t), this.setModelMedialVisible(), this.updateRenderAllTags();
305
312
  });
306
313
  }
@@ -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
- 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);
4
- import D from "object-assign-deep";
5
- import * as C from "three";
6
- import { DefaultConfig as P } from "../tag.config.js";
1
+ var y = Object.defineProperty;
2
+ var D = (m, u, e) => u in m ? y(m, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[u] = e;
3
+ var l = (m, u, e) => (D(m, typeof u != "symbol" ? u + "" : u, e), e);
4
+ import T from "object-assign-deep";
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";
18
+ import "../../shared-utils/threex/domevents/index.js";
19
19
  import { VideoPlane as S } from "../utils/model/mediaPlane.js";
20
+ import { FiveDomEvents as F } 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 F(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 S && 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);
@@ -121,7 +126,7 @@ class Ae extends b {
121
126
  }
122
127
  }
123
128
  });
124
- const o = D({}, this.config.globalConfig, ...Object.values(i), e.config);
129
+ const o = T({}, this.config.globalConfig, ...Object.values(i), e.config);
125
130
  return typeof o.unfoldedConfig == "object" && (o.unfoldedConfig.disableFold && (o.unfoldedConfig = { keep: "unfolded" }), o.unfoldedConfig.disableUnfold && (o.unfoldedConfig = { keep: "folded" }), o.unfoldedConfig.keep && (o.unfoldedConfig = { keep: o.unfoldedConfig.keep })), typeof o.visibleConfig == "object" && o.visibleConfig.keep && (o.visibleConfig = { keep: o.visibleConfig.keep, visibleFiveMode: (d = o.visibleConfig) == null ? void 0 : d.visibleFiveMode }), o;
126
131
  }
127
132
  loadVideoFirstFrame() {
@@ -130,7 +135,7 @@ class Ae extends b {
130
135
  updateTagConfig(e) {
131
136
  e != null && e.force && this.clearCache(), this.tags.forEach((i) => {
132
137
  const o = this.getTagConfig(i);
133
- i.mergedConfig = o;
138
+ i.mergedConfig = o, i.data = T({}, i.data, o.initialState);
134
139
  });
135
140
  }
136
141
  can(e, i) {
@@ -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";
@@ -43,6 +43,7 @@ import { resizeObserver as y } from "../utils/resizeObserver.js";
43
43
  import R from "../utils/tag/format.js";
44
44
  import { generateBlankAudio as O, AudioNamespace as _ } from "../../shared-utils/audio.js";
45
45
  import { TagRender as k } from "./TagRender.js";
46
+ import { uuid as L } from "../../shared-utils/uuid.js";
46
47
  import "hammerjs";
47
48
  import "@tweenjs/tween.js";
48
49
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
@@ -87,7 +88,9 @@ import "../../shared-utils/math/pointIsRectangle.js";
87
88
  import "../../shared-utils/three/loadVideoTexture.js";
88
89
  import "../Assets/Icon.js";
89
90
  import "../../shared-utils/three/getPositionsByObjectFit.js";
91
+ import "../../shared-utils/three/FragmentTransparencyMaterial.js";
90
92
  import "../../shared-utils/five/FiveDomEvents.js";
93
+ import "../../shared-utils/five/getFloorIndex.js";
91
94
  import "../Components/TagContainer.js";
92
95
  import "../Components/TagItem.js";
93
96
  import "../Components/Tag/index.js";
@@ -96,7 +99,6 @@ import "../Components/Tag/TextTag/TextTag.js";
96
99
  import "../Components/Common/Line/Straight.js";
97
100
  import "../../vendor/svelte/transition/index.js";
98
101
  import "../../vendor/svelte/easing/index.js";
99
- import "../../shared-utils/uuid.js";
100
102
  import "../Components/Common/Shadow.js";
101
103
  import "../Components/Common/Text/FlyMText.js";
102
104
  import "../Components/Common/Text/FlyText.js";
@@ -154,25 +156,27 @@ 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", ri = (d) => `${D}--${d}`;
160
+ class ai 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
+ var i, s;
178
+ const t = this.getTagConfig(e).visibleConfig;
179
+ typeof t == "object" && (((i = t.visibleFiveMode) == null ? void 0 : i.includes("Floorplan")) || ((s = t.visibleFiveMode) == null ? void 0 : s.includes("Mapview"))) && (e.state.visible = this.getVisibleByFiveMode(e));
176
180
  }), this.updateRenderAllTags();
177
181
  });
178
182
  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 +189,14 @@ class oi extends k {
185
189
  load(e, t) {
186
190
  return f(this, null, function* () {
187
191
  var s, o;
188
- this.clearTags(), console.info(D, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = c({}, this.config, {
192
+ this.clearTags(), console.info(D, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = p({}, this.config, {
189
193
  globalConfig: (s = e.globalConfig) != null ? s : {},
190
194
  contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
191
195
  });
192
196
  const i = yield this.addTag(e.tagList, t);
193
197
  if (this.debug)
194
198
  try {
195
- w(this.five, this.tags);
199
+ E(this.five, this.tags);
196
200
  } catch (r) {
197
201
  console.error(r);
198
202
  }
@@ -202,13 +206,16 @@ class oi extends k {
202
206
  addTag(e, t) {
203
207
  return f(this, null, function* () {
204
208
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
209
+ var h;
205
210
  const r = this.getTagConfig(o);
206
211
  return m(l({}, o), {
212
+ id: (h = o.id) != null ? h : L(),
213
+ data: p({}, r.initialData, o.data),
207
214
  state: l({
208
215
  visible: void 0,
209
216
  unfolded: !this.can("fold", o)
210
217
  }, r.initialState),
211
- hooks: new M(),
218
+ hooks: new w(),
212
219
  mergedConfig: r,
213
220
  unfold: () => this.changeUnfoldedById(o.id, !0),
214
221
  fold: () => this.changeUnfoldedById(o.id, !1),
@@ -224,13 +231,13 @@ class oi extends k {
224
231
  });
225
232
  }
226
233
  changeConfig(e, t = !0) {
227
- t ? this.config = c({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
234
+ t ? this.config = p({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
228
235
  }
229
236
  changeGlobalConfig(e, t = !0) {
230
- t ? this.config.globalConfig = c({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
237
+ t ? this.config.globalConfig = p({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
231
238
  }
232
239
  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();
240
+ this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = p({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
234
241
  }
235
242
  show(e) {
236
243
  return f(this, null, function* () {
@@ -292,18 +299,18 @@ class oi extends k {
292
299
  }
293
300
  changeTagNormalById(e, t) {
294
301
  const i = this.getTagById(e);
295
- !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = C(t));
302
+ !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = T(t));
296
303
  }
297
304
  changeDataById(e, t, i = !0) {
298
305
  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());
306
+ !s || (i ? s.data = p({}, s.data, t) : s.data = l(l({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
300
307
  }
301
308
  changeStickTypeById(e, t, i = !0) {
302
309
  this.changeTagById(e, t, i);
303
310
  }
304
311
  changeTagById(e, t, i = !0) {
305
312
  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());
313
+ !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
314
  }
308
315
  destroyTagById(e) {
309
316
  (Array.isArray(e) ? e : [e]).forEach((i) => {
@@ -341,8 +348,8 @@ class oi extends k {
341
348
  }), this.five.needsRender = !0;
342
349
  }
343
350
  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), () => {
351
+ 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;
352
+ 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
353
  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
354
  };
348
355
  }
@@ -376,7 +383,7 @@ class oi extends k {
376
383
  }
377
384
  handleFiveModeChange(e) {
378
385
  this.setModelMedialVisible(), this.tags.forEach((t) => {
379
- v(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
386
+ C(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
380
387
  }), this.updateRenderAllTags();
381
388
  }
382
389
  handleFiveWantsMoveToPano() {
@@ -426,7 +433,7 @@ class oi extends k {
426
433
  }
427
434
  }
428
435
  export {
429
- oi as PanoTagPluginController,
430
- oi as default,
431
- si as pluginFlag
436
+ ai as PanoTagPluginController,
437
+ ai as default,
438
+ ri as pluginFlag
432
439
  };
@@ -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
  };